- ajoute un .dockerignore. - ajoute un Dockerfile. - met à jour les dépendances. - utilise bun comme gestionnaire de paquets npm. - utilise une configuration Vite en TypeScript. - ajoute les fichiers compilés JavaScript aux fichiers pris en charge par Git.
1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
System.register([],function(t,e){"use strict";return{execute:function(){t({$:function(t){return S(t,"DOMException")},A:Vt,C:ut,E:c,F:function(t){return t.__sentry_original__},H:C,J:function(t,n,r){if(!(n in t))return;const s=t[n];if("function"!=typeof s)return;const o=r(s);"function"==typeof o&&L(o,s);try{t[n]=o}catch{e&&f.log(`Failed to replace method "${n}" in object`,t)}},L:function(...t){const e=at(s());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])},M:B,N:function(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const e=t[r];try{O(e)?n.push("[VueViewModel]"):n.push(String(e))}catch{n.push("[value cannot be serialized]")}}return n.join(e)},O:function(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return ct().captureMessage(t,n,r)},P:function(t,e){return ct().captureException(t,function(t){if(t)return function(t){return t instanceof et||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>ne.includes(t))}(t)?{captureContext:t}:t}(e))},Q:function(t){const e=t.exception;if(e){const t=[];try{return e.values.forEach(e=>{e.stacktrace.frames&&t.push(...e.stacktrace.frames)}),t}catch{return}}},R:G,T:x,U:D,V:function(t){return"undefined"!=typeof Request&&C(t,Request)},W:function(){try{return P.document.location.href}catch{return""}},X:L,Y:function(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type="Error")},Z:function(t){return S(t,"ErrorEvent")},_:function(t){return S(t,"DOMError")},a:function(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`},a0:I,a1:function t(e,n=3,r=102400){const s=Yt(e,n);return o=s,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>r?t(e,n-1,r):s;var o},a2:function(t,e=40){const n=Object.keys(T(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return A(r,e);for(let s=n.length;s>0;s--){const t=n.slice(0,s).join(", ");if(!(t.length>e))return s===n.length?t:A(t,e)}return""},a3:E,a4:function(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0,r=0)=>{const s=[],o=t.split("\n");for(let i=n;i<o.length;i++){let t=o[i];t.length>1024&&(t=t.slice(0,1024));const n=_.test(t)?t.replace(_,"$1"):t;if(!n.match(/\S*Error: /)){for(const t of e){const e=t(n);if(e){s.push(e);break}}if(s.length>=h+r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(m(e).function||"")&&e.pop(),e.reverse(),g.test(m(e).function||"")&&(e.pop(),g.test(m(e).function||"")&&e.pop()),e.slice(0,h).map(t=>({...t,filename:t.filename||m(e).filename,function:t.function||d}))}(s.slice(r))}},a6:function(t){const{message:e,event_id:n}=t;if(e)return e;const r=H(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},a7:M,a8:function(t){if(!P.HTMLElement)return null;let e=t;for(let n=0;n<5;n++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null},a9:function(t,e){return ct().captureEvent(t,e)},aa:function(){let t=arguments[0];for(let e=1,n=arguments.length;e<n;e++)t=arguments[e](t);return t},b:o,c:i,e:K,g:b,h:function(t){if(function(t){try{return t.__sentry_captured__}catch{}}(t))return!0;try{D(t,"__sentry_captured__",!0)}catch{}return!1},i:function(t,e,n=!1){return!!E(t)&&(S(e,"RegExp")?e.test(t):!!E(e)&&(n?t===e:t.includes(e)))},j:function(t){return null===t||k(t)||"object"!=typeof t&&"function"!=typeof t},k:J,m:function(t){const n="string"==typeof t?function(t){const e=It.exec(t);if(!e)return void c(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});const[n,r,s="",o="",i="",a=""]=e.slice(1);let u="",p=a;const l=p.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),p=l.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return jt({host:o,pass:s,path:u,projectId:p,port:i,protocol:n,publicKey:r})}(t):jt(t);if(n&&function(t){if(!e)return!0;const{port:n,projectId:r,protocol:s}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(f.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(r.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(s)?!n||!isNaN(parseInt(n,10))||(f.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):(f.error(`Invalid Sentry Dsn: Invalid protocol ${s}`),!1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(n))return n},n:Yt,o:function(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,o={trace_id:n,span_id:s||Q()};return r&&(o.parent_span_id=r),o},p:function(t,e,r,s,o,a){const{normalizeDepth:c=3,normalizeMaxBreadth:u=1e3}=t,p={...e,event_id:e.event_id||r.event_id||F(),timestamp:e.timestamp||K()},l=r.integrations||t.integrations.map(t=>t.name);(function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;t.environment=t.environment||n||Ut,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const i=t.request;i?.url&&(i.url=A(i.url,o))})(p,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(p,l),o&&o.emit("applyFrameMetadata",e),void 0===e.type&&function(t,e){const r=function(t){const e=n._sentryDebugIds,r=n._debugIds;if(!e&&!r)return{};const s=e?Object.keys(e):[],o=r?Object.keys(r):[];if(ee&&s.length===Zt&&o.length===te)return ee;Zt=s.length,te=o.length,ee={},Xt||(Xt={});const i=(e,n)=>{for(const r of e){const e=n[r],s=Xt?.[r];if(s&&ee&&e)ee[s[0]]=e,Xt&&(Xt[r]=[s[0],e]);else if(e){const n=t(r);for(let t=n.length-1;t>=0;t--){const s=n[t],o=s?.filename;if(o&&ee&&Xt){ee[o]=e,Xt[r]=[o,e];break}}}}};return e&&i(s,e),r&&i(o,r),ee}(e);t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.filename&&(t.debug_id=r[t.filename])})})}(p,t.stackParser);const f=function(t,e){if(!e)return t;const n=t?t.clone():new et;return n.update(e),n}(s,r.captureContext);r.mechanism&&B(p,r.mechanism);const h=o?o.getEventProcessors():[],d=i("globalScope",()=>new et).getScopeData();a&&qt(d,a.getScopeData()),f&&qt(d,f.getScopeData());const _=[...r.attachments||[],...d.attachments];_.length&&(r.attachments=_),function(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;(function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(o).length&&(t.contexts={...o,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)})(t,e),r&&function(t,e){t.contexts={trace:$t(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ht(e),...t.sdkProcessingMetadata};const n=Rt(e),r=Dt(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}(p,d);const g=[...h,...d.eventProcessors];return function(t,e,n,r=0){try{const s=Wt(e,n,t,r);return j(s)?s:Vt(s)}catch(s){return Gt(s)}}(g,p,r).then(t=>(t&&function(t){const e={};if(t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)})}),0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([t,e])=>{n.push({type:"sourcemap",code_file:t,debug_id:e})})}(t),"number"==typeof c&&c>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(t=>({...t,...t.data&&{data:Yt(t.data,e,n)}}))},...t.user&&{user:Yt(t.user,e,n)},...t.contexts&&{contexts:Yt(t.contexts,e,n)},...t.extra&&{extra:Yt(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Yt(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(t=>({...t,...t.data&&{data:Yt(t.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Yt(t.contexts.flags,3,n)),r}(t,c,u):t))},q:function(t,e){const n=e.getPropagationContext();return n.dsc||Ft(n.traceId,t)},r:ct,s:function(){const t=s();return at(t).getIsolationScope()},t:Gt,u:F,v:k,w:function(){Pt||(c(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Pt=!0)},x:W,y:j,z:w});const e=t("D","undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__),n=t("G",globalThis),r=t("B","10.22.0");function s(){return o(n),n}function o(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||r,e[r]=e[r]||{}}function i(t,e,s=n){const o=s.__SENTRY__=s.__SENTRY__||{},i=o[r]=o[r]||{};return i[t]||(i[t]=e())}t("I",["debug","info","warn","error","log","assert","trace"]);const a=t("K",{});function c(t){if(!("console"in n))return t();const e=n.console,r={},s=Object.keys(a);s.forEach(t=>{const n=a[t];r[t]=e[t],e[t]=n});try{return t()}finally{s.forEach(t=>{e[t]=r[t]})}}function u(){return l().enabled}function p(t,...r){e&&u()&&c(()=>{n.console[t](`Sentry Logger [${t}]:`,...r)})}function l(){return e?i("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const f=t("d",{enable:function(){l().enabled=!0},disable:function(){l().enabled=!1},isEnabled:u,log:function(...t){p("log",...t)},warn:function(...t){p("warn",...t)},error:function(...t){p("error",...t)}}),h=50,d=t("a5","?"),_=/\(error: (.*)\)/,g=/captureMessage|captureException/;function m(t){return t[t.length-1]||{}}const y="<anonymous>";function b(t){try{return t&&"function"==typeof t&&t.name||y}catch{return y}}const v=Object.prototype.toString;function x(t){switch(v.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return C(t,Error)}}function S(t,e){return v.call(t)===`[object ${e}]`}function E(t){return S(t,"String")}function k(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function w(t){return S(t,"Object")}function I(t){return"undefined"!=typeof Event&&C(t,Event)}function j(t){return Boolean(t?.then&&"function"==typeof t.then)}function C(t,e){try{return t instanceof e}catch{return!1}}function O(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}const P=n,$=80;function M(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const p=Array.isArray(e)?e:e.keyAttrs,l=!Array.isArray(e)&&e.maxStringLength||$;for(;n&&o++<r&&(u=N(n,p),!("html"===u||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function N(t,e){const n=t,r=[];if(!n?.tagName)return"";if(P.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(s?.length)s.forEach(t=>{r.push(`[${t[0]}="${t[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const t=n.className;if(t&&E(t)){const e=t.split(/\s+/);for(const t of e)r.push(`.${t}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const t=n.getAttribute(i);t&&r.push(`[${i}="${t}"]`)}return r.join("")}function A(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function D(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&f.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function L(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,D(t,"__sentry_original__",e)}catch{}}function T(t){if(x(t))return{message:t.message,name:t.name,stack:t.stack,...U(t)};if(I(t)){const e={type:t.type,target:R(t.target),currentTarget:R(t.currentTarget),...U(t)};return"undefined"!=typeof CustomEvent&&C(t,CustomEvent)&&(e.detail=t.detail),e}return t}function R(t){try{return e=t,"undefined"!=typeof Element&&C(e,Element)?M(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}var e}function U(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}let z;function F(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return z||(z=[1e7]+1e3+4e3+8e3+1e11),z.replace(/[018]/g,t=>(t^(16*Math.random()&15)>>t/4).toString(16))}function H(t){return t.exception?.values?.[0]}function B(t,e){const n=H(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r?.data,...e.data};n.mechanism.data=t}}const Y=1e3;function K(){return Date.now()/Y}let V;function G(){return(V??(V=function(){const{performance:t}=n;if(!t?.now||!t.timeOrigin)return K;const e=t.timeOrigin;return()=>(e+t.now())/Y}()))()}function J(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||G(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:F()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function W(t,e,n=2){if(!e||"object"!=typeof e||n<=0)return e;if(t&&0===Object.keys(e).length)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=W(r[s],e[s],n-1));return r}function q(){return F()}function Q(){return F().substring(16)}const X="_sentrySpan";function Z(t,e){e?D(t,X,e):delete t[X]}function tt(t){return t[X]}class et{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:q(),sampleRand:Math.random()}}clone(){const t=new et;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Z(t,tt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&J(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,n=e instanceof et?e.getScopeData():w(e)?t:void 0,{tags:r,extra:s,user:o,contexts:i,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...s},this._contexts={...this._contexts,...i},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Z(this,void 0),this._attachments=[],this.setPropagationContext({traceId:q(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:K(),...t,message:t.message?A(t.message,2048):t.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:tt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=W(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||F();if(!this._client)return e&&f.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||F();if(!this._client)return e&&f.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n?.event_id||F();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&f.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}class nt{constructor(t,e){let n,r;n=t||new et,r=e||new et,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(r){throw this._popScope(),r}return j(n)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function rt(){const t=o(s());return t.stack=t.stack||new nt(i("defaultCurrentScope",()=>new et),i("defaultIsolationScope",()=>new et))}function st(t){return rt().withScope(t)}function ot(t,e){const n=rt();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function it(t){return rt().withScope(()=>t(rt().getIsolationScope()))}function at(t){const e=o(t);return e.acs?e.acs:{withIsolationScope:it,withScope:st,withSetScope:ot,withSetIsolationScope:(t,e)=>it(e),getCurrentScope:()=>rt().getScope(),getIsolationScope:()=>rt().getIsolationScope()}}function ct(){return at(s()).getCurrentScope()}function ut(){return ct().getClient()}const pt="sentry.source",lt="sentry.sample_rate",ft="sentry.previous_trace_sample_rate",ht="sentry.op",dt="sentry.origin",_t=(t("f","sentry.profile_id"),t("S","sentry.exclusive_time"),0),gt=1,mt="_sentryScope",yt="_sentryIsolationScope";function bt(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}function vt(t){const e=t;return{scope:e[mt],isolationScope:bt(e[yt])}}const xt="sentry-",St=/^sentry-/;function Et(t){const e=function(t){if(t&&(E(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,e)=>{const n=kt(e);return Object.entries(n).forEach(([e,n])=>{t[e]=n}),t},{}):kt(t)}(t);if(!e)return;const n=Object.entries(e).reduce((t,[e,n])=>(e.match(St)&&(t[e.slice(xt.length)]=n),t),{});return Object.keys(n).length>0?n:void 0}function kt(t){return t.split(",").map(t=>{const e=t.indexOf("=");return-1===e?[]:[t.slice(0,e),t.slice(e+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[e,n])=>(e&&n&&(t[e]=n),t),{})}const wt=/^o(\d+)\./,It=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Ct(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=function(t){const e=t.match(wt);return e?.[1]}(n)),r}const Ot=1;let Pt=!1;function $t(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Dt(t).parent_span_id,o=vt(t).scope;return{parent_span_id:s,span_id:r?o?.getPropagationContext().propagationSpanId||Q():e,trace_id:n}}function Mt(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:e,traceFlags:n,...r},attributes:s})=>({span_id:t,trace_id:e,sampled:n===Ot,attributes:s,...r})):void 0}function Nt(t){return"number"==typeof t?At(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?At(t.getTime()):G()}function At(t){return t>9999999999?t/1e3:t}function Dt(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=t;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0,start_timestamp:Nt(s),timestamp:Nt(i)||void 0,status:Lt(a),op:r[ht],origin:r[dt],links:Mt(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Lt(t){if(t&&t.code!==_t)return t.code===gt?"ok":t.message||"unknown_error"}const Tt="_sentryRootSpan";function Rt(t){return t[Tt]||t}const Ut=t("l","production"),zt="_frozenDsc";function Ft(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Ut,release:n.release,public_key:r,trace_id:t,org_id:Ct(e)};return e.emit("createDsc",s),s}function Ht(t){const e=ut();if(!e)return{};const n=Rt(t),r=Dt(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[lt]??s[ft];function a(t){return"number"!=typeof i&&"string"!=typeof i||(t.sample_rate=`${i}`),t}const c=n[zt];if(c)return a(c);const u=o?.get("sentry.dsc"),p=u&&Et(u);if(p)return a(p);const l=Ft(t.spanContext().traceId,e),f=s[pt],h=r.description;return"url"!==f&&h&&(l.transaction=h),function(){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=ut()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(l.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return e===Ot}(n)),l.sample_rand=o?.get("sentry.sample_rand")??vt(n).scope?.getPropagationContext().sampleRand.toString()),a(l),e.emit("createDsc",l,n),l}const Bt=globalThis||self;function Yt(t,e=100,n=1/0){try{return Kt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Kt(t,e,n=1/0,r=1/0,s=function(){const t=new WeakSet;function e(e){return!!t.has(e)||(t.add(e),!1)}function n(e){t.delete(e)}return[e,n]}()){const[o,i]=s;if(null==e||["boolean","string"].includes(typeof e)||"number"==typeof e&&Number.isFinite(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==Bt&&e===Bt)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(O(e))return"[VueViewModel]";if(w(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof e&&!Number.isFinite(e))return`[${e}]`;if("function"==typeof e)return`[Function: ${b(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return Kt("",u.toJSON(),c-1,r,s)}catch{}const p=Array.isArray(e)?[]:{};let l=0;const f=T(e);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(l>=r){p[h]="[MaxProperties ~]";break}const t=f[h];p[h]=Kt(h,t,c-1,r,s),l++}return i(e),p}function Vt(t){return new Jt(e=>{e(t)})}function Gt(t){return new Jt((e,n)=>{n(t)})}class Jt{constructor(t){this._state=0,this._handlers=[],this._runExecutor(t)}then(t,e){return new Jt((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(s){r(s)}else n(e)},t=>{if(e)try{n(e(t))}catch(s){r(s)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new Jt((e,n)=>{let r,s;return this.then(e=>{s=!1,r=e,t&&t()},e=>{s=!0,r=e,t&&t()}).then(()=>{s?n(r):e(r)})})}_executeHandlers(){if(0===this._state)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(1===this._state&&t[1](this._value),2===this._state&&t[2](this._value),t[0]=!0)})}_runExecutor(t){const e=(t,e)=>{0===this._state&&(j(e)?e.then(n,r):(this._state=t,this._value=e,this._executeHandlers()))},n=t=>{e(1,t)},r=t=>{e(2,t)};try{t(n,r)}catch(s){r(s)}}}function Wt(t,n,r,s){const o=r[s];if(!t||!o)return t;const i=o({...t},n);return e&&null===i&&f.log(`Event processor "${o.id||"?"}" dropped event`),j(i)?i.then(t=>Wt(t,n,r,s+1)):Wt(i,n,r,s+1)}function qt(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:p,attachments:l,propagationContext:f,transactionName:h,span:d}=e;Qt(t,"extra",n),Qt(t,"tags",r),Qt(t,"user",s),Qt(t,"contexts",o),t.sdkProcessingMetadata=W(t.sdkProcessingMetadata,a,2),i&&(t.level=i),h&&(t.transactionName=h),d&&(t.span=d),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),l.length&&(t.attachments=[...t.attachments,...l]),t.propagationContext={...t.propagationContext,...f}}function Qt(t,e,n){t[e]=W(t[e],n,1)}let Xt,Zt,te,ee;const ne=["user","level","extra","contexts","tags","fingerprint","propagationContext"]}}});
|