@powerhousedao/connect 3.2.0-dev.2 → 3.2.0-dev.4
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/README.md +26 -6
- package/dist/.env +1 -0
- package/dist/assets/{AddDriveModal.Dg8qI7zF.js → AddDriveModal.DU0-1Gwj.js} +2 -2
- package/dist/assets/{AddDriveModal.Dg8qI7zF.js.map → AddDriveModal.DU0-1Gwj.js.map} +1 -1
- package/dist/assets/{AddLocalDriveModal.n1mqr4Ur.js → AddLocalDriveModal.BmWt-zqx.js} +2 -2
- package/dist/assets/{AddLocalDriveModal.n1mqr4Ur.js.map → AddLocalDriveModal.BmWt-zqx.js.map} +1 -1
- package/dist/assets/{AddRemoteDriveModal.wFq1V4ak.js → AddRemoteDriveModal.B2dLszvc.js} +2 -2
- package/dist/assets/{AddRemoteDriveModal.wFq1V4ak.js.map → AddRemoteDriveModal.B2dLszvc.js.map} +1 -1
- package/dist/assets/{ConfirmationModal.C8RDHYs4.js → ConfirmationModal.BeBmQkT4.js} +2 -2
- package/dist/assets/{ConfirmationModal.C8RDHYs4.js.map → ConfirmationModal.BeBmQkT4.js.map} +1 -1
- package/dist/assets/{CookiesPolicyModal.A--L98Lz.js → CookiesPolicyModal.Da5Eremm.js} +2 -2
- package/dist/assets/{CookiesPolicyModal.A--L98Lz.js.map → CookiesPolicyModal.Da5Eremm.js.map} +1 -1
- package/dist/assets/{CreateDocumentModal.CTlEAIeE.js → CreateDocumentModal.BfyfQ4CP.js} +2 -2
- package/dist/assets/{CreateDocumentModal.CTlEAIeE.js.map → CreateDocumentModal.BfyfQ4CP.js.map} +1 -1
- package/dist/assets/{DebugSettingsModal.ge9vSvds.js → DebugSettingsModal.D1RjRPeP.js} +2 -2
- package/dist/assets/{DebugSettingsModal.ge9vSvds.js.map → DebugSettingsModal.D1RjRPeP.js.map} +1 -1
- package/dist/assets/{DeleteDriveModal.ChVVlip-.js → DeleteDriveModal.CTBCQ3Gm.js} +2 -2
- package/dist/assets/{DeleteDriveModal.ChVVlip-.js.map → DeleteDriveModal.CTBCQ3Gm.js.map} +1 -1
- package/dist/assets/{DeleteItemModal.DITFrzCI.js → DeleteItemModal.iAY-B9YV.js} +2 -2
- package/dist/assets/{DeleteItemModal.DITFrzCI.js.map → DeleteItemModal.iAY-B9YV.js.map} +1 -1
- package/dist/assets/{DisclaimerModal.COSJ5Mb3.js → DisclaimerModal.5nyrmZzU.js} +2 -2
- package/dist/assets/{DisclaimerModal.COSJ5Mb3.js.map → DisclaimerModal.5nyrmZzU.js.map} +1 -1
- package/dist/assets/{DriveSettingsModal._ieV-khA.js → DriveSettingsModal.BswCtDqR.js} +2 -2
- package/dist/assets/{DriveSettingsModal._ieV-khA.js.map → DriveSettingsModal.BswCtDqR.js.map} +1 -1
- package/dist/assets/{SettingsModal.CNXhJSAQ.js → SettingsModal.xtmwrOuz.js} +2 -2
- package/dist/assets/{SettingsModal.CNXhJSAQ.js.map → SettingsModal.xtmwrOuz.js.map} +1 -1
- package/dist/assets/{Trans.DPLArfzj.js → Trans.kFe2S0Wk.js} +2 -2
- package/dist/assets/{Trans.DPLArfzj.js.map → Trans.kFe2S0Wk.js.map} +1 -1
- package/dist/assets/{UpgradeDriveModal.BQJxekDN.js → UpgradeDriveModal.B7mUnNcD.js} +2 -2
- package/dist/assets/{UpgradeDriveModal.BQJxekDN.js.map → UpgradeDriveModal.B7mUnNcD.js.map} +1 -1
- package/dist/assets/app-skeleton.js +1 -1
- package/dist/assets/{app.BbnOcTCG.js → app.i8BXWBLI.js} +6 -6
- package/dist/assets/app.i8BXWBLI.js.map +1 -0
- package/dist/assets/{atlas-import.CdAYrAZm.js → atlas-import.BlRucXow.js} +2 -2
- package/dist/assets/{atlas-import.CdAYrAZm.js.map → atlas-import.BlRucXow.js.map} +1 -1
- package/dist/assets/connect.config.BIqjxCXL.js +2 -0
- package/dist/assets/connect.config.BIqjxCXL.js.map +1 -0
- package/dist/assets/{content.DPtgj4TX.js → content.wJSU5SX4.js} +3 -3
- package/dist/assets/{content.DPtgj4TX.js.map → content.wJSU5SX4.js.map} +1 -1
- package/dist/assets/{cookie-banner.DzQhdZ6U.js → cookie-banner.OUQb8XFD.js} +2 -2
- package/dist/assets/{cookie-banner.DzQhdZ6U.js.map → cookie-banner.OUQb8XFD.js.map} +1 -1
- package/dist/assets/{home.iojpFGDx.js → home.BPNW5daP.js} +2 -2
- package/dist/assets/{home.iojpFGDx.js.map → home.BPNW5daP.js.map} +1 -1
- package/dist/assets/{index.DgnEqb-9.js → index.BZv9HHlY.js} +2 -2
- package/dist/assets/{index.DgnEqb-9.js.map → index.BZv9HHlY.js.map} +1 -1
- package/dist/assets/{index.BUc_gRsw.js → index.BnnhHj1x.js} +2 -2
- package/dist/assets/{index.BUc_gRsw.js.map → index.BnnhHj1x.js.map} +1 -1
- package/dist/assets/{index.BuA9SEd_.js → index.CgUigIc1.js} +2 -2
- package/dist/assets/{index.BuA9SEd_.js.map → index.CgUigIc1.js.map} +1 -1
- package/dist/assets/index.DIldf0L8.js +3 -0
- package/dist/assets/{index.DZzWpM-P.js.map → index.DIldf0L8.js.map} +1 -1
- package/dist/assets/index.DkcL7UzK.js +2 -0
- package/dist/assets/{index.DbeWebdN.js.map → index.DkcL7UzK.js.map} +1 -1
- package/dist/assets/{index.CEQRMIAY.js → index.DlyZ17HN.js} +2 -2
- package/dist/assets/{index.CEQRMIAY.js.map → index.DlyZ17HN.js.map} +1 -1
- package/dist/assets/index.Do_wXic0.js +2 -0
- package/dist/assets/index.Do_wXic0.js.map +1 -0
- package/dist/assets/{index.Dc5HlSvp.js → index.DxrAJM8l.js} +2 -2
- package/dist/assets/{index.Dc5HlSvp.js.map → index.DxrAJM8l.js.map} +1 -1
- package/dist/assets/{index.DieAEcFX.js → index.dIkm5cjz.js} +3 -3
- package/dist/assets/{index.DieAEcFX.js.map → index.dIkm5cjz.js.map} +1 -1
- package/dist/assets/{main.CFKvF5tB.js → main.B9faieT7.js} +3 -3
- package/dist/assets/{main.CFKvF5tB.js.map → main.B9faieT7.js.map} +1 -1
- package/dist/assets/modal.DnfLqdig.js +3 -0
- package/dist/assets/{modal.CeUChdl1.js.map → modal.DnfLqdig.js.map} +1 -1
- package/dist/assets/{modals.alORtB6s.js → modals.JWX5rpFT.js} +2 -2
- package/dist/assets/{modals.alORtB6s.js.map → modals.JWX5rpFT.js.map} +1 -1
- package/dist/assets/nodefs.DBLOWKOu.js +2 -0
- package/dist/assets/{nodefs.CGG4X8-i.js.map → nodefs.DBLOWKOu.js.map} +1 -1
- package/dist/assets/{opfs-ahp.C0sHT0wj.js → opfs-ahp.CcP1RoS9.js} +2 -2
- package/dist/assets/{opfs-ahp.C0sHT0wj.js.map → opfs-ahp.CcP1RoS9.js.map} +1 -1
- package/dist/assets/{react-error-boundary.esm.uEuLAO53.js → react-error-boundary.esm.DcWSXRDX.js} +2 -2
- package/dist/assets/{react-error-boundary.esm.uEuLAO53.js.map → react-error-boundary.esm.DcWSXRDX.js.map} +1 -1
- package/dist/assets/{registerServiceWorker.qetnHJss.js → registerServiceWorker.CK34OHp2.js} +2 -2
- package/dist/assets/{registerServiceWorker.qetnHJss.js.map → registerServiceWorker.CK34OHp2.js.map} +1 -1
- package/dist/assets/{root.bg2pg9lY.js → root.dhXDMo9v.js} +3 -3
- package/dist/assets/{root.bg2pg9lY.js.map → root.dhXDMo9v.js.map} +1 -1
- package/dist/assets/{toast.Dz6iiaGE.js → toast.Dw86T5dF.js} +2 -2
- package/dist/assets/{toast.Dz6iiaGE.js.map → toast.Dw86T5dF.js.map} +1 -1
- package/dist/assets/{useAcceptedCookies.CrdlDQVI.js → useAcceptedCookies.8vhwrcp8.js} +2 -2
- package/dist/assets/{useAcceptedCookies.CrdlDQVI.js.map → useAcceptedCookies.8vhwrcp8.js.map} +1 -1
- package/dist/assets/useConnectConfig.DSamQwGk.js +2 -0
- package/dist/assets/{useConnectConfig.BjHck5jY.js.map → useConnectConfig.DSamQwGk.js.map} +1 -1
- package/dist/assets/useDefaultDocumentModelEditor.VXhuetiN.js +2 -0
- package/dist/assets/{useDefaultDocumentModelEditor.CFfkP7hf.js.map → useDefaultDocumentModelEditor.VXhuetiN.js.map} +1 -1
- package/dist/assets/useDocumentDriveServer.ZRZSrNVE.js +2 -0
- package/dist/assets/{useDocumentDriveServer.CpN4RUGw.js.map → useDocumentDriveServer.ZRZSrNVE.js.map} +1 -1
- package/dist/assets/{useFeatureFlags.PE3FavSR.js → useFeatureFlags.8avcsZhG.js} +2 -2
- package/dist/assets/useFeatureFlags.8avcsZhG.js.map +1 -0
- package/dist/assets/{user.LueWOWdv.js → user.D7qu66vB.js} +5 -5
- package/dist/assets/user.D7qu66vB.js.map +1 -0
- package/dist/external-packages.js +1 -1
- package/dist/index.html +2 -1
- package/dist/swEnv.js +1 -0
- package/dist/vite-envs.sh +10 -1
- package/nginx.conf +13 -0
- package/package.json +13 -11
- package/dist/assets/app.BbnOcTCG.js.map +0 -1
- package/dist/assets/connect.config.D1B0yrHQ.js +0 -2
- package/dist/assets/connect.config.D1B0yrHQ.js.map +0 -1
- package/dist/assets/index.DZzWpM-P.js +0 -3
- package/dist/assets/index.DbeWebdN.js +0 -2
- package/dist/assets/modal.CeUChdl1.js +0 -3
- package/dist/assets/nodefs.CGG4X8-i.js +0 -2
- package/dist/assets/useConnectConfig.BjHck5jY.js +0 -2
- package/dist/assets/useDefaultDocumentModelEditor.CFfkP7hf.js +0 -2
- package/dist/assets/useDocumentDriveServer.CpN4RUGw.js +0 -2
- package/dist/assets/useFeatureFlags.PE3FavSR.js.map +0 -1
- package/dist/assets/user.LueWOWdv.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.
|
|
2
|
-
import{c as zt}from"./connect.config.
|
|
3
|
-
`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=pt.test(a)?a.replace(pt,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){s.push(l);break}}if(s.length>=kt)break}}return pe(s)}}function Gn(e){return Array.isArray(e)?de(...e):e}function pe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gt.test(t[t.length-1].function||"")&&(t.pop(),gt.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,kt).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const W="<anonymous>";function ge(e){try{return!e||typeof e!="function"?W:e.name||W}catch{return W}}function d(){const e=h,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Rt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Un(e){const{message:t,event_id:n}=e;if(t)return t;const r=Rt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Bn(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function _e(e,t){const n=Rt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Fn(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>K(i,0)),t.context_line=K(e[Math.min(r-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>K(i,0))}function Hn(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function he(e){return Array.isArray(e)?e:[e]}function me(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function x(e,t=100,n=1/0){try{return tt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Se(e,t=3,n=100*1024){const r=x(e,t);return xe(r)>n?Se(e,t-1,n):r}function tt(e,t,n=1/0,r=1/0,s=me()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!ne(t))return t;const a=ye(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return tt("",g,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let f=0;const _=It(t);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(f>=r){l[g]="[MaxProperties ~]";break}const C=_[g];l[g]=tt(g,C,c-1,r,s),f++}return o(t),l}function ye(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(Ct(t))return"[VueViewModel]";if(ee(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${ge(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ee(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ee(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function be(e){return~-encodeURI(e).split(/%..|./).length}function xe(e){return be(JSON.stringify(e))}var E;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(E||(E={}));function Yn(e){return new y(t=>{t(e)})}function zn(e){return new y((t,n)=>{n(e)})}class y{constructor(t){y.prototype.__init.call(this),y.prototype.__init2.call(this),y.prototype.__init3.call(this),y.prototype.__init4.call(this),this._state=E.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new y((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new y((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(E.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(E.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===E.PENDING){if(st(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===E.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===E.RESOLVED&&n[1](this._value),this._state===E.REJECTED&&n[2](this._value),n[0]=!0)})}}}const At=1e3;function z(){return Date.now()/At}function Te(){const{performance:e}=h;if(!e||!e.now)return z;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/At}const ot=Te(),Vn=(()=>{const{performance:e}=h;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),qn="baggage",Pt="sentry-",Ce=/^sentry-/,we=8192;function Nt(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=_t(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=_t(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Ce)){const o=s.slice(Pt.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Jn(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Pt}${r}`]=s),n),{});return Oe(t)}function _t(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Oe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>we?(it&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const De=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mt(e){if(!e)return;const t=e.match(De);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 Kn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||d(),spanId:d().substring(16)}}}function Wn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}:{traceId:s||d(),spanId:d().substring(16)}}function Ie(e=d(),t=d().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,V="production";function at(){return wt("globalEventProcessors",()=>[])}function Xn(e){at().push(e)}function F(e,t,n,r=0){return new y((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);D&&o.id&&a===null&&m.log(`Event processor "${o.id}" dropped event`),st(a)?a.then(c=>F(e,c,n,r+1).then(s)).then(null,i):F(e,a,n,r+1).then(s).then(null,i)}})}function vt(e){const t=ot(),n={sid:d(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ke(n)};return e&&v(n,e),n}function v(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||ot(),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:d()),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{const n=e.timestamp-e.started;e.duration=n>=0?n: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 Lt(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),v(e,n)}function ke(e){return T({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}})}const Qn=0,Re=1;function Ae(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=M(e);return T({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function Zn(e){const{traceId:t,spanId:n}=e.spanContext(),r=jt(e);return Ie(t,n,r)}function tr(e){return typeof e=="number"?ht(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ht(e.getTime()):ot()}function ht(e){return e>9999999999?e/1e3:e}function M(e){return Pe(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Pe(e){return typeof e.getSpanJSON=="function"}function jt(e){const{traceFlags:t}=e.spanContext();return!!(t&Re)}function er(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||d(),timestamp:t.timestamp||z()},u=n.integrations||e.integrations.map(S=>S.name);Ne(c,e),Le(c,u),t.type===void 0&&Me(c,e.stackParser);const l=$e(r,n.captureContext);n.mechanism&&_e(c,n.mechanism);const f=s&&s.getEventProcessors?s.getEventProcessors():[],_=Ze().getScopeData();if(i){const S=i.getScopeData();St(_,S)}if(l){const S=l.getScopeData();St(_,S)}const g=[...n.attachments||[],..._.attachments];g.length&&(n.attachments=g),Bt(c,_);const C=[...f,...at(),..._.eventProcessors];return F(C,c,n).then(S=>(S&&ve(S),typeof o=="number"&&o>0?je(S,o,a):S))}function Ne(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:V),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=P(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=P(o.value,i));const a=e.request;a&&a.url&&(a.url=P(a.url,i))}const mt=new WeakMap;function Me(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const s=mt.get(t);s?r=s:(r=new Map,mt.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const f=c[l];if(f.filename){o[f.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function ve(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Le(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function je(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:x(s.data,t,n)}}))},...e.user&&{user:x(e.user,t,n)},...e.contexts&&{contexts:x(e.contexts,t,n)},...e.extra&&{extra:x(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=x(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=M(s).data;return i&&(s.data=x(i,t,n)),s})),r}function $e(e,t){if(!t)return e;const n=e?e.clone():new b;return n.update(t),n}function Ge(e){if(e)return Ue(e)?{captureContext:e}:Fe(e)?{captureContext:e}:e}function Ue(e){return e instanceof b||typeof e=="function"}const Be=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Fe(e){return Object.keys(e).some(t=>Be.includes(t))}function nr(e,t){return p().captureException(e,Ge(t))}function rr(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return p().captureMessage(e,n,r)}function sr(e,t){return p().captureEvent(e,t)}function ir(e){p().configureScope(e)}function or(e,t){p().addBreadcrumb(e,t)}function ar(e,t){p().setContext(e,t)}function cr(e){p().setExtras(e)}function ur(e,t){p().setExtra(e,t)}function fr(e){p().setTags(e)}function lr(e,t){p().setTag(e,t)}function He(e){p().setUser(e)}function Ye(...e){const t=p();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function dr(e){return rn(()=>e(J()))}function pr(e,t){return Ye(n=>(n.setSpan(e),t(n)))}function gr(e,t){return p().startTransaction({...e},t)}async function _r(e){const t=R();return t?t.flush(e):(D&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function hr(e){const t=R();return t?t.close(e):(D&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function mr(){return p().lastEventId()}function R(){return p().getClient()}function Sr(){return!!R()}function q(){return p().getScope()}function yr(e){const t=R(),n=J(),r=q(),{release:s,environment:i=V}=t&&t.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),$t(),n.setSession(a),r.setSession(a),a}function $t(){const e=J(),t=q(),n=t.getSession()||e.getSession();n&&Lt(n),Gt(),e.setSession(),t.setSession()}function Gt(){const e=J(),t=q(),n=R(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Er(e=!1){if(e){$t();return}Gt()}function Ut(e){return e.transaction}function ze(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=T({environment:r.environment||V,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Ve(e){const t=R();if(!t)return{};const n=ze(M(e).trace_id||"",t,q()),r=Ut(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=M(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(jt(r)),t.emit&&t.emit("createDsc",n),n}function Bt(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;qe(e,t),r&&We(e,r),Xe(e,n),Je(e,s),Ke(e,i)}function St(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:_,transactionName:g,span:C}=t;A(e,"extra",n),A(e,"tags",r),A(e,"user",s),A(e,"contexts",i),A(e,"sdkProcessingMetadata",a),o&&(e.level=o),g&&(e.transactionName=g),C&&(e.span=C),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,..._}}function A(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function qe(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=T(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=T(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const f=T(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function Je(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ke(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function We(e,t){e.contexts={trace:Ae(t),...e.contexts};const n=Ut(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};const r=M(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Xe(e,t){e.fingerprint=e.fingerprint?he(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Qe=100;let X;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yt()}static clone(t){return t?t.clone():new b}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&v(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof b){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(rt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=yt(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Qe;if(r<=0)return this;const s={timestamp:z(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:f,_transactionName:_,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:f,transactionName:_,span:g}}applyToEvent(t,n={},r=[]){Bt(t,this.getScopeData());const s=[...r,...at(),...this._eventProcessors];return F(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Ze(){return X||(X=new b),X}function yt(){return{traceId:d(),spanId:d().substring(16)}}const tn="7.120.3",Ft=parseFloat(tn),en=100;class Ht{constructor(t,n,r,s=Ft){this._version=s;let i;n?i=n:(i=new b,i.setClient(t));let o;r?o=r:(o=new b,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return st(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:d(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:d(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=en}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:z(),...t},u=i?Ot(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Et(this);try{t(this)}finally{Et(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return D&&m.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return D&&!r&&(this.getClient()?m.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.dIkm5cjz.js","./index.DxrAJM8l.js","./index.BZv9HHlY.js","./useFeatureFlags.8avcsZhG.js","./connect.config.BIqjxCXL.js","./browser.BkwNmV2Z.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as zt}from"./connect.config.BIqjxCXL.js";import{useCallback as Vt,useMemo as xt,useEffect as Q}from"react";import{_ as N,h as nt,v as I,i as qt,t as U,l as Jt}from"./index.DxrAJM8l.js";async function H(){if(import.meta.hot)return import.meta.hot;try{return(await N(()=>import("../hmr.js"),[],import.meta.url)).hmr}catch{return}}async function wn(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-added",r))}t.on("studio:external-package-added",r),t.send("studio:add-external-package",{name:e})})}async function On(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-removed",r))}t.on("studio:external-package-removed",r),t.send("studio:remove-external-package",{name:e})})}async function Kt(e){const t=await H(),n=r=>{const s=N(()=>import(`${r.url}?t=${r.timestamp}`),[],import.meta.url);e(s.then(i=>i.default))};return t==null||t.on("studio:external-packages-updated",n),()=>{t==null||t.off("studio:external-packages-updated",n)}}const Tt=Object.prototype.toString;function Wt(e){switch(Tt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Y(e,Error)}}function k(e,t){return Tt.call(e)===`[object ${t}]`}function Dn(e){return k(e,"ErrorEvent")}function In(e){return k(e,"DOMError")}function kn(e){return k(e,"DOMException")}function B(e){return k(e,"String")}function Xt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Rn(e){return e===null||Xt(e)||typeof e!="object"&&typeof e!="function"}function rt(e){return k(e,"Object")}function Qt(e){return typeof Event<"u"&&Y(e,Event)}function Zt(e){return typeof Element<"u"&&Y(e,Element)}function te(e){return k(e,"RegExp")}function st(e){return!!(e&&e.then&&typeof e.then=="function")}function ee(e){return rt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ne(e){return typeof e=="number"&&e!==e}function Y(e,t){try{return e instanceof t}catch{return!1}}function Ct(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function A(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function K(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Pn(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Ct(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function re(e,t,n=!1){return B(e)?te(t)?t.test(e):B(t)?n?e===t:e.includes(t):!1:!1}function An(e,t=[],n=!1){return t.some(r=>re(e,r,n))}function j(e){return e&&e.Math==Math?e:void 0}const h=typeof globalThis=="object"&&j(globalThis)||typeof window=="object"&&j(window)||typeof self=="object"&&j(self)||typeof global=="object"&&j(global)||function(){return this}()||{};function se(){return h}function wt(e,t,n){const r=n||h,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const O=se(),ie=80;function oe(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||ie;for(;n&&i++<r&&(u=ae(n,l),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function ae(e,t){const n=e,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(O.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&B(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)o=l[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function Nn(){try{return O.document.location.href}catch{return""}}function Mn(e){return O.document&&O.document.querySelector?O.document.querySelector(e):null}function vn(e){if(!O.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ce="Sentry Logger ",ut=["debug","info","warn","error","log","assert","trace"],ft={};function Ot(e){if(!("console"in h))return e();const t=h.console,n={},r=Object.keys(ft);r.forEach(s=>{const i=ft[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ue(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return it?ut.forEach(n=>{t[n]=(...r)=>{e&&Ot(()=>{h.console[n](`${ce}[${n}]:`,...r)})}}):ut.forEach(n=>{t[n]=()=>{}}),t}const m=ue();function Ln(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&fe(s,r),e[t]=s}function Dt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{it&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dt(e,"__sentry_original__",t)}catch{}}function jn(e){return e.__sentry_original__}function $n(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function It(e){if(Wt(e))return{message:e.message,name:e.name,stack:e.stack,...dt(e)};if(Qt(e)){const t={type:e.type,target:lt(e.target),currentTarget:lt(e.currentTarget),...dt(e)};return typeof CustomEvent<"u"&&Y(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function lt(e){try{return Zt(e)?oe(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function dt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Gn(e,t=40){const n=Object.keys(It(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return A(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:A(s,t)}return""}function T(e){return Z(e,new Map)}function Z(e,t){if(le(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=Z(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Z(s,t))}),r}return e}function le(e){if(!rt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const kt=50,pt=/\(error: (.*)\)/,gt=/captureMessage|captureException/;function de(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
|
|
3
|
+
`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=pt.test(a)?a.replace(pt,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){s.push(l);break}}if(s.length>=kt)break}}return pe(s)}}function Un(e){return Array.isArray(e)?de(...e):e}function pe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gt.test(t[t.length-1].function||"")&&(t.pop(),gt.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,kt).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const W="<anonymous>";function ge(e){try{return!e||typeof e!="function"?W:e.name||W}catch{return W}}function d(){const e=h,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Rt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Bn(e){const{message:t,event_id:n}=e;if(t)return t;const r=Rt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Fn(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function _e(e,t){const n=Rt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Hn(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>K(i,0)),t.context_line=K(e[Math.min(r-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>K(i,0))}function Yn(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function he(e){return Array.isArray(e)?e:[e]}function me(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function x(e,t=100,n=1/0){try{return tt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ye(e,t=3,n=100*1024){const r=x(e,t);return xe(r)>n?ye(e,t-1,n):r}function tt(e,t,n=1/0,r=1/0,s=me()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!ne(t))return t;const a=Se(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return tt("",g,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let f=0;const _=It(t);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(f>=r){l[g]="[MaxProperties ~]";break}const C=_[g];l[g]=tt(g,C,c-1,r,s),f++}return o(t),l}function Se(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(Ct(t))return"[VueViewModel]";if(ee(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${ge(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ee(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ee(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function be(e){return~-encodeURI(e).split(/%..|./).length}function xe(e){return be(JSON.stringify(e))}var E;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(E||(E={}));function zn(e){return new S(t=>{t(e)})}function Vn(e){return new S((t,n)=>{n(e)})}class S{constructor(t){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this._state=E.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new S((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new S((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(E.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(E.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===E.PENDING){if(st(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===E.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===E.RESOLVED&&n[1](this._value),this._state===E.REJECTED&&n[2](this._value),n[0]=!0)})}}}const Pt=1e3;function z(){return Date.now()/Pt}function Te(){const{performance:e}=h;if(!e||!e.now)return z;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Pt}const ot=Te(),qn=(()=>{const{performance:e}=h;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),Jn="baggage",At="sentry-",Ce=/^sentry-/,we=8192;function Nt(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=_t(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=_t(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Ce)){const o=s.slice(At.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Kn(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${At}${r}`]=s),n),{});return Oe(t)}function _t(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Oe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>we?(it&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const De=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mt(e){if(!e)return;const t=e.match(De);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 Wn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||d(),spanId:d().substring(16)}}}function Xn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}:{traceId:s||d(),spanId:d().substring(16)}}function Ie(e=d(),t=d().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,V="production";function at(){return wt("globalEventProcessors",()=>[])}function Qn(e){at().push(e)}function F(e,t,n,r=0){return new S((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);D&&o.id&&a===null&&m.log(`Event processor "${o.id}" dropped event`),st(a)?a.then(c=>F(e,c,n,r+1).then(s)).then(null,i):F(e,a,n,r+1).then(s).then(null,i)}})}function vt(e){const t=ot(),n={sid:d(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ke(n)};return e&&v(n,e),n}function v(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||ot(),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:d()),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{const n=e.timestamp-e.started;e.duration=n>=0?n: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 Lt(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),v(e,n)}function ke(e){return T({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}})}const Zn=0,Re=1;function Pe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=M(e);return T({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function tr(e){const{traceId:t,spanId:n}=e.spanContext(),r=jt(e);return Ie(t,n,r)}function er(e){return typeof e=="number"?ht(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ht(e.getTime()):ot()}function ht(e){return e>9999999999?e/1e3:e}function M(e){return Ae(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ae(e){return typeof e.getSpanJSON=="function"}function jt(e){const{traceFlags:t}=e.spanContext();return!!(t&Re)}function nr(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||d(),timestamp:t.timestamp||z()},u=n.integrations||e.integrations.map(y=>y.name);Ne(c,e),Le(c,u),t.type===void 0&&Me(c,e.stackParser);const l=$e(r,n.captureContext);n.mechanism&&_e(c,n.mechanism);const f=s&&s.getEventProcessors?s.getEventProcessors():[],_=Ze().getScopeData();if(i){const y=i.getScopeData();yt(_,y)}if(l){const y=l.getScopeData();yt(_,y)}const g=[...n.attachments||[],..._.attachments];g.length&&(n.attachments=g),Bt(c,_);const C=[...f,...at(),..._.eventProcessors];return F(C,c,n).then(y=>(y&&ve(y),typeof o=="number"&&o>0?je(y,o,a):y))}function Ne(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:V),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=A(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=A(o.value,i));const a=e.request;a&&a.url&&(a.url=A(a.url,i))}const mt=new WeakMap;function Me(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const s=mt.get(t);s?r=s:(r=new Map,mt.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const f=c[l];if(f.filename){o[f.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function ve(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Le(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function je(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:x(s.data,t,n)}}))},...e.user&&{user:x(e.user,t,n)},...e.contexts&&{contexts:x(e.contexts,t,n)},...e.extra&&{extra:x(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=x(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=M(s).data;return i&&(s.data=x(i,t,n)),s})),r}function $e(e,t){if(!t)return e;const n=e?e.clone():new b;return n.update(t),n}function Ge(e){if(e)return Ue(e)?{captureContext:e}:Fe(e)?{captureContext:e}:e}function Ue(e){return e instanceof b||typeof e=="function"}const Be=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Fe(e){return Object.keys(e).some(t=>Be.includes(t))}function rr(e,t){return p().captureException(e,Ge(t))}function sr(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return p().captureMessage(e,n,r)}function ir(e,t){return p().captureEvent(e,t)}function or(e){p().configureScope(e)}function ar(e,t){p().addBreadcrumb(e,t)}function cr(e,t){p().setContext(e,t)}function ur(e){p().setExtras(e)}function fr(e,t){p().setExtra(e,t)}function lr(e){p().setTags(e)}function dr(e,t){p().setTag(e,t)}function He(e){p().setUser(e)}function Ye(...e){const t=p();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function pr(e){return rn(()=>e(J()))}function gr(e,t){return Ye(n=>(n.setSpan(e),t(n)))}function _r(e,t){return p().startTransaction({...e},t)}async function hr(e){const t=R();return t?t.flush(e):(D&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function mr(e){const t=R();return t?t.close(e):(D&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function yr(){return p().lastEventId()}function R(){return p().getClient()}function Sr(){return!!R()}function q(){return p().getScope()}function Er(e){const t=R(),n=J(),r=q(),{release:s,environment:i=V}=t&&t.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),$t(),n.setSession(a),r.setSession(a),a}function $t(){const e=J(),t=q(),n=t.getSession()||e.getSession();n&&Lt(n),Gt(),e.setSession(),t.setSession()}function Gt(){const e=J(),t=q(),n=R(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function br(e=!1){if(e){$t();return}Gt()}function Ut(e){return e.transaction}function ze(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=T({environment:r.environment||V,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Ve(e){const t=R();if(!t)return{};const n=ze(M(e).trace_id||"",t,q()),r=Ut(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=M(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(jt(r)),t.emit&&t.emit("createDsc",n),n}function Bt(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;qe(e,t),r&&We(e,r),Xe(e,n),Je(e,s),Ke(e,i)}function yt(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:_,transactionName:g,span:C}=t;P(e,"extra",n),P(e,"tags",r),P(e,"user",s),P(e,"contexts",i),P(e,"sdkProcessingMetadata",a),o&&(e.level=o),g&&(e.transactionName=g),C&&(e.span=C),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,..._}}function P(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function qe(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=T(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=T(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const f=T(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function Je(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ke(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function We(e,t){e.contexts={trace:Pe(t),...e.contexts};const n=Ut(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};const r=M(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Xe(e,t){e.fingerprint=e.fingerprint?he(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Qe=100;let X;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=St()}static clone(t){return t?t.clone():new b}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&v(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof b){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(rt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=St(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Qe;if(r<=0)return this;const s={timestamp:z(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:f,_transactionName:_,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:f,transactionName:_,span:g}}applyToEvent(t,n={},r=[]){Bt(t,this.getScopeData());const s=[...r,...at(),...this._eventProcessors];return F(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Ze(){return X||(X=new b),X}function St(){return{traceId:d(),spanId:d().substring(16)}}const tn="7.120.3",Ft=parseFloat(tn),en=100;class Ht{constructor(t,n,r,s=Ft){this._version=s;let i;n?i=n:(i=new b,i.setClient(t));let o;r?o=r:(o=new b,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return st(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:d(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:d(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=en}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:z(),...t},u=i?Ot(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Et(this);try{t(this)}finally{Et(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return D&&m.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return D&&!r&&(this.getClient()?m.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
4
4
|
Sentry.addTracingExtensions();
|
|
5
5
|
Sentry.init({...});
|
|
6
|
-
`):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Lt(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=V}=r&&r.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=L().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);D&&m.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function L(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function Et(e){const t=L(),n=et(t);return Yt(t,e),n}function p(){const e=L();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return nn(e)}function J(){return p().getIsolationScope()}function nn(e=L()){return(!sn(e)||et(e).isOlderThan(Ft))&&Yt(e,new Ht),et(e)}function rn(e,t={}){const n=L();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function sn(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function et(e){return wt("hub",()=>new Ht,e)}function Yt(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}const on=zt.routerBasename+"external-packages.js";function
|
|
7
|
-
//# sourceMappingURL=user.
|
|
6
|
+
`):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Lt(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=V}=r&&r.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=L().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);D&&m.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function L(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function Et(e){const t=L(),n=et(t);return Yt(t,e),n}function p(){const e=L();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return nn(e)}function J(){return p().getIsolationScope()}function nn(e=L()){return(!sn(e)||et(e).isOlderThan(Ft))&&Yt(e,new Ht),et(e)}function rn(e,t={}){const n=L();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function sn(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function et(e){return wt("hub",()=>new Ht,e)}function Yt(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}const on=zt.routerBasename+"external-packages.js",an=window.__VITE_ENVS.PROD;async function cn(){try{return an?(await import(on)).default??[]:[]}catch(e){return console.error(e),[]}}const un=I(async()=>typeof await H()<"u"),xr=()=>nt(un),ct=qt(cn);let bt;ct.onMount=e=>{bt||(bt=Kt(t=>{e(t)}))};const fn=()=>nt(ct),ln={id:"powerhouse/common",name:"Generic Drive Explorer",driveEditor:"GenericDriveExplorer"},dn=I(async e=>{const t=await e(ct);return[ln,...t.map(n=>n.manifest.apps).filter(n=>n!==void 0).flat()]}),pn=()=>nt(dn),Tr=()=>{const e=pn();return Vt(t=>{if(!t)return;const n=e.find(r=>r.driveEditor===t);return n==null?void 0:n.name},[e])},Cr=e=>{const t=fn();return xt(()=>{if(!e)return;const n=t.find(r=>{var s;return(s=r.manifest.apps)==null?void 0:s.find(i=>i.driveEditor===e)});return n==null?void 0:n.editors.find(r=>r.config.id===e)},[t,e])};let $;async function gn(){const{ConnectCrypto:e}=await N(async()=>{const{ConnectCrypto:r}=await import("./index.dIkm5cjz.js");return{ConnectCrypto:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),{BrowserKeyStorage:t}=await N(async()=>{const{BrowserKeyStorage:r}=await import("./index.dIkm5cjz.js");return{BrowserKeyStorage:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),n=new e(new t);return await n.did(),n}function w(){return window.connectCrypto?Promise.resolve(window.connectCrypto):$||($=gn(),$)}function _n(){return xt(()=>({async regenerateDid(){return(await w()).regenerateDid()},async did(){return(await w()).did()},sign:async e=>await(await w()).sign(e),async getIssuer(){return(await w()).getIssuer()},async getBearerToken(e,t,n=!1){return(await w()).getBearerToken(e,t,n)}}),[])}const hn=I(void 0);function wr(){const[e,t]=U(hn);return Q(()=>{e||w().then(n=>n.did()).then(n=>t(n)).catch(Jt.error)}),e}const mn=I("idle"),yn=I(window.renown?Promise.resolve(window.renown):void 0);function Sn(){const[e,t]=U(yn),[n,r]=U(mn),{did:s}=_n();async function i(o){r("loading");try{const a=await o();if(!a){r("error");return}const{initRenownBrowser:c}=await N(async()=>{const{initRenownBrowser:f}=await import("./index.BZv9HHlY.js").then(_=>_.b);return{initRenownBrowser:f}},__vite__mapDeps([2,1,3,4,5]),import.meta.url),u=c(a),l={user:function(){return Promise.resolve(u.user)},login:function(f){return u.login(f)},logout(){return Promise.resolve(u.logout())},on:{user(f){return u.on("user",f)}}};return r("finished"),l}catch(a){console.error("Error initializing renown:",a instanceof Error?a.message:"Unknown error"),r("error");return}}return!e&&n==="idle"&&t(i(s)),e}let G=!1;const En=I(void 0),Or=()=>{const[e,t]=U(En),n=Sn();return Q(()=>{var s;let r=null;if(e){const{credential:i,...o}=e;r={id:o.did,username:(s=o.ens)==null?void 0:s.name,...o}}He(r)},[e]),Q(()=>{if(G)return;G=!0,n==null||n.user().then(s=>{t(s||null)}).catch(()=>{t(null)});const r=n==null?void 0:n.on.user(s=>{t(s||null)});return()=>{r==null||r(),G=!1}},[n,G]),e};export{L as $,x as A,z as B,ut as C,it as D,Mt as E,p as F,h as G,D as H,st as I,R as J,q as K,Wn as L,rn as M,er as N,J as O,Ve as P,jt as Q,Ye as R,S,M as T,ot as U,Re as V,Zn as W,Ut as X,tr as Y,Pe as Z,ne as _,Tr as a,pr as a$,$n as a0,he as a1,Qn as a2,Yn as a3,Rn as a4,v as a5,nr as a6,ze as a7,Xt as a8,rt as a9,ir as aA,Nn as aB,Un as aC,Er as aD,br as aE,cr as aF,sr as aG,Hn as aH,V as aI,gr as aJ,Ze as aK,Ht as aL,b as aM,mr as aN,or as aO,$t as aP,hr as aQ,et as aR,Sr as aS,yr as aT,Et as aU,fr as aV,ur as aW,dr as aX,lr as aY,He as aZ,_r as a_,tn as aa,Bn as ab,An as ac,jn as ad,qn as ae,oe as af,vn as ag,Ie as ah,Kn as ai,Jn as aj,Xn as ak,Mn as al,fe as am,Fn as an,_e as ao,rr as ap,Dn as aq,In as ar,kn as as,Wt as at,Qt as au,ye as av,Gn as aw,de as ax,ar as ay,Pn as az,Or as b,fn as b0,xr as b1,yn as b2,w as b3,mn as b4,wr as c,_n as d,ct as e,Cr as f,pn as g,H as h,wn as i,Y as j,Ot as k,m as l,ge as m,Ln as n,ft as o,Dt as p,d as q,On as r,Kt as s,A as t,Sn as u,se as v,B as w,zn as x,Vn as y,T as z};
|
|
7
|
+
//# sourceMappingURL=user.D7qu66vB.js.map
|