@lockerverse/react 0.2.227-dev.1 → 0.2.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATIONS.md +26 -77
- package/README.md +7 -0
- package/dist/auction-item.js +1 -1
- package/dist/auction-item.js.map +1 -1
- package/dist/embed/chunks/auction-payment-view-P4532RKB.js +9 -0
- package/dist/embed/chunks/chunk-DCANE7XH.js +1 -0
- package/dist/embed/chunks/chunk-FJ2J6F4G.js +2 -0
- package/dist/embed/chunks/chunk-FJ2J6F4G.js.LEGAL.txt +51 -0
- package/dist/embed/chunks/chunk-K5JAV66R.js +1 -0
- package/dist/embed/chunks/chunk-NI47XP5W.js +2 -0
- package/dist/embed/chunks/chunk-NI47XP5W.js.LEGAL.txt +12 -0
- package/dist/embed/chunks/lockerverse-auction-item-6SOREYVA.js +2 -0
- package/dist/embed/chunks/lockerverse-auction-item-6SOREYVA.js.LEGAL.txt +23 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js +6 -0
- package/dist/embed/chunks/telemetry-6KTBIZ2M.js.LEGAL.txt +1 -0
- package/dist/embed/lockerverse.js +11 -0
- package/dist/embed/lockerverse.js.LEGAL.txt +23 -0
- package/guides/auctions.md +1 -1
- package/guides/bookings.md +1 -1
- package/guides/browser-embed.md +120 -0
- package/guides/events.md +1 -1
- package/guides/integration.md +1 -1
- package/guides/payment-widgets.md +1 -1
- package/guides/signup.md +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import"./chunk-DCANE7XH.js";var _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,m=globalThis,q="10.69.0";function _t(){return K(m),m}function K(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||"10.69.0",e[q]=e["10.69.0"]||{}}function O(t,e,n=m){let r=n.__SENTRY__=n.__SENTRY__||{},s=r[q]=r["10.69.0"]||{};return s[t]||(s[t]=e())}var $t={};function gt(t){if(!("console"in m))return t();let e=m.console,n={},r=Object.keys($t);r.forEach(s=>{let i=$t[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function ze(){yt().enabled=!0}function Ye(){yt().enabled=!1}function de(){return yt().enabled}function Ke(...t){mt("log",...t)}function He(...t){mt("warn",...t)}function Je(...t){mt("error",...t)}function mt(t,...e){_&&de()&>(()=>{m.console[t](`Sentry Logger [${t}]:`,...e)})}function yt(){return _?O("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var f={enable:ze,disable:Ye,isEnabled:de,log:Ke,warn:He,error:Je},Ct=/\(error: (.*)\)/,Dt=/captureMessage|captureException/;function Ge(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{let i=[],o=n.split(`
|
|
2
|
+
`);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));let p=Ct.test(a)?a.replace(Ct,"$1"):a;if(!p.includes("Error: ")){for(let u of e){let l=u(p);if(l){i.push(l);break}}if(i.length>=50+s)break}}return Ve(i.slice(s))}}function Ve(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(T(e).function||"")&&e.pop(),e.reverse(),Dt.test(T(e).function||"")&&(e.pop(),Dt.test(T(e).function||"")&&e.pop()),e.slice(0,50).map(n=>({...n,filename:n.filename||T(e).filename,function:n.function||"?"}))}function T(t){return t[t.length-1]||{}}var X="<anonymous>";function Xe(t){try{return!t||typeof t!="function"?X:t.name||X}catch{return X}}var fe=Object.prototype.toString;function vt(t){switch(fe.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ge(t,Error)}}function P(t,e){return fe.call(t)===`[object ${e}]`}function he(t){return P(t,"ErrorEvent")}function Nt(t){return P(t,"DOMError")}function Ze(t){return P(t,"DOMException")}function et(t){return P(t,"String")}function bt(t){return typeof t=="object"&&!!t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function _e(t){return t===null||bt(t)||typeof t!="object"&&typeof t!="function"}function z(t){return P(t,"Object")}function St(t){return typeof t=="object"&&!!t}function H(t){return typeof Event<"u"&&ge(t,Event)}function tn(t){return P(t,"RegExp")}function A(t){return!!(t?.then&&typeof t.then=="function")}function ge(t,e){try{return t instanceof e}catch{return!1}}function me(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{_&&f.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function ye(t){if(vt(t))return{message:t.message,name:t.name,stack:t.stack,...jt(t)};if(H(t)){let{type:e,target:n,currentTarget:r,detail:s}=t;return{type:e,target:n,currentTarget:r,...s?{detail:s}:{},...jt(t)}}return t}function jt(t){return St(t)?Object.fromEntries(Object.entries(t)):{}}function en(t){let e=Object.keys(ye(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}var E;function J(t){if(E!==void 0)return E?E(t):t();let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=m;return e in n&&typeof n[e]=="function"?(E=n[e],E(t)):(E=null,t())}function Y(){return J(()=>Math.random())}function $(){return J(()=>Date.now())}var nn=Symbol.for("sentry.skipNormalization"),rn=Symbol.for("sentry.overrideNormalizationDepth");function sn(t){return!!t[nn]}function on(t){let e=t[rn];return typeof e=="number"?e:void 0}function b(t,e=100,n=1/0){try{return nt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ve(t,e=3,n=102400){let r=b(t,e);return ln(r)>n?ve(t,e-1,n):r}function nt(t,e,n=1/0,r=1/0,s=pn()){let[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let c=an(t,e);if(!c.startsWith("[object "))return c;if(sn(e))return e;let a=on(e),p=a===void 0?n:a;if(p===0)return c.replace("object ","");if(i(e))return"[Circular ~]";let u=e;if(u&&typeof u.toJSON=="function")try{return nt("",u.toJSON(),p-1,r,s)}catch{}let l=Array.isArray(e)?[]:{},h=0,d=ye(e);for(let g in d){if(!Object.prototype.hasOwnProperty.call(d,g))continue;if(h>=r){l[g]="[MaxProperties ~]";break}let y=d[g];l[g]=nt(g,y,p-1,r,s),h++}return o(e),l}function an(t,e){try{return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${Xe(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${cn(e)}]`}catch(n){return`**non-serializable** (${n})`}}function cn(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function un(t){return~-encodeURI(t).split(/%..|./).length}function ln(t){return un(JSON.stringify(t))}function pn(){let t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function rt(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function U(t,e,n=!1){return et(t)?tn(e)?e.test(t):et(e)?n?t===e:t.includes(e):typeof e=="function"&&e(t):!1}function dn(){let t=m;return t.crypto||t.msCrypto}var At;function fn(){return Y()*16}function v(t=dn()){try{if(t?.randomUUID)return J(()=>t.randomUUID()).replace(/-/g,"")}catch{}return At||="10000000100040008000100000000000",At.replace(/[018]/g,e=>(e^(fn()&15)>>e/4).toString(16))}function hn(t){return t.exception?.values?.[0]}function Rt(t,e,n){let r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||=e||"",i.type||=n||"Error"}function w(t,e){let n=hn(t);if(!n)return;let r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){let i={...s?.data,...e.data};n.mechanism.data=i}}function Lt(t){if(_n(t))return!0;try{me(t,"__sentry_captured__",!0)}catch{}return!1}function _n(t){try{return t.__sentry_captured__}catch{}}var be=1e3;function G(){return $()/be}function gn(){let{performance:t}=m;if(!t?.now||!t.timeOrigin)return G;let e=t.timeOrigin;return()=>(e+J(()=>t.now()))/be}var mn;function Se(){return(mn??=gn())()}function st(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||Se(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:v()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n: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),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function R(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;let r={...t};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=R(r[s],e[s],n-1));return r}function Mt(){return v()}function xe(){return v().substring(16)}function yn(t){try{let e=m.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Ee(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}var it="_sentrySpan";function Tt(t,e){e?me(t,it,yn(e)):delete t[it]}function Bt(t){return Ee(t[it])}var x=class ot{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Mt(),sampleRand:Y()}}clone(){let e=new ot;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Tt(e,Bt(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&st(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,{tags:r,attributes:s,extra:i,user:o,contexts:c,level:a,fingerprint:p=[],propagationContext:u,conversationId:l}=(n instanceof ot?n.getScopeData():z(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),p.length&&(this._fingerprint=p),u&&(this._propagationContext=u),l&&(this._conversationId=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Tt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mt(),sampleRand:Y()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:100;if(r<=0)return this;let s={timestamp:G(),...e,message:e.message?rt(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),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(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Bt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=R(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||v();if(!this._client)return _&&f.warn("No client configured on scope - will not capture exception!"),r;let s=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){let s=r?.event_id||v();if(!this._client)return _&&f.warn("No client configured on scope - will not capture message!"),s;let i=r?.syntheticException??Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){let r=e.event_id||n?.event_id||v();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(_&&f.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function vn(){return O("defaultCurrentScope",()=>new x)}function bn(){return O("defaultIsolationScope",()=>new x)}var Ft=t=>t instanceof Promise&&!t[ke],ke=Symbol("chained PromiseLike"),Sn=(t,e,n)=>{let r=t.then(s=>(e(s),s),s=>{throw n(s),s});return Ft(r)&&Ft(t)?r:xn(t,r)},xn=(t,e)=>{if(!e)return t;let n=!1;for(let r in t){if(r in e)continue;n=!0;let s=t[r];typeof s=="function"?Object.defineProperty(e,r,{value:(...i)=>s.apply(t,i),enumerable:!0,configurable:!0,writable:!0}):e[r]=s}return n&&Object.assign(e,{[ke]:!0}),e},En=class{constructor(t,e){let n;n=t||new x;let r;r=e||new x,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){let e=this._pushScope(),n;try{n=t(e)}catch(r){throw this._popScope(),r}return A(n)?Sn(n,()=>this._popScope(),()=>this._popScope()):(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(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function I(){let t=K(_t());return t.stack=t.stack||new En(vn(),bn())}function kn(t){return I().withScope(t)}function wn(t,e){let n=I();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Ut(t){return I().withScope(()=>t(I().getIsolationScope()))}function In(){return{withIsolationScope:Ut,withScope:kn,withSetScope:wn,withSetIsolationScope:(t,e)=>Ut(e),getCurrentScope:()=>I().getScope(),getIsolationScope:()=>I().getIsolationScope()}}function we(t){let e=K(t);return e.acs?e.acs:In()}function On(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&Object.keys(t).includes("value")}function Pn(t,e){let{value:n,unit:r}=On(t)?t:{value:t,unit:void 0},s=$n(n),i=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...i};if(!e||e==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...i}}function Qt(t,e=!1){let n={};for(let[r,s]of Object.entries(t??{})){let i=Pn(s,e);i&&(n[r]=i)}return n}function $n(t){if(Array.isArray(t))return{value:t,type:"array"};let e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function Ie(){return we(_t()).getCurrentScope()}function Cn(){return we(_t()).getIsolationScope()}function Dn(){return O("globalScope",()=>new x)}function xt(){return Ie().getClient()}function Nn(t){let{traceId:e,parentSpanId:n,propagationSpanId:r}=t.getPropagationContext(),s={trace_id:e,span_id:r||xe()};return n&&(s.parent_span_id=n),s}function at(t){let e=t;return{scope:e._sentryScope,isolationScope:Ee(e._sentryIsolationScope)}}function jn(t){let e=An(t);if(!e)return;let n=Object.entries(e).reduce((r,[s,i])=>{if(s.startsWith("sentry-")){let o=s.slice(7);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function An(t){if(!(!t||!et(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Wt(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Wt(t)}function Wt(t){return t.split(",").map(e=>{let n=e.indexOf("=");return n===-1?[]:[e.slice(0,n),e.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}var Rn=/^o(\d+)\./,Ln=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Mn(t){return t==="http"||t==="https"}function L(t,e=!1){let{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function Tn(t){let e=Ln.exec(t);if(!e){gt(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,s="",i="",o="",c=""]=e.slice(1),a="",p=c,u=p.split("/");if(u.length>1&&(a=u.slice(0,-1).join("/"),p=u.pop()),p){let l=p.match(/^\d+/);l&&(p=l[0])}return Oe({host:i,pass:s,path:a,projectId:p,port:o,protocol:n,publicKey:r})}function Oe(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Bn(t){if(!_)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>!t[s]&&(f.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Mn(r)?e&&isNaN(parseInt(e,10))?(f.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(f.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(f.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Fn(t){return t.match(Rn)?.[1]}function Un(t){let e=t.getOptions(),{host:n}=t.getDsn()||{},r;return e.orgId?r=String(e.orgId):n&&(r=Fn(n)),r}function Qn(t){let e=typeof t=="string"?Tn(t):Oe(t);if(!(!e||!Bn(e)))return e}function Wn(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}var qn=!1;function zn(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:Et(t).parent_span_id,i=at(t).scope;return{parent_span_id:s,span_id:r?i?.getPropagationContext().propagationSpanId||xe():e,trace_id:n}}function Yn(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===1,attributes:i,...s}))}function qt(t){return typeof t=="number"?zt(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?zt(t.getTime()):Se()}function zt(t){return t>9999999999?t/1e3:t}function Et(t){if(Gn(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(Jn(t)){let{attributes:r,startTime:s,name:i,endTime:o,status:c,links:a}=t;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:Kn(t),start_timestamp:qt(s),timestamp:qt(o)||void 0,status:Xn(c),op:r["sentry.op"],origin:r["sentry.origin"],links:Yn(a)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function Kn(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Hn(t){return{...t,attributes:Qt(t.attributes),links:t.links?.map(e=>({...e,attributes:Qt(e.attributes)}))}}function Jn(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Gn(t){return typeof t.getSpanJSON=="function"}function Vn(t){let{traceFlags:e}=t.spanContext();return e===1}function Xn(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"internal_error"}var Pe=Zn;function Zn(t){return t._sentryRootSpan||t}function Yt(){qn||=(gt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function Kt(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||xt()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function Ht(t){f.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Jt(t,e){if(!e?.length)return!1;for(let n of e){if(nr(n)){if(t.description&&U(t.description,n))return _&&Ht(t),!0;continue}let r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;let s=!n.name||t.description&&U(t.description,n.name),i=!n.op||t.op&&U(t.op,n.op),o=!n.attributes||Object.entries(n.attributes).every(([c,a])=>tr(t.attributes?.[c],a));if(s&&i&&o)return _&&Ht(t),!0}return!1}function tr(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?U(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t===e}function er(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let s of t)s.parent_span_id===r&&(s.parent_span_id=n)}function nr(t){return typeof t=="string"||t instanceof RegExp}var rr=Symbol.for("sentry.nonRecordingSpan");function sr(t){return!!t&&t[rr]===!0}function $e(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||"production",release:n.release,public_key:r,trace_id:t,org_id:Un(e)};return e.emit("createDsc",s),s}function Ce(t,e){let n=e.getPropagationContext();return n.dsc||$e(n.traceId,t)}function ir(t){let e=xt();if(!e)return{};let n=Pe(t),r=Et(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s["sentry.sample_rate"]??s["sentry.previous_trace_sample_rate"];function c(D){return(typeof o=="number"||typeof o=="string")&&(D.sample_rate=`${o}`),D}let a=n._frozenDsc;if(a)return c(a);let p=sr(n),u=p&&n.dropReason==="ignored";if(p&&(!Kt(e.getOptions())||u)){let D=at(n).scope;if(D){let Pt={...Ce(e,D)};return u&&(Pt.sampled="false"),c(Pt)}}let l=i?.get("sentry.dsc"),h=l&&jn(l);if(h)return c(h);let d=$e(t.spanContext().traceId,e),g=s["sentry.source"]??s["sentry.segment.name.source"],y=r.description;return g!=="url"&&y&&(d.transaction=y),Kt()&&(d.sampled=String(Vn(n)),d.sample_rand=i?.get("sentry.sample_rand")??at(n).scope?.getPropagationContext().sampleRand.toString()),c(d),e.emit("createDsc",d,n),d}function or(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function C(t,e=[]){return[t,e]}function Gt(t,e){let[n,r]=t;return[n,[...r,e]]}function ct(t,e){let n=t[1];for(let r of n){let s=r[0].type;if(e(r,s))return!0}return!1}function ar(t,e){return ct(t,(n,r)=>e.includes(r))}function ut(t){let e=K(m);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function cr(t){let[e,n]=t,r=JSON.stringify(e);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[ut(r),i]:r.push(typeof i=="string"?ut(i):i)}for(let i of n){let[o,c]=i;if(s(`
|
|
3
|
+
${JSON.stringify(o)}
|
|
4
|
+
`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let a;try{a=JSON.stringify(c)}catch{a=JSON.stringify(b(c))}s(a)}}return typeof r=="string"?r:ur(r)}function ur(t){let e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e),r=0;for(let s of t)n.set(s,r),r+=s.length;return n}function lr(t){let e=typeof t.data=="string"?ut(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var De={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function pr(t){return t in De}function Vt(t){return pr(t)?De[t]:t}function Ne(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function dr(t,e,n,r){let s=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date($()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:L(r)},...s&&{trace:s}}}function fr(t,e){if(!e)return t;let n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function hr(t,e,n,r){let s=Ne(n);return C({sent_at:new Date($()).toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:L(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}function _r(t,e,n,r){let s=Ne(n),i=t.type&&t.type!=="replay_event"?t.type:"event";fr(t,n?.sdk);let o=dr(t,s,r,e);return delete t.sdkProcessingMetadata,C(o,[[{type:i},t]])}function gr(t){return t.getOptions().traceLifecycle==="stream"}function mr(t,e){let{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;vr(t,e),r&&xr(t,r),Er(t,n),br(t,s),Sr(t,i)}function Xt(t,e){let{extra:n,tags:r,attributes:s,user:i,contexts:o,level:c,sdkProcessingMetadata:a,breadcrumbs:p,fingerprint:u,eventProcessors:l,attachments:h,propagationContext:d,transactionName:g,span:y}=e;N(t,"extra",n),N(t,"tags",r),N(t,"attributes",s),N(t,"user",i),N(t,"contexts",o),t.sdkProcessingMetadata=R(t.sdkProcessingMetadata,a,2),c&&(t.level=c),g&&(t.transactionName=g),y&&(t.span=y),p.length&&(t.breadcrumbs=[...t.breadcrumbs,...p]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),h.length&&(t.attachments=[...t.attachments,...h]),t.propagationContext={...t.propagationContext,...d}}function N(t,e,n){t[e]=R(t[e],n,1)}function yr(t,e){let n=Dn().getScopeData();return t&&Xt(n,t.getScopeData()),e&&Xt(n,e.getScopeData()),n}function vr(t,e){let{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=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(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),c&&t.type!=="transaction"&&(t.transaction=c)}function br(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Sr(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function xr(t,e){t.contexts={trace:zn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:ir(e),...t.sdkProcessingMetadata};let n=Et(Pe(e)).description;n&&!t.transaction&&t.type==="transaction"&&(t.transaction=n)}function Er(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}function M(t){return new je(e=>{e(t)})}function kt(t){return new je((e,n)=>{n(t)})}var je=class lt{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,n){return new lt((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new lt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===0)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||=(this._state===1&&n[1](this._value),this._state===2&&n[2](this._value),!0)})}_runExecutor(e){let n=(i,o)=>{if(this._state===0){if(A(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(1,i)},s=i=>{n(2,i)};try{e(r,s)}catch(i){s(i)}}};function kr(t,e,n,r=0){try{let s=pt(e,n,t,r);return A(s)?s:M(s)}catch(s){return kt(s)}}function pt(t,e,n,r){let s=n[r];if(!t||!s)return t;let i=s({...t},e);return _&&i===null&&f.log(`Event processor "${s.id||"?"}" dropped event`),A(i)?i.then(o=>pt(o,e,n,r+1)):pt(i,e,n,r+1)}var k,Zt,te,S;function wr(t){let e=m._sentryDebugIds,n=m._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(S&&r.length===Zt&&s.length===te)return S;Zt=r.length,te=s.length,S={},k||={};let i=(o,c)=>{for(let a of o){let p=c[a],u=k?.[a];if(u&&S&&p)S[u[0]]=p,k&&(k[a]=[u[0],p]);else if(p){let l=t(a);for(let h=l.length-1;h>=0;h--){let d=l[h]?.filename;if(d&&S&&k){S[d]=p,k[a]=[d,p];break}}}}};return e&&i(r,e),n&&i(s,n),S}function Ir(t,e,n,r,s,i){let{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||v(),timestamp:e.timestamp||G()},p=n.integrations||t.integrations.map(y=>y.name);Or(a,t),Cr(a,p),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&Pr(a,t.stackParser);let u=Nr(r,n.captureContext);n.mechanism&&w(a,n.mechanism);let l=s?s.getEventProcessors():[],h=yr(i,u),d=[...n.attachments||[],...h.attachments];d.length&&(n.attachments=d),mr(a,h);let g=[...l,...h.eventProcessors];return(n.data&&n.data.__sentry__===!0?M(a):kr(g,a,n)).then(y=>(y&&$r(y),typeof o=="number"&&o>0?Dr(y,o,c):y))}function Or(t,e){let{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||"production",!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);let o=t.request;o?.url&&i&&(o.url=rt(o.url,i)),i&&t.exception?.values?.forEach(c=>{c.value&&=rt(c.value,i)})}function Pr(t,e){let n=wr(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function $r(t){let e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Cr(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Dr(t,e,n){if(!t)return null;let r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))},...t.user&&{user:b(t.user,e,n)},...t.contexts&&{contexts:b(t.contexts,e,n)},...t.extra&&{extra:b(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=b(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:b(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=b(t.contexts.flags,3,n)),r}function Nr(t,e){if(!e)return t;let n=t?t.clone():new x;return n.update(e),n}function Ae(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}function jr(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Ar(t){return`${jr(t)}${t.projectId}/envelope/`}function Rr(t,e){let n={sentry_version:"7"};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Lr(t,e,n){return e||`${Ar(t)}?${Rr(t,n)}`}var ee=[];function Mr(t,e){let n={};return e.forEach(r=>{r?.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&Re(t,r,n)}),n}function ne(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Re(t,e,n){if(n[e.name]){_&&f.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!ee.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),ee.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),s=Object.assign((i,o)=>r(i,o,t),{id:e.name});t.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{let s=e[r];typeof s=="function"&&t.on(r,i=>s.call(e,i,t))}),_&&f.log(`Integration installed: ${e.name}`)}function Tr(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Br(){return"npm"}function Fr(){return!Tr()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function wt(){return typeof window<"u"&&(!Fr()||Ur())}function Ur(){return m.process?.type==="renderer"}function Qr(t,e){let n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Wr(t,e,n,r,s){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=L(r)),C(i,[Qr(t,s)])}function qr(t,e){let n=e??zr(t)??[];if(n.length===0)return;let r=t.getOptions(),s=Wr(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Le().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(s)}function zr(t){return Le().get(t)}function Le(){return O("clientToLogBufferMap",()=>new WeakMap)}function Yr(t,e){let n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function Kr(t,e,n,r,s){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=L(r)),C(i,[Yr(t,s)])}function Hr(t,e){let n=e??Jr(t)??[];if(n.length===0)return;let r=t.getOptions(),s=Kr(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);Me().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(s)}function Jr(t){return Me().get(t)}function Me(){return O("clientToMetricBufferMap",()=>new WeakMap)}function Gr(t){return Hn({trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links})}function Vr(t,e){if(t.type!=="transaction"||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||e.getOptions().streamGenAiSpans===!1||gr(e))return;let n=[],r=[];for(let i of t.spans)i.op?.startsWith("gen_ai.")?n.push(Gr(i)):r.push(i);if(n.length===0)return;t.spans=r;let s=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...wt()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}var It=Symbol.for("SentryBufferFullError");function Ot(t=100){let e=new Set;function n(){return e.size<t}function r(o){e.delete(o)}function s(o){if(!n())return kt(It);let c=o();return e.add(c),c.then(()=>r(c),()=>r(c)),c}function i(o){if(!e.size)return M(!0);let c=Promise.allSettled(Array.from(e)).then(()=>!0);if(!o)return c;let a=[c,new Promise(p=>Ae(setTimeout(()=>p(!1),o)))];return Promise.race(a)}return{get $(){return Array.from(e)},add:s,drain:i}}function Xr(t,e=$()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function Zr(t,e){return t[e]||t.all||0}function ts(t,e,n=$()){return Zr(t,e)>n}function es(t,{statusCode:e,headers:n},r=$()){let s={...t},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(let c of i.trim().split(",")){let[a,p,,,u]=c.split(":",5),l=parseInt(a,10),h=(isNaN(l)?60:l)*1e3;if(!p)s.all=r+h;else for(let d of p.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[d]=r+h):s[d]=r+h}else o?s.all=r+Xr(o,r):e===429&&(s.all=r+6e4);return s}function ns(t,e,n=Ot(t.bufferSize||64)){let r={},s=o=>n.drain(o);function i(o){let c=[];if(ct(o,(u,l)=>{let h=Vt(l);ts(r,h)?t.recordDroppedEvent("ratelimit_backoff",h):c.push(u)}),c.length===0)return Promise.resolve({});let a=C(o[0],c),p=u=>{if(ar(a,["client_report"])){_&&f.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}ct(a,(l,h)=>{t.recordDroppedEvent(u,Vt(h))})};return n.add(()=>e({body:cr(a)}).then(u=>u.statusCode===413?(_&&f.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error"),u):(_&&u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&f.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=es(r,u),u),u=>{throw p("network_error"),_&&f.error("Encountered error running transport request:",u),u})).then(u=>u,u=>{if(u===It)return _&&f.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:s}}function rs(t,e,n){let r=[{type:"client_report"},{timestamp:n||G(),discarded_events:t}];return C(e?{dsn:e}:{},[r])}function ss(t){let e=[];t.message&&e.push(t.message);try{let n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function is(t){let{trace_id:e,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:c}=t.contexts?.trace??{};return{data:o??{},description:t.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:s,timestamp:t.timestamp,trace_id:e??"",origin:i,profile_id:o?.["sentry.profile_id"],exclusive_time:o?.["sentry.exclusive_time"],measurements:t.measurements,is_segment:!0}}function os(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{"sentry.profile_id":t.profile_id},...t.exclusive_time&&{"sentry.exclusive_time":t.exclusive_time}}}},measurements:t.measurements}}var B=["forwarded","-ip","remote-","via","-user"];function as(t){return t===!0?{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:7}:{userInfo:!1,cookies:{deny:B},httpHeaders:{request:{deny:B},response:{deny:B}},httpBodies:[],urlQueryParams:{deny:B},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}var cs={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};function us(t){let e=t.dataCollection==null?as(t.sendDefaultPii):cs,n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},httpBodies:n.httpBodies??e.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??e.urlQueryParams,graphQL:{document:n.graphQL?.document??e.graphQL.document,variables:n.graphQL?.variables??e.graphQL.variables},genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs},databaseQueryData:n.databaseQueryData??e.databaseQueryData,stackFrameVariables:n.stackFrameVariables??e.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}var re="Not capturing exception because it's already been captured.",se="Discarded session because of missing or non-string release",Te=Symbol.for("SentryInternalError"),Be=Symbol.for("SentryDoNotSendEventError");function Q(t){return{message:t,[Te]:!0}}function Z(t){return{message:t,[Be]:!0}}function ie(t){return St(t)&&Te in t}function oe(t){return St(t)&&Be in t}function ae(t,e,n,r,s){let i=0,o,c=!1;t.on(n,()=>{i=0,clearTimeout(o),c=!1}),t.on(e,a=>{if(i+=r(a),i>=8e5)s(t);else if(!c){let p=t.getOptions()._flushInterval??5e3;p>0&&(c=!0,o=Ae(setTimeout(()=>{s(t)},p)))}}),t.on("flush",()=>{s(t)})}var ls=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ot(t.transportOptions?.bufferSize??64),this._dataCollection=us(t),t.dsn?this._dsn=Qn(t.dsn):_&&f.warn("No DSN provided, client will not send events."),this._dsn){let e=Lr(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&ae(this,"afterCaptureLog","flushLogs",hs,qr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&ae(this,"afterCaptureMetric","flushMetrics",fs,Hr)}captureException(t,e,n){let r=v();if(Lt(t))return _&&f.log(re),r;let s={event_id:r,...e};return this._process(()=>this.eventFromException(t,s).then(i=>this._captureEvent(i,s,n)).then(i=>i),"error"),s.event_id}captureMessage(t,e,n,r){let s={event_id:v(),...n},i=bt(t)?t:String(t),o=_e(t),c=o?this.eventFromMessage(i,e,s):this.eventFromException(t,s);return this._process(()=>c.then(a=>this._captureEvent(a,s,r)),o?"unknown":"error"),s.event_id}captureEvent(t,e,n){let r=v();if(e?.originalException&&Lt(e.originalException))return _&&f.log(re),r;let s={event_id:r,...e},i=t.sdkProcessingMetadata||{},o=i.capturedSpanScope,c=i.capturedSpanIsolationScope,a=ce(t.type);return this._process(()=>this._captureEvent(t,s,o||n,c),a),s.event_id}captureSession(t){this.sendSession(t),st(t,{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(t){let e=this._transport;if(this.emit("flush"),!e)return!0;let n=await this._isClientDoneProcessing(t),r=await e.flush(t);return n&&r}async close(t){let e=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),e}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){let e=this._integrations[t.name];!e&&t.beforeSetup&&t.beforeSetup(this),Re(this,t,this._integrations),e||ne(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=Vr(t,this),r=_r(t,this._dsn,this._options._metadata,this._options.tunnel);for(let s of e.attachments||[])r=Gt(r,lr(s));n&&(r=Gt(r,n)),this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){let{release:e,environment:n="production"}=this._options;if("aggregates"in t){let s=t.attrs||{};if(!s.release&&!e){_&&f.warn(se);return}s.release=s.release||e,s.environment=s.environment||n,t.attrs=s}else{if(!t.release&&!e){_&&f.warn(se);return}t.release=t.release||e,t.environment=t.environment||n}this.emit("beforeSendSession",t);let r=hr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(t,e,n=1){if(this._options.sendClientReports){let r=`${t}:${e}`;_&&f.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(t,e){let n=this._hooks[t]=this._hooks[t]||new Set,r=(...s)=>e(...s);return n.add(r),()=>{n.delete(r)}}emit(t,...e){let n=this._hooks[t];n&&n.forEach(r=>r(...e))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(e){return _&&f.error("Error while sending envelope:",e),{}}return _&&f.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Mr(this,t),ne(this,t)}_updateSessionFromEvent(t,e){let n=e.level==="fatal",r=!1,s=e.exception?.values;if(s){r=!0,n=!1;for(let o of s)if(o.mechanism?.handled===!1){n=!0;break}}let i=t.status==="ok";(i&&t.errors===0||i&&n)&&(st(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}async _isClientDoneProcessing(t){let e=0;for(;!t||e<t;){if(await new Promise(n=>setTimeout(n,1)),!this._numProcessing)return!0;e++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,e,n,r){let s=this.getOptions(),i=this.getIntegrationNames();return!e.integrations&&i.length&&(e.integrations=i),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),Ir(s,t,e,n,this,r).then(o=>(o===null||(this.emit("postprocessEvent",o,e),o.contexts={trace:{...o.contexts?.trace,...Nn(n)},...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:Ce(this,n),...o.sdkProcessingMetadata}),o))}_captureEvent(t,e={},n=Ie(),r=Cn()){return _&&dt(t)&&f.log(`Captured error event \`${ss(t)[0]||"<unknown>"}\``),this._processEvent(t,e,n,r).then(s=>s.event_id,s=>{_&&(oe(s)?f.log(s.message):ie(s)?f.warn(s.message):f.warn(s))})}_processEvent(t,e,n,r){let s=this.getOptions(),{sampleRate:i}=s,o=Fe(t),c=dt(t),a=`before send for type \`${t.type||"error"}\``,p=i===void 0?void 0:Wn(i);if(c&&typeof p=="number"&&Y()>p)return this.recordDroppedEvent("sample_rate","error"),kt(Z(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));let u=ce(t.type);return this._prepareEvent(t,e,n,r).then(l=>{if(l===null)throw this.recordDroppedEvent("event_processor",u),Z("An event processor returned `null`, will not send event.");return e.data?.__sentry__===!0?l:ps(ds(this,s,l,e),a)}).then(l=>{if(l===null){if(this.recordDroppedEvent("before_send",u),o){let g=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",g)}throw Z(`${a} returned \`null\`, will not send event.`)}let h=n.getSession()||r.getSession();if(c&&h&&this._updateSessionFromEvent(h,l),o){let g=(l.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(l.spans?l.spans.length:0);g>0&&this.recordDroppedEvent("before_send","span",g)}let d=l.transaction_info;return o&&d&&l.transaction!==t.transaction&&(l.transaction_info={...d,source:"custom"}),this.sendEvent(l,e),l}).then(null,l=>{throw oe(l)||ie(l)?l:(this.captureException(l,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:l}),Q(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
5
|
+
Reason: ${l}`))})}_process(t,e){this._numProcessing++,this._promiseBuffer.add(t).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===It&&this.recordDroppedEvent("queue_overflow",e),n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([e,n])=>{let[r,s]=e.split(":");return{reason:r,category:s,quantity:n}})}_flushOutcomes(){_&&f.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){_&&f.log("No outcomes to send");return}if(!this._dsn){_&&f.log("No dsn provided, will not send outcomes");return}_&&f.log("Sending outcomes:",t);let e=rs(t,this._options.tunnel&&L(this._dsn));this.sendEnvelope(e)}};function ce(t){return t==="replay_event"?"replay":t||"error"}function ps(t,e){let n=`${e} must return \`null\` or a valid event.`;if(A(t))return t.then(r=>{if(!z(r)&&r!==null)throw Q(n);return r},r=>{throw Q(`${e} rejected with ${r}`)});if(!z(t)&&t!==null)throw Q(n);return t}function ds(t,e,n,r){let{beforeSend:s,beforeSendTransaction:i,ignoreSpans:o}=e,c=!or(e.beforeSendSpan)&&e.beforeSendSpan,a=n;if(dt(a)&&s)return s(a,r);if(Fe(a)){if(c||o){let p=is(a);if(o?.length&&Jt({description:p.description,op:p.op,attributes:p.data},o))return null;if(c){let u=c(p);u?a=R(n,os(u)):Yt()}if(a.spans){let u=[],l=a.spans;for(let d of l){if(o?.length&&Jt({description:d.description,op:d.op,attributes:d.data},o)){er(l,d);continue}if(c){let g=c(d);g?u.push(g):(Yt(),u.push(d))}else u.push(d)}let h=a.spans.length-u.length;h&&t.recordDroppedEvent("before_send","span",h),a.spans=u}}if(i){if(a.spans){let p=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:p}}return i(a,r)}}return a}function dt(t){return t.type===void 0}function Fe(t){return t.type==="transaction"}function fs(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+Ue(t.attributes)}function hs(t){let e=0;return t.message&&(e+=t.message.length*2),e+Ue(t.attributes)}function Ue(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*ue(n[0]):_e(n)?e+=ue(n):e+=100}),e}function ue(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function _s(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function gs(t,e,n=[e],r="npm"){let s=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${e}`,s.packages=n.map(i=>({name:`${r}:@sentry/${i}`,version:q})),s.version=q)}function ms(t){return vt(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function le(t){return ms(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function ys(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}var j=m;function Qe(t,e){let n=V(t,e),r={type:Es(e),value:ks(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function vs(t,e,n,r){let s=xt()?.getOptions().normalizeDepth,i=Cs(e),o={__serialized__:ve(e,s)};if(i)return{exception:{values:[Qe(t,i)]},extra:o};let c={exception:{values:[{type:H(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ps(e,{isUnhandledRejection:r})}]},extra:o};if(n){let a=V(t,n);a.length&&(c.exception.values[0].stacktrace={frames:a})}return c}function tt(t,e){return{exception:{values:[Qe(t,e)]}}}function V(t,e){let n=e.stacktrace||e.stack||"",r=Ss(e),s=xs(e);try{return t(n,r,s)}catch{}return[]}var bs=/Minified React error #\d+;/i;function Ss(t){return t&&bs.test(t.message)?1:0}function xs(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function We(t){return typeof WebAssembly<"u"&&WebAssembly.Exception!==void 0&&t instanceof WebAssembly.Exception}function Es(t){let e=t?.name;return!e&&We(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function ks(t){let e=t?.message;return We(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?le(e.error):le(t):"No error message"}function ws(t,e,n,r){let s=Os(t,e,n?.syntheticException||void 0,r);return w(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),M(s)}function Is(t,e,n="info",r,s){let i=ft(t,e,r?.syntheticException||void 0,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),M(i)}function Os(t,e,n,r,s){let i;if(he(e)&&e.error)return tt(t,e.error);if(Nt(e)||Ze(e)){let o=e;if("stack"in e){i=tt(t,e);let c=i.exception?.values?.[0];if(r&&n&&c&&!c.stacktrace){let a=V(t,n);a.length&&(c.stacktrace={frames:a},w(i,{synthetic:!0}))}}else{let c=o.name||(Nt(o)?"DOMError":"DOMException"),a=o.message?`${c}: ${o.message}`:c;i=ft(t,a,n,r),Rt(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return vt(e)?tt(t,e):z(e)||H(e)?(i=vs(t,e,n,s),w(i,{synthetic:!0}),i):(i=ft(t,e,n,r),Rt(i,`${e}`,void 0),w(i,{synthetic:!0}),i)}function ft(t,e,n,r){let s={};if(r&&n){let i=V(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]}),w(s,{synthetic:!0})}if(bt(e)){let{__sentry_template_string__:i,__sentry_template_values__:o}=e;return s.logentry={message:i,params:o},s}return s.message=e,s}function Ps(t,{isUnhandledRejection:e}){let n=en(t),r=e?"promise rejection":"exception";return he(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:H(t)?`Event \`${$s(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function $s(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Cs(t){return Object.values(t).find(e=>e instanceof Error)}var Ds=class extends ls{constructor(t){let e=Ns(t);gs(e,"browser",["browser"],j.SENTRY_SDK_SOURCE||Br()),super(e);let{userInfo:n}=this.getDataCollectionOptions();e._metadata?.sdk&&(e._metadata.sdk.settings={infer_ip:n?"auto":"never",...e._metadata.sdk.settings});let{sendClientReports:r}=this._options;j.document&&j.document.addEventListener("visibilitychange",()=>{j.document.visibilityState==="hidden"&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",_s)}eventFromException(t,e){return ws(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Is(this._options.stackParser,t,e,n,this._options.attachStacktrace)}_prepareEvent(t,e,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n,r)}};function Ns(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:j.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}var js=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,F=m,W={};function As(t){let e=W[t];if(e)return e;let n=F[t];if(ys(n))return W[t]=n.bind(F);let r=F.document;if(r&&typeof r.createElement=="function")try{let s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);let i=s.contentWindow;i?.[t]&&(n=i[t]),r.head.removeChild(s)}catch(s){js&&f.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&(W[t]=n.bind(F))}function Rs(t){W[t]=void 0}function Ls(t,e=As("fetch")){let n=0,r=0;async function s(i){let o=i.body.length;n+=o,r++;let c={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{let a=await e(t.url,c);return{statusCode:a.status,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")}}}catch(a){throw Rs("fetch"),a}finally{n-=o,r--}}return ns(t,s,Ot(t.bufferSize||40))}function ht(t,e,n,r){let s={filename:t,function:e==="<anonymous>"?"?":e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}var Ms=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ts=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Bs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Fs=/at (.+?) ?\(data:(.+?),/,Us=[30,t=>{let e=t.match(Fs);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};let n=Ms.exec(t);if(n){let[,s,i,o]=n;return ht(s,"?",+i,+o)}let r=Ts.exec(t);if(r){if(r[2]?.indexOf("eval")===0){let o=Bs.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}let[s,i]=qe(r[1]||"?",r[2]);return ht(i,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Qs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ws=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,qs=Ge(Us,[50,t=>{let e=Qs.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let s=Ws.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let n=e[3],r=e[1]||"?";return[r,n]=qe(r,n),ht(n,r,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}]),qe=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")===-1?"?":t.split("@")[0],n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},pe=new Map;function zs(t){if(!t)return t;try{let e=new URL(t);return e.username="",e.password="",e.search="",e.hash="",e.toString()}catch{return t.replace(/[?#][^\s)]*/g,"")}}function Ys(t){Reflect.deleteProperty(t,"breadcrumbs"),Reflect.deleteProperty(t,"request"),Reflect.deleteProperty(t,"user");for(let e of t.exception?.values??[])for(let n of e.stacktrace?.frames??[]){let r=zs(n.filename);r&&(n.filename=r)}return t}function Ks(t,e,n){let r=`${e}:${t}`,s=pe.get(r);if(s)return s;let i=new Ds({beforeSend:Ys,dsn:t,environment:e,integrations:[],release:`lockerverse-sdk@${n}`,sendDefaultPii:!1,stackParser:qs,transport:Ls});return i.init(),pe.set(r,i),i}function Hs({context:t,contextName:e,dsn:n,environment:r,error:s}){try{let i=new x;i.setClient(Ks(n,r,s.sdkVersion)),i.setTags({"sdk.code":s.code,"sdk.operation":s.operation,"sdk.version":s.sdkVersion,source:"lockerverse-sdk"}),s.failureKind&&i.setTag("sdk.failure_kind",s.failureKind),i.setContext(e,t),i.captureException(s)}catch{}}export{Hs as captureSdkError};
|
|
6
|
+
/*! For license information please see telemetry-6KTBIZ2M.js.LEGAL.txt */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! __SENTRY_SDK_SOURCE__ */
|