!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e5c6582f-74bd-4e4d-9825-7af6ffab0312",e._sentryDebugIdIdentifier="sentry-dbid-e5c6582f-74bd-4e4d-9825-7af6ffab0312")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{67157:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},45591:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(67157),o=n(32460),a={};function s(e){let t=a[e];if(t)return t;let n=o.WINDOW[e];if(r.isNativeFunction(n))return a[e]=n.bind(o.WINDOW);let s=o.WINDOW.document;if(s&&"function"==typeof s.createElement)try{let t=s.createElement("iframe");t.hidden=!0,s.head.appendChild(t);let r=t.contentWindow;r&&r[e]&&(n=r[e]),s.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&r.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(o.WINDOW):n}t.clearCachedImplementation=function(e){a[e]=void 0},t.fetch=function(...e){return s("fetch")(...e)},t.getNativeImplementation=s,t.setTimeout=function(...e){return s("setTimeout")(...e)}},75168:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(69761),i=n(21311),o=n(30065),a=n(27544),s=n(45591),l=n(35238),c=n(70785);t.addClsInstrumentationHandler=r.addClsInstrumentationHandler,t.addFidInstrumentationHandler=r.addFidInstrumentationHandler,t.addInpInstrumentationHandler=r.addInpInstrumentationHandler,t.addLcpInstrumentationHandler=r.addLcpInstrumentationHandler,t.addPerformanceInstrumentationHandler=r.addPerformanceInstrumentationHandler,t.addTtfbInstrumentationHandler=r.addTtfbInstrumentationHandler,t.addPerformanceEntries=i.addPerformanceEntries,t.startTrackingInteractions=i.startTrackingInteractions,t.startTrackingLongAnimationFrames=i.startTrackingLongAnimationFrames,t.startTrackingLongTasks=i.startTrackingLongTasks,t.startTrackingWebVitals=i.startTrackingWebVitals,t.addClickKeypressInstrumentationHandler=o.addClickKeypressInstrumentationHandler,t.addHistoryInstrumentationHandler=a.addHistoryInstrumentationHandler,t.clearCachedImplementation=s.clearCachedImplementation,t.fetch=s.fetch,t.getNativeImplementation=s.getNativeImplementation,t.setTimeout=s.setTimeout,t.SENTRY_XHR_DATA_KEY=l.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=l.addXhrInstrumentationHandler,t.registerInpInteractionListener=c.registerInpInteractionListener,t.startTrackingINP=c.startTrackingINP},30065:function(e,t,n){let r,i,o;Object.defineProperty(t,"__esModule",{value:!0});let a=n(94628),s=n(32460);function l(){if(!s.WINDOW.document)return;let e=a.triggerHandlers.bind(null,"dom"),t=c(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=s.WINDOW[t]&&s.WINDOW[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(a.fill(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=c(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),a.fill(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function c(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let l=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!l||!l.tagName||"INPUT"!==l.tagName&&"TEXTAREA"!==l.tagName&&!l.isContentEditable))return;a.addNonEnumerableProperty(n,"_sentryCaptured",!0),l&&!l._sentryId&&a.addNonEnumerableProperty(l,"_sentryId",a.uuid4());let c="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch(e){}return!0}(n)&&(e({event:n,name:c,global:t}),i=n.type,o=l?l._sentryId:void 0),clearTimeout(r),r=s.WINDOW.setTimeout(()=>{o=void 0,i=void 0},1e3)}}t.addClickKeypressInstrumentationHandler=function(e){a.addHandler("dom",e),a.maybeInstrument("dom",l)},t.instrumentDOM=l},27544:function(e,t,n){let r;Object.defineProperty(t,"__esModule",{value:!0});let i=n(94628),o=n(32460);function a(){if(!i.supportsHistory())return;let e=o.WINDOW.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=r,t=String(n);r=t,i.triggerHandlers("history",{from:e,to:t})}return e.apply(this,t)}}o.WINDOW.onpopstate=function(...t){let n=o.WINDOW.location.href,a=r;if(r=n,i.triggerHandlers("history",{from:a,to:n}),e)try{return e.apply(this,t)}catch(e){}},i.fill(o.WINDOW.history,"pushState",t),i.fill(o.WINDOW.history,"replaceState",t)}t.addHistoryInstrumentationHandler=function(e){let t="history";i.addHandler(t,e),i.maybeInstrument(t,a)}},35238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(32460),o="__sentry_xhr_v3__";function a(){if(!i.WINDOW.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let i=1e3*r.timestampInSeconds(),a=r.isString(n[0])?n[0].toUpperCase():void 0,s=function(e){if(r.isString(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!a||!s)return e.apply(t,n);t[o]={method:a,url:s,request_headers:{}},"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let l=()=>{let e=t[o];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}let n={endTimestamp:1e3*r.timestampInSeconds(),startTimestamp:i,xhr:t};r.triggerHandlers("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(l(),e.apply(t,n))}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[i,a]=n,s=t[o];return s&&r.isString(i)&&r.isString(a)&&(s.request_headers[i.toLowerCase()]=a),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let i=t[o];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);let a={startTimestamp:1e3*r.timestampInSeconds(),xhr:t};return r.triggerHandlers("xhr",a),e.apply(t,n)}})}t.SENTRY_XHR_DATA_KEY=o,t.addXhrInstrumentationHandler=function(e){r.addHandler("xhr",e),r.maybeInstrument("xhr",a)},t.instrumentXHR=a},21311:function(e,t,n){let r,i;Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(94628),s=n(67157),l=n(32460),c=n(43260),u=n(69761),d=n(24860),p=n(62152),f=n(86410),h=n(56644),m=0,g={};function y(e,t,n,r,i){let a=f.getNavigationEntry(),s=i+Math.max(n,d.msToSec(a?a.requestStart:0)),l=i+n,c={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};return s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),d.startAndEndSpan(e,s,l+r,{name:t.name,op:t.entryType,attributes:c}),s}function _(e,t,n,r,i,a){let s=a?t[a]:t[`${n}End`],l=t[`${n}Start`];l&&s&&d.startAndEndSpan(e,r+d.msToSec(l),r+d.msToSec(s),{op:`browser.${i||n}`,name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function v(e,t,n,r,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let c=a.parseUrl(n),u={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};b(u,t,"transferSize","http.response_transfer_size"),b(u,t,"encodedBodySize","http.response_content_length"),b(u,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(u["resource.render_blocking_status"]=t.renderBlockingStatus),c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop()),c.host&&(u["server.address"]=c.host),u["url.same_origin"]=n.includes(l.WINDOW.location.origin);let p=s+r;d.startAndEndSpan(e,p,p+i,{name:n.replace(l.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:u})}function b(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}t._addMeasureSpans=y,t._addResourceSpans=v,t.addPerformanceEntries=function(e,t){let n=d.getBrowserPerformanceAPI();if(!n||!l.WINDOW.performance.getEntries||!a.browserPerformanceTimeOrigin)return;s.DEBUG_BUILD&&a.logger.log("[Tracing] Adding & adjusting spans using Performance API");let c=d.msToSec(a.browserPerformanceTimeOrigin),u=n.getEntries(),{op:b,start_timestamp:S}=o.spanToJSON(e);if(u.slice(m).forEach(t=>{let n=d.msToSec(t.startTime),r=d.msToSec(Math.max(0,t.duration));if("navigation"!==b||!S||!(c+n<S))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{_(e,t,n,c)}),_(e,t,"secureConnection",c,"TLS/SSL","connectEnd"),_(e,t,"fetch",c,"cache","domainLookupStart"),_(e,t,"domainLookup",c,"DNS"),function(e,t,n){let r=n+d.msToSec(t.requestStart),i=n+d.msToSec(t.responseEnd),a=n+d.msToSec(t.responseStart);t.responseEnd&&(d.startAndEndSpan(e,r,i,{op:"browser.request",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),d.startAndEndSpan(e,a,i,{op:"browser.response",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,c);break;case"mark":case"paint":case"measure":{y(e,t,n,r,c);let i=h.getVisibilityWatcher(),o=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&o&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding FP"),g.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&o&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding FCP"),g.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":v(e,t,t.name,n,r,c)}}),m=Math.max(u.length-1,0),function(e){let t=l.WINDOW.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),d.isMeasurementValue(n.rtt)&&(g["connection.rtt"]={value:n.rtt,unit:"millisecond"})),d.isMeasurementValue(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),d.isMeasurementValue(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===b){(function(e){let t=f.getNavigationEntry();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(g);let n=g["mark.fid"];n&&g.fid&&(d.startAndEndSpan(e,n.value,n.value+d.msToSec(g.fid.value),{name:"first input delay",op:"ui.action",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),delete g["mark.fid"]),"fcp"in g&&t.recordClsOnPageloadSpan||delete g.cls,Object.entries(g).forEach(([e,t])=>{o.setMeasurement(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",c),e.setAttribute("performance.activationStart",p.getActivationStart()),r&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding LCP Data"),r.element&&e.setAttribute("lcp.element",a.htmlTreeAsString(r.element)),r.id&&e.setAttribute("lcp.id",r.id),r.url&&e.setAttribute("lcp.url",r.url.trim().slice(0,200)),e.setAttribute("lcp.size",r.size)),i&&i.sources&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding CLS Data"),i.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,a.htmlTreeAsString(t.node))))}r=void 0,i=void 0,g={}},t.startTrackingInteractions=function(){u.addPerformanceInstrumentationHandler("event",({entries:e})=>{if(o.getActiveSpan()){for(let t of e)if("click"===t.name){let e=d.msToSec(a.browserPerformanceTimeOrigin+t.startTime),n=d.msToSec(t.duration),r={name:a.htmlTreeAsString(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=a.getComponentName(t.target);i&&(r.attributes["ui.component_name"]=i);let s=o.startInactiveSpan(r);s&&s.end(e+n)}}})},t.startTrackingLongAnimationFrames=function(){new PerformanceObserver(e=>{if(o.getActiveSpan())for(let t of e.getEntries()){if(!t.scripts[0])continue;let e=d.msToSec(a.browserPerformanceTimeOrigin+t.startTime),n=d.msToSec(t.duration),r={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:i,invokerType:s,sourceURL:l,sourceFunctionName:c,sourceCharPosition:u}=t.scripts[0];r["browser.script.invoker"]=i,r["browser.script.invoker_type"]=s,l&&(r["code.filepath"]=l),c&&(r["code.function"]=c),-1!==u&&(r["browser.script.source_char_position"]=u);let p=o.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r});p&&p.end(e+n)}}).observe({type:"long-animation-frame",buffered:!0})},t.startTrackingLongTasks=function(){u.addPerformanceInstrumentationHandler("longtask",({entries:e})=>{if(o.getActiveSpan())for(let t of e){let e=d.msToSec(a.browserPerformanceTimeOrigin+t.startTime),n=d.msToSec(t.duration),r=o.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}})},t.startTrackingWebVitals=function({recordClsStandaloneSpans:e}){let t=d.getBrowserPerformanceAPI();if(t&&a.browserPerformanceTimeOrigin){t.mark&&l.WINDOW.performance.mark("sentry-tracing-init");let n=u.addFidInstrumentationHandler(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=d.msToSec(a.browserPerformanceTimeOrigin),r=d.msToSec(t.startTime);s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding FID"),g.fid={value:e.value,unit:"millisecond"},g["mark.fid"]={value:n+r,unit:"second"}}),o=u.addLcpInstrumentationHandler(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding LCP"),g.lcp={value:e.value,unit:"millisecond"},r=t)},!0),p=u.addTtfbInstrumentationHandler(({metric:e})=>{e.entries[e.entries.length-1]&&(s.DEBUG_BUILD&&a.logger.log("[Measurements] Adding TTFB"),g.ttfb={value:e.value,unit:"millisecond"})}),f=e?c.trackClsAsStandaloneSpan():u.addClsInstrumentationHandler(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(s.DEBUG_BUILD&&a.logger.log(`[Measurements] Adding CLS ${e.value}`),g.cls={value:e.value,unit:""},i=t)},!0);return()=>{n(),o(),p(),f&&f()}}return()=>void 0}},43260:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(94628),a=n(67157),s=n(69761),l=n(24860),c=n(4528);t.trackClsAsStandaloneSpan=function(){let e,t,n=0;if(!function(){try{return r([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let u=!1;function d(){u||(u=!0,t&&function(e,t,n){a.DEBUG_BUILD&&o.logger.log(`Sending CLS span (${e})`);let s=l.msToSec((o.browserPerformanceTimeOrigin||0)+(r([t,"optionalAccess",e=>e.startTime])||0)),c=i.getCurrentScope().getScopeData().transactionName,u=t?o.htmlTreeAsString(r([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",d=o.dropUndefinedKeys({[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),p=l.startStandaloneWebVitalSpan({name:u,transaction:c,attributes:d,startTime:s});r([p,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e})]),r([p,"optionalAccess",e=>e.end,"call",e=>e(s)])}(n,e,t),p())}let p=s.addClsInstrumentationHandler(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);c.onHidden(()=>{d()}),setTimeout(()=>{let e=r([i.getClient(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",()=>{d(),e&&e()})]),n=i.getActiveSpan(),o=n&&i.getRootSpan(n),a=o&&i.spanToJSON(o);a&&"pageload"===a.op&&(t=o.spanContext().spanId)},0)}},70785:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(94628),a=n(69761),s=n(24860),l=[],c=new Map,u={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};t.registerInpInteractionListener=function(e){let t=({entries:e})=>{let t=i.getActiveSpan(),n=t&&i.getRootSpan(t);e.forEach(e=>{if(!a.isPerformanceEventTiming(e)||!n)return;let t=e.interactionId;if(!(null==t||c.has(t))){if(l.length>10){let e=l.shift();c.delete(e)}l.push(t),c.set(t,n)}})};a.addPerformanceInstrumentationHandler("event",t),a.addPerformanceInstrumentationHandler("first-input",t)},t.startTrackingINP=function(){if(s.getBrowserPerformanceAPI()&&o.browserPerformanceTimeOrigin){let e=a.addInpInstrumentationHandler(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&u[t.name]);if(!t)return;let{interactionId:n}=t,a=u[t.name],l=s.msToSec(o.browserPerformanceTimeOrigin+t.startTime),d=s.msToSec(e.value),p=i.getActiveSpan(),f=p?i.getRootSpan(p):void 0,h=(null!=n?c.get(n):void 0)||f,m=h?i.spanToJSON(h).description:i.getCurrentScope().getScopeData().transactionName,g=o.htmlTreeAsString(t.target),y=o.dropUndefinedKeys({[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[i.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),_=s.startStandaloneWebVitalSpan({name:g,transaction:m,attributes:y,startTime:l});r([_,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value})]),r([_,"optionalAccess",e=>e.end,"call",e=>e(l+d)])});return()=>{e()}}return()=>void 0}},69761:function(e,t,n){let r,i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0});let l=n(94628),c=n(67157),u=n(54228),d=n(2016),p=n(96889),f=n(27014),h=n(22607),m=n(95671),g={},y={};function _(e,t){let n=g[e];if(n&&n.length)for(let r of n)try{r(t)}catch(t){c.DEBUG_BUILD&&l.logger.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${l.getFunctionName(r)}
Error:`,t)}}function v(){return u.onCLS(e=>{_("cls",{metric:e}),r=e},{reportAllChanges:!0})}function b(){return d.onFID(e=>{_("fid",{metric:e}),i=e})}function S(){return f.onLCP(e=>{_("lcp",{metric:e}),o=e},{reportAllChanges:!0})}function E(){return m.onTTFB(e=>{_("ttfb",{metric:e}),a=e})}function T(){return p.onINP(e=>{_("inp",{metric:e}),s=e})}function w(e,t,n,r,i=!1){let o;return I(e,t),y[e]||(o=n(),y[e]=!0),r&&t({metric:r}),k(e,t,i?o:void 0)}function I(e,t){g[e]=g[e]||[],g[e].push(t)}function k(e,t,n){return()=>{n&&n();let r=g[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}t.addClsInstrumentationHandler=function(e,t=!1){return w("cls",e,v,r,t)},t.addFidInstrumentationHandler=function(e){return w("fid",e,b,i)},t.addInpInstrumentationHandler=function(e){return w("inp",e,T,s)},t.addLcpInstrumentationHandler=function(e,t=!1){return w("lcp",e,S,o,t)},t.addPerformanceInstrumentationHandler=function(e,t){return I(e,t),y[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),h.observe(e,t=>{_(e,{entries:t})},t)}(e),y[e]=!0),k(e,t)},t.addTtfbInstrumentationHandler=function(e){return w("ttfb",e,E,a)},t.isPerformanceEventTiming=function(e){return"duration"in e}},24860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(32460);t.getBrowserPerformanceAPI=function(){return i.WINDOW&&i.WINDOW.addEventListener&&i.WINDOW.performance},t.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},t.msToSec=function(e){return e/1e3},t.startAndEndSpan=function(e,t,n,{...i}){let o=r.spanToJSON(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r.withActiveSpan(e,()=>{let e=r.startInactiveSpan({startTime:t,...i});return e&&e.end(n),e})},t.startStandaloneWebVitalSpan=function(e){let t;let n=r.getClient();if(!n)return;let{name:o,transaction:a,attributes:s,startTime:l}=e,{release:c,environment:u}=n.getOptions(),d=n.getIntegrationByName("Replay"),p=d&&d.getReplayId(),f=r.getCurrentScope(),h=f.getUser(),m=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=f.getScopeData().contexts.profile.profile_id}catch(e){}let g={release:c,environment:u,user:m||void 0,profile_id:t||void 0,replay_id:p||void 0,transaction:a,"user_agent.original":i.WINDOW.navigator&&i.WINDOW.navigator.userAgent,...s};return r.startInactiveSpan({name:o,attributes:g,startTime:l,experimental:{standalone:!0}})}},54228:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(38905),i=n(16016),o=n(22607),a=n(4528),s=n(74039),l=n(41936),c=[.1,.25];t.CLSThresholds=c,t.onCLS=(e,t={})=>{l.onFCP(s.runOnce(()=>{let n;let s=i.initMetric("CLS",0),l=0,u=[],d=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=u[0],n=u[u.length-1];l&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(l+=e.value,u.push(e)):(l=e.value,u=[e])}}),l>s.value&&(s.value=l,s.entries=u,n())},p=o.observe("layout-shift",d);p&&(n=r.bindReporter(e,s,c,t.reportAllChanges),a.onHidden(()=>{d(p.takeRecords()),n(!0)}),setTimeout(n,0))}))}},2016:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(38905),i=n(56644),o=n(16016),a=n(22607),s=n(4528),l=n(74039),c=n(22564),u=[100,300];t.FIDThresholds=u,t.onFID=(e,t={})=>{c.whenActivated(()=>{let n;let c=i.getVisibilityWatcher(),d=o.initMetric("FID"),p=e=>{e.startTime<c.firstHiddenTime&&(d.value=e.processingStart-e.startTime,d.entries.push(e),n(!0))},f=e=>{e.forEach(p)},h=a.observe("first-input",f);n=r.bindReporter(e,d,u,t.reportAllChanges),h&&s.onHidden(l.runOnce(()=>{f(h.takeRecords()),h.disconnect()}))})}},96889:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460),i=n(38905),o=n(16016),a=n(22607),s=n(4528),l=n(304),c=n(22564),u=[200,500],d=()=>l.getInteractionCount()-0,p=[],f={},h=e=>{let t=p[p.length-1],n=f[e.interactionId];if(n||p.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};f[t.id]=t,p.push(t)}p.sort((e,t)=>t.latency-e.latency),p.splice(10).forEach(e=>{delete f[e.id]})}},m=()=>{let e=Math.min(p.length-1,Math.floor(d()/50));return p[e]};t.INPThresholds=u,t.onINP=(e,t={})=>{c.whenActivated(()=>{let n;l.initInteractionCountPolyfill();let c=o.initMetric("INP"),f=e=>{e.forEach(e=>{e.interactionId&&h(e),"first-input"!==e.entryType||p.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||h(e)});let t=m();t&&t.latency!==c.value&&(c.value=t.latency,c.entries=t.entries,n())},g=a.observe("event",f,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=i.bindReporter(e,c,u,t.reportAllChanges),g&&("PerformanceEventTiming"in r.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&g.observe({type:"first-input",buffered:!0}),s.onHidden(()=>{f(g.takeRecords()),c.value<0&&d()>0&&(c.value=0,c.entries=[]),n(!0)}))})}},27014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460),i=n(38905),o=n(62152),a=n(56644),s=n(16016),l=n(22607),c=n(4528),u=n(74039),d=n(22564),p=[2500,4e3],f={};t.LCPThresholds=p,t.onLCP=(e,t={})=>{d.whenActivated(()=>{let n;let d=a.getVisibilityWatcher(),h=s.initMetric("LCP"),m=e=>{let t=e[e.length-1];t&&t.startTime<d.firstHiddenTime&&(h.value=Math.max(t.startTime-o.getActivationStart(),0),h.entries=[t],n())},g=l.observe("largest-contentful-paint",m);if(g){n=i.bindReporter(e,h,p,t.reportAllChanges);let o=u.runOnce(()=>{f[h.id]||(m(g.takeRecords()),g.disconnect(),f[h.id]=!0,n(!0))});["keydown","click"].forEach(e=>{r.WINDOW.document&&addEventListener(e,()=>setTimeout(o,0),!0)}),c.onHidden(o)}})}},38905:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good";t.bindReporter=(e,t,r,i)=>{let o,a;return s=>{t.value>=0&&(s||i)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,t.rating=n(t.value,r),e(t))}}},88069:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`},62152:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(86410);t.getActivationStart=()=>{let e=r.getNavigationEntry();return e&&e.activationStart||0}},86410:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460);t.getNavigationEntry=()=>r.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},56644:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460),i=-1,o=()=>{i="hidden"!==r.WINDOW.document.visibilityState||r.WINDOW.document.prerendering?1/0:0},a=e=>{"hidden"===r.WINDOW.document.visibilityState&&i>-1&&(i="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",a,!0),removeEventListener("prerenderingchange",a,!0))},s=()=>{addEventListener("visibilitychange",a,!0),addEventListener("prerenderingchange",a,!0)};t.getVisibilityWatcher=()=>(r.WINDOW.document&&i<0&&(o(),s()),{get firstHiddenTime(){return i}})},16016:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460),i=n(88069),o=n(62152),a=n(86410);t.initMetric=(e,t)=>{let n=a.getNavigationEntry(),s="navigate";return n&&(r.WINDOW.document&&r.WINDOW.document.prerendering||o.getActivationStart()>0?s="prerender":r.WINDOW.document&&r.WINDOW.document.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:i.generateUniqueID(),navigationType:s}}},22607:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.observe=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}}},4528:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460);t.onHidden=e=>{let t=t=>{("pagehide"===t.type||r.WINDOW.document&&"hidden"===r.WINDOW.document.visibilityState)&&e(t)};r.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},304:function(e,t,n){let r;Object.defineProperty(t,"__esModule",{value:!0});let i=n(22607),o=0,a=1/0,s=0,l=e=>{e.forEach(e=>{e.interactionId&&(a=Math.min(a,e.interactionId),o=(s=Math.max(s,e.interactionId))?(s-a)/7+1:0)})};t.getInteractionCount=()=>r?o:performance.interactionCount||0,t.initInteractionCountPolyfill=()=>{"interactionCount"in performance||r||(r=i.observe("event",l,{type:"event",buffered:!0,durationThreshold:0}))}},74039:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.runOnce=e=>{let t=!1;return n=>{t||(e(n),t=!0)}}},22564:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460);t.whenActivated=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},41936:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(38905),i=n(62152),o=n(56644),a=n(16016),s=n(22607),l=n(22564),c=[1800,3e3];t.FCPThresholds=c,t.onFCP=(e,t={})=>{l.whenActivated(()=>{let n;let l=o.getVisibilityWatcher(),u=a.initMetric("FCP"),d=s.observe("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(d.disconnect(),e.startTime<l.firstHiddenTime&&(u.value=Math.max(e.startTime-i.getActivationStart(),0),u.entries.push(e),n(!0)))})});d&&(n=r.bindReporter(e,u,c,t.reportAllChanges))})}},95671:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(32460),i=n(38905),o=n(62152),a=n(86410),s=n(16016),l=n(22564),c=[800,1800],u=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?l.whenActivated(()=>u(e)):r.WINDOW.document&&"complete"!==r.WINDOW.document.readyState?addEventListener("load",()=>u(e),!0):setTimeout(e,0)};t.TTFBThresholds=c,t.onTTFB=(e,t={})=>{let n=s.initMetric("TTFB"),r=i.bindReporter(e,n,c,t.reportAllChanges);u(()=>{let e=a.getNavigationEntry();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-o.getActivationStart(),0),n.entries=[e],r(!0)}})}},32460:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628).GLOBAL_OBJ;t.WINDOW=r},94647:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=i.GLOBAL_OBJ,a=o.document,s=o.navigator,l="Report a Bug",c="Cancel",u="Send Bug Report",d="Confirm",p="Report a Bug",f="your.email@example.org",h="Email",m="What's the bug? What did you expect?",g="Description",y="Your Name",_="Name",v="Thank you for your report!",b="(required)",S="Add a screenshot",E="Remove screenshot",T=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let n=r.getClient();if(!n)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&r.getCurrentScope().setTags(e.tags);let o=r.captureFeedback({source:"api",url:i.getLocationHref(),...e},t);return new Promise((e,t)=>{let r=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),5e3),i=n.on("afterSendEvent",(n,a)=>n.event_id!==o?void 0:(clearTimeout(r),i(),a&&"number"==typeof a.statusCode&&a.statusCode>=200&&a.statusCode<300&&e(o),a&&"number"==typeof a.statusCode&&0===a.statusCode)?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):a&&"number"==typeof a.statusCode&&403===a.statusCode?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker"))})};function w(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function I(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let k="rgba(88, 74, 192, 1)",O={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:k,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},A={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:k,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function C(e){return`
  --foreground: ${e.foreground};
  --background: ${e.background};
  --accent-foreground: ${e.accentForeground};
  --accent-background: ${e.accentBackground};
  --success-color: ${e.successColor};
  --error-color: ${e.errorColor};
  --border: ${e.border};
  --box-shadow: ${e.boxShadow};
  --outline: ${e.outline};
  --interactive-filter: ${e.interactiveFilter};
  `}var N,D,x,R,M,P,L,B={},U=[],F=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,j=Array.isArray;function $(e,t){for(var n in t)e[n]=t[n];return e}function W(e){var t=e.parentNode;t&&t.removeChild(e)}function G(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?N.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return H(e,a,r,i,null)}function H(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++x:i,__i:-1,__u:0};return null==i&&null!=D.vnode&&D.vnode(o),o}function q(e){return e.children}function z(e,t){this.props=e,this.context=t}function V(e,t){if(null==t)return e.__?V(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?V(e):null}function K(e){(!e.__d&&(e.__d=!0)&&R.push(e)&&!Y.__r++||M!==D.debounceRendering)&&((M=D.debounceRendering)||P)(Y)}function Y(){var e,t,n,r=[],i=[];for(R.sort(L);e=R.shift();)e.__d&&(n=R.length,t=function(e,t,n){var r,i=e.__v,o=i.__e,a=e.__P;if(a)return(r=$({},i)).__v=i.__v+1,D.vnode&&D.vnode(r),et(a,r,i,e.__n,void 0!==a.ownerSVGElement,32&i.__u?[o]:null,t,null==o?V(i):o,!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,i)||t,0===n||R.length>n?(en(r,t,i),i.length=r.length=0,t=void 0,R.sort(L)):t&&D.__c&&D.__c(t,U));t&&en(r,t,i),Y.__r=0}function J(e,t,n,r,i,o,a,s,l,c,u){var d,p,f,h,m,g=r&&r.__k||U,y=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?H(null,i,null,null,i):j(i)?H(q,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?H(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return -1}(i,n,a=r+d,u),i.__i=s,o=null,-1!==s&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(i.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=V(o)),ei(o,o,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(o=n[r])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=V(o)),ei(o,o))}(n,t,g),l=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?B:g[f.__i]||B,f.__i=d,et(e,f,p,i,o,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&er(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,n,r){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType);return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=m}function Q(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||F.test(t)?n:n+"px"}function X(e,t,n,r,i){var o;e:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Q(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Q(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?ee:Z,o)):e.removeEventListener(t,o?ee:Z,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Z(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(D.event?D.event(e):e)}}function ee(e){if(this.l)return this.l[e.type+!0](D.event?D.event(e):e)}function et(e,t,n,r,i,o,a,s,l,c){var u,d,p,f,h,m,g,y,_,v,b,S,E,T,w,I=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=D.__b)&&u(t);e:if("function"==typeof I)try{if(y=t.props,_=(u=I.contextType)&&r[u.__c],v=u?_?_.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in I&&I.prototype.render?t.__c=d=new I(y,v):(t.__c=d=new z(y,v),d.constructor=I,d.render=eo),_&&_.sub(d),d.props=y,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=$({},d.__s)),$(d.__s,I.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==I.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,v),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=v,d.props=y,d.__P=e,d.__e=!1,S=D.__r,E=0,"prototype"in I&&I.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,S&&S(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(r=$($({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),J(e,j(w=null!=u&&u.type===q&&null==u.key?u.props.children:u)?w:[w],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),D.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,p,f,h,m,g=n.props,y=t.props,_=t.type;if("svg"===_&&(i=!0),null!=o){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!_&&(_?f.localName===_:3===f.nodeType)){e=f,o[c]=null;break}}if(null==e){if(null===_)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),o=null,s=!1}if(null===_)g===y||s&&e.data===y||(e.data=y);else{if(o=o&&N.call(e.childNodes),g=n.props||B,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)f=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=f:"key"===c||c in y||X(e,c,null,f,i));for(c in y)f=y[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?m=f:"key"===c||s&&"function"!=typeof f||g[c]===f||X(e,c,f,g[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),J(e,j(p)?p:[p],t,n,r,i&&"foreignObject"!==_,o,a,o?o[0]:n.__k&&V(n,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&W(o[c]);s||(c="value",void 0===h||h===e[c]&&("progress"!==_||h)&&("option"!==_||h===g[c])||X(e,c,h,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&X(e,c,m,g[c],!1))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=D.diffed)&&u(t)}function en(e,t,n){for(var r=0;r<n.length;r++)er(n[r],n[++r],n[++r]);D.__c&&D.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){D.__e(e,t.__v)}})}function er(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){D.__e(e,n)}}function ei(e,t,n){var r,i;if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||er(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){D.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ei(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||W(e.__e),e.__=e.__e=e.__d=void 0}function eo(e,t,n){return this.constructor(e,n)}N=U.slice,D={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},x=0,z.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=$({},this.state),"function"==typeof e&&(e=e($({},n),this.props)),e&&$(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),K(this))},z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),K(this))},z.prototype.render=q,R=[],P="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,L=function(e,t){return e.__v.__b-t.__v.__b},Y.__r=0;var ea,es,el,ec,eu=0,ed=[],ep=[],ef=D,eh=ef.__b,em=ef.__r,eg=ef.diffed,ey=ef.__c,e_=ef.unmount,ev=ef.__;function eb(e,t){ef.__h&&ef.__h(es,e,eu||t),eu=0;var n=es.__H||(es.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ep}),n.__[e]}function eS(e){return eu=1,eE(eD,e)}function eE(e,t,n){var r=eb(ea++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):eD(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=es,!es.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};es.u=!0;var o=es.shouldComponentUpdate,a=es.componentWillUpdate;es.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},es.shouldComponentUpdate=i}return r.__N||r.__}function eT(e,t){var n=eb(ea++,4);!ef.__s&&eN(n.__H,t)&&(n.__=e,n.i=t,es.__h.push(n))}function ew(e,t){var n=eb(ea++,7);return eN(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function eI(e,t){return eu=8,ew(function(){return e},t)}function ek(){for(var e;e=ed.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eA),e.__H.__h.forEach(eC),e.__H.__h=[]}catch(t){e.__H.__h=[],ef.__e(t,e.__v)}}ef.__b=function(e){es=null,eh&&eh(e)},ef.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ev&&ev(e,t)},ef.__r=function(e){em&&em(e),ea=0;var t=(es=e.__c).__H;t&&(el===es?(t.__h=[],es.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ep,e.__N=e.i=void 0})):(t.__h.forEach(eA),t.__h.forEach(eC),t.__h=[],ea=0)),el=es},ef.diffed=function(e){eg&&eg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ed.push(t)&&ec===ef.requestAnimationFrame||((ec=ef.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),eO&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eO&&(t=requestAnimationFrame(n))})(ek)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ep&&(e.__=e.__V),e.i=void 0,e.__V=ep})),el=es=null},ef.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eA),e.__h=e.__h.filter(function(e){return!e.__||eC(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ef.__e(n,e.__v)}}),ey&&ey(e,t)},ef.unmount=function(e){e_&&e_(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eA(e)}catch(e){t=e}}),n.__H=void 0,t&&ef.__e(t,n.__v))};var eO="function"==typeof requestAnimationFrame;function eA(e){var t=es,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),es=t}function eC(e){var t=es;e.__c=e.__(),es=t}function eN(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function eD(e,t){return"function"==typeof t?t(e):t}let ex={__proto__:null,useCallback:eI,useContext:function(e){var t=es.context[e.__c],n=eb(ea++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(es)),t.props.value):e.__},useDebugValue:function(e,t){ef.useDebugValue&&ef.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=eb(ea++,3);!ef.__s&&eN(n.__H,t)&&(n.__=e,n.i=t,es.__H.__h.push(n))},useErrorBoundary:function(e){var t=eb(ea++,10),n=eS();return t.__=e,es.componentDidCatch||(es.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=eb(ea++,11);if(!e.__){for(var t=es.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){eu=6,eT(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:eT,useMemo:ew,useReducer:eE,useRef:function(e){return eu=5,ew(function(){return{current:e}},[])},useState:eS},eR="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function eM({options:e}){let t=ew(()=>({__html:function(){let e=e=>a.createElementNS("http://www.w3.org/2000/svg",e),t=I(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=I(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}().outerHTML}),[]);return G("h2",{class:"dialog__header",__self:this,__source:{fileName:eR,lineNumber:16}},e.formTitle,e.showBranding?G("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:eR,lineNumber:19}}):null)}let eP="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function eL(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function eB({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail:s,showName:l,screenshotInput:c}){let{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:y,messageLabel:_,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:E,isRequiredLabel:T}=e,[w,I]=eS(null),[k,O]=eS(!1),A=c&&c.input,[C,N]=eS(null),D=eI(e=>{N(e),O(!1)},[]),x=eI(e=>{let t=function(e,t){let n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:h,isEmailRequired:g,isNameRequired:y,messageLabel:_,nameLabel:b});return t.length>0?I(`Please enter in the following required fields: ${t.join(", ")}`):I(null),0===t.length},[h,g,y,_,b]);return G("form",{class:"form",onSubmit:eI(async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (c&&k?c.value():void 0),r={name:eL(t,"name"),email:eL(t,"email"),message:eL(t,"message"),attachments:n?[n]:void 0};if(!x(r))return;try{await i({name:r.name,email:r.email,message:r.message,source:"widget",tags:u},{attachments:r.attachments}),o(r)}catch(e){I(e),a(e)}}catch(e){}},[c&&k,o,a]),__self:this,__source:{fileName:eP,lineNumber:144}},A&&k?G(A,{onError:D,__self:this,__source:{fileName:eP,lineNumber:146}}):null,G("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:eP,lineNumber:149}},G("div",{class:"form__top",__self:this,__source:{fileName:eP,lineNumber:150}},w?G("div",{class:"form__error-container",__self:this,__source:{fileName:eP,lineNumber:151}},w):null,l?G("label",{for:"name",class:"form__label",__self:this,__source:{fileName:eP,lineNumber:154}},G(eU,{label:b,isRequiredLabel:T,isRequired:y,__self:this,__source:{fileName:eP,lineNumber:155}}),G("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:y,type:"text",__self:this,__source:{fileName:eP,lineNumber:156}})):G("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:eP,lineNumber:167}}),s?G("label",{for:"email",class:"form__label",__self:this,__source:{fileName:eP,lineNumber:171}},G(eU,{label:h,isRequiredLabel:T,isRequired:g,__self:this,__source:{fileName:eP,lineNumber:172}}),G("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email",__self:this,__source:{fileName:eP,lineNumber:173}})):G("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:eP,lineNumber:184}}),G("label",{for:"message",class:"form__label",__self:this,__source:{fileName:eP,lineNumber:187}},G(eU,{label:_,isRequiredLabel:T,isRequired:!0,__self:this,__source:{fileName:eP,lineNumber:188}}),G("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5,__self:this,__source:{fileName:eP,lineNumber:189}})),A?G("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:eP,lineNumber:201}},G("button",{class:"btn btn--default",type:"button",onClick:()=>{N(null),O(e=>!e)},__self:this,__source:{fileName:eP,lineNumber:202}},k?p:d),C?G("div",{class:"form__error-container",__self:this,__source:{fileName:eP,lineNumber:212}},C.message):null):null),G("div",{class:"btn-group",__self:this,__source:{fileName:eP,lineNumber:216}},G("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:eP,lineNumber:217}},E),G("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:eP,lineNumber:220}},f))))}function eU({label:e,isRequired:t,isRequiredLabel:n}){return G("span",{class:"form__label__text",__self:this,__source:{fileName:eP,lineNumber:239}},e,t&&G("span",{class:"form__label__text--required",__self:this,__source:{fileName:eP,lineNumber:241}},n))}let eF="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function ej({open:e,onFormSubmitted:t,...n}){let r=n.options,i=ew(()=>({__html:function(){let e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=I(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=I(e("g"),{clipPath:"url(#clip0_57_156)"}),r=I(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=I(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);let a=e("defs"),s=I(e("clipPath"),{id:"clip0_57_156"}),l=I(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return s.appendChild(l),a.appendChild(s),t.appendChild(a).appendChild(s).appendChild(l),t}().outerHTML}),[]),[a,s]=eS(null),l=eI(()=>{a&&(clearTimeout(a),s(null)),t()},[a]),c=eI(e=>{n.onSubmitSuccess(e),s(setTimeout(()=>{t(),s(null)},5e3))},[t]);return G(q,{__self:this,__source:{fileName:eF,lineNumber:48}},a?G("div",{class:"success__position",onClick:l,__self:this,__source:{fileName:eF,lineNumber:50}},G("div",{class:"success__content",__self:this,__source:{fileName:eF,lineNumber:51}},r.successMessageText,G("span",{class:"success__icon",dangerouslySetInnerHTML:i,__self:this,__source:{fileName:eF,lineNumber:53}}))):G("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:eF,lineNumber:57}},G("div",{class:"dialog__position",__self:this,__source:{fileName:eF,lineNumber:58}},G("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:eF,lineNumber:59}},G(eM,{options:r,__self:this,__source:{fileName:eF,lineNumber:66}}),G(eB,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:eF,lineNumber:67}})))))}let e$=`
.dialog {
  position: fixed;
  z-index: var(--z-index);
  margin: 0;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100vh;
  width: 100vw;

  color: var(--dialog-color, var(--foreground));
  fill: var(--dialog-color, var(--foreground));
  line-height: 1.75em;

  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  inset: 0;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.dialog__position {
  position: fixed;
  z-index: var(--z-index);
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  display: flex;
  max-height: calc(100vh - (2 * var(--page-margin)));
}
@media (max-width: 600px) {
  .dialog__position {
    inset: var(--page-margin);
    padding: 0;
  }
}

.dialog__position:has(.editor) {
  inset: var(--page-margin);
  padding: 0;
}

.dialog:not([open]) {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.dialog:not([open]) .dialog__content {
  transform: translate(0, -16px) scale(0.98);
}

.dialog__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--dialog-padding, 24px);
  max-width: 100%;
  width: 100%;
  max-height: 100%;
  overflow: auto;

  background: var(--dialog-background, var(--background));
  border-radius: var(--dialog-border-radius, 20px);
  border: var(--dialog-border, var(--border));
  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
  transform: translate(0, 0) scale(1);
  transition: transform 0.2s ease-in-out;
}
`,eW=`
.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--dialog-header-weight, 600);
  margin: 0;
}

.brand-link {
  display: inline-flex;
}
.brand-link:focus-visible {
  outline: var(--outline);
}
`,eG=`
.form {
  display: flex;
  overflow: auto;
  flex-direction: row;
  gap: 16px;
  flex: 1 0;
}

.form__right {
  flex: 0 0 auto;
  width: var(--form-width, 272px);
  display: flex;
  overflow: auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 600px) {
  .form__right {
    width: var(--form-width, 100%);
  }
}

.form__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__error-container {
  color: var(--error-color);
  fill: var(--error-color);
}

.form__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0px;
}

.form__label__text {
  display: flex;
  gap: 4px;
  align-items: center;
}

.form__label__text--required {
  font-size: 0.85em;
}

.form__input {
  font-family: inherit;
  line-height: inherit;
  background: transparent;
  box-sizing: border-box;
  border: var(--input-border, var(--border));
  border-radius: var(--input-border-radius, 6px);
  color: var(--input-color, inherit);
  fill: var(--input-color, inherit);
  font-size: var(--input-font-size, inherit);
  font-weight: var(--input-font-weight, 500);
  padding: 6px 12px;
}

.form__input::placeholder {
  opacity: 0.65;
  color: var(--input-placeholder-color, inherit);
  filter: var(--interactive-filter);
}

.form__input:focus-visible {
  outline: var(--input-focus-outline, var(--outline));
}

.form__input--textarea {
  font-family: inherit;
  resize: vertical;
}

.error {
  color: var(--error-color);
  fill: var(--error-color);
}
`,eH=`
.btn-group {
  display: grid;
  gap: 8px;
}

.btn {
  line-height: inherit;
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--button-font-size, inherit);
  font-weight: var(--button-font-weight, 600);
  padding: var(--button-padding, 6px 16px);
}
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn--primary {
  color: var(--button-primary-color, var(--accent-foreground));
  fill: var(--button-primary-color, var(--accent-foreground));
  background: var(--button-primary-background, var(--accent-background));
  border: var(--button-primary-border, var(--border));
  border-radius: var(--button-primary-border-radius, 6px);
  font-weight: var(--button-primary-font-weight, 500);
}
.btn--primary:hover {
  color: var(--button-primary-hover-color, var(--accent-foreground));
  fill: var(--button-primary-hover-color, var(--accent-foreground));
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
}
.btn--primary:focus-visible {
  background: var(--button-primary-hover-background, var(--accent-background));
  filter: var(--interactive-filter);
  outline: var(--button-primary-focus-outline, var(--outline));
}

.btn--default {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-background, var(--background));
  border: var(--button-border, var(--border));
  border-radius: var(--button-border-radius, 6px);
  font-weight: var(--button-font-weight, 500);
}
.btn--default:hover {
  color: var(--button-color, var(--foreground));
  fill: var(--button-color, var(--foreground));
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
}
.btn--default:focus-visible {
  background: var(--button-hover-background, var(--background));
  filter: var(--interactive-filter);
  outline: var(--button-focus-outline, var(--outline));
}
`,eq=`
.success__position {
  position: fixed;
  inset: var(--dialog-inset);
  padding: var(--page-margin);
  z-index: var(--z-index);
}
.success__content {
  background: var(--success-background, var(--background));
  border: var(--success-border, var(--border));
  border-radius: var(--success-border-radius, 1.7em/50%);
  box-shadow: var(--success-box-shadow, var(--box-shadow));
  font-weight: var(--success-font-weight, 600);
  color: var(--success-color);
  fill: var(--success-color);
  padding: 12px 24px;
  line-height: 1.75em;

  display: grid;
  align-items: center;
  grid-auto-flow: column;
  gap: 6px;
  cursor: default;
}

.success__icon {
  display: flex;
}
`,ez="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",eV=o.devicePixelRatio,eK=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),eY=e=>{let t=e.clientHeight,n=e.clientWidth,r=e.width/e.height,i=t*r,o=t;i>n&&(i=n,o=n/r);let a=(n-i)/2,s=(t-o)/2;return{startX:a,startY:s,endX:i+a,endY:o+s}};t.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:k="sentry-feedback",autoInject:N=!0,showBranding:D=!0,isEmailRequired:x=!1,isNameRequired:R=!1,showEmail:M=!0,showName:P=!0,enableScreenshot:L=!0,useSentryUser:B={email:"email",name:"username"},tags:U,styleNonce:F,scriptNonce:j,colorScheme:$="system",themeLight:W={},themeDark:G={},addScreenshotButtonLabel:H=S,cancelButtonLabel:q=c,confirmButtonLabel:z=d,emailLabel:V=h,emailPlaceholder:K=f,formTitle:Y=p,isRequiredLabel:J=b,messageLabel:Q=g,messagePlaceholder:X=m,nameLabel:Z=_,namePlaceholder:ee=y,removeScreenshotButtonLabel:et=E,submitButtonLabel:en=u,successMessageText:er=v,triggerLabel:ei=l,triggerAriaLabel:eo="",onFormOpen:ea,onFormClose:es,onSubmitSuccess:el,onSubmitError:ec,onFormSubmitted:eu}={})=>{let ed={id:k,autoInject:N,showBranding:D,isEmailRequired:x,isNameRequired:R,showEmail:M,showName:P,enableScreenshot:L,useSentryUser:B,tags:U,styleNonce:F,scriptNonce:j,colorScheme:$,themeDark:G,themeLight:W,triggerLabel:ei,triggerAriaLabel:eo,cancelButtonLabel:q,submitButtonLabel:en,confirmButtonLabel:z,formTitle:Y,emailLabel:V,emailPlaceholder:K,messageLabel:Q,messagePlaceholder:X,nameLabel:Z,namePlaceholder:ee,successMessageText:er,isRequiredLabel:J,addScreenshotButtonLabel:H,removeScreenshotButtonLabel:et,onFormClose:es,onFormOpen:ea,onSubmitError:ec,onSubmitSuccess:el,onFormSubmitted:eu},ep=null,ef=[],eh=e=>{if(!ep){let t=a.createElement("div");t.id=String(e.id),a.body.appendChild(t),(ep=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=a.createElement("style");return i.textContent=`
:host {
  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-size: 14px;
  --z-index: 100000;

  --page-margin: 16px;
  --inset: auto 0 0 auto;
  --actor-inset: var(--inset);

  font-family: var(--font-family);
  font-size: var(--font-size);

  ${"system"!==e?"color-scheme: only light;":""}

  ${C("dark"===e?{...A,...t}:{...O,...n})}
}

${"system"===e?`
@media (prefers-color-scheme: dark) {
  :host {
    ${C({...A,...t})}
  }
}`:""}
}
`,r&&i.setAttribute("nonce",r),i}(e))}return ep},em=async(t,n,i)=>{let o=r.getClient(),a=o&&o.getIntegrationByName(t);if(a)return a;let s=(n&&n()||await e(i,j))();return o&&o.addIntegration(s),s},eg=async e=>{let r=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s.userAgent)||/Macintosh/i.test(s.userAgent)&&s.maxTouchPoints&&s.maxTouchPoints>1)&&!!isSecureContext,[i,o]=await Promise.all([em("FeedbackModal",t,"feedbackModalIntegration"),r?em("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0]);if(!i)throw Error("[Feedback] Missing feedback modal integration!");let a=i.createDialog({options:{...e,onFormClose:()=>{a&&a.close(),e.onFormClose&&e.onFormClose()},onFormSubmitted:()=>{a&&a.close(),e.onFormSubmitted&&e.onFormSubmitted()}},screenshotIntegration:r?o:void 0,sendFeedback:T,shadow:eh(e)});return a},ey=(e,t={})=>{let n=w(ed,t),r="string"==typeof e?a.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Error("Unable to attach to target element");let i=null,o=async()=>{i||(i=await eg({...n,onFormSubmitted:()=>{i&&i.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),i.appendToDom(),i.open()};r.addEventListener("click",o);let s=()=>{ef=ef.filter(e=>e!==s),i&&i.removeFromDom(),i=null,r.removeEventListener("click",o)};return ef.push(s),s},e_=(e={})=>{let t=w(ed,e),n=eh(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=a.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||l,i.appendChild(function(){let e=e=>o.document.createElementNS("http://www.w3.org/2000/svg",e),t=I(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=I(e("g"),{clipPath:"url(#clip0_57_80)"}),r=I(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let i=e("defs"),a=I(e("clipPath"),{id:"clip0_57_80"}),s=I(e("rect"),{width:"20",height:"20",fill:"white"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}()),e){let t=a.createElement("span");t.appendChild(a.createTextNode(e)),i.appendChild(t)}let s=function(e){let t=a.createElement("style");return t.textContent=`
.widget__actor {
  position: fixed;
  z-index: var(--z-index);
  margin: var(--page-margin);
  inset: var(--actor-inset);

  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;

  font-family: inherit;
  font-size: var(--font-size);
  font-weight: 600;
  line-height: 1.14em;
  text-decoration: none;

  background: var(--actor-background, var(--background));
  border-radius: var(--actor-border-radius, 1.7em/50%);
  border: var(--actor-border, var(--border));
  box-shadow: var(--actor-box-shadow, var(--box-shadow));
  color: var(--actor-color, var(--foreground));
  fill: var(--actor-color, var(--foreground));
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s ease-in-out;
  transform: translate(0, 0) scale(1);
}
.widget__actor[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(0, 16px) scale(0.98);
}

.widget__actor:hover {
  background: var(--actor-hover-background, var(--background));
  filter: var(--interactive-filter);
}

.widget__actor svg {
  width: 1.14em;
  height: 1.14em;
}

@media (max-width: 600px) {
  .widget__actor span {
    display: none;
  }
}
`,e&&t.setAttribute("nonce",e),t}(r);return{el:i,appendToDom(){n.appendChild(s),n.appendChild(i)},removeFromDom(){n.removeChild(i),n.removeChild(s)},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:F});return ey(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){i.isBrowser()&&ed.autoInject&&("loading"===a.readyState?a.addEventListener("DOMContentLoaded",()=>e_().appendToDom()):e_().appendToDom())},attachTo:ey,createWidget(e={}){let t=e_(w(ed,e));return t.appendToDom(),t},createForm:async(e={})=>eg(w(ed,e)),remove(){ep&&(ep.parentElement&&ep.parentElement.remove(),ep=null),ef.forEach(e=>e()),ef=[]}}},t.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:i})=>{let o=e.useSentryUser,s=function(){let e=r.getCurrentScope().getUser(),t=r.getIsolationScope().getUser(),n=r.getGlobalScope().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),l=a.createElement("div"),c=function(e){let t=a.createElement("style");return t.textContent=`
:host {
  --dialog-inset: var(--inset);
}

${e$}
${eW}
${eG}
${eH}
${eq}
`,e&&t.setAttribute("nonce",e),t}(e.styleNonce),u="",d={get el(){return l},appendToDom(){i.contains(c)||i.contains(l)||(i.appendChild(c),i.appendChild(l))},removeFromDom(){i.removeChild(l),i.removeChild(c),a.body.style.overflow=u},open(){f(!0),e.onFormOpen&&e.onFormOpen(),u=a.body.style.overflow,a.body.style.overflow="hidden"},close(){f(!1),a.body.style.overflow=u}},p=t&&t.createInput({h:G,hooks:ex,dialog:d,options:e}),f=t=>{var r,i,a,c,u;r=G(ej,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:o&&s&&s[o.name]||"",defaultEmail:o&&s&&s[o.email]||"",onFormClose:()=>{f(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{f(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:67}}),D.__&&D.__(r,l),a=i&&i.__k||l.__k,c=[],u=[],et(l,r=(i||l).__k=G(q,null,[r]),a||B,B,void 0!==l.ownerSVGElement,i?[i]:a?null:l.firstChild?N.call(l.childNodes):null,c,i||(a?a.__e:l.firstChild),!1,u),r.__d=void 0,en(c,r,u)};return d}}),t.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=a.createElement("canvas");return{input:function({h:e,hooks:t,imageBuffer:n,dialog:r,options:i}){let l=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:i}){e.useEffect(()=>{(async()=>{t();let e=await s.mediaDevices.getDisplayMedia({video:{width:o.innerWidth*o.devicePixelRatio,height:o.innerHeight*o.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=a.createElement("video");await new Promise((t,r)=>{i.srcObject=e,i.onloadedmetadata=()=>{n(i),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(r)}),r()})().catch(i)},[])}}({hooks:t});return function({onError:s}){let c=t.useMemo(()=>({__html:function(e){let t=a.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
.editor {
  padding: 10px;
  padding-top: 65px;
  padding-bottom: 65px;
  flex-grow: 1;

  background-color: ${n};
  background-image: repeating-linear-gradient(
      -145deg,
      transparent,
      transparent 8px,
      ${n} 8px,
      ${n} 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 15px,
      ${r} 15px,
      ${r} 16px
    );
}

.editor__canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor__canvas-container canvas {
  object-fit: contain;
  position: relative;
}

.editor__crop-btn-group {
  padding: 8px;
  gap: 8px;
  border-radius: var(--menu-border-radius, 6px);
  background: var(--button-primary-background, var(--background));
  width: 175px;
  position: absolute;
}

.editor__crop-corner {
  width: 30px;
  height: 30px;
  position: absolute;
  background: none;
  border: 3px solid #ffffff;
}

.editor__crop-corner--top-left {
  cursor: nwse-resize;
  border-right: none;
  border-bottom: none;
}
.editor__crop-corner--top-right {
  cursor: nesw-resize;
  border-left: none;
  border-bottom: none;
}
.editor__crop-corner--bottom-left {
  cursor: nesw-resize;
  border-right: none;
  border-top: none;
}
.editor__crop-corner--bottom-right {
  cursor: nwse-resize;
  border-left: none;
  border-top: none;
}
`,e&&t.setAttribute("nonce",e),t}(i.styleNonce).innerText}),[]),u=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:i}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),i(e,r)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx",lineNumber:22}})}}({h:e}),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),[h,m]=t.useState({startX:0,startY:0,endX:0,endY:0}),[g,y]=t.useState(!1),[_,v]=t.useState(!1);function b(){let e=f.current,t=eK(eY(n));if(e){e.width=t.width*eV,e.height=t.height*eV,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;let n=e.getContext("2d");n&&n.scale(eV,eV)}let r=p.current;r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),m({startX:0,startY:0,endX:t.width,endY:t.height})}function S(e,t){y(!1),v(!0);let n=E(t),r=()=>{a.removeEventListener("mousemove",n),a.removeEventListener("mouseup",r),y(!0),v(!1)};a.addEventListener("mouseup",r),a.addEventListener("mousemove",n)}t.useEffect(()=>{o.addEventListener("resize",b,!1)},[]),t.useEffect(()=>{let e=f.current;if(!e)return;let t=e.getContext("2d");if(!t)return;let r=eK(eY(n)),i=eK(h);t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(i.x,i.y,i.width,i.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(i.x+1,i.y+1,i.width-2,i.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(i.x+3,i.y+3,i.width-6,i.height-6)},[h]);let E=t.useCallback(e=>function(t){if(!f.current)return;let n=f.current,r=n.getBoundingClientRect(),i=t.clientX-r.x,o=t.clientY-r.y;switch(e){case"top-left":m(e=>({...e,startX:Math.min(Math.max(0,i),e.endX-33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"top-right":m(e=>({...e,endX:Math.max(Math.min(i,n.width/eV),e.startX+33),startY:Math.min(Math.max(0,o),e.endY-33)}));break;case"bottom-left":m(e=>({...e,startX:Math.min(Math.max(0,i),e.endX-33),endY:Math.max(Math.min(o,n.height/eV),e.startY+33)}));break;case"bottom-right":m(e=>({...e,endX:Math.max(Math.min(i,n.width/eV),e.startX+33),endY:Math.max(Math.min(o,n.height/eV),e.startY+33)}))}},[]),T=t.useRef({initialX:0,initialY:0});return l({onBeforeScreenshot:t.useCallback(()=>{r.el.style.display="none"},[]),onScreenshot:t.useCallback(e=>{let t=n.getContext("2d");if(!t)throw Error("Could not get canvas context");n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)},[n]),onAfterScreenshot:t.useCallback(()=>{r.el.style.display="block";let e=d.current;e&&e.appendChild(n),b()},[]),onError:t.useCallback(e=>{r.el.style.display="block",s(e)},[])}),e("div",{class:"editor",__self:this,__source:{fileName:ez,lineNumber:315}},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:c,__self:this,__source:{fileName:ez,lineNumber:316}}),e("div",{class:"editor__canvas-container",ref:d,__self:this,__source:{fileName:ez,lineNumber:317}},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:p,__self:this,__source:{fileName:ez,lineNumber:318}},e("canvas",{onMouseDown:function(e){if(_)return;T.current={initialX:e.clientX,initialY:e.clientY};let t=e=>{let t=f.current;if(!t)return;let n=e.clientX-T.current.initialX,r=e.clientY-T.current.initialY;m(i=>{let o=Math.max(0,Math.min(i.startX+n,t.width/eV-(i.endX-i.startX))),a=Math.max(0,Math.min(i.startY+r,t.height/eV-(i.endY-i.startY))),s=o+(i.endX-i.startX),l=a+(i.endY-i.startY);return T.current.initialX=e.clientX,T.current.initialY=e.clientY,{startX:o,startY:a,endX:s,endY:l}})},n=()=>{a.removeEventListener("mousemove",t),a.removeEventListener("mouseup",n)};a.addEventListener("mousemove",t),a.addEventListener("mouseup",n)},style:{position:"absolute",cursor:g?"move":"auto"},ref:f,__self:this,__source:{fileName:ez,lineNumber:319}}),e(u,{left:h.startX-3,top:h.startY-3,onGrabButton:S,corner:"top-left",__self:this,__source:{fileName:ez,lineNumber:324}}),e(u,{left:h.endX-30+3,top:h.startY-3,onGrabButton:S,corner:"top-right",__self:this,__source:{fileName:ez,lineNumber:330}}),e(u,{left:h.startX-3,top:h.endY-30+3,onGrabButton:S,corner:"bottom-left",__self:this,__source:{fileName:ez,lineNumber:336}}),e(u,{left:h.endX-30+3,top:h.endY-30+3,onGrabButton:S,corner:"bottom-right",__self:this,__source:{fileName:ez,lineNumber:342}}),e("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:g?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:ez,lineNumber:348}},e("button",{onClick:e=>{e.preventDefault(),f.current&&m({startX:0,startY:0,endX:f.current.width/eV,endY:f.current.height/eV}),y(!1)},class:"btn btn--default",__self:this,__source:{fileName:ez,lineNumber:356}},i.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){let e=a.createElement("canvas"),t=eK(eY(n)),r=eK(h);e.width=r.width*eV,e.height=r.height*eV;let i=e.getContext("2d");i&&n&&i.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height);let o=n.getContext("2d");o&&(o.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,o.drawImage(e,0,0),b())}(),y(!1)},class:"btn btn--primary",__self:this,__source:{fileName:ez,lineNumber:373}},i.confirmButtonLabel)))))}}({h:e,hooks:t,imageBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),t.getFeedback=function(){let e=r.getClient();return e&&e.getIntegrationByName("Feedback")},t.sendFeedback=T},40230:function(e,t,n){let r;var i,o,a,{_optionalChain:s}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let l=n(13521);function c(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:c(e.parentNode,t,n,r+1)}function u(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}(i=a||(a={}))[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment";let d="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.",p={map:{},getId:()=>(console.error(d),-1),getNode:()=>(console.error(d),null),removeNodeFromMap(){console.error(d)},has:()=>(console.error(d),!1),reset(){console.error(d)}};function f(e,t,n,r,i=window){let o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){v(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>f(e,t,o||{},!0)}function h(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}function m(e,t,n,r,i){if(!e)return!1;let o=e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null;if(!o)return!1;let a=u(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=c(o,a),l=-1;return!(s<0)&&(r&&(l=c(o,u(null,r))),s>-1&&l<0||s<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(p=new Proxy(p,{get:(e,t,n)=>("map"===t&&console.error(d),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());let g={};function y(e){let t=g[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return g[e]=r.bind(window)}function _(...e){return y("requestAnimationFrame")(...e)}function v(...e){return y("setTimeout")(...e)}var b=((o=b||{})[o["2D"]=0]="2D",o[o.WebGL=1]="WebGL",o[o.WebGL2=2]="WebGL2",o);let S=e=>r?(...t)=>{try{return e(...t)}catch(e){if(r&&!0===r(e))return()=>{};throw e}}:e;for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),w=0;w<E.length;w++)T[E.charCodeAt(w)]=w;var I=function(e){var t,n=new Uint8Array(e),r=n.length,i="";for(t=0;t<r;t+=3)i+=E[n[t]>>2]+E[(3&n[t])<<4|n[t+1]>>4]+E[(15&n[t+1])<<2|n[t+2]>>6]+E[63&n[t+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let k=new Map,O=(e,t,n)=>{let r;if(!e||!(C(e,t)||"object"==typeof e))return;let i=e.constructor.name,o=((r=k.get(n))||(r=new Map,k.set(n,r)),r.has(i)||r.set(i,[]),r.get(i)),a=o.indexOf(e);return -1===a&&(a=o.length,o.push(e)),a},A=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else 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)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:I(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(C(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:O(t,n,r)};return t})(e,t,n)),C=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function N(e,t,n,r,i){let o=[];try{let a=h(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...a){if(!m(this,t,n,r,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e)){if(a[0]&&"object"==typeof a[0]){let e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[o,...a])}});o.push(a)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function D(e,t,n,r,i,o,a,s){let l=[];for(let a of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if("function"!=typeof e[a])continue;let c=h(e,a,function(e){return function(...l){let c=e.apply(this,l);if(O(c,s,this),"tagName"in this.canvas&&!m(this.canvas,r,i,o,!0)){let e=A(l,s,this),r={type:t,property:a,args:e};n(this.canvas,r)}return c}});l.push(c)}catch(i){let r=f(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(r)}return l}class x{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,s([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&"number"==typeof this.options.sampling||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{sampling:t="all",win:n,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:s,recordCanvas:l,dataURLOptions:c,errorHandler:u}=e;if(this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&(r=u),(l&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),e.enableManualSnapshot)return;S(()=>{l&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),l&&"number"==typeof t&&this.initCanvasFPSObserver(t,i,o,a,s,{dataURLOptions:c})})()}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:o,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}S(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,n,r,i),o&&"number"==typeof t){let t=N(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){let e=new Worker(function(){let e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:i,width:o,height:a}=t;this.mutationCb({id:n,type:b["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:i}]},0,0,o,a]}]})},e}initCanvasFPSObserver(e,t,n,r,i,o){let a=this.takeSnapshot(!1,e,t,n,r,i,o.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(e,t,n,r){let i=N(e,t,n,r,!1),o=function(e,t,n,r,i){let o=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let s=h(t.CanvasRenderingContext2D.prototype,a,function(o){return function(...s){return m(this.canvas,n,r,i,!0)||v(()=>{let n=A(s,t,this);e(this.canvas,{type:b["2D"],property:a,args:n})},0),o.apply(this,s)}});o.push(s)}catch(r){let n=f(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:b["2D"],property:a,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),a=function(e,t,n,r,i,o){let a=[];return a.push(...D(t.WebGLRenderingContext.prototype,b.WebGL,e,n,r,i,o,t)),void 0!==t.WebGL2RenderingContext&&a.push(...D(t.WebGL2RenderingContext.prototype,b.WebGL2,e,n,r,i,o,t)),()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{i(),o(),a()})}snapshot(e){let{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.restoreHandlers.push(()=>{cancelAnimationFrame(n)})}takeSnapshot(e,t,n,r,i,o,a,l){let c=1e3/t,u=0,d=e=>{if(e)return[e];let t=[],o=e=>{e.querySelectorAll("canvas").forEach(e=>{m(e,n,r,i,!0)||t.push(e)})};for(let e of this.windows){let t=e.deref();t&&o(t.document)}for(let e of this.shadowDoms){let t=e.deref();t&&o(t)}return t},p=t=>{if(this.windows.length){if(u&&t-u<c){_(p);return}u=t,d(l).forEach(t=>{if(!this.mirror.hasNode(t))return;let n=this.mirror.getId(t);if(!this.snapshotInProgressMap.get(n)&&t.width&&t.height){if(this.snapshotInProgressMap.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){let e=t.getContext(t.__context);!1===s([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then(e=>{s([this,"access",e=>e.worker,"optionalAccess",e=>e.postMessage,"call",r=>r({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:o},[e])])}).catch(e=>{S(()=>{throw e})()})}}),e||_(p)}};return _(p)}startPendingCanvasMutationFlusher(){_(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,_(e)};_(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),_(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}let R={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},M=l.defineIntegration((e={})=>{let t;let[n,r]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,r?Math.min(r,1280):1280]},o=new Promise(e=>t=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:r}=i;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let i=new x({...e,enableManualSnapshot:n,maxCanvasSize:r,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return t(i),i},...R[e||"medium"]||R.medium}},async snapshot(e){(await o).snapshot(e)}}});t.replayCanvasIntegration=M},56163:function(e,t,n){let r,i,o,a,s,l;var c,u,d,p,f,h,m,g,{_nullishCoalesce:y,_optionalChain:_}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let v=n(13521),b=n(94628),S=n(75168),E=b.GLOBAL_OBJ,T="sentryReplaySession",w="Unable to send Replay";function I(e,t){return null!=e?e:t()}function k(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function O(e){let t=k([e,"optionalAccess",e=>e.host]);return k([t,"optionalAccess",e=>e.shadowRoot])===e}function A(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function C(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,N).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function N(e){let t;if("styleSheet"in e)try{t=C(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(c=m||(m={}))[c.Document=0]="Document",c[c.DocumentType=1]="DocumentType",c[c.Element=2]="Element",c[c.Text=3]="Text",c[c.CDATA=4]="CDATA",c[c.Comment=5]="Comment";class D{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?I(k([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function x({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function R({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function M(e){return e.toLowerCase()}function P(e){return e.toUpperCase()}let L="__rrweb_original__";function B(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?M(t):null}function U(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function F(e,t){let n;try{n=new URL(e,I(t,()=>window.location.href))}catch(e){return null}return I(k([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let j={};function $(e){let t=j[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return j[e]=r.bind(window)}function W(...e){return $("setTimeout")(...e)}function G(...e){return $("clearTimeout")(...e)}let H=1,q=RegExp("[^a-z0-9-_:]");function z(){return H++}let V=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,K=/^(?:[a-z+]+:)?\/\//i,Y=/^www\..*/i,J=/^(data:)([^,]*),(.*)/i;function Q(e,t){return(e||"").replace(V,(e,n,r,i,o,a)=>{let s=r||o||a,l=n||i||"";if(!s)return e;if(K.test(s)||Y.test(s)||J.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let c=t.split("/"),u=s.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let X=/^[^ \t\n\r\u000c]+/,Z=/^[, \t\n\r\u000c]+/,ee=new WeakMap;function et(e,t){return t&&""!==t.trim()?en(e,t):t}function en(e,t){let n=ee.get(e);if(n||(n=e.createElement("a"),ee.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function er(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(Z),!(n>=t.length);){let o=r(X);if(","===o.slice(-1))o=et(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=et(e,o);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?Q(r,en(e)):"object"===t&&"data"===n?et(e,r):"function"==typeof o?o(n,r,i):r:et(e,r):r}function ei(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function eo(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:eo(e.parentNode,t,n,r+1)}function ea(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function es(e,t,n,r,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if((l=eo(a,ea(r,i)))<0)return!0;s=eo(a,ea(t,n),l>=0?l:1/0)}else{if((s=eo(a,ea(t,n)))<0)return!1;l=eo(a,ea(r,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function el(e){return null==e?"":e.toLowerCase()}function ec(e,t){let n;let{doc:o,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:g=!1,inlineStylesheet:y=!0,maskInputOptions:_={},maskAttributeFn:v,maskTextFn:b,maskInputFn:S,slimDOMOptions:E,dataURLOptions:T={},inlineImages:w=!1,recordCanvas:I=!1,onSerialize:N,onIframeLoad:D,iframeLoadTimeout:j=5e3,onStylesheetLoad:$,stylesheetLoadTimeout:H=5e3,keepIframeSrcFn:V=()=>!1,newlyAddedElement:K=!1}=t,{preserveWhiteSpace:Y=!0}=t,J=function(e,t){let{doc:n,mirror:o,blockClass:a,blockSelector:s,unblockSelector:l,maskAllText:c,maskAttributeFn:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:y={},maskTextFn:_,maskInputFn:v,dataURLOptions:b={},inlineImages:S,recordCanvas:E,keepIframeSrcFn:T,newlyAddedElement:w=!1}=t,I=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:m.Document,childNodes:[],compatMode:e.compatMode};return{type:m.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:m.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:o,blockClass:a,blockSelector:s,unblockSelector:l,inlineStylesheet:c,maskInputOptions:u={},maskAttributeFn:d,maskInputFn:p,dataURLOptions:f={},inlineImages:h,recordCanvas:g,keepIframeSrcFn:y,newlyAddedElement:_=!1,rootId:v,maskAllText:b,maskTextClass:S,unmaskTextClass:E,maskTextSelector:T,unmaskTextSelector:w}=t,I=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,a,s,l),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=M(e.tagName);return q.test(t)?"div":t}(e),O={},A=e.attributes.length;for(let t=0;t<A;t++){let n=e.attributes[t];n.name&&!ei(k,n.name,n.value)&&(O[n.name]=er(o,k,M(n.name),n.value,e,d))}if("link"===k&&c){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=C(t)),n&&(delete O.rel,delete O.href,O._cssText=Q(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=C(e.sheet);t&&(O._cssText=Q(t,en(o)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=B(e),n=U(e,P(k),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=es(e,S,T,E,w,x({type:t,tagName:P(k),maskInputOptions:u}));O.value=R({isMasked:r,element:e,value:n,maskInputFn:p})}r&&(O.checked=r)}if("option"===k&&(e.selected&&!u.select?O.selected=!0:delete O.selected),"canvas"===k&&g){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((L in i?i[L]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(O.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){let t=e.toDataURL(f.type,f.quality),n=o.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(f.type,f.quality)&&(O.rr_dataURL=t)}}if("img"===k&&h){r||(i=(r=o.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{r.width=e.naturalWidth,r.height=e.naturalHeight,i.drawImage(e,0,0),O.rr_dataURL=r.toDataURL(f.type,f.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?O.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===k||"video"===k)&&(O.rr_mediaState=e.paused?"paused":"played",O.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(O.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(O.rr_scrollTop=e.scrollTop)),I){let{width:t,height:n}=e.getBoundingClientRect();O={class:O.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||y(O.src)||(I||e.contentDocument||(O.rr_src=O.src),delete O.src);try{customElements.get(k)&&(n=!0)}catch(e){}return{type:m.Element,tagName:k,attributes:O,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:v,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:s,unblockSelector:l,inlineStylesheet:g,maskAttributeFn:u,maskInputOptions:y,maskInputFn:v,dataURLOptions:b,inlineImages:S,recordCanvas:E,keepIframeSrcFn:T,newlyAddedElement:w,rootId:I,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||k([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=C(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Q(p,en(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let y=es(e,r,o,i,a,n);return f||h||g||!p||!y||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||y)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=R({isMasked:es(e,r,o,i,a,x({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:m.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:n,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskTextFn:_,maskInputOptions:y,maskInputFn:v,rootId:I});case e.CDATA_SECTION_NODE:return{type:m.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:m.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:o,mirror:a,blockClass:s,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:y,maskInputOptions:_,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,dataURLOptions:T,inlineImages:w,recordCanvas:I,keepIframeSrcFn:V,newlyAddedElement:K});if(!J)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===m.Comment)return!0;if(e.type===m.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===F(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(el(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===el(e.attributes.name)||"icon"===el(e.attributes.rel)||"apple-touch-icon"===el(e.attributes.rel)||"shortcut icon"===el(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&el(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(el(e.attributes.property).match(/^(og|twitter|fb):/)||el(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===el(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===el(e.attributes.name)||"googlebot"===el(e.attributes.name)||"bingbot"===el(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===el(e.attributes.name)||"generator"===el(e.attributes.name)||"framework"===el(e.attributes.name)||"publisher"===el(e.attributes.name)||"progid"===el(e.attributes.name)||el(e.attributes.property).match(/^article:/)||el(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===el(e.attributes.name)||"yandex-verification"===el(e.attributes.name)||"csrf-token"===el(e.attributes.name)||"p:domain_verify"===el(e.attributes.name)||"verify-v1"===el(e.attributes.name)||"verification"===el(e.attributes.name)||"shopify-checkout-api-token"===el(e.attributes.name)))return!0}}return!1}(J,E)&&(Y||J.type!==m.Text||J.isStyle||J.textContent.replace(/^\s+|\s+$/gm,"").length)?z():-2;let X=Object.assign(J,{id:n});if(a.add(e,X),-2===n)return null;N&&N(e);let Z=!g;if(X.type===m.Element){Z=Z&&!X.needBlock,delete X.needBlock;let t=e.shadowRoot;t&&A(t)&&(X.isShadowHost=!0)}if((X.type===m.Document||X.type===m.Element)&&Z){E.headWhitespace&&X.type===m.Element&&"head"===X.tagName&&(Y=!1);let t={doc:o,mirror:a,blockClass:s,blockSelector:l,maskAllText:u,unblockSelector:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:g,inlineStylesheet:y,maskInputOptions:_,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,slimDOMOptions:E,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:Y,onSerialize:N,onIframeLoad:D,iframeLoadTimeout:j,onStylesheetLoad:$,stylesheetLoadTimeout:H,keepIframeSrcFn:V};for(let n of Array.from(e.childNodes)){let e=ec(n,t);e&&X.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=ec(n,t);r&&(A(e.shadowRoot)&&(r.isShadow=!0),X.childNodes.push(r))}}return e.parentNode&&O(e.parentNode)&&A(e.parentNode)&&(X.isShadow=!0),X.type===m.Element&&"iframe"===X.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=W(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{G(r),o=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return W(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&D){let n=ec(t,{doc:t,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:_,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,slimDOMOptions:E,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:Y,onSerialize:N,onIframeLoad:D,iframeLoadTimeout:j,onStylesheetLoad:$,stylesheetLoadTimeout:H,keepIframeSrcFn:V});n&&D(e,n)}},j),X.type===m.Element&&"link"===X.tagName&&"string"==typeof X.attributes.rel&&("stylesheet"===X.attributes.rel||"preload"===X.attributes.rel&&"string"==typeof X.attributes.href&&"css"===F(X.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let o=W(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{G(o),i=!0,t()})}(e,()=>{if($){let t=ec(e,{doc:o,mirror:a,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:y,maskInputOptions:_,maskAttributeFn:v,maskTextFn:b,maskInputFn:S,slimDOMOptions:E,dataURLOptions:T,inlineImages:w,recordCanvas:I,preserveWhiteSpace:Y,onSerialize:N,onIframeLoad:D,iframeLoadTimeout:j,onStylesheetLoad:$,stylesheetLoadTimeout:H,keepIframeSrcFn:V});t&&$(e,t)}},H),X}function eu(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function ed(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let ep="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.",ef={map:{},getId:()=>(console.error(ep),-1),getNode:()=>(console.error(ep),null),removeNodeFromMap(){console.error(ep)},has:()=>(console.error(ep),!1),reset(){console.error(ep)}};function eh(e,t,n={}){let r=null,i=0;return function(...o){let a=Date.now();i||!1!==n.leading||(i=a);let s=t-(a-i),l=this;s<=0||s>t?(r&&(function(...e){eD("clearTimeout")(...e)}(r),r=null),i=a,e.apply(l,o)):r||!1===n.trailing||(r=ex(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)},s))}}function em(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ef=new Proxy(ef,{get:(e,t,n)=>("map"===t&&console.error(ep),Reflect.get(e,t,n))}));let eg=Date.now;function ey(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:eu([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||eu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||eu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:eu([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||eu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||eu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function e_(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ev(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eb(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function eS(e,t,n,r,i){if(!e)return!1;let o=eb(e);if(!o)return!1;let a=ea(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=eo(o,a),l=-1;return!(s<0)&&(r&&(l=eo(o,ea(null,r))),s>-1&&l<0||s<l)}function eE(e,t){return -2===t.getId(e)}function eT(e){return!!e.changedTouches}function ew(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eI(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ek(e){return!!eu([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(eg=()=>new Date().getTime());class eO{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return y(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eA(e){let t=null;return eu([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eC(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=eA(n);)n=t;return n}(e);return t.contains(n)}(e))}let eN={};function eD(e){let t=eN[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return eN[e]=r.bind(window)}function ex(...e){return eD("setTimeout")(...e)}var eR=((u=eR||{})[u.DomContentLoaded=0]="DomContentLoaded",u[u.Load=1]="Load",u[u.FullSnapshot=2]="FullSnapshot",u[u.IncrementalSnapshot=3]="IncrementalSnapshot",u[u.Meta=4]="Meta",u[u.Custom=5]="Custom",u[u.Plugin=6]="Plugin",u),eM=((d=eM||{})[d.Mutation=0]="Mutation",d[d.MouseMove=1]="MouseMove",d[d.MouseInteraction=2]="MouseInteraction",d[d.Scroll=3]="Scroll",d[d.ViewportResize=4]="ViewportResize",d[d.Input=5]="Input",d[d.TouchMove=6]="TouchMove",d[d.MediaInteraction=7]="MediaInteraction",d[d.StyleSheetRule=8]="StyleSheetRule",d[d.CanvasMutation=9]="CanvasMutation",d[d.Font=10]="Font",d[d.Log=11]="Log",d[d.Drag=12]="Drag",d[d.StyleDeclaration=13]="StyleDeclaration",d[d.Selection=14]="Selection",d[d.AdoptedStyleSheet=15]="AdoptedStyleSheet",d[d.CustomElement=16]="CustomElement",d),eP=((p=eP||{})[p.MouseUp=0]="MouseUp",p[p.MouseDown=1]="MouseDown",p[p.Click=2]="Click",p[p.ContextMenu=3]="ContextMenu",p[p.DblClick=4]="DblClick",p[p.Focus=5]="Focus",p[p.Blur=6]="Blur",p[p.TouchStart=7]="TouchStart",p[p.TouchMove_Departed=8]="TouchMove_Departed",p[p.TouchEnd=9]="TouchEnd",p[p.TouchCancel=10]="TouchCancel",p),eL=((f=eL||{})[f.Mouse=0]="Mouse",f[f.Pen=1]="Pen",f[f.Touch=2]="Touch",f);class eB{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let eU=(e,t)=>`${e}@${t}`;class eF{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new eB,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!eC(i))return;let o=O(i.parentNode)?this.mirror.getId(eA(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);let s=ec(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ew(e,this.mirror)&&!eS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eI(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ek(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{eS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!e$(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)eW(this.droppedSet,e)||e$(this.removes,e,this.mirror)?eW(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!eE(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;eS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:es(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eb(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=B(t),i=t.tagName;r=U(t,i,n);let o=x({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=R({isMasked:es(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(eS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ei(t.tagName,n)&&(i.attributes[n]=er(this.doc,M(t.tagName),M(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||o!==n.style.getPropertyPriority(r)?""===o?i.styleDiff[r]=e:i.styleDiff[r]=[e,o]:i._unchangedStyles[r]=[e,o]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(eS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=O(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eS(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eE(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(ej(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(O(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[eU(n,r)]?ej(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(O(e.target)&&A(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(eE(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[eU(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eS(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),ek(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ej(e,t){e.delete(t),t.childNodes.forEach(t=>ej(e,t))}function e$(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function eW(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let eG=e=>o?(...t)=>{try{return e(...t)}catch(e){if(o&&!0===o(e))return()=>{};throw e}}:e;function eH(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}let eq=[];function ez(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function eV(e,t){let n=new eF;eq.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=eH([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let o=new r(eG(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function eK({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){return ed("scroll",eG(eh(eG(a=>{let s=ez(a);if(!s||eS(s,r,i,o,!0))return;let l=n.getId(s);if(s===t&&t.defaultView){let n=ey(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}let eY=["INPUT","TEXTAREA","SELECT"],eJ=new WeakMap;function eQ(e){var t;return t=[],e1("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||e1("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||e1("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||e1("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function eX(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function eZ({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?eH([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):eH([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=eH([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(eH([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return eH([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=eH([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),eG(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function e0(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=eV(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=eh(eG(t=>{let n=Date.now()-i;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],i=null}),a),c=eG(eh(eG(e=>{let t=ez(e),{clientX:n,clientY:o}=eT(e)?e.changedTouches[0]:e;i||(i=eg()),s.push({x:n,y:o,id:r.getId(t),timeOffset:eg()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?eM.Drag:e instanceof MouseEvent?eM.MouseMove:eM.TouchMove)}),o,{trailing:!1})),u=[ed("mousemove",c,n),ed("touchmove",c,n),ed("drag",c,n)];return eG(()=>{u.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],c=null,u=t=>a=>{let s=ez(a);if(eS(s,r,i,o,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=eL.Mouse;break;case"touch":l=eL.Touch;break;case"pen":l=eL.Pen}l===eL.Touch?eP[t]===eP.MouseDown?u="TouchStart":eP[t]===eP.MouseUp&&(u="TouchEnd"):eL.Pen}else eT(a)&&(l=eL.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===eL.Touch||u.startsWith("Mouse")&&l===eL.Mouse)&&(l=null)):eP[t]===eP.Click&&(l=c,c=null);let d=eT(a)?a.changedTouches[0]:a;if(!d)return;let p=n.getId(s),{clientX:f,clientY:h}=d;eG(e)({type:eP[u],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};return Object.keys(eP).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let n=M(e),r=u(e);if(window.PointerEvent)switch(eP[e]){case eP.MouseDown:case eP.MouseUp:n=n.replace("mouse","pointer");break;case eP.TouchStart:case eP.TouchEnd:return}l.push(ed(n,r,t))}),eG(()=>{l.forEach(e=>e())})}(e),a=eK(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ed("resize",eG(eh(eG(()=>{let t=e_(),i=ev();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=ez(e),u=e.isTrusted,g=n&&P(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>eY.indexOf(g)||eS(n,r,i,o,!0))return;let _=n;if(_.classList.contains(a)||s&&_.matches(s))return;let v=B(n),b=U(_,g,v),S=!1,E=x({maskInputOptions:l,tagName:g,type:v}),T=es(n,p,h,f,m,E);("radio"===v||"checkbox"===v)&&(S=n.checked),b=R({isMasked:T,element:n,value:b,maskInputFn:c}),y(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});let w=n.name;"radio"===v&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=R({isMasked:T,element:e,value:U(e,g,v),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=eJ.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){eJ.set(t,r);let i=n.getId(t);eG(e)({...r,id:i})}}let _=("last"===u.input?["change"]:["input","change"]).map(e=>ed(e,eG(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>(function e(t,n,r,i,o=window){let a=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){ex(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){eG(g)({target:this,isTrusted:!1})}},!1,v))),eG(()=>{_.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){let s=eG(a=>eh(eG(o=>{let s=ez(o);if(!s||eS(s,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),o.media||500)),l=[ed("play",s(0),a),ed("pause",s(1),a),ed("seeked",s(2),a),ed("volumechange",s(3),a),ed("ratechange",s(4),a)];return eG(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:eG((r,i,o)=>{let[a,s]=o,{id:l,styleId:c}=eX(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),r.apply(i,o)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:eG((r,i,o)=>{let[a]=o,{id:s,styleId:l}=eX(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:eG((r,i,o)=>{let[a]=o,{id:s,styleId:l}=eX(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:eG((r,i,o)=>{let[a]=o,{id:s,styleId:l}=eX(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(i,o)})}));let l={};e2("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(e2("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),e2("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),e2("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:eG((r,i,o)=>{let[a,s]=o,{id:l,styleId:c}=eX(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...eQ(i),s||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:eG((r,i,o)=>{let[a]=o,{id:s,styleId:l}=eX(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...eQ(i),a]}]}),r.apply(i,o)})})}),eG(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=eZ(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:eG((i,a,s)=>{let[l,c,u]=s;if(n.has(l))return o.apply(a,[l,c,u]);let{id:d,styleId:p}=eX(eH([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:eQ(a.parentRule)}),i.apply(a,s)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:eG((i,o,s)=>{let[l]=s;if(n.has(l))return a.apply(o,[l]);let{id:c,styleId:u}=eX(eH([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:eQ(o.parentRule)}),i.apply(o,s)})}),eG(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=em(t.fonts,"add",function(t){return function(n){return ex(eG(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(a),eG(()=>{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,l=eG(()=>{let e=t.getSelection();if(!e||s&&eH([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);eS(a,r,i,o,!0)||eS(c,r,i,o,!0)||l.push({start:n.getId(a),startOffset:s,end:n.getId(c),endOffset:u})}a({ranges:l})});return l(),ed("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?em(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return eG(()=>{eq.forEach(e=>e.reset()),eH([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),o(),a(),s(),l(),c(),u(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function e1(e){return void 0!==window[e]}function e2(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e3{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function e4(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}class e6{constructor(){this.crossOriginIframeMirror=new e3(z),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class e5{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new e3(z),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new e3(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e4([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case eR.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:eR.IncrementalSnapshot,data:{source:eM.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eR.Meta:case eR.Load:case eR.DomContentLoaded:break;case eR.Plugin:return t;case eR.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eR.IncrementalSnapshot:switch(t.data.source){case eM.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eM.Drag:case eM.TouchMove:case eM.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case eM.ViewportResize:return!1;case eM.MediaInteraction:case eM.MouseInteraction:case eM.Scroll:case eM.CanvasMutation:case eM.Input:return this.replaceIds(t.data,e,["id"]),t;case eM.StyleSheetRule:case eM.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case eM.Font:return t;case eM.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case eM.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),e4([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===m.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class e8{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class e9{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!A(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=eV({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(eK({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ex(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(eZ({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(em(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&eC(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class e7{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class te{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eO,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:N(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class tt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){eD("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=_([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let tn=new D;function tr(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:l="rr-block",blockSelector:c=null,unblockSelector:u=null,ignoreClass:d="rr-ignore",ignoreSelector:p=null,maskAllText:f=!1,maskTextClass:h="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:y=null,inlineStylesheet:v=!0,maskAllInputs:b,maskInputOptions:S,slimDOMOptions:E,maskAttributeFn:T,maskInputFn:w,maskTextFn:I,maxCanvasSize:k=null,packFn:O,sampling:A={},dataURLOptions:C={},mousemoveWait:N,recordDOM:x=!0,recordCanvas:R=!1,recordCrossOriginIframes:M=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:B=!1,inlineImages:U=!1,plugins:F,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:$=new Set([]),errorHandler:W,onMutation:G,getCanvasManager:H}=e;o=W;let q=!M||window.parent===window,z=!1;if(!q)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(q&&!n)throw Error("emit function is required");if(!q&&!z)return()=>{};void 0!==N&&void 0===A.mousemove&&(A.mousemove=N),tn.reset();let V=!0===b?{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!==S?S:{},K=!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===E,headMetaDescKeywords:"all"===E}:E||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let Y=0,J=e=>{for(let t of F||[])t.eventProcessor&&(e=t.eventProcessor(e));return O&&!z&&(e=O(e)),e};a=(e,o)=>{if(e.timestamp=eg(),_([eq,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==eR.FullSnapshot&&!(e.type===eR.IncrementalSnapshot&&e.data.source===eM.Mutation)&&eq.forEach(e=>e.unfreeze()),q)_([n,"optionalCall",t=>t(J(e),o)]);else if(z){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===eR.FullSnapshot)t=e,Y=0;else if(e.type===eR.IncrementalSnapshot){if(e.data.source===eM.Mutation&&e.data.isAttachIframe)return;Y++;let n=i&&Y>=i,o=r&&t&&e.timestamp-t.timestamp>r;(n||o)&&eo(!0)}};let Q=e=>{a({type:eR.IncrementalSnapshot,data:{source:eM.Mutation,...e}})},X=e=>a({type:eR.IncrementalSnapshot,data:{source:eM.Scroll,...e}}),Z=e=>a({type:eR.IncrementalSnapshot,data:{source:eM.CanvasMutation,...e}}),ee=new te({mutationCb:Q,adoptedStyleSheetCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.AdoptedStyleSheet,...e}})}),et="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new e6:new e5({mirror:tn,mutationCb:Q,stylesheetManager:ee,recordCrossOriginIframes:M,wrappedEmit:a});for(let e of F||[])e.getMirror&&e.getMirror({nodeMirror:tn,crossOriginIframeMirror:et.crossOriginIframeMirror,crossOriginIframeStyleMirror:et.crossOriginIframeStyleMirror});let en=new tt,er=function(e,t){try{return e?e(t):new e7}catch(e){return console.warn("Unable to initialize CanvasManager"),new e7}}(H,{mirror:tn,win:window,mutationCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.CanvasMutation,...e}}),recordCanvas:R,blockClass:l,blockSelector:c,unblockSelector:u,maxCanvasSize:k,sampling:A.canvas,dataURLOptions:C,errorHandler:W}),ei="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new e8:new e9({mutationCb:Q,scrollCb:X,bypassOptions:{onMutation:G,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:v,maskInputOptions:V,dataURLOptions:C,maskAttributeFn:T,maskTextFn:I,maskInputFn:w,recordCanvas:R,inlineImages:U,sampling:A,slimDOMOptions:K,iframeManager:et,stylesheetManager:ee,canvasManager:er,keepIframeSrcFn:j,processedNodeManager:en},mirror:tn}),eo=(e=!1)=>{if(!x)return;a({type:eR.Meta,data:{href:window.location.href,width:ev(),height:e_()}},e),ee.reset(),ei.init(),eq.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new D,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:w,stylesheetLoadTimeout:I,keepIframeSrcFn:k=()=>!1}=t||{};return ec(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:w,stylesheetLoadTimeout:I,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:tn,blockClass:l,blockSelector:c,unblockSelector:u,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,inlineStylesheet:v,maskAllInputs:V,maskAttributeFn:T,maskInputFn:w,maskTextFn:I,slimDOM:K,dataURLOptions:C,recordCanvas:R,inlineImages:U,onSerialize:e=>{ew(e,tn)&&et.addIframe(e),eI(e,tn)&&ee.trackLinkElement(e),ek(e)&&ei.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{et.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),ei.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{ee.attachLinkElement(e,t)},keepIframeSrcFn:j});if(!t)return console.warn("Failed to snapshot the document");a({type:eR.FullSnapshot,data:{node:t,initialOffset:ey(window)}}),eq.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ee.adoptStyleSheets(document.adoptedStyleSheets,tn.getId(document))};s=eo;try{let e=[],t=e=>eG(e0)({onMutation:G,mutationCb:Q,mousemoveCb:(e,t)=>a({type:eR.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.ViewportResize,...e}}),inputCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.Input,...e}}),mediaInteractionCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.MediaInteraction,...e}}),styleSheetRuleCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.StyleSheetRule,...e}}),styleDeclarationCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>a({type:eR.IncrementalSnapshot,data:{source:eM.Font,...e}}),selectionCb:e=>{a({type:eR.IncrementalSnapshot,data:{source:eM.Selection,...e}})},customElementCb:e=>{a({type:eR.IncrementalSnapshot,data:{source:eM.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:p,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:y,maskInputOptions:V,inlineStylesheet:v,sampling:A,recordDOM:x,recordCanvas:R,inlineImages:U,userTriggeredOnInput:L,collectFonts:B,doc:e,maskAttributeFn:T,maskInputFn:w,maskTextFn:I,keepIframeSrcFn:j,blockSelector:c,unblockSelector:u,slimDOMOptions:K,dataURLOptions:C,mirror:tn,iframeManager:et,stylesheetManager:ee,shadowDomManager:ei,processedNodeManager:en,canvasManager:er,ignoreCSSAttributes:$,plugins:_([F,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>a({type:eR.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});et.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{eo(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ed("DOMContentLoaded",()=>{a({type:eR.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(ed("load",()=>{a({type:eR.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),en.destroy(),s=void 0,o=void 0}}catch(e){console.warn(e)}}tr.mirror=tn,tr.takeFullSnapshot=function(e){if(!s)throw Error("please take full snapshot after start recording");s(e)};let ti=["info","warn","error","log"];function to(e){return e>9999999999?e:1e3*e}function ta(e){return e>9999999999?e/1e3:e}function ts(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:eR.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:b.normalize(t,10,1e3)}}),"console"===t.category)))}function tl(e){return e.closest("button,a")||e}function tc(e){let t=tu(e);return t&&t instanceof Element?tl(t):t}function tu(e){return"object"==typeof e&&e&&"target"in e?e.target:e}(function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};ti.forEach(t=>{e[t]=()=>void 0})})();let td=new Set([eM.Mutation,eM.StyleSheetRule,eM.StyleDeclaration,eM.AdoptedStyleSheet,eM.CanvasMutation,eM.Selection,eM.MediaInteraction]);class tp{constructor(e,t,n=ts){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=th()},l||(l=[],b.fill(E,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch(e){}return e.apply(E,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!tf.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:ta(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=ta(e)}registerScroll(e=Date.now()){this._lastScroll=ta(e)}registerClick(e){let t=tl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=th();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:E.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:E.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=S.setTimeout(()=>this._checkClicks(),1e3)}}let tf=["A","BUTTON","INPUT"];function th(){return Date.now()/1e3}function tm(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(h=g||(g={}))[h.Document=0]="Document",h[h.DocumentType=1]="DocumentType",h[h.Element=2]="Element",h[h.Text=3]="Text",h[h.CDATA=4]="CDATA",h[h.Comment=5]="Comment";let tg=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),ty=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?tc(e.event):tu(e.event),t=b.htmlTreeAsString(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return tm({category:`ui.${e.name}`,...t_(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,tc(t.event)),ts(e,n)};function t_(e,t){let n=tr.mirror.getId(e),r=n&&tr.mirror.getNode(n),i=r&&tr.mirror.getMeta(r),o=i&&i.type===g.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===g.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tg.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let tv={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tE(o),end:tE(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=tE(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tE(f),end:tE(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function tb(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function tS(e){let t=tv[e.entryType];return t?t(e):null}function tE(e){return((b.browserPerformanceTimeOrigin||E.performance.timeOrigin)+e)/1e3}function tT(e){let t=e.entries[e.entries.length-1];return tO(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function tw(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=tr.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return tO(e,"cumulative-layout-shift",n,t)}function tI(e){let t=e.entries[e.entries.length-1];return tO(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function tk(e){let t=e.entries[e.entries.length-1];return tO(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function tO(e,t,n,r){let i=e.value,o=e.rating,a=tE(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:n?n.map(e=>tr.mirror.getId(e)):void 0,attributions:r}}}class tA extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class tC{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new tA;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?to(e):null}}class tN{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",o),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class tD{constructor(e){this._worker=new tN(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=to(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new tA):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class tx{constructor(e){this._fallback=new tC,this._compression=new tD(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function tR(){try{return"sessionStorage"in E&&!!E.sessionStorage}catch(e){return!1}}function tM(e){return void 0!==e&&Math.random()<e}function tP(e){let t=Date.now(),n=e.id||b.uuid4(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function tL(e){if(tR())try{E.sessionStorage.setItem(T,JSON.stringify(e))}catch(e){}}function tB({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=tP({sampled:tM(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&tL(i),i}function tU(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function tF(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return tU(e.started,t,r)||tU(e.lastActivity,n,r)}function tj(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!tF(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function t$({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!tR())return null;try{let e=E.sessionStorage.getItem(T);if(!e)return null;let t=JSON.parse(e);return tP(t)}catch(e){return null}}();return i?tj(i,{sessionIdleExpire:e,maxReplayDuration:t})?tB(r,{previousSessionId:i.id}):i:tB(r,{previousSessionId:n})}function tW(e,t,n){return!!tH(e,t)&&(tG(e,t,n),!0)}async function tG(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===eR.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(r){let t=r&&r instanceof tA?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:t});let n=v.getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function tH(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=to(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function tq(e){return"transaction"===e.type}function tz(e){return"feedback"===e.type}function tV(e){return!!e.category}function tK(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let a=e.throttledAddEvent({type:eR.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function tY(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,v.isSentryRequestUrl(n,v.getClient())||e.addUpdate(()=>(tK(e,[t]),!0)))}function tJ(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=t4(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function tQ(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function tX(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[t4(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function tZ(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function t0(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:b.dropUndefinedKeys({method:o,statusCode:a,request:s,response:l})}}function t1(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function t2(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function t3(e,t){return Object.entries(e).reduce((n,[r,i])=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function t4(e){return new URLSearchParams(e).toString()}function t6(e,t){let n=function(e,t=E.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(E.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return b.stringMatchesSomePattern(n,t)}async function t5(e,t,n){try{let r=await t8(e,t,n),i=t0("resource.fetch",r);tY(n.replay,i)}catch(e){}}async function t8(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=t6(a,n.networkDetailAllowUrls)&&!t6(a,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?nn(n[0],t):2===n.length?nn(n[1],t):{}:{};if(!e)return t2(i,r,void 0);let[o,a]=tX(ne(n)),s=t2(i,r,o);return a?tZ(s,a):s}(n,t.input,c):t1(c),response:await t9(d,n,t.response,u)}}async function t9(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return t1(i);let o=r?nt(r.headers,n):{};if(!r||!t&&void 0!==i)return t2(o,i,void 0);let[a,s]=await t7(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e&&e.length&&void 0===n?tJ(e):n;if(!r)return t1(o);if(t)return t2(i,o,e);return t2(i,o,void 0)}catch(e){return t2(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return s?tZ(l,s):l}async function t7(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,n)=>{let r=S.setTimeout(()=>n(Error("Timeout while trying to read response body")),500);nr(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ne(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function nt(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function nn(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?nt(n,t):Array.isArray(n)?{}:t3(n,t):{}}async function nr(e){return await e.text()}async function ni(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!t6(l,n.networkDetailAllowUrls)||t6(l,n.networkDetailDenyUrls)){let e=t1(d);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:e,response:t1(p)}}let f=s[S.SENTRY_XHR_DATA_KEY],h=f?t3(f.request_headers,n.networkRequestHeaders):{},m=t3(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?tX(a):[void 0],[_,v]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(s):[void 0],b=t2(h,d,g),E=t2(m,p,_);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:y?tZ(b,y):b,response:v?tZ(E,v):E}}(e,t,n),i=t0("resource.xhr",r);tY(n.replay,i)}catch(e){}}async function no(e){try{return Promise.all(tK(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(E.performance.memory)]))}catch(e){return[]}}async function na({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let o=await v.prepareEvent(e.getOptions(),r,i,t,e,v.getIsolationScope());if(!o)return null;o.platform=o.platform||"javascript";let a=e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},o}async function ns({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var a;let s;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:p}=r,f=v.getClient(),h=v.getCurrentScope(),m=f&&f.getTransport(),g=f&&f.getDsn();if(!f||!m||!g||!o.sampled)return b.resolvedSyncPromise({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:o.sampled},_=await na({scope:h,client:f,replayId:t,event:y});if(!_)return f.recordDroppedEvent("event_processor","replay",y),b.resolvedSyncPromise({});delete _.sdkProcessingMetadata;let S=(a=f.getOptions().tunnel,b.createEnvelope(b.createEventEnvelopeHeaders(_,b.getSdkMetadataForEnvelopeHeader(_),a,g),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(S)}catch(t){let e=Error(w);try{e.cause=t}catch(e){}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new nl(s.statusCode);let E=b.updateRateLimits({},s);if(b.isRateLimited(E,"replay"))throw new nc(E);return s}class nl extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class nc extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function nu(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await ns(e),!0}catch(n){if(n instanceof nl||n instanceof nc)throw n;if(v.setContext("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${w} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{S.setTimeout(async()=>{try{await nu(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let nd="__THROTTLED";class np{constructor({options:e,recordingOptions:t}){np.prototype.__init.call(this),np.prototype.__init2.call(this),np.prototype.__init3.call(this),np.prototype.__init4.call(this),np.prototype.__init5.call(this),np.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;let a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=S.setTimeout(s,t),a&&void 0===o&&(o=S.setTimeout(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>e+t,0),a=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),o()>=300){let e=a;return a=!0,e?"__SKIPPED":nd}a=!1;let s=r.get(n)||0;return r.set(n,s+1),e(...t)}}((e,t)=>tH(this,e)?tG(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new tp(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=t$({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=t$({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=tr({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(td.has(n)&&e.registerMutation(t.timestamp),n===eM.Scroll&&e.registerScroll(t.timestamp),t.data.source===eM.MouseInteraction){let{type:n,id:r}=t.data,i=tr.mirror.getNode(r);i instanceof HTMLElement&&n===eP.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!tW(e,n,i))return!0;if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&tW(e,function(e){let t=e.getOptions();return{type:eR.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&tL(t))}return!!t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{(function(){let e=v.getCurrentScope().getPropagationContext().dsc;e&&delete e.replay_id;let t=v.getActiveSpan();if(t){let e=v.getDynamicSamplingContextFromSpan(t);delete e.replay_id}})(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(tR())try{E.sessionStorage.removeItem(T)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&tU(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${E.location.pathname}${E.location.hash}${E.location.search}`,t=`${E.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===nd){let e=tm({category:"replay.throttled"});this.addUpdate(()=>!tW(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||v.getActiveSpan(),t=e&&v.getRootSpan(e),n=(t&&v.spanToJSON(t).data||{})[v.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return v.spanToJSON(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new tx(n)}catch(e){}}(t);if(e)return e}return new tC}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=t$({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!tj(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{E.document.addEventListener("visibilitychange",this._handleVisibilityChange),E.addEventListener("blur",this._handleWindowBlur),E.addEventListener("focus",this._handleWindowFocus),E.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=v.getClient();S.addClickKeypressInstrumentationHandler(ty(e)),S.addHistoryInstrumentationHandler(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(tK(e,[n]),!1)))}),function(e){let t=v.getClient();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!tV(t))return;let n=!tV(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return tm(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=b.normalize(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return tm({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):tm(t);n&&ts(e,n)})(e,t))}(e),function(e){let t=v.getClient();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=tJ(r),o=n.getResponseHeader("content-length")?tQ(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return tJ(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),ni(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input:n,response:r}=t,i=tJ(n?ne(n):void 0),o=r?tQ(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),t5(t,n,e))}catch(e){}})(s,e,t))}catch(e){}}(e);let n=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):(!t.type||tq(t)||tz(t))&&e.checkAndHandleExpiredSession()?tz(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:eR.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==w&&t.exception&&!t.type&&tM(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t,{id:"Replay"});v.addEventProcessor(n),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&ts(e,tm({category:"replay.hydrate-error",data:{url:b.getLocationHref()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!tq(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(tq(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&S.setTimeout(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(S.addPerformanceInstrumentationHandler(e,n))}),r.push(S.addLcpInstrumentationHandler(tb(tT,e)),S.addClsInstrumentationHandler(tb(tw,e)),S.addFidInstrumentationHandler(tb(tI,e)),S.addInpInstrumentationHandler(tb(tk,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{E.document.removeEventListener("visibilitychange",this._handleVisibilityChange),E.removeEventListener("blur",this._handleWindowBlur),E.removeEventListener("focus",this._handleWindowFocus),E.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===E.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=tm({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=tm({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||o,c=1===a.length;if(!l&&c)return null;let u=b.htmlTreeAsString(s,{maxStringLength:200})||"<unknown>",d=t_(s,u);return tm({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a}})}(t);n&&ts(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){!this.session||tF(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:eR.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tS).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(tK(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await no(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await nu({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=v.getClient();e&&e.recordDroppedEvent(t instanceof nc?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){r&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&o.hasCheckout;let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&tL(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=tm({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function nf(e,t){return[...e,...t].join(",")}let nh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',nm=["content-length","content-type","accept"],ng=!1;class ny{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:S=[],maskAttributes:E=["title","placeholder"],unmask:T=[],block:w=[],unblock:I=[],ignore:k=[],maskFn:O,beforeAddRecordingEvent:A,beforeErrorSampling:C}={}){this.name=ny.id;let N=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:nf(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:nf(t,[]),blockSelector:nf(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:nf(r,[]),ignoreSelector:nf(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:T,block:w,unblock:I,ignore:k});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:E,maskAllText:l,privacyOptions:N,key:e,value:t,el:n}),...N,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:n_(_),networkResponseHeaders:n_(v),beforeAddRecordingEvent:A,beforeErrorSampling:C,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${nh}`:nh),this._isInitialized&&b.isBrowser())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ng}set _isInitialized(e){ng=e}afterAllSetup(e){b.isBrowser()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...b.dropUndefinedKeys(e)},i=v.parseSampleRate(n.replaysSessionSampleRate),o=v.parseSampleRate(n.replaysOnErrorSampleRate);return null==i&&null==o&&b.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new np({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function n_(e){return[...nm,...e.map(e=>e.toLowerCase())]}ny.__initStatic(),t.getReplay=function(){let e=v.getClient();return e&&e.getIntegrationByName("Replay")},t.replayIntegration=e=>new ny(e)},69628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(52842),s=n(17858),l=n(64624);class c extends r.BaseClient{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e},n=s.WINDOW.SENTRY_SDK_SOURCE||i.getSDKSource();r.applySdkMetadata(t,"browser",["browser"],n),super(t),t.sendClientReports&&s.WINDOW.document&&s.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===s.WINDOW.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return a.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return a.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){o.DEBUG_BUILD&&i.logger.warn("SDK not enabled, will not capture user feedback.");return}let t=l.createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}t.BrowserClient=c},85338:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},52842:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628);function o(e,t){let n=s(e,t),r={type:u(t),value:d(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function a(e,t){return{exception:{values:[o(e,t)]}}}function s(e,t){let n=t.stacktrace||t.stack||"",r=t&&l.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let l=/Minified React error #\d+;/i;function c(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function u(e){let t=e&&e.name;return!t&&c(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function d(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:c(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function p(e,t,n,l,c){let u;if(i.isErrorEvent(t)&&t.error)return a(e,t.error);if(i.isDOMError(t)||i.isDOMException(t)){if("stack"in t)u=a(e,t);else{let r=t.name||(i.isDOMError(t)?"DOMError":"DOMException"),o=t.message?`${r}: ${t.message}`:r;u=f(e,o,n,l),i.addExceptionTypeValue(u,o)}return"code"in t&&(u.tags={...u.tags,"DOMException.code":`${t.code}`}),u}return i.isError(t)?a(e,t):(i.isPlainObject(t)||i.isEvent(t)?u=function(e,t,n,a){let l=r.getClient(),c=l&&l.getOptions().normalizeDepth,u=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),d={__serialized__:i.normalizeToSize(t,c)};if(u)return{exception:{values:[o(e,u)]},extra:d};let p={exception:{values:[{type:i.isEvent(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=i.extractExceptionKeysForMessage(e),r=t?"promise rejection":"exception";if(i.isErrorEvent(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(i.isEvent(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:a})}]},extra:d};if(n){let t=s(e,n);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}(e,t,n,c):(u=f(e,t,n,l),i.addExceptionTypeValue(u,`${t}`,void 0)),i.addExceptionMechanism(u,{synthetic:!0}),u)}function f(e,t,n,r){let o={};if(r&&n){let r=s(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(i.isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}t.eventFromException=function(e,t,n,r){let o=p(e,t,n&&n.syntheticException||void 0,r);return i.addExceptionMechanism(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),i.resolvedSyncPromise(o)},t.eventFromMessage=function(e,t,n="info",r,o){let a=f(e,t,r&&r.syntheticException||void 0,o);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),i.resolvedSyncPromise(a)},t.eventFromUnknownInput=p,t.exceptionFromError=o,t.extractMessage=d,t.extractType=u},44326:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94647),i=n(38393),o=r.buildFeedbackIntegration({lazyLoadIntegration:i.lazyLoadIntegration});t.feedbackAsyncIntegration=o},37819:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94647),i=n(38393),o=r.buildFeedbackIntegration({lazyLoadIntegration:i.lazyLoadIntegration,getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration});t.feedbackSyncIntegration=o},17858:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=i.GLOBAL_OBJ,a=0;function s(){a++,setTimeout(()=>{a--})}t.WINDOW=o,t.ignoreNextOnError=s,t.shouldIgnoreOnError=function(){return a>0},t.wrap=function e(t,n={},o){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e){if("function"==typeof e)return e;return t}if(i.getOriginalFunction(t))return t}catch(e){return t}let a=function(){let a=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);let r=a.map(t=>e(t,n));return t.apply(this,r)}catch(e){throw s(),r.withScope(t=>{t.addEventProcessor(e=>(n.mechanism&&(i.addExceptionTypeValue(e,void 0,void 0),i.addExceptionMechanism(e,n.mechanism)),e.extra={...e.extra,arguments:a},e)),r.captureException(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e])}catch(e){}i.markFunctionWrapped(a,t),i.addNonEnumerableProperty(t,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:()=>t.name})}catch(e){}return a}},39011:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(17858),o=n(69628),a=n(46840),s=n(63975),l=n(52842),c=n(64624),u=n(5686),d=n(76855),p=n(52219),f=n(55428),h=n(50099),m=n(92496),g=n(38393),y=n(14742),_=n(86415),v=n(96435),b=n(56163),S=n(40230),E=n(44326),T=n(37819),w=n(94647),I=n(99600),k=n(88230),O=n(59683),A=n(35821),C=n(50775);t.SDK_VERSION=r.SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=r.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.Scope=r.Scope,t.addBreadcrumb=r.addBreadcrumb,t.addEventProcessor=r.addEventProcessor,t.addIntegration=r.addIntegration,t.addTracingExtensions=r.addTracingExtensions,t.captureConsoleIntegration=r.captureConsoleIntegration,t.captureEvent=r.captureEvent,t.captureException=r.captureException,t.captureFeedback=r.captureFeedback,t.captureMessage=r.captureMessage,t.captureSession=r.captureSession,t.close=r.close,t.continueTrace=r.continueTrace,t.createTransport=r.createTransport,t.debugIntegration=r.debugIntegration,t.dedupeIntegration=r.dedupeIntegration,t.endSession=r.endSession,t.extraErrorDataIntegration=r.extraErrorDataIntegration,t.flush=r.flush,t.functionToStringIntegration=r.functionToStringIntegration,t.getActiveSpan=r.getActiveSpan,t.getClient=r.getClient,t.getCurrentHub=r.getCurrentHub,t.getCurrentScope=r.getCurrentScope,t.getGlobalScope=r.getGlobalScope,t.getIsolationScope=r.getIsolationScope,t.getRootSpan=r.getRootSpan,t.getSpanDescendants=r.getSpanDescendants,t.getSpanStatusFromHttpCode=r.getSpanStatusFromHttpCode,t.inboundFiltersIntegration=r.inboundFiltersIntegration,t.isInitialized=r.isInitialized,t.lastEventId=r.lastEventId,t.makeMultiplexedTransport=r.makeMultiplexedTransport,t.moduleMetadataIntegration=r.moduleMetadataIntegration,t.parameterize=r.parameterize,t.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,t.rewriteFramesIntegration=r.rewriteFramesIntegration,t.sessionTimingIntegration=r.sessionTimingIntegration,t.setContext=r.setContext,t.setCurrentClient=r.setCurrentClient,t.setExtra=r.setExtra,t.setExtras=r.setExtras,t.setHttpStatus=r.setHttpStatus,t.setMeasurement=r.setMeasurement,t.setTag=r.setTag,t.setTags=r.setTags,t.setUser=r.setUser,t.spanToBaggageHeader=r.spanToBaggageHeader,t.spanToJSON=r.spanToJSON,t.spanToTraceHeader=r.spanToTraceHeader,t.startInactiveSpan=r.startInactiveSpan,t.startNewTrace=r.startNewTrace,t.startSession=r.startSession,t.startSpan=r.startSpan,t.startSpanManual=r.startSpanManual,t.suppressTracing=r.suppressTracing,t.thirdPartyErrorFilterIntegration=r.thirdPartyErrorFilterIntegration,t.withActiveSpan=r.withActiveSpan,t.withIsolationScope=r.withIsolationScope,t.withScope=r.withScope,t.zodErrorsIntegration=r.zodErrorsIntegration,t.WINDOW=i.WINDOW,t.BrowserClient=o.BrowserClient,t.makeFetchTransport=a.makeFetchTransport,t.chromeStackLineParser=s.chromeStackLineParser,t.defaultStackLineParsers=s.defaultStackLineParsers,t.defaultStackParser=s.defaultStackParser,t.geckoStackLineParser=s.geckoStackLineParser,t.opera10StackLineParser=s.opera10StackLineParser,t.opera11StackLineParser=s.opera11StackLineParser,t.winjsStackLineParser=s.winjsStackLineParser,t.eventFromException=l.eventFromException,t.eventFromMessage=l.eventFromMessage,t.exceptionFromError=l.exceptionFromError,t.createUserFeedbackEnvelope=c.createUserFeedbackEnvelope,t.captureUserFeedback=u.captureUserFeedback,t.forceLoad=u.forceLoad,t.getDefaultIntegrations=u.getDefaultIntegrations,t.init=u.init,t.onLoad=u.onLoad,t.showReportDialog=u.showReportDialog,t.breadcrumbsIntegration=d.breadcrumbsIntegration,t.globalHandlersIntegration=p.globalHandlersIntegration,t.httpContextIntegration=f.httpContextIntegration,t.linkedErrorsIntegration=h.linkedErrorsIntegration,t.browserApiErrorsIntegration=m.browserApiErrorsIntegration,t.lazyLoadIntegration=g.lazyLoadIntegration,t.reportingObserverIntegration=y.reportingObserverIntegration,t.httpClientIntegration=_.httpClientIntegration,t.contextLinesIntegration=v.contextLinesIntegration,t.getReplay=b.getReplay,t.replayIntegration=b.replayIntegration,t.replayCanvasIntegration=S.replayCanvasIntegration,t.feedbackAsyncIntegration=E.feedbackAsyncIntegration,t.feedbackIntegration=T.feedbackSyncIntegration,t.feedbackSyncIntegration=T.feedbackSyncIntegration,t.getFeedback=w.getFeedback,t.sendFeedback=w.sendFeedback,t.metrics=I.metrics,t.defaultRequestInstrumentationOptions=k.defaultRequestInstrumentationOptions,t.instrumentOutgoingRequests=k.instrumentOutgoingRequests,t.browserTracingIntegration=O.browserTracingIntegration,t.startBrowserTracingNavigationSpan=O.startBrowserTracingNavigationSpan,t.startBrowserTracingPageLoadSpan=O.startBrowserTracingPageLoadSpan,t.makeBrowserOfflineTransport=A.makeBrowserOfflineTransport,t.browserProfilingIntegration=C.browserProfilingIntegration},76855:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(75168),i=n(13521),o=n(94628),a=n(85338),s=n(17858),l=i.defineIntegration((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&o.addConsoleInstrumentationHandler(function(t){if(i.getClient()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:o.severityLevelFromString(t.level),message:o.safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${o.safeJoin(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}i.addBreadcrumb(n,{input:t.args,level:t.level})}),t.dom&&r.addClickKeypressInstrumentationHandler((n=t.dom,function(t){let r,s;if(i.getClient()!==e)return;let l="object"==typeof n?n.serializeAttribute:void 0,c="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;c&&c>1024&&(a.DEBUG_BUILD&&o.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${c} was configured. Sentry will use 1024 instead.`),c=1024),"string"==typeof l&&(l=[l]);try{let e=t.event,n=e&&e.target?e.target:e;r=o.htmlTreeAsString(n,{keyAttrs:l,maxStringLength:c}),s=o.getComponentName(n)}catch(e){r="<unknown>"}if(0===r.length)return;let u={category:`ui.${t.name}`,message:r};s&&(u.data={"ui.component_name":s}),i.addBreadcrumb(u,{event:t.event,name:t.name,global:t.global})})),t.xhr&&r.addXhrInstrumentationHandler(function(t){if(i.getClient()!==e)return;let{startTimestamp:n,endTimestamp:a}=t,s=t.xhr[r.SENTRY_XHR_DATA_KEY];if(!n||!a||!s)return;let{method:l,url:c,status_code:u,body:d}=s,p={xhr:t.xhr,input:d,startTimestamp:n,endTimestamp:a},f=o.getBreadcrumbLogLevelFromHttpStatusCode(u);i.addBreadcrumb({category:"xhr",data:{method:l,url:c,status_code:u},type:"http",level:f},p)}),t.fetch&&o.addFetchInstrumentationHandler(function(t){if(i.getClient()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};i.addBreadcrumb({category:"fetch",data:e,level:"error",type:"http"},o)}else{let e=t.response,a={...t.fetchData,status_code:e&&e.status},s={input:t.args,response:e,startTimestamp:n,endTimestamp:r},l=o.getBreadcrumbLogLevelFromHttpStatusCode(a.status_code);i.addBreadcrumb({category:"fetch",data:a,type:"http",level:l},s)}}}),t.history&&r.addHistoryInstrumentationHandler(function(t){if(i.getClient()!==e)return;let n=t.from,r=t.to,a=o.parseUrl(s.WINDOW.location.href),l=n?o.parseUrl(n):void 0,c=o.parseUrl(r);l&&l.path||(l=a),a.protocol===c.protocol&&a.host===c.host&&(r=c.relative),a.protocol===l.protocol&&a.host===l.host&&(n=l.relative),i.addBreadcrumb({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){i.getClient()===e&&i.addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:o.getEventDescription(t)},{event:t})})}}});t.breadcrumbsIntegration=l},92496:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(17858),a=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],s=r.defineIntegration((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&i.fill(o.WINDOW,"setTimeout",l),t.setInterval&&i.fill(o.WINDOW,"setInterval",l),t.requestAnimationFrame&&i.fill(o.WINDOW,"requestAnimationFrame",c),t.XMLHttpRequest&&"XMLHttpRequest"in o.WINDOW&&i.fill(XMLHttpRequest.prototype,"send",u);let e=t.eventTarget;e&&(Array.isArray(e)?e:a).forEach(d)}}});function l(e){return function(...t){let n=t[0];return t[0]=o.wrap(n,{mechanism:{data:{function:i.getFunctionName(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function c(e){return function(t){return e.apply(this,[o.wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:i.getFunctionName(e)},handled:!1,type:"instrument"}})])}}function u(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&i.fill(n,e,function(t){let n={mechanism:{data:{function:e,handler:i.getFunctionName(t)},handled:!1,type:"instrument"}},r=i.getOriginalFunction(t);return r&&(n.mechanism.data.handler=i.getFunctionName(r)),o.wrap(t,n)})}),e.apply(this,t)}}function d(e){let t=o.WINDOW,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(i.fill(n,"addEventListener",function(t){return function(n,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=o.wrap(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:i.getFunctionName(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,o.wrap(r,{mechanism:{data:{function:"addEventListener",handler:i.getFunctionName(r),target:e},handled:!1,type:"instrument"}}),a])}}),i.fill(n,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}t.browserApiErrorsIntegration=s},96435:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=i.GLOBAL_OBJ,a=r.defineIntegration((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let n=o.document,r=o.location&&i.stripUrlQueryAndFragment(o.location.href);if(!n||!r)return e;let a=e.exception&&e.exception.values;if(!a||!a.length)return e;let l=n.documentElement.innerHTML;if(!l)return e;let c=["<!DOCTYPE html>","<html>",...l.split("\n"),"</html>"];return a.forEach(e=>{let n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map(e=>s(e,c,r,t)))}),e})(e,t)}});function s(e,t,n,r){return e.filename===n&&e.lineno&&t.length&&i.addContextToFrame(t,e,r),e}t.applySourceContextToFrame=s,t.contextLinesIntegration=a},52219:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(52842),s=n(17858),l=r.defineIntegration((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(i.addGlobalErrorInstrumentationHandler(t=>{let{stackParser:n,attachStacktrace:o}=u();if(r.getClient()!==e||s.shouldIgnoreOnError())return;let{msg:l,url:c,line:d,column:p,error:f}=t,h=function(e,t,n,r){let o=e.exception=e.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},c=l.frames=l.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,p=i.isString(t)&&t.length>0?t:i.getLocationHref();return 0===c.length&&c.push({colno:u,filename:p,function:i.UNKNOWN_FUNCTION,in_app:!0,lineno:d}),e}(a.eventFromUnknownInput(n,f||l,void 0,o,!1),c,d,p);h.level="error",r.captureEvent(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})}),c("onerror")),t.onunhandledrejection&&(i.addGlobalUnhandledRejectionInstrumentationHandler(t=>{let{stackParser:n,attachStacktrace:o}=u();if(r.getClient()!==e||s.shouldIgnoreOnError())return;let l=function(e){if(i.isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),c=i.isPrimitive(l)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(l)}`}]}}:a.eventFromUnknownInput(n,l,void 0,o,!0);c.level="error",r.captureEvent(c,{originalException:l,mechanism:{handled:!1,type:"onunhandledrejection"}})}),c("onunhandledrejection"))}}});function c(e){o.DEBUG_BUILD&&i.logger.log(`Global Handler attached: ${e}`)}function u(){let e=r.getClient();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}t.globalHandlersIntegration=l},86415:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(75168),i=n(13521),o=n(94628),a=n(85338),s=i.defineIntegration((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){o.supportsNativeFetch()&&o.addFetchInstrumentationHandler(n=>{if(i.getClient()!==e)return;let{response:r,args:o}=n,[a,s]=o;r&&function(e,t,n,r){if(u(e,n.status,n.url)){let e,o,a,s;let c=!r&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,r);p()&&([e,a]=l("Cookie",c),[o,s]=l("Set-Cookie",n));let u=d({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:o,requestCookies:a,responseCookies:s});i.captureEvent(u)}}(t,a,r,s)}),"XMLHttpRequest"in o.GLOBAL_OBJ&&r.addXhrInstrumentationHandler(n=>{if(i.getClient()!==e)return;let s=n.xhr,l=s[r.SENTRY_XHR_DATA_KEY];if(!l)return;let{method:f,request_headers:h}=l;try{!function(e,t,n,r){if(u(e,t.status,t.responseURL)){let e,s,l;if(p()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(s=c(e))}catch(e){a.DEBUG_BUILD&&o.logger.log("Could not extract cookies from response headers")}try{l=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch(e){a.DEBUG_BUILD&&o.logger.log("Could not extract headers from response")}e=r}let u=d({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:l,responseCookies:s});i.captureEvent(u)}}(t,s,f,h)}catch(e){a.DEBUG_BUILD&&o.logger.warn("Error while extracting response event form XHR response",e)}})}}});function l(e,t){let n;let r=function(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);try{let t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=c(t))}catch(t){a.DEBUG_BUILD&&o.logger.log(`Could not extract cookies from header ${e}`)}return[r,n]}function c(e){return e.split("; ").reduce((e,t)=>{let[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function u(e,t,n){return e.failedRequestStatusCodes.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&e.failedRequestTargets.some(e=>"string"==typeof e?n.includes(e):e.test(n))&&!i.isSentryRequestUrl(n,i.getClient())}function d(e){let t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return o.addExceptionMechanism(n,{type:"http.client",handled:!1}),n}function p(){let e=i.getClient();return!!e&&!!e.getOptions().sendDefaultPii}t.httpClientIntegration=s},55428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(17858),o=r.defineIntegration(()=>({name:"HttpContext",preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;let t=e.request&&e.request.url||i.WINDOW.location&&i.WINDOW.location.href,{referrer:n}=i.WINDOW.document||{},{userAgent:r}=i.WINDOW.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:o};e.request=a}}));t.httpContextIntegration=o},50099:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(52842),a=r.defineIntegration((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,a){let s=a.getOptions();i.applyAggregateErrorsToEvent(o.exceptionFromError,s.stackParser,s.maxValueLength,n,t,e,r)}}});t.linkedErrorsIntegration=a},14742:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=i.GLOBAL_OBJ,a=new WeakMap,s=r.defineIntegration((e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(a.has(r.getClient()))for(let t of e)r.withScope(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,i="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;i=[e.crashId||"",e.reason||""].join(" ").trim()||i}else i=t.body.message||i}r.captureMessage(`${n}: ${i}`)})}return{name:"ReportingObserver",setupOnce(){i.supportsReportingObserver()&&new o.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){a.set(e,!0)}}});t.reportingObserverIntegration=s},99600:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521);t.metrics={increment:function(e,t=1,n){r.metrics.increment(r.BrowserMetricsAggregator,e,t,n)},distribution:function(e,t,n){r.metrics.distribution(r.BrowserMetricsAggregator,e,t,n)},set:function(e,t,n){r.metrics.set(r.BrowserMetricsAggregator,e,t,n)},gauge:function(e,t,n){r.metrics.gauge(r.BrowserMetricsAggregator,e,t,n)},timing:function(e,t,n="second",i){return r.metrics.timing(r.BrowserMetricsAggregator,e,t,n,i)}}},50775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(26751),s=n(42693),l=r.defineIntegration(()=>({name:"BrowserProfiling",setup(e){let t=r.getActiveSpan(),n=t&&r.getRootSpan(t);n&&s.isAutomatedPageLoadSpan(n)&&s.shouldProfileSpan(n)&&a.startProfileForSpan(n),e.on("spanStart",e=>{e===r.getRootSpan(e)&&s.shouldProfileSpan(e)&&a.startProfileForSpan(e)}),e.on("beforeEnvelope",e=>{if(!s.getActiveProfilesCount())return;let t=s.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;let n=[];for(let e of t){let t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id,a=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof r||!r){o.DEBUG_BUILD&&i.logger.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;let l=s.takeProfileFromGlobalCache(r);if(!l){o.DEBUG_BUILD&&i.logger.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let c=s.createProfilingEvent(r,a,l,e);c&&n.push(c)}s.addProfilesToEnvelope(e,n)})}}));t.browserProfilingIntegration=l},26751:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(17858),s=n(42693);t.startProfileForSpan=function(e){let t;s.isAutomatedPageLoadSpan(e)&&(t=1e3*i.timestampInSeconds());let n=s.startJSSelfProfile();if(!n)return;o.DEBUG_BUILD&&i.logger.log(`[Profiling] started profiling span: ${r.spanToJSON(e).description}`);let l=i.uuid4();async function c(){if(e&&n)return n.stop().then(t=>{if(u&&(a.WINDOW.clearTimeout(u),u=void 0),o.DEBUG_BUILD&&i.logger.log(`[Profiling] stopped profiling of span: ${r.spanToJSON(e).description}`),!t){o.DEBUG_BUILD&&i.logger.log(`[Profiling] profiler returned null profile for: ${r.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}s.addProfileToGlobalCache(l,t)}).catch(e=>{o.DEBUG_BUILD&&i.logger.log("[Profiling] error while stopping profiler:",e)})}r.getCurrentScope().setContext("profile",{profile_id:l,start_timestamp:t});let u=a.WINDOW.setTimeout(()=>{o.DEBUG_BUILD&&i.logger.log("[Profiling] max profile duration elapsed, stopping profiling for:",r.spanToJSON(e).description),c()},s.MAX_PROFILE_DURATION_MS),d=e.end.bind(e);e.end=function(){return e?(c().then(()=>{d()},()=>{d()}),e):d()}}},42693:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(17858),s=String(0),l="",c="",u="",d=a.WINDOW.navigator&&a.WINDOW.navigator.userAgent||"",p="",f=a.WINDOW.navigator&&a.WINDOW.navigator.language||a.WINDOW.navigator&&a.WINDOW.navigator.languages&&a.WINDOW.navigator.languages[0]||"",h=a.WINDOW.navigator&&a.WINDOW.navigator.userAgentData;function m(e){return"thread_metadata"in e?e:y(e)}function g(e,t,n,h){if("transaction"!==h.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let g=function(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return("string"==typeof t&&32!==t.length&&o.DEBUG_BUILD&&i.logger.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(h),y=m(n),_=t||("number"==typeof h.start_timestamp?1e3*h.start_timestamp:1e3*i.timestampInSeconds()),b="number"==typeof h.timestamp?1e3*h.timestamp:1e3*i.timestampInSeconds();return{event_id:e,timestamp:new Date(_).toISOString(),platform:"javascript",version:"1",release:h.release||"",environment:h.environment||r.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:a.WINDOW.navigator.userAgent},os:{name:l,version:c,build_number:d},device:{locale:f,model:p,manufacturer:d,architecture:u,is_emulator:!1},debug_meta:{images:v(n.resources)},profile:y,transactions:[{name:h.transaction||"",id:h.event_id||i.uuid4(),trace_id:g,active_thread_id:s,relative_start_ns:"0",relative_end_ns:((b-_)*1e6).toFixed(0)}]}}function y(e){let t;let n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[s]:{name:"main"}}},o=e.samples[0];if(!o)return r;let a=o.timestamp,l="number"==typeof performance.timeOrigin?performance.timeOrigin:i.browserPerformanceTimeOrigin||0,c=l-(i.browserPerformanceTimeOrigin||l);return e.samples.forEach((i,o)=>{if(void 0===i.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+c-a)*1e6).toFixed(0),stack_id:t,thread_id:s};return}let l=e.stacks[i.stackId],u=[];for(;l;){u.push(l.frameId);let t=e.frames[l.frameId];t&&void 0===r.frames[l.frameId]&&(r.frames[l.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),l=void 0===l.parentId?void 0:e.stacks[l.parentId]}let d={elapsed_since_start_ns:((i.timestamp+c-a)*1e6).toFixed(0),stack_id:n,thread_id:s};r.stacks[n]=u,r.samples[o]=d,n++}),r}"object"==typeof h&&null!==h&&"getHighEntropyValues"in h&&h.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(l=e.platform||"",u=e.architecture||"",p=e.model||"",c=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];d=`${t.brand} ${t.version}`}}).catch(e=>void 0);let _=new WeakMap;function v(e){let t;let n=i.GLOBAL_OBJ._sentryDebugIds;if(!n)return[];let o=r.getClient(),a=o&&o.getOptions(),s=a&&a.stackParser;if(!s)return[];let l=_.get(s);l?t=l:(t=new Map,_.set(s,t));let c=Object.keys(n).reduce((e,r)=>{let i;let o=t.get(r);o?i=o:(i=s(r),t.set(r,i));for(let t=i.length-1;t>=0;t--){let o=i[t],a=o&&o.filename;if(o&&a){e[a]=n[r];break}}return e},{}),u=[];for(let t of e)t&&c[t]&&u.push({type:"sourcemap",code_file:t,debug_id:c[t]});return u}function b(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(o.DEBUG_BUILD&&i.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(o.DEBUG_BUILD&&i.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}let S=!1,E=new Map;t.MAX_PROFILE_DURATION_MS=3e4,t.addProfileToGlobalCache=function(e,t){if(E.set(e,t),E.size>30){let e=E.keys().next().value;E.delete(e)}},t.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:"profile"},n]);return e},t.applyDebugMetadata=v,t.convertJSSelfProfileToSampledFormat=y,t.createProfilePayload=g,t.createProfilingEvent=function(e,t,n,r){return(n.samples.length<2?(o.DEBUG_BUILD&&i.logger.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(o.DEBUG_BUILD&&i.logger.log("[Profiling] Discarding profile because it contains no frames"),1))?null:g(e,t,n,r)},t.enrichWithThreadInformation=m,t.findProfiledTransactionsFromEnvelope=function(e){let t=[];return i.forEachEnvelopeItem(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&t.push(e[n])}}),t},t.getActiveProfilesCount=function(){return E.size},t.isAutomatedPageLoadSpan=function(e){return"pageload"===r.spanToJSON(e).op},t.isValidSampleRate=b,t.shouldProfileSpan=function(e){if(S)return o.DEBUG_BUILD&&i.logger.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return o.DEBUG_BUILD&&i.logger.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=r.getClient(),n=t&&t.getOptions();if(!n)return o.DEBUG_BUILD&&i.logger.log("[Profiling] Profiling disabled, no options found."),!1;let a=n.profilesSampleRate;return b(a)?a?!!(!0===a||Math.random()<a)||(o.DEBUG_BUILD&&i.logger.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(a)})`),!1):(o.DEBUG_BUILD&&i.logger.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(o.DEBUG_BUILD&&i.logger.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)},t.startJSSelfProfile=function(){let e=a.WINDOW.Profiler;if("function"!=typeof e){o.DEBUG_BUILD&&i.logger.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}try{return new e({sampleInterval:10,maxBufferSize:Math.floor(3e3)})}catch(e){o.DEBUG_BUILD&&(i.logger.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),i.logger.log("[Profiling] Disabling profiling for current user session.")),S=!0}},t.takeProfileFromGlobalCache=function(e){let t=E.get(e);return t&&E.delete(e),t}},5686:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(75168),a=n(69628),s=n(85338),l=n(17858),c=n(76855),u=n(92496),d=n(52219),p=n(55428),f=n(50099),h=n(63975),m=n(46840);function g(e){return[r.inboundFiltersIntegration(),r.functionToStringIntegration(),u.browserApiErrorsIntegration(),c.breadcrumbsIntegration(),d.globalHandlersIntegration(),f.linkedErrorsIntegration(),r.dedupeIntegration(),p.httpContextIntegration()]}t.captureUserFeedback=function(e){let t=r.getClient();t&&t.captureUserFeedback(e)},t.forceLoad=function(){},t.getDefaultIntegrations=g,t.init=function(e={}){let t=function(e={}){let t={defaultIntegrations:g(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:l.WINDOW.SENTRY_RELEASE&&l.WINDOW.SENTRY_RELEASE.id?l.WINDOW.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){let e=void 0!==l.WINDOW.window&&l.WINDOW;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=l.WINDOW.location&&l.WINDOW.location.href||"",o=!!r&&l.WINDOW===l.WINDOW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),a=void 0!==e.nw;return!!r&&!o&&!a}()){i.consoleSandbox(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}s.DEBUG_BUILD&&!i.supportsFetch()&&i.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");let n={...t,stackParser:i.stackParserFromStackParserOptions(t.stackParser||h.defaultStackParser),integrations:r.getIntegrationsToSetup(t),transport:t.transport||m.makeFetchTransport},c=r.initAndBind(a.BrowserClient,n);return t.autoSessionTracking&&function(){if(void 0===l.WINDOW.document){s.DEBUG_BUILD&&i.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}r.startSession({ignoreDuration:!0}),r.captureSession(),o.addHistoryInstrumentationHandler(({from:e,to:t})=>{void 0!==e&&e!==t&&(r.startSession({ignoreDuration:!0}),r.captureSession())})}(),c},t.onLoad=function(e){e()},t.showReportDialog=function(e={}){if(!l.WINDOW.document){s.DEBUG_BUILD&&i.logger.error("Global document not defined in showReportDialog call");return}let t=r.getCurrentScope(),n=t.getClient(),o=n&&n.getDsn();if(!o){s.DEBUG_BUILD&&i.logger.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){let t=r.lastEventId();t&&(e.eventId=t)}let a=l.WINDOW.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=r.getReportDialogEndpoint(o,e),e.onLoad&&(a.onload=e.onLoad);let{onClose:c}=e;if(c){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{c()}finally{l.WINDOW.removeEventListener("message",e)}};l.WINDOW.addEventListener("message",e)}let u=l.WINDOW.document.head||l.WINDOW.document.body;u?u.appendChild(a):s.DEBUG_BUILD&&i.logger.error("Not injecting report dialog. No injection point found in HTML")}},63975:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);function i(e,t,n,i){let o={filename:e,function:"<anonymous>"===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==i&&(o.colno=i),o}let o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=[30,e=>{let t=o.exec(e);if(t){let[,e,n,o]=t;return i(e,r.UNKNOWN_FUNCTION,+n,+o)}let n=a.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=s.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=_(n[1]||r.UNKNOWN_FUNCTION,n[2]);return i(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{let t=c.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=u.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.UNKNOWN_FUNCTION;return[n,e]=_(n,e),i(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{let t=p.exec(e);return t?i(t[2],t[1]||r.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[l,d],y=r.createStackParser(...g),_=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return n||i?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};t.chromeStackLineParser=l,t.defaultStackLineParsers=g,t.defaultStackParser=y,t.geckoStackLineParser=d,t.opera10StackLineParser=[10,e=>{let t=h.exec(e);return t?i(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):void 0}],t.opera11StackLineParser=[20,e=>{let t=m.exec(e);return t?i(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],t.winjsStackLineParser=f},10490:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(85338),a=n(17858);t.registerBackgroundTabDetection=function(){a.WINDOW&&a.WINDOW.document?a.WINDOW.document.addEventListener("visibilitychange",()=>{let e=r.getActiveSpan();if(!e)return;let t=r.getRootSpan(e);if(a.WINDOW.document.hidden&&t){let e="cancelled",{op:n,status:a}=r.spanToJSON(t);o.DEBUG_BUILD&&i.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),a||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):o.DEBUG_BUILD&&i.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},59683:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(75168),i=n(13521),o=n(94628),a=n(85338),s=n(17858),l=n(10490),c=n(88230),u="BrowserTracing",d={...i.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...c.defaultRequestInstrumentationOptions};function p(e,t,n){e.emit("startPageLoadSpan",t,n),i.getCurrentScope().setTransactionName(t.name);let r=i.getActiveSpan();return"pageload"===(r&&i.spanToJSON(r).op)?r:void 0}function f(e,t){i.getIsolationScope().setPropagationContext(o.generatePropagationContext()),i.getCurrentScope().setPropagationContext(o.generatePropagationContext()),e.emit("startNavigationSpan",t),i.getCurrentScope().setTransactionName(t.name);let n=i.getActiveSpan();return"navigation"===(n&&i.spanToJSON(n).op)?n:void 0}function h(e){let t=o.getDomElement(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}t.BROWSER_TRACING_INTEGRATION_ID=u,t.browserTracingIntegration=(e={})=>{i.registerSpanErrorInstrumentation();let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:m,_experiments:{enableInteractions:g,enableStandaloneClsSpans:y},beforeStartSpan:_,idleTimeout:v,finalTimeout:b,childSpanTimeout:S,markBackgroundSpan:E,traceFetch:T,traceXHR:w,trackFetchStreamPerformance:I,shouldCreateSpanForRequest:k,enableHTTPTimings:O,instrumentPageLoad:A,instrumentNavigation:C}={...d,...e},N=r.startTrackingWebVitals({recordClsStandaloneSpans:y||!1});t&&r.startTrackingINP(),m&&o.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?r.startTrackingLongAnimationFrames():n&&r.startTrackingLongTasks(),g&&r.startTrackingInteractions();let D={name:void 0,source:void 0};function x(e,t){let n="pageload"===t.op,o=_?_(t):t,a=o.attributes||{};t.name!==o.name&&(a[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",o.attributes=a),D.name=o.name,D.source=a[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let l=i.startIdleSpan(o,{idleTimeout:v,finalTimeout:b,childSpanTimeout:S,disableAutoFinish:n,beforeSpanEnd:e=>{N(),r.addPerformanceEntries(e,{recordClsOnPageloadSpan:!y})}});function c(){["interactive","complete"].includes(s.WINDOW.document.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}return n&&s.WINDOW.document&&(s.WINDOW.document.addEventListener("readystatechange",()=>{c()}),c()),l}return{name:u,afterAllSetup(e){let n,u;let d=s.WINDOW.location&&s.WINDOW.location.href;e.on("startNavigationSpan",t=>{i.getClient()===e&&(n&&!i.spanToJSON(n).timestamp&&(a.DEBUG_BUILD&&o.logger.log(`[Tracing] Finishing current root span with op: ${i.spanToJSON(n).op}`),n.end()),n=x(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if(i.getClient()!==e)return;n&&!i.spanToJSON(n).timestamp&&(a.DEBUG_BUILD&&o.logger.log(`[Tracing] Finishing current root span with op: ${i.spanToJSON(n).op}`),n.end());let s=r.sentryTrace||h("sentry-trace"),l=r.baggage||h("baggage"),c=o.propagationContextFromHeaders(s,l);i.getCurrentScope().setPropagationContext(c),n=x(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=i.spanToJSON(e).op;if(e!==i.getRootSpan(e)||"navigation"!==t&&"pageload"!==t)return;let n=i.getCurrentScope(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:i.spanIsSampled(e),dsc:r.dsc||i.getDynamicSamplingContextFromSpan(e)})}),s.WINDOW.location&&(A&&p(e,{name:s.WINDOW.location.pathname,startTime:o.browserPerformanceTimeOrigin?o.browserPerformanceTimeOrigin/1e3:void 0,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}}),C&&r.addHistoryInstrumentationHandler(({to:t,from:n})=>{if(void 0===n&&d&&-1!==d.indexOf(t)){d=void 0;return}n!==t&&(d=void 0,f(e,{name:s.WINDOW.location.pathname,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}}))})),E&&l.registerBackgroundTabDetection(),g&&s.WINDOW.document&&addEventListener("click",()=>{let e="ui.action.click",t=i.getActiveSpan(),n=t&&i.getRootSpan(t);if(n&&["navigation","pageload"].includes(i.spanToJSON(n).op)){a.DEBUG_BUILD&&o.logger.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),u.end(),u=void 0),!D.name){a.DEBUG_BUILD&&o.logger.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=i.startIdleSpan({name:D.name,op:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:D.source||"url"}},{idleTimeout:v,finalTimeout:b,childSpanTimeout:S})},{once:!1,capture:!0}),t&&r.registerInpInteractionListener(),c.instrumentOutgoingRequests(e,{traceFetch:T,traceXHR:w,trackFetchStreamPerformance:I,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:k,enableHTTPTimings:O})}}},t.getMetaContent=h,t.startBrowserTracingNavigationSpan=f,t.startBrowserTracingPageLoadSpan=p},88230:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(75168),i=n(13521),o=n(94628),a=n(17858),s=new WeakMap,l=new Map,c={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function u(e){let{url:t}=i.spanToJSON(e).data||{};if(!t||"string"!=typeof t)return;let n=r.addPerformanceInstrumentationHandler("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=d(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),o.browserPerformanceTimeOrigin)?[...r,["http.request.redirect_start",p(e.redirectStart)],["http.request.fetch_start",p(e.fetchStart)],["http.request.domain_lookup_start",p(e.domainLookupStart)],["http.request.domain_lookup_end",p(e.domainLookupEnd)],["http.request.connect_start",p(e.connectStart)],["http.request.secure_connection_start",p(e.secureConnectionStart)],["http.request.connection_end",p(e.connectEnd)],["http.request.request_start",p(e.requestStart)],["http.request.response_start",p(e.responseStart)],["http.request.response_end",p(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function d(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function p(e=0){return((o.browserPerformanceTimeOrigin||performance.timeOrigin)+e)/1e3}function f(e,t){let n=a.WINDOW.location&&a.WINDOW.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let a=r.origin===i;return t?o.stringMatchesSomePattern(r.toString(),t)||a&&o.stringMatchesSomePattern(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?o.stringMatchesSomePattern(e,t):n}}function h(e,t,n,a){let s=e.xhr,l=s&&s[r.SENTRY_XHR_DATA_KEY];if(!s||s.__sentry_own_request__||!l)return;let c=i.hasTracingEnabled()&&t(l.url);if(e.endTimestamp&&c){let e=s.__sentry_xhr_span_id__;if(!e)return;let t=a[e];t&&void 0!==l.status_code&&(i.setHttpStatus(t,l.status_code),t.end(),delete a[e]);return}let u=m(l.url),d=u?o.parseUrl(u).host:void 0,p=!!i.getActiveSpan(),f=c&&p?i.startInactiveSpan({name:`${l.method} ${l.url}`,attributes:{type:"xhr","http.method":l.method,"http.url":u,url:l.url,"server.address":d,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new i.SentryNonRecordingSpan;s.__sentry_xhr_span_id__=f.spanContext().spanId,a[s.__sentry_xhr_span_id__]=f;let h=i.getClient();return s.setRequestHeader&&n(l.url)&&h&&function(e,t,n){let r=i.getCurrentScope(),{traceId:a,spanId:s,sampled:l,dsc:c}={...i.getIsolationScope().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(o.BAGGAGE_HEADER_NAME,n)}catch(e){}})(e,n&&i.hasTracingEnabled()?i.spanToTraceHeader(n):o.generateSentryTraceHeader(a,s,l),o.dynamicSamplingContextToSentryBaggageHeader(c||(n?i.getDynamicSamplingContextFromSpan(n):i.getDynamicSamplingContextFromClient(a,t))))}(s,h,i.hasTracingEnabled()&&p?f:void 0),f}function m(e){try{return new URL(e,a.WINDOW.location.origin).href}catch(e){return}}t.defaultRequestInstrumentationOptions=c,t.extractNetworkProtocol=d,t.instrumentOutgoingRequests=function(e,t){let{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:d,shouldCreateSpanForRequest:p,enableHTTPTimings:g,tracePropagationTargets:y}={traceFetch:c.traceFetch,traceXHR:c.traceXHR,trackFetchStreamPerformance:c.trackFetchStreamPerformance,...t},_="function"==typeof p?p:e=>!0,v=e=>f(e,y),b={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=l.get(e.span_id);t&&(e.timestamp=t/1e3,l.delete(e.span_id))}}),e)),d&&o.addFetchEndInstrumentationHandler(e=>{if(e.response){let t=s.get(e.response);t&&e.endTimestamp&&l.set(t,e.endTimestamp)}}),o.addFetchInstrumentationHandler(e=>{let t=i.instrumentFetchRequest(e,_,v,b);if(e.response&&e.fetchData.__span&&s.set(e.response,e.fetchData.__span),t){let n=m(e.fetchData.url),r=n?o.parseUrl(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}g&&t&&u(t)})),a&&r.addXhrInstrumentationHandler(e=>{let t=h(e,_,v,b);g&&t&&u(t)})},t.shouldAttachHeaders=f,t.xhrCallback=h},46840:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(75168),i=n(13521),o=n(94628);t.makeFetchTransport=function(e,t=r.getNativeImplementation("fetch")){let n=0,a=0;return i.createTransport(e,function(i){let s=i.body.length;n+=s,a++;let l={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&a<15,...e.fetchOptions};if(!t)return r.clearCachedImplementation("fetch"),o.rejectedSyncPromise("No fetch implementation available");try{return t(e.url,l).then(e=>(n-=s,a--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return r.clearCachedImplementation("fetch"),n-=s,a--,o.rejectedSyncPromise(e)}})}},35821:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(46840);function a(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function s(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=a(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}function l(e){return a(e.getAllKeys())}function c(e,t,n){return e(e=>l(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),a(e.transaction)}))}function u(e,t,n){return e(e=>l(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),a(e.transaction)}))}function d(e){return e(e=>l(e).then(t=>{let n=t[0];if(null!=n)return a(e.get(n)).then(t=>(e.delete(n),a(e.transaction).then(()=>t)))}))}function p(e){let t;function n(){return void 0==t&&(t=s(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{let r=await i.serializeEnvelope(t);await c(n(),r,e.maxQueueSize||30)}catch(e){}},unshift:async t=>{try{let r=await i.serializeEnvelope(t);await u(n(),r,e.maxQueueSize||30)}catch(e){}},shift:async()=>{try{let e=await d(n());if(e)return i.parseEnvelope(e)}catch(e){}}}}t.createStore=s,t.makeBrowserOfflineTransport=function(e=o.makeFetchTransport){var t;return t=r.makeOfflineTransport(e),e=>t({...e,createStore:p})},t.push=c,t.shift=d,t.unshift=u},64624:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);t.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:n,dsn:i}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:r.dsnToString(i)}};return r.createEnvelope(o,[[{type:"user_report"},e]])}},38393:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(17858),o={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"},a=i.WINDOW;async function s(e,t){let n=o[e],s=a.Sentry=a.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let l=s[e];if("function"==typeof l&&!("_isShim"in l))return l;let c=function(e){let t=r.getClient(),n=t&&t.getOptions(),i=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${r.SDK_VERSION}/${e}.min.js`,i).toString()}(n),u=i.WINDOW.document.createElement("script");u.src=c,u.crossOrigin="anonymous",u.referrerPolicy="origin",t&&u.setAttribute("nonce",t);let d=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),p=i.WINDOW.document.currentScript,f=i.WINDOW.document.body||i.WINDOW.document.head||p&&p.parentElement;if(f)f.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await d}catch(t){throw Error(`Error when loading integration: ${e}`)}let h=s[e];if("function"!=typeof h)throw Error(`Could not load integration: ${e}`);return h}t.lazyLoadIntegration=s},21676:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);function i(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}t.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${i(e)}${e.projectId}/envelope/?${r.urlEncode({sentry_key:e.publicKey,sentry_version:"7",...n&&{sentry_client:`${n.name}/${n.version}`}})}`},t.getReportDialogEndpoint=function(e,t){let n=r.makeDsn(e);if(!n)return"";let o=`${i(n)}embed/error-page/`,a=`dsn=${r.dsnToString(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e){if("user"===e){let e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`}return`${o}?${a}`}},6250:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(28788),i=n(55721);t.getAsyncContextStrategy=function(e){let t=r.getSentryCarrier(e);return t.acs?t.acs:i.getStackAsyncContextStrategy()},t.setAsyncContextStrategy=function(e){let t=r.getMainCarrier();r.getSentryCarrier(t).acs=e}},55721:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(83243),o=n(81065),a=n(28788);class s{constructor(e,t){let n,r;n=e||new o.Scope,r=t||new o.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return r.isThenable(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=a.getMainCarrier(),t=a.getSentryCarrier(e);return t.stack=t.stack||new s(i.getDefaultCurrentScope(),i.getDefaultIsolationScope())}function c(e){return l().withScope(e)}function u(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}t.AsyncContextStack=s,t.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},95660:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21676),o=n(21216),a=n(22842),s=n(19270),l=n(61741),c=n(75092),u=n(89172),d=n(84564),p=n(52852),f="Not capturing exception because it's already been captured.";class h{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=r.makeDsn(e.dsn):a.DEBUG_BUILD&&r.logger.warn("No DSN provided, client will not send events."),this._dsn){let t=i.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){let i=r.uuid4();if(r.checkOrSetAlreadyCaught(e))return a.DEBUG_BUILD&&r.logger.log(f),i;let o={event_id:i,...t};return this._process(this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n))),o.event_id}captureMessage(e,t,n,i){let o={event_id:r.uuid4(),...n},a=r.isParameterizedString(e)?e:String(e),s=r.isPrimitive(e)?this.eventFromMessage(a,t,o):this.eventFromException(e,o);return this._process(s.then(e=>this._captureEvent(e,o,i))),o.event_id}captureEvent(e,t,n){let i=r.uuid4();if(t&&t.originalException&&r.checkOrSetAlreadyCaught(t.originalException))return a.DEBUG_BUILD&&r.logger.log(f),i;let o={event_id:i,...t},s=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,s||n)),o.event_id}captureSession(e){"string"!=typeof e.release?a.DEBUG_BUILD&&r.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),c.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):r.resolvedSyncPromise(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];l.setupIntegration(this,e,this._integrations),t||l.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=s.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=r.addItemToEnvelope(n,r.createAttachmentEnvelopeItem(e));let i=this.sendEnvelope(n);i&&i.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=s.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let i="number"==typeof n?n:1,o=`${e}:${t}`;a.DEBUG_BUILD&&r.logger.log(`Recording outcome: "${o}"${i>1?` (${i} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+i}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(a.DEBUG_BUILD&&r.logger.error("Error while sending event:",e),e)):(a.DEBUG_BUILD&&r.logger.error("Transport disabled"),r.resolvedSyncPromise({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=l.setupIntegrations(this,e),l.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&(c.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new r.SyncPromise(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,i=o.getIsolationScope()){let a=this.getOptions(),s=Object.keys(this._integrations);return!t.integrations&&s.length>0&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),p.prepareEvent(a,e,t,n,this,i).then(e=>{if(null===e)return e;let t={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:i,parentSpanId:o,dsc:a}=t;e.contexts={trace:r.dropUndefinedKeys({trace_id:n,span_id:i,parent_span_id:o}),...e.contexts};let s=a||u.getDynamicSamplingContextFromClient(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{a.DEBUG_BUILD&&("log"===e.logLevel?r.logger.log(e.message):r.logger.warn(e))})}_processEvent(e,t,n){let i=this.getOptions(),{sampleRate:o}=i,a=g(e),s=m(e),l=e.type||"error",c=`before send for type \`${l}\``,u=void 0===o?void 0:d.parseSampleRate(o);if(s&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),r.rejectedSyncPromise(new r.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));let p="replay_event"===l?"replay":l,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new r.SentryError("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(r.isThenable(e))return e.then(e=>{if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e},e=>{throw new r.SentryError(`${t} rejected with ${e}`)});if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;if(m(n)&&i)return i(n,r);if(g(n)){if(n.spans&&a){let t=[];for(let r of n.spans){let n=a(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,i,n,t),c)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",p,e),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new r.SentryError(`${c} returned \`null\`, will not send event.`,"log")}let o=n&&n.getSession();if(!a&&o&&this._updateSessionFromEvent(o,i),a){let e=(i.sdkProcessingMetadata&&i.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let s=i.transaction_info;return a&&s&&i.transaction!==e.transaction&&(i.transaction_info={...s,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(e instanceof r.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new r.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){a.DEBUG_BUILD&&r.logger.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){a.DEBUG_BUILD&&r.logger.log("No outcomes to send");return}if(!this._dsn){a.DEBUG_BUILD&&r.logger.log("No dsn provided, will not send outcomes");return}a.DEBUG_BUILD&&r.logger.log("Sending outcomes:",e);let t=r.createClientReportEnvelope(e,this._options.tunnel&&r.dsnToString(this._dsn));this.sendEnvelope(t)}}function m(e){return void 0===e.type}function g(e){return"transaction"===e.type}t.BaseClient=h},92125:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216);t.addBreadcrumb=function(e,t){let n=i.getClient(),o=i.getIsolationScope();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:s=100}=n.getOptions();if(s<=0)return;let l={timestamp:r.dateTimestampInSeconds(),...e},c=a?r.consoleSandbox(()=>a(l,t)):l;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),o.addBreadcrumb(c,s))}},28788:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}t.getMainCarrier=function(){return i(r.GLOBAL_OBJ),r.GLOBAL_OBJ},t.getSentryCarrier=i},93344:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);t.createCheckInEnvelope=function(e,t,n,i,o){let a={sent_at:new Date().toISOString()};return n&&n.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),i&&o&&(a.dsn=r.dsnToString(o)),t&&(a.trace=r.dropUndefinedKeys(t)),r.createEnvelope(a,[[{type:"check_in"},e]])}},99818:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_ENVIRONMENT="production"},21216:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(6250),o=n(28788),a=n(81065);function s(){let e=o.getMainCarrier();return i.getAsyncContextStrategy(e).getCurrentScope()}t.getClient=function(){return s().getClient()},t.getCurrentScope=s,t.getGlobalScope=function(){return r.getGlobalSingleton("globalScope",()=>new a.Scope)},t.getIsolationScope=function(){let e=o.getMainCarrier();return i.getAsyncContextStrategy(e).getIsolationScope()},t.withIsolationScope=function(...e){let t=o.getMainCarrier(),n=i.getAsyncContextStrategy(t);if(2===e.length){let[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},t.withScope=function(...e){let t=o.getMainCarrier(),n=i.getAsyncContextStrategy(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}},22842:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},83243:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(81065);t.getDefaultCurrentScope=function(){return r.getGlobalSingleton("defaultCurrentScope",()=>new i.Scope)},t.getDefaultIsolationScope=function(){return r.getGlobalSingleton("defaultIsolationScope",()=>new i.Scope)}},19270:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(89172),o=n(67656);t.createEventEnvelope=function(e,t,n,i){var o;let a=r.getSdkMetadataForEnvelopeHeader(n),s=e.type&&"replay_event"!==e.type?e.type:"event";(o=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||o.name,e.sdk.version=e.sdk.version||o.version,e.sdk.integrations=[...e.sdk.integrations||[],...o.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...o.packages||[]]);let l=r.createEventEnvelopeHeaders(e,a,i,t);delete e.sdkProcessingMetadata;let c=[{type:s},e];return r.createEnvelope(l,[c])},t.createSessionEnvelope=function(e,t,n,i){let o=r.getSdkMetadataForEnvelopeHeader(n),a={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!i&&t&&{dsn:r.dsnToString(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return r.createEnvelope(a,[s])},t.createSpanEnvelope=function(e,t){let n=i.getDynamicSamplingContextFromSpan(e[0]),a=t&&t.getDsn(),s=t&&t.getOptions().tunnel,l={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!s&&a&&{dsn:r.dsnToString(a)}},c=t&&t.getOptions().beforeSendSpan,u=c?e=>c(o.spanToJSON(e)):e=>o.spanToJSON(e),d=[];for(let t of e){let e=u(t);e&&d.push(r.createSpanEnvelopeItem(e))}return r.createEnvelope(l,d)}},58737:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842);t.notifyEventProcessors=function e(t,n,o,a=0){return new r.SyncPromise((s,l)=>{let c=t[a];if(null===n||"function"!=typeof c)s(n);else{let u=c({...n},o);i.DEBUG_BUILD&&c.id&&null===u&&r.logger.log(`Event processor "${c.id}" dropped event`),r.isThenable(u)?u.then(n=>e(t,n,o,a+1).then(s)).then(null,l):e(t,u,o,a+1).then(s).then(null,l)}})}},49036:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(99818),o=n(21216),a=n(22842),s=n(75092),l=n(52852);function c(e,t){let n=o.getCurrentScope(),i=o.getClient();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,n);a.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else a.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. No client defined.");return r.uuid4()}async function u(e){let t=o.getClient();return t?t.flush(e):(a.DEBUG_BUILD&&r.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function d(e){let t=o.getClient();return t?t.close(e):(a.DEBUG_BUILD&&r.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function p(){let e=o.getIsolationScope(),t=o.getCurrentScope(),n=t.getSession()||e.getSession();n&&s.closeSession(n),f(),e.setSession(),t.setSession()}function f(){let e=o.getIsolationScope(),t=o.getCurrentScope(),n=o.getClient(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}t.addEventProcessor=function(e){o.getIsolationScope().addEventProcessor(e)},t.captureCheckIn=c,t.captureEvent=function(e,t){return o.getCurrentScope().captureEvent(e,t)},t.captureException=function(e,t){return o.getCurrentScope().captureException(e,l.parseEventHintOrCaptureContext(t))},t.captureMessage=function(e,t){let n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return o.getCurrentScope().captureMessage(e,n,r)},t.captureSession=function(e=!1){if(e){p();return}f()},t.close=d,t.endSession=p,t.flush=u,t.isEnabled=function(){let e=o.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},t.isInitialized=function(){return!!o.getClient()},t.lastEventId=function(){return o.getIsolationScope().lastEventId()},t.setContext=function(e,t){o.getIsolationScope().setContext(e,t)},t.setExtra=function(e,t){o.getIsolationScope().setExtra(e,t)},t.setExtras=function(e){o.getIsolationScope().setExtras(e)},t.setTag=function(e,t){o.getIsolationScope().setTag(e,t)},t.setTags=function(e){o.getIsolationScope().setTags(e)},t.setUser=function(e){o.getIsolationScope().setUser(e)},t.startSession=function(e){let t=o.getClient(),n=o.getIsolationScope(),a=o.getCurrentScope(),{release:l,environment:c=i.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:u}=r.GLOBAL_OBJ.navigator||{},d=s.makeSession({release:l,environment:c,user:a.getUser()||n.getUser(),...u&&{userAgent:u},...e}),f=n.getSession();return f&&"ok"===f.status&&s.updateSession(f,{status:"exited"}),p(),n.setSession(d),a.setSession(d),d},t.withMonitor=function(e,t,n){let i=c({monitorSlug:e,status:"in_progress"},n),a=r.timestampInSeconds();function s(t){c({monitorSlug:e,status:t,checkInId:i,duration:r.timestampInSeconds()-a})}return o.withIsolationScope(()=>{let e;try{e=t()}catch(e){throw s("error"),e}return r.isThenable(e)?Promise.resolve(e).then(()=>{s("ok")},()=>{s("error")}):s("ok"),e})}},90833:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216);t.captureFeedback=function(e,t={},n=i.getCurrentScope()){let{message:o,name:a,email:s,url:l,source:c,associatedEventId:u,tags:d}=e,p={contexts:{feedback:r.dropUndefinedKeys({contact_email:s,name:a,message:o,url:l,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:d},f=n&&n.getClient()||i.getClient();return f&&f.emit("beforeSendFeedback",p,t),n.captureEvent(p,t)}},7386:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(61520);n(5471),n(22842);let a=n(67753),s=n(67656),l=n(53664),c=n(96493),u=n(86480),d=n(89172);function p(e,t,n,o,a){let{traceId:l,spanId:c,sampled:u,dsc:p}={...i.getIsolationScope().getPropagationContext(),...n.getPropagationContext()},h=a?s.spanToTraceHeader(a):r.generateSentryTraceHeader(l,c,u),m=r.dynamicSamplingContextToSentryBaggageHeader(p||(a?d.getDynamicSamplingContextFromSpan(a):d.getDynamicSamplingContextFromClient(l,t))),g=o.headers||("undefined"!=typeof Request&&r.isInstanceOf(e,Request)?e.headers:void 0);if(!g)return{"sentry-trace":h,baggage:m};if("undefined"!=typeof Headers&&r.isInstanceOf(g,Headers)){let e=new Headers(g);if(e.set("sentry-trace",h),m){let t=e.get(r.BAGGAGE_HEADER_NAME);if(t){let n=f(t);e.set(r.BAGGAGE_HEADER_NAME,n?`${n},${m}`:m)}else e.set(r.BAGGAGE_HEADER_NAME,m)}return e}if(Array.isArray(g)){let e=[...g.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||e[0]!==r.BAGGAGE_HEADER_NAME||"string"!=typeof e[1])return e;{let[t,n,...r]=e;return[t,f(n),...r]}}),["sentry-trace",h]];return m&&e.push([r.BAGGAGE_HEADER_NAME,m]),e}{let e="baggage"in g?g.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?f(e):e).filter(e=>""===e):e&&t.push(f(e)),m&&t.push(m),{...g,"sentry-trace":h,baggage:t.length>0?t.join(","):void 0}}}function f(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(r.SENTRY_BAGGAGE_KEY_PREFIX)).join(",")}t.addTracingHeadersToFetchRequest=p,t.instrumentFetchRequest=function(e,t,n,d,f="auto.http.browser"){if(!e.fetchData)return;let h=a.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&h){let t=e.fetchData.__span;if(!t)return;let n=d[t];n&&(function(e,t){if(t.response){c.setHttpStatus(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:c.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),delete d[t]);return}let m=i.getCurrentScope(),g=i.getClient(),{method:y,url:_}=e.fetchData,v=function(e){try{return new URL(e).href}catch(e){return}}(_),b=v?r.parseUrl(v).host:void 0,S=!!s.getActiveSpan(),E=h&&S?u.startInactiveSpan({name:`${y} ${_}`,attributes:{url:_,type:"fetch","http.method":y,"http.url":v,"server.address":b,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:f,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new l.SentryNonRecordingSpan;if(e.fetchData.__span=E.spanContext().spanId,d[E.spanContext().spanId]=E,n(e.fetchData.url)&&g){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=p(t,g,m,n,a.hasTracingEnabled()&&S?E:void 0)}return E}},3855:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(92125),i=n(21216),o=n(49036);function a(){return{bindClient(e){i.getCurrentScope().setClient(e)},withScope:i.withScope,getClient:()=>i.getClient(),getScope:i.getCurrentScope,getIsolationScope:i.getIsolationScope,captureException:(e,t)=>i.getCurrentScope().captureException(e,t),captureMessage:(e,t,n)=>i.getCurrentScope().captureMessage(e,t,n),captureEvent:o.captureEvent,addBreadcrumb:r.addBreadcrumb,setUser:o.setUser,setTags:o.setTags,setTag:o.setTag,setExtra:o.setExtra,setExtras:o.setExtras,setContext:o.setContext,getIntegration(e){let t=i.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:o.startSession,endSession:o.endSession,captureSession(e){if(e)return o.endSession();(function(){let e=i.getCurrentScope(),t=i.getClient(),n=e.getSession();t&&n&&t.captureSession(n)})()}}}t.getCurrentHub=a,t.getCurrentHubShim=a},13521:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(5471),i=n(82502),o=n(78266),a=n(57634),s=n(97833),l=n(53664),c=n(96493),u=n(86480),d=n(89172),p=n(2103),f=n(44977),h=n(52512),m=n(61520),g=n(19270),y=n(49036),_=n(21216),v=n(83243),b=n(6250),S=n(28788),E=n(75092),T=n(18210),w=n(81065),I=n(58737),k=n(21676),O=n(95660),A=n(96546),C=n(79539),N=n(40762),D=n(49349),x=n(34203),R=n(61741),M=n(97448),P=n(52852),L=n(93344),B=n(67753),U=n(5431),F=n(86872),j=n(17119),$=n(67656),W=n(84564),G=n(35462),H=n(62988),q=n(50620),z=n(99818),V=n(92125),K=n(90685),Y=n(47856),J=n(46766),Q=n(77088),X=n(90532),Z=n(31820),ee=n(47195),et=n(80675),en=n(94632),er=n(58144),ei=n(74226),eo=n(77979),ea=n(83377),es=n(8041),el=n(44876),ec=n(3715),eu=n(28348),ed=n(64819),ep=n(7386),ef=n(50448),eh=n(90833),em=n(3855),eg=n(94628);t.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,t.getCapturedScopesOnSpan=i.getCapturedScopesOnSpan,t.setCapturedScopesOnSpan=i.setCapturedScopesOnSpan,t.addTracingExtensions=o.addTracingExtensions,t.TRACING_DEFAULTS=a.TRACING_DEFAULTS,t.startIdleSpan=a.startIdleSpan,t.SentrySpan=s.SentrySpan,t.SentryNonRecordingSpan=l.SentryNonRecordingSpan,t.SPAN_STATUS_ERROR=c.SPAN_STATUS_ERROR,t.SPAN_STATUS_OK=c.SPAN_STATUS_OK,t.SPAN_STATUS_UNSET=c.SPAN_STATUS_UNSET,t.getSpanStatusFromHttpCode=c.getSpanStatusFromHttpCode,t.setHttpStatus=c.setHttpStatus,t.continueTrace=u.continueTrace,t.startInactiveSpan=u.startInactiveSpan,t.startNewTrace=u.startNewTrace,t.startSpan=u.startSpan,t.startSpanManual=u.startSpanManual,t.suppressTracing=u.suppressTracing,t.withActiveSpan=u.withActiveSpan,t.getDynamicSamplingContextFromClient=d.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromSpan=d.getDynamicSamplingContextFromSpan,t.spanToBaggageHeader=d.spanToBaggageHeader,t.setMeasurement=p.setMeasurement,t.timedEventsToMeasurements=p.timedEventsToMeasurements,t.sampleSpan=f.sampleSpan,t.logSpanEnd=h.logSpanEnd,t.logSpanStart=h.logSpanStart,t.SEMANTIC_ATTRIBUTE_CACHE_HIT=m.SEMANTIC_ATTRIBUTE_CACHE_HIT,t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=m.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,t.SEMANTIC_ATTRIBUTE_CACHE_KEY=m.SEMANTIC_ATTRIBUTE_CACHE_KEY,t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=m.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=m.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=m.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=m.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=m.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=m.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=m.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=m.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=m.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.SEMANTIC_ATTRIBUTE_URL_FULL=m.SEMANTIC_ATTRIBUTE_URL_FULL,t.createEventEnvelope=g.createEventEnvelope,t.createSessionEnvelope=g.createSessionEnvelope,t.createSpanEnvelope=g.createSpanEnvelope,t.addEventProcessor=y.addEventProcessor,t.captureCheckIn=y.captureCheckIn,t.captureEvent=y.captureEvent,t.captureException=y.captureException,t.captureMessage=y.captureMessage,t.captureSession=y.captureSession,t.close=y.close,t.endSession=y.endSession,t.flush=y.flush,t.isEnabled=y.isEnabled,t.isInitialized=y.isInitialized,t.lastEventId=y.lastEventId,t.setContext=y.setContext,t.setExtra=y.setExtra,t.setExtras=y.setExtras,t.setTag=y.setTag,t.setTags=y.setTags,t.setUser=y.setUser,t.startSession=y.startSession,t.withMonitor=y.withMonitor,t.getClient=_.getClient,t.getCurrentScope=_.getCurrentScope,t.getGlobalScope=_.getGlobalScope,t.getIsolationScope=_.getIsolationScope,t.withIsolationScope=_.withIsolationScope,t.withScope=_.withScope,t.getDefaultCurrentScope=v.getDefaultCurrentScope,t.getDefaultIsolationScope=v.getDefaultIsolationScope,t.setAsyncContextStrategy=b.setAsyncContextStrategy,t.getMainCarrier=S.getMainCarrier,t.closeSession=E.closeSession,t.makeSession=E.makeSession,t.updateSession=E.updateSession,t.SessionFlusher=T.SessionFlusher,t.Scope=w.Scope,t.notifyEventProcessors=I.notifyEventProcessors,t.getEnvelopeEndpointWithUrlEncodedAuth=k.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=k.getReportDialogEndpoint,t.BaseClient=O.BaseClient,t.ServerRuntimeClient=A.ServerRuntimeClient,t.initAndBind=C.initAndBind,t.setCurrentClient=C.setCurrentClient,t.createTransport=N.createTransport,t.makeOfflineTransport=D.makeOfflineTransport,t.makeMultiplexedTransport=x.makeMultiplexedTransport,t.addIntegration=R.addIntegration,t.defineIntegration=R.defineIntegration,t.getIntegrationsToSetup=R.getIntegrationsToSetup,t.applyScopeDataToEvent=M.applyScopeDataToEvent,t.mergeScopeData=M.mergeScopeData,t.prepareEvent=P.prepareEvent,t.createCheckInEnvelope=L.createCheckInEnvelope,t.hasTracingEnabled=B.hasTracingEnabled,t.isSentryRequestUrl=U.isSentryRequestUrl,t.handleCallbackErrors=F.handleCallbackErrors,t.parameterize=j.parameterize,t.addChildSpanToSpan=$.addChildSpanToSpan,t.getActiveSpan=$.getActiveSpan,t.getRootSpan=$.getRootSpan,t.getSpanDescendants=$.getSpanDescendants,t.getStatusMessage=$.getStatusMessage,t.spanIsSampled=$.spanIsSampled,t.spanTimeInputToSeconds=$.spanTimeInputToSeconds,t.spanToJSON=$.spanToJSON,t.spanToTraceContext=$.spanToTraceContext,t.spanToTraceHeader=$.spanToTraceHeader,t.parseSampleRate=W.parseSampleRate,t.applySdkMetadata=G.applySdkMetadata,t.getTraceData=H.getTraceData,t.getTraceMetaTags=q.getTraceMetaTags,t.DEFAULT_ENVIRONMENT=z.DEFAULT_ENVIRONMENT,t.addBreadcrumb=V.addBreadcrumb,t.functionToStringIntegration=K.functionToStringIntegration,t.inboundFiltersIntegration=Y.inboundFiltersIntegration,t.linkedErrorsIntegration=J.linkedErrorsIntegration,t.moduleMetadataIntegration=Q.moduleMetadataIntegration,t.requestDataIntegration=X.requestDataIntegration,t.captureConsoleIntegration=Z.captureConsoleIntegration,t.debugIntegration=ee.debugIntegration,t.dedupeIntegration=et.dedupeIntegration,t.extraErrorDataIntegration=en.extraErrorDataIntegration,t.rewriteFramesIntegration=er.rewriteFramesIntegration,t.sessionTimingIntegration=ei.sessionTimingIntegration,t.zodErrorsIntegration=eo.zodErrorsIntegration,t.thirdPartyErrorFilterIntegration=ea.thirdPartyErrorFilterIntegration,t.metrics=es.metrics,t.profiler=el.profiler,t.metricsDefault=ec.metricsDefault,t.BrowserMetricsAggregator=eu.BrowserMetricsAggregator,t.getMetricSummaryJsonForSpan=ed.getMetricSummaryJsonForSpan,t.addTracingHeadersToFetchRequest=ep.addTracingHeadersToFetchRequest,t.instrumentFetchRequest=ep.instrumentFetchRequest,t.trpcMiddleware=ef.trpcMiddleware,t.captureFeedback=eh.captureFeedback,t.getCurrentHub=em.getCurrentHub,t.getCurrentHubShim=em.getCurrentHubShim,t.SDK_VERSION=eg.SDK_VERSION},61741:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842),a=[];function s(e,t,n){if(n[t.name]){o.DEBUG_BUILD&&r.logger.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===a.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),a.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}o.DEBUG_BUILD&&r.logger.log(`Integration installed: ${t.name}`)}t.addIntegration=function(e){let t=i.getClient();if(!t){o.DEBUG_BUILD&&r.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)},t.afterSetupIntegrations=function(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)},t.defineIntegration=function(e){return e},t.getIntegrationsToSetup=function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let i=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?r.arrayify(n(t)):t),o=i.findIndex(e=>"Debug"===e.name);if(o>-1){let[e]=i.splice(o,1);i.push(e)}return i},t.installedIntegrations=a,t.setupIntegration=s,t.setupIntegrations=function(e,t){let n={};return t.forEach(t=>{t&&s(e,t,n)}),n}},31820:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(49036),a=n(61741).defineIntegration((e={})=>{let t=e.levels||r.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in r.GLOBAL_OBJ&&r.addConsoleInstrumentationHandler(({args:n,level:a})=>{i.getClient()===e&&t.includes(a)&&function(e,t){let n={level:r.severityLevelFromString(t),extra:{arguments:e}};i.withScope(i=>{if(i.addEventProcessor(e=>(e.logger="console",r.addExceptionMechanism(e,{handled:!1,type:"console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${r.safeJoin(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),o.captureMessage(t,n)}return}let a=e.find(e=>e instanceof Error);if(a){o.captureException(a,n);return}let s=r.safeJoin(e," ");o.captureMessage(s,n)})}(n,a)})}}});t.captureConsoleIntegration=a},47195:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741).defineIntegration((e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",(e,n)=>{t.debugger,r.consoleSandbox(()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))})})}}});t.debugIntegration=i},80675:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741),o=n(22842),a=i.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(s(t,e))return o.DEBUG_BUILD&&r.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}});function s(e,t){return!!t&&!!(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&c(e,t)&&l(e,t))}(e,t)||function(e,t){let n=u(t),r=u(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&c(e,t)&&l(e,t))}(e,t))}function l(e,t){let n=r.getFramesFromEvent(e),i=r.getFramesFromEvent(t);if(!n&&!i)return!0;if(n&&!i||!n&&i||i.length!==n.length)return!1;for(let e=0;e<i.length;e++){let t=i[e],r=n[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function c(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function u(e){return e.exception&&e.exception.values&&e.exception.values[0]}t._shouldDropEvent=s,t.dedupeIntegration=a},94632:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741),o=n(22842),a=i.defineIntegration((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,i,a){let{maxValueLength:s=250}=a.getOptions();return function(e,t={},n,i,a){if(!t.originalException||!r.isError(t.originalException))return e;let s=t.originalException.name||t.originalException.constructor.name,l=function(e,t,n){try{let i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let t of Object.keys(e)){if(-1!==i.indexOf(t))continue;let a=e[t];o[t]=r.isError(a)||"string"==typeof a?r.truncate(`${a}`,n):a}if(t&&void 0!==e.cause&&(o.cause=r.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];o[e]=r.isError(n)?n.toString():n}}return o}catch(e){o.DEBUG_BUILD&&r.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,i,a);if(l){let t={...e.contexts},i=r.normalize(l,n);return r.isPlainObject(i)&&(r.addNonEnumerableProperty(i,"__sentry_skip_normalization__",!0),t[s]=i),{...e,contexts:t}}return e}(e,i,t,n,s)}}});t.extraErrorDataIntegration=a},90685:function(e,t,n){let r;Object.defineProperty(t,"__esModule",{value:!0});let i=n(94628),o=n(21216),a=n(61741),s=new WeakMap,l=a.defineIntegration(()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=i.getOriginalFunction(this),n=s.has(o.getClient())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){s.set(e,!0)}}));t.functionToStringIntegration=l},47856:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842),o=n(61741),a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],s=o.defineIntegration((e={})=>({name:"InboundFilters",processEvent:(t,n,o)=>{var s,c;return((s=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:a],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being internal Sentry Error.
Event: ${r.getEventDescription(t)}`),0):(c=s.ignoreErrors,!t.type&&c&&c.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>r.stringMatchesSomePattern(e,c)))?(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${r.getEventDescription(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&r.stringMatchesSomePattern(n,t)}(t,s.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=l(e);return!!n&&r.stringMatchesSomePattern(n,t)}(t,s.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=l(e);return!n||r.stringMatchesSomePattern(n,t)}(t,s.allowUrls)||(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${r.getEventDescription(t)}.
Url: ${l(t)}`),0):(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${r.getEventDescription(t)}.
Url: ${l(t)}`),0):(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${r.getEventDescription(t)}`),0):(i.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${r.getEventDescription(t)}`),0))?t:null}}));function l(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return i.DEBUG_BUILD&&r.logger.error(`Cannot extract url for event ${r.getEventDescription(e)}`),null}}t.inboundFiltersIntegration=s},46766:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741).defineIntegration((e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,i,o){let a=o.getOptions();r.applyAggregateErrorsToEvent(r.exceptionFromError,a.stackParser,a.maxValueLength,n,t,e,i)}}});t.linkedErrorsIntegration=i},77088:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741),o=n(69673),a=i.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{r.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})}}));t.moduleMetadataIntegration=a},90532:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741),o={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},a=i.defineIntegration((e={})=>{let t={...o,...e,include:{...o.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...o.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){let{sdkProcessingMetadata:n={}}=e,i=n.request;if(!i)return e;let o=function(e){let t;let{transactionNamingScheme:n,include:{ip:r,user:i,...o}}=e,a=["method"];for(let[e,t]of Object.entries(o))t&&a.push(e);if(void 0===i)t=!0;else if("boolean"==typeof i)t=i;else{let e=[];for(let[t,n]of Object.entries(i))n&&e.push(t);t=e}return{include:{ip:r,user:t,request:0!==a.length?a:void 0,transaction:n}}}(t);return r.addRequestDataToEvent(e,i,o)}}});t.requestDataIntegration=a},58144:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741).defineIntegration((e={})=>{let t=e.root,n=e.prefix||"app:///",i="window"in r.GLOBAL_OBJ&&void 0!==r.GLOBAL_OBJ.window,a=e.iteratee||o({isBrowser:i,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>a(e))}}}})}}}catch(t){return e}}(t)),t}}});function o({isBrowser:e,root:t,prefix:n}){return i=>{if(!i.filename)return i;let o=/^[a-zA-Z]:\\/.test(i.filename)||i.filename.includes("\\")&&!i.filename.includes("/"),a=/^\//.test(i.filename);if(e){if(t){let e=i.filename;0===e.indexOf(t)&&(i.filename=e.replace(t,n))}}else if(o||a){let e=o?i.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):i.filename,a=t?r.relative(t,e):r.basename(e);i.filename=`${n}${a}`}return i}}t.generateIteratee=o,t.rewriteFramesIntegration=i},74226:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741).defineIntegration(()=>{let e=1e3*r.timestampInSeconds();return{name:"SessionTiming",processEvent(t){let n=1e3*r.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}});t.sessionTimingIntegration=i},83377:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(61741),o=n(69673),a=i.defineIntegration(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{r.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)})},processEvent(t){let n=function(e){let t=r.getFramesFromEvent(e);if(t)return t.filter(e=>!!e.filename).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(s)).map(e=>e.slice(s.length)):[])}(t);if(n&&n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),s="_sentryBundlerPluginAppKey:";t.thirdPartyErrorFilterIntegration=a},77979:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);function i(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function o(e,t,n){var o;return t.exception&&t.exception.values&&n&&n.originalException&&(o=n.originalException,r.isError(o)&&"ZodError"===o.name&&Array.isArray(o.errors))&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues)n.path&&n.path[0]&&t.add(n.path[0]);let n=Array.from(t);return`Failed to validate keys: ${r.truncate(n.join(", "),100)}`}(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(i)}}:t}let a=n(61741).defineIntegration((e={})=>{let t=e.limit||10;return{name:"ZodErrors",processEvent:(e,n)=>o(t,e,n)}});t.applyZodErrorsToEvent=o,t.zodErrorsIntegration=a},69673:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=new Map,o=new Set;function a(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){let n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(!o.has(t)){for(let r of(o.add(t),e(t).reverse()))if(r.filename){i.set(r.filename,n);break}}}}(e),i.get(t)}t.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;let t=a(e,n.filename);t&&(n.module_metadata=t)}})}catch(e){}},t.getMetadataForUrl=a,t.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach(e=>{if(e.stacktrace)for(let t of e.stacktrace.frames||[])delete t.module_metadata})}catch(e){}}},24689:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(67656),o=n(19090),a=n(66458),s=n(87264),l=n(34140);class c{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),o.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*o.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,n,a="none",c={},u=r.timestampInSeconds()){let d=Math.floor(u),p=l.sanitizeMetricKey(t),f=l.sanitizeTags(c),h=l.sanitizeUnit(a),m=l.getBucketKey(e,p,h,f),g=this._buckets.get(m),y=g&&e===o.SET_METRIC_TYPE?g.metric.weight:0;g?(g.metric.add(n),g.timestamp<d&&(g.timestamp=d)):(g={metric:new s.METRIC_MAP[e](n),timestamp:d,metricType:e,name:p,unit:h,tags:f},this._buckets.set(m,g));let _="string"==typeof n?g.metric.weight-y:n;i.updateMetricSummaryOnActiveSpan(e,p,_,h,c,m),this._bucketsTotalWeight+=g.metric.weight,this._bucketsTotalWeight>=o.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}let e=Math.floor(r.timestampInSeconds())-o.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(let[n,r]of this._buckets)r.timestamp<=e&&(t.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(let[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){let t=Array.from(e).map(([,e])=>e);a.captureAggregateMetrics(this._client,t)}}}t.MetricsAggregator=c},28348:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(67656),o=n(19090),a=n(66458),s=n(87264),l=n(34140);class c{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),o.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,n,a="none",c={},u=r.timestampInSeconds()){let d=Math.floor(u),p=l.sanitizeMetricKey(t),f=l.sanitizeTags(c),h=l.sanitizeUnit(a),m=l.getBucketKey(e,p,h,f),g=this._buckets.get(m),y=g&&e===o.SET_METRIC_TYPE?g.metric.weight:0;g?(g.metric.add(n),g.timestamp<d&&(g.timestamp=d)):(g={metric:new s.METRIC_MAP[e](n),timestamp:d,metricType:e,name:p,unit:h,tags:f},this._buckets.set(m,g));let _="string"==typeof n?g.metric.weight-y:n;i.updateMetricSummaryOnActiveSpan(e,p,_,h,c,m)}flush(){if(0===this._buckets.size)return;let e=Array.from(this._buckets.values());a.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}t.BrowserMetricsAggregator=c},19090:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.COUNTER_METRIC_TYPE="c",t.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,t.DEFAULT_FLUSH_INTERVAL=1e4,t.DISTRIBUTION_METRIC_TYPE="d",t.GAUGE_METRIC_TYPE="g",t.MAX_WEIGHT=1e4,t.SET_METRIC_TYPE="s"},66458:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(34140);function o(e,t,n,o){let a={sent_at:new Date().toISOString()};n&&n.sdk&&(a.sdk={name:n.sdk.name,version:n.sdk.version}),o&&t&&(a.dsn=r.dsnToString(t));let s=function(e){let t=i.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return r.createEnvelope(a,[s])}t.captureAggregateMetrics=function(e,t){r.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let n=o(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)},t.createMetricEnvelope=o},3715:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(24689),i=n(8041);t.metricsDefault={increment:function(e,t=1,n){i.metrics.increment(r.MetricsAggregator,e,t,n)},distribution:function(e,t,n){i.metrics.distribution(r.MetricsAggregator,e,t,n)},set:function(e,t,n){i.metrics.set(r.MetricsAggregator,e,t,n)},gauge:function(e,t,n){i.metrics.gauge(r.MetricsAggregator,e,t,n)},timing:function(e,t,n="second",o){return i.metrics.timing(r.MetricsAggregator,e,t,n,o)},getMetricsAggregatorForClient:function(e){return i.metrics.getMetricsAggregatorForClient(e,r.MetricsAggregator)}}},8041:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842);n(5471);let a=n(67656),s=n(86480),l=n(86872),c=n(19090);function u(e,t){let n=r.getGlobalSingleton("globalMetricsAggregators",()=>new WeakMap),i=n.get(e);if(i)return i;let o=new t(e);return e.on("flush",()=>o.flush()),e.on("close",()=>o.close()),n.set(e,o),o}function d(e,t,n,s,l={}){let c=l.client||i.getClient();if(!c)return;let d=a.getActiveSpan(),p=d?a.getRootSpan(d):void 0,f=p&&a.spanToJSON(p).description,{unit:h,tags:m,timestamp:g}=l,{release:y,environment:_}=c.getOptions(),v={};y&&(v.release=y),_&&(v.environment=_),f&&(v.transaction=f),o.DEBUG_BUILD&&r.logger.log(`Adding value of ${s} to ${t} metric ${n}`),u(c,e).add(t,n,s,h,{...v,...m},g)}function p(e,t,n,r){d(e,c.DISTRIBUTION_METRIC_TYPE,t,f(n),r)}function f(e){return"string"==typeof e?parseInt(e):e}t.metrics={increment:function(e,t,n=1,r){d(e,c.COUNTER_METRIC_TYPE,t,f(n),r)},distribution:p,set:function(e,t,n,r){d(e,c.SET_METRIC_TYPE,t,n,r)},gauge:function(e,t,n,r){d(e,c.GAUGE_METRIC_TYPE,t,f(n),r)},timing:function(e,t,n,i="second",o){if("function"==typeof n){let i=r.timestampInSeconds();return s.startSpanManual({op:"metrics.timing",name:t,startTime:i,onlyIfParent:!0},a=>l.handleCallbackErrors(()=>n(),()=>{},()=>{let n=r.timestampInSeconds();p(e,t,n-i,{...o,unit:"second"}),a.end(n)}))}p(e,t,n,{...o,unit:i})},getMetricsAggregatorForClient:u}},87264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(19090),i=n(34140);class o{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class a{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class s{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class l{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>"string"==typeof e?i.simpleHash(e):e).join(":")}}let c={[r.COUNTER_METRIC_TYPE]:o,[r.GAUGE_METRIC_TYPE]:a,[r.DISTRIBUTION_METRIC_TYPE]:s,[r.SET_METRIC_TYPE]:l};t.CounterMetric=o,t.DistributionMetric=s,t.GaugeMetric=a,t.METRIC_MAP=c,t.SetMetric=l},64819:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i="_sentryMetrics";t.getMetricSummaryJsonForSpan=function(e){let t=e[i];if(!t)return;let n={};for(let[,[e,i]]of t)(n[e]||(n[e]=[])).push(r.dropUndefinedKeys(i));return n},t.updateMetricSummaryOnSpan=function(e,t,n,r,o,a,s){let l=e[i]||(e[i]=new Map),c=`${t}:${n}@${o}`,u=l.get(s);if(u){let[,e]=u;l.set(s,[c,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else l.set(s,[c,{min:r,max:r,count:1,sum:r,tags:a}])}},34140:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=[["\n","\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];t.getBucketKey=function(e,t,n,i){let o=Object.entries(r.dropUndefinedKeys(i)).sort((e,t)=>e[0].localeCompare(t[0]));return`${e}${t}${n}${o}`},t.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},t.sanitizeTags=function(e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n.replace(/[^\w\-./]+/gi,"")]=[...String(e[n])].reduce((e,t)=>e+function(e){for(let[t,n]of i)if(e===t)return n;return e}(t),""));return t},t.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},t.serializeMetricBuckets=function(e){let t="";for(let n of e){let e=Object.entries(n.tags),r=e.length>0?`|#${e.map(([e,t])=>`${e}:${t}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}
`}return t},t.simpleHash=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t>>>0}},44876:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842);function a(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}t.profiler={startProfiler:function(){let e=i.getClient();if(!e){o.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){o.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available");return}if(!a(t)){o.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration.");return}t._profiler.start()},stopProfiler:function(){let e=i.getClient();if(!e){o.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){o.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available");return}if(!a(t)){o.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration.");return}t._profiler.stop()}}},81065:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(75092),o=n(58131);class a{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=r.generatePropagationContext()}clone(){let e=new a;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,o._setSpanForScope(e,o._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&i.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,i]=t instanceof s?[t.getScopeData(),t.getRequestSession()]:r.isPlainObject(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:l,contexts:c,level:u,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...c},l&&Object.keys(l).length&&(this._user=l),u&&(this._level=u),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),i&&(this._requestSession=i),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,o._setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=r.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let i={timestamp:r.dateTimestampInSeconds(),...e},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:o._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture exception!"),n;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n&&n.event_id?n.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture message!"),i;let o=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:i},this),i}captureEvent(e,t){let n=t&&t.event_id?t.event_id:r.uuid4();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):r.logger.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let s=a;t.Scope=s},79539:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842);function a(e){i.getCurrentScope().setClient(e)}t.initAndBind=function(e,t){!0===t.debug&&(o.DEBUG_BUILD?r.logger.enable():r.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),i.getCurrentScope().update(t.initialScope);let n=new e(t);return a(n),n.init(),n},t.setCurrentClient=a},61520:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",t.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",t.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",t.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",t.SEMANTIC_ATTRIBUTE_URL_FULL="url.full"},96546:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(95660),o=n(93344),a=n(21216),s=n(22842),l=n(18210),c=n(5471),u=n(58131),d=n(67656),p=n(89172);class f extends i.BaseClient{constructor(e){c.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return r.resolvedSyncPromise(r.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return r.resolvedSyncPromise(r.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){let e=a.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher&&"exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){let e=a.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureEvent(e,t,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){let{release:e,environment:t}=this._options;e?this._sessionFlusher=new l.SessionFlusher(this,{release:e,environment:t}):s.DEBUG_BUILD&&r.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,n){let i="checkInId"in e&&e.checkInId?e.checkInId:r.uuid4();if(!this._isEnabled())return s.DEBUG_BUILD&&r.logger.warn("SDK not enabled, will not capture checkin."),i;let{release:a,environment:l,tunnel:c}=this.getOptions(),u={check_in_id:i,monitor_slug:e.monitorSlug,status:e.status,release:a,environment:l};"duration"in e&&(u.duration=e.duration),t&&(u.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});let[d,p]=this._getTraceInfoFromScope(n);p&&(u.contexts={trace:p});let f=o.createCheckInEnvelope(u,d,this.getSdkMetadata(),c,this.getDsn());return s.DEBUG_BUILD&&r.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(f),i}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():s.DEBUG_BUILD&&r.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_getTraceInfoFromScope(e){if(!e)return[void 0,void 0];let t=u._getSpanForScope(e);if(t){let e=d.getRootSpan(t);return[p.getDynamicSamplingContextFromSpan(e),d.spanToTraceContext(e)]}let{traceId:n,spanId:r,parentSpanId:i,dsc:o}=e.getPropagationContext(),a={trace_id:n,span_id:r,parent_span_id:i};return o?[o,a]:[p.getDynamicSamplingContextFromClient(n,this),a]}}t.ServerRuntimeClient=f},75092:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);function i(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||r.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:r.uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}t.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),i(e,n)},t.makeSession=function(e){let t=r.timestampInSeconds(),n={sid:r.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>r.dropUndefinedKeys({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&i(n,e),n},t.updateSession=i},18210:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216);class o{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){let e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){let e=Array.from(this._pendingAggregates.values()),t={attrs:this._sessionAttrs,aggregates:e};return r.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;let e=i.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(void 0))}_incrementSessionStatusCount(e,t){let n=new Date(t).setSeconds(0,0),r=this._pendingAggregates.get(n);switch(r||(r={started:new Date(n).toISOString()},this._pendingAggregates.set(n,r)),e){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}}t.SessionFlusher=o},89172:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(99818),o=n(21216),a=n(61520),s=n(67753),l=n(67656),c="_frozenDsc";function u(e,t){let n=t.getOptions(),{publicKey:o}=t.getDsn()||{},a=r.dropUndefinedKeys({environment:n.environment||i.DEFAULT_ENVIRONMENT,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",a),a}function d(e){let t=o.getClient();if(!t)return{};let n=u(l.spanToJSON(e).trace_id||"",t),i=l.getRootSpan(e),d=i[c];if(d)return d;let p=i.spanContext().traceState,f=p&&p.get("sentry.dsc"),h=f&&r.baggageHeaderToDynamicSamplingContext(f);if(h)return h;let m=l.spanToJSON(i),g=m.data||{},y=g[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=y&&(n.sample_rate=`${y}`);let _=g[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],v=m.description;return"url"!==_&&v&&(n.transaction=v),s.hasTracingEnabled()&&(n.sampled=String(l.spanIsSampled(i))),t.emit("createDsc",n,i),n}t.freezeDscOnSpan=function(e,t){r.addNonEnumerableProperty(e,c,t)},t.getDynamicSamplingContextFromClient=u,t.getDynamicSamplingContextFromSpan=d,t.spanToBaggageHeader=function(e){let t=d(e);return r.dynamicSamplingContextToSentryBaggageHeader(t)}},5471:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842),o=n(67656),a=n(96493),s=!1;function l(){let e=o.getActiveSpan(),t=e&&o.getRootSpan(e);if(t){let e="internal_error";i.DEBUG_BUILD&&r.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:a.SPAN_STATUS_ERROR,message:e})}}l.tag="sentry_tracingErrorCallback",t.registerSpanErrorInstrumentation=function(){s||(s=!0,r.addGlobalErrorInstrumentationHandler(l),r.addGlobalUnhandledRejectionInstrumentationHandler(l))}},78266:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(5471);t.addTracingExtensions=function(){r.registerSpanErrorInstrumentation()}},57634:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842),a=n(61520),s=n(67753),l=n(58131),c=n(67656),u=n(53664),d=n(96493),p=n(86480),f={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};t.TRACING_DEFAULTS=f,t.startIdleSpan=function(e,t={}){let n;let h=new Map,m=!1,g="externalFinish",y=!t.disableAutoFinish,_=[],{idleTimeout:v=f.idleTimeout,finalTimeout:b=f.finalTimeout,childSpanTimeout:S=f.childSpanTimeout,beforeSpanEnd:E}=t,T=i.getClient();if(!T||!s.hasTracingEnabled())return new u.SentryNonRecordingSpan;let w=i.getCurrentScope(),I=c.getActiveSpan(),k=function(e){let t=p.startInactiveSpan(e);return l._setSpanForScope(i.getCurrentScope(),t),o.DEBUG_BUILD&&r.logger.log("[Tracing] Started span is an idle span"),t}(e);function O(){n&&(clearTimeout(n),n=void 0)}function A(e){O(),n=setTimeout(()=>{!m&&0===h.size&&y&&(g="idleTimeout",k.end(e))},v)}function C(e){n=setTimeout(()=>{!m&&y&&(g="heartbeatFailed",k.end(e))},S)}function N(e){m=!0,h.clear(),_.forEach(e=>e()),l._setSpanForScope(w,I);let t=c.spanToJSON(k),{start_timestamp:n}=t;if(!n)return;(t.data||{})[a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||k.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,g),r.logger.log(`[Tracing] Idle span "${t.op}" finished`);let i=c.getSpanDescendants(k).filter(e=>e!==k),s=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:d.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&r.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:i=0}=c.spanToJSON(t),a=i<=e,l=n-i<=(b+v)/1e3;if(o.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?l||r.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):r.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!l||!a)&&(c.removeChildSpanFromSpan(k,t),s++)}),s>0&&k.setAttribute("sentry.idle_span_discarded_spans",s)}return k.end=new Proxy(k.end,{apply(e,t,n){E&&E(k);let[i,...o]=n,a=i||r.timestampInSeconds(),s=c.spanTimeInputToSeconds(a),l=c.getSpanDescendants(k).filter(e=>e!==k);if(!l.length)return N(s),Reflect.apply(e,t,[s,...o]);let u=l.map(e=>c.spanToJSON(e).timestamp).filter(e=>!!e),d=u.length?Math.max(...u):void 0,p=c.spanToJSON(k).start_timestamp,f=Math.min(p?p+b/1e3:1/0,Math.max(p||-1/0,Math.min(s,d||1/0)));return N(f),Reflect.apply(e,t,[f,...o])}}),_.push(T.on("spanStart",e=>{if(!m&&e!==k&&!c.spanToJSON(e).timestamp&&c.getSpanDescendants(k).includes(e)){var t;t=e.spanContext().spanId,O(),h.set(t,!0),C(r.timestampInSeconds()+S/1e3)}})),_.push(T.on("spanEnd",e=>{var t;m||(t=e.spanContext().spanId,h.has(t)&&h.delete(t),0===h.size&&A(r.timestampInSeconds()+v/1e3))})),_.push(T.on("idleSpanEnableAutoFinish",e=>{e===k&&(y=!0,A(),h.size&&C())})),t.disableAutoFinish||A(),setTimeout(()=>{m||(k.setStatus({code:d.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),g="finalTimeout",k.end())},b),k}},52512:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842),o=n(67656);t.logSpanEnd=function(e){if(!i.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >"}=o.spanToJSON(e),{spanId:a}=e.spanContext(),s=o.getRootSpan(e)===e,l=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${a}`;r.logger.log(l)},t.logSpanStart=function(e){if(!i.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=o.spanToJSON(e),{spanId:s}=e.spanContext(),l=o.spanIsSampled(e),c=o.getRootSpan(e),u=c===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${u?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(a&&p.push(`parent ID: ${a}`),!u){let{op:e,description:t}=o.spanToJSON(c);p.push(`root ID: ${c.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}r.logger.log(`${d}
  ${p.join("\n  ")}`)}},2103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(61520),i=n(67656);t.setMeasurement=function(e,t,n,o=i.getActiveSpan()){let a=o&&i.getRootSpan(o);a&&a.addEvent(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n})},t.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},i=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof i&&"number"==typeof o&&(t[e.name]={value:o,unit:i})}),t}},44977:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842),o=n(67753),a=n(84564);t.sampleSpan=function(e,t){let n;if(!o.hasTracingEnabled(e))return[!1];n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;let s=a.parseSampleRate(n);return void 0===s?(i.DEBUG_BUILD&&r.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):s?Math.random()<s?[!0,s]:(i.DEBUG_BUILD&&r.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,s]):(i.DEBUG_BUILD&&r.logger.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s])}},53664:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(67656);class o{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}t.SentryNonRecordingSpan=o},97833:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(22842),a=n(19270),s=n(64819),l=n(61520),c=n(67656),u=n(89172),d=n(52512),p=n(2103),f=n(82502);class h{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16),this._startTime=e.startTimestamp||r.timestampInSeconds(),this._attributes={},this.setAttributes({[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?c.TRACE_FLAG_SAMPLED:c.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=c.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=c.spanTimeInputToSeconds(e),d.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return r.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:c.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:s.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[l.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[l.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:p.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&c.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?c.getRootSpan(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o.DEBUG_BUILD&&r.logger.log("[Tracing] Adding an event to span:",e);let i=m(t)?t:n||r.timestampInSeconds(),a=m(t)?{}:t||{},s={name:e,time:c.spanTimeInputToSeconds(i),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=i.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===c.getRootSpan(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=i.getClient();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let a=t.getTransport();a&&a.send(e).then(null,e=>{o.DEBUG_BUILD&&r.logger.error("Error while sending span:",e)})}(a.createSpanEnvelope([this],e)):(o.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(f.getCapturedScopesOnSpan(this).scope||i.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!g(c.spanToJSON(this)))return;this._name||(o.DEBUG_BUILD&&r.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=f.getCapturedScopesOnSpan(this),n=(e||i.getCurrentScope()).getClient()||i.getClient();if(!0!==this._sampled){o.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let a=c.getSpanDescendants(this).filter(e=>e!==this&&!(e instanceof h&&e.isStandaloneSpan())).map(e=>c.spanToJSON(e)).filter(g),d=this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],m={contexts:{trace:c.spanToTransactionTraceContext(this)},spans:a.length>1e3?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...r.dropUndefinedKeys({dynamicSamplingContext:u.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:s.getMetricSummaryJsonForSpan(this),...d&&{transaction_info:{source:d}}},y=p.timedEventsToMeasurements(this._events);return y&&Object.keys(y).length&&(o.DEBUG_BUILD&&r.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(y,void 0,2)),m.measurements=y),m}}function m(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function g(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}t.SentrySpan=h},96493:function(e,t){function n(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}Object.defineProperty(t,"__esModule",{value:!0}),t.SPAN_STATUS_ERROR=2,t.SPAN_STATUS_OK=1,t.SPAN_STATUS_UNSET=0,t.getSpanStatusFromHttpCode=n,t.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);let r=n(t);"unknown_error"!==r.message&&e.setStatus(r)}},86480:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(28788),o=n(21216),a=n(6250),s=n(22842),l=n(61520),c=n(86872),u=n(67753),d=n(58131),p=n(67656),f=n(89172),h=n(52512),m=n(44977),g=n(53664),y=n(97833),_=n(96493),v=n(82502),b="__SENTRY_SUPPRESS_TRACING__";function S(e,t){let n=w();return n.withActiveSpan?n.withActiveSpan(e,t):o.withScope(n=>(d._setSpanForScope(n,e||void 0),t(n)))}function E({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){let i;if(!u.hasTracingEnabled())return new g.SentryNonRecordingSpan;let a=o.getIsolationScope();if(e&&!n)i=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[b]&&p.spanIsSampled(e),s=a?new y.SentrySpan({...n,parentSpanId:r,traceId:i,sampled:a}):new g.SentryNonRecordingSpan({traceId:i});p.addChildSpanToSpan(e,s);let l=o.getClient();return l&&(l.emit("spanStart",s),n.endTimestamp&&l.emit("spanEnd",s)),s}(e,r,t),p.addChildSpanToSpan(e,i);else if(e){let n=f.getDynamicSamplingContextFromSpan(e),{traceId:o,spanId:a}=e.spanContext(),s=p.spanIsSampled(e);i=I({traceId:o,parentSpanId:a,...t},r,s),f.freezeDscOnSpan(i,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};i=I({traceId:e,parentSpanId:o,...t},r,s),n&&f.freezeDscOnSpan(i,n)}return h.logSpanStart(i),v.setCapturedScopesOnSpan(i,r,a),i}function T(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=p.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function w(){let e=i.getMainCarrier();return a.getAsyncContextStrategy(e)}function I(e,t,n){let r=o.getClient(),i=r&&r.getOptions()||{},{name:a="",attributes:s}=e,[c,u]=t.getScopeData().sdkProcessingMetadata[b]?[!1]:m.sampleSpan(i,{name:a,parentSampled:n,attributes:s,transactionContext:{name:a,parentSampled:n}}),d=new y.SentrySpan({...e,attributes:{[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:c});return void 0!==u&&d.setAttribute(l.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,u),r&&r.emit("spanStart",d),d}function k(e){let t=d._getSpanForScope(e);if(!t)return;let n=o.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?p.getRootSpan(t):t}function O(e){return void 0!==e?t=>S(e,t):e=>e()}t.continueTrace=({sentryTrace:e,baggage:t},n)=>o.withScope(i=>{let o=r.propagationContextFromHeaders(e,t);return i.setPropagationContext(o),n()}),t.startInactiveSpan=function(e){let t=w();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=T(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>o.withScope(e.scope,t):void 0!==i?e=>S(i,e):e=>e())(()=>{let t=o.getCurrentScope(),i=k(t);return e.onlyIfParent&&!i?new g.SentryNonRecordingSpan:E({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})},t.startNewTrace=function(e){return o.withScope(t=>(t.setPropagationContext(r.generatePropagationContext()),s.DEBUG_BUILD&&r.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),S(null,e)))},t.startSpan=function(e,t){let n=w();if(n.startSpan)return n.startSpan(e,t);let r=T(e),{forceTransaction:i,parentSpan:a}=e;return o.withScope(e.scope,()=>O(a)(()=>{let n=o.getCurrentScope(),a=k(n),s=e.onlyIfParent&&!a?new g.SentryNonRecordingSpan:E({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});return d._setSpanForScope(n,s),c.handleCallbackErrors(()=>t(s),()=>{let{status:e}=p.spanToJSON(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})},()=>s.end())}))},t.startSpanManual=function(e,t){let n=w();if(n.startSpanManual)return n.startSpanManual(e,t);let r=T(e),{forceTransaction:i,parentSpan:a}=e;return o.withScope(e.scope,()=>O(a)(()=>{let n=o.getCurrentScope(),a=k(n),s=e.onlyIfParent&&!a?new g.SentryNonRecordingSpan:E({parentSpan:a,spanArguments:r,forceTransaction:i,scope:n});function l(){s.end()}return d._setSpanForScope(n,s),c.handleCallbackErrors(()=>t(s,l),()=>{let{status:e}=p.spanToJSON(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})})}))},t.suppressTracing=function(e){let t=w();return t.suppressTracing?t.suppressTracing(e):o.withScope(t=>(t.setSDKProcessingMetadata({[b]:!0}),e()))},t.withActiveSpan=S},82502:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i="_sentryScope",o="_sentryIsolationScope";t.stripUrlQueryAndFragment=r.stripUrlQueryAndFragment,t.getCapturedScopesOnSpan=function(e){return{scope:e[i],isolationScope:e[o]}},t.setCapturedScopesOnSpan=function(e,t,n){e&&(r.addNonEnumerableProperty(e,o,n),r.addNonEnumerableProperty(e,i,t))}},40762:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842);function o(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}t.DEFAULT_TRANSPORT_BUFFER_SIZE=64,t.createTransport=function(e,t,n=r.makePromiseBuffer(e.bufferSize||64)){let a={};return{send:function(s){let l=[];if(r.forEachEnvelopeItem(s,(t,n)=>{let i=r.envelopeItemTypeToDataCategory(n);if(r.isRateLimited(a,i)){let r=o(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else l.push(t)}),0===l.length)return r.resolvedSyncPromise({});let c=r.createEnvelope(s[0],l),u=t=>{r.forEachEnvelopeItem(c,(n,i)=>{let a=o(n,i);e.recordDroppedEvent(t,r.envelopeItemTypeToDataCategory(i),a)})};return n.add(()=>t({body:r.serializeEnvelope(c)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&i.DEBUG_BUILD&&r.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),a=r.updateRateLimits(a,e),e),e=>{throw u("network_error"),e})).then(e=>e,e=>{if(e instanceof r.SentryError)return i.DEBUG_BUILD&&r.logger.error("Skipped sending event because buffer is full."),u("queue_overflow"),r.resolvedSyncPromise({});throw e})},flush:e=>n.drain(e)}}},34203:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21676);function o(e,t){let n;return r.forEachEnvelopeItem(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}t.eventFromEnvelope=o,t.makeMultiplexedTransport=function(e,t){return n=>{let a=e(n),s=new Map;function l(t,a){let l=a?`${t}:${a}`:t,c=s.get(l);if(!c){let u=r.dsnFromString(t);if(!u)return;let d=i.getEnvelopeEndpointWithUrlEncodedAuth(u,n.tunnel);c=a?(t=>{let n=e(t);return{...n,send:async e=>{let t=o(e,["event","transaction","profile","replay_event"]);return t&&(t.release=a),n.send(e)}}})({...n,url:d}):e({...n,url:d}),s.set(l,c)}return[t,c]}return{send:async function(e){let n=t({envelope:e,getEvent:function(t){return o(e,t&&t.length?t:["event"])}}).map(e=>"string"==typeof e?l(e,void 0):l(e.dsn,e.release)).filter(e=>!!e),i=n.length?n:[["",a]];return(await Promise.all(i.map(([t,n])=>n.send(r.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...s.values(),a];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},49349:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842);t.MIN_DELAY=100,t.START_DELAY=5e3,t.makeOfflineTransport=function(e){function t(...e){i.DEBUG_BUILD&&r.logger.info("[Offline]:",...e)}return n=>{let i;let o=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let a=n.createStore(n),s=5e3;function l(e){i&&clearTimeout(i),"number"!=typeof(i=setTimeout(async()=>{i=void 0;let e=await a.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&i.unref&&i.unref()}function c(){i||(l(s),s=Math.min(2*s,36e5))}async function u(e,i=!1){if(!i&&r.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await a.push(e),l(100),{};try{let t=await o.send(e),n=100;if(t){if(t.headers&&t.headers["retry-after"])n=r.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return l(n),s=5e3,t}catch(o){var u;if(await (u=s,!r.envelopeContainsItemType(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,o,u))))return i?await a.unshift(e):await a.push(e),c(),t("Error sending. Event queued.",o),{};throw o}}return n.flushAtStartup&&c(),{send:u,flush:e=>o.flush(e)}}}},50448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(21216),o=n(49036),a=n(61520);n(5471),n(22842);let s=n(86480),l={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};t.trpcMiddleware=function(e={}){return async function(t){let{path:n,type:c,next:u,rawInput:d,getRawInput:p}=t,f=i.getClient(),h=f&&f.getOptions(),m={procedure_type:c};if((void 0!==e.attachRpcInput?e.attachRpcInput:h&&h.sendDefaultPii)&&(void 0!==d&&(m.input=r.normalize(d)),void 0!==p&&"function"==typeof p))try{let e=await p();m.input=r.normalize(e)}catch(e){}return o.setContext("trpc",m),s.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},async e=>{try{let t=await u();return"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&o.captureException(t.error,l),e.end(),t}catch(t){throw o.captureException(t,l),e.end(),t}})}}},97448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(89172),o=n(67656);function a(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}t.applyScopeDataToEvent=function(e,t){let{fingerprint:n,span:a,breadcrumbs:s,sdkProcessingMetadata:l}=t;(function(e,t){let{extra:n,tags:i,user:o,contexts:a,level:s,transactionName:l}=t,c=r.dropUndefinedKeys(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=r.dropUndefinedKeys(i);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let d=r.dropUndefinedKeys(o);d&&Object.keys(d).length&&(e.user={...d,...e.user});let p=r.dropUndefinedKeys(a);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts}),s&&(e.level=s),l&&"transaction"!==e.type&&(e.transaction=l)})(e,t),a&&function(e,t){e.contexts={trace:o.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:i.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};let n=o.getRootSpan(t),r=o.spanToJSON(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,a),e.fingerprint=e.fingerprint?r.arrayify(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...l}},t.mergeAndOverwriteScopeData=a,t.mergeScopeData=function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:l,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:m}=t;a(e,"extra",n),a(e,"tags",r),a(e,"user",i),a(e,"contexts",o),a(e,"sdkProcessingMetadata",l),s&&(e.level=s),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}},86872:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);t.handleCallbackErrors=function(e,t,n=()=>{}){var i;let o;try{o=e()}catch(e){throw t(e),n(),e}return i=o,r.isThenable(i)?i.then(e=>(n(),e),e=>{throw t(e),n(),e}):(n(),i)}},67753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(21216);t.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=r.getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},5431:function(e,t){function n(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isSentryRequestUrl=function(e,t){let r=t&&t.getDsn(),i=t&&t.getOptions().tunnel;return!!r&&e.includes(r.host)||!!i&&n(e)===n(i)}},50620:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(62988);t.getTraceMetaTags=function(){return Object.entries(r.getTraceData()).map(([e,t])=>`<meta name="${e}" content="${t}"/>`).join("\n")}},17119:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parameterize=function(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}},84564:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(22842);t.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){i.DEBUG_BUILD&&r.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}},52852:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(99818),o=n(21216),a=n(58737),s=n(81065),l=n(97448),c=new WeakMap;function u(e,t){let n;let i=r.GLOBAL_OBJ._sentryDebugIds;if(!i)return;let o=c.get(t);o?n=o:(n=new Map,c.set(t,n));let a=Object.entries(i).reduce((e,[r,i])=>{let o;let a=n.get(r);a?o=a:(o=t(r),n.set(r,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=i;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=a[e.filename])})})}catch(e){}}function d(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}let p=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];t.applyDebugIds=u,t.applyDebugMeta=d,t.parseEventHintOrCaptureContext=function(e){return e?e instanceof s.Scope||"function"==typeof e||Object.keys(e).some(e=>p.includes(e))?{captureContext:e}:e:void 0},t.prepareEvent=function(e,t,n,c,p,f){let{normalizeDepth:h=3,normalizeMaxBreadth:m=1e3}=e,g={...t,event_id:t.event_id||n.event_id||r.uuid4(),timestamp:t.timestamp||r.dateTimestampInSeconds()},y=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:o,dist:a,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:i.DEFAULT_ENVIRONMENT),void 0===e.release&&void 0!==o&&(e.release=o),void 0===e.dist&&void 0!==a&&(e.dist=a),e.message&&(e.message=r.truncate(e.message,s));let l=e.exception&&e.exception.values&&e.exception.values[0];l&&l.value&&(l.value=r.truncate(l.value,s));let c=e.request;c&&c.url&&(c.url=r.truncate(c.url,s))})(g,e),y.length>0&&(g.sdk=g.sdk||{},g.sdk.integrations=[...g.sdk.integrations||[],...y]),p&&p.emit("applyFrameMetadata",t),void 0===t.type&&u(g,e.stackParser);let _=function(e,t){if(!t)return e;let n=e?e.clone():new s.Scope;return n.update(t),n}(c,n.captureContext);n.mechanism&&r.addExceptionMechanism(g,n.mechanism);let v=p?p.getEventProcessors():[],b=o.getGlobalScope().getScopeData();if(f){let e=f.getScopeData();l.mergeScopeData(b,e)}if(_){let e=_.getScopeData();l.mergeScopeData(b,e)}let S=[...n.attachments||[],...b.attachments];S.length&&(n.attachments=S),l.applyScopeDataToEvent(g,b);let E=[...v,...b.eventProcessors];return a.notifyEventProcessors(E,g,n).then(e=>(e&&d(e),"number"==typeof h&&h>0)?function(e,t,n){if(!e)return null;let i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}}))},...e.user&&{user:r.normalize(e.user,t,n)},...e.contexts&&{contexts:r.normalize(e.contexts,t,n)},...e.extra&&{extra:r.normalize(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=r.normalize(e.contexts.trace.data,t,n))),e.spans&&(i.spans=e.spans.map(e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}}))),i}(e,h,m):e)}},35462:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);t.applySdkMetadata=function(e,t,n=[t],i="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${i}:@sentry/${e}`,version:r.SDK_VERSION})),version:r.SDK_VERSION}),e._metadata=o}},58131:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i="_sentrySpan";t._getSpanForScope=function(e){return e[i]},t._setSpanForScope=function(e,t){t?r.addNonEnumerableProperty(e,i,t):delete e[i]}},67656:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(6250),o=n(28788),a=n(21216),s=n(64819),l=n(61520),c=n(96493),u=n(58131);function d(e){return"number"==typeof e?p(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?p(e.getTime()):r.timestampInSeconds()}function p(e){return e>9999999999?e/1e3:e}function f(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:i,startTime:o,name:a,endTime:c,parentSpanId:u,status:p}=e;return r.dropUndefinedKeys({span_id:t,trace_id:n,data:i,description:a,parent_span_id:u,start_timestamp:d(o),timestamp:d(c)||void 0,status:m(p),op:i[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:i[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:s.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function h(e){let{traceFlags:t}=e.spanContext();return 1===t}function m(e){return e&&e.code!==c.SPAN_STATUS_UNSET?e.code===c.SPAN_STATUS_OK?"ok":e.message||"unknown_error":void 0}let g="_sentryChildSpans",y="_sentryRootSpan";function _(){let e=o.getMainCarrier(),t=i.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():u._getSpanForScope(a.getCurrentScope())}t.TRACE_FLAG_NONE=0,t.TRACE_FLAG_SAMPLED=1,t.addChildSpanToSpan=function(e,t){let n=e[y]||e;r.addNonEnumerableProperty(t,y,n),e[g]?e[g].add(t):r.addNonEnumerableProperty(e,g,new Set([t]))},t.getActiveSpan=_,t.getRootSpan=function(e){return e[y]||e},t.getSpanDescendants=function(e){let t=new Set;return function e(n){if(!t.has(n)&&h(n))for(let r of(t.add(n),n[g]?Array.from(n[g]):[]))e(r)}(e),Array.from(t)},t.getStatusMessage=m,t.removeChildSpanFromSpan=function(e,t){e[g]&&e[g].delete(t)},t.spanIsSampled=h,t.spanTimeInputToSeconds=d,t.spanToJSON=f,t.spanToTraceContext=function(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=f(e);return r.dropUndefinedKeys({parent_span_id:i,span_id:t,trace_id:n})},t.spanToTraceHeader=function(e){let{traceId:t,spanId:n}=e.spanContext(),i=h(e);return r.generateSentryTraceHeader(t,n,i)},t.spanToTransactionTraceContext=function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,origin:l}=f(e);return r.dropUndefinedKeys({parent_span_id:a,span_id:t,trace_id:n,data:i,op:o,status:s,origin:l})},t.updateMetricSummaryOnActiveSpan=function(e,t,n,r,i,o){let a=_();a&&s.updateMetricSummaryOnSpan(a,e,t,n,r,i,o)}},62988:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(6250),o=n(28788),a=n(21216),s=n(49036);n(5471),n(22842);let l=n(67656),c=n(89172);function u(e){if(!e||!e.length)return!1;let t="[-!#$%&'*+.^_`|~A-Za-z0-9]+",n="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+";return RegExp(`^${t}\\s*=\\s*${n}(\\s*,\\s*${t}\\s*=\\s*${n})*$`).test(e)}t.getTraceData=function(){if(!s.isEnabled())return{};let e=o.getMainCarrier(),t=i.getAsyncContextStrategy(e);if(t.getTraceData)return t.getTraceData();let n=a.getClient(),d=a.getCurrentScope(),p=l.getActiveSpan(),{dsc:f,sampled:h,traceId:m}=d.getPropagationContext(),g=p&&l.getRootSpan(p),y=p?l.spanToTraceHeader(p):r.generateSentryTraceHeader(m,void 0,h),_=g?c.getDynamicSamplingContextFromSpan(g):f||(n?c.getDynamicSamplingContextFromClient(m,n):void 0),v=r.dynamicSamplingContextToSentryBaggageHeader(_);if(!r.TRACEPARENT_REGEXP.test(y))return r.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let b=u(v);return b||r.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":y,...b&&{baggage:v}}},t.isValidBaggageString=u},52303:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(20552),i=n(78251);t.browserTracingIntegration=function(e={}){let t=r.browserTracingIntegration({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){o&&i.nextRouterInstrumentNavigation(e),t.afterAllSetup(e),n&&i.nextRouterInstrumentPageLoad(e)}}}},28429:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=i.defineIntegration(({assetPrefixPath:e})=>({...i.rewriteFramesIntegration({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=r([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}}),name:"NextjsClientStackFrameNormalization"}));t.nextjsClientStackFrameNormalizationIntegration=o},47987:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(20552),o=n(94628);n(31850);let a=n(36426),s=n(52303),l=n(28429),c=n(37731),u=n(14764),d=n(88536),p=n(70673),f=n(67511),h=n(10097),m=n(46284),g=n(84014),y=n(60286),_=n(89297),v=n(32650),b=n(23091),S=n(4623),E=n(93922),T=n(22354),w=n(41842),I=n(38151),k=o.GLOBAL_OBJ;t.browserTracingIntegration=s.browserTracingIntegration,t.captureUnderscoreErrorException=d.captureUnderscoreErrorException,t.wrapGetStaticPropsWithSentry=p.wrapGetStaticPropsWithSentry,t.wrapGetInitialPropsWithSentry=f.wrapGetInitialPropsWithSentry,t.wrapAppGetInitialPropsWithSentry=h.wrapAppGetInitialPropsWithSentry,t.wrapDocumentGetInitialPropsWithSentry=m.wrapDocumentGetInitialPropsWithSentry,t.wrapErrorGetInitialPropsWithSentry=g.wrapErrorGetInitialPropsWithSentry,t.wrapGetServerSidePropsWithSentry=y.wrapGetServerSidePropsWithSentry,t.wrapServerComponentWithSentry=_.wrapServerComponentWithSentry,t.wrapRouteHandlerWithSentry=v.wrapRouteHandlerWithSentry,t.wrapApiHandlerWithSentryVercelCrons=b.wrapApiHandlerWithSentryVercelCrons,t.wrapMiddlewareWithSentry=S.wrapMiddlewareWithSentry,t.wrapPageComponentWithSentry=E.wrapPageComponentWithSentry,t.wrapGenerationFunctionWithSentry=T.wrapGenerationFunctionWithSentry,t.withServerActionInstrumentation=w.withServerActionInstrumentation,t.captureRequestError=I.captureRequestError,t.experimental_captureRequestError=I.experimental_captureRequestError,t.init=function(e){let t={environment:a.getVercelEnv(!0)||"production",defaultIntegrations:function(e){let t=i.getDefaultIntegrations(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(s.browserTracingIntegration());let n=k.__rewriteFramesAssetPrefixPath__||"";return t.push(l.nextjsClientStackFrameNormalizationIntegration({assetPrefixPath:n})),t}(e),...e};u.applyTunnelRouteOption(t),r.applySdkMetadata(t,"nextjs",["nextjs","react"]);let n=i.init(t),o=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;o.id="NextClient404Filter",r.addEventProcessor(o);let d=e=>"transaction"===e.type&&e.transaction===c.INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME?null:e;return d.id="IncompleteTransactionFilter",r.addEventProcessor(d),n},t.withSentryConfig=function(e){return e},Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:i.__proto__}),Object.keys(i).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=i[e])})},37731:function(e,t,n){var{_nullishCoalesce:r,_optionalChain:i}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(20552),s=n(94628),l="incomplete-app-router-transaction",c=s.GLOBAL_OBJ;function u(e){try{return new URL(e,"http://some-random-base.com/").pathname}catch(e){return"/"}}t.INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME=l,t.appRouterInstrumentNavigation=function(e){let t;a.WINDOW.addEventListener("popstate",()=>{t&&t.isRecording()?t.updateName(a.WINDOW.location.pathname):t=a.startBrowserTracingNavigationSpan(e,{name:a.WINDOW.location.pathname,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url","navigation.type":"browser.popstate"}})});let n=!1,s=0,d=setInterval(()=>{s++;let p=r(i([c,"optionalAccess",e=>e.next,"optionalAccess",e=>e.router]),()=>i([c,"optionalAccess",e=>e.nd,"optionalAccess",e=>e.router]));n||s>500?clearInterval(d):p&&(clearInterval(d),n=!0,["back","forward","push","replace"].forEach(n=>{i([p,"optionalAccess",e=>e[n]])&&(p[n]=new Proxy(p[n],{apply(r,s,c){let d=a.startBrowserTracingNavigationSpan(e,{name:l,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}});return t=d,"push"===n?(i([d,"optionalAccess",e=>e.updateName,"call",e=>e(u(c[0]))]),i([d,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.push")])):"replace"===n?(i([d,"optionalAccess",e=>e.updateName,"call",e=>e(u(c[0]))]),i([d,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.replace")])):"back"===n?i([d,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.back")]):"forward"===n&&i([d,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.forward")]),r.apply(s,c)}}))}))},20)},t.appRouterInstrumentPageLoad=function(e){a.startBrowserTracingPageLoadSpan(e,{name:a.WINDOW.location.pathname,startTime:s.browserPerformanceTimeOrigin?s.browserPerformanceTimeOrigin/1e3:void 0,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"}})}},78251:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(20552),i=n(37731),o=n(52987);t.nextRouterInstrumentNavigation=function(e){r.WINDOW.document.getElementById("__NEXT_DATA__")?o.pagesRouterInstrumentNavigation(e):i.appRouterInstrumentNavigation(e)},t.nextRouterInstrumentPageLoad=function(e){r.WINDOW.document.getElementById("__NEXT_DATA__")?o.pagesRouterInstrumentPageLoad(e):i.appRouterInstrumentPageLoad(e)}},52987:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(20552),a=n(94628),s=n(11163),l=n(73353),c=s.default.events?s.default:s.default.default,u=o.WINDOW;t.pagesRouterInstrumentNavigation=function(e){c.events.on("routeChangeStart",t=>{let n,s;let l=a.stripUrlQueryAndFragment(t),c=function(e){let t=(u.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";r([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");let i=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${i}${n}(?:/)?$`)}(t);return e.match(n)})}(l);c?(n=c,s="route"):(n=l,s="url"),o.startBrowserTracingNavigationSpan(e,{name:n,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s}})})},t.pagesRouterInstrumentPageLoad=function(e){let{route:t,params:n,sentryTrace:r,baggage:s}=function(){let e;let t=u.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){l.DEBUG_BUILD&&a.logger.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}(),c=t||u.location.pathname;o.startBrowserTracingPageLoadSpan(e,{name:c,startTime:a.browserPerformanceTimeOrigin?a.browserPerformanceTimeOrigin/1e3:void 0,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:s})}},14764:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628),i=n(73353),o=r.GLOBAL_OBJ;t.applyTunnelRouteOption=function(e){let t=o.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=r.dsnFromString(e.dsn);if(!n)return;let o=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(o){let a=o[1],s=o[2],l=`${t}?o=${a}&p=${n.projectId}`;s&&(l+=`&r=${s}`),e.tunnel=l,i.DEBUG_BUILD&&r.logger.info(`Tunneling events to "${l}"`)}else i.DEBUG_BUILD&&r.logger.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}},88536:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(64791);async function a(e){let{req:t,res:n,err:a}=e,s=n&&n.statusCode||e.statusCode;if(s&&s<500||!e.pathname)return Promise.resolve();r.withScope(e=>{t&&e.setSDKProcessingMetadata({request:t}),r.captureException(a||`_error.js called with falsy error (${a})`,{mechanism:{type:"instrument",handled:!1,data:{function:"_error.getInitialProps"}}})}),i.vercelWaitUntil(o.flushSafelyWithTimeout())}t.captureUnderscoreErrorException=a},38151:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521);function i(e,t,n){r.withScope(i=>{i.setSDKProcessingMetadata({request:{headers:t.headers,method:t.method}}),i.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),i.setTransactionName(n.routePath),r.captureException(e,{mechanism:{handled:!1}})})}t.captureRequestError=i,t.experimental_captureRequestError=i},73353:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},31850:function(e,t,n){var{_nullishCoalesce:r,_optionalChain:i}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(94628),s=n(28382),l=a.GLOBAL_OBJ;async function c(e,t){try{if(!(i([e,"access",e=>e.file,"optionalAccess",e=>e.startsWith,"call",e=>e("webpack-internal:")])||i([e,"access",e=>e.file,"optionalAccess",e=>e.startsWith,"call",e=>e("file:")])))return null;let n=new URLSearchParams;n.append("isServer",String(!1)),n.append("isEdgeServer",String(!1)),n.append("isAppDirectory",String(!0)),n.append("errorMessage",t.toString()),Object.keys(e).forEach(t=>{n.append(t,r(e[t],()=>"").toString())});let a=r(l.__sentryBasePath,()=>"");""===a||a.match(/^\//)||(a=`/${a}`);let s=new AbortController,c=setTimeout(()=>s.abort(),3e3),u=await o.suppressTracing(()=>fetch(`${"undefined"==typeof window?"http://localhost:3000":""}${a}/__nextjs_original-stack-frame?${n.toString()}`,{signal:s.signal}).finally(()=>{clearTimeout(c)}));if(!u.ok||204===u.status)return null;let d=await u.json();return{originalCodeFrame:d.originalCodeFrame,originalStackFrame:d.originalStackFrame}}catch(e){return null}}async function u(e,t){"transaction"===e.type&&(e.spans=i([e,"access",e=>e.spans,"optionalAccess",e=>e.filter,"call",e=>e(e=>{let t=i([e,"access",e=>e.data,"optionalAccess",e=>e["http.url"]]);return"string"!=typeof t||!t.includes("__nextjs_original-stack-frame")})]));try{if(t.originalException&&t.originalException instanceof Error&&t.originalException.stack){let n=s.parse(t.originalException.stack),r=await Promise.all(n.map(e=>c(e,t.originalException)));i([e,"access",e=>e.exception,"optionalAccess",e=>e.values,"optionalAccess",e=>e[0],"optionalAccess",e=>e.stacktrace,"optionalAccess",e=>e.frames])&&(e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames.map((e,t,n)=>{let o=r[n.length-1-t];if(!o||!o.originalStackFrame||!o.originalCodeFrame)return{...e,platform:i([e,"access",e=>e.filename,"optionalAccess",e=>e.startsWith,"call",e=>e("node:internal")])?"nodejs":void 0,in_app:!1};let{contextLine:a,preContextLines:s,postContextLines:l}=function(e){let t;let n=e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"").split("\n").filter(e=>!e.match(/^\s*\|/)).map(e=>({line:e,isErrorLine:!!e.match(/^>/)})).map(e=>({...e,line:e.line.replace(/^.*\|/,"")})),r=[],i=[],o=!1;for(let e of n)e.isErrorLine?(t=e.line,o=!0):o?i.push(e.line):r.push(e.line);return{contextLine:t,preContextLines:r,postContextLines:i}}(o.originalCodeFrame);return{...e,pre_context:s,context_line:a,post_context:l,function:o.originalStackFrame.methodName,filename:o.originalStackFrame.file||void 0,lineno:o.originalStackFrame.lineNumber||void 0,colno:o.originalStackFrame.column||void 0}}))}}catch(e){}return e}t.devErrorSymbolicationEventProcessor=u},36426:function(e,t,n){var r=n(34155);Object.defineProperty(t,"__esModule",{value:!0}),t.getVercelEnv=function(e){let t=e?r.env.NEXT_PUBLIC_VERCEL_ENV:r.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}},93792:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94628);t.isNotFoundNavigationError=function(e){return r.isError(e)&&"NEXT_NOT_FOUND"===e.digest},t.isRedirectNavigationError=function(e){return r.isError(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}},5115:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(64791),a=n(44581);t.withEdgeWrapping=function(e,t){return async function(...n){return a.escapeNextjsTracing(()=>{let s=n[0];return r.withIsolationScope(a.commonObjectToIsolationScope(s),a=>{let l,c;return s instanceof Request&&(l=s.headers.get("sentry-trace")||"",c=s.headers.get("baggage"),a.setSDKProcessingMetadata({request:i.winterCGRequestToRequestData(s)})),a.setTransactionName(t.spanDescription),r.continueTrace({sentryTrace:l,baggage:c},()=>r.startSpan({name:t.spanDescription,op:t.spanOp,forceTransaction:!0,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.withEdgeWrapping"}},async i=>{let o=await r.handleCallbackErrors(()=>e.apply(this,n),e=>{r.captureException(e,{mechanism:{type:"instrument",handled:!1,data:{function:t.mechanismFunctionName}}})});return o instanceof Response?r.setHttpStatus(i,o.status):i.setStatus({code:r.SPAN_STATUS_OK}),o})).finally(()=>{i.vercelWaitUntil(o.flushSafelyWithTimeout())})})})}}},13490:function(e,t,n){var r=n(34155);Object.defineProperty(t,"__esModule",{value:!0});let i=n(31365);t.isBuild=function(){return r.env.NEXT_PHASE===i.PHASE_PRODUCTION_BUILD}},64791:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(73353);function a(e,t){r.setHttpStatus(e,t.statusCode),e.end()}async function s(){try{o.DEBUG_BUILD&&i.logger.log("Flushing events..."),await r.flush(2e3),o.DEBUG_BUILD&&i.logger.log("Done flushing events")}catch(e){o.DEBUG_BUILD&&i.logger.log("Error while flushing events:\n",e)}}t.autoEndSpanOnResponseEnd=function(e,t){t.end&&!t.end.__sentry_original__&&i.fill(t,"end",t=>function(...n){return a(e,this),t.call(this,...n)})},t.finishSpan=a,t.flushSafelyWithTimeout=s},44581:function(e,t,n){let r;Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(94628),a=n(73353),s=new WeakMap,l=new WeakMap;t.commonObjectToIsolationScope=function(e){if("object"!=typeof e||!e)return new i.Scope;{let t=l.get(e);if(t)return t;{let t=new i.Scope;return l.set(e,t),t}}},t.commonObjectToPropagationContext=function(e,t){return"object"==typeof e&&e?s.get(e)||(s.set(e,t),t):t},t.escapeNextjsTracing=function(e){let t=o.GLOBAL_OBJ.AsyncLocalStorage;return t?(r||(r=new t),r.getStore())?e():i.startNewTrace(()=>r.run(!0,()=>e())):(a.DEBUG_BUILD&&o.logger.warn("Tried to register AsyncLocalStorage async context strategy in a runtime that doesn't support AsyncLocalStorage."),e())}},84005:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(94628),a=n(64791),s=n(44581);function l(e){return e._sentrySpan}async function c(e,t,n){let{parameterizedRoute:r,dataFetchingMethodName:s}=n;return i.startSpan({op:"function.nextjs",name:`${s} (${r})`,onlyIfParent:!0,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"}},async n=>{n.setStatus({code:i.SPAN_STATUS_OK});try{return await e(...t)}catch(e){throw n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),i.captureException(e,{mechanism:{handled:!1}}),e}finally{n.end()}}).finally(()=>{o.vercelWaitUntil(a.flushSafelyWithTimeout())})}t.callDataFetcherTraced=c,t.getSpanFromRequest=l,t.withErrorInstrumentation=function(e){return async function(...t){try{return await e.apply(this,t)}catch(e){throw i.captureException(e,{mechanism:{handled:!1}}),e}}},t.withTracedServerSideDataFetcher=function(e,t,n,c){return async function(...u){return s.escapeNextjsTracing(()=>{let d=s.commonObjectToIsolationScope(t);return i.withIsolationScope(d,()=>{d.setTransactionName(`${c.dataFetchingMethodName} (${c.dataFetcherRouteName})`),d.setSDKProcessingMetadata({request:t});let s=t.headers&&o.isString(t.headers["sentry-trace"])?t.headers["sentry-trace"]:void 0,p=r([t,"access",e=>e.headers,"optionalAccess",e=>e.baggage]);return i.continueTrace({sentryTrace:s,baggage:p},()=>{let o=function(e,t,n){let r=l(e);if(r)return r;let o=i.startInactiveSpan({name:n,forceTransaction:!0,op:"http.server",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"}});return o.setStatus({code:i.SPAN_STATUS_OK}),e._sentrySpan=o,a.autoEndSpanOnResponseEnd(o,t),o}(t,n,c.requestedRouteName);return i.withActiveSpan(o,()=>i.startSpanManual({op:"function.nextjs",name:`${c.dataFetchingMethodName} (${c.dataFetcherRouteName})`,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"}},async t=>{t.setStatus({code:i.SPAN_STATUS_OK});let{"sentry-trace":n,baggage:a}=i.getTraceData();try{return{sentryTrace:n,baggage:a,data:await e.apply(this,u)}}catch(e){throw t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),r([o,"optionalAccess",e=>e.setStatus,"call",e=>e({code:i.SPAN_STATUS_ERROR,message:"internal_error"})]),e}finally{t.end()}}))})})}).finally(()=>{o.vercelWaitUntil(a.flushSafelyWithTimeout())})}}},41842:function(e,t,n){var{_nullishCoalesce:r,_optionalChain:i}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(94628),s=n(73353),l=n(93792),c=n(64791),u=n(44581);async function d(e,t,n){return u.escapeNextjsTracing(()=>o.withIsolationScope(async u=>{let d,p;let f=i([o.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii]),h={};try{let e=await t.headers;d=r(i([e,"optionalAccess",e=>e.get,"call",e=>e("sentry-trace")]),()=>void 0),p=i([e,"optionalAccess",e=>e.get,"call",e=>e("baggage")]),i([e,"optionalAccess",e=>e.forEach,"call",e=>e((e,t)=>{h[t]=e})])}catch(e){s.DEBUG_BUILD&&a.logger.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return u.setTransactionName(`serverAction/${e}`),u.setSDKProcessingMetadata({request:{headers:h}}),o.continueTrace({sentryTrace:d,baggage:p},async()=>{try{return await o.startSpan({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"}},async e=>{let r=await o.handleCallbackErrors(n,t=>{l.isNotFoundNavigationError(t)?e.setStatus({code:o.SPAN_STATUS_ERROR,message:"not_found"}):l.isRedirectNavigationError(t)||(e.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(t,{mechanism:{handled:!1}}))});return(void 0!==t.recordResponse?t.recordResponse:f)&&o.getIsolationScope().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{o.getIsolationScope().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{a.vercelWaitUntil(c.flushSafelyWithTimeout())}})}))}t.withServerActionInstrumentation=function(...e){if("function"==typeof e[1]){let[t,n]=e;return d(t,{},n)}{let[t,n,r]=e;return d(t,n,r)}}},23091:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521);t.wrapApiHandlerWithSentryVercelCrons=function(e,t){return new Proxy(e,{apply:(e,n,o)=>{let a;if(!o||!o[0])return e.apply(n,o);let[s]=o,l="nextUrl"in s?s.nextUrl.pathname:s.url,c="nextUrl"in s?s.headers.get("user-agent"):s.headers["user-agent"];if(!t||!r([c,"optionalAccess",e=>e.includes,"call",e=>e("vercel-cron")]))return e.apply(n,o);let u=t.find(e=>e.path===l);if(!u||!u.path||!u.schedule)return e.apply(n,o);let d=u.path,p=i.captureCheckIn({monitorSlug:d,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:u.schedule}}),f=Date.now()/1e3,h=()=>{i.captureCheckIn({checkInId:p,monitorSlug:d,status:"error",duration:Date.now()/1e3-f})};try{a=e.apply(n,o)}catch(e){throw h(),e}return"object"==typeof a&&null!==a&&"then"in a?Promise.resolve(a).then(()=>{i.captureCheckIn({checkInId:p,monitorSlug:d,status:"ok",duration:Date.now()/1e3-f})},()=>{h()}):i.captureCheckIn({checkInId:p,monitorSlug:d,status:"ok",duration:Date.now()/1e3-f}),a}})}},10097:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13490),i=n(84005);t.wrapAppGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[o]=n,{req:a,res:s}=o.ctx,l=i.withErrorInstrumentation(e);if(!a||!s)return l.apply(t,n);{let e=i.withTracedServerSideDataFetcher(l,a,s,{dataFetcherRouteName:"/_app",requestedRouteName:o.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,sentryTrace:c,baggage:u}=await e.apply(t,n);return r.pageProps||(r.pageProps={}),c&&(r.pageProps._sentryTraceData=c),u&&(r.pageProps._sentryBaggage=u),r}}})}},46284:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13490),i=n(84005);t.wrapDocumentGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[o]=n,{req:a,res:s}=o,l=i.withErrorInstrumentation(e);if(!a||!s)return l.apply(t,n);{let e=i.withTracedServerSideDataFetcher(l,a,s,{dataFetcherRouteName:"/_document",requestedRouteName:o.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r}=await e.apply(t,n);return r}}})}},84014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13490),i=n(84005);t.wrapErrorGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(r.isBuild())return e.apply(t,n);let[o]=n,{req:a,res:s}=o,l=i.withErrorInstrumentation(e);if(!a||!s)return l.apply(t,n);{let e=i.withTracedServerSideDataFetcher(l,a,s,{dataFetcherRouteName:"/_error",requestedRouteName:o.pathname,dataFetchingMethodName:"getInitialProps"}),{data:r,baggage:c,sentryTrace:u}=await e.apply(t,n);return u&&(r._sentryTraceData=u),c&&(r._sentryBaggage=c),r}}})}},22354:function(e,t,n){var{_nullishCoalesce:r,_optionalChain:i}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(94628),s=n(93792),l=n(44581);t.wrapGenerationFunctionWithSentry=function(e,t){let{requestAsyncStorage:n,componentRoute:c,componentType:u,generationFunctionIdentifier:d}=t;return new Proxy(e,{apply:(e,t,p)=>{let f,h;let m=i([o.getActiveSpan,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);try{f=i([n,"optionalAccess",e=>e.getStore,"call",e=>e(),"optionalAccess",e=>e.headers])}catch(e){}let g=l.commonObjectToIsolationScope(f),y=o.getActiveSpan();if(y){let e=o.getRootSpan(y),{scope:t}=o.getCapturedScopesOnSpan(e);o.setCapturedScopesOnSpan(e,r(t,()=>new o.Scope),g),e.setAttribute("sentry.rsc",!0)}if(i([o.getClient,"call",e=>e(),"optionalAccess",e=>e.getOptions,"call",e=>e(),"access",e=>e.sendDefaultPii])){let e=p[0];h={params:e&&"object"==typeof e&&"params"in e?e.params:void 0,searchParams:e&&"object"==typeof e&&"searchParams"in e?e.searchParams:void 0}}let _=f?a.winterCGHeadersToDict(f):void 0;return o.withIsolationScope(g,()=>o.withScope(n=>{n.setTransactionName(`${u}.${d} (${c})`),g.setSDKProcessingMetadata({request:{headers:_}});let r=l.commonObjectToPropagationContext(f,i([_,"optionalAccess",e=>e["sentry-trace"]])?a.propagationContextFromHeaders(_["sentry-trace"],_.baggage):{traceId:m||a.uuid4(),spanId:a.uuid4().substring(16)});return n.setPropagationContext(r),n.setExtra("route_data",h),o.startSpanManual({op:"function.nextjs",name:`${u}.${d} (${c})`,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs"}},n=>o.handleCallbackErrors(()=>e.apply(t,p),e=>{s.isNotFoundNavigationError(e)?(n.setStatus({code:o.SPAN_STATUS_ERROR,message:"not_found"}),o.getRootSpan(n).setStatus({code:o.SPAN_STATUS_ERROR,message:"not_found"})):s.isRedirectNavigationError(e)?n.setStatus({code:o.SPAN_STATUS_OK}):(n.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),o.getRootSpan(n).setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{handled:!1}}))},()=>{n.end()}))}))}})}},67511:function(e,t,n){var{_asyncNullishCoalesce:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13490),o=n(84005);t.wrapGetInitialPropsWithSentry=function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(i.isBuild())return e.apply(t,n);let[a]=n,{req:s,res:l}=a,c=o.withErrorInstrumentation(e);if(!s||!l)return c.apply(t,n);{let e=o.withTracedServerSideDataFetcher(c,s,l,{dataFetcherRouteName:a.pathname,requestedRouteName:a.pathname,dataFetchingMethodName:"getInitialProps"}),{data:i,baggage:u,sentryTrace:d}=await r(await e.apply(t,n),async()=>({}));return d&&(i._sentryTraceData=d),u&&(i._sentryBaggage=u),i}}})}},60286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13490),i=n(84005);t.wrapGetServerSidePropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,n,o)=>{if(r.isBuild())return e.apply(n,o);let[a]=o,{req:s,res:l}=a,c=i.withErrorInstrumentation(e),u=i.withTracedServerSideDataFetcher(c,s,l,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:d,baggage:p,sentryTrace:f}=await u.apply(n,o);return d&&"props"in d&&(f&&(d.props._sentryTraceData=f),p&&(d.props._sentryBaggage=p)),d}})}},70673:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13490),i=n(84005);t.wrapGetStaticPropsWithSentry=function(e,t){return new Proxy(e,{apply:async(e,n,o)=>{if(r.isBuild())return e.apply(n,o);let a=i.withErrorInstrumentation(e);return i.callDataFetcherTraced(a,o,{parameterizedRoute:t,dataFetchingMethodName:"getStaticProps"})}})}},4623:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(5115);t.wrapMiddlewareWithSentry=function(e){return new Proxy(e,{apply:(e,t,n)=>r.withEdgeWrapping(e,{spanDescription:"middleware",spanOp:"middleware.nextjs",mechanismFunctionName:"withSentryMiddleware"}).apply(t,n)})}},93922:function(e,t,n){var{_optionalChain:r}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let i=n(13521),o=n(94628),a=n(44581);t.wrapPageComponentWithSentry=function(e){return"function"==typeof e&&r([e,"optionalAccess",e=>e.prototype,"optionalAccess",e=>e.isReactComponent])?class extends e{render(...e){return a.escapeNextjsTracing(()=>i.withIsolationScope(()=>{let t=i.getCurrentScope(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=o.extractTraceparentData(n);t.setContext("trace",{span_id:r([e,"optionalAccess",e=>e.parentSpanId]),trace_id:r([e,"optionalAccess",e=>e.traceId])})}try{return super.render(...e)}catch(e){throw i.captureException(e,{mechanism:{handled:!1}}),e}}))}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>a.escapeNextjsTracing(()=>i.withIsolationScope(()=>{let a=i.getCurrentScope(),s=r([n,"optionalAccess",e=>e[0],"optionalAccess",e=>e._sentryTraceData]);if(s){let e=o.extractTraceparentData(s);a.setContext("trace",{span_id:r([e,"optionalAccess",e=>e.parentSpanId]),trace_id:r([e,"optionalAccess",e=>e.traceId])})}try{return e.apply(t,n)}catch(e){throw i.captureException(e,{mechanism:{handled:!1}}),e}}))}):e}},32650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o=n(93792),a=n(64791),s=n(44581);t.wrapRouteHandlerWithSentry=function(e,t){let{method:n,parameterizedRoute:l,headers:c}=t;return new Proxy(e,{apply:(e,t,u)=>s.escapeNextjsTracing(()=>{let d=s.commonObjectToIsolationScope(c),p=c?i.winterCGHeadersToDict(c):{};d.setSDKProcessingMetadata({request:{headers:p}});let f=i.propagationContextFromHeaders(p["sentry-trace"],p.baggage),h=s.commonObjectToPropagationContext(c,f);return r.withIsolationScope(d,()=>r.withScope(async s=>{s.setTransactionName(`${n} ${l}`),s.setPropagationContext(h);try{return r.startSpan({name:`${n} ${l}`,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.server",[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs"},forceTransaction:!0},async n=>{let i=await r.handleCallbackErrors(()=>e.apply(t,u),e=>{o.isRedirectNavigationError(e)||(o.isNotFoundNavigationError(e)&&n?n.setStatus({code:r.SPAN_STATUS_ERROR,message:"not_found"}):r.captureException(e,{mechanism:{handled:!1}}))});try{n&&i.status&&r.setHttpStatus(n,i.status)}catch(e){}return i})}finally{i.vercelWaitUntil(a.flushSafelyWithTimeout())}}))})})}},89297:function(e,t,n){var{_nullishCoalesce:r,_optionalChain:i}=n(94628);Object.defineProperty(t,"__esModule",{value:!0});let o=n(13521),a=n(94628),s=n(93792),l=n(64791),c=n(44581);t.wrapServerComponentWithSentry=function(e,t){let{componentRoute:n,componentType:u}=t;return new Proxy(e,{apply:(e,d,p)=>{i([o.getActiveSpan,"call",e=>e(),"optionalAccess",e=>e.spanContext,"call",e=>e(),"access",e=>e.traceId]);let f=c.commonObjectToIsolationScope(t.headers),h=o.getActiveSpan();if(h){let e=o.getRootSpan(h),{scope:t}=o.getCapturedScopesOnSpan(e);o.setCapturedScopesOnSpan(e,r(t,()=>new o.Scope),f),e.setAttribute("sentry.rsc",!0)}let m=t.headers?a.winterCGHeadersToDict(t.headers):void 0;return f.setSDKProcessingMetadata({request:{headers:m}}),o.withIsolationScope(f,()=>o.withScope(t=>(t.setTransactionName(`${u} Server Component (${n})`),o.startSpanManual({op:"function.nextjs",name:`${u} Server Component (${n})`,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs"}},t=>o.handleCallbackErrors(()=>e.apply(d,p),e=>{s.isNotFoundNavigationError(e)?t.setStatus({code:o.SPAN_STATUS_ERROR,message:"not_found"}):s.isRedirectNavigationError(e)?t.setStatus({code:o.SPAN_STATUS_OK}):(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),o.captureException(e,{mechanism:{handled:!1}}))},()=>{t.end(),a.vercelWaitUntil(l.flushSafelyWithTimeout())})))))}})}},76666:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(47987),i=n(88536),o=n(52303),a=n(70673),s=n(67511),l=n(10097),c=n(46284),u=n(84014),d=n(60286),p=n(89297),f=n(32650),h=n(23091),m=n(4623),g=n(93922),y=n(22354),_=n(41842),v=n(38151),b=n(20552);t.init=r.init,t.withSentryConfig=r.withSentryConfig,t.captureUnderscoreErrorException=i.captureUnderscoreErrorException,t.browserTracingIntegration=o.browserTracingIntegration,t.wrapGetStaticPropsWithSentry=a.wrapGetStaticPropsWithSentry,t.wrapGetInitialPropsWithSentry=s.wrapGetInitialPropsWithSentry,t.wrapAppGetInitialPropsWithSentry=l.wrapAppGetInitialPropsWithSentry,t.wrapDocumentGetInitialPropsWithSentry=c.wrapDocumentGetInitialPropsWithSentry,t.wrapErrorGetInitialPropsWithSentry=u.wrapErrorGetInitialPropsWithSentry,t.wrapGetServerSidePropsWithSentry=d.wrapGetServerSidePropsWithSentry,t.wrapServerComponentWithSentry=p.wrapServerComponentWithSentry,t.wrapRouteHandlerWithSentry=f.wrapRouteHandlerWithSentry,t.wrapApiHandlerWithSentryVercelCrons=h.wrapApiHandlerWithSentryVercelCrons,t.wrapMiddlewareWithSentry=m.wrapMiddlewareWithSentry,t.wrapPageComponentWithSentry=g.wrapPageComponentWithSentry,t.wrapGenerationFunctionWithSentry=y.wrapGenerationFunctionWithSentry,t.withServerActionInstrumentation=_.withServerActionInstrumentation,t.captureRequestError=v.captureRequestError,t.experimental_captureRequestError=v.experimental_captureRequestError,Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:b.__proto__}),Object.keys(b).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=b[e])})},42519:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.REACT_MOUNT_OP="ui.react.mount",t.REACT_RENDER_OP="ui.react.render",t.REACT_UPDATE_OP="ui.react.update"},81566:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},35268:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(94628),o=n(67294);function a(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}function s(e,t){let n=new WeakSet;!function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,t)}function l(e,{componentStack:t},n){if(a(o.version)&&i.isError(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,s(e,n)}return r.captureException(e,{...n,captureContext:{contexts:{react:{componentStack:t}}}})}t.captureReactException=l,t.isAtLeastReact17=a,t.reactErrorHandler=function(e){return(t,n)=>{let r=l(t,n);e&&e(t,n,r)}},t.setCause=s},79907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(94628),o=n(8679),a=n(67294),s=n(81566),l=n(35268),c=o&&o.__esModule?o.default:o,u=function(e){if(e&&e.__esModule)return e;let t=Object.create(null);if(e)for(let n in e)t[n]=e[n];return t.default=e,t}(a),d="unknown",p={componentStack:null,error:null,eventId:null};class f extends u.Component{constructor(e){super(e),f.prototype.__init.call(this),this.state=p,this._openFallbackReportDialog=!0;let t=r.getClient();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&r.showReportDialog({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,i=null==n?void 0:n,{beforeCapture:o,onError:a,showDialog:s,dialogOptions:c}=this.props;r.withScope(u=>{o&&o(u,e,i);let d=l.captureReactException(e,t,{mechanism:{handled:!!this.props.fallback}});a&&a(e,i,d),s&&(this._lastEventId=d,this._openFallbackReportDialog&&r.showReportDialog({...c,eventId:d})),this.setState({error:e,componentStack:n,eventId:d})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}__init(){this.resetErrorBoundary=()=>{let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(p)}}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.error){let t;return(t="function"==typeof e?u.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):e,u.isValidElement(t))?t:(e&&s.DEBUG_BUILD&&i.logger.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}t.ErrorBoundary=f,t.UNKNOWN_COMPONENT=d,t.withErrorBoundary=function(e,t){let n=e.displayName||e.name||d,r=n=>u.createElement(f,{...t},u.createElement(e,{...n}));return r.displayName=`errorBoundary(${n})`,c(r,e),r}},20552:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(65776),o=n(35268),a=n(3192),s=n(79907),l=n(41041),c=n(55586),u=n(47665),d=n(5374),p=n(97593);t.init=i.init,t.reactErrorHandler=o.reactErrorHandler,t.Profiler=a.Profiler,t.useProfiler=a.useProfiler,t.withProfiler=a.withProfiler,t.ErrorBoundary=s.ErrorBoundary,t.withErrorBoundary=s.withErrorBoundary,t.createReduxEnhancer=l.createReduxEnhancer,t.reactRouterV3BrowserTracingIntegration=c.reactRouterV3BrowserTracingIntegration,t.tanstackRouterBrowserTracingIntegration=u.tanstackRouterBrowserTracingIntegration,t.reactRouterV4BrowserTracingIntegration=d.reactRouterV4BrowserTracingIntegration,t.reactRouterV5BrowserTracingIntegration=d.reactRouterV5BrowserTracingIntegration,t.withSentryRouting=d.withSentryRouting,t.reactRouterV6BrowserTracingIntegration=p.reactRouterV6BrowserTracingIntegration,t.withSentryReactRouterV6Routing=p.withSentryReactRouterV6Routing,t.wrapCreateBrowserRouter=p.wrapCreateBrowserRouter,t.wrapUseRoutes=p.wrapUseRoutes,Object.prototype.hasOwnProperty.call(r,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:!0,value:r.__proto__}),Object.keys(r).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e])})},3192:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(13521),o=n(94628),a=n(8679),s=n(67294),l=n(42519),c=a&&a.__esModule?a.default:a,u=function(e){if(e&&e.__esModule)return e;let t=Object.create(null);if(e)for(let n in e)t[n]=e[n];return t.default=e,t}(s),d="unknown";class p extends u.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=r.startInactiveSpan({name:`<${t}>`,onlyIfParent:!0,op:l.REACT_MOUNT_OP,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=o.timestampInSeconds();this._updateSpan=i.withActiveSpan(this._mountSpan,()=>r.startInactiveSpan({name:`<${this.props.name}>`,onlyIfParent:!0,op:l.REACT_UPDATE_OP,startTime:e,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=o.timestampInSeconds(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=i.spanToJSON(this._mountSpan).timestamp;i.withActiveSpan(this._mountSpan,()=>{let o=r.startInactiveSpan({onlyIfParent:!0,name:`<${t}>`,op:l.REACT_RENDER_OP,startTime:n,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});o&&o.end(e)})}}render(){return this.props.children}}p.__initStatic(),t.Profiler=p,t.UNKNOWN_COMPONENT=d,t.useProfiler=function(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=u.useState(()=>{if(!t||!t.disabled)return r.startInactiveSpan({name:`<${e}>`,onlyIfParent:!0,op:l.REACT_MOUNT_OP,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});u.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=i.spanToJSON(n).timestamp,a=o.timestampInSeconds(),s=r.startInactiveSpan({name:`<${e}>`,onlyIfParent:!0,op:l.REACT_RENDER_OP,startTime:t,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});s&&s.end(a)}}),[])},t.withProfiler=function(e,t){let n=t&&t.name||e.displayName||e.name||d,r=r=>u.createElement(p,{...t,name:n,updateProps:r},u.createElement(e,{...r}));return r.displayName=`profiler(${n})`,c(r,e),r}},5374:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(13521),o=n(8679),a=n(67294),s=o&&o.__esModule?o.default:o,l=function(e){if(e&&e.__esModule)return e;let t=Object.create(null);if(e)for(let n in e)t[n]=e[n];return t.default=e,t}(a);function c(e,t,n,o,a,s=[],l){function c(e){if(0===s.length||!l)return[e,"url"];for(let t of function e(t,n,r,i=[]){return t.some(t=>{let o=t.path?r(n,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return o&&(i.push({route:t,match:o}),t.routes&&e(t.routes,n,r,i)),!!o}),i}(s,e,l))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=o&&o.location?o.location.pathname:r.WINDOW&&r.WINDOW.location?r.WINDOW.location.pathname:void 0;if(t){let[n,o]=c(t);r.startBrowserTracingPageLoadSpan(e,{name:n,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${a}`,[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o}})}}n&&o.listen&&o.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,o]=c(t.pathname);r.startBrowserTracingNavigationSpan(e,{name:n,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${a}`,[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o}})}})}t.reactRouterV4BrowserTracingIntegration=function(e){let t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:s=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),c(e,a,s,n,"reactrouter_v4",i,o)}}},t.reactRouterV5BrowserTracingIntegration=function(e){let t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:i,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:s=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),c(e,a,s,n,"reactrouter_v5",i,o)}}},t.withSentryRouting=function(e){let t=e.displayName||e.name,n=t=>{if(t&&t.computedMatch&&t.computedMatch.isExact){let e=t.computedMatch.path,n=function(){let e=i.getActiveSpan(),t=e&&i.getRootSpan(e);if(!t)return;let n=i.spanToJSON(t).op;return"navigation"===n||"pageload"===n?t:void 0}();i.getCurrentScope().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return l.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,s(n,e),n}},55586:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(13521);function o(e,t,n,r){let i=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(i);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path&&r.path.startsWith("/")){n=e;break}}return t.slice(n).filter(({path:e})=>!!e).map(({path:e})=>e).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(i):r(i=o,"route")})}t.reactRouterV3BrowserTracingIntegration=function(e){let t=r.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:a,match:s,instrumentPageLoad:l=!0,instrumentNavigation:c=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),l&&r.WINDOW&&r.WINDOW.location&&o(a,r.WINDOW.location,s,(t,n="url")=>{r.startBrowserTracingPageLoadSpan(e,{name:t,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}),c&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&o(a,t,s,(t,n="url")=>{r.startBrowserTracingNavigationSpan(e,{name:t,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})})})}}}},97593:function(e,t,n){let r,i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0});let l=n(39011),c=n(13521),u=n(94628),d=n(8679),p=n(67294),f=n(81566),h=d&&d.__esModule?d.default:d,m=function(e){if(e&&e.__esModule)return e;let t=Object.create(null);if(e)for(let n in e)t[n]=e[n];return t.default=e,t}(p),g=!1,y=new WeakSet;function _(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}function v(e,t,n,r=""){if(!e||0===e.length)return[g?_(t.pathname,r):t.pathname,"url"];let i="";if(n)for(let e of n){let n=e.route;if(n){if(n.index)return[g?_(e.pathname,r):e.pathname,"route"];let o=n.path;if(o){let n="/"===o[0]||"/"===i[i.length-1]?o:`/${o}`;if(i+=n,r+e.pathname===t.pathname){if(u.getNumberOfUrlSegments(i)!==u.getNumberOfUrlSegments(e.pathname)&&"/*"!==i.slice(-2))return[(g?"":r)+n,"route"];return[(g?"":r)+i,"route"]}}}}return[g?_(t.pathname,r):t.pathname,"url"]}function b(e,t,n,r,i){let o=Array.isArray(r)?r:s(n,t,i);if(o){let[r,a]=v(n,t,o,i);c.getCurrentScope().setTransactionName(r),e&&(e.updateName(r),e.setAttribute(c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,a))}}function S(e,t,n,r,i){let o=Array.isArray(r)?r:s(t,e,i),a=c.getClient();if(a&&y.has(a)&&("PUSH"===n||"POP"===n)&&o){let[n,r]=v(t,e,o,i);l.startBrowserTracingNavigationSpan(a,{name:n,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v6"}})}}function E(){let e=c.getActiveSpan(),t=e?c.getRootSpan(e):void 0;if(!t)return;let n=c.spanToJSON(t).op;return"navigation"===n||"pageload"===n?t:void 0}t.reactRouterV6BrowserTracingIntegration=function(e){let t=l.browserTracingIntegration({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:u,useNavigationType:d,createRoutesFromChildren:p,matchRoutes:f,stripBasename:h,instrumentPageLoad:m=!0,instrumentNavigation:_=!0}=e;return{...t,setup(){r=n,i=u,o=d,s=f,a=p,g=h||!1},afterAllSetup(e){t.afterAllSetup(e);let n=l.WINDOW&&l.WINDOW.location&&l.WINDOW.location.pathname;m&&n&&l.startBrowserTracingPageLoadSpan(e,{name:n,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v6"}}),_&&y.add(e)}}},t.withSentryReactRouterV6Routing=function(e){if(!r||!i||!o||!a||!s)return f.DEBUG_BUILD&&u.logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
      useEffect: ${r}. useLocation: ${i}. useNavigationType: ${o}.
      createRoutesFromChildren: ${a}. matchRoutes: ${s}.`),e;let t=!0,n=n=>{let s=i(),l=o();return r(()=>{let e=a(n.children);t?(b(E(),s,e),t=!1):S(s,e,l)},[s,l]),m.createElement(e,{...n})};return h(n,e),n},t.wrapCreateBrowserRouter=function(e){return r&&i&&o&&s?function(t,n){let r=e(t,n),i=n&&n.basename,o=E();return"POP"===r.state.historyAction&&o&&b(o,r.state.location,t,void 0,i),r.subscribe(e=>{let n=e.location;("PUSH"===e.historyAction||"POP"===e.historyAction)&&S(n,t,e.historyAction,void 0,i)}),r}:(f.DEBUG_BUILD&&u.logger.warn("reactRouterV6Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters."),e)},t.wrapUseRoutes=function(e){if(!r||!i||!o||!s)return f.DEBUG_BUILD&&u.logger.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!0,n=n=>{let{routes:a,locationArg:s}=n,l=e(a,s),c=i(),u=o(),d="string"==typeof s||s&&s.pathname?s:c;return r(()=>{let e="string"==typeof d?{pathname:d}:d;t?(b(E(),e,a),t=!1):S(e,a,u)},[u,d]),l};return(e,t)=>m.createElement(n,{routes:e,locationArg:t})}},41041:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(13521),i=n(94628),o={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};t.createReduxEnhancer=function(e){let t={...o,...e};return e=>(n,o)=>(t.attachReduxState&&r.getGlobalScope().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch(e){}return e}),e((e,o)=>{let a=n(e,o),s=r.getCurrentScope(),l=t.actionTransformer(o);null!=l&&r.addBreadcrumb({category:"redux.action",data:l,type:"info"});let c=t.stateTransformer(a);if(null!=c){let e=r.getClient(),t=e&&e.getOptions(),n=t&&t.normalizeDepth||3,o={state:{type:"redux",value:c}};i.addNonEnumerableProperty(o,"__sentry_override_normalization_depth__",3+n),s.setContext("state",o)}else s.setContext("state",null);let{configureScopeWithState:u}=t;return"function"==typeof u&&u(s,a),a},o))}},65776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(13521),o=n(67294);t.init=function(e){let t={...e};return i.applySdkMetadata(t,"react"),r.setContext("react",{version:o.version}),r.init(t)}},47665:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39011),i=n(13521);function o(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n}),t}t.tanstackRouterBrowserTracingIntegration=function(e,t={}){let n=r.browserTracingIntegration({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:a=!0,instrumentNavigation:s=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let l=r.WINDOW.location;if(a&&l){let n=e.matchRoutes(l.pathname,l.search,{preload:!1,throwOnError:!1}),a=n[n.length-1];r.startBrowserTracingPageLoadSpan(t,{name:a?a.routeId:l.pathname,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url",...o(a)}})}s&&e.subscribe("onBeforeNavigate",n=>{if(n.toLocation.state===n.fromLocation.state)return;let a=e.matchRoutes(n.toLocation.pathname,n.toLocation.search,{preload:!1,throwOnError:!1}),s=a[a.length-1],l=r.WINDOW.location,c=r.startBrowserTracingNavigationSpan(t,{name:s?s.routeId:l.pathname,attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s?"route":"url"}}),u=e.subscribe("onResolved",t=>{if(u(),c){let n=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=n[n.length-1];r&&(c.updateName(r.routeId),c.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"),c.setAttributes(o(r)))}})})}}}},89638:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112),i=n(12027);function o(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function a(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}t.applyAggregateErrorsToEvent=function(e,t,n=250,s,l,c,u){if(!c.exception||!c.exception.values||!u||!r.isInstanceOf(u.originalException,Error))return;let d=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;d&&(c.exception.values=(function e(t,n,i,s,l,c,u,d){if(c.length>=i+1)return c;let p=[...c];if(r.isInstanceOf(s[l],Error)){o(u,d);let r=t(n,s[l]),c=p.length;a(r,l,c,d),p=e(t,n,i,s[l],l,[r,...p],r,c)}return Array.isArray(s.errors)&&s.errors.forEach((s,c)=>{if(r.isInstanceOf(s,Error)){o(u,d);let r=t(n,s),f=p.length;a(r,`errors[${c}]`,f,d),p=e(t,n,i,s,l,[r,...p],r,f)}}),p})(e,t,l,u.originalException,s,c.exception.values,d,0).map(e=>(e.value&&(e.value=i.truncate(e.value,n)),e)))}},78529:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(80757),i=n(45485),o=n(86810);t.callFrameToStackFrame=function(e,t,n){let a=t?t.replace(/^file:\/\//,""):void 0,s=e.location.columnNumber?e.location.columnNumber+1:void 0,l=e.location.lineNumber?e.location.lineNumber+1:void 0;return i.dropUndefinedKeys({filename:a,module:n(a),function:e.functionName||o.UNKNOWN_FUNCTION,colno:s,lineno:l,in_app:a?r.filenameIsInApp(a):void 0})},t.watchdogTimer=function(e,t,n,r){let i=e(),o=!1,a=!0;return setInterval(()=>{let e=i.getTimeMs();!1===o&&e>t+n&&(o=!0,a&&r()),e<t+n&&(o=!1)},20),{poll:()=>{i.reset()},enabled:e=>{a=e}}}},50409:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=function(e){let t=[],n=e=>{e.forEach(e=>{Array.isArray(e)?n(e):t.push(e)})};return n(e),t}},39117:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(43944),i=n(89112),o=n(41815),a="sentry-",s=/^sentry-/;function l(e){return e&&(i.isString(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(c(t)).forEach(([t,n])=>{e[t]=n}),e),{}):c(e):void 0}function c(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}t.BAGGAGE_HEADER_NAME="baggage",t.MAX_BAGGAGE_STRING_LENGTH=8192,t.SENTRY_BAGGAGE_KEY_PREFIX=a,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=s,t.baggageHeaderToDynamicSamplingContext=function(e){let t=l(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(s)&&(e[t.slice(a.length)]=n),e),{});return Object.keys(n).length>0?n:void 0},t.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>8192?(r.DEBUG_BUILD&&o.logger.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${a}${t}`]=n),e),{}))},t.parseBaggageHeader=l},6899:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getBreadcrumbLogLevelFromHttpStatusCode=function(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}},94174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112),i=n(95617).GLOBAL_OBJ;t.getComponentName=function(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null},t.getDomElement=function(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null},t.getLocationHref=function(){try{return i.document.location.href}catch(e){return""}},t.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n,o=e,a=[],s=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&s++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o&&o.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&r.isString(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,c),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=u)));)a.push(n),l+=n.length,o=o.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}},74391:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98171);async function i(e,t){return r._nullishCoalesce(e,t)}t._asyncNullishCoalesce=i},16096:function(e,t){async function n(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=await o(n)):("call"===i||"optionalCall"===i)&&(n=await o((...e)=>n.call(t,...e)),t=void 0)}return n}Object.defineProperty(t,"__esModule",{value:!0}),t._asyncOptionalChain=n},36389:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(16096);async function i(e){let t=await r._asyncOptionalChain(e);return null==t||t}t._asyncOptionalChainDelete=i},98171:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._nullishCoalesce=function(e,t){return null!=e?e:t()}},88417:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._optionalChain=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}},10107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(88417);t._optionalChainDelete=function(e){let t=r._optionalChain(e);return null==t||t}},39615:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.makeFifoCache=function(e){let t=[],n={};return{add(r,i){for(;t.length>=e;){let e=t.shift();void 0!==e&&delete n[e]}n[r]&&this.delete(r),t.push(r),n[r]=i},clear(){n={},t=[]},get:e=>n[e],size:()=>t.length,delete(e){if(!n[e])return!1;delete n[e];for(let n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}return!0}}}},34091:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(42781),i=n(19e3);t.createClientReportEnvelope=function(e,t,n){let o=[{type:"client_report"},{timestamp:n||i.dateTimestampInSeconds(),discarded_events:e}];return r.createEnvelope(t?{dsn:t}:{},[o])}},5307:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCookie=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let i=e.indexOf(";",n);if(-1===i)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}let o=e.slice(n,r).trim();if(void 0===t[o]){let n=e.slice(r+1,i).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[o]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(e){t[o]=n}}n=i+1}return t}},43944:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEBUG_BUILD=!1},84152:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(43944),i=n(41815),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function a(e){let t=o.exec(e);if(!t){i.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,a="",l="",c="",u=""]=t.slice(1),d="",p=u,f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return s({host:l,pass:a,path:d,projectId:p,port:c,protocol:n,publicKey:r})}function s(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}t.dsnFromString=a,t.dsnToString=function(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`},t.makeDsn=function(e){let t="string"==typeof e?a(e):s(e);if(t&&function(e){if(!r.DEBUG_BUILD)return!0;let{port:t,projectId:n,protocol:o}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===o||"https"===o?!(t&&isNaN(parseInt(t,10)))||(i.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.logger.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.logger.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}},52855:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKSource=function(){return"npm"},t.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},42781:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(84152),i=n(42526),o=n(45485),a=n(95617);function s(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function l(e){return a.GLOBAL_OBJ.__SENTRY__&&a.GLOBAL_OBJ.__SENTRY__.encodePolyfill?a.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let c={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};t.addItemToEnvelope=function(e,t){let[n,r]=e;return[n,[...r,t]]},t.createAttachmentEnvelopeItem=function(e){let t="string"==typeof e.data?l(e.data):e.data;return[o.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},t.createEnvelope=function(e,t=[]){return[e,t]},t.createEventEnvelopeHeaders=function(e,t,n,i){let a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&i&&{dsn:r.dsnToString(i)},...a&&{trace:o.dropUndefinedKeys({...a})}}},t.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},t.envelopeContainsItemType=function(e,t){return s(e,(e,n)=>t.includes(n))},t.envelopeItemTypeToDataCategory=function(e){return c[e]},t.forEachEnvelopeItem=s,t.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}},t.parseEnvelope=function(e){let t="string"==typeof e?l(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r=t.indexOf(10);return r<0&&(r=t.length),JSON.parse((e=n(r),a.GLOBAL_OBJ.__SENTRY__&&a.GLOBAL_OBJ.__SENTRY__.decodePolyfill?a.GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)))}let i=r(),o=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;o.push([e,t?n(t):r()])}return[i,o]},t.serializeEnvelope=function(e){let[t,n]=e,r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[l(r),e]:r.push("string"==typeof e?l(e):e)}for(let e of n){let[t,n]=e;if(o(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(i.normalize(n))}o(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}},56781:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}t.SentryError=n},72444:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112),i=n(39977),o=n(42526),a=n(45485);function s(e,t){return e(t.stack||"",1)}function l(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=s(e,t);return r.length&&(n.stacktrace={frames:r}),n}t.eventFromMessage=function(e,t,n="info",i,o){let a={event_id:i&&i.event_id,level:n};if(o&&i&&i.syntheticException){let n=s(e,i.syntheticException);n.length&&(a.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(r.isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a},t.eventFromUnknownInput=function(e,t,n,s){let c=s&&s.data&&s.data.mechanism||{handled:!0,type:"generic"},[u,d]=function(e,t,n,i){if(r.isError(n))return[n,void 0];if(t.synthetic=!0,r.isPlainObject(n)){let t=e&&e.getOptions().normalizeDepth,s={__serialized__:o.normalizeToSize(n,t)},l=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(n);if(l)return[l,s];let c=function(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;let t=a.extractExceptionKeysForMessage(e);if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let n=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}(n),u=i&&i.syntheticException||Error(c);return u.message=c,[u,s]}let s=i&&i.syntheticException||Error(n);return s.message=`${n}`,[s,void 0]}(e,c,n,s),p={exception:{values:[l(t,u)]}};return d&&(p.extra=d),i.addExceptionTypeValue(p,void 0,void 0),i.addExceptionMechanism(p,c),{...p,event_id:s&&s.event_id}},t.exceptionFromError=l,t.parseStackFrames=s},94628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89638),i=n(50409),o=n(6899),a=n(94174),s=n(84152),l=n(56781),c=n(95617),u=n(80129),d=n(31862),p=n(94906),f=n(33841),h=n(1017),m=n(89112),g=n(15915),y=n(41815),_=n(93515),v=n(39977),b=n(48641),S=n(42526),E=n(45485),T=n(49723),w=n(38627),I=n(77908),k=n(28526),O=n(86810),A=n(80757),C=n(12027),N=n(63814),D=n(2281),x=n(19e3),R=n(2058),M=n(52855),P=n(42781),L=n(34091),B=n(19710),U=n(39117),F=n(81640),j=n(39615),$=n(72444),W=n(78529),G=n(28929),H=n(74391),q=n(16096),z=n(36389),V=n(98171),K=n(88417),Y=n(10107),J=n(56619),Q=n(61789),X=n(10624),Z=n(55423),ee=n(91576);t.applyAggregateErrorsToEvent=r.applyAggregateErrorsToEvent,t.flatten=i.flatten,t.getBreadcrumbLogLevelFromHttpStatusCode=o.getBreadcrumbLogLevelFromHttpStatusCode,t.getComponentName=a.getComponentName,t.getDomElement=a.getDomElement,t.getLocationHref=a.getLocationHref,t.htmlTreeAsString=a.htmlTreeAsString,t.dsnFromString=s.dsnFromString,t.dsnToString=s.dsnToString,t.makeDsn=s.makeDsn,t.SentryError=l.SentryError,t.GLOBAL_OBJ=c.GLOBAL_OBJ,t.getGlobalSingleton=c.getGlobalSingleton,t.addConsoleInstrumentationHandler=u.addConsoleInstrumentationHandler,t.addFetchEndInstrumentationHandler=d.addFetchEndInstrumentationHandler,t.addFetchInstrumentationHandler=d.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=p.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=f.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=h.addHandler,t.maybeInstrument=h.maybeInstrument,t.resetInstrumentationHandlers=h.resetInstrumentationHandlers,t.triggerHandlers=h.triggerHandlers,t.isDOMError=m.isDOMError,t.isDOMException=m.isDOMException,t.isElement=m.isElement,t.isError=m.isError,t.isErrorEvent=m.isErrorEvent,t.isEvent=m.isEvent,t.isInstanceOf=m.isInstanceOf,t.isParameterizedString=m.isParameterizedString,t.isPlainObject=m.isPlainObject,t.isPrimitive=m.isPrimitive,t.isRegExp=m.isRegExp,t.isString=m.isString,t.isSyntheticEvent=m.isSyntheticEvent,t.isThenable=m.isThenable,t.isVueViewModel=m.isVueViewModel,t.isBrowser=g.isBrowser,t.CONSOLE_LEVELS=y.CONSOLE_LEVELS,t.consoleSandbox=y.consoleSandbox,t.logger=y.logger,t.originalConsoleMethods=y.originalConsoleMethods,t.memoBuilder=_.memoBuilder,t.addContextToFrame=v.addContextToFrame,t.addExceptionMechanism=v.addExceptionMechanism,t.addExceptionTypeValue=v.addExceptionTypeValue,t.arrayify=v.arrayify,t.checkOrSetAlreadyCaught=v.checkOrSetAlreadyCaught,t.getEventDescription=v.getEventDescription,t.parseSemver=v.parseSemver,t.uuid4=v.uuid4,t.dynamicRequire=b.dynamicRequire,t.isNodeEnv=b.isNodeEnv,t.loadModule=b.loadModule,t.normalize=S.normalize,t.normalizeToSize=S.normalizeToSize,t.normalizeUrlToBase=S.normalizeUrlToBase,t.addNonEnumerableProperty=E.addNonEnumerableProperty,t.convertToPlainObject=E.convertToPlainObject,t.dropUndefinedKeys=E.dropUndefinedKeys,t.extractExceptionKeysForMessage=E.extractExceptionKeysForMessage,t.fill=E.fill,t.getOriginalFunction=E.getOriginalFunction,t.markFunctionWrapped=E.markFunctionWrapped,t.objectify=E.objectify,t.urlEncode=E.urlEncode,t.basename=T.basename,t.dirname=T.dirname,t.isAbsolute=T.isAbsolute,t.join=T.join,t.normalizePath=T.normalizePath,t.relative=T.relative,t.resolve=T.resolve,t.makePromiseBuffer=w.makePromiseBuffer,t.DEFAULT_USER_INCLUDES=I.DEFAULT_USER_INCLUDES,t.addRequestDataToEvent=I.addRequestDataToEvent,t.extractPathForTransaction=I.extractPathForTransaction,t.extractRequestData=I.extractRequestData,t.winterCGHeadersToDict=I.winterCGHeadersToDict,t.winterCGRequestToRequestData=I.winterCGRequestToRequestData,t.severityLevelFromString=k.severityLevelFromString,t.validSeverityLevels=k.validSeverityLevels,t.UNKNOWN_FUNCTION=O.UNKNOWN_FUNCTION,t.createStackParser=O.createStackParser,t.getFramesFromEvent=O.getFramesFromEvent,t.getFunctionName=O.getFunctionName,t.stackParserFromStackParserOptions=O.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=O.stripSentryFramesAndReverse,t.filenameIsInApp=A.filenameIsInApp,t.node=A.node,t.nodeStackLineParser=A.nodeStackLineParser,t.isMatchingPattern=C.isMatchingPattern,t.safeJoin=C.safeJoin,t.snipLine=C.snipLine,t.stringMatchesSomePattern=C.stringMatchesSomePattern,t.truncate=C.truncate,t.isNativeFunction=N.isNativeFunction,t.supportsDOMError=N.supportsDOMError,t.supportsDOMException=N.supportsDOMException,t.supportsErrorEvent=N.supportsErrorEvent,t.supportsFetch=N.supportsFetch,t.supportsNativeFetch=N.supportsNativeFetch,t.supportsReferrerPolicy=N.supportsReferrerPolicy,t.supportsReportingObserver=N.supportsReportingObserver,t.SyncPromise=D.SyncPromise,t.rejectedSyncPromise=D.rejectedSyncPromise,t.resolvedSyncPromise=D.resolvedSyncPromise,Object.defineProperty(t,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>x._browserPerformanceTimeOriginMode}),t.browserPerformanceTimeOrigin=x.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=x.dateTimestampInSeconds,t.timestampInSeconds=x.timestampInSeconds,t.TRACEPARENT_REGEXP=R.TRACEPARENT_REGEXP,t.extractTraceparentData=R.extractTraceparentData,t.generateSentryTraceHeader=R.generateSentryTraceHeader,t.propagationContextFromHeaders=R.propagationContextFromHeaders,t.getSDKSource=M.getSDKSource,t.isBrowserBundle=M.isBrowserBundle,t.addItemToEnvelope=P.addItemToEnvelope,t.createAttachmentEnvelopeItem=P.createAttachmentEnvelopeItem,t.createEnvelope=P.createEnvelope,t.createEventEnvelopeHeaders=P.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=P.createSpanEnvelopeItem,t.envelopeContainsItemType=P.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=P.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=P.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=P.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=P.parseEnvelope,t.serializeEnvelope=P.serializeEnvelope,t.createClientReportEnvelope=L.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=B.DEFAULT_RETRY_AFTER,t.disabledUntil=B.disabledUntil,t.isRateLimited=B.isRateLimited,t.parseRetryAfterHeader=B.parseRetryAfterHeader,t.updateRateLimits=B.updateRateLimits,t.BAGGAGE_HEADER_NAME=U.BAGGAGE_HEADER_NAME,t.MAX_BAGGAGE_STRING_LENGTH=U.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=U.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=U.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=U.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=U.dynamicSamplingContextToSentryBaggageHeader,t.parseBaggageHeader=U.parseBaggageHeader,t.getNumberOfUrlSegments=F.getNumberOfUrlSegments,t.getSanitizedUrlString=F.getSanitizedUrlString,t.parseUrl=F.parseUrl,t.stripUrlQueryAndFragment=F.stripUrlQueryAndFragment,t.makeFifoCache=j.makeFifoCache,t.eventFromMessage=$.eventFromMessage,t.eventFromUnknownInput=$.eventFromUnknownInput,t.exceptionFromError=$.exceptionFromError,t.parseStackFrames=$.parseStackFrames,t.callFrameToStackFrame=W.callFrameToStackFrame,t.watchdogTimer=W.watchdogTimer,t.LRUMap=G.LRUMap,t._asyncNullishCoalesce=H._asyncNullishCoalesce,t._asyncOptionalChain=q._asyncOptionalChain,t._asyncOptionalChainDelete=z._asyncOptionalChainDelete,t._nullishCoalesce=V._nullishCoalesce,t._optionalChain=K._optionalChain,t._optionalChainDelete=Y._optionalChainDelete,t.generatePropagationContext=J.generatePropagationContext,t.vercelWaitUntil=Q.vercelWaitUntil,t.SDK_VERSION=X.SDK_VERSION,t.escapeStringForRegex=Z.escapeStringForRegex,t.supportsHistory=ee.supportsHistory},80129:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(41815),i=n(45485),o=n(95617),a=n(1017);function s(){"console"in o.GLOBAL_OBJ&&r.CONSOLE_LEVELS.forEach(function(e){e in o.GLOBAL_OBJ.console&&i.fill(o.GLOBAL_OBJ.console,e,function(t){return r.originalConsoleMethods[e]=t,function(...t){a.triggerHandlers("console",{args:t,level:e});let n=r.originalConsoleMethods[e];n&&n.apply(o.GLOBAL_OBJ.console,t)}})})}t.addConsoleInstrumentationHandler=function(e){let t="console";a.addHandler(t,e),a.maybeInstrument(t,s)}},31862:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112),i=n(45485),o=n(63814),a=n(19e3),s=n(95617),l=n(1017);function c(e,t=!1){(!t||o.supportsNativeFetch())&&i.fill(s.GLOBAL_OBJ,"fetch",function(t){return function(...n){let{method:o,url:c}=h(n),u={args:n,fetchData:{method:o,url:c},startTimestamp:1e3*a.timestampInSeconds()};e||l.triggerHandlers("fetch",{...u});let d=Error().stack;return t.apply(s.GLOBAL_OBJ,n).then(async t=>(e?e(t):l.triggerHandlers("fetch",{...u,endTimestamp:1e3*a.timestampInSeconds(),response:t}),t),e=>{throw l.triggerHandlers("fetch",{...u,endTimestamp:1e3*a.timestampInSeconds(),error:e}),r.isError(e)&&void 0===e.stack&&(e.stack=d,i.addNonEnumerableProperty(e,"framesToPop",1)),e})}})}async function u(e,t){if(e&&e.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function d(e){let t;try{t=e.clone()}catch(e){return}u(t,()=>{l.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*a.timestampInSeconds(),response:e})})}function p(e,t){return!!e&&"object"==typeof e&&!!e[t]}function f(e){return"string"==typeof e?e:e?p(e,"url")?e.url:e.toString?e.toString():"":""}function h(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:f(t),method:p(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:f(t),method:p(t,"method")?String(t.method).toUpperCase():"GET"}}t.addFetchEndInstrumentationHandler=function(e){let t="fetch-body-resolved";l.addHandler(t,e),l.maybeInstrument(t,()=>c(d))},t.addFetchInstrumentationHandler=function(e,t){let n="fetch";l.addHandler(n,e),l.maybeInstrument(n,()=>c(void 0,t))},t.parseFetchArgs=h},94906:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(95617),i=n(1017),o=null;function a(){o=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,a){return i.triggerHandlers("error",{column:r,error:a,line:n,msg:e,url:t}),!!o&&!o.__SENTRY_LOADER__&&o.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}t.addGlobalErrorInstrumentationHandler=function(e){let t="error";i.addHandler(t,e),i.maybeInstrument(t,a)}},33841:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(95617),i=n(1017),o=null;function a(){o=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){return i.triggerHandlers("unhandledrejection",e),!o||!!o.__SENTRY_LOADER__||o.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}t.addGlobalUnhandledRejectionInstrumentationHandler=function(e){let t="unhandledrejection";i.addHandler(t,e),i.maybeInstrument(t,a)}},1017:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(43944),i=n(41815),o=n(86810),a={},s={};t.addHandler=function(e,t){a[e]=a[e]||[],a[e].push(t)},t.maybeInstrument=function(e,t){s[e]||(t(),s[e]=!0)},t.resetInstrumentationHandlers=function(){Object.keys(a).forEach(e=>{a[e]=void 0})},t.triggerHandlers=function(e,t){let n=e&&a[e];if(n)for(let a of n)try{a(t)}catch(t){r.DEBUG_BUILD&&i.logger.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${o.getFunctionName(a)}
Error:`,t)}}},89112:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=Object.prototype.toString;function r(e,t){return n.call(e)===`[object ${t}]`}function i(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function o(e){return r(e,"Object")}function a(e,t){try{return e instanceof t}catch(e){return!1}}t.isDOMError=function(e){return r(e,"DOMError")},t.isDOMException=function(e){return r(e,"DOMException")},t.isElement=function(e){return"undefined"!=typeof Element&&a(e,Element)},t.isError=function(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return a(e,Error)}},t.isErrorEvent=function(e){return r(e,"ErrorEvent")},t.isEvent=function(e){return"undefined"!=typeof Event&&a(e,Event)},t.isInstanceOf=a,t.isParameterizedString=i,t.isPlainObject=o,t.isPrimitive=function(e){return null===e||i(e)||"object"!=typeof e&&"function"!=typeof e},t.isRegExp=function(e){return r(e,"RegExp")},t.isString=function(e){return r(e,"String")},t.isSyntheticEvent=function(e){return o(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},t.isThenable=function(e){return!!(e&&e.then&&"function"==typeof e.then)},t.isVueViewModel=function(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},15915:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(48641),i=n(95617);t.isBrowser=function(){return"undefined"!=typeof window&&(!r.isNodeEnv()||void 0!==i.GLOBAL_OBJ.process&&"renderer"===i.GLOBAL_OBJ.process.type)}},41815:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(43944),i=n(95617),o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.GLOBAL_OBJ))return e();let t=i.GLOBAL_OBJ.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=i.getGlobalSingleton("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.DEBUG_BUILD?o.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t});t.CONSOLE_LEVELS=o,t.consoleSandbox=s,t.logger=l,t.originalConsoleMethods=a},28929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}t.LRUMap=n},93515:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.memoBuilder=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}},39977:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(45485),i=n(12027),o=n(95617);function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}let s=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function l(e){return parseInt(e||"",10)}t.addContextToFrame=function(e,t,n=5){if(void 0===t.lineno)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>i.snipLine(e,0));let a=Math.min(r-1,o);t.context_line=i.snipLine(e[a],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>i.snipLine(e,0))},t.addExceptionMechanism=function(e,t){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}},t.addExceptionTypeValue=function(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")},t.arrayify=function(e){return Array.isArray(e)?e:[e]},t.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{r.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},t.getEventDescription=function(e){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},t.parseSemver=function(e){let t=e.match(s)||[],n=l(t[1]),r=l(t[2]),i=l(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}},t.uuid4=function(){let e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}},80757:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(86810);function i(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function o(e){let t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return o=>{let s=o.match(n);if(s){let t,n,o,l,c;if(s[1]){let e=(o=s[1]).lastIndexOf(".");if("."===o[e-1]&&e--,e>0){t=o.slice(0,e),n=o.slice(e+1);let r=t.indexOf(".Module");r>0&&(o=o.slice(r+1),t=t.slice(0,r))}l=void 0}n&&(l=t,c=n),"<anonymous>"===n&&(c=void 0,o=void 0),void 0===o&&(c=c||r.UNKNOWN_FUNCTION,o=l?`${l}.${c}`:c);let u=s[2]&&s[2].startsWith("file://")?s[2].slice(7):s[2],d="native"===s[5];return u&&u.match(/\/[A-Z]:/)&&(u=u.slice(1)),u||!s[5]||d||(u=s[5]),{filename:u,module:e?e(u):void 0,function:o,lineno:a(s[3]),colno:a(s[4]),in_app:i(u||"",d)}}if(o.match(t))return{filename:o}}}function a(e){return parseInt(e||"",10)||void 0}t.filenameIsInApp=i,t.node=o,t.nodeStackLineParser=function(e){return[90,o(e)]}},48641:function(e,t,n){e=n.nmd(e);var r=n(34155);Object.defineProperty(t,"__esModule",{value:!0});let i=n(52855);function o(e,t){return e.require(t)}t.dynamicRequire=o,t.isNodeEnv=function(){return!i.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)},t.loadModule=function(t){let n;try{n=o(e,t)}catch(e){}try{let{cwd:r}=o(e,"process");n=o(e,`${r()}/node_modules/${t}`)}catch(e){}return n}},42526:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112),i=n(93515),o=n(45485),a=n(86810);function s(e,t=100,s=Infinity){try{return function e(t,s,l=Infinity,c=Infinity,u=i.memoBuilder()){let[d,p]=u;if(null==s||["boolean","string"].includes(typeof s)||"number"==typeof s&&Number.isFinite(s))return s;let f=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(r.isVueViewModel(t))return"[VueViewModel]";if(r.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${a.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let i=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(i))return`[HTMLElement: ${i}]`;return`[object ${i}]`}catch(e){return`**non-serializable** (${e})`}}(t,s);if(!f.startsWith("[object "))return f;if(s.__sentry_skip_normalization__)return s;let h="number"==typeof s.__sentry_override_normalization_depth__?s.__sentry_override_normalization_depth__:l;if(0===h)return f.replace("object ","");if(d(s))return"[Circular ~]";if(s&&"function"==typeof s.toJSON)try{let t=s.toJSON();return e("",t,h-1,c,u)}catch(e){}let m=Array.isArray(s)?[]:{},g=0,y=o.convertToPlainObject(s);for(let t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(g>=c){m[t]="[MaxProperties ~]";break}let n=y[t];m[t]=e(t,n,h-1,c,u),g++}return p(s),m}("",e,t,s)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}t.normalize=s,t.normalizeToSize=function e(t,n=3,r=102400){let i=s(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i},t.normalizeUrlToBase=function(e,t){let n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),r=e;try{r=decodeURI(e)}catch(e){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}},45485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(94174),i=n(43944),o=n(89112),a=n(41815),s=n(12027);function l(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.DEBUG_BUILD&&a.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}catch(e){}}function u(e){if(o.isError(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(!o.isEvent(e))return e;{let t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&o.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}}function d(e){try{return o.isElement(e)?r.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}t.addNonEnumerableProperty=l,t.convertToPlainObject=u,t.dropUndefinedKeys=function(e){return function e(t,n){if(function(e){if(!o.isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)},t.extractExceptionKeysForMessage=function(e,t=40){let n=Object.keys(u(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return s.truncate(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return s.truncate(r,t)}}return""},t.fill=function(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&c(i,r),e[t]=i},t.getOriginalFunction=function(e){return e.__sentry_original__},t.markFunctionWrapped=c,t.objectify=function(e){let t;switch(!0){case null==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case o.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},t.urlEncode=function(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}},49723:function(e,t){function n(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(t,"__esModule",{value:!0});let r=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=r.exec(t);return n?n.slice(1):[]}function o(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=n(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function a(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function s(e){let t=l(e),r="/"===e.slice(-1),i=n(e.split("/").filter(e=>!!e),!t).join("/");return i||t||(i="."),i&&r&&(i+="/"),(t?"/":"")+i}function l(e){return"/"===e.charAt(0)}t.basename=function(e,t){let n=i(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},t.dirname=function(e){let t=i(e),n=t[0]||"",r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},t.isAbsolute=l,t.join=function(...e){return s(e.join("/"))},t.normalizePath=s,t.relative=function(e,t){e=o(e).slice(1),t=o(t).slice(1);let n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),s=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){s=e;break}let l=[];for(let e=s;e<n.length;e++)l.push("..");return(l=l.concat(r.slice(s))).join("/")},t.resolve=o},38627:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(56781),i=n(2281);t.makePromiseBuffer=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return i.rejectedSyncPromise(new r.SentryError("Not adding Promise because buffer limit was reached."));let a=o();return -1===t.indexOf(a)&&t.push(a),a.then(()=>n(a)).then(null,()=>n(a).then(null,()=>{})),a},drain:function(e){return new i.SyncPromise((n,r)=>{let o=t.length;if(!o)return n(!0);let a=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{i.resolvedSyncPromise(e).then(()=>{--o||(clearTimeout(a),n(!0))},r)})})}}}},56619:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39977);t.generatePropagationContext=function(){return{traceId:r.uuid4(),spanId:r.uuid4().substring(16)}}},19710:function(e,t){function n(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function r(e,t){return e[t]||e.all||0}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_RETRY_AFTER=6e4,t.disabledUntil=r,t.isRateLimited=function(e,t,n=Date.now()){return r(e,t)>n},t.parseRetryAfterHeader=n,t.updateRateLimits=function(e,{statusCode:t,headers:r},i=Date.now()){let o={...e},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,r]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!r||r.split(";").includes("custom"))&&(o[e]=i+s):o[e]=i+s;else o.all=i+s}else s?o.all=i+n(s,i):429===t&&(o.all=i+6e4);return o}},77908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(5307),i=n(43944),o=n(89112),a=n(41815),s=n(42526),l=n(81640),c=n(76542),u={ip:!1,request:!0,transaction:!0,user:!0},d=["cookies","data","headers","method","query_string","url"],p=["id","username","email"];function f(e,t={}){let n=e.method&&e.method.toUpperCase(),r="",i="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,i="route"):(e.originalUrl||e.url)&&(r=l.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let o="";return t.method&&n&&(o+=n),t.method&&t.path&&(o+=" "),t.path&&r&&(o+=r),[o,i]}function h(e,t={}){let{include:n=d}=t,i={},a=e.headers||{},l=e.method,u=a.host||e.hostname||e.host||"<no host>",p="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",f=e.originalUrl||e.url||"",h=f.startsWith(p)?f:`${p}://${u}${f}`;return n.forEach(t=>{switch(t){case"headers":i.headers=a,n.includes("cookies")||delete i.headers.cookie,n.includes("ip")||c.ipHeaderNames.forEach(e=>{delete i.headers[e]});break;case"method":i.method=l;break;case"url":i.url=h;break;case"cookies":i.cookies=e.cookies||a.cookie&&r.parseCookie(a.cookie)||{};break;case"query_string":i.query_string=function(e){let t=e.originalUrl||e.url||"";if(t){t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{let n=e.query||new URL(t).search.slice(1);return n.length?n:void 0}catch(e){return}}}(e);break;case"data":if("GET"===l||"HEAD"===l)break;void 0!==e.body&&(i.data=o.isString(e.body)?e.body:JSON.stringify(s.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(i[t]=e[t])}}),i}function m(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch(e){i.DEBUG_BUILD&&a.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}t.DEFAULT_USER_INCLUDES=p,t.addRequestDataToEvent=function(e,t,n){let r={...u,...n&&n.include};if(r.request){let n=Array.isArray(r.request)?[...r.request]:[...d];r.ip&&n.push("ip");let i=h(t,{include:n});e.request={...e.request,...i}}if(r.user){let n=t.user&&o.isPlainObject(t.user)?function(e,t){let n={};return(Array.isArray(t)?t:p).forEach(t=>{e&&t in e&&(n[t]=e[t])}),n}(t.user,r.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(r.ip){let n=t.headers&&c.getClientIPAddress(t.headers)||t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return r.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return f(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";default:{let t=e._reconstructedRoute?e._reconstructedRoute:void 0;return f(e,{path:!0,method:!0,customRoute:t})[0]}}}(t,r.transaction)),e},t.extractPathForTransaction=f,t.extractRequestData=h,t.winterCGHeadersToDict=m,t.winterCGRequestToRequestData=function(e){let t=m(e.headers);return{method:e.method,url:e.url,headers:t}}},28526:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=["fatal","error","warning","log","info","debug"];t.severityLevelFromString=function(e){return"warn"===e?"warning":n.includes(e)?e:"log"},t.validSeverityLevels=n},86810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=/\(error: (.*)\)/,r=/captureMessage|captureException/;function i(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,i=0)=>{let a=[],s=e.split("\n");for(let e=r;e<s.length;e++){let r=s[e];if(r.length>1024)continue;let o=n.test(r)?r.replace(n,"$1"):r;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){a.push(t);break}}if(a.length>=50+i)break}}return o(a.slice(i))}}function o(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(a(t).function||"")&&t.pop(),t.reverse(),r.test(a(t).function||"")&&(t.pop(),r.test(a(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||a(t).filename,function:e.function||"?"}))}function a(e){return e[e.length-1]||{}}let s="<anonymous>";t.UNKNOWN_FUNCTION="?",t.createStackParser=i,t.getFramesFromEvent=function(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}},t.getFunctionName=function(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch(e){return s}},t.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?i(...e):e},t.stripSentryFramesAndReverse=o},12027:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(89112);function i(e,t,n=!1){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):!!r.isString(t)&&(n?e===t:e.includes(t)))}t.isMatchingPattern=i,t.safeJoin=function(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{r.isVueViewModel(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},t.snipLine=function(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n},t.stringMatchesSomePattern=function(e,t=[],n=!1){return t.some(t=>i(e,t,n))},t.truncate=function(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}},63814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(43944),i=n(41815),o=n(95617).GLOBAL_OBJ;function a(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}t.isNativeFunction=s,t.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},t.supportsFetch=a,t.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!a())return!1;if(s(o.fetch))return!0;let e=!1,t=o.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=s(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.DEBUG_BUILD&&i.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},t.supportsReferrerPolicy=function(){if(!a())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},t.supportsReportingObserver=function(){return"ReportingObserver"in o}},2281:function(e,t,n){var r,i;Object.defineProperty(t,"__esModule",{value:!0});let o=n(89112);(i=r||(r={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class a{constructor(e){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===r.PENDING){if(o.isThenable(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)})}}}t.SyncPromise=a,t.rejectedSyncPromise=function(e){return new a((t,n)=>{n(e)})},t.resolvedSyncPromise=function(e){return new a(t=>{t(e)})}},19e3:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(95617);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();t._browserPerformanceTimeOriginMode=void 0;let a=(()=>{let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now){t._browserPerformanceTimeOriginMode="none";return}let n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):36e5,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-i):36e5;return o<36e5||s<36e5?o<=s?(t._browserPerformanceTimeOriginMode="timeOrigin",e.timeOrigin):(t._browserPerformanceTimeOriginMode="navigationStart",a):(t._browserPerformanceTimeOriginMode="dateNow",i)})();t.browserPerformanceTimeOrigin=a,t.dateTimestampInSeconds=i,t.timestampInSeconds=o},2058:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(39117),i=n(39977),o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}t.TRACEPARENT_REGEXP=o,t.extractTraceparentData=a,t.generateSentryTraceHeader=function(e=i.uuid4(),t=i.uuid4().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`},t.propagationContextFromHeaders=function(e,t){let n=a(e),o=r.baggageHeaderToDynamicSamplingContext(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||i.uuid4(),parentSpanId:l||i.uuid4().substring(16),spanId:i.uuid4().substring(16),sampled:c,dsc:o||{}}:{traceId:s||i.uuid4(),spanId:i.uuid4().substring(16)}}},81640:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getNumberOfUrlSegments=function(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length},t.getSanitizedUrlString=function(e){let{protocol:t,host:n,path:r}=e,i=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${i}${r}`},t.parseUrl=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}},t.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}},55423:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},76542:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];t.getClientIPAddress=function(e){return n.map(t=>{let n=e[t],r=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?function(e){if(!e)return null;for(let t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(r):r&&r.split(",").map(e=>e.trim())}).reduce((e,t)=>t?e.concat(t):e,[]).find(e=>null!==e&&/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e))||null},t.ipHeaderNames=n},91576:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(95617).GLOBAL_OBJ;t.supportsHistory=function(){let e=r.chrome,t=e&&e.app&&e.app.runtime,n="history"in r&&!!r.history.pushState&&!!r.history.replaceState;return!t&&n}},61789:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(95617);t.vercelWaitUntil=function(e){let t=r.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],n=t&&t.get&&t.get()?t.get():{};n&&n.waitUntil&&n.waitUntil(e)}},10624:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_VERSION="8.35.0"},95617:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(10624),i=globalThis;t.GLOBAL_OBJ=i,t.getGlobalSingleton=function(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.SDK_VERSION]=a[r.SDK_VERSION]||{};return s[e]||(s[e]=t())}},50743:function(e,t){!/*!
 * accounting.js v0.4.1
 * Copyright 2014 Open Exchange Rates
 *
 * Freely distributable under the MIT license.
 * Portions of accounting.js are inspired or borrowed from underscore.js
 *
 * Full details and documentation:
 * http://openexchangerates.github.io/accounting.js/
 */function(n,r){var i={};i.version="0.4.1",i.settings={currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}};var o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function l(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function c(e){return a?a(e):"[object Array]"===s.call(e)}function u(e){return e&&"[object Object]"===s.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function p(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function f(e,t){return isNaN(e=Math.round(Math.abs(e)))?t:e}function h(e){var t=i.settings.currency.format;return("function"==typeof e&&(e=e()),l(e)&&e.match("%v"))?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:l(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m=i.unformat=i.parse=function(e,t){if(c(e))return p(e,function(e){return m(e,t)});if("number"==typeof(e=e||0))return e;var n=RegExp("[^0-9-"+(t=t||i.settings.number.decimal)+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){var n=Math.pow(10,t=f(t,i.settings.number.precision));return(Math.round(i.unformat(e)*n)/n).toFixed(t)},y=i.formatNumber=i.format=function(e,t,n,r){if(c(e))return p(e,function(e){return y(e,t,n,r)});e=m(e);var o=d(u(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=f(o.precision),s=e<0?"-":"",l=parseInt(g(Math.abs(e||0),a),10)+"",h=l.length>3?l.length%3:0;return s+(h?l.substr(0,h)+o.thousand:"")+l.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},_=i.formatMoney=function(e,t,n,r,o,a){if(c(e))return p(e,function(e){return _(e,t,n,r,o,a)});e=m(e);var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),l=h(s.format);return(e>0?l.pos:e<0?l.neg:l.zero).replace("%s",s.symbol).replace("%v",y(Math.abs(e),f(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var s=d(u(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=h(s.format),_=g.pos.indexOf("%s")<g.pos.indexOf("%v"),v=0,b=p(e,function(e,t){if(c(e))return i.formatColumn(e,s);var n=((e=m(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",s.symbol).replace("%v",y(Math.abs(e),f(s.precision),s.thousand,s.decimal));return n.length>v&&(v=n.length),n});return p(b,function(e,t){return l(e)&&e.length<v?_?e.replace(s.symbol,s.symbol+Array(v-e.length+1).join(" ")):Array(v-e.length+1).join(" ")+e:e})},e.exports&&(t=e.exports=i),t.accounting=i}(0)},89776:function(e,t,n){"use strict";let{ApolloLink:r,Observable:i}=n(42451),{createSignalIfSupported:o,fallbackHttpConfig:a,parseAndCheckHttpResponse:s,rewriteURIForGET:l,selectHttpOptionsAndBody:c,selectURI:u,serializeFetchParameter:d}=n(38802),p=n(40804),f=n(20463),h=n(38212);e.exports=function({uri:e="/graphql",useGETForQueries:t,isExtractableFile:n=h,FormData:m,formDataAppendFile:g=f,fetch:y,fetchOptions:_,credentials:v,headers:b,includeExtensions:S}={}){let E={http:{includeExtensions:S},options:_,credentials:v,headers:b};return new r(r=>{let f=r.getContext(),{clientAwareness:{name:h,version:_}={},headers:v}=f,{options:b,body:S}=c(r,a,E,{http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:{...h&&{"apollographql-client-name":h},..._&&{"apollographql-client-version":_},...v}}),{clone:T,files:w}=p(S,"",n),I=u(r,e);if(w.size){delete b.headers["content-type"];let e=new(m||FormData);e.append("operations",d(T,"Payload"));let t={},n=0;w.forEach(e=>{t[++n]=e}),e.append("map",JSON.stringify(t)),n=0,w.forEach((t,r)=>{g(e,++n,r)}),b.body=e}else if(t&&!r.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(b.method="GET"),"GET"===b.method){let{newURI:e,parseError:t}=l(I,S);if(t)return new i(e=>{e.error(t)});I=e}else b.body=d(T,"Payload");let{controller:k}=o();k&&(b.signal&&(b.signal.aborted?k.abort():b.signal.addEventListener("abort",()=>{k.abort()},{once:!0})),b.signal=k.signal);let O=y||fetch;return new i(e=>{let t;return O(I,b).then(e=>(r.setContext({response:e}),e)).then(s(r)).then(t=>{e.next(t),e.complete()}).catch(n=>{t||(n.result&&n.result.errors&&n.result.data&&e.next(n.result),e.error(n))}),()=>{t=!0,k&&k.abort()}})})}},20463:function(e){"use strict";e.exports=function(e,t,n){e.append(t,n,n.name)}},38212:function(e,t,n){"use strict";e.exports=n(51268)},54098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function d(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=c(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=u(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=a(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),s(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),s(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var n,r,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),h.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},f.call(m.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];y.redirect=function(e,t){if(-1===_.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(n,r){return new Promise(function(i,o){var a=new m(n,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL"),i(new y("response"in s?s.response:s.responseText,n))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}v.polyfill=!0,r.fetch||(r.fetch=v,r.Headers=l,r.Request=m,r.Response=y),e.Headers=l,e.Request=m,e.Response=y,e.fetch=v,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},33748:function(e,t,n){var r=n(50743),i=n(96086),o=n(38714),a=n(15969),s=n(45617),l={symbol:"",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},c={},u=[{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,format:{pos:"%s%v",neg:"-%s%v",zero:"%s%v"}},{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,format:{pos:"%s\xa0%v",neg:"-%s\xa0%v",zero:"%s\xa0%v"}},{symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,format:{pos:"%v%s",neg:"-%v%s",zero:"%v%s"}},{symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,format:{pos:"%v\xa0%s",neg:"-%v\xa0%s",zero:"%v\xa0%s"}}];function d(e){return void 0===e}e.exports={defaultCurrency:l,get currencies(){return Object.keys(a).map(function(e){return a[e]})},findCurrency:function(e){return a[e]},format:function(e,t){var n=t.code||t.locale&&o.getCurrency(t.locale),p=/^([a-z]+)([_-]([a-z]+))?$/i.exec(t.locale)||[],f=p[1],h=p[3],m=i({},c,s[f]||{},s[f+"-"+h]||{}),g=i({},l,a[n],m),y=g.symbolOnLeft,_=g.spaceBetweenAmountAndSymbol,v=u.filter(function(e){return e.symbolOnLeft==y&&e.spaceBetweenAmountAndSymbol==_})[0].format;return r.formatMoney(e,{symbol:d(t.symbol)?g.symbol:t.symbol,decimal:d(t.decimal)?g.decimalSeparator:t.decimal,thousand:d(t.thousand)?g.thousandsSeparator:t.thousand,precision:"number"==typeof t.precision?t.precision:g.decimalDigits,format:["string","object"].indexOf(typeof t.format)>-1?t.format:v})},unformat:function(e,t){var n=t.code||t.locale&&o.getCurrency(t.locale),u=s[t.locale]||c,p=i({},l,a[n],u),f=d(t.decimal)?p.decimalSeparator:t.decimal;return r.unformat(e,f)}}},72445:function(e){"use strict";e.exports=class{constructor({uri:e,name:t,type:n}){this.uri=e,this.name=t,this.type=n}}},40804:function(e,t,n){"use strict";let r=n(51268);e.exports=function(e,t="",n=r){let i=new Map,o=new Map;return{clone:function e(t,r,a){let s=t;if(n(t)){s=null;let e=i.get(t);e?e.push(r):i.set(t,[r])}else{let n=Array.isArray(t)||"undefined"!=typeof FileList&&t instanceof FileList,i=t&&t.constructor===Object;if(n||i){let i=o.has(t);if(i?s=o.get(t):(s=n?[]:{},o.set(t,s)),!a.has(t)){let o=r?`${r}.`:"",l=new Set(a).add(t);if(n){let n=0;for(let r of t){let t=e(r,o+n++,l);i||s.push(t)}}else for(let n in t){let r=e(t[n],o+n,l);i||(s[n]=r)}}}}return s}(e,t,new Set),files:i}}},51268:function(e,t,n){"use strict";let r=n(72445);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},78458:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(88299),o=r(n(53458)),a=n(60456),s=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=a.defaultJsonSerializer);var l=i.extractFiles({query:e,variables:t,operationName:n},"",s),c=l.clone,u=l.files;if(0===u.size){if(!Array.isArray(e))return r.stringify(c);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");var d=e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]);return r.stringify(d)}var p=new("undefined"==typeof FormData?o.default:FormData);p.append("operations",r.stringify(c));var f={},h=0;return u.forEach(function(e){f[++h]=e}),p.append("map",r.stringify(f)),h=0,u.forEach(function(e,t){p.append(""+ ++h,t)}),p}},60456:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},38741:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var a=n(8308),s=n(28687),l="ping",c="pong",u="complete",d=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&void 0!=this.id&&(e.id=this.id),null!=this.payload&&void 0!=this.payload&&(e.payload=this.payload),JSON.stringify(e)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var r=JSON.parse(t),i=r.type,o=r.payload,a=r.id;return new e(i,n(o),a)},e}(),p=function(){function e(e,t){var n=this,s=t.onInit,p=t.onAcknowledged,m=t.onPing,g=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(n,void 0,void 0,function(){var t,n,r,i;return o(this,function(o){switch(o.label){case 0:if(this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(t=e).send,r=f,!s)return[3,2];return[4,s()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return n.apply(t,[r.apply(void 0,[i]).text]),[2]}})})},e.onclose=function(e){n.socketState.acknowledged=!1,n.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i,o,s=(i=t.data,void 0===o&&(o=function(e){return e}),d.parse(i,o));switch(s.type){case"connection_ack":n.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(n.socketState.acknowledged=!0,p&&p(s.payload));return;case l:m?m(s.payload).then(function(t){return e.send(h(t).text)}):e.send(h(null).text);return;case c:g&&g(s.payload);return}if(!n.socketState.acknowledged||void 0===s.id||null===s.id||!n.socketState.subscriptions[s.id])return;var f=n.socketState.subscriptions[s.id],y=f.query,_=f.variables,v=f.subscriber;switch(s.type){case"next":!s.payload.errors&&s.payload.data&&v.next&&v.next(s.payload.data),s.payload.errors&&v.error&&v.error(new a.ClientError(r(r({},s.payload),{status:200}),{query:y,variables:_}));return;case"error":v.error&&v.error(new a.ClientError({errors:s.payload,status:200},{query:y,variables:_}));return;case u:v.complete&&v.complete(),delete n.socketState.subscriptions[s.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,r){var i=this,o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:e,variables:n,subscriber:r},this.socket.send(new d("subscribe",{query:e,operationName:t,variables:n},o).text),function(){i.socket.send(new d(u,void 0,o).text),delete i.socketState.subscriptions[o]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise(function(r,i){var o;n.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return r(o)}},t)})},e.prototype.request=function(e,t){var n=this;return new Promise(function(r,i){var o;n.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return r(o)}},t)})},e.prototype.subscribe=function(e,t,n){var r=s.resolveRequestDocument(e),i=r.query,o=r.operationName;return this.makeSubscribe(i,o,n,t)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,n,t)},e.prototype.ping=function(e){this.socket.send(new d(l,e,void 0).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function f(e){return new d("connection_init",e)}function h(e){return new d(c,e,void 0)}t.GraphQLWebSocketClient=p},28687:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var d=a(n(54098)),p=n(88370),f=n(23033),h=u(n(78458)),m=n(60456),g=n(32980),y=n(8308);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return y.ClientError}});var _=function(e){var t,n={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof d.Headers?(t={},e.forEach(function(e,n){t[n]=e}),n=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],r=e[1];n[t]=r}):n=e),n},v=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},b=function(e){var t=e.query,n=e.variables,r=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query="+encodeURIComponent(v(t))];return n&&o.push("variables="+encodeURIComponent(i.stringify(n))),r&&o.push("operationName="+encodeURIComponent(r)),o.join("&")}if(void 0!==n&&!Array.isArray(n))throw Error("Cannot create query with given variable type, array expected");var a=t.reduce(function(e,t,r){return e.push({query:v(t),variables:n?i.stringify(n[r]):void 0}),e},[]);return"query="+encodeURIComponent(i.stringify(a))},S=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,c=e.fetch,u=e.fetchOptions;return s(void 0,void 0,void 0,function(){var e;return l(this,function(s){switch(s.label){case 0:return e=h.default(n,i,o,u.jsonSerializer),[4,c(t,r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},u))];case 1:return[2,s.sent()]}})})},E=function(e){var t=e.url,n=e.query,i=e.variables,o=e.operationName,a=e.headers,c=e.fetch,u=e.fetchOptions;return s(void 0,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return[4,c(t+"?"+b({query:n,variables:i,operationName:o,jsonSerializer:u.jsonSerializer}),r({method:"GET",headers:a},u))];case 1:return[2,e.sent()]}})})},T=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,u,p,f,h,m,y;return l(this,function(l){return i=g.parseRawRequestArgs(e,t,n),a=(o=this.options).headers,u=void 0===(s=o.fetch)?d.default:s,f=void 0===(p=o.method)?"POST":p,h=c(o,["headers","fetch","method"]),m=this.url,void 0!==i.signal&&(h.signal=i.signal),y=O(i.query).operationName,[2,w({url:m,query:i.query,variables:i.variables,headers:r(r({},_(A(a))),_(i.requestHeaders)),operationName:y,fetch:u,method:f,fetchOptions:h})]})})},e.prototype.request=function(e,t,n){return s(this,void 0,void 0,function(){var i,o,a,s,u,p,f,h,m,y,v,b;return l(this,function(l){switch(l.label){case 0:return i=g.parseRequestArgs(e,t,n),a=(o=this.options).headers,u=void 0===(s=o.fetch)?d.default:s,f=void 0===(p=o.method)?"POST":p,h=c(o,["headers","fetch","method"]),m=this.url,void 0!==i.signal&&(h.signal=i.signal),v=(y=O(i.document)).query,b=y.operationName,[4,w({url:m,query:v,variables:i.variables,headers:r(r({},_(A(a))),_(i.requestHeaders)),operationName:b,fetch:u,method:f,fetchOptions:h})];case 1:return[2,l.sent().data]}})})},e.prototype.batchRequests=function(e,t){return s(this,void 0,void 0,function(){var n,i,o,a,s,u,p,f,h;return l(this,function(l){switch(l.label){case 0:return n=g.parseBatchRequestArgs(e,t),o=(i=this.options).headers,s=void 0===(a=i.fetch)?d.default:a,p=void 0===(u=i.method)?"POST":u,f=c(i,["headers","fetch","method"]),h=this.url,void 0!==n.signal&&(f.signal=n.signal),[4,w({url:h,query:n.documents.map(function(e){return O(e.document).query}),variables:n.documents.map(function(e){return e.variables}),headers:r(r({},_(A(o))),_(n.requestHeaders)),operationName:void 0,fetch:s,method:p,fetchOptions:f})];case 1:return[2,l.sent().data]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function w(e){var t=e.url,n=e.query,i=e.variables,o=e.headers,a=e.operationName,u=e.fetch,d=e.method,p=void 0===d?"POST":d,f=e.fetchOptions;return s(this,void 0,void 0,function(){var e,d,h,g,_,v,b,T,w,I,k;return l(this,function(O){switch(O.label){case 0:return e="POST"===p.toUpperCase()?S:E,d=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:a,headers:o,fetch:u,fetchOptions:f})];case 1:return[4,function(e,t){return void 0===t&&(t=m.defaultJsonSerializer),s(this,void 0,void 0,function(){var n,r,i;return l(this,function(o){switch(o.label){case 0:if(e.headers.forEach(function(e,t){"content-type"===t.toLowerCase()&&(n=e)}),!(n&&n.toLowerCase().startsWith("application/json")))return[3,2];return i=(r=t).parse,[4,e.text()];case 1:return[2,i.apply(r,[o.sent()])];case 2:return[2,e.text()]}})})}(h=O.sent(),f.jsonSerializer)];case 2:if(g=O.sent(),_=d&&Array.isArray(g)?!g.some(function(e){return!e.data}):!!g.data,v=!g.errors||"all"===f.errorPolicy||"ignore"===f.errorPolicy,h.ok&&v&&_)return b=h.headers,T=h.status,g.errors,w=c(g,["errors"]),I="ignore"===f.errorPolicy?w:g,[2,r(r({},d?{data:I}:I),{headers:b,status:T})];throw k="string"==typeof g?{error:g}:g,new y.ClientError(r(r({},k),{status:h.status,headers:h.headers}),{query:n,variables:i})}})})}function I(e,t,n,i){return s(this,void 0,void 0,function(){var o;return l(this,function(a){return[2,new T((o=g.parseRequestExtendedArgs(e,t,n,i)).url).request(r({},o))]})})}function k(e){var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),n}function O(e){if("string"==typeof e){var t=void 0;try{var n=p.parse(e);t=k(n)}catch(e){}return{query:e,operationName:t}}var r=k(e);return{query:f.print(e),operationName:r}}function A(e){return"function"==typeof e?e():e}t.GraphQLClient=T,t.rawRequest=function(e,t,n,i){return s(this,void 0,void 0,function(){var o;return l(this,function(a){return[2,new T((o=g.parseRawRequestExtendedArgs(e,t,n,i)).url).rawRequest(r({},o))]})})},t.request=I,t.batchRequests=function(e,t,n){return s(this,void 0,void 0,function(){var i;return l(this,function(o){return[2,new T((i=g.parseBatchRequestsExtendedArgs(e,t,n)).url).batchRequests(r({},i))]})})},t.default=I,t.resolveRequestDocument=O,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce(function(e,n,r){return""+e+n+(r in t?t[r]:"")},"")};var C=n(38741);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return C.GraphQLWebSocketClient}})},32980:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,n,r){return e.document?e:{url:e,document:t,variables:n,requestHeaders:r,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,n,r){return e.query?e:{url:e,query:t,variables:n,requestHeaders:r,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},8308:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return Object.setPrototypeOf(i=e.call(this,o)||this,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},20440:function(e){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},16014:function(e,t,n){"use strict";var r=n(90993);e.exports=function e(t,n,i){void 0===n&&(n=""),void 0===i&&(i=r);var o,a=new Map;function s(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(i(t))o=null,s([n],t);else{var l=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return s([""+l+t],e),null});else if(Array.isArray(t))o=t.map(function(t,n){var r=e(t,""+l+n,i);return r.files.forEach(s),r.clone});else if(t&&t.constructor===Object)for(var c in o={},t){var u=e(t[c],""+l+c,i);u.files.forEach(s),o[c]=u.clone}else o=t}return{clone:o,files:a}}},88299:function(e,t,n){"use strict";t.ReactNativeFile=n(20440),t.extractFiles=n(16014),t.isExtractableFile=n(90993)},90993:function(e,t,n){"use strict";var r=n(20440);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},53458:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},68806:function(e,t,n){"use strict";n.d(t,{J9:function(){return z},_t:function(){return H},wO:function(){return q},Ps:function(){return W},HW:function(){return G}});var r,i,o,a,s,l=n(97582);let c=/\r\n|[\n\r]/g;function u(e,t){let n=0,r=1;for(let i of e.body.matchAll(c)){if("number"==typeof i.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function d(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,c=`${e.name}:${a}:${l}
`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+p([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+p([[`${a-1} |`,u[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,u[i+1]]])}function p(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class f extends Error{constructor(e,...t){var n,r,i,o;let{nodes:a,source:s,positions:l,path:c,originalError:d,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=d?d:void 0,this.nodes=h(Array.isArray(a)?a:a?[a]:void 0);let m=h(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==m?void 0:null===(r=m[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==m?void 0:m.map(e=>e.start),this.locations=l&&s?l.map(e=>u(s,e)):null==m?void 0:m.map(e=>u(e.source,e.start));let g="object"==typeof(o=null==d?void 0:d.extensions)&&null!==o?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=p?p:g)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,f):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+d((t=n.loc).source,u(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+d(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function m(e,t,n){return new f(`Syntax Error: ${n}`,{source:e,positions:[t]})}var g=n(72380);(r=a||(a={})).QUERY="QUERY",r.MUTATION="MUTATION",r.SUBSCRIPTION="SUBSCRIPTION",r.FIELD="FIELD",r.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",r.FRAGMENT_SPREAD="FRAGMENT_SPREAD",r.INLINE_FRAGMENT="INLINE_FRAGMENT",r.VARIABLE_DEFINITION="VARIABLE_DEFINITION",r.SCHEMA="SCHEMA",r.SCALAR="SCALAR",r.OBJECT="OBJECT",r.FIELD_DEFINITION="FIELD_DEFINITION",r.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",r.INTERFACE="INTERFACE",r.UNION="UNION",r.ENUM="ENUM",r.ENUM_VALUE="ENUM_VALUE",r.INPUT_OBJECT="INPUT_OBJECT",r.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var y=n(97359),_=n(87392),v=n(68297);(i=s||(s={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class b{constructor(e){let t=new g.WU(s.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(S(e))++i;else if(E(n,i))i+=2;else break}return k(e,s.COMMENT,t,i,n.slice(t+1,i))}(e,i);case 33:return k(e,s.BANG,i,i+1);case 36:return k(e,s.DOLLAR,i,i+1);case 38:return k(e,s.AMP,i,i+1);case 40:return k(e,s.PAREN_L,i,i+1);case 41:return k(e,s.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return k(e,s.SPREAD,i,i+3);break;case 58:return k(e,s.COLON,i,i+1);case 61:return k(e,s.EQUALS,i,i+1);case 64:return k(e,s.AT,i,i+1);case 91:return k(e,s.BRACKET_L,i,i+1);case 93:return k(e,s.BRACKET_R,i,i+1);case 123:return k(e,s.BRACE_L,i,i+1);case 124:return k(e,s.PIPE,i,i+1);case 125:return k(e,s.BRACE_R,i,i+1);case 34:if(34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return function(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,a=o,l="",c=[];for(;o<r;){let r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){l+=n.slice(a,o),c.push(l);let r=k(e,s.BLOCK_STRING,t,o+3,(0,_.wv)(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){l+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){l+=n.slice(a,o),c.push(l),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,l="",a=o,i=o;continue}if(S(r))++o;else if(E(n,o))o+=2;else throw m(e.source,o,`Invalid character within String: ${I(e,o)}.`)}throw m(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),k(e,s.STRING,t,i+1,a);if(92===r){a+=n.slice(o,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!S(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|C(e))<0)break}throw m(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,i):function(e,t){let n=e.source.body,r=A(n,t+2);if(S(r))return{value:String.fromCodePoint(r),size:6};if(T(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=A(n,t+8);if(w(e))return{value:String.fromCodePoint(r,e),size:12}}throw m(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,i):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw m(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;if(S(r))++i;else if(E(n,i))i+=2;else throw m(e.source,i,`Invalid character within String: ${I(e,i)}.`)}throw m(e.source,i,"Unterminated string.")}(e,i)}if((0,v.X1)(t)||45===t)return function(e,t,n){let r=e.source.body,i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),(0,v.X1)(o))throw m(e.source,i,`Invalid number, unexpected digit after 0: ${I(e,i)}.`)}else i=O(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=O(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=r.charCodeAt(++i))||45===o)&&(o=r.charCodeAt(++i)),i=O(e,i,o),o=r.charCodeAt(i)),46===o||(0,v.LQ)(o))throw m(e.source,i,`Invalid number, expected digit but got: ${I(e,i)}.`);return k(e,a?s.FLOAT:s.INT,t,i,r.slice(t,i))}(e,i,t);if((0,v.LQ)(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if((0,v.HQ)(e))++i;else break}return k(e,s.NAME,t,i,n.slice(t,i))}(e,i);throw m(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":S(t)||E(n,i)?`Unexpected character: ${I(e,i)}.`:`Invalid character: ${I(e,i)}.`)}return k(e,s.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.COMMENT);return e}}function S(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return T(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function I(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return s.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function k(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new g.WU(t,n,r,o,a,i)}function O(e,t,n){if(!(0,v.X1)(n))throw m(e.source,t,`Invalid number, expected digit but got: ${I(e,t)}.`);let r=e.source.body,i=t+1;for(;(0,v.X1)(r.charCodeAt(i));)++i;return i}function A(e,t){return C(e.charCodeAt(t))<<12|C(e.charCodeAt(t+1))<<8|C(e.charCodeAt(t+2))<<4|C(e.charCodeAt(t+3))}function C(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var N=n(37826),D=n(25821);let x=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=(0,D.X)(e);throw Error(`Cannot use ${r} "${t}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};class R{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,N.a)(!1,`Body must be a string. Received: ${(0,D.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,N.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,N.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class M{constructor(e,t={}){let n=x(e,R)?e:new R(e);this._lexer=new b(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(s.NAME);return this.node(e,{kind:y.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.h.DOCUMENT,definitions:this.many(s.SOF,this.parseDefinition,s.EOF)})}parseDefinition(){if(this.peek(s.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===s.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw m(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(s.BRACE_L))return this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:g.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(s.NAME)&&(e=this.parseName()),this.node(t,{kind:y.h.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(s.NAME);switch(e.value){case"query":return g.ku.QUERY;case"mutation":return g.ku.MUTATION;case"subscription":return g.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.PAREN_L,this.parseVariableDefinition,s.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(s.DOLLAR),this.node(e,{kind:y.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.h.SELECTION_SET,selections:this.many(s.BRACE_L,this.parseSelection,s.BRACE_R)})}parseSelection(){return this.peek(s.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(s.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:y.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(s.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.PAREN_L,t,s.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:y.h.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(s.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(s.NAME)?this.node(e,{kind:y.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case s.BRACKET_L:return this.parseList(e);case s.BRACE_L:return this.parseObject(e);case s.INT:return this.advanceLexer(),this.node(t,{kind:y.h.INT,value:t.value});case s.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.h.FLOAT,value:t.value});case s.STRING:case s.BLOCK_STRING:return this.parseStringLiteral();case s.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.h.NULL});default:return this.node(t,{kind:y.h.ENUM,value:t.value})}case s.DOLLAR:if(e){if(this.expectToken(s.DOLLAR),this._lexer.token.kind===s.NAME){let e=this._lexer.token.value;throw m(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.h.STRING,value:e.value,block:e.kind===s.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:y.h.LIST,values:this.any(s.BRACKET_L,()=>this.parseValueLiteral(e),s.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:y.h.OBJECT,fields:this.any(s.BRACE_L,()=>this.parseObjectField(e),s.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:y.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(s.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(s.AT),this.node(t,{kind:y.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(s.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(s.BRACKET_R),e=this.node(t,{kind:y.h.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(s.BANG)?this.node(t,{kind:y.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.STRING)||this.peek(s.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);return this.node(e,{kind:y.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(s.COLON);let n=this.parseNamedType();return this.node(e,{kind:y.h.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:y.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseFieldDefinition,s.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(s.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:y.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(s.PAREN_L,this.parseInputValueDef,s.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(s.COLON);let i=this.parseTypeReference();this.expectOptionalToken(s.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:y.h.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:y.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(s.EQUALS)?this.delimitedMany(s.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:y.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(s.BRACE_L,this.parseEnumValueDefinition,s.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:y.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw m(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseInputValueDef,s.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===s.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:y.h.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(s.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:y.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(s.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new g.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw m(this._lexer.source,t.start,`Expected ${L(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===s.NAME&&t.value===e)this.advanceLexer();else throw m(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===s.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return m(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==s.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw m(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function P(e){let t=e.value;return L(e.kind)+(null!=t?` "${t}"`:"")}function L(e){return e===s.BANG||e===s.DOLLAR||e===s.AMP||e===s.PAREN_L||e===s.PAREN_R||e===s.SPREAD||e===s.COLON||e===s.EQUALS||e===s.AT||e===s.BRACKET_L||e===s.BRACKET_R||e===s.BRACE_L||e===s.PIPE||e===s.BRACE_R?`"${e}"`:e}var B=new Map,U=new Map,F=!0,j=!1;function $(e){return e.replace(/[\s,]+/g," ").trim()}function W(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),function(e){var t=$(e);if(!B.has(t)){var n,r,i,o,a,s=new M(e,{experimentalFragmentVariables:j,allowLegacyFragmentVariables:j}).parseDocument();if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");B.set(t,((o=new Set((n=new Set,r=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=$((t=e.loc).source.body.substring(t.start,t.end)),a=U.get(i);a&&!a.has(o)?F&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||U.set(i,a=new Set),a.add(o),n.has(o)||(n.add(o),r.push(e))}else r.push(e)}),i=(0,l.pi)((0,l.pi)({},s),{definitions:r})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&o.add(n)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return B.get(t)}(r)}function G(){B.clear(),U.clear()}function H(){F=!1}function q(){j=!0}function z(){j=!1}var V=W;(o=W||(W={})).gql=V,o.resetCaches=G,o.disableFragmentWarnings=H,o.enableExperimentalFragmentVariables=q,o.disableExperimentalFragmentVariables=z,W.default=W},65822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(25690),i=n(39016),o=n(38038);class a extends Error{constructor(e,...t){var n,o,l;let{nodes:c,source:u,positions:d,path:p,originalError:f,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);let m=s(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==m?void 0:null===(o=m[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,i.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,i.getLocation)(e.source,e.start));let g=(0,r.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},50338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var r=n(65822)},67242:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!e)throw Error(t)}},8002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let i=0;i<r;++i)o.push(e(t[i],n));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}},85752:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var r=n(8002);let i=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){let t=(0,r.inspect)(e);throw Error(`Cannot use ${i} "${t}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};t.instanceOf=i},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}},25690:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},91807:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)};class i{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=i;class o{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=o;let a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;let s=new Set(Object.keys(a));t.OperationTypeNode=n,(r=n||(t.OperationTypeNode=n={})).QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription"},70849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(o=null!==(n=o)&&void 0!==n?n:t,a=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s),p="",f=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!f||a)&&(p+="\n"),p+=n,(d||u)&&(p+="\n"),'"""'+p+'"""'};var r=n(10100)},10100:function(e,t){"use strict";function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},78333:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,(r=n||(t.DirectiveLocation=n={})).QUERY="QUERY",r.MUTATION="MUTATION",r.SUBSCRIPTION="SUBSCRIPTION",r.FIELD="FIELD",r.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",r.FRAGMENT_SPREAD="FRAGMENT_SPREAD",r.INLINE_FRAGMENT="INLINE_FRAGMENT",r.VARIABLE_DEFINITION="VARIABLE_DEFINITION",r.SCHEMA="SCHEMA",r.SCALAR="SCALAR",r.OBJECT="OBJECT",r.FIELD_DEFINITION="FIELD_DEFINITION",r.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",r.INTERFACE="INTERFACE",r.UNION="UNION",r.ENUM="ENUM",r.ENUM_VALUE="ENUM_VALUE",r.INPUT_OBJECT="INPUT_OBJECT",r.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},2828:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,(r=n||(t.Kind=n={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},54274:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var r=n(50338),i=n(91807),o=n(70849),a=n(10100),s=n(23175);class l{constructor(e){let t=new i.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,l=t;for(;l<i;){let t=n.charCodeAt(l);switch(t){case 65279:case 9:case 32:case 44:++l;continue;case 10:++l,++e.line,e.lineStart=l;continue;case 13:10===n.charCodeAt(l+1)?l+=2:++l,++e.line,e.lineStart=l;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(c(e))++i;else if(u(n,i))i+=2;else break}return h(e,s.TokenKind.COMMENT,t,i,n.slice(t+1,i))}(e,l);case 33:return h(e,s.TokenKind.BANG,l,l+1);case 36:return h(e,s.TokenKind.DOLLAR,l,l+1);case 38:return h(e,s.TokenKind.AMP,l,l+1);case 40:return h(e,s.TokenKind.PAREN_L,l,l+1);case 41:return h(e,s.TokenKind.PAREN_R,l,l+1);case 46:if(46===n.charCodeAt(l+1)&&46===n.charCodeAt(l+2))return h(e,s.TokenKind.SPREAD,l,l+3);break;case 58:return h(e,s.TokenKind.COLON,l,l+1);case 61:return h(e,s.TokenKind.EQUALS,l,l+1);case 64:return h(e,s.TokenKind.AT,l,l+1);case 91:return h(e,s.TokenKind.BRACKET_L,l,l+1);case 93:return h(e,s.TokenKind.BRACKET_R,l,l+1);case 123:return h(e,s.TokenKind.BRACE_L,l,l+1);case 124:return h(e,s.TokenKind.PIPE,l,l+1);case 125:return h(e,s.TokenKind.BRACE_R,l,l+1);case 34:if(34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2))return function(e,t){let n=e.source.body,i=n.length,a=e.lineStart,l=t+3,d=l,p="",m=[];for(;l<i;){let i=n.charCodeAt(l);if(34===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){p+=n.slice(d,l),m.push(p);let r=h(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,r}if(92===i&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)&&34===n.charCodeAt(l+3)){p+=n.slice(d,l),d=l+1,l+=4;continue}if(10===i||13===i){p+=n.slice(d,l),m.push(p),13===i&&10===n.charCodeAt(l+1)?l+=2:++l,p="",d=l,a=l;continue}if(c(i))++l;else if(u(n,l))l+=2;else throw(0,r.syntaxError)(e.source,l,`Invalid character within String: ${f(e,l)}.`)}throw(0,r.syntaxError)(e.source,l,"Unterminated string.")}(e,l);return function(e,t){let n=e.source.body,i=n.length,o=t+1,a=o,l="";for(;o<i;){let i=n.charCodeAt(o);if(34===i)return l+=n.slice(a,o),h(e,s.TokenKind.STRING,t,o+1,l);if(92===i){l+=n.slice(a,o);let t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?function(e,t){let n=e.source.body,i=0,o=3;for(;o<12;){let e=n.charCodeAt(t+o++);if(125===e){if(o<5||!c(i))break;return{value:String.fromCodePoint(i),size:o}}if((i=i<<4|y(e))<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}(e,o):function(e,t){let n=e.source.body,i=g(n,t+2);if(c(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=g(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,o):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw(0,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,o);l+=t.value,o+=t.size,a=o;continue}if(10===i||13===i)break;if(c(i))++o;else if(u(n,o))o+=2;else throw(0,r.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`)}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}(e,l)}if((0,a.isDigit)(t)||45===t)return function(e,t,n){let i=e.source.body,o=t,l=n,c=!1;if(45===l&&(l=i.charCodeAt(++o)),48===l){if(l=i.charCodeAt(++o),(0,a.isDigit)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=m(e,o,l),l=i.charCodeAt(o);if(46===l&&(c=!0,l=i.charCodeAt(++o),o=m(e,o,l),l=i.charCodeAt(o)),(69===l||101===l)&&(c=!0,(43===(l=i.charCodeAt(++o))||45===l)&&(l=i.charCodeAt(++o)),o=m(e,o,l),l=i.charCodeAt(o)),46===l||(0,a.isNameStart)(l))throw(0,r.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return h(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,i.slice(t,o))}(e,l,t);if((0,a.isNameStart)(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if((0,a.isNameContinue)(e))++i;else break}return h(e,s.TokenKind.NAME,t,i,n.slice(t,i))}(e,l);throw(0,r.syntaxError)(e.source,l,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":c(t)||u(n,l)?`Unexpected character: ${f(e,l)}.`:`Invalid character: ${f(e,l)}.`)}return h(e,s.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.TokenKind.COMMENT);return e}}function c(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function u(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function f(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,r,o){let a=e.line,s=1+n-e.lineStart;return new i.Token(t,n,r,a,s,o)}function m(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);let i=e.source.body,o=t+1;for(;(0,a.isDigit)(i.charCodeAt(o));)++o;return o}function g(e,t){return y(e.charCodeAt(t))<<12|y(e.charCodeAt(t+1))<<8|y(e.charCodeAt(t+2))<<4|y(e.charCodeAt(t+3))}function y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=l},39016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(let a of e.body.matchAll(i)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(7706);let i=/\r\n|[\n\r]/g},88370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new u(e,t).parseDocument()},t.parseConstValue=function(e,t){let n=new u(e,t);n.expectToken(c.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(c.TokenKind.EOF),r},t.parseType=function(e,t){let n=new u(e,t);n.expectToken(c.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(c.TokenKind.EOF),r},t.parseValue=function(e,t){let n=new u(e,t);n.expectToken(c.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(c.TokenKind.EOF),r};var r=n(50338),i=n(91807),o=n(78333),a=n(2828),s=n(54274),l=n(12412),c=n(23175);class u{constructor(e,t={}){let n=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===c.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(c.TokenKind.NAME)&&(e=this.parseName()),this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(c.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:a.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,t,c.TokenKind.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){let e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),c.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,()=>this.parseObjectField(e),c.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(c.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),e=this.node(t,{kind:a.Kind.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(t,{kind:a.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(c.TokenKind.COLON);let n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(c.TokenKind.COLON);let i=this.parseTypeReference();this.expectOptionalToken(c.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${d(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected ${p(e)}, found ${d(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===c.TokenKind.NAME&&t.value===e)this.advanceLexer();else throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${d(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===c.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${d(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==c.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function d(e){let t=e.value;return p(e.kind)+(null!=t?` "${t}"`:"")}function p(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=u},38038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(39016);function i(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,l=1===t.line?n:0,c=t.column+l,u=`${e.name}:${s}:${c}
`,d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<p.length;e+=80)t.push(p.slice(e,e+80));return u+o([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return u+o([[`${s-1} |`,d[i-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,d[i+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},48942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,r)}"`};let n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}let i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},23033:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var r=n(70849),i=n(48942),o=n(80285);let a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=c("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+c(" = ",n)+c(" ",s(r," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=c("",e,": ")+t,a=o+c("(",s(n,", "),")");return a.length>80&&(a=o+c("(\n",u(s(n,"\n")),"\n)")),s([a,s(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+c(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",c("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${c("(",s(n,", "),")")} on ${t} ${c("",s(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,i.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+c("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>c("",e,"\n")+s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["type",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>c("",e,"\n")+t+(d(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>c("",e,"\n")+s([t+": "+n,c("= ",r),s(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>c("",e,"\n")+s(["interface",t,c("implements ",s(n," & ")),s(r," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>c("",e,"\n")+s(["union",t,s(n," "),c("= ",s(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>c("",e,"\n")+s(["enum",t,s(n," "),l(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>c("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>c("",e,"\n")+s(["input",t,s(n," "),l(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>c("",e,"\n")+"directive @"+t+(d(n)?c("(\n",u(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend type",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>s(["extend interface",e,c("implements ",s(t," & ")),s(n," "),l(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),c("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),l(n)]," ")}};function s(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function l(e){return c("{\n",u(s(e,"\n")),"\n}")}function c(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function u(e){return c("  ",e.replace(/\n/g,"\n  "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},12412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var r=n(67242),i=n(8002),o=n(85752);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,i.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},23175:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,(r=n||(t.TokenKind=n={})).SOF="<SOF>",r.EOF="<EOF>",r.BANG="!",r.DOLLAR="$",r.AMP="&",r.PAREN_L="(",r.PAREN_R=")",r.SPREAD="...",r.COLON=":",r.EQUALS="=",r.AT="@",r.BRACKET_L="[",r.BRACKET_R="]",r.BRACE_L="{",r.PIPE="|",r.BRACE_R="}",r.NAME="Name",r.INT="Int",r.FLOAT="Float",r.STRING="String",r.BLOCK_STRING="BlockString",r.COMMENT="Comment"},80285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=l,t.getVisitFn=function(e,t,n){let{enter:r,leave:i}=l(e,t);return n?i:r},t.visit=function(e,t,n=o.QueryDocumentKeys){let c,u,d;let p=new Map;for(let e of Object.values(a.Kind))p.set(e,l(t,e));let f=Array.isArray(e),h=[e],m=-1,g=[],y=e,_=[],v=[];do{var b,S,E;let e;let a=++m===h.length,l=a&&0!==g.length;if(a){if(u=0===v.length?void 0:_[_.length-1],y=d,d=v.pop(),l){if(f){y=y.slice();let e=0;for(let[t,n]of g){let r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),g))y[e]=t}m=c.index,h=c.keys,g=c.edits,f=c.inArray,c=c.prev}else if(d){if(null==(y=d[u=f?m:h[m]]))continue;_.push(u)}if(!Array.isArray(y)){(0,o.isNode)(y)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,i.inspect)(y)}.`);let n=a?null===(b=p.get(y.kind))||void 0===b?void 0:b.leave:null===(S=p.get(y.kind))||void 0===S?void 0:S.enter;if((e=null==n?void 0:n.call(t,y,u,d,_,v))===s)break;if(!1===e){if(!a){_.pop();continue}}else if(void 0!==e&&(g.push([u,e]),!a)){if((0,o.isNode)(e))y=e;else{_.pop();continue}}}void 0===e&&l&&g.push([u,y]),a?_.pop():(c={inArray:f,index:m,keys:h,edits:g,prev:c},h=(f=Array.isArray(y))?y:null!==(E=n[y.kind])&&void 0!==E?E:[],m=-1,g=[],d&&v.push(d),d=y)}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:e},t.visitInParallel=function(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(a.Kind)){let i=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=l(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;let c={enter(...n){let r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){let r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=c}return n};var r=n(67242),i=n(8002),o=n(91807),a=n(2828);let s=Object.freeze({});function l(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}t.BREAK=s},8679:function(e,t,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=f(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var y=a[g];if(!o[y]&&!(r&&r[y])&&!(m&&m[y])&&!(s&&s[y])){var _=p(n,y);try{c(t,y,_)}catch(e){}}}}return t}},38714:function(e,t,n){var r=n(36557),i=function(e){var t=e.split("_");return 2==t.length||2==(t=e.split("-")).length?t.pop():e};t.getCurrency=function(e){var t=i(e).toUpperCase();return t in r?r[t]:null},t.getLocales=function(e){e=e.toUpperCase();var t=[];for(countryCode in r)r[countryCode]===e&&t.push(countryCode);return t}},36557:function(e){e.exports={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AN:"ANG",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"BTN",BV:"NOK",BW:"BWP",BY:"BYR",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"HRK",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"LTL",LU:"EUR",LV:"LVL",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRO",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",ST:"STD",SV:"SVC",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VEF",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMK",ZW:"ZWL"}},11752:function(e,t,n){e.exports=n(17500)},31365:function(e,t,n){e.exports=n(42929)},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},91118:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6615)}])},40076:function(e,t,n){"use strict";let r;n.d(t,{kZ:function(){return T},ZP:function(){return w},Ps:function(){return c.Ps},tR:function(){return E},DU:function(){return S}});var i=n(25735),o=n(72198),a=n(51625),s=n(48702),l=n(71050),c=n(68806);n(67294);var u=n(28687),d=n(97582),p=n(48216);function f(e){return new s.i(function(t,n){return new p.y(function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n})){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}!function(e){function t(t){var n=e.call(this)||this;return n.link=f(t),n}(0,d.ZT)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(s.i);var h=n(89776),m=n.n(h),g=n(24269),y=n(68701);n(34155);let _=e=>new i.f({link:new o.u({uri:"".concat((0,y.JW)(e.locale),"/shop/").concat((0,g.D2)(e.locale),"/graphql?nosession")}),cache:new a.h,ssrMode:!0}),v=(e,t)=>{let n=null!=r?r:_(t);if(e){let t=n.extract();n.restore({...t,...e,ROOT_QUERY:{...t.ROOT_QUERY,...e.ROOT_QUERY}})}return null!=r||(r=n),r},b=new s.i((e,t)=>t(e).map(t=>(e.getContext(),t))),S=e=>new i.f({ssrMode:!1,cache:new a.h,link:s.i.from([f(e=>{let{graphQLErrors:t,networkError:n}=e;t&&t.map(e=>{let{message:t,locations:n,path:r}=e;return console.log("[GraphQL error]: Message: ".concat(t,", Location: ").concat(n,", Path: ").concat(r))})}),b.concat(m()({uri:"".concat((0,y.JW)(e),"/shop/").concat((0,g.D2)(e),"/graphql"),credentials:"include"}))])}),E=e=>{let t=e.locale?e:null,n=e.locale?e.locale:e,r=(0,g.D2)(n),o=null;return t&&(o=Object.entries(Object.keys(t.query).filter(e=>e.startsWith("utm_")).reduce((e,n)=>(e[n]=t.query[n],e),{})).map(e=>e.map(encodeURIComponent).join("=")).join("&")),new i.f({ssrMode:!1,cache:new a.h,link:s.i.from([f(e=>{let{graphQLErrors:t,networkError:n}=e;t&&t.map(e=>{let{message:t,locations:n,path:r}=e;return console.log("[GraphQL error]: Message: ".concat(t,", Location: ").concat(n,", Path: ").concat(r))})}),b.concat((0,l.L)({uri:"".concat((0,y.JW)(n),"/shop/").concat(r,"/graphql").concat(o?"?"+o:""),credentials:"include"}))])})};function T(e){let{query:t,variables:n,preview:r}=e;return new u.GraphQLClient(r?"https://graphql.datocms.com/preview":"https://graphql.datocms.com/",{headers:{authorization:"Bearer ".concat("5c2679a71a633229a8d55b3b623a21")}}).request(t,n)}var w=e=>v(void 0,e)},68701:function(e,t,n){"use strict";n.d(t,{$k:function(){return N},CN:function(){return F},Cz:function(){return E},El:function(){return R},F4:function(){return T},Fp:function(){return M},Gw:function(){return A},I5:function(){return L},JW:function(){return z},Jt:function(){return G},OI:function(){return j},PU:function(){return B},Qj:function(){return O},U:function(){return D},Xb:function(){return S},bN:function(){return C},bm:function(){return U},co:function(){return P},di:function(){return W},iO:function(){return b},n_:function(){return V},r7:function(){return $},sl:function(){return H},t_:function(){return K},xG:function(){return I},xg:function(){return q},yH:function(){return w},yh:function(){return x},yy:function(){return k},zC:function(){return v}});var r=n(82729),i=n(33748),o=n(24269),a=n(11752),s=n.n(a),l=n(68806),c=n(40076),u=n(26890),d=n(20322),p=n(71754);function f(){let e=(0,r._)(["\n    mutation UpdateProductLine {\n      updateCartProductLine(input: {\n        cartCustomProductId: ","\n        attributes: {\n          quantity: ","\n        }\n      }) {\n        clientMutationId\n      }\n    }\n    "]);return f=function(){return e},e}let{publicRuntimeConfig:h}=s()(),{NEXT_PUBLIC_KLARHOME_ENABLED:m,localeDomains:g}=h,{SITE_ENV:y,subdomain:_}=(0,p.kH)();function v(e){return h.currencies[e]}let b="customerProductId";function S(e){return e?parseFloat(e).toFixed(2):0}function E(e){switch(e){case"material":return"materialsSidebarName";case"glazing":return"glazingsSidebarName";case"glazingsNoGlassSidebarName":return"glazingsNoGlassSidebarName";case"glassSpacer":return"glassSpacersSidebarName";case"innerColor":return"innerColorsSidebarName";case"outerColor":return"outerColorsSidebarName";case"openingDirection":return"openingDirectionsSidebarName";case"hinge":return"hingesSidebarName";case"latchType":return"latchTypesSidebarName";case"latch":case"handle":return"latchesSidebarName";case"glass":return"glassesSidebarName";case"windowSill":return"windowSillsSidebarName";case"ventilationGrill":return"ventilationGrillsSidebarName";case"windbrake":return"windbrakesSidebarName";case"emergencyExit":return"emergencyExitsSidebarName";case"packer":return"packersSidebarName";case"profile":return"profilesSidebarName";case"spross":return"sprossesSidebarName";case"threshold":return"thresholdsSidebarName";case"safetyLock":return"safetyLocksSidebarName";case"panelProfile":return"panelProfilesSidebarName";case"lockCore":return"lockCoresSidebarName";case"windowBlind":return"windowBlindsSidebarName";case"mosquitoNet":return"mosquitoNetsSidebarName"}return e}function T(e,t){let n=1-parseFloat(e)/parseFloat(t);return"".concat((100*n).toFixed(0),"%")}function w(e){return({category:"category",subCategory:"subCategory",dimensions:"measurements",handles:"latches",finalProductView:"finalizer"})[e]||e}function I(e,t,n){return i.format(e,{locale:(0,o.xC)(t),precision:n})}function k(e){switch(e){case"latch":return"latches";case"emergency_exit":return"emergencyExits";case"glass":return"glasses";case"glassSpacer":return"glassSpacers";case"glazing":return"glazings";case"handle":return"handles";case"hinge":return"hinges";case"lock_core":return"lockCores";case"material":return"materials";case"inner_color":return"innerColors";case"outer_color":return"outerColors";case"opening_direction":return"openingDirections";case"packer":return"packers";case"panel_profile":return"panelProfiles";case"profile":return"profiles";case"safety_lock":return"safetyLocks";case"spross":return"sprosses";case"threshold":return"thresholds";case"ventilation_grill":return"ventilationGrills";case"windbrake":return"windbrakes";case"window_sill":return"windowSills";case"measurements":case"bottom_glass_moulding":return"dimensions";case"windowBlind":return"windowBlinds";case"mosquitoNet":return"mosquitoNets";default:return e}}function O(e){return e.endsWith("/")&&e.length>1?e.slice(0,-1):e}function A(e){if(!e)return null;let t=new URL(e);return(t.search=new URLSearchParams,(t=t.toString()).endsWith("/"))?O(t):t}function C(){var e;let t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}function N(e,t,n){if(!e||!t||!n)return null;let r=(e,t)=>e.find(e=>e.slug===t);n.forEach(n=>{let i;let o=n.category;o.categorySlug&&(i=r(e,o.categorySlug)),o.subCategorySlug&&(i=r(t,o.subCategorySlug)),n.basePrice=(null==i?void 0:i.basePrice)||0,n.discountableBasePrice=(null==i?void 0:i.discountableBasePrice)||0})}async function D(e,t){if(!t)return;0===e.length&&t.handleCartProductsCount(0);let n=0;e.length&&(e.forEach(e=>{n+=e.quantity}),t.handleCartProductsCount(n))}async function x(e,t){if(e&&t)return(0,c.tR)(e).query({query:u.J}).then(e=>{let{data:n}=e,r=n.cart,i=null==r?void 0:r.cartCustomProducts;return t.setCartData(r),t.addCartProducts(r.cartCustomProducts),t.addCartTotalPrice(S(r.price)),D(i,t),n.cart}).catch(()=>{})}async function R(e,t,n,r,i){var o,a;if(!e||!n||!r||(n.setLoadingUpdateCart(!0),!await (0,c.tR)(r).mutate({mutation:(0,l.Ps)(f(),e,t)})))return;let s=null==n?void 0:null===(a=n.cartData)||void 0===a?void 0:null===(o=a.voucher)||void 0===o?void 0:o.code;i&&s&&await (0,c.tR)(r).mutate({mutation:d.K,variables:{input:{orderId:i,voucherCode:s}}}),x(r,n).then(()=>{n.setLoadingUpdateCart(!1)}).catch(()=>{n.setLoadingUpdateCart(!1)})}function M(e,t){return e.filter(e=>{let n=Object.values(e)[0];return t.includes(n)}).reduce((e,t)=>{let n=Object.keys(t)[0].toLowerCase(),r=Object.values(t)[0];return e[n]||(e[n]=[]),e[n].push({slug:r,title:null==t?void 0:t.title,backgroundColor:null==t?void 0:t.backgroundColor}),e},{})}let P=(e,t)=>{let n;let r=null==e?void 0:e.split("/")[3];return t||(n="600x600"),"1000"===t&&(n="1000x1000"),"600"===t&&(n="600x600"),"300"===t&&(n="300x300"),"100"===t&&(n="100x100"),"".concat("https://".concat("prod"==("staging"===y?"staging":"prod")?"d2jnbj84ss4325":"d17ktk30aejg83",".cloudfront.net/fit-in"),"/").concat(n,"/").concat(r)};function L(e,t,n,r,i,o,a,s){let l=n,c=r,u=t===a,d=t===s;return u&&(l=!1,u&&!p.QI.test(e)&&(l=!0)),(u||d)&&(c=!1,(u&&e!==o||d&&e!==i)&&(c=!0)),{emailValidError:l,emailConfirmedError:c}}function B(e){let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear();return"".concat(t,".").concat(n,".").concat(r)}function U(e){let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear();return"".concat(r,"-").concat(n,"-").concat(t)}let F=e=>{let{isoString:t}=e,n=new Date(t),r=n.getFullYear(),i=n.toLocaleString("default",{month:"2-digit"}),o=n.getDate();return"".concat(o,"-").concat(i,"-").concat(r)};function j(e,t){if(!e)return null;let n=e.getMonth()+1,r=e.getDate();e.getFullYear().toString().slice(2);let i={"da-dk":()=>"".concat(r,"/").concat(n),"sv-se":()=>"".concat(n,"-").concat(r),"no-no":()=>"".concat(r,".").concat(n),"de-de":()=>"".concat(r,".").concat(n),"et-ee":()=>"".concat(r,".").concat(n),"en-gb":()=>"".concat(r,".").concat(n)};return i[t]?i[t]():""}let $=(e,t,n,r,i,o,a)=>e&&t&&n&&r&&i?{title:e,url:W(t,n),type:r,description:i,locale:t,image:o||"https://www.datocms-assets.com/61268/1674658685-klar-logo-rectangle-bluebg-400-px.png"}:null;function W(e,t){return e&&t?"true"===m?"https://".concat(_,"klarhome.com/").concat(e).concat(t).replace("/product/","/"):"https://".concat(g[e]).concat(t).replace("/product/","/"):null}function G(e,t,n,r,i){return e&&t&&r&&i?{name:e,description:t,thumbnailUrl:[n||"https://www.datocms-assets.com/61268/1674658685-klar-logo-rectangle-bluebg-400-px.png"],uploadDate:r,embedUrl:i}:null}function H(e,t,n){return e||t?e||"".concat(t," image"):"".concat(n," image")}let q=e=>{let t=!1;return e?(t=/\.(gif|jpe?g|tiff?|png|webp|bmp)(\?.*)?$/i.test(e))?e:t?void 0:null:null};function z(e){let t="production"!==h.SITE_ENV?"staging":"prod";switch(e){case"en-gb":return"https://api.".concat(t,".klarwindows.co.uk");case"da-dk":return"https://api.".concat(t,".klarvinduer.dk");case"sv-se":return"https://api.".concat(t,".klarfonster.se");case"no-no":return"https://api.".concat(t,".klarvinduer.no");case"de-de":return"https://api.".concat(t,".klarfenster.de");case"et-ee":return"https://api.".concat(t,".klaraknad.ee");default:return"https://api.".concat(t,".klarhome.com")}}function V(e,t,n){var r,i;let o;if(null===(r=e.rows)||void 0===r?void 0:r.length){let t=e.rows.length,r=e.rows.filter(e=>e.height).length,i=e.rows.reduce((e,t)=>{if(t.height){if(t.height.percentage)return e+t.height.percentage;if(t.height.centimeters)return e+Math.floor(t.height.centimeters/n*100)}return e},0);o=e.rows.map(e=>{let o;e.height?(e.height.percentage&&(o=e.height.percentage),e.height.centimeters&&(o=Math.floor(e.height.centimeters/n*100))):o=Math.floor((100-i)/(t-r));let a=[];return e.cols>1&&(a=Array.from({length:e.cols},()=>({width:Math.floor(100/e.cols),height:100,sprosses:[]}))),e.rows>1&&(a=Array.from({length:e.rows},()=>({width:100,height:Math.floor(100/e.rows),sprosses:[]}))),{height:o,width:100,children:a,sprosses:[]}})}else{let t=0,r=0;if(e.fixed_height_rows){let i=Object.entries(e.fixed_height_rows);t=i.length,r=i.reduce((e,t)=>t[1].percentage?e+t[1].percentage:t[1].centimeters?e+Math.floor(t[1].centimeters/n*100):e,0)}o=Array.from({length:e.rows},(n,i)=>{var o,a,s;return{width:100,height:null!==(s=null==e?void 0:null===(a=e.fixed_height_rows)||void 0===a?void 0:null===(o=a["".concat(i+1)])||void 0===o?void 0:o.percentage)&&void 0!==s?s:Math.floor((100-r)/(e.rows-t)),children:[],sprosses:[]}})}return(null===(i=e.panes)||void 0===i?void 0:i.length)&&e.panes.forEach(e=>{var t,n,r;let{row:i,col:a}=e.location;(null===(t=o[i-1])||void 0===t?void 0:t.children.length)?o[i-1].children[a-1].sprosses=null!==(n=null==e?void 0:e.sprosses)&&void 0!==n?n:[]:o[i-1].sprosses=null!==(r=null==e?void 0:e.sprosses)&&void 0!==r?r:[]}),o}function K(e,t){var n;let r=t||["fixed","inward","outward"];return e.sort((e,t)=>(-1!==r.indexOf(e.openingType)?r.indexOf(e.openingType):9999)-(-1!==r.indexOf(t.openingType)?r.indexOf(t.openingType):9999)),Object.keys(n=e.reduce((e,t)=>{let n=t.openingLabel||"Other";return e[n]||(e[n]=[]),e[n].push(t),e},{})).forEach(e=>{n[e].sort((e,t)=>(e.orderNavigationSubcategories?parseInt(e.orderNavigationSubcategories,10):Number.MAX_SAFE_INTEGER)-(t.orderNavigationSubcategories?parseInt(t.orderNavigationSubcategories,10):Number.MAX_SAFE_INTEGER))}),n}},89444:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(82729),i=n(68806),o=n(52543);function a(){let e=(0,r._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return a=function(){return e},e}let s=(0,i.Ps)(a(),o.l)},26890:function(e,t,n){"use strict";n.d(t,{J:function(){return s},T:function(){return a}});var r=n(82729),i=n(68806);function o(){let e=(0,r._)(["\n  query TypesShopQueryType {\n    ","\n  }"]);return o=function(){return e},e}let a="\ncart {\n  abDesign\n  firstAvailableDeliveryWeek { week }\n  expectedDeliveryWeeks\n  identifier\n  price\n  installationPrice\n  installationService\n  installations {\n    available\n    priceQuote\n    startupFee\n  }\n  liftOrScaffolding\n  cartCustomProducts(status: ready) {\n    customProduct {\n      productSpecification\n      id\n      price\n      generalPrice\n      width\n      height\n      material { title price name}\n      glazing { title price noGlass}\n      innerColor { title price}\n      outerColor { title price}\n      openingDirection { title price}\n      hinge { title price}\n      latch { title price}\n      handle { title price}\n      lockCore { title price}\n      safetyLock { title price}\n      glass { title price}\n      glassSpacer { id title }\n      spross { title price}\n      profile { title price}\n      windowSill { title price}\n      windowBlind { title price fabricFamily}\n      ventilationGrill { title price}\n      mosquitoNet { title price}\n      threshold { title price}\n      windbrake { title price}\n      emergencyExit { title price}\n      packer { title price}\n      panelProfile { title price}\n      product { id title code featuredImage { url } layoutPosts layoutSquares }\n      subCategory { title id }\n      category { title name id }\n      featuredImage {\n      url\n    }\n    }\n    installationOptions {\n    available\n    decorativeFrames { frame painting price }\n    selectedDecorativeFrames { frame painting price}\n    selectedStrategies {\n      price\n      name\n    }\n    strategies {\n      name\n      price\n    }\n  }\n    price\n    quantity\n    status\n    id\n  }\n  region {\n    id\n    code\n    name\n  }\n  priceBreakdown {\n    subtotal\n    totalDiscounts\n    shippingPrice\n    grossPrice\n    voucherDiscountAmount\n    vatAmount\n    vatPercentage\n    webDiscount {\n      amount\n      percentage\n    }\n    campaignDiscountAmount {\n      bulk\n      flat\n      stackTiered\n      subCategory\n      tiered\n      name\n    }\n    campaigns {\n      name\n      amount\n      type\n    }\n  }\n  voucher {\n    amount\n    code\n    percentage\n  }\n}",s=(0,i.Ps)(o(),a)},20322:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(82729);function i(){let e=(0,r._)(["\nmutation TypesShopMutationType($input: OrdersSetCampaignVoucherInput!) {\n  setOrderCampaignVoucher(input: $input) {\n    order {\n      price\n      priceBreakdown {\n        subtotal\n        totalDiscounts\n        shippingPrice\n        grossPrice\n        voucherDiscountAmount\n        vatAmount\n        vatPercentage\n        webDiscount {\n          amount\n          percentage\n        }\n        campaigns {\n          name\n          amount\n          type\n        }\n        __typename\n      }\n      voucher{\n        amount\n        code\n        percentage\n      }\n    }\n  }\n}"]);return i=function(){return e},e}let o=(0,n(68806).Ps)(i())},46156:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});let r="\n  glazings(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } additionalAttributes available unavailabilityReasons }\n  emergencyExits(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  glasses(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  glassSpacers(includeDisabled: true) { id title priceDiff featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons}\n  handles(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  hinges(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  innerColors(includeDisabled: true) { id title priceDiff description featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  latches(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  lockCores(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  materials(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  openingDirections(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  outerColors(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  packers(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  panelProfiles(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  profiles(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  safetyLocks(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  sprosses(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  thresholds(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  ventilationGrills(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  windbrakes(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  windowSills(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  windowBlinds(includeDisabled: true) { id title priceDiff description additionalAttributes featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n  mosquitoNets(includeDisabled: true) { id title priceDiff description additionalAttributes productionCode featuredImage { url } inactiveFeaturedImage { url } available unavailabilityReasons }\n"},71754:function(e,t,n){"use strict";n.d(t,{C4:function(){return l},I1:function(){return f},I7:function(){return m},IY:function(){return h},JB:function(){return g},JJ:function(){return u},QI:function(){return a},Xg:function(){return c},Z3:function(){return d},hW:function(){return _},kH:function(){return y},yE:function(){return p},z6:function(){return s}});var r=n(11752),i=n.n(r);let o=n(89186),a=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/,s=1e3,l=24,c=60,u=60,d="checkoutState",p="newsletterState",f=o.publicRuntimeConfig.unconsolidationWhitelist,h=e=>({dk:"https://".concat(e,"klarvinduer.dk"),da:"https://".concat(e,"klarvinduer.dk"),se:"https://".concat(e,"klarfonster.se"),sv:"https://".concat(e,"klarfonster.se"),no:"https://".concat(e,"klarvinduer.no"),uk:"https://".concat(e,"klarwindows.co.uk"),en:"https://".concat(e,"klarwindows.co.uk"),de:"https://".concat(e,"klarfenster.de"),et:"https://".concat(e,"klaraknad.ee"),ee:"https://".concat(e,"klaraknad.ee")}),m={dk:"da-dk",da:"da-dk",uk:"en-gb",en:"en-gb",gb:"en-gb",se:"sv-se",sv:"sv-se",no:"no-no",de:"de-de",ee:"et-ee",et:"et-ee"},g=["dk","se","no","uk","de","ee"];function y(){let{publicRuntimeConfig:e}=i()(),{subdomain:t,NEXT_PUBLIC_KLARHOME_ENABLED:n,SITE_ENV:r,countryUrls:o}=e;return{subdomain:t,isEnabledKlarHome:"true"===n,domain:"https://".concat(t,"klarhome.com"),SITE_ENV:r,publicRuntimeConfig:e,countryUrls:o}}let _={uk:"UK",dk:"Denmark",se:"Sweden",no:"Norway",de:"Germany",et:"Estonia"}},24269:function(e,t,n){"use strict";n.d(t,{D2:function(){return c},UU:function(){return a},ni:function(){return u},rU:function(){return s},xC:function(){return l}});let r=n(89186),i={dk:"dk",uk:"uk",se:"se",no:"no",de:"de",et:"ee"},o={dk:"da",uk:"en",se:"sv",no:"no",de:"de",et:"et"},a=r.publicRuntimeConfig.localeDomains;function s(e){switch(e){case"dk":case"da-dk":return"da-dk";case"uk":case"en":case"en-gb":case"global":default:return"en-gb";case"se":case"sv-se":return"sv-se";case"no":case"no-no":return"no-no";case"de":case"de-de":return"de-de";case"et":case"et-ee":return"et-ee"}}function l(e){switch(e){case"dk":case"da-dk":return"da-dk";case"uk":case"en-gb":default:return"en-gb";case"se":case"sv-se":return"sv-se";case"no":case"no-no":return"no-no";case"de":case"de-de":return"de-de";case"et":case"et-ee":return"et-ee"}}function c(e){switch(e){case"dk":case"da-dk":return i.dk;case"uk":case"en-gb":default:return i.uk;case"se":case"sv-se":return i.se;case"no":case"no-no":return i.no;case"de":case"de-de":return i.de;case"et":case"et-ee":return i.et}}function u(e){switch(e){case"dk":case"da-dk":return o.dk;case"uk":case"en-gb":default:return o.uk;case"se":case"sv-se":return o.se;case"no":case"no-no":return o.no;case"de":case"de-de":return o.de;case"et":case"et-ee":return o.et}}},89186:function(e,t,n){"use strict";var r=n(34155);let i="";"production"!==r.env.SITE_ENV&&(i="staging."),r.env.PORT&&r.env.PORT;let o={"da-dk":{staging:!0,production:!0,coexist:!1},"en-gb":{staging:!0,production:!0,coexist:!1},"sv-se":{staging:!0,production:!0,coexist:!1},"no-no":{staging:!0,production:!0,coexist:!1},"de-de":{staging:!0,production:!0,coexist:!1},"et-ee":{staging:!0,production:!0,coexist:!1},global:{staging:!1,production:!1,coexist:!1}},a={"da-dk":"klarvinduer.dk","en-gb":"klarwindows.co.uk","sv-se":"klarfonster.se","no-no":"klarvinduer.no","de-de":"klarfenster.de","et-ee":"klaraknad.ee",global:"klarvinduer.dk"};e.exports={output:"standalone",logging:{fetches:{fullUrl:!0,hmrRefreshes:!0}},compiler:{removeConsole:"production"===r.env.SITE_ENV&&{exclude:["error"]}},i18n:{locales:["en-gb","da-dk","sv-se","no-no","de-de","et-ee","global"],defaultLocale:"en-gb",localeDetection:!1,domains:[{domain:"".concat(i,"klarvinduer.dk"),defaultLocale:"da-dk",locales:["da-dk"]},{domain:"".concat(i,"klarfonster.se"),defaultLocale:"sv-se",locales:["sv-se"]},{domain:"".concat(i,"klarwindows.co.uk"),defaultLocale:"en-gb",locales:["en-gb"]},{domain:"".concat(i,"klarvinduer.no"),defaultLocale:"no-no",locales:["no-no"]},{domain:"".concat(i,"klarfenster.de"),defaultLocale:"de-de",locales:["de-de"]},{domain:"".concat(i,"klaraknad.ee"),defaultLocale:"et-ee",locales:["et-ee"]}]},images:{remotePatterns:[{protocol:"https",hostname:"www.datocms-assets.com",pathname:"/**"},{protocol:"https",hostname:"d17ktk30aejg83.cloudfront.net",pathname:"/**"},{protocol:"https",hostname:"d2jnbj84ss4325.cloudfront.net",pathname:"/**"},{protocol:"https",hostname:"www.co2neutralwebsite.com",pathname:"/**"},{protocol:"https",hostname:"d1hj5pnfxckeuq.cloudfront.net",pathname:"/**"},{protocol:"https",hostname:"dstwezgsmn7v8.cloudfront.net",pathname:"/**"}]},env:{NEXT_DATOCMS_API_TOKEN:"5c2679a71a633229a8d55b3b623a21",REDIS_URL:"redis://klar-prod-front-dbyufe.serverless.euw1.cache.amazonaws.com:6379"},serverRuntimeConfig:{},publicRuntimeConfig:{subdomain:i,SITE_ENV:r.env.SITE_ENV,REDIS_URL:"redis://klar-prod-front-dbyufe.serverless.euw1.cache.amazonaws.com:6379",NEXT_PUBLIC_KLARHOME_ENABLED:"false",hideDraftCartCustomProducts:!0,dato:{showDraftContent:"production"!==r.env.SITE_ENV},countryUrls:{dk:"https://".concat(i,"klarvinduer.dk"),da:"https://".concat(i,"klarvinduer.dk"),se:"https://".concat(i,"klarfonster.se"),sv:"https://".concat(i,"klarfonster.se"),no:"https://".concat(i,"klarvinduer.no"),uk:"https://".concat(i,"klarwindows.co.uk"),en:"https://".concat(i,"klarwindows.co.uk"),de:"https://".concat(i,"klarfenster.de"),et:"https://".concat(i,"klaraknad.ee"),ee:"https://".concat(i,"klaraknad.ee")},co2NeutralLinks:{uk:"https://www.co2neutralwebsite.com/certificate/6193/en",dk:"https://www.ingenco2.dk/certificate/6148/da",se:"https://www.minskaco2.se/certificate/6192/sv",no:"https://www.ingenco2.dk/certificate/6319/no",de:"https://www.co2neutralwebsite.de/certificate/7253/de"},sendgridLists:{uk:{b2b:"453cf588-8ae8-4b24-8835-86c11e491dbb",b2c:"9ce7f360-3a4c-45ee-b5e7-f2dbc35f5e35"},dk:{b2b:"d4403974-48f5-42ec-9827-f6c5e3930f25",b2c:"b79cd0cc-65fd-4a5c-b314-4933d0f4354f"},se:{b2b:"92ca6e54-9376-471c-ade0-f6f7ec20e179",b2c:"96e6b696-cdbf-4c1f-96f2-8ad0f4fcb1c3"},no:{b2b:"7280b105-ac94-4e33-85ea-7a4ac5717c33",b2c:"dc2136de-eb81-47a3-ab0f-eb59f935e9b8"},ee:{b2b:"433bf0b7-582b-4724-a47f-bfb9a8f45737",b2c:"ed47a7d4-596d-4e0b-bb47-a113d2da28d2"},de:{b2b:"a0ee81ee-06e9-41db-9c30-ba51a79d1b13",b2c:"19003a6a-4702-44f8-aaf2-94b53873ee5c"}},gtagMeasurementId:"G-VNLPPEN5GF",gtmTransportUrl:"https://sgtm.klarhome.com",tagManagerId:"GTM-5PWW7HS",facebookPageConfigs:{uk:{pageId:"103126071311925",lang:"en_GB"},dk:{pageId:"1417679545204899",lang:"da_DK"},se:{pageId:"116069263315934",lang:"sv_SE"},no:{pageId:"100247185395005",lang:"nb_NO"},de:{pageId:"106565045272787",lang:"de_DE"},ee:{pageId:"107245474960983",lang:"et_EE"}},currencies:{uk:"GBP",dk:"DKK",se:"SEK",no:"NOK",de:"EUR",ee:"EUR"},trustedShopsId:{dk:"226086d0d088c6807da239faf631ff4d",se:"330fd59f-2927-4bec-84bd-07201896c5ac",de:"XB4297B9B967FB7B9BA53CC1275B87A6A",no:"2332",certificateRegionNo:"no",certificateRegionDe:"de"},klarnaMerchantIds:"production"===r.env.SITE_ENV?{uk:null,dk:"7668b268-b82e-527b-b8c1-c4e91317c289",se:"dac0c711-d08e-5981-960e-b38328c4bc80",no:"c2299869-ea9f-54eb-95d2-3182aec70914",de:null,ee:null}:{uk:null,dk:"58052086-99ff-54e1-9769-0ef0be259005",se:"58052086-99ff-54e1-9769-0ef0be259005",no:"58052086-99ff-54e1-9769-0ef0be259005",de:null,ee:null},unconsolidationWhitelist:o,localeDomains:a},rewrites:async()=>[{source:"/:categorySlug/:subCategorySlug/:productSlug/:id(\\d{1,})",destination:"/:categorySlug/:subCategorySlug/product/:productSlug/:id"},{source:"/:categorySlug/:subCategorySlug/:materialSlug/:productSlug/:id(\\d{1,})",destination:"/:categorySlug/:subCategorySlug/product/:materialSlug/:productSlug/:id"},{source:"/:categorySlug/:subCategorySlug/:materialSlug/:colorSlug/:productSlug/:id(\\d{1,})",destination:"/:categorySlug/:subCategorySlug/product/:materialSlug/:colorSlug/:productSlug/:id"}],redirects:async()=>[{source:"/en-gb/customer-service",destination:"/en-gb/reclamation",locale:!1,permanent:!0},{source:"/da-dk/reklamationer",destination:"/da-dk/reclamation",locale:!1,permanent:!0},{source:"/sv-se/reklamation",destination:"/sv-se/reclamation",locale:!1,permanent:!0},{source:"/no-no/reklamasjoner",destination:"/no-no/reclamation",locale:!1,permanent:!0},{source:"/de-de/reklamation",destination:"/de-de/reclamation",locale:!1,permanent:!0},{source:"/et-ee/abi",destination:"/et-ee/reclamation",locale:!1,permanent:!0}],async headers(){{let e="production"==r.env.SITE_ENV?"production":"staging";return Object.entries(o).filter(t=>{let[n,r]=t;return!0===r[e]&&r.coexist}).map(e=>{let[t,n]=e;return"".concat(i).concat(a[t])}).map(e=>({source:"/:path*",has:[{type:"host",value:e}],headers:[{key:"X-Robots-Tag",value:"noindex"}]}))}}};let{withSentryConfig:s}=n(76666);e.exports=s(e.exports,{org:"klar-home-ou",project:"javascript-nextjs",silent:!r.env.CI,widenClientFileUpload:!0,reactComponentAnnotation:{enabled:!0},tunnelRoute:"/monitoring",hideSourceMaps:!0,disableLogger:!0,automaticVercelMonitors:!0})},52485:function(e,t,n){"use strict";let r,i,o,a,s,l,c,u,d,p,f,h,m,g,y,_,v,b,S;var E,T,w,I,k,O,A,C,N=n(42990);function D(e,t,n=[t],r="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(e=>({name:`${r}:@sentry/${e}`,version:N.J})),version:N.J}),e._metadata=i}var x=n(39424),R=n(41001),M=n(41982),P=n(89163),L=n(94223);let B=[];function U(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function F(e,t,n){if(n[t.name]){L.X&&R.kg.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,-1===B.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),B.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}L.X&&R.kg.log(`Integration installed: ${t.name}`)}let j=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],$=(e={})=>({name:"InboundFilters",processEvent:(t,n,r)=>{var i,o;return((i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:j],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,r.getOptions())).ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(t)?(L.X&&R.kg.warn(`Event dropped due to being internal Sentry Error.
Event: ${(0,M.jH)(t)}`),0):(o=i.ignoreErrors,!t.type&&o&&o.length&&(function(e){let t;let n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push(`${t.type}: ${t.value}`)),n})(t).some(e=>(0,P.U0)(e,o)))?(L.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${(0,M.jH)(t)}`),0):t.type||!t.exception||!t.exception.values||0===t.exception.values.length||t.message||t.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value)?!function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&(0,P.U0)(n,t)}(t,i.ignoreTransactions)?!function(e,t){if(!t||!t.length)return!1;let n=W(e);return!!n&&(0,P.U0)(n,t)}(t,i.denyUrls)?function(e,t){if(!t||!t.length)return!0;let n=W(e);return!n||(0,P.U0)(n,t)}(t,i.allowUrls)||(L.X&&R.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${(0,M.jH)(t)}.
Url: ${W(t)}`),0):(L.X&&R.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${(0,M.jH)(t)}.
Url: ${W(t)}`),0):(L.X&&R.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${(0,M.jH)(t)}`),0):(L.X&&R.kg.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${(0,M.jH)(t)}`),0))?t:null}});function W(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return L.X&&R.kg.error(`Cannot extract url for event ${(0,M.jH)(e)}`),null}}var G=n(27179),H=n(73076);let q=new WeakMap,z=()=>({name:"FunctionToString",setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,G.HK)(this),n=q.has((0,H.s3)())&&void 0!==t?t:this;return r.apply(n,e)}}catch(e){}},setup(e){q.set(e,!0)}});var V=n(42283);let K=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n;if((n=e)&&(function(e,t){let n=e.message,r=t.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&J(e,t)&&Y(e,t))}(t,n)||function(e,t){let n=Q(t),r=Q(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&J(e,t)&&Y(e,t))}(t,n)))return L.X&&R.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Y(e,t){let n=(0,V.Fr)(e),r=(0,V.Fr)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function J(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Q(e){return e.exception&&e.exception.values&&e.exception.values[0]}var X=n(1525),Z=n(29531);let ee=Z.GLOBAL_OBJ;function et(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}let en={},er={};function ei(e,t){en[e]=en[e]||[],en[e].push(t)}function eo(e,t){er[e]||(t(),er[e]=!0)}function ea(e,t){let n=e&&en[e];if(n)for(let r of n)try{r(t)}catch(t){X.X&&R.kg.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${(0,V.$P)(r)}
Error:`,t)}}let es=Z.GLOBAL_OBJ,el=Z.GLOBAL_OBJ;function ec(e){let t="history";ei(t,e),eo(t,eu)}function eu(){if(!function(){let e=es.chrome,t=e&&e.app&&e.app.runtime,n="history"in es&&!!es.history.pushState&&!!es.history.replaceState;return!t&&n}())return;let e=el.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=i,t=String(n);i=t,ea("history",{from:e,to:t})}return e.apply(this,t)}}el.onpopstate=function(...t){let n=el.location.href,r=i;if(i=n,ea("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,G.hl)(el.history,"pushState",t),(0,G.hl)(el.history,"replaceState",t)}let ed=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ep(e,t=!1){let{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function ef(e){let t=ed.exec(e);if(!t){(0,R.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i="",o="",a="",s=""]=t.slice(1),l="",c=s,u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){let e=c.match(/^\d+/);e&&(c=e[0])}return eh({host:o,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function eh(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}var em=n(16824),eg=n(80128),ey=n(83408);function e_(e,t=[]){return[e,t]}function ev(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function eb(e){return Z.GLOBAL_OBJ.__SENTRY__&&Z.GLOBAL_OBJ.__SENTRY__.encodePolyfill?Z.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}let eS={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function eE(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function eT(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ep(r)},...i&&{trace:(0,G.Jr)({...i})}}}class ew extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var eI=n(26181),ek=n(72123),eO=n(81585),eA=n(10042);function eC(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if("number"!=typeof t||isNaN(t)||t<0||t>1){L.X&&R.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}var eN=n(5808);let eD="Not capturing exception because it's already been captured.";class ex{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){let t="string"==typeof e?ef(e):eh(e);if(t&&function(e){if(!X.X)return!0;let{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(R.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(t&&isNaN(parseInt(t,10)))||(R.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(R.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}(e.dsn):L.X&&R.kg.warn("No DSN provided, client will not send events."),this._dsn){var t,n,r;let i=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${(0,G._j)({sentry_key:t.publicKey,sentry_version:"7",...r&&{sentry_client:`${r.name}/${r.version}`}})}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){let r=(0,M.DM)();if((0,M.YO)(e))return L.X&&R.kg.log(eD),r;let i={event_id:r,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n))),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,M.DM)(),...n},o=(0,em.Le)(e)?e:String(e),a=(0,em.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,r))),i.event_id}captureEvent(e,t,n){let r=(0,M.DM)();if(t&&t.originalException&&(0,M.YO)(t.originalException))return L.X&&R.kg.log(eD),r;let i={event_id:r,...t},o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,o||n)),i.event_id}captureSession(e){"string"!=typeof e.release?L.X&&R.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,eA.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(n=>t.flush(e).then(e=>n&&e))):(0,eg.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];F(this,e,this._integrations),t||U(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){var i;let o=eE(n),a=e.type&&"replay_event"!==e.type?e.type:"event";(i=n&&n.sdk)&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||i.name,e.sdk.version=e.sdk.version||i.version,e.sdk.integrations=[...e.sdk.integrations||[],...i.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...i.packages||[]]);let s=eT(e,o,r,t);return delete e.sdkProcessingMetadata,e_(s,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=function(e,t){let[n,r]=e;return[n,[...r,t]]}(n,function(e){let t="string"==typeof e.data?eb(e.data):e.data;return[(0,G.Jr)({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}(e));let r=this.sendEnvelope(n);r&&r.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let t=function(e,t,n,r){let i=eE(n);return e_({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:ep(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let r="number"==typeof n?n:1,i=`${e}:${t}`;L.X&&R.kg.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(L.X&&R.kg.error("Error while sending event:",e),e)):(L.X&&R.kg.error("Transport disabled"),(0,eg.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let n={};return t.forEach(t=>{t&&F(e,t,n)}),n}(this,e),U(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i)for(let e of(r=!0,i)){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}let o="ok"===e.status;(o&&0===e.errors||o&&n)&&((0,eA.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new eg.cW(t=>{let n=0,r=setInterval(()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,H.aF)()){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>0&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,eN.R)(i,e,t,n,this,r).then(e=>{if(null===e)return e;let t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){let{traceId:n,spanId:r,parentSpanId:i,dsc:o}=t;e.contexts={trace:(0,G.Jr)({trace_id:n,span_id:r,parent_span_id:i}),...e.contexts};let a=o||(0,ek._l)(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e})}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then(e=>e.event_id,e=>{L.X&&("log"===e.logLevel?R.kg.log(e.message):R.kg.warn(e))})}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,o=eM(e),a=eR(e),s=e.type||"error",l=`before send for type \`${s}\``,c=void 0===i?void 0:eC(i);if(a&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),(0,eg.$2)(new ew(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===s?"replay":s,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new ew("An event processor returned `null`, will not send event.","log");return t.data&&!0===t.data.__sentry__?n:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,em.J8)(e))return e.then(e=>{if(!(0,em.PO)(e)&&null!==e)throw new ew(n);return e},e=>{throw new ew(`${t} rejected with ${e}`)});if(!(0,em.PO)(e)&&null!==e)throw new ew(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t;if(eR(n)&&i)return i(n,r);if(eM(n)){if(n.spans&&a){let t=[];for(let r of n.spans){let n=a(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o){if(n.spans){let e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,r,n,t),l)}).then(r=>{if(null===r){if(this.recordDroppedEvent("before_send",u,e),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new ew(`${l} returned \`null\`, will not send event.`,"log")}let i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,r),o){let e=(r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(r.spans?r.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let a=r.transaction_info;return o&&a&&r.transaction!==e.transaction&&(r.transaction_info={...a,source:"custom"}),this.sendEvent(r,t),r}).then(null,e=>{if(e instanceof ew)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ew(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;L.X&&R.kg.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){L.X&&R.kg.log("No outcomes to send");return}if(!this._dsn){L.X&&R.kg.log("No dsn provided, will not send outcomes");return}L.X&&R.kg.log("Sending outcomes:",t);let n=e_((e=this._options.tunnel&&ep(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eI.yW)(),discarded_events:t}]]);this.sendEnvelope(n)}}function eR(e){return void 0===e.type}function eM(e){return"transaction"===e.type}function eP(e,t){let n=eB(e,t),r={type:function(e){let t=e&&e.name;return!t&&eF(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}(t),value:function(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:eF(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function eL(e,t){return{exception:{values:[eP(e,t)]}}}function eB(e,t){let n=t.stacktrace||t.stack||"",r=t&&eU.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,i)}catch(e){}return[]}let eU=/Minified React error #\d+;/i;function eF(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ej(e,t,n,r,i){let o;if((0,em.VW)(t)&&t.error)return eL(e,t.error);if((0,em.TX)(t)||(0,em.fm)(t)){if("stack"in t)o=eL(e,t);else{let i=t.name||((0,em.TX)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;o=e$(e,a,n,r),(0,M.Db)(o,a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,em.VZ)(t)?eL(e,t):((0,em.PO)(t)||(0,em.cO)(t)?o=function(e,t,n,r){let i=(0,H.s3)(),o=i&&i.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:(0,ey.Qy)(t,o)};if(a)return{exception:{values:[eP(e,a)]},extra:s};let l={exception:{values:[{type:(0,em.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,G.zf)(e),r=t?"promise rejection":"exception";if((0,em.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,em.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=eB(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(o=e$(e,t,n,r),(0,M.Db)(o,`${t}`,void 0)),(0,M.EG)(o,{synthetic:!0}),o)}function e$(e,t,n,r){let i={};if(r&&n){let r=eB(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,em.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}let eW=Z.GLOBAL_OBJ,eG=0;function eH(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,G.HK)(e))return e}catch(t){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(e=>eH(e,t));return e.apply(this,i)}catch(e){throw eG++,setTimeout(()=>{eG--}),(0,H.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,M.Db)(e,void 0,void 0),(0,M.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,x.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}(0,G.$Q)(r,e),(0,G.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(e){}return r}class eq extends ex{constructor(e){let t={parentSpanIsAlwaysRootSpan:!0,...e};D(t,"browser",["browser"],eW.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&eW.document&&eW.document.addEventListener("visibilitychange",()=>{"hidden"===eW.document.visibilityState&&this._flushOutcomes()})}eventFromException(e,t){return function(e,t,n,r){let i=ej(e,t,n&&n.syntheticException||void 0,r);return(0,M.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,eg.WD)(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let o=e$(e,t,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,eg.WD)(o)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return;let t=function(e,{metadata:t,tunnel:n,dsn:r}){return e_({event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:ep(r)}},[[{type:"user_report"},e]])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}function ez(e){ei("dom",e),eo("dom",eV)}function eV(){if(!el.document)return;let e=ea.bind(null,"dom"),t=eK(e,!0);el.document.addEventListener("click",t,!1),el.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=el[t]&&el[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,G.hl)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=eK(e);o.handler=r,t.call(this,n,r,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}}),(0,G.hl)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}}))})}function eK(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch(e){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;(0,G.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,G.xp)(r,"_sentryId",(0,M.DM)());let i="keypress"===n.type?"input":n.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==s)return!1}catch(e){}return!0}(n)&&(e({event:n,name:i,global:t}),a=n.type,s=r?r._sentryId:void 0),clearTimeout(o),o=el.setTimeout(()=>{s=void 0,a=void 0},1e3)}}let eY="__sentry_xhr_v3__";function eJ(e){ei("xhr",e),eo("xhr",eQ)}function eQ(){if(!el.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=1e3*(0,eI.ph)(),i=(0,em.HD)(n[0])?n[0].toUpperCase():void 0,o=function(e){if((0,em.HD)(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!i||!o)return e.apply(t,n);t[eY]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let a=()=>{let e=t[eY];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}ea("xhr",{endTimestamp:1e3*(0,eI.ph)(),startTimestamp:r,xhr:t})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,o=t[eY];return o&&(0,em.HD)(r)&&(0,em.HD)(i)&&(o.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[eY];return r&&(void 0!==n[0]&&(r.body=n[0]),ea("xhr",{startTimestamp:1e3*(0,eI.ph)(),xhr:t})),e.apply(t,n)}})}function eX(e,t){let n=(0,H.s3)(),r=(0,H.aF)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=n.getOptions();if(o<=0)return;let a={timestamp:(0,eI.yW)(),...e},s=i?(0,R.Cf)(()=>i(a,t)):a;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,o))}function eZ(){"console"in Z.GLOBAL_OBJ&&R.RU.forEach(function(e){e in Z.GLOBAL_OBJ.console&&(0,G.hl)(Z.GLOBAL_OBJ.console,e,function(t){return R.LD[e]=t,function(...t){ea("console",{args:t,level:e});let n=R.LD[e];n&&n.apply(Z.GLOBAL_OBJ.console,t)}})})}function e0(e,t){let n="fetch";ei(n,e),eo(n,()=>e1(void 0,t))}function e1(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ee))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(et(ee.fetch))return!0;let e=!1,t=ee.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=et(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){X.X&&R.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,G.hl)(Z.GLOBAL_OBJ,"fetch",function(t){return function(...n){let{method:r,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:e6(t),method:e4(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:e6(t),method:e4(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:r,url:i},startTimestamp:1e3*(0,eI.ph)()};e||ea("fetch",{...o});let a=Error().stack;return t.apply(Z.GLOBAL_OBJ,n).then(async t=>(e?e(t):ea("fetch",{...o,endTimestamp:1e3*(0,eI.ph)(),response:t}),t),e=>{throw ea("fetch",{...o,endTimestamp:1e3*(0,eI.ph)(),error:e}),(0,em.VZ)(e)&&void 0===e.stack&&(e.stack=a,(0,G.xp)(e,"framesToPop",1)),e})}})}async function e2(e,t){if(e&&e.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function e3(e){let t;try{t=e.clone()}catch(e){return}e2(t,()=>{ea("fetch-body-resolved",{endTimestamp:1e3*(0,eI.ph)(),response:e})})}function e4(e,t){return!!e&&"object"==typeof e&&!!e[t]}function e6(e){return"string"==typeof e?e:e?e4(e,"url")?e.url:e.toString?e.toString():"":""}var e5=n(1869);let e8=["fatal","error","warning","log","info","debug"];function e9(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function e7(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}let te=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){let t="console";ei(t,e),eo(t,eZ)}(function(t){var n;if((0,H.s3)()!==e)return;let r={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(n=t.level)?"warning":e8.includes(n)?n:"log",message:(0,P.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${(0,P.nK)(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}eX(r,{input:t.args,level:t.level})}),t.dom&&ez((n=t.dom,function(t){let r,i;if((0,H.s3)()!==e)return;let o="object"==typeof n?n.serializeAttribute:void 0,a="object"==typeof n&&"number"==typeof n.maxStringLength?n.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,n=e&&e.target?e.target:e;r=(0,e5.Rt)(n,{keyAttrs:o,maxStringLength:a}),i=(0,e5.iY)(n)}catch(e){r="<unknown>"}if(0===r.length)return;let s={category:`ui.${t.name}`,message:r};i&&(s.data={"ui.component_name":i}),eX(s,{event:t.event,name:t.name,global:t.global})})),t.xhr&&eJ(function(t){if((0,H.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[eY];if(!n||!r||!i)return;let{method:o,url:a,status_code:s,body:l}=i,c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r},u=e9(s);eX({category:"xhr",data:{method:o,url:a,status_code:s},type:"http",level:u},c)}),t.fetch&&e0(function(t){if((0,H.s3)()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(!(!r||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error)eX({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{let e=t.response,i={...t.fetchData,status_code:e&&e.status},o={input:t.args,response:e,startTimestamp:n,endTimestamp:r},a=e9(i.status_code);eX({category:"fetch",data:i,type:"http",level:a},o)}}}),t.history&&ec(function(t){if((0,H.s3)()!==e)return;let n=t.from,r=t.to,i=e7(eW.location.href),o=n?e7(n):void 0,a=e7(r);o&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),eX({category:"navigation",data:{from:n,to:r}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,H.s3)()===e&&eX({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,M.jH)(t)},{event:t})})}}},tt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],tn=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,G.hl)(eW,"setTimeout",tr),t.setInterval&&(0,G.hl)(eW,"setInterval",tr),t.requestAnimationFrame&&(0,G.hl)(eW,"requestAnimationFrame",ti),t.XMLHttpRequest&&"XMLHttpRequest"in eW&&(0,G.hl)(XMLHttpRequest.prototype,"send",to);let e=t.eventTarget;e&&(Array.isArray(e)?e:tt).forEach(ta)}}};function tr(e){return function(...t){let n=t[0];return t[0]=eH(n,{mechanism:{data:{function:(0,V.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ti(e){return function(t){return e.apply(this,[eH(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,V.$P)(e)},handled:!1,type:"instrument"}})])}}function to(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,G.hl)(n,e,function(t){let n={mechanism:{data:{function:e,handler:(0,V.$P)(t)},handled:!1,type:"instrument"}},r=(0,G.HK)(t);return r&&(n.mechanism.data.handler=(0,V.$P)(r)),eH(t,n)})}),e.apply(this,t)}}function ta(e){let t=eW[e]&&eW[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&((0,G.hl)(t,"addEventListener",function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=eH(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,V.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,eH(r,{mechanism:{data:{function:"addEventListener",handler:(0,V.$P)(r),target:e},handled:!1,type:"instrument"}}),i])}}),(0,G.hl)(t,"removeEventListener",function(e){return function(t,n,r){try{let i=n&&n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}}))}let ts=null;function tl(e){let t="error";ei(t,e),eo(t,tc)}function tc(){ts=Z.GLOBAL_OBJ.onerror,Z.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return ea("error",{column:r,error:i,line:n,msg:e,url:t}),!!ts&&!ts.__SENTRY_LOADER__&&ts.apply(this,arguments)},Z.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let tu=null;function td(e){let t="unhandledrejection";ei(t,e),eo(t,tp)}function tp(){tu=Z.GLOBAL_OBJ.onunhandledrejection,Z.GLOBAL_OBJ.onunhandledrejection=function(e){return ea("unhandledrejection",e),!tu||!!tu.__SENTRY_LOADER__||tu.apply(this,arguments)},Z.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tf=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&tl(t=>{let{stackParser:n,attachStacktrace:r}=th();if((0,H.s3)()!==e||eG>0)return;let{msg:i,url:o,line:a,column:s,error:l}=t,c=function(e,t,n,r){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,em.HD)(t)&&t.length>0?t:(0,e5.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:V.Fi,in_app:!0,lineno:u}),e}(ej(n,l||i,void 0,r,!1),o,a,s);c.level="error",(0,x.eN)(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&td(t=>{let{stackParser:n,attachStacktrace:r}=th();if((0,H.s3)()!==e||eG>0)return;let i=function(e){if((0,em.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=(0,em.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:ej(n,i,void 0,r,!0);o.level="error",(0,x.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function th(){let e=(0,H.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let tm=()=>({name:"HttpContext",preprocessEvent(e){if(!eW.navigator&&!eW.location&&!eW.document)return;let t=e.request&&e.request.url||eW.location&&eW.location.href,{referrer:n}=eW.document||{},{userAgent:r}=eW.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}});function tg(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function ty(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let t_=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){let o=i.getOptions();!function(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!(0,em.V9)(a.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=(function e(t,n,r,i,o,a,s,l){if(a.length>=r+1)return a;let c=[...a];if((0,em.V9)(i[o],Error)){tg(s,l);let a=t(n,i[o]),u=c.length;ty(a,o,u,l),c=e(t,n,r,i[o],o,[a,...c],a,u)}return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,em.V9)(i,Error)){tg(s,l);let u=t(n,i),d=c.length;ty(u,`errors[${a}]`,d,l),c=e(t,n,r,i,o,[u,...c],u,d)}}),c})(e,t,i,a.originalException,r,o.exception.values,s,0).map(e=>(e.value&&(e.value=(0,P.$G)(e.value,n)),e)))}(eP,o.stackParser,o.maxValueLength,n,t,e,r)}}};function tv(e,t,n,r){let i={filename:e,function:"<anonymous>"===t?V.Fi:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let tb=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,tS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tE=/\((\S*)(?::(\d+))(?::(\d+))\)/,tT=[30,e=>{let t=tb.exec(e);if(t){let[,e,n,r]=t;return tv(e,V.Fi,+n,+r)}let n=tS.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=tE.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=tA(n[1]||V.Fi,n[2]);return tv(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],tw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tI=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tk=[50,e=>{let t=tw.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=tI.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||V.Fi;return[n,e]=tA(n,e),tv(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],tO=(0,V.pE)(tT,tk),tA=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:V.Fi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tC={};function tN(e){let t=tC[e];if(t)return t;let n=el[e];if(et(n))return tC[e]=n.bind(el);let r=el.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return n?tC[e]=n.bind(el):n}function tD(...e){return tN("setTimeout")(...e)}function tx(e,t,n=Date.now()){return(e[t]||e.all||0)>n}function tR(e,{statusCode:t,headers:n},r=Date.now()){let i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,n,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}function tM(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function tP(e,t=tN("fetch")){let n=0,r=0;return function(e,t,n=function(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,eg.$2)(new ew("Not adding Promise because buffer limit was reached."));let i=r();return -1===t.indexOf(i)&&t.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(e){return new eg.cW((n,r)=>{let i=t.length;if(!i)return n(!0);let o=setTimeout(()=>{e&&e>0&&n(!1)},e);t.forEach(e=>{(0,eg.WD)(e).then(()=>{--i||(clearTimeout(o),n(!0))},r)})})}}}(e.bufferSize||64)){let r={};return{send:function(i){let o=[];if(ev(i,(t,n)=>{let i=eS[n];if(tx(r,i)){let r=tM(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(t)}),0===o.length)return(0,eg.WD)({});let a=e_(i[0],o),s=t=>{ev(a,(n,r)=>{let i=tM(n,r);e.recordDroppedEvent(t,eS[r],i)})};return n.add(()=>t({body:function(e){let[t,n]=e,r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[eb(r),e]:r.push("string"==typeof e?eb(e):e)}for(let e of n){let[t,n]=e;if(i(`
${JSON.stringify(t)}
`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify((0,ey.Fv)(n))}i(e)}}return"string"==typeof r?r:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}(r)}(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&L.X&&R.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tR(r,e),e),e=>{throw s("network_error"),e})).then(e=>e,e=>{if(e instanceof ew)return L.X&&R.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,eg.WD)({});throw e})},flush:e=>n.drain(e)}}(e,function(i){let o=i.body.length;n+=o,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return tC.fetch=void 0,(0,eg.$2)("No fetch implementation available");try{return t(e.url,a).then(e=>(n-=o,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return tC.fetch=void 0,n-=o,r--,(0,eg.$2)(e)}})}function tL(e){return[$(),z(),tn(),te(),tf(),t_(),K(),tm()]}var tB=n(67294),tU=n(34155),tF=n(13533),tj=n(60811),t$=n(31218),tW=n(67973),tG=n(89366);class tH{constructor(e={}){this._traceId=e.traceId||(0,M.DM)(),this._spanId=e.spanId||(0,M.DM)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:eO.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var tq=n(72751);function tz(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[t$.E1],i=n[t$.Wb];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}let tV="_sentryScope",tK="_sentryIsolationScope";function tY(e){return{scope:e[tV],isolationScope:e[tK]}}class tJ{constructor(e={}){this._traceId=e.traceId||(0,M.DM)(),this._spanId=e.spanId||(0,M.DM)().substring(16),this._startTime=e.startTimestamp||(0,eI.ph)(),this._attributes={},this.setAttributes({[t$.S3]:"manual",[t$.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?eO.i0:eO.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,eO.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=(0,eO.$k)(e),function(e){if(!L.X)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,eO.XU)(e),{spanId:r}=e.spanContext(),i=(0,eO.Gx)(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;R.kg.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return(0,G.Jr)({data:this._attributes,description:this._name,op:this._attributes[t$.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,eO._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[t$.S3],_metrics_summary:(0,tq.y)(this),profile_id:this._attributes[t$.p6],exclusive_time:this._attributes[t$.JQ],measurements:tz(this._events),is_segment:this._isStandaloneSpan&&(0,eO.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,eO.Gx)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){L.X&&R.kg.log("[Tracing] Adding an event to span:",e);let r=tQ(t)?t:n||(0,eI.ph)(),i=tQ(t)?{}:t||{},o={name:e,time:(0,eO.$k)(r),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,H.s3)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,eO.Gx)(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,H.s3)();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}let r=t.getTransport();r&&r.send(e).then(null,e=>{L.X&&R.kg.error("Error while sending span:",e)})}(function(e,t){let n=(0,ek.jC)(e[0]),r=t&&t.getDsn(),i=t&&t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:ep(r)}},a=t&&t.getOptions().beforeSendSpan,s=a?e=>a((0,eO.XU)(e)):e=>(0,eO.XU)(e),l=[];for(let t of e){let e=s(t);e&&l.push([{type:"span"},e])}return e_(o,l)}([this],e)):(L.X&&R.kg.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let t=this._convertSpanToTransaction();t&&(tY(this).scope||(0,H.nZ)()).captureEvent(t)}_convertSpanToTransaction(){if(!tX((0,eO.XU)(this)))return;this._name||(L.X&&R.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=tY(this),n=(e||(0,H.nZ)()).getClient()||(0,H.s3)();if(!0!==this._sampled){L.X&&R.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=(0,eO.Dp)(this).filter(e=>e!==this&&!(e instanceof tJ&&e.isStandaloneSpan())).map(e=>(0,eO.XU)(e)).filter(tX),i=this._attributes[t$.Zj],o={contexts:{trace:(0,eO.HR)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...(0,G.Jr)({dynamicSamplingContext:(0,ek.jC)(this)})},_metrics_summary:(0,tq.y)(this),...i&&{transaction_info:{source:i}}},a=tz(this._events);return a&&Object.keys(a).length&&(L.X&&R.kg.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),o.measurements=a),o}}function tQ(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tX(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let tZ="__SENTRY_SUPPRESS_TRACING__";function t0(e){let t=t2();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,eO.$k)(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>(0,H.$e)(e.scope,t):void 0!==i?e=>t1(i,e):e=>e())(()=>{let t=(0,H.nZ)(),i=function(e){let t=(0,tG.Y)(e);if(!t)return;let n=(0,H.s3)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,eO.Gx)(t):t}(t);return e.onlyIfParent&&!i?new tH:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var i;let o;if(!(0,tW.z)())return new tH;let a=(0,H.aF)();if(e&&!n)o=function(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[tZ]&&(0,eO.Tt)(e),a=o?new tJ({...n,parentSpanId:r,traceId:i,sampled:o}):new tH({traceId:i});(0,eO.j5)(e,a);let s=(0,H.s3)();return s&&(s.emit("spanStart",a),n.endTimestamp&&s.emit("spanEnd",a)),a}(e,r,t),(0,eO.j5)(e,o);else if(e){let n=(0,ek.jC)(e),{traceId:i,spanId:a}=e.spanContext(),s=(0,eO.Tt)(e);o=t3({traceId:i,parentSpanId:a,...t},r,s),(0,ek.Lh)(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=t3({traceId:e,parentSpanId:i,...t},r,s),n&&(0,ek.Lh)(o,n)}return function(e){if(!L.X)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,eO.XU)(e),{spanId:i}=e.spanContext(),o=(0,eO.Tt)(e),a=(0,eO.Gx)(e),s=a===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!s){let{op:e,description:t}=(0,eO.XU)(a);c.push(`root ID: ${a.spanContext().spanId}`),e&&c.push(`root op: ${e}`),t&&c.push(`root description: ${t}`)}R.kg.log(`${l}
  ${c.join("\n  ")}`)}(o),(i=o)&&((0,G.xp)(i,tK,a),(0,G.xp)(i,tV,r)),o}({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}function t1(e,t){let n=t2();return n.withActiveSpan?n.withActiveSpan(e,t):(0,H.$e)(n=>((0,tG.D)(n,e||void 0),t(n)))}function t2(){let e=(0,tF.c)();return(0,tj.G)(e)}function t3(e,t,n){let r=(0,H.s3)(),i=r&&r.getOptions()||{},{name:o="",attributes:a}=e,[s,l]=t.getScopeData().sdkProcessingMetadata[tZ]?[!1]:function(e,t){let n;if(!(0,tW.z)(e))return[!1];let r=eC(n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1);return void 0===r?(L.X&&R.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(L.X&&R.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(L.X&&R.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"}`),[!1,r])}(i,{name:o,parentSampled:n,attributes:a,transactionContext:{name:o,parentSampled:n}}),c=new tJ({...e,attributes:{[t$.Zj]:"custom",...e.attributes},sampled:s});return void 0!==l&&c.setAttribute(t$.TE,l),r&&r.emit("spanStart",c),c}function t4(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}let t6=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",t5=(e,t,n,r)=>{let i,o;return a=>{t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=t6(t.value,n),e(t))}},t8=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,t9=()=>el.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],t7=()=>{let e=t9();return e&&e.activationStart||0},ne=(e,t)=>{let n=t9(),r="navigate";return n&&(el.document&&el.document.prerendering||t7()>0?r="prerender":el.document&&el.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:t8(),navigationType:r}},nt=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},nn=e=>{let t=t=>{("pagehide"===t.type||el.document&&"hidden"===el.document.visibilityState)&&e(t)};el.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},nr=e=>{let t=!1;return n=>{t||(e(n),t=!0)}},ni=-1,no=()=>{ni="hidden"!==el.document.visibilityState||el.document.prerendering?1/0:0},na=e=>{"hidden"===el.document.visibilityState&&ni>-1&&(ni="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",na,!0),removeEventListener("prerenderingchange",na,!0))},ns=()=>{addEventListener("visibilitychange",na,!0),addEventListener("prerenderingchange",na,!0)},nl=()=>(el.document&&ni<0&&(no(),ns()),{get firstHiddenTime(){return ni}}),nc=e=>{el.document&&el.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nu=[1800,3e3],nd=(e,t={})=>{nc(()=>{let n;let r=nl(),i=ne("FCP"),o=nt("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-t7(),0),i.entries.push(e),n(!0)))})});o&&(n=t5(e,i,nu,t.reportAllChanges))})},np=[.1,.25],nf=(e,t={})=>{nd(nr(()=>{let n;let r=ne("CLS",0),i=0,o=[],a=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=o[0],n=o[o.length-1];i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}}),i>r.value&&(r.value=i,r.entries=o,n())},s=nt("layout-shift",a);s&&(n=t5(e,r,np,t.reportAllChanges),nn(()=>{a(s.takeRecords()),n(!0)}),setTimeout(n,0))}))},nh=[100,300],nm=(e,t={})=>{nc(()=>{let n;let r=nl(),i=ne("FID"),o=e=>{e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=e=>{e.forEach(o)},s=nt("first-input",a);n=t5(e,i,nh,t.reportAllChanges),s&&nn(nr(()=>{a(s.takeRecords()),s.disconnect()}))})},ng=0,ny=1/0,n_=0,nv=e=>{e.forEach(e=>{e.interactionId&&(ny=Math.min(ny,e.interactionId),ng=(n_=Math.max(n_,e.interactionId))?(n_-ny)/7+1:0)})},nb=()=>l?ng:performance.interactionCount||0,nS=()=>{"interactionCount"in performance||l||(l=nt("event",nv,{type:"event",buffered:!0,durationThreshold:0}))},nE=[200,500],nT=()=>nb()-0,nw=[],nI={},nk=e=>{let t=nw[nw.length-1],n=nI[e.interactionId];if(n||nw.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};nI[t.id]=t,nw.push(t)}nw.sort((e,t)=>t.latency-e.latency),nw.splice(10).forEach(e=>{delete nI[e.id]})}},nO=()=>{let e=Math.min(nw.length-1,Math.floor(nT()/50));return nw[e]},nA=(e,t={})=>{nc(()=>{let n;nS();let r=ne("INP"),i=e=>{e.forEach(e=>{e.interactionId&&nk(e),"first-input"!==e.entryType||nw.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))||nk(e)});let t=nO();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())},o=nt("event",i,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=t5(e,r,nE,t.reportAllChanges),o&&("PerformanceEventTiming"in el&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),nn(()=>{i(o.takeRecords()),r.value<0&&nT()>0&&(r.value=0,r.entries=[]),n(!0)}))})},nC=[2500,4e3],nN={},nD=(e,t={})=>{nc(()=>{let n;let r=nl(),i=ne("LCP"),o=e=>{let t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-t7(),0),i.entries=[t],n())},a=nt("largest-contentful-paint",o);if(a){n=t5(e,i,nC,t.reportAllChanges);let r=nr(()=>{nN[i.id]||(o(a.takeRecords()),a.disconnect(),nN[i.id]=!0,n(!0))});["keydown","click"].forEach(e=>{el.document&&addEventListener(e,()=>setTimeout(r,0),!0)}),nn(r)}})},nx=[800,1800],nR=e=>{el.document&&el.document.prerendering?nc(()=>nR(e)):el.document&&"complete"!==el.document.readyState?addEventListener("load",()=>nR(e),!0):setTimeout(e,0)},nM=(e,t={})=>{let n=ne("TTFB"),r=t5(e,n,nx,t.reportAllChanges);nR(()=>{let e=t9();if(e){let t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-t7(),0),n.entries=[e],r(!0)}})},nP={},nL={};function nB(e,t=!1){return nK("cls",e,nG,c,t)}function nU(e,t=!1){return nK("lcp",e,nq,d,t)}function nF(e){return nK("fid",e,nH,u)}function nj(e){return nK("inp",e,nV,f)}function n$(e,t){return nY(e,t),nL[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),nt(e,t=>{nW(e,{entries:t})},t)}(e),nL[e]=!0),nJ(e,t)}function nW(e,t){let n=nP[e];if(n&&n.length)for(let e of n)try{e(t)}catch(e){}}function nG(){return nf(e=>{nW("cls",{metric:e}),c=e},{reportAllChanges:!0})}function nH(){return nm(e=>{nW("fid",{metric:e}),u=e})}function nq(){return nD(e=>{nW("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function nz(){return nM(e=>{nW("ttfb",{metric:e}),p=e})}function nV(){return nA(e=>{nW("inp",{metric:e}),f=e})}function nK(e,t,n,r,i=!1){let o;return nY(e,t),nL[e]||(o=n(),nL[e]=!0),r&&t({metric:r}),nJ(e,t,i?o:void 0)}function nY(e,t){nP[e]=nP[e]||[],nP[e].push(t)}function nJ(e,t,n){return()=>{n&&n();let r=nP[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function nQ(e){return"number"==typeof e&&isFinite(e)}function nX(e,t,n,{...r}){let i=(0,eO.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),t1(e,()=>{let e=t0({startTime:t,...r});return e&&e.end(n),e})}function nZ(e){let t;let n=(0,H.s3)();if(!n)return;let{name:r,transaction:i,attributes:o,startTime:a}=e,{release:s,environment:l}=n.getOptions(),c=n.getIntegrationByName("Replay"),u=c&&c.getReplayId(),d=(0,H.nZ)(),p=d.getUser(),f=void 0!==p?p.email||p.id||p.ip_address:void 0;try{t=d.getScopeData().contexts.profile.profile_id}catch(e){}return t0({name:r,attributes:{release:s,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:u||void 0,transaction:i,"user_agent.original":el.navigator&&el.navigator.userAgent,...o},startTime:a,experimental:{standalone:!0}})}function n0(){return el&&el.addEventListener&&el.performance}function n1(e){return e/1e3}let n2=0,n3={};function n4(e,t,n,r,i,o){let a=o?t[o]:t[`${n}End`],s=t[`${n}Start`];s&&a&&nX(e,r+n1(s),r+n1(a),{op:`browser.${i||n}`,name:t.name,attributes:{[t$.S3]:"auto.ui.browser.metrics"}})}function n6(e,t,n,r){let i=t[n];null!=i&&i<2147483647&&(e[r]=i)}let n5=[],n8=new Map,n9={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};var n7=n(69737);let re={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function rt(e,t={}){let n;let r=new Map,i=!1,o="externalFinish",a=!t.disableAutoFinish,s=[],{idleTimeout:l=re.idleTimeout,finalTimeout:c=re.finalTimeout,childSpanTimeout:u=re.childSpanTimeout,beforeSpanEnd:d}=t,p=(0,H.s3)();if(!p||!(0,tW.z)())return new tH;let f=(0,H.nZ)(),h=(0,eO.HN)(),m=function(e){let t=t0(e);return(0,tG.D)((0,H.nZ)(),t),L.X&&R.kg.log("[Tracing] Started span is an idle span"),t}(e);function g(){n&&(clearTimeout(n),n=void 0)}function y(e){g(),n=setTimeout(()=>{!i&&0===r.size&&a&&(o="idleTimeout",m.end(e))},l)}function _(e){n=setTimeout(()=>{!i&&a&&(o="heartbeatFailed",m.end(e))},u)}function v(e){i=!0,r.clear(),s.forEach(e=>e()),(0,tG.D)(f,h);let t=(0,eO.XU)(m),{start_timestamp:n}=t;if(!n)return;(t.data||{})[t$.ju]||m.setAttribute(t$.ju,o),R.kg.log(`[Tracing] Idle span "${t.op}" finished`);let a=(0,eO.Dp)(m).filter(e=>e!==m),u=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:n7.jt,message:"cancelled"}),t.end(e),L.X&&R.kg.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,eO.XU)(t),i=r<=e,o=n-r<=(c+l)/1e3;if(L.X){let e=JSON.stringify(t,void 0,2);i?o||R.kg.log("[Tracing] Discarding span since it finished after idle span final timeout",e):R.kg.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!o||!i)&&((0,eO.ed)(m,t),u++)}),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,n){d&&d(m);let[r,...i]=n,o=r||(0,eI.ph)(),a=(0,eO.$k)(o),s=(0,eO.Dp)(m).filter(e=>e!==m);if(!s.length)return v(a),Reflect.apply(e,t,[a,...i]);let l=s.map(e=>(0,eO.XU)(e).timestamp).filter(e=>!!e),u=l.length?Math.max(...l):void 0,p=(0,eO.XU)(m).start_timestamp,f=Math.min(p?p+c/1e3:1/0,Math.max(p||-1/0,Math.min(a,u||1/0)));return v(f),Reflect.apply(e,t,[f,...i])}}),s.push(p.on("spanStart",e=>{if(!i&&e!==m&&!(0,eO.XU)(e).timestamp&&(0,eO.Dp)(m).includes(e)){var t;t=e.spanContext().spanId,g(),r.set(t,!0),_((0,eI.ph)()+u/1e3)}})),s.push(p.on("spanEnd",e=>{var t;i||(t=e.spanContext().spanId,r.has(t)&&r.delete(t),0===r.size&&y((0,eI.ph)()+l/1e3))})),s.push(p.on("idleSpanEnableAutoFinish",e=>{e===m&&(a=!0,y(),r.size&&_())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:n7.jt,message:"deadline_exceeded"}),o="finalTimeout",m.end())},c),m}let rn=!1;function rr(){let e=(0,eO.HN)(),t=e&&(0,eO.Gx)(e);if(t){let e="internal_error";L.X&&R.kg.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:n7.jt,message:e})}}rr.tag="sentry_tracingErrorCallback";var ri=n(85712),ro=n(19548),ra=n(60859);function rs(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(ra.lq)).join(",")}let rl=new WeakMap,rc=new Map,ru={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function rd(e){let{url:t}=(0,eO.XU)(e).data||{};if(!t||"string"!=typeof t)return;let n=n$("resource",({entries:r})=>{r.forEach(r=>{"resource"===r.entryType&&"initiatorType"in r&&"string"==typeof r.nextHopProtocol&&("fetch"===r.initiatorType||"xmlhttprequest"===r.initiatorType)&&r.name.endsWith(t)&&((function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return(r.push(["network.protocol.version",n],["network.protocol.name",t]),eI.Z1)?[...r,["http.request.redirect_start",rp(e.redirectStart)],["http.request.fetch_start",rp(e.fetchStart)],["http.request.domain_lookup_start",rp(e.domainLookupStart)],["http.request.domain_lookup_end",rp(e.domainLookupEnd)],["http.request.connect_start",rp(e.connectStart)],["http.request.secure_connection_start",rp(e.secureConnectionStart)],["http.request.connection_end",rp(e.connectEnd)],["http.request.request_start",rp(e.requestStart)],["http.request.response_start",rp(e.responseStart)],["http.request.response_end",rp(e.responseEnd)]]:r})(r).forEach(t=>e.setAttribute(...t)),setTimeout(n))})})}function rp(e=0){return((eI.Z1||performance.timeOrigin)+e)/1e3}function rf(e){try{return new URL(e,eW.location.origin).href}catch(e){return}}let rh={...re,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...ru},rm=(e={})=>{rn||(rn=!0,tl(rr),td(rr));let{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:i,enableStandaloneClsSpans:o},beforeStartSpan:a,idleTimeout:s,finalTimeout:l,childSpanTimeout:c,markBackgroundSpan:u,traceFetch:d,traceXHR:f,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:y,enableHTTPTimings:_,instrumentPageLoad:v,instrumentNavigation:b}={...rh,...e},S=function({recordClsStandaloneSpans:e}){let t=n0();if(t&&eI.Z1){t.mark&&el.performance.mark("sentry-tracing-init");let n=nF(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=n1(eI.Z1),r=n1(t.startTime);n3.fid={value:e.value,unit:"millisecond"},n3["mark.fid"]={value:n+r,unit:"second"}}),r=nU(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(n3.lcp={value:e.value,unit:"millisecond"},h=t)},!0),i=nK("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(n3.ttfb={value:e.value,unit:"millisecond"})},nz,p),o=e?function(){let e,t,n=0;if(!function(){try{return t4([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let r=!1;function i(){r||(r=!0,t&&function(e,t,n){let r=n1((eI.Z1||0)+(t4([t,"optionalAccess",e=>e.startTime])||0)),i=(0,H.nZ)().getScopeData().transactionName,o=nZ({name:t?(0,e5.Rt)(t4([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",transaction:i,attributes:(0,G.Jr)({[t$.S3]:"auto.http.browser.cls",[t$.$J]:"ui.webvital.cls",[t$.JQ]:t4([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),startTime:r});t4([o,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[t$.E1]:"",[t$.Wb]:e})]),t4([o,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),o())}let o=nB(({metric:t})=>{let r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);nn(()=>{i()}),setTimeout(()=>{let e=t4([(0,H.s3)(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",()=>{i(),e&&e()})]),n=(0,eO.HN)(),r=n&&(0,eO.Gx)(n),o=r&&(0,eO.XU)(r);o&&"pageload"===o.op&&(t=r.spanContext().spanId)},0)}():nB(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(n3.cls={value:e.value,unit:""},m=t)},!0);return()=>{n(),r(),i(),o&&o()}}return()=>void 0}({recordClsStandaloneSpans:o||!1});t&&function(){if(n0()&&eI.Z1){let e=nj(({metric:e})=>{if(void 0==e.value)return;let t=e.entries.find(t=>t.duration===e.value&&n9[t.name]);if(!t)return;let{interactionId:n}=t,r=n9[t.name],i=n1(eI.Z1+t.startTime),o=n1(e.value),a=(0,eO.HN)(),s=a?(0,eO.Gx)(a):void 0,l=(null!=n?n8.get(n):void 0)||s,c=l?(0,eO.XU)(l).description:(0,H.nZ)().getScopeData().transactionName,u=nZ({name:(0,e5.Rt)(t.target),transaction:c,attributes:(0,G.Jr)({[t$.S3]:"auto.http.browser.inp",[t$.$J]:`ui.interaction.${r}`,[t$.JQ]:t.duration}),startTime:i});t4([u,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[t$.E1]:"millisecond",[t$.Wb]:e.value})]),t4([u,"optionalAccess",e=>e.end,"call",e=>e(i+o)])})}}(),r&&Z.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{if((0,eO.HN)())for(let t of e.getEntries()){if(!t.scripts[0])continue;let e=n1(eI.Z1+t.startTime),n=n1(t.duration),r={[t$.S3]:"auto.ui.browser.metrics"},{invoker:i,invokerType:o,sourceURL:a,sourceFunctionName:s,sourceCharPosition:l}=t.scripts[0];r["browser.script.invoker"]=i,r["browser.script.invoker_type"]=o,a&&(r["code.filepath"]=a),s&&(r["code.function"]=s),-1!==l&&(r["browser.script.source_char_position"]=l);let c=t0({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r});c&&c.end(e+n)}}).observe({type:"long-animation-frame",buffered:!0}):n&&n$("longtask",({entries:e})=>{if((0,eO.HN)())for(let t of e){let e=n1(eI.Z1+t.startTime),n=n1(t.duration),r=t0({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[t$.S3]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}}),i&&n$("event",({entries:e})=>{if((0,eO.HN)()){for(let t of e)if("click"===t.name){let e=n1(eI.Z1+t.startTime),n=n1(t.duration),r={name:(0,e5.Rt)(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[t$.S3]:"auto.ui.browser.metrics"}},i=(0,e5.iY)(t.target);i&&(r.attributes["ui.component_name"]=i);let o=t0(r);o&&o.end(e+n)}}});let E={name:void 0,source:void 0};function T(e,t){let n="pageload"===t.op,r=a?a(t):t,i=r.attributes||{};t.name!==r.name&&(i[t$.Zj]="custom",r.attributes=i),E.name=r.name,E.source=i[t$.Zj];let u=rt(r,{idleTimeout:s,finalTimeout:l,childSpanTimeout:c,disableAutoFinish:n,beforeSpanEnd:e=>{S(),function(e,t){let n=n0();if(!n||!el.performance.getEntries||!eI.Z1)return;let r=n1(eI.Z1),i=n.getEntries(),{op:o,start_timestamp:a}=(0,eO.XU)(e);if(i.slice(n2).forEach(t=>{let n=n1(t.startTime),i=n1(Math.max(0,t.duration));if("navigation"!==o||!a||!(r+n<a))switch(t.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{n4(e,t,n,r)}),n4(e,t,"secureConnection",r,"TLS/SSL","connectEnd"),n4(e,t,"fetch",r,"cache","domainLookupStart"),n4(e,t,"domainLookup",r,"DNS"),function(e,t,n){let r=n+n1(t.requestStart),i=n+n1(t.responseEnd),o=n+n1(t.responseStart);t.responseEnd&&(nX(e,r,i,{op:"browser.request",name:t.name,attributes:{[t$.S3]:"auto.ui.browser.metrics"}}),nX(e,o,i,{op:"browser.response",name:t.name,attributes:{[t$.S3]:"auto.ui.browser.metrics"}}))}(e,t,r);break;case"mark":case"paint":case"measure":{(function(e,t,n,r,i){let o=t9(),a=i+Math.max(n,n1(o?o.requestStart:0)),s=i+n,l={[t$.S3]:"auto.resource.browser.metrics"};a!==s&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=a),nX(e,a,s+r,{name:t.name,op:t.entryType,attributes:l})})(e,t,n,i,r);let o=nl(),a=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&a&&(n3.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&a&&(n3.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":(function(e,t,n,r,i,o){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let a=e7(n),s={[t$.S3]:"auto.resource.browser.metrics"};n6(s,t,"transferSize","http.response_transfer_size"),n6(s,t,"encodedBodySize","http.response_content_length"),n6(s,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(s["resource.render_blocking_status"]=t.renderBlockingStatus),a.protocol&&(s["url.scheme"]=a.protocol.split(":").pop()),a.host&&(s["server.address"]=a.host),s["url.same_origin"]=n.includes(el.location.origin);let l=o+r;nX(e,l,l+i,{name:n.replace(el.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:s})})(e,t,t.name,n,i,r)}}),n2=Math.max(i.length-1,0),function(e){let t=el.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),nQ(n.rtt)&&(n3["connection.rtt"]={value:n.rtt,unit:"millisecond"})),nQ(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),nQ(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===o){(function(e){let t=t9();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})})(n3);let n=n3["mark.fid"];n&&n3.fid&&(nX(e,n.value,n.value+n1(n3.fid.value),{name:"first input delay",op:"ui.action",attributes:{[t$.S3]:"auto.ui.browser.metrics"}}),delete n3["mark.fid"]),"fcp"in n3&&t.recordClsOnPageloadSpan||delete n3.cls,Object.entries(n3).forEach(([e,t])=>{!function(e,t,n,r=(0,eO.HN)()){let i=r&&(0,eO.Gx)(r);i&&i.addEvent(e,{[t$.Wb]:t,[t$.E1]:n})}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",t7()),h&&(h.element&&e.setAttribute("lcp.element",(0,e5.Rt)(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),e.setAttribute("lcp.size",h.size)),m&&m.sources&&m.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,e5.Rt)(t.node)))}h=void 0,m=void 0,n3={}}(e,{recordClsOnPageloadSpan:!o})}});function d(){["interactive","complete"].includes(eW.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&eW.document&&(eW.document.addEventListener("readystatechange",()=>{d()}),d()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,r;let o=eW.location&&eW.location.href;e.on("startNavigationSpan",t=>{(0,H.s3)()===e&&(n&&!(0,eO.XU)(n).timestamp&&n.end(),n=T(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>{if((0,H.s3)()!==e)return;n&&!(0,eO.XU)(n).timestamp&&n.end();let i=r.sentryTrace||r_("sentry-trace"),o=r.baggage||r_("baggage"),a=(0,ri.pT)(i,o);(0,H.nZ)().setPropagationContext(a),n=T(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{let t=(0,eO.XU)(e).op;if(e!==(0,eO.Gx)(e)||"navigation"!==t&&"pageload"!==t)return;let n=(0,H.nZ)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,eO.Tt)(e),dsc:r.dsc||(0,ek.jC)(e)})}),eW.location&&(v&&rg(e,{name:eW.location.pathname,startTime:eI.Z1?eI.Z1/1e3:void 0,attributes:{[t$.Zj]:"url",[t$.S3]:"auto.pageload.browser"}}),b&&ec(({to:t,from:n})=>{if(void 0===n&&o&&-1!==o.indexOf(t)){o=void 0;return}n!==t&&(o=void 0,ry(e,{name:eW.location.pathname,attributes:{[t$.Zj]:"url",[t$.S3]:"auto.navigation.browser"}}))})),u&&eW&&eW.document&&eW.document.addEventListener("visibilitychange",()=>{let e=(0,eO.HN)();if(!e)return;let t=(0,eO.Gx)(e);if(eW.document.hidden&&t){let{op:e,status:n}=(0,eO.XU)(t);n||t.setStatus({code:n7.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),i&&eW.document&&addEventListener("click",()=>{let e=(0,eO.HN)(),t=e&&(0,eO.Gx)(e);!(t&&["navigation","pageload"].includes((0,eO.XU)(t).op))&&(r&&(r.setAttribute(t$.ju,"interactionInterrupted"),r.end(),r=void 0),E.name&&(r=rt({name:E.name,op:"ui.action.click",attributes:{[t$.Zj]:E.source||"url"}},{idleTimeout:s,finalTimeout:l,childSpanTimeout:c})))},{once:!1,capture:!0}),t&&function(){let e=({entries:e})=>{let t=(0,eO.HN)(),n=t&&(0,eO.Gx)(t);e.forEach(e=>{if(!("duration"in e)||!n)return;let t=e.interactionId;if(!(null==t||n8.has(t))){if(n5.length>10){let e=n5.shift();n8.delete(e)}n5.push(t),n8.set(t,n)}})};n$("event",e),n$("first-input",e)}(),function(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:s}={traceFetch:ru.traceFetch,traceXHR:ru.traceXHR,trackFetchStreamPerformance:ru.trackFetchStreamPerformance,...t},l="function"==typeof o?o:e=>!0,c=e=>(function(e,t){let n=eW.location&&eW.location.href;if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch(e){return!1}let o=r.origin===i;return t?(0,P.U0)(r.toString(),t)||o&&(0,P.U0)(r.pathname,t):o}{let n=!!e.match(/^\/(?!\/)/);return t?(0,P.U0)(e,t):n}})(e,s),u={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=rc.get(e.span_id);t&&(e.timestamp=t/1e3,rc.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";ei(t,e),eo(t,()=>e1(e3))}(e=>{if(e.response){let t=rl.get(e.response);t&&e.endTimestamp&&rc.set(t,e.endTimestamp)}}),e0(e=>{let t=function(e,t,n,r,i="auto.http.browser"){if(!e.fetchData)return;let o=(0,tW.z)()&&t(e.fetchData.url);if(e.endTimestamp&&o){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(function(e,t){if(t.response){(0,n7.Q0)(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:n7.jt,message:"internal_error"});e.end()}(n,e),delete r[t]);return}let a=(0,H.nZ)(),s=(0,H.s3)(),{method:l,url:c}=e.fetchData,u=function(e){try{return new URL(e).href}catch(e){return}}(c),d=u?e7(u).host:void 0,p=!!(0,eO.HN)(),f=o&&p?t0({name:`${l} ${c}`,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[t$.S3]:i,[t$.$J]:"http.client"}}):new tH;if(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)&&s){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let{traceId:o,spanId:a,sampled:s,dsc:l}={...(0,H.aF)().getPropagationContext(),...n.getPropagationContext()},c=i?(0,eO.Hb)(i):(0,ri.$p)(o,a,s),u=(0,ra.IQ)(l||(i?(0,ek.jC)(i):(0,ek._l)(o,t))),d=r.headers||("undefined"!=typeof Request&&(0,em.V9)(e,Request)?e.headers:void 0);if(!d)return{"sentry-trace":c,baggage:u};if("undefined"!=typeof Headers&&(0,em.V9)(d,Headers)){let e=new Headers(d);if(e.set("sentry-trace",c),u){let t=e.get(ra.bU);if(t){let n=rs(t);e.set(ra.bU,n?`${n},${u}`:u)}else e.set(ra.bU,u)}return e}if(Array.isArray(d)){let e=[...d.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(!Array.isArray(e)||e[0]!==ra.bU||"string"!=typeof e[1])return e;{let[t,n,...r]=e;return[t,rs(n),...r]}}),["sentry-trace",c]];return u&&e.push([ra.bU,u]),e}{let e="baggage"in d?d.baggage:void 0,t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?rs(e):e).filter(e=>""===e):e&&t.push(rs(e)),u&&t.push(u),{...d,"sentry-trace":c,baggage:t.length>0?t.join(","):void 0}}}(t,s,a,n,(0,tW.z)()&&p?f:void 0)}return f}(e,l,c,u);if(e.response&&e.fetchData.__span&&rl.set(e.response,e.fetchData.__span),t){let n=rf(e.fetchData.url),r=n?e7(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}a&&t&&rd(t)})),r&&eJ(e=>{let t=function(e,t,n,r){let i=e.xhr,o=i&&i[eY];if(!i||i.__sentry_own_request__||!o)return;let a=(0,tW.z)()&&t(o.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];t&&void 0!==o.status_code&&((0,n7.Q0)(t,o.status_code),t.end(),delete r[e]);return}let s=rf(o.url),l=s?e7(s).host:void 0,c=!!(0,eO.HN)(),u=a&&c?t0({name:`${o.method} ${o.url}`,attributes:{type:"xhr","http.method":o.method,"http.url":s,url:o.url,"server.address":l,[t$.S3]:"auto.http.browser",[t$.$J]:"http.client"}}):new tH;i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u;let d=(0,H.s3)();return i.setRequestHeader&&n(o.url)&&d&&function(e,t,n){let r=(0,H.nZ)(),{traceId:i,spanId:o,sampled:a,dsc:s}={...(0,H.aF)().getPropagationContext(),...r.getPropagationContext()};(function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ra.bU,n)}catch(e){}})(e,n&&(0,tW.z)()?(0,eO.Hb)(n):(0,ri.$p)(i,o,a),(0,ra.IQ)(s||(n?(0,ek.jC)(n):(0,ek._l)(i,t))))}(i,d,(0,tW.z)()&&c?u:void 0),u}(e,l,c,u);a&&t&&rd(t)})}(e,{traceFetch:d,traceXHR:f,trackFetchStreamPerformance:g,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_})}}};function rg(e,t,n){e.emit("startPageLoadSpan",t,n),(0,H.nZ)().setTransactionName(t.name);let r=(0,eO.HN)();return"pageload"===(r&&(0,eO.XU)(r).op)?r:void 0}function ry(e,t){(0,H.aF)().setPropagationContext((0,ro.Q)()),(0,H.nZ)().setPropagationContext((0,ro.Q)()),e.emit("startNavigationSpan",t),(0,H.nZ)().setTransactionName(t.name);let n=(0,eO.HN)();return"navigation"===(n&&(0,eO.XU)(n).op)?n:void 0}function r_(e){let t=(0,e5.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}let rv="incomplete-app-router-transaction",rb=Z.GLOBAL_OBJ;function rS(e){try{return new URL(e,"http://some-random-base.com/").pathname}catch(e){return"/"}}var rE=n(11163),rT=n(36096);let rw=rE.events?rE:rE.default,rI=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rk(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function rO(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let rA=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in Z.GLOBAL_OBJ&&void 0!==Z.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||o){let e;let o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?function(e,t){e=rk(e).slice(1),t=rk(t).slice(1);let n=rO(e.split("/")),r=rO(t.split("/")),i=Math.min(n.length,r.length),o=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){o=e;break}let a=[];for(let e=o;e<n.length;e++)a.push("..");return(a=a.concat(r.slice(o))).join("/")}(t,o):function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=rI.exec(t);return n?n.slice(1):[]}(o)[2]||"";r.filename=`${n}${a}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t&&t.frames&&t.frames.map(e=>i(e))}}}})}}}catch(t){return e}}(t)),t}}},rC=({assetPrefixPath:e})=>({...rA({iteratee:t=>{try{let{origin:n}=new URL(t.filename);t.filename=t4([t,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",t=>t(e,"")])}catch(e){}return t.filename&&t.filename.startsWith("app:///_next")&&(t.filename=decodeURI(t.filename)),t.filename&&t.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(t.in_app=!1),t}}),name:"NextjsClientStackFrameNormalization"}),rN=Z.GLOBAL_OBJ,rD=Z.GLOBAL_OBJ;function rx(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var rR=n(34155);function rM(){return"undefined"!=typeof window&&(!(!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==rR?rR:0))||void 0!==Z.GLOBAL_OBJ.process&&"renderer"===Z.GLOBAL_OBJ.process.type)}let rP=Z.GLOBAL_OBJ,rL="sentryReplaySession",rB="Unable to send Replay";function rU(e,t){return null!=e?e:t()}function rF(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function rj(e){let t=rF([e,"optionalAccess",e=>e.host]);return rF([t,"optionalAccess",e=>e.shadowRoot])===e}function r$(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function rW(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,rG).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function rG(e){let t;if("styleSheet"in e)try{t=rW(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}(E=A||(A={}))[E.Document=0]="Document",E[E.DocumentType=1]="DocumentType",E[E.Element=2]="Element",E[E.Text=3]="Text",E[E.CDATA=4]="CDATA",E[E.Comment=5]="Comment";class rH{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){return e?rU(rF([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),()=>-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function rq({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function rz({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function rV(e){return e.toLowerCase()}function rK(e){return e.toUpperCase()}let rY="__rrweb_original__";function rJ(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?rV(t):null}function rQ(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function rX(e,t){let n;try{n=new URL(e,rU(t,()=>window.location.href))}catch(e){return null}return rU(rF([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),()=>null)}let rZ={};function r0(e){let t=rZ[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return rZ[e]=r.bind(window)}function r1(...e){return r0("setTimeout")(...e)}function r2(...e){return r0("clearTimeout")(...e)}let r3=1,r4=RegExp("[^a-z0-9-_:]");function r6(){return r3++}let r5=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,r8=/^(?:[a-z+]+:)?\/\//i,r9=/^www\..*/i,r7=/^(data:)([^,]*),(.*)/i;function ie(e,t){return(e||"").replace(r5,(e,n,r,i,o,a)=>{let s=r||o||a,l=n||i||"";if(!s)return e;if(r8.test(s)||r9.test(s)||r7.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let c=t.split("/"),u=s.split("/");for(let e of(c.pop(),u))"."!==e&&(".."===e?c.pop():c.push(e));return`url(${l}${c.join("/")}${l})`})}let it=/^[^ \t\n\r\u000c]+/,ir=/^[, \t\n\r\u000c]+/,ii=new WeakMap;function io(e,t){return t&&""!==t.trim()?ia(e,t):t}function ia(e,t){let n=ii.get(e);if(n||(n=e.createElement("a"),ii.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function is(e,t,n,r,i,o){return r?"src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(ir),!(n>=t.length);){let o=r(it);if(","===o.slice(-1))o=io(e,o.substring(0,o.length-1)),i.push(o);else{let r="";o=io(e,o);let a=!1;for(;;){let e=t.charAt(n);if(""===e){i.push((o+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,i.push((o+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return i.join(", ")}(e,r):"style"===n?ie(r,ia(e)):"object"===t&&"data"===n?io(e,r):"function"==typeof o?o(n,r,i):r:io(e,r):r}function il(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ic(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ic(e.parentNode,t,n,r+1)}function iu(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch(e){return!1}}}function id(e,t,n,r,i,o){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if((l=ic(a,iu(r,i)))<0)return!0;s=ic(a,iu(t,n),l>=0?l:1/0)}else{if((s=ic(a,iu(t,n)))<0)return!1;l=ic(a,iu(r,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function ip(e){return null==e?"":e.toLowerCase()}function ih(e,t){let n;let{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:m={},maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:O=5e3,onStylesheetLoad:C,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:D=()=>!1,newlyAddedElement:x=!1}=t,{preserveWhiteSpace:R=!0}=t,M=function(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:_,dataURLOptions:v={},inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T=!1}=t,w=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:A.Document,childNodes:[],compatMode:e.compatMode};return{type:A.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:A.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,rootId:_,maskAllText:v,maskTextClass:b,unmaskTextClass:S,maskTextSelector:E,unmaskTextSelector:T}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,i,o,a),I=function(e){if(e instanceof HTMLFormElement)return"form";let t=rV(e.tagName);return r4.test(t)?"div":t}(e),k={},O=e.attributes.length;for(let t=0;t<O;t++){let n=e.attributes[t];n.name&&!il(I,n.name,n.value)&&(k[n.name]=is(r,I,rV(n.name),n.value,e,c))}if("link"===I&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=rW(t)),n&&(delete k.rel,delete k.href,k._cssText=ie(n,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=rW(e.sheet);t&&(k._cssText=ie(t,ia(r)))}if("input"===I||"textarea"===I||"select"===I||"option"===I){let t=rJ(e),n=rQ(e,rK(I),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=id(e,b,E,S,T,rq({type:t,tagName:rK(I),maskInputOptions:l}));k.value=rz({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(k.checked=r)}if("option"===I&&(e.selected&&!l.select?k.selected=!0:delete k.selected),"canvas"===I&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData;if(new Uint32Array((rY in i?i[rY]:i).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(k.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(k.rr_dataURL=t)}}if("img"===I&&p){g||(y=(g=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{g.width=e.naturalWidth,g.height=e.naturalHeight,y.drawImage(e,0,0),k.rr_dataURL=g.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?k.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===I||"video"===I)&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),!m&&(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),w){let{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==I||h(k.src)||(w||e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(I)&&(n=!0)}catch(e){}return{type:A.Element,tagName:I,attributes:k,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:_,isCustom:n}}(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T,rootId:w,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||rF([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=rW(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ie(p,ia(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=id(e,r,o,i,a,n);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=c?c(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=rz({isMasked:id(e,r,o,i,a,rq({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:c})),{type:A.Text,textContent:p||"",isStyle:f,rootId:u}}(e,{doc:n,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:_,rootId:w});case e.CDATA_SECTION_NODE:return{type:A.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:A.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,dataURLOptions:E,inlineImages:T,recordCanvas:w,keepIframeSrcFn:D,newlyAddedElement:x});if(!M)return console.warn(e,"not serialized"),null;n=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===A.Comment)return!0;if(e.type===A.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===rX(e.attributes.href))||t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ip(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ip(e.attributes.name)||"icon"===ip(e.attributes.rel)||"apple-touch-icon"===ip(e.attributes.rel)||"shortcut icon"===ip(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ip(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(ip(e.attributes.property).match(/^(og|twitter|fb):/)||ip(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ip(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ip(e.attributes.name)||"googlebot"===ip(e.attributes.name)||"bingbot"===ip(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ip(e.attributes.name)||"generator"===ip(e.attributes.name)||"framework"===ip(e.attributes.name)||"publisher"===ip(e.attributes.name)||"progid"===ip(e.attributes.name)||ip(e.attributes.property).match(/^article:/)||ip(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ip(e.attributes.name)||"yandex-verification"===ip(e.attributes.name)||"csrf-token"===ip(e.attributes.name)||"p:domain_verify"===ip(e.attributes.name)||"verify-v1"===ip(e.attributes.name)||"verification"===ip(e.attributes.name)||"shopify-checkout-api-token"===ip(e.attributes.name)))return!0}}return!1}(M,S)&&(R||M.type!==A.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?r6():-2;let P=Object.assign(M,{id:n});if(i.add(e,P),-2===n)return null;I&&I(e);let L=!f;if(P.type===A.Element){L=L&&!P.needBlock,delete P.needBlock;let t=e.shadowRoot;t&&r$(t)&&(P.isShadowHost=!0)}if((P.type===A.Document||P.type===A.Element)&&L){S.headWhitespace&&P.type===A.Element&&"head"===P.tagName&&(R=!1);let t={doc:r,mirror:i,blockClass:o,blockSelector:a,maskAllText:l,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:D};for(let n of Array.from(e.childNodes)){let e=ih(n,t);e&&P.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=ih(n,t);r&&(r$(e.shadowRoot)&&(r.isShadow=!0),P.childNodes.push(r))}}return e.parentNode&&rj(e.parentNode)&&r$(e.parentNode)&&(P.isShadow=!0),P.type===A.Element&&"iframe"===P.tagName&&function(e,t,n){let r;let i=e.contentWindow;if(!i)return;let o=!1;try{r=i.document.readyState}catch(e){return}if("complete"!==r){let r=r1(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{r2(r),o=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return r1(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=e.contentDocument;if(t&&k){let n=ih(t,{doc:t,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:D});n&&k(e,n)}},O),P.type===A.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===rX(P.attributes.href))&&function(e,t,n){let r,i=!1;try{r=e.sheet}catch(e){return}if(r)return;let o=r1(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{r2(o),i=!0,t()})}(e,()=>{if(C){let t=ih(e,{doc:r,mirror:i,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:m,maskAttributeFn:_,maskTextFn:v,maskInputFn:b,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:R,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:O,onStylesheetLoad:C,stylesheetLoadTimeout:N,keepIframeSrcFn:D});t&&C(e,t)}},N),P}function im(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}function ig(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let iy="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.",i_={map:{},getId:()=>(console.error(iy),-1),getNode:()=>(console.error(iy),null),removeNodeFromMap(){console.error(iy)},has:()=>(console.error(iy),!1),reset(){console.error(iy)}};function iv(e,t,n={}){let r=null,i=0;return function(...o){let a=Date.now();i||!1!==n.leading||(i=a);let s=t-(a-i),l=this;s<=0||s>t?(r&&(function(...e){iL("clearTimeout")(...e)}(r),r=null),i=a,e.apply(l,o)):r||!1===n.trailing||(r=iB(()=>{i=!1===n.leading?0:Date.now(),r=null,e.apply(l,o)},s))}}function ib(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(i_=new Proxy(i_,{get:(e,t,n)=>("map"===t&&console.error(iy),Reflect.get(e,t,n))}));let iS=Date.now;function iE(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:im([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||im([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||im([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:im([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||im([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||im([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function iT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function iw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function iI(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ik(e,t,n,r,i){if(!e)return!1;let o=iI(e);if(!o)return!1;let a=iu(t,n);if(!i){let e=r&&o.matches(r);return a(o)&&!e}let s=ic(o,a),l=-1;return!(s<0)&&(r&&(l=ic(o,iu(null,r))),s>-1&&l<0||s<l)}function iO(e,t){return -2===t.getId(e)}function iA(e){return!!e.changedTouches}function iC(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function iN(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function iD(e){return!!im([e,"optionalAccess",e=>e.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(iS=()=>new Date().getTime());class ix{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return t=this.styleIDMap.get(e),null!=t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function iR(e){let t=null;return im([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iM(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=iR(n);)n=t;return n}(e);return t.contains(n)}(e))}let iP={};function iL(e){let t=iP[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return iP[e]=r.bind(window)}function iB(...e){return iL("setTimeout")(...e)}var iU=((T=iU||{})[T.DomContentLoaded=0]="DomContentLoaded",T[T.Load=1]="Load",T[T.FullSnapshot=2]="FullSnapshot",T[T.IncrementalSnapshot=3]="IncrementalSnapshot",T[T.Meta=4]="Meta",T[T.Custom=5]="Custom",T[T.Plugin=6]="Plugin",T),iF=((w=iF||{})[w.Mutation=0]="Mutation",w[w.MouseMove=1]="MouseMove",w[w.MouseInteraction=2]="MouseInteraction",w[w.Scroll=3]="Scroll",w[w.ViewportResize=4]="ViewportResize",w[w.Input=5]="Input",w[w.TouchMove=6]="TouchMove",w[w.MediaInteraction=7]="MediaInteraction",w[w.StyleSheetRule=8]="StyleSheetRule",w[w.CanvasMutation=9]="CanvasMutation",w[w.Font=10]="Font",w[w.Log=11]="Log",w[w.Drag=12]="Drag",w[w.StyleDeclaration=13]="StyleDeclaration",w[w.Selection=14]="Selection",w[w.AdoptedStyleSheet=15]="AdoptedStyleSheet",w[w.CustomElement=16]="CustomElement",w),ij=((I=ij||{})[I.MouseUp=0]="MouseUp",I[I.MouseDown=1]="MouseDown",I[I.Click=2]="Click",I[I.ContextMenu=3]="ContextMenu",I[I.DblClick=4]="DblClick",I[I.Focus=5]="Focus",I[I.Blur=6]="Blur",I[I.TouchStart=7]="TouchStart",I[I.TouchMove_Departed=8]="TouchMove_Departed",I[I.TouchEnd=9]="TouchEnd",I[I.TouchCancel=10]="TouchCancel",I),i$=((k=i$||{})[k.Mouse=0]="Mouse",k[k.Pen=1]="Pen",k[k.Touch=2]="Touch",k);class iW{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=function(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let iG=(e,t)=>`${e}@${t}`;class iH{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new iW,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!iM(i))return;let o=rj(i.parentNode)?this.mirror.getId(iR(i)):this.mirror.getId(i.parentNode),a=r(i);if(-1===o||-1===a)return n.addNode(i);let s=ih(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{iC(e,this.mirror)&&!ik(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),iN(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),iD(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ik(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});s&&(e.push({parentId:o,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iz(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)iV(this.droppedSet,e)||iz(this.removes,e,this.mirror)?iV(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let o=null;for(;n.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!iO(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ik(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:id(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,iI(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=rJ(t),i=t.tagName;r=rQ(t,i,n);let o=rq({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=rz({isMasked:id(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(ik(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!il(t.tagName,n)&&(i.attributes[n]=is(this.doc,rV(t.tagName),rV(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),o=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||o!==n.style.getPropertyPriority(r)?""===o?i.styleDiff[r]=e:i.styleDiff[r]=[e,o]:i._unchangedStyles[r]=[e,o]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ik(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=rj(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ik(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||iO(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iq(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(rj(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iG(n,r)]?iq(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(rj(e.target)&&r$(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(iO(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[iG(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ik(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes.forEach(e=>this.genAdds(e)),iD(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function iq(e,t){e.delete(t),t.childNodes.forEach(t=>iq(e,t))}function iz(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function iV(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let iK=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}:e;function iY(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}let iJ=[];function iQ(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function iX(e,t){let n=new iH;iJ.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=iY([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);i&&window[i]&&(r=window[i]);let o=new r(iK(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function iZ({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){return ig("scroll",iK(iv(iK(a=>{let s=iQ(a);if(!s||ik(s,r,i,o,!0))return;let l=n.getId(s);if(s===t&&t.defaultView){let n=iE(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}let i0=["INPUT","TEXTAREA","SELECT"],i1=new WeakMap;function i2(e){var t;return t=[],i5("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||i5("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||i5("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||i5("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function i3(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function i4({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let i="#document"===n.nodeName?iY([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):iY([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=iY([i,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(iY([i,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&i&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return iY([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=iY([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),iK(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function i6(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=iX(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let i;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=iv(iK(t=>{let n=Date.now()-i;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],i=null}),a),c=iK(iv(iK(e=>{let t=iQ(e),{clientX:n,clientY:o}=iA(e)?e.changedTouches[0]:e;i||(i=iS()),s.push({x:n,y:o,id:r.getId(t),timeOffset:iS()-i}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?iF.Drag:e instanceof MouseEvent?iF.MouseMove:iF.TouchMove)}),o,{trailing:!1})),u=[ig("mousemove",c,n),ig("touchmove",c,n),ig("drag",c,n)];return iK(()=>{u.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],c=null,u=t=>a=>{let s=iQ(a);if(ik(s,r,i,o,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=i$.Mouse;break;case"touch":l=i$.Touch;break;case"pen":l=i$.Pen}l===i$.Touch?ij[t]===ij.MouseDown?u="TouchStart":ij[t]===ij.MouseUp&&(u="TouchEnd"):i$.Pen}else iA(a)&&(l=i$.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===i$.Touch||u.startsWith("Mouse")&&l===i$.Mouse)&&(l=null)):ij[t]===ij.Click&&(l=c,c=null);let d=iA(a)?a.changedTouches[0]:a;if(!d)return;let p=n.getId(s),{clientX:f,clientY:h}=d;iK(e)({type:ij[u],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};return Object.keys(ij).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(e=>{let n=rV(e),r=u(e);if(window.PointerEvent)switch(ij[e]){case ij.MouseDown:case ij.MouseUp:n=n.replace("mouse","pointer");break;case ij.TouchStart:case ij.TouchEnd:return}l.push(ig(n,r,t))}),iK(()=>{l.forEach(e=>e())})}(e),a=iZ(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ig("resize",iK(iv(iK(()=>{let t=iT(),i=iw();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=iQ(e),u=e.isTrusted,g=n&&rK(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>i0.indexOf(g)||ik(n,r,i,o,!0))return;let _=n;if(_.classList.contains(a)||s&&_.matches(s))return;let v=rJ(n),b=rQ(_,g,v),S=!1,E=rq({maskInputOptions:l,tagName:g,type:v}),T=id(n,p,h,f,m,E);("radio"===v||"checkbox"===v)&&(S=n.checked),b=rz({isMasked:T,element:n,value:b,maskInputFn:c}),y(n,d?{text:b,isChecked:S,userTriggered:u}:{text:b,isChecked:S});let w=n.name;"radio"===v&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=rz({isMasked:T,element:e,value:rQ(e,g,v),maskInputFn:c});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let i=i1.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){i1.set(t,r);let i=n.getId(t);iK(e)({...r,id:i})}}let _=("last"===u.input?["change"]:["input","change"]).map(e=>ig(e,iK(g),t)),v=t.defaultView;if(!v)return()=>{_.forEach(e=>e())};let b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map(e=>(function e(t,n,r,i,o=window){let a=o.Object.getOwnPropertyDescriptor(t,n);return o.Object.defineProperty(t,n,i?r:{set(e){iB(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,n,a||{},!0)})(e[0],e[1],{set(){iK(g)({target:this,isTrusted:!1})}},!1,v))),iK(()=>{_.forEach(e=>e())})}(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:a}){let s=iK(a=>iv(iK(o=>{let s=iQ(o);if(!s||ik(s,t,n,r,!0))return;let{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:i.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),o.media||500)),l=[ig("play",s(0),a),ig("pause",s(1),a),ig("seeked",s(2),a),ig("volumechange",s(3),a),ig("ratechange",s(4),a)];return iK(()=>{l.forEach(e=>e())})}(e),u=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let i,o;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:iK((r,i,o)=>{let[a,s]=o,{id:l,styleId:c}=i3(i,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),r.apply(i,o)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:iK((r,i,o)=>{let[a]=o,{id:s,styleId:l}=i3(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(i,o)})}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:iK((r,i,o)=>{let[a]=o,{id:s,styleId:l}=i3(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(i,o)})})),r.CSSStyleSheet.prototype.replaceSync&&(o=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:iK((r,i,o)=>{let[a]=o,{id:s,styleId:l}=i3(i,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(i,o)})}));let l={};i8("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(i8("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),i8("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),i8("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let c={};return Object.entries(l).forEach(([r,i])=>{c[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(c[r].insertRule,{apply:iK((r,i,o)=>{let[a,s]=o,{id:l,styleId:c}=i3(i.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...i2(i),s||0]}]}),r.apply(i,o)})}),i.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:iK((r,i,o)=>{let[a]=o,{id:s,styleId:l}=i3(i.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...i2(i),a]}]}),r.apply(i,o)})})}),iK(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),o&&(r.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:r}),d=i4(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:iK((i,a,s)=>{let[l,c,u]=s;if(n.has(l))return o.apply(a,[l,c,u]);let{id:d,styleId:p}=i3(iY([a,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:c,priority:u},index:i2(a.parentRule)}),i.apply(a,s)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:iK((i,o,s)=>{let[l]=s;if(n.has(l))return a.apply(o,[l]);let{id:c,styleId:u}=i3(iY([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:i2(o.parentRule)}),i.apply(o,s)})}),iK(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){let r=new o(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let a=ib(t.fonts,"add",function(t){return function(n){return iB(iK(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=o}),r.push(a),iK(()=>{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:a}=e,s=!0,l=iK(()=>{let e=t.getSelection();if(!e||s&&iY([e,"optionalAccess",e=>e.isCollapsed]))return;s=e.isCollapsed||!1;let l=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:s,endContainer:c,endOffset:u}=e.getRangeAt(t);ik(a,r,i,o,!0)||ik(c,r,i,o,!0)||l.push({start:n.getId(a),startOffset:s,end:n.getId(c),endOffset:u})}a({ranges:l})});return l(),ig("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?ib(n.customElements,"define",function(e){return function(n,r,i){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return iK(()=>{iJ.forEach(e=>e.reset()),iY([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),i(),o(),a(),s(),l(),c(),u(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function i5(e){return void 0!==window[e]}function i8(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class i9{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),o.set(a,t)),a}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function i7(e){let t;let n=e[0],r=1;for(;r<e.length;){let i=e[r],o=e[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(t=n,n=o(n)):("call"===i||"optionalCall"===i)&&(n=o((...e)=>n.call(t,...e)),t=void 0)}return n}class oe{constructor(){this.crossOriginIframeMirror=new i9(r6),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ot{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new i9(r6),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new i9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),i7([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iU.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:iU.IncrementalSnapshot,data:{source:iF.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iU.Meta:case iU.Load:case iU.DomContentLoaded:break;case iU.Plugin:return t;case iU.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iU.IncrementalSnapshot:switch(t.data.source){case iF.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iF.Drag:case iF.TouchMove:case iF.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iF.ViewportResize:return!1;case iF.MediaInteraction:case iF.MouseInteraction:case iF.Scroll:case iF.CanvasMutation:case iF.Input:return this.replaceIds(t.data,e,["id"]),t;case iF.StyleSheetRule:case iF.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iF.Font:return t;case iF.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iF.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),i7([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===A.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class on{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class or{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!r$(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=iX({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(iZ({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iB(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(i4({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(ib(e.prototype,"attachShadow",function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&iM(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class oi{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class oo{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ix,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:rG(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class oa{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){iL("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=t4([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let os=new rH;function ol(e={}){let t;let{emit:n,checkoutEveryNms:r,checkoutEveryNth:i,blockClass:o="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,maxCanvasSize:I=null,packFn:k,sampling:O={},dataURLOptions:A={},mousemoveWait:C,recordDOM:N=!0,recordCanvas:D=!1,recordCrossOriginIframes:x=!1,recordAfter:R="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:P=!1,inlineImages:L=!1,plugins:B,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:j,onMutation:$,getCanvasManager:W}=e;_=j;let G=!x||window.parent===window,H=!1;if(!G)try{window.parent.document&&(H=!1)}catch(e){H=!0}if(G&&!n)throw Error("emit function is required");if(!G&&!H)return()=>{};void 0!==C&&void 0===O.mousemove&&(O.mousemove=C),os.reset();let q=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==y?y:{},z=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let V=0,K=e=>{for(let t of B||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!H&&(e=k(e)),e};v=(e,o)=>{if(e.timestamp=iS(),t4([iJ,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==iU.FullSnapshot&&!(e.type===iU.IncrementalSnapshot&&e.data.source===iF.Mutation)&&iJ.forEach(e=>e.unfreeze()),G)t4([n,"optionalCall",t=>t(K(e),o)]);else if(H){let t={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===iU.FullSnapshot)t=e,V=0;else if(e.type===iU.IncrementalSnapshot){if(e.data.source===iF.Mutation&&e.data.isAttachIframe)return;V++;let n=i&&V>=i,o=r&&t&&e.timestamp-t.timestamp>r;(n||o)&&er(!0)}};let Y=e=>{v({type:iU.IncrementalSnapshot,data:{source:iF.Mutation,...e}})},J=e=>v({type:iU.IncrementalSnapshot,data:{source:iF.Scroll,...e}}),Q=e=>v({type:iU.IncrementalSnapshot,data:{source:iF.CanvasMutation,...e}}),X=new oo({mutationCb:Y,adoptedStyleSheetCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new oe:new ot({mirror:os,mutationCb:Y,stylesheetManager:X,recordCrossOriginIframes:x,wrappedEmit:v});for(let e of B||[])e.getMirror&&e.getMirror({nodeMirror:os,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new oa,et=function(e,t){try{return e?e(t):new oi}catch(e){return console.warn("Unable to initialize CanvasManager"),new oi}}(W,{mirror:os,win:window,mutationCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.CanvasMutation,...e}}),recordCanvas:D,blockClass:o,blockSelector:a,unblockSelector:s,maxCanvasSize:I,sampling:O.canvas,dataURLOptions:A,errorHandler:j}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new on:new or({mutationCb:Y,scrollCb:J,bypassOptions:{onMutation:$,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:q,dataURLOptions:A,maskAttributeFn:E,maskTextFn:w,maskInputFn:T,recordCanvas:D,inlineImages:L,sampling:O,slimDOMOptions:z,iframeManager:Z,stylesheetManager:X,canvasManager:et,keepIframeSrcFn:U,processedNodeManager:ee},mirror:os}),er=(e=!1)=>{if(!N)return;v({type:iU.Meta,data:{href:window.location.href,width:iw(),height:iT()}},e),X.reset(),en.init(),iJ.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new rH,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:w,stylesheetLoadTimeout:I,keepIframeSrcFn:k=()=>!1}=t||{};return ih(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onStylesheetLoad:w,stylesheetLoadTimeout:I,keepIframeSrcFn:k,newlyAddedElement:!1})}(document,{mirror:os,blockClass:o,blockSelector:a,unblockSelector:s,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:q,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,slimDOM:z,dataURLOptions:A,recordCanvas:D,inlineImages:L,onSerialize:e=>{iC(e,os)&&Z.addIframe(e),iN(e,os)&&X.trackLinkElement(e),iD(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},keepIframeSrcFn:U});if(!t)return console.warn("Failed to snapshot the document");v({type:iU.FullSnapshot,data:{node:t,initialOffset:iE(window)}}),iJ.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,os.getId(document))};b=er;try{let e=[],t=e=>iK(i6)({onMutation:$,mutationCb:Y,mousemoveCb:(e,t)=>v({type:iU.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.ViewportResize,...e}}),inputCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.Input,...e}}),mediaInteractionCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.MediaInteraction,...e}}),styleSheetRuleCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.StyleSheetRule,...e}}),styleDeclarationCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>v({type:iU.IncrementalSnapshot,data:{source:iF.Font,...e}}),selectionCb:e=>{v({type:iU.IncrementalSnapshot,data:{source:iF.Selection,...e}})},customElementCb:e=>{v({type:iU.IncrementalSnapshot,data:{source:iF.CustomElement,...e}})},blockClass:o,ignoreClass:l,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:q,inlineStylesheet:m,sampling:O,recordDOM:N,recordCanvas:D,inlineImages:L,userTriggeredOnInput:M,collectFonts:P,doc:e,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:U,blockSelector:a,unblockSelector:s,slimDOMOptions:z,dataURLOptions:A,mirror:os,iframeManager:Z,stylesheetManager:X,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:t4([B,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>v({type:iU.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ig("DOMContentLoaded",()=>{v({type:iU.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()})),e.push(ig("load",()=>{v({type:iU.Load,data:{}}),"load"===R&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),b=void 0,_=void 0}}catch(e){console.warn(e)}}ol.mirror=os,ol.takeFullSnapshot=function(e){if(!b)throw Error("please take full snapshot after start recording");b(e)};let oc=["info","warn","error","log"];function ou(e){return e>9999999999?e:1e3*e}function od(e){return e>9999999999?e/1e3:e}function op(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iU.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ey.Fv)(t,10,1e3)}}),"console"===t.category)))}function of(e){return e.closest("button,a")||e}function oh(e){let t=om(e);return t&&t instanceof Element?of(t):t}function om(e){return"object"==typeof e&&e&&"target"in e?e.target:e}(function(){let e={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}};oc.forEach(t=>{e[t]=()=>void 0})})();let og=new Set([iF.Mutation,iF.StyleSheetRule,iF.StyleDeclaration,iF.AdoptedStyleSheet,iF.CanvasMutation,iF.Selection,iF.MediaInteraction]);class oy{constructor(e,t,n=op){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=ov()},S||(S=[],(0,G.hl)(rP,"open",function(e){return function(...t){if(S)try{S.forEach(e=>e())}catch(e){}return e.apply(rP,t)}})),S.push(e),()=>{let t=S?S.indexOf(e):-1;t>-1&&S.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!o_.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:od(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=od(e)}registerScroll(e=Date.now()){this._lastScroll=od(e)}registerClick(e){let t=of(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=ov();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:o}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:rP.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:rP.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=tD(()=>this._checkClicks(),1e3)}}let o_=["A","BUTTON","INPUT"];function ov(){return Date.now()/1e3}function ob(e){return{timestamp:Date.now()/1e3,type:"default",...e}}(O=C||(C={}))[O.Document=0]="Document",O[O.DocumentType=1]="DocumentType",O[O.Element=2]="Element",O[O.Text=3]="Text",O[O.CDATA=4]="CDATA",O[O.Comment=5]="Comment";let oS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),oE=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t;let n="click"===e.name,r=null;try{r=n?oh(e.event):om(e.event),t=(0,e5.Rt)(r,{maxStringLength:200})||"<unknown>"}catch(e){t="<unknown>"}return{target:r,message:t}}(e);return ob({category:`ui.${e.name}`,...oT(t,n)})}(t);if(!n)return;let r="click"===t.name,i=r?t.event:void 0;r&&e.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,oh(t.event)),op(e,n)};function oT(e,t){let n=ol.mirror.getId(e),r=n&&ol.mirror.getNode(n),i=r&&ol.mirror.getMeta(r),o=i&&i.type===C.Element?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>e.type===C.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oS.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(o.attributes)}}:{}}}let ow={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:oO(o),end:oO(i),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:i}=e,o=oO(i);return{type:n,name:r,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oO(f),end:oO(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function oI(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function ok(e){let t=ow[e.entryType];return t?t(e):null}function oO(e){return((eI.Z1||rP.performance.timeOrigin)+e)/1e3}function oA(e){let t=e.entries[e.entries.length-1];return ox(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function oC(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=ol.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return ox(e,"cumulative-layout-shift",n,t)}function oN(e){let t=e.entries[e.entries.length-1];return ox(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function oD(e){let t=e.entries[e.entries.length-1];return ox(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function ox(e,t,n,r){let i=e.value,o=e.rating,a=oO(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:o,nodeIds:n?n.map(e=>ol.mirror.getId(e)):void 0,attributions:r}}}class oR extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class oM{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new oR;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ou(e):null}}class oP{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let o=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",o),!t.success){i(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class oL{constructor(e){this._worker=new oP(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=ou(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new oR):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class oB{constructor(e){this._fallback=new oM,this._compression=new oL(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function oU(){try{return"sessionStorage"in rP&&!!rP.sessionStorage}catch(e){return!1}}function oF(e){return void 0!==e&&Math.random()<e}function oj(e){let t=Date.now(),n=e.id||(0,M.DM)(),r=e.started||t,i=e.lastActivity||t;return{id:n,started:r,lastActivity:i,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function o$(e){if(oU())try{rP.sessionStorage.setItem(rL,JSON.stringify(e))}catch(e){}}function oW({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=oj({sampled:oF(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&o$(i),i}function oG(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function oH(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return oG(e.started,t,r)||oG(e.lastActivity,n,r)}function oq(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!oH(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function oz({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&function(){if(!oU())return null;try{let e=rP.sessionStorage.getItem(rL);if(!e)return null;let t=JSON.parse(e);return oj(t)}catch(e){return null}}();return i?oq(i,{sessionIdleExpire:e,maxReplayDuration:t})?oW(r,{previousSessionId:i.id}):i:oW(r,{previousSessionId:n})}function oV(e,t,n){return!!oY(e,t)&&(oK(e,t,n),!0)}async function oK(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===iU.Custom)return t(e)}catch(e){return null}return e}(t,r.beforeAddRecordingEvent);if(!i)return;return await e.eventBuffer.addEvent(i)}catch(r){let t=r&&r instanceof oR?"addEventSizeExceeded":"addEvent";e.handleException(r),await e.stop({reason:t});let n=(0,H.s3)();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function oY(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=ou(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function oJ(e){return"transaction"===e.type}function oQ(e){return"feedback"===e.type}function oX(e){return!!e.category}function oZ(e,t){return t.map(({type:t,start:n,end:r,name:i,data:o})=>{let a=e.throttledAddEvent({type:iU.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a})}function o0(e,t){e.isEnabled()&&null!==t&&!function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&rx(e)===rx(r)}(t.name,(0,H.s3)())&&e.addUpdate(()=>(oZ(e,[t]),!0))}function o1(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=o7(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function o2(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function o3(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[o7(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function o4(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function o6(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:(0,G.Jr)({method:o,statusCode:a,request:s,response:l})}}function o5(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function o8(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=i,o&&o.length>0&&(r._meta={warnings:o}),r}function o9(e,t){return Object.entries(e).reduce((n,[r,i])=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function o7(e){return new URLSearchParams(e).toString()}function ae(e,t){let n=function(e,t=rP.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(rP.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,P.U0)(n,t)}async function at(e,t,n){try{let r=await an(e,t,n),i=o6("resource.fetch",r);o0(n.replay,i)}catch(e){}}async function an(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=ae(a,n.networkDetailAllowUrls)&&!ae(a,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:o,url:a,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?1===n.length&&"string"!=typeof n[0]?as(n[0],t):2===n.length?as(n[1],t):{}:{};if(!e)return o8(i,r,void 0);let[o,a]=o3(ao(n)),s=o8(i,r,o);return a?o4(s,a):s}(n,t.input,c):o5(c),response:await ar(d,n,t.response,u)}}async function ar(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&void 0!==i)return o5(i);let o=r?aa(r.headers,n):{};if(!r||!t&&void 0!==i)return o8(o,i,void 0);let[a,s]=await ai(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let o=e&&e.length&&void 0===n?o1(e):n;if(!r)return o5(o);if(t)return o8(i,o,e);return o8(i,o,void 0)}catch(e){return o8(i,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return s?o4(l,s):l}async function ai(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,n)=>{let r=tD(()=>n(Error("Timeout while trying to read response body")),500);al(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ao(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function aa(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function as(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?aa(n,t):Array.isArray(n)?{}:o9(n,t):{}}async function al(e){return await e.text()}async function ac(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!ae(l,n.networkDetailAllowUrls)||ae(l,n.networkDetailDenyUrls)){let e=o5(d);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:e,response:o5(p)}}let f=s[eY],h=f?o9(f.request_headers,n.networkRequestHeaders):{},m=o9(function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?o3(a):[void 0],[_,v]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(s):[void 0],b=o8(h,d,g),S=o8(m,p,_);return{startTimestamp:i,endTimestamp:o,url:l,method:c,statusCode:u,request:y?o4(b,y):b,response:v?o4(S,v):S}}(e,t,n),i=o6("resource.xhr",r);o0(n.replay,i)}catch(e){}}async function au(e){try{return Promise.all(oZ(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(rP.performance.memory)]))}catch(e){return[]}}async function ad({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,i);let o=await (0,eN.R)(e.getOptions(),r,i,t,e,(0,H.aF)());if(!o)return null;o.platform=o.platform||"javascript";let a=e.getSdkMetadata(),{name:s,version:l}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0"},o}async function ap({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){var a;let s;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)}
`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:p}=r,f=(0,H.s3)(),h=(0,H.nZ)(),m=f&&f.getTransport(),g=f&&f.getDsn();if(!f||!m||!g||!o.sampled)return(0,eg.WD)({});let y={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:o.sampled},_=await ad({scope:h,client:f,replayId:t,event:y});if(!_)return f.recordDroppedEvent("event_processor","replay",y),(0,eg.WD)({});delete _.sdkProcessingMetadata;let v=(a=f.getOptions().tunnel,e_(eT(_,eE(_),a,g),[[{type:"replay_event"},_],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(v)}catch(t){let e=Error(rB);try{e.cause=t}catch(e){}throw e}if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new af(s.statusCode);let b=tR({},s);if(tx(b,"replay"))throw new ah(b);return s}class af extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ah extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function am(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await ap(e),!0}catch(n){if(n instanceof af||n instanceof ah)throw n;if((0,x.v)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${rB} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise((n,r)=>{tD(async()=>{try{await am(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let ag="__THROTTLED";class ay{constructor({options:e,recordingOptions:t}){ay.prototype.__init.call(this),ay.prototype.__init2.call(this),ay.prototype.__init3.call(this),ay.prototype.__init4.call(this),ay.prototype.__init5.call(this),ay.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,i,o;let a=n&&n.maxWait?Math.max(n.maxWait,t):0;function s(){return l(),r=e()}function l(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function c(){return i&&clearTimeout(i),i=tD(s,t),a&&void 0===o&&(o=tD(s,a)),r}return c.cancel=l,c.flush=function(){return void 0!==i||void 0!==o?s():r},c}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,i=e=>{let t=e-5;r.forEach((e,n)=>{n<t&&r.delete(n)})},o=()=>[...r.values()].reduce((e,t)=>e+t,0),a=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(i(n),o()>=300){let e=a;return a=!0,e?"__SKIPPED":ag}a=!1;let s=r.get(n)||0;return r.set(n,s+1),e(...t)}}((e,t)=>oY(this,e)?oK(this,e,t):Promise.resolve(null),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;i&&(this.clickDetector=new oy(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,!r&&(this._initializeSessionForSampling(e),this.session)&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=oz({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=oz({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=ol({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let i=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(og.has(n)&&e.registerMutation(t.timestamp),n===iF.Scroll&&e.registerScroll(t.timestamp),t.data.source===iF.MouseInteraction){let{type:n,id:r}=t.data,i=ol.mirror.getNode(r);i instanceof HTMLElement&&n===ij.Click&&e.registerClick(i)}}catch(e){}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!oV(e,n,i))return!0;if(!i)return!1;let t=e.session;if(i&&e.session&&0===e.session.segmentId&&oV(e,function(e){let t=e.getOptions();return{type:iU.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&o$(t))}return!!t&&!!t.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{(function(){let e=(0,H.nZ)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,eO.HN)();if(t){let e=(0,ek.jC)(t);delete e.replay_id}})(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(oU())try{rP.sessionStorage.removeItem(rL)}catch(e){}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&oG(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${rP.location.pathname}${rP.location.hash}${rP.location.search}`,t=`${rP.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===ag){let e=ob({category:"replay.throttled"});this.addUpdate(()=>!oV(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,eO.HN)(),t=e&&(0,eO.Gx)(e),n=(t&&(0,eO.XU)(t).data||{})[t$.Zj];if(t&&n&&["route","custom"].includes(n))return(0,eO.XU)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;let n=new Worker(t);return new oB(n)}catch(e){}}(t);if(e)return e}return new oM}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=oz({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!oq(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{rP.document.addEventListener("visibilitychange",this._handleVisibilityChange),rP.addEventListener("blur",this._handleWindowBlur),rP.addEventListener("focus",this._handleWindowFocus),rP.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){let t=(0,H.s3)();ez(oE(e)),ec(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(oZ(e,[n]),!1)))}),function(e){let t=(0,H.s3)();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!oX(t))return;let n=!oX(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return ob(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,ey.Fv)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch(e){}return e});return ob({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):ob(t);n&&op(e,n)})(e,t))}(e),function(e){let t=(0,H.s3)();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,i;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=o1(r),o=n.getResponseHeader("content-length")?o2(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return o1(n)}catch(e){return}}(n.response,n.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),ac(t,n,e)),"fetch"===t.category&&(i=n)&&i.response&&(function(e,t){let{input:n,response:r}=t,i=o1(n?ao(n):void 0),o=r?o2(r.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==o&&(e.data.response_body_size=o)}(t,n),at(t,n,e))}catch(e){}})(s,e,t))}catch(e){}}(e);let n=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):(!t.type||oJ(t)||oQ(t))&&e.checkAndHandleExpiredSession()?oQ(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iU.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==rB&&t.exception&&!t.type&&oF(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):t,{id:"Replay"});(0,x.Qy)(n),t&&(t.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&op(e,ob({category:"replay.hydrate-error",data:{url:(0,e5.l4)()}}))}(e,t)}),t.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!oJ(t))return;let r=n&&n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(oJ(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&tD(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),t.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(n$(e,n))}),r.push(nU(oI(oA,e)),nB(oI(oC,e)),nF(oI(oN,e)),nj(oI(oD,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{rP.document.removeEventListener("visibilitychange",this._handleVisibilityChange),rP.removeEventListener("blur",this._handleWindowBlur),rP.removeEventListener("focus",this._handleWindowFocus),rP.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===rP.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=ob({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=ob({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=n||i||o,c=1===a.length;if(!l&&c)return null;let u=(0,e5.Rt)(s,{maxStringLength:200})||"<unknown>",d=oT(s,u);return ob({category:"ui.keyDown",message:u,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:i,altKey:o,key:a}})}(t);n&&op(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){!this.session||oH(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:iU.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(ok).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(oZ(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents)&&(await au(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await am({replayId:e,recordingData:i,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,H.s3)();e&&e.recordDroppedEvent(t instanceof ah?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){r&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&o.hasCheckout;let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&o$(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,i=n&&t>n;if(t>r||i){let e=ob({category:"replay.mutations",data:{count:t,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function a_(e,t){return[...e,...t].join(",")}let av='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ab=["content-length","content-type","accept"],aS=!1;class aE{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:E=[],block:T=[],unblock:w=[],ignore:I=[],maskFn:k,beforeAddRecordingEvent:O,beforeErrorSampling:A}={}){this.name=aE.id;let C=function({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:a_(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:a_(t,[]),blockSelector:a_(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:a_(r,[]),ignoreSelector:a_(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:E,block:T,unblock:w,ignore:I});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:S,maskAllText:l,privacyOptions:C,key:e,value:t,el:n}),...C,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:aT(_),networkResponseHeaders:aT(v),beforeAddRecordingEvent:O,beforeErrorSampling:A,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${av}`:av),this._isInitialized&&rM())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return aS}set _isInitialized(e){aS=e}afterAllSetup(e){rM()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...(0,G.Jr)(e)},i=eC(n.replaysSessionSampleRate),o=eC(n.replaysOnErrorSampleRate);return null==i&&null==o&&(0,R.Cf)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(r.sessionSampleRate=i),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions,e);this._replay=new ay({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function aT(e){return[...ab,...e.map(e=>e.toLowerCase())]}aE.__initStatic(),globalThis.__sentryRewritesTunnelPath__="/monitoring",globalThis.SENTRY_RELEASE={id:"0422DCld9LBSIMzd6mK95"},globalThis.__sentryBasePath=void 0,globalThis.__rewriteFramesAssetPrefixPath__="",function(e){let t={environment:function(e){let t=e?tU.env.NEXT_PUBLIC_VERCEL_ENV:tU.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tL(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=rm({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){var i;r&&(i=e,eW.document.getElementById("__NEXT_DATA__")?rw.events.on("routeChangeStart",e=>{let t,n;let r=e.split(/[?#]/,1)[0],o=function(e){let t=(eW.__BUILD_MANIFEST||{}).sortedPages;if(t)return t.find(t=>{let n=function(e){let t=e.split("/"),n="";t4([t,"access",e=>e[t.length-1],"optionalAccess",e=>e.match,"call",e=>e(/^\[\[\.\.\..+\]\]$/)])&&(t.pop(),n="(?:/(.+?))?");let r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(r);o?(t=o,n="route"):(t=r,n="url"),ry(i,{name:t,attributes:{[t$.$J]:"navigation",[t$.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[t$.Zj]:n}})}):function(e){let t;eW.addEventListener("popstate",()=>{t&&t.isRecording()?t.updateName(eW.location.pathname):t=ry(e,{name:eW.location.pathname,attributes:{[t$.$J]:"navigation",[t$.S3]:"auto.navigation.nextjs.app_router_instrumentation",[t$.Zj]:"url","navigation.type":"browser.popstate"}})});let n=!1,r=0,i=setInterval(()=>{var o,a;r++;let s=(o=t4([rb,"optionalAccess",e=>e.next,"optionalAccess",e=>e.router]),a=()=>t4([rb,"optionalAccess",e=>e.nd,"optionalAccess",e=>e.router]),null!=o?o:a());n||r>500?clearInterval(i):s&&(clearInterval(i),n=!0,["back","forward","push","replace"].forEach(n=>{t4([s,"optionalAccess",e=>e[n]])&&(s[n]=new Proxy(s[n],{apply(r,i,o){let a=ry(e,{name:rv,attributes:{[t$.$J]:"navigation",[t$.S3]:"auto.navigation.nextjs.app_router_instrumentation",[t$.Zj]:"url"}});return t=a,"push"===n?(t4([a,"optionalAccess",e=>e.updateName,"call",e=>e(rS(o[0]))]),t4([a,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.push")])):"replace"===n?(t4([a,"optionalAccess",e=>e.updateName,"call",e=>e(rS(o[0]))]),t4([a,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.replace")])):"back"===n?t4([a,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.back")]):"forward"===n&&t4([a,"optionalAccess",e=>e.setAttribute,"call",e=>e("navigation.type","router.forward")]),r.apply(i,o)}}))}))},20)}(i)),t.afterAllSetup(e),n&&(eW.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e;let t=eW.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(e){rT.X&&R.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:o}=e;return n.route=r,n.params=i,o&&o.pageProps&&(n.sentryTrace=o.pageProps._sentryTraceData,n.baggage=o.pageProps._sentryBaggage),n}();rg(e,{name:t||eW.location.pathname,startTime:eI.Z1?eI.Z1/1e3:void 0,attributes:{[t$.$J]:"pageload",[t$.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[t$.Zj]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):rg(e,{name:eW.location.pathname,startTime:eI.Z1?eI.Z1/1e3:void 0,attributes:{[t$.$J]:"pageload",[t$.S3]:"auto.pageload.nextjs.app_router_instrumentation",[t$.Zj]:"url"}}))}}}());let n=rD.__rewriteFramesAssetPrefixPath__||"";return t.push(rC({assetPrefixPath:n})),t}(e),...e};(function(e){let t=rN.__sentryRewritesTunnelPath__;if(t&&e.dsn){let n=ef(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],o=r[2],a=`${t}?o=${i}&p=${n.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a,rT.X&&R.kg.info(`Tunneling events to "${a}"`)}else rT.X&&R.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}})(t),D(t,"nextjs",["nextjs","react"]),function(e){let t={...e};D(t,"react"),(0,x.v)("react",{version:tB.version}),function(e={}){let t=function(e={}){let t={defaultIntegrations:tL(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eW.SENTRY_RELEASE&&eW.SENTRY_RELEASE.id?eW.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){let e=void 0!==eW.window&&eW;if(!e)return!1;let t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,i=eW.location&&eW.location.href||"",o=!!r&&eW===eW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some(e=>i.startsWith(`${e}//`)),a=void 0!==e.nw;return!!r&&!o&&!a}()){(0,R.Cf)(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}(function(e,t){!0===t.debug&&(L.X?R.kg.enable():(0,R.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,H.nZ)().update(t.initialScope);let n=new e(t);(0,H.nZ)().setClient(n),n.init()})(eq,{...t,stackParser:(0,V.Sq)(t.stackParser||tO),integrations:function(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r=function(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,M.lE)(n(t)):t),i=r.findIndex(e=>"Debug"===e.name);if(i>-1){let[e]=r.splice(i,1);r.push(e)}return r}(t),transport:t.transport||tP}),t.autoSessionTracking&&void 0!==eW.document&&((0,x.yj)({ignoreDuration:!0}),(0,x.cg)(),ec(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,x.yj)({ignoreDuration:!0}),(0,x.cg)())}))}(t)}(t);let n=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;n.id="NextClient404Filter",(0,x.Qy)(n);let r=e=>"transaction"===e.type&&e.transaction===rv?null:e;r.id="IncompleteTransactionFilter",(0,x.Qy)(r)}({dsn:"https://254bc6285de9b34980387456ebef6d83@o4508178155110400.ingest.de.sentry.io/4508178161467472",integrations:[new aE(void 0)],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,debug:!1})},6615:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(85893),i=n(40076),o=n(4298),a=n.n(o),s=n(67294),l=n(11163),c=n(97582),u=n(16459),d=n(73914),p=n.t(d,2),f=n(30320).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",h=function(e){var t,n=e.client,r=e.children,i=((0,u.kG)("createContext"in p,46),(t=d.createContext[f])||(Object.defineProperty(d.createContext,f,{value:t=d.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t),o=d.useContext(i),a=d.useMemo(function(){return(0,c.pi)((0,c.pi)({},o),{client:n||o.client})},[o,n]);return(0,u.kG)(a.client,47),d.createElement(i.Provider,{value:a},r)},m=n(80124),g=n(1785),y=n.n(g),_=n(11752),v=n.n(_),b=n(24269);n(61020),n(3502),n(168),n(78656),n(28956),n(36013),n(1973),n(35249);var S=function(e){let{Component:t,pageProps:n}=e,o=(0,l.useRouter)(),{publicRuntimeConfig:c}=v()(),u=c.localeDomains[o.locale],d=(e,t)=>{document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain="+t},p=()=>{y().initialize({gtmId:c.tagManagerId})},f=()=>{window["ga-disable-"+c.tagManagerId]=!0,d("_ga_VNLPPEN5GF",".klarhome.com"),d("_ga_VNLPPEN5GF",u)},g=e=>{(null==c?void 0:c.tagManagerId)&&(window.Cookiebot.consented?p():window.Cookiebot.declined&&f())};return(0,s.useEffect)(()=>{let e=()=>{window.Cookiebot?(window.addEventListener("CookiebotOnAccept",g),window.addEventListener("CookiebotOnDecline",f)):setTimeout(e,500)};return e(),()=>{window.removeEventListener("CookiebotOnAccept",g),window.removeEventListener("CookiebotOnDecline",f)}}),c.facebookPageConfigs[(0,b.D2)(o.locale)]&&c.facebookPageConfigs[(0,b.D2)(o.locale)],(0,r.jsxs)("div",{className:"notranslate",children:[(0,r.jsx)(a(),{id:"Cookiebot",src:"https://consent.cookiebot.com/uc.js",type:"text/javascript","data-cbid":"c55f3aed-6abe-4776-8ffc-6dfef8a2ee4e","data-blockingmode":"auto",strategy:"afterInteractive"}),(0,r.jsx)(h,{client:i.ZP,children:(0,r.jsx)(m.B,{children:(t.header&&"secondary"===t.header||t.header&&"customizer"===t.header||t.header&&"localeselector"===t.header||n.globalPage,(0,r.jsx)("div",{children:(0,r.jsx)(t,{...n})}))})})]})}},52543:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(46156);let i="\ncustomProduct {\n    id\n    price\n    generalPrice\n    productSpecification\n    configurableComponentTypes\n    hinge  { id title hingeType price }\n    glass { id title price }\n    glassSpacer { id title }\n    glazing { id title price noGlass }\n    handle { id title price }\n    emergencyExit { id title price }\n    lockCore { id title price }\n    material { id title price name}\n    profile { id title price }\n    safetyLock { id title price }\n    spross { id title price }\n    threshold { id title price }\n    ventilationGrill { id title price }\n    windbrake { id title price }\n    windowSill { id title price }\n    windowBlind { id title price fabricFamily }\n    panelProfile { id title price }\n    latch { id title lockType price }\n    openingDirection { id title price }\n    packer { id title price }\n    innerColor { id title price }\n    outerColor { id title price }\n    mosquitoNet { id title price productionCode }\n    ".concat(r.a,"\n    width\n    height\n    expectedDeliveryWeek { week }\n    featuredImage {\n      url\n      featured\n    }\n    images {\n      url\n      featured\n    }\n    product {\n      id\n      name\n      title\n      code\n      defaultHeight\n      defaultWidth\n      maxHeight\n      maxWidth\n      minHeight\n      minWidth\n      layoutPosts\n      layoutSquares\n      explicitMeasurementEnabled\n      explicitMeasurementCombinations {\n        width\n        height\n      }\n      featuredImage {\n        url\n      },\n      images {\n        url\n      },\n      drawableJson\n    }\n    subCategory {\n      productMatrix {\n        posts\n        squares\n        productId\n      }\n      dimensionMatrixEnabled\n      dimensionMatrix\n      category {\n        id\n        title\n        name\n      }\n      name\n      id\n      title\n    }\n  }\n")},80124:function(e,t,n){"use strict";n.d(t,{B:function(){return eo},Z:function(){return ea}});var r=n(85893),i=n(67294),o=n(89444),a=n(82729),s=n(68806),l=n(52543);function c(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return c=function(){return e},e}let u=(0,s.Ps)(c(),l.l);function d(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return d=function(){return e},e}let p=(0,s.Ps)(d(),l.l);function f(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return f=function(){return e},e}let h=(0,s.Ps)(f(),l.l);function m(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return m=function(){return e},e}let g=(0,s.Ps)(m(),l.l);function y(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return y=function(){return e},e}let _=(0,s.Ps)(y(),l.l);function v(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return v=function(){return e},e}let b=(0,s.Ps)(v(),l.l);function S(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return S=function(){return e},e}let E=(0,s.Ps)(S(),l.l);function T(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return T=function(){return e},e}let w=(0,s.Ps)(T(),l.l);function I(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return I=function(){return e},e}let k=(0,s.Ps)(I(),l.l);function O(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return O=function(){return e},e}let A=(0,s.Ps)(O(),l.l);function C(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return C=function(){return e},e}let N=(0,s.Ps)(C(),l.l);function D(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return D=function(){return e},e}let x=(0,s.Ps)(D(),l.l);function R(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return R=function(){return e},e}let M=(0,s.Ps)(R(),l.l);function P(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return P=function(){return e},e}let L=(0,s.Ps)(P(),l.l);function B(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return B=function(){return e},e}let U=(0,s.Ps)(B(),l.l);function F(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return F=function(){return e},e}let j=(0,s.Ps)(F(),l.l);function $(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return $=function(){return e},e}let W=(0,s.Ps)($(),l.l);function G(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return G=function(){return e},e}let H=(0,s.Ps)(G(),l.l);function q(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return q=function(){return e},e}let z=(0,s.Ps)(q(),l.l);function V(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return V=function(){return e},e}let K=(0,s.Ps)(V(),l.l);function Y(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n    ","\n    }\n  }"]);return Y=function(){return e},e}let J=(0,s.Ps)(Y(),l.l);var Q=n(11752),X=n.n(Q);function Z(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return Z=function(){return e},e}let ee=(0,s.Ps)(Z(),l.l);function et(){let e=(0,a._)(["\n  mutation UpdateCustomProduct($input: CustomProductsUpdateInput!) {\n    updateCustomProduct(input: $input) {\n      ","\n    }\n  }"]);return et=function(){return e},e}let en=(0,s.Ps)(et(),l.l),{publicRuntimeConfig:er}=X()(),ei=(0,i.createContext)({customizerloading:!1,customizerinitialloading:!1,customizerProduct:null,customizerCartCustomProductId:null,customizerStep:0,customizerStepData:null,cartProducts:null,cartTotalPrice:null,bankTransferPayload:null,klarnaPyload:null,bamboraPayload:null,payPalPayload:null,creditCardPayload:null,postsArray:null,squares:null,posts:null,localFlagUrl:null,designerHistoryUrl:null,cartProductsCount:null,configuratorProductsCount:1,toolTipDimensions:{height:0,width:0},visitedSteps:[],customProductSaving:!1,quickCartOpen:!1,voucherCode:null,loadingUpdateCart:!1,basketModal:!1,setCustomProductSaving:()=>{},setCustomizerProduct:()=>{},setCustomizerCurrentStep:()=>{},setCustomizerCurrentStepData:()=>{},updateSelectedStepComponent:()=>{},updateCustomizerProductPrice:()=>{},updateCustomizerProductWidthAndHeight:()=>{},updateCustomizerProductHeight:()=>{},updateCustomizerProductWidth:()=>{},addCartProducts:()=>{},removeFromCartProducts:()=>{},addCartTotalPrice:()=>{},addBankTransferPayload:()=>{},addKlarnaPyload:()=>{},addBamboraPayload:()=>{},addPayPalPayload:()=>{},addCreditCardPayload:()=>{},addPostsArray:()=>{},addPosts:()=>{},removePosts:()=>{},addSquares:()=>{},removeSquares:()=>{},setSvgDefaults:()=>{},setDefaultPosts:()=>{},setDefaultSquares:()=>{},setLocalFlagUrl:()=>{},handleSetCustomizerStep:()=>{},handleDesignerHistoryUrl:()=>{},handleCartProductsCount:()=>{},handleToolTipDimensions:()=>{},setDefaultVisitedSteps:()=>{},addVisitedStep:()=>{},setQuickCartOpen:()=>{},setVoucherCode:()=>{},setLoadingUpdateCart:()=>{},setBasketModal:()=>{}});function eo(e){let[t,n]=(0,i.useState)({productComponents:[{components:[],title:"category",selected:null},{components:[],title:"subCategory",selected:null},{components:[],title:"panes",selected:null},{components:[],title:"dimensions",selected:null},{components:[],title:"latchesType",selected:null},{components:[],title:"latches",selected:null},{components:[],title:"emergencyExits",selected:null},{components:[],title:"glasses",selected:null},{components:[],title:"glazings",selected:null},{components:[],title:"glassSpacers",selected:null},{components:[],title:"handles",selected:null},{components:[],title:"hinges",selected:null},{components:[],title:"lockCores",selected:null},{components:[],title:"materials",selected:null},{components:[],title:"innerColors",selected:null},{components:[],title:"outerColors",selected:null},{components:[],title:"openingDirections",selected:null},{components:[],title:"packers",selected:null},{components:[],title:"panelProfiles",selected:null},{components:[],title:"profiles",selected:null},{components:[],title:"safetyLocks",selected:null},{components:[],title:"sprosses",selected:null},{components:[],title:"thresholds",selected:null},{components:[],title:"ventilationGrills",selected:null},{components:[],title:"windbrakes",selected:null},{components:[],title:"windowSills",selected:null},{components:[],title:"windowBlinds",selected:null},{components:[],title:"mosquitoNets",selected:null},{components:[],title:"finalProductView",selected:null}],height:"",width:"",quantity:null,status:null,dimensions:null,latch:null,emergencyExit:null,glass:null,glassSpacer:null,glazing:null,handle:null,hinge:null,lockCore:null,material:null,innerColor:null,outerColor:null,openingDirection:null,packer:null,panelProfile:null,profile:null,safetyLock:null,spross:null,threshold:null,ventilationGrill:null,windbrake:null,windowSill:null,windowBlind:null,mosquitoNet:null,cartCustomProductId:null,id:null}),[a,s]=(0,i.useState)([{title:"category",remote:null,mutation:null},{title:"subCategory",remote:null,mutation:null},{title:"panes ",remote:null,mutation:null},{title:"dimensions",remote:null,mutation:o.M},{title:"materials",remote:"materials",mutation:k},{title:"glazings",remote:"glazings",mutation:h},{title:"innerColors",remote:"inner_colors",mutation:b},{title:"outerColors",remote:"outer_colors",mutation:N},{title:"openingDirections",remote:"opening_directions",mutation:A},{title:"hinges",remote:"hinges",mutation:_},{title:"latchTypes",remote:"latches",mutation:E},{title:"latches",remote:"latches",mutation:E},{title:"handles",remote:"handles",mutation:g},{title:"lockCores",remote:"lock_cores",mutation:w},{title:"safetyLocks",remote:"safety_locks",mutation:U},{title:"glasses",remote:"glasses",mutation:p},{title:"glassSpacers",remote:"glass_spacers",mutation:ee},{title:"sprosses",remote:"sprosses",mutation:j},{title:"profiles",remote:"profiles",mutation:L},{title:"windowSills",remote:"window_sills",mutation:K},{title:"windowBlinds",remote:"window_blinds",mutation:J},{title:"ventilationGrills",remote:"ventilation_grills",mutation:H},{title:"thresholds",remote:"thresholds",mutation:W},{title:"windbrakes",remote:"windbrakes",mutation:z},{title:"emergencyExits",remote:"emergency_exits",mutation:u},{title:"packers",remote:"packers",mutation:x},{title:"panelProfiles",remote:"panel_profiles",mutation:M},{title:"mosquitoNets",remote:"mosquito_nets",mutation:en},{title:"finalProductView",remote:null,mutation:M}]),[l,c]=(0,i.useState)(0),[d,f]=(0,i.useState)(4),[m,y]=(0,i.useState)(),[v,S]=(0,i.useState)([]),[T,I]=(0,i.useState)(null),[O,C]=(0,i.useState)(null),[D,R]=(0,i.useState)(null),[P,B]=(0,i.useState)(null),[F,$]=(0,i.useState)(null),[G,q]=(0,i.useState)(null),[V,Y]=(0,i.useState)(null),[Q,X]=(0,i.useState)(!1),[Z,et]=(0,i.useState)(!1),[eo,ea]=(0,i.useState)([]),[es,el]=(0,i.useState)(1),[ec,eu]=(0,i.useState)(1),[ed,ep]=(0,i.useState)(""),[ef,eh]=(0,i.useState)(""),[em,eg]=(0,i.useState)(0),[ey,e_]=(0,i.useState)({height:0,width:0}),[ev,eb]=(0,i.useState)(["dimensions","panes"]),[eS,eE]=(0,i.useState)(!1),[eT,ew]=(0,i.useState)(1),[eI,ek]=(0,i.useState)(!1),[eO,eA]=(0,i.useState)({}),[eC,eN]=(0,i.useState)(null),[eD,ex]=(0,i.useState)(null),[eR,eM]=(0,i.useState)(null),[eP,eL]=(0,i.useState)(!1),[eB,eU]=(0,i.useState)(!1);return(0,r.jsx)(ei.Provider,{value:{customizerloading:Q,customizerinitialloading:Z,customizerProduct:t,customizerStep:l,customizerStepData:m,cartProducts:v,cartTotalPrice:T,bankTransferPayload:D,klarnaPyload:P,bamboraPayload:F,payPalPayload:G,creditCardPayload:V,postsArray:eo,posts:es,squares:ec,localFlagUrl:ed,customizerStepMap:a,customizerCartCustomProductId:O,highestCustomizerStepIndex:d,designerHistoryUrl:ef,cartProductsCount:em,toolTipDimensions:ey,visitedSteps:ev,cartData:eC,checkoutForm:eD,setHighestCustomizerStepIndex:f,setCustomizerStepData:y,setCustomizerCartCustomProductId:C,setCustomizerProduct:function(e){n(e)},setCustomizerCurrentStep:function(e){e===t.productComponents.length?(c(4),y(t.productComponents[4])):(y(t.productComponents[e]),c(e))},setCustomizerCurrentStepData:function(e,t){y(e),c(t),0>ev.indexOf(e.title)&&eb([...ev,e.title])},updateSelectedStepComponent:function(e,r){y({...m,selected:e}),n({...t,productComponents:t.productComponents.map(t=>t.title===r?{...t,selected:e}:t)})},updateCustomizerProductPrice:function(e){n({...e,price:e.price})},updateCustomizerProductWidthAndHeight:function(e,r){n({...t,width:parseInt(e),height:parseInt(r)})},updateCustomizerProductHeight:function(e){n({...t,height:e})},updateCustomizerProductWidth:function(e){n({...t,width:e})},setLoadingCustomizer:X,setLoadingMainCustomizer:et,addCartProducts:function(e){S(er.hideDraftCartCustomProducts?e.filter(e=>"draft"!==e.status):e)},removeFromCartProducts:function(e){S(v.filter(t=>t.customProduct.id!=e))},addCartTotalPrice:function(e){I(e)},addBankTransferPayload:function(e){R(e)},addKlarnaPyload:function(e){B(e)},addBamboraPayload:function(e){$(e)},addPayPalPayload:function(e){q(e)},addCreditCardPayload:function(e){Y(e)},addPostsArray:function(e){ea(e)},addPosts:function(){el(e=>e+1)},removePosts:function(){el(e=>e-1)},addSquares:function(){eu(e=>e+1)},removeSquares:function(){eu(e=>e-1)},setPosts:el,setSquares:eu,setSvgDefaults:function(){(function(){let e=[];for(let t=0;t<es;t++){let n={value:t,squares:[]};e.push(n)}let t=0;for(;t<ec&&es>=1;)for(let n=0;n<es&&t<ec;n++)e[n].squares.push(1),t+=1;ea(e)})()},setDefaultPosts:function(e){el(e)},setDefaultSquares:function(e){eu(e)},setLocalFlagUrl:ep,handleSetCustomizerStep:function(e){c(e)},handleDesignerHistoryUrl:function(e,t){"add"===e&&null===localStorage.getItem("HELLO")&&localStorage.setItem("HELLO",t),"remove"===e&&localStorage.removeItem("HELLO")},handleCartProductsCount:function(e){eg(e)},handleToolTipDimensions:function(e){e_(e)},setDefaultVisitedSteps:function(){eb(["dimensions","panes"])},addVisitedStep:function(e){eb([...ev,e])},customProductSaving:eS,setCustomProductSaving:eE,configuratorProductsCount:eT,setConfiguratorProductsCount:ew,quickCartOpen:eI,setQuickCartOpen:ek,setCartData:eN,setCheckoutForm:ex,voucherCode:eR,setVoucherCode:eM,loadingUpdateCart:eP,setLoadingUpdateCart:eL,basketModal:eB,setBasketModal:eU},children:e.children})}var ea=ei},28956:function(){},36013:function(){},1973:function(){},35249:function(){},78656:function(){},3502:function(){},61020:function(){},168:function(){},11163:function(e,t,n){e.exports=n(43079)},4298:function(e,t,n){e.exports=n(23381)},34155:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},56421:function(e,t,n){"use strict";var r,i=(r=n(96425))&&r.__esModule?r:{default:r};e.exports={tags:function(e){var t=e.id,n=e.events,r=e.dataLayer,o=e.dataLayerName,a=e.preview,s="&gtm_auth="+e.auth,l="&gtm_preview="+a;t||(0,i.default)("GTM Id is required");var c="\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(n).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+l+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+l+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:c,dataLayerVar:this.dataLayer(r,o)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}}},58676:function(e,t,n){"use strict";var r,i=(r=n(56421))&&r.__esModule?r:{default:r};e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=i.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,n=e.events,r=e.dataLayer,i=e.dataLayerName,o=e.auth,a=e.preview,s=this.gtm({id:t,events:void 0===n?{}:n,dataLayer:r||void 0,dataLayerName:void 0===i?"dataLayer":i,auth:void 0===o?"":o,preview:void 0===a?"":a});r&&document.head.appendChild(s.dataScript),document.head.insertBefore(s.script(),document.head.childNodes[0]),document.body.insertBefore(s.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,n=e.dataLayerName,r=void 0===n?"dataLayer":n;if(window[r])return window[r].push(t);var o=i.default.dataLayer(t,r),a=this.dataScript(o);document.head.insertBefore(a,document.head.childNodes[0])}}},1785:function(e,t,n){"use strict";var r,i=(r=n(58676))&&r.__esModule?r:{default:r};e.exports=i.default},96425:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},69921:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||S(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===_||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=S},59864:function(e,t,n){"use strict";e.exports=n(69921)},73914:function(e,t,n){"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(67294))},28382:function(e,t,n){"use strict";n.r(t),n.d(t,{parse:function(){return i}});var r="<unknown>";function i(e){return e.split("\n").reduce(function(e,t){var n,i,p,f=function(e){var t=o.exec(e);if(!t)return null;var n=t[2]&&0===t[2].indexOf("native"),i=t[2]&&0===t[2].indexOf("eval"),s=a.exec(t[2]);return i&&null!=s&&(t[2]=s[1],t[3]=s[2],t[4]=s[3]),{file:n?null:t[2],methodName:t[1]||r,arguments:n?[t[2]]:[],lineNumber:t[3]?+t[3]:null,column:t[4]?+t[4]:null}}(t)||((n=s.exec(t))?{file:n[2],methodName:n[1]||r,arguments:[],lineNumber:+n[3],column:n[4]?+n[4]:null}:null)||function(e){var t=l.exec(e);if(!t)return null;var n=t[3]&&t[3].indexOf(" > eval")>-1,i=c.exec(t[3]);return n&&null!=i&&(t[3]=i[1],t[4]=i[2],t[5]=null),{file:t[3],methodName:t[1]||r,arguments:t[2]?t[2].split(","):[],lineNumber:t[4]?+t[4]:null,column:t[5]?+t[5]:null}}(t)||((i=d.exec(t))?{file:i[2],methodName:i[1]||r,arguments:[],lineNumber:+i[3],column:i[4]?+i[4]:null}:null)||((p=u.exec(t))?{file:p[3],methodName:p[1]||r,arguments:[],lineNumber:+p[4],column:p[5]?+p[5]:null}:null);return f&&e.push(f),e},[])}var o=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,s=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,d=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i},11294:function(e,t,n){"use strict";n.d(t,{R:function(){return p}});var r=n(97582),i=n(81223),o=n(23361),a=n(66331),s=n(48216),l=n(182),c=n(99869),u=n(88244),d=n(39613),p=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.re)(o.Yk,{max:a.Q["cache.fragmentQueryDocuments"]||1e3,cache:c.k})}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,n=this,i=e.fragment,o=e.fragmentName,a=e.from,c=e.optimistic,u=(0,r._T)(e,["fragment","fragmentName","from","optimistic"]),p=this.getFragmentDoc(i,o),f=(0,r.pi)((0,r.pi)({},u),{returnPartialData:!0,id:"string"==typeof a?a:this.identify(a),query:p,optimistic:void 0===c||c});return new s.y(function(e){return n.watch((0,r.pi)((0,r.pi)({},f),{immediate:!0,callback:function(n){if(!(t&&(0,d.W)(p,{data:null==t?void 0:t.result},{data:n.result}))){var r={data:n.result,complete:!!n.complete};n.missing&&(r.missing=(0,l.bw)(n.missing.map(function(e){return e.missing}))),t=n,e.next(r)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=(0,r._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=(0,r._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),o=t(i);return null==o?i:(n.writeQuery((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),o=t(i);return null==o?i:(n.writeFragment((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(p.prototype.getMemoryInternals=u.Kb)},75727:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(97582),i=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.ZT)(t,e),t}(Error)},49641:function(e,t,n){"use strict";n.d(t,{$O:function(){return _},E_:function(){return v},Is:function(){return E},RC:function(){return function e(t,n,r){return!!(0,o.s)(n)&&((0,a.k)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,s.LZ)(t,r)){var o=(0,i.u2)(t);return d.call(n,o)&&(!t.selectionSet||e(t.selectionSet,n[o],r))}return!0}))}},RI:function(){return d},ig:function(){return S},j:function(){return b},jS:function(){return m},jp:function(){return y},lg:function(){return g},uG:function(){return f}});var r=n(53712),i=n(51761),o=n(13154),a=n(21436),s=n(19065),l=n(182),c=n(23361),u=n(36765),d=Object.prototype.hasOwnProperty;function p(e){return null==e}function f(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=p(r)?p(i)?void 0:{_id:i}:{id:r}),p(r)&&!p(i)&&(r=i),!p(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var h={dataIdFromObject:f,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,r.o)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var _=/^[_a-z][_0-9a-z]*/i;function v(e){var t=e.match(_);return t?t[0]:e}function b(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function S(){return new l.w0}function E(e,t){var n=(0,c.F)((0,u.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}},51625:function(e,t,n){"use strict";n.d(t,{h:function(){return em}});var r,i,o=n(97582),a=n(16459),s=n(81223),l=n(30020),c=n(11294),u=n(75727),d=n(18056),p=n(76487),f=n(66331),h=n(5466),m=n(50713),g=n(51761),y=n(97359),_=n(30320),v=n(53712),b=n(36765),S=n(182),E=n(19065),T=n(23361),w=n(13154);function I(e){if(!1!==globalThis.__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,w.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,w.s)(e[n])&&t.add(e[n])})})}return e}var k=n(75028),O=n(49641),A=Object.create(null),C=function(){return A},N=Object.create(null),D=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return I((0,g.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,g.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,g.kQ)(e);if((0,g.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,g.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),O.RI.call(this.data,e)){var n=this.data[e];if(n&&O.RI.call(n,t))return n[t]}return"__typename"===t&&O.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof M?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),O.RI.call(this.data,e))?this.data[e]:this instanceof M?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,g.Yk)(e)&&(e=e.__ref),(0,g.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){(0,a.kG)("string"==typeof n,1);var s=new S.w0(L).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var l=Object.create(null);i||(l.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){l[e]=1;var t=(0,O.E_)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(l[t]=1),void 0!==s[e]||r instanceof M||delete s[e]}}),l.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),s=!1,l=!0,c={DELETE:A,INVALIDATE:N,isReference:g.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,g.kQ)(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var d=(0,O.E_)(u),p=r[u];if(void 0!==p){var f="function"==typeof t?t:t[u]||t[d];if(f){var h=f===C?A:f(I(p),(0,o.pi)((0,o.pi)({},c),{fieldName:d,storeFieldName:u,storage:n.getStorage(e,u)}));if(h===N)n.group.dirty(e,u);else if(h===A&&(h=void 0),h!==p&&(i[u]=h,s=!0,p=h,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&a.kG.warn(2,e),!0};if((0,g.Yk)(h))m(h);else if(Array.isArray(h))for(var y=!1,_=void 0,v=0,b=h;v<b.length;v++){var S=b[v];if((0,g.Yk)(S)){if(y=!0,m(S))break}else"object"==typeof S&&S&&n.policies.identify(S)[0]&&(_=S);if(y&&void 0!==_){!1!==globalThis.__DEV__&&a.kG.warn(3,_);break}}}}void 0!==p&&(l=!1)}}),s)return this.merge(e,i),l&&(this instanceof M?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=C,r):C)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(O.RI.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof M&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){O.RI.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&O.RI.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,o._T)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof M?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){O.RI.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof M;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!O.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,g.Yk)(e)&&(t[e.__ref]=!0),(0,w.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,w.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),x=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new k.B(_.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=(0,O.E_)(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function R(e,t){B(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new x(void 0===r||r))||this;return o.stump=new P(o),o.storageTrie=new k.B(_.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=D||(D={})),r.Root=i;var M=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,l.D)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return O.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),P=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new x(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(M);function L(e,t,n){var r=e[n],i=t[n];return(0,l.D)(r,i)?r:i}function B(e){return!!(e instanceof D&&e.group.caching)}var U=n(21436),F=function(){function e(){this.known=new(_.sy?WeakSet:Set),this.pool=new k.B(_.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,w.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,w.s)(e)){var t=(0,w.s)(e)?(0,U.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,w.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var l=a.length;s.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function j(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var $=function(){function e(e){var t=this;this.knownResults=new(_.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,O.lg)(e)}),this.canon=e.canon||new F,this.executeSelectionSet=(0,s.re)(function(e){var n,r=e.context.canonizeResults,i=j(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(R(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||f.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:j,makeCacheKey:function(e,t,n,r){if(B(n.store))return n.store.makeCacheKey(e,(0,g.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return R(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||f.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(B(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new F},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,l=e.canonizeResults,c=void 0===l?this.config.canonizeResults:l,d=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,b.O4)((0,b.iW)(r))),a);var p=(0,g.kQ)(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:(0,b.p$)(r).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,o.pi)({store:n,query:r,policies:d,variables:a,varString:(0,h.B)(a),canonizeResults:c},(0,O.Is)(r,this.config.fragments))});if(f.missing&&(t=[new u.y(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,r,a)],!(void 0===s||s)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(B(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,g.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var l=s.variables,c=s.policies,u=s.store.getFieldValue(i,"__typename"),d=[],f=new S.w0;function h(e,n){var r;return e.missing&&(t=f.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&d.push({__typename:u});var m=new Set(r.selections);m.forEach(function(e){var r,_;if((0,E.LZ)(e,l)){if((0,g.My)(e)){var v=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),b=(0,g.u2)(e);void 0===v?p.Gw.added(e)||(t=f.merge(t,((r={})[b]="Can't find field '".concat(e.name.value,"' on ").concat((0,g.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,U.k)(v)?v.length>0&&(v=h(n.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:s}),b)):e.selectionSet?null!=v&&(v=h(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,g.Yk)(v)?v:o,context:s}),b)):s.canonizeResults&&(v=n.canon.pass(v)),void 0!==v&&d.push(((_={})[b]=v,_))}else{var S=(0,T.hi)(e,s.lookupFragment);if(!S&&e.kind===y.h.FRAGMENT_SPREAD)throw(0,a._K)(9,e.name.value);S&&c.fragmentMatches(S,u)&&S.selectionSet.selections.forEach(m.add,m)}}});var _={result:(0,S.bw)(d),missing:t},v=s.canonizeResults?this.canon.admit(_):I(_);return v.result&&this.knownResults.set(v.result,r),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,l=new S.w0;function c(e,n){var r;return e.missing&&(t=l.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,U.k)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,g.Yk)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,w.s)(n)&&((0,a.kG)(!(0,g.Yk)(n),10,(0,O.jp)(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),W=n(79487),G=n(13887),H=n(66438),q=Object.create(null);function z(e){var t=JSON.stringify(e);return q[t]||(q[t]=Object.create(null))}function V(e){var t=z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=Y(e,function(e){var i=Q(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&O.RI.call(t,e[0])&&(i=Q(t,e,J)),(0,a.kG)(void 0!==i,4,e.join("."),t),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function K(e){var t=z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(Y(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,U.O)(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),l=s&&(0,g.NC)(s,i);return l&&Q(l,e.slice(1))}return}if("$"===o){var c=n.slice(1);if(i&&O.RI.call(i,c)){var u=e.slice(0);return u[0]=c,Q(i,u)}return}if(t)return Q(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function Y(e,t){var n=new S.w0;return(function e(t){var n=z(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,U.k)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,U.k)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function J(e,t){return e[t]}function Q(e,t,n){return n=n||J,function e(t){return(0,w.s)(t)?(0,U.k)(t)?t.map(e):Y(Object.keys(t).sort(),function(e){return Q(t,e)}):t}(t.reduce(function e(t,r){return(0,U.k)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function X(e){return void 0!==e.args?e.args:e.field?(0,g.NC)(e.field,e.variables):null}var Z=function(){},ee=function(e,t){return t.fieldName},et=function(e,t,n){return(0,n.mergeObjects)(e,t)},en=function(e,t){return t},er=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:O.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,l=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eo(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var d=u((0,o.pi)((0,o.pi)({},e),s),l);if((0,U.k)(d))u=V(d);else{r=d;break}}return r=r?String(r):void 0,l.keyObject?[r,l.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,s=r.subscriptionType,l=(0,o._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),O.RI.call(t.toBeAdded,n)?t.toBeAdded[n].push(l):t.toBeAdded[n]=[l]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?et:!1===t?en:e.merge}a(r,t.merge),r.keyFn=!1===i?Z:(0,U.k)(i)?V(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,c=i.merge;r.keyFn=!1===s?ee:(0,U.k)(s)?K(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||ee)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,a.kG)(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(O.$O);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!O.RI.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,o._T)(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),l=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},u=!!(n&&this.fuzzySubtypes.size),d=!1,p=0;p<l.length;++p){var f=l[p];if(f.has(o))return s.has(o)||(d&&!1!==globalThis.__DEV__&&a.kG.warn(6,t,o),s.add(o)),!0;f.forEach(c),u&&p===l.length-1&&(0,O.RC)(e.selectionSet,n,r)&&(u=!1,d=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=X(e);o;){var l=o(s,a);if((0,U.k)(l))o=K(l);else{t=l||r;break}}return(void 0===t&&(t=e.field?(0,g.vf)(e.field,e.variables):(0,g.PT)(r,X(e))),!1===t)?r:r===(0,O.E_)(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=(0,O.E_)(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),l=s&&s.read;if(l){var c=ei(this,n,e,t,t.store.getStorage((0,g.Yk)(n)?n.__ref:n,i));return H.ab.withValue(this.cache,l,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===et?ea(r.store)(e,t):s===en?t:(r.overwrite&&(e=void 0),s(e,t,ei(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function ei(e,t,n,r,i){var o=e.getStoreFieldName(n),a=(0,O.E_)(o),s=n.variables||r.variables,l=r.store,c=l.toReference,u=l.canRead;return{args:X(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:g.Yk,toReference:c,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(eo(arguments,t,s),r)},mergeObjects:ea(r.store)}}function eo(e,t,n){var r,i=e[0],s=e[1],l=e.length;return"string"==typeof i?r={fieldName:i,from:l>1?s:t}:(r=(0,o.pi)({},i),O.RI.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&a.kG.warn(7,(0,G.v)(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function ea(e){return function(t,n){if((0,U.k)(t)||(0,U.k)(n))throw(0,a._K)(8);if((0,w.s)(t)&&(0,w.s)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if((0,g.Yk)(t)&&(0,O.j)(n))return e.merge(t.__ref,n),t;if((0,O.j)(t)&&(0,g.Yk)(n))return e.merge(t,n.__ref),n;if((0,O.j)(t)&&(0,O.j)(n))return(0,o.pi)((0,o.pi)({},t),n)}return n}}function es(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:n})),i}var el=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,s=t.dataId,c=t.variables,u=t.overwrite,d=(0,b.$H)(r),p=(0,O.ig)();c=(0,o.pi)((0,o.pi)({},(0,b.O4)(d)),c);var f=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,h.B)(c)},(0,O.Is)(r,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:f});if(!(0,g.Yk)(m))throw(0,a._K)(11,i);return f.incomingById.forEach(function(t,r){var i=t.storeObject,s=t.mergeTree,c=t.fieldNodeSet,u=(0,g.kQ)(r);if(s&&s.map.size){var d=n.applyMerges(s,u,i,f);if((0,g.Yk)(d))return;i=d}if(!1!==globalThis.__DEV__&&!f.overwrite){var p=Object.create(null);c.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var h=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==p[(0,O.E_)(e)]||h(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},s=i(e);if(s){var c=i(t);if(!(!c||(0,g.Yk)(s)||(0,l.D)(s,c)||Object.keys(s).every(function(e){return void 0!==r.getFieldValue(c,e)}))){var u=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),d=(0,O.E_)(n),p="".concat(u,".").concat(d);if(!ef.has(p)){ef.add(p);var f=[];(0,U.k)(s)||(0,U.k)(c)||[s,c].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),!1!==globalThis.__DEV__&&a.kG.warn(14,d,u,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,o.pi)({},s),(0,o.pi)({},c))}}}}(u,i,e,f.store)})}e.merge(r,i)}),e.retain(m.__ref),m},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,s=e.context,l=e.mergeTree,c=this.cache.policies,u=Object.create(null),d=n&&c.rootTypenamesById[n]||(0,g.qw)(r,i,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(u.__typename=d);var f=function(){var e=eo(arguments,u,s.variables);if((0,g.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return c.readField(e,s)},h=new Set;this.flattenFields(i,r,s,d).forEach(function(e,n){var i,o=r[(0,g.u2)(n)];if(h.add(n),void 0!==o){var s=c.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),m=eu(l,s),y=t.processFieldValue(o,n,n.selectionSet?es(e,!1,!1):e,m),_=void 0;n.selectionSet&&((0,g.Yk)(y)||(0,O.j)(y))&&(_=f("__typename",y));var v=c.getMergeFunction(d,n.name.value,_);v?m.info={field:n,typename:d,merge:v}:ep(l,s),u=e.merge(u,((i={})[s]=y,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||p.Gw.added(n)||c.getReadFunction(d,n.name.value)||!1===globalThis.__DEV__||a.kG.error(12,(0,g.u2)(n),r)});try{var m=c.identify(r,{typename:d,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:u,readField:f}),y=m[0],_=m[1];n=n||y,_&&(u=s.merge(u,_))}catch(e){if(!n)throw e}if("string"==typeof n){var v=(0,g.kQ)(n),b=s.written[n]||(s.written[n]=[]);if(b.indexOf(i)>=0||(b.push(i),this.reader&&this.reader.isFresh(r,v,i,s)))return v;var S=s.incomingById.get(n);return S?(S.storeObject=s.merge(S.storeObject,u),S.mergeTree=function e(t,n){if(t===n||!n||ed(n))return t;if(!t||ed(t))return n;var r=t.info&&n.info?(0,o.pi)((0,o.pi)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var s=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(S.mergeTree,l),h.forEach(function(e){return S.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:u,mergeTree:ed(l)?void 0:l,fieldNodeSet:h}),v}return u},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,U.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,eu(r,o));return ep(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?(0,W.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,g.qw)(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,s=new k.B(!1);return function e(l,c){var u=s.lookup(l,c.clientOnly,c.deferred);u.visited||(u.visited=!0,l.selections.forEach(function(s){if((0,E.LZ)(s,n.variables)){var l=c.clientOnly,u=c.deferred;if(!(l&&u)&&(0,U.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(l=!0),"defer"===t){var r=(0,g.NC)(e,n.variables);r&&!1===r.if||(u=!0)}}),(0,g.My)(s)){var d=i.get(s);d&&(l=l&&d.clientOnly,u=u&&d.deferred),i.set(s,es(n,l,u))}else{var p=(0,T.hi)(s,n.lookupFragment);if(!p&&s.kind===y.h.FRAGMENT_SPREAD)throw(0,a._K)(13,s.name.value);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,es(n,l,u))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var s=this;if(e.map.size&&!(0,g.Yk)(n)){var l,c,u=!(0,U.k)(n)&&((0,g.Yk)(t)||(0,O.j)(t))?t:void 0,d=n;u&&!i&&(i=[(0,g.Yk)(u)?u.__ref:u]);var p=function(e,t){return(0,U.k)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=p(u,t),o=p(d,t);if(void 0!==o){i&&i.push(t);var l=s.applyMerges(e,n,o,r,i);l!==o&&(c=c||new Map).set(t,l),i&&(0,a.kG)(i.pop()===t)}}),c&&(n=(0,U.k)(d)?d.slice(0):(0,o.pi)({},d),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(l=r.store).getStorage.apply(l,i)):n},e}(),ec=[];function eu(e,t){var n=e.map;return n.has(t)||n.set(t,ec.pop()||{map:new Map}),n.get(t)}function ed(e){return!e||!(e.info||e.map.size)}function ep(e,t){var n=e.map,r=n.get(t);r&&ed(r)&&(ec.push(r),n.delete(t))}var ef=new Set,eh=n(88244),em=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new d.A(p.Gw),n.assumeImmutableResults=!0,n.makeVar=H.QS,n.txCount=0,n.config=(0,O.jS)(t),n.addTypename=!!n.config.addTypename,n.policies=new er({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new D.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new el(this,this.storeReader=new $({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,O.lg)(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,s.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||f.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(B(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,h.B)({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof u.y)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(O.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,H._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,H.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){h.B.reset(),m.S.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,g.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(O.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),h.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,H.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,c=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},u=new Set;return l&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&u.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var n=l.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,l.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(c.R);!1!==globalThis.__DEV__&&(em.prototype.getMemoryInternals=eh.q4)},66438:function(e,t,n){"use strict";n.d(t,{QS:function(){return c},_v:function(){return l},ab:function(){return i},li:function(){return s}});var r=n(81223),i=new r.g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var l=Array.from(n);n.clear(),l.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},25735:function(e,t,n){"use strict";n.d(t,{f:function(){return Z}});var r=n(97582),i=n(16459),o=n(48702),a=n(47037),s=n(49379),l=n(72198),c=n(30020),u=n(37280),d=n(19065),p=n(76487),f=n(5466),h=n(18056),m=n(48216);function g(e,t,n){return new m.y(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}var y=n(21436);function _(e){var t=v(e);return(0,y.O)(t)}function v(e){var t=(0,y.O)(e.errors)?e.errors.slice(0):[];return(0,u.GG)(e)&&(0,y.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var b=n(36765),S=n(51761),E=n(13154),T=n(60897),w=n(18263),I=n(86403);function k(e){return e&&"function"==typeof e.then}var O=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,w.p)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,w.p)(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?k(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,w.p)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new m.y(t)]),k(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(m.y);(0,I.D)(O);var A=n(30990),C=n(44780),N=n(1644),D=n(182),x=new((n(30320)).mr?WeakMap:Map);function R(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return x.set(e,(x.get(e)+1)%1e15),n.apply(this,arguments)})}function M(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var P=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;x.has(n)||(x.set(n,0),R(n,"evict"),R(n,"modify"),R(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||N.Ie.loading;return this.variables&&this.networkStatus!==N.Ie.loading&&!(0,c.D)(this.variables,e.variables)&&(t=N.Ie.setVariables),(0,c.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){M(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,c.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():(0,C.vj)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;M(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,N.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===x.get(this.cache)&&(0,c.D)(t,n.variables)&&(0,c.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new D.w0,a=(0,y.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,y.O)(e.incremental)){var s=(0,u.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(L(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:x.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&(0,c.D)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=N.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=N.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function L(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_(e);return!r&&n&&e.data&&(r=!0),r}var B=n(50713),U=n(75028),F=n(38991),j=n(66331),$=Object.prototype.hasOwnProperty,W=Object.create(null),G=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new F.s(j.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new U.B(!1);var n=new h.A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,i._K)(26))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,r.mG)(this,arguments,void 0,function(e){var t,n,o,a,s,l,c,u=e.mutation,d=e.variables,p=e.optimisticResponse,f=e.updateQueries,h=e.refetchQueries,m=void 0===h?[]:h,y=e.awaitRefetchQueries,b=void 0!==y&&y,S=e.update,E=e.onQueryUpdated,T=e.fetchPolicy,w=void 0===T?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.fetchPolicy)||"network-only":T,I=e.errorPolicy,k=void 0===I?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":I,O=e.keepRootFields,C=e.context;return(0,r.Jh)(this,function(e){switch(e.label){case 0:if((0,i.kG)(u,27),(0,i.kG)("network-only"===w||"no-cache"===w,28),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),n=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),!n)return[3,2];return[4,this.localState.addExportedVariables(u,d,C)];case 1:d=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:d,loading:!0,error:null}),a=p&&this.markMutationOptimistic(p,{mutationId:t,document:u,variables:d,fetchPolicy:w,errorPolicy:k,context:C,updateQueries:f,update:S,keepRootFields:O}),this.broadcastQueries(),s=this,[2,new Promise(function(e,n){return g(s.getObservableFromLink(u,(0,r.pi)((0,r.pi)({},C),{optimisticResponse:a?p:void 0}),d,{},!1),function(e){if(_(e)&&"none"===k)throw new A.cA({graphQLErrors:v(e)});o&&(o.loading=!1,o.error=null);var n=(0,r.pi)({},e);return"function"==typeof m&&(m=m(n)),"ignore"===k&&_(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:u,variables:d,fetchPolicy:w,errorPolicy:k,context:C,update:S,updateQueries:f,awaitRefetchQueries:b,refetchQueries:m,removeOptimistic:a?t:void 0,onQueryUpdated:E,keepRootFields:O})}).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof A.cA?e:new A.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&L(i,e.errorPolicy)){if((0,u.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,u.GG)(i)&&(0,y.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=(0,u.mT)(s.result,i)),void 0!==l&&(i.data=l,o.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&$.call(c,s)){var l=c[s],u=n.queries.get(r),d=u.document,p=u.variables,f=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),h=f.result;if(f.complete&&h){var m=l(h,{mutationResult:i,queryName:d&&(0,b.rY)(d)||void 0,queryVariables:p});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,l=!(0,u.M0)(i)||(0,u.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,r.pi)((0,r.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables,{IGNORE:W}):e;return o!==W&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,d.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,d.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,b.O4)((0,b.$H)(e)),asQuery:(0,r.pi)((0,r.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new P(this),i=new C.ue({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,29),(0,i.kG)("Document"===e.query.kind,30),(0,i.kG)(!e.returnPartialData,31),(0,i.kG)(!e.pollInterval,32),this.fetchQuery(t,(0,r.pi)((0,r.pi)({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(33)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=N.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,S.JW)(e)?o.set(t.transform(e),!1):(0,E.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e){n.set(r,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,T.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new C.ue({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){e||!1===globalThis.__DEV__||i.kG.warn("string"==typeof t?34:35,t)}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,l=void 0===s?{}:s,c=e.extensions,u=void 0===c?{}:c;n=this.transform(n),a=this.getVariables(n,a);var d=function(e){return t.getObservableFromLink(n,l,e,u).map(function(i){"no-cache"!==r&&(L(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=_(i),s=(0,A.ls)(i);if(a||s){var l={};if(a&&(l.graphQLErrors=i.errors),s&&(l.protocolErrors=i.extensions[A.YG]),"none"===o||s)throw new A.cA(l)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(n).hasClientExports){var p=this.localState.addExportedVariables(n,a,l).then(d);return new m.y(function(e){var t=null;return p.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i,o){var s,l,c=this;void 0===o&&(o=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var u=this.getDocumentInfo(e),d=u.serverQuery,p=u.clientQuery;if(d){var h=this.inFlightLinkObservables,y=this.link,_={query:d,variables:n,operationName:(0,b.rY)(d)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!o})),extensions:i};if(t=_.context,o){var v=(0,B.S)(d),S=(0,f.B)(n),E=h.lookup(v,S);if(!(l=E.observable)){var T=new O([(0,a.h)(y,_)]);l=E.observable=T,T.beforeNext(function(){h.remove(v,S)})}}else l=new O([(0,a.h)(y,_)])}else l=new O([m.y.of({data:{}})]),t=this.prepareContext(t);return p&&(l=g(l,function(e){return c.localState.runResolvers({document:p,remoteResult:e,context:t,variables:n})})),l},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return g(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=v(o),s=a.length>0,l=n.errorPolicy;if(r>=e.lastRequestId){if(s&&"none"===l)throw e.markError(new A.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:N.Ie.ready};return s&&"none"===l&&(c.data=void 0),s&&"ignore"!==l&&(c.errors=a,c.networkStatus=N.Ie.error),c},function(t){var n=(0,A.MS)(t)?t:new A.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i,o,a=this;void 0===n&&(n=N.Ie.loading),void 0===r&&(r=t.query);var s=this.getVariables(r,t.variables),l=this.getQuery(e),c=this.defaultOptions.watchQuery,u=t.fetchPolicy,d=void 0===u?c&&c.fetchPolicy||"cache-first":u,p=t.errorPolicy,f=void 0===p?c&&c.errorPolicy||"none":p,h=t.returnPartialData,m=t.notifyOnNetworkStatusChange,g=t.context,y=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===g?{}:g}),_=function(e){y.variables=e;var r=a.fetchQueryByPolicy(l,y,n);return"standby"!==y.fetchPolicy&&r.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),r},v=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){v(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new O(this.localState.addExportedVariables(y.query,y.variables,y.context).then(_).then(function(e){return e.sources})),o=!0;else{var b=_(y.variables);o=b.fromLink,i=new O(b.sources)}return i.promise.then(v,v),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,T.X)("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof P&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(l){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=l(i,a,o)}l&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,u=t.errorPolicy,d=t.returnPartialData,p=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var g=function(){return e.getDiff()},y=function(t,n){void 0===n&&(n=e.networkStatus||N.Ie.loading);var s=t.result;!1===globalThis.__DEV__||d||(0,c.D)(s,{})||(0,C.DC)(t.missing);var l=function(e){return m.y.of((0,r.pi)({data:e,loading:(0,N.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===u&&n===N.Ie.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},_="no-cache"===s?0:n===N.Ie.refetch&&"merge"!==l?1:2,v=function(){return i.getResultsFromLink(e,_,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:u})},b=f&&"number"==typeof h&&h!==n&&(0,N.Oj)(n);switch(s){default:case"cache-first":var S=g();if(S.complete)return{fromLink:!1,sources:[y(S,e.markReady())]};if(d||b)return{fromLink:!0,sources:[y(S),v()]};return{fromLink:!0,sources:[v()]};case"cache-and-network":var S=g();if(S.complete||d||b)return{fromLink:!0,sources:[y(S),v()]};return{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[y(g(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(g()),v()]};return{fromLink:!0,sources:[v()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),v()]};return{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new P(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)((0,r.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),H=n(77304),q=n(97359);function z(e){return e.kind===q.h.FIELD||e.kind===q.h.FRAGMENT_SPREAD||e.kind===q.h.INLINE_FRAGMENT}var V=n(23361),K=n(66438),Y=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,D.Ee)(t.resolvers,e)}):this.resolvers=(0,D.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,r.mG)(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,d.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,r.mG)(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)})]:[2,(0,r.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,H.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return H.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,r.mG)(this,arguments,void 0,function(e,t,n,i,o,a){var s,l,c,u,d,p,f,h,m,g;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.Jh)(this,function(y){return s=(0,b.p$)(e),l=(0,b.kU)(e),c=(0,V.F)(l),u=this.collectSelectionsToResolve(s,c),p=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",f=this,h=f.cache,m=f.client,g={fragmentMap:c,context:(0,r.pi)((0,r.pi)({},n),{cache:h,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,o){return(0,r.mG)(this,void 0,void 0,function(){var a,s,l,c,u,p=this;return(0,r.Jh)(this,function(f){return a=o.fragmentMap,s=o.context,l=o.variables,c=[n],u=function(e){return(0,r.mG)(p,void 0,void 0,function(){var u,p;return(0,r.Jh)(this,function(r){return(t||o.selectionsToResolve.has(e))&&(0,d.LZ)(e,l)?(0,S.My)(e)?[2,this.resolveField(e,t,n,o).then(function(t){var n;void 0!==t&&c.push(((n={})[(0,S.u2)(e)]=t,n))})]:((0,S.Ao)(e)?u=e:(u=a[e.name.value],(0,i.kG)(u,18,e.name.value)),u&&u.typeCondition&&(p=u.typeCondition.name.value,o.fragmentMatcher(n,p,s)))?[2,this.resolveSelectionSet(u.selectionSet,t,n,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return(0,D.bw)(c)})]})})},e.prototype.resolveField=function(e,t,n,i){return(0,r.mG)(this,void 0,void 0,function(){var o,a,s,l,c,u,d,p,f,h=this;return(0,r.Jh)(this,function(r){return n?(o=i.variables,l=(a=e.name.value)!==(s=(0,S.u2)(e)),u=Promise.resolve(c=n[s]||n[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[d])&&(f=p[l?a:s])&&(u=Promise.resolve(K.ab.withValue(this.cache,f,[n,(0,S.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,u.then(function(n){if(void 0===n&&(n=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var r,o,a=null!==(o=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),(0,H.Vn)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){n(e)&&z(e)&&a.add(e)})},FragmentSpread:function(r,o,s,l,c){var u=t[r.name.value];(0,i.kG)(u,19,r.name.value);var d=e(u);d.size>0&&(c.forEach(function(e){n(e)&&z(e)&&a.add(e)}),a.add(r),d.forEach(function(e){a.add(e)}))}})}return r.get(o)}(e)},e}(),J=n(14012),Q=n(88244),X=!1,Z=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(15);var n=e.uri,a=e.credentials,c=e.headers,u=e.cache,d=e.documentTransform,p=e.ssrMode,f=void 0!==p&&p,h=e.ssrForceFetchDelay,m=void 0===h?0:h,g=e.connectToDevTools,y=e.queryDeduplication,_=void 0===y||y,v=e.defaultOptions,b=e.defaultContext,S=e.assumeImmutableResults,E=void 0===S?u.assumeImmutableResults:S,T=e.resolvers,w=e.typeDefs,I=e.fragmentMatcher,k=e.name,O=e.version,A=e.devtools,C=e.link;C||(C=n?new l.u({uri:n,credentials:a,headers:c}):o.i.empty()),this.link=C,this.cache=u,this.disableNetworkFetches=f||m>0,this.queryDeduplication=_,this.defaultOptions=v||Object.create(null),this.typeDefs=w,this.devtoolsConfig=(0,r.pi)((0,r.pi)({},A),{enabled:(null==A?void 0:A.enabled)||g}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),m&&setTimeout(function(){return t.disableNetworkFetches=!1},m),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.i,this.localState=new Y({cache:u,client:this,resolvers:T,fragmentMatcher:I}),this.queryManager=new G({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:d,queryDeduplication:_,ssrMode:f,clientAwareness:{name:k,version:O},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!X&&!1!==globalThis.__DEV__&&(X=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,J.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,J.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,J.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,a.h)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){!1!==globalThis.__DEV__&&i.kG.debug(17,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(Z.prototype.getMemoryInternals=Q.su)},44780:function(e,t,n){"use strict";n.d(t,{DC:function(){return b},ue:function(){return y},vj:function(){return _}});var r=n(97582),i=n(16459),o=n(30020),a=n(1644),s=n(36765),l=n(53712),c=n(79487),u=n(18263),d=n(48216),p=n(86403),f=n(30990),h=n(39613),m=Object.assign,g=Object.hasOwnProperty,y=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=v)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=S(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var l=n.defaultOptions.watchQuery,c=(void 0===l?{}:l).fetchPolicy,u=void 0===c?"cache-first":c,d=o.fetchPolicy,p=void 0===d?u:d,f=o.initialFetchPolicy,h=void 0===f?"standby"===p?u:p:f;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:h,fetchPolicy:p}),a.queryId=i.queryId||n.generateQueryId();var m=(0,s.$H)(a.query);return a.queryName=m&&m.name&&m.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||a.Ie.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,a.Oj)(n),networkStatus:n}),s=this.options.fetchPolicy,l=void 0===s?"cache-first":s;if(S(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),(0,o.D)(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,c.complete&&i.networkStatus===a.Ie.loading&&("cache-first"===l||"cache-only"===l)&&(i.networkStatus=a.Ie.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||b(c.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,h.W)(this.query,this.last.result,e,this.variables):!(0,o.D)(this.last.result,e))||t&&!(0,o.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,o.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},l=this.options.fetchPolicy;if("cache-and-network"===l?n.fetchPolicy=l:"no-cache"===l?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&g.call(e,"variables")){var c=(0,s.iW)(this.query),u=c.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||i.kG.warn(20,e,(null===(t=c.name)||void 0===t?void 0:t.value)||c)}return e&&!(0,o.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,a.Ie.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},this.options),{query:this.options.query}),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var s=this.queryInfo,l=s.networkStatus;s.networkStatus=a.Ie.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,i.kG)(u,21),this.queryManager.fetchQuery(o,n,a.Ie.fetchMore).then(function(i){if(t.queryManager.removeQuery(o),s.networkStatus===a.Ie.fetchMore&&(s.networkStatus=l),d)t.queryManager.cache.batch({update:function(r){var o=e.updateQuery;o?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:i.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:i.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var p=t.getLast("result"),f=u(p.data,{fetchMoreResult:i.data,variables:n.variables});t.reportResult((0,r.pi)((0,r.pi)({},p),{data:f}),t.variables)}return i}).finally(function(){d&&!c.has(t.query)&&_(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&i.kG.error(22,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,l.o)(this.options,e||{});m(this.options,t)},t.prototype.setVariables=function(e){return(0,o.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},a.Ie.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){(0,i.kG)(n,23),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&((0,a.Oj)(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},a.Ie.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!(0,o.D)(t,this.last.variables)&&(n=void 0),this.last=(0,r.pi)({result:this.queryManager.assumeImmutableResults?e:(0,c.X)(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var i=t===a.Ie.refetch||t===a.Ie.fetchMore||t===a.Ie.poll,s=this.options.variables,c=this.options.fetchPolicy,u=(0,l.o)(this.options,e||{}),d=i?u:m(this.options,u),p=this.transformDocument(d.query);this.lastQuery=p,!i&&(this.updatePolling(),e&&e.variables&&!(0,o.D)(e.variables,s)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===c||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===t&&(t=a.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=S(d.fetchPolicy));var h=function(){n.concast===_&&(n.waitForOwnResult=!1)},g=d.variables&&(0,r.pi)({},d.variables),y=this.fetch(d,t,p),_=y.concast,v=y.fromLink,b={next:function(e){(0,o.D)(n.variables,g)&&(h(),n.reportResult(e,g))},error:function(e){(0,o.D)(n.variables,g)&&((0,f.MS)(e)||(e=new f.cA({networkError:e})),h(),n.reportError(e,g))}};return i||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=_,this.observer=b),_.addObserver(b),_},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&(0,u.p)(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=(0,r.pi)((0,r.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:a.Ie.error,loading:!1});this.updateLastResult(n,t),(0,u.p)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(d.y);function _(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function v(e){!1!==globalThis.__DEV__&&i.kG.error(24,e.message,e.stack)}function b(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(25,e)}function S(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,p.D)(y)},39613:function(e,t,n){"use strict";n.d(t,{W:function(){return c}});var r=n(97582),i=n(30020),o=n(36765),a=n(23361),s=n(19065),l=n(51761);function c(e,t,n,c){var d=t.data,p=(0,r._T)(t,["data"]),f=n.data,h=(0,r._T)(n,["data"]);return(0,i.Z)(p,h)&&function e(t,n,r,o){if(n===r)return!0;var c=new Set;return t.selections.every(function(t){if(c.has(t)||(c.add(t),!(0,s.LZ)(t,o.variables)||u(t)))return!0;if((0,l.My)(t)){var d=(0,l.u2)(t),p=n&&n[d],f=r&&r[d],h=t.selectionSet;if(!h)return(0,i.Z)(p,f);var m=Array.isArray(p),g=Array.isArray(f);if(m!==g)return!1;if(m&&g){var y=p.length;if(f.length!==y)return!1;for(var _=0;_<y;++_)if(!e(h,p[_],f[_],o))return!1;return!0}return e(h,p,f,o)}var v=(0,a.hi)(t,o.fragmentMap);if(v)return!!u(v)||e(v.selectionSet,n,r,o)})}((0,o.p$)(e).selectionSet,d,f,{fragmentMap:(0,a.F)((0,o.kU)(e)),variables:c})}function u(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},42451:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloCache:function(){return c.R},ApolloClient:function(){return i.f},ApolloError:function(){return l.cA},ApolloLink:function(){return m.i},Cache:function(){return r},DocumentTransform:function(){return O.A},HttpLink:function(){return S.HttpLink},InMemoryCache:function(){return u.h},MissingFieldError:function(){return d.y},NetworkStatus:function(){return s.Ie},Observable:function(){return T.y},ObservableQuery:function(){return a.ue},checkFetcher:function(){return S.checkFetcher},concat:function(){return v},createHttpLink:function(){return S.createHttpLink},createSignalIfSupported:function(){return S.createSignalIfSupported},defaultDataIdFromObject:function(){return p.uG},defaultPrinter:function(){return S.defaultPrinter},disableExperimentalFragmentVariables:function(){return N.J9},disableFragmentWarnings:function(){return N._t},empty:function(){return g},enableExperimentalFragmentVariables:function(){return N.wO},execute:function(){return b.h},fallbackHttpConfig:function(){return S.fallbackHttpConfig},from:function(){return y},fromError:function(){return I.Q},fromPromise:function(){return w},gql:function(){return N.Ps},isApolloError:function(){return l.MS},isNetworkRequestSettled:function(){return s.Jp},isReference:function(){return A.Yk},makeReference:function(){return A.kQ},makeVar:function(){return f.QS},mergeOptions:function(){return o.J},parseAndCheckHttpResponse:function(){return S.parseAndCheckHttpResponse},resetCaches:function(){return N.HW},rewriteURIForGET:function(){return S.rewriteURIForGET},selectHttpOptionsAndBody:function(){return S.selectHttpOptionsAndBody},selectHttpOptionsAndBodyInternal:function(){return S.selectHttpOptionsAndBodyInternal},selectURI:function(){return S.selectURI},serializeFetchParameter:function(){return S.serializeFetchParameter},setLogVerbosity:function(){return C.U6},split:function(){return _},throwServerError:function(){return k.P},toPromise:function(){return E}});var r,i=n(25735),o=n(14012),a=n(44780),s=n(1644),l=n(30990);r||(r={});var c=n(11294),u=n(51625),d=n(75727),p=n(49641),f=n(66438),h=n(16459),m=n(48702),g=m.i.empty,y=m.i.from,_=m.i.split,v=m.i.concat,b=n(47037),S=n(38802);function E(e){var t=!1;return new Promise(function(n,r){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&h.kG.warn(43):(t=!0,n(e))},error:r})})}var T=n(48216);function w(e){return new T.y(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var I=n(16261),k=n(12782),O=n(18056),A=n(51761),C=n(66128),N=n(68806);(0,C.U6)(!1!==globalThis.__DEV__?"log":"silent")},1644:function(e,t,n){"use strict";var r,i;function o(e){return!!e&&e<7}function a(e){return 7===e||8===e}n.d(t,{Ie:function(){return r},Jp:function(){return a},Oj:function(){return o}}),(i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},30990:function(e,t,n){"use strict";n.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var r=n(97582);n(16459);var i=n(13154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){var t=(0,r.ev)((0,r.ev)((0,r.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(n){var i=n.graphQLErrors,o=n.protocolErrors,a=n.clientErrors,s=n.networkError,c=n.errorMessage,u=n.extraInfo,d=e.call(this,c)||this;return d.name="ApolloError",d.graphQLErrors=i||[],d.protocolErrors=o||[],d.clientErrors=a||[],d.networkError=s||null,d.message=c||l(d),d.extraInfo=u,d.cause=(0,r.ev)((0,r.ev)((0,r.ev)([s],i||[],!0),o||[],!0),a||[],!0).find(function(e){return!!e})||null,d.__proto__=t.prototype,d}return(0,r.ZT)(t,e),t}(Error)},48702:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(16459),i=n(48216),o=n(97582),a=n(36765);function s(e,t){return t?t(e):i.y.of()}function l(e){return"function"==typeof e?new u(e):e}function c(e){return e.request.length<=1}var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var o=l(n),a=l(r||new e(s));return Object.assign(new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,n){return t(e)?o.request(e,n)||i.y.of():a.request(e,n)||i.y.of()}),{left:o,right:a})},e.execute=function(e,t){var n,s,l,c;return e.request((l=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];if(0>t.indexOf(o))throw(0,r._K)(44,o)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.pi)({},l),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),s))||i.y.of()},e.concat=function(t,n){var o=l(t);if(c(o))return!1!==globalThis.__DEV__&&r.kG.warn(36,o),o;var a=l(n);return Object.assign(new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()}),{left:o,right:a})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r._K)(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},47037:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(48702).i.execute},72198:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(97582),i=n(48702),o=n(71050),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,o.L)(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(i.i)},23178:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(16459),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,r._K)(38)}},71050:function(e,t,n){"use strict";n.d(t,{L:function(){return v}});var r=n(97582),i=n(16459),o=n(48702),a=n(19065),s=n(48216),l=n(15049),c=n(11037),u=n(81999),d=n(23178),p=n(3453),f=n(88663),h=n(16261),m=n(77304),g=n(76487),y=n(36765),_=(0,i.wY)(function(){return fetch}),v=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,v=e.fetch,b=e.print,S=void 0===b?p.sb:b,E=e.includeExtensions,T=e.preserveHeaderCase,w=e.useGETForQueries,I=e.includeUnusedVariables,k=void 0!==I&&I,O=(0,r._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,d.U)(v||_);var A={http:{includeExtensions:E,preserveHeaderCase:T},options:O.fetchOptions,credentials:O.credentials,headers:O.headers};return new o.i(function(e){var t,o,d,b,E,T,I=(0,c.r)(e,n),O=e.getContext(),C={};if(O.clientAwareness){var N=O.clientAwareness,D=N.name,x=N.version;D&&(C["apollographql-client-name"]=D),x&&(C["apollographql-client-version"]=x)}var R=(0,r.pi)((0,r.pi)({},C),O.headers),M={http:O.http,options:O.fetchOptions,credentials:O.credentials,headers:R};if((0,a.FS)(["client"],e.query)){var P=(0,g.ob)(e.query);if(!P)return(0,h.Q)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=P}var L=(0,p.ve)(e,S,p.SC,A,M),B=L.options,U=L.body;U.variables&&!k&&(U.variables=(t=U.variables,o=e.query,d=(0,r.pi)({},t),b=new Set(Object.keys(t)),(0,m.Vn)(o,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.forEach(function(e){delete d[e]}),d)),B.signal||"undefined"==typeof AbortController||(T=new AbortController,B.signal=T.signal);var F="OperationDefinition"===(E=(0,y.p$)(e.query)).kind&&"subscription"===E.operation,j=(0,a.FS)(["defer"],e.query);if(w&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(B.method="GET"),j||F){B.headers=B.headers||{};var $="multipart/mixed;";F&&j&&!1!==globalThis.__DEV__&&i.kG.warn(39),F?$+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&($+="deferSpec=20220824,application/json"),B.headers.accept=$}if("GET"===B.method){var W=(0,f.H)(I,U),G=W.newURI,H=W.parseError;if(H)return(0,h.Q)(H);I=G}else try{B.body=(0,l.g)(U,"Payload")}catch(e){return(0,h.Q)(e)}return new s.y(function(t){var n=v||(0,i.wY)(function(){return fetch})||_,r=t.next.bind(t);return n(I,B).then(function(t){e.setContext({response:t});var n,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,u.TF)(t,r):(0,u.dO)(e)(t).then(r)}).then(function(){T=void 0,t.complete()}).catch(function(e){T=void 0,(0,u.S3)(e,t)}),function(){T&&T.abort()}})})}},38802:function(e,t,n){"use strict";n.r(t),n.d(t,{HttpLink:function(){return u.u},checkFetcher:function(){return a.U},createHttpLink:function(){return c.L},createSignalIfSupported:function(){return s},defaultPrinter:function(){return o.sb},fallbackHttpConfig:function(){return o.SC},parseAndCheckHttpResponse:function(){return r.dO},rewriteURIForGET:function(){return d.H},selectHttpOptionsAndBody:function(){return o.E4},selectHttpOptionsAndBodyInternal:function(){return o.ve},selectURI:function(){return l.r},serializeFetchParameter:function(){return i.g}}),n(16459);var r=n(81999),i=n(15049),o=n(3453),a=n(23178),s=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},l=n(11037),c=n(71050),u=n(72198),d=n(88663)},81999:function(e,t,n){"use strict";n.d(t,{S3:function(){return p},dO:function(){return f},TF:function(){return u}});var r=n(97582),i=n(30320);function o(e){var t={next:function(){return e.read()}};return i.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var a=n(12782),s=n(30990),l=n(37280),c=Object.prototype.hasOwnProperty;function u(e,t){return(0,r.mG)(this,void 0,void 0,function(){var n,a,c,u,p,f,h,m,g,y,_,v,b,S,E,T,w,I,k,O,A,C,N;return(0,r.Jh)(this,function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),a=null===(N=e.headers)||void 0===N?void 0:N.get("content-type"),c="boundary=",u=(null==a?void 0:a.includes(c))?null==a?void 0:a.substring((null==a?void 0:a.indexOf(c))+c.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="\r\n--".concat(u),f="",h=function(e){var t,n,r,a,s,l,c=e;if(e.body&&(c=e.body),t=c,i.DN&&t[Symbol.asyncIterator])return r=c[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(c.getReader)return o(c.getReader());if(c.stream)return o(c.stream().getReader());if(c.arrayBuffer)return a=c.arrayBuffer(),s=!1,l={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){a.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.DN&&(l[Symbol.asyncIterator]=function(){return this}),l;if(c.pipe)return function(e){var t=null,n=null,r=!1,o=[],a=[];function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function l(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",l),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",l),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise(function(e,t){return n?t(n):o.length?e({value:o.shift(),done:!1}):r?e({value:void 0,done:!0}):void a.push([e,t])})}};return i.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),m=!0,D.label=1;case 1:if(!m)return[3,3];return[4,h.next()];case 2:for(y=(g=D.sent()).value,_=g.done,v="string"==typeof y?y:n.decode(y),b=f.length-p.length+1,m=!_,f+=v,S=f.indexOf(p,b);S>-1;){if(E=void 0,E=(A=[f.slice(0,S),f.slice(S+p.length)])[0],f=A[1],T=E.indexOf("\r\n\r\n"),(w=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(E.slice(0,T))["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(I=E.slice(T)){if(Object.keys(k=d(e,I)).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k){if((0,l.yU)(k)){if(O={},"payload"in k){if(1===Object.keys(k).length&&null===k.payload)return[2];O=(0,r.pi)({},k.payload)}"errors"in k&&(O=(0,r.pi)((0,r.pi)({},O),{extensions:(0,r.pi)((0,r.pi)({},"extensions"in O?O.extensions:null),((C={})[s.YG]=k.errors,C))})),t(O)}else t(k)}else if(1===Object.keys(k).length&&"hasNext"in k&&!k.hasNext)return[2]}S=f.indexOf(p)}return[3,1];case 3:return[2]}})})}function d(e,t){e.status>=300&&(0,a.P)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function p(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function f(e){return function(t){return t.text().then(function(e){return d(t,e)}).then(function(n){return Array.isArray(n)||c.call(n,"data")||c.call(n,"errors")||(0,a.P)(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}},88663:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(15049);function i(e,t){var n=[],i=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,r.g)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,r.g)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",a)}var s="",l=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),l=e.substr(0,c));var u=-1===l.indexOf("?")?"?":"&";return{newURI:l+u+n.join("&")+s}}},3453:function(e,t,n){"use strict";n.d(t,{E4:function(){return s},SC:function(){return o},sb:function(){return a},ve:function(){return l}});var r=n(97582),i=n(50713),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return n.unshift(t),l.apply(void 0,(0,r.ev)([e,a],n,!1))}function l(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a={},s={};n.forEach(function(e){a=(0,r.pi)((0,r.pi)((0,r.pi)({},a),e.options),{headers:(0,r.pi)((0,r.pi)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),s=(0,r.pi)((0,r.pi)({},s),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(a.headers,s.preserveHeaderCase));var l=e.operationName,c=e.extensions,u=e.variables,d=e.query,p={operationName:l,variables:u};return s.includeExtensions&&(p.extensions=c),s.includeQuery&&(p.query=t(d,i.S)),{options:a,body:p}}},11037:function(e,t,n){"use strict";n.d(t,{r:function(){return r}});var r=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},15049:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(16459),i=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,r._K)(40,t,e.message);throw i.parseError=e,i}return n}},16261:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(48216);function i(e){return new r.y(function(t){t.error(e)})}},12782:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r}},38991:function(e,t,n){"use strict";n.d(t,{L:function(){return l},s:function(){return s}});var r=n(99869),i=n(2379),o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(function(){e.clean(),o.delete(e)},100)))}var s=function(e,t){var n=new r.k(e,t);return n.set=function(e,t){var n=r.k.prototype.set.call(this,e,t);return a(this),n},n},l=function(e,t){var n=new i.e(e,t);return n.set=function(e,t){var n=i.e.prototype.set.call(this,e,t);return a(this),n},n}},88244:function(e,t,n){"use strict";n.d(t,{Kb:function(){return c},q4:function(){return l},su:function(){return s},zP:function(){return a}});var r=n(97582),i=n(66331),o={};function a(e,t){o[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,n,a,s;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,i.Q[t]||n]})),sizes:(0,r.pi)({print:null===(e=o.print)||void 0===e?void 0:e.call(o),parser:null===(t=o.parser)||void 0===t?void 0:t.call(o),canonicalStringify:null===(n=o.canonicalStringify)||void 0===n?void 0:n.call(o),links:function e(t){var n;return t?(0,r.ev)((0,r.ev)([null===(n=null==t?void 0:t.getMemoryInternals)||void 0===n?void 0:n.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(p):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:f(this.queryManager.documentTransform)}},null===(s=(a=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(a))}}:void 0,l=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,r.pi)((0,r.pi)({},u.apply(this)),{addTypenameDocumentTransform:f(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:d(this.storeReader.executeSelectionSet),executeSubSelectedArray:d(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:d(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:d(null==e?void 0:e.findFragmentSpreads),lookup:d(null==e?void 0:e.lookup),transform:d(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?u:void 0;function u(){return{cache:{fragmentQueryDocuments:d(this.getFragmentDoc)}}}function d(e){return e&&"dirtyKey"in e?e.size:void 0}function p(e){return null!=e}function f(e){return(function e(t){return t?(0,r.ev)((0,r.ev)([d(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(p):[]})(e).map(function(e){return{cache:e}})}},66331:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var r=n(97582),i=n(16459),o=Symbol.for("apollo.cacheSize"),a=(0,r.pi)({},i.CO[o])},21436:function(e,t,n){"use strict";n.d(t,{O:function(){return i},k:function(){return r}});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:function(e,t,n){"use strict";n.d(t,{DN:function(){return l},aS:function(){return s},mr:function(){return o},sy:function(){return a}});var r=n(16459),i="ReactNative"==(0,r.wY)(function(){return navigator.product}),o="function"==typeof WeakMap&&!(i&&!global.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,l=s&&Symbol.asyncIterator;(0,r.wY)(function(){return window.document.createElement}),(0,r.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},5466:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r,i=n(38991),o=n(66331),a=n(88244),s=Object.assign(function(e){return JSON.stringify(e,l)},{reset:function(){r=new i.L(o.Q.canonicalStringify||1e3)}});function l(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),a=r.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=r.get(s)||i,r.set(o,a),r.set(s,a)}var l=Object.create(n);return a.forEach(function(e){l[e]=t[e]}),l}}return t}function c(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&(0,a.zP)("canonicalStringify",function(){return r.size}),s.reset()},79487:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e)}},53712:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}n.d(t,{o:function(){return r}})},37280:function(e,t,n){"use strict";n.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return c},yU:function(){return l}});var r=n(13154),i=n(21436),o=n(182);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function l(e){return(0,r.s)(e)&&"payload"in e}function c(e,t){var n=e,r=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}},60897:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},182:function(e,t,n){"use strict";n.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var r=n(97582),i=n(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new c,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var l=function(e,t,n){return this.merge(e[n],t[n])},c=function(){function e(e){void 0===e&&(e=l),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var l=n.reconciler.apply(n,(0,r.ev)([e,t,i],a,!1));l!==s&&((e=n.shallowCopyForMerge(e))[i]=l)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},14012:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(97582),i=n(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,r.pi)((0,r.pi)({},e&&e.variables),t.variables))})}},13154:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{s:function(){return r}})},13887:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=n(60897);function i(e,t){void 0===t&&(t=0);var n=(0,r.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}},16459:function(e,t,n){"use strict";n.d(t,{CO:function(){return a},kG:function(){return c},wY:function(){return o},_K:function(){return u}});var r=n(66128),i=n(49379);function o(e){try{return e()}catch(e){}}var a=o(function(){return globalThis})||o(function(){return window})||o(function(){return self})||o(function(){return global})||o(function(){return o.constructor("return this")()}),s=n(13887);function l(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=f(i))||(t=h(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var c=Object.assign(function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||(0,r.kG)(e,f(t,n)||h(t,n))},{debug:l(r.kG.debug),log:l(r.kG.log),warn:l(r.kG.warn),error:l(r.kG.error)});function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new r.ej(f(e,t)||h(e,t))}var d=Symbol.for("ApolloErrorMessageHandler_"+i.i);function p(e){if("string"==typeof e)return e;try{return(0,s.v)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function f(e,t){if(void 0===t&&(t=[]),e)return a[d]&&a[d](e,t.map(p))}function h(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:i.i,message:e,args:t.map(p)})))}},18056:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(75028),i=n(30320),o=n(36765),a=n(16459),s=n(99869),l=n(81223),c=n(66331);function u(e){return e}var d=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(u,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new r.B(i.mr);this.performWork=(0,l.re)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return(0,a.kG)(Array.isArray(r),69),n.lookupArray(r)},max:c.Q["documentTransform.cache"],cache:s.k})}},e.prototype.performWork=function(e){return(0,o.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},19065:function(e,t,n){"use strict";n.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var r=n(16459),i=n(77304);function o(e,t){var n,i=e.directives;return!i||!i.length||(n=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;(0,r.kG)(i&&1===i.length,71,o);var a=i[0];(0,r.kG)(a.name&&"if"===a.name.value,72,o);var s=a.value;(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,o),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,r.kG)(void 0!==o,70,n.name.value)):o=i.value.value,"skip"===n.name.value?!o:o})}function a(e,t,n){var r=new Set(e),o=r.size;return(0,i.Vn)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return i.$_}}),n?!r.size:r.size<o}function s(e){return e&&a(["client","export"],e,!0)}},23361:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var r=n(97582),i=n(16459);function o(e,t){var n=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===n&&((0,i.kG)(1===o.length,75,o.length),n=o[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return(0,i.kG)(r,76,n),r||null;default:return null}}},36765:function(e,t,n){"use strict";n.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return p},iW:function(){return c},kU:function(){return l},p$:function(){return d},pD:function(){return u},rY:function(){return s}});var r=n(16459),i=n(51761);function o(e){(0,r.kG)(e&&"Document"===e.kind,77);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r._K)(78,e.kind);return e});return(0,r.kG)(t.length<=1,79,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,r.kG)(t&&"query"===t.operation,80),t}function u(e){(0,r.kG)("Document"===e.kind,81),(0,r.kG)(e.definitions.length<=1,82);var t=e.definitions[0];return(0,r.kG)("FragmentDefinition"===t.kind,83),t}function d(e){o(e);for(var t,n=0,i=e.definitions;n<i.length;n++){var a=i[n];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,r._K)(84)}function p(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},50713:function(e,t,n){"use strict";n.d(t,{S:function(){return _}});var r,i=n(87392);let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}let s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=n(77304);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p("(",u(e.variableDefinitions,", "),")"),n=u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+p(" = ",n)+p(" ",u(r," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=p("",e,": ")+t,a=o+p("(",u(n,", "),")");return a.length>80&&(a=o+p("(\n",f(u(n,"\n")),"\n)")),u([a,u(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+p(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>u(["...",p("on ",e),u(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${p("(",u(n,", "),")")} on ${t} ${p("",u(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.LZ)(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+p("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>p("",e,"\n")+u(["schema",u(t," "),d(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>p("",e,"\n")+u(["scalar",t,u(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>p("",e,"\n")+u(["type",t,p("implements ",u(n," & ")),u(r," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>p("",e,"\n")+t+(h(n)?p("(\n",f(u(n,"\n")),"\n)"):p("(",u(n,", "),")"))+": "+r+p(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>p("",e,"\n")+u([t+": "+n,p("= ",r),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>p("",e,"\n")+u(["interface",t,p("implements ",u(n," & ")),u(r," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>p("",e,"\n")+u(["union",t,u(n," "),p("= ",u(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>p("",e,"\n")+u(["enum",t,u(n," "),d(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>p("",e,"\n")+u([t,u(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>p("",e,"\n")+u(["input",t,u(n," "),d(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>p("",e,"\n")+"directive @"+t+(h(n)?p("(\n",f(u(n,"\n")),"\n)"):p("(",u(n,", "),")"))+(r?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>u(["extend type",e,p("implements ",u(t," & ")),u(n," "),d(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>u(["extend interface",e,p("implements ",u(t," & ")),u(n," "),d(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>u(["extend union",e,u(t," "),p("= ",u(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>u(["extend enum",e,u(t," "),d(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>u(["extend input",e,u(t," "),d(n)]," ")}};function u(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function d(e){return p("{\n",f(u(e,"\n")),"\n}")}function p(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function f(e){return p("  ",e.replace(/\n/g,"\n  "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var m=n(38991),g=n(66331),y=n(88244),_=Object.assign(function(e){var t=r.get(e);return t||(t=(0,l.Vn)(e,c),r.set(e,t)),t},{reset:function(){r=new m.s(g.Q.print||2e3)}});_.reset(),!1!==globalThis.__DEV__&&(0,y.zP)("print",function(){return r?r.size:0})},51761:function(e,t,n){"use strict";n.d(t,{Ao:function(){return _},JW:function(){return c},My:function(){return y},NC:function(){return m},PT:function(){return h},Yk:function(){return l},kQ:function(){return s},qw:function(){return function e(t,n,r){for(var i,a=0,s=n.selections;a<s.length;a++){var l=s[a];if(y(l)){if("__typename"===l.name.value)return t[g(l)]}else i?i.push(l):i=[l]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,u=i;c<u.length;c++){var l=u[c],d=e(t,(0,o.hi)(l,r).selectionSet,r);if("string"==typeof d)return d}}},u2:function(){return g},vb:function(){return u},vf:function(){return d}});var r=n(16459),i=n(13154),o=n(23361),a=n(5466);function s(e){return{__ref:String(e)}}function l(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,n,i){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var o={};n.fields.map(function(e){return u(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===n.kind){var a=(i||{})[n.name.value];e[t.value]=a}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return u(n,t,e,i),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,r._K)(85,t.value,n.kind)}function d(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return u(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return u(r,n,i,t)})),h(e.name.value,r,n)}var p=["connection","include","skip","client","rest","export","nonreactive"],f=a.B,h=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(f(i),")")}var o=e;if(t){var a=f(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===p.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(f(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=f;return f=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return u(n,e.name,e.value,t)}),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function _(e){return"InlineFragment"===e.kind}},76487:function(e,t,n){"use strict";n.d(t,{Gw:function(){return h},aL:function(){return m},bi:function(){return f},ob:function(){return g}});var r=n(97582),i=n(16459),o=n(97359),a=n(77304),s=n(36765),l=n(51761),c=n(23361),u=n(21436),d={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function p(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function f(e,t){(0,s.A$)(t);for(var n,l,d,f=p(""),h=p(""),m=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,u.k)(n)){if(n.kind===o.h.OPERATION_DEFINITION)return f(n.name&&n.name.value);if(n.kind===o.h.FRAGMENT_DEFINITION)return h(n.name.value)}return!1!==globalThis.__DEV__&&i.kG.error(86),null},g=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===o.h.OPERATION_DEFINITION&&++g;var _=(n=new Map,l=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&l.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&l.size&&l.forEach(function(n,r){r(e)&&(t=n)}),t}),v=function(e){return(0,u.O)(e)&&e.map(_).some(function(e){return e&&e.remove})},b=new Map,S=!1,E={enter:function(e){if(v(e.directives))return S=!0,null}},T=(0,a.Vn)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=m(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(v(e.directives))return S=!0,null;var o=m(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){b.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===b.get(JSON.stringify(r))?e:g>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(h(e.name.value).removed=!0,S=!0,null):void 0}},Directive:{leave:function(e){if(_(e))return S=!0,null}}});if(!S)return t;var w=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(h(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},I=new Set;T.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?w(f(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){I.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==g||h(e.name.value).removed||I.add(e.name.value)}),I.forEach(function(e){w(h(e)).fragmentSpreads.forEach(function(e){I.add(e)})});var k={enter:function(e){var t;if(t=e.name.value,!I.has(t)||h(t).removed)return null}};return d=(0,a.Vn)(T,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(f(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,r.pi)((0,r.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}((0,s.$H)(d)||(0,s.pD)(d),(0,c.F)((0,s.kU)(d)))?d:null}var h=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,l.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.My)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.pi)((0,r.pi)({},e),{selections:(0,r.ev)((0,r.ev)([],i,!0),[d],!1)})}}}})},{added:function(e){return e===d}});function m(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{operation:"query"})}}})}function g(e){return(0,s.A$)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},18263:function(e,t,n){"use strict";function r(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}n.d(t,{p:function(){return r}})},86403:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(48216),i=n(30320);function o(e){function t(t){Object.defineProperty(e,t,{value:r.y})}return i.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}},49379:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="3.11.4"},60811:function(e,t,n){"use strict";n.d(t,{G:function(){return p}});var r=n(13533),i=n(16824),o=n(29531),a=n(43927);class s{constructor(e,t){let n,r;n=e||new a.s,r=t||new a.s,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return(0,i.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=(0,r.c)(),t=(0,r.q)(e);return t.stack=t.stack||new s((0,o.Y)("defaultCurrentScope",()=>new a.s),(0,o.Y)("defaultIsolationScope",()=>new a.s))}function c(e){return l().withScope(e)}function u(e,t){let n=l();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}function p(e){let t=(0,r.q)(e);return t.acs?t.acs:{withIsolationScope:d,withScope:c,withSetScope:u,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},13533:function(e,t,n){"use strict";n.d(t,{c:function(){return o},q:function(){return a}});var r=n(29531),i=n(42990);function o(){return a(r.GLOBAL_OBJ),r.GLOBAL_OBJ}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i.J,t[i.J]=t[i.J]||{}}},73243:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="production"},73076:function(e,t,n){"use strict";n.d(t,{$e:function(){return u},aF:function(){return l},lW:function(){return c},nZ:function(){return s},s3:function(){return d}});var r=n(29531),i=n(60811),o=n(13533),a=n(43927);function s(){let e=(0,o.c)();return(0,i.G)(e).getCurrentScope()}function l(){let e=(0,o.c)();return(0,i.G)(e).getIsolationScope()}function c(){return(0,r.Y)("globalScope",()=>new a.s)}function u(...e){let t=(0,o.c)(),n=(0,i.G)(t);if(2===e.length){let[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function d(){return s().getClient()}},94223:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},39424:function(e,t,n){"use strict";n.d(t,{Qy:function(){return h},Tb:function(){return u},cg:function(){return _},eN:function(){return d},v:function(){return p},yj:function(){return m},yl:function(){return f}});var r=n(41001),i=n(29531),o=n(73243),a=n(73076),s=n(94223),l=n(10042),c=n(5808);function u(e,t){return(0,a.nZ)().captureException(e,(0,c.U0)(t))}function d(e,t){return(0,a.nZ)().captureEvent(e,t)}function p(e,t){(0,a.aF)().setContext(e,t)}async function f(e){let t=(0,a.s3)();return t?t.flush(e):(s.X&&r.kg.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function h(e){(0,a.aF)().addEventProcessor(e)}function m(e){let t=(0,a.s3)(),n=(0,a.aF)(),r=(0,a.nZ)(),{release:s,environment:c=o.J}=t&&t.getOptions()||{},{userAgent:u}=i.GLOBAL_OBJ.navigator||{},d=(0,l.Hv)({release:s,environment:c,user:r.getUser()||n.getUser(),...u&&{userAgent:u},...e}),p=n.getSession();return p&&"ok"===p.status&&(0,l.CT)(p,{status:"exited"}),g(),n.setSession(d),r.setSession(d),d}function g(){let e=(0,a.aF)(),t=(0,a.nZ)(),n=t.getSession()||e.getSession();n&&(0,l.RJ)(n),y(),e.setSession(),t.setSession()}function y(){let e=(0,a.aF)(),t=(0,a.nZ)(),n=(0,a.s3)(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function _(e=!1){if(e){g();return}y()}},72751:function(e,t,n){"use strict";n.d(t,{y:function(){return i}});var r=n(27179);function i(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,i]]of t)(n[e]||(n[e]=[])).push((0,r.Jr)(i));return n}},43927:function(e,t,n){"use strict";n.d(t,{s:function(){return d}});var r=n(19548),i=n(16824),o=n(26181),a=n(41982),s=n(41001),l=n(10042),c=n(89366);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=(0,r.Q)()}clone(){let e=new u;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof d?[t.getScopeData(),t.getRequestSession()]:(0,i.PO)(t)?[e,e.requestSession]:[],{tags:o,extra:a,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),p&&(this._propagationContext=p),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this._propagationContext=(0,r.Q)(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:(0,a.DM)();if(!this._client)return s.kg.warn("No client configured on scope - will not capture message!"),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:(0,a.DM)();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):s.kg.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let d=u},31218:function(e,t,n){"use strict";n.d(t,{$J:function(){return o},E1:function(){return l},JQ:function(){return d},S3:function(){return a},TE:function(){return i},Wb:function(){return c},Zj:function(){return r},ju:function(){return s},p6:function(){return u}});let r="sentry.source",i="sentry.sample_rate",o="sentry.op",a="sentry.origin",s="sentry.idle_span_finish_reason",l="sentry.measurement_unit",c="sentry.measurement_value",u="sentry.profile_id",d="sentry.exclusive_time"},10042:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return l}});var r=n(26181),i=n(41982),o=n(27179);function a(e){let t=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})};return e&&s(n,e),n}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},72123:function(e,t,n){"use strict";n.d(t,{Lh:function(){return d},_l:function(){return p},jC:function(){return f}});var r=n(27179),i=n(60859),o=n(73243),a=n(73076),s=n(31218),l=n(67973),c=n(81585);let u="_frozenDsc";function d(e,t){(0,r.xp)(e,u,t)}function p(e,t){let n=t.getOptions(),{publicKey:i}=t.getDsn()||{},a=(0,r.Jr)({environment:n.environment||o.J,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",a),a}function f(e){let t=(0,a.s3)();if(!t)return{};let n=p((0,c.XU)(e).trace_id||"",t),r=(0,c.Gx)(e),o=r[u];if(o)return o;let d=r.spanContext().traceState,f=d&&d.get("sentry.dsc"),h=f&&(0,i.EN)(f);if(h)return h;let m=(0,c.XU)(r),g=m.data||{},y=g[s.TE];null!=y&&(n.sample_rate=`${y}`);let _=g[s.Zj],v=m.description;return"url"!==_&&v&&(n.transaction=v),(0,l.z)()&&(n.sampled=String((0,c.Tt)(r))),t.emit("createDsc",n,r),n}},69737:function(e,t,n){"use strict";n.d(t,{OP:function(){return i},Q0:function(){return a},jt:function(){return o},pq:function(){return r}});let r=0,i=1,o=2;function a(e,t){e.setAttribute("http.response.status_code",t);let n=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}},67973:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(73076);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=(0,r.s3)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},5808:function(e,t,n){"use strict";n.d(t,{U0:function(){return E},R:function(){return b}});var r=n(41982),i=n(26181),o=n(89163),a=n(29531),s=n(83408),l=n(73243),c=n(73076),u=n(80128),d=n(41001),p=n(16824),f=n(94223),h=n(43927),m=n(27179),g=n(72123),y=n(81585);function _(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:f,span:h}=t;v(e,"extra",n),v(e,"tags",r),v(e,"user",i),v(e,"contexts",o),v(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function v(e,t,n){if(n&&Object.keys(n).length)for(let r in e[t]={...e[t]},n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}function b(e,t,n,v,b,E){let{normalizeDepth:T=3,normalizeMaxBreadth:w=1e3}=e,I={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,i.yW)()},k=n.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:l.J),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,o.$G)(e.message,a));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,o.$G)(s.value,a));let c=e.request;c&&c.url&&(c.url=(0,o.$G)(c.url,a))})(I,e),k.length>0&&(I.sdk=I.sdk||{},I.sdk.integrations=[...I.sdk.integrations||[],...k]),b&&b.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n;let r=a.GLOBAL_OBJ._sentryDebugIds;if(!r)return;let i=S.get(t);i?n=i:(n=new Map,S.set(t,n));let o=Object.entries(r).reduce((e,[r,i])=>{let o;let a=n.get(r);a?o=a:(o=t(r),n.set(r,o));for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.filename){e[n.filename]=i;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=o[e.filename])})})}catch(e){}}(I,e.stackParser);let O=function(e,t){if(!t)return e;let n=e?e.clone():new h.s;return n.update(t),n}(v,n.captureContext);n.mechanism&&(0,r.EG)(I,n.mechanism);let A=b?b.getEventProcessors():[],C=(0,c.lW)().getScopeData();E&&_(C,E.getScopeData()),O&&_(C,O.getScopeData());let N=[...n.attachments||[],...C.attachments];return N.length&&(n.attachments=N),function(e,t){let{fingerprint:n,span:i,breadcrumbs:o,sdkProcessingMetadata:a}=t;(function(e,t){let{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,l=(0,m.Jr)(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let c=(0,m.Jr)(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});let u=(0,m.Jr)(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=(0,m.Jr)(o);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),i&&function(e,t){e.contexts={trace:(0,y.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,g.jC)(t),...e.sdkProcessingMetadata};let n=(0,y.Gx)(t),r=(0,y.XU)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),e.fingerprint=e.fingerprint?(0,r.lE)(e.fingerprint):[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...a}}(I,C),(function e(t,n,r,i=0){return new u.cW((o,a)=>{let s=t[i];if(null===n||"function"!=typeof s)o(n);else{let l=s({...n},r);f.X&&s.id&&null===l&&d.kg.log(`Event processor "${s.id}" dropped event`),(0,p.J8)(l)?l.then(n=>e(t,n,r,i+1).then(o)).then(null,a):e(t,l,r,i+1).then(o).then(null,a)}})})([...A,...C.eventProcessors],I,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof T&&T>0)?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}}))),r}(e,T,w):e)}let S=new WeakMap;function E(e){return e?e instanceof h.s||"function"==typeof e||Object.keys(e).some(e=>T.includes(e))?{captureContext:e}:e:void 0}let T=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},89366:function(e,t,n){"use strict";n.d(t,{D:function(){return o},Y:function(){return a}});var r=n(27179);let i="_sentrySpan";function o(e,t){t?(0,r.xp)(e,i,t):delete e[i]}function a(e){return e[i]}},81585:function(e,t,n){"use strict";n.d(t,{$k:function(){return _},Dp:function(){return O},Gx:function(){return A},HN:function(){return C},HR:function(){return m},Hb:function(){return y},Tt:function(){return S},XU:function(){return b},_4:function(){return E},ed:function(){return k},i0:function(){return h},j5:function(){return I},ve:function(){return f},wy:function(){return g}});var r=n(27179),i=n(85712),o=n(26181),a=n(60811),s=n(13533),l=n(73076),c=n(72751),u=n(31218),d=n(69737),p=n(89366);let f=0,h=1;function m(e){let{spanId:t,traceId:n}=e.spanContext(),{data:i,op:o,parent_span_id:a,status:s,origin:l}=b(e);return(0,r.Jr)({parent_span_id:a,span_id:t,trace_id:n,data:i,op:o,status:s,origin:l})}function g(e){let{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:i}=b(e);return(0,r.Jr)({parent_span_id:i,span_id:t,trace_id:n})}function y(e){let{traceId:t,spanId:n}=e.spanContext(),r=S(e);return(0,i.$p)(t,n,r)}function _(e){return"number"==typeof e?v(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?v(e.getTime()):(0,o.ph)()}function v(e){return e>9999999999?e/1e3:e}function b(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:i,startTime:o,name:a,endTime:s,parentSpanId:l,status:d}=e;return(0,r.Jr)({span_id:t,trace_id:n,data:i,description:a,parent_span_id:l,start_timestamp:_(o),timestamp:_(s)||void 0,status:E(d),op:i[u.$J],origin:i[u.S3],_metrics_summary:(0,c.y)(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function S(e){let{traceFlags:t}=e.spanContext();return t===h}function E(e){return e&&e.code!==d.pq?e.code===d.OP?"ok":e.message||"unknown_error":void 0}let T="_sentryChildSpans",w="_sentryRootSpan";function I(e,t){let n=e[w]||e;(0,r.xp)(t,w,n),e[T]?e[T].add(t):(0,r.xp)(e,T,new Set([t]))}function k(e,t){e[T]&&e[T].delete(t)}function O(e){let t=new Set;return function e(n){if(!t.has(n)&&S(n))for(let r of(t.add(n),n[T]?Array.from(n[T]):[]))e(r)}(e),Array.from(t)}function A(e){return e[w]||e}function C(){let e=(0,s.c)(),t=(0,a.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,p.Y)((0,l.nZ)())}},36096:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},60859:function(e,t,n){"use strict";n.d(t,{EN:function(){return c},IQ:function(){return u},bU:function(){return a},lq:function(){return s}});var r=n(1525),i=n(16824),o=n(41001);let a="baggage",s="sentry-",l=/^sentry-/;function c(e){let t=e&&((0,i.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,n])=>{e[t]=n}),e),{}):d(e):void 0;if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(l)&&(e[t.slice(s.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function u(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>8192?(r.X&&o.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{}))}function d(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}},1869:function(e,t,n){"use strict";n.d(t,{Rt:function(){return o},iY:function(){return l},l4:function(){return a},qT:function(){return s}});var r=n(16824);let i=n(29531).GLOBAL_OBJ;function o(e,t={}){if(!e)return"<unknown>";try{let n,o=e,a=[],s=0,l=0,c=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||80;for(;o&&s++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let o=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(o&&o.length)o.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&(0,r.HD)(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(o,c),"html"!==n&&(!(s>1)||!(l+3*a.length+n.length>=u)));)a.push(n),l+=n.length,o=o.parentNode;return a.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(){try{return i.document.location.href}catch(e){return""}}function s(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}function l(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},1525:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});let r=!1},16824:function(e,t,n){"use strict";n.d(t,{Cy:function(){return y},HD:function(){return c},J8:function(){return g},Kj:function(){return m},Le:function(){return u},PO:function(){return p},TX:function(){return s},V9:function(){return _},VW:function(){return a},VZ:function(){return i},cO:function(){return f},fm:function(){return l},kK:function(){return h},pt:function(){return d},y1:function(){return v}});let r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return _(e,Error)}}function o(e,t){return r.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return o(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function h(e){return"undefined"!=typeof Element&&_(e,Element)}function m(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function y(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function _(e,t){try{return e instanceof t}catch(e){return!1}}function v(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}},41001:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},LD:function(){return a},RU:function(){return o},kg:function(){return l}});var r=n(1525),i=n(29531);let o=["debug","info","warn","error","log","assert","trace"],a={};function s(e){if(!("console"in i.GLOBAL_OBJ))return e();let t=i.GLOBAL_OBJ.console,n={},r=Object.keys(a);r.forEach(e=>{let r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let l=(0,i.Y)("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?o.forEach(n=>{t[n]=(...t)=>{e&&s(()=>{i.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)})}}):o.forEach(e=>{t[e]=()=>void 0}),t})},41982:function(e,t,n){"use strict";n.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return s},lE:function(){return d}});var r=n(27179),i=n(29531);function o(){let e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){let{message:t,event_id:n}=e;if(t)return t;let r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function c(e,t){let n=a(e);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){let e={...r&&r.data,...t.data};n.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},83408:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return function e(t,n=3,r=102400){let i=a(t,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?e(t,n-1,r):i}}});var r=n(16824),i=n(27179),o=n(42283);function a(e,t=100,n=Infinity){try{return function e(t,n,a=Infinity,s=Infinity,l=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){let[c,u]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.y1)(t))return"[VueViewModel]";if((0,r.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let n=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(n))return`[HTMLElement: ${n}]`;return`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!d.startsWith("[object "))return d;if(n.__sentry_skip_normalization__)return n;let p="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===p)return d.replace("object ","");if(c(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,p-1,s,l)}catch(e){}let f=Array.isArray(n)?[]:{},h=0,m=(0,i.Sh)(n);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=s){f[t]="[MaxProperties ~]";break}let n=m[t];f[t]=e(t,n,p-1,s,l),h++}return u(n),f}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},27179:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return d},Jr:function(){return y},Sh:function(){return f},_j:function(){return p},hl:function(){return l},xp:function(){return c},zf:function(){return g}});var r=n(1869),i=n(1525),o=n(16824),a=n(41001),s=n(89163);function l(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&u(i,r),e[t]=i}function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){i.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function d(e){return e.__sentry_original__}function p(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function f(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if(!(0,o.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,o.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function m(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function g(e,t=40){let n=Object.keys(f(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return(0,s.$G)(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(", ");if(!(r.length>t)){if(e===n.length)return r;return(0,s.$G)(r,t)}}return""}function y(e){return function e(t,n){if(function(e){if(!(0,o.PO)(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let i={};for(let r of(n.set(t,i),Object.getOwnPropertyNames(t)))void 0!==t[r]&&(i[r]=e(t[r],n));return i}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}(e,new Map)}},19548:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(41982);function i(){return{traceId:(0,r.DM)(),spanId:(0,r.DM)().substring(16)}}},42283:function(e,t,n){"use strict";n.d(t,{$P:function(){return u},Fi:function(){return r},Fr:function(){return d},Sq:function(){return s},pE:function(){return a}});let r="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{let s=[],c=e.split("\n");for(let e=n;e<c.length;e++){let n=c[e];if(n.length>1024)continue;let r=i.test(n)?n.replace(i,"$1"):n;if(!r.match(/\S*Error: /)){for(let e of t){let t=e(r);if(t){s.push(t);break}}if(s.length>=50+a)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(l(t).function||"")&&t.pop(),t.reverse(),o.test(l(t).function||"")&&(t.pop(),o.test(l(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||l(t).filename,function:e.function||r}))}(s.slice(a))}}function s(e){return Array.isArray(e)?a(...e):e}function l(e){return e[e.length-1]||{}}let c="<anonymous>";function u(e){try{if(!e||"function"!=typeof e)return c;return e.name||c}catch(e){return c}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(e){}}}},89163:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var r=n(16824);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let n=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function a(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))})(e,t,n))}},80128:function(e,t,n){"use strict";n.d(t,{$2:function(){return s},WD:function(){return a},cW:function(){return l}});var r,i,o=n(16824);function a(e){return new l(t=>{t(e)})}function s(e){return new l((t,n)=>{n(e)})}(r=i||(i={}))[r.PENDING=0]="PENDING",r[r.RESOLVED=1]="RESOLVED",r[r.REJECTED=2]="REJECTED";class l{constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),this._state=i.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},26181:function(e,t,n){"use strict";n.d(t,{Z1:function(){return a},ph:function(){return o},yW:function(){return i}});var r=n(29531);function i(){return Date.now()/1e3}let o=function(){let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;let t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),a=(()=>{let{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return;let t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;return i<36e5||a<36e5?i<=a?e.timeOrigin:o:n})()},85712:function(e,t,n){"use strict";n.d(t,{$p:function(){return s},pT:function(){return a}});var r=n(60859),i=n(41982);let o=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function a(e,t){let n=function(e){let t;if(!e)return;let n=e.match(o);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e),a=(0,r.EN)(t),{traceId:s,parentSpanId:l,parentSampled:c}=n||{};return n?{traceId:s||(0,i.DM)(),parentSpanId:l||(0,i.DM)().substring(16),spanId:(0,i.DM)().substring(16),sampled:c,dsc:a||{}}:{traceId:s||(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}function s(e=(0,i.DM)(),t=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}},42990:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});let r="8.35.0"},29531:function(e,t,n){"use strict";n.d(t,{GLOBAL_OBJ:function(){return i},Y:function(){return o}});var r=n(42990);let i=globalThis;function o(e,t,n){let o=n||i,a=o.__SENTRY__=o.__SENTRY__||{},s=a[r.J]=a[r.J]||{};return s[e]||(s[e]=t())}},82729:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},2379:function(e,t,n){"use strict";function r(){}n.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},99869:function(e,t,n){"use strict";function r(){}n.d(t,{k:function(){return s}});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class s{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new i(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},30020:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});let{toString:r,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;let a=r.call(t);if(a!==r.call(n))return!1;switch(a){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(d(t,n))return!0;let r=l(t),o=l(n),a=r.length;if(a!==o.length)return!1;for(let e=0;e<a;++e)if(!i.call(n,r[e]))return!1;for(let i=0;i<a;++i){let o=r[i];if(!e(t[o],n[o]))return!1}return!0}case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t==`${n}`;case"[object Map]":case"[object Set]":{if(t.size!==n.size)return!1;if(d(t,n))return!0;let r=t.entries(),i="[object Map]"===a;for(;;){let t=r.next();if(t.done)break;let[o,a]=t.value;if(!n.has(o)||i&&!e(a,n.get(o)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":{let e=t.byteLength;if(e===n.byteLength)for(;e--&&t[e]===n[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=o.call(t);if(e!==o.call(n))return!1;return!function(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(e,u)}}return!1}(e,t)}finally{a.clear()}}function l(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}t.Z=s;let u="{ [native code] }";function d(e,t){let n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},75028:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});let r=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);!i||(t=i.removeArray(o.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),n=t.get(e);return n||t.set(e,n=new s(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},37826:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error(t)}n.d(t,{a:function(){return r}})},25821:function(e,t,n){"use strict";function r(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let i=0;i<r;++i)o.push(e(t[i],n));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}n.d(t,{X:function(){return r}})},72380:function(e,t,n){"use strict";var r,i;n.d(t,{UG:function(){return c},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return r}});class o{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},l=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}(i=r||(r={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},87392:function(e,t,n){"use strict";n.d(t,{LZ:function(){return o},wv:function(){return i}});var r=n(68297);function i(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,r.FD)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(o=null!==(n=o)&&void 0!==n?n:t,a=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.FD)(e.charCodeAt(0))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s),p="",f=o&&(0,r.FD)(e.charCodeAt(0));return(d&&!f||a)&&(p+="\n"),p+=n,(d||u)&&(p+="\n"),'"""'+p+'"""'}},68297:function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:function(){return r},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},97359:function(e,t,n){"use strict";var r,i;n.d(t,{h:function(){return r}}),(i=r||(r={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},77304:function(e,t,n){"use strict";n.d(t,{$_:function(){return s},Vn:function(){return l}});var r=n(37826),i=n(25821),o=n(72380),a=n(97359);let s=Object.freeze({});function l(e,t,n=o.h8){let l,c,u;let d=new Map;for(let e of Object.values(a.h))d.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let p=Array.isArray(e),f=[e],h=-1,m=[],g=e,y=[],_=[];do{var v,b,S;let e;let a=++h===f.length,E=a&&0!==m.length;if(a){if(c=0===_.length?void 0:y[y.length-1],g=u,u=_.pop(),E){if(p){g=g.slice();let e=0;for(let[t,n]of m){let r=t-e;null===n?(g.splice(r,1),e++):g[r]=n}}else for(let[e,t]of(g=Object.defineProperties({},Object.getOwnPropertyDescriptors(g)),m))g[e]=t}h=l.index,f=l.keys,m=l.edits,p=l.inArray,l=l.prev}else if(u){if(null==(g=u[c=p?h:f[h]]))continue;y.push(c)}if(!Array.isArray(g)){(0,o.UG)(g)||(0,r.a)(!1,`Invalid AST Node: ${(0,i.X)(g)}.`);let n=a?null===(v=d.get(g.kind))||void 0===v?void 0:v.leave:null===(b=d.get(g.kind))||void 0===b?void 0:b.enter;if((e=null==n?void 0:n.call(t,g,c,u,y,_))===s)break;if(!1===e){if(!a){y.pop();continue}}else if(void 0!==e&&(m.push([c,e]),!a)){if((0,o.UG)(e))g=e;else{y.pop();continue}}}void 0===e&&E&&m.push([c,g]),a?y.pop():(l={inArray:p,index:h,keys:f,edits:m,prev:l},f=(p=Array.isArray(g))?g:null!==(S=n[g.kind])&&void 0!==S?S:[],h=-1,m=[],u&&_.push(u),u=g)}while(void 0!==l);return 0!==m.length?m[m.length-1][1]:e}},81223:function(e,t,n){"use strict";let r;n.d(t,{g7:function(){return y},dP:function(){return F},re:function(){return W}});let i=()=>Object.create(null),{forEach:o,slice:a}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class l{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return o.call(e,e=>t=t.getChildTrie(e)),s.call(t,"data")?t.data:t.data=this.makeData(a.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=this.weakness&&c(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){let t=this.weakness&&c(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new l(this.weakness,this.makeData)),n}}function c(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var u=n(2379);let d=null,p={},f=1;function h(e){try{return e()}catch(e){}}let m="@wry/context:Slot",g=h(()=>globalThis)||h(()=>global)||Object.create(null),y=g[m]||Array[m]||function(e){try{Object.defineProperty(g,m,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",f++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=d;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===p)break;return e!==d&&(d.slots[this.id]=t),!0}return d&&(d.slots[this.id]=p),!1}getValue(){if(this.hasValue())return d.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},o=d;d={parent:o,slots:i};try{return t.apply(r,n)}finally{d=o}}static bind(e){let t=d;return function(){let n=d;try{return d=t,e.apply(this,arguments)}finally{d=n}}}static noContext(e,t,n){if(!d)return e.apply(n,t);{let r=d;try{return d=null,e.apply(n,t)}finally{d=r}}}}),{bind:_,noContext:v}=y,b=new y,{hasOwnProperty:S}=Object.prototype,E=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function T(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let w=[];function I(e,t){if(!e)throw Error(t||"assertion failure")}function k(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function O(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class A{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++A.count}peek(){if(1===this.value.length&&!D(this))return C(this),this.value[0]}recompute(e){var t;return I(!this.recomputing,"already recomputing"),C(this),D(this)&&(L(this),b.withValue(this,N,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{T(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,D(this)||(t=this,x(t,M)))),O(this.value)}setDirty(){this.dirty||(this.dirty=!0,x(this,R),T(this))}dispose(){this.setDirty(),L(this),x(this,(e,t)=>{e.setDirty(),B(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=w.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(E(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),w.push(this.deps),this.deps=null)}}function C(e){let t=b.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),D(e)?R(t,e):M(t,e),t}function N(e,t){let n;e.recomputing=!0;let{normalizeResult:r}=e;r&&1===e.value.length&&(n=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!k(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function D(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function x(e,t){let n=e.parents.size;if(n){let r=E(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function R(e,t){I(e.childValues.has(t)),I(D(t));let n=!D(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=w.pop()||new Set;e.dirtyChildren.add(t),n&&x(e,R)}function M(e,t){I(e.childValues.has(t)),I(!D(t));let n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):k(n,t.value)||e.setDirty(),P(e,t),D(e)||x(e,M)}function P(e,t){let n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(w.length<100&&w.push(n),e.dirtyChildren=null))}function L(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{B(e,n)}),e.forgetDeps(),I(null===e.dirtyChildren)}function B(e,t){t.parents.delete(e),e.childValues.delete(t),P(e,t)}A.count=0;let U={setDirty:!0,dispose:!0,forget:!0};function F(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=b.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(T(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&S.call(U,n)?n:"setDirty";E(r).forEach(e=>e[i]()),t.delete(e),T(r)}},r}function j(...e){return(r||(r=new l("function"==typeof WeakMap))).lookupArray(e)}let $=new Set;function W(e,{max:t=65536,keyArgs:n,makeCacheKey:r=j,normalizeResult:i,subscribe:o,cache:a=u.e}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new A(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),$.add(s),b.hasValue()||($.forEach(e=>e.clean()),$.clear()),l};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function d(e){let t=e&&s.get(e);if(t)return t.peek()}function p(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))},l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))},l.forgetKey=p,l.forget=function(){return p(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}},66128:function(e,t,n){"use strict";n.d(t,{U6:function(){return f},ej:function(){return l},kG:function(){return c}});var r,i=n(97582),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,l=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return(0,i.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new l(t)}var u=["debug","log","warn","error","silent"],d=u.indexOf("log");function p(e){return function(){if(u.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}function f(e){var t=u[d];return d=Math.max(0,u.indexOf(e)),t}(r=c||(c={})).debug=p("debug"),r.log=p("log"),r.warn=p("warn"),r.error=p("error")},97582:function(e,t,n){"use strict";n.d(t,{CR:function(){return u},Jh:function(){return l},XA:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return d},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},48216:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{y:function(){return E}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},l=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=l("iterator"),u=l("observable"),d=l("species");function p(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[d])&&(t=void 0),void 0!==t?t:E}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function g(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,n){e._state="running";var r=e._observer;try{var i=p(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(y(e),i)i.call(r,n);else throw n;break;case"complete":y(e),i&&i.call(r)}}catch(e){h(e)}"closed"===e._state?g(e):"running"===e._state&&(e._state="ready")}function v(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],m(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(_(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});return}_(e,t,n)}}var b=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new S(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),g(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),S=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){v(this._subscription,"next",e)},t.error=function(e){v(this._subscription,"error",e)},t.complete=function(){v(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new b(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),n()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(f(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=f(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=f(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=f(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[u]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=p(t,u);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof E&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=p(t,c)))return new n(function(e){m(function(){if(!e.closed){for(var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,void 0)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){m(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:d,get:function(){return this}}]),e}();a()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:u,hostReportError:h},configurable:!0})},15969:function(e){"use strict";e.exports=JSON.parse('{"AED":{"code":"AED","symbol":"د.إ.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"AFN":{"code":"AFN","symbol":"؋","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"ALL":{"code":"ALL","symbol":"Lek","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"AMD":{"code":"AMD","symbol":"֏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"ANG":{"code":"ANG","symbol":"ƒ","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"AOA":{"code":"AOA","symbol":"Kz","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"ARS":{"code":"ARS","symbol":"$","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"AUD":{"code":"AUD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"AWG":{"code":"AWG","symbol":"ƒ","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"AZN":{"code":"AZN","symbol":"₼","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BAM":{"code":"BAM","symbol":"КМ","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BBD":{"code":"BBD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"BDT":{"code":"BDT","symbol":"৳","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":0},"BGN":{"code":"BGN","symbol":"лв.","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BHD":{"code":"BHD","symbol":"د.ب.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":3},"BIF":{"code":"BIF","symbol":"FBu","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"BMD":{"code":"BMD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"BND":{"code":"BND","symbol":"$","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"BOB":{"code":"BOB","symbol":"Bs","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BRL":{"code":"BRL","symbol":"R$","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BSD":{"code":"BSD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"BTC":{"code":"BTC","symbol":"Ƀ","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":8},"BTN":{"code":"BTN","symbol":"Nu.","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":1},"BWP":{"code":"BWP","symbol":"P","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"BYR":{"code":"BYR","symbol":"р.","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BYN":{"code":"BYN","symbol":"р.","thousandsSeparator":" ","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"BZD":{"code":"BZD","symbol":"BZ$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CAD":{"code":"CAD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CDF":{"code":"CDF","symbol":"FC","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CHF":{"code":"CHF","symbol":"CHF","thousandsSeparator":"\'","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"CLP":{"code":"CLP","symbol":"$","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":0},"CNY":{"code":"CNY","symbol":"\xa5","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"COP":{"code":"COP","symbol":"$","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"CRC":{"code":"CRC","symbol":"₡","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CUC":{"code":"CUC","symbol":"CUC","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CUP":{"code":"CUP","symbol":"$MN","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CVE":{"code":"CVE","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"CZK":{"code":"CZK","symbol":"Kč","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"DJF":{"code":"DJF","symbol":"Fdj","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"DKK":{"code":"DKK","symbol":"kr.","thousandsSeparator":"","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"DOP":{"code":"DOP","symbol":"RD$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"DZD":{"code":"DZD","symbol":"د.ج.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"EGP":{"code":"EGP","symbol":"ج.م.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"ERN":{"code":"ERN","symbol":"Nfk","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"ETB":{"code":"ETB","symbol":"ETB","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"EUR":{"code":"EUR","symbol":"€","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"FJD":{"code":"FJD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"FKP":{"code":"FKP","symbol":"\xa3","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GBP":{"code":"GBP","symbol":"\xa3","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GEL":{"code":"GEL","symbol":"GEL","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"GHS":{"code":"GHS","symbol":"₵","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GIP":{"code":"GIP","symbol":"\xa3","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GMD":{"code":"GMD","symbol":"D","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GNF":{"code":"GNF","symbol":"FG","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"GTQ":{"code":"GTQ","symbol":"Q","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"GYD":{"code":"GYD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"HKD":{"code":"HKD","symbol":"HK$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"HNL":{"code":"HNL","symbol":"L.","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"HRK":{"code":"HRK","symbol":"kn","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"HTG":{"code":"HTG","symbol":"G","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"HUF":{"code":"HUF","symbol":"Ft","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"IDR":{"code":"IDR","symbol":"Rp","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"ILS":{"code":"ILS","symbol":"₪","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"INR":{"code":"INR","symbol":"₹","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"IQD":{"code":"IQD","symbol":"د.ع.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"IRR":{"code":"IRR","symbol":"﷼","thousandsSeparator":",","decimalSeparator":"/","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"ISK":{"code":"ISK","symbol":"kr.","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":0},"JMD":{"code":"JMD","symbol":"J$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"JOD":{"code":"JOD","symbol":"د.ا.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":3},"JPY":{"code":"JPY","symbol":"\xa5","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"KES":{"code":"KES","symbol":"KSh","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"KGS":{"code":"KGS","symbol":"сом","thousandsSeparator":"\xa0","decimalSeparator":"-","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"KHR":{"code":"KHR","symbol":"៛","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"KMF":{"code":"KMF","symbol":"CF","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"KPW":{"code":"KPW","symbol":"₩","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"KRW":{"code":"KRW","symbol":"₩","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"KWD":{"code":"KWD","symbol":"د.ك.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":3},"KYD":{"code":"KYD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"KZT":{"code":"KZT","symbol":"₸","thousandsSeparator":"\xa0","decimalSeparator":"-","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"LAK":{"code":"LAK","symbol":"₭","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"LBP":{"code":"LBP","symbol":"ل.ل.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"LKR":{"code":"LKR","symbol":"₨","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":0},"LRD":{"code":"LRD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"LSL":{"code":"LSL","symbol":"M","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"LYD":{"code":"LYD","symbol":"د.ل.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":3},"MAD":{"code":"MAD","symbol":"د.م.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"MDL":{"code":"MDL","symbol":"lei","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"MGA":{"code":"MGA","symbol":"Ar","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"MKD":{"code":"MKD","symbol":"ден.","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"MMK":{"code":"MMK","symbol":"K","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MNT":{"code":"MNT","symbol":"₮","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MOP":{"code":"MOP","symbol":"MOP$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MRO":{"code":"MRO","symbol":"UM","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MTL":{"code":"MTL","symbol":"₤","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MUR":{"code":"MUR","symbol":"₨","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MVR":{"code":"MVR","symbol":"MVR","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":1},"MWK":{"code":"MWK","symbol":"MK","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MXN":{"code":"MXN","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MYR":{"code":"MYR","symbol":"RM","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"MZN":{"code":"MZN","symbol":"MT","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"NAD":{"code":"NAD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"NGN":{"code":"NGN","symbol":"₦","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"NIO":{"code":"NIO","symbol":"C$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"NOK":{"code":"NOK","symbol":"kr","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"NPR":{"code":"NPR","symbol":"₨","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"NZD":{"code":"NZD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"OMR":{"code":"OMR","symbol":"﷼","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":3},"PAB":{"code":"PAB","symbol":"B/.","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"PEN":{"code":"PEN","symbol":"S/.","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"PGK":{"code":"PGK","symbol":"K","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"PHP":{"code":"PHP","symbol":"₱","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"PKR":{"code":"PKR","symbol":"₨","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"PLN":{"code":"PLN","symbol":"zł","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"PYG":{"code":"PYG","symbol":"₲","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"QAR":{"code":"QAR","symbol":"﷼","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"RON":{"code":"RON","symbol":"L","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"RSD":{"code":"RSD","symbol":"Дин.","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"RUB":{"code":"RUB","symbol":"₽","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"RWF":{"code":"RWF","symbol":"RWF","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"SAR":{"code":"SAR","symbol":"﷼","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"SBD":{"code":"SBD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SCR":{"code":"SCR","symbol":"₨","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SDD":{"code":"SDD","symbol":"LSd","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SDG":{"code":"SDG","symbol":"\xa3‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SEK":{"code":"SEK","symbol":"kr","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"SGD":{"code":"SGD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SHP":{"code":"SHP","symbol":"\xa3","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SLL":{"code":"SLL","symbol":"Le","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SOS":{"code":"SOS","symbol":"S","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SRD":{"code":"SRD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"STD":{"code":"STD","symbol":"Db","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SVC":{"code":"SVC","symbol":"₡","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"SYP":{"code":"SYP","symbol":"\xa3","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"SZL":{"code":"SZL","symbol":"E","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"THB":{"code":"THB","symbol":"฿","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TJS":{"code":"TJS","symbol":"TJS","thousandsSeparator":"\xa0","decimalSeparator":";","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"TMT":{"code":"TMT","symbol":"m","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"TND":{"code":"TND","symbol":"د.ت.‏","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":3},"TOP":{"code":"TOP","symbol":"T$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TRY":{"code":"TRY","symbol":"₺","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TTD":{"code":"TTD","symbol":"TT$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TVD":{"code":"TVD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TWD":{"code":"TWD","symbol":"NT$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"TZS":{"code":"TZS","symbol":"TSh","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"UAH":{"code":"UAH","symbol":"₴","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"UGX":{"code":"UGX","symbol":"USh","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"USD":{"code":"USD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"UYU":{"code":"UYU","symbol":"$U","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"UZS":{"code":"UZS","symbol":"сўм","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"VEB":{"code":"VEB","symbol":"Bs.","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"VEF":{"code":"VEF","symbol":"Bs. F.","thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"VND":{"code":"VND","symbol":"₫","thousandsSeparator":".","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":0},"VUV":{"code":"VUV","symbol":"VT","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":0},"WST":{"code":"WST","symbol":"WS$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"XAF":{"code":"XAF","symbol":"F","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"XCD":{"code":"XCD","symbol":"$","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"XBT":{"code":"XBT","symbol":"Ƀ","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"XOF":{"code":"XOF","symbol":"F","thousandsSeparator":"\xa0","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"XPF":{"code":"XPF","symbol":"F","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"YER":{"code":"YER","symbol":"﷼","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"ZAR":{"code":"ZAR","symbol":"R","thousandsSeparator":" ","decimalSeparator":",","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"ZMW":{"code":"ZMW","symbol":"ZK","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"WON":{"code":"WON","symbol":"₩","thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2}}')},45617:function(e){"use strict";e.exports=JSON.parse('{"de":{"thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"el":{"symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"thousandsSeparator":".","decimalSeparator":",","decimalDigits":2},"en-US":{"thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"en-IE":{"symbolOnLeft":true,"thousandsSeparator":",","decimalSeparator":".","spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"zh-CN":{"thousandsSeparator":",","decimalSeparator":".","symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"decimalDigits":2},"es":{"thousandsSeparator":".","decimalSeparator":",","symbolOnLeft":false,"spaceBetweenAmountAndSymbol":true,"decimalDigits":2},"it":{"symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"thousandsSeparator":".","decimalSeparator":",","decimalDigits":2},"nl":{"symbolOnLeft":true,"spaceBetweenAmountAndSymbol":false,"thousandsSeparator":".","decimalSeparator":",","decimalDigits":2}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(52485),t(91118),t(43079)}),_N_E=e.O()}]);