PageSourceSearch

https://sushi-darom.com/_next/static/chunks/9403.72908c0b5651d080.js

js sushi-darom.com collected 2026-10-04 02:58:12 UTC 188,375 bytes, 472 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3cd32465-92aa-411b-aaff-3be66696af59",e._sentryDebugIdIdentifier="sentry-dbid-3cd32465-92aa-411b-aaff-3be66696af59")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9403],{24304:function(e,t,n){e.exports=n(90084)},88950:function(e,t,n){"use strict";function r(e,t,n){let r,o,i;let a=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e()}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function c(){return o&&clearTimeout(o),o=s(l,t),a&&void 0===i&&(i=s(l,a)),r}return c.cancel=u,c.flush=function(){return void 0!==o||void 0!==i?l():r},c}n.d(t,{D:function(){return r}})},6259:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(321);function o(e,t){let n=t?.getDsn(),o=t?.getOptions().tunnel;return function(e,t){let n=(0,r.gk)(e);return!(!n||(0,r.DR)(n))&&!!t&&n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}(e,n)||!!o&&i(e)===i(o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},48362:function(e,t,n){"use strict";let r,o,i,a,s,l,u,c;n.r(t),n.d(t,{BrowserClient:function(){return r0.R},ErrorBoundary:function(){return ap},MULTIPLEXED_TRANSPORT_EXTRA_KEY:function(){return ty},OpenFeatureIntegrationHook:function(){return iH},Profiler:function(){return as},SDK_VERSION:function(){return tl.J},SEMANTIC_ATTRIBUTE_SENTRY_OP:function(){return tw.$J},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:function(){return tw.S3},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:function(){return tw.TE},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:function(){return tw.Zj},Scope:function(){return tk.s},WINDOW:function(){return tu.m9},addBreadcrumb:function(){return tS.n},addEventProcessor:function(){return tx.Qy},addIntegration:function(){return w.M5},breadcrumbsIntegration:function(){return r8.f},browserApiErrorsIntegration:function(){return or.t},browserProfilingIntegration:function(){return iN},browserSessionIntegration:function(){return oo.O},browserTracingIntegration:function(){return sm.E},buildLaunchDarklyFlagUsedHandler:function(){return iD},captureConsoleIntegration:function(){return tP},captureEvent:function(){return tx.eN},captureException:function(){return tx.Tb},captureFeedback:function(){return b},captureMessage:function(){return tx.uT},captureReactException:function(){return iY},captureRequestError:function(){return sb},captureRouterTransitionStart:function(){return sv.QU},captureSession:function(){return tx.cg},captureUnderscoreErrorException:function(){return sw.u},chromeStackLineParser:function(){return r5.$3},close:function(){return tx.xv},consoleLoggingIntegration:function(){return t$},contextLinesIntegration:function(){return ov},continueTrace:function(){return tj.yn},createConsolaReporter:function(){return tD},createLangChainCallbackHandler:function(){return n$},createReduxEnhancer:function(){return ah},createTransport:function(){return nj.q},createUserFeedbackEnvelope:function(){return r6},cultureContextIntegration:function(){return ij.A},dedupeIntegration:function(){return nL.R},defaultRequestInstrumentationOptions:function(){return o6.k3},defaultStackLineParsers:function(){return r5.d8},defaultStackParser:function(){return r5.Dt},diagnoseSdkConnectivity:function(){return iz},endSession:function(){return tx.TM},eventFiltersIntegration:function(){return nD.I},eventFromException:function(){return r4.dr},eventFromMessage:function(){return r4.aB},exceptionFromError:function(){return r4.GJ},extraErrorDataIntegration:function(){return nH},featureFlagsIntegration:function(){return nG},feedbackAsyncIntegration:function(){return td},feedbackIntegration:function(){return th},feedbackSyncIntegration:function(){return th},flush:function(){return tx.yl},forceLoad:function(){return r7.Eg},functionToStringIntegration:function(){return nz.C},geckoStackLineParser:function(){return r5.$Q},getActiveSpan:function(){return nU.HN},getClient:function(){return y.s3},getCurrentScope:function(){return y.nZ},getDefaultIntegrations:function(){return r7.nV},getFeedback:function(){return Y},getGlobalScope:function(){return y.lW},getIsolationScope:function(){return y.aF},getReplay:function(){return oP.T},getRootSpan:function(){return nU.Gx},getSpanDescendants:function(){return nU.Dp},getSpanStatusFromHttpCode:function(){return tU.ix},getTraceData:function(){return nV.u},globalHandlersIntegration:function(){return oe.ks},graphqlClientIntegration:function(){return oI},growthbookIntegration:function(){return iJ},httpClientIntegration:function(){return of},httpContextIntegration:function(){return ot.s},inboundFiltersIntegration:function(){return nD.S},init:function(){return m.S1n},instrumentAnthropicAiClient:function(){return n2},instrumentGoogleGenAIClient:function(){return re},instrumentLangGraph:function(){return rn},instrumentOpenAiClient:function(){return rf},instrumentOutgoingRequests:function(){return o6.L7},instrumentSupabaseClient:function(){return rv},isEnabled:function(){return tx._k},isInitialized:function(){return tx.dk},lastEventId:function(){return tx.eW}
1,launchDarklyIntegration:function(){return iL},lazyLoadIntegration:function(){return tf},linkedErrorsIntegration:function(){return on.O},logger:function(){return h},makeBrowserOfflineTransport:function(){return is},makeFetchTransport:function(){return r1.f},makeMultiplexedTransport:function(){return tv},metrics:function(){return g},moduleMetadataIntegration:function(){return rH},onLoad:function(){return r7.lA},openFeatureIntegration:function(){return iW},opera10StackLineParser:function(){return r5.NP},opera11StackLineParser:function(){return r5.HH},parameterize:function(){return rS},reactErrorHandler:function(){return i0},reactRouterV3BrowserTracingIntegration:function(){return ag},reactRouterV4BrowserTracingIntegration:function(){return ab},reactRouterV5BrowserTracingIntegration:function(){return av},reactRouterV6BrowserTracingIntegration:function(){return sa},reactRouterV7BrowserTracingIntegration:function(){return sp},registerSpanErrorInstrumentation:function(){return rU.a},registerWebWorker:function(){return iK},replayCanvasIntegration:function(){return o4},replayIntegration:function(){return oP.G},reportPageLoaded:function(){return o9},reportingObserverIntegration:function(){return ol},rewriteFramesIntegration:function(){return rB.v},sendFeedback:function(){return X},setActiveSpanInBrowser:function(){return ie},setContext:function(){return tx.v},setCurrentClient:function(){return rq.K},setExtra:function(){return tx.sU},setExtras:function(){return tx.rJ},setHttpStatus:function(){return tU.Q0},setMeasurement:function(){return rX.o},setTag:function(){return tx.YA},setTags:function(){return tx.mG},setUser:function(){return tx.av},showReportDialog:function(){return r9},spanToBaggageHeader:function(){return rJ.uc},spanToJSON:function(){return nU.XU},spanToTraceHeader:function(){return nU.Hb},spotlightBrowserIntegration:function(){return i$},startBrowserTracingNavigationSpan:function(){return o7.og},startBrowserTracingPageLoadSpan:function(){return o7.Wo},startInactiveSpan:function(){return sR},startNewTrace:function(){return tj.Iw},startSession:function(){return tx.yj},startSpan:function(){return sP},startSpanManual:function(){return sE},statsigIntegration:function(){return iG},supabaseIntegration:function(){return rk},suppressTracing:function(){return tj.hE},tanstackRouterBrowserTracingIntegration:function(){return a_},thirdPartyErrorFilterIntegration:function(){return rz},uiProfiler:function(){return r3},unleashIntegration:function(){return iU},updateSpanName:function(){return nU.g5},useProfiler:function(){return au},webWorkerIntegration:function(){return iV},winjsStackLineParser:function(){return r5.R2},withActiveSpan:function(){return tj._d},withErrorBoundary:function(){return af},withIsolationScope:function(){return y.wi},withProfiler:function(){return al},withScope:function(){return y.$e},withSentryConfig:function(){return m.wO5},withSentryReactRouterV6Routing:function(){return sc},withSentryReactRouterV7Routing:function(){return sf},withSentryRouting:function(){return ak},withServerActionInstrumentation:function(){return sM},wrapApiHandlerWithSentryVercelCrons:function(){return s$},wrapAppGetInitialPropsWithSentry:function(){return sW},wrapCreateBrowserRouterV6:function(){return sl},wrapCreateBrowserRouterV7:function(){return sd},wrapCreateMemoryRouterV6:function(){return su},wrapCreateMemoryRouterV7:function(){return sh},wrapDocumentGetInitialPropsWithSentry:function(){return sH},wrapErrorGetInitialPropsWithSentry:function(){return sU},wrapGenerationFunctionWithSentry:function(){return sB},wrapGetInitialPropsWithSentry:function(){return sq},wrapGetServerSidePropsWithSentry:function(){return sX},wrapGetStaticPropsWithSentry:function(){return sJ},wrapMiddlewareWithSentry:function(){return sz},wrapPageComponentWithSentry:function(){return sZ},wrapRouteHandlerWithSentry:function(){return sK},wrapServerComponentWithSentry:function(){return sQ},wrapUseRoutesV6:function(){return ss},wrapUseRoutesV7:function(){return sg},zodErrorsIntegration:function(){return rY}});var p,f,d,h={};n.r(h),n.d(h,{debug:function(){return rT},error:function(){return rE},fatal:function(){return rR},fmt:function(){return rx},info:function(){return rI},trace:function(){return rA},warn:function(){return rP}});var g={};n.r(g),n.d(g,{count:function(){return rN},distribution:function(){return r$},gauge:function(){return rF}});var m=n(50443),_=n(81880),y=n(41690);function b(e,t={},n=(0,y.nZ)()){let{message:r,name:o,email:i,url:a,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:i,name:o,message:r,url:a,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=n?.getClient()||(0,y.s3)();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}var v=n(99904),w=n(75980),k=n(86651),S=n(20733);
1let x=_.GLOBAL_OBJ,C=x.document,A=x.navigator,T="Report a Bug",I="Cancel",P="Send Bug Report",E="Confirm",R="Report a Bug",O="[email protected]",M="Email",N="What's the bug? What did you expect?",F="Description",$="Your Name",j="Name",L="Thank you for your report!",D="(required)",W="Add a screenshot",H="Remove screenshot",U="Highlight",B="Hide",q="Remove",X=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let n=(0,y.s3)();if(!n)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,y.nZ)().setTags(e.tags);let r=b({source:"api",url:(0,v.l4)(),...e},t);return new Promise((e,t)=>{let o=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),i=n.on("afterSendEvent",(n,a)=>n.event_id!==r?void 0:(clearTimeout(o),i(),a?.statusCode&&a.statusCode>=200&&a.statusCode<300)?e(r):a?.statusCode===403?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 J(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function G(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let z="rgba(88, 74, 192, 1)",V={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:z,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%)"},Z={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:z,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 K(e){return`
2  --foreground: ${e.foreground};
3  --background: ${e.background};
4  --accent-foreground: ${e.accentForeground};
5  --accent-background: ${e.accentBackground};
6  --success-color: ${e.successColor};
7  --error-color: ${e.errorColor};
8  --border: ${e.border};
9  --box-shadow: ${e.boxShadow};
10  --outline: ${e.outline};
11  --interactive-filter: ${e.interactiveFilter};
12  `}let Q=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:p={email:"email",name:"username"},tags:f,styleNonce:d,scriptNonce:h,colorScheme:g="system",themeLight:m={},themeDark:_={},addScreenshotButtonLabel:y=W,cancelButtonLabel:b=I,confirmButtonLabel:v=E,emailLabel:k=M,emailPlaceholder:z=O,formTitle:Q=R,isRequiredLabel:Y=D,messageLabel:ee=F,messagePlaceholder:et=N,nameLabel:en=j,namePlaceholder:er=$,removeScreenshotButtonLabel:eo=H,submitButtonLabel:ei=P,successMessageText:ea=L,triggerLabel:es=T,triggerAriaLabel:el="",highlightToolText:eu=U,hideToolText:ec=B,removeHighlightText:ep=q,onFormOpen:ef,onFormClose:ed,onSubmitSuccess:eh,onSubmitError:eg,onFormSubmitted:em}={})=>{let e_={id:r,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:p,tags:f,styleNonce:d,scriptNonce:h,colorScheme:g,themeDark:_,themeLight:m,triggerLabel:es,triggerAriaLabel:el,cancelButtonLabel:b,submitButtonLabel:ei,confirmButtonLabel:v,formTitle:Q,emailLabel:k,emailPlaceholder:z,messageLabel:ee,messagePlaceholder:et,nameLabel:en,namePlaceholder:er,successMessageText:ea,isRequiredLabel:Y,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:eo,highlightToolText:eu,hideToolText:ec,removeHighlightText:ep,onFormClose:ed,onFormOpen:ef,onSubmitError:eg,onSubmitSuccess:eh,onFormSubmitted:em},ey=null,eb=[],ev=e=>{if(!ey){let t=C.createElement("div");t.id=String(e.id),C.body.appendChild(t),(ey=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let o=C.createElement("style");return o.textContent=`
13:host {
14  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
15  --font-size: 14px;
16  --z-index: 100000;
17
18  --page-margin: 16px;
19  --inset: auto 0 0 auto;
20  --actor-inset: var(--inset);
21
22  font-family: var(--font-family);
23  font-size: var(--font-size);
24
25  ${"system"!==e?`color-scheme: only ${e};`:""}
26
27  ${K("dark"===e?{...Z,...t}:{...V,...n})}
28}
29
30${"system"===e?`
31@media (prefers-color-scheme: dark) {
32  :host {
33    color-scheme: only dark;
34
35    ${K({...Z,...t})}
36  }
37}`:""}
38`,r&&o.setAttribute("nonce",r),o}(e))}return ey},ew=async r=>{let o,i;let a=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(A.userAgent)||/Macintosh/i.test(A.userAgent)&&A.maxTouchPoints&&A.maxTouchPoints>1)&&!!isSecureContext;try{o=(t?t():await e("feedbackModalIntegration",h))(),(0,w.M5)(o)}catch{throw Error("[Feedback] Missing feedback modal integration!")}try{let t=a?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(i=t(),(0,w.M5)(i))}catch{}let s=o.createDialog({options:{...r,onFormClose:()=>{s?.close(),r.onFormClose?.()},onFormSubmitted:()=>{s?.close(),r.onFormSubmitted?.()}},screenshotIntegration:i,sendFeedback:X,shadow:ev(r)});return s},ek=(e,t={})=>{let n=J(e_,t),r="string"==typeof e?C.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Error("Unable to attach to target element");let o=null,i=async()=>{o||(o=await ew({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};r.addEventListener("click",i);let a=()=>{eb=eb.filter(e=>e!==a),o?.removeFromDom(),o=null,r.removeEventListener("click",i)};return eb.push(a),a},eS=(e={})=>{let t=J(e_,e),n=ev(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let o=C.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||T,o.appendChild(function(){let e=e=>x.document.createElementNS("http://www.w3.org/2000/svg",e),t=G(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=G(e("g"),{clipPath:"url(#clip0_57_80)"}),r=G(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.45
3856 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 o=e("defs"),i=G(e("clipPath"),{id:"clip0_57_80"}),a=G(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}()),e){let t=C.createElement("span");t.appendChild(C.createTextNode(e)),o.appendChild(t)}let i=function(e){let t=C.createElement("style");return t.textContent=`
39.widget__actor {
40  position: fixed;
41  z-index: var(--z-index);
42  margin: var(--page-margin);
43  inset: var(--actor-inset);
44
45  display: flex;
46  align-items: center;
47  gap: 8px;
48  padding: 16px;
49
50  font-family: inherit;
51  font-size: var(--font-size);
52  font-weight: 600;
53  line-height: 1.14em;
54  text-decoration: none;
55
56  background: var(--actor-background, var(--background));
57  border-radius: var(--actor-border-radius, 1.7em/50%);
58  border: var(--actor-border, var(--border));
59  box-shadow: var(--actor-box-shadow, var(--box-shadow));
60  color: var(--actor-color, var(--foreground));
61  fill: var(--actor-color, var(--foreground));
62  cursor: pointer;
63  opacity: 1;
64  transition: transform 0.2s ease-in-out;
65  transform: translate(0, 0) scale(1);
66}
67.widget__actor[aria-hidden="true"] {
68  opacity: 0;
69  pointer-events: none;
70  visibility: hidden;
71  transform: translate(0, 16px) scale(0.98);
72}
73
74.widget__actor:hover {
75  background: var(--actor-hover-background, var(--background));
76  filter: var(--interactive-filter);
77}
78
79.widget__actor svg {
80  width: 1.14em;
81  height: 1.14em;
82}
83
84@media (max-width: 600px) {
85  .widget__actor span {
86    display: none;
87  }
88}
89`,e&&t.setAttribute("nonce",e),t}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:d});return ek(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){(0,S.j)()&&e_.autoInject&&("loading"===C.readyState?C.addEventListener("DOMContentLoaded",()=>eS().appendToDom()):eS().appendToDom())},attachTo:ek,createWidget(e={}){let t=eS(J(e_,e));return t.appendToDom(),t},createForm:async(e={})=>ew(J(e_,e)),remove(){ey&&(ey.parentElement?.remove(),ey=null),eb.forEach(e=>e()),eb=[]}}};function Y(){let e=(0,y.s3)();return e?.getIntegrationByName("Feedback")}var ee,et,en,er,eo,ei,ea,es={},el=[],eu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ec=Array.isArray;function ep(e,t){for(var n in t)e[n]=t[n];return e}function ef(e){var t=e.parentNode;t&&t.removeChild(e)}function ed(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ee.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return eh(e,a,r,o,null)}function eh(e,t,n,r,o){var i={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==o?++en:o,__i:-1,__u:0};return null==o&&null!=et.vnode&&et.vnode(i),i}function eg(e){return e.children}function em(e,t){this.props=e,this.context=t}function e_(e,t){if(null==t)return e.__?e_(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?e_(e):null}function ey(e){(!e.__d&&(e.__d=!0)&&er.push(e)&&!eb.__r++||eo!==et.debounceRendering)&&((eo=et.debounceRendering)||ei)(eb)}function eb(){var e,t,n,r=[],o=[];for(er.sort(ea);e=er.shift();)e.__d&&(n=er.length,t=function(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=ep({},o)).__v=o.__v+1,et.vnode&&et.vnode(r),eC(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?e_(o):i,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&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,o)||t,0===n||er.length>n?(eA(r,t,o),o.length=r.length=0,t=void 0,er.sort(ea)):t&&et.__c&&et.__c(t,el));t&&eA(r,t,o),eb.__r=0}function ev(e,t,n,r,o,i,a,s,l,u,c){var p,f,d,h,g,m=r&&r.__k||el,_=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,u=n.length,c=u,p=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?eh(null,o,null,null,o):ec(o)?eh(eg,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?eh(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=function(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>
vendor: 6,172 bytes, line 89
89=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return -1}(o,n,a=r+p,c),o.__i=s,i=null,-1!==s&&(c--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&p--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?p++:s>a?c>l-a?p+=s-a:p--:p=s<a&&s==a-1?s-a:0,s!==r+p&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=e_(i)),eI(i,i,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=e_(i)),eI(i,i))}(n,t,m),l=n.__d,p=0;p<_;p++)null!=(d=n.__k[p])&&"boolean"!=typeof d&&"function"!=typeof d&&(f=-1===d.__i?es:m[d.__i]||es,d.__i=p,eC(e,d,f,o,i,a,s,l,u,c),h=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&eT(f.ref,null,d),c.push(d.ref,d.__c||h,d)),null==g&&null!=h&&(g=h),65536&d.__u||f.__k===d.__k?l=function e(t,n,r){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,n=e(o[i],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}(d,l,e):"function"==typeof d.type&&void 0!==d.__d?l=d.__d:h&&(l=h.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=g}function ew(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||eu.test(t)?n:n+"px"}function ek(e,t,n,r,o){var i;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||ew(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ew(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])i=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+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?ex:eS,i)):e.removeEventListener(t,i?ex:eS,i);else{if(o)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 eS(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(et.event?et.event(e):e)}}function ex(e){if(this.l)return this.l[e.type+!0](et.event?et.event(e):e)}function eC(e,t,n,r,o,i,a,s,l,u){var c,p,f,d,h,g,m,_,y,b,v,w,k,S,x,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=et.__b)&&c(t);e:if("function"==typeof C)try{if(_=t.props,y=(c=C.contextType)&&r[c.__c],b=c?y?y.props.value:c.__:r,n.__c?m=(p=t.__c=n.__c).__=p.__E:("prototype"in C&&C.prototype.render?t.__c=p=new C(_,b):(t.__c=p=new em(_,b),p.constructor=C,p.render=eP),y&&y.sub(p),p.props=_,p.state||(p.state={}),p.context=b,p.__n=r,f=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=C.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=ep({},p.__s)),ep(p.__s,C.getDerivedStateFromProps(_,p.__s))),d=p.props,h=p.state,p.__v=t,f)null==C.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==C.getDerivedStateFromProps&&_!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(_,b),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(_,p.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=_,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),v=0;v<p._sb.length;v++)p.__h.push(p._sb[v]);p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(_,p.__s,b),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,h,g)})}if(p.context=b,p.props=_,p.__P=e,p.__e=!1,w=et.__r,k=0,"prototype"in C&&C.prototype.render){for(p.state=p.__s,p.__d=!1,w&&w(t),c=p.render(p.props,p.state,p.context),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[]}else do p.__d=!1,w&&w(t),c=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++k<25);p.state=p.__s,null!=p.getChildContext&&(r=ep(ep({},r),p.getChildContext())),f||null==p.getSnapshotBeforeUpdate||(g=p.getSnapshotBeforeUpdate(d,h)),ev(e,ec(x=null!=c&&c.type===eg&&null==c.key?c.props.children:c)?x:[x],t,n,r,o,i,a,s,l,u),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),m&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),et.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s,l){var u,c,p,f,d,h,g,m=n.props,_=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!y&&(y?d.localName===y:3===d.nodeType)){e=d,i[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),i=null,s=!1}if(null===y)m===_||s&&e.data===_||(e.data=_);else{if(i=i&&ee.call(e.childNodes),m=n.props||es,!s&&null!=i)for(m={},u=0;u<e.attributes.length;u++)m[(d=e.attributes[u]).name]=d.value;for(u in m)d=m[u],"children"==u||("dangerouslySetInnerHTML"==u?p=d:"key"===u||u in _||ek(e,u,null,d,o));for(u in _)d=_[u],"children"==u?f=d:"dangerouslySetInnerHTML"==u?c=d:"value"==u?h=d:"checked"==u?g=d:"key"===u||s&&"function"!=typeof d||m[u]===d||ek(e,u,d,m[u],o);if(c)s||p&&(c.__html===p.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(p&&(e.innerHTML=""),ev(e,ec(f)?f:[f],t,n,r,o&&"foreignObject"!==y,i,a,i?i[0]:n.__k&&e_(n,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&ef(i[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===m[u])||ek(e,u,h,m[u],!1),u="checked",void 0!==g&&g!==e[u]&&ek(e,u,g,m[u],!1))}return e}(n.__e,t,n,r,o,i,a,l,u);(c=et.diffed)&&c(t)}function eA(e,t,n){for(var r=0;r<n.length;r++)eT(n[r],n[++r],n[++r]);et.__c&&et.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){et.__e(e,t.__v)}})}function eT(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){et.__e(e,n)}}function eI(e,t,n){var r,o;
vendor: 1,101 bytes, line 89
89if(et.unmount&&et.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||eT(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){et.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&eI(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||ef(e.__e),e.__=e.__e=e.__d=void 0}function eP(e,t,n){return this.constructor(e,n)}ee=el.slice,et={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},en=0,em.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ep({},this.state),"function"==typeof e&&(e=e(ep({},n),this.props)),e&&ep(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ey(this))},em.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ey(this))},em.prototype.render=eg,er=[],ei="function"==typeof Promise?Promise.prototype.then.bind(Prom
89ise.resolve()):setTimeout,ea=function(e,t){return e.__v.__b-t.__v.__b},eb.__r=0;var eE,eR,eO,eM,eN=0,eF=[],e$=[],ej=et,eL=ej.__b,eD=ej.__r,eW=ej.diffed,eH=ej.__c,eU=ej.unmount,eB=ej.__;function eq(e,t){ej.__h&&ej.__h(eR,e,eN||t),eN=0;var n=eR.__H||(eR.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:e$}),n.__[e]}function eX(e){return eN=1,eJ(e1,e)}function eJ(e,t,n){var r=eq(eE++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):e1(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=eR,!eR.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var a=!1;return o.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)&&(!i||i.call(this,e,t,n))};eR.u=!0;var i=eR.shouldComponentUpdate,a=eR.componentWillUpdate;eR.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},eR.shouldComponentUpdate=o}return r.__N||r.__}function eG(e,t){var n=eq(eE++,4);!ej.__s&&e0(n.__H,t)&&(n.__=e,n.i=t,eR.__h.push(n))}function ez(e,t){var n=eq(eE++,7);return e0(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function eV(e,t){return eN=8,ez(function(){return e},t)}function eZ(){for(var e;e=eF.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eQ),e.__H.__h.forEach(eY),e.__H.__h=[]}catch(t){e.__H.__h=[],ej.__e(t,e.__v)}}ej.__b=function(e){eR=null,eL&&eL(e)},ej.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eB&&eB(e,t)},ej.__r=function(e){eD&&eD(e),eE=0;var t=(eR=e.__c).__H;t&&(eO===eR?(t.__h=[],eR.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=e$,e.__N=e.i=void 0})):(t.__h.forEach(eQ),t.__h.forEach(eY),t.__h=[],eE=0)),eO=eR},ej.diffed=function(e){eW&&eW(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==eF.push(t)&&eM===ej.requestAnimationFrame||((eM=ej.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),eK&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eK&&(t=requestAnimationFrame(n))})(eZ)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==e$&&(e.__=e.__V),e.i=void 0,e.__V=e$})),eO=eR=null},ej.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eQ),e.__h=e.__h.filter(function(e){return!e.__||eY(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ej.__e(n,e.__v)}}),eH&&eH(e,t)},ej.unmount=function(e){eU&&eU(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eQ(e)}catch(e){t=e}}),n.__H=void 0,t&&ej.__e(t,n.__v))};var eK="function"==typeof requestAnimationFrame;function eQ(e){var t=eR,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),eR=t}function eY(e){var t=eR;e.__c=e.__(),eR=t}function e0(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function e1(e,t){return"function"==typeof t?t(e):t}let e2=Object.defineProperty({__proto__:null,useCallback:eV,useContext:function(e){var t=eR.context[e.__c],n=eq(eE++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(eR)),t.props.value):e.__},useDebugValue:function(e,t){ej.useDebugValue&&ej.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=eq(eE++,3);!ej.__s&&e0(n.__H,t)&&(n.__=e,n.i=t,eR.__H.__h.push(n))},useErrorBoundary:function(e){var t=eq(eE++,10),n=eX();return t.__=e,eR.componentDidCatch||(eR.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=eq(eE++,11);if(!e.__){for(var t=eR.__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){eN=6,eG(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:eG,useMemo:ez,useReducer:eJ,useRef:function(e){return eN=5,ez(function(){return{current:e}},[])},useState:eX},Symbol.toStringTag,{value:"Module"});function e3({options:e}){let t=ez(()=>({__html:function(){let e=e=>C.createElementNS("http://www.w3.org/2000/svg",e),t=G(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=G(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 ed("h2",{class:"dialog__header"},ed("span",{class:"dialog__title"},e.formTitle),e.showBranding?ed("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function e5(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}
89function e4({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:f,cancelButtonLabel:d,emailLabel:h,emailPlaceholder:g,isEmailRequired:m,isNameRequired:_,messageLabel:y,messagePlaceholder:b,nameLabel:v,namePlaceholder:w,submitButtonLabel:k,isRequiredLabel:S}=e,[x,C]=eX(!1),[A,T]=eX(null),[I,P]=eX(!1),E=u?.input,[R,O]=eX(null),M=eV(e=>{O(e),P(!1)},[]),N=eV(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:m,isNameRequired:_,messageLabel:y,nameLabel:v});return t.length>0?T(`Please enter in the following required fields: ${t.join(", ")}`):T(null),0===t.length},[h,m,_,y,v]);return ed("form",{class:"form",onSubmit:eV(async e=>{C(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&I?u.value():void 0),r={name:e5(t,"name"),email:e5(t,"email"),message:e5(t,"message"),attachments:n?[n]:void 0};if(!N(r))return;try{let e=await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});i(r,e)}catch(e){T(e),a(e)}}finally{C(!1)}},[u&&I,i,a])},E&&I?ed(E,{onError:M}):null,ed("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},ed("div",{class:"form__top"},A?ed("div",{class:"form__error-container"},A):null,l?ed("label",{for:"name",class:"form__label"},ed(e6,{label:v,isRequiredLabel:S,isRequired:_}),ed("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:w,required:_,type:"text"})):ed("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?ed("label",{for:"email",class:"form__label"},ed(e6,{label:h,isRequiredLabel:S,isRequired:m}),ed("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:m,type:"email"})):ed("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ed("label",{for:"message",class:"form__label"},ed(e6,{label:y,isRequiredLabel:S,isRequired:!0}),ed("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),E?ed("label",{for:"screenshot",class:"form__label"},ed("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{O(null),P(e=>!e)}},I?f:p),R?ed("div",{class:"form__error-container"},R.message):null):null),ed("div",{class:"btn-group"},ed("button",{class:"btn btn--primary",disabled:x,type:"submit"},k),ed("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},d))))}function e6({label:e,isRequired:t,isRequiredLabel:n}){return ed("span",{class:"form__label__text"},e,t&&ed("span",{class:"form__label__text--required"},n))}function e7({open:e,onFormSubmitted:t,...n}){let r=n.options,o=ez(()=>({__html:function(){let e=e=>x.document.createElementNS("http://www.w3.org/2000/svg",e),t=G(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=G(e("g"),{clipPath:"url(#clip0_57_156)"}),r=G(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"}),o=G(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 
8910.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(o,r);let i=e("defs"),a=G(e("clipPath"),{id:"clip0_57_156"}),s=G(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}().outerHTML}),[]),[i,a]=eX(null),s=eV(()=>{i&&(clearTimeout(i),a(null)),t()},[i]),l=eV((e,r)=>{n.onSubmitSuccess(e,r),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return ed(eg,null,i?ed("div",{class:"success__position",onClick:s},ed("div",{class:"success__content"},r.successMessageText,ed("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):ed("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ed("div",{class:"dialog__position"},ed("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},ed(e3,{options:r}),ed(e4,{...n,onSubmitSuccess:l})))))}let e9=`
90.dialog {
91  position: fixed;
92  z-index: var(--z-index);
93  margin: 0;
94  inset: 0;
95
96  display: flex;
97  align-items: center;
98  justify-content: center;
99  padding: 0;
100  height: 100vh;
101  width: 100vw;
102
103  color: var(--dialog-color, var(--foreground));
104  fill: var(--dialog-color, var(--foreground));
105  line-height: 1.75em;
106
107  background-color: rgba(0, 0, 0, 0.05);
108  border: none;
109  inset: 0;
110  opacity: 1;
111  transition: opacity 0.2s ease-in-out;
112}
113
114.dialog__position {
115  position: fixed;
116  z-index: var(--z-index);
117  inset: var(--dialog-inset);
118  padding: var(--page-margin);
119  display: flex;
120  max-height: calc(100vh - (2 * var(--page-margin)));
121}
122@media (max-width: 600px) {
123  .dialog__position {
124    inset: var(--page-margin);
125    padding: 0;
126  }
127}
128
129.dialog__position:has(.editor) {
130  inset: var(--page-margin);
131  padding: 0;
132}
133
134.dialog:not([open]) {
135  opacity: 0;
136  pointer-events: none;
137  visibility: hidden;
138}
139.dialog:not([open]) .dialog__content {
140  transform: translate(0, -16px) scale(0.98);
141}
142
143.dialog__content {
144  display: flex;
145  flex-direction: column;
146  gap: 16px;
147  padding: var(--dialog-padding, 24px);
148  max-width: 100%;
149  width: 100%;
150  max-height: 100%;
151  overflow: auto;
152
153  background: var(--dialog-background, var(--background));
154  border-radius: var(--dialog-border-radius, 20px);
155  border: var(--dialog-border, var(--border));
156  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
157  transform: translate(0, 0) scale(1);
158  transition: transform 0.2s ease-in-out;
159}
160
161`,e8=`
162.dialog__header {
163  display: flex;
164  gap: 4px;
165  justify-content: space-between;
166  font-weight: var(--dialog-header-weight, 600);
167  margin: 0;
168}
169.dialog__title {
170  align-self: center;
171  width: var(--form-width, 272px);
172}
173
174@media (max-width: 600px) {
175  .dialog__title {
176    width: auto;
177  }
178}
179
180.dialog__position:has(.editor) .dialog__title {
181  width: auto;
182}
183
184
185.brand-link {
186  display: inline-flex;
187}
188.brand-link:focus-visible {
189  outline: var(--outline);
190}
191`,te=`
192.form {
193  display: flex;
194  overflow: auto;
195  flex-direction: row;
196  gap: 16px;
197  flex: 1 0;
198}
199
200.form fieldset {
201  border: none;
202  margin: 0;
203  padding: 0;
204}
205
206.form__right {
207  flex: 0 0 auto;
208  display: flex;
209  overflow: auto;
210  flex-direction: column;
211  justify-content: space-between;
212  gap: 20px;
213  width: var(--form-width, 100%);
214}
215
216.dialog__position:has(.editor) .form__right {
217  width: var(--form-width, 272px);
218}
219
220.form__top {
221  display: flex;
222  flex-direction: column;
223  gap: 8px;
224}
225
226.form__error-container {
227  color: var(--error-color);
228  fill: var(--error-color);
229}
230
231.form__label {
232  display: flex;
233  flex-direction: column;
234  gap: 4px;
235  margin: 0px;
236}
237
238.form__label__text {
239  display: flex;
240  gap: 4px;
241  align-items: center;
242}
243
244.form__label__text--required {
245  font-size: 0.85em;
246}
247
248.form__input {
249  font-family: inherit;
250  line-height: inherit;
251  background: transparent;
252  box-sizing: border-box;
253  border: var(--input-border, var(--border));
254  border-radius: var(--input-border-radius, 6px);
255  color: var(--input-color, inherit);
256  fill: var(--input-color, inherit);
257  font-size: var(--input-font-size, inherit);
258  font-weight: var(--input-font-weight, 500);
259  padding: 6px 12px;
260}
261
262.form__input::placeholder {
263  opacity: 0.65;
264  color: var(--input-placeholder-color, inherit);
265  filter: var(--interactive-filter);
266}
267
268.form__input:focus-visible {
269  outline: var(--input-focus-outline, var(--outline));
270}
271
272.form__input--textarea {
273  font-family: inherit;
274  resize: vertical;
275}
276
277.error {
278  color: var(--error-color);
279  fill: var(--error-color);
280}
281`,tt=`
282.btn-group {
283  display: grid;
284  gap: 8px;
285}
286
287.btn {
288  line-height: inherit;
289  border: var(--button-border, var(--border));
290  border-radius: var(--button-border-radius, 6px);
291  cursor: pointer;
292  font-family: inherit;
293  font-size: var(--button-font-size, inherit);
294  font-weight: var(--button-font-weight, 600);
295  padding: var(--button-padding, 6px 16px);
296}
297.btn[disabled] {
298  opacity: 0.6;
299  pointer-events: none;
300}
301
302.btn--primary {
303  color: var(--button-primary-color, var(--accent-foreground));
304  fill: var(--button-primary-color, var(--accent-foreground));
305  background: var(--button-primary-background, var(--accent-background));
306  border: var(--button-primary-border, var(--border));
307  border-radius: var(--button-primary-border-radius, 6px);
308  font-weight: var(--button-primary-font-weight, 500);
309}
310.btn--primary:hover {
311  color: var(--button-primary-hover-color, var(--accent-foreground));
312  fill: var(--button-primary-hover-color, var(--accent-foreground));
313  background: var(--button-primary-hover-background, var(--accent-background));
314  filter: var(--interactive-filter);
315}
316.btn--primary:focus-visible {
317  background: var(--button-primary-hover-background, var(--accent-background));
318  filter: var(--interactive-filter);
319  outline: var(--button-primary-focus-outline, var(--outline));
320}
321
322.btn--default {
323  color: var(--button-color, var(--foreground));
324  fill: var(--button-color, var(--foreground));
325  background: var(--button-background, var(--background));
326  border: var(--button-border, var(--border));
327  border-radius: var(--button-border-radius, 6px);
328  font-weight: var(--button-font-weight, 500);
329}
330.btn--default:hover {
331  color: var(--button-color, var(--foreground));
332  fill: var(--button-color, var(--foreground));
333  background: var(--button-hover-background, var(--background));
334  filter: var(--interactive-filter);
335}
336.btn--default:focus-visible {
337  background: var(--button-hover-background, var(--background));
338  filter: var(--interactive-filter);
339  outline: var(--button-focus-outline, var(--outline));
340}
341`,tn=`
342.success__position {
343  position: fixed;
344  inset: var(--dialog-inset);
345  padding: var(--page-margin);
346  z-index: var(--z-index);
347}
348.success__content {
349  background: var(--success-background, var(--background));
350  border: var(--success-border, var(--border));
351  border-radius: var(--success-border-radius, 1.7em/50%);
352  box-shadow: var(--success-box-shadow, var(--box-shadow));
353  font-weight: var(--success-font-weight, 600);
354  color: var(--success-color);
355  fill: var(--success-color);
356  padding: 12px 24px;
357  line-height: 1.75em;
358
359  display: grid;
360  align-items: center;
361  grid-auto-flow: column;
362  gap: 6px;
363  cursor: default;
364}
365
366.success__icon {
367  display: flex;
368}
369`,tr=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let o=e.useSentryUser,i=function(){let e=(0,y.nZ)().getUser(),t=(0,y.aF)().getUser(),n=(0,y.lW)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=C.createElement("div"),s=function(e){let t=C.createElement("style");return t.textContent=`
370:host {
371  --dialog-inset: var(--inset);
372}
373
374${e9}
375${e8}
376${te}
377${tt}
378${tn}
379`,e&&t.setAttribute("nonce",e),t}(e.styleNonce),l="",u={get el(){return a},appendToDom(){r.contains(s)||r.contains(a)||(r.appendChild(s),r.appendChild(a))},removeFromDom(){a.remove(),s.remove(),C.body.style.overflow=l},open(){p(!0),e.onFormOpen?.(),y.s3()?.emit("openFeedbackWidget"),l=C.body.style.overflow,C.body.style.overflow="hidden"},close(){p(!1),C.body.style.overflow=l}},c=t?.createInput({h:ed,hooks:e2,dialog:u,options:e}),p=t=>{var r,s,l,u;r=ed(e7,{options:e,screenshotInput:c,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(o&&i?.[o.name]||""),defaultEmail:String(o&&i?.[o.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{p(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),et.__&&et.__(r,a),s=a.__k,l=[],u=[],eC(a,r=a.__k=ed(eg,null,[r]),s||es,es,void 0!==a.ownerSVGElement,s?null:a.firstChild?ee.call(a.childNodes):null,l,s?s.__e:a.firstChild,!1,u),r.__d=void 0,eA(l,r,u)};return u}});function to(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function ti(e,t){to(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function ta(e,t,n){to(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)})})}let ts=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let o=C.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){let i=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){let i=function(){let[t,n]=e.useState(x.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(x.devicePixelRatio)},t=matchMedia(`(resolution: ${x.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await A.mediaDevices.getDisplayMedia({video:{width:x.innerWidth*i,height:x.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=C.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o,i),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}({hooks:t}),a=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),s=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),l={__html:function(e){let t=C.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
380.editor {
381  display: flex;
382  flex-grow: 1;
383  flex-direction: column;
384}
385
386.editor__image-container {
387  justify-items: center;
388  padding: 15px;
389  position: relative;
390  height: 100%;
391  border-radius: var(--menu-border-radius, 6px);
392
393  background-color: ${n};
394  background-image: repeating-linear-gradient(
395      -145deg,
396      transparent,
397      transparent 8px,
398      ${n} 8px,
399      ${n} 11px
400    ),
401    repeating-linear-gradient(
402      -45deg,
403      transparent,
404      transparent 15px,
405      ${r} 15px,
406      ${r} 16px
407    );
408}
409
410.editor__canvas-container {
411  width: 100%;
412  height: 100%;
413  position: relative;
414  display: flex;
415  align-items: center;
416  justify-content: center;
417}
418
419.editor__canvas-container > * {
420  object-fit: contain;
421  position: absolute;
422}
423
424.editor__tool-container {
425  padding-top: 8px;
426  display: flex;
427  justify-content: center;
428}
429
430.editor__tool-bar {
431  display: flex;
432  gap: 8px;
433}
434
435.editor__tool {
436  display: flex;
437  padding: 8px 12px;
438  justify-content: center;
439  align-items: center;
440  border: var(--button-border, var(--border));
441  border-radius: var(--button-border-radius, 6px);
442  background: var(--button-background, var(--background));
443  color: var(--button-color, var(--foreground));
444}
445
446.editor__tool--active {
447  background: var(--button-primary-background, var(--accent-background));
448  color: var(--button-primary-color, var(--accent-foreground));
449}
450
451.editor__rect {
452  position: absolute;
453  z-index: 2;
454}
455
456.editor__rect button {
457  opacity: 0;
458  position: absolute;
459  top: -12px;
460  right: -12px;
461  cursor: pointer;
462  padding: 0;
463  z-index: 3;
464  border: none;
465  background: none;
466}
467
468.editor__rect:hover button {
469  opacity: 1;
470}
471`,e&&t.setAttribute("nonce",e),t}(o.styleNonce).innerText},u=r.el.style,c=({screenshot:r})=>{let[i,u]=t.useState("highlight"),[c,p]=t.useState([]),f=t.useRef(null),d=t.useRef(null),h=t.useRef(null),g=t.useRef(null),[m,_]=t.useState(1),y=t.useMemo(()=>{let e=C.getElementById(o.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{let e=()=>{let t=f.current;t&&(to(r.canvas,{alpha:!1},e=>
471{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),x.addEventListener("resize",e),()=>{x.removeEventListener("resize",e)}},[r]);let b=t.useCallback((e,t)=>{to(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{b(d.current,r.dpi),ti(d.current,r.canvas)},[r]),t.useEffect(()=>{b(h.current,r.dpi),to(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ta(h.current,y,c)},[c,y]),t.useEffect(()=>{b(n,r.dpi),ti(n,r.canvas),to(C.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,ta(e,y,c),ti(n,e)})},[c,r,y]);let v=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),p(t=>{let n=[...t];return n.splice(e,1),n})},[]),w={width:`${r.canvas.width*m}px`,height:`${r.canvas.height*m}px`},k=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:f},e("canvas",{ref:d,id:"background",style:w}),e("canvas",{ref:h,id:"foreground",style:w}),e("div",{ref:g,onMouseDown:e=>{if(!i||!g.current)return;let t=g.current.getBoundingClientRect(),n={type:i,x:e.offsetX/m,y:e.offsetY/m},r=(e,n)=>{let r=(n.clientX-t.x)/m,o=(n.clientY-t.y)/m;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{to(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),ta(h.current,y,[...c,r(n,e)])},a=e=>{let t=r(n,e);t.w*m>=1&&t.h*m>=1&&p(e=>[...e,t]),C.removeEventListener("mousemove",o),C.removeEventListener("mouseup",a)};C.addEventListener("mousemove",o),C.addEventListener("mouseup",a)},style:w},c.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*m}px`,left:`${t.x*m}px`,width:`${t.w*m}px`,height:`${t.h*m}px`}},e("button",{"aria-label":o.removeHighlightText,onClick:v(n),onMouseDown:k,onMouseUp:k,type:"button"},e(s,null))))))),e(a,{options:o,action:i,setAction:u}))};return function({onError:r}){let[o,a]=t.useState();return(i({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{to(C.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),a({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(e=>{u.display="block",r(e)},[])}),o)?e(c,{screenshot:o}):e("div",null)}}({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>
471{o.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}});var tl=n(70385),tu=n(23222);let tc={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},tp=tu.m9;async function tf(e,t){let n=tc[e],r=tp.Sentry=tp.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;let i=function(e){let t=(0,y.s3)(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${tl.J}/${e}.min.js`,n).toString()}(n),a=tu.m9.document.createElement("script");a.src=i,a.crossOrigin="anonymous",a.referrerPolicy="strict-origin",t&&a.setAttribute("nonce",t);let s=new Promise((e,t)=>{a.addEventListener("load",()=>e()),a.addEventListener("error",t)}),l=tu.m9.document.currentScript,u=tu.m9.document.body||tu.m9.document.head||l?.parentElement;if(u)u.appendChild(a);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let c=r[e];if("function"!=typeof c)throw Error(`Could not load integration: ${e}`);return c}let td=Q({lazyLoadIntegration:tf}),th=Q({getModalIntegration:()=>tr,getScreenshotIntegration:()=>ts});var tg=n(49548),tm=n(63197),t_=n(78115);let ty="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function tb(e,t){let n;return(0,t_.gv)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function tv(e,t){return n=>{let r=e(n),o=new Map,i=t||(e=>{let t=e.getEvent();return t?.extra?.[ty]&&Array.isArray(t.extra[ty])?t.extra[ty]:[]});function a(t,r){let i=r?`${t}:${r}`:t,a=o.get(i);if(!a){let s=(0,tm.U4)(t);if(!s)return;let l=(0,tg.U)(s,n.tunnel);a=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=tb(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),o.set(i,a)}return[t,a]}return{send:async function(e){let t=i({envelope:e,getEvent:function(t){return tb(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?a(e,void 0):a(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send((0,t_.Jd)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var tw=n(45535),tk=n(34148),tS=n(88678),tx=n(86239),tC=n(52135),tA=n(87279),tT=n(12289),tI=n(36953);let tP=(0,w._I)((e={})=>{let t=e.levels||k.RU,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in _.GLOBAL_OBJ&&(0,tC.e)(({args:r,level:o})=>{(0,y.s3)()===e&&t.includes(o)&&function(e,t,n){let r=(0,tT.V)(t),o=Error(),i={level:(0,tT.V)(t),extra:{arguments:e}};(0,y.$e)(a=>{if(a.addEventProcessor(e=>(e.logger="console",(0,tA.EG)(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${(0,tI.nK)(e.slice(1)," ")||"console.assert"}`;a.setExtra("arguments",e.slice(1)),a.captureMessage(t,r,{captureContext:i,syntheticException:o})}return}let s=e.find(e=>e instanceof Error);if(s){(0,tx.Tb)(s,i);return}let l=(0,tI.nK)(e," ");a.captureMessage(l,r,{captureContext:i,syntheticException:o})})}(r,o,n)})}}});var tE=n(61662),tR=n(38773),tO=n(11750),tM=n(97971);function tN(e,t,n){return"util"in _.GLOBAL_OBJ&&"function"==typeof _.GLOBAL_OBJ.util.format?_.GLOBAL_OBJ.util.format(...e):e.map(e=>(0,tO.pt)(e)?String(e):JSON.stringify((0,tM.Fv)(e,t,n))).join(" ")}let tF={[tw.S3]:"auto.log.console"},t$=(0,w._I)((e={})=>{let t=e.levels||k.RU;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e.getOptions();if(!n){tE.X&&k.fF.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}(0,tC.e)(({args:n,level:i})=>{var a;if((0,y.s3)()!==e||!t.includes(i))return;let s=n[0],l=n.slice(1);if("assert"===i){if(!s){let e=l.length>0?`Assertion failed: ${tN(l,r,o)}`:"Assertion failed";(0,tR.hQ)({level:"error",message:e,attributes:tF})}return}let u="log"===i,c=n.length>1&&"string"==typeof n[0]&&(a=n[0],!/%[sdifocO]/.test(a)),p={...tF,...c?function(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}(s,l):{}};(0,tR.hQ)({level:u?"info":i,message:tN(n,r,o),severityNumber:u?10:void 0,attributes:p})})}}});var tj=n(61153);let tL=["trace","debug","info","warn","error","fatal"];function tD(e={}){let t=new Set(e.levels??tL),n=e.client;return{log(e){let{type:r,level:o,message:i,args:a,tag:s,date:l,...u}=e,c=n||(0,y.s3)();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=tW[e];if(t)return t}if("number"==typeof t){let e=tH[t];if(e)return e}return"info"}(r,o);if(!t.has(p))return;let{normalizeDepth:f=3,normalizeMaxBreadth:d=1e3}=c.getOptions(),h=[];i&&h.push(i),a&&a.length>0&&h.push(tN(a,f,d));let g=h.join(" ");u["sentry.origin"]="auto.log.consola",s&&(u["consola.tag"]=s),r&&(u["consola.type"]=r),null!=o&&"number"==typeof o&&(u["consola.level"]=o),(0,tR.hQ)({level:p,message:g,attributes:u})}}}let tW={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},tH={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};var tU=n(48485);let tB="gen_ai.system",tq="gen_ai.request.model",tX="gen_ai.request.stream",tJ="gen_ai.request.temperature",tG="gen_ai.request.max_tokens",tz="gen_ai.request.frequency_penalty",tV="gen_ai.request.presence_penalty",tZ="gen_ai.request.top_p",tK="gen_ai.request.top_k",tQ="gen_ai.response.finish_reasons",tY="gen_ai.response.model",t0="gen_ai.response.id",t1="gen_ai.usage.input_tokens",t2="gen_ai.usage.output_tokens",t3="gen_ai.usage.total_tokens",t5="gen_ai.operation.name",t4="sentry.sdk_meta.gen_ai.input.messages.original_length",t6="gen_ai.input.messages",t7="gen_ai.system_instructions",t9="gen_ai.response.text",t8="gen_ai.request.available_tools",ne="gen_ai.response.streaming",nt="gen_ai.response.tool_calls",nn="gen_ai.agent.name",nr="gen_ai.conversation.id",no="openai.response.id",ni="openai.response.model",na="openai.response.timestamp",ns={CHAT:"chat",EMBEDDINGS:"embeddings"},nl="anthropic.response.timestamp",nu="auto.ai.langchain",nc={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},np=e=>new TextEncoder().encode(e).length,nf=e=>np(JSON.stringify(e));
471function nd(e,t){if(np(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){let i=Math.floor((n+r)/2),a=e.slice(0,i);np(a)<=t?(o=a,n=i+1):r=i-1}return o}function nh(e,t){return"string"==typeof e?t:{...e,text:t}}function ng(e){return!!e&&"object"==typeof e&&("type"in e&&"string"==typeof e.type&&"source"in e&&ng(e.source)||nm(e)||"media_type"in e&&"string"==typeof e.media_type&&"data"in e||"image_url"in e&&"string"==typeof e.image_url&&e.image_url.startsWith("data:")||"type"in e&&("blob"===e.type||"base64"===e.type)||"b64_json"in e||"type"in e&&"result"in e&&"image_generation"===e.type||"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:"))}function nm(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function n_(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}let ny="[Filtered]",nb=["image_url","data","content","b64_json","result","uri"];function nv(e){let t={...e};for(let n of(ng(t.source)&&(t.source=nv(t.source)),nm(e)&&(t.inlineData={...e.inlineData,data:ny}),nb))"string"==typeof t[n]&&(t[n]=ny);return t}function nw(e){return function(e,t){if(!Array.isArray(e)||0===e.length)return e;let n=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?n={...t,content:e(t.content)}:"content"in t&&ng(t.content)&&(n={...t,content:nv(t.content)}),n_(t)&&(n={...n??t,parts:e(t.parts)}),ng(n)?n=nv(n):ng(t)&&(n=nv(t))),n??t})}([e[e.length-1]]),r=n[0];return 2e4>=nf(r)?n:function(e,t){if(!e)return[];if("string"==typeof e){let t=nd(e,2e4);return t?[t]:[]}return"object"!=typeof e?[]:null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content?function(e,t){let n=t-nf({...e,content:""});if(n<=0)return[];let r=nd(e.content,n);return[{...e,content:r}]}(e,t):n_(e)?function(e,t){let{parts:n}=e,r=n.map(e=>nh(e,"")),o=t-nf({...e,parts:r});if(o<=0)return[];let i=[];for(let e of n){let t="string"==typeof e?e:"text"in e?e.text:"",n=np(t);if(n<=o)i.push(e),o-=n;else if(0===i.length){let n=nd(t,o);n&&i.push(nh(e,n));break}else break}return i.length<=0?[]:[{...e,parts:i}]}(e,t):[]}(r,2e4)}(e,0)}function nk(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function nS(e){return`gen_ai.${nk(e)}`}function nx(e,t){return e?`${e}.${t}`:t}function nC(e,t,n,r,o){void 0!==t&&e.setAttributes({[t1]:t}),void 0!==n&&e.setAttributes({[t2]:n}),(void 0!==t||void 0!==n||void 0!==r||void 0!==o)&&e.setAttributes({[t3]:(t??0)+(n??0)+(r??0)+(o??0)})}function nA(e){return"string"==typeof e?nd(e,2e4):Array.isArray(e)?JSON.stringify(nw(e)):JSON.stringify(e)}function nT(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}let nI=(e,t,n)=>{null!=n&&(e[t]=n)}
471,nP=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function nE(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function nR(e){let t=e.toLowerCase();return nc[t]??t}function nO(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function nM(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function nN(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:nR(t.call(e)),content:nE(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:nR("string"==typeof n?nO(n):"user"),content:nE(e.kwargs?.content)}}if(e.type)return{role:nR(String(e.type).toLowerCase()),content:nE(e.content)};if(e.role)return{role:nR(String(e.role)),content:nE(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:nR(nO(n)),content:nE(e.content)}:{role:"user",content:nE(e.content)}})}function nF(e,t,n,r,o){return{[tB]:nE(e??"langchain"),[t5]:"chat",[tq]:nE(t),[tw.S3]:nu,...function(e,t,n){let r={},o="kwargs"in e?e.kwargs:void 0;return nP(r,tJ,t?.temperature??n?.ls_temperature??o?.temperature),nP(r,tG,t?.max_tokens??n?.ls_max_tokens??o?.max_tokens),nP(r,tZ,t?.top_p??o?.top_p),nP(r,tz,t?.frequency_penalty),nP(r,tV,t?.presence_penalty),t&&"stream"in t&&nI(r,tX,!!t.stream),r}(n,r,o)}}function n$(e={}){let t=e.recordInputs??!1,n=e.recordOutputs??!1,r=new Map,o=e=>{let t=r.get(e);t?.isRecording()&&(t.end(),r.delete(e))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,o,i,a,s,l,u){let c=function(e,t,n,r,o){let i=nF(o?.ls_provider,r?.model??o?.ls_model_name??"unknown",e,r,o);return n&&Array.isArray(t)&&t.length>0&&(nI(i,t4,t.length),nI(i,t6,nE(t.map(e=>({role:"user",content:e}))))),i}(e,n,t,nM(s),l),p=c[tq],f=c[t5];(0,tj.V0)({name:`${f} ${p}`,op:"gen_ai.chat",attributes:{...c,[tw.$J]:"gen_ai.chat"}},e=>(r.set(o,e),e))},handleChatModelStart(e,n,o,i,a,s,l,u){let c=function(e,t,n,r,o){let i=nF(o?.ls_provider??e.id?.[2],r?.model??o?.ls_model_name??"unknown",e,r,o);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=nT(nN(t.flat()));e&&nI(i,t7,e),nI(i,t4,Array.isArray(n)?n.length:0),nI(i,t6,nE(nw(n)))}return i}(e,n,t,nM(s),l),p=c[tq],f=c[t5];(0,tj.V0)({name:`${f} ${p}`,op:"gen_ai.chat",attributes:{...c,[tw.$J]:"gen_ai.chat"}},e=>(r.set(o,e),e))},handleLLMEnd(e,t,i,a,s){let l=r.get(t);if(l?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&nI(n,tQ,nE(r)),function(e,t){let n=[];for(let t of e.flat()){let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}n.length>0&&nI(t,nt,nE(n))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&nI(n,t9,nE(t))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)nP(t,t1,n.promptTokens),nP(t,t2,n.completionTokens),nP(t,t3,n.totalTokens);else if(r){nP(t,t1,r.input_tokens),nP(t,t2,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);o>0&&nP(t,t3,o),void 0!==r.cache_creation_input_tokens&&nP(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&nP(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,o=e.generations?.[0]?.[0],i=o?.message,a=r?.model_name??r?.model??i?.response_metadata?.model_name;a&&nI(n,tY,a);let s=r?.id??i?.id;s&&nI(n,t0,s);let l=r?.stop_reason??i?.response_metadata?.finish_reason;return l&&nI(n,"gen_ai.response.stop_reason",nE(l)),n}(e,n);r&&l.setAttributes(r),o(t)}},handleLLMError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:tU.jt,message:"llm_error"}),o(t)),(0,tx.Tb)(e,{mechanism:{handled:!1,type:`${nu}.llm_error_handler`}})},handleChainStart(e,n,o,i){let a=e.name||"unknown_chain",s={[tw.S3]:"auto.ai.langchain","langchain.chain.name":a};t&&(s["langchain.chain.inputs"]=JSON.stringify(n)),(0,tj.V0)({name:`chain ${a}`,op:"gen_ai.invoke_agent",attributes:{...s,[tw.$J]:"gen_ai.invoke_agent"}},e=>(r.set(o,e),e))},handleChainEnd(e,t){let i=r.get(t);i?.isRecording()&&(n&&i.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),o(t))},handleChainError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:tU.jt,message:"chain_error"}),o(t)),(0,tx.Tb)(e,{mechanism:{handled:!1,type:`${nu}.chain_error_handler`}})},handleToolStart(e,n,o,i){let a=e.name||"unknown_tool",s={[tw.S3]:nu,"gen_ai.tool.name":a};t&&(s["gen_ai.tool.input"]=n),(0,tj.V0)({name:`execute_tool ${a}`,op:"gen_ai.execute_tool",attributes:{...s,[tw.$J]:"gen_ai.execute_tool"}},e=>(r.set(o,e),e))},handleToolEnd(e,t){let i=r.get(t);i?.isRecording()&&(n&&i.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),o(t))},handleToolError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:tU.jt,message:"tool_error"}),o(t)),(0,tx.Tb)(e,{mechanism:{handled:!1,type:`${nu}.tool_error_handler`}})},copy:()=>i,toJSON:()=>
471({lc:1,type:"not_implemented",id:i.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:i.lc_id})};return i}var nj=n(75019),nL=n(11489),nD=n(64515),nW=n(70524);let nH=(0,w._I)((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){let{maxValueLength:i}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!(0,tO.VZ)(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,a=function e(t,n,r){try{let o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(let e of Object.keys(t)){if(-1!==o.indexOf(e))continue;let n=t[e];i[e]=(0,tO.VZ)(n)||"string"==typeof n?r?(0,tI.$G)(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause){if((0,tO.VZ)(t.cause)){let n=t.cause.name||t.cause.constructor.name;i.cause={[n]:e(t.cause,!1,r)}}else i.cause=t.cause}if("function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];i[t]=(0,tO.VZ)(n)?n.toString():n}}return i}catch(e){tE.X&&k.fF.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,o);if(a){let t={...e.contexts},r=(0,tM.Fv)(a,n);return(0,tO.PO)(r)&&((0,nW.xp)(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}});var nU=n(78416);let nB="flag.evaluation.";function nq(e){let t=(0,y.nZ)().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function nX(e,t,n=100){let r=(0,y.nZ)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r){tE.X&&k.fF.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function nJ(e,t,n=10){if("boolean"!=typeof t)return;let r=(0,nU.HN)();if(!r)return;let o=(0,nU.XU)(r).data;if(`${nB}${e}` in o){r.setAttribute(`${nB}${e}`,t);return}Object.keys(o).filter(e=>e.startsWith(nB)).length<n&&r.setAttribute(`${nB}${e}`,t)}let nG=(0,w._I)(()=>
471({name:"FeatureFlags",processEvent:(e,t,n)=>nq(e),addFeatureFlag(e,t){nX(e,t),nJ(e,t)}}));var nz=n(4177),nV=n(51159),nZ=n(45204);function nK(e,t,n,r){!e||"object"!=typeof e||"type"in e&&"string"==typeof e.type&&"error"===e.type&&(r.setStatus({code:tU.jt,message:e.error?.type??"internal_error"}),(0,tx.Tb)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),1)||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let o=r.inputJsonParts.join("");try{n=o?JSON.parse(o):{}}catch{n={__unparsed:o}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t))}async function*nQ(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let o of e)nK(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[t0]:r.responseId}),r.responseModel&&t.setAttributes({[tY]:r.responseModel}),nC(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ne]:!0}),r.finishReasons.length>0&&t.setAttributes({[tQ]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[t9]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[nt]:JSON.stringify(r.toolCalls)}),t.end()}}let nY=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function n0(e,t){(function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:n,filteredMessages:r}=nT(t);n&&e.setAttributes({[t7]:n});let o=Array.isArray(r)?r.length:1;e.setAttributes({[t6]:nA(r),[t4]:o})})(e,function(e){let{system:t,messages:n,input:r}=e,o="string"==typeof t?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:null!=r?[r]:void 0,a=Array.isArray(n)?n:null!=n?[n]:[];return[...o,...i??a]}(t)),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function n1(e,t,n){throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:tU.jt,message:"internal_error"}),t.end()),e}function n2(e,t){let n=!!y.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get(t,o){let i=t[o],a=nx(n,String(o));return"function"==typeof i&&nY.includes(a)?new Proxy(i,{apply(e,n,o){let s=function(e,t){let n={[tB]:"anthropic",[t5]:nk(t),[tw.S3]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[t8]=JSON.stringify(t.tools)),n[tq]=t.model??"unknown","temperature"in t&&(n[tJ]=t.temperature),"top_p"in t&&(n[tZ]=t.top_p),"stream"in t&&(n[tX]=t.stream),"top_k"in t&&(n[tK]=t.top_k),"frequency_penalty"in t&&(n[tz]=t.frequency_penalty),"max_tokens"in t&&(n[tG]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?n[tq]=e[0]:n[tq]="unknown";return n}(o,a),l=s[tq]??"unknown",u=nk(a),c="object"==typeof o[0]?o[0]:void 0,p=!!c?.stream,f="messages.stream"===a;return p||f?function(e,t,n,r,o,i,a,s,l,u,c){let p=o[tq]??"unknown",f={name:`${i} ${p}
471 stream-response`,op:nS(a),attributes:o};return u&&!c?(0,tj.V0)(f,async t=>{try{l.recordInputs&&s&&n0(t,s);let o=await e.apply(n,r);return nQ(o,t,l.recordOutputs??!1)}catch(e){return n1(e,t,a)}}):(0,tj.V0)(f,e=>{try{l.recordInputs&&s&&n0(e,s);let o=t.apply(n,r);return function(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{nK(e,r,n,t)}),e.on("message",()=>{t.isRecording()&&(r.responseId&&t.setAttributes({[t0]:r.responseId}),r.responseModel&&t.setAttributes({[tY]:r.responseModel}),nC(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ne]:!0}),r.finishReasons.length>0&&t.setAttributes({[tQ]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[t9]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[nt]:JSON.stringify(r.toolCalls)}),t.end())}),e.on("error",e=>{(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:tU.jt,message:"stream_error"}),t.end())}),e}(o,e,l.recordOutputs??!1)}catch(t){return n1(t,e,a)}})}(i,e,t,o,s,u,a,c,r,p,f):(0,tj.GK)({name:`${u} ${l}`,op:nS(a),attributes:s},n=>(r.recordInputs&&c&&n0(n,c),(0,nZ.i)(()=>e.apply(t,o),e=>{(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:a}}})},()=>{},e=>(function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type){t.error&&(e.setStatus({code:tU.jt,message:t.error.type||"internal_error"}),(0,tx.Tb)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));return}n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[t9]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[nt]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[t9]:t.completion}),"input_tokens"in t&&e.setAttributes({[t9]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[t0]:t.id,[tY]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[nl]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[nl]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&nC(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(n,e,r.recordOutputs))))}}):"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,a,r):i}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let n3=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],n5="chats.create";async function*n4(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let o of e)!o||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:tU.jt,message:`Content blocked: ${e}`}),(0,tx.Tb)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(o,t)||(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);let n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(o,r),function(e,t,n){for(let r of(Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason),r?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}(o,r,n)),yield o}finally{let e={[ne]:!0};r.responseId&&(e[t0]=r.responseId),r.responseModel&&(e[tY]=r.responseModel),void 0!==r.promptTokens&&(e[t1]=r.promptTokens),void 0!==r.completionTokens&&(e[t2]=r.completionTokens),void 0!==r.totalTokens&&(e[t3]=r.totalTokens),r.finishReasons.length&&(e[tQ]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(e[t9]=r.responseTexts.join("")),n&&r.toolCalls.length&&(e[nt]=JSON.stringify(r.toolCalls)),t.setAttributes(e),t.end()}}function n6(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>n6(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function n7(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function n9(e,t){let n=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...n6(t.config.systemInstruction,"system")),"history"in t&&n.push(...n6(t.history,"user")),"contents"in t&&n.push(...n6(t.contents,"user")),"message"in t&&n.push(...n6(t.message,"user")),Array.isArray(n)&&n.length){let{systemInstructions:t,filteredMessages:r}=nT(n);t&&e.setAttribute(t7,t);let o=Array.isArray(r)?r.length:0;e.setAttributes({[t4]:o,[t6]:JSON.stringify(nw(r))})}}function n8(e,t,n,r){let o=t===n5;return new Proxy(e,{apply(e,i,a){let s=a[0],l=function(e,t,n){let r={[tB]:"google_genai",[t5]:nk(e),[tw.S3]:"auto.ai.google_genai"};if(t){if(r[tq]=n7(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e=t.config;if(Object.assign(r,function(e){let t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[tJ]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[tZ]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[tK]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[tG]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[tz]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[tV]=e.presencePenalty
471),t}(e)),"tools"in e&&Array.isArray(e.tools)){let t=e.tools.flatMap(e=>e.functionDeclarations);r[t8]=JSON.stringify(t)}}}else r[tq]=n7({},n);return r}(t,s,n),u=l[tq]??"unknown",c=nk(t);return t.includes("Stream")?(0,tj.V0)({name:`${c} ${u} stream-response`,op:nS(t),attributes:l},async o=>{try{r.recordInputs&&s&&n9(o,s);let t=await e.apply(n,a);return n4(t,o,!!r.recordOutputs)}catch(e){throw o.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),o.end(),e}}):(0,tj.GK)({name:o?`${c} ${u} create`:`${c} ${u}`,op:nS(t),attributes:l},i=>(r.recordInputs&&s&&n9(i,s),(0,nZ.i)(()=>e.apply(n,a),e=>{(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{o||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(tY,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[t1]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[t2]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[t3]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[t9]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[nt]:JSON.stringify(n)})}}}(i,e,r.recordOutputs)})))}})}function re(e,t){let n=!!y.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get:(t,o,i)=>{let a=Reflect.get(t,o,i),s=nx(n,String(o));if("function"==typeof a&&function(e){if(n3.includes(e))return!0;let t=e.split(".").pop();return n3.includes(t)}(s)){if(s===n5){let n=n8(a,s,t,r);return function(...t){let o=n(...t);return o&&"object"==typeof o?e(o,"chat",r):o}}return n8(a,s,t,r)}return"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,s,r):a}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let rt="auto.ai.langgraph";function rn(e,t){var n,r;return e.compile=(n=e.compile.bind(e),r=t||{},new Proxy(n,{apply:(e,t,n)=>(0,tj.GK)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[tw.S3]:rt,[tw.$J]:"gen_ai.create_agent",[t5]:"create_agent"}},o=>{try{var i;let a=Reflect.apply(e,t,n),s=n.length>0?n[0]:{};s?.name&&"string"==typeof s.name&&(o.setAttribute(nn,s.name),o.updateName(`create_agent ${s.name}`));let l=a.invoke;return l&&"function"==typeof l&&(a.invoke=(i=l.bind(a),new Proxy(i,{apply:(e,t,n)=>(0,tj.GK)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[tw.S3]:rt,[tw.$J]:"gen_ai.invoke_agent",[t5]:"invoke_agent"}},async o=>{try{let i=s?.name;i&&"string"==typeof i&&(o.setAttribute("gen_ai.pipeline.name",i),o.setAttribute(nn,i),o.updateName(`invoke_agent ${i}`));let l=n.length>1?n[1]:void 0,u=l?.configurable,c=u?.thread_id;c&&"string"==typeof c&&o.setAttribute(nr,c);let p=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(a);p&&o.setAttribute(t8,JSON.stringify(p));let f=r.recordInputs,d=r.recordOutputs,h=n.length>0?n[0].messages??[]:[];if(h&&f){let e=nN(h),{systemInstructions:t,filteredMessages:n}=nT(e);t&&o.setAttribute(t7,t);let r=nw(n),i=Array.isArray(n)?n.length:0;o.setAttributes({[t6]:JSON.stringify(r),[t4]:i})}let g=await Reflect.apply(e,t,n);return d&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let o=t?.length??0,i=r.length>o?r.slice(o):[];if(0===i.length)return;let a=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(i);a&&e.setAttribute(nt,JSON.stringify(a));let s=nN(i);e.setAttribute(t9,JSON.stringify(s));let l=0,u=0,c=0;for(let t of i){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let o=e.usage_metadata;return"number"==typeof o.input_tokens&&(t=o.input_tokens),"number"==typeof o.output_tokens&&(n=o.output_tokens),"number"==typeof o.total_tokens&&(r=o.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let o=e.response_metadata;if(o.tokenUsage&&"object"==typeof o.tokenUsage){let e=o.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);l+=n.inputTokens,u+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(tY,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(tQ,[n.finish_reason])}}(e,t)}l>0&&e.setAttribute(t1,l),u>0&&e.setAttribute(t2,u),c>0&&e.setAttribute(t3,c)}(o,h??null,g),g}catch(e){throw o.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}))),a}catch(e){throw o.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),e}
471let rr=["responses.create","chat.completions.create","embeddings.create","conversations.create"],ro=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function ri(e){return e.includes("chat.completions")||e.includes("responses")?ns.CHAT:e.includes("embeddings")?ns.EMBEDDINGS:e.includes("conversations")?ns.CHAT:e.split(".").pop()||"unknown"}function ra(e,t,n,r){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[t1]:t}),void 0!==n&&e.setAttributes({"openai.usage.completion_tokens":n,[t2]:n}),void 0!==r&&e.setAttributes({[t3]:r})}function rs(e,t,n,r){e.setAttributes({[no]:t,[t0]:t}),e.setAttributes({[ni]:n,[tY]:n}),e.setAttributes({[na]:new Date(1e3*r).toISOString()})}async function*rl(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let o of e)null!==o&&"object"==typeof o&&"object"in o&&"chat.completion.chunk"===o.object?function(e,t,n){for(let r of(t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens),e.choices??[]))n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function){if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}}(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}(o,r,n):null!==o&&"object"==typeof o&&"type"in o&&"string"==typeof o.type&&o.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e)){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!ro.includes(e.type)){t.eventTypes.push(e.type);return}if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta)){t.responseTexts.push(e.delta);return}if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,t.responseTimestamp=r.created_at??t.responseTimestamp,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(o,r,n,t),yield o}finally{rs(t,r.responseId,r.responseModel,r.responseTimestamp),ra(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[ne]:!0}),r.finishReasons.length&&t.setAttributes({[tQ]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[t9]:r.responseTexts.join("")});let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];e.length>0&&t.setAttributes({[nt]:JSON.stringify(e)}),t.end()}}function ru(e,t,n){if(n===ns.EMBEDDINGS&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute("gen_ai.embeddings.input","string"==typeof n?n:JSON.stringify(n));return}let r="input"in t?t.input:"messages"in t?t.messages:void 0;if(!r||Array.isArray(r)&&0===r.length)return;let{systemInstructions:o,filteredMessages:i}=nT(r);o&&e.setAttribute(t7,o);let a=nA(i);e.setAttribute(t6,a),Array.isArray(i)?e.setAttribute(t4,i.length):e.setAttribute(t4,1)}async function rc(e,t){let n=e.catch(e=>{throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai"}}),e}),r=await t,o=await n;return o&&"object"==typeof o&&"data"in o?{...o,data:r}:r}function rp(e,t){return(0,tO.J8)(e)?new Proxy(e,{get(e,n){let r=n in Promise.prototype||n===Symbol.toStringTag?t:e,o=Reflect.get(r,n);return"withResponse"===n&&"function"==typeof o?function(){return rc(o.call(e),t)}:"function"==typeof o?o.bind(r):o}}):t}function rf(e,t){let n=!!y.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get(t,o){var i;let a=t[o],s=(i=String(o),n?`${n}.${i}`:i);return"function"==typeof a&&rr.includes(s)?function(...e){let n;
471let o=function(e,t){let n={[tB]:"openai",[t5]:ri(t),[tw.S3]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0],r=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){tE.X&&k.fF.error("Failed to serialize OpenAI tools:",e);return}}(t);r&&(n[t8]=r),Object.assign(n,function(e){let t={[tq]:e.model??"unknown"};"temperature"in e&&(t[tJ]=e.temperature),"top_p"in e&&(t[tZ]=e.top_p),"frequency_penalty"in e&&(t[tz]=e.frequency_penalty),"presence_penalty"in e&&(t[tV]=e.presence_penalty),"stream"in e&&(t[tX]=e.stream),"encoding_format"in e&&(t["gen_ai.request.encoding_format"]=e.encoding_format),"dimensions"in e&&(t["gen_ai.request.dimensions"]=e.dimensions);let n="conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0;return n&&(t[nr]=n),t}(t))}else n[tq]="unknown";return n}(e,s),i=o[tq]||"unknown",l=ri(s),u=e[0],c=u&&"object"==typeof u&&!0===u.stream,p={name:`${l} ${i}${c?" stream-response":""}`,op:`gen_ai.${ri(s)}`,attributes:o};if(c){let n;let o=(0,tj.V0)(p,o=>(n=a.apply(t,e),r.recordInputs&&u&&ru(o,u,l),(async()=>{try{let e=await n;return rl(e,o,r.recordOutputs??!1)}catch(e){throw o.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:s}}}),o.end(),e}})()));return rp(n,o)}let f=(0,tj.GK)(p,o=>(n=a.apply(t,e),r.recordInputs&&u&&ru(o,u,l),n.then(e=>((function(e,t,n){if(t&&"object"==typeof t){if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){if(function(e,t,n){if(rs(e,t.id,t.model,t.created),t.usage&&ra(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let r=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(r.length>0&&e.setAttributes({[tQ]:JSON.stringify(r)}),n){let n=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&e.setAttributes({[nt]:JSON.stringify(n)})}}}(e,t,n),n&&t.choices?.length){let n=t.choices.map(e=>e.message?.content||"");e.setAttributes({[t9]:JSON.stringify(n)})}}else null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object?(function(e,t,n){if(rs(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[tQ]:JSON.stringify([t.status])}),t.usage&&ra(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n&&Array.isArray(t.output)&&t.output.length>0){let n=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);n.length>0&&e.setAttributes({[nt]:JSON.stringify(n)})}}(e,t,n),n&&t.output_text&&e.setAttributes({[t9]:t.output_text})):null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")?(e.setAttributes({[ni]:t.model,[tY]:t.model}),t.usage&&ra(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)):null!==t&&"object"==typeof t&&"object"in t&&"conversation"===t.object&&function(e,t){let{id:n,created_at:r}=t;e.setAttributes({[no]:n,[t0]:n,[nr]:n}),r&&e.setAttributes({[na]:new Date(1e3*r).toISOString()})}(e,t)}})(o,e,r.recordOutputs),e),e=>{throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:s}}}),e}
471)));return rp(n,f)}:"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,s,r):a}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let rd=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],rh=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],rg={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},rm=["select","insert","upsert","update","delete"];function r_(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function ry(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function rb(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>(0,tj.GK)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[tw.S3]:"auto.db.supabase",[tw.$J]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:tU.jt}),(0,tx.Tb)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:tU.OP}),e.end(),t)).catch(t=>{throw e.setStatus({code:tU.jt}),e.end(),(0,tx.Tb)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}let rv=e=>{var t;if(!e){tE.X&&k.fF.warn("Supabase integration was not installed because no Supabase client was provided.");return}ry((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){let r=Reflect.apply(e,t,n);return function(e){for(let t of rm)ry(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){let o=Reflect.apply(e,n,r),i=o.constructor;return tE.X&&k.fF.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),ry(i.prototype.then)||(i.prototype.then=new Proxy(i.prototype.then,{apply(e,t,n){let r=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!rm.includes(r)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,n);let o=t.url.pathname.split("/"),i=o.length>0?o[o.length-1]:"",a=[];for(let[e,n]of t.url.searchParams.entries())a.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...o]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&rg[r]||"filter",`${n}(${e}, ${o.join(".")})`}(e,n));let s=Object.create(null);if((0,tO.PO)(t.body))for(let[e,n]of Object.entries(t.body))s[e]=n;let l=`${"select"===r?"":`${r}${s?"(...) ":""}`}${a.join(" ")} from(${i})`,u={"db.table":i,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":r,[tw.S3]:"auto.db.supabase",[tw.$J]:"db"};return a.length&&(u["db.query"]=a),Object.keys(s).length&&(u["db.body"]=s),(0,tj.GK)({name:l,attributes:u},o=>Reflect.apply(e,t,[]).then(e=>{if(o&&(e&&"object"==typeof e&&"status"in e&&(0,tU.Q0)(o,e.status||500),o.end()),e.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};a.length&&(n.query=a),Object.keys(s).length&&(n.body=s),(0,tx.Tb)(t,e=>(e.addEventProcessor(e=>((0,tA.EG)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let t={type:"supabase",category:`db.${r}`,message:l},n={};return a.length&&(n.query=a),Object.keys(s).length&&(n.body=s),Object.keys(n).length&&(t.data=n),(0,tS.n)(t),e},e=>{throw o&&((0,tU.Q0)(o,500),o.end()),e}).then(...n))}}),r_(i.prototype.then)),o}}
471),r_(e.prototype[t]))}(r.constructor),r}}),r_(t.prototype.from)),function(e){let t=e.auth;if(!(!t||ry(e.auth))){for(let n of rd){let r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=rb(r))}for(let n of rh){let r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=rb(r,!0))}r_(e.auth)}}(e)},rw=e=>({setupOnce(){rv(e)},name:"Supabase"}),rk=(0,w._I)(e=>rw(e.supabaseClient));function rS(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}let rx=rS;function rC(e,t,n,r,o){(0,tR.hQ)({level:e,message:t,attributes:n,severityNumber:o},r)}function rA(e,t,{scope:n}={}){rC("trace",e,t,n)}function rT(e,t,{scope:n}={}){rC("debug",e,t,n)}function rI(e,t,{scope:n}={}){rC("info",e,t,n)}function rP(e,t,{scope:n}={}){rC("warn",e,t,n)}function rE(e,t,{scope:n}={}){rC("error",e,t,n)}function rR(e,t,{scope:n}={}){rC("fatal",e,t,n)}var rO=n(82115);function rM(e,t,n,r){(0,rO.iw)({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function rN(e,t=1,n){rM("counter",e,t,n)}function rF(e,t,n){rM("gauge",e,t,n)}function r$(e,t,n){rM("distribution",e,t,n)}let rj=new Map,rL=new Set;function rD(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{var n;if(!t.filename||t.module_metadata)return;let r=(n=t.filename,function(e){if(_.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(_.GLOBAL_OBJ._sentryModuleMetadata)){let n=_.GLOBAL_OBJ._sentryModuleMetadata[t];if(!rL.has(t)){for(let r of(rL.add(t),e(t).reverse()))if(r.filename){rj.set(r.filename,n);break}}}}(e),rj.get(n));r&&(t.module_metadata=r)})})}function rW(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let rH=(0,w._I)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,t_.gv)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(rW(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||rD(e.getOptions().stackParser,t)})}}));var rU=n(74845),rB=n(39759),rq=n(41162),rX=n(93665),rJ=n(6262),rG=n(48643);let rz=(0,w._I)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,t_.gv)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(rW(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||rD(e.getOptions().stackParser,t)})},processEvent(t){let n=function(e,t){let n=(0,rG.Fr)(e);if(n)return n.filter((e,n)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(rK))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(rZ))return!0}return!1}(e,n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(rV)).map(e=>e.slice(rV.length)):[])}(t,e.ignoreSentryInternalFrames);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}})),rV="_sentryBundlerPluginAppKey:",rZ="Attempt to invoke user-land function",rK="fn.apply(this, wrappedArguments)";function rQ(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}}let rY=(0,w._I)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var o;if(!n.exception?.values||!r.originalException||(o=r.originalException,!((0,tO.VZ)(o)&&"ZodError"===o.name&&Array.isArray(o.issues)))||0===r.originalException.issues.length)return n;try{let o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(rQ);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
471ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,tI.$G)(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
472${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}});var r0=n(24728),r1=n(68303),r2=n(71427);let r3={startProfiler:function(){let e=(0,y.s3)();if(!e){r2.X&&k.fF.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){r2.X&&k.fF.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,y.s3)();if(!e){r2.X&&k.fF.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){r2.X&&k.fF.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};var r5=n(55961),r4=n(92159);function r6(e,{metadata:t,tunnel:n,dsn:r}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,tm.RA)(r)}};return(0,t_.Jd)(o,[[{type:"user_report"},e]])}var r7=n(24182);function r9(e={}){let t=tu.m9.document,n=t?.head||t?.body;if(!n){r2.X&&k.fF.error("[showReportDialog] Global document not defined");return}let r=(0,y.nZ)(),o=(0,y.s3)(),i=o?.getDsn();if(!i){r2.X&&k.fF.error("[showReportDialog] DSN not configured");return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,tx.eW)()},s=tu.m9.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=(0,tg.h)(i,a);let{onLoad:l,onClose:u}=a;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{tu.m9.removeEventListener("message",e)}};tu.m9.addEventListener("message",e)}n.appendChild(s)}var r8=n(12169),oe=n(64926),ot=n(87055),on=n(47621),or=n(26083),oo=n(78810),oi=n(35602);let oa=_.GLOBAL_OBJ,os=new WeakMap,ol=(0,w._I)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(os.has((0,y.s3)()))for(let t of e)(0,y.$e)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="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;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,tx.uT)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){(0,oi.zb)()&&new oa.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){os.set(e,!0)}}});var ou=n(81298),oc=n(6259),op=n(53919);let of=(0,w._I)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){(0,oi.t$)()&&(0,ou.Uf)(n=>{if((0,y.s3)()!==e)return;let{response:r,args:o,error:i,virtualError:a}=n,[s,l]=o;r&&function(e,t,n,r,o){if(og(e,n.status,n.url)){let e,i,a,s;let l=!r&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,r);o_()&&([e,a]=od("Cookie",l),[i,s]=od("Set-Cookie",n));let u=om({url:l.url,method:l.method,status:n.status,requestHeaders:e,responseHeaders:i,requestCookies:a,responseCookies:s,error:o,type:"fetch"});(0,tx.eN)(u)}}(t,s,r,l,i||a)},!1),"XMLHttpRequest"in _.GLOBAL_OBJ&&(0,op.UK)(n=>{if((0,y.s3)()!==e)return;let{error:r,virtualError:o}=n,i=n.xhr,a=i[op.xU];if(!a)return;let{method:s,request_headers:l}=a;try{!function(e,t,n,r,o){if(og(e,t.status,t.responseURL)){let e,i,a;if(o_()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=oh(e))}catch{}try{a=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>
472{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch{}e=r}let s=om({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:a,responseCookies:i,error:o,type:"xhr"});(0,tx.eN)(s)}}(t,i,s,l,r||o)}catch(e){r2.X&&k.fF.warn("Error while extracting response event form XHR response",e)}})}}});function od(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=oh(t))}catch{}return[r,n]}function oh(e){return e.split("; ").reduce((e,t)=>{let[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function og(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))&&!(0,oc.W)(n,(0,y.s3)())}function om(e){let t=(0,y.s3)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},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(0,tA.EG)(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function o_(){let e=(0,y.s3)();return!!e&&!!e.getOptions().sendDefaultPii}var oy=n(321);let ob=_.GLOBAL_OBJ,ov=(0,w._I)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let n=ob.document,r=ob.location&&(0,oy.rt)(ob.location.href);if(!n||!r)return e;let o=e.exception?.values;if(!o?.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let a=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>(e.filename===r&&e.lineno&&a.length&&(0,tA.go)(a,e,t),e)))}),e})(e,t)}});var ow=n(17309);function ok(e){if(oA(e))return`persisted ${e.operationName}`;if(oC(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function oS(e){let t;if("xhr"in e){let n=e.xhr[op.xU];t=n&&(0,ow.SI)(n.body)[0]}else{let n=(0,ow.dn)(e.input);t=(0,ow.SI)(n)[0]}return t}function ox(e){return"object"==typeof e&&null!==e}function oC(e){return ox(e)&&"string"==typeof e.query}function oA(e){return ox(e)&&"string"==typeof e.operationName&&ox(e.extensions)&&ox(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function oT(e){try{let t=JSON.parse(e);if(oC(t)||oA(t))return t;return}catch{return}}let oI=(0,w._I)(e=>({name:"GraphQLClient",setup(t){(function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{let r=(0,nU.XU)(e).data||{};if("http.client"!==r[tw.$J])return;let o=r[tw.fv]||r["http.url"],i=r[tw.qE]||r["http.method"];if(!(0,tO.HD)(o)||!(0,tO.HD)(i))return;let{endpoints:a}=t,s=(0,tI.U0)(o,a),l=oS(n);if(s&&l){let t=oT(l);if(t){let n=ok(t);e.updateName(`${i} ${o} (${n})`),oC(t)&&e.setAttribute("graphql.document",t.query),oA(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})})(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{let{category:r,type:o,data:i}=e;if("http"===o&&("fetch"===r||"xhr"===r)){let e=i?.url,{endpoints:r}=t,o=(0,tI.U0)(e,r),a=oS(n);if(o&&i&&a){let e=oT(a);if(!i.graphql&&e){let t=ok(e);i["graphql.operation"]=t,oC(e)&&(i["graphql.document"]=e.query),oA(e)&&(i["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}));var oP=n(48401),oE=Object.defineProperty,oR=(e,t,n)=>t in e?oE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
472):e[t]=n,oO=(e,t,n)=>oR(e,"symbol"!=typeof t?t+"":t,n);class oM{constructor(){oO(this,"idNodeMap",new Map),oO(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(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 oN(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:oN(e.parentNode,t,n,r+1)}function oF(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{return!1}}}let o$="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.",oj={map:{},getId:()=>(console.error(o$),-1),getNode:()=>(console.error(o$),null),removeNodeFromMap(){console.error(o$)},has:()=>(console.error(o$),!1),reset(){console.error(o$)}};function oL(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){oq(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>oL(e,t,i||{},!0)}function oD(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function oW(e,t,n,r,o){if(!e)return!1;let i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;let a=oF(t,n);if(!o){let e=r&&i.matches(r);return a(i)&&!e}let s=oN(i,a),l=-1;return!(s<0)&&(r&&(l=oN(i,oF(null,r))),s>-1&&l<0||s<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(oj=new Proxy(oj,{get:(e,t,n)=>("map"===t&&console.error(o$),Reflect.get(e,t,n))})),Date.now().toString();let oH={};function oU(e){let t=oH[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 o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return oH[e]=r.bind(window)}function oB(...e){return oU("requestAnimationFrame")(...e)}function oq(...e){return oU("setTimeout")(...e)}var oX=((p=oX||{})[p["2D"]=0]="2D",p[p.WebGL=1]="WebGL",p[p.WebGL2=2]="WebGL2",p);let oJ=e=>r?(...t)=>{try{return e(...t)}catch(e){if(r&&!0===r(e))return()=>{};throw e}}:e;for(var oG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oz="undefined"==typeof Uint8Array?[]:new Uint8Array(256),oV=0;oV<oG.length;oV++)oz[oG.charCodeAt(oV)]=oV;var oZ=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=oG[n[t]>>2]+oG[(3&n[t])<<4|n[t+1]>>4]+oG[(15&n[t+1])<<2|n[t+2]>>6]+oG[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o};let oK=new Map,oQ=(e,t,n)=>{let r;if(!e||!(o0(e,t)||"object"==typeof e))return;let o=e.constructor.name,i=((r=oK.get(n))||(r=new Map,oK.set(n,r)),r.has(o)||r.set(o,[]),r.get(o)),a=i.indexOf(e);return -1===a&&(a=i.length,i.push(e)),a},oY=(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:oZ(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(o0(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:oQ(t,n,r)};return t}
472)(e,t,n)),o0=(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 o1(e,t,n,r,o){let i=[];try{let a=oD(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){if(!oW(this,t,n,r,!0)){let e="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=e),o&&["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,[i,...a])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function o2(e,t,n,r,o,i,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 u=oD(e,a,function(e){return function(...l){let u=e.apply(this,l);if(oQ(u,s,this),"tagName"in this.canvas&&!oW(this.canvas,r,o,i,!0)){let e=oY(l,s,this),r={type:t,property:a,args:e};n(this.canvas,r)}return u}});l.push(u)}catch{let r=oL(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(r)}return l}class o3{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.lastSnapshotTime=0,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{enableManualSnapshot:t,sampling:n="all",win:o,recordCanvas:i,errorHandler:a}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&(r=a),(i&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(o),t)return;oJ(()=>{i&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}oJ(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){let t=o1(e,n,r,o,!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}snapshot(e,t){if(t?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,e);return}oB(t=>this.takeSnapshot(t,!0,e))}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;
472if("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:o,width:i,height:a}=t;this.mutationCb({id:n,type:oX["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=oB(t)};e=oB(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let o=o1(e,t,n,r,!1),i=function(e,t,n,r,o){let i=[];for(let a of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;let s=oD(t.CanvasRenderingContext2D.prototype,a,function(i){return function(...s){return oW(this.canvas,n,r,o,!0)||oq(()=>{let n=oY(s,t,this);e(this.canvas,{type:oX["2D"],property:a,args:n})},0),i.apply(this,s)}});i.push(s)}catch{let n=oL(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:oX["2D"],property:a,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),a=function(e,t,n,r,o,i){let a=[];return a.push(...o2(t.WebGLRenderingContext.prototype,oX.WebGL,e,n,r,o,i,t)),void 0!==t.WebGL2RenderingContext&&a.push(...o2(t.WebGL2RenderingContext.prototype,oX.WebGL2,e,n,r,o,i,t)),()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}getCanvasElements(e,t,n){let r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{oW(o,e,t,n,!0)||r.push(o)})};for(let e of this.windows){let t;let n=e.deref();try{t=n&&n.document}catch{}t&&o(t)}for(let e of this.shadowDoms){let t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:o,blockSelector:i,unblockSelector:a,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(o,i,a)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{oJ(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){oB(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,oB(e)};oB(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),oB(()=>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:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new oM,(f=d||(d={}))[f.NotStarted=0]="NotStarted",f[f.Running=1]="Running",f[f.Stopped=2]="Stopped";let o5={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}}},o4=(0,w._I)((e={})=>{let t,n;let[r,o]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,o?Math.min(o,1280):1280]},a=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:o}=i;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let i=new o3({...e,enableManualSnapshot:r,maxCanvasSize:o,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=i,n(i),i},...o5[e]||o5.medium}},async snapshot(e,n){(t||await a).snapshot(e,n)}}});var o6=n(35375),o7=n(3492);function o9(e=(0,y.s3)()){e?.emit("endPageloadSpan")}var o8=n(13201);function ie(e){let t=(0,nU.HN)();if(t===e)return;let n=(0,y.nZ)();e.end=new Proxy(e.end,{apply:(e,r,o)=>((0,o8.D)(n,t),Reflect.apply(e,r,o))}),(0,o8.D)(n,e)}var it=n(50297),ir=n(88207);function io(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function ii(e){return io(e.getAllKeys())}function ia(e){let t;function n(){return void 0==t&&(t=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=io(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{var r,o;let i=await (0,t_.V$)(t);await (r=n(),o=e.maxQueueSize||30,r(e=>ii(e).then(t=>{if(!(t.length>=o))return e.put(i,Math.max(...t,0)+1),io(e.transaction)})))}catch{}},unshift:async t=>{try{var r,o;let i=await (0,t_.V$)(t);await (r=n(),o=e.maxQueueSize||30,r(e=>ii(e).then(t=>{if(!(t.length>=o))return e.put(i,Math.min(...t,0)-1),io(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>ii(e).then(t=>{let n=t[0];if(null!=n)return io(e.get(n)).then(t=>(e.delete(n),io(e.transaction).then(()=>t)))}));if(e)return(0,t_.f4)(e)}catch{}}}}function is(e=r1.f){var t;return t=function(e){function t(...e){tE.X&&k.fF.log("[Offline]:",...e)}return n=>{let r;let o=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let i=n.createStore(n),a=5e3;function s(e){r&&clearTimeout(r),r=(0,ir.B)(setTimeout(async()=>{r=void 0;let e=await i.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))}function l(){r||(s(a),a=Math.min(2*a,36e5))}async function u(e,r=!1){if(!r&&(0,t_.R)(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};
472try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await o.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=(0,it.JY)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),a=5e3,t}catch(o){var u;if(await (u=a,!(0,t_.R)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,o,u))))return r?await i.unshift(e):await i.push(e),l(),t("Error sending. Event queued.",o),{};throw o}}return n.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(a=5e3,s(100)),o.flush(e))}}}(e),e=>{let n=t({...e,createStore:ia});return tu.m9.addEventListener("online",async e=>{await n.flush()}),n}}var il=n(21990),iu=n(64150),ic=n(42219),ip=n(43242);let id="window"in _.GLOBAL_OBJ&&_.GLOBAL_OBJ.window===_.GLOBAL_OBJ&&"undefined"==typeof importScripts,ih=String(0),ig=id?"main":"worker",im=tu.m9.navigator,i_="",iy="",ib="",iv=im?.userAgent||"",iw="",ik=im?.language||im?.languages?.[0]||"",iS=im?.userAgentData;function ix(e){return"pageload"===(0,nU.XU)(e).op}function iC(e){let t=(0,y.s3)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,ip.v)(r,e):[]}function iA(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(r2.X&&k.fF.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)||(r2.X&&k.fF.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof iS&&null!==iS&&"getHighEntropyValues"in iS&&iS.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(i_=e.platform||"",ib=e.architecture||"",iw=e.model||"",iy=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];iv=`${t.brand} ${t.version}`}}).catch(e=>void 0);let iT=!1;function iI(){let e=tu.m9.Profiler;if("function"!=typeof e){r2.X&&k.fF.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){r2.X&&(k.fF.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),k.fF.log("[Profiling] Disabling profiling for current user session.")),iT=!0}}function iP(e){if(iT)return r2.X&&k.fF.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return r2.X&&k.fF.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,y.s3)(),n=t?.getOptions();if(!n)return r2.X&&k.fF.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return iA(r)?r?!!(!0===r||Math.random()<r)||(r2.X&&k.fF.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(r2.X&&k.fF.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(r2.X&&k.fF.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function iE(e){return void 0!==e.profilesSampleRate}let iR=new Map;function iO(e){let t;ix(e)&&(t=1e3*(0,iu.ph)());let n=iI();if(!n)return;r2.X&&k.fF.log(`[Profiling] started profiling span: ${(0,nU.XU)(e).description}`);let r=(0,tA.DM)(),o=null;async function i(){if(e&&n){if(o){r2.X&&k.fF.log("[Profiling] profile for:",(0,nU.XU)(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(a&&(tu.m9.clearTimeout(a),a=void 0),r2.X&&k.fF.log(`[Profiling] stopped profiling of span: ${(0,nU.XU)(e).description}`),!t){r2.X&&k.fF.log(`[Profiling] profiler returned null profile for: ${(0,nU.XU)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}o=t,function(e,t){if(iR.set(e,t),iR.size>30){let e=iR.keys().next().value;void 0!==e&&iR.delete(e)}}(r,t)}).catch(e=>{r2.X&&k.fF.log("[Profiling] error while stopping profiler:",e)})}}(0,y.nZ)().setContext("profile",{profile_id:r,start_timestamp:t});let a=tu.m9.setTimeout(()=>{r2.X&&k.fF.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,nU.XU)(e).description),i()},3e4),s=e.end.bind(e);e.end=function(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}}class iM{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(iT)return r2.X&&k.fF.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return r2.X&&k.fF.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return iA(t)?t?Math.random()<=t:(r2.X&&k.fF.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(r2.X&&k.fF.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());r2.X&&k.fF.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!n&&r2.X&&k.fF.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,tA.DM)(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}
472start(){if("trace"===this._lifecycleMode){r2.X&&k.fF.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){r2.X&&k.fF.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){r2.X&&k.fF.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){r2.X&&k.fF.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){r2.X&&k.fF.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(r2.X&&k.fF.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,r2.X&&k.fF.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,y.lW)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){r2.X&&k.fF.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{r2.X&&k.fF.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,y.lW)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){r2.X&&k.fF.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,nU.Gx)(e))return;if(!e.isRecording()){r2.X&&k.fF.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(r2.X&&k.fF.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;r2.X&&k.fF.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{r2.X&&k.fF.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,y.lW)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=iI();if(!e){r2.X&&k.fF.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{r2.X&&k.fF.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(r2.X&&k.fF.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let o=[],i=r;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=o}let r=(0,iu.Z1)(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,i=o-(r||o),a=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(o+(n.timestamp-i))/1e3;a[t]={stack_id:n.stackId??0,thread_id:ih,timestamp:r}}return{frames:t,stacks:n,samples:a,thread_metadata:{[ih]:{name:ig}}}}(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,tA.DM)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||(0,tA.DM)(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:iC(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);
472if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r){r2.X&&k.fF.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),r2.X&&k.fF.log("[Profiling] Collected browser profile chunk.")}catch(e){r2.X&&k.fF.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,n=(0,t_.HY)(t.getSdkMetadata?.()),r=t.getDsn(),o=t.getOptions().tunnel,i=(0,t_.Jd)({event_id:(0,tA.DM)(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!o&&r&&{dsn:(0,tm.RA)(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{r2.X&&k.fF.error("Error while sending profile chunk envelope:",e)})}}let iN=(0,w._I)(()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new iM;if(iE(t)||t.profileLifecycle||(t.profileLifecycle="manual"),iE(t)&&!t.profilesSampleRate){r2.X&&k.fF.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=(0,nU.HN)(),o=r&&(0,nU.Gx)(r);if(iE(t)&&void 0!==t.profileSessionSampleRate&&r2.X&&k.fF.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),iE(t))o&&ix(o)&&iP(o)&&iO(o),e.on("spanStart",e=>{e===(0,nU.Gx)(e)&&iP(e)&&iO(e)}),e.on("beforeEnvelope",e=>{if(!iR.size)return;let t=function(e){let t=[];return(0,t_.gv)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;let n=[];for(let e of t){var r,o,i,a;let t=e?.contexts,s=t?.profile?.profile_id,l=t?.profile?.start_timestamp;if("string"!=typeof s||!s){r2.X&&k.fF.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let u=function(e){let t=iR.get(e);return t&&iR.delete(e),t}(s);if(!u){r2.X&&k.fF.log(`[Profiling] Could not retrieve profile for span: ${s}`);continue}let c=(r=s,o=l,i=u,a=e,(i.samples.length<2?(r2.X&&k.fF.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!i.frames.length&&(r2.X&&k.fF.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){if("transaction"!==r.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 o=function(e){let t=e.contexts?.trace?.trace_id;return("string"==typeof t&&32!==t.length&&r2.X&&k.fF.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t)?"":t}(r),i="thread_metadata"in n?n:function(e){let t;let n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[ih]:{name:ig}}},o=e.samples[0];if(!o)return r;let i=o.timestamp,a=(0,iu.Z1)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=s-(a||s);return e.samples.forEach((o,a)=>{if(void 0===o.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((o.timestamp+l-i)*1e6).toFixed(0),stack_id:t,thread_id:ih};return}let s=e.stacks[o.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((o.timestamp+l-i)*1e6).toFixed(0),stack_id:n,thread_id:ih};r.stacks[n]=u,r.samples[a]=c,n++}
472),r}(n),a=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,iu.ph)()),s="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,iu.ph)();return{event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||ic.J,runtime:{name:"javascript",version:tu.m9.navigator.userAgent},os:{name:i_,version:iy,build_number:iv},device:{locale:ik,model:iw,manufacturer:iv,architecture:ib,is_emulator:!1},debug_meta:{images:iC(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||(0,tA.DM)(),trace_id:o,active_thread_id:ih,relative_start_ns:"0",relative_end_ns:((s-a)*1e6).toFixed(0)}]}}(r,o,i,a));c&&n.push(c)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,n)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,il.f)(t)){r2.X&&k.fF.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),o&&n.notifyRootSpanActive(o),tu.m9.setTimeout(()=>{let e=(0,nU.HN)(),t=e&&(0,nU.Gx)(e);t&&n.notifyRootSpanActive(t)},0)}}},processEvent:e=>(e?.contexts?.profile&&e.contexts&&(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":ih,"thread.name":ig}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":ih,"thread.name":ig}})),e)}));var iF=n(67444);let i$=(0,w._I)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{r2.X&&k.fF.log("Using Sidecar URL",t)},processEvent:e=>"transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight"))?null:e,afterAllSetup:e=>{(function(e,t){let n=(0,iF.L2)("fetch"),r=0;e.on("beforeEnvelope",e=>{if(r>3){k.fF.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:(0,t_.V$)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,k.fF.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})})(e,t)}}});var ij=n(68734);let iL=(0,w._I)(()=>
472({name:"LaunchDarkly",processEvent:(e,t,n)=>nq(e)}));function iD(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{nX(e,t.value),nJ(e,t.value)}}}let iW=(0,w._I)(()=>({name:"OpenFeature",processEvent:(e,t,n)=>nq(e)}));class iH{after(e,t){nX(t.flagKey,t.value),nJ(t.flagKey,t.value)}error(e,t,n){nX(e.flagKey,e.defaultValue),nJ(e.flagKey,e.defaultValue)}}let iU=(0,w._I)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,nW.hl)(t,"isEnabled",iB)},processEvent:(e,t,n)=>nq(e)}));function iB(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(nX(n,r),nJ(n,r)):r2.X&&k.fF.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}let iq=(0,w._I)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,nW.hl)(t,"isOn",iX),"function"==typeof t.getFeatureValue&&(0,nW.hl)(t,"getFeatureValue",iX)}
472,processEvent:(e,t,n)=>nq(e)}));function iX(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(nX(n,r),nJ(n,r)),r}}let iJ=({growthbookClass:e})=>iq({growthbookClass:e}),iG=(0,w._I)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{nX(e.gate.name,e.gate.value),nJ(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>nq(e)}));async function iz(){let e=(0,y.s3)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await (0,tj.hE)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let iV=(0,w._I)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>iZ(e))},addWorker:e=>iZ(e)}));function iZ(e){e.addEventListener("message",e=>{if(function(e){if(!(0,tO.PO)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return!!((t||n||r||o)&&(!t||(0,tO.PO)(e._sentryDebugIds)||void 0===e._sentryDebugIds)&&(!n||(0,tO.PO)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata)&&(!r||(0,tO.PO)(e._sentryWorkerError))&&(!o||Array.isArray(e._sentryWasmImages)&&e._sentryWasmImages.every(e=>(0,tO.PO)(e)&&"string"==typeof e.code_file)))}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(r2.X&&k.fF.log("Sentry debugId web worker message received",e.data),tu.m9._sentryDebugIds={...e.data._sentryDebugIds,...tu.m9._sentryDebugIds}),e.data._sentryModuleMetadata&&(r2.X&&k.fF.log("Sentry module metadata web worker message received",e.data),tu.m9._sentryModuleMetadata={...e.data._sentryModuleMetadata,...tu.m9._sentryModuleMetadata}),e.data._sentryWasmImages){r2.X&&k.fF.log("Sentry WASM images web worker message received",e.data);let t=tu.m9._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>(0,tO.PO)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));tu.m9._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(r2.X&&k.fF.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,y.s3)();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=(0,tO.pt)(o)?(0,oe.ge)(o):(0,r4.ME)(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),(0,tx.eN)(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),r2.X&&k.fF.log("Captured worker unhandled rejection",o)}(e.data._sentryWorkerError))}})}function iK({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:(0,oe.YO)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),r2.X&&k.fF.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),r2.X&&k.fF.log("[Sentry Worker] Registered worker with unhandled rejection handling")}var iQ=n(2784);function iY(e,{componentStack:t},n){if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(iQ.version)&&(0,tO.VZ)(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(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)}(e,n)}return(0,y.$e)(r=>(r.setContext("react",{componentStack:t}),(0,tx.Tb)(e,n)))}function i0(e){return(t,n)=>{let r=!!e,o=iY(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}}let i1="ui.react.render",i2="ui.react.mount",i3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i5={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i6=Symbol.for("react.forward_ref"),i7=Symbol.for("react.memo"),i9={};function i8(e){if("object"==typeof e&&null!==e&&e.$$typeof===i7)return i4;let t=e.$$typeof;return t&&i9[t]||i3}i9[i6]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i9[i7]=i4;let ae=Object.defineProperty.bind(Object),at=Object.getOwnPropertyNames.bind(Object),an=Object.getOwnPropertySymbols?.bind(Object),ar=Object.getOwnPropertyDescriptor.bind(Object),ao=Object.getPrototypeOf.bind(Object),ai=Object.prototype;
472function aa(e,t,n){if("string"!=typeof t){if(ai){let n=ao(t);n&&n!==ai&&aa(e,n)}let n=at(t);an&&(n=n.concat(an(t)));let r=i8(e),o=i8(t);for(let i of n)if(!i5[i]&&!o?.[i]&&!r?.[i]&&!ar(e,i)){let n=ar(t,i);if(n)try{ae(e,i,n)}catch(e){}}}return e}class as extends iQ.Component{constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=(0,tj.qp)({name:`<${t}>`,onlyIfParent:!0,op:i2,attributes:{[tw.S3]:"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=(0,iu.ph)();this._updateSpan=(0,tj._d)(this._mountSpan,()=>(0,tj.qp)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[tw.S3]:"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=(0,iu.ph)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,nU.XU)(this._mountSpan).timestamp;(0,tj._d)(this._mountSpan,()=>{let r=(0,tj.qp)({onlyIfParent:!0,name:`<${t}>`,op:i1,startTime:n,attributes:{[tw.S3]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function al(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>iQ.createElement(as,{...t,name:n,updateProps:r},iQ.createElement(e,{...r}));return r.displayName=`profiler(${n})`,aa(r,e),r}function au(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=iQ.useState(()=>{if(!t?.disabled)return(0,tj.qp)({name:`<${e}>`,onlyIfParent:!0,op:i2,attributes:{[tw.S3]:"auto.ui.react.profiler","ui.component_name":e}})});iQ.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,nU.XU)(n).timestamp,r=(0,iu.ph)(),o=(0,tj.qp)({name:`<${e}>`,onlyIfParent:!0,op:i1,startTime:t,attributes:{[tw.S3]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(r)}}),[])}Object.assign(as,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let ac={componentStack:null,error:null,eventId:null};class ap extends iQ.Component{constructor(e){super(e),this.state=ac,this._openFallbackReportDialog=!0;let t=(0,y.s3)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&r9({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:o,showDialog:i,dialogOptions:a}=this.props;(0,y.$e)(s=>{r&&r(s,e,n);let l=iY(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});o&&o(e,n,l),i&&(this._lastEventId=l,this._openFallbackReportDialog&&r9({...a,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===ac?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(ac)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?iQ.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return iQ.isValidElement(r)?r:null}}function af(e,t){let n=e.displayName||e.name||"unknown",r=iQ.memo(n=>iQ.createElement(ap,{...t},iQ.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,aa(r,e),r}let ad={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function ah(e){let t={...ad,...e};return e=>(n,r)=>{function o(e){return(n,r)=>{let o=e(n,r),i=(0,y.nZ)(),a=t.actionTransformer(r);null!=a&&(0,tS.n)({category:"redux.action",data:a,type:"info"});let s=t.stateTransformer(o);if(null!=s){let e=(0,y.s3)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,nW.xp)(r,"__sentry_override_normalization_depth__",3+n),i.setContext("state",r)}else i.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(i,o),o}}t.attachReduxState&&(0,y.lW)().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{}return e});let i=e(o(n),r);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(e,t,n){e.apply(t,[o(n[0])])}}),i}}function ag(e){let t=(0,o7.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:i=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),i&&tu.m9.location&&am(r,tu.m9.location,o,(t,n="url")=>{(0,o7.Wo)(e,{name:t,attributes:{[tw.$J]:"pageload",[tw.S3]:"auto.pageload.react.reactrouter_v3",[tw.Zj]:n}})}),a&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&am(r,t,o,(t,n="url")=>{(0,o7.og)(e,{name:t,attributes:{[tw.$J]:"navigation",[tw.S3]:"auto.navigation.react.reactrouter_v3",[tw.Zj]:n}})})})}}}function am(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(o);let i=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?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===i.length||"/*"===i?r(o):r(o=i,"route")})}function a_(e,t={}){let n=(0,o7.E8)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:o=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let i=tu.m9.location;if(r&&i){let n=e.matchRoutes(i.pathname,e.options.parseSearch(i.search),{preload:!1,throwOnError:!1}),r=n[n.length-1],o=r?.routeId!=="__root__"?r:void 0;(0,o7.Wo)(t,{name:o?o.routeId:i.pathname,attributes:{[tw.$J]:"pageload",[tw.S3]:"auto.pageload.react.tanstack_router",[tw.Zj]:o?"route":"url",...ay(o)}})}o&&e.subscribe("onBeforeNavigate",n=>{if(!n.fromLocation||n.toLocation.state===n.fromLocation.state)return;let r=e.matchRoutes(n.toLocation.pathname,n.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],i=o?.routeId!=="__root__"?o:void 0,a=tu.m9.location,s=(0,o7.og)(t,{name:i?i.routeId:a.pathname,attributes:{[tw.$J]:"navigation",[tw.S3]:"auto.navigation.react.tanstack_router",[tw.Zj]:i?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let n=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=n[n.length-1],o=r?.routeId!=="__root__"?r:void 0;o&&(s.updateName(o.routeId),s.setAttribute(tw.Zj,"route"),s.setAttributes(ay(o)))}})})}}}function ay(e){if(!e)return{};let t={};
472return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}function ab(e){let t=(0,o7.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:i=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),aw(e,i,a,n,"reactrouter_v4",r,o)}}}function av(e){let t=(0,o7.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:i=!0,instrumentNavigation:a=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),aw(e,i,a,n,"reactrouter_v5",r,o)}}}function aw(e,t,n,r,o,i=[],a){function s(e){if(0===i.length||!a)return[e,"url"];for(let t of function e(t,n,r,o=[]){return t.some(t=>{let i=t.path?r(n,t):o.length?o[o.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return i&&(o.push({route:t,match:i}),t.routes&&e(t.routes,n,r,o)),!!i}),o}(i,e,a))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:tu.m9.location?tu.m9.location.pathname:void 0;if(t){let[n,r]=s(t);(0,o7.Wo)(e,{name:n,attributes:{[tw.$J]:"pageload",[tw.S3]:`auto.pageload.react.${o}`,[tw.Zj]:r}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);(0,o7.og)(e,{name:n,attributes:{[tw.$J]:"navigation",[tw.S3]:`auto.navigation.react.${o}`,[tw.Zj]:r}})}})}function ak(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=(0,nU.HN)(),t=e&&(0,nU.Gx)(e);if(!t)return;let n=(0,nU.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,y.nZ)().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(tw.Zj,"route"))}return iQ.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,aa(n,e),n}function aS(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)||"/"}let ax=new WeakMap;function aC(e,t){return void 0!==e&&void 0!==t&&(!!aT.test(t)||e===t)}function aA(e){return e.split("/").filter(Boolean)}let aT=/^:[\w-]+$/;function aI(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))"*"!==e&&(aT.test(e)?n+=3:""===e?n+=1:n+=10);return n}let aP=!1,aE=[];function aR(){let e=aE.length;return e>0?aE[e-1]??null:null}function aO(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function aM(e){return e.endsWith("*")}function aN(e){return e.includes("/*")||e.endsWith("*")}function aF(e,t){return aM(e)&&!!t.route.children?.length||!1}function a$(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function aj(e){return"/"===e[0]?e:`/${e}`}function aL(e,t){return aP?aS(e.pathname,t):e.pathname||""}function aD(e,t,n,r,i="",a,s){let l;if(s&&a&&a.length>0){let t=function(e,t,n){if(!e||!t||!t.length)return null;let r=n?aS(e,n):e,o=ax.get(t);for(let e of(o||(o=[...t].sort((e,t)=>{let n=aI(e);return aI(t)-n}),ax.set(t,o)),o))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=aA(e),r=aA(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!aC(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!aC(n[e],t))return!1;return!0}(r,e))return e;return null}(e.pathname,a,i);if(t)return[(aP?"":i)+t,"route"]}let u="url",c=function(e,t){let n=o(t,e);if(n)for(let e of n){var r;if(!(r=e.route).children&&r.element&&r.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,n);return c&&(l=aj(function e(t,n){let r=o(t,n);if(!r||0===r.length)return"";for(let o of r)if(o.route.path&&"*"!==o.route.path){var i;let r="*"===(i=o.route.path||"")[i.length-1]?i.slice(0,-1):i,a=aS(n.pathname,aj(o.pathnameBase));if(n.pathname===a)return aO(a);return aO(aO(r||"")+aj(e(t.filter(e=>e!==o.route),{pathname:a})))}return""}(n,e)),u="route"),c&&l||([l,u]=function(e,t,n,r=""){if(!e||0===e.length)return[aP?aS(t.pathname,r):t.pathname,"url"];if(!n)return[aL(t,r),"url"];let o="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:aP?aS(t,n):t,o="/*"===r.slice(-2)?r.slice(0,-2):r;return o.length>1&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),[o,"route"]}(o,e.pathname,r);let i=n.path;if(!i||aF(i,e))continue;let a="/"===i[0]||"/"===o[o.length-1]?i:`/${i}`;if(o=aO(o)+aj(a),aO(t.pathname)===aO(r+e.pathname)){if(a$(o)!==a$(e.pathname)&&!aM(o))return[(aP?"":r)+a,"route"];return aF(o,e)&&(o=o.slice(0,-1)),[(aP?"":r)+o,"route"]}}return[aL(t,r),"url"]}(t,e,r,i)),[l||e.pathname,u]}function aW(){let e=(0,nU.HN)(),t=e?(0,nU.Gx)(e):void 0;if(!t)return;let n=(0,nU.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function aH(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let o=new Proxy(e,{apply(e,n,o){let i=function(){let e=aR();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==tu.m9)try{let e=tu.m9.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{}return null}(),a=function(){let e=aR();return e?e.span:aW()}(),s=e.apply(n,o);return function(e,t,n,r,o,i){(0,tO.J8)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,o??void 0,i)}).catch(e=>{}):Array.isArray(e)&&r(e,t,o??void 0,i)}(s,t,0,r,i,a),s}});return(0,nW.xp)(o,"__sentry_proxied__",!0),o}(r,e,0,t))}if(Array.isArray(e.children))for(let n of e.children)aH(n,t)}let aU=!1,aB=3e3,aq="",aX=new WeakSet,aJ=new WeakMap,aG=new Set,az=new WeakMap,aV=new WeakMap;function aZ(e){tu.m9?.cancelAnimationFrame?tu.m9.cancelAnimationFrame(e):clearTimeout(e)}function aK(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function aQ(e){return e.includes(":")||e.includes("*")}function aY(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function a0(e,t){let n=az.get(e);n||(n=new Set,az.set(e,n)),n.add(t),t.finally(()=>{let n=az.get(e);n&&n.delete(t)})}function a1(e){let t=new Promise(t=>{aV.set(e,t)});a0(e,t)}
472function a2(e,t,n=null,r){e.forEach(e=>{aG.add(e),aU&&aH(e,a2)}),t&&aY(e,t);let o=r??aW();if(o){let e=(0,nU.XU)(o);if(e.timestamp)return;let t=e.op,i=n;if(!i&&!r&&void 0!==tu.m9){let e=tu.m9.location;e?.pathname&&(i={pathname:e.pathname})}i&&("pageload"===t?sn({activeRootSpan:o,location:{pathname:i.pathname},routes:Array.from(aG),allRoutes:Array.from(aG)}):"navigation"===t&&a3(o,i,Array.from(aG),!1,u))}}function a3(e,t,n,r=!1,o){let i=(0,nU.XU)(e),a=i.description,s=e?.__sentry_navigation_name_set__,l=a&&aN(a);if((!s||r||l)&&!i.timestamp){let r=o(n,t),[u,p]=aD(t,n,n,r||[],aq,c,aU),f=i.data?.[tw.Zj];!u||a&&(s||"route"===f&&"route"!==p)&&("route"===f||"route"!==p)&&("route"!==f||"route"!==p||!l)||(e.updateName(u),e.setAttribute(tw.Zj,p),aN(u)||"route"!==p||(0,nW.xp)(e,"__sentry_navigation_name_set__",!0))}}function a5(e,t,n,r,o){let i=!1,a=!!o&&"pageload"===(0,nU.XU)(o).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!i){let t=aW();t&&"pageload"===(0,nU.XU)(t).op?a=!0:a&&("POP"!==e.historyAction||s?i=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&i){let o=aK(e.location),i=()=>{u!==o&&(u=o,l=null,se({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(aG)}))};"idle"!==e.navigation.state?(u!==o&&(u=null),null!==l&&aZ(l),l=tu.m9?.requestAnimationFrame?tu.m9.requestAnimationFrame(i):setTimeout(i,0)):(null!==l&&(aZ(l),l=null),i())}})}function a4(e,t){return i&&a&&s&&u?function(n,r){if(st(n),aU)for(let e of n)aH(e,a2);let o=aW();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&((0,nW.xp)(o,"__sentry_may_have_lazy_routes__",!0),a1(o));let i=e(n,a8(r,!1,o)),a=r?.basename;return"POP"===i.state.historyAction&&o&&sn({activeRootSpan:o,location:i.state.location,routes:n,basename:a,allRoutes:Array.from(aG)}),aq=a||"",a5(i,n,t,a,o),i}:e}function a6(e,t){return i&&a&&s&&u?function(n,r){let o;if(st(n),aU)for(let e of n)aH(e,a2);let i=aW();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&i&&((0,nW.xp)(i,"__sentry_may_have_lazy_routes__",!0),a1(i));let a=e(n,a8(r,!0,i)),s=r?.basename,l=r?.initialEntries,u=r?.initialIndex,c=l&&1===l.length,p=void 0!==u&&l&&l[u],f=(o=c?l[0]:p?l[u]:void 0)?"string"==typeof o?{pathname:o}:o:a.state.location,d=aW();return"POP"===a.state.historyAction&&d&&sn({activeRootSpan:d,location:f,routes:n,basename:s,allRoutes:Array.from(aG)}),aq=s||"",a5(a,n,t,s,d),a}:e}function a7(e,t){let n=(0,o7.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:p,useNavigationType:f,createRoutesFromChildren:d,matchRoutes:h,stripBasename:g,enableAsyncRouteHandlers:m=!1,instrumentPageLoad:_=!0,instrumentNavigation:y=!0,lazyRouteTimeout:b,lazyRouteManifest:v}=e;return{...n,setup(t){n.setup(t);let _=e.finalTimeout??3e4,y=(e.idleTimeout??1e3)*3,w=b??y;aB=w===1/0?_:Number.isNaN(w)?y:w<0?y:w,i=r,a=p,s=f,u=h,l=d,aU=m,c=v,function(e,t=!1){o=e,aP=t}(h,g||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=tu.m9.location?.pathname;_&&r&&(0,o7.Wo)(e,{name:r,attributes:{[tw.Zj]:"url",[tw.$J]:"pageload",[tw.S3]:`auto.pageload.react.reactrouter_v${t}`}}),y&&aX.add(e)}}}function a9(e,t){if(!i||!a||!s||!u)return e;let n=n=>{let r=iQ.useRef(!0),{routes:o,locationArg:l}=n,u=e(o,l),c=a(),p=s(),f="string"==typeof l||l?.pathname?l:c;return i(()=>{let e="string"==typeof f?{pathname:f}:f;r.current?(st(o),sn({activeRootSpan:aW(),location:e,routes:o,allRoutes:Array.from(aG)}),r.current=!1):se({location:e,routes:o,navigationType:p,version:t,allRoutes:Array.from(aG)})},[p,f]),u};return(e,t)=>iQ.createElement(n,{routes:e,locationArg:t})}function a8(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let o=e?.path,i=aW()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(st(r),n&&n.length>0){let t=n[n.length-1],o=t?.route;if(o){let t=Array.from(aG).find(t=>{let n=void 0!==t.id&&t.id===e,r=void 0!==t.path&&void 0!==o.path&&t.path===o.path;return n||t===o||r});t&&aY(r,t)}}let a=i?(0,nU.XU)(i):void 0;return o&&i&&a&&!a.timestamp&&"navigation"===a.op&&a3(i,{pathname:o,search:"",hash:"",state:null,key:"default"},Array.from(aG),!0,u),t(e,r)})}let a=(async()=>{let t;let n=function(e,t){let n={};return aE.length>=10&&aE.shift(),aE.push({token:n,targetPath:e,span:t}),n}(o,i);try{t=await r(e)}finally{(function(e){let t=aE[aE.length-1];t?.token===e&&aE.pop()})(n),i&&function(e){let t=aV.get(e);t&&(t(),aV.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}(i)}let a=i?(0,nU.XU)(i):void 0;return i&&a&&!a.timestamp&&"navigation"===a.op&&o&&a3(i,{pathname:o,search:"",hash:"",state:null,key:"default"},Array.from(aG),!1,u),t})();return i&&a0(i,a),a}}}function se(e){let{location:t,routes:n,navigationType:r,version:o,matches:i,basename:a,allRoutes:s}=e,l=Array.isArray(i)?i:u(s||n,t,a),p=(0,y.s3)();if(!p||!aX.has(p))return;let f=aW();if((!f||"pageload"!==(0,nU.XU)(f).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e;let[r,i]=aD(t,s||n,s||n,l,a,c,aU),u=aK(t),f=aJ.get(p),d=!!f&&!f.isPlaceholder&&!!(0,nU.XU)(f.span).timestamp,{skip:h,shouldUpdate:g}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&aN(e.routeName),r=aN(n),o=!!e.routeName&&aQ(e.routeName),i=aQ(n),a=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!o&&i||a))}}return{skip:!1,shouldUpdate:!1}}(f,u,r,d);if(h){g&&f&&(f.routeName,f.isPlaceholder||(f.span.updateName(r),f.span.setAttribute(tw.Zj,i),(0,nW.xp)(f.span,"__sentry_navigation_name_set__",!0)),f.routeName=r);return}let m={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:u,isPlaceholder:!0};aJ.set(p,m);try{e=(0,o7.og)(p,{name:m.routeName,attributes:{[tw.Zj]:i,[tw.$J]:"navigation",[tw.S3]:`auto.navigation.react.reactrouter_v${o}`}})}catch(e){throw aJ.delete(p),e}e?(aJ.set(p,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:u}),so(e,t,n,a,"navigation")):aJ.delete(p)}}
472function st(e){e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{aG.add(e)})})}function sn({activeRootSpan:e,location:t,routes:n,matches:r,basename:o,allRoutes:i}){let a=Array.isArray(r)?r:u(i||n,t,o);if(a){let[r,s]=aD(t,i||n,i||n,a,o,c,aU);(0,y.nZ)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(tw.Zj,s),so(e,t,n,o,"pageload"))}else e&&so(e,t,n,o,"pageload")}function sr(e,t,n,r,o,i,a,s){try{let l=t.data?.[tw.Zj];if("route"===l&&n&&!aN(n))return;let p=Array.from(s),f=p.length>0?p:o,d=u(f,r,i);if(!d)return;let[h,g]=aD(r,f,f,d,i,c,aU),m=function(e,t,n,r,o=!1){return!!n&&(!!(!e&&o||e&&aN(e)&&"route"===r&&!aN(n))||"route"!==t&&"route"===r)}(n,l,h,g,!0),_="pageload"===a||!t.timestamp;m&&_&&(e.updateName(h),e.setAttribute(tw.Zj,g))}catch(e){}}function so(e,t,n,r,o){let i=`__sentry_${o}_end_patched__`;if(e?.[i]||!e.end)return;let a=e.end.bind(e),s=!1;e.end=function(...i){if(s)return;s=!0;let l=i.length>0?i[0]:Date.now()/1e3,u=(0,nU.XU)(e),c=u.description,p=u.data?.[tw.Zj],f=()=>{let t=(0,y.s3)();if(t&&"navigation"===o){let n=aJ.get(t);n&&n.span===e&&aJ.delete(t)}},d=az.get(e),h=e.__sentry_may_have_lazy_routes__;if((d&&d.size>0||h)&&c&&(aN(c)||"route"!==p)){let i;if(0===aB){sr(e,u,c,t,n,r,o,aG),f(),a(l);return}let s=new Promise(e=>setTimeout(e,aB));if(d&&d.size>0){let e=Promise.allSettled(d).then(()=>{});i=aB===1/0?e:Promise.race([e,s])}else i=s;i.then(()=>{let i=(0,nU.XU)(e);sr(e,i,i.description,t,n,r,o,aG),f(),a(l)}).catch(()=>{f(),a(l)});return}sr(e,u,c,t,n,r,o,aG),f(),a(l)},(0,nW.xp)(e,i,!0)}function si(e,t){if(!i||!a||!s||!l||!u)return e;let n=n=>{let r=iQ.useRef(!0),o=a(),u=s();return i(()=>{let e=l(n.children);r.current?(st(e),sn({activeRootSpan:aW(),location:o,routes:e,allRoutes:Array.from(aG)}),r.current=!1):se({location:o,routes:e,navigationType:u,version:t,allRoutes:Array.from(aG)})},[o,u]),iQ.createElement(e,{...n})};return aa(n,e),n}function sa(e){return a7(e,"6")}function ss(e){return a9(e,"6")}function sl(e){return a4(e,"6")}function su(e){return a6(e,"6")}function sc(e){return si(e,"6")}function sp(e){return a7(e,"7")}function sf(e){return si(e,"7")}function sd(e){return a4(e,"7")}function sh(e){return a6(e,"7")}function sg(e){return a9(e,"7")}var sm=n(67224),s_=n(6757),sy=n(32585);function sb(e,t,n){(0,y.$e)(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:(0,s_.RR)(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(n.routePath),(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),(0,sy.AE)((0,sy.RQ)())})}var sv=n(73102),sw=n(1208),sk=n(64751),sS=n(87980),sx=n(24304),sC=n(93542);function sA(){return sC.env.NEXT_PHASE===sx.PHASE_PRODUCTION_BUILD}function sT(e){let t=sA(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&sS.X&&k.fF.log("Skipping span creation in Cache Components context"),t||n}function sI(){return new sk.b({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function sP(e,t){return sT(t)?t(sI()):(0,tj.GK)(e,t)}function sE(e,t){if(sT(t)){let e=sI();return t(e,()=>e.end())}return(0,tj.V0)(e,t)}function sR(e){return sT()?sI():(0,tj.qp)(e)}var sO=n(81178);function sM(...e){if("function"==typeof e[1]){let[t,n]=e;return sN(t,{},n)}{let[t,n,r]=e;return sN(t,n,r)}}async function sN(e,t,n){return(0,y.wi)(async r=>{let o,i;let a=y.s3()?.getOptions().sendDefaultPii,s={};try{let e=await t.headers;o=e?.get("sentry-trace")??void 0,i=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{sS.X&&k.fF.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,nU.HN)()?(e,t)=>t():tj.yn)({sentryTrace:o,baggage:i},async()=>{try{return await (0,tj.GK)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[tw.Zj]:"route",[tw.S3]:"auto.function.nextjs.server_action"}},async e=>{let r=await (0,nZ.i)(n,t=>{(0,sO.g)(t)?e.setStatus({code:tU.jt,message:"not_found"}):(0,sO.C)(t)||(e.setStatus({code:tU.jt,message:"internal_error"}),(0,tx.Tb)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:a)&&(0,y.aF)().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{(0,y.aF)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{(0,sy.AE)((0,sy.RQ)())}})})}var sF=n(36882);function s$(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o;if(!r?.[0])return e.apply(n,r);let[i]=r,a="nextUrl"in i?i.nextUrl.pathname:i.url,s="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(n,r);let l=t.find(e=>e.path===a);if(!l?.path||!l.schedule)return e.apply(n,r);let u=l.path,c=(0,tx.c)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),p=(0,sF.lk)()/1e3,f=()=>{(0,tx.c)({checkInId:c,monitorSlug:u,status:"error",duration:(0,sF.lk)()/1e3-p})};try{o=e.apply(n,r)}catch(e){throw f(),e}return"object"==typeof o&&null!==o&&"then"in o?Promise.resolve(o).then(()=>{(0,tx.c)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,sF.lk)()/1e3-p})},()=>{f()}):(0,tx.c)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,sF.lk)()/1e3-p}),o}})}function sj(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,tx.Tb)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function sL(e,t,n,r){return async function(...n){let o=(0,s_.G)(t);(0,y.nZ)().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),(0,y.aF)().setSDKProcessingMetadata({normalizedRequest:o});let i=(0,nU.HN)();i&&"/_error"!==r.requestedRouteName&&(0,nU.Gx)(i).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":a,baggage:s}=(0,nV.u)();return{sentryTrace:a,baggage:s,data:await e.apply(this,n)}}}async function sD(e,t){try{return await e(...t)}catch(e){throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function sW(e){return new Proxy(e,{apply:async(e,t,n)=>
472{if(sA())return e.apply(t,n);let[r]=n,{req:o,res:i}=r.ctx,a=sj(e);if(!o||!i)return a.apply(t,n);{let e=sL(a,o,i,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})}function sH(e){return new Proxy(e,{apply:async(e,t,n)=>{if(sA())return e.apply(t,n);let[r]=n,{req:o,res:i}=r,a=sj(e);if(!o||!i)return a.apply(t,n);{let e=sL(a,o,i,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})}function sU(e){return new Proxy(e,{apply:async(e,t,n)=>{if(sA())return e.apply(t,n);let[r]=n,{req:o,res:i}=r,a=sj(e);if(!o||!i)return a.apply(t,n);{let e=sL(a,o,i,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function sB(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o;let i=(0,y.aF)();try{o=t.requestAsyncStorage?.getStore()?.headers}catch{}let a=o?(0,s_.Zm)(o):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),(0,nZ.i)(()=>e.apply(n,r),e=>{let n=(0,nU.HN)(),{componentRoute:r,componentType:o,generationFunctionIdentifier:a}=t,s=!0;i.setTransactionName(`${o}.${a} (${r})`),n&&((0,sO.g)(e)?(s=!1,n.setStatus({code:tU.jt,message:"not_found"})):(0,sO.C)(e)?(s=!1,n.setStatus({code:tU.OP})):n.setStatus({code:tU.jt,message:"internal_error"})),s&&(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:a}}})},()=>{(0,sy.AE)((0,sy.RQ)())})}})}function sq(e){return new Proxy(e,{apply:async(e,t,n)=>{if(sA())return e.apply(t,n);let[r]=n,{req:o,res:i}=r,a=sj(e);if(!o||!i)return a.apply(t,n);{let e=sL(a,o,i,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function sX(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(sA())return e.apply(n,r);let[o]=r,{req:i,res:a}=o,s=sL(sj(e),i,a,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})}function sJ(e,t){return new Proxy(e,{apply:async(e,t,n)=>sA()?e.apply(t,n):sD(sj(e),n)})}var sG=n(21458);function sz(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request&&new URL(e.url).pathname.startsWith(r))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return(0,y.wi)(r=>{let o,i;let a=n[0],s=(0,y.nZ)();a instanceof Request?(r.setSDKProcessingMetadata({normalizedRequest:(0,s_.se)(a)}),o=`middleware ${a.method}`,i="url"):(o="middleware",i="component"),s.setTransactionName(o);let l=(0,nU.HN)();if(l){o="middleware",i="component";let e=(0,nU.Gx)(l);e&&(0,sG.Y)(e,s,r)}return(0,tj.GK)({name:o,op:"http.server.middleware",attributes:{[tw.Zj]:i,[tw.S3]:"auto.function.nextjs.wrap_middleware"}},()=>(0,nZ.i)(()=>e.apply(t,n),e=>{(0,tx.Tb)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{(0,sy.AE)((0,sy.RQ)())}))})}})}var sV=n(15436);function sZ(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,y.wi)(()=>{let t=(0,y.nZ)(),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=(0,sV.qG)(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(e){throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}}),e}}
472)}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>(0,y.wi)(()=>{let r=(0,y.nZ)(),o=n?.[0]?._sentryTraceData;if(o){let e=(0,sV.qG)(o);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(e){throw(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}}),e}})}):e}function sK(e,t){let{method:n,parameterizedRoute:r,headers:o}=t;return new Proxy(e,{apply:async(e,t,o)=>{let i=(0,nU.HN)(),a=i?(0,nU.Gx)(i):void 0;return(0,y.wi)((0,y.aF)(),()=>(0,y.$e)(async s=>{s.setTransactionName(`${n} ${r}`);let l=await (0,nZ.i)(()=>e.apply(t,o),e=>{(0,sO.C)(e)||((0,sO.g)(e)?(i&&(0,tU.Q0)(i,404),a&&(0,tU.Q0)(a,404)):(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{(0,sy.AE)((0,sy.RQ)())});try{l.status&&(i&&(0,tU.Q0)(i,l.status),a&&(0,tU.Q0)(a,l.status))}catch{}return l}))}})}function sQ(e,t){return new Proxy(e,{apply:(e,n,r)=>{let o=(0,y.aF)(),i=t.headers?(0,s_.Zm)(t.headers):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),(0,nZ.i)(()=>e.apply(n,r),e=>{let n=(0,nU.HN)(),{componentRoute:r,componentType:i}=t,a=!0;o.setTransactionName(`${i} Server Component (${r})`),n&&((0,sO.g)(e)?(a=!1,n.setStatus({code:tU.jt,message:"not_found"})):(0,sO.C)(e)?(a=!1,n.setStatus({code:tU.OP})):n.setStatus({code:tU.jt,message:"internal_error"})),a&&(0,tx.Tb)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{(0,sy.AE)((0,sy.RQ)())})}})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.