chromatic
Version:
Automate visual testing across browsers. Gather UI feedback. Versioned documentation.
7 lines (6 loc) • 2.62 MB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="16bcafff-b510-5b98-bb28-9ac66b9e7431")}catch(e){}}();
const e=require(`./chunk-gGpyby2o.cjs`),t=require(`./src-BhnG2iLI.cjs`),n=require(`./meow-Cmqsflq2.cjs`),r=require(`./noPackageJson-BpFPY758.cjs`),i=require(`./turbosnap-BIko_qmz.cjs`),a=require(`./from-Y7cUpUgc.cjs`),o=require(`./build-BYxCbKPn.cjs`),s=require(`./execa-BYysbdaH.cjs`),c=require(`./jsonfile-B5dFQCAM.cjs`),l=require(`./strip-ansi-DWzhKQ1g.cjs`),u=require(`./log-BI_UMjxm.cjs`),d=require(`./lib-BCQVcqZT.cjs`),f=require(`./trimStatsFile-Dx01BerQ.cjs`),p=require(`./validateStorybookVersion-BkdIM9HV.cjs`);let m=require(`fs`),h=require(`path`);h=e.a(h);let g=require(`os`),v=require(`crypto`),y=require(`semver`);y=e.a(y);let b=require(`url`),x=require(`node:util`),S=require(`node:child_process`);S=e.a(S,1);let C=require(`node:fs`),w=require(`node:os`);w=e.a(w,1);let T=require(`node:path`);T=e.a(T,1);let E=require(`node:readline`);E=e.a(E,1);let D=require(`node:http`);D=e.a(D,1);let O=require(`node:https`);O=e.a(O,1);let k=require(`node:stream`);k=e.a(k,1);let A=require(`node:zlib`);A=e.a(A,1);let j=require(`node:net`),M=require(`node:process`);M=e.a(M,1);let N=require(`node:fs/promises`),P=require(`node:url`);P=e.a(P,1);let F=require(`node:module`);F=e.a(F,1);let I=require(`dns`);I=e.a(I);let L=require(`node:buffer`),R=require(`https`),z=require(`node:timers/promises`),B=require(`node:tty`),V=require(`fs/promises`),ee=require(`readline`);var te=e.t(((e,t)=>{let n=Symbol(`@@any-observable/REGISTRATION`),r;t.exports=(e,t)=>(i,a={})=>{let o=a.global!==!1;if(o&&!r&&(r=e[n]),r&&i&&r.implementation!==i)throw Error(`any-observable already defined as \`${r.implementation}\`. You can only register an implementation before the first call to \`require('any-observable')\` and an implementation cannot be changed`);return r||(r=i&&a.Observable?{Observable:a.Observable,implementation:i}:t(i),o&&(e[n]=r)),r}})),ne=e.t(((e,t)=>{t.exports=te()(global,n);function n(e){let t;if(e===`global.Observable`)t={Observable:global.Observable,implementation:`global.Observable`};else if(e){let n=require(e);t={Observable:n.Observable||n.default||n,implementation:e}}else t=r();if(!t)throw Error("Cannot find any-observable implementation nor `global.Observable`. You must install polyfill or call `require('any-observable/register') with your preferred implementation, for example, `require('any-observable/register')('rxjs')` on app load prior to any `require('any-observable').");return t}function r(){for(let e of[`rxjs`,`zen-observable`])try{return n(e)}catch{}}})),H=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}var i=function(){return typeof Symbol==`function`},a=function(e){return i()&&!!Symbol[e]},o=function(e){return a(e)?Symbol[e]:`@@`+e};i()&&!a(`observable`)&&(Symbol.observable=Symbol(`observable`));var s=o(`iterator`),c=o(`observable`),l=o(`species`);function u(e,t){var n=e[t];if(n!=null){if(typeof n!=`function`)throw TypeError(n+` is not a function`);return n}}function d(e){var t=e.constructor;return t!==void 0&&(t=t[l],t===null&&(t=void 0)),t===void 0?C:t}function f(e){return e instanceof C}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function h(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,t))try{if(typeof t==`function`)t();else{var n=u(t,`unsubscribe`);n&&n.call(t)}}catch(e){p(e)}}function g(e){e._observer=void 0,e._queue=void 0,e._state=`closed`}function v(e){var t=e._queue;if(t){e._queue=void 0,e._state=`ready`;for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),e._state!==`closed`);++n);}}function y(e,t,n){e._state=`running`;var r=e._observer;try{var i=u(r,t);switch(t){case`next`:i&&i.call(r,n);break;case`error`:if(g(e),i)i.call(r,n);else throw n;break;case`complete`:g(e),i&&i.call(r);break}}catch(e){p(e)}e._state===`closed`?h(e):e._state===`running`&&(e._state=`ready`)}function b(e,t,n){if(e._state!==`closed`){if(e._state===`buffering`){e._queue.push({type:t,value:n});return}if(e._state!==`ready`){e._state=`buffering`,e._queue=[{type:t,value:n}],m(function(){return v(e)});return}y(e,t,n)}}var x=function(){function e(n,r){t(this,e),this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state=`initializing`;var i=new S(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}this._state===`initializing`&&(this._state=`ready`)}return r(e,[{key:`unsubscribe`,value:function(){this._state!==`closed`&&(g(this),h(this))}},{key:`closed`,get:function(){return this._state===`closed`}}]),e}(),S=function(){function e(n){t(this,e),this._subscription=n}return r(e,[{key:`next`,value:function(e){b(this._subscription,`next`,e)}},{key:`error`,value:function(e){b(this._subscription,`error`,e)}},{key:`complete`,value:function(){b(this._subscription,`complete`)}},{key:`closed`,get:function(){return this._subscription._state===`closed`}}]),e}(),C=function(){function e(n){if(t(this,e),!(this instanceof e))throw TypeError(`Observable cannot be called as a function`);if(typeof n!=`function`)throw TypeError(`Observable initializer must be a function`);this._subscriber=n}return r(e,[{key:`subscribe`,value:function(e){return(typeof e!=`object`||!e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)}},{key:`forEach`,value:function(e){var t=this;return new Promise(function(n,r){if(typeof e!=`function`){r(TypeError(e+` is not a function`));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})}},{key:`map`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`filter`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`reduce`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError(`Cannot reduce an empty sequence`));n.next(a),n.complete()}})})}},{key:`concat`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=d(this);return new i(function(t){var r,a=0;function o(e){r=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):o(i.from(n[a++]))}})}return o(e),function(){r&&=(r.unsubscribe(),void 0)}})}},{key:`flatMap`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&i.length===0&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:`from`,value:function(t){var n=typeof this==`function`?this:e;if(t==null)throw TypeError(t+` is not an object`);var r=u(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+` is not an object`);return f(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(a(`iterator`)&&(r=u(t,s),r))return new n(function(e){m(function(){if(!e.closed){var n=!0,i=!1,a=void 0;try{for(var o=r.call(t)[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var c=s.value;if(e.next(c),e.closed)return}}catch(e){i=!0,a=e}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}e.complete()}})});if(Array.isArray(t))return new n(function(e){m(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+` is not observable`)}},{key:`of`,value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new(typeof this==`function`?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})}},{key:l,get:function(){return this}}]),e}();e.Observable=C,i()&&Object.defineProperty(C,Symbol(`extensions`),{value:{symbol:c,hostReportError:p},configurable:!0})})),U=e.t(((e,t)=>{t.exports=H().Observable}));ne()(`zen-observable`,{Observable:U()});const re=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,W=`8.55.1`,ie=globalThis;function G(e,t,n){let r=n||ie,i=r.__SENTRY__=r.__SENTRY__||{},a=i[W]=i[`8.55.1`]||{};return a[e]||(a[e]=t())}const ae=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,oe=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],se={};function ce(e){if(!(`console`in ie))return e();let t=ie.console,n={},r=Object.keys(se);r.forEach(e=>{let r=se[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function le(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ae?oe.forEach(n=>{t[n]=(...t)=>{e&&ce(()=>{ie.console[n](`Sentry Logger [${n}]:`,...t)})}}):oe.forEach(e=>{t[e]=()=>void 0}),t}const ue=G(`logger`,le),de=/\(error: (.*)\)/,fe=/captureMessage|captureException/;function pe(...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(`
`);for(let e=n;e<a.length;e++){let n=a[e];if(n.length>1024)continue;let o=de.test(n)?n.replace(de,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=50+r)break}}return he(i.slice(r))}}function me(e){return Array.isArray(e)?pe(...e):e}function he(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ge(t).function||``)&&t.pop(),t.reverse(),fe.test(ge(t).function||``)&&(t.pop(),fe.test(ge(t).function||``)&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||ge(t).filename,function:e.function||`?`}))}function ge(e){return e[e.length-1]||{}}const _e=`<anonymous>`;function ve(e){try{return!e||typeof e!=`function`?_e:e.name||_e}catch{return _e}}function ye(){return be(ie),ie}function be(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`8.55.1`,t[W]=t[`8.55.1`]||{}}const xe=Object.prototype.toString;function Se(e){switch(xe.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Pe(e,Error)}}function Ce(e,t){return xe.call(e)===`[object ${t}]`}function we(e){return Ce(e,`ErrorEvent`)}function Te(e){return Ce(e,`String`)}function Ee(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function De(e){return e===null||Ee(e)||typeof e!=`object`&&typeof e!=`function`}function Oe(e){return Ce(e,`Object`)}function ke(e){return typeof Event<`u`&&Pe(e,Event)}function Ae(e){return typeof Element<`u`&&Pe(e,Element)}function je(e){return Ce(e,`RegExp`)}function Me(e){return!!(e&&e.then&&typeof e.then==`function`)}function Ne(e){return Oe(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Pe(e,t){try{return e instanceof t}catch{return!1}}function Fe(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue))}const Ie=ie;function Le(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||80;for(;n&&i++<5&&(o=Re(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function Re(e,t){let n=e,r=[];if(!n||!n.tagName)return``;if(Ie.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i&&i.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&Te(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function ze(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Be(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function Ve(e,t,n=!1){return Te(e)?je(t)?t.test(e):Te(t)?n?e===t:e.includes(t):!1:!1}function He(e,t=[],n=!1){return t.some(t=>Ve(e,t,n))}function Ue(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);typeof i==`function`&&Ge(i,r);try{e[t]=i}catch{ae&&ue.log(`Failed to replace method "${t}" in object`,e)}}function We(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ae&&ue.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ge(e,t){try{e.prototype=t.prototype=t.prototype||{},We(e,`__sentry_original__`,t)}catch{}}function Ke(e){return e.__sentry_original__}function qe(e){if(Se(e))return{message:e.message,name:e.name,stack:e.stack,...Je(e)};if(ke(e)){let t={type:e.type,target:K(e.target),currentTarget:K(e.currentTarget),...Je(e)};return typeof CustomEvent<`u`&&Pe(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function K(e){try{return Ae(e)?Le(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Je(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Ye(e,t=40){let n=Object.keys(qe(e));n.sort();let r=n[0];if(!r)return`[object has no keys]`;if(r.length>=t)return ze(r,t);for(let e=n.length;e>0;e--){let r=n.slice(0,e).join(`, `);if(!(r.length>t))return e===n.length?r:ze(r,t)}return``}function Xe(e){return Ze(e,new Map)}function Ze(e,t){if(Qe(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let n of Object.getOwnPropertyNames(e))e[n]!==void 0&&(r[n]=Ze(e[n],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(e=>{r.push(Ze(e,t))}),r}return e}function Qe(e){if(!Oe(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t===`Object`}catch{return!0}}const $e=1e3;function et(){return Date.now()/$e}function tt(){let{performance:e}=ie;if(!e||!e.now)return et;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/$e}const nt=tt();(()=>{let{performance:e}=ie;if(!e||!e.now)return;let t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s=typeof o==`number`?Math.abs(o+n-r):t;return a||s<t?i<=s?e.timeOrigin:o:r})();function rt(){let e=ie,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,``);t&&t.getRandomValues&&(n=()=>{let e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(n()&15)>>e/4).toString(16))}function it(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function at(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 ot(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 st(e,t){let n=it(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i&&i.data,...t.data};n.mechanism.data=e}}const ct=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function lt(e){return parseInt(e||``,10)}function ut(e){let t=e.match(ct)||[],n=lt(t[1]),r=lt(t[2]),i=lt(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(i)?void 0:i,prerelease:t[4]}}function dt(e){if(ft(e))return!0;try{We(e,`__sentry_captured__`,!0)}catch{}return!1}function ft(e){try{return e.__sentry_captured__}catch{}}var pt;(function(e){e[e.PENDING=0]=`PENDING`,e[e.RESOLVED=1]=`RESOLVED`,e[e.REJECTED=2]=`REJECTED`})(pt||={});function mt(e){return new gt(t=>{t(e)})}function ht(e){return new gt((t,n)=>{n(e)})}var gt=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=pt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(e){this._reject(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)})})}__init(){this._resolve=e=>{this._setResult(pt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(pt.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===pt.PENDING){if(Me(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===pt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===pt.RESOLVED&&e[1](this._value),this._state===pt.REJECTED&&e[2](this._value),!0)})}}};function _t(e){let t=nt(),n={sid:rt(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>bt(n)};return e&&vt(n,e),n}function vt(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||nt(),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:rt()),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 yt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),vt(e,n)}function bt(e){return Xe({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 xt(){return rt()}function St(){return rt().substring(16)}function Ct(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&t&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Ct(r[e],t[e],n-1));return r}const wt=`_sentrySpan`;function Tt(e,t){t?We(e,wt,t):delete e[wt]}function Et(e){return e[wt]}const Dt=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:xt(),spanId:St()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Tt(t,Et(this)),t}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&&vt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},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 t=typeof e==`function`?e(this):e,[n,r]=t instanceof Dt?[t.getScopeData(),t.getRequestSession()]:Oe(t)?[e,e.requestSession]:[],{tags:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...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),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Tt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:xt()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:100;if(n<=0)return this;let r={timestamp:et(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Et(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Ct(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:St(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:rt();if(!this._client)return ue.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:rt();if(!this._client)return ue.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:rt();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(ue.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Ot(){return G(`defaultCurrentScope`,()=>new Dt)}function kt(){return G(`defaultIsolationScope`,()=>new Dt)}var At=class{constructor(e,t){let n;n=e||new Dt;let r;r=t||new Dt,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 Me(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(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 jt(){let e=be(ye());return e.stack=e.stack||new At(Ot(),kt())}function Mt(e){return jt().withScope(e)}function Nt(e,t){let n=jt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Pt(e){return jt().withScope(()=>e(jt().getIsolationScope()))}function Ft(){return{withIsolationScope:Pt,withScope:Mt,withSetScope:Nt,withSetIsolationScope:(e,t)=>Pt(t),getCurrentScope:()=>jt().getScope(),getIsolationScope:()=>jt().getIsolationScope()}}function It(e){let t=be(ye());t.acs=e}function Lt(e){let t=be(e);return t.acs?t.acs:Ft()}function Rt(){return Lt(ye()).getCurrentScope()}function zt(){return Lt(ye()).getIsolationScope()}function Bt(){return G(`globalScope`,()=>new Dt)}function Vt(...e){let t=Lt(ye());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Ht(...e){let t=Lt(ye());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function Ut(){return Rt().getClient()}function Wt(e){let{traceId:t,spanId:n,parentSpanId:r}=e.getPropagationContext();return Xe({trace_id:t,span_id:n,parent_span_id:r})}function Gt(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(Xe(r));return n}const Kt=`sentry.source`,qt=`sentry.sample_rate`,Jt=`sentry.op`,Yt=`sentry.origin`;function Xt(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`unknown_error`}}const Zt=`sentry-`,Qt=/^sentry-/;function $t(e){let t=en(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Qt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function q(e){if(e)return nn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Zt}${t}`]=n),e),{}))}function en(e){if(!(!e||!Te(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=tn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):tn(e)}function tn(e){return e.split(`,`).map(e=>e.split(`=`).map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function nn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],r)=>{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=r===0?i:`${e},${i}`;return a.length>8192?(ae&&ue.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a},``)}const rn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function an(e){if(!e)return;let t=e.match(rn);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function on(e,t){let n=an(e),r=$t(t);if(!n||!n.traceId)return{traceId:xt(),spanId:St()};let{traceId:i,parentSpanId:a,parentSampled:o}=n;return{traceId:i,parentSpanId:a,spanId:St(),sampled:o,dsc:r||{}}}function sn(e=xt(),t=St(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}let cn=!1;function ln(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s}=mn(e);return Xe({parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s})}function un(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext();return Xe({parent_span_id:r?t:mn(e).parent_span_id,span_id:r?St():t,trace_id:n})}function dn(e){let{traceId:t,spanId:n}=e.spanContext();return sn(t,n,_n(e))}function fn(e){return typeof e==`number`?pn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?pn(e.getTime()):nt()}function pn(e){return e>9999999999?e/1e3:e}function mn(e){if(gn(e))return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(hn(e)){let{attributes:r,startTime:i,name:a,endTime:o,parentSpanId:s,status:c}=e;return Xe({span_id:t,trace_id:n,data:r,description:a,parent_span_id:s,start_timestamp:fn(i),timestamp:fn(o)||void 0,status:vn(c),op:r[Jt],origin:r[Yt],_metrics_summary:Gt(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function hn(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function gn(e){return typeof e.getSpanJSON==`function`}function _n(e){let{traceFlags:t}=e.spanContext();return t===1}function vn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}const yn=`_sentryChildSpans`,bn=`_sentryRootSpan`;function xn(e,t){We(t,bn,e[bn]||e),e[yn]?e[yn].add(t):We(e,yn,new Set([t]))}function Sn(e){let t=new Set;function n(e){if(!t.has(e)&&_n(e)){t.add(e);let r=e[yn]?Array.from(e[yn]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function Cn(e){return e[bn]||e}function wn(){let e=Lt(ye());return e.getActiveSpan?e.getActiveSpan():Et(Rt())}function Tn(){cn||=(ce(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),!0)}function En(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=Ut(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||`tracesSampleRate`in n||`tracesSampler`in n)}const Dn=`_frozenDsc`;function On(e,t){We(e,Dn,t)}function kn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i=Xe({environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e});return t.emit(`createDsc`,i),i}function An(e,t){let n=t.getPropagationContext();return n.dsc||kn(n.traceId,e)}function jn(e){let t=Ut();if(!t)return{};let n=Cn(e),r=n[Dn];if(r)return r;let i=n.spanContext().traceState,a=i&&i.get(`sentry.dsc`),o=a&&$t(a);if(o)return o;let s=kn(e.spanContext().traceId,t),c=mn(n),l=c.data||{},u=l[qt];u!=null&&(s.sample_rate=`${u}`);let d=l[Kt],f=c.description;return d!==`url`&&f&&(s.transaction=f),En()&&(s.sampled=String(_n(n))),t.emit(`createDsc`,s,n),s}function Mn(){let e=typeof WeakSet==`function`,t=e?new WeakSet:[];function n(n){if(e)return t.has(n)?!0:(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1}function r(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}return[n,r]}function Nn(e,t=100,n=1/0){try{return Fn(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Pn(e,t=3,n=100*1024){let r=Nn(e,t);return zn(r)>n?Pn(e,t-1,n):r}function Fn(e,t,n=1/0,r=1/0,i=Mn()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=In(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Fn(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=qe(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Fn(e,t,c-1,r,i),d++}return o(t),u}function In(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Fe(t))return`[VueViewModel]`;if(Ne(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${ve(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=Ln(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function Ln(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:`null prototype`}function Rn(e){return~-encodeURI(e).split(/%..|./).length}function zn(e){return Rn(JSON.stringify(e))}function Bn(e,t,n,r=0){return new gt((i,a)=>{let o=e[r];if(t===null||typeof o!=`function`)i(t);else{let s=o({...t},n);re&&o.id&&s===null&&ue.log(`Event processor "${o.id}" dropped event`),Me(s)?s.then(t=>Bn(e,t,n,r+1).then(i)).then(null,a):Bn(e,s,n,r+1).then(i).then(null,a)}})}let Vn,Hn,Un;function Wn(e){let t=ie._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return Un&&n.length===Hn?Un:(Hn=n.length,Un=n.reduce((n,r)=>{Vn||={};let i=Vn[r];if(i)n[i[0]]=i[1];else{let i=e(r);for(let e=i.length-1;e>=0;e--){let a=i[e],o=a&&a.filename,s=t[r];if(o&&s){n[o]=s,Vn[r]=[o,s];break}}}return n},{}),Un)}function Gn(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Jn(e,t),r&&Zn(e,r),Qn(e,n),Yn(e,i),Xn(e,a)}function Kn(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:m}=t;qn(e,`extra`,n),qn(e,`tags`,r),qn(e,`user`,i),qn(e,`contexts`,a),e.sdkProcessingMetadata=Ct(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function qn(e,t,n){e[t]=Ct(e[t],n,1)}function Jn(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t,c=Xe(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let l=Xe(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});let u=Xe(i);u&&Object.keys(u).length&&(e.user={...u,...e.user});let d=Xe(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Yn(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Xn(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zn(e,t){e.contexts={trace:un(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:jn(t),...e.sdkProcessingMetadata};let n=mn(Cn(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Qn(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function $n(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||rt(),timestamp:t.timestamp||et()},l=n.integrations||e.integrations.map(e=>e.name);er(c,e),rr(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&tr(c,e.stackParser);let u=ar(r,n.captureContext);n.mechanism&&st(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Bt().getScopeData();a&&Kn(f,a.getScopeData()),u&&Kn(f,u.getScopeData());let p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),Gn(c,f),Bn([...d,...f.eventProcessors],c,n).then(e=>(e&&nr(e),typeof o==`number`&&o>0?ir(e,o,s):e))}function er(e,t){let{environment:n,release:r,dist:i,maxValueLength:a=250}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&=ze(e.message,a);let o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=ze(o.value,a));let s=e.request;s&&s.url&&(s.url=ze(s.url,a))}function tr(e,t){let n=Wn(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch{}}function nr(e){let t={};try{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)})})}catch{}if(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 rr(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ir(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Nn(e.data,t,n)}}))},...e.user&&{user:Nn(e.user,t,n)},...e.contexts&&{contexts:Nn(e.contexts,t,n)},...e.extra&&{extra:Nn(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Nn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Nn(e.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=Nn(e.contexts.flags,3,n)),r}function ar(e,t){if(!t)return e;let n=e?e.clone():new Dt;return n.update(t),n}function or(e){if(e)return sr(e)||lr(e)?{captureContext:e}:e}function sr(e){return e instanceof Dt||typeof e==`function`}const cr=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`requestSession`,`propagationContext`];function lr(e){return Object.keys(e).some(e=>cr.includes(e))}function ur(e,t){return Rt().captureException(e,or(t))}function dr(e,t){return Rt().captureEvent(e,t)}function fr(e,t){zt().setContext(e,t)}function pr(e,t){zt().setTag(e,t)}async function mr(e){let t=Ut();return t?t.flush(e):(re&&ue.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}function hr(){let e=Ut();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function gr(e){let t=Ut(),n=zt(),r=Rt(),{release:i,environment:a=`production`}=t&&t.getOptions()||{},{userAgent:o}=ie.navigator||{},s=_t({release:i,environment:a,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status===`ok`&&vt(c,{status:`exited`}),_r(),n.setSession(s),r.setSession(s),s}function _r(){let e=zt(),t=Rt(),n=t.getSession()||e.getSession();n&&yt(n),vr(),e.setSession(),t.setSession()}function vr(){let e=zt(),t=Rt(),n=Ut(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}var yr=e.t(((e,t)=>{let n=(e,t,n)=>new Promise((r,i)=>{if(n=Object.assign({concurrency:1/0},n),typeof t!=`function`)throw TypeError(`Mapper function is required`);let{concurrency:a}=n;if(!(typeof a==`number`&&a>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${a}\` (${typeof a})`);let o=[],s=e[Symbol.iterator](),c=!1,l=!1,u=0,d=0,f=()=>{if(c)return;let e=s.next(),n=d;if(d++,e.done){l=!0,u===0&&r(o);return}u++,Promise.resolve(e.value).then(e=>t(e,n)).then(e=>{o[n]=e,u--,f()},e=>{c=!0,i(e)})};for(let e=0;e<a&&(f(),!l);e++);});t.exports=n,t.exports.default=n})),br=e.t(((e,t)=>{t.exports=n,t.exports.default=n;function n(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}})),xr=e.t(((e,t)=>{t.exports=ne()().Observable})),Sr=e.t(((e,t)=>{let n=xr();function r(e,t,n){let r=e===!1?!1:e||t;if(n&&!r||r&&typeof r!=`string`)throw TypeError(t+`Event must be a string.`);return r}t.exports=(e,t)=>{t||={};let i=!1,a=[],o=t.await,s=r(t.dataEvent,`data`,!0),c=r(t.errorEvent,`error`),l=r(t.endEvent,`end`);function u(){i=!0,a.forEach(t=>{e.removeListener(s,t)}),a=null}let d=new Promise((t,n)=>{function r(e){o?o.then(t):t(e)}l?e.once(l,r):o&&r(),c&&e.once(c,n),o&&o.catch(n)}).catch(e=>{throw u(),e}).then(e=>(u(),e));return new n(t=>{if(d.then(t.complete.bind(t)).catch(t.error.bind(t)),i)return null;let n=e=>{t.next(e)};return e.on(s,n),a.push(n),()=>{if(e.removeListener(s,n),i)return;let t=a.indexOf(n);t!==-1&&a.splice(t,1)}})}})),Cr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`function`}e.isFunction=t})),wr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e?console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at:
`+Error().stack):t&&console.log(`RxJS: Back to a better error behavior. Thank you. <3`),t=e},get useDeprecatedSynchronousErrorHandling(){return t}}})),Tr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){setTimeout(function(){throw e},0)}e.hostReportError=t})),Er=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=wr(),n=Tr();e.empty={closed:!0,next:function(e){},error:function(e){if(t.config.useDeprecatedSynchronousErrorHandling)throw e;n.hostReportError(e)},complete:function(){}}})),Dr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArray=(function(){return Array.isArray||(function(e){return e&&typeof e.length==`number`})})()})),Or=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e}e.isObject=t})),kr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=(function(){function e(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(e,t){return t+1+`) `+e.toString()}).join(`
`):``,this.name=`UnsubscriptionError`,this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()})),Ar=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Dr(),n=Or(),r=Cr(),i=kr();e.Subscription=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var o;if(!this.closed){var s=this,c=s._parentOrParents,l=s._ctorUnsubscribe,u=s._unsubscribe,d=s._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(c!==null)for(var f=0;f<c.length;++f)c[f].remove(this);if(r.isFunction(u)){l&&(this._unsubscribe=void 0);try{u.call(this)}catch(e){o=e instanceof i.UnsubscriptionError?a(e.errors):[e]}}if(t.isArray(d))for(var f=-1,p=d.length;++f<p;){var m=d[f];if(n.isObject(m))try{m.unsubscribe()}catch(e){o||=[],e instanceof i.UnsubscriptionError?o=o.concat(a(e.errors)):o.push(e)}}if(o)throw new i.UnsubscriptionError(o)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case`function`:n=new e(t);case`object`:if(n===this||n.closed||typeof n.unsubscribe!=`function`)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;n=new e,n._subscriptions=[r]}break;default:throw Error(`unrecognized teardown `+t+` added to Subscription.`)}var i=n._parentOrParents;if(i===null)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return n;var a=this._subscriptions;return a===null?this._subscriptions=[n]:a.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);n!==-1&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function a(e){return e.reduce(function(e,t){return e.concat(t instanceof i.UnsubscriptionError?t.errors:t)},[])}})),jr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rxSubscriber=(function(){return typeof Symbol==`function`?Symbol(`rxSubscriber`):`@@rxSubscriber_`+Math.random()})(),e.$$rxSubscriber=e.rxSubscriber})),Mr=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Cr(),r=Er(),i=Ar(),a=jr(),o=wr(),s=Tr(),c=function(e){t(n,e);function n(t,i,a){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.empty;break;case 1:if(!t){o.destination=r.empty;break}if(typeof t==`object`){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new l(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new l(o,t,i,a);break}return o}return n.prototype[a.rxSubscriber]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(i.Subscription);e.Subscriber=c;var l=function(e){t(i,e);function i(t,i,a,o){var s=e.call(this)||this;s._parentSubscriber=t;var c,l=s;return n.isFunction(i)?c=i:i&&(c=i.next,a=i.error,o=i.complete,i!==r.empty&&(l=Object.create(i),n.isFunction(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(s))),s._context=l,s._next=c,s._error=a,s._complete=o,s}return i.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(t,this._next,e)&&this.unsubscribe()}},i.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=o.config.useDeprecatedSynchronousErrorHandling;if(this._error)!n||!t.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(t,this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s.hostReportError(e)}}},i.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?(this.__tryOrUnsub(n),this.unsubscribe()):(this.__tryOrSetError(t,n),this.unsubscribe())}else this.unsubscribe()}},i.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),o.config.useDeprecatedSynchronousErrorHandling)throw e;s.hostReportError(e)}},i.prototype.__tryOrSetError=function(e,t,n){if(!o.config.useDeprecatedSynchronousErrorHandling)throw Error(`bad call`);try{t.call(this._context,n)}catch(t){return o.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s.hostReportError(t),!0)}return!1},i.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},i}(c);e.SafeSubscriber=l})),Nr=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Mr();function n(e){for(;e;){var n=e,r=n.clos