PageSourceSearch

https://cdn.litres.ru/_next/static/chunks/1fexwfkg8-58w.js

js litres.ru collected 2026-09-24 08:24:02 UTC 63,470 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,330826,t=>{"use strict";var e=t.i(800987),n=t.i(336017);function r(t){let n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||e.SDK_VERSION,n[e.SDK_VERSION]=n[e.SDK_VERSION]||{}}t.s(["getGlobalSingleton",0,function(t,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.GLOBAL_OBJ,s=i.__SENTRY__=i.__SENTRY__||{},a=s[e.SDK_VERSION]=s[e.SDK_VERSION]||{};return a[t]||(a[t]=r())},"getMainCarrier",0,function(){return r(n.GLOBAL_OBJ),n.GLOBAL_OBJ},"getSentryCarrier",0,r])},666041,365330,338640,790122,121492,408702,645968,867997,t=>{"use strict";let e;var n=t.i(330826),r=t.i(245859),i=t.i(981379),s=t.i(720994);function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,s.timestampInSeconds)(),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:(0,i.uuid4)()),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)}t.s(["closeSession",0,function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)},"makeSession",0,function(t){let e=(0,s.timestampInSeconds)(),n={sid:(0,i.uuid4)(),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&&a(n,t),n},"updateSession",0,a],365330);var o=t.i(730950),c=t.i(627784);function u(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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]=u(r[t],e[t],n-1));return r}function l(){return(0,i.uuid4)()}function p(){return(0,i.uuid4)().substring(16)}t.s(["merge",0,u],338640),t.s(["generateSpanId",0,p,"generateTraceId",0,l],790122);var d=t.i(778011),_=t.i(935545);let f="_sentrySpan";function g(t,e){e?(0,_.addNonEnumerableProperty)(t,f,e):delete t[f]}function h(t){return t[f]}t.s(["_getSpanForScope",0,h,"_setSpanForScope",0,g],121492);var m=t.i(192261);class S{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:l(),sampleRand:(0,d.safeMathRandom)()}}clone(){let t=new S;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,g(t,h(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&&a(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:i,user:s,contexts:a,level:o,fingerprint:u=[],propagationContext:l,conversationId:p}=(e instanceof S?e.getScopeData():(0,c.isPlainObject)(e)?t:void 0)||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),o&&(this._level=o),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),p&&(this._conversationId=p),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,g(this,void 0),this._attachments=[],this.setPropagationContext({traceId:l(),sampleRand:(0,d.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,s.dateTimestampInSeconds)(),...t,message:t.message?(0,m.truncate)(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:h(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=u(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}
1captureException(t,e){let n=e?.event_id||(0,i.uuid4)();if(!this._client)return r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture exception!"),n;let s=Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...e,event_id:n},this),n}captureMessage(t,e,n){let s=n?.event_id||(0,i.uuid4)();if(!this._client)return r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture message!"),s;let a=n?.syntheticException??Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:a,...n,event_id:s},this),s}captureEvent(t,e){let n=t.event_id||e?.event_id||(0,i.uuid4)();return this._client?this._client.captureEvent(t,{...e,event_id:n},this):r.DEBUG_BUILD&&o.debug.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}t.s(["Scope",0,S],408702);let E=t=>t instanceof Promise&&!t[T],T=Symbol("chained PromiseLike"),y=(t,e,n)=>{let r=t.then(t=>(e(t),t),t=>{throw n(t),t});return E(r)&&E(t)?r:b(t,r)},b=(t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let i=t[r];"function"==typeof i?Object.defineProperty(e,r,{value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i.apply(t,n)},enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[T]:!0}),e};t.s(["chainAndCopyPromiseLike",0,y],645968);class v{constructor(t,e){let n,r;n=t||new S,r=e||new S,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e,n=this._pushScope();try{e=t(n)}catch(t){throw this._popScope(),t}return(0,c.isThenable)(e)?y(e,()=>this._popScope(),()=>this._popScope()):(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 I(){let t=(0,n.getMainCarrier)(),e=(0,n.getSentryCarrier)(t);return e.stack=e.stack||new v((0,n.getGlobalSingleton)("defaultCurrentScope",()=>new S),(0,n.getGlobalSingleton)("defaultIsolationScope",()=>new S))}function A(t){return I().withScope(t)}function N(t,e){let n=I();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function R(t){return I().withScope(()=>t(I().getIsolationScope()))}function C(t){let e=(0,n.getSentryCarrier)(t);return e.acs?e.acs:{withIsolationScope:R,withScope:A,withSetScope:N,withSetIsolationScope:(t,e)=>R(e),getCurrentScope:()=>I().getScope(),getIsolationScope:()=>I().getIsolationScope()}}function x(){return C((0,n.getMainCarrier)()).getCurrentScope()}t.s(["getAsyncContextStrategy",0,C],867997),t.s(["getClient",0,function(){return x().getClient()},"getCurrentScope",0,x,"getGlobalScope",0,function(){return(0,n.getGlobalSingleton)("globalScope",()=>new S)},"getIsolationScope",0,function(){return C((0,n.getMainCarrier)()).getIsolationScope()},"getTraceContextFromScope",0,function(t){let n=e?.();if(n)return{trace_id:n.traceId,span_id:n.spanId};let{traceId:r,parentSpanId:i,propagationSpanId:s}=t.getPropagationContext(),a={trace_id:r,span_id:s||p()};return i&&(a.parent_span_id=i),a},"hasExternalPropagationContext",0,function(){return void 0!==e},"withIsolationScope",0,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let i=C((0,n.getMainCarrier)());if(2===e.length){let[t,n]=e;return t?i.withSetIsolationScope(t,n):i.withIsolationScope(n)}return i.withIsolationScope(e[0])},"withScope",0,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];let i=C((0,n.getMainCarrier)());if(2===e.length){let[t,n]=e;return t?i.withSetScope(t,n):i.withScope(n)}return i.withScope(e[0])}],666041)},245859,627784,136531,t=>{"use strict";t.s(["DEBUG_BUILD",0,!1],245859);let e=Object.prototype.toString;function n(t,n){return e.call(t)===`[object ${n}]`}function r(t){return n(t,"String")}function i(t){return"object"==typeof t&&null!==t&&"__sentry_template_str
1ing__"in t&&"__sentry_template_values__"in t}function s(t){return n(t,"Object")}function a(t,e){try{return t instanceof e}catch{return!1}}t.s(["isDOMError",0,function(t){return n(t,"DOMError")},"isDOMException",0,function(t){return n(t,"DOMException")},"isElement",0,function(t){return"u">typeof Element&&a(t,Element)},"isError",0,function(t){switch(e.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return a(t,Error)}},"isErrorEvent",0,function(t){return n(t,"ErrorEvent")},"isEvent",0,function(t){return"u">typeof Event&&a(t,Event)},"isInstanceOf",0,a,"isParameterizedString",0,i,"isPlainObject",0,s,"isPrimitive",0,function(t){return null===t||i(t)||"object"!=typeof t&&"function"!=typeof t},"isRegExp",0,function(t){return n(t,"RegExp")},"isRequest",0,function(t){return"u">typeof Request&&a(t,Request)},"isString",0,r,"isSyntheticEvent",0,function(t){return s(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t},"isThenable",0,function(t){return!!(t?.then&&"function"==typeof t.then)},"isVueViewModel",0,function(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue||t.__v_isVNode))}],627784);let o=t.i(336017).GLOBAL_OBJ;t.s(["getComponentName",0,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!o.HTMLElement)return null;let n=t;for(let t=0;t<e&&n;t++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null},"getLocationHref",0,function(){try{return o.document.location.href}catch{return""}},"htmlTreeAsString",0,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"<unknown>";try{let n,i=t,s=[],a=0,c=0,u=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||80;for(;i&&a++<5&&(n=function(t,e){let n=[];if(!t?.tagName)return"";if(o.HTMLElement&&t instanceof HTMLElement&&t.dataset){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}n.push(t.tagName.toLowerCase());let i=e?.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(i?.length)i.forEach(t=>{n.push(`[${t[0]}="${t[1]}"]`)});else{t.id&&n.push(`#${t.id}`);let e=t.className;if(e&&r(e))for(let t of e.split(/\s+/))n.push(`.${t}`)}for(let e of["aria-label","type","name","title","alt"]){let r=t.getAttribute(e);r&&n.push(`[${e}="${r}"]`)}return n.join("")}(i,u),"html"!==n&&(!(a>1)||!(c+3*s.length+n.length>=l)));)s.push(n),c+=n.length,i=i.parentNode;return s.reverse().join(" > ")}catch{return"<unknown>"}}],136531)},809302,t=>{"use strict";t.s(["GEN_AI_CONVERSATION_ID_ATTRIBUTE",0,"gen_ai.conversation.id","SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME",0,"sentry.exclusive_time","SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD",0,"http.request.method","SEMANTIC_ATTRIBUTE_PROFILE_ID",0,"sentry.profile_id","SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME",0,"sentry.custom_span_name","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,"sentry.measurement_unit","SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE",0,"sentry.measurement_value","SEMANTIC_ATTRIBUTE_SENTRY_OP",0,"sentry.op","SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",0,"sentry.origin","SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE",0,"sentry.previous_trace_sample_rate","SEMANTIC_ATTRIBUTE_SENTRY_RELEASE",0,"sentry.release","SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",0,"sentry.sample_rate","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,"sentry.source","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"])},981379,399639,192261,t=>{"use strict";let e;var n=t.i(935545),r=t.i(778011),i=t.i(627784);let s=/\(error: (.*)\)/,a=/captureMessage|captureException/;function o(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];let r=e.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],o=t.split("\n");for(let t=e;t<o.length;t++){let e=o[t];e.length>1024&&(e=e.slice(0,1024));let a=s.test(e)?e.replace(s,"$1"):e;if(!a.includes("Error: ")){for(let t of r){let e=t(a);if(e){i.push(e);break}}if(i.length>=50+n)break}}var u=i.slice(n);if(!u.length)return[];let l=Array.from(u);return/sentryWrapped/.test(c(l).function||"")&&l.pop(),l.reverse(),a.test(c(l).function||"")&&(l.pop(),a.test(c(l).function||"")&&l.pop()),l.slice(0,50).map(t=>({...t,filename:t.filename||c(l).filename,function:t.function||"?"}))}}function c(t){return t[t.length-1]||{}}let u="<anonymous>";function l(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function p(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!(0,i.isString)(t)&&((0,i.isRegExp)(e)?e.test(t):(0,i.isString)(e)?n?t===e:t.includes(e):"function"==typeof e&&e(t))}t.s(["UNKNOWN_FUNCTION",0,"?","createStackParser",0,o,"getFramesFromEvent",0,function(t){let e=t.exception;if(e){let t=[];
1try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{}}},"getFunctionName",0,function(t){try{if(!t||"function"!=typeof t)return u;return t.name||u}catch{return u}},"getVueInternalName",0,l,"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)?o(...t):t}],399639),t.s(["isMatchingPattern",0,p,"safeJoin",0,function(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];try{(0,i.isVueViewModel)(r)?n.push(l(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}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 i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n=`'{snip} ${n}`),s<r&&(n+=" {snip}"),n},"stringMatchesSomePattern",0,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let r of e)if(p(t,r,n))return!0;return!1},"truncate",0,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}],192261);var d=t.i(336017);function _(t){return t.exception?.values?.[0]}t.s(["addExceptionMechanism",0,function(t,e){let n=_(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}},"addExceptionTypeValue",0,function(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[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{(0,n.addNonEnumerableProperty)(t,"__sentry_captured__",!0)}catch{}return!1},"getEventDescription",0,function(t){let{message:e,event_id:n}=t;if(e)return e;let r=_(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},"uuid4",0,function(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(t=d.GLOBAL_OBJ).crypto||t.msCrypto;try{if(n?.randomUUID)return(0,r.withRandomSafeContext)(()=>n.randomUUID()).replace(/-/g,"")}catch{}return e||(e="10000000100040008000100000000000"),e.replace(/[018]/g,t=>(t^(15&16*(0,r.safeMathRandom)())>>t/4).toString(16))}],981379)},935545,730950,t=>{"use strict";var e=t.i(245859),n=t.i(136531),r=t.i(330826),i=t.i(336017);let s={};function a(t){if(!("console"in i.GLOBAL_OBJ))return t();let e=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(t=>{let r=s[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}function o(){return u().enabled}function c(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];e.DEBUG_BUILD&&o()&&a(()=>{i.GLOBAL_OBJ.console[t](`Sentry Logger [${t}]:`,...r)})}function u(){return e.DEBUG_BUILD?(0,r.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let l={enable:function(){u().enabled=!0},disable:function(){u().enabled=!1},isEnabled:o,log:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];c("log",...e)},warn:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];c("warn",...e)},error:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];c("error",...e)}};t.s(["CONSOLE_LEVELS",0,["debug","info","warn","error","log","assert","trace"],"consoleSandbox",0,a,"debug",0,l,"originalConsoleMethods",0,s],730950);var p=t.i(627784);function d(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e.DEBUG_BUILD&&l.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}function _(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,d(t,"__sentry_original__",e)}catch{}}function f(t){if((0,p.isError)(t))return{message:t.message,name:t.name,stack:t.stack,...h(t)};if(!(0,p.isEvent)(t))return t;{let e={type:t.type,target:g(t.target),currentTarget:g(t.currentTarget),...h(t)};return"u">typeof CustomEvent&&(0,p.isInstanceOf)(t,CustomEvent)&&(e.detail=t.detail),e}}function g(t){try{return(0,p.isElement)(t)?(0,n.htmlTreeAsString)(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function h(t){return"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t)):{}}
1t.s(["addNonEnumerableProperty",0,d,"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,n,r){if(!(n in t))return;let i=t[n];if("function"!=typeof i)return;let s=r(i);"function"==typeof s&&_(s,i);try{t[n]=s}catch{e.DEBUG_BUILD&&l.log(`Failed to replace method "${n}" in object`,t)}},"getOriginalFunction",0,function(t){return t.__sentry_original__},"markFunctionWrapped",0,_],935545)},778011,t=>{"use strict";let e;var n=t.i(336017);function r(t){if(void 0!==e)return e?e(t):t();let r=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),i=n.GLOBAL_OBJ;return r in i&&"function"==typeof i[r]?(e=i[r])(t):(e=null,t())}t.s(["safeDateNow",0,function(){return r(()=>Date.now())},"safeMathRandom",0,function(){return r(()=>Math.random())},"withRandomSafeContext",0,r])},720994,t=>{"use strict";let e;var n=t.i(778011),r=t.i(336017);function i(){return(0,n.safeDateNow)()/1e3}let s=null;t.s(["browserPerformanceTimeOrigin",0,function(){return null===s&&(s=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now)return;let e=(0,n.withRandomSafeContext)(()=>t.now()),i=(0,n.safeDateNow)(),s=t.timeOrigin;if("number"==typeof s&&3e5>Math.abs(s+e-i))return s;let a=t.timing?.navigationStart;return"number"==typeof a&&3e5>Math.abs(a+e-i)?a:i-e}()),s},"dateTimestampInSeconds",0,i,"timestampInSeconds",0,function(){return(e??(e=function(){let{performance:t}=r.GLOBAL_OBJ;if(!t?.now||!t.timeOrigin)return i;let e=t.timeOrigin;return()=>(e+(0,n.withRandomSafeContext)(()=>t.now()))/1e3}()))()}])},800987,t=>{"use strict";t.s(["SDK_VERSION",0,"10.53.1"])},336017,t=>{"use strict";let e=globalThis;t.s(["GLOBAL_OBJ",0,e])},655039,(t,e,n)=>{e.exports=function(t){return t&&t.length?t[0]:void 0}},727474,(t,e,n)=>{e.exports=t.r(655039)},394786,(t,e,n)=>{e.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},825024,593321,473295,347437,721549,784553,204566,276782,908408,787331,682603,310559,144150,743064,445674,562043,514302,59429,174274,413144,856447,268371,189271,136598,838153,569959,501466,t=>{"use strict";let e,n,r,i;var s=t.i(666041),a=t.i(245859),o=t.i(365330),c=t.i(867997),u=t.i(330826),l=t.i(809302),p=t.i(730950),d=t.i(627784);let _="sentry-";function f(t){let e=g(t);if(!e)return;let n=Object.entries(e).reduce((t,e)=>{let[n,r]=e;return n.startsWith(_)&&(t[n.slice(_.length)]=r),t},{});return Object.keys(n).length>0?n:void 0}function g(t){if(t&&((0,d.isString)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>(Object.entries(h(e)).forEach(e=>{let[n,r]=e;t[n]=r}),t),{}):h(t)}function h(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)=>{let[n,r]=e;return n&&r&&(t[n]=r),t},{})}function m(t){let e=t||(0,s.getClient)()?.getOptions();return!!e&&(null!=e.tracesSampleRate||!!e.tracesSampler)}t.s(["SENTRY_BAGGAGE_KEY_PREFIX",0,_,"baggageHeaderToDynamicSamplingContext",0,f,"dynamicSamplingContextToSentryBaggageHeader",0,function(t){if(t){var e=Object.entries(t).reduce((t,e)=>{let[n,r]=e;return r&&(t[`${_}${n}`]=r),t},{});return 0!==Object.keys(e).length?Object.entries(e).reduce((t,e,n)=>{let[r,i]=e,s=`${encodeURIComponent(r)}=${encodeURIComponent(i)}`,o=0===n?s:`${t},${s}`;return o.length>8192?(a.DEBUG_BUILD&&p.debug.warn(`Not adding key: ${r} with val: ${i} to baggage header due to exceeding baggage size limits.`),t):o},""):void 0}},"parseBaggageHeader",0,g],593321),t.i(645968),t.s(["hasSpansEnabled",0,m],473295);var S=t.i(192261);function E(t){p.debug.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function T(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&&(0,S.isMatchingPattern)(t.description,r))return a.DEBUG_BUILD&&E(t),!0;continue}let e=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!e)continue;let i=!r.name||t.description&&(0,S.isMatchingPattern)(t.description,r.name),s=!r.op||t.op&&(0,S.isMatchingPattern)(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(e=>{let[n,r]=e;return function(t,e){return"string"==typeof t&&("string"==typeof e||e instanceof RegExp)?(0,S.isMatchingPattern)(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((t,n)=>t===e[n]):t===e}(t.attributes?.[n],r)});if(i&&s&&o)return a.DEBUG_BUILD&&E(t),!0}return!1}function y(t){return"stream"===t.getOptions().traceLifecycle}function b(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(["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,T],347437),t.s(["hasSpanStreamingEnabled",0,y],721549),t.s(["parseSampleRate",0,b],784553);var v=t.i(790122),I=t.i(778011),A=t.i(121492);function N(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};for(let[r,i]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},i=function(t){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(i)return{...i,...s};if(!e||"skip-undefined"===e&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}(i,e);t&&(n[r]=t)}return n}t.s(["serializeAttributes",0,N],204566),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)}],276782);var R=t.i(935545),C=t.i(336017);let x="_sentryScope",O="_sentryIsolationScope";function M(t,e,n){t&&((0,R.addNonEnumerableProperty)(t,O,function(t){try{let e=C.GLOBAL_OBJ.WeakRef;if("function"==typeof e)return new e(t)}catch{}return t}(n)),(0,R.addNonEnumerableProperty)(t,x,e))}function D(t){return{scope:t[x],isolationScope:function(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}(t[O])}}t.s(["getCapturedScopesOnSpan",0,D,"setCapturedScopesOnSpan",0,M],908408);var U=t.i(720994);let B=/^o(\d+)\./,k=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function L(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${a}`}function w(t){let e=k.exec(t);if(!e)return void(0,p.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});let[n,r,i="",s="",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 P({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function P(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function $(t){let e,n=t.getOptions(),{host:r}=t.getDsn()||{};if(n.orgId)e=String(n.orgId);else{let t;r&&(t=r.match(B),e=t?.[1])}return e}t.s(["dsnFromString",0,w,"dsnToString",0,L,"extractOrgIdFromClient",0,$,"makeDsn",0,function(t){let e="string"==typeof t?w(t):P(t);if(e&&function(t){if(!a.DEBUG_BUILD)return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(p.debug.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"!==r&&"https"!==r?(p.debug.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):!(e&&isNaN(parseInt(e,10)))||(p.debug.error(`Invalid Sentry Dsn: Invalid port ${e}
1`),!1):(p.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}],787331);let j=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function G(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.generateTraceId)(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,v.generateSpanId)(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Y(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,v.generateTraceId)(),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,v.generateSpanId)(),n=arguments.length>2?arguments[2]:void 0;return`00-${t}-${e}-${n?"01":"00"}`}t.s(["TRACEPARENT_REGEXP",0,j,"generateSentryTraceHeader",0,G,"generateTraceparentHeader",0,Y,"propagationContextFromHeaders",0,function(t,e){let n=function(t){let e;if(!t)return;let n=t.match(j);if(n)return"1"===n[3]?e=!0:"0"===n[3]&&(e=!1),{traceId:n[1],parentSampled:e,parentSpanId:n[2]}}(t),r=f(e);if(!n?.traceId)return{traceId:(0,v.generateTraceId)(),sampleRand:(0,I.safeMathRandom)()};let i=function(t,e){let n=b(e?.sample_rand);if(void 0!==n)return n;let r=b(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?(0,I.safeMathRandom)()*r:r+(0,I.safeMathRandom)()*(1-r):(0,I.safeMathRandom)()}(n,r);r&&(r.sample_rand=i.toString());let{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}},"shouldContinueTrace",0,function(t,e){let n=$(t);return e&&n&&e!==n?(p.debug.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)||(p.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1)}],682603);let F=!1;function J(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:c}=q(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:c}}function V(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:q(t).parent_span_id,s=D(t).scope;return{parent_span_id:i,span_id:r?s?.getPropagationContext().propagationSpanId||(0,v.generateSpanId)():e,trace_id:n}}function H(t){return t&&t.length>0?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s}=t;return{span_id:e,trace_id:n,sampled:1===r,attributes:s,...i}}):void 0}function K(t){return t?.length?t.map(t=>{let{context:{spanId:e,traceId:n,traceFlags:r},attributes:i}=t;return{span_id:e,trace_id:n,sampled:1===r,attributes:i}}):void 0}function z(t){return"number"==typeof t?W(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?W(t.getTime()):(0,U.timestampInSeconds)()}function W(t){return t>0x2540be3ff?t/1e3:t}function q(t){if(Z(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(Q(t)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:X(t),start_timestamp:z(i),timestamp:z(a)||void 0,status:te(o),op:r[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:H(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function X(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Q(t){return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Z(t){return"function"==typeof t.getSpanJSON}function tt(t){let{traceFlags:e}=t.spanContext();return 1===e}function te(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}function tn(t){return t&&1!==t.code&&0!==t.code&&"cancelled"!==t.message?"error":"ok"}let tr="_sentryChildSpans",ti="_sentryRootSpan";function ts(t,e){let n=t[ti]||t;(0,R.addNonEnumerableProperty)(e,ti,n),t[tr]?t[tr].add(e):(0,R.addNonEnumerableProperty)(t,tr,new Set([e]))}function ta(t){let e=new Set;return!function t(n){if(!e.has(n)&&tt(n))for(let r of(e.add(n),n[tr]?Array.from(n[tr]):[]))t(r)}(t),Array.from(e)}let to=tc;
1function tc(t){return t[ti]||t}function tu(){let t=(0,u.getMainCarrier)(),e=(0,c.getAsyncContextStrategy)(t);return e.getActiveSpan?e.getActiveSpan():(0,A._getSpanForScope)((0,s.getCurrentScope)())}function tl(){F||((0,p.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),F=!0)}t.s(["INTERNAL_getSegmentSpan",0,tc,"TRACE_FLAG_NONE",0,0,"TRACE_FLAG_SAMPLED",0,1,"addChildSpanToSpan",0,ts,"convertSpanLinksForEnvelope",0,H,"getActiveSpan",0,tu,"getRootSpan",0,to,"getSimpleStatusMessage",0,tn,"getSpanDescendants",0,ta,"getStatusMessage",0,te,"getStreamedSpanLinks",0,K,"removeChildSpanFromSpan",0,function(t,e){t[tr]&&t[tr].delete(e)},"showSpanDropWarning",0,tl,"spanIsSampled",0,tt,"spanTimeInputToSeconds",0,z,"spanToJSON",0,q,"spanToStreamedSpanJSON",0,function(t){if(Z(t))return t.getStreamedSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(Q(t)){let{attributes:r,startTime:i,name:s,endTime:a,status:o,links:c}=t;return{name:s,span_id:e,trace_id:n,parent_span_id:X(t),start_timestamp:z(i),end_timestamp:z(a),is_segment:t===tc(t),status:tn(o),attributes:r,links:K(c)}}return{span_id:e,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:t===tc(t)}},"spanToTraceContext",0,V,"spanToTraceHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return G(e,n,tt(t))},"spanToTraceparentHeader",0,function(t){let{traceId:e,spanId:n}=t.spanContext();return Y(e,n,tt(t))},"spanToTransactionTraceContext",0,J,"streamedSpanJsonToSerializedSpan",0,function(t){return{...t,attributes:N(t.attributes),links:t.links?.map(t=>({...t,attributes:N(t.attributes)}))}}],310559);let tp="production";t.s(["DEFAULT_ENVIRONMENT",0,tp],144150);let td="_frozenDsc";function t_(t,e){(0,R.addNonEnumerableProperty)(t,td,e)}function tf(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||tp,release:n.release,public_key:r,trace_id:t,org_id:$(e)};return e.emit("createDsc",i),i}function tg(t){let e=(0,s.getClient)();if(!e)return{};let n=to(t),r=q(n),i=r.data,a=n.spanContext().traceState,o=a?.get("sentry.sample_rate")??i[l.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??i[l.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function c(t){return("number"==typeof o||"string"==typeof o)&&(t.sample_rate=`${o}`),t}let u=n[td];if(u)return c(u);let p=a?.get("sentry.dsc"),d=p&&f(p);if(d)return c(d);let _=tf(t.spanContext().traceId,e),g=i[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??i["sentry.span.source"],h=r.description;return"url"!==g&&h&&(_.transaction=h),m()&&(_.sampled=String(tt(n)),_.sample_rand=a?.get("sentry.sample_rand")??D(n).scope?.getPropagationContext().sampleRand.toString()),c(_),e.emit("createDsc",_,n),_}t.s(["freezeDscOnSpan",0,t_,"getDynamicSamplingContextFromScope",0,function(t,e){let n=e.getPropagationContext();return n.dsc||tf(n.traceId,t)},"getDynamicSamplingContextFromSpan",0,tg],743064);class th{constructor(t={}){this._traceId=t.traceId||(0,v.generateTraceId)(),this._spanId=t.spanId||(0,v.generateSpanId)(),this.dropReason=t.dropReason}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}addEvent(t,e,n){return this}addLink(t){return this}addLinks(t){return this}recordException(t,e){}}function tm(t){return!!t&&"function"==typeof t&&"_streamed"in t&&!!t._streamed}t.s(["SentryNonRecordingSpan",0,th],445674),t.s(["isStreamedBeforeSendSpanCallback",0,tm],562043);let tS=Symbol.for("sentry.skipNormalization"),tE=Symbol.for("sentry.overrideNormalizationDepth");var tT=t.i(399639);function ty(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity;try{return function e(n,r){let i,s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Infinity,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Infinity,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(i=new WeakSet,[function(t){return!!i.has(t)||(i.add(t),!1)},function(t){i.delete(t)}]),[u,l]=c;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let p=function(e,n){try{var r;let i;if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(n===t.g)return"[Global]";if("u">typeof window&&n===window)return"[Window]";if("u">typeof document&&n===document)return"[Document]";
1if((0,d.isVueViewModel)(n))return(0,tT.getVueInternalName)(n);if((0,d.isSyntheticEvent)(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${(0,tT.getFunctionName)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;let s=(r=n,i=Object.getPrototypeOf(r),i?.constructor?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(n,r);if(!p.startsWith("[object "))return p;if(r[tS])return r;let _=(s=r[tE],"number"==typeof s?s:void 0),f=void 0!==_?_:a;if(0===f)return p.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,f-1,o,c)}catch{}let g=Array.isArray(r)?[]:{},h=0,m=(0,R.convertToPlainObject)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=o){g[t]="[MaxProperties ~]";break}let n=m[t];g[t]=e(t,n,f-1,o,c),h++}return l(r),g}("",e,n,r)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function tb(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[t,e]}function tv(t,e){for(let n of t[1]){let t=n[0].type;if(e(n,t))return!0}return!1}function tI(t){let e=(0,u.getSentryCarrier)(C.GLOBAL_OBJ);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function tA(t){return[{type:"span"},t]}t.s(["normalize",0,ty,"normalizeToSize",0,function t(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=ty(e,n);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>r?t(e,n-1,r):i}],514302);let tN={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 tR(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function tC(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:L(r)},...i&&{trace:i}}}function tx(t,e){let n=tg(t[0]),r=e?.getDsn(),i=e?.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!i&&r&&{dsn:L(r)}},{beforeSendSpan:a,ignoreSpans:o}=e?.getOptions()||{},c=o?.length?t.filter(t=>{let e=q(t);return!T({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=q(t),n=tm(a)?e:a(e);return n||(tl(),e)}:q,p=[];for(let t of c){let e=l(t);e&&p.push(tA(e))}return tb(s,p)}function tO(t){if(!t||0===t.length)return;let e={};return t.forEach(t=>{let n=t.attributes||{},r=n[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(e[t.name]={value:i,unit:r})}),e}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?tI(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]},"createEnvelope",0,tb,"createEventEnvelopeHeaders",0,tC,"createSpanEnvelopeItem",0,tA,"envelopeContainsItemType",0,function(t,e){return tv(t,(t,n)=>e.includes(n))},"envelopeItemTypeToDataCategory",0,function(t){return t in tN?tN[t]:t},"forEachEnvelopeItem",0,tv,"getSdkMetadataForEnvelopeHeader",0,tR,"serializeEnvelope",0,function(t){let[e,n]=t,r=JSON.stringify(e);function i(t){"string"==typeof r?r="string"==typeof t?r+t:[tI(r),t]:r.push("string"==typeof t?tI(t):t)}for(let t of n){let[e,n]=t;if(i(`
2${JSON.stringify(e)}
3`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let t;try{t=JSON.stringify(n)}catch{t=JSON.stringify(ty(n))}i(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)}],59429),t.s(["createEventEnvelope",0,function(t,e,n,r){let i=tR(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 a=tC(t,i,r,e);return delete t.sdkProcessingMetadata,tb(a,[[{type:s},t]])},"createSessionEnvelope",0,function(t,e,n,r){let i=tR(n);return tb({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:L(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])},"createSpanEnvelope",0,tx],174274),t.s(["setMeasurement",0,function(t,e,n){let r=arguments.length>
33&&void 0!==arguments[3]?arguments[3]:tu(),i=r&&to(r);i&&(a.DEBUG_BUILD&&p.debug.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e,[l.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))},"timedEventsToMeasurements",0,tO],413144);class tM{constructor(t={}){this._traceId=t.traceId||(0,v.generateTraceId)(),this._spanId=t.spanId||(0,v.generateSpanId)(),this._startTime=t.startTimestamp||(0,U.timestampInSeconds)(),this._links=t.links,this._attributes={},this.setAttributes({[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]: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=z(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(t){this._endTime||(this._endTime=z(t),function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >"}=q(t),{spanId:r}=t.spanContext(),i=to(t)===t,s=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;p.debug.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:te(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[l.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[l.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:tO(this._events),is_segment:this._isStandaloneSpan&&to(this)===this||void 0,segment_id:this._isStandaloneSpan?to(this).spanContext().spanId:void 0,links:H(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===to(this),status:tn(this._status),attributes:this._attributes,links:K(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){a.DEBUG_BUILD&&p.debug.log("[Tracing] Adding an event to span:",t);let r=tD(e)?e:n||(0,U.timestampInSeconds)(),i=tD(e)?{}:e||{},s={name:t,time:z(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=(0,s.getClient)();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===to(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(t){let e=(0,s.getClient)();if(!e)return;let n=t[1];n&&0!==n.length?e.sendEnvelope(t):e.recordDroppedEvent("before_send","span")}(tx([this],t)):(a.DEBUG_BUILD&&p.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span")));if(t&&y(t))return void t.emit("afterSegmentSpanEnd",this);let e=this._convertSpanToTransaction();e&&(D(this).scope||(0,s.getCurrentScope)()).captureEvent(e)}_convertSpanToTransaction(){if(!tU(q(this)))return;this._name||(a.DEBUG_BUILD&&p.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:e}=D(this),n=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let r=ta(this).filter(t=>{var e;return t!==this&&!((e=t)instanceof tM&&e.isStandaloneSpan())}).map(t=>q(t)).filter(tU),i=this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[l.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let s=!1;r.forEach(t=>{delete t.data[l.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],t.op?.startsWith("gen_ai.")&&(s=!0)});let o={contexts:{trace:J(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:tg(this),hasGenAiSpans:s},request:n,...i&&{transaction_info:{source:i}}},c=tO(this._events);return c&&Object.keys(c).length&&(a.DEBUG_BUILD&&p.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),o.measurements=c),o}}function tD(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function tU(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function tB(t,e){let n=tk();return n.withActiveSpan?n.withActiveSpan(t,e):(0,s.withScope)(n=>((0,A._setSpanForScope)(n,t||void 0),e(n)))}function tk(){let t=(0,u.getMainCarrier)();return(0,c.getAsyncContextStrategy)(t)}function tL(t,e,n){let r=(0,s.getClient)(),i=r?.getOptions()||{},{name:o=""}=t,c={spanAttributes:{...t.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",c,{decision:!1});let u=c.parentSampled??n,d=c.spanAttributes,_=e.getPropagationContext(),f=tw(e),[g,h,S]=f?[!1]:function(t,e,n){let r,i;if(!m(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}),i=!0):void 0!==e.parentSampled?r=e.parentSampled:void 0!==t.tracesSampleRate&&(r=t.tracesSampleRate,i=!0);let s=b(r);if(void 0===s)return a.DEBUG_BUILD&&p.debug.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 a.DEBUG_BUILD&&p.debug.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,i];let o=n<s;return!o&&a.DEBUG_BUILD&&p.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,s,i]}(i,{name:o,parentSampled:u,attributes:d,parentSampleRate:b(_.dsc?.sample_rate)},_.sampleRand),E=new tM({...t,attributes:{[l.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[l.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==h&&S?h:void 0,...d},sampled:g});return g||!r||f||(a.DEBUG_BUILD&&p.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",y(r)?"span":"transaction")),r&&r.emit("spanStart",E),E}function tw(t){return!0===t.getScopeData().sdkProcessingMetadata.__SENTRY_SUPPRESS_TRACING__}t.s(["SentrySpan",0,tM],856447),t.s(["startInactiveSpan",0,function(t){let e=tk();if(e.startInactiveSpan)return e.startInactiveSpan(t);
3let n=function(t){let e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){let n={...e};return n.startTimestamp=z(t.startTime),delete n.startTime,n}return e}(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?e=>(0,s.withScope)(t.scope,e):void 0!==i?t=>tB(i,t):t=>t())(()=>{let e=(0,s.getCurrentScope)(),o=function(t,e){if(e)return e;if(null===e)return;let n=(0,A._getSpanForScope)(t);if(!n)return;let r=(0,s.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?to(n):n}(e,i),c=(0,s.getClient)();return t.onlyIfParent&&!o?(c?.recordDroppedEvent("no_parent_span","span"),new th):function(t){var e,n;let r,i,{parentSpan:o,spanArguments:c,forceTransaction:u,scope:d}=t;if(!m()){let t=new th;if(u||!o){let e={sampled:"false",sample_rate:"0",transaction:c.name,...tg(t)};t_(t,e)}return t}let _=(0,s.getClient)();if(e=_,n=c,r=e?.getOptions().ignoreSpans,e&&y(e)&&r?.length&&T({description:n.name||"",op:n.attributes?.[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]||n.op,attributes:n.attributes},r))return tw(d)||_?.recordDroppedEvent("ignored","span"),new th({dropReason:"ignored",traceId:o?.spanContext().traceId??d.getPropagationContext().traceId});let f=(0,s.getIsolationScope)();if(o&&!u)i=function(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),a=tw(e),o=!a&&tt(t),c=o?new tM({...n,parentSpanId:r,traceId:i,sampled:o}):new th({traceId:i});ts(t,c);let u=(0,s.getClient)();return u&&(y(u)&&c instanceof th&&(t instanceof th&&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}(o,d,c),ts(o,i);else if(o){let t=tg(o),{traceId:e,spanId:n}=o.spanContext(),r=tt(o);t_(i=tL({traceId:e,parentSpanId:n,...c},d,r),t)}else{let{traceId:t,dsc:e,parentSpanId:n,sampled:r}={...f.getPropagationContext(),...d.getPropagationContext()};i=tL({traceId:t,parentSpanId:n,...c},d,r),e&&t_(i,e)}return!function(t){if(!a.DEBUG_BUILD)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=q(t),{spanId:i}=t.spanContext(),s=tt(t),o=to(t),c=o===t,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,l=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!c){let{op:t,description:e}=q(o);l.push(`root ID: ${o.spanContext().spanId}`),t&&l.push(`root op: ${t}`),e&&l.push(`root description: ${e}`)}p.debug.log(`${u}
4  ${l.join("\n  ")}`)}(i),M(i,d,f),i}({parentSpan:o,spanArguments:n,forceTransaction:r,scope:e})})},"startNewTrace",0,function(t){let e=tk();return e.startNewTrace?e.startNewTrace(t):(0,s.withScope)(e=>(e.setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:(0,I.safeMathRandom)()}),a.DEBUG_BUILD&&p.debug.log(`Starting a new trace with id ${e.getPropagationContext().traceId}`),tB(null,t)))},"withActiveSpan",0,tB],268371);var tP=t.i(981379);function t$(t){return new tG(e=>{e(t)})}function tj(t){return new tG((e,n)=>{n(t)})}class tG{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new tG((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 tG((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?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((0,d.isThenable)(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,tj,"resolvedSyncPromise",0,t$],189271);var tY=t.i(408702),tF=t.i(338640);function tJ(t,e){var n,r,i,s,a,o,c,u;let l,p,{fingerprint:d,span:_,breadcrumbs:f,sdkProcessingMetadata:g}=e;(function(t,e){let{extra:n,tags:r,user:i,contexts:s,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(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),o&&"transaction"!==t.type&&(t.transaction=o)})(t,e),_&&((n=t).contexts={trace:V(r=_),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:tg(r),...n.sdkProcessingMetadata},(l=q(to(r)).description)&&!n.transaction&&"transaction"===n.type&&(n.transaction=l)),i=t,s=d,i.fingerprint=i.fingerprint?Array.isArray(i.fingerprint)?i.fingerprint:[i.fingerprint]:[],s&&(i.fingerprint=i.fingerprint.concat(s)),i.fingerprint.length||delete i.fingerprint,a=t,o=f,p=[...a.breadcrumbs||[],...o],a.breadcrumbs=p.length?p:void 0,c=t,u=g,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...u}}function tV(t,e){let{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:p,attachments:d,propagationContext:_,transactionName:f,span:g}=e;tH(t,"extra",n),tH(t,"tags",r),tH(t,"attributes",i),tH(t,"user",s),tH(t,"contexts",a),t.sdkProcessingMetadata=(0,tF.merge)(t.sdkProcessingMetadata,c,2),o&&(t.level=o),f&&(t.transactionName=f),g&&(t.span=g),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 tH(t,e,n){t[e]=(0,tF.merge)(t[e],n,1)}function tK(t,e){let n=(0,s.getGlobalScope)().getScopeData();return t&&tV(n,t.getScopeData()),e&&tV(n,e.getScopeData()),n}function tz(t){if(t){var e;return(e=t)instanceof tY.Scope||"function"==typeof e||Object.keys(t).some(t=>tW.includes(t))?{captureContext:t}:t}}t.s(["applyScopeDataToEvent",0,tJ,"getCombinedScopeData",0,tK],136598);let tW=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tq(t,e){return(0,s.getCurrentScope)().captureException(t,tz(e))}function tX(){let t=(0,s.getClient)();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function tQ(){let t=(0,s.getIsolationScope)(),e=(0,s.getCurrentScope)().getSession()||t.getSession();e&&(0,o.closeSession)(e),tZ(),t.setSession()}function tZ(){let t=(0,s.getIsolationScope)(),e=(0,s.getClient)(),n=t.getSession();n&&e&&e.captureSession(n)}t.s(["parseEventHintOrCaptureContext",0,tz,"prepareEvent",0,function(t,s,o,c,u,l){var _,f,g;let h,{normalizeDepth:m=3,normalizeMaxBreadth:E=1e3}
4=t,T={...s,event_id:s.event_id||o.event_id||(0,tP.uuid4)(),timestamp:s.timestamp||(0,U.dateTimestampInSeconds)()},y=o.integrations||t.integrations.map(t=>t.name);(function(t,e){let{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||tp,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let a=t.request;a?.url&&s&&(a.url=(0,S.truncate)(a.url,s)),s&&t.exception?.values?.forEach(t=>{t.value&&(t.value=(0,S.truncate)(t.value,s))})})(T,t),_=T,(f=y).length>0&&(_.sdk=_.sdk||{},_.sdk.integrations=[..._.sdk.integrations||[],...f]),u&&u.emit("applyFrameMetadata",s),void 0===s.type&&(g=T,h=function(t){let s=C.GLOBAL_OBJ._sentryDebugIds,a=C.GLOBAL_OBJ._debugIds;if(!s&&!a)return{};let o=s?Object.keys(s):[],c=a?Object.keys(a):[];if(i&&o.length===n&&c.length===r)return i;n=o.length,r=c.length,i={},e||(e={});let u=(n,r)=>{for(let s of n){let n=r[s],a=e?.[s];if(a&&i&&n)i[a[0]]=n,e&&(e[s]=[a[0],n]);else if(n){let r=t(s);for(let t=r.length-1;t>=0;t--){let a=r[t],o=a?.filename;if(o&&i&&e){i[o]=n,e[s]=[o,n];break}}}}};return s&&u(o,s),a&&u(c,a),i}(t.stackParser),g.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=h[t.filename])})}));let b=function(t,e){if(!e)return t;let n=t?t.clone():new tY.Scope;return n.update(e),n}(c,o.captureContext);o.mechanism&&(0,tP.addExceptionMechanism)(T,o.mechanism);let v=u?u.getEventProcessors():[],I=tK(l,b),A=[...o.attachments||[],...I.attachments];A.length&&(o.attachments=A),tJ(T,I);let N=[...v,...I.eventProcessors];return(o.data&&!0===o.data.__sentry__?t$(T):function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;try{let i=function t(e,n,r,i){let s=r[i];if(!e||!s)return e;let o=s({...e},n);return(a.DEBUG_BUILD&&null===o&&p.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,d.isThenable)(o))?o.then(e=>t(e,n,r,i+1)):t(o,n,r,i+1)}(e,n,t,r);return(0,d.isThenable)(i)?i:t$(i)}catch(t){return tj(t)}}(N,T,o)).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=>{let[e,r]=t;n.push({type:"sourcemap",code_file:e,debug_id:r})})}(t),"number"==typeof m&&m>0)?function(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:ty(t.data,e,n)}}))},...t.user&&{user:ty(t.user,e,n)},...t.contexts&&{contexts:ty(t.contexts,e,n)},...t.extra&&{extra:ty(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=ty(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:ty(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=ty(t.contexts.flags,3,n)),r}(t,m,E):t)}],838153),t.s(["addEventProcessor",0,function(t){(0,s.getIsolationScope)().addEventProcessor(t)},"captureEvent",0,function(t,e){return(0,s.getCurrentScope)().captureEvent(t,e)},"captureException",0,tq,"captureMessage",0,function(t,e){let n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return(0,s.getCurrentScope)().captureMessage(t,n,r)},"captureSession",0,function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?tQ():tZ()},"isEnabled",0,tX,"setContext",0,function(t,e){(0,s.getIsolationScope)().setContext(t,e)},"startSession",0,function(t){let e=(0,s.getIsolationScope)(),{user:n}=tK(e,(0,s.getCurrentScope)()),{userAgent:r}=C.GLOBAL_OBJ.navigator||{},i=(0,o.makeSession)({user:n,...r&&{userAgent:r},...t}),a=e.getSession();return a?.status==="ok"&&(0,o.updateSession)(a,{status:"exited"}),tQ(),e.setSession(i),i}],569959),t.s(["addBreadcrumb",0,function(t,e){let n=(0,s.getClient)(),r=(0,s.getIsolationScope)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let o={timestamp:(0,U.dateTimestampInSeconds)(),...t}
4,c=i?(0,p.consoleSandbox)(()=>i(o,e)):o;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,a))}],501466);var t0=t.i(727474),t1=t.i(272098),t3=t.i(791606),t2=t.i(394786);t.s(["logErrorToSentry",0,function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{contextProperties:n,logLevel:r="error",tags:i}=e,a="string"==typeof t?Error(t):t;return!!tX()&&((0,s.withScope)(t=>{n&&(0,t1.default)(n)&&t.setContext((0,t0.default)(n),(0,t2.default)(n)),(0,t3.default)(i)&&t.setTags(i),t.setLevel(r),tq(a)}),!0)}],825024)}]);
5
6//# sourceMappingURL=https://www.litres.ru/_next/static/chunks/2sewz78bi1rfk.js.map

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.