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]="6c26de59-f788-c013-e86a-1385e5340066")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,382964,860870,42721,556714,350666,395964,507049,659007,639740,314615,456828,180810,737746,353252,514943,85240,757706,267191,546645,888852,705146,813249,872815,782653,477639,225169,52286,125528,276363,549550,466350,640325,392118,960318,879838,709067,739696,907857,274564,732503,663619,776952,964361,960477,t=>{"use strict";let e,n,r,a,s,o,i,c,u;try{var d="u">typeof window?window:t.g;d._sentryModuleMetadata=d._sentryModuleMetadata||{},d._sentryModuleMetadata[(new d.Error).stack]=Object.assign({},d._sentryModuleMetadata[(new d.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let l="10.59.0";t.s(["SDK_VERSION",0,l],860870);try{var p="u">typeof window?window:t.g;p._sentryModuleMetadata=p._sentryModuleMetadata||{},p._sentryModuleMetadata[(new p.Error).stack]=Object.assign({},p._sentryModuleMetadata[(new p.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let _=globalThis;t.s(["GLOBAL_OBJ",0,_],42721);try{var y="u">typeof window?window:t.g;y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[(new y.Error).stack]=Object.assign({},y._sentryModuleMetadata[(new y.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function g(){return f(_),_}function f(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||l,e[l]=e[l]||{}}function h(t,e,n=_){let r=n.__SENTRY__=n.__SENTRY__||{},a=r[l]=r[l]||{};return a[t]||(a[t]=e())}t.s(["getGlobalSingleton",0,h,"getMainCarrier",0,g,"getSentryCarrier",0,f],556714);try{var m="u">typeof window?window:t.g;m._sentryModuleMetadata=m._sentryModuleMetadata||{},m._sentryModuleMetadata[(new m.Error).stack]=Object.assign({},m._sentryModuleMetadata[(new m.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let M="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;t.s(["DEBUG_BUILD",0,M],350666);try{var S="u">typeof window?window:t.g;S._sentryModuleMetadata=S._sentryModuleMetadata||{},S._sentryModuleMetadata[(new S.Error).stack]=Object.assign({},S._sentryModuleMetadata[(new S.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let w={};function E(t){if(!("console"in _))return t();let e=_.console,n={},r=Object.keys(w);r.forEach(t=>{let r=w[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function b(){return T().enabled}function v(t,...e){M&&b()&&E(()=>{_.console[t](`Sentry Logger [${t}]:`,...e)})}function T(){return M?h("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let k={enable:function(){T().enabled=!0},disable:function(){T().enabled=!1},isEnabled:b,log:function(...t){v("log",...t)},warn:function(...t){v("warn",...t)},error:function(...t){v("error",...t)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,E,"debug",0,k,"originalConsoleMethods",0,w],395964);try{var I="u">typeof window?window:t.g;I._sentryModuleMetadata=I._sentryModuleMetadata||{},I._sentryModuleMetadata[(new I.Error).stack]=Object.assign({},I._sentryModuleMetadata[(new I.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let A=Object.prototype.toString;function x(t){switch(A.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return $(t,Error)}}function O(t,e){return A.call(t)===`[object ${e}]`}function N(t){return O(t,"String")}function P(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function R(t){return null===t||P(t)||"object"!=typeof t&&"function"!=typeof t}function C(t){return O(t,"Object")}function j(t){return"u">typeof Event&&$(t,Event)}function B(t){return O(t,"RegExp")}function D(t){return!!(t?.then&&"function"==typeof t.then)}function $(t,e){try{return t instanceof e}catch{return!1}}t.s(["isDOMError",0,function(t){return O(t,"DOMError")},"isDOMException",0,function(t){return O(t,"DOMException")},"isError",0,x,"isErrorEvent",0,function(t){return O(t,"ErrorEvent")},"isEvent",0,j,"isInstanceOf",0,$,"isParameterizedString",0,P,"isPlainObject",0,C,"isPrimitive",0,R,"isRegExp",0,B,"isRequest",0,function(t){return"u">typeof Request&&$(t,Request)},"isString",0,N,"isThenable",0,D],507049);try{var K="u">typeof window?window:t.g;K._sentryModuleMetadata=K._sentryModuleMetadata||{},K._sentryModuleMetadata[(new K.Error).stack]=Object.assign({},K._sentryModuleMetadata[(new K.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function U(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{M&&k.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function L(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,U(t,"__sentry_original__",e)}catch{}}function F(t){if(x(t))return{message:t.message,name:t.name,stack:t.stack,...Y(t)};
2if(j(t)){let{type:e,target:n,currentTarget:r,detail:a}=t;return{type:e,target:n,currentTarget:r,...a?{detail:a}:{},...Y(t)}}return t}function Y(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}t.s(["addNonEnumerableProperty",0,U,"convertToPlainObject",0,F,"extractExceptionKeysForMessage",0,function(t){let e=Object.keys(F(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 a=n(r);"function"==typeof a&&L(a,r);try{t[e]=a}catch{M&&k.log(`Failed to replace method "${e}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,L],659007);try{var J="u">typeof window?window:t.g;J._sentryModuleMetadata=J._sentryModuleMetadata||{},J._sentryModuleMetadata[(new J.Error).stack]=Object.assign({},J._sentryModuleMetadata[(new J.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function G(t){if(void 0!==e)return e?e(t):t();let n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__");return n in _&&"function"==typeof _[n]?(e=_[n])(t):(e=null,t())}function H(){return G(()=>Math.random())}function z(){return G(()=>Date.now())}t.s(["safeDateNow",0,z,"safeMathRandom",0,H,"withRandomSafeContext",0,G],639740);try{var W="u">typeof window?window:t.g;W._sentryModuleMetadata=W._sentryModuleMetadata||{},W._sentryModuleMetadata[(new W.Error).stack]=Object.assign({},W._sentryModuleMetadata[(new W.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let V=Symbol.for("sentry.skipNormalization"),q=Symbol.for("sentry.overrideNormalizationDepth");try{var X="u">typeof window?window:t.g;X._sentryModuleMetadata=X._sentryModuleMetadata||{},X._sentryModuleMetadata[(new X.Error).stack]=Object.assign({},X._sentryModuleMetadata[(new X.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let Q=/\(error: (.*)\)/,Z=/captureMessage|captureException/;function tt(...t){let e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{let a=[],s=t.split("\n");for(let t=n;t<s.length;t++){let n=s[t];n.length>1024&&(n=n.slice(0,1024));let o=Q.test(n)?n.replace(Q,"$1"):n;if(!o.includes("Error: ")){for(let t of e){let e=t(o);if(e){a.push(e);break}}if(a.length>=50+r)break}}var o=a.slice(r);if(!o.length)return[];let i=Array.from(o);return/sentryWrapped/.test(te(i).function||"")&&i.pop(),i.reverse(),Z.test(te(i).function||"")&&(i.pop(),Z.test(te(i).function||"")&&i.pop()),i.slice(0,50).map(t=>({...t,filename:t.filename||te(i).filename,function:t.function||"?"}))}}function te(t){return t[t.length-1]||{}}let tn="<anonymous>";function tr(t){try{if(!t||"function"!=typeof t)return tn;return t.name||tn}catch{return tn}}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,tt,"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,tr,"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)?tt(...t):t}],314615);try{var ta="u">typeof window?window:t.g;ta._sentryModuleMetadata=ta._sentryModuleMetadata||{},ta._sentryModuleMetadata[(new ta.Error).stack]=Object.assign({},ta._sentryModuleMetadata[(new ta.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function ts(t,e=100,n=1/0){try{return function t(e,n,r=1/0,a=1/0,s=function(){let t=new WeakSet;return[function(e){return!!t.has(e)||(t.add(e),!1)},function(e){t.delete(e)}]}()){let o,[i,c]=s;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;let u=to(e,n);if(!u.startsWith("[object "))return u;if(n[V])return n;let d=(o=n[q],"number"==typeof o?o:void 0),l=void 0!==d?d:r;if(0===l)return u.replace("object ","");if(i(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let e=n.toJSON();return t("",e,l-1,a,s)}catch{}let p=Array.isArray(n)?[]:{},_=0,y=F(n);for(let e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(_>=a){p[e]="[MaxProperties ~]";break}let n=y[e];p[e]=t(e,n,l-1,a,s),_++}return c(n),p}("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function to(e,r){try{var a;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: ${tr(r)}]`;if("symbol"==typeof r)return`[${String(r)}]`;if("bigint"==typeof r)return`[BigInt: ${String(r)}]`;let s=(a=r,e=Object.getPrototypeOf(a),e?.constructor?e.constructor.name:"null prototype");return`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}t.s(["normalize",0,ts,"normalizeToSize",0,function t(e,n=3,r=102400){let a=ts(e,n
2);return~-encodeURI(JSON.stringify(a)).split(/%..|./).length>r?t(e,n-1,r):a},"setNormalizeStringifier",0,function(t){n=t},"stringifyValue",0,to],456828);try{var ti="u">typeof window?window:t.g;ti._sentryModuleMetadata=ti._sentryModuleMetadata||{},ti._sentryModuleMetadata[(new ti.Error).stack]=Object.assign({},ti._sentryModuleMetadata[(new ti.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tc(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function tu(t,e,n=!1){return!!N(t)&&(B(e)?e.test(t):N(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}t.s(["isMatchingPattern",0,tu,"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(to(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 a=Math.max(e-60,0);a<5&&(a=0);let s=Math.min(a+140,r);return s>r-5&&(s=r),s===r&&(a=Math.max(s-140,0)),n=n.slice(a,s),a>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n},"stringMatchesSomePattern",0,function(t,e=[],n=!1){for(let r of e)if(tu(t,r,n))return!0;return!1},"truncate",0,tc],180810);try{var td="u">typeof window?window:t.g;td._sentryModuleMetadata=td._sentryModuleMetadata||{},td._sentryModuleMetadata[(new td.Error).stack]=Object.assign({},td._sentryModuleMetadata[(new td.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tl(t=_.crypto||_.msCrypto){try{if(t?.randomUUID)return G(()=>t.randomUUID()).replace(/-/g,"")}catch{}return r||(r="10000000100040008000100000000000"),r.replace(/[018]/g,t=>(t^(15&16*H())>>t/4).toString(16))}function tp(t){return t.exception?.values?.[0]}function t_(t,e){let n=tp(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}}t.s(["addExceptionMechanism",0,t_,"addExceptionTypeValue",0,function(t,e,n){let r=t.exception=t.exception||{},a=r.values=r.values||[],s=a[0]=a[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")},"checkOrSetAlreadyCaught",0,function(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{U(t,"__sentry_captured__",!0)}catch{}return!1},"getEventDescription",0,function(t){let{message:e,event_id:n}=t;if(e)return e;let r=tp(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},"uuid4",0,tl],737746);try{var ty="u">typeof window?window:t.g;ty._sentryModuleMetadata=ty._sentryModuleMetadata||{},ty._sentryModuleMetadata[(new ty.Error).stack]=Object.assign({},ty._sentryModuleMetadata[(new ty.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tg(){return z()/1e3}function tf(){return(a??(a=function(){let{performance:t}=_;if(!t?.now||!t.timeOrigin)return tg;let e=t.timeOrigin;return()=>(e+G(()=>t.now()))/1e3}()))()}let th=null;t.s(["browserPerformanceTimeOrigin",0,function(){return null===th&&(th=function(){let{performance:t}=_;if(!t?.now)return;let e=G(()=>t.now()),n=z(),r=t.timeOrigin;if("number"==typeof r&&3e5>Math.abs(r+e-n))return r;let a=t.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+e-n)?a:n-e}()),th},"dateTimestampInSeconds",0,tg,"timestampInSeconds",0,tf],353252);try{var tm="u">typeof window?window:t.g;tm._sentryModuleMetadata=tm._sentryModuleMetadata||{},tm._sentryModuleMetadata[(new tm.Error).stack]=Object.assign({},tm._sentryModuleMetadata[(new tm.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tM(t){let e=tf(),n={sid:tl(),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&&tS(n,t),n}function tS(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||tf(),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:tl()),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 tw(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),tS(t,n)}t.s(["closeSession",0,tw,"makeSession",0,tM,"updateSession",0,tS],514943);try{var tE="u">typeof window?window:t.g;tE._sentryModuleMetadata=tE._sentryModuleMetadata||{},tE._sentryModuleMetadata[(new tE.Error).stack]=Object.assign({},tE._sentryModuleMetadata[(new tE.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tb(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]=tb(r[t],e[t],n-1));return r}t.s(["merge",0,tb],85240);try{var tv="u">typeof window?window:t.g;tv._sentryModuleMetadata=tv._sentryModuleMetadata||{},tv._sentryModuleMetadata[(new tv.Error).stack]=Object.assign({},tv._sentryModuleMetadata[(new tv.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tT(){return tl()}function tk(){return tl().substring(16)}t.s(["generateSpanId",0,tk,"generateTraceId",0,tT],757706);try{var tI="u">typeof window?window:t.g;tI._sentryModuleMetadata=tI._sentryModuleMetadata||{},tI._sentryModuleMetadata[(new tI.Error).stack]=Object.assign({},tI._sentryModuleMetadata[(new tI.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tA(t){try{let e=_.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}function tx(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}try{var tO="u">typeof window?window:t.g;tO._sentryModuleMetadata=tO._sentryModuleMetadata||{},tO._sentryModuleMetadata[(new tO.Error).stack]=Object.assign({},tO._sentryModuleMetadata[(new tO.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let tN="_sentrySpan";function tP(t,e){e?U(t,tN,tA(e)):delete t[tN]}function tR(t){return tx(t[tN])}t.s(["_getSpanForScope",0,tR,"_setSpanForScope",0,tP],267191);try{var tC="u">typeof window?window:t.g;
2tC._sentryModuleMetadata=tC._sentryModuleMetadata||{},tC._sentryModuleMetadata[(new tC.Error).stack]=Object.assign({},tC._sentryModuleMetadata[(new tC.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}class tj{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:tT(),sampleRand:H()}}clone(){let t=new tj;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,tP(t,tR(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&&tS(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:a,user:s,contexts:o,level:i,fingerprint:c=[],propagationContext:u,conversationId:d}=(e instanceof tj?e.getScopeData():C(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...a},this._contexts={...this._contexts,...o},s&&Object.keys(s).length&&(this._user=s),i&&(this._level=i),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),d&&(this._conversationId=d),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,tP(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tT(),sampleRand:H()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:tg(),...t,message:t.message?tc(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:tR(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=tb(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){let n=e?.event_id||tl();if(!this._client)return M&&k.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||tl();if(!this._client)return M&&k.warn("No client configured on scope - will not capture message!"),r;let a=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:r},this),r}captureEvent(t,e){let n=t.event_id||e?.event_id||tl();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):M&&k.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)}}try{var tB="u">typeof window?window:t.g;tB._sentryModuleMetadata=tB._sentryModuleMetadata||{},tB._sentryModuleMetadata[(new tB.Error).stack]=Object.assign({},tB._sentryModuleMetadata[(new tB.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var tD="u">typeof window?window:t.g;tD._sentryModuleMetadata=tD._sentryModuleMetadata||{},tD._sentryModuleMetadata[(new tD.Error).stack]=Object.assign({},tD._sentryModuleMetadata[(new tD.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let t$=t=>t instanceof Promise&&!t[tK],tK=Symbol("chained PromiseLike");try{var tU="u">typeof window?window:t.g;tU._sentryModuleMetadata=tU._sentryModuleMetadata||{},tU._sentryModuleMetadata[(new tU.Error).stack]=Object.assign({},tU._sentryModuleMetadata[(new tU.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}class tL{constructor(t,e){let n,r;n=t||new tj,r=e||new tj,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(D(e)){var r,a,s;let t;return r=e,a=()=>this._popScope(),s=()=>this._popScope(),t$(t=r.then(t=>(a(),t),t=>{throw s(),t}))&&t$(r)?t:((t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let a=t[r];"function"==typeof a?Object.defineProperty(e,r,{value:(...e)=>a.apply(t,e),enumerable:!0,configurable:!0,writable:!0}):e[r]=a}return n&&Object.assign(e,{[tK]:!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 tF(){let t=f(g());return t.stack=t.stack||new tL(h("defaultCurrentScope",()=>new tj),h("defaultIsolationScope",()=>new tj))}function tY(t){return tF().withScope(t)}function tJ(t,e){let n=tF();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function tG(t){return tF().withScope(()=>t(tF().getIsolationScope()))}try{var tH="u">typeof window?window:t.g;tH._sentryModuleMetadata=tH._sentryModuleMetadata||{},tH._sentryModuleMetadata[(new tH.Error).stack]=Object.assign({},tH._sentryModuleMetadata[(new tH.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tz(t){let e=f(t);return e.acs?e.acs:{withIsolationScope:tG,withScope:tY,withSetScope:tJ,withSetIsolationScope:(t,e)=>tG(e),getCurrentScope:()=>tF().getScope(),getIsolationScope:()=>tF().getIsolationScope()}}t.s(["getAsyncContextStrategy",0,tz],546645);try{var tW="u">typeof window?window:t.g;tW._sentryModuleMetadata=tW._sentryModuleMetadata||{},tW._sentryModuleMetadata[(new tW.Error).stack]=Object.assign({},tW._sentryModuleMetadata[(new tW.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function tV(){return tz(g()).getCurrentScope()}function tq(){return tz(g()).getIsolationScope()}function tX(){return h("globalScope",()=>new tj)}function tQ(...t){let e=tz(g());if(2===t.length){let[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}function tZ(){return tV().getClient()}t.s(["getClient",0,tZ,"getCurrentScope",0,tV,"getGlobalScope",0,tX,"getIsolationScope",0,tq,"getTraceContextFromScope",0,function(t){let e=s?.();if(e)return{trace_id:e.traceId,span_id:e.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:a}=t.getPropagationContext(),o={trace_id:n,span_id:a||tk()};return r&&(o.parent_span_id=r),o},"hasExternalPropagationContext",0,function(){return void 0!==s},"withIsolationScope",0,function(...t){let e=tz(g());if(2===t.length){let[n,r]=t;return n?e.withSetIsolationScope(n,r):e.withIsolationScope(r)}return e.withIsolationScope(t[0])},"withScope",0,tQ],888852);try{var t0="u">typeof window?window:t.g;t0._sentryModuleMetadata=t0._sentryModuleMetadata||{},t0._sentryModuleMetadata[(new t0.Error).stack]=Object.assign({},t0._sentryModuleMetadata[(new t0.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let t1="sentry.source",t6="sentry.sample_rate",t2="sentry.previous_trace_sample_rate",t5="sentry.op",t3="sentry.origin",t4="sentry.measurement_unit",t7="sentry.measurement_value",t9="sentry.custom_span_name",t8="sentry.profile_id",et="sentry.exclusive_time";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,et,"SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,t8,"SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,t9,"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,t4,"SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,t7,"SEMANTIC_ATTRIBUTE_SENTRY_OP",0,t5,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,t3,"SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,t2,"SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,t6,"SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS",0,"sentry.sdk.integrations","SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME",0,"sentry.sdk.name","SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION",0,"sentry.sdk.version","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID",0,"sentry.segment.id","SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME",0,"sentry.segment.name","SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",0,t1,"SEMANTIC_ATTRIBUTE_URL_FULL",0,"url.full","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"],705146);try{var ee="u">typeof window?window:t.g;ee._sentryModuleMetadata=ee._sentryModuleMetadata||{},ee._sentryModuleMetadata[(new ee.Error).stack]=Object.assign({},ee._sentryModuleMetadata[(new ee.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let en="sentry-";function er(t){let e=ea(t);if(!e)return;let n=Object.entries(e).reduce((t,[e,n])=>(e.startsWith(en)&&(t[e.slice(en.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function ea(t){if(t&&(N(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>
2(Object.entries(es(e)).forEach(([e,n])=>{t[e]=n}),t),{}):es(t)}function es(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),{})}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,en,"baggageHeaderToDynamicSamplingContext",0,er,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,[e,n])=>(n&&(t[`${en}${e}`]=n),t),{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,[e,n],r)=>{let a=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?a:`${t},${a}`;return s.length>8192?(M&&k.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},""):void 0}},"parseBaggageHeader",0,ea],813249);try{var eo="u">typeof window?window:t.g;eo._sentryModuleMetadata=eo._sentryModuleMetadata||{},eo._sentryModuleMetadata[(new eo.Error).stack]=Object.assign({},eo._sentryModuleMetadata[(new eo.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var ei="u">typeof window?window:t.g;ei._sentryModuleMetadata=ei._sentryModuleMetadata||{},ei._sentryModuleMetadata[(new ei.Error).stack]=Object.assign({},ei._sentryModuleMetadata[(new ei.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function ec(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let e=t||tZ()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}t.s(["hasSpansEnabled",0,ec],872815);try{var eu="u">typeof window?window:t.g;eu._sentryModuleMetadata=eu._sentryModuleMetadata||{},eu._sentryModuleMetadata[(new eu.Error).stack]=Object.assign({},eu._sentryModuleMetadata[(new eu.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function ed(t){k.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function el(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&&tu(t.description,r))return M&&ed(t),!0;continue}let e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;let a=!r.name||t.description&&tu(t.description,r.name),s=!r.op||t.op&&tu(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([e,n])=>(function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?tu(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(a&&s&&o)return M&&ed(t),!0}return!1}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,el],782653);try{var ep="u">typeof window?window:t.g;ep._sentryModuleMetadata=ep._sentryModuleMetadata||{},ep._sentryModuleMetadata[(new ep.Error).stack]=Object.assign({},ep._sentryModuleMetadata[(new ep.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function e_(t){return"stream"===t.getOptions().traceLifecycle}t.s(["hasSpanStreamingEnabled",0,e_],477639);try{var ey="u">typeof window?window:t.g;ey._sentryModuleMetadata=ey._sentryModuleMetadata||{},ey._sentryModuleMetadata[(new ey.Error).stack]=Object.assign({},ey._sentryModuleMetadata[(new ey.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function eg(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}t.s(["parseSampleRate",0,eg],225169);try{var ef="u">typeof window?window:t.g;ef._sentryModuleMetadata=ef._sentryModuleMetadata||{},ef._sentryModuleMetadata[(new ef.Error).stack]=Object.assign({},ef._sentryModuleMetadata[(new ef.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function eh(t,e=!1){let n={};for(let[r,a]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},a=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),s=r&&"string"==typeof r?{unit:r}:{};if(a)return{...a,...s};if(!e||"skip-undefined"===e&&void 0===n)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...s}}(a,e);t&&(n[r]=t)}return n}t.s(["serializeAttributes",0,eh],52286);try{var em="u">typeof window?window:t.g;em._sentryModuleMetadata=em._sentryModuleMetadata||{},em._sentryModuleMetadata[(new em.Error).stack]=Object.assign({},em._sentryModuleMetadata[(new em.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}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)}],125528);try{var eM="u">typeof window?window:t.g;eM._sentryModuleMetadata=eM._sentryModuleMetadata||{},eM._sentryModuleMetadata[(new eM.Error).stack]=Object.assign({},eM._sentryModuleMetadata[(new eM.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let eS="_sentryScope",ew="_sentryIsolationScope";function eE(t,e,n){t&&(U(t,ew,tA(n)),U(t,eS,e))}function eb(t){return{scope:t[eS],isolationScope:tx(t[ew])}}
2t.s(["getCapturedScopesOnSpan",0,eb,"setCapturedScopesOnSpan",0,eE],276363);try{var ev="u">typeof window?window:t.g;ev._sentryModuleMetadata=ev._sentryModuleMetadata||{},ev._sentryModuleMetadata[(new ev.Error).stack]=Object.assign({},ev._sentryModuleMetadata[(new ev.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let eT=/^o(\d+)\./,ek=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function eI(t,e=!1){let{host:n,path:r,pass:a,port:s,projectId:o,protocol:i,publicKey:c}=t;return`${i}://${c}${e&&a?`:${a}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function eA(t){let e=ek.exec(t);if(!e)return void E(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,a="",s="",o="",i=""]=e.slice(1),c="",u=i,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let t=u.match(/^\d+/);t&&(u=t[0])}return ex({host:s,pass:a,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function ex(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function eO(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(eT),e=t?.[1])}return e}t.s(["dsnFromString",0,eA,"dsnToString",0,eI,"extractOrgIdFromClient",0,eO,"makeDsn",0,function(t){let e="string"==typeof t?eA(t):ex(t);if(e&&function(t){if(!M)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(k.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(k.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(k.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(k.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],549550);try{var eN="u">typeof window?window:t.g;eN._sentryModuleMetadata=eN._sentryModuleMetadata||{},eN._sentryModuleMetadata[(new eN.Error).stack]=Object.assign({},eN._sentryModuleMetadata[(new eN.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let eP=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function eR(t=tT(),e=tk(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function eC(t=tT(),e=tk(),n){return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,eP,"generateSentryTraceHeader",0,eR,"generateTraceparentHeader",0,eC,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(eP);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=er(e);if(!n?.traceId)return{traceId:tT(),sampleRand:H()};let a=function(t,e){let n=eg(e?.sample_rand);if(void 0!==n)return n;let r=eg(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?H()*r:r+H()*(1-r):H()}(n,r);r&&(r.sample_rand=a.toString());let{traceId:s,parentSpanId:o,parentSampled:i}=n;return{traceId:s,parentSpanId:o,sampled:i,dsc:r||{},sampleRand:a}},"shouldContinueTrace",0,function(t,e){let n=eO(t);return e&&n&&e!==n?(k.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)||(k.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],466350);try{var ej="u">typeof window?window:t.g;ej._sentryModuleMetadata=ej._sentryModuleMetadata||{},ej._sentryModuleMetadata[(new ej.Error).stack]=Object.assign({},ej._sentryModuleMetadata[(new ej.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let eB=!1;function eD(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:a,parent_span_id:s,status:o,origin:i,links:c}=eY(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:a,status:o,origin:i,links:c}}function e$(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),a=r?e:eY(t).parent_span_id,s=eb(t).scope;return{parent_span_id:a,span_id:r?s?.getPropagationContext().propagationSpanId||tk():e,trace_id:n}}function eK(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:a})=>({span_id:t,trace_id:e,sampled:1===n,attributes:a,...r})):void 0}function eU(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 eL(t){return"number"==typeof t?eF(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?eF(t.getTime()):tf()}function eF(t){return t>0x2540be3ff?t/1e3:t}function eY(t){if(eH(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(eG(t)){let{attributes:r,startTime:a,name:s,endTime:o,status:i,links:c}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:eJ(t),start_timestamp:eL(a),timestamp:eL(o)||void 0,status:eW(i),op:r[t5],origin:r[t3],links:eK(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function eJ(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function eG(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function eH(t){return"function"==typeof t.getSpanJSON}function ez(t){let{traceFlags:e}=t.spanContext();return 1===e}function eW(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function eV(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}let eq="_sentryChildSpans",eX="_sentryRootSpan";function eQ(t,e){let n=t[eX]||t;U(e,eX,n),t[eq]?t[eq].add(e):U(t,eq,new Set([e]))}function eZ(t){let e=new Set;return!function t(n){if(!e.has(n)&&ez(n))for(let r of(e.add(n),n[eq]?Array.from(n[eq]):[]))t(r)}(t),Array.from(e)}let e0=e1;function e1(t){return t[eX]||t}function e6(){let t=tz(g());return t.getActiveSpan?t.getActiveSpan():tR(tV())}function e2(){eB||(E(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),eB=!0)}t.s(["INTERNAL_getSegmentSpan",0,e1,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,eQ,"convertSpanLinksForEnvelope",0,eK,"getActiveSpan",0,e6,"getRootSpan",0,e0,"getSimpleStatusMessage",0,eV,"getSpanDescendants",0,eZ,"getStatusMessage",0,eW,"getStreamedSpanLinks",0,eU,"removeChildSpanFromSpan",0,function(t,e){t[eq]&&t[eq].delete(e)},"showSpanDropWarning",0,e2,"spanIsSampled",0,ez,"spanTimeInputToSeconds",0,eL,"spanToJSON",0,eY,"spanToStreamedSpanJSON",0,function(t){if(eH(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(eG(t)){let{attributes:r,startTime:a,name:s,endTime:o,status:i,links:c}=t;return{name:s,span_id:e,trace_id:n,parent_span_id:eJ(t),start_timestamp:eL(a),end_timestamp:eL(o),is_segment:t===e1(t),status:eV(i),attributes:r,links:eU(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===e1(t)}},"spanToTraceContext",0,e$,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return eR(e,n,ez(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return eC(e,n,ez(t))},"spanToTransactionTraceContext",0,eD,"streamedSpanJsonToSerializedSpan",0,function(t){return{...t,attributes:eh(t.attributes),links:t.links?.map(t=>({...t,attributes:eh(t.attributes)}))}}],640325);try{var e5="u">typeof window?window:t.g;e5._sentryModuleMetadata=e5._sentryModuleMetadata||{},e5._sentryModuleMetadata[(new e5.Error).stack]=Object.assign({},e5._sentryModuleMetadata[(new e5.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let e3="production";t.s(["DEFAULT_ENVIRONMENT",0,e3],392118);try{var e4="u">typeof window?window:t.g;e4._sentryModuleMetadata=e4._sentryModuleMetadata||{},e4._sentryModuleMetadata[(new e4.Error).stack]=Object.assign({},e4._sentryModuleMetadata[(new e4.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let e7=Symbol.for("sentry.nonRecordingSpan");class e9{constructor(t={}){this._traceId=t.traceId||tT(),this._spanId=t.spanId||tk(),this.dropReason=t.dropReason,U(this,e7,!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 e8(t){return!!t&&!0===t[e7]}t.s(["SentryNonRecordingSpan",0,e9,"spanIsNonRecordingSpan",0,e8],960318);try{var nt="u">typeof window?window:t.g;nt._sentryModuleMetadata=nt._sentryModuleMetadata||{},nt._sentryModuleMetadata[(new nt.Error).stack]=Object.assign({},nt._sentryModuleMetadata[(new nt.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}let ne="_frozenDsc";function nn(t,e){U(t,ne,e)}function nr(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},a={environment:n.environment||e3,release:n.release,public_key:r,trace_id:t,org_id:eO(e)};return e.emit("createDsc",a),a}function na(t,e){let n=e.getPropagationContext();return n.dsc||nr(n.traceId,t)}function ns(t){let e=tZ();if(!e)return{};let n=e0(t),r=eY(n),a=r.data,s=n.spanContext().traceState,o=s?.get("sentry.sample_rate")??a[t6]??a[t2];function i(t){return("number"==typeof o||"string"==typeof o)&&(t.sample_rate=`${o}`),t}let c=n[ne];if(c)return i(c);if(e8(n)&&!ec(e.getOptions())){let t=eb(n).scope;if(t)return i({...na(e,t)})}let u=s?.get("sentry.dsc"),d=u&&er(u);if(d)return i(d);let l=nr(t.spanContext().traceId,e),p=a[t1]??a["sentry.span.source"],_=r.description;return"url"!==p&&_&&(l.transaction=_),ec()&&(l.sampled=String(ez(n)),l.sample_rand=s?.get("sentry.sample_rand")??eb(n).scope?.getPropagationContext().sampleRand.toString()),i(l),e.emit("createDsc",l,n),l}t.s(["freezeDscOnSpan",0,nn,"getDynamicSamplingContextFromScope",0,na,"getDynamicSamplingContextFromSpan",0,ns],879838);try{var no="u">typeof window?window:t.g;no._sentryModuleMetadata=no._sentryModuleMetadata||{},no._sentryModuleMetadata[(new no.Error).stack]=Object.assign({},no._sentryModuleMetadata[(new no.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var ni="u">typeof window?window:t.g;ni._sentryModuleMetadata=ni._sentryModuleMetadata||{},ni._sentryModuleMetadata[(new ni.Error).stack]=Object.assign({},ni._sentryModuleMetadata[(new ni.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var nc="u">typeof window?window:t.g;nc._sentryModuleMetadata=nc._sentryModuleMetadata||{},nc._sentryModuleMetadata[(new nc.Error).stack]=Object.assign({},nc._sentryModuleMetadata[(new nc.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nu(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}t.s(["isStreamedBeforeSendSpanCallback",0,nu],709067);try{var nd="u">typeof window?window:t.g;nd._sentryModuleMetadata=nd._sentryModuleMetadata||{},nd._sentryModuleMetadata[(new nd.Error).stack]=Object.assign({},nd._sentryModuleMetadata[(new nd.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nl(t,e=[]){return[t,e]}function np(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function n_(t){let e=f(_);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function ny(t){return[{type:"span"},t]}let ng={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 nf(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function nh(t,e,n,r){let a=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(z()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:eI(r)},...a&&{trace:a}}}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?n_(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,nl,"createEventEnvelopeHeaders",0,nh,"createSpanEnvelopeItem",0,ny,"envelopeContainsItemType",0,function(t,e){return np(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return t in ng?ng[t]:t},"forEachEnvelopeItem",0,np,"getSdkMetadataForEnvelopeHeader",0,nf,"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function a(t){"string"==typeof r?r="string"==typeof t?r+t:[n_(r),t]:r.push("string"==typeof t?n_(t):t)}for(let t of n){let[e,n]=t;if(a(` 3${JSON.stringify(e)} 4`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(ts(n))}a(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)}],739696);try{var nm="u">typeof window?window:t.g;nm._sentryModuleMetadata=nm._sentryModuleMetadata||{},nm._sentryModuleMetadata[(new nm.Error).stack]=Object.assign({},nm._sentryModuleMetadata[(new nm.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nM(t,e){let n=ns(t[0]),r=e?.getDsn(),a=e?.getOptions().tunnel,s={sent_at:new Date(z()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!a&&r&&{dsn:eI(r)}},{beforeSendSpan:o,ignoreSpans:i}=e?.getOptions()||{},c=i?.length?t.filter(t=>{let e=eY(t);return!el({description:e.description,op:e.op,attributes:e.data},i)}):t,u=t.length-c.length;u&&e?.recordDroppedEvent("before_send","span",u);let d=o?t=>
4{let e=eY(t),n=nu(o)?e:o(e);return n||(e2(),e)}:eY,l=[];for(let t of c){let e=d(t);e&&l.push(ny(e))}return nl(s,l)}t.s(["createEventEnvelope",0,function(t,e,n,r){let a=nf(n),s=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 o=nh(t,a,r,e);return delete t.sdkProcessingMetadata,nl(o,[[{type:s},t]])},"createSessionEnvelope",0,function(t,e,n,r){let a=nf(n);return nl({sent_at:new Date(z()).toISOString(),...a&&{sdk:a},...!!r&&e&&{dsn:eI(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,nM],907857);try{var nS="u">typeof window?window:t.g;nS._sentryModuleMetadata=nS._sentryModuleMetadata||{},nS._sentryModuleMetadata[(new nS.Error).stack]=Object.assign({},nS._sentryModuleMetadata[(new nS.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nw(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[t4],a=n[t7];"string"==typeof r&&"number"==typeof a&&(e[t.name]={value:a,unit:r})}),e}t.s(["setMeasurement",0,function(t,e,n,r=e6()){let a=r&&e0(r);a&&(M&&k.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),a.addEvent(t,{[t7]:e,[t4]:n}))},"timedEventsToMeasurements",0,nw],274564);try{var nE="u">typeof window?window:t.g;nE._sentryModuleMetadata=nE._sentryModuleMetadata||{},nE._sentryModuleMetadata[(new nE.Error).stack]=Object.assign({},nE._sentryModuleMetadata[(new nE.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}class nb{constructor(t={}){this._traceId=t.traceId||tT(),this._spanId=t.spanId||tk(),this._startTime=t.startTimestamp||tf(),this._links=t.links,this._attributes={},this.setAttributes({[t3]:"manual",[t5]: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._links?this._links.push(t):this._links=[t],this}addLinks(t){return 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 void 0===e?delete this._attributes[t]:this._attributes[t]=e,this}setAttributes(t){return Object.keys(t).forEach(e=>this.setAttribute(e,t[e])),this}updateStartTime(t){this._startTime=eL(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(t1,"custom"),this}end(t){this._endTime||(this._endTime=eL(t),function(t){if(!M)return;let{description:e="< unknown name >",op:n="< unknown op >"}=eY(t),{spanId:r}=t.spanContext(),a=e0(t)===t,s=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${e}" with ID ${r}`;k.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[t5],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:eW(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[t3],profile_id:this._attributes[t8],exclusive_time:this._attributes[et],measurements:nw(this._events),is_segment:this._isStandaloneSpan&&e0(this)===this||void 0,segment_id:this._isStandaloneSpan?e0(this).spanContext().spanId:void 0,links:eK(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===e0(this),status:eV(this._status),attributes:this._attributes,links:eU(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){M&&k.log("[Tracing] Adding an event to span:",t);let r=nv(e)?e:n||tf(),a=nv(e)?{}:e||{}
4,s={name:t,time:eL(r),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=tZ();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===e0(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=tZ();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(nM([this],t)):(M&&k.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(t&&e_(t))return void t.emit("afterSegmentSpanEnd",this);let e=this._convertSpanToTransaction();e&&(eb(this).scope||tV()).captureEvent(e)}_convertSpanToTransaction(){if(!nT(eY(this)))return;this._name||(M&&k.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:e}=eb(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=eZ(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof nb&&e.isStandaloneSpan())}).map(t=>eY(t)).filter(nT),a=this._attributes[t1];delete this._attributes[t9];let s=!1;r.forEach(t=>{delete t.data[t9],t.op?.startsWith("gen_ai.")&&(s=!0)});let o={contexts:{trace:eD(this)},spans:r.length>1e3?r.sort((t,e)=>t.start_timestamp-e.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,dynamicSamplingContext:ns(this),hasGenAiSpans:s},request:n,...a&&{transaction_info:{source:a}}},i=nw(this._events);return i&&Object.keys(i).length&&(M&&k.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),o.measurements=i),o}}function nv(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function nT(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}t.s(["SentrySpan",0,nb],732503);try{var nk="u">typeof window?window:t.g;nk._sentryModuleMetadata=nk._sentryModuleMetadata||{},nk._sentryModuleMetadata[(new nk.Error).stack]=Object.assign({},nk._sentryModuleMetadata[(new nk.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nI(t,e){let n=tz(g());return n.withActiveSpan?n.withActiveSpan(t,e):tQ(n=>(tP(n,t||void 0),e(n)))}function nA(t,e,n,r){let a=tZ(),s=a?.getOptions()||{},{name:o=""}=t,i={spanAttributes:{...t.attributes},spanName:o,parentSampled:r};a?.emit("beforeSampling",i,{decision:!1});let c=i.parentSampled??r,u=i.spanAttributes,d=e.getPropagationContext(),l=nx(e),[p,_,y]=l?[!1]:function(t,e,n){let r,a;if(!ec(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}),a=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,a=!0);let s=eg(r);if(void 0===s)return M&&k.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(!s)return M&&k.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,s,a];let o=n<s;return!o&&M&&k.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,s,a]}(s,{name:o,parentSampled:c,attributes:u,parentSampleRate:eg(d.dsc?.sample_rate)},d.sampleRand),g=new nb({...t,attributes:{[t1]:"custom",[t6]:void 0!==_&&y?_:void 0,...u},sampled:p});return p||!a||l||(M&&k.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",e_(a)?"span":"transaction")),eE(g,e,n),a&&a.emit("spanStart",g),g}function nx(t){return!0===t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}t.s(["startInactiveSpan",0,function(t){let e=tz(g());if(e.startInactiveSpan)return e.startInactiveSpan(t);
4let n=function(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=eL(t.startTime),delete n.startTime,n}return e}(t),{forceTransaction:r,parentSpan:a}=t;return(t.scope?e=>tQ(t.scope,e):void 0!==a?t=>nI(a,t):t=>t())(()=>{var e,s;let o,i=tV(),c=function(t,e){if(e)return e;if(null===e)return;let n=tR(t);if(!n)return;let r=tZ();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?e0(n):n}(i,a),u=tZ();return t.onlyIfParent&&!c?(e=i,s=u,s?.recordDroppedEvent("no_parent_span","span"),eE(o=new e9({traceId:e.getPropagationContext().traceId}),e,tq()),o):function({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){var a,s;let o,i,c=tq();if(!ec()){let e={...c.getPropagationContext(),...r.getPropagationContext()},a=new e9({traceId:t?t.spanContext().traceId:e.traceId});return t&&!n&&eQ(t,a),eE(a,r,c),a}let u=tZ();if(a=u,s=e,o=a?.getOptions().ignoreSpans,a&&e_(a)&&o?.length&&el({description:s.name||"",op:s.attributes?.[t5]||s.op,attributes:s.attributes},o)){nx(r)||u?.recordDroppedEvent("ignored","span");let e=new e9({dropReason:"ignored",traceId:t?.spanContext().traceId??r.getPropagationContext().traceId});return eE(e,r,c),e}if(t&&!n)i=function(t,e,n,r){let{spanId:a,traceId:s}=t.spanContext(),o=nx(e),i=!o&&ez(t),c=i?new nb({...n,parentSpanId:a,traceId:s,sampled:i}):new e9({traceId:s});eQ(t,c),eE(c,e,r);let u=tZ();return u&&(e_(u)&&e8(c)&&(e8(t)&&t.dropReason?(c.dropReason=t.dropReason,u.recordDroppedEvent(t.dropReason,"span")):o||(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),eQ(t,i);else if(t){let n=ns(t),{traceId:a,spanId:s}=t.spanContext(),o=ez(t);nn(i=nA({traceId:a,parentSpanId:s,...e},r,c,o),n)}else{let{traceId:t,dsc:n,parentSpanId:a,sampled:s}={...c.getPropagationContext(),...r.getPropagationContext()};i=nA({traceId:t,parentSpanId:a,...e},r,c,s),n&&nn(i,n)}return!function(t){if(!M)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=eY(t),{spanId:a}=t.spanContext(),s=ez(t),o=e0(t),i=o===t,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${i?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${a}`];if(r&&u.push(`parent ID: ${r}`),!i){let{op:t,description:e}=eY(o);u.push(`root ID: ${o.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}k.log(`${c} 5 ${u.join("\n ")}`)}(i),i}({parentSpan:c,spanArguments:n,forceTransaction:r,scope:i})})},"startNewTrace",0,function(t){let e=tz(g());return e.startNewTrace?e.startNewTrace(t):tQ(e=>(e.setPropagationContext({traceId:tT(),sampleRand:H()}),M&&k.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),nI(null,t)))},"withActiveSpan",0,nI],663619);try{var nO="u">typeof window?window:t.g;nO._sentryModuleMetadata=nO._sentryModuleMetadata||{},nO._sentryModuleMetadata[(new nO.Error).stack]=Object.assign({},nO._sentryModuleMetadata[(new nO.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nN(t){return new nR(e=>{e(t)})}function nP(t){return new nR((e,n)=>{n(t)})}class nR{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new nR((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 nR((e,n)=>{let r,a;return this.then(e=>{a=!1,r=e,t&&t()},e=>{a=!0,r=e,t&&t()}).then(()=>{a?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(D(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)}}}t.s(["rejectedSyncPromise",0,nP,"resolvedSyncPromise",0,nN],776952);try{var nC="u">typeof window?window:t.g;nC._sentryModuleMetadata=nC._sentryModuleMetadata||{},nC._sentryModuleMetadata[(new nC.Error).stack]=Object.assign({},nC._sentryModuleMetadata[(new nC.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var nj="u">typeof window?window:t.g;nj._sentryModuleMetadata=nj._sentryModuleMetadata||{},nj._sentryModuleMetadata[(new nj.Error).stack]=Object.assign({},nj._sentryModuleMetadata[(new nj.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}try{var nB="u">typeof window?window:t.g;nB._sentryModuleMetadata=nB._sentryModuleMetadata||{},nB._sentryModuleMetadata[(new nB.Error).stack]=Object.assign({},nB._sentryModuleMetadata[(new nB.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nD(t,e){var n,r,a,s,o,i,c,u;let d,l,{fingerprint:p,span:_,breadcrumbs:y,sdkProcessingMetadata:g}=e;(function(t,e){let{extra:n,tags:r,user:a,contexts:s,level:o,transactionName:i}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(a).length&&(t.user={...a,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),o&&(t.level=o),i&&"transaction"!==t.type&&(t.transaction=i)})(t,e),_&&((n=t).contexts={trace:e$(r=_),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:ns(r),...n.sdkProcessingMetadata},(d=eY(e0(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=d)),a=t,s=p,a.fingerprint=a.fingerprint?Array.isArray(a.fingerprint)?a.fingerprint:[a.fingerprint]:[],s&&(a.fingerprint=a.fingerprint.concat(s)),a.fingerprint.length||delete a.fingerprint,o=t,i=y,l=[...o.breadcrumbs||[],...i],o.breadcrumbs=l.length?l:void 0,c=t,u=g,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function n$(t,e){let{extra:n,tags:r,attributes:a,user:s,contexts:o,level:i,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:_,transactionName:y,span:g}=e;nK(t,"extra",n),nK(t,"tags",r),nK(t,"attributes",a),nK(t,"user",s),nK(t,"contexts",o),t.sdkProcessingMetadata=tb(t.sdkProcessingMetadata,c,2),i&&(t.level=i),y&&(t.transactionName=y),g&&(t.span=g),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,..._}}function nK(t,e,n){t[e]=tb(t[e],n,1)}function nU(t,e){let n=tX().getScopeData();return t&&n$(n,t.getScopeData()),e&&n$(n,e.getScopeData()),n}
5t.s(["applyScopeDataToEvent",0,nD,"getCombinedScopeData",0,nU],964361);try{var nL="u">typeof window?window:t.g;nL._sentryModuleMetadata=nL._sentryModuleMetadata||{},nL._sentryModuleMetadata[(new nL.Error).stack]=Object.assign({},nL._sentryModuleMetadata[(new nL.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nF(t){if(t){var e;return(e=t)instanceof tj||"function"==typeof e||Object.keys(t).some(t=>nY.includes(t))?{captureContext:t}:t}}let nY=["user","level","extra","contexts","tags","fingerprint","propagationContext"];t.s(["parseEventHintOrCaptureContext",0,nF,"prepareEvent",0,function(t,e,n,r,a,s){var d,l,p;let y,{normalizeDepth:g=3,normalizeMaxBreadth:f=1e3}=t,h={...e,event_id:e.event_id||n.event_id||tl(),timestamp:e.timestamp||tg()},m=n.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:a,maxValueLength:s}=e;t.environment=t.environment||n||e3,!t.release&&r&&(t.release=r),!t.dist&&a&&(t.dist=a);let o=t.request;o?.url&&s&&(o.url=tc(o.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=tc(t.value,s))})})(h,t),d=h,(l=m).length>0&&(d.sdk=d.sdk||{},d.sdk.integrations=[...d.sdk.integrations||[],...l]),a&&a.emit("applyFrameMetadata",e),void 0===e.type&&(p=h,y=function(t){let e=_._sentryDebugIds,n=_._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],a=n?Object.keys(n):[];if(u&&r.length===i&&a.length===c)return u;i=r.length,c=a.length,u={},o||(o={});let s=(e,n)=>{for(let r of e){let e=n[r],a=o?.[r];if(a&&u&&e)u[a[0]]=e,o&&(o[r]=[a[0],e]);else if(e){let n=t(r);for(let t=n.length-1;t>=0;t--){let a=n[t],s=a?.filename;if(s&&u&&o){u[s]=e,o[r]=[s,e];break}}}}};return e&&s(r,e),n&&s(a,n),u}(t.stackParser),p.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=y[t.filename])})}));let S=function(t,e){if(!e)return t;let n=t?t.clone():new tj;return n.update(e),n}(r,n.captureContext);n.mechanism&&t_(h,n.mechanism);let w=a?a.getEventProcessors():[],E=nU(s,S),b=[...n.attachments||[],...E.attachments];b.length&&(n.attachments=b),nD(h,E);let v=[...w,...E.eventProcessors];return(n.data&&!0===n.data.__sentry__?nN(h):function(t,e,n,r=0){try{let a=function t(e,n,r,a){let s=r[a];if(!e||!s)return e;let o=s({...e},n);return(M&&null===o&&k.log(`Event processor "${s.id||"?"}" dropped event`),D(o))?o.then(e=>t(e,n,r,a+1)):t(o,n,r,a+1)}(e,n,t,r);return D(a)?a:nN(a)}catch(t){return nP(t)}}(v,h,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:ts(t.data,e,n)}}))},...t.user&&{user:ts(t.user,e,n)},...t.contexts&&{contexts:ts(t.contexts,e,n)},...t.extra&&{extra:ts(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ts(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:ts(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=ts(t.contexts.flags,3,n)),r}(t,g,f):t)}],960477);try{var nJ="u">typeof window?window:t.g;nJ._sentryModuleMetadata=nJ._sentryModuleMetadata||{},nJ._sentryModuleMetadata[(new nJ.Error).stack]=Object.assign({},nJ._sentryModuleMetadata[(new nJ.Error).stack],{"_sentryBundlerPluginAppKey:storytelcom":!0})}catch(t){}function nG(){let t=tq(),e=tV().getSession()||t.getSession();e&&tw(e),nH(),t.setSession()}function nH(){let t=tq(),e=tZ(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["addEventProcessor",0,function(t){tq().addEventProcessor(t)},"captureEvent",0,function(t,e){return tV().captureEvent(t,e)},"captureException",0,function(t,e){return tV().captureException(t,nF(e))},"captureSession",0,function(t=!1){t?nG():nH()},"isEnabled",0,function(){let t=tZ();return t?.getOptions().enabled!==!1&&!!t?.getTransport()},"setContext",0,function(t,e){tq().setContext(t,e)},"setUser",0,function(t){tq().setUser(t)},"startSession",0,function(t){let e=tq(),{user:n}=nU(e,tV()),{userAgent:r}=_.navigator||{},a=tM({user:n,...r&&{userAgent:r},...t}),s=e.getSession();return s?.status==="ok"&&tS(s,{status:"exited"}),nG(),e.setSession(a),a}],382964)}]); 6 7//# debugId=6c26de59-f788-c013-e86a-1385e5340066
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.