1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="95e336cd-d76d-6ede-bfc4-60aac8887db9")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,535850,460077,21850,t=>{"use strict";var e=t.i(275885),n=t.i(451048),r=t.i(182021),s=t.i(847378);function i(t,e){let i=(0,n.getClient)(),a=(0,n.getIsolationScope)();if(!i)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:c=100}=i.getOptions();if(c<=0)return;let u={timestamp:(0,s.dateTimestampInSeconds)(),...t},l=o?(0,r.consoleSandbox)(()=>o(u,e)):u;null!==l&&(i.emit&&i.emit("beforeAddBreadcrumb",l,e),a.addBreadcrumb(l,c))}t.s(["addBreadcrumb",0,i],460077);let a=[".cloverleaf.docker","www-local.cloverleaf.me"],o=[/^Failed to fetch$/i,/^Load failed$/i,/NetworkError when attempting to fetch/i,/^TypeError: Failed to fetch$/i,/^TypeError: NetworkError/i,/^network error$/i],c=t=>"string"==typeof t?.message&&o.some(e=>e.test(t.message));t.s(["LOCAL_DEV_PATTERNS",0,a,"SENTRY_CATEGORY",0,{AUTH:"auth",ASSESSMENT:"assessment",SIGNIN_FLOW:"signin-flow"},"SENTRY_LEVEL",0,{INFO:"info",WARNING:"warning"},"SENTRY_TAG",0,{AUTHENTICATE_USER:"useAuthenticateUser",VALIDATE_EMAIL:"useValidateEmail"},"isApolloNetworkErrorMessage",0,t=>{if(t?.exception?.values?.length)return!1;let e=t?.extra?.error?.networkError?.message;if("string"!=typeof e)return!1;let n=t?.extra?.error?.graphQLErrors;return(!Array.isArray(n)||!(n.length>0))&&o.some(t=>t.test(e))},"isGrommetIsNodeAfterScrollError",0,t=>{let e=t?.exception?.values?.[0]?.stacktrace?.frames;return!!Array.isArray(e)&&e.some(t=>t?.function==="isNodeAfterScroll"&&"string"==typeof t?.filename&&t.filename.includes("grommet"))},"isLocalDevEnvironment",0,(...t)=>t.some(t=>"string"==typeof t&&a.some(e=>t.includes(e))),"isReactInsertBeforeError",0,t=>{let e=t?.exception?.values?.[0];if(!e)return!1;let n="NotFoundError"===e.type,r="string"==typeof e.value&&/Failed to execute 'insertBefore'.*not a child/i.test(e.value);if(!n||!r)return!1;let s=e.stacktrace?.frames;return!!Array.isArray(s)&&s.some(t=>{if(!t)return!1;let e="string"==typeof t.function?t.function:"",n="string"==typeof t.filename?t.filename:"";return!!(/^commit(Mutation|Layout|Passive|Work|Deletion|Placement)Effects?/.test(e)||/^(commitRoot|commitWork|insertOrAppendPlacementNode)/.test(e)||(n.includes("react-dom")||/chunks\/framework/.test(n))&&/insertBefore/i.test(e))})},"isTransientApolloNetworkError",0,c,"reportOrBreadcrumb",0,(t,{category:n,extras:r,tag:s})=>{let a=t?.networkError?.statusCode||t?.statusCode;!a||a>=500?e.captureException(t,{extra:r,tags:{function:s}}):i({category:n,message:`${s}: ${a} response`,level:"warning",data:r})}],21850);let u=new WeakSet,l=t=>null!==t&&"object"==typeof t;function p(t){return!!l(t)&&(u.has(t)||l(t.networkError)&&u.has(t.networkError)||t.graphQLErrors?.length>0&&t.graphQLErrors.every(t=>l(t)&&u.has(t)))}t.s(["apolloErrorReportingIntegration",0,function(){return{name:"ApolloErrorReporting",setup(t){t.addEventProcessor((t,e)=>p(e?.originalException)||p(t?.extra?.error)?null:t)}}},"reportApolloOperationError",0,function({graphQLErrors:t,networkError:n,operation:r,looksLikeHtml:s,isBrowser:i}){if(!i&&!s)return;l(n)&&u.add(n),t?.forEach(t=>{l(t)&&u.add(t)});let a=r?.operationName||"unknown",o={operationName:a,variableKeys:Object.keys(r?.variables||{})},p={operation:a,function:"reportApolloOperationError"};s?(0,e.captureMessage)("Apollo operation received non-JSON upstream response",{level:"warning",tags:{...p,errorKind:"non-json-response",errorType:"UPSTREAM_NON_JSON"},extra:o}):n&&!c(n)&&(0,e.captureException)(Error("Apollo network request failed"),{tags:{...p,type:"APOLLO_NETWORK_ERROR"},extra:{...o,...Number.isInteger(n.statusCode)?{statusCode:n.statusCode}:{}}}),t?.length&&(0,e.captureMessage)("Apollo GraphQL error",{level:"error",tags:{...p,type:"APOLLO_GRAPHQL_ERROR"},extra:{...o,errorCount:t.length}})},"wasHandledApolloError",0,p],535850)},39151,609858,t=>{"use strict";var e=t.i(941020);t.s([],39151),t.s(["publicRuntimeConfig",()=>e.default],609858)},941020,(t,e,n)=>{var r=t.i(350461);let s="production",i=t=>t&&!t.startsWith("APP_NEXT_")?t:void 0,a={development:{apiPort:r.default.env.NEXT_RUNTIME_API_PORT||3001,clientPort:r.default.env.NEXT_RUNTIME_CLIENT_PORT||3e3,subDomain:r.default.env.NEXT_PUBLIC_SUBDOMAIN||"app",domain:r.default.env.NEXT_PUBLIC_DOMAIN||"cloverleaf.docker",protocol:r.default.env.NEXT_PUBLIC_PROTOCOL||"https"},test:{apiPort:443,clientPort:443,subDomain:"test",domain:"cloverleaf.ninja",protocol:"https"},production:{apiPort:443,clientPort:443,subDomain:"app",domain:"cloverleaf.me",protocol:"https"}}[s],o=`${a.protocol}://${a.domain}:${a.clientPort}`,c=`${a.protocol}://${a.subDomain}.${a.domain}`,u={env:s,CLIENT_PORT:r.default.env.NEXT_RUNTIME_CLIENT_PORT||a.clientPort,API_PORT:r.default.env.NEXT_RUNTIME_API_PORT||a.apiPort,SEGMENT_WRITE_KEY:i("qorehuTOdCYUNXAg2ekRGCyUabdiq0hb")||"hCvPDbvFLrecJizcsfwIXh82JiRaTG8m",SEGMENT_PUBLIC_WRITE_KEY:i("mnm5XCetSSxteFGKFwo5j87RAqk6wS6d")||"MPUJklg9oGBup7WNnIPFN4HcbTr5pIWI",CHARGEBEE_SITE:i("APP_NEXT_RUNTIME_CHARGEBEE_SITE")||r.default.env.NEXT_RUNTIME_CHARGEBEE_SITE||"cloverleaf-test",CHARGEBEE_ENTERPRISE_PLAN_NAME:r.default.env.NEXT_RUNTIME_CHARGEBEE_ENTERPRISE_PLAN_NAME||"enterprise",CHARGEBEE_TEAM_PLAN_NAME:r.default.env.NEXT_RUNTIME_CHARGEBEE_TEAM_PLAN_NAME||"team_plan",CLOVERLEAF_ENV:s,CLOVERLEAF_API_URL:i("https://app.cloverleaf.me")||c,CLOVERLEAF_CLIENT_URL:i("https://cloverleaf.me:443")||c,CLOVERLEAF_COOKIE_DOMAIN:i(".cloverleaf.me")||`.${a.subDomain}.${a.domain}`,CLOVERLEAF_COOKIE_NAME:r.default.env.NEXT_RUNTIME_CLOVERLEAF_COOKIE_NAME||"clsess",CLOVERLEAF_COOKIE_USER_ID:"cl_user_id",CLOVERLEAF_DOMAIN:r.default.env.NEXT_RUNTIME_CLOVERLEAF_DOMAIN||a.domain,CLOVERLEAF_SUBDOMAIN:r.default.env.NEXT_RUNTIME_CLOVERLEAF_SUBDOMAIN||a.subDomain,PROTOCOL:r.default.env.NEXT_PUBLIC_PROTOCOL||a.protocol,CLOVERLEAF_FORCE_ORG_SUBDOMAINS:i("APP_NEXT_RUNTIME_CLOVERLEAF_FORCE_ORG_SUBDOMAINS")||r.default.env.NEXT_RUNTIME_CLOVERLEAF_FORCE_ORG_SUBDOMAINS||"true",CLOVERLEAF_CLIENT_ID:r.default.env.NEXT_RUNTIME_CLOVERLEAF_CLIENT_ID||"a146feba-9dc3-4988-91ac-3f661a8ca7e6",CLOVERLEAF_TOGGLE_VIA_UNAVAILABLE:r.default.env.NEXT_RUNTIME_CLOVERLEAF_TOGGLE_VIA_UNAVAILABLE||"false",CLOVERLEAF_TEST_ORG_SUBDOMAINS:r.default.env.NEXT_RUNTIME_CLOVERLEAF_TEST_ORG_SUBDOMAINS||"test,artillery,bigco,schoch,testorglievertz,teststeven",S3_PUBLIC_BUCKET:r.default.env.NEXT_RUNTIME_S3_PUBLIC_BUCKET||"cloverleaf-prod-app-publicfiles-ccb67e20",LOCAL_DEV_HOST_GLOB:r.default.env.NEXT_RUNTIME_LOCAL_DEV_HOST_GLOB||"*.cloverleaf.docker"};e.exports={...{test:{...u,CLOVERLEAF_ENV:i("production")||r.default.env.NEXT_RUNTIME_CLOVERLEAF_ENV||"test",CLOVERLEAF_CLIENT_URL:i("https://cloverleaf.me:443")||o},development:{...u,SEGMENT_WRITE_KEY:"THt95WPVq6nbDanV3KnuZ8DQ1GA5AtdT",SEGMENT_PUBLIC_WRITE_KEY:"THt95WPVq6nbDanV3KnuZ8DQ1GA5AtdT",CLOVERLEAF_ENV:i("production")||r.default.env.NEXT_RUNTIME_CLOVERLEAF_ENV||"development"},production:{...u,CHARGEBEE_SITE:i("APP_NEXT_RUNTIME_CHARGEBEE_SITE")||r.default.env.NEXT_RUNTIME_CHARGEBEE_SITE||"cloverleaf",CLOVERLEAF_ENV:i("production")||r.default.env.NEXT_RUNTIME_CLOVERLEAF_ENV||"production",CLOVERLEAF_CLIENT_URL:i("https://cloverleaf.me:443")||o,CLOVERLEAF_COOKIE_DOMAIN:i(".cloverleaf.me")||`.${a.domain}`,SEGMENT_WRITE_KEY:i("qorehuTOdCYUNXAg2ekRGCyUabdiq0hb")||"qorehuTOdCYUNXAg2ekRGCyUabdiq0hb",SEGMENT_PUBLIC_WRITE_KEY:i("mnm5XCetSSxteFGKFwo5j87RAqk6wS6d")||"mnm5XCetSSxteFGKFwo5j87RAqk6wS6d"}}[s]}},275885,653541,410544,931140,664660,182021,914046,899619,479838,25366,878174,399677,387395,847378,817433,871766,254402,266361,414697,451048,63104,157821,359546,121288,304710,958927,574860,442044,22511,111053,76357,893859,872028,333226,540735,665720,357082,347907,190225,320648,908817,980323,272536,929203,t=>{"use strict";
2let e,n,r,s,i,a,o,c,u,l="10.73.0";t.s(["SDK_VERSION",0,l],653541);let p=globalThis;function d(){return _(p),p}function _(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||l,e[l]=e[l]||{}}function f(t,e,n=p){let r=n.__SENTRY__=n.__SENTRY__||{},s=r[l]=r[l]||{};return s[t]||(s[t]=e())}t.s(["GLOBAL_OBJ",0,p],410544),t.s(["getGlobalSingleton",0,f,"getMainCarrier",0,d,"getSentryCarrier",0,_],931140);let h="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["DEBUG_BUILD",0,h],664660);let g={};function m(t){if(!("console"in p))return t();let e=p.console,n={},r=Object.keys(g);r.forEach(t=>{let r=g[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function E(){return T().enabled}function S(t,...e){h&&E()&&m(()=>{p.console[t](`Sentry Logger [${t}]:`,...e)})}function T(){return h?f("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let y={enable:function(){T().enabled=!0},disable:function(){T().enabled=!1},isEnabled:E,log:function(...t){S("log",...t)},warn:function(...t){S("warn",...t)},error:function(...t){S("error",...t)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,m,"debug",0,y,"originalConsoleMethods",0,g],182021);let I=Object.prototype.toString;function b(t){switch(I.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return M(t,Error)}}function v(t,e){return I.call(t)===`[object ${e}]`}function A(t){return v(t,"String")}function N(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function R(t){return null===t||N(t)||"object"!=typeof t&&"function"!=typeof t}function C(t){return v(t,"Object")}function O(t){return"object"==typeof t&&null!==t}function L(t){return"u">typeof Event&&M(t,Event)}function x(t){return v(t,"RegExp")}function P(t){return!!(t?.then&&"function"==typeof t.then)}function M(t,e){try{return t instanceof e}catch{return!1}}function k(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{h&&y.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function U(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,k(t,"__sentry_original__",e)}catch{}}function w(t){if(b(t))return{message:t.message,name:t.name,stack:t.stack,...D(t)};if(L(t)){let{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...D(t)}}return t}function D(t){return O(t)?Object.fromEntries(Object.entries(t)):{}}function $(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in p&&"function"==typeof p[n]?(e=p[n])(t):(e=null,t())}function F(){return $(()=>Math.random())}function B(){return $(()=>Date.now())}t.s(["isDOMError",0,function(t){return v(t,"DOMError")},"isDOMException",0,function(t){return v(t,"DOMException")},"isError",0,b,"isErrorEvent",0,function(t){return v(t,"ErrorEvent")},"isEvent",0,L,"isInstanceOf",0,M,"isObjectLike",0,O,"isParameterizedString",0,N,"isPlainObject",0,C,"isPrimitive",0,R,"isRegExp",0,x,"isRequest",0,function(t){return"u">typeof Request&&M(t,Request)},"isString",0,A,"isThenable",0,P],914046),t.s(["addNonEnumerableProperty",0,k,"convertToPlainObject",0,w,"extractExceptionKeysForMessage",0,function(t){let e=Object.keys(w(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"},"fill",0,function(t,e,n){if(!(e in t))return;let r=t[e];if("function"!=typeof r)return;let s=n(r);"function"==typeof s&&U(s,r);try{t[e]=s}catch{h&&y.log(`Failed to replace method "${e}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,U],899619),t.s(["safeDateNow",0,B,"safeMathRandom",0,F,"withRandomSafeContext",0,$],479838);let V=Symbol.for("sentry.skipNormalization"),j=Symbol.for("sentry.overrideNormalizationDepth"),G=/\(error: (.*)\)/,X=/captureMessage|captureException/;function K(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{let s=[],i=t.split("\n");for(let t=n;t<i.length;t++){let n=i[t];n.length>1024&&(n=n.slice(0,1024));let a=G.test(n)?n.replace(G,"$1"):n;if(!a.includes("Error: ")){for(let t of e){let e=t(a);if(e){s.push(e);break}}if(s.length>=50+r)break}}var a=s.slice(r);if(!a.length)return[];let o=Array.from(a);return/sentryWrapped/.test(Y(o).function||"")&&o.pop(),o.reverse(),X.test(Y(o).function||"")&&(o.pop(),X.test(Y(o).function||"")&&o.pop()),o.slice(0,50).map(t=>
2({...t,filename:t.filename||Y(o).filename,function:t.function||"?"}))}}function Y(t){return t[t.length-1]||{}}let H="<anonymous>";function W(t){try{if(!t||"function"!=typeof t)return H;return t.name||H}catch{return H}}function z(t,e=100,n=1/0){try{return function t(e,n,r=1/0,s=1/0,i=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let a,[o,c]=i;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let u=J(e,n);if(!u.startsWith("[object "))return u;if(n[V])return n;let l=(a=n[j],"number"==typeof a?a:void 0),p=void 0!==l?l:r;if(0===p)return u.replace("object ","");if(o(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,p-1,s,i)}catch{}let d=Array.isArray(n)?[]:{},_=0,f=w(n);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(_>=s){d[e]="[MaxProperties ~]";break}let n=f[e];d[e]=t(e,n,p-1,s,i),_++}return c(n),d}("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function J(e,r){try{var s;let e;if(n){let t=n(r);if(t)return t}if(r===t.g)return"[Global]";if("number"==typeof r&&!Number.isFinite(r))return`[${r}]`;if("function"==typeof r)return`[Function: ${W(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;let i=(s=r,e=Object.getPrototypeOf(s),e?.constructor?e.constructor.name:"null prototype");return`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}function q(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function Q(t,e,n=!1){return!!A(t)&&(x(e)?e.test(t):A(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}function Z(t=p.crypto||p.msCrypto){try{if(t?.randomUUID)return $(()=>t.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,t=>(t^(15&16*F())>>t/4).toString(16))}function tt(t){return t.exception?.values?.[0]}function te(t,e){let n=tt(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r?.data,...e.data};n.mechanism.data=t}}function tn(){return B()/1e3}function tr(){return(s??(s=function(){let{performance:t}=p;if(!t?.now||!t.timeOrigin)return tn;let e=t.timeOrigin;return()=>(e+$(()=>t.now()))/1e3}()))()}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,K,"getFramesFromEvent",0,function(t){let e=t.exception;if(e){let t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}},"getFunctionName",0,W,"normalizeStackTracePath",0,function(t){let e=t?.startsWith("file://")?t.slice(7):t;return e?.match(/\/[A-Z]:/)&&(e=e.slice(1)),e},"stackParserFromStackParserOptions",0,function(t){return Array.isArray(t)?K(...t):t}],25366),t.s(["normalize",0,z,"normalizeToSize",0,function t(e,n=3,r=102400){let s=z(e,n);return~-encodeURI(JSON.stringify(s)).split(/%..|./).length>r?t(e,n-1,r):s},"setNormalizeStringifier",0,function(t){n=t},"stringifyValue",0,J],878174),t.s(["isMatchingPattern",0,Q,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];R(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(J(void 0,r))}return n.join(e)},"snipLine",0,function(t,e){let n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n},"stringMatchesSomePattern",0,function(t,e=[],n=!1){for(let r of e)if(Q(t,r,n))return!0;return!1},"truncate",0,q],399677),t.s(["addExceptionMechanism",0,te,"addExceptionTypeValue",0,function(t,e,n){let r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")},"checkOrSetAlreadyCaught",0,function(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{k(t,"__sentry_captured__",!0)}catch{}return!1},"getEventDescription",0,function(t){let{message:e,event_id:n}=t;if(e)return e;let r=tt(t);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||"<unknown>":n||"<unknown>"},"uuid4",0,Z],387395);let ts=null;function ti(t){let e=tr(),n={sid:Z(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var t;return t=n,{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}};return t&&ta(n,t),n}function ta(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||tr(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Z()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function to(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),ta(t,n)}function tc(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;let r={...t};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=tc(r[t],e[t],n-1));return r}function tu(){return Z()}function tl(){return Z().substring(16)}function tp(t){try{let e=p.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}function td(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}t.s(["browserPerformanceTimeOrigin",0,function(){return null===ts&&(ts=function(){let{performance:t}=p;if(!t?.now)return;let e=$(()=>t.now()),n=B(),r=t.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+e-n))return r;let s=t.timing?.navigationStart;return"number"==typeof s&&3e5>Math.abs(s+e-n)?s:n-e}()),ts},"dateTimestampInSeconds",0,tn,"timestampInSeconds",0,tr],847378),t.s(["closeSession",0,to,"makeSession",0,ti,"updateSession",0,ta],817433),t.s(["merge",0,tc],871766),t.s(["generateSpanId",0,tl,"generateTraceId",0,tu],254402);let t_="_sentrySpan";function tf(t,e){e?k(t,t_,tp(e)):delete t[t_]}function th(t){return td(t[t_])}t.s(["_getSpanForScope",0,th,"_setSpanForScope",0,tf],266361);class tg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:tu(),sampleRand:F()}}clone(){let t=new tg;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,tf(t,th(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ta(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let e="function"==typeof t?t(this):t,{tags:n,attributes:r,extra:s,user:i,contexts:a,level:o,fingerprint:c=[],propagationContext:u,conversationId:l}=(e instanceof tg?e.getScopeData():C(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),o&&(this._level=o),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),l&&(this._conversationId=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,tf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tu(),sampleRand:F()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:tn(),...t,message:t.message?q(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:th(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tc(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e?.event_id||Z();if(!this._client)return h&&y.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){let r=n?.event_id||Z();if(!this._client)return h&&y.warn("No client configured on scope - will not capture message!"),r;let s=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){let n=t.event_id||e?.event_id||Z();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):h&&y.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h(t=>{t(this)}),this._notifyingListeners=!1)}}let tm=t=>t instanceof Promise&&!t[tE],tE=Symbol("chained PromiseLike");class tS{constructor(t,e){let n,r;n=t||new tg,r=e||new tg,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}if(P(e)){var r,s,i;let t;return r=e,s=()=>this._popScope(),i=()=>this._popScope(),tm(t=r.then(t=>(s(),t),t=>{throw i(),t}))&&tm(r)?t:((t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let s=t[r];"function"==typeof s?Object.defineProperty(e,r,{value:(...e)=>s.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[tE]:!0}),e})(r,t)}return this._popScope(),e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function tT(){let t=_(d());return t.stack=t.stack||new tS(f("defaultCurrentScope",()=>new tg),f("defaultIsolationScope",()=>new tg))}function ty(t){return tT().withScope(t)}function tI(t,e){let n=tT();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tb(t){return tT().withScope(()=>t(tT().getIsolationScope()))}function tv(t){let e=_(t);return e.acs?e.acs:{withIsolationScope:tb,withScope:ty,withSetScope:tI,withSetIsolationScope:(t,e)=>tb(e),getCurrentScope:()=>tT().getScope(),getIsolationScope:()=>tT().getIsolationScope()}}function tA(){return tv(d()).getCurrentScope()}function tN(){return tv(d()).getIsolationScope()}function tR(){return f("globalScope",()=>new tg)}function tC(...t){let e=tv(d());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function tO(){return tA().getClient()}t.s(["getAsyncContextStrategy",0,tv],414697),t.s(["getClient",0,tO,"getCurrentScope",0,tA,"getGlobalScope",0,tR,"getIsolationScope",0,tN,"getTraceContextFromScope",0,function(t){let e=i?.();if(e)return{trace_id:e.traceId,span_id:e.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:s}=t.getPropagationContext(),a={trace_id:n,span_id:s||tl()};return r&&(a.parent_span_id=r),a},"hasExternalPropagationContext",0,function(){return void 0!==i},"withIsolationScope",0,function(...t){let e=tv(d());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])},"withScope",0,tC],451048);let tL="sentry.source",tx="sentry.sample_rate",tP="sentry.previous_trace_sample_rate",tM="sentry.op",tk="sentry.origin",tU="sentry.status.message",tw="sentry.measurement_unit",tD="sentry.measurement_value",t$="sentry.custom_span_name",tF="sentry.profile_id",tB="sentry.exclusive_time";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,tB,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,tF,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,t$,"SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT",0,"sentry.environment","SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON",0,"sentry.idle_span_finish_reason","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT",0,tw,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,tD,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,tM,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,tk,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,tP,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,tx,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",0,"sentry.sdk.integrations","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,tL,"SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE",0,tU,"SEMANTIC_ATTRIBUTE_USER_EMAIL",0,"user.email","SEMANTIC_ATTRIBUTE_USER_ID",0,"user.id","SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS",0,"user.ip_address","SEMANTIC_ATTRIBUTE_USER_USERNAME",0,"user.name","SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE",0,"sentry.link.type"],63104);let tV="sentry-";function tj(t){let e=tG(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.startsWith(tV)&&(t[e.slice(tV.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function tG(t){if(t&&(A(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>
2(Object.entries(tX(e)).forEach(([e,n])=>{t[e]=n}),t),{}):tX(t)}function tX(t){return t.split(",").map(t=>{let e=t.indexOf("=");return -1===e?[]:[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}function tK(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||tO()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}function tY(t){y.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function tH(t,e){if(!e?.length)return!1;for(let r of e){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(t.description&&Q(t.description,r))return h&&tY(t),!0;continue}let e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;let s=!r.name||t.description&&Q(t.description,r.name),i=!r.op||t.op&&Q(t.op,r.op),a=!r.attributes||Object.entries(r.attributes).every(([e,n])=>(function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?Q(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e})(t.attributes?.[e],n));if(s&&i&&a)return h&&tY(t),!0}return!1}function tW(t){return"stream"===t.getOptions().traceLifecycle}function tz(t){if("boolean"==typeof t)return Number(t);let e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e))&&!(e<0)&&!(e>1))return e}function tJ(t,e=!1){let n={};for(let[r,s]of Object.entries(t??{})){let t=function(t,e){let{value:n,unit:r}="object"==typeof t&&null!=t&&!Array.isArray(t)&&Object.keys(t).includes("value")?t:{value:t,unit:void 0},s=function(t){if(Array.isArray(t))return{value:t,type:"array"};let e="string"==typeof t?"string":"boolean"==typeof t?"boolean":"number"!=typeof t||Number.isNaN(t)?null:Number.isInteger(t)?"integer":"double";if(e)return{value:t,type:e}}(n),i=r&&"string"==typeof r?{unit:r}:{};if(s)return{...s,...i};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...i}}(s,e);t&&(n[r]=t)}return n}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,tV,"baggageHeaderToDynamicSamplingContext",0,tj,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${tV}${e}`]=n),t),{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,[e,n],r)=>{let s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,i=0===r?s:`${t},${s}`;return i.length>8192?(h&&y.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i},""):void 0}},"parseBaggageHeader",0,tG],157821),t.s(["hasSpansEnabled",0,tK],359546),t.s(["reparentChildSpans",0,function(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let e of t)e.parent_span_id===r&&(e.parent_span_id=n)},"shouldIgnoreSpan",0,tH],121288),t.s(["hasSpanStreamingEnabled",0,tW],304710),t.s(["parseSampleRate",0,tz],958927),t.s(["serializeAttributes",0,tJ],574860),t.s(["SPAN_STATUS_ERROR",0,2,"SPAN_STATUS_OK",0,1,"SPAN_STATUS_UNSET",0,0,"setHttpStatus",0,function(t,e){t.setAttribute("http.response.status_code",e);let n=function(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}(e);"unknown_error"!==n.message&&t.setStatus(n)}],442044);let tq="_sentryScope",tQ="_sentryIsolationScope",tZ=Symbol.for("sentry.otelSourceInference"),t0=Symbol.for("sentry.otelSourceExplicitlySet"),t1=Symbol.for("sentry.tracerProviderSpan");function t2(t,e,n){t&&(k(t,tQ,tp(n)),k(t,tq,e))}function t4(t){return{scope:t[tq],isolationScope:td(t[tQ])}}function t3(t){return!0===t[tZ]}function t5(t){k(t,t0,!0)}function t8(t){return!0===t[t1]}t.s(["getCapturedScopesOnSpan",0,t4,"markSpanSourceAsExplicit",0,t5,"setCapturedScopesOnSpan",0,t2,"spanIsTracerProviderSpan",0,t8,"spanShouldInferOtelSource",0,t3],22511);let t6=/^o(\d+)\./,t7=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function t9(t,e=!1){let{host:n,path:r,pass:s,port:i,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function et(t){let e=t7.exec(t);if(!e)return void m(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,s="",i="",a="",o=""]=e.slice(1),c="",u=o,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return ee({host:i,pass:s,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function ee(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function en(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(t6),e=t?.[1])}return e}t.s(["dsnFromString",0,et,"dsnToString",0,t9,"extractOrgIdFromClient",0,en,"makeDsn",0,function(t){let e="string"==typeof t?et(t):ee(t);if(e&&function(t){if(!h)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(y.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(y.error(`Invalid Sentry Dsn: Invalid port ${e}
2`),!1):(y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],111053);let er=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function es(t=tu(),e=tl(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function ei(t=tu(),e=tl(),n){return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,er,"generateSentryTraceHeader",0,es,"generateTraceparentHeader",0,ei,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(er);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=tj(e);if(!n?.traceId)return{traceId:tu(),sampleRand:F()};let s=function(t,e){let n=tz(e?.sample_rand);if(void 0!==n)return n;let r=tz(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?F()*r:r+F()*(1-r):F()}(n,r);r&&(r.sample_rand=s.toString());let{traceId:i,parentSpanId:a,parentSampled:o}=n;return{traceId:i,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:s}},"shouldContinueTrace",0,function(t,e){let n=en(t);return e&&n&&e!==n?(y.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):!t.getOptions().strictTraceContinuation||(!e||!!n)&&(!!e||!n)||(y.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],76357);let ea=!1;function eo(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:a,origin:o,links:c}=e_(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:a,origin:o,links:c}}function ec(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:e_(t).parent_span_id,i=t4(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||tl():e,trace_id:n}}function eu(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:1===n,attributes:s,...r})):void 0}function el(t){return t?.length?t.map(({context:{spanId:t,traceId:e,traceFlags:n},attributes:r})=>({span_id:t,trace_id:e,sampled:1===n,attributes:r})):void 0}function ep(t){return"number"==typeof t?ed(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?ed(t.getTime()):tr()}function ed(t){return t>0x2540be3ff?t/1e3:t}function e_(t){if(eg(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(eh(t)){let{attributes:r,startTime:s,name:i,endTime:a,status:o,links:c}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:ef(t),start_timestamp:ep(s),timestamp:ep(a)||void 0,status:eE(o),op:r[tM],origin:r[tk],links:eu(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function ef(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function eh(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function eg(t){return"function"==typeof t.getSpanJSON}function em(t){let{traceFlags:e}=t.spanContext();return 1===e}function eE(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function eS(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}function eT(t,e){let n="error"===eS(e)?e?.message:void 0;return{...n&&{[tU]:n},...t}}let ey="_sentryChildSpans",eI="_sentryRootSpan";function eb(t,e){let n=t[eI]||t;k(e,eI,n),!em(t)||(t.isRecording()||n.isRecording())&&(t[ey]?t[ey].add(e):k(t,ey,new Set([e])))}function ev(t){let e=new Set;return!function t(n){if(!e.has(n)&&em(n))for(let r of(e.add(n),n[ey]?Array.from(n[ey]):[]))t(r)}(t),Array.from(e)}let eA=eN;function eN(t){return t[eI]||t}function eR(){let t=tv(d());return t.getActiveSpan?t.getActiveSpan():th(tA())}function eC(){ea||(m(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),ea=!0)}t.s(["INTERNAL_getSegmentSpan",0,eN,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,eb,"addStatusMessageAttribute",0,eT,"convertSpanLinksForEnvelope",0,eu,"getActiveSpan",0,eR,"getRootSpan",0,eA,"getSimpleStatus",0,eS,"getSpanDescendants",0,ev,"getStatusMessage",0,eE,"getStreamedSpanLinks",0,el,"removeChildSpanFromSpan",0,function(t,e){t[ey]&&t[ey].delete(e)},"showSpanDropWarning",0,eC,"spanIsSampled",0,em,"spanTimeInputToSeconds",0,ep,"spanToJSON",0,e_,"spanToStreamedSpanJSON",0,function(t){if(eg(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(eh(t)){let{attributes:r,startTime:s,name:i,endTime:a,status:o,links:c}=t;return{name:i,span_id:e,trace_id:n,parent_span_id:ef(t),start_timestamp:ep(s),end_timestamp:ep(a),is_segment:t===eN(t),status:eS(o),attributes:eT(r,o),links:el(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===eN(t)}},"spanToTraceContext",0,ec,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return es(e,n,em(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return ei(e,n,em(t))},"spanToTransactionTraceContext",0,eo,"streamedSpanJsonToSerializedSpan",0,function(t){return{...t,attributes:tJ(t.attributes),links:t.links?.map(t=>({...t,attributes:tJ(t.attributes)}))}}],893859);let eO="production";t.s(["DEFAULT_ENVIRONMENT",0,eO],872028);let eL=Symbol.for("sentry.nonRecordingSpan");class ex{constructor(t={}){this._traceId=t.traceId||tu(),this._spanId=t.spanId||tl(),this.dropReason=t.dropReason,k(this,eL,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
2addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function eP(t){return!!t&&!0===t[eL]}t.s(["SentryNonRecordingSpan",0,ex,"spanIsNonRecordingSpan",0,eP],333226);let eM="_frozenDsc";function ek(t,e){k(t,eM,e)}function eU(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||eO,release:n.release,public_key:r,trace_id:t,org_id:en(e)};return e.emit("createDsc",s),s}function ew(t,e){let n=e.getPropagationContext();return n.dsc||eU(n.traceId,t)}function eD(t){let e=tO();if(!e)return{};let n=eA(t),r=e_(n),s=r.data,i=n.spanContext().traceState,a=i?.get("sentry.sample_rate")??s[tx]??s[tP];function o(t){return("number"==typeof a||"string"==typeof a)&&(t.sample_rate=`${a}`),t}let c=n[eM];if(c)return o(c);let u=eP(n),l=u&&"ignored"===n.dropReason;if(u&&(!tK(e.getOptions())||l)){let t=t4(n).scope;if(t){let n={...ew(e,t)};return l&&(n.sampled="false"),o(n)}}let p=i?.get("sentry.dsc"),d=p&&tj(p);if(d)return o(d);let _=eU(t.spanContext().traceId,e),f=s[tL]??s["sentry.segment.name.source"],h=r.description;return"url"!==f&&h&&(_.transaction=h),tK()&&(_.sampled=String(em(n)),_.sample_rand=i?.get("sentry.sample_rand")??t4(n).scope?.getPropagationContext().sampleRand.toString()),o(_),e.emit("createDsc",_,n),_}function e$(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}function eF(t,e=[]){return[t,e]}function eB(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function eV(t){let e=_(p);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function ej(t){return[{type:"span"},t]}t.s(["freezeDscOnSpan",0,ek,"getDynamicSamplingContextFromScope",0,ew,"getDynamicSamplingContextFromSpan",0,eD],540735),t.s(["isStreamedBeforeSendSpanCallback",0,e$],665720);let eG={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function eX(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function eK(t,e,n,r){let s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(B()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:t9(r)},...s&&{trace:s}}}function eY(t,e){let n=eD(t[0]),r=e?.getDsn(),s=e?.getOptions().tunnel,i={sent_at:new Date(B()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!s&&r&&{dsn:t9(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>{let e=e_(t);return!tH({description:e.description,op:e.op,attributes:e.data},o)}):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let l=a?t=>{let e=e_(t),n=e$(a)?e:a(e);return n||(eC(),e)}:e_,p=[];for(let t of c){let e=l(t);e&&p.push(ej(e))}return eF(i,p)}function eH(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[tw],s=n[tD];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})}),e}function eW(){return _(d()).segmentSpanCaptureStrategy}t.s(["addItemToEnvelope",0,function(t,e){let[n,r]=t;return[n,[...r,e]]},"createAttachmentEnvelopeItem",0,function(t){let e="string"==typeof t.data?eV(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,eF,"createEventEnvelopeHeaders",0,eK,"createSpanEnvelopeItem",0,ej,"envelopeContainsItemType",0,function(t,e){return eB(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return t in eG?eG[t]:t},"forEachEnvelopeItem",0,eB,"getSdkMetadataForEnvelopeHeader",0,eX,"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function s(t){"string"==typeof r?r="string"==typeof t?r+t:[eV(r),t]:r.push("string"==typeof t?eV(t):t)}for(let t of n){let[e,n]=t;if(s(` 3${JSON.stringify(e)} 4`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(z(n))}s(t)}}return"string"==typeof r?r:function(t){let e=new Uint8Array(t.reduce((t,e)=>t+e.length,0)),n=0;for(let r of t)e.set(r,n),n+=r.length;return e}(r)}],357082),t.s(["createEventEnvelope",0,function(t,e,n,r){let s=eX(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){if(!e)return;let n=t.sdk||{};t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0}}(t,n?.sdk);let a=eK(t,s,r,e);return delete t.sdkProcessingMetadata,eF(a,[[{type:i},t]])},"createSessionEnvelope",0,function(t,e,n,r){let s=eX(n);return eF({sent_at:new Date(B()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:t9(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,eY],347907),t.s(["setMeasurement",0,function(t,e,n,r=eR()){let s=r&&eA(r);
4s&&(h&&y.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),s.addEvent(t,{[tD]:e,[tw]:n}))},"timedEventsToMeasurements",0,eH],190225);class ez{constructor(t={}){this._traceId=t.traceId||tu(),this._spanId=t.spanId||tl(),this._startTime=t.startTimestamp||tr(),this._links=t.links,this._attributes={},this.setAttributes({[tk]:"manual",[tM]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._frozen||(this._links?this._links.push(t):this._links=[t]),this}addLinks(t){return this._frozen||(this._links?this._links.push(...t):this._links=t),this}recordException(t,e){}spanContext(){let{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:+!!n}}setAttribute(t,e){return this._frozen||(void 0===e?delete this._attributes[t]:this._attributes[t]=e,t===tL&&void 0!==e&&t3(this)&&t5(this)),this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._frozen||(this._startTime=ep(t))}setStatus(t){return this._frozen||(this._status=t),this}updateName(t){return this._frozen||(this._name=t,t3(this)||this.setAttribute(tL,"custom")),this}end(t){if(this._endTime){this._frozen=t8(this);return}this._endTime=ep(t),function(t){if(!h)return;let{description:e="< unknown name >",op:n="< unknown op >"}=e_(t),{spanId:r}=t.spanContext(),s=eA(t)===t,i=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${e}" with ID ${r}`;y.log(i)}(this),this._onSpanEnded(),this._frozen=t8(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[tM],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:eE(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[tk],profile_id:this._attributes[tF],exclusive_time:this._attributes[tB],measurements:eH(this._events),is_segment:this._isStandaloneSpan&&eA(this)===this||void 0,segment_id:this._isStandaloneSpan?eA(this).spanContext().spanId:void 0,links:eu(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===eA(this),status:eS(this._status),attributes:eT(this._attributes,this._status),links:el(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){if(this._frozen)return this;h&&y.log("[Tracing] Adding an event to span:",t);let r=eJ(e)?e:n||tr(),s=eJ(e)?{}:e||{},i={name:t,time:ep(r),attributes:s};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tO();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));let e=eA(this),n=this._isStandaloneSpan||this===e;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tO();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(eY([this],t)):(h&&y.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(!n){let t=eW();if(t){let n=t4(this).scope||tA();t.onChildSpanEnded(this,e,t=>this._convertSpanToTransaction(t),n)}return}if(t&&tW(t))return void t.emit("afterSegmentSpanEnd",this);let r=t4(this).scope||tA(),s=eW();if(s)s.onSegmentSpanEnded(t=>this._convertSpanToTransaction(t),r);else{let t=this._convertSpanToTransaction();t&&r.captureEvent(t)}}_convertSpanToTransaction(t={}){if(!eq(e_(this)))return;this._name||(h&&y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=t4(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;t.onSpanCaptured?.(this);let s=[];for(let e of ev(this)){var i;if(e===this||(i=e)instanceof ez&&i.isStandaloneSpan()||t.isSpanAlreadyCaptured?.(e))continue;let n=e_(e);eq(n)&&(t.onSpanCaptured?.(e),s.push(n))}let a=this._attributes[tL];delete this._attributes[t$];let o=!1;
4s.forEach(t=>{delete t.data[t$],t.op?.startsWith("gen_ai.")&&(o=!0)});let c={contexts:{trace:eo(this)},spans:s.length>1e3?s.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:eD(this),hasGenAiSpans:o},request:r,...a&&{transaction_info:{source:a}}},u=eH(this._events);return u&&Object.keys(u).length&&(h&&y.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),c.measurements=u),c}}function eJ(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function eq(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function eQ(t,e){let n=e0();return n.withActiveSpan?n.withActiveSpan(t,e):tC(n=>(tf(n,t||void 0),e(n)))}function eZ(t=tA()){let e=e0();return e.isTracingSuppressed?e.isTracingSuppressed(t):!0===t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}function e0(){return tv(d())}function e1(t,e,n,r){let s=tO(),i=s?.getOptions()||{},{name:a=""}=t,o={spanAttributes:{...t.attributes},spanName:a,parentSampled:r};s?.emit("beforeSampling",o,{decision:!1});let c=o.parentSampled??r,u=o.spanAttributes,l=e.getPropagationContext(),p=eZ(e),[d,_,f]=p?[!1]:function(t,e,n){let r,s;if(!tK(t))return[!1];"function"==typeof t.tracesSampler?(r=t.tracesSampler({...e,inheritOrSampleWith:t=>"number"==typeof e.parentSampleRate?e.parentSampleRate:"boolean"==typeof e.parentSampled?Number(e.parentSampled):t}),s=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,s=!0);let i=tz(r);if(void 0===i)return h&&y.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!i)return h&&y.log(`[Tracing] Discarding transaction because ${"function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,s];let a=n<i;return!a&&h&&y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[a,i,s]}(i,{name:a,parentSampled:c,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:tz(l.dsc?.sample_rate)},l.sampleRand),g=new ez({...t,attributes:{[tL]:"custom",[tx]:void 0!==_&&f?_:void 0,...u},sampled:d});return d||!s||p||(h&&y.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),s.recordDroppedEvent("sample_rate",tW(s)?"span":"transaction")),t2(g,e,n),s&&s.emit("spanStart",g),g}function e2(t){return new e3(e=>{e(t)})}function e4(t){return new e3((e,n)=>{n(t)})}t.s(["SentrySpan",0,ez],320648),t.s(["spanIsIgnored",0,function(t){return eP(t)&&"ignored"===t.dropReason},"startInactiveSpan",0,function(t){let e=e0();return e.startInactiveSpan?e.startInactiveSpan(t):function(t){let e=function(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=ep(t.startTime),delete n.startTime,n}return e}(t),{forceTransaction:n,parentSpan:r}=t;return(t.scope?e=>tC(t.scope,e):void 0!==r?t=>eQ(r,t):t=>t())(()=>{var s,i;let a,o=tA(),c=function(t,e){if(e)return e;if(null===e)return;let n=th(t);if(!n)return;let r=tO();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?eA(n):n}(o,r),u=tO();return t.onlyIfParent&&!c?(s=o,i=u,i?.recordDroppedEvent("no_parent_span","span"),t2(a=new ex({traceId:s.getPropagationContext().traceId}),s,tN()),a):function({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var s,i;let a,o,c=tN();if(!tK()){let e={...c.getPropagationContext(),...r.getPropagationContext()},s=new ex({traceId:t?t.spanContext().traceId:e.traceId});return t&&!n&&eb(t,s),t2(s,r,c),s}let u=tO();if(s=u,i=e,a=s?.getOptions().ignoreSpans,s&&tW(s)&&a?.length&&tH({description:i.name||"",op:i.attributes?.[tM]||i.op,attributes:i.attributes},a)){eZ(r)||u?.recordDroppedEvent("ignored","span");let e=new ex({dropReason:"ignored",traceId:t?.spanContext().traceId??r.getPropagationContext().traceId});return t&&!n&&eb(t,e),t2(e,r,c),e}if(t&&!n)o=function(t,e,n,r){let{spanId:s,traceId:i}=t.spanContext(),a=eZ(e),o=!a&&em(t),c=o?new ez({...n,parentSpanId:s,traceId:i,sampled:o}):new ex({traceId:i});eb(t,c),t2(c,e,r);let u=tO();return u&&(tW(u)&&eP(c)&&(eP(t)&&t.dropReason?(c.dropReason=t.dropReason,u.recordDroppedEvent(t.dropReason,"span")):a||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",c),n.endTimestamp&&(u.emit("spanEnd",c),u.emit("afterSpanEnd",c))),c}(t,r,e,c),eb(t,o);else if(t){let n=eD(t),{traceId:s,spanId:i}=t.spanContext(),a=em(t);ek(o=e1({traceId:s,parentSpanId:i,...e},r,c,a),n)}else{let{traceId:t,dsc:n,parentSpanId:s,sampled:i}={...c.getPropagationContext(),...r.getPropagationContext()};o=e1({traceId:t,parentSpanId:s,...e},r,c,i),n&&ek(o,n)}return!function(t){if(!h)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=e_(t),{spanId:s}=t.spanContext(),i=em(t),a=eA(t),o=a===t,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}
4`),!o){let{op:t,description:e}=e_(a);u.push(`root ID: ${a.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}y.log(`${c} 5 ${u.join("\n ")}`)}(o),o}({parentSpan:c,spanArguments:e,forceTransaction:n,scope:o})})}(t)},"startNewTrace",0,function(t){let e=e0();return e.startNewTrace?e.startNewTrace(t):tC(e=>(e.setPropagationContext({traceId:tu(),sampleRand:F()}),h&&y.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),eQ(null,t)))},"withActiveSpan",0,eQ],908817);class e3{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new e3((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new e3((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){let e=(t,e)=>{if(0===this._state){if(P(e))return void e.then(n,r);this._state=t,this._value=e,this._executeHandlers()}},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(t){r(t)}}}function e5(t,e){var n,r,s,i,a,o,c,u;let l,p,{fingerprint:d,span:_,breadcrumbs:f,sdkProcessingMetadata:h}=e;(function(t,e){let{extra:n,tags:r,user:s,contexts:i,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),a&&(t.level=a),o&&"transaction"!==t.type&&(t.transaction=o)})(t,e),_&&((n=t).contexts={trace:ec(r=_),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:eD(r),...n.sdkProcessingMetadata},(l=e_(eA(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=l)),s=t,i=d,s.fingerprint=s.fingerprint?Array.isArray(s.fingerprint)?s.fingerprint:[s.fingerprint]:[],i&&(s.fingerprint=s.fingerprint.concat(i)),s.fingerprint.length||delete s.fingerprint,a=t,o=f,p=[...a.breadcrumbs||[],...o],a.breadcrumbs=p.length?p:void 0,c=t,u=h,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function e8(t,e){let{extra:n,tags:r,attributes:s,user:i,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:p,attachments:d,propagationContext:_,transactionName:f,span:h}=e;e6(t,"extra",n),e6(t,"tags",r),e6(t,"attributes",s),e6(t,"user",i),e6(t,"contexts",a),t.sdkProcessingMetadata=tc(t.sdkProcessingMetadata,c,2),o&&(t.level=o),f&&(t.transactionName=f),h&&(t.span=h),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,..._}}function e6(t,e,n){t[e]=tc(t[e],n,1)}function e7(t,e){let n=tR().getScopeData();return t&&e8(n,t.getScopeData()),e&&e8(n,e.getScopeData()),n}function e9(t){if(t){var e;return(e=t)instanceof tg||"function"==typeof e||Object.keys(t).some(t=>nt.includes(t))?{captureContext:t}:t}}t.s(["rejectedSyncPromise",0,e4,"resolvedSyncPromise",0,e2],980323),t.s(["applyScopeDataToEvent",0,e5,"getCombinedScopeData",0,e7],272536);let nt=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function ne(){let t=tN(),e=tA().getSession()||t.getSession();e&&to(e),nn(),t.setSession()}function nn(){let t=tN(),e=tO(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,e9,"prepareEvent",0,function(t,e,n,r,s,i){var l,d,_;let f,{normalizeDepth:g=3,normalizeMaxBreadth:m=1e3}=t,E={...e,event_id:e.event_id||n.event_id||Z(),timestamp:e.timestamp||tn()},S=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||eO,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);let a=t.request;a?.url&&i&&(a.url=q(a.url,i)),i&&t.exception?.values?.forEach(t=>{t.value&&(t.value=q(t.value,i))})})(E,t),l=E,(d=S).length>0&&(l.sdk=l.sdk||{},l.sdk.integrations=[...l.sdk.integrations||[],...d]),s&&s.emit("applyFrameMetadata",e),void 0===e.type&&(_=E,f=function(t){let e=p._sentryDebugIds,n=p._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(u&&r.length===o&&s.length===c)return u;o=r.length,c=s.length,u={},a||(a={});let i=(e,n)=>{for(let r of e){let e=n[r],s=a?.[r];if(s&&u&&e)u[s[0]]=e,a&&(a[r]=[s[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let s=n[t],i=s?.filename;if(i&&u&&a){u[i]=e,a[r]=[i,e];break}}}}};return e&&i(r,e),n&&i(s,n),u}(t.stackParser),_.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=f[t.filename])})}));let T=function(t,e){if(!e)return t;let n=t?t.clone():new tg;return n.update(e),n}(r,n.captureContext);n.mechanism&&te(E,n.mechanism);let I=s?s.getEventProcessors():[],b=e7(i,T),v=[...n.attachments||[],...b.attachments];v.length&&(n.attachments=v),e5(E,b);let A=[...I,...b.eventProcessors];return(n.data&&!0===n.data.__sentry__?e2(E):function(t,e,n,r=0){try{let s=function t(e,n,r,s){let i=r[s];if(!e||!i)return e;let a=i({...e},n);
5return(h&&null===a&&y.log(`Event processor "${i.id||"?"}" dropped event`),P(a))?a.then(e=>t(e,n,r,s+1)):t(a,n,r,s+1)}(e,n,t,r);return P(s)?s:e2(s)}catch(t){return e4(t)}}(A,E,n)).then(t=>(t&&function(t){let e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof g&&g>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:z(t.data,e,n)}}))},...t.user&&{user:z(t.user,e,n)},...t.contexts&&{contexts:z(t.contexts,e,n)},...t.extra&&{extra:z(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=z(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:z(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=z(t.contexts.flags,3,n)),r}(t,g,m):t)}],929203),t.s(["addEventProcessor",0,function(t){tN().addEventProcessor(t)},"captureEvent",0,function(t,e){return tA().captureEvent(t,e)},"captureException",0,function(t,e){return tA().captureException(t,e9(e))},"captureMessage",0,function(t,e){let n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return tA().captureMessage(t,n,r)},"captureSession",0,function(t=!1){t?ne():nn()},"isEnabled",0,function(){let t=tO();return t?.getOptions().enabled!==!1&&!!t?.getTransport()},"setContext",0,function(t,e){tN().setContext(t,e)},"setUser",0,function(t){tN().setUser(t)},"startSession",0,function(t){let e=tN(),{user:n}=e7(e,tA()),{userAgent:r}=p.navigator||{},s=ti({user:n,...r&&{userAgent:r},...t}),i=e.getSession();return i?.status==="ok"&&ta(i,{status:"exited"}),ne(),e.setSession(s),s}],275885)}]); 6 7//# debugId=95e336cd-d76d-6ede-bfc4-60aac8887db9
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.