@protobase/ui 0.12.4 → 0.12.6
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/dist/app/app.js +5 -0
- package/dist/app/error-reporting.js +25 -0
- package/dist/app/pages/custom-boundary.js +4 -0
- package/dist/assistant-dock/widget-view.js +4 -0
- package/dist/data/meta-data.d.ts +5 -0
- package/dist/data/use-meta.js +1 -0
- package/dist/package.js +1 -1
- package/dist/shell/assets/app-DRkDxaX2.js +65 -0
- package/dist/shell/assets/{index-uIZKnNIY.js → index--KkbQgIT.js} +1 -1
- package/dist/shell/assets/prod-YZ9ZMG1O.js +15 -0
- package/dist/shell/assets/{shared-protobase-ui-DDq8y6_Q.js → shared-protobase-ui-DQxQC_dF.js} +1 -1
- package/dist/shell/index.html +3 -3
- package/dist/shell/protobase.shell.json +1 -1
- package/package.json +5 -4
- package/dist/shell/assets/app-C1uXjaoy.js +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{V as r,t as i}from"./app-C1uXjaoy.js";import{t as a}from"./react-Cvdyeg_0.js";import{t as o}from"./jsx-runtime-NZYk81nU.js";import{t as s}from"./react-dom-B-VxWsjA.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var c=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,oe());else{var t=n(l);t!==null&&le(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,ie=-1;function ae(){return g?!0:!(e.unstable_now()-ie<re)}function x(){if(g=!1,te){var t=e.unstable_now();ie=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ae());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():te=!1}}}var oe;if(typeof y==`function`)oe=function(){y(x)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=x,oe=function(){ce.postMessage(null)}}else oe=function(){_(x,0)};function le(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,le(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,oe()))),r},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),l=n(((e,t)=>{t.exports=c()})),u=n((e=>{var t=l(),n=a(),r=s();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var ee=null,te=null;function ne(e,t,n){return e===n||e===t&&(ee=e,!0)}function re(e,t,n){return e===n?(te=e,!1):e===t&&(te!==null&&(ee=e),!0)}function ie(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ae(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var x=Object.assign,oe=Symbol.for(`react.element`),se=Symbol.for(`react.transitional.element`),ce=Symbol.for(`react.portal`),le=Symbol.for(`react.fragment`),ue=Symbol.for(`react.strict_mode`),de=Symbol.for(`react.profiler`),fe=Symbol.for(`react.consumer`),pe=Symbol.for(`react.context`),me=Symbol.for(`react.forward_ref`),he=Symbol.for(`react.suspense`),ge=Symbol.for(`react.suspense_list`),_e=Symbol.for(`react.memo`),ve=Symbol.for(`react.lazy`),ye=Symbol.for(`react.activity`),be=Symbol.for(`react.legacy_hidden`),xe=Symbol.for(`react.memo_cache_sentinel`),Se=Symbol.for(`react.view_transition`),Ce=Symbol.for(`react.recoverable`),we=Symbol.iterator;function Te(e){return typeof e!=`object`||!e?null:(e=we&&e[we]||e[`@@iterator`],typeof e==`function`?e:null)}var Ee=Symbol.for(`react.client.reference`);function De(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case le:return`Fragment`;case de:return`Profiler`;case ue:return`StrictMode`;case he:return`Suspense`;case ge:return`SuspenseList`;case ye:return`Activity`;case Se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ce:return`Portal`;case pe:return e.displayName||`Context`;case fe:return(e._context.displayName||`Context`)+`.Consumer`;case me:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case _e:return t=e.displayName||null,t===null?De(e.type)||`Memo`:t;case ve:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Oe=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ke={pending:!1,data:null,method:null,action:null},Ae=[],je=-1;function Me(e){return{current:e}}function w(e){0>je||(e.current=Ae[je],Ae[je]=null,je--)}function T(e,t){je++,Ae[je]=e.current,e.current=t}var Ne=Me(null),Pe=Me(null),Fe=Me(null),Ie=Me(null);function Le(e,t){switch(T(Fe,t),T(Pe,e),T(Ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(Ne),T(Ne,e)}function Re(){w(Ne),w(Pe),w(Fe)}function ze(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,T(Ie,e)),t=Ne.current;var n=dp(t,e.type);t!==n&&(T(Pe,e),T(Ne,n))}function Be(e){Pe.current===e&&(w(Ne),w(Pe)),Ie.current===e&&(w(Ie),sh._currentValue=ke)}var Ve,He;function Ue(e){if(Ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ve=t&&t[1]||``,He=-1<e.stack.indexOf(`
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{V as r,t as i}from"./app-DRkDxaX2.js";import{t as a}from"./react-Cvdyeg_0.js";import{t as o}from"./jsx-runtime-NZYk81nU.js";import{t as s}from"./react-dom-B-VxWsjA.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var c=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,te||(te=!0,oe());else{var t=n(l);t!==null&&le(ee,t.startTime-e)}}}var te=!1,ne=-1,re=5,ie=-1;function ae(){return g?!0:!(e.unstable_now()-ie<re)}function x(){if(g=!1,te){var t=e.unstable_now();ie=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ne),ne=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ae());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():te=!1}}}var oe;if(typeof y==`function`)oe=function(){y(x)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=x,oe=function(){ce.postMessage(null)}}else oe=function(){_(x,0)};function le(t,n){ne=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):re=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ne),ne=-1):h=!0,le(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,te||(te=!0,oe()))),r},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),l=n(((e,t)=>{t.exports=c()})),u=n((e=>{var t=l(),n=a(),r=s();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return f(a),e;if(o===r)return f(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var ee=null,te=null;function ne(e,t,n){return e===n||e===t&&(ee=e,!0)}function re(e,t,n){return e===n?(te=e,!1):e===t&&(te!==null&&(ee=e),!0)}function ie(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ae(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var x=Object.assign,oe=Symbol.for(`react.element`),se=Symbol.for(`react.transitional.element`),ce=Symbol.for(`react.portal`),le=Symbol.for(`react.fragment`),ue=Symbol.for(`react.strict_mode`),de=Symbol.for(`react.profiler`),fe=Symbol.for(`react.consumer`),pe=Symbol.for(`react.context`),me=Symbol.for(`react.forward_ref`),he=Symbol.for(`react.suspense`),ge=Symbol.for(`react.suspense_list`),_e=Symbol.for(`react.memo`),ve=Symbol.for(`react.lazy`),ye=Symbol.for(`react.activity`),be=Symbol.for(`react.legacy_hidden`),xe=Symbol.for(`react.memo_cache_sentinel`),Se=Symbol.for(`react.view_transition`),Ce=Symbol.for(`react.recoverable`),we=Symbol.iterator;function Te(e){return typeof e!=`object`||!e?null:(e=we&&e[we]||e[`@@iterator`],typeof e==`function`?e:null)}var Ee=Symbol.for(`react.client.reference`);function De(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Ee?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case le:return`Fragment`;case de:return`Profiler`;case ue:return`StrictMode`;case he:return`Suspense`;case ge:return`SuspenseList`;case ye:return`Activity`;case Se:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ce:return`Portal`;case pe:return e.displayName||`Context`;case fe:return(e._context.displayName||`Context`)+`.Consumer`;case me:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case _e:return t=e.displayName||null,t===null?De(e.type)||`Memo`:t;case ve:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Oe=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ke={pending:!1,data:null,method:null,action:null},Ae=[],je=-1;function Me(e){return{current:e}}function w(e){0>je||(e.current=Ae[je],Ae[je]=null,je--)}function T(e,t){je++,Ae[je]=e.current,e.current=t}var Ne=Me(null),Pe=Me(null),Fe=Me(null),Ie=Me(null);function Le(e,t){switch(T(Fe,t),T(Pe,e),T(Ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(Ne),T(Ne,e)}function Re(){w(Ne),w(Pe),w(Fe)}function ze(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,T(Ie,e)),t=Ne.current;var n=dp(t,e.type);t!==n&&(T(Pe,e),T(Ne,n))}function Be(e){Pe.current===e&&(w(Ne),w(Pe)),Ie.current===e&&(w(Ie),sh._currentValue=ke)}var Ve,He;function Ue(e){if(Ve===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ve=t&&t[1]||``,He=-1<e.stack.indexOf(`
|
|
2
2
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
3
|
`+Ve+e+He}var We=!1;function Ge(e,t){if(!e||We)return``;We=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
4
|
`),l=s.split(`
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var e=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,t=globalThis,n=`11.7.0`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`11.7.0`,t[n]=t[`11.7.0`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`11.7.0`]||{};return o[e]||(o[e]=r())}var o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s=`Sentry Logger `,c={};function l(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(c);i.forEach(e=>{let t=c[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function u(){te().enabled=!0}function d(){te().enabled=!1}function f(){return te().enabled}function p(...e){ee(`log`,...e)}function m(...e){ee(`warn`,...e)}function h(...e){ee(`error`,...e)}function ee(n,...r){e&&f()&&l(()=>{t.console[n](`${s}[${n}]:`,...r)})}function te(){return e?a(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var g={enable:u,disable:d,isEnabled:f,log:p,warn:m,error:h},ne=50,re=/\(error: (.*)\)/,ie=/captureMessage|captureException/;function ae(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
2
|
+
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=re.test(n)?n.replace(re,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=ne+r)break}}return se(i.slice(r))}}function oe(e){return Array.isArray(e)?ae(...e):e}function se(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ce(t).function||``)&&t.pop(),t.reverse(),ie.test(ce(t).function||``)&&(t.pop(),ie.test(ce(t).function||``)&&t.pop()),t.slice(0,ne).map(e=>({...e,filename:e.filename||ce(t).filename,function:e.function||`?`}))}function ce(e){return e[e.length-1]||{}}var le=`<anonymous>`;function _(e){try{return!e||typeof e!=`function`?le:e.name||le}catch{return le}}function ue(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var de={},fe={};function v(e,t){return de[e]=de[e]||[],de[e].push(t),()=>{let n=de[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function y(t,n){if(!fe[t]){fe[t]=!0;try{n()}catch(n){e&&g.error(`Error while instrumenting ${t}`,n)}}}function b(t,n){let r=t&&de[t];if(r)for(let i of r)try{i(n)}catch(n){e&&g.error(`Error while triggering instrumentation handler.
|
|
3
|
+
Type: ${t}
|
|
4
|
+
Name: ${_(i)}
|
|
5
|
+
Error:`,n)}}var pe=null;function me(e){let t=`error`;v(t,e),y(t,he)}function he(){pe=t.onerror,t.onerror=function(e,t,n,r,i){return b(`error`,{column:r,error:i,line:n,msg:e,url:t}),pe?pe.apply(this,arguments):!1},t.onerror.__SENTRY_INSTRUMENTED__=!0}var ge=null;function _e(e){let t=`unhandledrejection`;v(t,e),y(t,ve)}function ve(){ge=t.onunhandledrejection,t.onunhandledrejection=function(e){return b(`unhandledrejection`,e),!ge||ge.apply(this,arguments)},t.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ye=Object.prototype.toString;function x(e){switch(ye.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return ke(e,Error)}}function S(e,t){return ye.call(e)===`[object ${t}]`}function be(e){return S(e,`ErrorEvent`)}function xe(e){return S(e,`DOMError`)}function Se(e){return S(e,`DOMException`)}function C(e){return S(e,`String`)}function Ce(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function w(e){return e===null||Ce(e)||typeof e!=`object`&&typeof e!=`function`}function we(e){return S(e,`Object`)}function Te(e){return typeof e==`object`&&!!e}function Ee(e){return typeof Event<`u`&&ke(e,Event)}function De(e){return S(e,`RegExp`)}function Oe(e){return!!(e?.then&&typeof e.then==`function`)}function ke(e,t){try{return e instanceof t}catch{return!1}}function Ae(e){return typeof Request<`u`&&ke(e,Request)}function T(t,n,r){if(!(n in t))return;let i=t[n];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&je(a,i);try{t[n]=a}catch{e&&g.log(`Failed to replace method "${n}" in object`,t)}}function E(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&g.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}function je(e,t){try{e.prototype=t.prototype=t.prototype||{},E(e,`__sentry_original__`,t)}catch{}}function Me(e){return e.__sentry_original__}function Ne(e){if(x(e))return{message:e.message,name:e.name,stack:e.stack,...Pe(e)};if(Ee(e)){let{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Pe(e)}}return e}function Pe(e){return Te(e)?Object.fromEntries(Object.entries(e)):{}}function Fe(e){let t=Object.keys(Ne(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var D;function Ie(e){if(D!==void 0)return D?D(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(D=r[n],D(e)):(D=null,e())}function Le(){return Ie(()=>Math.random())}function O(){return Ie(()=>Date.now())}var Re=Symbol.for(`sentry.skipNormalization`),ze=Symbol.for(`sentry.overrideNormalizationDepth`);function Be(e){return!!e[Re]}function Ve(e){let t=e[ze];return typeof t==`number`?t:void 0}var He;function Ue(e){He=e}function k(e,t=100,n=1/0){try{return Ge(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function We(e,t=3,n=102400){let r=k(e,t);return Ye(r)>n?We(e,t-1,n):r}function Ge(e,t,n=1/0,r=1/0,i=Xe()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Ke(e,t);if(!s.startsWith(`[object `))return s;if(Be(t))return t;let c=Ve(t),l=c===void 0?n:c;if(l===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Ge(``,u.toJSON(),l-1,r,i)}catch{}let d=Array.isArray(t)?[]:{},f=0,p=Ne(t);for(let e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(f>=r){d[e]=`[MaxProperties ~]`;break}let t=p[e];d[e]=Ge(e,t,l-1,r,i),f++}return o(t),d}function Ke(e,t){try{if(He){let e=He(t);if(e)return e}return typeof global<`u`&&t===global?`[Global]`:typeof t==`number`&&!Number.isFinite(t)?`[${t}]`:typeof t==`function`?`[Function: ${_(t)}]`:typeof t==`symbol`?`[${String(t)}]`:typeof t==`bigint`?`[BigInt: ${String(t)}]`:`[object ${qe(t)}]`}catch(e){return`**non-serializable** (${e})`}}function qe(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Je(e){return~-encodeURI(e).split(/%..|./).length}function Ye(e){return Je(JSON.stringify(e))}function Xe(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Ze(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Qe(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];w(r)?n.push(String(r)):r instanceof Error?n.push(r.message?`${r.name}: ${r.message}`:r.name):n.push(Ke(void 0,r))}return n.join(t)}function $e(e,t,n=!1){return C(e)?De(t)?t.test(e):C(t)?n?e===t:e.includes(t):typeof t==`function`&&t(e):!1}function et(e,t=[],n=!1){for(let r of t)if($e(e,r,n))return!0;return!1}function tt(){let e=t;return e.crypto||e.msCrypto}var nt;function rt(){return Le()*16}function A(e=tt()){try{if(e?.randomUUID)return Ie(()=>e.randomUUID()).replace(/-/g,``)}catch{}return nt||=`10000000100040008000100000000000`,nt.replace(/[018]/g,e=>(e^(rt()&15)>>e/4).toString(16))}function it(e){return e.exception?.values?.[0]}function j(e){let{message:t,event_id:n}=e;if(t)return t;let r=it(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function at(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function M(e,t){let n=it(e);n&&st(n,t)}function ot(e,t){let n=e.exception?.values,r=n?.find(e=>e.mechanism?.exception_id===0)??n?.[0];r&&st(r,t)}function st(e,t){let n={type:`generic`,handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&`data`in t&&(e.mechanism.data={...r?.data,...t.data})}function ct(e){if(lt(e))return!0;try{E(e,`__sentry_captured__`,!0)}catch{}return!1}function lt(e){try{return e.__sentry_captured__}catch{}}var ut=1e3,dt=1e3,ft=100;function pt(){return O()/ut}var N=[];function mt(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return e?.now&&(N=[{from:0,origin:O()-Ie(()=>e.now())}]),pt;let n=e.timeOrigin;N=[{from:0,origin:n}];let r=!0,i=0;return()=>Ie(()=>{let t=e.now(),a=Date.now();return Math.abs(n+t-a)>dt&&(n=a-t,r?N=[{from:0,origin:n}]:(N.push({from:i,origin:n}),N.length>ft&&N.splice(1,1))),r=!1,i=t,(n+t)/ut})}var ht;function P(){return(ht??=mt())()}function gt(e){let t=P(),n={sid:A(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>vt(n)};return e&&F(n,e),n}function F(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||P(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:A()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function _t(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),F(e,n)}function vt(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function yt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=yt(r[e],t[e],n-1));return r}function bt(){return A()}function xt(){return A().substring(16)}var St=100,I=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},E(this,`refs`,{}),this._propagationContext={traceId:bt(),sampleRand:Le()}}clone(){let e=new t;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,e.refs={...this.refs},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&&F(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,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}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,t){return this._extra={...this._extra,[e]:t},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,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,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:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof t?n.getScopeData():we(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:St;if(n<=0)return this;let r={timestamp:pt(),...e,message:e.message?Ze(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n)),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,conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=yt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||A();if(!this._client)return e&&g.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){let i=r?.event_id||A();if(!this._client)return e&&g.warn(`No client configured on scope - will not capture message!`),i;let a=r?.syntheticException??Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){let r=t.event_id||n?.event_id||A();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&g.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 Ct(){return a(`defaultCurrentScope`,()=>new I)}function wt(){return a(`defaultIsolationScope`,()=>new I)}var Tt=`__SENTRY_SUPPRESS_TRACING__`,Et=e=>e instanceof Promise&&!e[Dt],Dt=Symbol(`chained PromiseLike`),Ot=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Et(r)&&Et(e)?r:kt(e,r)},kt=(e,t)=>{if(!t)return e;let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Dt]:!0}),t},At=class{constructor(e,t){let n;n=e||new I;let r;r=t||new I,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return Oe(n)?Ot(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 e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function L(){let e=i(r());return e.stack=e.stack||new At(Ct(),wt())}function jt(e){return L().withScope(e)}function Mt(e,t){let n=L();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Nt(e){return L().withScope(()=>e(L().getIsolationScope()))}function Pt(){return{suppressTracing:Ft,withIsolationScope:Nt,withScope:jt,withSetScope:Mt,withSetIsolationScope:(e,t)=>Nt(t),getCurrentScope:()=>L().getScope(),getIsolationScope:()=>L().getIsolationScope()}}function Ft(e){return jt(t=>{t.setSDKProcessingMetadata({[Tt]:!0});let n=e();return t.setSDKProcessingMetadata({[Tt]:void 0}),n})}function It(e){let t=i(e);return t.acs?t.acs:Pt()}function Lt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Rt(e,t){let{value:n,unit:r}=Lt(e)?e:{value:e,unit:void 0},i=Bt(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function zt(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Rt(i,t);e&&(n[r]=e)}return n}function Bt(e){if(Array.isArray(e))return{value:e,type:`array`};let t=typeof e==`string`?`string`:typeof e==`boolean`?`boolean`:typeof e==`number`&&!Number.isNaN(e)?Number.isInteger(e)?`integer`:`double`:null;if(t)return{value:e,type:t}}function Vt(){return i(r()).externalPropagationContextProvider?.()}function R(){return It(r()).getCurrentScope()}function z(){return It(r()).getIsolationScope()}function Ht(){return a(`globalScope`,()=>new I)}function Ut(...e){let t=It(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function B(){return R().getClient()}function Wt(e){let t=Vt();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||xt()};return r&&(a.parent_span_id=r),a}var Gt=`gen_ai.conversation.id`,Kt=`sentry.exclusive_time`,qt=`sentry.is_localhost`,Jt=`sentry.op`,Yt=`sentry.origin`,Xt=`sentry.profile_id`,Zt=`sentry.segment.name.source`,Qt=`user_agent.original`,$t=[`ok`,`deadline_exceeded`,`unauthenticated`,`permission_denied`,`not_found`,`resource_exhausted`,`invalid_argument`,`unimplemented`,`unavailable`,`internal_error`,`unknown_error`,`cancelled`,`already_exists`,`failed_precondition`,`aborted`,`out_of_range`,`data_loss`];function en(e){return e!==`ok`&&$t.includes(e)}function tn(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var nn=`_sentryScope`,rn=`_sentryIsolationScope`;function an(e){let t=e;return{scope:t[nn],isolationScope:tn(t[rn])}}function on(e){let t=sn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function sn(e){if(e&&(C(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=cn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):cn(e)}function cn(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}var ln=/^o(\d+)\./,un=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function dn(e){return e===`http`||e===`https`}function fn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function pn(e){let t=un.exec(e);if(!t){l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,u=s,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return mn({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function mn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function hn(t){if(!e)return!0;let{port:n,projectId:r,protocol:i}=t;return[`protocol`,`publicKey`,`host`,`projectId`].find(e=>!t[e]&&(g.error(`Invalid Sentry Dsn: ${e} missing`),!0))?!1:r.match(/^\d+$/)?dn(i)?n&&isNaN(parseInt(n,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):!0:(g.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(g.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function gn(e){return e.match(ln)?.[1]}function _n(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=gn(n)),r}function vn(e){let t=typeof e==`string`?pn(e):mn(e);if(t&&hn(t))return t}function yn(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var bn=`span`;function xn(e){return tn(e.refs[bn])}function Sn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:En(e).parent_span_id,a=an(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||xt():t,trace_id:n}}function Cn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function wn(e){return typeof e==`number`?Tn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Tn(e.getTime()):P()}function Tn(e){return e>9999999999?e/1e3:e}function En(e){if(An(e))return e.getStaticSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(kn(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:Dn(e),start_timestamp:wn(i),timestamp:wn(o)||void 0,status:Mn(s),op:r[Jt],origin:r[Yt],links:Cn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:`ok`,data:{}}}function Dn(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function On(e){return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:zt(e.attributes),links:e.links?.map(e=>({...e,attributes:zt(e.attributes)}))}}function kn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function An(e){return typeof e.getSpanJSON==`function`}function jn(e){let{traceFlags:t}=e.spanContext();return t===1}function Mn(e){return!e||e.code===0||e.code===1?`ok`:e.message&&en(e.message)?e.message:`internal_error`}var Nn=`_sentryRootSpan`,Pn=Fn;function Fn(e){return e[Nn]||e}function In(e){let t=It(r());return t.getActiveSpan?t.getActiveSpan(e):xn(e||R())}function Ln(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||B()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Rn(e){g.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function zn(t,n){if(!n?.length)return!1;for(let r of n){if(Hn(r)){if(t.description&&$e(t.description,r))return e&&Rn(t),!0;continue}let n=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!n)continue;let i=!r.name||t.description&&$e(t.description,r.name),a=!r.op||t.op&&$e(t.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([e,n])=>Bn(t.attributes?.[e],n));if(i&&a&&o)return e&&Rn(t),!0}return!1}function Bn(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?$e(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function Vn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Hn(e){return typeof e==`string`||e instanceof RegExp}var Un=[];function Wn(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Gn(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Wn(r)}function Kn(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Jn(e,t,n)}),n}function qn(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Jn(t,n,r){if(r[n.name]){e&&g.log(`Integration skipped because it was already installed: ${n.name}`);return}if(r[n.name]=n,!Un.includes(n.name)&&typeof n.setupOnce==`function`&&(n.setupOnce(),Un.push(n.name)),n.setup&&typeof n.setup==`function`&&n.setup(t),typeof n.preprocessEvent==`function`){let e=n.preprocessEvent.bind(n);t.on(`preprocessEvent`,(n,r)=>e(n,r,t))}if(typeof n.processEvent==`function`){let e=n.processEvent.bind(n),r=Object.assign((n,r)=>e(n,r,t),{id:n.name});t.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(e=>{let r=n[e];typeof r==`function`&&t.on(e,e=>r.call(n,e,t))}),e&&g.log(`Integration installed: ${n.name}`)}function V(e){return e}var Yn=`production`,Xn=Symbol.for(`sentry.nonRecordingSpan`);function Zn(e){return!!e&&e[Xn]===!0}var Qn=`_frozenDsc`;function $n(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:_n(t)};return t.emit(`createDsc`,i),i}function er(e,t){if(Vt())return;let n=t.getPropagationContext();return n.dsc||$n(n.traceId,e)}function tr(e){let t=B();if(!t)return{};let n=Pn(e),r=En(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Qn];if(c)return s(c);let l=Zn(n),u=l&&n.dropReason===`ignored`;if(l&&(!Ln(t.getOptions())||u)){let e=an(n).scope,r=e&&er(t,e);if(r){let e={...r};return u&&(e.sampled=`false`),s(e)}}let d=a?.get(`sentry.dsc`),f=d&&on(d);if(f)return s(f);let p=$n(e.spanContext().traceId,t),m=i[Zt],h=r.description;return m!==`url`&&h&&(p.transaction=h),Ln()&&(p.sampled=String(jn(n)),p.sample_rand=a?.get(`sentry.sample_rand`)??an(n).scope?.getPropagationContext().sampleRand.toString()),s(p),t.emit(`createDsc`,p,n),p}function nr(e,t){let{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;ar(e,t),lr(e,n),or(e,r),sr(e,i)}function rr(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m}=t;H(e,`extra`,n),H(e,`tags`,r),H(e,`attributes`,i),H(e,`user`,a),H(e,`contexts`,o),e.sdkProcessingMetadata=yt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function H(e,t,n){e[t]=yt(e[t],n,1)}function ir(e,t){let n=Ht().getScopeData();return e&&rr(n,e.getScopeData()),t&&rr(n,t.getScopeData()),n}function ar(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function or(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function sr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function cr(e,t){e.contexts={trace:Sn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:tr(t),...e.sdkProcessingMetadata};let n=En(Pn(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function lr(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function ur(e,t,n){let r;try{r=t()}catch(t){return dr(e,t,n)}return Oe(r)?r.then(void 0,t=>dr(e,t,n)):r}function dr(t,n,r){return e&&g.error(t,n),r(n)}function fr(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}function pr(t,n){return ur(e?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":``,()=>n(t),()=>t)||t}function mr(e){return On({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,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links})}function hr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function gr(e){return e.getOptions().traceLifecycle===`stream`}function _r(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function U(e,t=[]){return[e,t]}function vr(e,t){let[n,r]=e;return[n,[...r,t]]}function yr(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function br(e,t){return yr(e,(e,n)=>t.includes(n))}function xr(e){let n=i(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function Sr(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[xr(r),e]:r.push(typeof e==`string`?xr(e):e)}for(let e of n){let[t,n]=e;if(i(`
|
|
6
|
+
${JSON.stringify(t)}
|
|
7
|
+
`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(k(n))}i(e)}}return typeof r==`string`?r:Cr(r)}function Cr(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function wr(e){let t=typeof e.data==`string`?xr(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Tr={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 Er(e){return e in Tr}function Dr(e){return Er(e)?Tr[e]:e}function Or(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function kr(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(O()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:fn(r)},...i&&{trace:i}}}function Ar(e){return e===`replay_event`?`replay`:e||`error`}function jr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Mr(){return`npm`}function Nr(){return!jr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Pr(){return typeof window<`u`&&(!Nr()||Fr())}function Fr(){return t.process?.type===`renderer`}function Ir(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:Pr()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}var Lr=new WeakMap;function Rr(e){return w(e)?void 0:e}function zr(e,t,n){let r=Rr(t.originalException),i=r&&Lr.get(r);if(!i)return;let a=e.contexts?.trace;(a?.trace_id??(n&&Wt(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...a,...i}})}function Br(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Vr(e,t,n,r){let i=Or(n);return U({sent_at:new Date(O()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:fn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function Hr(e,t,n,r){let i=Or(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Br(e,n?.sdk);let o=kr(e,i,r,t);return delete e.sdkProcessingMetadata,U(o,[[{type:a},e]])}var Ur=0,Wr=1,Gr=2;function Kr(e){return new Jr(t=>{t(e)})}function qr(e){return new Jr((t,n)=>{n(e)})}var Jr=class e{constructor(e){this._state=Ur,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Ur)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Wr&&e[1](this._value),this._state===Gr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Ur){if(Oe(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Wr,e)},r=e=>{t(Gr,e)};try{e(n,r)}catch(e){r(e)}}};function Yr(e,t,n,r=0,i){try{let a=Xr(t,n,e,r,i);return Oe(a)?a:Kr(a)}catch(e){return qr(e)}}function Xr(t,n,r,i,a){let o=r[i];if(!t||!o)return t;let s=`Event processor "${o.id||`?`}"`,c=!1,l=ur(e?`${s} threw an error, dropping event:`:``,()=>o({...t},n),()=>(c=!0,null));return e&&l===null&&g.log(`${s} dropped event`),Oe(l)?l.then(e=>e?Xr(e,n,r,i+1,a):(a?.(c?`callback_error`:`event_processor`),null)):l?Xr(l,n,r,i+1,a):(a?.(c?`callback_error`:`event_processor`),null)}var W,Zr,Qr,G;function $r(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(G&&i.length===Zr&&a.length===Qr)return G;Zr=i.length,Qr=a.length,G={},W||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=W?.[r];if(i&&G&&t)G[i[0]]=t,W&&(W[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&G&&W){G[i]=t,W[r]=[i,t];break}}}}};return n&&o(i,n),r&&o(a,r),G}function ei(e){return e.data?.__sentry__===!0}function ti(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ni(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||A(),timestamp:t.timestamp||pt()},l=n.integrations||e.integrations.map(e=>e.name);ri(c,e),oi(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&ii(c,e.stackParser);let u=ci(r,n.captureContext);n.mechanism&&ot(c,n.mechanism);let d=i?i.getEventProcessors():[],f=ir(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),nr(c,f);let m=In(u);m&&cr(c,m),zr(c,n,u);let h=[...d,...f.eventProcessors],ee=t.type===`transaction`,te=t.spans?.length||0;return(ei(n)?Kr(c):Yr(h,c,n,0,e=>{i&&(i.recordDroppedEvent(e,Ar(t.type)),ee&&i.recordDroppedEvent(e,`span`,1+te))})).then(e=>{if(!e)return null;if(ee&&i){let t=te-(e.spans?.length||0);t>0&&i.recordDroppedEvent(`event_processor`,`span`,t)}return ai(e),typeof o==`number`&&o>0?si(e,o,s):e})}function ri(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=Ze(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=Ze(e.value,a)})}function ii(e,t){let n=$r(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function ai(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function oi(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function si(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:k(e.data,t,n)}}))},...e.user&&{user:k(e.user,t,n)},...e.contexts&&{contexts:k(e.contexts,t,n)},...e.extra&&{extra:k(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=k(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:k(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=k(e.contexts.flags,3,n)),r}function ci(e,t){if(!t)return e;let n=e?e.clone():new I;return n.update(t),n}function li(e){if(e)return ui(e)||fi(e)?{captureContext:e}:e}function ui(e){return e instanceof I||typeof e==`function`}var di=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function fi(e){return Object.keys(e).some(e=>di.includes(e))}function pi(e,t){return R().captureException(e,li(t))}function mi(e,t){return R().captureEvent(e,t)}function hi(e){let n=z(),{user:r}=ir(n,R()),{userAgent:i}=t.navigator||{},a=gt({user:r,...i&&{userAgent:i},...e}),o=n.getSession();return o?.status===`ok`&&F(o,{status:`exited`}),gi(),n.setSession(a),a}function gi(){let e=z(),t=R().getSession()||e.getSession();t&&_t(t),_i(),e.setSession()}function _i(){let e=z(),t=B(),n=e.getSession();n&&t&&t.captureSession(n)}function vi(e=!1){if(e){gi();return}_i()}function yi(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function bi(e){return`${yi(e)}${e.projectId}/envelope/`}function xi(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Si(e,t,n){return t||`${bi(e)}?${xi(e,n)}`}function Ci(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function wi(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=fn(r)),U(a,[Ci(e,i)])}function Ti(e,t){let n=t??Ei(e)??[];if(n.length===0)return;let r=e.getOptions(),i=wi(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Di().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Ei(e){return Di().get(e)}function Di(){return a(`clientToLogBufferMap`,()=>new WeakMap)}function Oi(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function ki(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=fn(r)),U(a,[Oi(e,i)])}function Ai(e,t){let n=t??ji(e)??[];if(n.length===0)return;let r=e.getOptions(),i=ki(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Mi().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function ji(e){return Mi().get(e)}function Mi(){return a(`clientToMetricBufferMap`,()=>new WeakMap)}function Ni(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||gr(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(mr(t)):r.push(t);if(n.length!==0)return e.spans=r,Ir(n,t)}var Pi=Symbol.for(`SentryBufferFullError`);function Fi(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return qr(Pi);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Kr(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>_r(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Ii=6e4;function Li(e,t=O()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Ii:r-t}function Ri(e,t){return e[t]||e.all||0}function zi(e,t,n=O()){return Ri(e,t)>n}function Bi(e,{statusCode:t,headers:n},r=O()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Li(o,r):t===429&&(i.all=r+6e4);return i}function Vi(t,n,r=Fi(t.bufferSize||64)){let i={},a=e=>r.drain(e);function o(e,[n,r],i){let a=Dr(i);i===`transaction`&&t.recordDroppedEvent(e,`span`,(r.spans?.length??0)+1),t.recordDroppedEvent(e,a,typeof n.item_count==`number`?n.item_count:1)}function s(t){let a=[];if(yr(t,(e,t)=>{zi(i,Dr(t))?o(`ratelimit_backoff`,e,t):a.push(e)}),a.length===0)return Promise.resolve({});let s=U(t[0],a),c=t=>{if(br(s,[`client_report`])){e&&g.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}yr(s,(e,n)=>{o(t,e,n)})};return r.add(()=>n({body:Sr(s)}).then(t=>t.statusCode===413?(e&&g.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),t):(e&&t.statusCode!==void 0&&(t.statusCode<200||t.statusCode>=300)&&g.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=Bi(i,t),t),t=>{throw c(`network_error`),e&&g.error(`Encountered error running transport request:`,t),t})).then(e=>e,t=>{if(t===Pi)return e&&g.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw t})}return{send:s,flush:a}}function Hi(e,t,n){let r=[{type:`client_report`},{timestamp:n||pt(),discarded_events:e}];return U(t?{dsn:t}:{},[r])}function Ui(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Xt],exclusive_time:o?.[Kt],measurements:e.measurements,is_segment:!0}}function Wi(e){return{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&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function Gi(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&l(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var K={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,queues:!0,stackFrameVariables:!0,frameContextLines:5};function Ki(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function qi(e){return e===void 0?{...K.httpHeaders}:Ki(e)?{request:e,response:e}:{request:e.request??K.httpHeaders.request,response:e.response??K.httpHeaders.response}}function Ji(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??K.userInfo,cookies:t.cookies??K.cookies,httpHeaders:qi(t.httpHeaders),httpBodies:t.httpBodies??K.httpBodies,urlQueryParams:t.urlQueryParams??K.urlQueryParams,graphQL:{document:t.graphQL?.document??K.graphQL.document,variables:t.graphQL?.variables??K.graphQL.variables},genAI:{inputs:t.genAI?.inputs??K.genAI.inputs,outputs:t.genAI?.outputs??K.genAI.outputs},databaseQueryData:t.databaseQueryData??K.databaseQueryData,queues:t.queues??K.queues,stackFrameVariables:t.stackFrameVariables??K.stackFrameVariables,frameContextLines:t.frameContextLines??K.frameContextLines}}var Yi=`Not capturing exception because it's already been captured.`,Xi=`Discarded session because of missing or non-string release`,Zi=Symbol.for(`SentryInternalError`),Qi=Symbol.for(`SentryDoNotSendEventError`),$i=5e3,ea=Symbol.for(`SentryClosedClient`);function ta(e){return ea in e}function na(e){return{message:e,[Zi]:!0}}function ra(e){return{message:e,[Qi]:!0}}function ia(e){return Te(e)&&Zi in e}function aa(e){return Te(e)&&Qi in e}function oa(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??$i;t>0&&(s=!0,o=_r(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var sa=class{constructor(t){this._options={attachStacktrace:!0,...t,traceLifecycle:t.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Fi(t.transportOptions?.bufferSize??64),this._dataCollection=Ji(t),this._unhandledSessionStatus=`crashed`,t.dsn?this._dsn=vn(t.dsn):e&&g.warn(`No DSN provided, client will not send events.`);let{beforeSendSpan:n,traceLifecycle:r}=this._options;if(e&&n&&fr(n)!==(r===`static`)&&l(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${r===`static`?`wrap it with`:`remove`} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${r}"\`.`)}),this._dsn){let e=Si(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})}oa(this,`afterCaptureLog`,`flushLogs`,fa,Ti),oa(this,`afterCaptureMetric`,`flushMetrics`,da,Ai)}captureException(t,n,r){let i=A();if(ct(t))return e&&g.log(Yi),i;let a={event_id:i,...n};return this._process(()=>this.eventFromException(t,a).then(e=>this._captureEvent(e,a,r)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:A(),...n},a=Ce(e)?e:String(e),o=w(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(t,n,r){let i=A();if(n?.originalException&&ct(n.originalException))return e&&g.log(Yi),i;let a={event_id:i,...n},o=t.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Ar(t.type);return this._process(()=>this._captureEvent(t,a,s||r,c),l),a.event_id}captureSession(e){this.sendSession(e),F(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 n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,ea,{value:!0});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(),Gi(this._options))}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),Jn(this,e,this._integrations),t||qn(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Ni(e,this),r=Hr(e,this._dsn,this._options._metadata,this._options.tunnel);if(!ei(t))for(let e of t.attachments||[])r=vr(r,wr(e));n&&(r=vr(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(t){let{release:n,environment:r=Yn}=this._options;if(`aggregates`in t){let i=t.attrs||{};if(!i.release&&!n){e&&g.warn(Xi);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){e&&g.warn(Xi);return}t.release=t.release||n,t.environment=t.environment||r}this.emit(`beforeSendSession`,t);let i=Vr(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let i=`${t}:${n}`;e&&g.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(t){if(this.emit(`beforeEnvelope`,t),this._isEnabled()&&this._transport)try{let e=await this._transport.send(t);return this.emit(`afterEnvelope`,t),e}catch(t){return e&&g.error(`Error while sending envelope:`,t),{}}return e&&g.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Kn(this,e),qn(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(F(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),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 this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),ni(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...Wt(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:er(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(t,n={},r=R(),i=z()){return e&&la(t)&&g.log(`Captured error event \`${ti(t)[0]||`<unknown>`}\``),this._processEvent(t,n,r,i).then(e=>e.event_id,t=>{e&&(aa(t)?g.log(t.message):ia(t)?g.warn(t.message):g.warn(t))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ua(e),s=la(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=0,d=a===void 0?void 0:yn(a),f=Ar(e.type),p=0;return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw ra("An event processor returned `null`, will not send event.");return p=e.spans?.length||0,ei(t)?e:ca(i,e,t,e=>{l=e},e=>{u=e})}).then(i=>{if(u&&this.recordDroppedEvent(`ignored`,`span`,u),!we(i)||i===null)throw this.recordDroppedEvent(l,f),o&&this.recordDroppedEvent(l,`span`,1+p-u),i===null?ra(`${l===`ignored`?"Transaction matched `ignoreSpans`":`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}`}, will not send event.`):na(`${c} must return \`null\` or a valid event.`);let m=n.getSession()||r.getSession();if(s&&m&&this._updateSessionFromEvent(m,i),s&&typeof d==`number`&&Le()>d)throw this.recordDroppedEvent(`sample_rate`,`error`),ra(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=p-u-(i.spans?.length||0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let h=i.transaction_info;return o&&h&&i.transaction!==e.transaction&&(i.transaction_info={...h,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw aa(e)||ia(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),na(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
8
|
+
Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Pi&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){e&&g.log(`Flushing outcomes...`);let t=this._clearOutcomes();if(t.length===0){e&&g.log(`No outcomes to send`);return}if(!this._dsn){e&&g.log(`No dsn provided, will not send outcomes`);return}e&&g.log(`Sending outcomes:`,t);let n=Hi(t,this._options.tunnel&&fn(this._dsn));this.sendEnvelope(n)}};function ca(t,n,r,i,a){let{beforeSend:o,ignoreSpans:s,beforeSendTransaction:c}=t,l=fr(t.beforeSendSpan)&&t.beforeSendSpan,u=n;if(la(u)&&o){let t=u;return ur(e?"The `beforeSend` callback threw an error, dropping the event:":``,()=>o(t,r),()=>(i(`callback_error`),null))}if(ua(u)){if(l||s){let e=Ui(u);if(s?.length&&zn({description:e.description,op:e.op,attributes:e.data},s))return i(`ignored`),null;if(l&&(u=yt(n,Wi(pr(e,l)))),u.spans){let e=[],t=u.spans;for(let n of t){if(s?.length&&zn({description:n.description,op:n.op,attributes:n.data},s)){Vn(t,n);continue}l?e.push(pr(n,l)):e.push(n)}a(t.length-e.length),u.spans=e}}if(c)return ur(e?"The `beforeSendTransaction` callback threw an error, dropping the event:":``,()=>c(u,r),()=>(i(`callback_error`),null))}return u}function la(e){return e.type===void 0}function ua(e){return e.type===`transaction`}function da(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+pa(e.attributes)}function fa(e){let t=0;return e.message&&(t+=e.message.length*2),t+pa(e.attributes)}function pa(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ma(e[0]):w(e)?t+=ma(e):t+=100}),t}function ma(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ha(t,n){n.debug===!0&&(e?g.enable():l(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_a(),R().update(n.initialScope);let r=new t(n);return va(r),r.init(),r}function ga(){let e=B();return e&&!ta(e)?e:void 0}function _a(){ga()&&l(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function va(e){R().setClient(e)}var ya=`[Filtered]`,ba=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`];function xa(e,t){return t.some(t=>e.includes(t))}function Sa(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(xa(r,n==null?ba:[...ba,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Ca(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=Sa(i,t,n)?ya:e[i];return r}function wa(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&Sa(i,t)?`${r}=${ya}`:e}).join(`&`)}function Ta(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=wa(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Ea(e){return(e??B())?.getDataCollectionOptions().urlQueryParams??!0}function q(e,t){return e===void 0?void 0:Ta(e,Ea(t))}function Da(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Oa(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function ka(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Aa(e,t,r=[t],i=`npm`){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n})),a.version=n)}var ja=100;function J(t,n){let r=B(),i=z();if(!r)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:o=ja}=r.getOptions();if(o<=0)return;let s={timestamp:pt(),...t},c=a?ur(e?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":``,()=>l(()=>a(s,n)),()=>null):s;c!==null&&(r.emit&&r.emit(`beforeAddBreadcrumb`,c,n),i.addBreadcrumb(c,o))}var Ma=`FunctionToString`,Na=new WeakMap,Pa=V((()=>({name:Ma,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Me(this),r;try{Na.has(B())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){Na.set(e,!0)}}))),Fa=[/^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$/,/Java object is gone$/],Ia=`EventFilters`,La=V((e={})=>{let t;return{name:Ia,setup(n){t=Ra(e,n.getOptions())},processEvent(n,r,i){return t||=Ra(e,i.getOptions()),za(n,t)?null:n}}});function Ra(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Fa],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function za(t,n){if(!t.type){if(Ba(t,n.ignoreErrors))return e&&g.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
9
|
+
Event: ${j(t)}`),!0;if(Ka(t))return e&&g.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
10
|
+
Event: ${j(t)}`),!0;if(Ha(t,n.denyUrls))return e&&g.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
11
|
+
Event: ${j(t)}.
|
|
12
|
+
Url: ${Ga(t)}`),!0;if(!Ua(t,n.allowUrls))return e&&g.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
13
|
+
Event: ${j(t)}.
|
|
14
|
+
Url: ${Ga(t)}`),!0}else if(t.type===`transaction`&&Va(t,n.ignoreTransactions))return e&&g.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
15
|
+
Event: ${j(t)}`),!0;return!1}function Ba(e,t){return t?.length?ti(e).some(e=>et(e,t)):!1}function Va(e,t){if(!t?.length)return!1;let n=e.transaction;return n?et(n,t):!1}function Ha(e,t){if(!t?.length)return!1;let n=Ga(e);return n?et(n,t):!1}function Ua(e,t){if(!t?.length)return!0;let n=Ga(e);return!n||et(n,t)}function Wa(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Ga(t){try{let e=[...t.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return e?Wa(e):null}catch{return e&&g.error(`Cannot extract url for event ${j(t)}`),null}}function Ka(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function qa(e,t,n,r,i,a){if(!i.exception?.values||!a||!x(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ja(e,t,r,a.originalException,n,i.exception.values,o,0))}function Ja(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(x(r[i])){Xa(o,s,r);let a=e(t,r[i]),l=c.length;Za(a,i,l,s),c=Ja(e,t,n,r[i],i,[a,...c],a,l)}return Ya(r)&&r.errors.forEach((a,l)=>{if(x(a)){Xa(o,s,r);let u=e(t,a),d=c.length;Za(u,`errors[${l}]`,d,s),c=Ja(e,t,n,a,i,[u,...c],u,d)}}),c}function Ya(e){return Array.isArray(e.errors)}function Xa(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Ya(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Za(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function Qa(e){return x(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function $a(e){return Qa(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var eo=new Set([]);function to(e){let t=`console`,n=v(t,e);return y(t,io),n}function no(e){for(let t of e)eo.add(t);return()=>{for(let t of e)eo.delete(t)}}var ro=new Set;function io(){`console`in t&&o.forEach(function(n){!ro.has(n)&&n in t.console&&(ro.add(n),T(t.console,n,function(r){return c[n]=r,function(...r){let i=r[0],a=c[n],o=eo.size&&typeof i==`string`&&et(i,eo);o||b(`console`,{args:r,level:n}),(!o||e&&g.isEnabled())&&a?.apply(t.console,r)}}))})}function ao(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var oo=`Dedupe`,so=V((()=>{let t;return{name:oo,processEvent(n){if(n.type)return n;try{if(co(n,t))return e&&g.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return t=n}}}));function co(e,t){return t?!!(lo(e,t)||uo(e,t)):!1}function lo(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!po(e,t)||!fo(e,t))}function uo(e,t){let n=mo(t),r=mo(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!po(e,t)||!fo(e,t))}function fo(e,t){let n=ue(e),r=ue(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function po(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function mo(e){return e.exception?.values?.[0]}var ho=`Console`,go=V((e={})=>{let t=new Set(e.levels||o);return{name:ho,setup(n){let r=to(({args:e,level:r})=>{B()===n&&t.has(r)&&_o(r,e)});if(n.registerCleanup(r),e.filter){let t=no(e.filter);n.registerCleanup(t)}}}});function _o(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:ao(e),message:vo(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${vo(e)}`:`Assertion failed`,n.data.arguments=e}else return}J(n,{input:t,level:e})}function vo(e){return`util`in t&&typeof t.util.format==`function`?t.util.format(...e):Qe(e,` `)}var yo=`ConversationId`,bo=V((()=>({name:yo,setup(e){e.on(`spanStart`,e=>{let t=R().getScopeData(),n=z().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=En(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(Gt,r)}})}}))),xo=t;function So(){if(!(`fetch`in xo))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Co(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function wo(){if(typeof EdgeRuntime==`string`)return!0;if(!So())return!1;if(Co(xo.fetch))return!0;let t=!1,n=xo.document;if(n&&typeof n.createElement==`function`)try{let e=n.createElement(`iframe`);e.hidden=!0,n.head.appendChild(e),e.contentWindow?.fetch&&(t=Co(e.contentWindow.fetch)),n.head.removeChild(e)}catch(t){e&&g.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,t)}return t}function To(e){let t=`fetch`,n=v(t,e);return y(t,()=>Eo()),n}function Eo(e){(!Pr()||wo())&&T(t,`fetch`,function(n){return new Proxy(n,{apply(n,r,i){let a=Error(),{method:o,url:s}=ko(i),c={args:i,fetchData:{method:o,url:s},startTimestamp:P()*1e3,virtualError:a,headers:Ao(i)};return e||b(`fetch`,{...c}),Reflect.apply(n,t,i).then(async t=>(e?e(t):b(`fetch`,{...c,endTimestamp:P()*1e3,response:t}),t),e=>{b(`fetch`,{...c,endTimestamp:P()*1e3,error:e}),x(e)&&e.stack===void 0&&(e.stack=a.stack,E(e,`framesToPop`,1));let t=B()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&x(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(c.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:E(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})})}function Do(e,t){return Te(e)&&!!e[t]}function Oo(e){return typeof e==`string`?e:e?Do(e,`url`)?e.url:e.toString?e.toString():``:``}function ko(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Oo(t),method:Do(n,`method`)?String(n.method).toUpperCase():Ae(t)&&Do(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Oo(t),method:Do(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ao(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Ae(t))return new Headers(t.headers)}catch{}}function jo(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Mo=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Y=t,No=80,X={};try{typeof Node<`u`&&(X.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(X.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,X.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,X.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,X.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(X.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function Z(e,t,n){let r=X[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function Po(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||No;for(;n&&i++<5&&(o=Fo(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=Z(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function Fo(e,t){let n=[],r=Z(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=Z(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>Z(e,`getAttribute`,t)).map(t=>[t,Z(e,`getAttribute`,t)]):null;if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=Z(e,`id`);t&&n.push(`#${t}`);let r=Z(e,`className`);if(r&&C(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=Z(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function Io(e,t,n){Y.document&&Y.addEventListener(e,t,n)}function Lo(e,t,n){Y.document&&Y.removeEventListener(e,t,n)}var Ro=e=>{let t=Y.requestIdleCallback||Y.setTimeout;if(Y.document?.visibilityState===`hidden`)e();else{let n=!1,r=()=>{n||=(e(),!0)};Io(`visibilitychange`,r,{once:!0,capture:!0}),t(()=>{r(),Lo(`visibilitychange`,r,{capture:!0})})}};function zo(e,n=5){if(!t.HTMLElement)return null;let r=e;for(let e=0;e<n;e++){if(!r)return null;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}function Bo(){try{return Y.document?.location.href??``}catch{return``}}var Vo=new WeakMap;function Ho(e,t=B()){if(!t){Mo&&g.warn(`Cannot set a route provider without a client.`);return}Mo&&Uo(t)&&g.warn(`A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.`),Vo.set(t,e)}function Uo(e=B()){return e&&Vo.get(e)}var Wo=1e3,Go,Ko,qo;function Jo(e){return typeof e==`boolean`?e:!!e?.capture}function Yo(e){v(`dom`,e),y(`dom`,Xo)}function Xo(){if(!Y.document)return;let e=b.bind(null,`dom`),t=$o(e,!0);Y.document.addEventListener(`click`,t,!1),Y.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=Y[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(T(n,`addEventListener`,function(t){return function(n,r,i){if((n===`click`||n==`keypress`)&&r)try{let a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},s=Jo(i);if(!o.handler){let r=$o(e);o.handler=r,o.capture=s,t.call(this,n,r,o.capture)}let c=o[s?`captureListeners`:`bubbleListeners`];c.has(r)||(typeof i==`object`&&(i?.once||i?.signal)?o.sticky=!0:(c.add(r),o.listenerCount++))}catch{}return t.call(this,n,r,i)}}),T(n,`removeEventListener`,function(e){return function(t,n,r){if((t===`click`||t==`keypress`)&&n)try{let i=this.__sentry_instrumentation_handlers__||{},a=i[t];a?.[Jo(r)?`captureListeners`:`bubbleListeners`].delete(n)&&(!--a.listenerCount&&!a.sticky&&(e.call(this,t,a.handler,a.capture),a.handler=void 0,delete i[t]),Object.keys(i).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Zo(e){if(e.type!==Ko)return!1;try{if(!e.target||e.target._sentryId!==qo)return!1}catch{}return!0}function Qo(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function $o(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=es(n);if(Qo(n.type,r))return;E(n,`_sentryCaptured`,!0),r&&!r._sentryId&&E(r,`_sentryId`,A());let i=n.type===`keypress`?`input`:n.type;Zo(n)||(e({event:n,name:i,global:t}),Ko=n.type,qo=r?r._sentryId:void 0),clearTimeout(Go),Go=Y.setTimeout(()=>{qo=void 0,Ko=void 0},Wo)}}function es(e){try{return e.target}catch{return null}}var ts;function ns(){return`history`in Y&&!!Y.history}function rs(e){let t=`history`;v(t,e),y(t,is)}function is(){if(Y.addEventListener(`popstate`,()=>{let e=Y.location.href,t=ts;ts=e,t!==e&&b(`history`,{from:t,to:e})}),!ns())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ts,i=as(String(n));if(ts=i,r===i)return e.apply(this,t);b(`history`,{from:r,to:i})}return e.apply(this,t)}}T(Y.history,`pushState`,e),T(Y.history,`replaceState`,e)}function as(e){try{return new URL(e,Y.location.origin).toString()}catch{return e}}var os={};function ss(e){let t=os[e];if(t)return t;let n=Y[e];if(Co(n))return os[e]=n.bind(Y);let r=Y.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){Mo&&g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(os[e]=n.bind(Y))}function cs(e){os[e]=void 0}var ls=`__sentry_xhr_v3__`;function us(e){v(`xhr`,e),y(`xhr`,ds)}function ds(){if(!Y.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=P()*1e3,a=C(n[0])?n[0].toUpperCase():void 0,o=fs(n[1]);if(!a||!o)return e.apply(t,n);t[ls]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[ls];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}b(`xhr`,{endTimestamp:P()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[ls];return a&&C(r)&&C(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[ls];return r?(n[0]!==void 0&&(r.body=n[0]),b(`xhr`,{startTimestamp:P()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function fs(e){if(C(e))return e;try{return e.toString()}catch{}}function ps(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var Q=t,ms=0,hs=[];function gs(e){if(ms>0)return!0;let t=e?hs.findIndex(t=>_s(t,e)):-1;return t!==-1&&(hs.splice(t,1),!0)}function _s(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function vs(){ms++,setTimeout(()=>{ms--})}function $(e,n={}){function r(e){return typeof e==`function`}if(!r(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Me(e))return e}catch{return e}let i=function(...r){t._sentryWrappedDepth=(t._sentryWrappedDepth||0)+1;try{let t=r.map(e=>$(e,n));return e.apply(this,t)}catch(e){throw vs(),Ut(t=>{t.addEventProcessor(e=>(n.mechanism&&(at(e,void 0,void 0),M(e,n.mechanism)),e.extra={...e.extra,arguments:r},e)),pi(e)}),e}finally{t._sentryWrappedDepth=(t._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t])}catch{}je(i,e),E(e,`__sentry_wrapped__`,i);try{Object.getOwnPropertyDescriptor(i,`name`).configurable&&Object.defineProperty(i,"name",{get(){return e.name}})}catch{}return i}function ys(){let e=Bo(),{referrer:t}=Q.document||{},{userAgent:n}=Q.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function bs(e,t){let n=Cs(e,t),r={type:Os(t),value:ks(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function xs(e,t,n,r){let i=B()?.getOptions().normalizeDepth,a=Is(t),o={__serialized__:We(t,i)};if(a)return{exception:{values:[bs(e,a)]},extra:o};let s={exception:{values:[{type:Ee(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Ps(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Cs(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Ss(e,t){return{exception:{values:[bs(e,t)]}}}function Cs(e,t){let n=t.stacktrace||t.stack||``,r=Ts(t),i=Es(t);try{return e(n,r,i)}catch{}return[]}var ws=/Minified React error #\d+;/i;function Ts(e){return e&&ws.test(e.message)?1:0}function Es(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Ds(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Os(e){let t=e?.name;return!t&&Ds(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function ks(e){let t=e?.message;return Ds(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?$a(t.error):$a(e):`No error message`}function As(e,t,n,r){let i=Ms(e,t,n?.syntheticException||void 0,r);return M(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Kr(i)}function js(e,t,n=`info`,r,i){let a=Ns(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Kr(a)}function Ms(e,t,n,r,i){let a;if(be(t)&&t.error)return Ss(e,t.error);if(xe(t)||Se(t)){let i=t;if(`stack`in t){a=Ss(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Cs(e,n);t.length&&(i.stacktrace={frames:t},M(a,{synthetic:!0}))}}else{let t=i.name||(xe(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Ns(e,o,n,r),at(a,o)}return a}if(x(t))return Ss(e,t);if(we(t)||Ee(t))return a=xs(e,t,n,i),M(a,{synthetic:!0}),a;let o=String(t);return a=Ns(e,o,n,r),at(a,o,void 0),M(a,{synthetic:!0}),a}function Ns(e,t,n,r){let i={};if(r&&n){let r=Cs(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),M(i,{synthetic:!0})}if(Ce(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Ps(e,{isUnhandledRejection:t}){let n=Fe(e),r=t?`promise rejection`:`exception`;return be(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ee(e)?`Event \`${Fs(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Fs(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Is(e){return Object.values(e).find(x)}var Ls=class extends sa{constructor(e){let t=Rs(e);Aa(t,`browser`,[`browser`],Q.SENTRY_SDK_SOURCE||Mr()),super(t),t.routeProvider&&Ho(t.routeProvider,this),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options,i=()=>{P()},a=[[Q.document,`visibilitychange`,()=>{i(),Q.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[Q.document,`freeze`,i],[Q.document,`resume`,i],[Q,`pagehide`,i],[Q,`pageshow`,i]];a.forEach(([e,t,n])=>e?.addEventListener?.(t,n)),this.on(`close`,()=>a.forEach(([e,t,n])=>e?.removeEventListener?.(t,n))),n&&this.on(`beforeSendSession`,ka)}eventFromException(e,t){return As(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return js(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Rs(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var zs=40;function Bs(e,t=ss(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw cs(`fetch`),e}finally{n-=a,r--}}return Vi(e,i,Fi(e.bufferSize||zs))}var Vs=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,Hs=30,Us=50;function Ws(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Gs=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ks=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,qs=/\((\S*)(?::(\d+))(?::(\d+))\)/,Js=/at (.+?) ?\(data:(.+?),/,Ys=[Hs,e=>{let t=e.match(Js);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Gs.exec(e);if(n){let[,e,t,r]=n;return Ws(e,`?`,+t,+r)}let r=Ks.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=qs.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=$s(r[1]||`?`,r[2]);return Ws(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Xs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Qs=ae(Ys,[Us,e=>{let t=Xs.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Zs.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=$s(n,e),Ws(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),$s=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ec=1024,tc=`Breadcrumbs`,nc=V(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:tc,setup(e){t.dom&&Yo(ic(e,t.dom)),t.xhr&&us(ac(e)),t.fetch&&To(oc(e)),t.history&&rs(sc(e)),t.sentry&&e.on(`beforeSendEvent`,rc(e))}}}));function rc(e){return function(t){B()===e&&J({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:j(t)},{event:t})}}function ic(e,t){return function(n){if(B()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>ec&&(Vs&&g.warn(`\`dom.maxStringLength\` cannot exceed ${ec}, but a value of ${o} was configured. Sentry will use ${ec} instead.`),o=ec),typeof a==`string`&&(a=[a]);try{let e=n.event,t=cc(e)?e.target:e;r=Po(t,{keyAttrs:a,maxStringLength:o}),i=zo(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),J(s,{event:n.event,name:n.name,global:n.global})}}function ac(e){return function(t){if(B()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[ls];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:q(o),status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:jo(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),J(d,u)}}function oc(e){return function(t){if(B()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:{...t.fetchData,url:q(t.fetchData.url)},level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),J(a,i)}else{let i=t.response,a={...t.fetchData,url:q(t.fetchData.url),status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:jo(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),J(s,o)}}}}function sc(e){return function(t){if(B()!==e)return;let n=t.from,r=t.to,i=Da(Q.location.href),a=n?Da(n):void 0,o=Da(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),J({category:`navigation`,data:{from:q(n),to:q(r)}})}}function cc(e){return!!e&&!!e.target}var lc=`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(`,`),uc=`BrowserApiErrors`,dc=V(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:uc,setupOnce(){t.setTimeout&&T(Q,`setTimeout`,fc),t.setInterval&&T(Q,`setInterval`,fc),t.requestAnimationFrame&&T(Q,`requestAnimationFrame`,pc),t.XMLHttpRequest&&`XMLHttpRequest`in Q&&T(XMLHttpRequest.prototype,`send`,mc);let e=t.eventTarget;e&&(Array.isArray(e)?e:lc).forEach(e=>hc(e,t))}}}));function fc(e){return function(...t){let n=t[0];return t[0]=$(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${_(e)}`}}),e.apply(this,t)}}function pc(e){return function(t){return e.apply(this,[$(t,{mechanism:{data:{handler:_(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function mc(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&T(n,e,function(t){let n={mechanism:{data:{handler:_(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Me(t);return r&&(n.mechanism.data.handler=_(r)),$(t,n)})}),e.apply(this,t)}}function hc(e,t){let n=Q[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(T(n,`addEventListener`,function(n){return function(r,i,a){try{gc(i)&&(i.handleEvent=$(i.handleEvent,{mechanism:{data:{handler:_(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&_c(this,r,i),n.apply(this,[r,$(i,{mechanism:{data:{handler:_(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),T(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function gc(e){return typeof e.handleEvent==`function`}function _c(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var vc=V((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(Q.document===void 0){Vs&&g.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}hi({ignoreDuration:!0});let e=!1;Ro(()=>{e||=(vi(),!0)});let n=z(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&vi())}),t===`route`&&rs(({from:t,to:n})=>{t!==n&&(hi({ignoreDuration:!0}),vi(),e=!0)})}}}),yc=`CultureContext`,bc=V((()=>({name:yc,preprocessEvent(e){let t=xc();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=xc();t&&hr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function xc(){try{let e=Q.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Sc=`GlobalHandlers`,Cc=V(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Sc,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(wc(e),kc(`onerror`)),t.onunhandledrejection&&(Tc(e),kc(`onunhandledrejection`))}}}));function wc(e){me(t=>{let{stackParser:n,attachStacktrace:r}=Ac();if(B()!==e||gs(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Oc(Ms(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,mi(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Tc(e){_e(t=>{let{stackParser:n,attachStacktrace:r}=Ac();if(B()!==e||gs())return;let i=Ec(t),a=w(i)?Dc(i):Ms(n,i,void 0,r,!0);a.level=`error`,mi(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Ec(e){if(w(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 Dc(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Oc(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:jc(t)??Bo(),function:`?`,in_app:!0}),e}function kc(e){Vs&&g.log(`Global Handler attached: ${e}`)}function Ac(){return B()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function jc(e){if(C(e)&&e.length!==0)return e.startsWith(`data:`)?`<${Oa(e,!1)}>`:e}var Mc=V(()=>({name:`HttpContext`,preprocessEvent(e,t,n){if(!Q.navigator&&!Q.location&&!Q.document)return;let{url:r,headers:i}=ys(),a=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(e.request?.headers??{}).filter(([e])=>!(e in i)),s={...Ca(i,a),...Object.fromEntries(o)};e.request={url:q(r,n),...e.request,...Object.keys(s).length>0?{headers:s}:{headers:void 0}}},processSpan(e,t){if(!Q.navigator&&!Q.location&&!Q.document)return;let n=ys(),r=Ca(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:a,protocol:o}=Q.location||{};hr(e,{[Qt]:r[`User-Agent`],[qt]:o===`file:`||a===`localhost`||a===`127.0.0.1`||a===`[::1]`||!!a?.endsWith(`.localhost`),...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:q(n.url),"http.request.header.referer":i?[i]:void 0}})}})),Nc=`cause`,Pc=5,Fc=`LinkedErrors`,Ic=V(((e={})=>{let t=e.limit||Pc,n=e.key||Nc;return{name:Fc,preprocessEvent(e,r,i){qa(bs,i.getOptions().stackParser,n,t,e,r)}}})),Lc=/^HTML(\w*)Element$/;function Rc(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(ps(e)){let t=zc(e);if(Lc.test(t))return`[HTMLElement: ${Po(e)}]`}}function zc(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Bc(){return Vc()?(Vs&&l(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function Vc(){if(Q.window===void 0)return!1;let e=Q;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Bo();return!(Q===Q.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Hc(e){return[La(),Pa(),bo(),dc(),nc(),go(),Cc(),Ic(),so(),Mc(),bc(),vc()]}function Uc(e={}){let t=!e.skipBrowserExtensionCheck&&Bc(),n=e.defaultIntegrations==null?Hc():e.defaultIntegrations,r=Gn({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:oe(e.stackParser||Qs),integrations:r,transport:e.transport||Bs};return Ue(Rc),ha(Ls,i)}export{pi as captureException,Uc as init};
|
package/dist/shell/assets/{shared-protobase-ui-DDq8y6_Q.js → shared-protobase-ui-DQxQC_dF.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,B as n,C as r,D as i,E as a,F as o,I as s,L as c,M as l,N as u,O as d,P as f,R as p,S as m,T as h,V as g,_,a as v,b as y,c as b,d as x,f as S,g as C,h as w,i as T,j as E,k as D,l as O,m as k,n as A,o as j,p as M,r as N,s as P,t as F,u as I,v as L,w as R,x as z,y as B,z as V}from"./app-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{A as t,B as n,C as r,D as i,E as a,F as o,I as s,L as c,M as l,N as u,O as d,P as f,R as p,S as m,T as h,V as g,_,a as v,b as y,c as b,d as x,f as S,g as C,h as w,i as T,j as E,k as D,l as O,m as k,n as A,o as j,p as M,r as N,s as P,t as F,u as I,v as L,w as R,x as z,y as B,z as V}from"./app-DRkDxaX2.js";import{t as H}from"./jsx-runtime-NZYk81nU.js";var U=e(H(),1),W=({row:e,resource:t,recordKey:n,...r})=>{let i=x(),a=O(),o=t??i?.resource??a?.model.name;if(o===void 0)throw Error(`RecordLink needs a resource outside a list display or a record`);return(0,U.jsx)(w,{to:{kind:`record`,resource:o,key:e?e.key:n},...r})};export{t as ActionCard,p as ApiProvider,F as App,w as AppLink,z as AssistantDock,f as ChatMessage,u as ChatThread,d as CompactTable,l as Composer,h as DiffView,D as FieldList,r as PartView,W as RecordLink,E as SidePanel,R as StepList,o as definePlugin,s as defineUi,a as diffStats,A as isConflict,b as mergeUi,i as parseDiff,v as pluginApi,j as protobaseVersion,g as uiFromModule,B as useApiToken,C as useAppAddress,y as useAssistant,L as useAssistantClient,m as useBackendData,V as useClient,S as useFacets,M as useHistogram,O as useLayoutRecord,T as useList,I as useListDisplay,_ as useMeta,P as usePlugin,c as useRecord,n as useResourceClient,k as useSeries,N as useUpdateRecord};
|
package/dist/shell/index.html
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
8
8
|
<title>Protobase</title>
|
|
9
|
-
<script type="importmap">{"imports":{"react":"/assets/shared-react-DhkZ2M4l.js","react/jsx-runtime":"/assets/shared-react-jsx-runtime-xPQrWk0g.js","react-dom":"/assets/shared-react-dom-D508a1cq.js","@protobase/ui":"/assets/shared-protobase-ui-
|
|
10
|
-
<script type="module" crossorigin src="/assets/index
|
|
9
|
+
<script type="importmap">{"imports":{"react":"/assets/shared-react-DhkZ2M4l.js","react/jsx-runtime":"/assets/shared-react-jsx-runtime-xPQrWk0g.js","react-dom":"/assets/shared-react-dom-D508a1cq.js","@protobase/ui":"/assets/shared-protobase-ui-DQxQC_dF.js"}}</script>
|
|
10
|
+
<script type="module" crossorigin src="/assets/index--KkbQgIT.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/react-Cvdyeg_0.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/jsx-runtime-NZYk81nU.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/assets/react-dom-B-VxWsjA.js">
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/app-
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/app-DRkDxaX2.js">
|
|
16
16
|
<link rel="stylesheet" crossorigin href="/assets/app-GUjJKojE.css">
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-BVOqIEYd.css">
|
|
18
18
|
<link rel="stylesheet" href="/protobase.theme.css">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/ui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "The Protobase admin app and the React hooks and components for custom UI.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@dnd-kit/core": "^6.3.1",
|
|
40
40
|
"@dnd-kit/sortable": "^10.0.0",
|
|
41
|
-
"@protobase/client": "0.12.
|
|
42
|
-
"@protobase/layout": "0.12.
|
|
43
|
-
"@protobase/schema": "0.12.
|
|
41
|
+
"@protobase/client": "0.12.6",
|
|
42
|
+
"@protobase/layout": "0.12.6",
|
|
43
|
+
"@protobase/schema": "0.12.6",
|
|
44
|
+
"@sentry/browser": "^11.7.0",
|
|
44
45
|
"@tanstack/react-query": "^5.104.1",
|
|
45
46
|
"@tanstack/react-table": "^9.2.6",
|
|
46
47
|
"@tanstack/react-virtual": "^3.14.13",
|