1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,203877,t=>{"use strict";function e(t,e){return e===r(t)}function r(t){var e=typeof t;return"object"!==e?e:t?t instanceof Error?"error":({}).toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function n(t){return e(t,"function")}function s(t){return null!=t&&("object"==typeof t||"function"==typeof t)}function i(t,e){return null!=t&&(Object.hasOwn?Object.hasOwn(t,e):Object.prototype.hasOwnProperty.call(t,e))}function o(t){return Number.isFinite(t)}function a(t){return e(t,"error")||e(t,"exception")}function l(){return"********"}var u={debug:0,info:1,warning:2,error:3,critical:4},c=!1,h=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],p={name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},d={strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/};function m(t,e){if((e=e||t.protocol)||!t.port||(80===t.port?e="http:":443===t.port&&(e="https:")),e=e||"https:",!t.hostname)return null;var r=e+"//"+t.hostname;return t.port&&(r=r+":"+t.port),t.path&&(r+=t.path),r}function f(t,e){var r,s;try{r=JSON.stringify(t)}catch(i){if(e&&n(e))try{r=e(t)}catch(t){s=t}else s=i}return{error:s,value:r}}function g(t){var e,r;try{e=JSON.parse(t)}catch(t){r=t}return{error:r,value:e}}function y(t,e,r,n,s,i,o,a){var l={url:e||"",line:r,column:n};l.func=a.guessFunctionName(l.url,l.line),l.context=a.gatherContext(l.url,l.line);var u="u">typeof document&&document&&document.location&&document.location.href,c="u">typeof window&&window&&window.navigator&&window.navigator.userAgent;return{mode:i,message:s?String(s):t||o,url:u,stack:[l],useragent:c}}function v(t){var n=[t];return function t(n,s){var i,o,a,l={};try{for(o in n){if((i=n[o])&&(e(i,"object")||e(i,"array"))){s.includes(i)?l[o]="Removed circular reference: "+r(i):((a=s.slice()).push(i),l[o]=t(i,a));continue}l[o]=i}}catch(t){l="Failed cloning custom data: "+t.message}return l}(t,n)}var b=["log","network","dom","navigation","error","manual"],_=["critical","error","warning","info","debug"];function w(t,e){for(let r of t)if(r===e)return!0;return!1}function x(t,e){for(let r of(t.attributes=t.attributes||[],e))void 0!==r.value&&t.attributes.push(r)}function k(t,e){if(t){var r=e.split("."),n=t;try{for(var s=0,i=r.length;s<i;++s)n=n[r[s]]}catch(t){n=void 0}return n}}function S(t,e,r){if(t){Object.setPrototypeOf(t,null);var n=e.split("."),s=n.length;if(!(s<1)){if(1===s){t[n[0]]=r;return}try{for(var i=t[n[0]]||{},o=i,a=1;a<s-1;++a)i[n[a]]=i[n[a]]||{},i=i[n[a]];i[n[s-1]]=r,t[n[0]]=o}catch(t){return}}}}function E(){return Date.now?Date.now():Number(new Date)}function I(t,e,r,n){var s,i,o=R(t,e,r);return s=o,i=n,s.hostWhiteList&&!s.hostSafeList&&(s.hostSafeList=s.hostWhiteList,s.hostWhiteList=void 0,i&&i.log("hostWhiteList is deprecated. Use hostSafeList.")),s.hostBlackList&&!s.hostBlockList&&(s.hostBlockList=s.hostBlackList,s.hostBlackList=void 0,i&&i.log("hostBlackList is deprecated. Use hostBlockList.")),o=s,!e||e.overwriteScrubFields||e.scrubFields&&(o.scrubFields=(t.scrubFields||[]).concat(e.scrubFields)),o}function R(){function t(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e,r=i(t,"constructor"),n=t.constructor&&t.constructor.prototype&&i(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;for(e in t);return void 0===e||i(t,e)}var e,r,n,s,o,a=Object.create(null),l=null,u=arguments.length;for(e=0;e<u;e++)if(l=arguments[e],null!=l)for(o in l)r=a[o],a!==(n=l[o])&&(n&&t(n)?(s=r&&t(r)?r:{},a[o]=R(s,n)):void 0!==n&&(a[o]=n));return a}function T(t,r,n){if(!r?.sessionId||!n)return!1;let s=t?.tracing?.propagation,i=s?.enabledHeaders;if(!Array.isArray(i)||!i.includes("baggage"))return!1;let o=s?.enabledCorsUrls;return!!Array.isArray(o)&&0!==o.length&&o.some(t=>e(t,"string")?n===t:!!e(t,"regexp")&&t.test(n))}let C=function(t,r,n){var s,o,a,l,u=e(t,"object"),c=e(t,"array"),h=[];if(n=n||{obj:[],mapped:[]},u){if(l=n.obj.indexOf(t),u&&-1!==l)return n.mapped[l]||n.obj[l];n.obj.push(t),l=n.obj.length-1}if(u)for(s in t)i(t,s)&&h.push(s);else if(c)for(a=0;a<t.length;++a)h.push(a);var p=u?{}:[],d=!0;for(a=0;a<h.length;++a)o=t[s=h[a]],p[s]=r(s,o,n),d=d&&p[s]===t[s];
1return u&&!d&&(n.mapped[l]=p),d?t:p},O=function(t,r,n){if(r=r||[],n)for(let e of n)!function(t,e){var r=e.split("."),n=r.length-1;try{for(let[e,s]of r.entries())e<n?t=t[s]:t[s]=l()}catch(t){}}(t,e);var s=function(t){var e=[];for(let n of t){var r="^\\[?(%5[bB])?"+n+"\\[?(%5[bB])?\\]?(%5[dD])?$";e.push(RegExp(r,"i"))}return e}(r),i=function(t){var e=[];for(let n of t){var r="\\[?(%5[bB])?"+n+"\\[?(%5[bB])?\\]?(%5[dD])?";e.push(RegExp("("+r+"=)([^&\\n]+)","igm"))}return e}(r);function o(t,e){return e+l()}return C(t,function t(r,n,a){var u=function(t,e){for(let r of s)if(r.test(t)){e=l();break}return e}(r,n);if(u!==n)return u;if(e(n,"object")||e(n,"array"))return C(n,t,a);var c=u;if(e(c,"string"))for(let t of i)c=c.replace(t,o);return c})};function L(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}let A=class{constructor(t,e){this.queue=[],this.options=R(t);var r=this.options.maxTelemetryEvents||100;this.maxQueueSize=Math.max(0,Math.min(r,100)),this.tracing=e,this.telemetrySpan=this.tracing?.startSpan("rollbar-telemetry",{})}configure(t){var e=this.options;this.options=R(e,t);var r=Math.max(0,Math.min(this.options.maxTelemetryEvents||100,100)),n=0;this.queue.length>r&&(n=this.queue.length-r),this.maxQueueSize=r,this.queue.splice(0,n)}copyEvents(){var t=Array.prototype.slice.call(this.queue,0);if(n(this.options.filterTelemetry))try{for(var e=t.length;e--;)this.options.filterTelemetry(t[e])&&t.splice(e,1)}catch(t){this.options.filterTelemetry=null}return(t=t.filter(t=>"connectivity"!==t.type)).map(({otelAttributes:t,...e})=>e)}exportTelemetrySpan(t={}){this.telemetrySpan&&(this.telemetrySpan.end(t),this.telemetrySpan=this.tracing.startSpan("rollbar-telemetry",{}))}capture(t,e,r,s,i=null,o=null){var a,l,u={level:(a=t,(l=r)||({error:"error",manual:"info"})[a]||"info"),type:t,timestamp_ms:i||E(),body:e,source:"client"};s&&(u.uuid=s),o&&(u.otelAttributes=o);try{if(n(this.options.filterTelemetry)&&this.options.filterTelemetry(u))return!1}catch(t){this.options.filterTelemetry=null}return this.push(u),u}captureEvent(t,e,r,n){return this.capture(t,e,r,n)}captureError(t,e,r,n){let s=t.message||String(t);var i={message:s};t.stack&&(i.stack=t.stack);let o={message:s,level:e,type:"error",uuid:r};return this.telemetrySpan?.addEvent("rollbar-occurrence-event",o,L(n)),this.capture("error",i,e,r,n,o)}captureLog(t,e,r,n){let s=r?"rollbar-occurrence-event":"rollbar-log-event",i={message:t,level:e,...r?{type:"message",uuid:r}:{}};return this.telemetrySpan?.addEvent(s,i,L(n)),this.capture("log",{message:t},e,r,n,i)}captureNetwork(t,e,r,n){e=e||"xhr",t.subtype=t.subtype||e,n&&(t.request=n);let s=this.levelFromStatus(t.status_code),i=1e6*(t.end_time_ms||0),o={type:t.subtype,method:t.method,url:t.url,statusCode:t.status_code,"request.headers":JSON.stringify(t.request_headers||{}),"response.headers":JSON.stringify(t.response?.headers||{}),"response.timeUnixNano":i.toString()},a=t.request,l=t.response?.body;return a&&(o["request.body"]=JSON.stringify(a)),l&&(o["response.body"]=JSON.stringify(l)),this.telemetrySpan?.addEvent("rollbar-network-event",o,L(t.start_time_ms)),this.capture("network",t,s,r,t.start_time_ms,o)}levelFromStatus(t){return t>=200&&t<400?"info":0===t||t>=400?"error":"info"}captureDom(t,e,r,n,s){var i={subtype:t,element:e};return void 0!==r&&(i.value=r),void 0!==n&&(i.checked=n),this.capture("dom",i,"info",s)}captureInput({type:t,isSynthetic:e,element:r,value:n,timestamp:s}){let i="rollbar-input-event",o={type:t,isSynthetic:e,element:r,value:n,endTimeUnixNano:L(s)},a=this._getRepeatedEvent(i,o);return a?this._updateRepeatedEvent(a,o,s):(this.telemetrySpan?.addEvent(i,o,L(s)),this.capture("dom",{type:i,subtype:t,element:r,value:n},"info",null,s,o))}captureClick({type:t,isSynthetic:e,element:r,timestamp:n}){let s="rollbar-click-event",i={type:t,isSynthetic:e,element:r,endTimeUnixNano:L(n)},o=this._getRepeatedEvent(s,i);return o?this._updateRepeatedEvent(o,i,n):(this.telemetrySpan?.addEvent(s,i,L(n)),this.capture("dom",{type:s,subtype:t,element:r},"info",null,n,i))}_getRepeatedEvent(t,e){let r=this._lastEvent(this.queue);if(r&&r.body.type===t&&r.otelAttributes.target===e.target)return r}_updateRepeatedEvent(t,e,r){let n=Math.max(r-t.timestamp_ms,1);t.body.value=e.value,t.otelAttributes.value=e.value,t.otelAttributes.height=e.height,t.otelAttributes.width=e.width,t.otelAttributes.textZoomRatio=e.textZoomRatio,t.otelAttributes.endTimeUnixNano=L(r),t.otelAttributes.durationUnixNano=L(n),t.otelAttributes.count=(t.otelAttributes.count||1)+1,t.otelAttributes.rate=t.otelAttributes.count/(n/1e3)}_lastEvent(t){return t.length>0?t[t.length-1]:null}captureFocus({type:t,isSynthetic:e,element:r,timestamp:n}){let s="rollbar-focus-event",i={type:t,isSynthetic:e,element:r};return this.telemetrySpan?.addEvent(s,i,L(n)),this.capture("dom",{type:s,subtype:t,element:r},"info",null,n,i)}captureResize({type:t,isSynthetic:e,width:r,height:n,textZoomRatio:s,timestamp:i}){let o="rollbar-resize-event",a={type:t,isSynthetic:e,width:r,height:n,textZoomRatio:s},l=this._getRepeatedEvent(o,a);return l?this._updateRepeatedEvent(l,a,i):(this.telemetrySpan?.addEvent(o,a,L(i)),this.capture("dom",{type:o,subtype:t,width:r,height:n,textZoomRatio:s},"info",null,i,a))}captureDragDrop({type:t,isSynthetic:e,element:r,dropEffect:n,effectAllowed:s,kinds:i,mediaTypes:o,timestamp:a}){let l="rollbar-dragdrop-event",u={type:l,subtype:t,isSynthetic:e},c={type:t,isSynthetic:e};return"dragstart"===t&&(u={...u,element:r,dropEffect:n,effectAllowed:s},c={...c,element:r,dropEffect:n,effectAllowed:s}),"drop"===t&&(u={...u,element:r,dropEffect:n,effectAllowed:s,kinds:i,mediaTypes:o},c={...c,element:r,dropEffect:n,effectAllowed:s,kinds:i,mediaTypes:o}),this.telemetrySpan?.addEvent(l,c,L(a)),this.capture("dom",u,"info",
1null,a,c)}captureNavigation(t,e,r,n){return this.telemetrySpan?.addEvent("rollbar-navigation-event",{"previous.url.full":t,"url.full":e},L(n)),this.capture("navigation",{from:t,to:e},"info",r,n)}captureDomContentLoaded(t){return this.capture("navigation",{subtype:"DOMContentLoaded"},"info",void 0,t&&t.getTime())}captureLoad(t){return this.capture("navigation",{subtype:"load"},"info",void 0,t&&t.getTime())}captureConnectivityChange({type:t,isSynthetic:e,timestamp:r}){let n="rollbar-connectivity-event",s={type:t,isSynthetic:e};return this.telemetrySpan?.addEvent(n,s,L(r)),this.capture("connectivity",{type:n,subtype:t},"info",null,r,s)}_captureRollbarItem(t){if(this.options.includeItemsInTelemetry){if(t.err)return this.captureError(t.err,t.level,t.uuid,t.timestamp);if(t.message)return this.captureLog(t.message,t.level,t.uuid,t.timestamp);if(t.custom)return this.capture("log",t.custom,t.level,t.uuid,t.timestamp)}}push(t){this.queue.push(t),this.queue.length>this.maxQueueSize&&this.queue.shift()}},P=new class t{constructor(t){this._currentContext=t?new Map(t):new Map}getValue(t){return this._currentContext.get(t)}setValue(e,r){let n=new t(this._currentContext);return n._currentContext.set(e,r),n}deleteValue(e){let r=new t(self._currentContext);return r._currentContext.delete(e),r}};class q{constructor(){this.currentContext=P}active(){return this.currentContext}enterContext(t){let e=this.currentContext;return this.currentContext=t||P,e}exitContext(t){return this.currentContext=t,this.currentContext}with(t,e,r,...n){let s=this.enterContext(t);try{return e.call(r,...n)}finally{this.exitContext(s)}}}function j(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}let N=function(t){return 1e9*t[0]+t[1]},H=function(t=!1){var e,r;return t?(e=j(performance.timeOrigin),r=j(performance.now()),[e[0]+r[0]+Math.trunc((e[1]+r[1])/1e9),(e[1]+r[1])%1e9]):j(Date.now())};class M{constructor(t,e={}){this.api=t,this.options=e}export(t,e){D.push(...t)}toPayload(){let t=D.slice();if(D.length=0,!t||!t.length)return{resourceSpans:[]};let e=t[0]&&t[0].resource||{},r=new Map;for(let e of t){let t=e.instrumentationScope?`${e.instrumentationScope.name}:${e.instrumentationScope.version}`:"default:1.0.0";r.has(t)||r.set(t,{scope:e.instrumentationScope||{name:"default",version:"1.0.0",attributes:[]},spans:[]}),r.get(t).spans.push(this._transformSpan(e))}return{resourceSpans:[{resource:this._transformResource(e),scopeSpans:Array.from(r.values()).map(t=>({scope:this._transformInstrumentationScope(t.scope),spans:t.spans}))}]}}post(t,e={}){return this.api.postSpans(t,e)}_transformSpan(t){let e=t=>Object.entries(t||{}).map(([t,e])=>({key:t,value:this._transformAnyValue(e)}));return{traceId:t.spanContext.traceId,spanId:t.spanContext.spanId,parentSpanId:t.parentSpanId||"",name:t.name,kind:t.kind||1,startTimeUnixNano:N(t.startTime),endTimeUnixNano:N(t.endTime),attributes:e(t.attributes),events:(t.events||[]).map(t=>({timeUnixNano:N(t.time),name:t.name,attributes:e(t.attributes)}))}}_transformResource(t){return{attributes:Object.entries(t.attributes||{}).map(([t,e])=>({key:t,value:this._transformAnyValue(e)}))}}_transformInstrumentationScope(t){return{name:t.name||"",version:t.version||"",attributes:(t.attributes||[]).map(t=>({key:t.key,value:this._transformAnyValue(t.value)}))}}_transformAnyValue(t){if(null==t)return{stringValue:""};let e=typeof t;if("string"===e)return{stringValue:t};if("number"===e)if(Number.isInteger(t))return{intValue:t.toString()};else return{doubleValue:t};if("boolean"===e)return{boolValue:t};if(Array.isArray(t))return{arrayValue:{values:t.map(t=>this._transformAnyValue(t))}};if("object"===e)return{kvlistValue:{values:Object.entries(t).map(([t,e])=>({key:t,value:this._transformAnyValue(e)}))}};return{stringValue:String(t)}}}let D=[],U=function(t=16){let e=new Uint8Array(t);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")},F="RollbarSession";class J{_attributes;constructor(t,e){this.options=e,this.tracing=t,this.window=t.window,this.session=null,this._attributes={}}init(t={}){return this.session||(this.getSession()||this.createSession(),this.initSessionAttributes(t)),this}getSession(){try{let t=this.window.sessionStorage.getItem(F);if(!t)return null;this.session=JSON.parse(t)}catch{return null}return this}createSession(){return this.session={id:U(),createdAt:Date.now()},this.setSession(this.session)}setSession(t){let e=JSON.stringify(t);try{this.window.sessionStorage.setItem(F,e)}catch{return null}return this}get attributes(){return this._attributes}setAttributes(t){return this._attributes={...this._attributes,...t},this}setUser(t){return this.setAttributes({"user.id":t?.id,"user.email":t?.email,"user.name":t?.name||t?.username}),this}initSessionAttributes(t){return this.setAttributes({"session.id":this.session.id,"browser.brands":navigator.userAgentData?.brands,"browser.language":navigator.language,"browser.mobile":navigator.userAgentData?.mobile,"browser.platform":navigator.userAgentData?.platform,"client.address":"$remote_ip","rollbar.notifier.framework":"browser-js","user_agent.original":navigator.userAgent,...t}),this}}let B=()=>{},V={debug:0,info:1,warn:2,error:3,disable:4},W={error:(...t)=>B("error",t),warn:(...t)=>B("warn",t),info:(...t)=>B("info",t),debug:(...t)=>B("debug",t),log:(...t)=>B("info",t),init:({logLevel:t})=>{B=function(e,r){V[e]<V[t]||(r.unshift("Rollbar:"),console[e].apply(console,r))}}};class ${constructor(t,e={}){this.exporter=t,this.options=e,this.pendingSpans=new Map,this.transforms=[this.userTransform.bind(this)]}addTransform(t){this.transforms.unshift(t)}userTransform(t){this.options.transformSpan&&this.options.transformSpan({span:t})}applyTransforms(t){for(let e of this.transforms)try{e(t)}catch(t){W.error("Error running span transform callback",t)}}onStart(t,e){this.pendingSpans.set(t.span.spanContext.spanId,t)}onEnd(t){this.applyTransforms(t.span),this.exporter.export([t.export()]),this.pendingSpans.delete(t.span.spanContext.spanId)}}class z{constructor(t){return this.usePerformance=t.usePerformance,this.initReadableSpan(t),this.spanProcessor=t.spanProcessor,this.spanProcessor.onStart(this,t.context),t.attributes&&this.setAttributes(t.attributes),this}initReadableSpan(t){this.span={name:t.name,kind:t.kind,spanContext:t.spanContext,parentSpanId:t.parentSpanId,startTime:t.startTime||H(t.usePerformance),endTime:[0,0],status:{code:0,message:""},attributes:{"session.id":t.session?.id},links:[],events:[],duration:0,ended:!1,resource:t.resource,instrumentationScope:t.scope,droppedAttributesCount:0,droppedEventsCount:0,droppedLinksCount:0}}spanContext(){return this.span.spanContext}get spanId(){return this.span.spanContext.spanId}get traceId(){return this.span.spanContext.traceId}setAttribute(t,e){return null==e||this.span.ended||0===t.length||(this.span.attributes[t]=e),this}setAttributes(t){for(let[e,r]of Object.entries(t))this.setAttribute(e,r);return this}addEvent(t,e={},r){return this.span.ended||this.span.events.push({name:t,attributes:e,time:r||H(),droppedAttributesCount:0}),this}isRecording(){return!1===this.span.ended}end(t,e){t&&this.setAttributes(t),this.span.endTime=e||H(this.usePerformance),this.span.ended=!0,this.spanProcessor.onEnd(this)}export(){return this.span}}class X{constructor(t,e){this.spanProcessor=e,this.tracing=t}startSpan(t,e={},r=this.tracing.contextManager.active()){let n,s,i=this.tracing.getSpan(r),o=i?.spanContext(),a=U(8),l=null;o?(n=o.traceId,l=o.traceState,s=o.spanId):n=U(16);let u={traceId:n,spanId:a,traceFlags:0,traceState:l};return new z({resource:{attributes:{...this.tracing.resource?.attributes||{},...e.resource?.attributes||{}}},scope:this.tracing.scope,session:this.tracing.session?.session,context:r,spanContext:u,name:t,kind:0,parentSpanId:s,spanProcessor:this.spanProcessor,startTime:e.startTime,usePerformance:e.usePerformance})}}let G=Symbol.for("Rollbar Context Key SPAN");function Z(t,e){return[t,f(t,e)]}function K(t,e){var r=t.length;return r>2*e?t.slice(0,e).concat(t.slice(r-e)):t}function Q(t,e,r){r=void 0===r?30:r;var n,s=t.data.body;if(s.trace_chain)for(let t of s.trace_chain)n=K(n=t.frames,r),t.frames=n;else s.trace&&(n=K(n=s.trace.frames,r),s.trace.frames=n);return[t,f(t,e)]}function Y(t,e){return e&&e.length>t?e.slice(0,t-3).concat("..."):e}function tt(t,e,n){return[e=C(e,function e(n,s,i){switch(r(s)){case"string":return Y(t,s);case"object":case"array":return C(s,e,i);default:return s}}),f(e,n)]}function te(t){return t.exception&&(delete t.exception.description,t.exception.message=Y(255,t.exception.message)),t.frames=K(t.frames,1),t}function tr(t,e){var r=t.data.body;if(r.trace_chain){var n=r.trace_chain;for(let[t,e]of n.entries())n[t]=te(e)}else r.trace&&(r.trace=te(r.trace));return[t,f(t,e)]}function tn(t){if(!e(t.context,"string")){var r=f(t.context);r.error?t.context="Error: could not serialize 'context'":t.context=r.value||"",t.context.length>255&&(t.context=t.context.substr(0,255))}return{data:t}}function ts(t,e,r){var n,s,i,o=e.hostname,a=e.protocol,l=e.port,u=e.path,c=e.search,h=t.timeout,p=(n=t,s="u">typeof window&&window||"u">typeof self&&self,i=n.defaultTransport||"xhr",void 0===s.fetch&&(i="xhr"),void 0===s.XMLHttpRequest&&(i="fetch"),i),d=t.proxy;if(t.endpoint){var m=r.parse(t.endpoint);o=m.hostname,a=m.protocol,l=m.port,u=m.pathname,c=m.search}return{timeout:h,hostname:o,protocol:a,port:l,path:u,search:c,proxy:d,transport:p}}function ti(t,e){var r=t.protocol||"https:",n=t.port||("http:"===r?80:"https:"===r?443:void 0),s=t.hostname,i=t.path,o=t.timeout,a=t.transport;return t.search&&(i+=t.search),t.proxy&&(i=r+"//"+s+i,s=t.proxy.host||t.proxy.hostname,n=t.proxy.port,r=t.proxy.protocol||r),{timeout:o,protocol:r,hostname:s,path:i,port:n,method:e,transport:a}}let to={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443},ta={hostname:"api.rollbar.com",path:"/api/1/session/",search:null,version:"1",protocol:"https:",port:443};function tl(t,e){return ts(t={...t,endpoint:t.tracing?.endpoint},ta,e)}let tu=class{constructor(t,e,r,n){this.options=t,this.transport=e,this.url=r,this.truncation=n,this.accessToken=t.accessToken,this.transportOptions=function(t,e){return ts(t,to,e)}(t,r),this.OTLPTransportOptions=tl(t,r)}_postPromise({accessToken:t,options:e,payload:r,headers:n}){return new Promise((s,i)=>{this.transport.post({accessToken:t,options:e,payload:r,headers:n,callback:(t,e)=>t?i(t):s(e)})})}postItem(t,e){let r=ti(this.transportOptions,"POST"),n=tn(t);setTimeout(()=>{this.transport.post({accessToken:this.accessToken,options:r,payload:n,callback:e})},0)}async postSpans(t,e={}){let r=ti(this.OTLPTransportOptions,"POST");return this._postPromise({accessToken:this.accessToken,options:r,payload:t,headers:e})}buildJsonPayload(t,e){let r,n=tn(t);return(r=this.truncation?this.truncation.truncate(n):f(n)).error?(e&&e(r.error),null):r.value}postJsonPayload(t,e){let r=ti(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,r,t,e)}configure(t){var e;let r=this.options;return this.options=R(r,t),this.transportOptions=(e=this.options,ts(e,to,this.url)),this.OTLPTransportOptions=tl(this.options,this.url),void 0!==this.options.accessToken&&(this.accessToken=this.options.accessToken),this}},tc=/(^|@)\S+:\d+/,th=/^\s*at .*(\S+:\d+|\(native\))/m,tp=/^(eval@)?(\[native code\])?$/;function td(t){if(!t.includes(":"))return[t,void 0,void 0];let e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]}function tm(t,e){return e&&null!=e.slice?Array.isArray(e.slice)?t.slice(e.slice[0],e.slice[1]):t.slice(0,e.slice):t}var tf=RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function tg(){return null}function ty(t){var e={};return e._stackFrame=t,e.url=t.fileName,e.line=t.lineNumber,e.func=t.functionName,e.column=t.columnNumber,e.args=t.args,e.context=tg(),e}function tv(t,e){var r,n,s;return{stack:function(){var r,n=[];e=e||0;try{r=t,n=(function(t,e){var r,n,s,i,o,a,l,u,c,h,p,d;if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]){return r=t,n=e,!r.stacktrace||r.message.includes("\n")&&r.message.split("\n").length>r.stacktrace.split("\n").length?function(t){let e=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),n=[];for(let t=2,s=r.length;t<s;t+=2){let s=e.exec(r[t]);
1s&&n.push({file:s[2],line:+s[1],raw:r[t]})}return tm(n,void 0)}(r):r.stack?(s=r,i=n,tm(s.stack.split("\n").filter(t=>!!t.match(tc)&&!t.match(/^Error created at/)),i).map(t=>{let e,r=t.split("@"),n=td(r.pop()),s=r.shift()||"",i=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return s.match(/\(([^)]*)\)/)&&(e=s.replace(/^[^(]+\(([^)]*)\)$/,"$1")),{function:i,args:void 0===e||"[arguments not available]"===e?void 0:e.split(","),file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})):function(t){let e=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),n=[];for(let t=0,s=r.length;t<s;t+=2){let s=e.exec(r[t]);s&&n.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:r[t]})}return tm(n,void 0)}(r)}if(t.stack&&t.stack.match(th)){return o=t,a=e,l=o.stack,u=a,tm(l.split("\n").filter(t=>!!t.match(th)),u).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let e=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=e.match(/ (\(.+\)$)/);e=r?e.replace(r[0],""):e;let n=td(r?r[1]:e);return{function:r&&e||void 0,file:["eval","<anonymous>"].includes(n[0])?void 0:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}if(t.stack){return c=t,h=e,p=c.stack,d=h,tm(p.split("\n").filter(t=>!t.match(tp)),d).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{let e=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,r=t.match(e),n=r&&r[1]?r[1]:void 0,s=td(t.replace(e,""));return{function:n,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}if(e?.allowEmpty)return[];throw Error("Cannot parse given Error object")})(r,void 0).map(t=>({functionName:t.function,args:t.args,fileName:t.file,lineNumber:t.line,columnNumber:t.col,source:t.raw}))}catch(t){n=[]}for(var s=[],i=e;i<n.length;i++)s.push(new ty(n[i]));return s}(),message:t.message,name:(n=(r=t).name&&r.name.length&&r.name,s=r.constructor.name&&r.constructor.name.length&&r.constructor.name,n&&s?"Error"===n?s:n:n||s),rawStack:t.stack,rawException:t}}let tb={guessFunctionName:function(){return"?"},guessErrorClass:function(t){if(!t||!t.match)return["Unknown error. There was no error message to display.",""];var e=t.match(tf),r="(unknown)";return e&&(r=e[e.length-1],t=(t=t.replace((e[e.length-2]||"")+r+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[r,t]},gatherContext:tg,parse:function(t,e){var r=t;if(!r.nested&&!r.cause)return new tv(r,e);for(var n=[];r;)n.push(new tv(r,e)),r=r.nested||r.cause,e=0;return n[0].traceChain=n,n[0]},Stack:tv,Frame:ty};function t_(t,e){return!((u[t.level]||0)<(u[e.reportLevel]||0))}function tw(t,r,n,s){var i,o,a=!1;"blocklist"===n&&(a=!0);try{if(i=a?r.hostBlockList:r.hostSafeList,o=k(t,"body.trace_chain")||[k(t,"body.trace")],!i||0===i.length||0===o.length||!o[0])return!a;for(var l=o.length,u=0;u<l;u++)if(function(t,r,n){if(!t)return!n;var s,i=t.frames;if(!i||0===i.length)return!n;for(var o=r.length,a=i.length,l=0;l<a;l++){if(!e(s=i[l].filename,"string"))return!n;for(var u=0;u<o;u++)if(new RegExp(r[u]).test(s))return!0}return!1}(o[u],i,a))return!0}catch(t){a?r.hostBlockList=null:r.hostSafeList=null;var c=a?"hostBlockList":"hostSafeList";return s.error("Error while reading your configuration's "+c+" option. Removing custom "+c+".",t),!a}return!1}class tx{constructor(t,e){this.queue=t,this.options=e,this.transforms=[],this.diagnostic={}}configure(t){this.queue?.configure(t);let e=this.options;return this.options=R(e,t),this}addTransform(t){return n(t)&&this.transforms.push(t),this}log(t,e){if(e=n(e)?e:()=>{},!this.options.enabled)return e(Error("Rollbar is not enabled"),null);this.queue.addPendingItem(t);let r=t.err;this._applyTransforms(t,(n,s)=>{if(n)return this.queue.removePendingItem(t),e(n,null);this.queue.addItem(s,e,r,t)})}_applyTransforms(t,e){let r=-1,n=this.transforms.length,s=this.transforms,i=this.options,o=(t,a)=>{t?e(t,null):++r===n?e(null,a):s[r](a,i,o)};o(null,t)}}let tk=class t{constructor(t,e,r,n,s){this.rateLimiter=t,this.api=e,this.logger=r,this.options=n,this.replay=s,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}configure(t){this.api?.configure(t);let e=this.options;return this.options=R(e,t),this}addPredicate(t){return n(t)&&this.predicates.push(t),this}addPendingItem(t){this.pendingItems.push(t)}removePendingItem(t){let e=this.pendingItems.indexOf(t);-1!==e&&this.pendingItems.splice(e,1)}addItem(t,e,r,s){e&&n(e)||(e=function(){});let i=t.data,o=this._applyPredicates(i);if(o.stop){this.removePendingItem(s),e(o.err);return}if(this._maybeLog(i,r),this.removePendingItem(s),!this.options.transmit)return void e(Error("Transmit disabled"));this.replay&&i.body&&(t.replayId=this.replay.capture(null,i.uuid,{type:"occurrence",level:t.level}),t.replayId&&x(t.data,[{key:"replay_id",value:t.replayId}])),this.pendingRequests.push(i);try{this._makeApiRequest(i,(r,n,s)=>{this._dequeuePendingRequest(i),t.replayId&&this.replay.sendOrDiscardReplay(t.replayId,r,n,s),e(r,n)})}catch(r){this._dequeuePendingRequest(i),t.replayId&&this.replay?.discard(t.replayId),e(r)}}wait(t){!n(t)||(this.waitCallback=t,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval(()=>{this._maybeCallWait()},500)))}_applyPredicates(t){let e=null;for(let r=0,n=this.predicates.length;r<n;r++)if(!(e=this.predicates[r](t,this.options))||void 0!==e.err)return{stop:!0,err:e.err};return{stop:!1,err:null}}
1_makeApiRequest(t,e){let r=this.rateLimiter.shouldSend(t);r.shouldSend?this.api.postItem(t,(r,n,s)=>{r?this._maybeRetry(r,t,e):e(r,n,s)}):r.error?e(r.error):this.api.postItem(r.payload,e)}static RETRIABLE_ERRORS=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];_maybeRetry(e,r,n){let s=!1;if(this.options.retryInterval){for(let r=0,n=t.RETRIABLE_ERRORS.length;r<n;r++)if(e.code===t.RETRIABLE_ERRORS[r]){s=!0;break}s&&o(this.options.maxRetries)&&(r.retries=r.retries?r.retries+1:1,r.retries>this.options.maxRetries&&(s=!1))}s?this._retryApiRequest(r,n):n(e)}_retryApiRequest(t,e){this.retryQueue.push({item:t,callback:e}),this.retryHandle||(this.retryHandle=setInterval(()=>{for(;this.retryQueue.length;){let t=this.retryQueue.shift();this._makeApiRequest(t.item,t.callback)}},this.options.retryInterval))}_dequeuePendingRequest(t){let e=this.pendingRequests.indexOf(t);-1!==e&&(this.pendingRequests.splice(e,1),this._maybeCallWait())}_maybeLog(t,e){if(this.logger&&this.options.verbose){let r=e||k(t,"body.trace.exception.message")||k(t,"body.trace_chain.0.exception.message");if(r)return void this.logger.error(r);(r=k(t,"body.message.body"))&&this.logger.log(r)}}_maybeCallWait(){return!!n(this.waitCallback)&&0===this.pendingItems.length&&0===this.pendingRequests.length&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)}};class tS{static globalSettings={startTime:Date.now(),maxItems:void 0,itemsPerMinute:void 0};constructor(t={}){this.startTime=Date.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(t)}configureGlobal(t={}){let{startTime:e,maxItems:r,itemsPerMinute:n}=t;void 0!==e&&(tS.globalSettings.startTime=e),void 0!==r&&(tS.globalSettings.maxItems=r),void 0!==n&&(tS.globalSettings.itemsPerMinute=n)}shouldSend(t,e=Date.now()){let r=e-this.startTime;(r<0||r>=6e4)&&(this.startTime=e,this.perMinCounter=0);let n=tS.globalSettings.maxItems,s=tS.globalSettings.itemsPerMinute;if(tE(t,n,this.counter))return tI(this.platform,this.platformOptions,`${n} max items reached`,!1);if(tE(t,s,this.perMinCounter))return tI(this.platform,this.platformOptions,`${s} items per minute reached`,!1);this.counter+=1,this.perMinCounter+=1;let i=!tE(t,n,this.counter),o=i&&!tE(t,s,this.perMinCounter);return tI(this.platform,this.platformOptions,null,o,n,s,i)}setPlatformOptions(t,e){this.platform=t,this.platformOptions=e}}function tE(t,e,r){return!t.ignoreRateLimit&&e>=1&&r>e}function tI(t,e,r,n,s,i,o){var a,l;let u,c=null,h=r?Error(r):null;return h||n||(a=t,u={body:{message:{body:o?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.",extra:{maxItems:s,itemsPerMinute:i}}},language:"javascript",environment:(l=e).environment||l.payload&&l.payload.environment,notifier:{version:l.notifier&&l.notifier.version||l.version}},"browser"===a?(u.platform="browser",u.framework="browser-js",u.notifier.name="rollbar-browser-js"):"server"===a?(u.framework=l.framework||"node-js",u.notifier.name=l.notifier.name):"react-native"===a&&(u.framework=l.framework||"react-native",u.notifier.name=l.notifier.name),c=u),{error:h,shouldSend:n,payload:c}}function tR(t,e,r,n,s,i,o){this.options=R(t),this.logger=r,tR.rateLimiter.configureGlobal(this.options),tR.rateLimiter.setPlatformOptions(o,this.options),this.api=e,this.queue=new tk(tR.rateLimiter,e,r,this.options,i),this.tracing=s;var a=this.options.tracer||null;tC(a)?(this.tracer=a,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new tx(this.queue,this.options),this.telemeter=n,tT(t),this.lastError=null,this.lastErrorHash="none"}function tT(t){t.stackTraceLimit&&(Error.stackTraceLimit=t.stackTraceLimit)}function tC(t){if(!t||!t.scope||"function"!=typeof t.scope)return!1;var e=t.scope();return!!e&&!!e.active&&"function"==typeof e.active}function tO(t,e,r){t._isUncaught&&(t.data._isUncaught=!0),t._originalArgs&&(t.data._originalArgs=t._originalArgs),r(null,t)}function tL(t,e,r){var n=e.payload||{};n.body&&delete n.body,t.data=R(t.data,n),r(null,t)}function tA(t,e,r){t.telemetryEvents&&S(t,"data.body.telemetry",t.telemetryEvents),r(null,t)}function tP(t,e,r){if(!t.message)return void r(null,t);var n="data.body.trace_chain.0",s=k(t,n);if(s||(s=k(t,n="data.body.trace")),s){if(!(s.exception&&s.exception.description)){S(t,n+".exception.description",t.message),r(null,t);return}var i=R(k(t,n+".extra")||{},{message:t.message});S(t,n+".extra",i)}r(null,t)}function tq(t,e,r){if(!e.sendConfig)return r(null,t);var n=k(t,"data.custom")||{};n._rollbarConfig=e,t.data.custom=n,r(null,t)}function tj(t,e){n(t[e])&&(t[e]=t[e].toString())}function tN(t,e,r){var n=e._configuredOptions;tj(n,"transform"),tj(n,"checkIgnore"),tj(n,"onSendCallback"),delete n.accessToken,t.data.notifier.configured_options=n,r(null,t)}function tH(t,e,r){var n=R(t.notifier.client.notifier.diagnostic,t.diagnostic);if(k(t,"err._isAnonymous")&&(n.is_anonymous=!0),t._isUncaught&&(n.is_uncaught=t._isUncaught),t.err)try{n.raw_error={message:t.err.message,name:t.err.name,constructor_name:t.err.constructor&&t.err.constructor.name,filename:t.err.fileName,line:t.err.lineNumber,column:t.err.columnNumber,stack:t.err.stack}}catch(t){n.raw_error={failed:String(t)}}t.data.notifier.diagnostic=R(t.data.notifier.diagnostic,n),r(null,t)}tR.rateLimiter=new tS({maxItems:0,itemsPerMinute:60}),tR.prototype.global=function(t){return tR.rateLimiter.configureGlobal(t),this},tR.prototype.configure=function(t,e){var r=this.options,n={};e&&(n={payload:e}),this.options=R(r,t,n);var s=this.options.tracer||null;return tC(s)?(this.tracer=s,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),tT(t),this.global(this.options),tC(t.tracer)&&(this.tracer=t.tracer),this},tR.prototype.log=function(t){var e=this._defaultLogLevel();return this._log(e,t)},tR.prototype.debug=function(t){this._log("debug",t)},tR.prototype.info=function(t){this._log("info",t)},tR.prototype.warn=function(t){this._log("warning",t)},tR.prototype.warning=function(t){this._log("warning",t)},tR.prototype.error=function(t){this._log("error",t)},tR.prototype.critical=function(t){this._log("critical",t)},tR.prototype.wait=function(t){this.queue.wait(t)},tR.prototype.captureEvent=function(t,e,r){return this.telemeter&&this.telemeter.captureEvent(t,e,r)},tR.prototype.captureDomContentLoaded=function(t){return this.telemeter&&this.telemeter.captureDomContentLoaded(t)},tR.prototype.captureLoad=function(t){return this.telemeter&&this.telemeter.captureLoad(t)},tR.prototype.buildJsonPayload=function(t){return this.api.buildJsonPayload(t)},tR.prototype.sendJsonPayload=function(t){this.api.postJsonPayload(t)},tR.prototype._log=function(t,e){var r;if(e.callback&&(r=e.callback,delete e.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(e)){if(r){var n=Error("ignored identical item");n.item=e,r(n)}return}try{e.level=e.level||t,this._addItemAttributes(e),this._addTracingInfo(e);let n=this.telemeter;n&&(n._captureRollbarItem(e),e.telemetryEvents=n.copyEvents()||[]),this.notifier.log(e,r)}catch(t){r&&r(t),this.logger.error(t)}},tR.prototype._addItemAttributes=function(t){let e=this.tracing?.getSpan(),r=[{key:"session_id",value:function(t){let e=t.asyncLocalStorage;if(!e||"function"!=typeof e.getStore)return null;let r=e.getStore();return r?.sessionId||null}(this)||this.tracing?.sessionId},{key:"span_id",value:e?.spanId},{key:"trace_id",value:e?.traceId}];t._isUncaught&&r.push({key:"is_uncaught",value:"true"}),x(t.data,r),e?.addEvent("rollbar.occurrence",[{key:"rollbar.occurrence.uuid",value:t.uuid}])},tR.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},tR.prototype._sameAsLastError=function(t){if(!t._isUncaught)return!1;var e,r=((e=t).message||"")+"::"+((e.err||{}).stack||String(e.err));return this.lastErrorHash===r||(this.lastError=t.err,this.lastErrorHash=r,!1)},tR.prototype._addTracingInfo=function(t){if(this.tracer){var e=this.tracer.scope().active();if(function(t){if(!t||!t.context||"function"!=typeof t.context)return!1;var e=t.context();return!!e&&!!e.toSpanId&&!!e.toTraceId&&"function"==typeof e.toSpanId&&"function"==typeof e.toTraceId}(e)){e.setTag("rollbar.error_uuid",t.uuid),e.setTag("rollbar.has_error",!0),e.setTag("error",!0),e.setTag("rollbar.item_url",`https://rollbar.com/item/uuid/?uuid=${t.uuid}`),e.setTag("rollbar.occurrence_url",`https://rollbar.com/occurrence/uuid/?uuid=${t.uuid}`);var r=e.context().toSpanId(),n=e.context().toTraceId();t.custom?(t.custom.opentracing_span_id=r,t.custom.opentracing_trace_id=n):t.custom={opentracing_span_id:r,opentracing_trace_id:n}}}};function tM(t,e){return!k(e,"plugins.jquery.ignoreAjaxErrors")||!k(t,"body.message.extra.isAjax")}function tD(t,e,r){if(t.err&&"DOMException"===tb.Stack(t.err).name){var n=Error();n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack,n.nested=t.err,t.err=n}r(null,t)}function tU(t,e,r){if(t.data=t.data||{},t.err)try{t.stackInfo=t.err._savedStackTrace||tb.parse(t.err,t.skipFrames),e.addErrorContext&&function(t){var e=[],r=t.err;for(e.push(r);r.nested||r.cause;)r=r.nested||r.cause,e.push(r);var n=t.data.custom||{},s=!1;try{for(let t of e)i(t,"rollbarContext")&&(n=R(n,v(t.rollbarContext)),s=!0);s&&(t.data.custom=n)}catch(e){t.diagnostic.error_context="Failed: "+e.message}}(t)}catch(e){W.error("Error while parsing the error object.",e);try{t.message=t.err.message||t.err.description||t.message||String(t.err)}
1catch(e){t.message=String(t.err)||String(e)}delete t.err}r(null,t)}function tF(t,e,r){t.message||t.stackInfo||t.custom||r(Error("No message, stack info, or custom data"),null),r(null,t)}function tJ(t,e,r){var n=e.payload&&e.payload.environment||e.environment;t.data=R(t.data,{environment:n,level:t.level,endpoint:e.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:t.uuid,notifier:{name:"rollbar-browser-js",version:e.version},custom:t.custom}),r(null,t)}function tB(t,e,r){t.stackInfo?t.stackInfo.traceChain?function(t,e,r){for(var n=t.stackInfo.traceChain,s=[],i=n.length,o=0;o<i;o++){var a=t$(t,n[o],e);s.push(a)}S(t,"data.body",{trace_chain:s}),r(null,t)}(t,e,r):function(t,e,r){if(tW(t)){var n=t$(t,t.stackInfo,e);S(t,"data.body",{trace:n}),r(null,t)}else{var s=t.stackInfo,i=tb.guessErrorClass(s.message);t.message=tz(s,i[0],e)+": "+i[1],tV(t,e,r)}}(t,e,r):tV(t,e,r)}function tV(t,e,r){var n=t.message,s=t.custom;n||(n="Item sent with null or missing arguments.");var i={body:n};s&&(i.extra=R(s)),S(t,"data.body",{message:i}),r(null,t)}function tW(t,e=null){let r=(e||t.stackInfo).stack;return r&&0===r.length&&t._unhandledStackInfo&&t._unhandledStackInfo.stack&&(r=t._unhandledStackInfo.stack),r}function t$(t,r,n){var s,i,o,a,l,u,m,f,g=t&&t.data.description,y=t&&t.custom,v=tW(t,r),b=tb.guessErrorClass(r.message),_={exception:{class:tz(r,b[0],n),message:b[1]}};if(g&&(_.exception.description=g),v){for(0===v.length&&(_.exception.stack=r.rawStack,_.exception.raw=String(r.rawException)),_.frames=[],m=0;m<v.length;++m)i={filename:(s=v[m]).url?function(t){var r=function(t){if(e(t,"string")){for(var r=d[c?"strict":"loose"].exec(t),n={},s=0,i=h.length;s<i;++s)n[h[s]]=r[s]||"";return n[p.name]={},n[h[12]].replace(p.parser,function(t,e,r){e&&(n[p.name][e]=r)}),n}}(t);return r?(""===r.anchor&&(r.source=r.source.replace("#","")),t=r.source.replace("?"+r.query,"")):"(unknown)"}(s.url):"(unknown)",lineno:s.line||null,method:s.func&&"?"!==s.func?s.func:"[anonymous]",colno:s.column},n.sendFrameUrl&&(i.url=s.url),i.method&&i.method.endsWith&&i.method.endsWith("_rollbar_wrapped")||(o=a=l=null,(u=s.context?s.context.length:0)&&(f=Math.floor(u/2),a=s.context.slice(0,f),o=s.context[f],l=s.context.slice(f)),o&&(i.code=o),(a||l)&&(i.context={},a&&a.length&&(i.context.pre=a),l&&l.length&&(i.context.post=l)),s.args&&(i.args=s.args),_.frames.push(i));_.frames.reverse(),y&&(_.extra=R(y))}return _}function tz(t,e,r){return t.name?t.name:r.guessErrorClass?e:"(unknown)"}let tX=function({accessToken:t,url:e,method:r,payload:n,headers:s,callback:i,timeout:a}){var l,u;o(a)&&(l=new AbortController,u=setTimeout(function(){l.abort()},a)),fetch(e,{method:r,headers:s={"Content-Type":"application/json","X-Rollbar-Access-Token":t,signal:l&&l.signal,...s},body:n}).then(function(t){u&&clearTimeout(u);let r=t.headers,n=e.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":r.get("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":r.get("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":r.get("Rollbar-Replay-RateLimit-Reset")}:{};i(null,t.json(),n)}).catch(function(t){W.error(t.message),i(t)})};function tG(t,e){var r=Error(t);return r.code=e||"ENOTFOUND",r}let tZ=function({accessToken:t,url:r,method:n,payload:s,headers:i,callback:a,requestFactory:l,timeout:u}){var c;if(!(c=l?l():function(){var t,e,r=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],n=r.length;for(e=0;e<n;e++)try{t=r[e]();break}catch(t){}return t}()))return a(Error("No way to send a request"));try{try{var h=function(){try{if(h&&4===c.readyState){h=void 0;var t,n,s,i=g(c.responseText);if((t=c)&&t.status&&200===t.status){let t=r.endsWith("/api/1/item/")?{"Rollbar-Replay-Enabled":c.getResponseHeader("Rollbar-Replay-Enabled"),"Rollbar-Replay-RateLimit-Remaining":c.getResponseHeader("Rollbar-Replay-RateLimit-Remaining"),"Rollbar-Replay-RateLimit-Reset":c.getResponseHeader("Rollbar-Replay-RateLimit-Reset")}:{};a(i.error,i.value,t);return}if((n=c)&&e(n.status,"number")&&n.status>=400&&n.status<600){if(403===c.status){var o=i.value&&i.value.message;W.error(o)}a(Error(String(c.status)))}else a(tG("XHR response had no status code (likely connection failure)"))}}catch(t){s=t&&t.stack?t:Error(t),a(s)}};if(c.open(n,r,!0),c.setRequestHeader)for(let[e,r]of(c.setRequestHeader("Content-Type","application/json"),c.setRequestHeader("X-Rollbar-Access-Token",t),Object.entries(i??{})))c.setRequestHeader(e,r);o(u)&&(c.timeout=u),c.onreadystatechange=h,c.send(s)}catch(t){if("u">typeof XDomainRequest){if(!window||!window.location)return a(Error("No window available during request, unknown environment"));"http:"===window.location.href.substring(0,5)&&"https"===r.substring(0,5)&&(r="http"+r.substring(5));var p=new XDomainRequest;p.onprogress=()=>{},p.ontimeout=function(){a(tG("Request timed out","ETIMEDOUT"))},p.onerror=function(){a(Error("Error during request"))},p.onload=function(){var t=g(p.responseText);a(t.error,t.value)},p.open(n,r,!0),p.send(s)}else a(Error("Cannot find a method to transport a request"))}}catch(t){a(t)}};function tK(t){this.truncation=t}function tQ(t){var e,r,n={protocol:null,auth:null,host:null,path:null,hash:null,href:t,hostname:null,port:null,pathname:null,search:null,query:null};if(-1!==(e=t.indexOf("//"))?(n.protocol=t.substring(0,e),r=e+2):r=0,-1!==(e=t.indexOf("@",r))&&(n.auth=t.substring(r,e),r=e+1),-1===(e=t.indexOf("/",r))){if(-1===(e=t.indexOf("?",r)))return -1===(e=t.indexOf("#",r))?n.host=t.substring(r):(n.host=t.substring(r,e),n.hash=t.substring(e)),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),n;n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e}else n.host=t.substring(r,e),n.hostname=n.host.split(":")[0],n.port=n.host.split(":")[1],n.port&&(n.port=parseInt(n.port,10)),r=e;if(-1===(e=t.indexOf("#",r))?n.path=t.substring(r):(n.path=t.substring(r,e),n.hash=t.substring(e)),n.path){var s=n.path.split("?");n.pathname=s[0],n.query=s[1],n.search=n.query?"?"+n.query:null}return n}tK.prototype.get=function(t,e,r,s,i){s&&n(s)||(s=()=>{}),function(t,e,r){(r=r||{}).access_token=t;var n,s,i=[];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&i.push([n,r[n]].join("="));var o="?"+i.sort().join("&");(e=e||{}).path=e.path||"";var a=e.path.indexOf("?"),l=e.path.indexOf("#");-1!==a&&(-1===l||l>a)?(s=e.path,e.path=s.substring(0,a)+o+"&"+s.substring(a+1)):-1!==l?(s=e.path,e.path=s.substring(0,l)+o+s.substring(l)):e.path=e.path+o}(t,e,r);var o=m(e);
1this._makeZoneRequest({accessToken:t,url:o,method:"GET",callback:s,requestFactory:i,timeout:e.timeout,transport:e.transport})},tK.prototype.post=function({accessToken:t,options:e,payload:r,headers:s,callback:i,requestFactory:o}){if(i&&n(i)||(i=()=>{}),!r)return i(Error("Cannot send empty request"));if((a=this.truncation&&r.body?this.truncation.truncate(r):f(r)).error)return i(a.error);var a,l=m(e);this._makeZoneRequest({accessToken:t,url:l,method:"POST",payload:a.value,headers:s,callback:i,requestFactory:o,timeout:e.timeout,transport:e.transport})},tK.prototype.postJsonPayload=function(t,e,r,s,i){s&&n(s)||(s=()=>{});var o=m(e);this._makeZoneRequest({accessToken:t,url:o,method:"POST",payload:r,callback:s,requestFactory:i,timeout:e.timeout,transport:e.transport})},tK.prototype._makeZoneRequest=function(){var t="u">typeof window&&window||"u">typeof self&&self,e=t&&t.Zone&&t.Zone.root,r=Array.prototype.slice.call(arguments);e?e.run(()=>{this._makeRequest.apply(void 0,r)}):this._makeRequest.apply(void 0,r)},tK.prototype._makeRequest=function(t){let{payload:e,callback:r,transport:n}=t;if("u">typeof RollbarProxy){var s,i;return s=e,i=r,void new RollbarProxy().sendJsonPayload(s,function(t){},function(t){i(Error(t))})}"fetch"===n?tX(t):tZ(t)},t.s(["parse",0,tQ],815054);var tY=t.i(815054);let t0=null;function t1(){return"u">typeof window&&window||"u">typeof self&&self}let t2={environment:"unknown",version:"3.1.0",scrubFields:["pw","pass","passwd","password","secret","confirm_password","confirmPassword","password_confirmation","passwordConfirmation","access_token","accessToken","X-Rollbar-Access-Token","secret_key","secretKey","secretToken","cc-number","card number","cardnumber","cardnum","ccnum","ccnumber","cc num","creditcardnumber","credit card number","newcreditcardnumber","new credit card","creditcardno","credit card no","card#","card #","cc-csc","cvc","cvc2","cvv2","ccv2","security code","card verification","name on credit card","name on card","nameoncard","cardholder","card holder","name des karteninhabers","ccname","card type","cardtype","cc type","cctype","payment type","expiration date","expirationdate","expdate","cc-exp","ccmonth","ccyear"],logLevel:"debug",reportLevel:"debug",uncaughtErrorLevel:"error",endpoint:"api.rollbar.com/api/1/item/",verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1,replay:{enabled:!1,autoStart:!0,triggerDefaults:{samplingRatio:1,preDuration:300,postDuration:5},triggers:[{type:"occurrence",level:["error","critical"]}],debug:{logErrors:!0,logEmits:!1},inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,maskInputOptions:{password:!0,email:!1,tel:!1,text:!1,color:!1,date:!1,"datetime-local":!1,month:!1,number:!1,range:!1,search:!1,time:!1,url:!1,week:!1},maskAllInputs:!1,blockClass:"rb-block",maskTextClass:"rb-mask",ignoreClass:"rb-ignore",slimDOMOptions:{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}},tracing:{enabled:!1,endpoint:"api.rollbar.com/api/1/session/"}},t5=class t{constructor(t,r){W.init({logLevel:t.logLevel||"error"}),this.options=I(t2,t,null,W),this.options._configuredOptions=t,this.components=this.components||{};const i=this.components.telemeter,o=this.components.instrumenter;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;const a=this.components.truncation,l=this.components.tracing,u=this.components.replay,c=new tK(a),h=new tu(this.options,c,tY,a);if(l&&(this.tracing=new l(t1(),h,this.options),this.tracing.initSession()),i&&(this.telemeter=new i(this.options,this.tracing)),u&&"u">typeof window){const t=this.options.replay;this.replay=new u({tracing:this.tracing,telemeter:this.telemeter,options:t}),t.enabled&&t.autoStart&&this.replay.recorder.start()}this.client=r||new tR(this.options,h,W,this.telemeter,this.tracing,this.replay,"browser");var p=t1(),d="u">typeof document&&document;this.isChrome=p.chrome&&p.chrome.runtime,this.anonymousErrorsPending=0,function(t,r,i){var o;t.addTransform(tD).addTransform(tU).addTransform(tF).addTransform(tJ).addTransform(function(t,e,r){var n={};i&&i.location&&(n.url=i.location.href,n.query_string=i.location.search);var s="$remote_ip";e.captureIp?!0!==e.captureIp&&(s+="_anonymize"):s=null,s&&(n.user_ip=s),Object.keys(n).length>0&&S(t,"data.request",n),r(null,t)}).addTransform(function(t,e,r){if(!i)return r(null,t);var n=i.navigator||{},s=i.screen||{};S(t,"data.client",{runtime_ms:t.timestamp-i._rollbarStartTime,timestamp:Math.round(t.timestamp/1e3),javascript:{browser:n.userAgent,language:n.language,cookie_enabled:n.cookieEnabled,screen:{width:s.width,height:s.height}}}),r(null,t)}).addTransform(function(t,e,r){if(!i||!i.navigator)return r(null,t);for(var n,s=[],o=i.navigator.plugins||[],a=0,l=o.length;a<l;++a)n=o[a],s.push({name:n.name,description:n.description});S(t,"data.client.javascript.plugins",s),r(null,t)}).addTransform(tB).addTransform(tP).addTransform(tA).addTransform(tq).addTransform((o=r.scrub,function(t,e,r){if(o){var n=e.scrubFields||[],s=e.scrubPaths||[];t.data=o(t.data,n,s)}r(null,t)})).addTransform(tL).addTransform(function(t,r,i){var o,a=R(t),l=null;try{n(r.transform)&&(l=r.transform(a.data,t))}catch(e){r.transform=null,W.error("Error while calling custom transform() function. Removing custom transform().",e),i(null,t);return}s(o=l)&&e(o.then,"function")?l.then(function(t){t&&(a.data=t),i(null,a)},function(e){i(e,t)}):i(null,a)}).addTransform(tN).addTransform(tH).addTransform(tO)}(this.client.notifier,this,p),function(t){t.addPredicate(t_).addPredicate(tM).addPredicate(function(t,e){var r=!!t._isUncaught;delete t._isUncaught;var s=t._originalArgs;delete t._originalArgs;try{n(e.onSendCallback)&&e.onSendCallback(r,s,t)}catch(t){e.onSendCallback=null,W.error("Error while calling onSendCallback, removing",t)}
1try{if(n(e.checkIgnore)&&e.checkIgnore(r,s,t))return!1}catch(t){e.checkIgnore=null,W.error("Error while calling custom checkIgnore(), removing",t)}return!0}).addPredicate(function(t,e){return!tw(t,e,"blocklist",W)}).addPredicate(function(t,e){return tw(t,e,"safelist",W)}).addPredicate(function(t,e){var r,n,s,i,o,a;try{if(!(s=e.ignoredMessages)||0===s.length||(a=function(t){var e=t.body,r=[];if(e.trace_chain)for(let t of e.trace_chain)r.push(k(t,"exception.message"));return e.trace&&r.push(k(e,"trace.exception.message")),e.message&&r.push(k(e,"message.body")),r}(t),0===a.length))return!0;for(i=s.length,r=0;r<i;r++)for(o=RegExp(s[r],"gi"),n=0;n<a.length;n++)if(o.test(a[n]))return!1}catch(t){e.ignoredMessages=null,W.error("Error while reading your configuration's ignoredMessages option. Removing custom ignoredMessages.")}return!0})}(this.client.queue),this.setupUnhandledCapture(),o&&(this.instrumenter=new o(this.options,this.client.telemeter,this,p,d),this.instrumenter.instrument()),this.setSessionAttributesFromOptions(t),this.rollbar=this}static init(e,r){return t0?t0.global(e).configure(e):t0=new t(e,r)}static setComponents(e){t.prototype.components=e}global(t){return this.client.global(t),this}configure(t,e){t.logLevel&&W.init({logLevel:t.logLevel}),this.setSessionAttributesFromOptions(t);var r=this.options,n={};return e&&(n={payload:e}),this.options=I(r,t,n,W),this.options._configuredOptions=I(r._configuredOptions,t,n),this.tracing?.configure(this.options),this.replay?.configure(this.options.replay),this.client.configure(this.options,e),this.instrumenter?.configure(this.options),this.setupUnhandledCapture(),this}lastError(){return this.client.lastError}log(){var t=this._createItem(arguments),e=t.uuid;return this.client.log(t),{uuid:e}}debug(){var t=this._createItem(arguments),e=t.uuid;return this.client.debug(t),{uuid:e}}info(){var t=this._createItem(arguments),e=t.uuid;return this.client.info(t),{uuid:e}}warn(){var t=this._createItem(arguments),e=t.uuid;return this.client.warn(t),{uuid:e}}warning(){var t=this._createItem(arguments),e=t.uuid;return this.client.warning(t),{uuid:e}}error(){var t=this._createItem(arguments),e=t.uuid;return this.client.error(t),{uuid:e}}critical(){var t=this._createItem(arguments),e=t.uuid;return this.client.critical(t),{uuid:e}}buildJsonPayload(t){return this.client.buildJsonPayload(t)}sendJsonPayload(t){return this.client.sendJsonPayload(t)}triggerDirectReplay(t){return this.triggerReplay({type:"direct",...t})}triggerReplay(t){return this.replay?this.replay.triggerReplay(t):null}setupUnhandledCapture(){var t=t1();if(!this.unhandledExceptionsInitialized&&(this.options.captureUncaught||this.options.handleUncaughtExceptions)){var e,r=this;if(t){if("function"==typeof r._rollbarOldOnError)e=r._rollbarOldOnError;else if(t.onerror){for(e=t.onerror;e._rollbarOldOnError;)e=e._rollbarOldOnError;r._rollbarOldOnError=e}r.handleAnonymousErrors(),t.onerror=function(){var n,s,i,o,a,l=Array.prototype.slice.call(arguments,0);n=t,s=r,i=e,o=l,n._rollbarWrappedError&&(o[4]||(o[4]=n._rollbarWrappedError),o[5]||(o[5]=n._rollbarWrappedError._rollbarContext),n._rollbarWrappedError=null),a=s.handleUncaughtException.apply(s,o),i&&i.apply(n,o),"anonymous"===a&&(s.anonymousErrorsPending+=1)}}this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(t,this),this.unhandledExceptionsInitialized=!0}if(!this.unhandledRejectionsInitialized&&(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)){var n=this;if(t){"function"==typeof t._rollbarURH&&t._rollbarURH.belongsToShim&&t.removeEventListener("unhandledrejection",t._rollbarURH);var s=function(t){var e,r,s;try{e=t.reason}catch(t){e=void 0}try{r=t.promise}catch(t){r="[unhandledrejection] error getting `promise` from event"}try{s=t.detail,!e&&s&&(e=s.reason,r=s.promise)}catch(t){}e||(e="[unhandledrejection] error getting `reason` from event"),n&&n.handleUnhandledRejection&&n.handleUnhandledRejection(e,r)};s.belongsToShim=void 0,t._rollbarURH=s,t.addEventListener("unhandledrejection",s)}this.unhandledRejectionsInitialized=!0}}handleUncaughtException(t,e,r,n,s,i){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&null===s&&""===e)return"anonymous";var o,l=y(t,e,r,n,s,"onerror","uncaught exception",tb);a(s)?(o=this._createItem([t,s,i]))._unhandledStackInfo=l:a(e)?(o=this._createItem([t,e,i]))._unhandledStackInfo=l:(o=this._createItem([t,i])).stackInfo=l,o.level=this.options.uncaughtErrorLevel,o._isUncaught=!0,this.client.log(o)}}handleAnonymousErrors(){if(!this.options.inspectAnonymousErrors||!this.isChrome)return;let t=(t,e)=>{if(this.options.inspectAnonymousErrors&&this.anonymousErrorsPending){if(this.anonymousErrorsPending-=1,!t)return;t._isAnonymous=!0,this.handleUncaughtException(t.message,null,null,null,t)}return t.stack};try{Error.prepareStackTrace=t}catch(t){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",t)}}handleUnhandledRejection(t,e){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var r,n="unhandled rejection was null or undefined!";if(t)if(t.message)n=t.message;else{var s=f(t);s.value&&(n=s.value)}var i=t&&t._rollbarContext||e&&e._rollbarContext;a(t)?r=this._createItem([n,t,i]):(r=this._createItem([n,t,i])).stackInfo=y(n,"",0,0,null,"unhandledrejection","",tb),r.level=this.options.uncaughtErrorLevel,r._isUncaught=!0,r._originalArgs=r._originalArgs||[],r._originalArgs.push(e),this.client.log(r)}}wrap(t,r,s){try{var o;if(o=n(r)?r:function(){return r||{}},!n(t)||t._isWrap)return t;if(!t._rollbar_wrapped)for(var a in t._rollbar_wrapped=function(){s&&n(s)&&s.apply(this,arguments);try{return t.apply(this,arguments)}catch(n){var r=n;throw r&&window._rollbarWrappedError!==r&&(e(r,"string")&&(r=new String(r)),r._rollbarContext=o()||{},r._rollbarContext._wrappedSource=t.toString(),window._rollbarWrappedError=r),r}},t._rollbar_wrapped._isWrap=!0,t)i(t,a)&&"_rollbar_wrapped"!==a&&(t._rollbar_wrapped[a]=t[a]);return t._rollbar_wrapped}catch(e){return t}}captureEvent(){var t=function(t){for(var e,n,s,i,o=0,a=t.length;o<a;++o)switch(r(i=t[o])){case"string":!e&&w(b,i)?e=i:!s&&w(_,i)&&(s=i);break;case"object":n=i}return{type:e||"manual",metadata:n||{},level:s}}(arguments);return this.client.captureEvent(t.type,t.metadata,t.level)}setSessionUser(t){this.tracing?.session&&this.tracing.session.setUser(t)}setSessionAttributes(t){this.tracing?.session&&(t={...t},this.tracing.session.setAttributes(t))}setSessionAttributesFromOptions(t){let e=t.person||t.payload?.person;e&&this.setSessionUser(e);let r=t.client?.javascript?.code_version||t.codeVersion||t.code_version||t.payload?.client?.javascript?.code_version||t.payload?.code_version||t.payload?.codeVersion;this.setSessionAttributes({"rollbar.codeVersion":r,"rollbar.notifier.name":"rollbar-browser-js","rollbar.notifier.version":t.version})}captureDomContentLoaded(t,e){return e||(e=new Date),this.client.captureDomContentLoaded(e)}captureLoad(t,e){return e||(e=new Date),this.client.captureLoad(e)}loadFull(){W.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")}_createItem(t){return function(t,e,n){for(var s,i,o,a,l,u,c,h,p=[],d=[],m=0,f=t.length;m<f;++m){var g=r(h=t[m]);switch(d.push(g),g){case"undefined":break;case"string":a?p.push(h):a=h;break;
1case"function":c=function(t,e){return function(r,n){try{e(r,n)}catch(e){t.error(e)}}}(e,h);break;case"date":p.push(h);break;case"error":case"domexception":case"exception":l?p.push(h):l=h;break;case"object":case"array":if(h instanceof Error||"u">typeof DOMException&&h instanceof DOMException){l?p.push(h):l=h;break}u?p.push(h):u=h;break;default:if(h instanceof Error||"u">typeof DOMException&&h instanceof DOMException){l?p.push(h):l=h;break}p.push(h)}}u&&(u=v(u)),p.length>0&&(u||(u=v({})),u.extraArgs=v(p));var y={message:a,err:l,custom:u,timestamp:E(),callback:c,notifier:n,diagnostic:{},uuid:(o=E(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(o+16*Math.random())%16|0;return o=Math.floor(o/16),("x"===t?e:7&e|8).toString(16)}))};return y.data=y.data||{},s=y,(i=u)&&void 0!==i.level&&(s.level=i.level,delete i.level),i&&void 0!==i.skipFrames&&(s.skipFrames=i.skipFrames,delete i.skipFrames),y._originalArgs=t,y.diagnostic.original_arg_types=d,y}(t,W,this)}static callInstance(t,e){if(!t0){let t="Rollbar is not initialized";W.error(t);let r=function(t){for(var e=0,r=t.length;e<r;++e)if(n(t[e]))return t[e]}(e);r&&r(Error(t));return}return t0[t].apply(t0,e)}static global=(...e)=>t.callInstance("global",e);static configure=(...e)=>t.callInstance("configure",e);static lastError=(...e)=>t.callInstance("lastError",e);static log=(...e)=>t.callInstance("log",e);static debug=(...e)=>t.callInstance("debug",e);static info=(...e)=>t.callInstance("info",e);static warn=(...e)=>t.callInstance("warn",e);static warning=(...e)=>t.callInstance("warning",e);static error=(...e)=>t.callInstance("error",e);static critical=(...e)=>t.callInstance("critical",e);static buildJsonPayload=(...e)=>t.callInstance("buildJsonPayload",e);static sendJsonPayload=(...e)=>t.callInstance("sendJsonPayload",e);static wrap=(...e)=>t.callInstance("wrap",e);static captureEvent=(...e)=>t.callInstance("captureEvent",e)};function t4(t){return"string"!=typeof t&&(t=String(t)),t.toLowerCase()}function t3(t){this.map={},t instanceof t3?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}t3.prototype.append=function(t,e){t=t4(t),"string"!=typeof(r=e)&&(r=String(r)),e=r;var r,n=this.map[t];this.map[t]=n?n+", "+e:e},t3.prototype.get=function(t){return t=t4(t),this.has(t)?this.map[t]:null},t3.prototype.has=function(t){return i(this.map,t4(t))},t3.prototype.forEach=function(t,e){for(var r in this.map)i(this.map,r)&&t.call(e,this.map[r],r,this)},t3.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),{next:function(){var e=t.shift();return{done:void 0===e,value:e}}}};let t8=function(t,e,r,n,s){var i=t[e];t[e]=r(i),n&&n[s].push([t,e,i])};function t6(t){return function(t){for(var e,r,n=[],s=0,i=t.length-1;i>=0;i--){if(e=function(t){if(!t||!t.tagName)return"";var e=[t.tagName];for(let r of(t.id&&e.push("#"+t.id),t.classes&&e.push("."+t.classes.join(".")),t.attributes))e.push("["+r.key+'="'+r.value+'"]');return e.join("")}(t[i]),r=s+3*n.length+e.length,i<t.length-1&&r>=83){n.unshift("...");break}n.unshift(e),s+=e.length}return n.join(" > ")}(function(t){for(var e,r=[],n=0;t&&n<5&&(e=t9(t))&&"html"!==e.tagName;n++)r.unshift(e),t=t.parentNode;return r}(t))}function t9(t){if(!t||!t.tagName)return null;var e,r={};for(let n of(r.tagName=t.tagName.toLowerCase(),t.id&&(r.id=t.id),(e=t.className)&&"string"==typeof e&&(r.classes=e.split(/\s+/)),r.attributes=[],["type","name","title","alt"])){let e=t.getAttribute(n);e&&r.attributes.push({key:n,value:e})}return r}let t7={network:!0,networkResponseHeaders:!1,networkResponseBody:!1,networkRequestHeaders:!1,networkRequestBody:!1,networkErrorOnHttp5xx:!1,networkErrorOnHttp4xx:!1,networkErrorOnHttp0:!1,log:!0,dom:!0,navigation:!0,connectivity:!0,contentSecurityPolicy:!0,errorOnContentSecurityPolicy:!1};function et(t,e){let r;for(;t[e].length;)(r=t[e].shift())[0][r[1]]=r[2]}function ee(t){return"u">typeof URL&&t instanceof URL}let er=class{constructor(t,r,n,s,i){this.options=t;let o=t.autoInstrument;!1===t.enabled||!1===o?this.autoInstrument={}:(e(o,"object")||(o=t7),this.autoInstrument=R(t7,o)),this.configureScrubbing(),this.telemeter=r,this.rollbar=n,this.diagnostic=n.client.notifier.diagnostic,this._window=s||{},this._document=i||{},this.replacements={network:[],log:[],navigation:[],connectivity:[]},this.eventRemovers={dom:[],connectivity:[],contentsecuritypolicy:[]},this._location=this._window.location,this._lastHref=this._location&&this._location.href}configureScrubbing(){let t=this.options;this.scrubTelemetryInputs=!!(t.scrubTelemetryInputs??t.replay?.maskAllInputs),this.telemetryScrubber=t.telemetryScrubber,this.defaultValueScrubber=function(t){let e=[];for(let r of t)e.push(RegExp(r,"i"));return function(t){let r=function(t){if(!t||!t.attributes)return null;for(let e of t.attributes)if("name"===e.key)return e.value;return null}(t);if(!r)return!1;for(let t of e)if(t.test(r))return!0;return!1}}(t.scrubFields),this.maskInputFn=t.replay?.maskInputFn,this.maskInputOptions=t.replay?.maskInputOptions||{},this.scrubClasses=[t.replay?.blockClass,t.replay?.ignoreClass,t.replay?.maskTextClass].filter(
1Boolean),this.scrubSelectors=[t.replay?.blockSelector,t.replay?.ignoreSelector,t.replay?.maskTextSelector].filter(Boolean)}configure(t){this.options=R(this.options,t);let r=t.autoInstrument,n=R(this.autoInstrument);!1===t.enabled||!1===r?this.autoInstrument={}:(e(r,"object")||(r=t7),this.autoInstrument=R(t7,r)),this.configureScrubbing(),this.instrument(n)}instrument(t){this.autoInstrument.network&&!(t&&t.network)?this.instrumentNetwork():!this.autoInstrument.network&&t&&t.network&&this.deinstrumentNetwork(),this.autoInstrument.log&&!(t&&t.log)?this.instrumentConsole():!this.autoInstrument.log&&t&&t.log&&this.deinstrumentConsole(),this.autoInstrument.dom&&!(t&&t.dom)?this.instrumentDom():!this.autoInstrument.dom&&t&&t.dom&&this.deinstrumentDom(),this.autoInstrument.navigation&&!(t&&t.navigation)?this.instrumentNavigation():!this.autoInstrument.navigation&&t&&t.navigation&&this.deinstrumentNavigation(),this.autoInstrument.connectivity&&!(t&&t.connectivity)?this.instrumentConnectivity():!this.autoInstrument.connectivity&&t&&t.connectivity&&this.deinstrumentConnectivity(),this.autoInstrument.contentSecurityPolicy&&!(t&&t.contentSecurityPolicy)?this.instrumentContentSecurityPolicy():!this.autoInstrument.contentSecurityPolicy&&t&&t.contentSecurityPolicy&&this.deinstrumentContentSecurityPolicy()}deinstrumentNetwork(){et(this.replacements,"network")}instrumentNetwork(){let t=this;function r(e,r){e in r&&n(r[e])&&t8(r,e,function(e){return t.rollbar.wrap(e)})}if("XMLHttpRequest"in this._window){let s=this._window.XMLHttpRequest.prototype;t8(s,"open",function(t){return function(r,n){let s=ee(n);return(e(n,"string")||s)&&(n=s?n.toString():n,this.__rollbar_xhr?(this.__rollbar_xhr.method=r,this.__rollbar_xhr.url=n,this.__rollbar_xhr.status_code=null,this.__rollbar_xhr.start_time_ms=E(),this.__rollbar_xhr.end_time_ms=null):this.__rollbar_xhr={method:r,url:n,status_code:null,start_time_ms:E(),end_time_ms:null}),t.apply(this,arguments)}},this.replacements,"network"),t8(s,"setRequestHeader",function(r){return function(n,s){return this.__rollbar_xhr||(this.__rollbar_xhr={}),e(n,"string")&&e(s,"string")&&(t.autoInstrument.networkRequestHeaders&&(this.__rollbar_xhr.request_headers||(this.__rollbar_xhr.request_headers={}),this.__rollbar_xhr.request_headers[n]=s),"content-type"===n.toLowerCase()&&(this.__rollbar_xhr.request_content_type=s)),r.apply(this,arguments)}},this.replacements,"network"),t8(s,"send",function(e){return function(s){let i=this,o=t.rollbar?.tracing;if(T(t.options,o,i.__rollbar_xhr?.url))try{i.setRequestHeader("baggage",`rollbar.session.id=${o.sessionId}`)}catch(t){}function a(){if(i.__rollbar_xhr&&(null===i.__rollbar_xhr.status_code&&(i.__rollbar_xhr.status_code=0,t.autoInstrument.networkRequestBody&&(i.__rollbar_xhr.request=s),i.__rollbar_event=t.captureNetwork(i.__rollbar_xhr,"xhr",void 0)),i.readyState<2&&(i.__rollbar_xhr.start_time_ms=E()),i.readyState>3)){let e=E();i.__rollbar_xhr.end_time_ms=e;let r=null;if(i.__rollbar_xhr.response_content_type=i.getResponseHeader("Content-Type"),t.autoInstrument.networkResponseHeaders){let e=t.autoInstrument.networkResponseHeaders;r={};try{let t;if(!0===e){let e=i.getAllResponseHeaders();if(e){let n,s;for(let i of e.trim().split(/[\r\n]+/))t=(n=i.split(": ")).shift(),s=n.join(": "),r[t]=s}}else for(let t of e)r[t]=i.getResponseHeader(t)}catch(t){}}let n=null;if(t.autoInstrument.networkResponseBody)try{n=i.responseText}catch(t){}let s=null;(n||r)&&(s={},n&&(t.isJsonContentType(i.__rollbar_xhr.response_content_type)?s.body=t.scrubJson(n):s.body=n),r&&(s.headers=r)),s&&(i.__rollbar_xhr.response=s);try{let r=i.status;r=1223===r?204:r,i.__rollbar_xhr.status_code=r,t.addOtelNetworkResponse(i.__rollbar_event,e,r),i.__rollbar_event.level=t.telemeter.levelFromStatus(r),t.errorOnHttpStatus(i.__rollbar_xhr)}catch(t){}}}return r("onload",i),r("onerror",i),r("onprogress",i),"onreadystatechange"in i&&n(i.onreadystatechange)?t8(i,"onreadystatechange",function(e){return t.rollbar.wrap(e,void 0,a)}):i.onreadystatechange=a,i.__rollbar_xhr&&t.trackHttpErrors()&&(i.__rollbar_xhr.stack=Error().stack),e.apply(this,arguments)}},this.replacements,"network")}"fetch"in this._window&&t8(this._window,"fetch",function(r){return function(n,i){let o,a=[...arguments],l=a[0],u="GET",c=ee(l);e(l,"string")||c?o=c?l.toString():l:l&&(o=l.url,l.method&&(u=l.method)),a[1]&&a[1].method&&(u=a[1].method);let h=t.rollbar?.tracing;T(t.options,h,o)&&function(t,e){var r;let n=t[1],i=n?.headers,o=(r=t[0],"u">typeof Request&&r instanceof Request&&t[0].headers),a=i||o;if(a||(n||(t[1]=n={}),a=n.headers={}),a instanceof Headers)for(let t of Object.keys(e))a.append(t,e[t]);else if(s(a))for(let t of Object.keys(e))a[t]=e[t]}(a,{baggage:`rollbar.session.id=${h.sessionId}`});let p={method:u,url:o,status_code:null,start_time_ms:E(),end_time_ms:null};if(a[1]&&a[1].headers){var d;let e=(d=a[1].headers,"u"<typeof Headers?new t3(d):new Headers(d));p.request_content_type=e.get("Content-Type"),t.autoInstrument.networkRequestHeaders&&(p.request_headers=t.fetchHeaders(e,t.autoInstrument.networkRequestHeaders))}t.autoInstrument.networkRequestBody&&(a[1]&&a[1].body?p.request=a[1].body:a[0]&&
1!e(a[0],"string")&&a[0].body&&(p.request=a[0].body));let m=t.captureNetwork(p,"fetch",void 0);return t.trackHttpErrors()&&(p.stack=Error().stack),r.apply(this,a).then(function(e){let r=E();p.end_time_ms=r,p.status_code=e.status,t.addOtelNetworkResponse(m,r,e.status),p.response_content_type=e.headers.get("Content-Type");let n=null;t.autoInstrument.networkResponseHeaders&&(n=t.fetchHeaders(e.headers,t.autoInstrument.networkResponseHeaders));let s=null;return t.autoInstrument.networkResponseBody&&"function"==typeof e.text&&(s=e.clone().text()),(n||s)&&(p.response={},s&&("function"==typeof s.then?s.then(function(e){e&&t.isJsonContentType(p.response_content_type)?p.response.body=t.scrubJson(e):p.response.body=e}):p.response.body=s),n&&(p.response.headers=n)),t.errorOnHttpStatus(p),e})}},this.replacements,"network")}captureNetwork(t,e,r){return t.request&&this.isJsonContentType(t.request_content_type)&&(t.request=this.scrubJson(t.request)),this.telemeter.captureNetwork(t,e,r)}isJsonContentType(t){return!!(t&&e(t,"string")&&t.toLowerCase().includes("json"))}addOtelNetworkResponse(t,e,r){t.otelAttributes&&(t.otelAttributes["response.timeUnixNano"]=(1e6*e).toString(),t.otelAttributes.statusCode=r)}scrubJson(t){return JSON.stringify(O(JSON.parse(t),this.options.scrubFields))}fetchHeaders(t,e){let r={};try{if(!0===e){if("function"==typeof t.entries){let e=t.entries(),n=e.next();for(;!n.done;)r[n.value[0]]=n.value[1],n=e.next()}}else for(let n of e)r[n]=t.get(n)}catch(t){}return r}trackHttpErrors(){return this.autoInstrument.networkErrorOnHttp5xx||this.autoInstrument.networkErrorOnHttp4xx||this.autoInstrument.networkErrorOnHttp0}errorOnHttpStatus(t){let e=t.status_code;if(e>=500&&this.autoInstrument.networkErrorOnHttp5xx||e>=400&&this.autoInstrument.networkErrorOnHttp4xx||0===e&&this.autoInstrument.networkErrorOnHttp0){let r=Error("HTTP request failed with Status "+e);r.stack=t.stack,this.rollbar.error(r,{skipFrames:1})}}deinstrumentConsole(){let t;for(;this.replacements.log.length;)t=this.replacements.log.shift(),this._window.console[t[0]]=t[1]}instrumentConsole(){if(!this._window?.console?.log)return;let t=this,e=this._window.console;try{for(let n of["debug","info","warn","error","log"])!function(n){let s=e[n],i="warn"===n?"warning":n;e[n]=function(){let n=Array.prototype.slice.call(arguments),o=function(t){var e,n,s,i=[];for(e=0,n=t.length;e<n;++e){switch(r(s=t[e])){case"object":(s=(s=f(s)).error||s.value).length>500&&(s=s.substr(0,497)+"...");break;case"null":s="null";break;case"undefined":s="undefined";break;case"symbol":s=s.toString()}i.push(s)}return i.join(" ")}(n);t.telemeter.captureLog(o,i,null,E()),s&&Function.prototype.apply.call(s,e,n)},t.replacements.log.push([n,s])}(n)}catch(t){this.diagnostic.instrumentConsole={error:t.message}}}deinstrumentDom(){this.removeListeners("dom")}instrumentDom(){this.addListener("dom",this._window,["click","dblclick","contextmenu"],t=>this.handleEvent("click",t)),this.addListener("dom",this._window,["dragstart","dragend","dragenter","dragleave","drop"],t=>this.handleEvent("dragdrop",t)),this.addListener("dom",this._window,["blur","focus"],t=>this.handleEvent("focus",t)),this.addListener("dom",this._window,["submit","invalid"],t=>this.handleEvent("form",t)),this.addListener("dom",this._window,["input","change"],t=>this.handleEvent("input",t)),this.addListener("dom",this._window,["resize"],t=>this.handleEvent("resize",t)),this.addListener("dom",this._document,["DOMContentLoaded"],t=>this.handleEvent("contentLoaded",t))}handleEvent(t,e){try{return({click:this.handleClick,dragdrop:this.handleDrag,focus:this.handleFocus,form:this.handleForm,input:this.handleInput,resize:this.handleResize,contentLoaded:this.handleContentLoaded})[t].call(this,e)}catch(r){W.log(`${t} handler error`,e,r,r.stack)}}handleContentLoaded(t){this.rollbar.triggerReplay({type:"navigation",path:new URL(this._location.href).pathname})}handleClick(t){["input","select","textarea"].includes(t.target?.tagName.toLowerCase())||this.telemeter.captureClick({type:t.type,isSynthetic:!t.isTrusted,element:t6(t.target),timestamp:E()})}handleFocus(t){let e=t.type,r=t.target?.window?"window":t6(t.target);this.telemeter.captureFocus({type:e,isSynthetic:!t.isTrusted,element:r,timestamp:E()})}handleForm(t){}handleResize(t){let e=window.screen.width/window.innerWidth;this.telemeter.captureResize({type:t.type,isSynthetic:!t.isTrusted,width:window.innerWidth,height:window.innerHeight,textZoomRatio:e,timestamp:E()})}handleDrag(t){let e,r,n,s,i=t.type;if("drop"===i)for(let n of(e=[],r=[],[...t.dataTransfer.files,...t.dataTransfer.items]))n.kind&&n.type&&(e.push(n.kind),r.push(n.type));["drop","dragstart"].includes(i)&&(n=t.dataTransfer?.dropEffect,s=t.dataTransfer?.effectAllowed),this.telemeter.captureDragDrop({type:i,isSynthetic:!t.isTrusted,element:t6(t.target),dropEffect:n,effectAllowed:s,kinds:JSON.stringify(e),mediaTypes:JSON.stringify(r),timestamp:E()})}scrubInputValue(t,e,r,n){let s="******";if("password"===n||this.scrubTelemetryInputs)return s;{let t=t9(e);
1if(this.telemetryScrubber){if(this.telemetryScrubber(t))return s}else if(this.defaultValueScrubber(t))return s}if(function(t,e,r){try{for(let r of e)if("string"==typeof r){if(t.classList.contains(r))return!0}else for(let e of t.classList)if(r.test(e))return!0;for(let e of r)if(t.matches(e))return!0}catch(t){}return!1}(e,this.scrubClasses,this.scrubSelectors))return s;if(this.maskInputOptions[r.toLowerCase()]||this.maskInputOptions[n])if(this.maskInputFn)return this.maskInputFn(t,e);else return s;return t}handleInput(t){let e=t.type,r=t.target?.tagName.toLowerCase(),n=t.target?.value,s=t.target?.attributes?.type?.value||t.target?.type;switch(void 0!==n&&(n=this.scrubInputValue(n,t.target,r,s)),e){case"input":if(["radio","checkbox"].includes(s))return;["select","textarea"].includes(r)&&(s=r);break;case"change":if(!["radio","checkbox"].includes(s))return;"checkbox"===s&&(n=t.target?.checked)}this.telemeter.captureInput({type:s,isSynthetic:!t.isTrusted,element:t6(t.target),value:n,timestamp:E()})}deinstrumentNavigation(){let t=this._window.chrome;!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState&&et(this.replacements,"navigation")}instrumentNavigation(){let t=this._window.chrome;if(!(!(t&&t.app&&t.app.runtime)&&this._window.history&&this._window.history.pushState))return;let e=this;t8(this._window,"onpopstate",function(t){return function(){let r=e._location.href;e.handleUrlChange(e._lastHref,r),t&&t.apply(this,arguments)}},this.replacements,"navigation"),t8(this._window.history,"pushState",function(t){return function(){let r=arguments.length>2?arguments[2]:void 0;return r&&e.handleUrlChange(e._lastHref,String(r)),t.apply(this,arguments)}},this.replacements,"navigation")}handleUrlChange(t,e){let r=tQ(this._location.href),n=tQ(e),s=tQ(t);this._lastHref=e,r.protocol===n.protocol&&r.host===n.host&&(e=n.path+(n.hash||"")),r.protocol===s.protocol&&r.host===s.host&&(t=s.path+(s.hash||"")),this.telemeter.captureNavigation(t,e,null,E()),this.rollbar.triggerReplay({type:"navigation",path:e})}deinstrumentConnectivity=function(){this.removeListeners("connectivity")};instrumentConnectivity(){let t=this;this.addListener("connectivity",this._window,["online","offline"],e=>t.handleConnectivity(e))}handleConnectivity(t){let e=t.type;this.telemeter.captureConnectivityChange({type:e,isSynthetic:!t.isTrusted,timestamp:E()})}handleCspEvent(t){let e="Security Policy Violation: blockedURI: "+t.blockedURI+", violatedDirective: "+t.violatedDirective+", effectiveDirective: "+t.effectiveDirective+", ";t.sourceFile&&(e+="location: "+t.sourceFile+", line: "+t.lineNumber+", col: "+t.columnNumber+", "),e+="originalPolicy: "+t.originalPolicy,this.telemeter.captureLog(e,"error",null,E()),this.handleCspError(e)}handleCspError(t){this.autoInstrument.errorOnContentSecurityPolicy&&this.rollbar.error(t)}deinstrumentContentSecurityPolicy(){this.removeListeners("contentsecuritypolicy")}instrumentContentSecurityPolicy(){if(!("addEventListener"in this._document))return;let t=this.handleCspEvent.bind(this);this.addListener("contentsecuritypolicy",this._document,["securitypolicyviolation"],t)}addListener(t,e,r,n){if(e.addEventListener)for(let s of r){let r={capture:!0,passive:!0};e.addEventListener(s,n,r,!0),this.eventRemovers[t].push(function(){e.removeEventListener(s,n,r)})}}removeListeners(t){for(;this.eventRemovers[t].length;)this.eventRemovers[t].shift()()}};t5.setComponents({telemeter:A,instrumenter:er,wrapGlobals:function(t,e,r){if(t){var n,s,o="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(n=0;n<o.length;++n)t[s=o[n]]&&t[s].prototype&&function(t,e,r){if(i(e,"addEventListener")){for(var n=e.addEventListener;n._rollbarOldAdd&&n.belongsToShim;)n=n._rollbarOldAdd;var s=function(e,r,s){n.call(this,e,t.wrap(r),s)};s._rollbarOldAdd=n,s.belongsToShim=r,e.addEventListener=s;for(var o=e.removeEventListener;o._rollbarOldRemove&&o.belongsToShim;)o=o._rollbarOldRemove;var a=function(t,e,r){o.call(this,t,e&&e._rollbar_wrapped||e,r)};a._rollbarOldRemove=o,a.belongsToShim=r,e.removeEventListener=a}}(e,t[s].prototype,r)}},scrub:O,truncation:{truncate:function(t,e,r){r=void 0===r?524288:r;
1for(var n,s,i,o,a,l=[Z,Q,tt.bind(null,1024),tt.bind(null,512),tt.bind(null,256),tr];(i=l.shift())&&(t=(o=i(t,e))[0],!(a=o[1]).error&&(n=a.value,s=r,function(t){for(var e=0,r=t.length,n=0;n<r;n++){var s=t.charCodeAt(n);s<128?e+=1:s<2048?e+=2:s<65536&&(e+=3)}return e}(n)>s)););return a},raw:Z,truncateFrames:Q,truncateStrings:tt,maybeTruncateValue:Y},tracing:class{constructor(t,e,r){this.api=e,this.options=r,this.window=t,this.window.sessionStorage&&(this.session=new J(this,r)),this.createTracer()}configure(t){this.options=t}initSession(){this.session&&this.session.init()}get sessionId(){return this.session?this.session.session.id:null}get resource(){return{attributes:{...this.options.resource||{},"rollbar.environment":this.options.payload?.environment??this.options.environment}}}get scope(){return{name:"rollbar-browser-js",version:this.options.version}}idGen(t=16){return U(t)}createTracer(){this.contextManager=new q,this.exporter=new M(this.api,this.options),this.spanProcessor=new $(this.exporter,this.options.tracing),this.tracer=new X(this,this.spanProcessor)}getTracer(){return this.tracer}addSpanTransform(t){this.spanProcessor.addTransform(t)}getSpan(t=this.contextManager.active()){return t.getValue(G)}setSpan(t=this.contextManager.active(),e){return t.setValue(G,e)}startSpan(t,e={},r=this.contextManager.active()){return this.tracer.startSpan(t,e,r)}with(t,e,r,...n){return this.contextManager.with(t,e,r,...n)}withSpan(t,e,r,n){let s=this.startSpan(t,e);return this.with(this.setSpan(this.contextManager.active(),s),r,n,s)}}}),t.s(["default",0,t5],203877)}]); 2 3//# sourceMappingURL=3yczbdd90p_8g.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.