PageSourceSearch

https://codepress.dev/_next/static/immutable/chunks/2bxjhnpbkqjw1.js

js codepress.dev collected 2026-10-02 01:52:24 UTC 256,150 bytes, 16 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e8a83323-bad3-052f-26fe-855bea772364")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59146,(e,t,r)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},775778,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return o},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return s},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s="/_not-found",a=`${s}/page`,o="/_global-error",l=`${o}/page`},405775,(e,t,r)=>{"use strict";var n,i=e.i(369417);Object.defineProperty(r,"__esModule",{value:!0});var s={APP_CLIENT_INTERNALS:function(){return en},APP_PATHS_MANIFEST:function(){return E},APP_PATH_ROUTES_MANIFEST:function(){return v},AdapterOutputType:function(){return d},BARREL_OPTIMIZATION_PREFIX:function(){return J},BLOCKED_PAGES:function(){return G},BUILD_ID_FILE:function(){return W},BUILD_MANIFEST:function(){return T},CLIENT_PUBLIC_FILES_PATH:function(){return z},CLIENT_REFERENCE_MANIFEST:function(){return V},CLIENT_STATIC_FILES_PATH:function(){return H},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return er},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return es},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return j},DEFAULT_RUNTIME_WEBPACK:function(){return el},DEFAULT_SANS_SERIF_FONT:function(){return eh},DEFAULT_SERIF_FONT:function(){return ep},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return L},DYNAMIC_CSS_MANIFEST:function(){return ee},EDGE_RUNTIME_WEBPACK:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return ey},EXPORT_DETAIL:function(){return N},EXPORT_MARKER:function(){return w},FUNCTIONS_CONFIG_MANIFEST:function(){return b},IMAGES_MANIFEST:function(){return O},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Z},MIDDLEWARE_BUILD_MANIFEST:function(){return X},MIDDLEWARE_MANIFEST:function(){return D},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Q},MODERN_BROWSERSLIST_TARGET:function(){return o.default},NEXT_BUILTIN_DOCUMENT:function(){return Y},NEXT_FONT_MANIFEST:function(){return R},PAGES_MANIFEST:function(){return S},PHASE_ANALYZE:function(){return h},PHASE_DEVELOPMENT_SERVER:function(){return g},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return y},PHASE_PRODUCTION_BUILD:function(){return f},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return _},PREFETCH_HINTS:function(){return A},PRERENDER_MANIFEST:function(){return C},REACT_LOADABLE_MANIFEST:function(){return F},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return x},ROUTES_MANIFEST:function(){return M},RSC_MODULE_TYPES:function(){return e_},SERVER_DIRECTORY:function(){return $},SERVER_FILES_MANIFEST:function(){return k},SERVER_PROPS_ID:function(){return ed},SERVER_REFERENCE_MANIFEST:function(){return K},STATIC_PROPS_ID:function(){return ec},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return q},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return I},SYSTEM_ENTRYPOINTS:function(){return eS},TRACE_OUTPUT_VERSION:function(){return em},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return U},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return P},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eg},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let o=e.r(191021)._(e.r(59146)),l=e.r(775778),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var d=((n={}
2).PAGES="PAGES",n.PAGES_API="PAGES_API",n.APP_PAGE="APP_PAGE",n.APP_ROUTE="APP_ROUTE",n.PRERENDER="PRERENDER",n.STATIC_FILE="STATIC_FILE",n.MIDDLEWARE="MIDDLEWARE",n);let p="phase-export",h="phase-analyze",f="phase-production-build",m="phase-production-server",g="phase-development-server",_="phase-test",y="phase-info",S="pages-manifest.json",E="app-paths-manifest.json",v="app-path-routes-manifest.json",T="build-manifest.json",b="functions-config-manifest.json",I="subresource-integrity-manifest",R="next-font-manifest",w="export-marker.json",N="export-detail.json",C="prerender-manifest.json",A="prefetch-hints.json",M="routes-manifest.json",O="images-manifest.json",k="required-server-files",L="_devPagesManifest.json",x="/_next/development/request-insights",D="middleware-manifest.json",P="_clientMiddlewareManifest.js",U="client-build-manifest.json",B="_devMiddlewareManifest.json",F="react-loadable-manifest.json",$="server",j=["next.config.js","next.config.mjs","next.config.ts",...i.default?.features?.typescript?["next.config.mts"]:[]],W="BUILD_ID",G=["/_document","/_app","/_error"],z="public",H="static",q="__NEXT_DROP_CLIENT_FILE__",Y="__NEXT_BUILTIN_DOCUMENT__",J="__barrel_optimize__",V="client-reference-manifest",K="server-reference-manifest",X="middleware-build-manifest",Q="middleware-react-loadable-manifest",Z="interception-route-rewrite-manifest",ee="dynamic-css-manifest",et="main",er=`${et}-app`,en="app-pages-internals",ei="react-refresh",es="webpack",ea="polyfills",eo=Symbol(ea),el="webpack-runtime",eu="edge-runtime-webpack",ec="__N_SSG",ed="__N_SSP",ep={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},eh={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],em=1,eg=6e3,e_={client:"client",server:"server"},ey=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eS=new Set([et,ei,er]);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},350577,302797,262823,747176,832161,778073,936770,797329,214332,370693,923308,442583,920714,825021,736545,42206,287126,150226,650612,92269,53166,249216,94387,817417,186450,580417,905492,937033,795373,652553,112040,827480,787215,862857,36764,31825,814896,602587,397056,986022,129561,440151,170167,782170,793572,817908,683639,507869,531600,273409,509263,536656,606255,638422,646615,e=>{"use strict";let t,r,n,i,s,a,o,l,u,c,d,p,h,f,m,g,_,y,S,E,v;var T,b,I,R,w,N,C,A,M,O=e.i(369417),k=e.i(245100),L=e.i(30500),x=e.i(344006);function D(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:x.SDK_VERSION})),i.version=x.SDK_VERSION)}var P=e.i(762186),U=e.i(469134),B=e.i(727641);let F=[];function $(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}function j(e,t){let r={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&G(e,t,r)}),r}function W(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function G(e,t,r){if(r[t.name]){B.DEBUG_BUILD&&k.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,F.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),F.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}["processSpan","processSegmentSpan"].forEach(r=>{let n=t[r];"function"==typeof n&&e.on(r,r=>n.call(t,r,e))}),B.DEBUG_BUILD&&k.debug.log(`Integration installed: ${t.name}`)}function z(e){return e}function H(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}e.s(["addIntegration",0,function(e){let t=(0,U.getClient)();if(!t){B.DEBUG_BUILD&&k.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)},"afterSetupIntegrations",0,W,"defineIntegration",0,z,"getIntegrationsToSetup",0,$,"setupIntegration",0,G,"setupIntegrations",0,j],302797);var q=e.i(924236),Y=e.i(122924);let J=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],V=z((e={})=>{let t;return{name:"EventFilters",setup(r){t=X(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=X(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,Y.stringMatchesSomePattern)(r,t)}(e,t.ignoreTransactions))return B.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
3Event: ${(0,q.getEventDescription)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&H(r).some(e=>(0,Y.stringMatchesSomePattern)(e,n)))return B.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
4Event: ${(0,q.getEventDescription)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return B.DEBUG_BUILD&&k.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
5Event: ${(0,q.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=Q(e);return!!r&&(0,Y.stringMatchesSomePattern)(r,t)}(e,t.denyUrls))return B.DEBUG_BUILD&&k.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
6Event: ${(0,q.getEventDescription)(e)}.
7Url: ${Q(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=Q(e);return!r||(0,Y.stringMatchesSomePattern)(r,t)}(e,t.allowUrls))return B.DEBUG_BUILD&&k.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
8Event: ${(0,q.getEventDescription)(e)}.
9Url: ${Q(e)}`),!0}return!1}(r,t)?r:null)}}),K=z((e={})=>({...V(e),name:"InboundFilters"}));function X(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:J],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Q(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return B.DEBUG_BUILD&&k.debug.error(`Cannot extract url for event ${(0,q.getEventDescription)(e)}`),null}}e.s(["eventFiltersIntegration",0,V,"inboundFiltersIntegration",0,K],262823);var Z=e.i(483767);let ee=new WeakMap,et=z(()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let r,n=(0,Z.getOriginalFunction)(this);try{ee.has((0,U.getClient)())&&void 0!==n&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){ee.set(e,!0)}}));e.s(["functionToStringIntegration",0,et],747176);var er=e.i(612308),en=e.i(702690);let ei=z(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,U.getCurrentScope)().getScopeData(),r=(0,U.getIsolationScope)().getScopeData(),n=t.conversationId||r.conversationId;if(n){let{op:t,data:r,description:i}=(0,en.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!r["ai.operationId"]&&!i?.startsWith("ai."))return;e.setAttribute(er.GEN_AI_CONVERSATION_ID_ATTRIBUTE,n)}})}}));var es=e.i(541095);let ea=z(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,n,i,s,a,o;let l,u,c,d;if(r=t,(n=e)&&(i=r,s=n,l=i.message,u=s.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&el(i,s)&&eo(i,s)&&1||(a=r,o=n,c=eu(o),d=eu(a),c&&d&&c.type===d.type&&c.value===d.value&&el(a,o)&&eo(a,o))))return B.DEBUG_BUILD&&k.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function eo(e,t){let r=(0,es.getFramesFromEvent)(e),n=(0,es.getFramesFromEvent)(t);
9if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function el(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function eu(e){return e.exception?.values?.[0]}e.s(["dedupeIntegration",0,ea],832161);var ec=e.i(244753);function ed(e,t){!0===t.debug&&(B.DEBUG_BUILD?k.debug.enable():(0,k.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,U.getCurrentScope)().update(t.initialScope);let r=new e(t);return ep(r),r.init(),r}function ep(e){(0,U.getCurrentScope)().setClient(e)}e.s(["initAndBind",0,ed,"setCurrentClient",0,ep],778073);var eh=e.i(822227);function ef(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function em(e,t,r){let n;return t||`${ef(e)}${e.projectId}/envelope/?${n={sentry_version:"7"},e.publicKey&&(n.sentry_key=e.publicKey),r&&(n.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(n).toString()}`}e.s(["getEnvelopeEndpointWithUrlEncodedAuth",0,em,"getReportDialogEndpoint",0,function(e,t){let r=(0,eh.makeDsn)(e);if(!r)return"";let n=`${ef(r)}embed/error-page/`,i=`dsn=${(0,eh.dsnToString)(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${n}?${i}`}],936770);var eg=e.i(410918),e_=e.i(561091),ey=e.i(7503),eS=e.i(187503),eE=e.i(868499),ev=e.i(509167),eT=e.i(732508),eb=e.i(644048);let eI=0;function eR(e){let r=Math.floor(1e3*e);void 0!==t&&r!==t&&(eI=0);let n=eI;return eI++,t=r,{key:"sentry.timestamp.sequence",value:{value:n,type:"integer"}}}var ew=e.i(613502);function eN(e,t){return t?(0,U.withScope)(t,()=>{let r=(0,en.getActiveSpan)(),n=r?(0,en.spanToTraceContext)(r):(0,U.getTraceContextFromScope)(t);return[r?(0,ew.getDynamicSamplingContextFromSpan)(r):(0,ew.getDynamicSamplingContextFromScope)(e,t),n]}):[void 0,void 0]}let eC={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var eA=e.i(579474);function eM(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==O.default?O.default:0))||(e=L.GLOBAL_OBJ.process,e?.type==="renderer"))}function eO(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function ek(e,t){var r;let n=ex(),i=(r=e,ex().get(r));void 0===i?n.set(e,[t]):i.length>=100?(eL(e,i),n.set(e,[t])):n.set(e,[...i,t])}function eL(e,t){var r,n,i,s,a;let o,l,u=t??(a=e,ex().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(r=c._metadata,n=c.tunnel,i=e.getDsn(),s=e.getDataCollectionOptions().userInfo,o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,eh.dsnToString)(i)),(0,eA.createEnvelope)(o,[(l=s?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...eM()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));ex().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}e.s(["isBrowser",0,eM],797329);function ex(){return(0,eS.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eD(e){let t=Object(e),r=t.isWellFormed,n=t.toWellFormed;return"function"==typeof r&&"function"==typeof n?r.call(e)?e:n.call(e):e}function eP(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function eU(e,t){var r;let n=eF(),i=(r=e,eF().get(r));void 0===i?n.set(e,[t]):i.length>=1e3?(eB(e,i),n.set(e,[t])):n.set(e,[...i,t])}function eB(e,t){var r,n,i,s,a;let o,l,u=t??(a=e,eF().get(a))??[];if(0===u.length)return;let c=e.getOptions(),d=(r=c._metadata,n=c.tunnel,i=e.getDsn(),s=e.getDataCollectionOptions().userInfo,o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,eh.dsnToString)(i)),(0,eA.createEnvelope)(o,[(l=s?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...eM()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));eF().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}e.s(["_INTERNAL_captureLog",0,function(e,t=(0,U.getCurrentScope)(),r=ek){let n=t?.getClient()??(0,U.getClient)();if(!n){B.DEBUG_BUILD&&k.debug.warn("No client available to capture log.");return}let{release:i,environment:s,enableLogs:a=!0,beforeSendLog:o}=n.getOptions();if(!a){B.DEBUG_BUILD&&k.debug.warn("logging option not enabled, log will not be captured.");return}let[,l]=eN(n,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:h={}}=(0,ev.getCombinedScopeData)((0,U.getIsolationScope)(),t);eO(u,"user.id",c,!1),eO(u,"user.email",d,!1),eO(u,"user.name",p,!1),eO(u,"sentry.release",i),eO(u,"sentry.environment",s);let{name:f,version:m}
9=n.getSdkMetadata()?.sdk??{};eO(u,"sentry.sdk.name",f),eO(u,"sentry.sdk.version",m);let g=n.getIntegrationByName("Replay"),_=g?.getReplayId(!0);eO(u,"sentry.replay_id",_),_&&g?.getRecordingMode()==="buffer"&&eO(u,"sentry._internal.replay_is_buffering",!0);let y=e.message;if((0,eE.isParameterizedString)(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let S=(0,eT._getSpanForScope)(t);eO(u,"sentry.trace.parent_span_id",S?.spanContext().spanId);let E={...e,attributes:u};n.emit("beforeCaptureLog",E);let v=o?(0,k.consoleSandbox)(()=>o(E)):E;if(!v){n.recordDroppedEvent("before_send","log_item",1),B.DEBUG_BUILD&&k.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:T,message:b,attributes:I={},severityNumber:R}=v,w=(0,eb.timestampInSeconds)(),N=eR(w);r(n,{timestamp:w,level:T,body:eD(String(b)),trace_id:l?.trace_id,severity_number:R??eC[T],attributes:function(e){let t={};for(let[r,n]of Object.entries(e)){let e=eD(r);"string"===n.type?t[e]={...n,value:eD(n.value)}:t[e]=n}return t}({...(0,ey.serializeAttributes)(h),...(0,ey.serializeAttributes)(I,!0),[N.key]:N.value})}),n.emit("afterCaptureLog",v)},"_INTERNAL_flushLogsBuffer",0,eL],214332);function eF(){return(0,eS.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}e.s(["_INTERNAL_captureMetric",0,function(e,t){let r=t?.scope??(0,U.getCurrentScope)(),n=t?.captureSerializedMetric??eU,i=r?.getClient()??(0,U.getClient)();if(!i){B.DEBUG_BUILD&&k.debug.warn("No client available to capture metric.");return}let{_experiments:s,enableMetrics:a,beforeSendMetric:o}=i.getOptions();if(!(a??s?.enableMetrics??!0)){B.DEBUG_BUILD&&k.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,ev.getCombinedScopeData)((0,U.getIsolationScope)(),r),c=function(e,t,r){let{release:n,environment:i}=t.getOptions(),s={...e.attributes};eP(s,"user.id",r.id,!1),eP(s,"user.email",r.email,!1),eP(s,"user.name",r.username,!1),eP(s,"sentry.release",n),eP(s,"sentry.environment",i);let{name:a,version:o}=t.getSdkMetadata()?.sdk??{};eP(s,"sentry.sdk.name",a),eP(s,"sentry.sdk.version",o);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return eP(s,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&eP(s,"sentry._internal.replay_is_buffering",!0),{...e,attributes:s}}(e,i,l);i.emit("processMetric",c);let d=o||s?.beforeSendMetric,p=d?d(c):c;if(!p){B.DEBUG_BUILD&&k.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let h=function(e,t,r,n){let[,i]=eN(t,r),s=(0,eT._getSpanForScope)(r),a=s?s.spanContext().traceId:i?.trace_id,o=s?s.spanContext().spanId:void 0,l=(0,eb.timestampInSeconds)(),u=eR(l);return{timestamp:l,trace_id:a??"",span_id:o,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,ey.serializeAttributes)(n),...(0,ey.serializeAttributes)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(p,i,r,u);B.DEBUG_BUILD&&k.debug.log("[Metric]",h),n(i,h),i.emit("afterCaptureMetric",p)},"_INTERNAL_flushMetricsBuffer",0,eB],370693);var e$=e.i(707842),ej=e.i(128763),eW=e.i(901189),eG=e.i(150670),ez=e.i(27832);let eH=Symbol.for("SentryBufferFullError");function eq(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,eG.rejectedSyncPromise)(eH);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,eG.resolvedSyncPromise)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>(0,ez.safeUnref)(setTimeout(()=>t(!1),e)))]):r}}}var eY=e.i(93937);function eJ(e,t=(0,eY.safeDateNow)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function eV(e,t,r=(0,eY.safeDateNow)()){return(e[t]||e.all||0)>r}function eK(e,{statusCode:t,headers:r},n=(0,eY.safeDateNow)()){let i={...e},s=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,s]=e.split(":",5),a=parseInt(t,10),o=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(i[e]=n+o):i[e]=n+o;else i.all=n+o}else a?i.all=n+eJ(a,n):429===t&&(i.all=n+6e4);return i}function eX(e,t,r=eq(e.bufferSize||64)){let n={};return{send:function(i){let s=[];if((0,eA.forEachEnvelopeItem)(i,(t,r)=>{let i=(0,eA.envelopeItemTypeToDataCategory)(r);eV(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):s.push(t)}),0===s.length)return Promise.resolve({});let a=(0,eA.createEnvelope)(i[0],s),o=t=>{if((0,eA.envelopeContainsItemType)(a,["client_report"])){B.DEBUG_BUILD&&k.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,eA.forEachEnvelopeItem)(a,(r,n)=>{e.recordDroppedEvent(t,(0,eA.envelopeItemTypeToDataCategory)(n))})};return r.add(()=>t({body:(0,eA.serializeEnvelope)(a)}).then(e=>(413===e.statusCode?(B.DEBUG_BUILD&&k.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),o("send_error")):(B.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&k.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=eK(n,e)),e),e=>{throw o("network_error"),B.DEBUG_BUILD&&k.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
9{if(e===eH)return B.DEBUG_BUILD&&k.debug.error("Skipped sending event because buffer is full."),o("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}e.s(["isRateLimited",0,eV,"parseRetryAfterHeader",0,eJ,"updateRateLimits",0,eK],923308),e.s(["DEFAULT_TRANSPORT_BUFFER_SIZE",0,64,"createTransport",0,eX],442583);var eQ=e.i(250852),eZ=e.i(486109),e0=e.i(462633),e1=e.i(975246),e2=e.i(627351);let e3={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},e5="Not capturing exception because it's already been captured.",e6="Discarded session because of missing or non-string release",e4=Symbol.for("SentryInternalError"),e8=Symbol.for("SentryDoNotSendEventError");function e7(e){return{message:e,[e4]:!0}}function e9(e){return{message:e,[e8]:!0}}function te(e){return(0,eE.isObjectLike)(e)&&e4 in e}function tt(e){return(0,eE.isObjectLike)(e)&&e8 in e}function tr(e,t,r,n,i){let s,a=0,o=!1;e.on(r,()=>{a=0,clearTimeout(s),o=!1}),e.on(t,t=>{if((a+=n(t))>=8e5)i(e);else if(!o){let t=e.getOptions()._flushInterval??5e3;t>0&&(o=!0,s=(0,ez.safeUnref)(setTimeout(()=>{i(e)},t)))}}),e.on("flush",()=>{i(e)})}class tn{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eq(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?e3:(0,e2.defaultPiiToCollectionOptions)(e.sendDefaultPii),r=e.dataCollection??{};return{userInfo:r.userInfo??t.userInfo,cookies:r.cookies??t.cookies,httpHeaders:{request:r.httpHeaders?.request??t.httpHeaders.request,response:r.httpHeaders?.response??t.httpHeaders.response},httpBodies:r.httpBodies??t.httpBodies,urlQueryParams:r.urlQueryParams??r.queryParams??t.urlQueryParams,graphQL:{document:r.graphQL?.document??t.graphQL.document,variables:r.graphQL?.variables??t.graphQL.variables},genAI:{inputs:r.genAI?.inputs??t.genAI.inputs,outputs:r.genAI?.outputs??t.genAI.outputs},databaseQueryData:r.databaseQueryData??t.databaseQueryData,stackFrameVariables:r.stackFrame
9Variables??t.stackFrameVariables,frameContextLines:r.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,eh.makeDsn)(e.dsn):B.DEBUG_BUILD&&k.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=em(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&tr(this,"afterCaptureLog","flushLogs",tl,eL),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&tr(this,"afterCaptureMetric","flushMetrics",to,eB)}captureException(e,t,r){let n=(0,q.uuid4)();if((0,q.checkOrSetAlreadyCaught)(e))return B.DEBUG_BUILD&&k.debug.log(e5),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,q.uuid4)(),...r},s=(0,eE.isParameterizedString)(e)?e:String(e),a=(0,eE.isPrimitive)(e),o=a?this.eventFromMessage(s,t,i):this.eventFromException(e,i);return this._process(()=>o.then(e=>this._captureEvent(e,i,n)),a?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,q.uuid4)();if(t?.originalException&&(0,q.checkOrSetAlreadyCaught)(t.originalException))return B.DEBUG_BUILD&&k.debug.log(e5),n;let i={event_id:n,...t},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,o=s.capturedSpanIsolationScope,l=ti(e.type);return this._process(()=>this._captureEvent(e,i,a||r,o),l),i.event_id}captureSession(e){this.sendSession(e),(0,e$.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit("flush"),!t)return!0;let r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),G(this,e,this._integrations),t||W(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||(0,eW.hasSpanStreamingEnabled)(t))return;let r=[],n=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?r.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,en.streamedSpanJsonToSerializedSpan)(t)}(t)):n.push(t);if(0===r.length)return;e.spans=n;let i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:r.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...eM()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:r}]}(e,this),n=(0,e_.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,eA.addItemToEnvelope)(n,(0,eA.createAttachmentEnvelopeItem)(e));r&&(n=(0,eA.addItemToEnvelope)(n,r)),this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=eg.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){B.DEBUG_BUILD&&k.debug.warn(e6);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){B.DEBUG_BUILD&&k.debug.warn(e6);return}e.release=e.release||t,e.environment=e.environment||r}
9this.emit("beforeSendSession",e);let n=(0,e_.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;B.DEBUG_BUILD&&k.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return B.DEBUG_BUILD&&k.debug.error("Error while sending envelope:",e),{}}return B.DEBUG_BUILD&&k.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=j(this,e),W(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let s="ok"===e.status;(s&&0===e.errors||s&&r)&&((0,e$.updateSession)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,e0.prepareEvent)(i,e,t,r,this,n).then(e=>
9(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,U.getTraceContextFromScope)(r)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ew.getDynamicSamplingContextFromScope)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,U.getCurrentScope)(),n=(0,U.getIsolationScope)()){return B.DEBUG_BUILD&&ts(e)&&k.debug.log(`Captured error event \`${H(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{B.DEBUG_BUILD&&(tt(e)?k.debug.log(e.message):te(e)?k.debug.warn(e.message):k.debug.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:s}=i,a=ta(e),o=ts(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===s?void 0:(0,eZ.parseSampleRate)(s),d=ti(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),e9("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,eE.isThenable)(e))return e.then(e=>{if(!(0,eE.isPlainObject)(e)&&null!==e)throw e7(r);return e},e=>{throw e7(`${t} rejected with ${e}`)});if(!(0,eE.isPlainObject)(e)&&null!==e)throw e7(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=t,o=!(0,ej.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan,l=r;if(ts(l)&&i)return i(l,n);
9if(ta(l)){if(o||a){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[er.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:a?.[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(a?.length&&(0,e1.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},a))return null;if(o){let e=o(t);if(e)l=(0,eQ.merge)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[er.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,en.showSpanDropWarning)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(a?.length&&(0,e1.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},a)){(0,e1.reparentChildSpans)(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,en.showSpanDropWarning)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return s(l,n)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw e9(`${u} returned \`null\`, will not send event.`)}let l=r.getSession()||n.getSession();if(o&&l&&this._updateSessionFromEvent(l,i),o&&"number"==typeof c&&(0,eY.safeMathRandom)()>c)throw this.recordDroppedEvent("sample_rate","error"),e9(`Discarding event because it's not included in the random sample (sampling rate = ${s})`);if(a){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let p=i.transaction_info;return a&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(tt(e)||te(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),e7(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eH&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;let t;B.DEBUG_BUILD&&k.debug.log("Flushing outcomes...");let r=this._clearOutcomes();if(0===r.length){B.DEBUG_BUILD&&k.debug.log("No outcomes to send");return}if(!this._dsn){B.DEBUG_BUILD&&k.debug.log("No dsn provided, will not send outcomes");return}B.DEBUG_BUILD&&k.debug.log("Sending outcomes:",r);let n=(e=this._options.tunnel&&(0,eh.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,eb.dateTimestampInSeconds)(),discarded_events:r}],(0,eA.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(n)}}function ti(e){return"replay_event"===e?"replay":e||"error"}function ts(e){return void 0===e.type}function ta(e){return"transaction"===e.type}function to(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+tu(e.attributes)}function tl(e){let t=0;return e.message&&(t+=2*e.message.length),t+tu(e.attributes)}function tu(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*tc(e[0]):(0,eE.isPrimitive)(e)?t+=tc(e):t+=100}),t}function tc(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function td(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function tp(e){return(0,eE.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function th(e,t){var r,n;let i,s,a=tm(e,t),o={type:(r=t,!(i=r?.name)&&t_(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":i),value:(n=t,s=n?.message,t_(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":s?s.error&&"string"==typeof s.error.message?tp(s.error):tp(n):"No error message")};return a.length&&(o.stacktrace={frames:a}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function tf(e,t){return{exception:{values:[th(e,t)]}}}function tm(e,t){var r,n;let i=t.stacktrace||t.stack||"",s=(r=t)&&tg.test(r.message)?1:0,a="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,s,a)}catch{}return[]}let tg=/Minified React error #\d+;/i;function t_(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ty(e,t,r,n){let i=tE(e,t,r?.syntheticException||void 0,n);return(0,q.addExceptionMechanism)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,eG.resolvedSyncPromise)(i)}function tS(e,t,r="info",n,i){let s=tv(e,t,n?.syntheticException||void 0,i);return s.level=r,n?.event_id&&(s.event_id=n.event_id),(0,eG.resolvedSyncPromise)(s)}function tE(e,t,r,n,i){let s;if((0,eE.isErrorEvent)(t)&&t.error)return tf(e,t.error);if((0,eE.isDOMError)(t)||(0,eE.isDOMException)(t)){if("stack"in t){s=tf(e,t);let i=s.exception?.values?.[0];if(n&&r&&i&&!i.stacktrace){let t=tm(e,r);t.length&&(i.stacktrace={frames:t},(0,q.addExceptionMechanism)(s,{synthetic:!0}))}}else{let i=t.name||((0,eE.isDOMError)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;s=tv(e,a,r,n),(0,q.addExceptionTypeValue)(s,a)}return"code"in t&&(s.tags={...s.tags,"DOMException.code":`${t.code}`}),s}return(0,eE.isError)(t)?tf(e,t):((0,eE.isPlainObject)(t)||(0,eE.isEvent)(t)?s=function(e,t,r,n){let i=(0,U.getClient)(),s=i?.getOptions().normalizeDepth,a=Object.values(t).find(eE.isError),o={__serialized__:(0,ec.normalizeToSize)(t,s)};if(a)return{exception:{values:[th(e,a)]},extra:o};let l={exception:{values:[{type:(0,eE.isEvent)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,Z.extractExceptionKeysForMessage)(e),n=t?"promise rejection":"exception";if((0,eE.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,eE.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:o};if(r){let t=tm(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(s=tv(e,t,r,n),(0,q.addExceptionTypeValue)(s,`${t}`,void 0)),(0,q.addExceptionMechanism)(s,{synthetic:!0}),s)}function tv(e,t,r,n){let i={};if(n&&r){let n=tm(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,q.addExceptionMechanism)(i,{synthetic:!0})}
10if((0,eE.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}e.s(["eventFromException",0,ty,"eventFromMessage",0,tS,"eventFromUnknownInput",0,tE,"exceptionFromError",0,th],920714);let tT=L.GLOBAL_OBJ;function tb(){try{return tT.document.location.href}catch{return""}}function tI(e,t=5){if(!tT.HTMLElement)return null;let r=e;for(let e=0;e<t&&r;e++){if(r instanceof HTMLElement){if(r.dataset.sentryComponent)return r.dataset.sentryComponent;if(r.dataset.sentryElement)return r.dataset.sentryElement}r=r.parentNode}return null}e.s(["getComponentName",0,tI,"getLocationHref",0,tb],825021);let tR=L.GLOBAL_OBJ,tw=0;function tN(){return tw>0}function tC(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,Z.getOriginalFunction)(e))return e}catch{return e}let r=function(...r){L.GLOBAL_OBJ._sentryWrappedDepth=(L.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let n=r.map(e=>tC(e,t));return e.apply(this,n)}catch(e){throw tw++,setTimeout(()=>{tw--}),(0,U.withScope)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,q.addExceptionTypeValue)(e,void 0,void 0),(0,q.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,P.captureException)(e)}),e}finally{L.GLOBAL_OBJ._sentryWrappedDepth=(L.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,Z.markFunctionWrapped)(r,e),(0,Z.addNonEnumerableProperty)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function tA(){let e=tb(),{referrer:t}=tR.document||{},{userAgent:r}=tR.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}e.s(["WINDOW",0,tR,"getHttpRequestData",0,tA,"shouldIgnoreOnError",0,tN,"wrap",0,tC],736545);class tM extends tn{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tR.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);D(t,"browser",["browser"],tR.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:n}=this._options;tR.document&&tR.document.addEventListener("visibilitychange",()=>{"hidden"===tR.document.visibilityState&&(n&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),r&&this.on("beforeSendSession",td)}eventFromException(e,t){return ty(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return tS(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}e.s(["BrowserClient",0,tM],42206);let tO={},tk={};function tL(e,t){return tO[e]=tO[e]||[],tO[e].push(t),()=>{let r=tO[e];if(r){let e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}function tx(e,t){if(!tk[e]){tk[e]=!0;try{t()}catch(t){B.DEBUG_BUILD&&k.debug.error(`Error while instrumenting ${e}`,t)}}}function tD(e,t){let r=e&&tO[e];if(r)for(let n of r)try{n(t)}catch(t){B.DEBUG_BUILD&&k.debug.error(`Error while triggering instrumentation handler.
11Type: ${e}
12Name: ${(0,es.getFunctionName)(n)}
13Error:`,t)}}let tP=new Set([]);function tU(e){let t="console",r=tL(t,e);return tx(t,tF),r}let tB=new Set;function tF(){"console"in L.GLOBAL_OBJ&&k.CONSOLE_LEVELS.forEach(function(e){!tB.has(e)&&e in L.GLOBAL_OBJ.console&&(tB.add(e),(0,Z.fill)(L.GLOBAL_OBJ.console,e,function(t){return k.originalConsoleMethods[e]=t,function(...t){let r=t[0],n=k.originalConsoleMethods[e],i=tP.size&&"string"==typeof r&&(0,Y.stringMatchesSomePattern)(r,tP);i||tD("console",{args:t,level:e}),(!i||B.DEBUG_BUILD&&k.debug.isEnabled())&&n?.apply(L.GLOBAL_OBJ.console,t)}}))})}e.s(["addConsoleInstrumentationHandler",0,tU],287126);let t$=L.GLOBAL_OBJ;function tj(){return"history"in t$&&!!t$.history}function tW(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function tG(){if("string"==typeof EdgeRuntime)return!0;
13if(!function(){if(!("fetch"in t$))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tW(t$.fetch))return!0;let e=!1,t=t$.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tW(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){B.DEBUG_BUILD&&k.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function tz(e,t){let r="fetch",n=tL(r,e);return tx(r,()=>tq(void 0,t)),n}function tH(e){let t="fetch-body-resolved",r=tL(t,e);return tx(t,()=>tq(tJ)),r}function tq(e,t=!1){(!t||tG())&&(0,Z.fill)(L.GLOBAL_OBJ,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:tK(t),method:tV(r,"method")?String(r.method).toUpperCase():(0,eE.isRequest)(t)&&tV(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tK(t),method:tV(t,"method")?String(t.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:1e3*(0,eb.timestampInSeconds)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,eE.isRequest)(t))return new Headers(t.headers)}catch{}}(r)};return e||tD("fetch",{...a}),t.apply(L.GLOBAL_OBJ,r).then(async t=>(e?e(t):tD("fetch",{...a,endTimestamp:1e3*(0,eb.timestampInSeconds)(),response:t}),t),e=>{tD("fetch",{...a,endTimestamp:1e3*(0,eb.timestampInSeconds)(),error:e}),(0,eE.isError)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,Z.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,U.getClient)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&(0,eE.isError)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:(0,Z.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tY(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function tJ(e){let t;try{t=e.clone()}catch{return}tY(t,()=>{tD("fetch-body-resolved",{endTimestamp:1e3*(0,eb.timestampInSeconds)(),response:e})})}function tV(e,t){return(0,eE.isObjectLike)(e)&&!!e[t]}function tK(e){return"string"==typeof e?e:e?tV(e,"url")?e.url:e.toString?e.toString():"":""}function tX(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tQ(e,t){let r=(0,U.getClient)(),n=(0,U.getIsolationScope)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=100}=r.getOptions();if(s<=0)return;let a={timestamp:(0,eb.dateTimestampInSeconds)(),...e},o=i?(0,k.consoleSandbox)(()=>i(a,t)):a;null!==o&&(r.emit&&r.emit("beforeAddBreadcrumb",o,t),n.addBreadcrumb(o,s))}function tZ(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}e.s(["isNativeFunction",0,tW,"supportsHistory",0,tj,"supportsNativeFetch",0,tG,"supportsReportingObserver",0,function(){return"ReportingObserver"in t$}],150226),e.s(["addFetchEndInstrumentationHandler",0,tH,"addFetchInstrumentationHandler",0,tz],650612),e.s(["severityLevelFromString",0,tX],92269),e.s(["addBreadcrumb",0,tQ],53166);let t0="http.url",t1="sentry.sdk.name",t2="sentry.sdk.version",t3="sentry.segment.id",t5="sentry.segment.name",t6="sentry.trace_lifecycle",t4="sentry.transaction",t8="url.full",t7="url.path",t9="url.template";function re(e){return"isRelative"in e}function rt(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function rr(e){if(re(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function rn(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function ri(e){return e.split(/[?#]/,1)[0]}function rs(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(","),a="";if(t&&-1!==s){let t=e.slice(s+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${n}${i?",base64":""}${a?`,${a}`:""}`}return e}e.s(["GRAPHQL_DOCUMENT",0,"graphql.document","HTTP_URL",0,t0,"PARAMS_KEY_BASE",0,"params","SENTRY_SDK_NAME",0,t1,"SENTRY_SDK_VERSION",0,t2,"SENTRY_SEGMENT_ID",0,t3,"SENTRY_SEGMENT_NAME",0,t5,"SENTRY_TRACE_LIFECYCLE",0,t6,"SENTRY_TRANSACTION",0,t4,"URL_FULL",0,t8,"URL_PATH",0,t7,"URL_PATH_PARAMETER_KEY_BASE",0,"url.path.parameter","URL_TEMPLATE",0,t9],249216),e.s(["getSanitizedUrlStringFromUrlObject",0,rr,"isURLObjectRelative",0,re,"parseStringToURLObject",0,rt,"parseUrl",0,rn,"stripDataUrlContent",0,rs,"stripUrlQueryAndFragment",0,ri],94387);let ra=L.GLOBAL_OBJ;function ro(e){tL("dom",e),tx("dom",rl)}function rl(){if(!ra.document)return;let e=tD.bind(null,"dom"),t=ru(e,!0);ra.document.addEventListener("click",t,!1),ra.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=ra[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,Z.fill)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=n[r]=n[r]||{refCount:0};if(!s.handler){let n=ru(e);s.handler=n,t.call(this,r,n,i)}s.refCount++}catch{}return t.call(this,r,n,i)}}),(0,Z.fill)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function ru(e,t=!1){return s=>{var a;if(!s||s._sentryCaptured)return;let o=function(e){try{return e.target}catch{return null}}(s);if(a=s.type,"keypress"===a&&(!o?.tagName||"INPUT"!==o.tagName&&"TEXTAREA"!==o.tagName&&!o.isContentEditable&&1))return;(0,Z.addNonEnumerableProperty)(s,"_sentryCaptured",!0),o&&!o._sentryId&&(0,Z.addNonEnumerableProperty)(o,"_sentryId",(0,q.uuid4)());let l="keypress"===s.type?"input":s.type;!function(e){if(e.type!==n)return!1;try{if(!e.target||e.target._sentryId!==i)return!1}catch{}return!0}(s)&&(e({event:s,name:l,global:t}),n=s.type,i=o?o._sentryId:void 0),clearTimeout(r),r=ra.setTimeout(()=>{i=void 0,n=void 0},1e3)}}let rc="__sentry_xhr_v3__";function rd(e){tL("xhr",e),tx("xhr",rp)}function rp(){if(!ra.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eb.timestampInSeconds)(),s=(0,eE.isString)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,eE.isString)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!s||!a)return e.apply(t,r);t[rc]={method:s,url:a,request_headers:{}}
13,"POST"===s&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let o=()=>{let e=t[rc];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}tD("xhr",{endTimestamp:1e3*(0,eb.timestampInSeconds)(),startTimestamp:i,xhr:t,virtualError:n}),t.removeEventListener("readystatechange",o)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(o(),e.apply(t,r))}):t.addEventListener("readystatechange",o),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,s=t[rc];return s&&(0,eE.isString)(n)&&(0,eE.isString)(i)&&(s.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[rc];return n&&(void 0!==r[0]&&(n.body=r[0]),tD("xhr",{startTimestamp:1e3*(0,eb.timestampInSeconds)(),xhr:t})),e.apply(t,r)}})}function rh(e){let t="history";tL(t,e),tx(t,rf)}function rf(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=s,i=function(e){try{return new URL(e,ra.location.origin).toString()}catch{return e}}(String(r));if(s=i,n===i)return e.apply(this,t);tD("history",{from:n,to:i})}return e.apply(this,t)}}ra.addEventListener("popstate",()=>{let e=ra.location.href,t=s;s=e,t===e||tD("history",{from:t,to:e})}),tj()&&((0,Z.fill)(ra.history,"pushState",e),(0,Z.fill)(ra.history,"replaceState",e))}e.s(["SENTRY_XHR_DATA_KEY",0,rc,"addXhrInstrumentationHandler",0,rd],817417);let rm={};try{"u">typeof Node&&(rm.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(rm.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,rm.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,rm.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,rm.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(rm.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function rg(e,t,r){let n=rm[t];if(n)try{return n.call(e,r)}catch{}let i=e[t];return"function"==typeof i?i.call(e,r):i}function r_(e,t={}){if(!e)return"<unknown>";try{let r,n=e,i=[],s=0,a=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&s++<5&&(r=function(e,t){let r=[],n=rg(e,"tagName");if(!n)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=rg(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}r.push(n.toLowerCase());let i=t?.length?t.filter(t=>rg(e,"getAttribute",t)).map(t=>[t,rg(e,"getAttribute",t)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{let t=rg(e,"id");t&&r.push(`#${t}`);let n=rg(e,"className");if(n&&(0,eE.isString)(n))for(let e of n.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=rg(e,"getAttribute",t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(n,o),"html"!==r&&(!(s>1)||!(a+3*i.length+r.length>=l)));)i.push(r),a+=r.length,n=rg(n,"parentNode");return i.reverse().join(" > ")}catch{return"<unknown>"}}e.s(["DEBUG_BUILD",0,!1],186450);let ry=z((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,s,a,o,l;t.console&&tU((r=e,function(e){if((0,U.getClient)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:tX(e.level),message:(0,Y.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,Y.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);tQ(t,{input:e.args,level:e.level})})),t.dom&&ro((n=e,i=t.dom,function(e){let t,r;if((0,U.getClient)()!==n)return;let s="object"==typeof i?i.serializeAttribute:void 0,a="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof s&&(s=[s]);try{var o;let n=e.event,i=(o=n)&&o.target?n.target:n;t=r_(i,{keyAttrs:s,maxStringLength:a}),r=tI(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),tQ(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&rd((s=e,function(e){if((0,U.getClient)()!==s)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[rc];if(!t||!r||!n)return;let{method:i,url:a,status_code:o,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:i,url:a,status_code:o},type:"http",level:tZ(o)};s.emit("beforeOutgoingRequestBreadcrumb",c,u),tQ(c,u)})),t.fetch&&tz((a=e,function(e){if((0,U.getClient)()!==a)return;let{startTimestamp:t,endTimestamp:r}=e;
13if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let n={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};a.emit("beforeOutgoingRequestBreadcrumb",i,n),tQ(i,n)}else{let n=e.response,i={...e.fetchData,status_code:n?.status},s={input:e.args,response:n,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,type:"http",level:tZ(i.status_code)};a.emit("beforeOutgoingRequestBreadcrumb",o,s),tQ(o,s)}})),t.history&&rh((o=e,function(e){if((0,U.getClient)()!==o)return;let t=e.from,r=e.to,n=rn(tR.location.href),i=t?rn(t):void 0,s=rn(r);i?.path||(i=n),n.protocol===s.protocol&&n.host===s.host&&(r=s.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),tQ({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,U.getClient)()===l&&tQ({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,q.getEventDescription)(e)},{event:e})}))}}});e.s(["breadcrumbsIntegration",0,ry],580417);let rS="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),rE=z((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,Z.fill)(tR,"setTimeout",rv),t.setInterval&&(0,Z.fill)(tR,"setInterval",rv),t.requestAnimationFrame&&(0,Z.fill)(tR,"requestAnimationFrame",rT),t.XMLHttpRequest&&"XMLHttpRequest"in tR&&(0,Z.fill)(XMLHttpRequest.prototype,"send",rb);let e=t.eventTarget;e&&(Array.isArray(e)?e:rS).forEach(e=>{var r,n;let i;return r=e,n=t,i=tR[r]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,Z.fill)(i,"addEventListener",function(e){return function(t,i,s){var a,o,l,u;try{a=i,"function"==typeof a.handleEvent&&(i.handleEvent=tC(i.handleEvent,{mechanism:{data:{handler:(0,es.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.unregisterOriginalCallbacks&&(o=this,l=t,u=i,o&&"object"==typeof o&&"removeEventListener"in o&&"function"==typeof o.removeEventListener&&o.removeEventListener(l,u)),e.apply(this,[t,tC(i,{mechanism:{data:{handler:(0,es.getFunctionName)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,Z.fill)(i,"removeEventListener",function(e){return function(t,r,n){try{if(Object.prototype.hasOwnProperty.call(r,"__sentry_wrapped__")){let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}}catch{}return e.call(this,t,r,n)}})))})}}});function rv(e){return function(...t){let r=t[0];return t[0]=tC(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,es.getFunctionName)(e)}`}}),e.apply(this,t)}}function rT(e){return function(t){return e.apply(this,[tC(t,{mechanism:{data:{handler:(0,es.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rb(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,Z.fill)(r,e,function(t){let r={mechanism:{data:{handler:(0,es.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,Z.getOriginalFunction)(t);return n&&(r.mechanism.data.handler=(0,es.getFunctionName)(n)),tC(t,r)})}),e.apply(this,t)}}function rI(e,t,r){ra.document&&ra.addEventListener(e,t,r)}function rR(e,t,r){ra.document&&ra.removeEventListener(e,t,r)}e.s(["browserApiErrorsIntegration",0,rE],905492);let rw=e=>{let t=!1;return()=>{t||(e(),t=!0)}},rN=e=>{let t=ra.requestIdleCallback||ra.setTimeout;ra.document?.visibilityState==="hidden"?e():(rI("visibilitychange",e=rw(e),{once:!0,capture:!0}),rI("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),rR("visibilitychange",e,{capture:!0}),rR("pagehide",e,{capture:!0})}
13))},rC=z((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===tR.document)return;(0,P.startSession)({ignoreDuration:!0});let e=!1;rN(()=>{e||((0,P.captureSession)(),e=!0)});let r=(0,U.getIsolationScope)(),n=r.getUser();r.addScopeListener(t=>{let r=t.getUser();(n?.id!==r?.id||n?.ip_address!==r?.ip_address)&&(n=r,e&&(0,P.captureSession)())}),"route"===t&&rh(({from:t,to:r})=>{t!==r&&((0,P.startSession)({ignoreDuration:!0}),(0,P.captureSession)(),e=!0)})}}});e.s(["browserSessionIntegration",0,rC],937033);var rA=e.i(906482);function rM(e,t){let r=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in r||(r[e]=t)})}e.s(["captureSpan",0,function(e,t){var r,n;let i,s,a=(0,en.spanToStreamedSpanJSON)(e),o=(0,en.INTERNAL_getSegmentSpan)(e),l=(0,en.spanToStreamedSpanJSON)(o),{isolationScope:u,scope:c}=(0,rA.getCapturedScopesOnSpan)(e),d=(0,ev.getCombinedScopeData)(u,c);!function(e,t,r,n){let i=r.getSdkMetadata(),{release:s,environment:a}=r.getOptions();rM(e,{[t6]:"stream",[t5]:t.name,[t3]:t.span_id,[t1]:i?.sdk?.name,[t2]:i?.sdk?.version,[er.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:s,[er.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:a||eg.DEFAULT_ENVIRONMENT,[er.SEMANTIC_ATTRIBUTE_USER_ID]:n.user?.id,[er.SEMANTIC_ATTRIBUTE_USER_EMAIL]:n.user?.email,[er.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:n.user?.ip_address,[er.SEMANTIC_ATTRIBUTE_USER_USERNAME]:n.user?.username,...n.attributes})}(a,l,t,d);let p=e.kind;t.emit("preprocessSpan",a,{spanKind:p}),a.is_segment&&(rM(a,function(e){let t={},{response:r,profile:n,cloud_resource:i,culture:s,state:a}=e;if(r&&(null!=r.status_code&&(t["http.response.status_code"]=r.status_code),null!=r.body_size&&(t["http.response.body.size"]=r.body_size)),n&&(n.profile_id&&(t["sentry.profile_id"]=n.profile_id),n.profiler_id&&(t["sentry.profiler_id"]=n.profiler_id)),i)for(let[e,r]of Object.entries(i))null!=r&&(t[e]=r);s&&(s.locale&&(t["culture.locale"]=s.locale),s.timezone&&(t["culture.timezone"]=s.timezone)),a?.state&&"string"==typeof a.state.type&&(t["state.type"]=a.state.type);let o=e.angular;if(o){let e=o.version;("string"==typeof e||"number"==typeof e)&&(t["angular.version"]=e)}let l=e.react;if(l){let e=l.version;("string"==typeof e||"number"==typeof e)&&(t["react.version"]=e)}return t}(d.contexts)),r=a,(i=t.getIntegrationNames()).length&&rM(r,{[er.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:i}),t.emit("processSegmentSpan",a)),t.emit("processSpan",a);let{beforeSendSpan:h}=t.getOptions(),f=h&&(0,ej.isStreamedBeforeSendSpanCallback)(h)?(s=h(n=a))||((0,en.showSpanDropWarning)(),n):a,m=f.attributes?.[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return a.is_segment&&m&&rM(f,{"sentry.segment.name.source":m}),{...(0,en.streamedSpanJsonToSerializedSpan)(f),_segmentSpan:o}},"safeSetSpanJSONAttributes",0,rM],795373);let rO=z(()=>({name:"CultureContext",preprocessEvent(e){let t=rk();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=rk();t&&rM(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function rk(){try{let e=tR.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}e.s(["cultureContextIntegration",0,rO],652553);let rL=null;function rx(e){let t="error";tL(t,e),tx(t,rD)}function rD(){rL=L.GLOBAL_OBJ.onerror,L.GLOBAL_OBJ.onerror=function(e,t,r,n,i){return tD("error",{column:n,error:i,line:r,msg:e,url:t}),!!rL&&rL.apply(this,arguments)},L.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let rP=null;function rU(e){let t="unhandledrejection";tL(t,e),tx(t,rB)}function rB(){rP=L.GLOBAL_OBJ.onunhandledrejection,L.GLOBAL_OBJ.onunhandledrejection=function(e){return tD("unhandledrejection",e),!rP||rP.apply(this,arguments)},L.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let rF=z((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,rx(e=>{var t,n,i,s;let a,o,l,u,c,{stackParser:d,attachStacktrace:p}=rG();if((0,U.getClient)()!==r||tN())return;let{msg:h,url:f,line:m,column:g,error:_}=e,y=(t=tE(d,_||h,void 0,p,!1),n=f,i=m,s=g,0===(c=(u=(l=(o=(a=t.exception=t.exception||{}).values=a.values||[])[0]=o[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:s,lineno:i,filename:function(e){if((0,eE.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${rs(e,!1)}>`:e}(n)??tb(),function:es.UNKNOWN_FUNCTION,in_app:!0}),t);y.level="error",(0,P.captureEvent)(y,{originalException:_,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),rW("onerror")),t.onunhandledrejection&&(n=e,rU(e=>{let{stackParser:t,attachStacktrace:r}=rG();if((0,U.getClient)()!==n||tN())return;let i=r$(e),s=(0,eE.isPrimitive)(i)?rj(i):tE(t,i,void 0,r,!0);s.level="error",(0,P.captureEvent)(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),rW("onunhandledrejection"))}}});function r$(e){if((0,eE.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function rj(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rW(e){}function rG(){let e=(0,U.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}e.s(["_eventFromRejectionWithPrimitive",0,rj,"_getUnhandledRejectionError",0,r$,"globalHandlersIntegration",0,rF],112040);let rz=z(()=>({name:"HttpContext",preprocessEvent(e){if(!tR.navigator&&!tR.location&&!tR.document)return;let t=tA(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}},processSegmentSpan(e){let t=e.attributes?.[er.SEMANTIC_ATTRIBUTE_SENTRY_OP];if(!tR.navigator&&!tR.location&&!tR.document)return;let r=tA();rM(e,{[t8]:"http.client"!==t?r.url:void 0,"http.request.header.user_agent":r.headers["User-Agent"],"http.request.header.referer":r.headers.Referer})}}));function rH(e){return Array.isArray(e.errors)}function rq(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rH(r)&&{is_exception_group:!0}
13,...e.mechanism,exception_id:t}}function rY(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}e.s(["httpContextIntegration",0,rz],827480);let rJ=z((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,s){if(!i.exception?.values||!s||!(0,eE.isError)(s.originalException))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,r,n,i,s,a,o,l){if(a.length>=n+1)return a;let u=[...a];if((0,eE.isError)(i[s])){rq(o,l,i);let a=t(r,i[s]),c=u.length;rY(a,s,c,l),u=e(t,r,n,i[s],s,[a,...u],a,c)}return rH(i)&&i.errors.forEach((a,c)=>{if((0,eE.isError)(a)){rq(o,l,i);let d=t(r,a),p=u.length;rY(d,`errors[${c}]`,p,l),u=e(t,r,n,a,s,[d,...u],d,p)}}),u}(e,t,n,s.originalException,r,i.exception.values,a,0))}(th,i.getOptions().stackParser,r,t,e,n)}}});function rV(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?es.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}e.s(["linkedErrorsIntegration",0,rJ],787215);let rK=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rX=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rQ=/\((\S*)(?::(\d+))(?::(\d+))\)/,rZ=/at (.+?) ?\(data:(.+?),/,r0=[30,e=>{let t=e.match(rZ);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rK.exec(e);if(r){let[,e,t,n]=r;return rV(e,es.UNKNOWN_FUNCTION,+t,+n)}let n=rX.exec(e);if(n){if(n[2]?.indexOf("eval")===0){let e=rQ.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=nr(n[1]||es.UNKNOWN_FUNCTION,n[2]);return rV(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],r1=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,r2=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,r3=[50,e=>{let t=r1.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=r2.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||es.UNKNOWN_FUNCTION;return[r,e]=nr(r,e),rV(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],r5=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r6=[40,e=>{let t=r5.exec(e);return t?rV(t[2],t[1]||es.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],r4=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r8=[10,e=>{let t=r4.exec(e);return t?rV(t[2],t[3]||es.UNKNOWN_FUNCTION,+t[1]):void 0}],r7=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,r9=[20,e=>{let t=r7.exec(e);return t?rV(t[5],t[3]||t[4]||es.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],ne=[r0,r3],nt=(0,es.createStackParser)(...ne),nr=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:es.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};e.s(["chromeStackLineParser",0,r0,"defaultStackLineParsers",0,ne,"defaultStackParser",0,nt,"geckoStackLineParser",0,r3,"opera10StackLineParser",0,r8,"opera11StackLineParser",0,r9,"winjsStackLineParser",0,r6],862857);let nn={};function ni(e){let t=nn[e];if(t)return t;let r=ra[e];if(tW(r))return nn[e]=r.bind(ra);let n=ra.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?nn[e]=r.bind(ra):r}function ns(e){nn[e]=void 0}function na(...e){return ni("setTimeout")(...e)}function no(e,t=ni("fetch")){let r=0,n=0;async function i(i){let s=i.body.length;r+=s,n++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,a);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw ns("fetch"),e}finally{r-=s,n--}}return eX(e,i,eq(e.bufferSize||40))}e.s(["clearCachedImplementation",0,ns,"getNativeImplementation",0,ni,"setTimeout",0,na],36764),e.s(["makeFetchTransport",0,no],31825);let nl=/^HTML(\w*)Element$/;function nu(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,r=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(nl.test(r))return`[HTMLElement: ${r_(e)}]`}}function nc(e){return[K(),et(),ei(),rE(),ry(),rF(),rJ(),ea(),rz(),rO(),rC()]}
13function nd(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tR.window||tR.nw)return!1;let e=tR.chrome||tR.browser;if(!e?.runtime?.id)return!1;let t=tb();return!(tR===tR.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}(),r=null==e.defaultIntegrations?nc():e.defaultIntegrations,n={...e,enabled:!t&&e.enabled,stackParser:(0,es.stackParserFromStackParserOptions)(e.stackParser||nt),integrations:$({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||no};return(0,ec.setNormalizeStringifier)(nu),ed(tM,n)}e.s(["normalizeStringifyValue",0,nu],814896),e.s(["forceLoad",0,function(){},"getDefaultIntegrations",0,nc,"init",0,nd,"onLoad",0,function(e){e()}],602587);var np=e.i(96322);function nh(e){let t={...e};D(t,"react"),(0,P.setContext)("react",{version:np.version});let r=nd(t);return(0,ec.setNormalizeStringifier)(nf),r}function nf(e){return(0,eE.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":nu(e)}e.s(["init",0,nh],397056);var nm=e.i(29279);function ng(e){return(0,eE.isError)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}e.s(["isNotFoundNavigationError",0,function(e){return(0,eE.isError)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)},"isRedirectNavigationError",0,ng],986022);var n_=e.i(505497),ny=e.i(583110),nS=e.i(209505),nE=e.i(41034),nv=e.i(309691);let nT={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function nb(e,t={}){var r;let n,i,s=new Map,a=!1,o="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=nT.idleTimeout,finalTimeout:d=nT.finalTimeout,childSpanTimeout:p=nT.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:f=!0}=t,m=(0,U.getClient)(),g=(0,U.getCurrentScope)();if(!m||!(0,n_.hasSpansEnabled)()){let e=new ny.SentryNonRecordingSpan({traceId:g.getPropagationContext().traceId});return(0,rA.setCapturedScopesOnSpan)(e,g,(0,U.getIsolationScope)()),e}let _=(0,en.getActiveSpan)(),y=(r=e,n=(0,nv.startInactiveSpan)(r),(0,eT._setSpanForScope)((0,U.getCurrentScope)(),n),B.DEBUG_BUILD&&k.debug.log("[Tracing] Started span is an idle span"),n);function S(){i&&(clearTimeout(i),i=void 0)}function E(e){S(),i=setTimeout(()=>{!a&&0===s.size&&l&&(o="idleTimeout",y.end(e))},c)}function v(e){i=setTimeout(()=>{!a&&l&&(o="heartbeatFailed",y.end(e))},p)}function T(e){a=!0,s.clear(),u.forEach(e=>e()),(0,eT._setSpanForScope)(g,_);let t=(0,en.spanToJSON)(y),{start_timestamp:r}=t;if(!r)return;t.data[er.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||y.setAttribute(er.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,o);let n=t.status;n&&"unknown"!==n||y.setStatus({code:nE.SPAN_STATUS_OK}),k.debug.log(`[Tracing] Idle span "${t.op}" finished`);let i=(0,en.getSpanDescendants)(y).filter(e=>e!==y),l=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:nE.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),B.DEBUG_BUILD&&k.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,en.spanToJSON)(t),i=n<=e,s=r-n<=(d+c)/1e3;if(B.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);i?s||k.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):k.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!i)&&((0,en.removeChildSpanFromSpan)(y,t),l++)}),l>0&&y.setAttribute("sentry.idle_span_discarded_spans",l)}return y.end=new Proxy(y.end,{apply(e,t,r){if(h&&h(y),(0,ny.spanIsNonRecordingSpan)(t))return;let[n,...i]=r,s=n||(0,eb.timestampInSeconds)(),a=(0,en.spanTimeInputToSeconds)(s),o=(0,en.getSpanDescendants)(y).filter(e=>e!==y),l=(0,en.spanToJSON)(y);if(!o.length||!f)return T(a),Reflect.apply(e,t,[a,...i]);let u=m.getOptions().ignoreSpans,c=o?.reduce((e,t)=>{let r=(0,en.spanToJSON)(t);return!r.timestamp||u&&(0,e1.shouldIgnoreSpan)({description:r.description,op:r.op,attributes:r.data},u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),p=l.start_timestamp,g=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(a,c||1/0)));return T(g),Reflect.apply(e,t,[g,...i])}}),u.push(m.on("spanStart",e=>{var t;!(a||e===y||(0,en.spanToJSON)(e).timestamp||e instanceof nS.SentrySpan&&e.isStandaloneSpan())&&(0,en.getSpanDescendants)(y).includes(e)&&(t=e.spanContext().spanId,S(),s.set(t,!0),v((0,eb.timestampInSeconds)()+
13p/1e3))})),u.push(m.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,s.has(t)&&s.delete(t),0===s.size&&E((0,eb.timestampInSeconds)()+c/1e3)}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===y&&(l=!0,E(),s.size&&v())})),t.disableAutoFinish||E(),setTimeout(()=>{a||(y.setStatus({code:nE.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),o="finalTimeout",y.end())},d),y}let nI=!1;function nR(){nI||(nI=!0,rx(e),rU(e));function e(){let e=(0,en.getActiveSpan)(),t=e&&(0,en.getRootSpan)(e);if(t){let e="internal_error";B.DEBUG_BUILD&&k.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:nE.SPAN_STATUS_ERROR,message:e})}}}e.s(["registerSpanErrorInstrumentation",0,nR],129561);var nw=e.i(554619),nN=e.i(224680),nC=e.i(560080);let nA=(e,t,r,n)=>{let i,s;return a=>{if(t.value>=0&&(a||n)&&((s=t.value-(i??0))||void 0===i)){var o;i=t.value,t.delta=s,o=t.value,t.rating=o>r[1]?"poor":o>r[0]?"needs-improvement":"good",e(t)}}},nM=(e=!0)=>{let t=ra.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},nO=()=>{let e=nM();return e?.activationStart??0},nk=-1,nL=new Set,nx=e=>{if(("pagehide"===e.type||ra.document?.visibilityState==="hidden")&&nk>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of nL)e();isFinite(nk)||(nk="visibilitychange"===e.type?e.timeStamp:0,rR("prerenderingchange",nx,!0))}},nD=()=>{if(ra.document&&nk<0){let e=nO();nk=(ra.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(ra.document?.visibilityState!=="hidden"||ra.document?.prerendering?1/0:0),rI("visibilitychange",nx,!0),rI("pagehide",nx,!0),rI("prerenderingchange",nx,!0)}return{get firstHiddenTime(){return nk},onHidden(e){nL.add(e)}}},nP=(e,t=-1)=>{let r=nM(),n="navigate";return r&&(ra.document?.prerendering||nO()>0?n="prerender":ra.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},nU=new WeakMap;function nB(e,t){try{return nU.get(e)||nU.set(e,new t),nU.get(e)}catch(e){return new t}}class nF{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let n$=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},nj=e=>{ra.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nW=[1800,3e3],nG=[.1,.25],nz=0,nH=1/0,nq=0,nY=e=>{e.forEach(e=>{e.interactionId&&(nH=Math.min(nH,e.interactionId),nz=(nq=Math.max(nq,e.interactionId))?(nq-nH)/7+1:0)})},nJ=()=>a?nz:performance.interactionCount||0,nV=0;class nK{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){nV=nJ(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((nJ()-nV)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>
13t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(r)}}}let nX=[200,500];class nQ{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let nZ=[2500,4e3],n0=[800,1800],n1=e=>{ra.document?.prerendering?nj(()=>n1(e)):ra.document?.readyState!=="complete"?addEventListener("load",()=>n1(e),!0):setTimeout(e)},n2={},n3={};function n5(e,t=!1){return is("cls",e,ie,o,t)}function n6(e,t=!1){return is("lcp",e,it,l,t)}function n4(e){return is("ttfb",e,ir,u)}function n8(e){return is("inp",e,ii,c)}function n7(e,t){var r;let n;return ia(e,t),n3[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),n$(r,e=>{n9(r,{entries:e})},n),n3[e]=!0),io(e,t)}function n9(e,t){let r=n2[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function ie(){return((e,t={})=>{((e,t={})=>{nj(()=>{let r,n=nD(),i=nP("FCP"),s=n$("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(s.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-nO(),0),i.entries.push(t),r(!0)))});s&&(r=nA(e,i,nW,t.reportAllChanges))})})(rw(()=>{let r,n=nP("CLS",0),i=nD(),s=nB(t,nF),a=e=>{for(let t of e)s._processEntry(t);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},o=n$("layout-shift",a);o&&(r=nA(e,n,nG,t.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),r(!0)}),ra?.setTimeout?.(r))}))})(e=>{n9("cls",{metric:e}),o=e},{reportAllChanges:!0})}function it(){return((e,t={})=>{nj(()=>{let r,n=nD(),i=nP("LCP"),s=nB(t,nQ),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))s._processEntry(a),a.startTime<n.firstHiddenTime&&(i.value=Math.max(a.startTime-nO(),0),i.entries=[a],r())},o=n$("largest-contentful-paint",a);if(o){r=nA(e,i,nZ,t.reportAllChanges);let n=rw(()=>{a(o.takeRecords()),o.disconnect(),r(!0)}),s=e=>{e.isTrusted&&(rN(n),rR(e.type,s,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])rI(e,s,{capture:!0})}})})(e=>{n9("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function ir(){return((e,t={})=>{let r=nP("TTFB"),n=nA(e,r,n0,t.reportAllChanges);n1(()=>{let e=nM();e&&(r.value=Math.max(e.responseStart-nO(),0),r.entries=[e],n(!0))})})(e=>{n9("ttfb",{metric:e}),u=e})}function ii(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=nD();nj(()=>{let n;"interactionCount"in performance||a||(a=n$("event",nY,{type:"event",buffered:!0,durationThreshold:0}));let i=nP("INP"),s=nB(t,nK),o=e=>{rN(()=>{for(let t of e)s._processEntry(t);let t=s._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,n())})},l=n$("event",o,{durationThreshold:t.durationThreshold??40});n=nA(e,i,nX,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(l.takeRecords()),n(!0)}))})})(e=>{n9("inp",{metric:e}),c=e})}function is(e,t,r,n,i=!1){let s;return ia(e,t),n3[e]||(s=r(),n3[e]=!0),n&&t({metric:n}),io(e,t,i?s:void 0)}function ia(e,t){n2[e]=n2[e]||[],n2[e].push(t)}function io(e,t,r){return()=>{r&&r();let n=n2[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function il(e){return"duration"in e}function iu(e){return"number"==typeof e&&isFinite(e)}function ic(e,t,r,{...n}){let i=(0,en.spanToJSON)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,nv.withActiveSpan)(e,()=>{let e=(0,nv.startInactiveSpan)({startTime:t,...n});return e&&e.end(r),e})}function id(e){let t,r=(0,U.getClient)();if(!r)return;let{name:n,transaction:i,attributes:s,startTime:a}=e,{release:o,environment:l}=r.getOptions(),{userInfo:u}=r.getDataCollectionOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,U.getCurrentScope)(),h=p.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}let m={release:o,environment:l,user:f||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":ra.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...s};return(0,nv.startInactiveSpan)({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}function ip(){return ra.addEventListener&&ra.performance}function ih(e){return e/1e3}function im(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
13return n===e&&(t=n),{name:t,version:r}}function ig(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function i_(e,t){let r,n,i=!1;function s(e){!i&&n&&t(e,n.spanContext().spanId,n),i=!0}rI("visibilitychange",r=e=>{("pagehide"===e.type||ra.document?.visibilityState==="hidden")&&(()=>{s("pagehide")})()},{capture:!0,once:!0}),rI("pagehide",r,{capture:!0,once:!0});let a=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(s("navigation"),a(),o())}),o=e.on("afterStartPageLoadSpan",e=>{n=e,o()})}function iy(e){return null!=e&&e>0&&e<=6e4}function iS(e){return e?(((0,eb.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function iE(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=im(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eb.browserPerformanceTimeOrigin)()||ip()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":iS(e.redirectStart),"http.request.redirect_end":iS(e.redirectEnd),"http.request.worker_start":iS(e.workerStart),"http.request.fetch_start":iS(e.fetchStart),"http.request.domain_lookup_start":iS(e.domainLookupStart),"http.request.domain_lookup_end":iS(e.domainLookupEnd),"http.request.connect_start":iS(e.connectStart),"http.request.secure_connection_start":iS(e.secureConnectionStart),"http.request.connection_end":iS(e.connectEnd),"http.request.request_start":iS(e.requestStart),"http.request.response_start":iS(e.responseStart),"http.request.response_end":iS(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}e.s(["addClsInstrumentationHandler",0,n5,"addInpInstrumentationHandler",0,n8,"addLcpInstrumentationHandler",0,n6,"addPerformanceInstrumentationHandler",0,n7,"addTtfbInstrumentationHandler",0,n4,"isPerformanceEventTiming",0,il],440151),e.s(["extractNetworkProtocol",0,im,"getBrowserPerformanceAPI",0,ip,"isMeasurementValue",0,iu,"listenForWebVitalReportEvents",0,i_,"msToSec",0,ih,"startAndEndSpan",0,ic,"startStandaloneWebVitalSpan",0,id,"supportsWebVital",0,ig],170167);let iv=0,iT={};function ib(){d=void 0,p=void 0,iT={}}function iI(e,t,r,n,i=r){var s;let a=t["secureConnection"===(s=r)?"connectEnd":"fetch"===s?"domainLookupStart":`${s}End`],o=t[`${r}Start`];o&&a&&ic(e,n+ih(o),n+ih(a),{op:`browser.${i}`,name:t.name,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let iR=new WeakMap,iw=new WeakMap,iN=["text/event-stream","application/x-ndjson","application/stream+json"],iC=z(()=>({name:"FetchStreamPerformance",setup(){tH(e=>{if(e.response){let t=iR.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let r=iw.get(e.response);r&&clearTimeout(r)}}}),tz(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!iN.some(e=>
13t.startsWith(e)))return;let r=e.fetchData?.url||"",n=e.fetchData?.method||"GET",i=rt(r),s=r.startsWith("data:")?rs(r):i?rr(i):r,a=(0,nv.startInactiveSpan)({name:`${n} ${s}`,startTime:e.endTimestamp,attributes:{url:rs(r),"http.method":n,type:"fetch",[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});iR.set(e.response,a);let o=setTimeout(()=>{a.isRecording()&&a.end()},9e4);iw.set(e.response,o)}})}}));e.s(["fetchStreamPerformanceIntegration",0,iC],782170);let iA=[],iM=new Map,iO=new Map,ik={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},iL=({metric:e})=>{if(void 0==e.value)return;let t=ih(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&ik[t.name]);if(!r)return;let{interactionId:n}=r,i=ik[r.name],s=ih((0,eb.browserPerformanceTimeOrigin)()+r.startTime),a=(0,en.getActiveSpan)(),o=a?(0,en.getRootSpan)(a):void 0,l=null!=n?iM.get(n):void 0,u=l?.span||o,c=u?(0,en.spanToJSON)(u).description:(0,U.getCurrentScope)().getScopeData().transactionName,d=id({name:l?.elementName||r_(r.target),transaction:c,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},startTime:s});d&&(d.addEvent("inp",{[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(s+t))};function ix(e){let{name:t,op:r,origin:n,metricName:i,value:s,attributes:a,parentSpan:o,reportEvent:l,startTime:u,endTime:c}=e,d=(0,U.getCurrentScope)().getScopeData().transactionName,p={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:r,[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${i}.value`]:s,[t4]:d,[t5]:d,"user_agent.original":ra.navigator?.userAgent,...a};o&&(0,en.spanToStreamedSpanJSON)(o).attributes?.[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]==="pageload"&&(p["sentry.pageload.span_id"]=o.spanContext().spanId),l&&(p[`browser.web_vital.${i}.report_event`]=l);let h=(0,nv.startInactiveSpan)({name:t,attributes:p,startTime:u,parentSpan:o});h&&h.end(c??u)}let iD="WebVitals",iP=z((e={})=>{let t=new Set(e.ignore??[]);return{name:iD,setup(r){let n=(0,eW.hasSpanStreamingEnabled)(r),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:s}=e._experiments??{},a=n||t.has("cls")?void 0:i||!1,o=n||t.has("lcp")?void 0:s||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=ip();if(n&&(0,eb.browserPerformanceTimeOrigin)()){n.mark&&ra.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!ig("largest-contentful-paint"))return;let n=n6(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&iy(e.value)&&(r=e.value,t=n)},!0);i_(e,(e,i)=>{(function(e,t,r,n){if(!iy(e))return;let i=ih(((0,eb.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),s=(0,U.getCurrentScope)().getScopeData().transactionName,a=t?r_(t.element):"Largest contentful paint",o={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(o["lcp.element"]=r_(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url),null!=t.loadTime&&(o["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(o["lcp.renderTime"]=t.renderTime),null!=t.size&&(o["lcp.size"]=t.size));let l=id({name:a,transaction:s,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),l.end(i))})(r,t,i,e),n()})}(r):!1===t?n6(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&iy(e.value)&&(iT.lcp={value:e.value,unit:"millisecond"},d=t)},!0):void 0,s=e?function(e){let t,r=0;if(!ig("layout-shift"))return;let n=n5(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);i_(e,(e,i)=>{var s,a,o,l;let u,c,d,p,h;s=r,a=t,o=i,l=e,u=a?ih(((0,eb.browserPerformanceTimeOrigin)()||0)+a.startTime):(0,eb.timestampInSeconds)(),c=(0,U.getCurrentScope)().getScopeData().transactionName,d=a?r_(a.sources[0]?.node):"Layout shift",p={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":o,"sentry.report_event":l}
13,a?.sources&&a.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=r_(e.node)}),(h=id({name:d,transaction:c,attributes:p,startTime:u}))&&(h.addEvent("cls",{[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[er.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:s}),h.end(u)),n()})}(r):!1===e?n5(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(iT.cls={value:e.value,unit:""},p=t)},!0):void 0,a=n4(({metric:e})=>{e.entries[e.entries.length-1]&&(iT.ttfb={value:e.value,unit:"millisecond"})}),o=n7("paint",({entries:e})=>{let t=nD();for(let r of e){let e=r.startTime<t.firstHiddenTime;"first-paint"===r.name&&e&&(iT.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&e&&(iT.fcp={value:r.startTime,unit:"millisecond"})}});return()=>{a(),o(),i?.(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:a,recordLcpStandaloneSpans:o,client:r}),u=new WeakSet;r.on("afterStartPageLoadSpan",e=>{u.add(e)}),r.on("spanEnd",e=>{u.delete(e)&&(l(),function(e,t){let r=(0,eb.browserPerformanceTimeOrigin)();if(!ip()?.getEntries||!r)return ib();let{spanStreamingEnabled:n,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:s}=t,a=ih(r);if("pageload"===(0,en.spanToJSON)(e).op){if(function(e){let t=nM(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(iT),n){let t=(t,r,n)=>{let i=n??`browser.web_vital.${t}.value`;e.setAttribute(i,r)};["ttfb","fp","fcp"].forEach(e=>{iT[e]&&t(e,iT[e].value)}),iT["ttfb.requestTime"]&&t("ttfb.requestTime",iT["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var o,l;i||delete iT.cls,s||delete iT.lcp,Object.entries(iT).forEach(([t,r])=>{(0,nC.setMeasurement)(t,r.value,r.unit,e)}),o=e,l=t,d&&l.recordLcpOnPageloadSpan&&(d.element&&o.setAttribute("lcp.element",r_(d.element)),d.id&&o.setAttribute("lcp.id",d.id),d.url&&o.setAttribute("lcp.url",d.url.trim().slice(0,200)),null!=d.loadTime&&o.setAttribute("lcp.loadTime",d.loadTime),null!=d.renderTime&&o.setAttribute("lcp.renderTime",d.renderTime),o.setAttribute("lcp.size",d.size)),p?.sources&&l.recordClsOnPageloadSpan&&p.sources.forEach((e,t)=>o.setAttribute(`cls.source.${t+1}`,r_(e.node)))}e.setAttribute(n?"browser.performance.time_origin":"performance.timeOrigin",a),e.setAttribute(n?"browser.performance.navigation.activation_start":"performance.activationStart",nO())}ib()}(e,{recordClsOnPageloadSpan:!1===a,recordLcpOnPageloadSpan:!1===o,spanStreamingEnabled:n}))}),n?(t.has("lcp")||function(e){let t,r=0;if(!ig("largest-contentful-paint"))return;let n=n6(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&iy(e.value)&&(r=e.value,t=n)},!0);i_(e,(e,i,s)=>{(function(e,t,r,n){if(!iy(e))return;let i=(0,eb.browserPerformanceTimeOrigin)()||0,s=ih(i),a=ih(i+(t?.startTime||0)),o=t?r_(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=r_(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),ix({name:o,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:r,reportEvent:n,startTime:s,endTime:a})})(r,t,s,e),n()})}(r),t.has("cls")||function(e){let t,r=0;if(!ig("layout-shift"))return;let n=n5(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);i_(e,(e,i,s)=>{var a,o,l,u;let c,d,p;a=r,o=t,l=s,u=e,c=o?ih(((0,eb.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,eb.timestampInSeconds)(),d=o?r_(o.sources[0]?.node):"Layout shift",p={},o?.sources&&o.sources.forEach((e,t)=>{p[`browser.web_vital.cls.source.${t+1}`]=r_(e.node)}),ix({name:d,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:a,attributes:p,parentSpan:l,reportEvent:u,startTime:c}),n()})}(r),!t.has("inp")&&ip()&&(0,eb.browserPerformanceTimeOrigin)()&&n8(({metric:e})=>{var t,r,n;let i,s,a,o,l,u,c,d;if(null==e.value||ih(e.value)>60)return;let p=e.entries.find(t=>t.duration===e.value&&ik[t.name]);p&&(t=e.value,r=p,i=ih((0,eb.browserPerformanceTimeOrigin)()+r.startTime),s=ih(t),a=ik[r.name],o=null!=(n=r.interactionId)?iM.get(n):void 0,u=(l=(0,en.getActiveSpan)())?(0,en.getRootSpan)(l):void 0,d=(c=o?.span||u)?(0,en.spanToStreamedSpanJSON)(c).name:(0,U.getCurrentScope)().getScopeData().transactionName,ix({name:o?.elementName||r_
13(r.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[er.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration,[t4]:d,[t5]:d},startTime:i,endTime:i+s,parentSpan:c}))})):t.has("inp")||function(){if(ip()&&(0,eb.browserPerformanceTimeOrigin)()){let e=n8(iL);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(ik);function t(e){let t=e.target;if(!t)return;let r=r_(t),n=Math.round(e.timeStamp);if(iO.set(n,r),iO.size>50){let e=iO.keys().next().value;void 0!==e&&iO.delete(e)}}eM()&&e.forEach(e=>{ra.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,en.getActiveSpan)(),r=t&&(0,en.getRootSpan)(t);e.forEach(e=>{if(!il(e))return;let t=e.interactionId;if(null==t||iM.has(t))return;let n=e.target?r_(e.target):function(e){let t=Math.round(e.startTime),r=iO.get(t);if(!r)for(let e=-5;e<=5;e++){let n=iO.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(iA.length>10){let e=iA.shift();iM.delete(e)}iA.push(t),iM.set(t,{span:r,elementName:n})})};n7("event",r),n7("first-input",r)}()}}});e.s(["WEB_VITALS_INTEGRATION_NAME",0,iD,"webVitalsIntegration",0,iP],793572);let iU="sentry_previous_trace";function iB(e){return 1===e.traceFlags}var iF=e.i(29274),i$=e.i(850610);function ij(e={}){let t=e.client||(0,U.getClient)();if(!(0,P.isEnabled)()||!t)return{};let r=(0,eS.getMainCarrier)(),n=(0,i$.getAsyncContextStrategy)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,U.getCurrentScope)(),s=e.span||(0,en.getActiveSpan)(),a=(0,ny.spanIsNonRecordingSpan)(s)&&!(0,n_.hasSpansEnabled)(t.getOptions());if(!s&&(0,U.hasExternalPropagationContext)())return{};let o=s&&!a?(0,en.spanToTraceHeader)(s):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,nN.generateSentryTraceHeader)(t,n,r)}(i),l=s?(0,ew.getDynamicSamplingContextFromSpan)(s):(0,ew.getDynamicSamplingContextFromScope)(t,i),u=(0,iF.dynamicSamplingContextToSentryBaggageHeader)(l);if(!nN.TRACEPARENT_REGEXP.test(o))return k.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":o,baggage:u};return e.propagateTraceparent&&(c.traceparent=s&&!a?(0,en.spanToTraceparentHeader)(s):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,nN.generateTraceparentHeader)(t,n,r)}(i)),c}function iW(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(iF.SENTRY_BAGGAGE_KEY_PREFIX))}function iG(e,t,r,n){let i={url:rs(e),type:"fetch","http.method":r,[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(re(t)||(i[t0]=rs(t.href),i[t8]=rs(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}e.s(["getTraceData",0,ij],817908);let iz=Symbol.for("sentry__originalRequestBody");function iH(e){return new URLSearchParams(e).toString()}function iq(e,t=k.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iH(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function iY(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][iz];if(void 0!==t)return t}}function iJ(e){let t;try{t=e.getAllResponseHeaders()}catch(e){return{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function iV(e){try{return new URL(e,tR.location.origin).href}catch{return}}function iK(e){try{return new Headers(e)}catch{return}}e.s(["getBodyString",0,iq,"getFetchRequestArgBody",0,iY,"parseXhrResponseHeaders",0,iJ,"serializeFormData",0,iH],683639);let iX={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iQ(e,t){let{traceFetch:r,traceXHR:n,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:o,onRequestSpanEnd:l}={...iX,...t},u="function"==typeof i?i:e=>!0,c=e=>(function(e,t){let r=tb();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let s=n.origin===i;return t?(0,Y.stringMatchesSomePattern)(n.toString(),t)||s&&(0,Y.stringMatchesSomePattern)(n.pathname,t):s}{let r=!!e.match(/^\/(?!\/)/);return t?(0,Y.stringMatchesSomePattern)(e,t):r}})(e,a),d={},p=e.getOptions().propagateTraceparent;r&&tz(t=>{let r=function(e,t,r,n,i){if(!e.fetchData)return;let{method:s,url:a}=e.fetchData,o=(0,n_.hasSpansEnabled)()&&t(a);if(e.endTimestamp){var l,u,c;let t,r=e.fetchData.__span;if(!r)return;let s=n[r];s&&(o&&(function(e,t){if(t.response){(0,nE.setHttpStatus)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:nE.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(s,e),l=s,u=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete n[r]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof i?i:{spanOrigin:i},h=(0,U.getClient)(),f=!!(0,en.getActiveSpan)(),m=f||!!h&&(0,eW.hasSpanStreamingEnabled)(h),g=o&&m?(0,nv.startInactiveSpan)(function(e,t,r){if(e.startsWith("data:")){let n=rs(e);return{name:`${t} ${n}`,attributes:iG(e,void 0,t,r)}}let n=rt(e),i=n?rr(n):e;return{name:`${t} ${i}`,attributes:iG(e,n,t,r)}}(a,s,d)):new ny.SentryNonRecordingSpan,_=(0,nv.spanIsIgnored)(g)&&f?void 0:g;if(o&&!m&&h?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=g.spanContext().spanId,n[g.spanContext().spanId]=g,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var i,s;let a=ij({span:r,propagateTraceparent:n}),o=a["sentry-trace"],l=a.baggage,u=a.traceparent;if(!o)return;let c=t.headers||((0,eE.isRequest)(e)?e.headers:void 0);if(!c)return{"sentry-trace":o,...l&&{baggage:l},...u&&{traceparent:u}};if(i=c,"u">typeof Headers&&(0,eE.isInstanceOf)(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?iW(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(s=c)&&s.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&iW(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],s=r&&(Array.isArray(r)?r.find(e=>iW(e)):iW(r));l&&!s&&i.push(l);let a=Object.assign({},c,{"sentry-trace":e??o,...i.length>0&&{baggage:i.join(",")}});return n&&u&&!t&&(a.traceparent=u),a}}(t,r,(0,n_.hasSpansEnabled)()&&m?_:void 0,p);n&&(e.args[1]=r,r.headers=n)}if(h){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};h.emit("beforeOutgoingRequestSpan",g,t)}return g}(t,u,c,d,{propagateTraceparent:p,onRequestSpanEnd:l});if(r){let n=iV(t.fetchData.url),i=n?rn(n).host:void 0,a=n?rs(n):void 0;r.setAttributes({[t0]:a,[t8]:a,"server.address":i}),s&&iZ(r,e),o?.(r,{headers:t.headers})}}),n&&rd(t=>{let r=function(e,t,r,n,i,s){let a=e.xhr,o=a?.[rc];if(!a||a.__sentry_own_request__||!o)return;let{url:l,method:u}=o,c=(0,n_.hasSpansEnabled)()&&t(l);if(e.endTimestamp){let t=a.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==o.status_code&&((0,nE.setHttpStatus)(r,o.status_code),r.end(),s?.(r,{headers:iK(iJ(a)),error:e.error})),delete n[t]);return}let d=iV(l),p=d?rn(d):rn(l),h=d?rs(d):void 0,f=rs(ri(l)),m=(0,U.getClient)(),g=!!(0,en.getActiveSpan)(),_=g||!!m&&(0,eW.hasSpanStreamingEnabled)(m),y=c&&_?(0,nv.startInactiveSpan)({name:`${u} ${f}`,attributes:{url:rs(l),type:"xhr","http.method":u,"http.url":h,[t8]:h,"server.address":p?.host,[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new ny.SentryNonRecordingSpan,S=(0,nv.spanIsIgnored)(y)&&g?void 0:y;return c&&!_&&m?.recordDroppedEvent("no_parent_span","span"),a.__sentry_xhr_span_id__=y.spanContext().spanId,n[a.__sentry_xhr_span_id__]=y,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:s}=ij({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,s)}(a,(0,n_.hasSpansEnabled)()&&_?S:void 0,i),m&&m.emit("beforeOutgoingRequestSpan",y,e),y}(t,u,c,d,p,l);r&&(s&&iZ(r,e),o?.(r,{headers:iK(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function iZ(e,t){let{url:r}=(0,en.spanToJSON)(e).data;if(!r||"string"!=typeof r)return;let n=()=>void setTimeout(i);if((0,eW.hasSpanStreamingEnabled)(t)){let t=e.end.bind(e);e.end=e=>{let r=e??(0,eb.timestampInSeconds)(),s=!1,a=()=>{s||(s=!0,setTimeout(i),t(r),clearTimeout(o))};n=a;let o=setTimeout(a,300)}}let i=n7("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(r)&&(e.setAttributes(iE(t)),n())})})}e.s(["defaultRequestInstrumentationOptions",0,iX,"instrumentOutgoingRequests",0,iQ],507869);let i0=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function i1(){let e=tR.navigator;return!!e?.userAgent&&i0.test(e.userAgent)}let i2={...nT,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
13dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...iX},i3=(e={})=>{let t,r;"enableElementTiming"in e&&(0,k.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let n={name:void 0,source:void 0},i=tR.document,{enableInp:s,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:d,idleTimeout:p,finalTimeout:h,childSpanTimeout:f,markBackgroundSpan:m,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:S,enableHTTPTimings:E,ignoreResourceSpans:v,ignorePerformanceApiSpans:T,instrumentPageLoad:b,instrumentNavigation:I,detectRedirects:R,linkPreviousTrace:w,consistentTraceSampling:N,enableReportPageLoaded:C,onRequestSpanStart:A,onRequestSpanEnd:M}={...i2,...e},O=i1();function x(e,t,s=!0,a){let o="pageload"===t.op,l=t.name,u=d?d(t):t,c=rt(a||tb()),m={...c?.pathname&&{[t7]:c.pathname},...c&&!re(c)&&{[t8]:c.href},...u.attributes};if(l!==u.name&&(m[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),u.attributes=m,!s){let e=(0,eb.dateTimestampInSeconds)();(0,nv.startInactiveSpan)({...u,startTime:e}).end(e);return}n.name=u.name,n.source=m[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let g=nb(u,{idleTimeout:p,finalTimeout:h,childSpanTimeout:f,disableAutoFinish:o,beforeSpanEnd:t=>{!function(e,t){let r=ip(),n=(0,eb.browserPerformanceTimeOrigin)();if(!r?.getEntries||!n)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:s,ignoreResourceSpans:a}=t,o=ih(n),l=r.getEntries(),{op:u,start_timestamp:c}=(0,en.spanToJSON)(e);l.slice(iv).forEach(t=>{let r=ih(t.startTime),n=ih(Math.max(0,t.duration));if("navigation"!==u||!c||!(o+r<c))switch(t.entryType){case"navigation":var i,l,d,p,h,f;let m,g,_;i=e,l=t,d=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{iI(i,l,e,d)}),iI(i,l,"secureConnection",d,"TLS/SSL"),iI(i,l,"fetch",d,"cache"),iI(i,l,"domainLookup",d,"DNS"),p=i,h=l,m=(f=d)+ih(h.requestStart),g=f+ih(h.responseEnd),_=f+ih(h.responseStart),h.responseEnd&&(ic(p,m,g,{op:"browser.request",name:h.name,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),ic(p,_,g,{op:"browser.response",name:h.name,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,r,n,i,s){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,Y.stringMatchesSomePattern)(t.name,s))return;let a=nM(!1),o=i+Math.max(r,ih(a?a.requestStart:0)),l=i+r,u=l+n,c={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};o!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=o),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,eE.isPrimitive)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,eE.isPrimitive)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),o<=u&&ic(e,o,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,r,n,o,s);break;case"resource":!function(e,t,r,n,i,s,a){var o,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(u))return;let c={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=rn(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(ra.location.origin),c[t8]=r,o=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEac
13h(([e,t])=>{let r=o[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...c,...iE(t)},h=s+n;ic(e,h,h+i,{name:r.replace(ra.location.origin,""),op:u,attributes:p})}(e,t,t.name,r,n,o,a)}}),iv=Math.max(l.length-1,0),function(e,t){let r=ra.navigator;if(!r)return;let n=r.connection;n&&(n.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute(t?"network.connection.type":"connectionType",n.type),iu(n.rtt)&&(t?e.setAttribute("network.connection.rtt",n.rtt):"pageload"===(0,en.spanToJSON)(e).op&&(0,nC.setMeasurement)("connection.rtt",n.rtt,"millisecond"))),iu(r.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",r.deviceMemory):e.setAttribute("deviceMemory",`${r.deviceMemory} GB`)),iu(r.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",r.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(r.hardwareConcurrency)))}(e,i)}(t,{ignoreResourceSpans:v,ignorePerformanceApiSpans:T,spanStreamingEnabled:(0,eW.hasSpanStreamingEnabled)(e)}),i9(e,void 0);let n=(0,U.getCurrentScope)(),i=n.getPropagationContext();n.setPropagationContext({...i,traceId:g.spanContext().traceId,sampled:(0,en.spanIsSampled)(g),dsc:(0,ew.getDynamicSamplingContextFromSpan)(t)}),o&&(r=void 0)},trimIdleSpanEndTimestamp:!C});function _(){i&&["interactive","complete"].includes(i.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),i.removeEventListener("readystatechange",_))}o&&C&&(r=g),i9(e,g),o&&!C&&i&&(i.addEventListener("readystatechange",_),_())}return{name:"BrowserTracing",setup(e){if(!O){if(nR(),o&&L.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,en.getActiveSpan)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=ih((0,eb.browserPerformanceTimeOrigin)()+r.startTime),{start_timestamp:n,op:i}=(0,en.spanToJSON)(t);if("navigation"===i&&n&&e<n)continue;let s=ih(r.duration),a={[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:o,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];a["browser.script.invoker"]=o,a["browser.script.invoker_type"]=l,u&&(a["code.filepath"]=u),c&&(a["code.function"]=c),-1!==d&&(a["browser.script.source_char_position"]=d),ic(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}}).observe({type:"long-animation-frame",buffered:!0}):a&&n7("longtask",({entries:e})=>{let t=(0,en.getActiveSpan)();if(!t)return;let{op:r,start_timestamp:n}=(0,en.spanToJSON)(t);for(let i of e){let e=ih((0,eb.browserPerformanceTimeOrigin)()+i.startTime),s=ih(i.duration);"navigation"===r&&n&&e<n||ic(t,e,e+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),l&&n7("event",({entries:e})=>{let t=(0,en.getActiveSpan)();
13if(t){for(let r of e)if("click"===r.name){let e=ih((0,eb.browserPerformanceTimeOrigin)()+r.startTime),n=ih(r.duration),i={name:r_(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},s=tI(r.target);s&&(i.attributes["ui.component_name"]=s),ic(t,e,e+n,i)}}}),R&&i){let e=()=>{t=(0,eb.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(r,i)=>{if((0,U.getClient)()!==e)return;if(i?.isRedirect)return void x(e,{op:"navigation.redirect",...r},!1,i.url);t=void 0,n(),(0,U.getIsolationScope)().setPropagationContext({traceId:(0,nw.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,n_.hasSpansEnabled)()?void 0:(0,nw.generateSpanId)()});let s=(0,U.getCurrentScope)();s.setPropagationContext({traceId:(0,nw.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,n_.hasSpansEnabled)()?void 0:(0,nw.generateSpanId)()}),s.setSDKProcessingMetadata({normalizedRequest:void 0}),x(e,{op:"navigation",...r,parentSpan:null,forceTransaction:!0},!0,i?.url)}),e.on("startPageLoadSpan",(t,r={})=>{if((0,U.getClient)()!==e)return;n();let i=r.sentryTrace||i4("sentry-trace")||i8("sentry-trace"),s=r.baggage||i4("baggage")||i8("baggage"),a=(0,nN.propagationContextFromHeaders)(i,s),o=(0,U.getCurrentScope)();o.setPropagationContext(a),(0,n_.hasSpansEnabled)()||(o.getPropagationContext().propagationSpanId=(0,nw.generateSpanId)()),o.setSDKProcessingMetadata({normalizedRequest:tA()}),x(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{C&&r&&(r.setAttribute(er.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),r.end())})}function n(){let t=e[i7];t&&!(0,en.spanToJSON)(t).timestamp&&(t.setAttribute(er.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}},afterAllSetup(e){var r,i,a,o,d;let v;if(O)return;e.addIntegration&&!e.getIntegrationByName?.(iD)&&e.addIntegration(iP({ignore:s?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let T=tb();if("off"!==w&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=tR.sessionStorage?.getItem(iU);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,en.getRootSpan)(e)!==e)return;let t=(0,U.getCurrentScope)().getPropagationContext();i=function(e,t,r){let n=(0,en.spanToJSON)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{let e=Number(n.data?.[er.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??r.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let s=e.spanContext;return s.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:s,attributes:{[er.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${s.traceId}-${s.spanId}-${+!!iB(s)}`)),i)}(i,e,t),n&&function(e){try{tR.sessionStorage.setItem(iU,JSON.stringify(e))}catch(e){}}(i)});let s=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,U.getCurrentScope)(),r=t.getPropagationContext();if(s&&r.parentSpanId){s=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(iB(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=iB(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[er.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:i.sampleRate}})}(e,{linkPreviousTrace:w,consistentTraceSampling:N}),tR.location){if(b){let t=(0,eb.browserPerformanceTimeOrigin)();i5(e,{name:tR.location.pathname,startTime:t?t/1e3:void 0,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}I&&rh(({to:r,from:n})=>{var i,s;let a,o;if(void 0===n&&T?.indexOf(r)!==-1){T=void 0;return}T=void 0;let l=rt(r),u=e[i7],c=u&&R&&(i=u,s=t,a=(0,en.spanToJSON)(i),!((o=(0,eb.dateTimestampInSeconds)())-a.start_timestamp>1.5)&&(!s||!(o-s<=1.5)));i6(e,{name:l?.pathname||tR.location.pathname,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:r,isRedirect:c}
13)})}m&&tR.document&&tR.document.addEventListener("visibilitychange",()=>{let e=(0,en.getActiveSpan)();if(!e)return;let t=(0,en.getRootSpan)(e);if(tR.document.hidden&&t){let{op:e,status:r}=(0,en.spanToJSON)(t);r||t.setStatus({code:nE.SPAN_STATUS_ERROR,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),l&&(r=e,i=p,a=h,o=f,d=n,tR.document&&addEventListener("click",()=>{let e=function(e){return e[i7]}(r);e&&["navigation","pageload"].includes((0,en.spanToJSON)(e).op)||(v&&(v.setAttribute(er.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),v.end(),v=void 0),d.name&&(v=nb({name:d.name,op:"ui.action.click",attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d.source||"url"}},{idleTimeout:i,finalTimeout:a,childSpanTimeout:o})))},{capture:!0})),iQ(e,{traceFetch:g,traceXHR:_,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:E,onRequestSpanStart:A,onRequestSpanEnd:M}),y&&e.addIntegration(iC())}}};function i5(e,t,r){e.emit("startPageLoadSpan",t,r),(0,U.getCurrentScope)().setTransactionName(t.name);let n=e[i7];return n&&e.emit("afterStartPageLoadSpan",n),n}function i6(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:n}),e.emit("startNavigationSpan",t,{isRedirect:i,url:n});let s=(0,U.getCurrentScope)();return s.setTransactionName(t.name),n&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...tA(),url:n}}),e[i7]}function i4(e){let t=tR.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function i8(e){let t=tR.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let i7="_sentry_idleSpan";function i9(e,t){(0,Z.addNonEnumerableProperty)(e,i7,t)}function se(e){try{return new URL(e,ra.location.origin).toString()}catch{return e}}e.s(["browserTracingIntegration",0,i3,"isBotUserAgent",0,i1,"startBrowserTracingNavigationSpan",0,i6,"startBrowserTracingPageLoadSpan",0,i5],531600),e.s(["getAbsoluteUrl",0,se],273409);let st=L.GLOBAL_OBJ,sr=null,sn=new Map,si=new Map;function ss(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function sa(e){if(sn.has(e))return sn.get(e)??null;try{let t=new RegExp(e);return sn.set(e,t),t}catch(t){return nm.DEBUG_BUILD&&k.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function so(){if(!st?._sentryRouteManifest||"string"!=typeof st._sentryRouteManifest)return null;let e=st._sentryRouteManifest;if(sr&&S===e)return sr;sn.clear(),si.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return sr=t,S=e,t}catch{return nm.DEBUG_BUILD&&k.debug.warn("Could not extract route manifest"),null}}let sl=e=>{let t=so();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(si.has(r))return si.get(r);let{staticRoutes:n,dynamicRoutes:i}=t;if(!Array.isArray(n)||!Array.isArray(i))return;let s=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=sa(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=sa(t.regex);i?.test(r)&&n.push(t.path)}}return n})(r,n,i).sort((e,t)=>ss(e)-ss(t))[0];return si.set(r,s),s};function su(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function sc(e,t,r){e.setAttributes({[t7]:t,[t8]:se(r)})}let sd="incomplete-app-router-transaction",sp="router-patch",sh={current:void 0};function sf(e){let t=su(tR.location.pathname),r=sl(t),n=(0,eb.browserPerformanceTimeOrigin)();i5(e,{name:r??t,startTime:n?n/1e3:void 0,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url",...r&&{[t9]:r}}})}let sm=L.GLOBAL_OBJ,sg=L.GLOBAL_OBJ;function s_(e){E=(t,r)=>{let n=O.default.env._sentryBasePath??sg._sentryBasePath,i=n&&!t.startsWith(n)?`${n}${t}`:t,s=su(new URL(i,tR.location.href).pathname),a=sl(s),o=a??s;"router-patch"===sp&&(sp="transition-start-hook");let l=sh.current;l?(l.updateName(o),l.setAttributes({"navigation.type":`router.${r}`,[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url",...a&&{[t9]:a}}),sc(l,s,i),sh.current=void 0):i6(e,{name:o,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url","navigation.type":`router.${r}`,...a&&{[t9]:a}}},{url:se(i)})},tR.addEventListener("popstate",()=>{let t=su(tR.location.pathname),r=sl(t);sh.current?.isRecording()?(sh.current.updateName(r??t),sh.current.setAttribute(er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,r?"route":"url"),r&&sh.current.setAttribute(t9,r),sc(sh.current,t,tR.location.href)):sh.current=i6(e,{name:r??t,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url","navigation.type":"browser.popstate",...r&&{[t9]:r}}},{url:se(t)})});let t=!1,r=0,n=setInterval(()=>{r++;let i=sm?.next?.router??sm?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,sE(e,i,sh),["nd","next"].forEach(t=>{let r=sm[t];r&&(sm[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&sE(e,n,sh),t[r]=n,!0)}))}))},20)}function sy(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let sS=new WeakSet;function sE(e,t,r){sS.has(t)||(sS.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,s){if("router-patch"!==sp)return t.apply(i,s);let a=sd,o={[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=s[0],u=O.default.env._sentryBasePath??sg._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(a=su(sy(c)),o["navigation.type"]="router.push"):"replace"===n?(a=su(sy(c)),o["navigation.type"]="router.replace"):"back"===n?o["navigation.type"]="router.back":"forward"===n&&(o["navigation.type"]="router.forward");let d=sl(a),p="back"===n||"forward"===n?void 0:se(c);return r.current=i6(e,{name:d??a,attributes:{...o,[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url",...d&&{[t9]:d}}},p?{url:p}:void 0),t.apply(i,s)}}))}))}e.s(["INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME",0,sd,"appRouterInstrumentNavigation",0,s_,"appRouterInstrumentPageLoad",0,sf,"captureRouterTransitionStart",0,function(e,t){E&&E(e,t)}],509263);var sv=e.i(793049);let sT=sv.default.events?sv.default:sv.default.default;
13function sb(e={}){let t=i3({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){!i1()&&(n&&function(e){if(tR.document.getElementById("__NEXT_DATA__"))sT.events.on("routeChangeStart",t=>{let r,n,i=ri(t),s=function(e){let t=tR.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,i,s=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),i=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${n}(?:/)?$`));return e.match(s)})}(i);s?(r=s,n="route"):(r=i,n="url"),i6(e,{name:r,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[t9]:r}}},{url:se(t)})});else s_(e)}(e),t.afterAllSetup(e),r&&(tR.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=tR.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{nm.DEBUG_BUILD&&k.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:s}=e;return r.route=n,r.params=i,s?.pageProps&&(r.sentryTrace=s.pageProps._sentryTraceData,r.baggage=s.pageProps._sentryBaggage),r}(),s=(0,iF.parseBaggageHeader)(i),a=t||tR.location.pathname;s?.["sentry-transaction"]&&"/_error"===a&&(a=(a=s["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let o=(0,eb.browserPerformanceTimeOrigin)();i5(e,{name:a,startTime:o?o/1e3:void 0,attributes:{[er.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[er.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...t&&{[t9]:t},...r&&{...r}}},{sentryTrace:n,baggage:i})}(e):sf(e)))}}}e.s(["browserTracingIntegration",0,sb],536656);let sI=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function sR(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function sw(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let sN=z((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in L.GLOBAL_OBJ&&!!L.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),s=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||s){let e,s,a=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?function(e,t){e=sR(e).slice(1),t=sR(t).slice(1);let r=sw(e.split("/")),n=sw(t.split("/")),i=Math.min(r.length,n.length),s=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){s=e;break}let a=[];for(let e=s;e<r.length;e++)a.push("..");return(a=a.concat(n.slice(s))).join("/")}(t,a):(e=a.length>1024?`<truncated>${a.slice(-1024)}`:a,(s=sI.exec(e))?s.slice(1):[])[2]||"";n.filename=`${r}${o}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}});e.s(["rewriteFramesIntegration",0,sN],606255);let sC=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,sA=z(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...sN({iteratee:i=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)):i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(sC)&&(i.in_app=!1),i}}),name:"NextjsClientStackFrameNormalization"})),sM=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100);L.GLOBAL_OBJ;let sO=!1,sk=L.GLOBAL_OBJ;function sL(e,t){var r,n,i,s,a,o;let l,u=t?.getDsn(),c=t?.getOptions().tunnel;return r=e,n=u,!(!(l=rt(r))||re(l))&&!!n&&(i=l.hostname,i===(s=n.host)||s.length>0&&i.endsWith(`.${s}`))&&/(^|&|\?)sentry_key=/.test(l.search)||(a=e,!!(o=c)&&sx(a)===sx(o))}function sx(e){return"/"===e[e.length-1]?e.slice(0,-1):e}e.s(["init",0,function(e){let t,r,n,i,s,a;sO&&(0,k.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),sO=!0,!nm.DEBUG_BUILD&&e.debug&&(0,k.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){tR.document&&function(e){let t=sl(e)||e,r=sM.get(t);if(void 0!==r)return r;let n=so();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return sM.set(t,!1),!1;let i=n.isrRoutes.includes(t);return sM.set(t,i),i}(tR.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tR.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let o={environment:e.environment||O.default.env.SENTRY_ENVIRONMENT||(t="production",`vercel-${t}`)||"production",defaultIntegrations:(r=nc(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&r.push(sb()),n=sk._sentryRewriteFramesAssetPrefixPath||"",i=O.default.env._sentryAssetPrefix||sk._sentryAssetPrefix,s=O.default.env._sentryBasePath||sk._sentryBasePath,a="true"===O.default.env._experimentalThirdPartyOriginStackFrames||"true"===sk._experimentalThirdPartyOriginStackFrames,r.push(sA({assetPrefix:i,basePath:s,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:a})),r),release:"d9225a2749a90b1960d3d1da69e98b895077006c",...e};!function(e){let t="/monitoring";if(t&&e.dsn){let r=(0,eh.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],s=n[2],a=`${t}?o=${i}&p=${r.projectId}`;s&&(a+=`&r=${s}`),e.tunnel=a,nm.DEBUG_BUILD&&k.debug.log(`Tunneling events to "${a}"`)}else nm.DEBUG_BUILD&&k.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(o),D(o,"nextjs",["nextjs","react"]),o.ignoreSpans=[...o.ignoreSpans||[],/^\/404$/,RegExp(`^${sd}$`)];let l=nh(o),u=(e,t)=>
13ng(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;u.id="NextRedirectErrorFilter",(0,P.addEventProcessor)(u);try{(0,U.getGlobalScope)().setTag("turbopack",!0)}catch{}return l},"withSentryConfig",0,function(e){return e}],350577),e.s(["isSentryRequestUrl",0,sL],638422);let sD=L.GLOBAL_OBJ,sP="sentryReplaySession",sU="Unable to send Replay";var sB=Object.defineProperty,sF=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?sB(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},s$=((T=s$||{})[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment",T);function sj(e){let t=e?.host;return t?.shadowRoot===e}function sW(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function sG(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,sz).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function sz(e){let t;if("styleSheet"in e)try{t=sG(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],s=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${s?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class sH{constructor(){sF(this,"idNodeMap",new Map),sF(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function sq({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}
13function sY({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function sJ(e){return e.toLowerCase()}function sV(e){return e.toUpperCase()}let sK="__rrweb_original__";function sX(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?sJ(t):null}function sQ(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function sZ(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let s0={};function s1(e){let t=s0[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return s0[e]=n.bind(window)}function s2(...e){return s1("setTimeout")(...e)}function s3(...e){return s1("clearTimeout")(...e)}function s5(e){try{return e.contentDocument}catch{}}let s6=1,s4=RegExp("[^a-z0-9-_:]");function s8(){return s6++}let s7=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,s9=/^(?:[a-z+]+:)?\/\//i,ae=/^www\..*/i,at=/^(data:)([^,]*),(.*)/i;function ar(e,t){return(e||"").replace(s7,(e,r,n,i,s,a)=>{let o=n||s||a,l=r||i||"";if(!o)return e;if(s9.test(o)||ae.test(o)||at.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let u=t.split("/"),c=o.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let an=/^[^ \t\n\r\u000c]+/,ai=/^[, \t\n\r\u000c]+/,as=new WeakMap;function aa(e,t){return t&&""!==t.trim()?ao(e,t):t}function ao(e,t){let r=as.get(e);if(r||(r=e.createElement("a"),as.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function al(e,t,r,n,i,s,a){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return aa(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return aa(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(ai),!(r>=t.length);){let s=n(an);if(","===s.slice(-1))s=aa(e,s.substring(0,s.length-1)),i.push(s);else{let n="";s=aa(e,s);let a=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((s+n).trim());break}if(a)")"===e&&(a=!1);else if(","===e){r+=1,i.push((s+n).trim());break}else"("===e&&(a=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=ar(n,ao(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}else if("object"===t&&"data"===r)return aa(e,n);return"function"==typeof s?s(r,n,i):n}function au(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ac(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:ac(e.parentNode,t,r,n+1)}function ad(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function ap(e,t,r,n,i,s){try{let a=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===a)return!1;if("INPUT"===a.tagName){let e=a.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(s){if((l=ac(a,ad(n,i)))<0)return!0;o=ac(a,ad(t,r),l>=0?l:1/0)}else{if((o=ac(a,ad(t,r)))<0)return!1;l=ac(a,ad(n,i),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!s}catch(e){}return!!s}function ah(e){return null==e?"":e.toLowerCase()}function af(e,t){let r,{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:v,dataURLOptions:T={},inlineImages:b=!1,recordCanvas:I=!1,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:N=5e3,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:M=5e3,keepIframeSrcFn:O=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:L}=t,{preserveWhiteSpace:x=!0}=t,D=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:s,unblockSelector:a,maskAllText:o,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:S={}
13,inlineImages:E,recordCanvas:v,keepIframeSrcFn:T,newlyAddedElement:b=!1,ignoreCSSAttributes:I}=t,R=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:s$.Document,childNodes:[],compatMode:e.compatMode};return{type:s$.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:s$.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:R};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskTextClass:S,unmaskTextClass:E,maskTextSelector:v,unmaskTextSelector:T,ignoreCSSAttributes:b}=t,I=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,s,a),R=function(e){if(e instanceof HTMLFormElement)return"form";let t=sJ(e.tagName);return s4.test(t)?"div":t}(e),w={},N=e.attributes.length;for(let t=0;t<N;t++){let r=e.attributes[t];r.name&&!au(R,r.name,r.value)&&(w[r.name]=al(n,R,sJ(r.name),r.value,e,u,b))}if("link"===R&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=sG(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=ar(r,t.href))}if("style"===R&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=sG(e.sheet);t&&(w._cssText=ar(t,ao(n)))}if("input"===R||"textarea"===R||"select"===R||"option"===R){let t=sX(e),r=sQ(e,sV(R),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=ap(e,S,v,E,T,sq({type:t,tagName:sV(R),maskInputOptions:l}));w.value=sY({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(w.checked=n)}if("option"===R&&(e.selected&&!l.select?w.selected=!0:delete w.selected),"canvas"===R&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((sK in i?i[sK]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(w.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(w.rr_dataURL=t)}}if("img"===R&&p){h||(f=(h=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{h.width=e.naturalWidth,h.height=e.naturalHeight,f.drawImage(e,0,0),w.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?w.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===R||"video"===R)&&(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),I){let{width:t,height:r}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==R||g(w.src)||(I||s5(e)||(w.rr_src=w.src),delete w.src);try{customElements.get(R)&&(r=!0)}catch(e){}return{type:s$.Element,tagName:R,attributes:w,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:s,unblockSelector:a,inlineStylesheet:m,maskAttributeFn:l,maskInputOptions:g,maskInputFn:y,dataURLOptions:S,inlineImages:E,recordCanvas:v,keepIframeSrcFn:T,newlyAddedElement:b,rootId:R,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:I});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:s,unmaskTextSelector:a,maskTextFn:o,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=sG(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=ar(p,ao(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let g=ap(e,n,s,i,a,r);return h||f||m||!p||!g||(p=o?o(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=sY({isMasked:ap(e,n,s,i,a,sq({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:s$.Text,textContent:p||"",isStyle:h,rootId:c}}(e,{doc:r,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:R});case e.CDATA_SECTION_NODE:return{type:s$.CDATA,textContent:"",rootId:R};case e.COMMENT_NODE:return{type:s$.Comment,textContent:e.textContent||"",rootId:R};default:return!1}}(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,dataURLOptions:T,inlineImages:b,recordCanvas:I,keepIframeSrcFn:O,newlyAddedElement:k,ignoreCSSAttributes:L});if(!D)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===s$.Comment)return!0;
13if(e.type===s$.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===sZ(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ah(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ah(e.attributes.name)||"icon"===ah(e.attributes.rel)||"apple-touch-icon"===ah(e.attributes.rel)||"shortcut icon"===ah(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ah(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ah(e.attributes.property).match(/^(og|twitter|fb):/)||ah(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ah(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ah(e.attributes.name)||"googlebot"===ah(e.attributes.name)||"bingbot"===ah(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ah(e.attributes.name)||"generator"===ah(e.attributes.name)||"framework"===ah(e.attributes.name)||"publisher"===ah(e.attributes.name)||"progid"===ah(e.attributes.name)||ah(e.attributes.property).match(/^article:/)||ah(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ah(e.attributes.name)||"yandex-verification"===ah(e.attributes.name)||"csrf-token"===ah(e.attributes.name)||"p:domain_verify"===ah(e.attributes.name)||"verify-v1"===ah(e.attributes.name)||"verification"===ah(e.attributes.name)||"shopify-checkout-api-token"===ah(e.attributes.name)))return!0}}return!1}(D,v)&&(x||D.type!==s$.Text||D.isStyle||D.textContent.trim().length)?s8():-2;let P=Object.assign(D,{id:r});if(i.add(e,P),-2===r)return null;R&&R(e);let U=!m;if(P.type===s$.Element){U=U&&!P.needBlock;let t=e.shadowRoot;t&&sW(t)&&(P.isShadowHost=!0)}if((P.type===s$.Document||P.type===s$.Element)&&U){v.headWhitespace&&P.type===s$.Element&&"head"===P.tagName&&(x=!1);let t={doc:n,mirror:i,blockClass:s,blockSelector:a,maskAllText:l,unblockSelector:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:v,dataURLOptions:T,inlineImages:b,recordCanvas:I,preserveWhiteSpace:x,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:N,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:O,ignoreCSSAttributes:L};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=af(r,t);e&&P.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=af(r,t);n&&(sW(e.shadowRoot)&&(n.isShadow=!0),P.childNodes.push(n))}}if(e.parentNode&&sj(e.parentNode)&&sW(e.parentNode)&&(P.isShadow=!0),P.type!==s$.Element||"iframe"!==P.tagName||P.needBlock||function(e,t,r){let n,i=function(e){try{return e.contentWindow}catch{}}(e);if(!i)return;let s=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=s2(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{s3(n),s=!0,t()});return}let a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return s2(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=s5(e);if(t&&w){let r=af(t,{doc:t,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:v,dataURLOptions:T,inlineImages:b,recordCanvas:I,preserveWhiteSpace:x,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:N,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:O,ignoreCSSAttributes:L});r&&w(e,r)}},N),P.type===s$.Element&&"img"===P.tagName&&!e.complete&&P.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,P,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return P.type===s$.Element&&"link"===P.tagName&&"string"==typeof P.attributes.rel&&("stylesheet"===P.attributes.rel||"preload"===P.attributes.rel&&"string"==typeof P.attributes.href&&"css"===sZ(P.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){n=null}if(n)return;let s=s2(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{s3(s),i=!0,t()})}(e,()=>{if(A){let t=af(e,{doc:n,mirror:i,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:v,dataURLOptions:T,inlineImages:b,recordCanvas:I,preserveWhiteSpace:x,onSerialize:R,onIframeLoad:w,iframeLoadTimeout:N,onStylesheetLoad:A,stylesheetLoadTimeout:M,keepIframeSrcFn:O,ignoreCSSAttributes:L});t&&A(e,t)}},M),P.type===s$.Element&&delete P.needBlock,P}function am(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let ag="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",a_={map:{},getId:()=>(console.error(ag),-1),getNode:()=>(console.error(ag),null),removeNodeFromMap(){console.error(ag)},has:()=>(console.error(ag),!1),reset(){console.error(ag)}};function ay(e,t,r={}){let n=null,i=0;return function(...s){let a=Date.now();i||!1!==r.leading||(i=a);let o=t-(a-i),l=this;o<=0||o>t?(n&&(function(...e){aD("clearTimeout")(...e)}
13(n),n=null),i=a,e.apply(l,s)):n||!1===r.trailing||(n=aP(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},o))}}function aS(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(a_=new Proxy(a_,{get:(e,t,r)=>("map"===t&&console.error(ag),Reflect.get(e,t,r))}));let aE=Date.now;function av(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function aT(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ab(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function aI(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function aR(e,t,r,n,i){if(!e)return!1;let s=aI(e);if(!s)return!1;let a=ad(t,r);if(!i){let e=n&&s.matches(n);return a(s)&&!e}let o=ac(s,a),l=-1;return!(o<0)&&(n&&(l=ac(s,ad(null,n))),o>-1&&l<0||o<l)}function aw(e,t){return -2===t.getId(e)}function aN(e){return!!e.changedTouches}function aC(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function aA(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function aM(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(aE=()=>new Date().getTime());class aO{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ak(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function aL(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=ak(r);)r=t;return r}(e);return t.contains(r)}(e))}let ax={};function aD(e){let t=ax[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return ax[e]=n.bind(window)}function aP(...e){return aD("setTimeout")(...e)}var aU=((b=aU||{})[b.DomContentLoaded=0]="DomContentLoaded",b[b.Load=1]="Load",b[b.FullSnapshot=2]="FullSnapshot",b[b.IncrementalSnapshot=3]="IncrementalSnapshot",b[b.Meta=4]="Meta",b[b.Custom=5]="Custom",b[b.Plugin=6]="Plugin",b),aB=((I=aB||{})[I.Mutation=0]="Mutation",I[I.MouseMove=1]="MouseMove",I[I.MouseInteraction=2]="MouseInteraction",I[I.Scroll=3]="Scroll",I[I.ViewportResize=4]="ViewportResize",I[I.Input=5]="Input",I[I.TouchMove=6]="TouchMove",I[I.MediaInteraction=7]="MediaInteraction",I[I.StyleSheetRule=8]="StyleSheetRule",I[I.CanvasMutation=9]="CanvasMutation",I[I.Font=10]="Font",I[I.Log=11]="Log",I[I.Drag=12]="Drag",I[I.StyleDeclaration=13]="StyleDeclaration",I[I.Selection=14]="Selection",I[I.AdoptedStyleSheet=15]="AdoptedStyleSheet",I[I.CustomElement=16]="CustomElement",I),aF=((R=aF||{})[R.MouseUp=0]="MouseUp",R[R.MouseDown=1]="MouseDown",R[R.Click=2]="Click",R[R.C
13ontextMenu=3]="ContextMenu",R[R.DblClick=4]="DblClick",R[R.Focus=5]="Focus",R[R.Blur=6]="Blur",R[R.TouchStart=7]="TouchStart",R[R.TouchMove_Departed=8]="TouchMove_Departed",R[R.TouchEnd=9]="TouchEnd",R[R.TouchCancel=10]="TouchCancel",R),a$=((w=a$||{})[w.Mouse=0]="Mouse",w[w.Pen=1]="Pen",w[w.Touch=2]="Touch",w),aj=((N=aj||{})[N.Play=0]="Play",N[N.Pause=1]="Pause",N[N.Seeked=2]="Seeked",N[N.VolumeChange=3]="VolumeChange",N[N.RateChange=4]="RateChange",N);let aW=e=>m?(...t)=>{try{return e(...t)}catch(e){if(m&&!0===m(e))return()=>{};throw e}}:e;for(var aG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",az="u"<typeof Uint8Array?[]:new Uint8Array(256),aH=0;aH<aG.length;aH++)az[aG.charCodeAt(aH)]=aH;class aq{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function aY(e){try{return e.contentDocument}catch(e){}}function aJ(e){try{return e.contentWindow}catch(e){}}class aV{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("u"<typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let r=t.cssRules[0];if(!r||r.type!==CSSRule.STYLE_RULE)return null;return r.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class aK{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let aX=(e,t)=>`${e}@${t}`;class aQ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new aK,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!aL(i))return;let s=sj(i.parentNode)?this.mirror.getId(ak(i)):this.mirror.getId(i.parentNode),a=n(i);if(-1===s||-1===a)return r.addNode(i);let o=af(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{aC(e,this.mirror)&&!aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),aA(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),aM(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let r=aJ(e);r&&this.canvasManager.addWindow(r),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});o&&(e.push({parentId:s,nextId:a,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!a0(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)a1(this.droppedSet,e)||a0(this.removes,e,this.mirror)?a1(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let s=null;for(;r.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),r=n(s.value);-1!==t&&-1!==r&&(e=s)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);
13if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}s=e.previous,r.removeNode(e.value),i(e.value)}let a={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(a.texts.length||a.attributes.length||a.removes.length||a.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!aw(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ap(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,aI(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=sX(t),i=t.tagName;n=sQ(t,i,r);let s=sq({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=sY({isMasked:ap(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:n,maskInputFn:this.maskInputFn})}if(aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(aY(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
13,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!au(t.tagName,r)&&(i.attributes[r]=al(this.doc,sJ(t.tagName),sJ(r),n,t,this.maskAttributeFn),"style"===r)){let r=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let n=t.style.getPropertyValue(e),s=t.style.getPropertyPriority(e);n!==(r?.getPropertyValue(e)||"")||s!==(r?.getPropertyPriority(e)||"")?""===s?i.styleDiff[e]=n:i.styleDiff[e]=[n,s]:i._unchangedStyles[e]=[n,s]}if(r)for(let e of Array.from(r))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=sj(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);aR(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||aw(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(aZ(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(sj(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[aX(r,n)]?aZ(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(sj(e.target)&&sW(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(aw(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[aX(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!aR(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),aM(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new aV(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function aZ(e,t){e.delete(t),t.childNodes?.forEach(t=>aZ(e,t))}function a0(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function a1(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let a2=[];function a3(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function a5(e,t){let r=new aQ;a2.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let s=new n(aW(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function a6({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:a}){return am("scroll",aW(ay(aW(a=>{let o=a3(a);if(!o||aR(o,n,i,s,!0))return;let l=r.getId(o);if(o===t&&t.defaultView){let r=av(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}let a4=["INPUT","TEXTAREA","SELECT"],a8=new WeakMap;function a7(e){var t=[];if(or("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||or("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||or("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||or("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function a9(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function oe({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,s=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&s?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return s.get?.call(this)},set(e){let r=s.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),aW(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function ot(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=a5(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let s="number"==typeof t.mousemove?t.mousemove:50,a="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,o=[],l=ay(aW(t=>{let r=Date.now()-i;e(o.map(e=>(e.timeOffset-=r,e)),t),o=[],i=null}),a),u=aW(ay(aW(e=>{let t=a3(e),{clientX:r,clientY:s}=aN(e)?e.changedTouches[0]:e;i||(i=aE()),o.push({x:r,y:s,id:n.getId(t),timeOffset:aE()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?aB.Drag:e instanceof MouseEvent?aB.MouseMove:aB.TouchMove)}),s,{trailing:!1})),c=[am("mousemove",u,r),am("touchmove",u,r),am("drag",u,r)];return aW(()=>
13{c.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,sampling:a}){if(!1===a.mouseInteraction)return()=>{};let o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,l=[],u=null;return Object.keys(aF).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(a=>{let o=sJ(a),c=t=>{let o=a3(t);if(aR(o,n,i,s,!0))return;let l=null,c=a;if("pointerType"in t){switch(t.pointerType){case"mouse":l=a$.Mouse;break;case"touch":l=a$.Touch;break;case"pen":l=a$.Pen}l===a$.Touch?aF[a]===aF.MouseDown?c="TouchStart":aF[a]===aF.MouseUp&&(c="TouchEnd"):a$.Pen}else aN(t)&&(l=a$.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===a$.Touch||c.startsWith("Mouse")&&l===a$.Mouse)&&(l=null)):aF[a]===aF.Click&&(l=u,u=null);let d=aN(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(o),{clientX:h,clientY:f}=d;aW(e)({type:aF[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(aF[a]){case aF.MouseDown:case aF.MouseUp:o=o.replace("mouse","pointer");break;case aF.TouchStart:case aF.TouchEnd:return}l.push(am(o,c,t))}),aW(()=>{l.forEach(e=>e())})}(e),a=a6(e),o=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return am("resize",aW(ay(aW(()=>{let t=aT(),i=ab();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:o,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let r=a3(e),c=e.isTrusted,g=r&&sV(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>a4.indexOf(g)||aR(r,n,i,s,!0))return;let y=r;if(y.classList.contains(a)||o&&y.matches(o))return;let S=sX(r),E=sQ(y,g,S),v=!1,T=sq({maskInputOptions:l,tagName:g,type:S}),b=ap(r,p,f,h,m,T);("radio"===S||"checkbox"===S)&&(v=r.checked),E=sY({isMasked:b,element:r,value:E,maskInputFn:u}),_(r,d?{text:E,isChecked:v,userTriggered:c}:{text:E,isChecked:v});let I=r.name;"radio"===S&&I&&v&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==r){let t=sY({isMasked:b,element:e,value:sQ(e,g,S),maskInputFn:u});_(e,d?{text:t,isChecked:!v,userTriggered:!1}:{text:t,isChecked:!v})}})}function _(t,n){let i=a8.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){a8.set(t,n);let i=r.getId(t);aW(e)({...n,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>am(e,aW(g),t)),S=t.defaultView;if(!S)return()=>{y.forEach(e=>e())};let E=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),v=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&y.push(...v.map(e=>(function e(t,r,n,i,s=window){let a=s.Object.getOwnPropertyDescriptor(t,r);return s.Object.defineProperty(t,r,i?n:{set(e){aP(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>e(t,r,a||{},!0)})(e[0],e[1],{set(){aW(g)({target:this,isTrusted:!1})}},!1,S))),aW(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:s,doc:a}){let o=aW(a=>ay(aW(s=>{let o=a3(s);if(!o||aR(o,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=o;e({type:a,id:i.getId(o),currentTime:l,volume:u,muted:c,playbackRate:d})}),s.media||500)),l=[am("play",o(aj.Play),a),am("pause",o(aj.Pause),a),am("seeked",o(aj.Seeked),a),am("volumechange",o(aj.VolumeChange),a),am("ratechange",o(aj.RateChange),a)];return aW(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,s;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:aW((n,i,s)=>{let[a,o]=s,{id:l,styleId:u}=a9(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:o}]}),n.apply(i,s)})});let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:aW((n,i,s)=>{let[a]=s,{id:o,styleId:l}=a9(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:a}]}),n.apply(i,s)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:aW((n,i,s)=>{let[a]=s,{id:o,styleId:l}=a9(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:a}),n.apply(i,s)})})),n.CSSStyleSheet.prototype.replaceSync&&(s=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:aW((n,i,s)=>{let[a]=s,{id:o,styleId:l}=a9(i,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:a}),n.apply(i,s)})}));let l={};on("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(on("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),on("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),on("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:aW((n,i,s)=>{let[a,o]=s,{id:l,styleId:u}=a9(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:a,index:[...a7(i),o||0]}]}),n.apply(i,s)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:aW((n,i,s)=>{let[a]=s,{id:o,styleId:l}=a9(i.parentStyleSheet,t,r.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...a7(i),a]}]}),n.apply(i,s)})})}),aW(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=o,i&&(n.CSSStyleSheet.prototype.replace=i),s&&(n.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=oe(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:aW((i,a,o)=>{let[l,u,c]=o;if(r.has(l))return s.apply(a,[l,u,c]);let{id:d,styleId:p}=a9(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:a7(a.parentRule)}),i.apply(a,o)})});let a=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:aW((i,s,o)=>{let[l]=o;if(r.has(l))return a.apply(s,[l]);let{id:u,styleId:c}=a9(s.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:a7(s.parentRule)}),i.apply(s,o)})}),aW(()=>{i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,r){let n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let a=aS(t.fonts,"add",function(t){return function(r){return aP(aW(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=s}),n.push(a),aW(()=>
13{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,selectionCb:a}=e,o=!0,l=aW(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:a,startOffset:o,endContainer:u,endOffset:c}=e.getRangeAt(t);aR(a,n,i,s,!0)||aR(u,n,i,s,!0)||l.push({start:r.getId(a),startOffset:o,end:r.getId(u),endOffset:c})}a({ranges:l})});return l(),am("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?aS(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return aW(()=>{a2.forEach(e=>e.reset()),r?.disconnect(),i(),s(),a(),o(),l(),u(),c(),d(),p(),h(),f(),m(),g.forEach(e=>e())})}function or(e){return void 0!==window[e]}function on(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class oi{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),s=n||this.getRemoteIdToIdMap(e),a=i.get(t);return a||(a=this.generateIdFn(),i.set(t,a),s.set(a,t)),a}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class os{constructor(){this.crossOriginIframeMirror=new oi(s8),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class oa{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new oi(s8),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new oi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=aJ(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&aJ(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=aY(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case aU.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:aU.IncrementalSnapshot,data:{source:aB.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case aU.Meta:case aU.Load:case aU.DomContentLoaded:break;case aU.Plugin:return t;case aU.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case aU.IncrementalSnapshot:switch(t.data.source){case aB.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
13),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case aB.Drag:case aB.TouchMove:case aB.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case aB.ViewportResize:return!1;case aB.MediaInteraction:case aB.MouseInteraction:case aB.Scroll:case aB.CanvasMutation:case aB.Input:return this.replaceIds(t.data,e,["id"]),t;case aB.StyleSheetRule:case aB.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case aB.Font:return t;case aB.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case aB.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===s$.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class oo{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ol{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!sW(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=a5({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(a6({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),aP(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(oe({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=aY(e),r=aJ(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(aS(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&aL(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class ou{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new aO,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:sz(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class oc{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){aD("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}
13try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let od=new sH;function op(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:s="rr-block",blockSelector:a=null,unblockSelector:o=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:h=null,unmaskTextSelector:f=null,inlineStylesheet:y=!0,maskAllInputs:S,maskInputOptions:E,slimDOMOptions:v,maskAttributeFn:T,maskInputFn:b,maskTextFn:I,maxCanvasSize:R=null,packFn:w,sampling:N={},dataURLOptions:C={},mousemoveWait:A,recordDOM:M=!0,recordCanvas:O=!1,recordCrossOriginIframes:k=!1,recordAfter:L="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:x=!1,collectFonts:D=!1,inlineImages:P=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:$,onMutation:j,getCanvasManager:W}=e;m=$;let G=!k||window.parent===window,z=!1;if(!G)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(G&&!r)throw Error("emit function is required");if(!G&&!z)return()=>{};void 0!==A&&void 0===N.mousemove&&(N.mousemove=A),od.reset();let H=!0===S?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==E?E:{},q=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let Y=0,J=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!z&&(e=w(e)),e};g=(e,s)=>{if(e.timestamp=aE(),a2[0]?.isFrozen()&&e.type!==aU.FullSnapshot&&(e.type!==aU.IncrementalSnapshot||e.data.source!==aB.Mutation)&&a2.forEach(e=>e.unfreeze()),G)r?.(J(e),s);else if(z){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(e.type===aU.FullSnapshot)t=e,Y=0;else if(e.type===aU.IncrementalSnapshot){if(e.data.source===aB.Mutation&&e.data.isAttachIframe)return;Y++;let r=i&&Y>=i,s=n&&t&&e.timestamp-t.timestamp>n;(r||s)&&en(!0)}};let V=e=>{g({type:aU.IncrementalSnapshot,data:{source:aB.Mutation,...e}})},K=e=>g({type:aU.IncrementalSnapshot,data:{source:aB.Scroll,...e}}),X=e=>g({type:aU.IncrementalSnapshot,data:{source:aB.CanvasMutation,...e}}),Q=new ou({mutationCb:V,adoptedStyleSheetCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new os:new oa({mirror:od,mutationCb:V,stylesheetManager:Q,recordCrossOriginIframes:k,wrappedEmit:g});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:od,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new oc,et=function(e,t){try{return e?e(t):new aq}catch{return console.warn("Unable to initialize CanvasManager"),new aq}}(W,{mirror:od,win:window,mutationCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.CanvasMutation,...e}}),recordCanvas:O,blockClass:s,blockSelector:a,unblockSelector:o,maxCanvasSize:R,sampling:N.canvas,dataURLOptions:C,errorHandler:$}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new oo:new ol({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:j,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskInputOptions:H,dataURLOptions:C,maskAttributeFn:T,maskTextFn:I,maskInputFn:b,recordCanvas:O,inlineImages:P,sampling:N,slimDOMOptions:q,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:B,processedNodeManager:ee,ignoreCSSAttributes:F},mirror:od}),en=(e=!1)=>
13{if(!M)return;g({type:aU.Meta,data:{href:window.location.href,width:ab(),height:aT()}},e),Q.reset(),er.init(),a2.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new sH,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:s=null,maskAllText:a=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:S,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:T,iframeLoadTimeout:b,onBlockedImageLoad:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return af(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:o,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:S,inlineImages:p,recordCanvas:h,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:T,iframeLoadTimeout:b,onBlockedImageLoad:I,onStylesheetLoad:R,stylesheetLoadTimeout:w,keepIframeSrcFn:N,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:od,blockClass:s,blockSelector:a,unblockSelector:o,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:y,maskAllInputs:H,maskAttributeFn:T,maskInputFn:b,maskTextFn:I,slimDOM:q,dataURLOptions:C,recordCanvas:O,inlineImages:P,onSerialize:e=>{aC(e,od)&&Z.addIframe(e),aA(e,od)&&Q.trackLinkElement(e),aM(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t);let r=aJ(e);r&&et.addWindow(r),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:B,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");g({type:aU.FullSnapshot,data:{node:t,initialOffset:av(window)}}),a2.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,od.getId(document))};_=en;try{let e=[],t=e=>aW(ot)({onMutation:j,mutationCb:V,mousemoveCb:(e,t)=>g({type:aU.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.ViewportResize,...e}}),inputCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.Input,...e}}),mediaInteractionCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.MediaInteraction,...e}}),styleSheetRuleCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.StyleSheetRule,...e}}),styleDeclarationCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>g({type:aU.IncrementalSnapshot,data:{source:aB.Font,...e}}),selectionCb:e=>{g({type:aU.IncrementalSnapshot,data:{source:aB.Selection,...e}})},customElementCb:e=>{g({type:aU.IncrementalSnapshot,data:{source:aB.CustomElement,...e}})},blockClass:s,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskInputOptions:H,inlineStylesheet:y,sampling:N,recordDOM:M,recordCanvas:O,inlineImages:P,userTriggeredOnInput:x,collectFonts:D,doc:e,maskAttributeFn:T,maskInputFn:b,maskTextFn:I,keepIframeSrcFn:B,blockSelector:a,unblockSelector:o,slimDOMOptions:q,dataURLOptions:C,mirror:od,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>g({type:aU.Plugin,data:{plugin:e.name,payload:t}}
13)}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(am("DOMContentLoaded",()=>{g({type:aU.DomContentLoaded,data:{}}),"DOMContentLoaded"===L&&r()})),e.push(am("load",()=>{g({type:aU.Load,data:{}}),"load"===L&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,m=void 0}}catch(e){console.warn(e)}}function oh(e){return e>0x2540be3ff?e:1e3*e}function of(e){return e>0x2540be3ff?e/1e3:e}function om(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:aU.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ec.normalize)(t,10,1e3)}}),"console"===t.category)))}function og(e){return e.closest("button,a")||e}function o_(e){let t=oy(e);return t&&t instanceof Element?og(t):t}function oy(e){var t;return(t=e,(0,eE.isObjectLike)(t)&&"target"in t)?e.target:e}op.mirror=od,op.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(C=M||(M={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";let oS=new Set([aB.Mutation,aB.StyleSheetRule,aB.StyleDeclaration,aB.AdoptedStyleSheet,aB.CanvasMutation,aB.Selection,aB.MediaInteraction]);class oE{constructor(e,t,r=om){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=oT()},y||(y=[],(0,Z.fill)(sD,"open",function(e){return function(...t){if(y)try{y.forEach(e=>e())}catch{}return e.apply(sD,t)}})),y.push(e),()=>{let t=y?y.indexOf(e):-1;t>-1&&y.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!ov.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let s={timestamp:of(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===s.node&&1>Math.abs(e.timestamp-s.timestamp))||(this._clicks.push(s),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=of(e)}registerScroll(e=Date.now()){this._lastScroll=of(e)}registerClick(e){let t=og(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=oT();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:s}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",a={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:sD.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,a);return}if(i>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:sD.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=na(()=>this._checkClicks(),1e3)}}let ov=["A","BUTTON","INPUT"];function oT(){return Date.now()/1e3}function ob(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var oI=((A=oI||{})[A.Document=0]="Document",A[A.DocumentType=1]="DocumentType",A[A.Element=2]="Element",A[A.Text=3]="Text",A[A.CDATA=4]="CDATA",A[A.Comment=5]="Comment",A);let oR=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ow(e,t){let r=op.mirror.getId(e),n=r&&op.mirror.getNode(r),i=n&&op.mirror.getMeta(n),s=i&&i.type===oI.Element?i:null;return{message:t,data:s?{nodeId:r,node:{id:r,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>
13e.type===oI.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(oR.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(s.attributes)}}:{}}}let oN={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:s,decodedBodySize:a,encodedBodySize:o,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:oM(s),end:oM(i),name:n,data:{size:u,statusCode:l,decodedBodySize:a,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,s=oM(i);return{type:r,name:n,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:s,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:oM(h),end:oM(s),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:a,duration:i,domInteractive:u,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:s,redirectCount:p}}}};function oC(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function oA(e){let t=oN[e.entryType];return t?t(e):null}function oM(e){return(((0,eb.browserPerformanceTimeOrigin)()||sD.performance.timeOrigin)+e)/1e3}function oO(e){let t=e.entries[e.entries.length-1];return ox(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function ok(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=op.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return ox(e,"cumulative-layout-shift",r,t)}function oL(e){let t=e.entries[e.entries.length-1];return ox(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function ox(e,t,r,n){let i=e.value,s=e.rating,a=oM(i);return{type:"web-vital",name:t,start:a,end:a,data:{value:i,size:i,rating:s,nodeIds:r?r.map(e=>op.mirror.getId(e)):void 0,attributions:n}}}let oD=(v={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}},["log","warn","error"].forEach(e=>{v[e]=()=>void 0}),v);class oP extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class oU{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new oP;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:oh(e)}}class oB{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success)return void t.reject(Error("Error in compression worker"));t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e
13=>e.reject(Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{this._pending.set(r,{method:e,resolve:n,reject:i});try{this._worker.postMessage({id:r,method:e,arg:t})}catch(e){this._pending.delete(r),i(e)}})}_getAndIncrementId(){return this._id++}}class oF{constructor(e){this._worker=new oB(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=oh(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new oP):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class o${constructor(e){this._fallback=new oU,this._compression=new oF(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function oj(){try{return"sessionStorage"in sD&&!!sD.sessionStorage}catch{return!1}}function oW(e){return void 0!==e&&Math.random()<e}function oG(e){if(oj())try{sD.sessionStorage.setItem(sP,JSON.stringify(e))}catch{}}function oz(e){let t=Date.now(),r=e.id||(0,q.uuid4)(),n=e.started||t,i=e.lastActivity||t,s=e.segmentId||0,a=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:s,sampled:a,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function oH({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=oz({sampled:oW(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&oG(i),i}function oq(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function oY(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return oq(e.started,t,n)||oq(e.lastActivity,r,n)}(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function oJ({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!oj())return null;try{let e=sD.sessionStorage.getItem(sP);if(!e)return null;let t=JSON.parse(e);return oz(t)}catch{return null}}();return i?oY(i,{sessionIdleExpire:e,maxReplayDuration:t})?oH(n,{previousSessionId:i.id}):i:oH(n,{previousSessionId:r})}function oV(e,t,r){return!!oX(e,t)&&(oK(e,t,r),!0)}async function oK(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let s=e.getOptions(),a=function(e,t){try{if("function"==typeof t&&e.type===aU.Custom)return t(e)}catch(e){return null}return e}(t,s.beforeAddRecordingEvent);if(!a)return;return await n.addEvent(a)}catch(s){if(!e.isEnabled())return e.handleException(s),null;let t=s&&s instanceof oP,r=(0,U.getClient)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(s),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}
13function oX(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=oh(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function oQ(e,t,r){let n=e.getContext();t&&n.traceIds.size<100&&n.traceIds.add(t),r&&n.segmentNames.size<100&&n.segmentNames.add(r)}function oZ(e){return"transaction"===e.type}function o0(e){return"feedback"===e.type}function o1(e){return!!e.category}function o2(){let e=(0,U.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,en.getActiveSpan)();if(t){let e=(0,ew.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function o3(e){let t=(0,U.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);let r=(0,en.getActiveSpan)();r&&((0,ew.getDynamicSamplingContextFromSpan)(r).replay_id=e)}function o5(e,t){return t.map(({type:t,start:r,end:n,name:i,data:s})=>{let a=e.throttledAddEvent({type:aU.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:s}}});return"string"==typeof a?Promise.resolve(null):a})}function o6(e,t){e.isEnabled()&&null!==t&&(sL(t.name,(0,U.getClient)())||e.addUpdate(()=>(o5(e,[t]),!0)))}function o4(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=iH(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function o8(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function o7(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function o9(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:s,statusCode:a,request:o,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:s,statusCode:a,request:o,response:l}}}function le(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function lt(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:s}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,s=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return s?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(s)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,s?.length&&(n._meta={warnings:s}),n}function lr(e,t){return Object.entries(e).reduce((r,[n,i])=>{let s=n.toLowerCase();return t.includes(s)&&e[n]&&(r[s]=i),r},{})}function ln(e,t){let r=function(e,t=sD.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(sD.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,Y.stringMatchesSomePattern)(r,t)}async function li(e,t,r){try{let n=await ls(e,t,r),i=o9("resource.fetch",n);o6(r.replay,i)}catch(e){}}async function ls(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n}=t,{url:a,method:o,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=ln(a,r.networkDetailAllowUrls)&&!ln(a,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:s,url:a,method:o,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,s;let a=r?(i=r,s=t,1===i.length&&"string"!=typeof i[0]?lu(i[0],s):2===i.length?lu(i[1],s):{}):{};if(!e)return lt(a,n,void 0);let[o,l]=iq(iY(r),oD),u=lt(a,n,o);return l?o7(u,l):u}(r,t.input,u):le(u),response:await la(d,r,t.response,c)}}async function la(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return le(i);let s=n?ll(n.headers,r):{};if(!n||!t&&void 0!==i)return lt(s,i,void 0);let[a,o]=await lo(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let s=e?.length&&void 0===r?o4(e):r;if(!n)return le(s);if(t)return lt(i,s,e);return lt(i,s,void 0)}catch(e){return lt(i,r,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:s});return o?o7(l,o):l}async function lo(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>
13{let n=na(()=>t(Error("Timeout while trying to read response body")),500);lc(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function ll(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function lu(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?ll(r,t):Array.isArray(r)?{}:lr(r,t):{}}async function lc(e){return await e.text()}async function ld(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:s=n,input:a,xhr:o}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!o||!ln(l,r.networkDetailAllowUrls)||ln(l,r.networkDetailDenyUrls)){let e=le(d);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:e,response:le(p)}}let h=o[rc],f=h?lr(h.request_headers,r.networkRequestHeaders):{},m=lr(iJ(o),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?iq(a,oD):[void 0],[y,S]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&(0,eE.isObjectLike)(r))return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(o):[void 0],E=lt(f,d,g),v=lt(m,p,y);return{startTimestamp:i,endTimestamp:s,url:l,method:u,statusCode:c,request:_?o7(E,_):E,response:S?o7(v,S):v}}(e,t,r),i=o9("resource.xhr",n);o6(r.replay,i)}catch(e){}}async function lp(e){try{return Promise.all(o5(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(sD.performance.memory)]))}catch{return[]}}let lh=L.GLOBAL_OBJ.navigator;async function lf({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let s=await (0,e0.prepareEvent)(e.getOptions(),n,i,t,e,(0,U.getIsolationScope)());if(!s)return null;e.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";let a=e.getSdkMetadata(),{name:o,version:l,settings:u}=a?.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},s}async function lm({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:s}){var a;let o,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
14`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,segmentNames:p,initialTimestamp:h}=n,f=(0,U.getClient)(),m=(0,U.getCurrentScope)(),g=f?.getTransport(),_=f?.getDsn();if(!f||!g||!_||!s.sampled)return Promise.resolve({});let y={type:"replay_event",replay_start_timestamp:h/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,segment_names:p,urls:u,replay_id:t,segment_id:r,replay_type:s.sampled},S=await lf({scope:m,client:f,replayId:t,event:y});if(!S)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete S.sdkProcessingMetadata;let E=(a=f.getOptions().tunnel,(0,eA.createEnvelope)((0,eA.createEventEnvelopeHeaders)(S,(0,eA.getSdkMetadataForEnvelopeHeader)(S),a,_),[[{type:"replay_event"},S],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await g.send(E)}catch(t){let e=Error(sU);try{e.cause=t}catch{}throw e}let v=eK({},o);if(eV(v,"replay"))throw new l_(v);if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new lg(o.statusCode);return o}class lg extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class l_ extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}
14class ly extends Error{constructor(){super("Session is too long, not sending replay")}}async function lS(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await lm(e),!0}catch(r){if(r instanceof lg||r instanceof l_)throw r;if((0,P.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${sU} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{na(async()=>{try{await lS(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let lE="__THROTTLED";class lv{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return function(e,t,r){let n,i,s,a=r?.maxWait?Math.max(r.maxWait,t):0,o=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==s&&clearTimeout(s),i=s=void 0}function c(){return i&&clearTimeout(i),i=o(l,t),a&&void 0===s&&(s=o(l,a)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==s?l():n},c}(e,t,{...r,setTimeoutImpl:na})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let i,s=Math.floor(Date.now()/1e3);if(i=s-5,t.forEach((e,r)=>{r<i&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":lE}r=!1;let a=t.get(s)||0;return t.set(s,a+1),e(...n)}}((e,t)=>oX(this,e)?oK(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new oE(this,i)),this._handleVisibilityChange=()=>{"visible"===sD.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=ob({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=ob({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:a,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!a)return null;let l=r||i||s,u=1===a.length;if(!l&&u)return null;let c=r_(o,{maxStringLength:200})||"<unknown>",d=ow(o,c);return ob({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:s,key:a}})}(t);r&&om(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording()))}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=oJ({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=oJ({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=op({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{try{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,function(e){let t=e.data;if(e.type===aU.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===aB.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=
14op.mirror.getNode(e.id),r=t&&op.mirror.getMeta(t);if(r?.type===oI.Element)for(let[t,n]of Object.entries(e.attributes))null===n?delete r.attributes[t]:r.attributes[t]=n}}(r),e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(oS.has(n)&&e.registerMutation(t.timestamp),n===aB.Scroll&&e.registerScroll(t.timestamp),t.data.source===aB.MouseInteraction){let{type:r,id:n}=t.data,i=op.mirror.getNode(n);i instanceof HTMLElement&&r===aF.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!oV(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;oV(e,(t=e.getOptions(),{type:aU.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t.started=r,e.getOptions().stickySession&&oG(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}}),.../iPhone|iPad|iPod/i.test(lh?.userAgent??"")||/Macintosh/i.test(lh?.userAgent??"")&&lh?.maxTouchPoints&&lh?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";(0,U.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:t??"manual"});try{o2(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(oj())try{sD.sessionStorage.removeItem(sP)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),o3(this.session.id)),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&oq(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${sD.location.pathname}${sD.location.hash}${sD.location.search}`,t=`${sD.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
14initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===lE){let e=ob({category:"replay.throttled"});this.addUpdate(()=>!oV(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,en.getActiveSpan)(),t=e&&(0,en.getRootSpan)(e),r=(t&&(0,en.spanToJSON)(t).data||{})[er.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,en.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 14
14var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
14'],{type:"text/javascript"}),URL.createObjectURL(e)}return""}();if(!t)return;let r=new Worker(t);return new o$(r)}catch(e){}}(t);if(e)return e}return new oU}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,U.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&o3(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=oJ({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!oY(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{sD.document.addEventListener("visibilitychange",this._handleVisibilityChange),sD.addEventListener("blur",this._handleWindowBlur),sD.addEventListener("focus",this._handleWindowFocus),sD.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,U.getClient)();ro(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?o_(e.event):oy(e.event),t=r_(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return ob({category:`ui.${e.name}`,...ow(t,r)})}(t);if(!i)return;let s="click"===t.name,a=s?t.event:void 0;s&&e.clickDetector&&a?.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&(r=e.clickDetector,n=o_(t.event),r.handleClick(i,n)),om(e,i)}),rh(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(o5(e,[r]),!1)))}),(t=(0,U.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!o1(t))return;let n=(r=t,!o1(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return ob(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}\u2026`):e;if("object"==typeof e)try{let t=(0,ec.normalize)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return ob({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):ob(r));n&&om(e,n)})(e,t));let n=(0,U.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),o={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,s,a;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=o4(n),s=r.getResponseHeader("content-length")?o8(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&(0,eE.isObjectLike)(e)?JSON.stringify(e):e;return o4(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,r),ld(t,r,e)),s=t,"fetch"===s.category&&(a=r,a?.input!==void 0)&&(!function(e,t){let{input:r,response:n}=t,i=o4(r?iY(r):void 0),s=n?o8(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==s&&(e.data.response_body_size=s)}(t,r),li(t,r,e))}catch(e){}})(o,e,t))}catch{}let i=Object.assign((t,r)=>{if(e.session&&oY(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
14)&&o2(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!oZ(t)&&!o0(t))return t;if(!e.checkAndHandleExpiredSession())return o2(),t;if(o0(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:aU.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==sU&&!!t.exception&&!t.type&&oW(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&oG(t)}return t},{id:"Replay"});(0,P.addEventProcessor)(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,i=n.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&om(r,ob({category:"replay.hydrate-error",data:{url:tb()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!oZ(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(oZ(t)){var i,s;return void(i=e,s=t,oQ(i,s.contexts?.trace?.trace_id,s.transaction))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&na(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("processSegmentSpan",t=>{e.isEnabled()&&oQ(e,t.trace_id,t.name||void 0)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(n7(e,r))}),n.push(n6(oC(oO,e)),n5(oC(ok,e)),n8(oC(oL,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{sD.document.removeEventListener("visibilitychange",this._handleVisibilityChange),sD.removeEventListener("blur",this._handleWindowBlur),sD.removeEventListener("focus",this._handleWindowFocus),sD.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(oY(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?o2():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){!this.session||this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:aU.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(oA).filter(
14Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(o5(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)){if((await lp(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new ly;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await lS({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,U.getClient)();e&&e.recordDroppedEvent(t instanceof l_?"ratelimit_backoff":t instanceof ly?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;let a=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,a&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&oG(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,s=n&&r>n;if(r>i||s){let e=ob({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(e)}return!s||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function lT(e,t){return[...e,...t].join(",")}let lb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lI=["content-length","content-type","accept"],lR=Symbol.for("sentry__originalRequestBody"),lw=!1,lN=!1;class lC{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:o={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:v=["title","placeholder","aria-label"],unmask:T=[],block:b=[],unblock:I=[],ignore:R=[],maskFn:w,beforeAddRecordingEvent:N,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:M=!1}={}){this.name="Replay";const O=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:lT(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:lT(t,[]),blockSelector:lT(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
14([src])"]),unblockSelector:lT(n,[]),ignoreSelector:lT(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:E,unmask:T,block:b,unblock:I,ignore:R});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:w,maskInputFn:w,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:s}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return s;let a=r.includes(t),o=n&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||o?s.replace(/[\S]/g,"*"):s})({maskAttributes:v,maskAllText:l,privacyOptions:O,key:e,value:t,el:r}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!o.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:s,workerUrl:a,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:lA(y),networkResponseHeaders:lA(S),beforeAddRecordingEvent:N,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:M,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lb}`:lb,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&eM())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lw}set _isInitialized(e){lw=e}afterAllSetup(e){eM()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||lN)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[lR]=r.body),n};t.prototype=e.prototype,L.GLOBAL_OBJ.Request=t,lN=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(rM(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&rM(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,i,s,a=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,eZ.parseSampleRate)(r.replaysSessionSampleRate),s=(0,eZ.parseSampleRate)(r.replaysOnErrorSampleRate),null==i&&null==s&&(0,k.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=s&&(n.errorSampleRate=s),n);this._replay=new lv({options:a,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function lA(e){return[...lI,...e.map(e=>e.toLowerCase())]}e.s(["getReplay",0,function(){let e=(0,U.getClient)();return e?.getIntegrationByName("Replay")},"replayIntegration",0,e=>new lC(e)],646615)}]);
15
16//# debugId=e8a83323-bad3-052f-26fe-855bea772364

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.