@zeniai/web-cockpit-ui 2.0.62-dev → 2.0.62-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/CreditAgentRoutes-DF_JOjZH.js +4 -0
- package/dist/assets/Preview-Ciq7dXYi-C6UHJ-dG.js +1 -0
- package/dist/assets/ScreenRoutes-xhS5KnwE.js +185 -0
- package/dist/assets/SignInScreen-t_oI3_zX.js +1 -0
- package/dist/assets/__vite-browser-external-FmFgRqLi-Bre4IUow.js +1 -0
- package/dist/assets/{analytics-D2hq1pB4.js → analytics-D0nfjXSz.js} +1 -1
- package/dist/assets/{analyticsHelper-Duy8p9G0.js → analyticsHelper-BidapgRT.js} +1 -1
- package/dist/assets/core-Jhwj2cWt.js +12 -0
- package/dist/assets/dash.all.min-D0CkNF8g-0432FG2N.js +21 -0
- package/dist/assets/epic-CauFcFaa.js +2 -0
- package/dist/assets/hls-fD7GzkMr-CIetwlf6.js +40 -0
- package/dist/assets/index-C_rFPbpi-DsH_Uf7X.js +3299 -0
- package/dist/assets/index-CnaD4GI7.js +80686 -0
- package/dist/assets/index-CsCrKvDl-C675kzjP.js +2 -0
- package/dist/assets/index-DVThwdcI.css +1 -0
- package/dist/assets/lexical-CDqLTwdI.js +1 -0
- package/dist/assets/{liveblocks-DtPrLDJS.js → liveblocks-2qCiW-lz.js} +15 -15
- package/dist/assets/lottie-DsFjtNAa.js +1 -0
- package/dist/assets/mixin-XJuHfVsL-BC7tPWd5.js +43 -0
- package/dist/assets/mui-DK0XZjs0.js +9 -0
- package/dist/assets/react-3LeYKPCr-PCrhYwP8.js +6 -0
- package/dist/assets/react-6Tvfe2S2-AIR7GwlO.js +19 -0
- package/dist/assets/react-B2-P-PS--D8HoPiLp.js +19 -0
- package/dist/assets/react-CWXWcDMY-gRCgPi-n.js +17 -0
- package/dist/assets/react-CWt3gw2R-DR3R7x_6.js +21 -0
- package/dist/assets/react-CytUn6Kg-eWmFZ2Rf.js +22 -0
- package/dist/assets/react-G6j-OGKl-BmOQta5r.js +34 -0
- package/dist/assets/react-kuaGVSkA-DCIamgmw.js +7 -0
- package/dist/assets/recharts-CDqLTwdI.js +1 -0
- package/dist/assets/{sentry-DGdrGMts.js → sentry-Gbc14BJL.js} +2 -2
- package/dist/assets/utils-1Oo38JiV.js +36 -0
- package/dist/assets/{zeni-epic-state-BrXQ4qCB.js → zeni-epic-state-CvtUqjnz.js} +6 -6
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CreditAgentRoutes-Dfd0Kd6I.js +0 -4
- package/dist/assets/Preview-IR8wZl18.js +0 -1
- package/dist/assets/ScreenRoutes-CWwjG5zs.js +0 -180
- package/dist/assets/SignInScreen-D3CJKpcD.js +0 -1
- package/dist/assets/core-Bd7Ijkb8.js +0 -12
- package/dist/assets/dash.all.min-DEn1t6rn.js +0 -21
- package/dist/assets/empty-BWs4yw6m.js +0 -1
- package/dist/assets/empty-Cuv-JavI.js +0 -1
- package/dist/assets/epic-BEruqsXy.js +0 -2
- package/dist/assets/hls-DifHSkbp.js +0 -40
- package/dist/assets/index-B4tJfZBM.js +0 -1
- package/dist/assets/index-BHnFF6Mj.js +0 -3304
- package/dist/assets/index-Ddpazk8i.js +0 -1
- package/dist/assets/index-ICxwMH4m.js +0 -1
- package/dist/assets/index-IYkmdsJO.js +0 -80176
- package/dist/assets/index-aPW1WLF7.js +0 -2
- package/dist/assets/index-aa1-CqLI.js +0 -1
- package/dist/assets/index-y98xvd7i.css +0 -1
- package/dist/assets/lexical-DUprPrXL.js +0 -21
- package/dist/assets/lottie-CxiyciuX.js +0 -2
- package/dist/assets/mixin-BPAPQfSE.js +0 -43
- package/dist/assets/mui-7i_-G9Wo.js +0 -9
- package/dist/assets/react-BP_tYIvG.js +0 -17
- package/dist/assets/react-BUCt2wJF.js +0 -21
- package/dist/assets/react-BmixicuU.js +0 -34
- package/dist/assets/react-D0Ona832.js +0 -19
- package/dist/assets/react-D1eycK3j.js +0 -7
- package/dist/assets/react-DZOlfJ3z.js +0 -6
- package/dist/assets/react-Da7CbJkT.js +0 -19
- package/dist/assets/react-Dy5N-1E1.js +0 -22
- package/dist/assets/recharts-ukUg8EgD.js +0 -65
- package/dist/assets/url-B6X-Y6dN.js +0 -6
- package/dist/assets/url-BHD2x5lb.js +0 -1
- package/dist/assets/utils-DOKAIlnQ.js +0 -36
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{e as H}from"./sentry-Gbc14BJL.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new s.Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="276706ec-8e23-4eab-ae9b-f5070da97ba6",s._sentryDebugIdIdentifier="sentry-dbid-276706ec-8e23-4eab-ae9b-f5070da97ba6")}catch{}})();const R=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,D=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function S(s,t={}){var e;const i={src:O(s,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(e=t.config)!=null&&e.referrerpolicy&&(i.referrerpolicy=t.config.referrerpolicy),t.config&&(i["data-config"]=JSON.stringify(t.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
position: relative;
|
|
7
|
+
min-width: 300px;
|
|
8
|
+
min-height: 150px;
|
|
9
|
+
}
|
|
10
|
+
iframe {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<iframe${function(o){let r="";for(const h in o){const m=o[h];r+=m===""?` ${L(h)}`:` ${L(h)}="${L(`${m}`)}"`}return r}(i)}></iframe>
|
|
17
|
+
`}function O(s,t){if(!s.src)return;const e=s.src.includes("-nocookie")?"https://www.youtube-nocookie.com/embed":"https://www.youtube.com/embed",i={controls:s.controls===""?null:0,autoplay:s.autoplay,loop:s.loop,mute:s.muted,playsinline:s.playsinline,preload:s.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...t.config};if(R.test(s.src)){const r=s.src.match(R);return`${e}/${r&&r[1]}?${I(i)}`}const o=s.src.match(D);return`${e}?${I({listType:"playlist",list:o&&o[1],...i})}`}class V extends(globalThis.HTMLElement??class{}){static getTemplateHTML=S;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new C;#o;#a;#e=0;#s=!1;#t;isLoaded=!1;#l=null;#r=null;#n=null;#i=1;constructor(){super(),this.#u("config")}get config(){return this.#r}set config(t){this.#r=t}async load(){if(this.#o)return;this.shadowRoot||this.attachShadow({mode:"open"});const t=!this.#a;this.#a&&(this.loadComplete=new C,this.isLoaded=!1),this.#a=!0,await(this.#o=Promise.resolve()),this.#o=null,this.#e=0,this.dispatchEvent(new Event("emptied"));let e=this.api;if(this.api=null,!this.src)return void(e==null||e.destroy());this.#n=document.createElement("video"),this.textTracks=this.#n.textTracks,this.textTracks.addEventListener("change",()=>{var n;const l=Array.from(this.textTracks).find(c=>c.mode==="showing");(n=this.api)==null||n.setOption("captions","track",l?{languageCode:l.language}:{})}),this.dispatchEvent(new Event("loadstart"));let i=this.shadowRoot.querySelector("iframe"),o=function(n){let l={};for(let c of n)l[c.name]=c.value;return l}(this.attributes);t&&i&&(this.#r=JSON.parse(i.getAttribute("data-config")||"{}")),i?.src&&i.src===O(o,this)||(this.shadowRoot.innerHTML=S(o,this),i=this.shadowRoot.querySelector("iframe"));const r=await async function(n,l,c){return A[n]?A[n]:self[l]?(await j(0),self[l]):A[n]=new Promise(function(f,p){const v=document.createElement("script");v.src=n;const E=()=>f(self[l]);self[c]=E,v.onload=()=>!c,v.onerror=p,document.head.append(v)})}("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady");this.api=new r.Player(i,{events:{onReady:()=>{var n;this.#e=1,this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.#i!==1&&((n=this.api)==null||n.setVolume(100*this.#i)),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:n=>{console.error(n),this.#l={code:n.data,message:`YouTube iframe player error #${n.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`},this.dispatchEvent(new Event("error"))}}});let h=!1;this.api.addEventListener("onStateChange",n=>{var l;const c=n.data;if((c===r.PlayerState.PLAYING||c===r.PlayerState.BUFFERING)&&(h||(h=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEach(f=>{[...this.textTracks].some(p=>p.language===f.languageCode)||this.#n.addTextTrack("subtitles",f.displayName,f.languageCode),this.textTracks=this.#n.textTracks}),this.dispatchEvent(new Event("loadstart"))),c===r.PlayerState.PLAYING)this.seeking&&(this.#s=!1,(l=this.#t)==null||l.resolve(),this.dispatchEvent(new Event("seeked"))),this.#e=3,this.dispatchEvent(new Event("playing"));else if(c===r.PlayerState.PAUSED){const f=Math.abs(this.currentTime-w);!this.seeking&&f>.1&&(this.#s=!0,this.dispatchEvent(new Event("seeking"))),h=!1,this.dispatchEvent(new Event("pause"))}c===r.PlayerState.ENDED&&(h=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var n;const l=((n=this.api)==null?void 0:n.getVolume())/100;this.#i=l,this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let m,w=0;setInterval(()=>{var n;const l=Math.abs(this.currentTime-w),c=this.buffered.end(this.buffered.length-1);this.seeking&&c>.1?(this.#s=!1,(n=this.#t)==null||n.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&l>.1&&(this.#s=!0,this.dispatchEvent(new Event("seeking"))),w=this.currentTime},50);const T=setInterval(()=>{const n=this.buffered.end(this.buffered.length-1);n>=this.duration&&(clearInterval(T),this.#e=4),m!=n&&(m=n,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(t,e,i){if(e!==i)switch(t){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var t,e,i;return this.#t=null,await this.loadComplete,(t=this.api)==null||t.playVideo(),e=this,(i=(o,r)=>{let h;e.addEventListener(o,h=()=>{e.removeEventListener(o,h),r()})},(...o)=>new Promise(r=>{i(...o,(...h)=>{h.length>1?r(h):r(h[0])})}))("playing")}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pauseVideo()}get seeking(){return this.#s}get readyState(){return this.#e}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get error(){return this.#l}get paused(){var t,e;return this.isLoaded?[-1,0,2,5].includes((e=(t=this.api)==null?void 0:t.getPlayerState)==null?void 0:e.call(t)):!this.autoplay}get duration(){var t,e;return((e=(t=this.api)==null?void 0:t.getDuration)==null?void 0:e.call(t))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get buffered(){var t,e;if(!this.isLoaded)return P();const i=((t=this.api)==null?void 0:t.getVideoLoadedFraction())*((e=this.api)==null?void 0:e.getDuration());return i>0?P(0,i):P()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){var t,e;return((e=(t=this.api)==null?void 0:t.getCurrentTime)==null?void 0:e.call(t))??0}set currentTime(t){this.currentTime!=t&&(this.#t=new C,this.loadComplete.then(()=>{var e,i;(e=this.api)==null||e.seekTo(t,!0),this.paused&&((i=this.#t)==null||i.then(()=>{var o;this.#t&&((o=this.api)==null||o.pauseVideo())}))}))}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",!!t)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}set muted(t){this.muted!=t&&this.loadComplete.then(()=>{var e,i;t?(e=this.api)==null||e.mute():(i=this.api)==null||i.unMute()})}get muted(){var t,e;return this.isLoaded?(e=(t=this.api)==null?void 0:t.isMuted)==null?void 0:e.call(t):this.defaultMuted}get playbackRate(){var t,e;return((e=(t=this.api)==null?void 0:t.getPlaybackRate)==null?void 0:e.call(t))??1}set playbackRate(t){this.playbackRate!=t&&this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setPlaybackRate(t)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",!!t)}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster",`${t}`)}set volume(t){this.volume!=t&&(this.#i=t,this.loadComplete.then(()=>{var e;(e=this.api)==null||e.setVolume(100*t)}))}get volume(){var t;return this.isLoaded?((t=this.api)==null?void 0:t.getVolume())/100:this.#i}#u(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}}function L(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function I(s){return String(new URLSearchParams(function(t){let e={};for(let i in t){let o=t[i];o===!0||o===""?e[i]=1:o===!1?e[i]=0:o!=null&&(e[i]=o)}return e}(s)))}const A={},j=s=>new Promise(t=>setTimeout(t,s));class C extends Promise{constructor(t=()=>{}){let e,i;super((o,r)=>{t(o,r),e=o,i=r}),this.resolve=e,this.reject=i}}function P(s,t){return Array.isArray(s)?N(s):N(s==null||t==null||s===0&&t===0?[[0,0]]:[[s,t]])}function N(s){return Object.defineProperties(s,{start:{value:t=>s[t][0]},end:{value:t=>s[t][1]}}),s}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",V);var B=V,F=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),Y={className:"class",htmlFor:"for"};function x(s){return s.toLowerCase()}function _(s){return typeof s=="boolean"?s?"":void 0:typeof s=="function"||typeof s=="object"&&s!==null?void 0:s}function $(s,t,e){var i;s[t]=e,e==null&&t in(((i=globalThis.HTMLElement)==null?void 0:i.prototype)??{})&&s.removeAttribute(t)}var q=function({react:s,tagName:t,elementClass:e,events:i,displayName:o,defaultProps:r,toAttributeName:h=x,toAttributeValue:m=_}){const w=Number.parseInt(s.version)>=19,T=s.forwardRef((n,l)=>{var c,f;const p=s.useRef(null),v=s.useRef(new Map),E={},M={},y={},k={};for(const[a,u]of Object.entries(n)){if(F.has(a)){y[a]=u;continue}const d=h(Y[a]??a);if(e.prototype&&a in e.prototype&&!(a in(((c=globalThis.HTMLElement)==null?void 0:c.prototype)??{}))&&!((f=e.observedAttributes)!=null&&f.some(b=>b===d))){k[a]=u;continue}if(a.startsWith("on")){E[a]=u;continue}const g=m(u);if(d&&g!=null&&(M[d]=String(g),w||(y[d]=g)),d&&w){const b=_(u);y[d]=g!==b?g:u}}if(typeof window<"u"){for(const a in E){const u=E[a],d=a.endsWith("Capture"),g=(i?.[a]??a.slice(2).toLowerCase()).slice(0,d?-7:void 0);s.useLayoutEffect(()=>{const b=p?.current;if(b&&typeof u=="function")return b.addEventListener(g,u,d),()=>{b.removeEventListener(g,u,d)}},[p?.current,u])}s.useLayoutEffect(()=>{if(p.current===null)return;const a=new Map;for(const u in k)$(p.current,u,k[u]),v.current.delete(u),a.set(u,k[u]);for(const[u,d]of v.current)$(p.current,u,void 0);v.current=a})}if(typeof window>"u"&&e?.getTemplateHTML&&e?.shadowRootOptions){const{mode:a,delegatesFocus:u}=e.shadowRootOptions,d=s.createElement("template",{shadowrootmode:a,shadowrootdelegatesfocus:u,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(M,n)},key:"ce-la-react-ssr-template-shadow-root"});y.children=[d,y.children]}return s.createElement(t,{...r,...y,ref:s.useCallback(a=>{p.current=a,typeof l=="function"?l(a):l!==null&&(l.current=a)},[l])},y.children)});return T.displayName=o??e.name,T}({react:H,tagName:"youtube-video",elementClass:B,toAttributeName:s=>s==="muted"?"":s==="defaultMuted"?"muted":x(s)});export{q as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{e as P}from"./sentry-Gbc14BJL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1cccc20b-6488-4473-82b6-ff8cbfa51987",e._sentryDebugIdIdentifier="sentry-dbid-1cccc20b-6488-4473-82b6-ff8cbfa51987")}catch{}})();const L="https://player.twitch.tv",W=/(?:www\.|go\.)?twitch\.tv\/(?:videos?\/|\?video=)(\d+)($|\?)/,_=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,j="Idle",B="Ended",D=2,z=3,q=4,F=10,J=11;function k(e,t={}){const n={src:x(e,t),frameborder:"0",width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; picture-in-picture;",sandbox:"allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",scrolling:"no"};return t.config&&(n["data-config"]=JSON.stringify(t.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 300px;
|
|
6
|
+
min-height: 150px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
:host(:not([controls])) {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<iframe${function(s){let i="";for(const l in s){const a=s[l];i+=a===""?` ${A(l)}`:` ${A(l)}="${A(`${a}`)}"`}return i}(n)}></iframe>
|
|
21
|
+
`}function x(e,t){var n;if(!e.src)return;const s=e.src.match(W),i=e.src.match(_),l={parent:(n=globalThis.location)==null?void 0:n.hostname,controls:e.controls===""&&null,autoplay:e.autoplay===""&&null,muted:e.muted,preload:e.preload,...t.config};if(s){const a=s[1];return`${L}/?video=v${a}&${C(l)}`}if(i){const a=i[1];return`${L}/?channel=${a}&${C(l)}`}return""}class O extends(globalThis.HTMLElement??class{}){static getTemplateHTML=k;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","loop","muted","playsinline","preload","src"];loadComplete=new $;#o;#r;#e;#t={};#h=0;#a=!1;#l=1;#u=!this.autoplay;#s=!1;#i=0;#c=null;constructor(){super(),this.#p("config")}get config(){return this.#c}set config(t){this.#c=t}async load(){if(this.#o)return;this.shadowRoot||this.attachShadow({mode:"open"});const t=!this.#r;if(this.#r&&(this.loadComplete=new $),this.#r=!0,await(this.#o=Promise.resolve()),this.#o=null,this.#i=0,this.dispatchEvent(new Event("emptied")),!this.src)return this.shadowRoot.innerHTML="",void globalThis.removeEventListener("message",this.#d);this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe");const s=function(i){let l={};for(let a of i)l[a.name]=a.value;return l}(this.attributes);t&&n&&(this.#c=JSON.parse(n.getAttribute("data-config")||"{}")),n?.src&&n.src===x(s,this)||(this.shadowRoot.innerHTML=k(s,this),n=this.shadowRoot.querySelector("iframe")),this.#e=n,globalThis.addEventListener("message",this.#d)}attributeChangedCallback(t,n,s){if(n!==s)switch(t){case"src":case"controls":this.load()}}getVideoPlaybackQuality(){return this.#t.stats.videoStats}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t)}get readyState(){return this.#i}get seeking(){return this.#s}get buffered(){var t,n;return function(s,i){return Array.isArray(s)?S(s):i==null||i===0?S([[0,0]]):S([[s,i]])}(0,((n=(t=this.#t.stats)==null?void 0:t.videoStats)==null?void 0:n.bufferSize)??0)}get paused(){return this.#t.playback?this.#t.playback===j:this.#u}get ended(){return!!this.#t.playback&&this.#t.playback===B}get duration(){return this.#t.duration??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return this.#t.currentTime?this.#t.currentTime:this.#h}set currentTime(t){this.#h=t,this.loadComplete.then(()=>{this.#n(q,t)})}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.toggleAttribute("loop",!!t)}get muted(){return this.#a}set muted(t){this.#a=t,this.loadComplete.then(()=>{this.#n(F,t)})}get volume(){return this.#l}set volume(t){this.#l=t,this.loadComplete.then(()=>{this.#n(J,t)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.toggleAttribute("playsinline",!!t)}play(){this.#u=!1,this.#n(z)}pause(){this.#u=!0,this.#n(D)}#d=async t=>{var n,s,i,l;if(!this.#e.contentWindow)return;const{data:a,source:b}=t;if(b===this.#e.contentWindow){if(a.namespace==="twitch-embed")await new Promise(m=>setTimeout(m,10)),a.eventName==="ready"?(this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve(),this.#i=1,this.dispatchEvent(new Event("loadedmetadata"))):a.eventName==="seek"?(this.#s=!0,this.dispatchEvent(new Event("seeking"))):a.eventName==="playing"?(this.#s&&(this.#s=!1,this.dispatchEvent(new Event("seeked"))),this.#i=3,this.dispatchEvent(new Event("playing"))):this.dispatchEvent(new Event(a.eventName));else if(a.namespace==="twitch-embed-player-proxy"&&a.eventName==="UPDATE_STATE"){const m=this.#t.duration,v=this.#t.currentTime,g=this.#t.volume,d=this.#t.muted,w=(s=(n=this.#t.stats)==null?void 0:n.videoStats)==null?void 0:s.bufferSize;this.#t={...this.#t,...a.params},m!==this.#t.duration&&this.dispatchEvent(new Event("durationchange")),v!==this.#t.currentTime&&this.dispatchEvent(new Event("timeupdate")),g===this.#t.volume&&d===this.#t.muted||(this.#t.volume!==void 0&&(this.#l=this.#t.volume),this.#t.muted!==void 0&&(this.#a=this.#t.muted),this.dispatchEvent(new Event("volumechange"))),w!==((l=(i=this.#t.stats)==null?void 0:i.videoStats)==null?void 0:l.bufferSize)&&this.dispatchEvent(new Event("progress"))}}};#n(t,n){if(!this.#e.contentWindow)return;const s={eventName:t,params:n,namespace:"twitch-embed-player-proxy"};this.#e.contentWindow.postMessage(s,L)}#p(t){if(Object.prototype.hasOwnProperty.call(this,t)){const n=this[t];delete this[t],this[t]=n}}}function A(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function C(e){return String(new URLSearchParams(function(t){let n={};for(let s in t){let i=t[s];i===!0||i===""?n[s]=!0:i===!1?n[s]=!1:i!=null&&(n[s]=i)}return n}(e)))}class $ extends Promise{constructor(t=()=>{}){let n,s;super((i,l)=>{t(i,l),n=i,s=l}),this.resolve=n,this.reject=s}}function S(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("twitch-video")&&globalThis.customElements.define("twitch-video",O);var U=O,V=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),Q={className:"class",htmlFor:"for"};function R(e){return e.toLowerCase()}function H(e){return typeof e=="boolean"?e?"":void 0:typeof e=="function"||typeof e=="object"&&e!==null?void 0:e}function I(e,t,n){var s;e[t]=n,n==null&&t in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&e.removeAttribute(t)}var G=function({react:e,tagName:t,elementClass:n,events:s,displayName:i,defaultProps:l,toAttributeName:a=R,toAttributeValue:b=H}){const m=Number.parseInt(e.version)>=19,v=e.forwardRef((g,d)=>{var w,N;const c=e.useRef(null),E=e.useRef(new Map),T={},M={},p={},y={};for(const[o,r]of Object.entries(g)){if(V.has(o)){p[o]=r;continue}const u=a(Q[o]??o);if(n.prototype&&o in n.prototype&&!(o in(((w=globalThis.HTMLElement)==null?void 0:w.prototype)??{}))&&!((N=n.observedAttributes)!=null&&N.some(f=>f===u))){y[o]=r;continue}if(o.startsWith("on")){T[o]=r;continue}const h=b(r);if(u&&h!=null&&(M[u]=String(h),m||(p[u]=h)),u&&m){const f=H(r);p[u]=h!==f?h:r}}if(typeof window<"u"){for(const o in T){const r=T[o],u=o.endsWith("Capture"),h=(s?.[o]??o.slice(2).toLowerCase()).slice(0,u?-7:void 0);e.useLayoutEffect(()=>{const f=c?.current;if(f&&typeof r=="function")return f.addEventListener(h,r,u),()=>{f.removeEventListener(h,r,u)}},[c?.current,r])}e.useLayoutEffect(()=>{if(c.current===null)return;const o=new Map;for(const r in y)I(c.current,r,y[r]),E.current.delete(r),o.set(r,y[r]);for(const[r,u]of E.current)I(c.current,r,void 0);E.current=o})}if(typeof window>"u"&&n?.getTemplateHTML&&n?.shadowRootOptions){const{mode:o,delegatesFocus:r}=n.shadowRootOptions,u=e.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(M,g)},key:"ce-la-react-ssr-template-shadow-root"});p.children=[u,p.children]}return e.createElement(t,{...l,...p,ref:e.useCallback(o=>{c.current=o,typeof d=="function"?d(o):d!==null&&(d.current=o)},[d])},p.children)});return v.displayName=i??n.name,v}({react:P,tagName:"twitch-video",elementClass:U,toAttributeName:e=>e==="muted"?"":e==="defaultMuted"?"muted":R(e)});export{G as default};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import{e as $}from"./sentry-Gbc14BJL.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cbf80af6-c687-4b41-9560-60808821b7fe",t._sentryDebugIdIdentifier="sentry-dbid-cbf80af6-c687-4b41-9560-60808821b7fe")}catch{}})();const _=/open\.spotify\.com\/(\w+)\/(\w+)/i;function M(t,e={}){return`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 160px;
|
|
6
|
+
min-height: 80px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
:host(:not([controls])) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<iframe${function(i){let o="";for(const l in i){const a=i[l];o+=a===""?` ${l}`:` ${l}="${a}"`}return o}({src:I(t,e),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"})}></iframe>
|
|
22
|
+
`}function I(t,e){var i,o,l;if(!t.src)return;const a=t.src.match(_),w=a&&a[1],b=a&&a[2],n={t:(i=e.config)==null?void 0:i.startAt,theme:((o=e.config)==null?void 0:o.theme)==="dark"?"0":null};return`https://open.spotify.com/embed/${w}/${b}${(l=e.config)!=null&&l.preferVideo?"/video":""}?${function(v){return String(new URLSearchParams(function(p){let h={};for(let f in p){let u=p[f];u===!0||u===""?h[f]=1:u===!1?h[f]=0:u!=null&&(h[f]=u)}return h}(v)))}(n)}`}class S extends(globalThis.HTMLElement??class{}){static getTemplateHTML=M;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new N;#r;#a;#l;#e=!1;#t=!1;#i=!0;#n=0;#s=NaN;#o=!1;#u=null;constructor(){super(),this.#d("config")}async load(){var e,i,o;if(this.#r)return;this.#a&&(this.loadComplete=new N),this.#a=!0,await(this.#r=Promise.resolve()),this.#r=null,this.#e=!1,this.#t=!1,this.#n=0,this.#s=NaN,this.#o=!1,this.dispatchEvent(new Event("emptied"));let l=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const a={t:(e=this.config)==null?void 0:e.startAt,theme:((i=this.config)==null?void 0:i.theme)==="dark"?"0":null,preferVideo:(o=this.config)==null?void 0:o.preferVideo};if(this.#l)this.api=l,this.api.iframeElement.src=I(k(this.attributes),this);else{this.#l=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=M(k(this.attributes),this));let w=this.shadowRoot.querySelector("iframe");const b=await async function(n,v,p){return C[n]?C[n]:self[v]?Promise.resolve(self[v]):C[n]=new Promise(function(h,f){const u=document.createElement("script");u.src=n;const c=E=>h(E);self[p]=c,u.onload=()=>!p,u.onerror=f,document.head.append(u)})}("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(n=>b.createController(w,a,n)),this.api.iframeElement=w,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",n=>this.#t&&this.#i&&(n.data.isBuffering||!n.data.isPaused)?(this.#t=!1,void(this.currentTime=1)):(n.data.duration/1e3!==this.#s&&(this.#t=!1,this.#s=n.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),n.data.position/1e3!==this.#n&&(this.#o=!1,this.#t=!1,this.#n=n.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),this.#e||this.#i||!n.data.isPaused?!this.#i||!n.data.isBuffering&&n.data.isPaused?this.#e&&!n.data.isPaused?(this.#e=!1,void this.dispatchEvent(new Event("playing"))):!this.paused&&!this.seeking&&!this.#t&&Math.ceil(this.currentTime)>=this.duration?(this.#t=!0,this.loop?void(this.currentTime=1):void(this.continuous||(this.pause(),this.dispatchEvent(new Event("ended"))))):void 0:(this.#i=!1,this.dispatchEvent(new Event("play")),this.#e=n.data.isBuffering,void(this.#e?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing")))):(this.#i=!0,void this.dispatchEvent(new Event("pause")))))}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(e,i,o){i!==o&&(e!=="src"||this.load())}async play(){var e;return this.#i=!1,this.#e=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,(e=this.api)==null?void 0:e.resume()}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pause()}get config(){return this.#u}set config(e){this.#u=e}get paused(){return this.#i??!0}get muted(){return!1}set muted(e){}get volume(){return 1}set volume(e){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#o}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get currentTime(){return this.#n}set currentTime(e){if(this.currentTime==e)return;this.#o=!0;let i=this.#n;this.#n=e,this.dispatchEvent(new Event("timeupdate")),this.#n=i,this.loadComplete.then(()=>{var o;(o=this.api)==null||o.seek(e)})}get duration(){return this.#s}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}#d(e){if(Object.prototype.hasOwnProperty.call(this,e)){const i=this[e];delete this[e],this[e]=i}}}function k(t){let e={};for(let i of t)e[i.name]=i.value;return e}const C={};class N extends Promise{constructor(e=()=>{}){let i,o;super((l,a)=>{e(l,a),i=l,o=a}),this.resolve=i,this.reject=o}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",S);var O=S,x=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),j={className:"class",htmlFor:"for"};function P(t){return t.toLowerCase()}function R(t){return typeof t=="boolean"?t?"":void 0:typeof t=="function"||typeof t=="object"&&t!==null?void 0:t}function H(t,e,i){var o;t[e]=i,i==null&&e in(((o=globalThis.HTMLElement)==null?void 0:o.prototype)??{})&&t.removeAttribute(e)}var D=function({react:t,tagName:e,elementClass:i,events:o,displayName:l,defaultProps:a,toAttributeName:w=P,toAttributeValue:b=R}){const n=Number.parseInt(t.version)>=19,v=t.forwardRef((p,h)=>{var f,u;const c=t.useRef(null),E=t.useRef(new Map),L={},A={},g={},T={};for(const[s,r]of Object.entries(p)){if(x.has(s)){g[s]=r;continue}const d=w(j[s]??s);if(i.prototype&&s in i.prototype&&!(s in(((f=globalThis.HTMLElement)==null?void 0:f.prototype)??{}))&&!((u=i.observedAttributes)!=null&&u.some(y=>y===d))){T[s]=r;continue}if(s.startsWith("on")){L[s]=r;continue}const m=b(r);if(d&&m!=null&&(A[d]=String(m),n||(g[d]=m)),d&&n){const y=R(r);g[d]=m!==y?m:r}}if(typeof window<"u"){for(const s in L){const r=L[s],d=s.endsWith("Capture"),m=(o?.[s]??s.slice(2).toLowerCase()).slice(0,d?-7:void 0);t.useLayoutEffect(()=>{const y=c?.current;if(y&&typeof r=="function")return y.addEventListener(m,r,d),()=>{y.removeEventListener(m,r,d)}},[c?.current,r])}t.useLayoutEffect(()=>{if(c.current===null)return;const s=new Map;for(const r in T)H(c.current,r,T[r]),E.current.delete(r),s.set(r,T[r]);for(const[r,d]of E.current)H(c.current,r,void 0);E.current=s})}if(typeof window>"u"&&i?.getTemplateHTML&&i?.shadowRootOptions){const{mode:s,delegatesFocus:r}=i.shadowRootOptions,d=t.createElement("template",{shadowrootmode:s,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(A,p)},key:"ce-la-react-ssr-template-shadow-root"});g.children=[d,g.children]}return t.createElement(e,{...a,...g,ref:t.useCallback(s=>{c.current=s,typeof h=="function"?h(s):h!==null&&(h.current=s)},[h])},g.children)});return v.displayName=l??i.name,v}({react:$,tagName:"spotify-audio",elementClass:O,toAttributeName:t=>t==="muted"?"":t==="defaultMuted"?"muted":P(t)});export{D as default};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{e as $}from"./sentry-Gbc14BJL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="bd46ddc8-54d7-47cc-b70e-e28de5f7dfd2",e._sentryDebugIdIdentifier="sentry-dbid-bd46ddc8-54d7-47cc-b70e-e28de5f7dfd2")}catch{}})();const B=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],T=globalThis.document?.createElement("template");T&&(T.innerHTML=`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
video,
|
|
9
|
+
audio {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
max-height: 100%;
|
|
12
|
+
min-width: 100%;
|
|
13
|
+
min-height: 100%;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<slot></slot>
|
|
17
|
+
`);const I=(e,{tag:s,is:o})=>{const d=globalThis.document?.createElement(s,{is:o}),p=d?N(d):[];return class w extends e{static Events=B;static template=T;static skipAttributes=[];static#i;static get observedAttributes(){return w.#r(),[...d?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static#r(){if(this.#i)return;this.#i=!0;const t=new Set(this.observedAttributes);t.delete("muted");for(let n of p)if(!(n in this.prototype))if(typeof d[n]=="function")this.prototype[n]=function(...a){this.#t();const i=()=>this.call?this.call(n,...a):this.nativeEl[n].apply(this.nativeEl,a);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(i):i()};else{let a={get(){this.#t();let i=n.toLowerCase();if(t.has(i)){const u=this.getAttribute(i);return u!==null&&(u===""||u)}return this.get?.(n)??this.nativeEl?.[n]??this.#s[n]}};n!==n.toUpperCase()&&(a.set=async function(i){this.#t();let u=n.toLowerCase();t.has(u)?i===!0||i===!1||i==null?this.toggleAttribute(u,!!i):this.setAttribute(u,i):(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set?this.set(n,i):this.nativeEl[n]=i)}),Object.defineProperty(this.prototype,n,a)}}#o;#n;#a=!1;#e=!1;#l;#s;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==w.prototype.load&&(this.loadComplete=new O)}get loadComplete(){return this.#n}set loadComplete(t){this.#e=!1,this.#n=t,t?.then(()=>{this.#e=!0})}get isLoaded(){return this.#e}get nativeEl(){return this.#l??this.shadowRoot.querySelector(s)??this.querySelector(s)}set nativeEl(t){this.#l=t}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(t){this.setAttribute("preload",`${t}`)}async#t(){if(this.#o)return;this.#o=!0,this.#c(),this.#u();for(let a of p)this.#d(a);const t=new Map,n=this.shadowRoot.querySelector("slot:not([name])");n?.addEventListener("slotchange",()=>{const a=new Map(t);n.assignedElements().filter(i=>["track","source"].includes(i.localName)).forEach(async i=>{a.delete(i);let u=t.get(i);u||(u=i.cloneNode(),t.set(i,u)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(u)}),a.forEach(i=>i.remove())});for(let a of this.constructor.Events)this.shadowRoot.addEventListener?.(a,i=>{i.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(i.type,{detail:i.detail}))},!0)}#d(t){if(Object.prototype.hasOwnProperty.call(this,t)){const n=this[t];delete this[t],this[t]=n}}#c(){const t=document.createElement(s,{is:o});t.muted=this.hasAttribute("muted");for(let{name:n,value:a}of this.attributes)t.setAttribute(n,a);this.#s={};for(let n of N(t))this.#s[n]=t[n];t.removeAttribute("src"),t.load()}async#u(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const t=document.createElement(s,{is:o});t.part=s,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(t,n,a){this.#t(),t==="src"&&this.load!==w.prototype.load&&this.#h(),this.#p(t,n,a)}async#h(){this.#a&&(this.loadComplete=new O),this.#a=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async#p(t,n,a){this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t)||(a===null?this.nativeEl.removeAttribute?.(t):this.nativeEl.setAttribute?.(t,a))}connectedCallback(){this.#t()}}};function N(e){let s=[];for(let o=Object.getPrototypeOf(e);o&&o!==HTMLElement.prototype;o=Object.getPrototypeOf(o))s.push(...Object.getOwnPropertyNames(o));return s}class O extends Promise{constructor(s=()=>{}){let o,d;super((p,c)=>{s(p,c),o=p,d=c}),this.resolve=o,this.reject=d}}const W=globalThis.document?I(HTMLElement,{tag:"video"}):class{};var R,S;globalThis.document&&I(HTMLElement,{tag:"audio"});const A=(R=globalThis.document)==null?void 0:R.createElement("template");A&&(A.innerHTML=`
|
|
18
|
+
<div class="wistia_embed"></div>
|
|
19
|
+
`);const k=(S=globalThis.document)==null?void 0:S.createElement("template");k&&(k.innerHTML=`
|
|
20
|
+
<style>
|
|
21
|
+
:host {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
min-width: 300px;
|
|
24
|
+
min-height: 150px;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
::slotted(.wistia_embed) {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
33
|
+
<slot></slot>
|
|
34
|
+
`);class q extends W{static template=k;static skipAttributes=["src"];get nativeEl(){var s;return((s=this.api)==null?void 0:s.elem())??this.querySelector("video")}async load(){var s;if((s=this.querySelector(".wistia_embed"))==null||s.remove(),!this.src)return;await new Promise(c=>setTimeout(c,50));const o=this.src.match(/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i)[1],d={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(A.content.cloneNode(!0));const p=this.querySelector(".wistia_embed");p.id||(p.id=function(c){const t=++D;return`${c}${t}`}(o)),p.classList.add(`wistia_async_${o}`),await async function(c,t){return L[c]?L[c]:self[t]?self[t]:L[c]=new Promise((n,a)=>{const i=document.createElement("script");i.defer=!0,i.src=c,i.onload=()=>n(self[t]),i.onerror=a,document.head.append(i)})}("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(c=>{globalThis._wq.push({id:p.id,onReady:c,options:d})})}async attributeChangedCallback(s,o,d){s!=="controls"?super.attributeChangedCallback(s,o,d):(await this.loadComplete,s==="controls"&&(this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless()))}get duration(){var s;return(s=this.api)==null?void 0:s.duration()}async play(){return await this.loadComplete,this.api.play(),new Promise(s=>this.addEventListener("playing",s))}}const L={};let D=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",q);var F=q,V=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),z={className:"class",htmlFor:"for"};function _(e){return e.toLowerCase()}function j(e){return typeof e=="boolean"?e?"":void 0:typeof e=="function"||typeof e=="object"&&e!==null?void 0:e}function x(e,s,o){var d;e[s]=o,o==null&&s in(((d=globalThis.HTMLElement)==null?void 0:d.prototype)??{})&&e.removeAttribute(s)}var G=function({react:e,tagName:s,elementClass:o,events:d,displayName:p,defaultProps:c,toAttributeName:t=_,toAttributeValue:n=j}){const a=Number.parseInt(e.version)>=19,i=e.forwardRef((u,g)=>{var M,P;const m=e.useRef(null),E=e.useRef(new Map),C={},H={},b={},v={};for(const[l,r]of Object.entries(u)){if(V.has(l)){b[l]=r;continue}const h=t(z[l]??l);if(o.prototype&&l in o.prototype&&!(l in(((M=globalThis.HTMLElement)==null?void 0:M.prototype)??{}))&&!((P=o.observedAttributes)!=null&&P.some(y=>y===h))){v[l]=r;continue}if(l.startsWith("on")){C[l]=r;continue}const f=n(r);if(h&&f!=null&&(H[h]=String(f),a||(b[h]=f)),h&&a){const y=j(r);b[h]=f!==y?f:r}}if(typeof window<"u"){for(const l in C){const r=C[l],h=l.endsWith("Capture"),f=(d?.[l]??l.slice(2).toLowerCase()).slice(0,h?-7:void 0);e.useLayoutEffect(()=>{const y=m?.current;if(y&&typeof r=="function")return y.addEventListener(f,r,h),()=>{y.removeEventListener(f,r,h)}},[m?.current,r])}e.useLayoutEffect(()=>{if(m.current===null)return;const l=new Map;for(const r in v)x(m.current,r,v[r]),E.current.delete(r),l.set(r,v[r]);for(const[r,h]of E.current)x(m.current,r,void 0);E.current=l})}if(typeof window>"u"&&o?.getTemplateHTML&&o?.shadowRootOptions){const{mode:l,delegatesFocus:r}=o.shadowRootOptions,h=e.createElement("template",{shadowrootmode:l,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(H,u)},key:"ce-la-react-ssr-template-shadow-root"});b.children=[h,b.children]}return e.createElement(s,{...c,...b,ref:e.useCallback(l=>{m.current=l,typeof g=="function"?g(l):g!==null&&(g.current=l)},[g])},b.children)});return i.displayName=p??o.name,i}({react:$,tagName:"wistia-video",elementClass:F,toAttributeName:e=>e==="muted"?"":e==="defaultMuted"?"muted":_(e)});export{G as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash.all.min-D0CkNF8g-0432FG2N.js","assets/zeni-epic-state-CvtUqjnz.js","assets/sentry-Gbc14BJL.js","assets/core-Jhwj2cWt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bv as C}from"./zeni-epic-state-CvtUqjnz.js";import{e as k}from"./sentry-Gbc14BJL.js";import{M as x,s as L}from"./mixin-XJuHfVsL-BC7tPWd5.js";import"./core-Jhwj2cWt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="88a13dd5-782c-4cfb-b22e-bfee0113d654",e._sentryDebugIdIdentifier="sentry-dbid-88a13dd5-782c-4cfb-b22e-bfee0113d654")}catch{}})();class N extends x(L){static shadowRootOptions={...L.shadowRootOptions};static getTemplateHTML=t=>{const{src:n,...r}=t;return L.getTemplateHTML(r)};#e;attributeChangedCallback(t,n,r){t!=="src"&&super.attributeChangedCallback(t,n,r),t==="src"&&n!=r&&this.load()}async _initThumbnails(t){const{totalThumbnails:n,thumbnailDuration:r}=function(f){var l,h;const T=f.essentialProperties[0],[v,s]=T.value.split("x").map(Number),E=v*s,p=((h=(l=f.adaptation)==null?void 0:l.period)==null?void 0:h.duration)||null,d=f.segmentDuration,w=f.timescale||1,y=d/w/E;return{totalThumbnails:p!=null?Math.ceil(p/y):Math.ceil(d/y),thumbnailDuration:y}}(t),a=await(async(f,l)=>{const h=[],T=t.timescale||1,v=t.startNumber||1,s=t.presentationTimeOffset?t.presentationTimeOffset/T:0,E=t.segmentDuration;for(let p=0;p<f;p++){const d=$({thIndex:p,thduration:l,ttiles:f,tduration:E,startNumber:v,pto:s}),w=d+l,y=new Promise((M,g)=>{this.api.provideThumbnail(d,({url:I,width:i,height:o,x:u,y:b})=>{try{const m=new VTTCue(d,w,`${I}#xywh=${u},${b},${i},${o}`);M(m)}catch(m){g(m)}})});h.push(y)}return await Promise.all(h).catch(p=>console.error("Error processing thumbnails",p))})(n,r);let c=this.nativeEl.querySelector('track[label="thumbnails"]');if(!c){c=function(){const l=document.createElement("track");return l.kind="metadata",l.label="thumbnails",l.srclang="en",l.mode="hidden",l.default=!0,l}(),this.nativeEl.appendChild(c);const f=function(l){let h=`WEBVTT
|
|
3
|
+
|
|
4
|
+
`;for(const s of l)h+=`${v(s.startTime)} --> ${v(s.endTime)}
|
|
5
|
+
`,h+=`${s.text}
|
|
6
|
+
|
|
7
|
+
`;const T=new Blob([h],{type:"text/vtt"});return URL.createObjectURL(T);function v(s){return`${String(Math.floor(s/3600)).padStart(2,"0")}:${String(Math.floor(s%3600/60)).padStart(2,"0")}:${(s%60).toFixed(3).padStart(6,"0")}`}}(a);c.src=f,c.dispatchEvent(new Event("change"))}}async load(){if(this.#e)return void this.api.attachSource(this.src);this.#e=!0;const t=await C(()=>import("./dash.all.min-D0CkNF8g-0432FG2N.js"),__vite__mapDeps([0,1,2,3]));this.api=t.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay),this.api.on(t.MediaPlayer.events.STREAM_INITIALIZED,()=>{const n=this.api.getRepresentationsByType("video");let r=this.videoTracks.getTrackById("main");r||(r=this.addVideoTrack("main"),r.id="main",r.selected=!0),n.forEach(a=>{const c=a.bandwidth??a.bitrate??(Number.isFinite(a.bitrateInKbit)?1e3*a.bitrateInKbit:void 0);r.addRendition(a.id,a.width,a.height,a.mimeType??a.codec,c).id=a.id}),this.videoRenditions.addEventListener("change",()=>{const a=this.videoRenditions[this.videoRenditions.selectedIndex];a?.id?(this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),this.api.setRepresentationForTypeById("video",a.id,!0)):this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})}),!this.api.isDynamic()&&this.api.getRepresentationsByType("image").forEach(async(a,c)=>{c>0||this._initThumbnails(a)})})}}function $({thIndex:e,tduration:t,thduration:n,ttiles:r,startNumber:a,pto:c}){return(Math.floor(e/r)+a-1)*t-c+(e%r+1-1)*n}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",N);var D=N,H=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),O={className:"class",htmlFor:"for"};function R(e){return e.toLowerCase()}function S(e){return typeof e=="boolean"?e?"":void 0:typeof e=="function"||typeof e=="object"&&e!==null?void 0:e}function _(e,t,n){var r;e[t]=n,n==null&&t in(((r=globalThis.HTMLElement)==null?void 0:r.prototype)??{})&&e.removeAttribute(t)}var V=function({react:e,tagName:t,elementClass:n,events:r,displayName:a,defaultProps:c,toAttributeName:f=R,toAttributeValue:l=S}){const h=Number.parseInt(e.version)>=19,T=e.forwardRef((v,s)=>{var E,p;const d=e.useRef(null),w=e.useRef(new Map),y={},M={},g={},I={};for(const[i,o]of Object.entries(v)){if(H.has(i)){g[i]=o;continue}const u=f(O[i]??i);if(n.prototype&&i in n.prototype&&!(i in(((E=globalThis.HTMLElement)==null?void 0:E.prototype)??{}))&&!((p=n.observedAttributes)!=null&&p.some(m=>m===u))){I[i]=o;continue}if(i.startsWith("on")){y[i]=o;continue}const b=l(o);if(u&&b!=null&&(M[u]=String(b),h||(g[u]=b)),u&&h){const m=S(o);g[u]=b!==m?b:o}}if(typeof window<"u"){for(const i in y){const o=y[i],u=i.endsWith("Capture"),b=(r?.[i]??i.slice(2).toLowerCase()).slice(0,u?-7:void 0);e.useLayoutEffect(()=>{const m=d?.current;if(m&&typeof o=="function")return m.addEventListener(b,o,u),()=>{m.removeEventListener(b,o,u)}},[d?.current,o])}e.useLayoutEffect(()=>{if(d.current===null)return;const i=new Map;for(const o in I)_(d.current,o,I[o]),w.current.delete(o),i.set(o,I[o]);for(const[o,u]of w.current)_(d.current,o,void 0);w.current=i})}if(typeof window>"u"&&n?.getTemplateHTML&&n?.shadowRootOptions){const{mode:i,delegatesFocus:o}=n.shadowRootOptions,u=e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(M,v)},key:"ce-la-react-ssr-template-shadow-root"});g.children=[u,g.children]}return e.createElement(t,{...c,...g,ref:e.useCallback(i=>{d.current=i,typeof s=="function"?s(i):s!==null&&(s.current=i)},[s])},g.children)});return T.displayName=a??n.name,T}({react:k,tagName:"dash-video",elementClass:D,toAttributeName:e=>e==="muted"?"":e==="defaultMuted"?"muted":R(e)});export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./sentry-Gbc14BJL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="72cddc47-7d67-4186-8e56-ef983b9abc14",e._sentryDebugIdIdentifier="sentry-dbid-72cddc47-7d67-4186-8e56-ef983b9abc14")}catch{}})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="
|
|
1
|
+
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="412153b8-e75e-4c78-b230-3b1b8902686d",e._sentryDebugIdIdentifier="sentry-dbid-412153b8-e75e-4c78-b230-3b1b8902686d")}catch{}})();function xh(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Mh=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Mh.SENTRY_RELEASE={id:"9343f4b8ab4f16c93ea512d9f7226c69dde85086"};var OR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NR(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Os={exports:{}},ne={};var oc;function Ah(){if(oc)return ne;oc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),l=Symbol.iterator;function f(m){return m===null||typeof m!="object"?null:(m=l&&m[l]||m["@@iterator"],typeof m=="function"?m:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(m,T,H){this.props=m,this.context=T,this.refs=g,this.updater=H||p}_.prototype.isReactComponent={},_.prototype.setState=function(m,T){if(typeof m!="object"&&typeof m!="function"&&m!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,m,T,"setState")},_.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function b(){}b.prototype=_.prototype;function v(m,T,H){this.props=m,this.context=T,this.refs=g,this.updater=H||p}var C=v.prototype=new b;C.constructor=v,h(C,_.prototype),C.isPureReactComponent=!0;var k=Array.isArray,S=Object.prototype.hasOwnProperty,E={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function A(m,T,H){var z,Z={},ae=null,me=null;if(T!=null)for(z in T.ref!==void 0&&(me=T.ref),T.key!==void 0&&(ae=""+T.key),T)S.call(T,z)&&!R.hasOwnProperty(z)&&(Z[z]=T[z]);var le=arguments.length-2;if(le===1)Z.children=H;else if(1<le){for(var de=Array(le),Me=0;Me<le;Me++)de[Me]=arguments[Me+2];Z.children=de}if(m&&m.defaultProps)for(z in le=m.defaultProps,le)Z[z]===void 0&&(Z[z]=le[z]);return{$$typeof:e,type:m,key:ae,ref:me,props:Z,_owner:E.current}}function w(m,T){return{$$typeof:e,type:m.type,key:T,ref:m.ref,props:m.props,_owner:m._owner}}function x(m){return typeof m=="object"&&m!==null&&m.$$typeof===e}function B(m){var T={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(H){return T[H]})}var I=/\/+/g;function O(m,T){return typeof m=="object"&&m!==null&&m.key!=null?B(""+m.key):T.toString(36)}function U(m,T,H,z,Z){var ae=typeof m;(ae==="undefined"||ae==="boolean")&&(m=null);var me=!1;if(m===null)me=!0;else switch(ae){case"string":case"number":me=!0;break;case"object":switch(m.$$typeof){case e:case t:me=!0}}if(me)return me=m,Z=Z(me),m=z===""?"."+O(me,0):z,k(Z)?(H="",m!=null&&(H=m.replace(I,"$&/")+"/"),U(Z,T,H,"",function(Me){return Me})):Z!=null&&(x(Z)&&(Z=w(Z,H+(!Z.key||me&&me.key===Z.key?"":(""+Z.key).replace(I,"$&/")+"/")+m)),T.push(Z)),1;if(me=0,z=z===""?".":z+":",k(m))for(var le=0;le<m.length;le++){ae=m[le];var de=z+O(ae,le);me+=U(ae,T,H,de,Z)}else if(de=f(m),typeof de=="function")for(m=de.call(m),le=0;!(ae=m.next()).done;)ae=ae.value,de=z+O(ae,le++),me+=U(ae,T,H,de,Z);else if(ae==="object")throw T=String(m),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return me}function F(m,T,H){if(m==null)return m;var z=[],Z=0;return U(m,z,"","",function(ae){return T.call(H,ae,Z++)}),z}function L(m){if(m._status===-1){var T=m._result;T=T(),T.then(function(H){(m._status===0||m._status===-1)&&(m._status=1,m._result=H)},function(H){(m._status===0||m._status===-1)&&(m._status=2,m._result=H)}),m._status===-1&&(m._status=0,m._result=T)}if(m._status===1)return m._result.default;throw m._result}var N={current:null},D={transition:null},Y={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:D,ReactCurrentOwner:E};function J(){throw Error("act(...) is not supported in production builds of React.")}return ne.Children={map:F,forEach:function(m,T,H){F(m,function(){T.apply(this,arguments)},H)},count:function(m){var T=0;return F(m,function(){T++}),T},toArray:function(m){return F(m,function(T){return T})||[]},only:function(m){if(!x(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},ne.Component=_,ne.Fragment=n,ne.Profiler=o,ne.PureComponent=v,ne.StrictMode=r,ne.Suspense=c,ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,ne.act=J,ne.cloneElement=function(m,T,H){if(m==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+m+".");var z=h({},m.props),Z=m.key,ae=m.ref,me=m._owner;if(T!=null){if(T.ref!==void 0&&(ae=T.ref,me=E.current),T.key!==void 0&&(Z=""+T.key),m.type&&m.type.defaultProps)var le=m.type.defaultProps;for(de in T)S.call(T,de)&&!R.hasOwnProperty(de)&&(z[de]=T[de]===void 0&&le!==void 0?le[de]:T[de])}var de=arguments.length-2;if(de===1)z.children=H;else if(1<de){le=Array(de);for(var Me=0;Me<de;Me++)le[Me]=arguments[Me+2];z.children=le}return{$$typeof:e,type:m.type,key:Z,ref:ae,props:z,_owner:me}},ne.createContext=function(m){return m={$$typeof:i,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},m.Provider={$$typeof:s,_context:m},m.Consumer=m},ne.createElement=A,ne.createFactory=function(m){var T=A.bind(null,m);return T.type=m,T},ne.createRef=function(){return{current:null}},ne.forwardRef=function(m){return{$$typeof:a,render:m}},ne.isValidElement=x,ne.lazy=function(m){return{$$typeof:d,_payload:{_status:-1,_result:m},_init:L}},ne.memo=function(m,T){return{$$typeof:u,type:m,compare:T===void 0?null:T}},ne.startTransition=function(m){var T=D.transition;D.transition={};try{m()}finally{D.transition=T}},ne.unstable_act=J,ne.useCallback=function(m,T){return N.current.useCallback(m,T)},ne.useContext=function(m){return N.current.useContext(m)},ne.useDebugValue=function(){},ne.useDeferredValue=function(m){return N.current.useDeferredValue(m)},ne.useEffect=function(m,T){return N.current.useEffect(m,T)},ne.useId=function(){return N.current.useId()},ne.useImperativeHandle=function(m,T,H){return N.current.useImperativeHandle(m,T,H)},ne.useInsertionEffect=function(m,T){return N.current.useInsertionEffect(m,T)},ne.useLayoutEffect=function(m,T){return N.current.useLayoutEffect(m,T)},ne.useMemo=function(m,T){return N.current.useMemo(m,T)},ne.useReducer=function(m,T,H){return N.current.useReducer(m,T,H)},ne.useRef=function(m){return N.current.useRef(m)},ne.useState=function(m){return N.current.useState(m)},ne.useSyncExternalStore=function(m,T,H){return N.current.useSyncExternalStore(m,T,H)},ne.useTransition=function(){return N.current.useTransition()},ne.version="18.3.1",ne}var sc;function Oh(){return sc||(sc=1,Os.exports=Ah()),Os.exports}var Oe=Oh();const Nh=vl(Oe),LR=xh({__proto__:null,default:Nh},[Oe]),M=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,G=globalThis,yt="9.42.1";function xt(){return Tr(G),G}function Tr(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||yt,t[yt]=t[yt]||{}}function Ir(e,t,n=G){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[yt]=r[yt]||{};return o[e]||(o[e]=t())}const Zi=["debug","info","warn","error","log","assert","trace"],Lh="Sentry Logger ",Mo={};function qt(e){if(!("console"in G))return e();const t=G.console,n={},r=Object.keys(Mo);r.forEach(o=>{const s=Mo[o];n[o]=t[o],t[o]=s});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function Ph(){ea().enabled=!0}function Dh(){ea().enabled=!1}function wl(){return ea().enabled}function Fh(...e){Qi("log",...e)}function $h(...e){Qi("warn",...e)}function Bh(...e){Qi("error",...e)}function Qi(e,...t){M&&wl()&&qt(()=>{G.console[e](`${Lh}[${e}]:`,...t)})}function ea(){return M?Ir("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const y={enable:Ph,disable:Dh,isEnabled:wl,log:Fh,warn:$h,error:Bh},Tl=50,pt="?",ic=/\(error: (.*)\)/,ac=/captureMessage|captureException/;function Il(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{const s=[],i=n.split(`
|
|
2
2
|
`);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=ic.test(c)?c.replace(ic,"$1"):c;if(!u.match(/\S*Error: /)){for(const d of t){const l=d(u);if(l){s.push(l);break}}if(s.length>=Tl+o)break}}return Hh(s.slice(o))}}function Uh(e){return Array.isArray(e)?Il(...e):e}function Hh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(zr(t).function||"")&&t.pop(),t.reverse(),ac.test(zr(t).function||"")&&(t.pop(),ac.test(zr(t).function||"")&&t.pop()),t.slice(0,Tl).map(n=>({...n,filename:n.filename||zr(t).filename,function:n.function||pt}))}function zr(e){return e[e.length-1]||{}}const Ns="<anonymous>";function Et(e){try{return!e||typeof e!="function"?Ns:e.name||Ns}catch{return Ns}}function li(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const fo={},cc={};function Gt(e,t){fo[e]=fo[e]||[],fo[e].push(t)}function Vt(e,t){if(!cc[e]){cc[e]=!0;try{t()}catch(n){M&&y.error(`Error while instrumenting ${e}`,n)}}}function Ke(e,t){const n=e&&fo[e];if(n)for(const r of n)try{r(t)}catch(o){M&&y.error(`Error while triggering instrumentation handler.
|
|
3
3
|
Type: ${e}
|
|
4
4
|
Name: ${Et(r)}
|
|
@@ -497,4 +497,4 @@ or you can use record.mirror to access the mirror instance during recording.`;le
|
|
|
497
497
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
498
498
|
or you can use record.mirror to access the mirror instance during recording.`;let Zu={map:{},getId(){return console.error(wn),-1},getNode(){return console.error(wn),null},removeNodeFromMap(){console.error(wn)},has(){return console.error(wn),!1},reset(){console.error(wn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Zu=new Proxy(Zu,{get(e,t,n){return t==="map"&&console.error(wn),Reflect.get(e,t,n)}}));function Ja(e,t,n,r,o=window){const s=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(i){Zp(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>Ja(e,t,s||{},!0)}function Za(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function b1(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Is(e,t,n,r,o){if(!e)return!1;const s=b1(e);if(!s)return!1;const i=Ju(t,n),a=Ki(s,i);let c=-1;return a<0?!1:(r&&(c=Ki(s,Ju(null,r))),a>-1&&c<0?!0:a<c)}const Qu={};function Jp(e){const t=Qu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);const s=o.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(o)}catch{}return Qu[e]=r.bind(window)}function Xt(...e){return Jp("requestAnimationFrame")(...e)}function Zp(...e){return Jp("setTimeout")(...e)}var Yn=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Yn||{});let ko;function E1(e){ko=e}const si=e=>ko?(...n)=>{try{return e(...n)}catch(r){if(ko&&ko(r)===!0)return()=>{};throw r}}:e;var Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var uo=0;uo<Cn.length;uo++)v1[Cn.charCodeAt(uo)]=uo;var w1=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=Cn[t[n]>>2],o+=Cn[(t[n]&3)<<4|t[n+1]>>4],o+=Cn[(t[n+1]&15)<<2|t[n+2]>>6],o+=Cn[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};const el=new Map;function T1(e,t){let n=el.get(e);return n||(n=new Map,el.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Qp=(e,t,n)=>{if(!e||!(th(e,t)||typeof e=="object"))return;const r=e.constructor.name,o=T1(n,r);let s=o.indexOf(e);return s===-1&&(s=o.length,o.push(e)),s};function Ro(e,t,n){if(e instanceof Array)return e.map(r=>Ro(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,o=w1(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ro(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ro(e.data,t,n),e.width,e.height]};if(th(e,t)||typeof e=="object"){const r=e.constructor.name,o=Qp(e,t,n);return{rr_type:r,index:o}}}}return e}const eh=(e,t,n)=>e.map(r=>Ro(r,t,n)),th=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function I1(e,t,n,r,o){const s=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=Za(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return Is(this.canvas,n,r,o,!0)||Zp(()=>{const l=eh(d,t,this);e(this.canvas,{type:Yn["2D"],property:a,args:l})},0),u.apply(this,d)}});s.push(c)}catch{const c=Ja(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Yn["2D"],property:a,args:[u],setter:!0})}});s.push(c)}return()=>{s.forEach(a=>a())}}function k1(e){return e==="experimental-webgl"?"webgl":e}function tl(e,t,n,r,o){const s=[];try{const i=Za(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Is(this,t,n,r,!0)){const d=k1(c);if("__context"in this||(this.__context=d),o&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});s.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(i=>i())}}function nl(e,t,n,r,o,s,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=Za(e,d,function(f){return function(...p){const h=f.apply(this,p);if(Qp(h,a,this),"tagName"in this.canvas&&!Is(this.canvas,r,o,s,!0)){const g=eh(p,a,this),_={type:t,property:d,args:g};n(this.canvas,_)}return h}});c.push(l)}catch{const l=Ja(e,d,{set(f){n(this.canvas,{type:t,property:d,args:[f],setter:!0})}});c.push(l)}return c}function R1(e,t,n,r,o,s){const i=[];return i.push(...nl(t.WebGLRenderingContext.prototype,Yn.WebGL,e,n,r,o,s,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...nl(t.WebGL2RenderingContext.prototype,Yn.WebGL2,e,n,r,o,s,t)),()=>{i.forEach(a=>a())}}const C1='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function x1(){const e=new Blob([C1]);return URL.createObjectURL(e)}class M1{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(l,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(f)};const{sampling:n="all",win:r,blockClass:o,blockSelector:s,unblockSelector:i,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:d}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,d&&E1(d),(c&&typeof n=="number"||t.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t.enableManualSnapshot&&si(()=>{c&&n==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,o,s,i,a,{dataURLOptions:u})})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:o,unblockSelector:s,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}si(()=>{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,o,s),i&&typeof n=="number"){const c=tl(t,r,o,s,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const t=new Worker(x1());return t.onmessage=n=>{const r=n.data,{id:o}=r;if(this.snapshotInProgressMap.set(o,!1),!("base64"in r))return;const{base64:s,type:i,width:a,height:c}=r;this.mutationCb({id:o,type:Yn["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:s}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(t,n,r,o,s,i){const a=this.takeSnapshot(!1,t,n,r,o,s,i.dataURLOptions);this.restoreHandlers.push(()=>{cancelAnimationFrame(a)})}initCanvasMutationObserver(t,n,r,o){const s=tl(t,n,r,o,!1),i=I1(this.processMutation.bind(this),t,n,r,o),a=R1(this.processMutation.bind(this),t,n,r,o,this.mirror);this.restoreHandlers.push(()=>{s(),i(),a()})}snapshot(t){const{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.restoreHandlers.push(()=>{cancelAnimationFrame(r)})}takeSnapshot(t,n,r,o,s,i,a,c){const u=1e3/n;let d;const l=p=>{if(p)return[p];const h=[],g=_=>{_.querySelectorAll("canvas").forEach(b=>{Is(b,r,o,s)||h.push(b)})};for(const _ of this.windows){const b=_.deref();let v;try{v=b&&b.document}catch{}v&&g(v)}for(const _ of this.shadowDoms){const b=_.deref();b&&g(b)}return h},f=p=>{if(this.windows.length){if(this.lastSnapshotTime&&p-this.lastSnapshotTime<u){d=Xt(f);return}this.lastSnapshotTime=p,l(c).forEach(h=>{if(!this.mirror.hasNode(h))return;const g=this.mirror.getId(h);if(!this.snapshotInProgressMap.get(g)&&!(!h.width||!h.height)){if(this.snapshotInProgressMap.set(g,!0),!t&&["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);_?.getContextAttributes()?.preserveDrawingBuffer===!1&&_.clear(_.COLOR_BUFFER_BIT)}createImageBitmap(h).then(_=>{this.worker?.postMessage({id:g,bitmap:_,width:h.width,height:h.height,dataURLOptions:a,maxCanvasSize:i},[_])}).catch(_=>{si(()=>{throw _})()})}}),t||(d=Xt(f))}};return d=Xt(f),d}startPendingCanvasMutationFlusher(){Xt(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Xt(t)};Xt(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Xt(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const o=r.map(i=>{const{type:a,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:o}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}y1();var rl;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(rl||(rl={}));const ol={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},A1="ReplayCanvas",lo=1280,O1=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,lo):lo,n?Math.min(n,lo):lo]};let o;const s=new Promise(i=>o=i);return{name:A1,getOptions(){const{quality:i,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{const d=new M1({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:l=>{try{typeof l=="object"&&(l.__rrweb__=!0)}catch{}}});return o(d),d},...ol[i]||ol.medium}},async snapshot(i){(await s).snapshot(i)}}},N1=O1;function ct(e=0){return((Fe()||performance.timeOrigin)+e)/1e3}function L1(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=Ff(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Fe()?[...t,["http.request.redirect_start",ct(e.redirectStart)],["http.request.fetch_start",ct(e.fetchStart)],["http.request.domain_lookup_start",ct(e.domainLookupStart)],["http.request.domain_lookup_end",ct(e.domainLookupEnd)],["http.request.connect_start",ct(e.connectStart)],["http.request.secure_connection_start",ct(e.secureConnectionStart)],["http.request.connection_end",ct(e.connectEnd)],["http.request.request_start",ct(e.requestStart)],["http.request.response_start",ct(e.responseStart)],["http.request.response_end",ct(e.responseEnd)]]:t}const sl=new WeakMap,ii=new Map,Qa={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function nh(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:a,onRequestSpanStart:c}={...Qa,...t},u=typeof s=="function"?s:f=>!0,d=f=>D1(f,a),l={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const h=ii.get(p.span_id);h&&(p.timestamp=h/1e3,ii.delete(p.span_id))}}),f)),o&&Xy(f=>{if(f.response){const p=sl.get(f.response);p&&f.endTimestamp&&ii.set(p,f.endTimestamp)}}),ya(f=>{const p=Fy(f,u,d,l);if(f.response&&f.fetchData.__span&&sl.set(f.response,f.fetchData.__span),p){const h=rh(f.fetchData.url),g=h?sn(h).host:void 0;p.setAttributes({"http.url":h,"server.address":g}),i&&il(p),c?.(p,{headers:f.headers})}})),r&&Oa(f=>{const p=F1(f,u,d,l);if(p){i&&il(p);let h;try{h=new Headers(f.xhr.__sentry_xhr_v3__?.request_headers)}catch{}c?.(p,{headers:h})}})}function P1(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function il(e){const{url:t}=q(e).data;if(!t||typeof t!="string")return;const n=dn("resource",({entries:r})=>{r.forEach(o=>{P1(o)&&o.name.endsWith(t)&&(L1(o).forEach(i=>e.setAttribute(...i)),setTimeout(n))})})}function D1(e,t){const n=fn();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const s=r.origin===o;return t?nt(r.toString(),t)||s&&nt(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?nt(e,t):r}}function F1(e,t,n,r){const o=e.xhr,s=o?.[_t];if(!o||o.__sentry_own_request__||!s)return;const{url:i,method:a}=s,c=Wt()&&t(i);if(e.endTimestamp&&c){const g=o.__sentry_xhr_span_id__;if(!g)return;const _=r[g];_&&s.status_code!==void 0&&(mr(_,s.status_code),_.end(),delete r[g]);return}const u=rh(i),d=sn(u||i),l=Yd(i),f=!!Ie(),p=c&&f?Xe({name:`${a} ${l}`,attributes:{url:i,type:"xhr","http.method":a,"http.url":u,"server.address":d?.host,[re]:"auto.http.browser",[Ce]:"http.client",...d?.search&&{"http.query":d?.search},...d?.hash&&{"http.fragment":d?.hash}}}):new It;o.__sentry_xhr_span_id__=p.spanContext().spanId,r[o.__sentry_xhr_span_id__]=p,n(i)&&$1(o,Wt()&&f?p:void 0);const h=P();return h&&h.emit("beforeOutgoingRequestSpan",p,e),p}function $1(e,t){const{"sentry-trace":n,baggage:r}=ma({span:t});n&&B1(e,n,r)}function B1(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const o=r?.baggage;(!o||!U1(o))&&e.setRequestHeader("baggage",n)}}catch{}}function U1(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function rh(e){try{return new URL(e,$.location.origin).href}catch{return}}function H1(){$.document?$.document.addEventListener("visibilitychange",()=>{const e=Ie();if(!e)return;const t=Re(e);if($.document.hidden&&t){const n="cancelled",{op:r,status:o}=q(t);te&&y.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),o||t.setStatus({code:Te,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):te&&y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const W1=3600,oh="sentry_previous_trace",j1="sentry.previous_trace";function z1(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let o=r?V1():void 0;e.on("spanStart",i=>{if(Re(i)!==i)return;const a=K().getPropagationContext();o=q1(o,i,a),r&&G1(o)});let s=!0;n&&e.on("beforeSampling",i=>{if(!o)return;const a=K(),c=a.getPropagationContext();if(s&&c.parentSpanId){s=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(o.sampleRate),sampled:String(Xi(o.spanContext))},sampleRand:o.sampleRand}),i.parentSampled=Xi(o.spanContext),i.parentSampleRate=o.sampleRate,i.spanAttributes={...i.spanAttributes,[$l]:o.sampleRate}})}function q1(e,t,n){const r=q(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[is])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return s;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=W1&&(te&&y.log(`Adding previous_trace ${i} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:i,attributes:{[gm]:"previous_trace"}}),t.setAttribute(j1,`${i.traceId}-${i.spanId}-${Xi(i)?1:0}`)),s)}function G1(e){try{$.sessionStorage.setItem(oh,JSON.stringify(e))}catch(t){te&&y.warn("Could not store previous trace in sessionStorage",t)}}function V1(){try{const e=$.sessionStorage?.getItem(oh);return JSON.parse(e)}catch{return}}function Xi(e){return e.traceFlags===1}const Y1="BrowserTracing",K1={...ho,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Qa},rr=(e={})=>{const t={name:void 0,source:void 0},n=$.document,{enableInp:r,enableElementTiming:o,enableLongTask:s,enableLongAnimationFrame:i,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:v,enableHTTPTimings:C,ignoreResourceSpans:k,ignorePerformanceApiSpans:S,instrumentPageLoad:E,instrumentNavigation:R,detectRedirects:A,linkPreviousTrace:w,consistentTraceSampling:x,onRequestSpanStart:B}={...K1,...e};let I,O;function U(F,L,N=!0){const D=L.op==="pageload",Y=d?d(L):L,J=Y.attributes||{};if(L.name!==Y.name&&(J[ye]="custom",Y.attributes=J),!N){const H=pn();Xe({...Y,startTime:H}).end(H);return}t.name=Y.name,t.source=J[ye];const m=ld(Y,{idleTimeout:l,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:D,beforeSpanEnd:H=>{I?.(),AE(H,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:k,ignorePerformanceApiSpans:S}),cl(F,void 0);const z=K(),Z=z.getPropagationContext();z.setPropagationContext({...Z,traceId:m.spanContext().traceId,sampled:hn(m),dsc:ot(H)})}});cl(F,m);function T(){n&&["interactive","complete"].includes(n.readyState)&&F.emit("idleSpanEnableAutoFinish",m)}D&&n&&(n.addEventListener("readystatechange",()=>{T()}),T())}return{name:Y1,setup(F){if(Ql(),I=wE({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:F}),r&&QE(),o&&HE(),i&&G.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?IE():s&&TE(),a&&kE(),A&&n){const N=()=>{O=Ee()};addEventListener("click",N,{capture:!0}),addEventListener("keydown",N,{capture:!0,passive:!0})}function L(){const N=Er(F);N&&!q(N).timestamp&&(te&&y.log(`[Tracing] Finishing current active span with op: ${q(N).op}`),N.setAttribute(Oo,"cancelled"),N.end())}F.on("startNavigationSpan",(N,D)=>{if(P()!==F)return;if(D?.isRedirect){te&&y.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),U(F,{op:"navigation.redirect",...N},!1);return}L(),Ne().setPropagationContext({traceId:Tt(),sampleRand:Math.random()});const Y=K();Y.setPropagationContext({traceId:Tt(),sampleRand:Math.random()}),Y.setSDKProcessingMetadata({normalizedRequest:void 0}),U(F,{op:"navigation",...N})}),F.on("startPageLoadSpan",(N,D={})=>{if(P()!==F)return;L();const Y=D.sentryTrace||al("sentry-trace"),J=D.baggage||al("baggage"),m=ql(Y,J),T=K();T.setPropagationContext(m),T.setSDKProcessingMetadata({normalizedRequest:Ta()}),U(F,{op:"pageload",...N})})},afterAllSetup(F){let L=fn();if(w!=="off"&&z1(F,{linkPreviousTrace:w,consistentTraceSampling:x}),$.location){if(E){const N=Fe();or(F,{name:$.location.pathname,startTime:N?N/1e3:void 0,attributes:{[ye]:"url",[re]:"auto.pageload.browser"}})}R&&ys(({to:N,from:D})=>{if(D===void 0&&L?.indexOf(N)!==-1){L=void 0;return}L=void 0;const Y=Vd(N),J=Er(F),m=J&&A&&J1(J,O);sr(F,{name:Y?.pathname||$.location.pathname,attributes:{[ye]:"url",[re]:"auto.navigation.browser"}},{url:N,isRedirect:m})})}h&&H1(),a&&X1(F,l,f,p,t),r&&nv(),nh(F,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:b,tracePropagationTargets:F.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:C,onRequestSpanStart:B})}}};function or(e,t,n){e.emit("startPageLoadSpan",t,n),K().setTransactionName(t.name);const r=Er(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function sr(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const s=K();return s.setTransactionName(t.name),r&&!o&&s.setSDKProcessingMetadata({normalizedRequest:{...Ta(),url:r}}),Er(e)}function al(e){return $.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function X1(e,t,n,r,o){const s=$.document;let i;const a=()=>{const c="ui.action.click",u=Er(e);if(u){const d=q(u).op;if(["navigation","pageload"].includes(d)){te&&y.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(Oo,"interactionInterrupted"),i.end(),i=void 0),!o.name){te&&y.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=ld({name:o.name,op:c,attributes:{[ye]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",a,{capture:!0})}const sh="_sentry_idleSpan";function Er(e){return e[sh]}function cl(e,t){je(e,sh,t)}const ul=.3;function J1(e,t){const n=q(e),r=pn(),o=n.start_timestamp;return!(r-o>ul||t&&r-t<=ul)}function Kn(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Z1(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Kn(n);return o=>r.then(s=>o(s.transaction(t,"readwrite").objectStore(t)))}function ec(e){return Kn(e.getAllKeys())}function Q1(e,t,n){return e(r=>ec(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),Kn(r.transaction)}))}function ek(e,t,n){return e(r=>ec(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.min(...o,0)-1),Kn(r.transaction)}))}function tk(e){return e(t=>ec(t).then(n=>{const r=n[0];if(r!=null)return Kn(t.get(r)).then(o=>(t.delete(r),Kn(t.transaction).then(()=>o)))}))}function nk(e){let t;function n(){return t==null&&(t=Z1(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const o=await Po(r);await Q1(n(),o,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const o=await Po(r);await ek(n(),o,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await tk(n());if(r)return zm(r)}catch{}}}}function rk(e){return t=>{const n=e({...t,createStore:nk});return $.addEventListener("online",async r=>{await n.flush()}),n}}function ok(e=La){return rk(f_(e))}const ll=1e6,Co=String(0),sk="main",ns=$.navigator;let ih="",ah="",ch="",Ji=ns?.userAgent||"",uh="";const ik=ns?.language||ns?.languages?.[0]||"";function ak(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const dl=ns?.userAgentData;ak(dl)&&dl.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(ih=e.platform||"",ch=e.architecture||"",uh=e.model||"",ah=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Ji=`${t.brand} ${t.version}`}}).catch(e=>{});function ck(e){return!("thread_metadata"in e)}function uk(e){return ck(e)?fk(e):e}function lk(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&te&&y.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function dk(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=lk(r),s=uk(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Ee()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Ee()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||as,runtime:{name:"javascript",version:$.navigator.userAgent},os:{name:ih,version:ah,build_number:Ji},device:{locale:ik,model:uh,manufacturer:Ji,architecture:ch,is_emulator:!1},debug_meta:{images:mk(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||We(),trace_id:o,active_thread_id:Co,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function lh(e){return q(e).op==="pageload"}function fk(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Co]:{name:sk}}},o=e.samples[0];if(!o)return r;const s=o.timestamp,i=Fe(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:i||0,c=a-(i||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-s)*ll).toFixed(0),stack_id:t,thread_id:Co};return}let l=e.stacks[u.stackId];const f=[];for(;l;){f.push(l.frameId);const h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const p={elapsed_since_start_ns:((u.timestamp+c-s)*ll).toFixed(0),stack_id:n,thread_id:Co};r.stacks[n]=f,r.samples[d]=p,n++}),r}function pk(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function hk(e){const t=[];return un(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++)n[o]?.contexts?.profile?.profile_id&&t.push(n[o])}),t}function mk(e){const r=P()?.getOptions()?.stackParser;return r?bg(r,e):[]}function gk(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(te&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(te&&y.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function _k(e){return e.samples.length<2?(te&&y.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(te&&y.log("[Profiling] Discarding profile because it contains no frames"),!1)}let dh=!1;const fh=3e4;function yk(e){return typeof e=="function"}function Sk(){const e=$.Profiler;if(!yk(e)){te&&y.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(fh/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{te&&(y.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),y.log("[Profiling] Disabling profiling for current user session.")),dh=!0}}function fl(e){if(dh)return te&&y.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return te&&y.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const n=P()?.getOptions();if(!n)return te&&y.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return gk(r)?r?(r===!0?!0:Math.random()<r)?!0:(te&&y.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(te&&y.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(te&&y.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function bk(e,t,n,r){return _k(n)?dk(e,t,n,r):null}const nn=new Map;function Ek(){return nn.size}function vk(e){const t=nn.get(e);return t&&nn.delete(e),t}function wk(e,t){if(nn.set(e,t),nn.size>30){const n=nn.keys().next().value;nn.delete(n)}}function pl(e){let t;lh(e)&&(t=Ee()*1e3);const n=Sk();if(!n)return;te&&y.log(`[Profiling] started profiling span: ${q(e).description}`);const r=We();K().setContext("profile",{profile_id:r,start_timestamp:t});async function o(){if(e&&n)return n.stop().then(c=>{if(s&&($.clearTimeout(s),s=void 0),te&&y.log(`[Profiling] stopped profiling of span: ${q(e).description}`),!c){te&&y.log(`[Profiling] profiler returned null profile for: ${q(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}wk(r,c)}).catch(c=>{te&&y.log("[Profiling] error while stopping profiler:",c)})}let s=$.setTimeout(()=>{te&&y.log("[Profiling] max profile duration elapsed, stopping profiling for:",q(e).description),o()},fh);const i=e.end.bind(e);function a(){return e?(o().then(()=>{i()},()=>{i()}),e):i()}e.end=a}const Tk="BrowserProfiling",Ik=()=>({name:Tk,setup(e){const t=Ie(),n=t&&Re(t);n&&lh(n)&&fl(n)&&pl(n),e.on("spanStart",r=>{r===Re(r)&&fl(r)&&pl(r)}),e.on("beforeEnvelope",r=>{if(!Ek())return;const o=hk(r);if(!o.length)return;const s=[];for(const i of o){const a=i?.contexts,c=a?.profile?.profile_id,u=a?.profile?.start_timestamp;if(typeof c!="string"){te&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!c){te&&y.log("[Profiling] cannot find profile for a span without a profile context");continue}a?.profile&&delete a.profile;const d=vk(c);if(!d){te&&y.log(`[Profiling] Could not retrieve profile for span: ${c}`);continue}const l=bk(c,u,d,i);l&&s.push(l)}pk(r,s)})}}),kk=Ik,Rk="SpotlightBrowser",Ck=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:Rk,setup:()=>{te&&y.log("Using Sidecar URL",t)},processEvent:n=>Ak(n)?null:n,afterAllSetup:n=>{xk(n,t)}}};function xk(e,t){const n=Aa("fetch");let r=0;e.on("beforeEnvelope",o=>{if(r>3){y.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Po(o),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(s=>{s.status>=200&&s.status<400&&(r=0)},s=>{r++,y.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",s)})})}const Mk=Ck;function Ak(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}const Ok=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Lr(e)}});function Nk(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Fn(e,t.value),$n(e,t.value)}}}const Lk=()=>({name:"OpenFeature",processEvent(e,t,n){return Lr(e)}});class Pk{after(t,n){Fn(n.flagKey,n.value),$n(n.flagKey,n.value)}error(t,n,r){Fn(t.flagKey,t.defaultValue),$n(t.flagKey,t.defaultValue)}}const Dk=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;He(t,"isEnabled",Fk)},processEvent(t,n,r){return Lr(t)}});function Fk(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Fn(n,r),$n(n,r)):te&&y.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const $k=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Fn(n.gate.name,n.gate.value),$n(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Lr(t)}});async function Bk(){const e=P();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})}catch{return"sentry-unreachable"}}const Uk="WebWorker",Hk=({worker:e})=>({name:Uk,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>hl(t))},addWorker:t=>hl(t)});function hl(e){e.addEventListener("message",t=>{jk(t.data)&&(t.stopImmediatePropagation(),te&&y.log("Sentry debugId web worker message received",t.data),$._sentryDebugIds={...t.data._sentryDebugIds,...$._sentryDebugIds})})}function Wk({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0})}function jk(e){return vt(e)&&e._sentryMessage===!0&&"_sentryDebugIds"in e&&(vt(e._sentryDebugIds)||e._sentryDebugIds===void 0)}function zk(e){const t={...e};return Ld(t,"react"),fa("react",{version:Oe.version}),n0(t)}function qk(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function Gk(e,t){const n=new WeakSet;function r(o,s){if(!n.has(o)){if(o.cause)return n.add(o),r(o.cause,s);o.cause=s}}r(e,t)}function tc(e,{componentStack:t},n){if(qk(Oe.version)&&St(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,Gk(e,r)}return qe(r=>(r.setContext("react",{componentStack:t}),zt(e,n)))}function Vk(e){return(t,n)=>{const r=tc(t,n);e&&e(t,n,r)}}const ph="ui.react.render",Yk="ui.react.update",hh="ui.react.mount";var ai={exports:{}},ce={};var ml;function Kk(){if(ml)return ce;ml=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function C(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case t:switch(S=S.type,S){case c:case u:case r:case s:case o:case l:return S;default:switch(S=S&&S.$$typeof,S){case a:case d:case h:case p:case i:return S;default:return E}}case n:return E}}}function k(S){return C(S)===u}return ce.AsyncMode=c,ce.ConcurrentMode=u,ce.ContextConsumer=a,ce.ContextProvider=i,ce.Element=t,ce.ForwardRef=d,ce.Fragment=r,ce.Lazy=h,ce.Memo=p,ce.Portal=n,ce.Profiler=s,ce.StrictMode=o,ce.Suspense=l,ce.isAsyncMode=function(S){return k(S)||C(S)===c},ce.isConcurrentMode=k,ce.isContextConsumer=function(S){return C(S)===a},ce.isContextProvider=function(S){return C(S)===i},ce.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},ce.isForwardRef=function(S){return C(S)===d},ce.isFragment=function(S){return C(S)===r},ce.isLazy=function(S){return C(S)===h},ce.isMemo=function(S){return C(S)===p},ce.isPortal=function(S){return C(S)===n},ce.isProfiler=function(S){return C(S)===s},ce.isStrictMode=function(S){return C(S)===o},ce.isSuspense=function(S){return C(S)===l},ce.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===s||S===o||S===l||S===f||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===p||S.$$typeof===i||S.$$typeof===a||S.$$typeof===d||S.$$typeof===_||S.$$typeof===b||S.$$typeof===v||S.$$typeof===g)},ce.typeOf=C,ce}var gl;function Xk(){return gl||(gl=1,ai.exports=Kk()),ai.exports}var ci,_l;function Jk(){if(_l)return ci;_l=1;var e=Xk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function i(h){return e.isMemo(h)?o:s[h.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,f=Object.prototype;function p(h,g,_){if(typeof g!="string"){if(f){var b=l(g);b&&b!==f&&p(h,b,_)}var v=c(g);u&&(v=v.concat(u(g)));for(var C=i(h),k=i(g),S=0;S<v.length;++S){var E=v[S];if(!n[E]&&!(_&&_[E])&&!(k&&k[E])&&!(C&&C[E])){var R=d(g,E);try{a(h,E,R)}catch{}}}}return h}return ci=p,ci}var Zk=Jk();const mh=vl(Zk),Qk=Object.freeze(Object.defineProperty({__proto__:null,default:mh},Symbol.toStringTag,{value:"Module"})),ks=mh||Qk,eR="unknown";class nc extends Oe.Component{constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=Xe({name:`<${n}>`,onlyIfParent:!0,op:hh,attributes:{[re]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(o=>t[o]!==this.props.updateProps[o]);if(r.length>0){const o=Ee();this._updateSpan=ln(this._mountSpan,()=>Xe({name:`<${this.props.name}>`,onlyIfParent:!0,op:Yk,startTime:o,attributes:{[re]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=Ee(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const o=q(this._mountSpan).timestamp;ln(this._mountSpan,()=>{const s=Xe({onlyIfParent:!0,name:`<${n}>`,op:ph,startTime:o,attributes:{[re]:"auto.ui.react.profiler","ui.component_name":n}});s&&s.end(t)})}}render(){return this.props.children}}Object.assign(nc,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});function tR(e,t){const n=t?.name||e.displayName||e.name||eR,r=o=>Oe.createElement(nc,{...t,name:n,updateProps:o},Oe.createElement(e,{...o}));return r.displayName=`profiler(${n})`,ks(r,e),r}function nR(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=Oe.useState(()=>{if(!t?.disabled)return Xe({name:`<${e}>`,onlyIfParent:!0,op:hh,attributes:{[re]:"auto.ui.react.profiler","ui.component_name":e}})});Oe.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=q(n).timestamp,o=Ee(),s=Xe({name:`<${e}>`,onlyIfParent:!0,op:ph,startTime:r,attributes:{[re]:"auto.ui.react.profiler","ui.component_name":e}});s&&s.end(o)}}),[])}const jr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rR="unknown",ui={componentStack:null,error:null,eventId:null};class gh extends Oe.Component{constructor(t){super(t),this.state=ui,this._openFallbackReportDialog=!0;const n=P();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Bi({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:o,onError:s,showDialog:i,dialogOptions:a}=this.props;qe(c=>{o&&o(c,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=tc(t,n,{mechanism:{handled:u}});s&&s(t,r,d),i&&(this._lastEventId=d,this._openFallbackReportDialog&&Bi({...a,eventId:d})),this.setState({error:t,componentStack:r,eventId:d})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:o}=this.props;o&&(this.state===ui?o(null,null,null):o(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:o}=this.state;t&&t(n,r,o),this.setState(ui)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const o=typeof t=="function"?Oe.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return Oe.isValidElement(o)?o:(t&&jr&&y.warn("fallback did not produce a valid ReactElement"),null)}}function oR(e,t){const n=e.displayName||e.name||rR,r=o=>Oe.createElement(gh,{...t},Oe.createElement(e,{...o}));return r.displayName=`errorBoundary(${n})`,ks(r,e),r}const sR="redux.action",iR="info",aR={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function cR(e){const t={...aR,...e};return n=>(r,o)=>{t.attachReduxState&&xr().addEventProcessor((a,c)=>{try{a.type===void 0&&a.contexts.state.state.type==="redux"&&(c.attachments=[...c.attachments||[],{filename:"redux_state.json",data:JSON.stringify(a.contexts.state.state.value)}])}catch{}return a});function s(a){return(c,u)=>{const d=a(c,u),l=K(),f=t.actionTransformer(u);typeof f<"u"&&f!==null&&st({category:sR,data:f,type:iR});const p=t.stateTransformer(d);if(typeof p<"u"&&p!==null){const b=P()?.getOptions()?.normalizeDepth||3,v={state:{type:"redux",value:p}};je(v,"__sentry_override_normalization_depth__",3+b),l.setContext("state",v)}else l.setContext("state",null);const{configureScopeWithState:h}=t;return typeof h=="function"&&h(l,d),d}}const i=n(s(r),o);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(a,c,u){a.apply(c,[s(u[0])])}}),i}}function uR(e){const t=rr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),s&&$.location&&yl(r,$.location,o,(c,u="url")=>{or(a,{name:c,attributes:{[Ce]:"pageload",[re]:"auto.pageload.react.reactrouter_v3",[ye]:u}})}),i&&n.listen&&n.listen(c=>{(c.action==="PUSH"||c.action==="POP")&&yl(r,c,o,(u,d="url")=>{sr(a,{name:u,attributes:{[Ce]:"navigation",[re]:"auto.navigation.react.reactrouter_v3",[ye]:d}})})})}}}function yl(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(s,i,a)=>{if(s||!a)return r(o);const c=lR(a.routes||[]);return c.length===0||c==="/*"?r(o):(o=c,r(o,"route"))})}function lR(e){if(!Array.isArray(e)||e.length===0)return"";const t=e.filter(r=>!!r.path);let n=-1;for(let r=t.length-1;r>=0;r--)if(t[r].path?.startsWith("/")){n=r;break}return t.slice(n).reduce((r,{path:o})=>{const s=r==="/"||r===""?o:`/${o}`;return`${r}${s}`},"")}function dR(e,t={}){const n=e,r=rr({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:s=!0}=t;return{...r,afterAllSetup(i){r.afterAllSetup(i);const a=$.location;if(o&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),u=c[c.length-1];or(i,{name:u?u.routeId:a.pathname,attributes:{[Ce]:"pageload",[re]:"auto.pageload.react.tanstack_router",[ye]:u?"route":"url",...Sl(u)}})}s&&n.subscribe("onBeforeNavigate",c=>{if(c.toLocation.state===c.fromLocation?.state)return;const u=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),d=u[u.length-1],l=$.location,f=sr(i,{name:d?d.routeId:l.pathname,attributes:{[Ce]:"navigation",[re]:"auto.navigation.react.tanstack_router",[ye]:d?"route":"url"}}),p=n.subscribe("onResolved",h=>{if(p(),f){const g=n.matchRoutes(h.toLocation.pathname,h.toLocation.search,{preload:!1,throwOnError:!1}),_=g[g.length-1];_&&(f.updateName(_.routeId),f.setAttribute(ye,"route"),f.setAttributes(Sl(_)))}})})}}}function Sl(e){if(!e)return{};const t={};return Object.entries(e.params).forEach(([n,r])=>{t[`url.path.params.${n}`]=r,t[`url.path.parameter.${n}`]=r,t[`params.${n}`]=r}),t}function fR(e){const t=rr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),_h(a,s,i,n,"reactrouter_v4",r,o)}}}function pR(e){const t=rr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),_h(a,s,i,n,"reactrouter_v5",r,o)}}}function _h(e,t,n,r,o,s=[],i){function a(){if(r.location)return r.location.pathname;if($.location)return $.location.pathname}function c(u){if(s.length===0||!i)return[u,"url"];const d=yh(s,u,i);for(const l of d)if(l.match.isExact)return[l.match.path,"route"];return[u,"url"]}if(t){const u=a();if(u){const[d,l]=c(u);or(e,{name:d,attributes:{[Ce]:"pageload",[re]:`auto.pageload.react.${o}`,[ye]:l}})}}n&&r.listen&&r.listen((u,d)=>{if(d&&(d==="PUSH"||d==="POP")){const[l,f]=c(u.pathname);sr(e,{name:l,attributes:{[Ce]:"navigation",[re]:`auto.navigation.react.${o}`,[ye]:f}})}})}function yh(e,t,n,r=[]){return e.some(o=>{const s=o.path?n(t,o):r.length?r[r.length-1].match:hR(t);return s&&(r.push({route:o,match:s}),o.routes&&yh(o.routes,t,n,r)),!!s}),r}function hR(e){return{path:"/",url:"/",params:{},isExact:e==="/"}}function mR(e){const t=e.displayName||e.name,n=r=>{if(r?.computedMatch?.isExact){const o=r.computedMatch.path,s=gR();K().setTransactionName(o),s&&(s.updateName(o),s.setAttribute(ye,"route"))}return Oe.createElement(e,{...r})};return n.displayName=`sentryRoute(${t})`,ks(n,e),n}function gR(){const e=Ie(),t=e&&Re(e);if(!t)return;const n=q(t).op;return n==="navigation"||n==="pageload"?t:void 0}let $t,Bt,Ut,xo,ht,xn=!1;const Sh=new WeakSet,ft=new Set;function bh(e,t){return!$t||!Bt||!Ut||!ht?(jr&&y.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e):function(n,r){Rs(n);const o=e(n,r),s=r?.basename,i=xs();return o.state.historyAction==="POP"&&i&&Cs(i,o.state.location,n,void 0,s,Array.from(ft)),o.subscribe(a=>{(a.historyAction==="PUSH"||a.historyAction==="POP")&&(a.navigation.state!=="idle"?requestAnimationFrame(()=>{vr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:s,allRoutes:Array.from(ft)})}):vr({location:a.location,routes:n,navigationType:a.historyAction,version:t,basename:s,allRoutes:Array.from(ft)}))}),o}}function Eh(e,t){return!$t||!Bt||!Ut||!ht?(jr&&y.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e):function(n,r){Rs(n);const o=e(n,r),s=r?.basename,i=xs();let a;const c=r?.initialEntries,u=r?.initialIndex,d=c&&c.length===1,l=u!==void 0&&c&&c[u];a=d?c[0]:l?c[u]:void 0;const f=a?typeof a=="string"?{pathname:a}:a:o.state.location;return o.state.historyAction==="POP"&&i&&Cs(i,f,n,void 0,s,Array.from(ft)),o.subscribe(p=>{const h=p.location;(p.historyAction==="PUSH"||p.historyAction==="POP")&&vr({location:h,routes:n,navigationType:p.historyAction,version:t,basename:s,allRoutes:Array.from(ft)})}),o}}function vh(e,t){const n=rr({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:s,createRoutesFromChildren:i,matchRoutes:a,stripBasename:c,instrumentPageLoad:u=!0,instrumentNavigation:d=!0}=e;return{...n,setup(l){n.setup(l),$t=r,Bt=o,Ut=s,ht=a,xo=i,xn=c||!1},afterAllSetup(l){n.afterAllSetup(l);const f=$.location?.pathname;u&&f&&or(l,{name:f,attributes:{[ye]:"url",[Ce]:"pageload",[re]:`auto.pageload.react.reactrouter_v${t}`}}),d&&Sh.add(l)}}}function wh(e,t){if(!$t||!Bt||!Ut||!ht)return jr&&y.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=r=>{const o=Oe.useRef(!0),{routes:s,locationArg:i}=r,a=e(s,i),c=Bt(),u=Ut(),d=typeof i=="string"||i?.pathname?i:c;return $t(()=>{const l=typeof d=="string"?{pathname:d}:d;o.current?(Rs(s),Cs(xs(),l,s,void 0,void 0,Array.from(ft)),o.current=!1):vr({location:l,routes:s,navigationType:u,version:t,allRoutes:Array.from(ft)})},[u,d]),a};return(r,o)=>Oe.createElement(n,{routes:r,locationArg:o})}function vr(e){const{location:t,routes:n,navigationType:r,version:o,matches:s,basename:i,allRoutes:a}=e,c=Array.isArray(s)?s:ht(n,t,i),u=P();if(!(!u||!Sh.has(u))&&(r==="PUSH"||r==="POP")&&c){let d,l="url";const f=Ih(t,a||n);f&&(d=wr(rc(a||n,t)),l="route"),(!f||!d)&&([d,l]=Rh(n,t,c,i));const p=Ie();p&&q(p).op==="navigation"?(p?.updateName(d),p?.setAttribute(ye,l)):sr(u,{name:d,attributes:{[ye]:l,[Ce]:"navigation",[re]:`auto.navigation.react.reactrouter_v${o}`}})}}function rs(e,t){if(!t||t==="/"||!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?e:e.slice(n)||"/"}function _R(e,t,n){const r=e||xn?rs(t,n):t;return[r[r.length-1]==="/"||r.slice(-2)==="/*"?r.slice(0,-1):r,"route"]}function Th(e){return e.endsWith("*")}function bl(e,t){return Th(e)&&!!t.route.children?.length||!1}function yR(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function Ih(e,t){const n=ht(t,e);if(n){for(const r of n)if(yR(r.route)&&bR(r))return!0}return!1}function Rs(e){e.forEach(t=>{kh(t).forEach(r=>{ft.add(r)})})}function kh(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(n=>{kh(n,t).forEach(o=>{t.add(o)})})),t}function SR(e){return ER(e.route.path||"")}function bR(e){return e.params["*"]||""}function ER(e){return e[e.length-1]==="*"?e.slice(0,-1):e}function On(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function wr(e){return e[0]==="/"?e:`/${e}`}function rc(e,t){const n=ht(e,t);if(!n||n.length===0)return"";for(const r of n)if(r.route.path&&r.route.path!=="*"){const o=SR(r),s=rs(t.pathname,wr(r.pathnameBase));return t.pathname===s?On(s):On(On(o||"")+wr(rc(e.filter(i=>i!==r.route),{pathname:s})))}return""}function Rh(e,t,n,r=""){if(!e||e.length===0)return[xn?rs(t.pathname,r):t.pathname,"url"];let o="";if(n)for(const i of n){const a=i.route;if(a){if(a.index)return _R(o,i.pathname,r);const c=a.path;if(c&&!bl(c,i)){const u=c[0]==="/"||o[o.length-1]==="/"?c:`/${c}`;if(o=On(o)+wr(u),On(t.pathname)===On(r+i.pathname))return El(o)!==El(i.pathname)&&!Th(o)?[(xn?"":r)+u,"route"]:(bl(o,i)&&(o=o.slice(0,-1)),[(xn?"":r)+o,"route"])}}}return[xn?rs(t.pathname,r):t.pathname||"/","url"]}function Cs(e,t,n,r,o,s){const i=Array.isArray(r)?r:ht(s||n,t,o);if(i){let a,c="url";const u=Ih(t,s||n);u&&(a=wr(rc(s||n,t)),c="route"),(!u||!a)&&([a,c]=Rh(n,t,i,o)),K().setTransactionName(a||"/"),e&&(e.updateName(a),e.setAttribute(ye,c))}}function Ch(e,t){if(!$t||!Bt||!Ut||!xo||!ht)return jr&&y.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
|
|
499
499
|
useEffect: ${$t}. useLocation: ${Bt}. useNavigationType: ${Ut}.
|
|
500
|
-
createRoutesFromChildren: ${xo}. matchRoutes: ${ht}.`),e;const n=r=>{const o=Oe.useRef(!0),s=Bt(),i=Ut();return $t(()=>{const a=xo(r.children);o.current?(Rs(a),Cs(xs(),s,a,void 0,void 0,Array.from(ft)),o.current=!1):vr({location:s,routes:a,navigationType:i,version:t,allRoutes:Array.from(ft)})},[s,i]),Oe.createElement(e,{...r})};return ks(n,e),n}function xs(){const e=Ie(),t=e?Re(e):void 0;if(!t)return;const n=q(t).op;return n==="navigation"||n==="pageload"?t:void 0}function El(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function vR(e){return vh(e,"6")}function wR(e){return wh(e,"6")}function TR(e){return bh(e,"6")}function IR(e){return Eh(e,"6")}function kR(e){return Ch(e,"6")}function RR(e){return vh(e,"7")}function CR(e){return Ch(e,"7")}function xR(e){return bh(e,"7")}function MR(e){return Eh(e,"7")}function AR(e){return wh(e,"7")}const DR=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:wf,ErrorBoundary:gh,OpenFeatureIntegrationHook:Pk,Profiler:nc,SDK_VERSION:yt,SEMANTIC_ATTRIBUTE_SENTRY_OP:Ce,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:re,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:is,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:ye,Scope:rt,WINDOW:$,addBreadcrumb:st,addEventProcessor:md,addIntegration:bi,breadcrumbsIntegration:Vf,browserApiErrorsIntegration:Yf,browserProfilingIntegration:kk,browserSessionIntegration:Kf,browserTracingIntegration:rr,buildLaunchDarklyFlagUsedHandler:Nk,captureConsoleIntegration:W_,captureEvent:Nr,captureException:zt,captureFeedback:Kd,captureMessage:Bo,captureReactException:tc,captureSession:Si,chromeStackLineParser:Wf,close:Fg,consoleLoggingIntegration:qy,contextLinesIntegration:I0,continueTrace:sg,createReduxEnhancer:cR,createTransport:Md,createUserFeedbackEnvelope:Tv,dedupeIntegration:Hd,defaultRequestInstrumentationOptions:Qa,defaultStackLineParsers:zf,defaultStackParser:qf,diagnoseSdkConnectivity:Bk,endSession:pa,eventFiltersIntegration:Dd,eventFromException:Ef,eventFromMessage:vf,exceptionFromError:ps,extraErrorDataIntegration:J_,featureFlagsIntegration:Ly,feedbackAsyncIntegration:wb,feedbackIntegration:mu,feedbackSyncIntegration:mu,flush:Dg,forceLoad:r0,functionToStringIntegration:Pd,geckoStackLineParser:jf,getActiveSpan:Ie,getClient:P,getCurrentScope:K,getDefaultIntegrations:ep,getFeedback:NS,getGlobalScope:xr,getIsolationScope:Ne,getReplay:h1,getRootSpan:Re,getSpanDescendants:cr,getSpanStatusFromHttpCode:Bl,getTraceData:ma,globalHandlersIntegration:Xf,graphqlClientIntegration:N0,httpClientIntegration:d0,httpContextIntegration:Zf,inboundFiltersIntegration:Fd,init:zk,instrumentOutgoingRequests:nh,instrumentSupabaseClient:qd,isEnabled:hd,isInitialized:$g,lastEventId:pd,launchDarklyIntegration:Ok,lazyLoadIntegration:Sf,linkedErrorsIntegration:Qf,logger:Mb,makeBrowserOfflineTransport:ok,makeFetchTransport:La,makeMultiplexedTransport:m_,moduleMetadataIntegration:$_,onLoad:o0,openFeatureIntegration:Lk,opera10StackLineParser:bv,opera11StackLineParser:wv,parameterize:Nd,reactErrorHandler:Vk,reactRouterV3BrowserTracingIntegration:uR,reactRouterV4BrowserTracingIntegration:fR,reactRouterV5BrowserTracingIntegration:pR,reactRouterV6BrowserTracingIntegration:vR,reactRouterV7BrowserTracingIntegration:RR,registerSpanErrorInstrumentation:Ql,registerWebWorker:Wk,replayCanvasIntegration:N1,replayIntegration:d1,reportingObserverIntegration:c0,rewriteFramesIntegration:iy,sendFeedback:of,setContext:fa,setCurrentClient:Id,setExtra:Og,setExtras:Ag,setHttpStatus:mr,setMeasurement:ad,setTag:Lg,setTags:Ng,setUser:Pg,showReportDialog:Bi,spanToBaggageHeader:Pm,spanToJSON:q,spanToTraceHeader:Kl,spotlightBrowserIntegration:Mk,startBrowserTracingNavigationSpan:sr,startBrowserTracingPageLoadSpan:or,startInactiveSpan:Xe,startNewTrace:ag,startSession:yi,startSpan:us,startSpanManual:og,statsigIntegration:$k,supabaseIntegration:Sy,suppressTracing:ig,tanstackRouterBrowserTracingIntegration:dR,thirdPartyErrorFilterIntegration:xy,unleashIntegration:Dk,updateSpanName:xm,useProfiler:nR,webWorkerIntegration:Hk,winjsStackLineParser:_v,withActiveSpan:ln,withErrorBoundary:oR,withIsolationScope:pm,withProfiler:tR,withScope:qe,withSentryReactRouterV6Routing:kR,withSentryReactRouterV7Routing:CR,withSentryRouting:mR,wrapCreateBrowserRouterV6:TR,wrapCreateBrowserRouterV7:xR,wrapCreateMemoryRouterV6:IR,wrapCreateMemoryRouterV7:MR,wrapUseRoutesV6:wR,wrapUseRoutesV7:AR,zodErrorsIntegration:Cy},Symbol.toStringTag,{value:"Module"}));export{LR as R,DR as S,Oe as a,
|
|
500
|
+
createRoutesFromChildren: ${xo}. matchRoutes: ${ht}.`),e;const n=r=>{const o=Oe.useRef(!0),s=Bt(),i=Ut();return $t(()=>{const a=xo(r.children);o.current?(Rs(a),Cs(xs(),s,a,void 0,void 0,Array.from(ft)),o.current=!1):vr({location:s,routes:a,navigationType:i,version:t,allRoutes:Array.from(ft)})},[s,i]),Oe.createElement(e,{...r})};return ks(n,e),n}function xs(){const e=Ie(),t=e?Re(e):void 0;if(!t)return;const n=q(t).op;return n==="navigation"||n==="pageload"?t:void 0}function El(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function vR(e){return vh(e,"6")}function wR(e){return wh(e,"6")}function TR(e){return bh(e,"6")}function IR(e){return Eh(e,"6")}function kR(e){return Ch(e,"6")}function RR(e){return vh(e,"7")}function CR(e){return Ch(e,"7")}function xR(e){return bh(e,"7")}function MR(e){return Eh(e,"7")}function AR(e){return wh(e,"7")}const DR=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:wf,ErrorBoundary:gh,OpenFeatureIntegrationHook:Pk,Profiler:nc,SDK_VERSION:yt,SEMANTIC_ATTRIBUTE_SENTRY_OP:Ce,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:re,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:is,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:ye,Scope:rt,WINDOW:$,addBreadcrumb:st,addEventProcessor:md,addIntegration:bi,breadcrumbsIntegration:Vf,browserApiErrorsIntegration:Yf,browserProfilingIntegration:kk,browserSessionIntegration:Kf,browserTracingIntegration:rr,buildLaunchDarklyFlagUsedHandler:Nk,captureConsoleIntegration:W_,captureEvent:Nr,captureException:zt,captureFeedback:Kd,captureMessage:Bo,captureReactException:tc,captureSession:Si,chromeStackLineParser:Wf,close:Fg,consoleLoggingIntegration:qy,contextLinesIntegration:I0,continueTrace:sg,createReduxEnhancer:cR,createTransport:Md,createUserFeedbackEnvelope:Tv,dedupeIntegration:Hd,defaultRequestInstrumentationOptions:Qa,defaultStackLineParsers:zf,defaultStackParser:qf,diagnoseSdkConnectivity:Bk,endSession:pa,eventFiltersIntegration:Dd,eventFromException:Ef,eventFromMessage:vf,exceptionFromError:ps,extraErrorDataIntegration:J_,featureFlagsIntegration:Ly,feedbackAsyncIntegration:wb,feedbackIntegration:mu,feedbackSyncIntegration:mu,flush:Dg,forceLoad:r0,functionToStringIntegration:Pd,geckoStackLineParser:jf,getActiveSpan:Ie,getClient:P,getCurrentScope:K,getDefaultIntegrations:ep,getFeedback:NS,getGlobalScope:xr,getIsolationScope:Ne,getReplay:h1,getRootSpan:Re,getSpanDescendants:cr,getSpanStatusFromHttpCode:Bl,getTraceData:ma,globalHandlersIntegration:Xf,graphqlClientIntegration:N0,httpClientIntegration:d0,httpContextIntegration:Zf,inboundFiltersIntegration:Fd,init:zk,instrumentOutgoingRequests:nh,instrumentSupabaseClient:qd,isEnabled:hd,isInitialized:$g,lastEventId:pd,launchDarklyIntegration:Ok,lazyLoadIntegration:Sf,linkedErrorsIntegration:Qf,logger:Mb,makeBrowserOfflineTransport:ok,makeFetchTransport:La,makeMultiplexedTransport:m_,moduleMetadataIntegration:$_,onLoad:o0,openFeatureIntegration:Lk,opera10StackLineParser:bv,opera11StackLineParser:wv,parameterize:Nd,reactErrorHandler:Vk,reactRouterV3BrowserTracingIntegration:uR,reactRouterV4BrowserTracingIntegration:fR,reactRouterV5BrowserTracingIntegration:pR,reactRouterV6BrowserTracingIntegration:vR,reactRouterV7BrowserTracingIntegration:RR,registerSpanErrorInstrumentation:Ql,registerWebWorker:Wk,replayCanvasIntegration:N1,replayIntegration:d1,reportingObserverIntegration:c0,rewriteFramesIntegration:iy,sendFeedback:of,setContext:fa,setCurrentClient:Id,setExtra:Og,setExtras:Ag,setHttpStatus:mr,setMeasurement:ad,setTag:Lg,setTags:Ng,setUser:Pg,showReportDialog:Bi,spanToBaggageHeader:Pm,spanToJSON:q,spanToTraceHeader:Kl,spotlightBrowserIntegration:Mk,startBrowserTracingNavigationSpan:sr,startBrowserTracingPageLoadSpan:or,startInactiveSpan:Xe,startNewTrace:ag,startSession:yi,startSpan:us,startSpanManual:og,statsigIntegration:$k,supabaseIntegration:Sy,suppressTracing:ig,tanstackRouterBrowserTracingIntegration:dR,thirdPartyErrorFilterIntegration:xy,unleashIntegration:Dk,updateSpanName:xm,useProfiler:nR,webWorkerIntegration:Hk,winjsStackLineParser:_v,withActiveSpan:ln,withErrorBoundary:oR,withIsolationScope:pm,withProfiler:tR,withScope:qe,withSentryReactRouterV6Routing:kR,withSentryReactRouterV7Routing:CR,withSentryRouting:mR,wrapCreateBrowserRouterV6:TR,wrapCreateBrowserRouterV7:xR,wrapCreateMemoryRouterV6:IR,wrapCreateMemoryRouterV7:MR,wrapUseRoutesV6:wR,wrapUseRoutesV7:AR,zodErrorsIntegration:Cy},Symbol.toStringTag,{value:"Module"}));export{LR as R,DR as S,Oe as a,Sc as b,NR as c,OR as d,Nh as e,zt as f,vl as g,mh as h,zk as i,rr as j,d1 as k,Nr as l,Jc as p,Oh as r,Lg as s,tR as w};
|