1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-03 23:23:09 +00:00
Classworks/assets/index-BXl8SUNP.js

545 lines
598 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./default-hOQ1mU83.js","./default-CmdaPMSp.css","./index-DSbPboXi.js","./ExamConfigEditor-D-fBjxzF.js","./dataProvider-Cg4CSn_f.js","./serverRotation-BBUKyTw9.js","./VAlert-DncbAu3E.js","./VAlert-D_OX1cfW.css","./VSkeletonLoader-DKLQDg5n.js","./VSkeletonLoader-C11ZEozu.css","./VTooltip-CyZjDjKS.js","./VTooltip-D7EaNDeY.css","./VChip-jIQL7s_d.js","./VChip-Dmz_1Lnv.css","./VRow-DFPdcq_b.js","./VTextField-DxxbesnN.js","./VTextField-D1VSzmed.css","./VTextarea-B0_PT1is.js","./VTextarea-_xVwaw_z.css","./VSwitch-7fkmr9E6.js","./VSwitch-C87GkfUP.css","./filter-BHXElGQ1.js","./VCheckboxBtn-iC2wkMdx.js","./filter-DEjKrR5R.css","./VSheet-CWiuVQYN.js","./VSheet-DW_b51tO.css","./ExamConfigEditor-CrmzhmtU.css","./socketClient-BAypaVYV.js","./VCombobox-D_3YC1pP.js","./VAppBarTitle-hRIhv4pw.js","./VAppBarTitle-DHaTV8xv.css","./VCombobox-BLfr31LE.css","./deviceEvents-8tGBwa2U.js","./VPagination-BUmJ8K2V.js","./VPagination-DNe_r2rg.css","./VContainer-Doz_PneH.js","./VForm-C1v7pkqf.js","./VExpansionPanels-LOsDx07C.js","./VExpansionPanels-kEj4ZJQK.css","./index-CuoHvzZv.css","./404-BwZffhEb.js","./authorize-DZSBaQ17.js","./CacheManagement-BChWOOfR.js","./cses2wakeup-BmsqkMFZ.js","./VTabsWindowItem-CghRaqdq.js","./VTabsWindowItem-DsCcWpt1.css","./cses2wakeup-V9ZvMok7.css","./debug-BSi7gIU2.js","./debug-CbS14biG.css","./debug-init-B-H9lXTX.js","./debug-socket-DzG1kWef.js","./_id_-B9b-OTX9.js","./examschedule-BBjKpA2N.js","./examschedule-CU_Gxm4i.css","./index-D07_YIdP.js","./_id_-DyC3JCaR.js","./settings-D372VNSO.js","./settings-eh31GxG-.css","./socket-debugger-DtAcJK1B.js","./socket-debugger-ykBk0O32.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const vw="modulepreload",yw=function(e,t){return new URL(e,t).href},np={},yt=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(l=>{if(l=yw(l,r),l in np)return;np[l]=!0;const d=l.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===l&&(!d||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":vw,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};/**
* @vue/shared v3.5.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function af(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ve={},ii=[],Bn=()=>{},cy=()=>!1,rl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cf=e=>e.startsWith("onUpdate:"),dt=Object.assign,lf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_w=Object.prototype.hasOwnProperty,$e=(e,t)=>_w.call(e,t),fe=Array.isArray,oi=e=>sl(e)==="[object Map]",ly=e=>sl(e)==="[object Set]",ve=e=>typeof e=="function",rt=e=>typeof e=="string",hr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",uy=e=>(ze(e)||ve(e))&&ve(e.then)&&ve(e.catch),dy=Object.prototype.toString,sl=e=>dy.call(e),bw=e=>sl(e).slice(8,-1),fy=e=>sl(e)==="[object Object]",il=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,lo=af(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ol=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sw=/-\w/g,$t=ol(e=>e.replace(Sw,t=>t.slice(1).toUpperCase())),Ew=/\B([A-Z])/g,Wr=ol(e=>e.replace(Ew,"-$1").toLowerCase()),Oi=ol(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wl=ol(e=>e?`on${Oi(e)}`:""),Pr=(e,t)=>!Object.is(e,t),qa=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},hy=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},uf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ww=e=>{const t=rt(e)?Number(e):NaN;return isNaN(t)?e:t};let rp;const al=()=>rp||(rp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xe(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=rt(r)?Iw(r):Xe(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(rt(e)||ze(e))return e}const Cw=/;(?![^(]*\))/g,Tw=/:([^]+)/,kw=/\/\*[^]*?\*\//g;function Iw(e){const t={};return e.replace(kw,"").split(Cw).forEach(n=>{if(n){const r=n.split(Tw);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Me(e){let t="";if(rt(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const r=Me(e[n]);r&&(t+=r+" ")}else if(ze(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const xw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Rw=af(xw);function py(e){return!!e||e===""}const my=e=>!!(e&&e.__v_isRef===!0),bn=e=>rt(e)?e:e==null?"":fe(e)||ze(e)&&(e.toString===dy||!ve(e.toString))?my(e)?bn(e.value):JSON.stringify(e,gy,2):String(e),gy=(e,t)=>my(t)?gy(e,t.value):oi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[jl(r,i)+" =>"]=s,n),{})}:ly(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jl(n))}:hr(t)?jl(t):ze(t)&&!fe(t)&&!fy(t)?String(t):t,jl=(e,t="")=>{var n;return hr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let kt;class vy{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=kt,!t&&kt&&(this.index=(kt.scopes||(kt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=kt;try{return kt=this,t()}finally{kt=n}}}on(){++this._on===1&&(this.prevScope=kt,kt=this)}off(){this._on>0&&--this._on===0&&(kt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Es(e){return new vy(e)}function df(){return kt}function Ct(e,t=!1){kt&&kt.cleanups.push(e)}let Ke;const zl=new WeakSet;class yy{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,kt&&kt.active&&kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zl.has(this)&&(zl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||by(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sp(this),Sy(this);const t=Ke,n=Sn;Ke=this,Sn=!0;try{return this.fn()}finally{Ey(this),Ke=t,Sn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)pf(t);this.deps=this.depsTail=void 0,sp(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qu(this)&&this.run()}get dirty(){return qu(this)}}let _y=0,uo,fo;function by(e,t=!1){if(e.flags|=8,t){e.next=fo,fo=e;return}e.next=uo,uo=e}function ff(){_y++}function hf(){if(--_y>0)return;if(fo){let t=fo;for(fo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;uo;){let t=uo;for(uo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Sy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ey(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),pf(r),Aw(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function qu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Io)||(e.globalVersion=Io,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qu(e))))return;e.flags|=2;const t=e.dep,n=Ke,r=Sn;Ke=e,Sn=!0;try{Sy(e);const s=e.fn(e._value);(t.version===0||Pr(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ke=n,Sn=r,Ey(e),e.flags&=-3}}function pf(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)pf(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Aw(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Sn=!0;const Cy=[];function rr(){Cy.push(Sn),Sn=!1}function sr(){const e=Cy.pop();Sn=e===void 0?!0:e}function sp(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let Io=0;class Mw{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class mf{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ke||!Sn||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new Mw(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,Ty(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=r)}return n}trigger(t){this.version++,Io++,this.notify(t)}notify(t){ff();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hf()}}}function Ty(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ty(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vc=new WeakMap,hs=Symbol(""),Gu=Symbol(""),xo=Symbol("");function It(e,t,n){if(Sn&&Ke){let r=vc.get(e);r||vc.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new mf),s.map=r,s.key=n),s.track()}}function Yn(e,t,n,r,s,i){const o=vc.get(e);if(!o){Io++;return}const a=c=>{c&&c.trigger()};if(ff(),t==="clear")o.forEach(a);else{const c=fe(e),l=c&&il(n);if(c&&n==="length"){const d=Number(r);o.forEach((u,f)=>{(f==="length"||f===xo||!hr(f)&&f>=d)&&a(u)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),l&&a(o.get(xo)),t){case"add":c?l&&a(o.get("length")):(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"delete":c||(a(o.get(hs)),oi(e)&&a(o.get(Gu)));break;case"set":oi(e)&&a(o.get(hs));break}}hf()}function Pw(e,t){const n=vc.get(e);return n&&n.get(t)}function Fs(e){const t=de(e);return t===e?t:(It(t,"iterate",xo),Qt(e)?t:t.map(En))}function cl(e){return It(e=de(e),"iterate",xo),e}function Cr(e,t){return ir(e)?pi(Jn(e)?En(t):t):En(t)}const Ow={__proto__:null,[Symbol.iterator](){return ql(this,Symbol.iterator,e=>Cr(this,e))},concat(...e){return Fs(this).concat(...e.map(t=>fe(t)?Fs(t):t))},entries(){return ql(this,"entries",e=>(e[1]=Cr(this,e[1]),e))},every(e,t){return Un(this,"every",e,t,void 0,arguments)},filter(e,t){return Un(this,"filter",e,t,n=>n.map(r=>Cr(this,r)),arguments)},find(e,t){return Un(this,"find",e,t,n=>Cr(this,n),arguments)},findIndex(e,t){return Un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Un(this,"findLast",e,t,n=>Cr(this,n),arguments)},findLastIndex(e,t){return Un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gl(this,"includes",e)},indexOf(...e){return Gl(this,"indexOf",e)},join(e){return Fs(this).join(e)},lastIndexOf(...e){return Gl(this,"lastIndexOf",e)},map(e,t){return Un(this,"map",e,t,void 0,arguments)},pop(){return Zi(this,"pop")},push(...e){return Zi(this,"push",e)},reduce(e,...t){return ip(this,"reduce",e,t)},reduceRight(e,...t){return ip(this,"reduceRight",e,t)},shift(){return Zi(this,"shift")},some(e,t){return Un(this,"some",e,t,void 0,arguments)},splice(...e){return Zi(this,"splice",e)},toReversed(){return Fs(this).toReversed()},toSorted(e){return Fs(this).toSorted(e)},toSpliced(...e){return Fs(this).toSpliced(...e)},unshift(...e){return Zi(this,"unshift",e)},values(){return ql(this,"values",e=>Cr(this,e))}};function ql(e,t,n){const r=cl(e),s=r[t]();return r!==e&&!Qt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Lw=Array.prototype;function Un(e,t,n,r,s,i){const o=cl(e),a=o!==e&&!Qt(e),c=o[t];if(c!==Lw[t]){const u=c.apply(e,i);return a?En(u):u}let l=n;o!==e&&(a?l=function(u,f){return n.call(this,Cr(e,u),f,e)}:n.length>2&&(l=function(u,f){return n.call(this,u,f,e)}));const d=c.call(o,l,r);return a&&s?s(d):d}function ip(e,t,n,r){const s=cl(e);let i=n;return s!==e&&(Qt(e)?n.length>3&&(i=function(o,a,c){return n.call(this,o,a,c,e)}):i=function(o,a,c){return n.call(this,o,Cr(e,a),c,e)}),s[t](i,...r)}function Gl(e,t,n){const r=de(e);It(r,"iterate",xo);const s=r[t](...n);return(s===-1||s===!1)&&ll(n[0])?(n[0]=de(n[0]),r[t](...n)):s}function Zi(e,t,n=[]){rr(),ff();const r=de(e)[t].apply(e,n);return hf(),sr(),r}const Nw=af("__proto__,__v_isRef,__isVue"),ky=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr));function Dw(e){hr(e)||(e=String(e));const t=de(this);return It(t,"has",e),t.hasOwnProperty(e)}class Iy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?qw:My:i?Ay:Ry).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=fe(t);if(!s){let c;if(o&&(c=Ow[n]))return c;if(n==="hasOwnProperty")return Dw}const a=Reflect.get(t,n,Je(t)?t:r);if((hr(n)?ky.has(n):Nw(n))||(s||It(t,"get",n),i))return a;if(Je(a)){const c=o&&il(n)?a:a.value;return s&&ze(c)?hi(c):c}return ze(a)?s?hi(a):pt(a):a}}class xy extends Iy{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=fe(t)&&il(n);if(!this._isShallow){const l=ir(i);if(!Qt(r)&&!ir(r)&&(i=de(i),r=de(r)),!o&&Je(i)&&!Je(r))return l||(i.value=r),!0}const a=o?Number(n)<t.length:$e(t,n),c=Reflect.set(t,n,r,Je(t)?t:s);return t===de(s)&&(a?Pr(r,i)&&Yn(t,"set",n,r):Yn(t,"add",n,r)),c}deleteProperty(t,n){const r=$e(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Yn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!hr(n)||!ky.has(n))&&It(t,"has",n),r}ownKeys(t){return It(t,"iterate",fe(t)?"length":hs),Reflect.ownKeys(t)}}class Fw extends Iy{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $w=new xy,Bw=new Fw,Hw=new xy(!0);const Ku=e=>e,Ca=e=>Reflect.getPrototypeOf(e);function Vw(e,t,n){return function(...r){const s=this.__v_raw,i=de(s),o=oi(i),a=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,l=s[e](...r),d=n?Ku:t?pi:En;return!t&&It(i,"iterate",c?Gu:hs),dt(Object.create(l),{next(){const{value:u,done:f}=l.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}}})}}function Ta(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uw(e,t){const n={get(s){const i=this.__v_raw,o=de(i),a=de(s);e||(Pr(s,a)&&It(o,"get",s),It(o,"get",a));const{has:c}=Ca(o),l=t?Ku:e?pi:En;if(c.call(o,s))return l(i.get(s));if(c.call(o,a))return l(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&It(de(s),"iterate",hs),s.size},has(s){const i=this.__v_raw,o=de(i),a=de(s);return e||(Pr(s,a)&&It(o,"has",s),It(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,c=de(a),l=t?Ku:e?pi:En;return!e&&It(c,"iterate",hs),a.forEach((d,u)=>s.call(i,l(d),l(u),o))}};return dt(n,e?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(s){!t&&!Qt(s)&&!ir(s)&&(s=de(s));const i=de(this);return Ca(i).has.call(i,s)||(i.add(s),Yn(i,"add",s,s)),this},set(s,i){!t&&!Qt(i)&&!ir(i)&&(i=de(i));const o=de(this),{has:a,get:c}=Ca(o);let l=a.call(o,s);l||(s=de(s),l=a.call(o,s));const d=c.call(o,s);return o.set(s,i),l?Pr(i,d)&&Yn(o,"set",s,i):Yn(o,"add",s,i),this},delete(s){const i=de(this),{has:o,get:a}=Ca(i);let c=o.call(i,s);c||(s=de(s),c=o.call(i,s)),a&&a.call(i,s);const l=i.delete(s);return c&&Yn(i,"delete",s,void 0),l},clear(){const s=de(this),i=s.size!==0,o=s.clear();return i&&Yn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Vw(s,e,t)}),n}function gf(e,t){const n=Uw(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get($e(n,s)&&s in r?n:r,s,i)}const Ww={get:gf(!1,!1)},jw={get:gf(!1,!0)},zw={get:gf(!0,!1)};const Ry=new WeakMap,Ay=new WeakMap,My=new WeakMap,qw=new WeakMap;function Gw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kw(e){return e.__v_skip||!Object.isExtensible(e)?0:Gw(bw(e))}function pt(e){return ir(e)?e:vf(e,!1,$w,Ww,Ry)}function Py(e){return vf(e,!1,Hw,jw,Ay)}function hi(e){return vf(e,!0,Bw,zw,My)}function vf(e,t,n,r,s){if(!ze(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Kw(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Jn(e){return ir(e)?Jn(e.__v_raw):!!(e&&e.__v_isReactive)}function ir(e){return!!(e&&e.__v_isReadonly)}function Qt(e){return!!(e&&e.__v_isShallow)}function ll(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function yf(e){return!$e(e,"__v_skip")&&Object.isExtensible(e)&&hy(e,"__v_skip",!0),e}const En=e=>ze(e)?pt(e):e,pi=e=>ze(e)?hi(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function we(e){return Oy(e,!1)}function be(e){return Oy(e,!0)}function Oy(e,t){return Je(e)?e:new Yw(e,t)}class Yw{constructor(t,n){this.dep=new mf,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:En(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qt(t)||ir(t);t=r?t:de(t),Pr(t,n)&&(this._rawValue=t,this._value=r?t:En(t),this.dep.trigger())}}function Ut(e){return Je(e)?e.value:e}function bt(e){return ve(e)?e():Ut(e)}const Xw={get:(e,t,n)=>t==="__v_raw"?e:Ut(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Je(s)&&!Je(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ly(e){return Jn(e)?e:new Proxy(e,Xw)}function _f(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=Ny(e,n);return t}class Jw{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=de(t);let s=!0,i=t;if(!fe(t)||!il(String(n)))do s=!ll(i)||Qt(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=Ut(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Je(this._raw[this._key])){const n=this._object[this._key];if(Je(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Pw(this._raw,this._key)}}class Zw{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ee(e,t,n){return Je(e)?e:ve(e)?new Zw(e):ze(e)&&arguments.length>1?Ny(e,t,n):we(e)}function Ny(e,t,n){return new Jw(e,t,n)}class Qw{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mf(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Io-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return by(this,!0),!0}get value(){const t=this.dep.track();return wy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function e1(e,t,n=!1){let r,s;return ve(e)?r=e:(r=e.get,s=e.set),new Qw(r,s,n)}const ka={},yc=new WeakMap;let rs;function t1(e,t=!1,n=rs){if(n){let r=yc.get(n);r||yc.set(n,r=[]),r.push(e)}}function n1(e,t,n=Ve){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:c}=n,l=S=>s?S:Qt(S)||s===!1||s===0?Xn(S,1):Xn(S);let d,u,f,h,p=!1,m=!1;if(Je(e)?(u=()=>e.value,p=Qt(e)):Jn(e)?(u=()=>l(e),p=!0):fe(e)?(m=!0,p=e.some(S=>Jn(S)||Qt(S)),u=()=>e.map(S=>{if(Je(S))return S.value;if(Jn(S))return l(S);if(ve(S))return c?c(S,2):S()})):ve(e)?t?u=c?()=>c(e,2):e:u=()=>{if(f){rr();try{f()}finally{sr()}}const S=rs;rs=d;try{return c?c(e,3,[h]):e(h)}finally{rs=S}}:u=Bn,t&&s){const S=u,M=s===!0?1/0:s;u=()=>Xn(S(),M)}const v=df(),g=()=>{d.stop(),v&&v.active&&lf(v.effects,d)};if(i&&t){const S=t;t=(...M)=>{S(...M),g()}}let y=m?new Array(e.length).fill(ka):ka;const _=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const M=d.run();if(s||p||(m?M.some((R,E)=>Pr(R,y[E])):Pr(M,y))){f&&f();const R=rs;rs=d;try{const E=[M,y===ka?void 0:m&&y[0]===ka?[]:y,h];y=M,c?c(t,3,E):t(...E)}finally{rs=R}}}else d.run()};return a&&a(_),d=new yy(u),d.scheduler=o?()=>o(_,!1):_,h=S=>t1(S,!1,d),f=d.onStop=()=>{const S=yc.get(d);if(S){if(c)c(S,4);else for(const M of S)M();yc.delete(d)}},t?r?_(!0):y=d.run():o?o(_.bind(null,!0),!0):d.run(),g.pause=d.pause.bind(d),g.resume=d.resume.bind(d),g.stop=g,g}function Xn(e,t=1/0,n){if(t<=0||!ze(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Je(e))Xn(e.value,t,n);else if(fe(e))for(let r=0;r<e.length;r++)Xn(e[r],t,n);else if(ly(e)||oi(e))e.forEach(r=>{Xn(r,t,n)});else if(fy(e)){for(const r in e)Xn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Xn(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Qo(e,t,n,r){try{return r?e(...r):e()}catch(s){ul(s,t,n)}}function wn(e,t,n,r){if(ve(e)){const s=Qo(e,t,n,r);return s&&uy(s)&&s.catch(i=>{ul(i,t,n)}),s}if(fe(e)){const s=[];for(let i=0;i<e.length;i++)s.push(wn(e[i],t,n,r));return s}}function ul(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ve;if(t){let a=t.parent;const c=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,c,l)===!1)return}a=a.parent}if(i){rr(),Qo(i,null,10,[e,c,l]),sr();return}}r1(e,n,s,r,o)}function r1(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Dt=[];let Mn=-1;const ai=[];let Tr=null,qs=0;const Dy=Promise.resolve();let _c=null;function vt(e){const t=_c||Dy;return e?t.then(this?e.bind(this):e):t}function s1(e){let t=Mn+1,n=Dt.length;for(;t<n;){const r=t+n>>>1,s=Dt[r],i=Ro(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function bf(e){if(!(e.flags&1)){const t=Ro(e),n=Dt[Dt.length-1];!n||!(e.flags&2)&&t>=Ro(n)?Dt.push(e):Dt.splice(s1(t),0,e),e.flags|=1,Fy()}}function Fy(){_c||(_c=Dy.then(By))}function i1(e){fe(e)?ai.push(...e):Tr&&e.id===-1?Tr.splice(qs+1,0,e):e.flags&1||(ai.push(e),e.flags|=1),Fy()}function op(e,t,n=Mn+1){for(;n<Dt.length;n++){const r=Dt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Dt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function $y(e){if(ai.length){const t=[...new Set(ai)].sort((n,r)=>Ro(n)-Ro(r));if(ai.length=0,Tr){Tr.push(...t);return}for(Tr=t,qs=0;qs<Tr.length;qs++){const n=Tr[qs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Tr=null,qs=0}}const Ro=e=>e.id==null?e.flags&2?-1:1/0:e.id;function By(e){try{for(Mn=0;Mn<Dt.length;Mn++){const t=Dt[Mn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Qo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mn<Dt.length;Mn++){const t=Dt[Mn];t&&(t.flags&=-2)}Mn=-1,Dt.length=0,$y(),_c=null,(Dt.length||ai.length)&&By()}}let St=null,Hy=null;function bc(e){const t=St;return St=e,Hy=e&&e.type.__scopeId||null,t}function gt(e,t=St,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&wc(-1);const i=bc(t);let o;try{o=e(...s)}finally{bc(i),r._d&&wc(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ws(e,t){if(St===null)return e;const n=gl(St),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,c=Ve]=t[s];i&&(ve(i)&&(i={mounted:i,updated:i}),i.deep&&Xn(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:c}))}return e}function Zr(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let c=a.dir[r];c&&(rr(),wn(c,n,8,[e.el,a,e,t]),sr())}}function At(e,t){if(xt){let n=xt.provides;const r=xt.parent&&xt.parent.provides;r===n&&(n=xt.provides=Object.create(r)),n[e]=t}}function Oe(e,t,n=!1){const r=Li();if(r||ps){let s=ps?ps._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ve(t)?t.call(r&&r.proxy):t}}function o1(){return!!(Li()||ps)}const a1=Symbol.for("v-scx"),c1=()=>Oe(a1);function hn(e,t){return Sf(e,null,t)}function Se(e,t,n){return Sf(e,t,n)}function Sf(e,t,n=Ve){const{immediate:r,deep:s,flush:i,once:o}=n,a=dt({},n),c=t&&r||!t&&i!=="post";let l;if(Po){if(i==="sync"){const h=c1();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=Bn,h.resume=Bn,h.pause=Bn,h}}const d=xt;a.call=(h,p,m)=>wn(h,d,p,m);let u=!1;i==="post"?a.scheduler=h=>{Lt(h,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():bf(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=n1(e,t,a);return Po&&(l?l.push(f):c&&f()),f}function l1(e,t,n){const r=this.proxy,s=rt(e)?e.includes(".")?Vy(r,e):()=>r[e]:e.bind(r,r);let i;ve(t)?i=t:(i=t.handler,n=t);const o=ta(this),a=Sf(s,i.bind(r),n);return o(),a}function Vy(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Uy=Symbol("_vte"),Wy=e=>e.__isTeleport,ho=e=>e&&(e.disabled||e.disabled===""),ap=e=>e&&(e.defer||e.defer===""),cp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,lp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yu=(e,t)=>{const n=e&&e.to;return rt(n)?t?t(n):null:n},jy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,c,l){const{mc:d,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:m,createComment:v}}=l,g=ho(t.props);let{shapeFlag:y,children:_,dynamicChildren:S}=t;if(e==null){const M=t.el=m(""),R=t.anchor=m("");h(M,n,r),h(R,n,r);const E=(I,A)=>{y&16&&d(_,I,A,s,i,o,a,c)},C=()=>{const I=t.target=Yu(t.props,p),A=zy(I,t,m,h);I&&(o!=="svg"&&cp(I)?o="svg":o!=="mathml"&&lp(I)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(I),g||(E(I,A),Ga(t,!1)))};g&&(E(n,R),Ga(t,!0)),ap(t.props)?(t.el.__isMounted=!1,Lt(()=>{C(),delete t.el.__isMounted},i)):C()}else{if(ap(t.props)&&e.el.__isMounted===!1){Lt(()=>{jy.process(e,t,n,r,s,i,o,a,c,l)},i);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,R=t.target=e.target,E=t.targetAnchor=e.targetAnchor,C=ho(e.props),I=C?n:R,A=C?M:E;if(o==="svg"||cp(R)?o="svg":(o==="mathml"||lp(R))&&(o="mathml"),S?(f(e.dynamicChildren,S,I,s,i,o,a),kf(e,t,!0)):c||u(e,t,I,A,s,i,o,a,!1),g)C?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ia(t,n,M,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=Yu(t.props,p);O&&Ia(t,O,null,l,0)}else C&&Ia(t,R,E,l,1);Ga(t,g)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:l,targetAnchor:d,target:u,props:f}=e;if(u&&(s(l),s(d)),i&&s(c),o&16){const h=i||!ho(f);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:Ia,hydrate:u1};function Ia(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:c,children:l,props:d}=e,u=i===2;if(u&&r(o,t,n),(!u||ho(d))&&c&16)for(let f=0;f<l.length;f++)s(l[f],t,n,2);u&&r(a,t,n)}function u1(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:c,insert:l,createText:d}},u){function f(m,v,g,y){v.anchor=u(o(m),v,a(m),n,r,s,i),v.targetStart=g,v.targetAnchor=y}const h=t.target=Yu(t.props,c),p=ho(t.props);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)f(e,t,m,m&&o(m));else{t.anchor=o(e);let v=m;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,h._lpa=t.targetAnchor&&o(t.targetAnchor);break}}v=o(v)}t.targetAnchor||zy(h,t,d,l),u(m&&o(m),t,h,n,r,s,i)}Ga(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,o(e));return t.anchor&&o(t.anchor)}const d1=jy;function Ga(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function zy(e,t,n,r){const s=t.targetStart=n(""),i=t.targetAnchor=n("");return s[Uy]=i,e&&(r(s,e),r(i,e)),i}const Kn=Symbol("_leaveCb"),xa=Symbol("_enterCb");function qy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jr(()=>{e.isMounted=!0}),Tn(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Gy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},Ky=e=>{const t=e.subTree;return t.component?Ky(t.component):t},f1={name:"BaseTransition",props:Gy,setup(e,{slots:t}){const n=Li(),r=qy();return()=>{const s=t.default&&Ef(t.default(),!0);if(!s||!s.length)return;const i=Yy(s),o=de(e),{mode:a}=o;if(r.isLeaving)return Kl(i);const c=up(i);if(!c)return Kl(i);let l=Ao(c,o,r,n,u=>l=u);c.type!==_t&&Cs(c,l);let d=n.subTree&&up(n.subTree);if(d&&d.type!==_t&&!os(d,c)&&Ky(n).type!==_t){let u=Ao(d,o,r,n);if(Cs(d,u),a==="out-in"&&c.type!==_t)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},Kl(i);a==="in-out"&&c.type!==_t?u.delayLeave=(f,h,p)=>{const m=Xy(r,d);m[String(d.key)]=d,f[Kn]=()=>{h(),f[Kn]=void 0,delete l.delayedLeave,d=void 0},l.delayedLeave=()=>{p(),delete l.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function Yy(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}const h1=f1;function Xy(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ao(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:_}=t,S=String(e.key),M=Xy(n,e),R=(I,A)=>{I&&wn(I,r,9,A)},E=(I,A)=>{const O=A[1];R(I,A),fe(I)?I.every(T=>T.length<=1)&&O():I.length<=1&&O()},C={mode:o,persisted:a,beforeEnter(I){let A=c;if(!n.isMounted)if(i)A=v||c;else return;I[Kn]&&I[Kn](!0);const O=M[S];O&&os(e,O)&&O.el[Kn]&&O.el[Kn](),R(A,[I])},enter(I){let A=l,O=d,T=u;if(!n.isMounted)if(i)A=g||l,O=y||d,T=_||u;else return;let P=!1;const N=I[xa]=z=>{P||(P=!0,z?R(T,[I]):R(O,[I]),C.delayedLeave&&C.delayedLeave(),I[xa]=void 0)};A?E(A,[I,N]):N()},leave(I,A){const O=String(e.key);if(I[xa]&&I[xa](!0),n.isUnmounting)return A();R(f,[I]);let T=!1;const P=I[Kn]=N=>{T||(T=!0,A(),N?R(m,[I]):R(p,[I]),I[Kn]=void 0,M[O]===e&&delete M[O])};M[O]=e,h?E(h,[I,P]):P()},clone(I){const A=Ao(I,t,n,r,s);return s&&s(A),A}};return C}function Kl(e){if(fl(e))return e=Fr(e),e.children=null,e}function up(e){if(!fl(e))return Wy(e.type)&&e.children?Yy(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ve(n.default))return n.default()}}function Cs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ef(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ze?(o.patchFlag&128&&s++,r=r.concat(Ef(o.children,t,a))):(t||o.type!==_t)&&r.push(a!=null?Fr(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function dl(e,t){return ve(e)?dt({name:e.name},t,{setup:e}):e}function Jy(){const e=Li();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Zy(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Sc=new WeakMap;function po(e,t,n,r,s=!1){if(fe(e)){e.forEach((p,m)=>po(p,t&&(fe(t)?t[m]:t),n,r,s));return}if(ci(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&po(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?gl(r.component):r.el,o=s?null:i,{i:a,r:c}=e,l=t&&t.r,d=a.refs===Ve?a.refs={}:a.refs,u=a.setupState,f=de(u),h=u===Ve?cy:p=>$e(f,p);if(l!=null&&l!==c){if(dp(t),rt(l))d[l]=null,h(l)&&(u[l]=null);else if(Je(l)){l.value=null;const p=t;p.k&&(d[p.k]=null)}}if(ve(c))Qo(c,a,12,[o,d]);else{const p=rt(c),m=Je(c);if(p||m){const v=()=>{if(e.f){const g=p?h(c)?u[c]:d[c]:c.value;if(s)fe(g)&&lf(g,i);else if(fe(g))g.includes(i)||g.push(i);else if(p)d[c]=[i],h(c)&&(u[c]=d[c]);else{const y=[i];c.value=y,e.k&&(d[e.k]=y)}}else p?(d[c]=o,h(c)&&(u[c]=o)):m&&(c.value=o,e.k&&(d[e.k]=o))};if(o){const g=()=>{v(),Sc.delete(e)};g.id=-1,Sc.set(e,g),Lt(g,n)}else dp(e),v()}}}function dp(e){const t=Sc.get(e);t&&(t.flags|=8,Sc.delete(e))}al().requestIdleCallback;al().cancelIdleCallback;const ci=e=>!!e.type.__asyncLoader,fl=e=>e.type.__isKeepAlive;function Qy(e,t){t_(e,"a",t)}function e_(e,t){t_(e,"da",t)}function t_(e,t,n=xt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(hl(t,r,n),n){let s=n.parent;for(;s&&s.parent;)fl(s.parent.vnode)&&p1(r,t,n,s),s=s.parent}}function p1(e,t,n,r){const s=hl(t,e,r,!0);n_(()=>{lf(r[t],s)},n)}function hl(e,t,n=xt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{rr();const a=ta(n),c=wn(t,n,e,o);return a(),sr(),c});return r?s.unshift(i):s.push(i),i}}const pr=e=>(t,n=xt)=>{(!Po||e==="sp")&&hl(e,(...r)=>t(...r),n)},pl=pr("bm"),jr=pr("m"),m1=pr("bu"),wf=pr("u"),Tn=pr("bum"),n_=pr("um"),g1=pr("sp"),v1=pr("rtg"),y1=pr("rtc");function _1(e,t=xt){hl("ec",e,t)}const r_="components";function b1(e,t){return o_(r_,e,!0,t)||e}const s_=Symbol.for("v-ndc");function i_(e){return rt(e)?o_(r_,e,!1)||e:e||s_}function o_(e,t,n=!0,r=!1){const s=St||xt;if(s){const i=s.type;{const a=sC(i,!1);if(a&&(a===t||a===$t(t)||a===Oi($t(t))))return i}const o=fp(s[e]||i[e],t)||fp(s.appContext[e],t);return!o&&r?i:o}}function fp(e,t){return e&&(e[t]||e[$t(t)]||e[Oi($t(t))])}function S1(e,t,n,r){let s;const i=n,o=fe(e);if(o||rt(e)){const a=o&&Jn(e);let c=!1,l=!1;a&&(c=!Qt(e),l=ir(e),e=cl(e)),s=new Array(e.length);for(let d=0,u=e.length;d<u;d++)s[d]=t(c?l?pi(En(e[d])):En(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(ze(e))if(e[Symbol.iterator])s=Array.from(e,(a,c)=>t(a,c,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let c=0,l=a.length;c<l;c++){const d=a[c];s[c]=t(e[d],d,c,i)}}else s=[];return s}function D3(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(fe(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function F3(e,t,n={},r,s){if(St.ce||St.parent&&ci(St.parent)&&St.parent.ce){const l=Object.keys(n).length>0;return t!=="default"&&(n.name=t),cn(),Dn(Ze,null,[B("slot",n,r)],l?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),cn();const o=i&&a_(i(n)),a=n.key||o&&o.key,c=Dn(Ze,{key:(a&&!hr(a)?a:`_${t}`)+(!o&&r?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),c}function a_(e){return e.some(t=>mi(t)?!(t.type===_t||t.type===Ze&&!a_(t.children)):!0)?e:null}const Xu=e=>e?k_(e)?gl(e):Xu(e.parent):null,mo=dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xu(e.parent),$root:e=>Xu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>l_(e),$forceUpdate:e=>e.f||(e.f=()=>{bf(e.update)}),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>l1.bind(e)}),Yl=(e,t)=>e!==Ve&&!e.__isScriptSetup&&$e(e,t),E1={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:c}=e;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Yl(r,t))return o[t]=1,r[t];if(s!==Ve&&$e(s,t))return o[t]=2,s[t];if($e(i,t))return o[t]=3,i[t];if(n!==Ve&&$e(n,t))return o[t]=4,n[t];Ju&&(o[t]=0)}}const l=mo[t];let d,u;if(l)return t==="$attrs"&&It(e.attrs,"get",""),l(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ve&&$e(n,t))return o[t]=4,n[t];if(u=c.config.globalProperties,$e(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Yl(s,t)?(s[t]=n,!0):r!==Ve&&$e(r,t)?(r[t]=n,!0):$e(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let c;return!!(n[a]||e!==Ve&&a[0]!=="$"&&$e(e,a)||Yl(t,a)||$e(i,a)||$e(r,a)||$e(mo,a)||$e(s.config.globalProperties,a)||(c=o.__cssModules)&&c[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$e(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hp(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ju=!0;function w1(e){const t=l_(e),n=e.proxy,r=e.ctx;Ju=!1,t.beforeCreate&&pp(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:c,inject:l,created:d,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:S,render:M,renderTracked:R,renderTriggered:E,errorCaptured:C,serverPrefetch:I,expose:A,inheritAttrs:O,components:T,directives:P,filters:N}=t;if(l&&C1(l,r,null),o)for(const q in o){const D=o[q];ve(D)&&(r[q]=D.bind(n))}if(s){const q=s.call(n,n);ze(q)&&(e.data=pt(q))}if(Ju=!0,i)for(const q in i){const D=i[q],re=ve(D)?D.bind(n,n):ve(D.get)?D.get.bind(n,n):Bn,U=!ve(D)&&ve(D.set)?D.set.bind(n):Bn,ie=j({get:re,set:U});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>ie.value,set:ae=>ie.value=ae})}if(a)for(const q in a)c_(a[q],r,n,q);if(c){const q=ve(c)?c.call(n):c;Reflect.ownKeys(q).forEach(D=>{At(D,q[D])})}d&&pp(d,e,"c");function X(q,D){fe(D)?D.forEach(re=>q(re.bind(n))):D&&q(D.bind(n))}if(X(pl,u),X(jr,f),X(m1,h),X(wf,p),X(Qy,m),X(e_,v),X(_1,C),X(y1,R),X(v1,E),X(Tn,y),X(n_,S),X(g1,I),fe(A))if(A.length){const q=e.exposed||(e.exposed={});A.forEach(D=>{Object.defineProperty(q,D,{get:()=>n[D],set:re=>n[D]=re,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Bn&&(e.render=M),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),P&&(e.directives=P),I&&Zy(e)}function C1(e,t,n=Bn){fe(e)&&(e=Zu(e));for(const r in e){const s=e[r];let i;ze(s)?"default"in s?i=Oe(s.from||r,s.default,!0):i=Oe(s.from||r):i=Oe(s),Je(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function pp(e,t,n){wn(fe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function c_(e,t,n,r){let s=r.includes(".")?Vy(n,r):()=>n[r];if(rt(e)){const i=t[e];ve(i)&&Se(s,i)}else if(ve(e))Se(s,e.bind(n));else if(ze(e))if(fe(e))e.forEach(i=>c_(i,t,n,r));else{const i=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(i)&&Se(s,i,e)}}function l_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let c;return a?c=a:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(l=>Ec(c,l,o,!0)),Ec(c,t,o)),ze(t)&&i.set(t,c),c}function Ec(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Ec(e,i,n,!0),s&&s.forEach(o=>Ec(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=T1[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const T1={data:mp,props:gp,emits:gp,methods:oo,computed:oo,beforeCreate:Pt,created:Pt,beforeMount:Pt,mounted:Pt,beforeUpdate:Pt,updated:Pt,beforeDestroy:Pt,beforeUnmount:Pt,destroyed:Pt,unmounted:Pt,activated:Pt,deactivated:Pt,errorCaptured:Pt,serverPrefetch:Pt,components:oo,directives:oo,watch:I1,provide:mp,inject:k1};function mp(e,t){return t?e?function(){return dt(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function k1(e,t){return oo(Zu(e),Zu(t))}function Zu(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pt(e,t){return e?[...new Set([].concat(e,t))]:t}function oo(e,t){return e?dt(Object.create(null),e,t):t}function gp(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:dt(Object.create(null),hp(e),hp(t??{})):t}function I1(e,t){if(!e)return t;if(!t)return e;const n=dt(Object.create(null),e);for(const r in t)n[r]=Pt(e[r],t[r]);return n}function u_(){return{app:null,config:{isNativeTag:cy,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let x1=0;function R1(e,t){return function(r,s=null){ve(r)||(r=dt({},r)),s!=null&&!ze(s)&&(s=null);const i=u_(),o=new WeakSet,a=[];let c=!1;const l=i.app={_uid:x1++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:oC,get config(){return i.config},set config(d){},use(d,...u){return o.has(d)||(d&&ve(d.install)?(o.add(d),d.install(l,...u)):ve(d)&&(o.add(d),d(l,...u))),l},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),l},component(d,u){return u?(i.components[d]=u,l):i.components[d]},directive(d,u){return u?(i.directives[d]=u,l):i.directives[d]},mount(d,u,f){if(!c){const h=l._ceVNode||B(r,s);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,d,f),c=!0,l._container=d,d.__vue_app__=l,gl(h.component)}},onUnmount(d){a.push(d)},unmount(){c&&(wn(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(d,u){return i.provides[d]=u,l},runWithContext(d){const u=ps;ps=l;try{return d()}finally{ps=u}}};return l}}let ps=null;const A1=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$t(t)}Modifiers`]||e[`${Wr(t)}Modifiers`];function M1(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ve;let s=n;const i=t.startsWith("update:"),o=i&&A1(r,t.slice(7));o&&(o.trim&&(s=n.map(d=>rt(d)?d.trim():d)),o.number&&(s=n.map(uf)));let a,c=r[a=Wl(t)]||r[a=Wl($t(t))];!c&&i&&(c=r[a=Wl(Wr(t))]),c&&wn(c,e,6,s);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wn(l,e,6,s)}}const P1=new WeakMap;function d_(e,t,n=!1){const r=n?P1:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ve(e)){const c=l=>{const d=d_(l,t,!0);d&&(a=!0,dt(o,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(ze(e)&&r.set(e,null),null):(fe(i)?i.forEach(c=>o[c]=null):dt(o,i),ze(e)&&r.set(e,o),o)}function ml(e,t){return!e||!rl(t)?!1:(t=t.slice(2).replace(/Once$/,""),$e(e,t[0].toLowerCase()+t.slice(1))||$e(e,Wr(t))||$e(e,t))}function vp(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:c,render:l,renderCache:d,props:u,data:f,setupState:h,ctx:p,inheritAttrs:m}=e,v=bc(e);let g,y;try{if(n.shapeFlag&4){const S=s||r,M=S;g=On(l.call(M,S,d,u,h,f,p)),y=a}else{const S=t;g=On(S.length>1?S(u,{attrs:a,slots:o,emit:c}):S(u,null)),y=t.props?a:O1(a)}}catch(S){go.length=0,ul(S,e,1),g=B(_t)}let _=g;if(y&&m!==!1){const S=Object.keys(y),{shapeFlag:M}=_;S.length&&M&7&&(i&&S.some(cf)&&(y=L1(y,i)),_=Fr(_,y,!1,!0))}return n.dirs&&(_=Fr(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(_,n.transition),g=_,bc(v),g}const O1=e=>{let t;for(const n in e)(n==="class"||n==="style"||rl(n))&&((t||(t={}))[n]=e[n]);return t},L1=(e,t)=>{const n={};for(const r in e)(!cf(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function N1(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?yp(r,o,l):!!o;if(c&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const f=d[u];if(o[f]!==r[f]&&!ml(l,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?yp(r,o,l):!0:!!o;return!1}function yp(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!ml(n,i))return!0}return!1}function D1({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const f_={},h_=()=>Object.create(f_),p_=e=>Object.getPrototypeOf(e)===f_;function F1(e,t,n,r=!1){const s={},i=h_();e.propsDefaults=Object.create(null),m_(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Py(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function $1(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=de(s),[c]=e.propsOptions;let l=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let f=d[u];if(ml(e.emitsOptions,f))continue;const h=t[f];if(c)if($e(i,f))h!==i[f]&&(i[f]=h,l=!0);else{const p=$t(f);s[p]=Qu(c,a,p,h,e,!1)}else h!==i[f]&&(i[f]=h,l=!0)}}}else{m_(e,t,s,i)&&(l=!0);let d;for(const u in a)(!t||!$e(t,u)&&((d=Wr(u))===u||!$e(t,d)))&&(c?n&&(n[u]!==void 0||n[d]!==void 0)&&(s[u]=Qu(c,a,u,void 0,e,!0)):delete s[u]);if(i!==a)for(const u in i)(!t||!$e(t,u))&&(delete i[u],l=!0)}l&&Yn(e.attrs,"set","")}function m_(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let c in t){if(lo(c))continue;const l=t[c];let d;s&&$e(s,d=$t(c))?!i||!i.includes(d)?n[d]=l:(a||(a={}))[d]=l:ml(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(i){const c=de(n),l=a||Ve;for(let d=0;d<i.length;d++){const u=i[d];n[u]=Qu(s,c,u,l[u],e,!$e(l,u))}}return o}function Qu(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=$e(o,"default");if(a&&r===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&ve(c)){const{propsDefaults:l}=s;if(n in l)r=l[n];else{const d=ta(s);r=l[n]=c.call(null,t),d()}}else r=c;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Wr(n))&&(r=!0))}return r}const B1=new WeakMap;function g_(e,t,n=!1){const r=n?B1:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let c=!1;if(!ve(e)){const d=u=>{c=!0;const[f,h]=g_(u,t,!0);dt(o,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return ze(e)&&r.set(e,ii),ii;if(fe(i))for(let d=0;d<i.length;d++){const u=$t(i[d]);_p(u)&&(o[u]=Ve)}else if(i)for(const d in i){const u=$t(d);if(_p(u)){const f=i[d],h=o[u]=fe(f)||ve(f)?{type:f}:dt({},f),p=h.type;let m=!1,v=!0;if(fe(p))for(let g=0;g<p.length;++g){const y=p[g],_=ve(y)&&y.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(v=!1)}else m=ve(p)&&p.name==="Boolean";h[0]=m,h[1]=v,(m||$e(h,"default"))&&a.push(u)}}const l=[o,a];return ze(e)&&r.set(e,l),l}function _p(e){return e[0]!=="$"&&!lo(e)}const Cf=e=>e==="_"||e==="_ctx"||e==="$stable",Tf=e=>fe(e)?e.map(On):[On(e)],H1=(e,t,n)=>{if(t._n)return t;const r=gt((...s)=>Tf(t(...s)),n);return r._c=!1,r},v_=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Cf(s))continue;const i=e[s];if(ve(i))t[s]=H1(s,i,r);else if(i!=null){const o=Tf(i);t[s]=()=>o}}},y_=(e,t)=>{const n=Tf(t);e.slots.default=()=>n},__=(e,t,n)=>{for(const r in t)(n||!Cf(r))&&(e[r]=t[r])},V1=(e,t,n)=>{const r=e.slots=h_();if(e.vnode.shapeFlag&32){const s=t._;s?(__(r,t,n),n&&hy(r,"_",s,!0)):v_(t,r)}else t&&y_(e,t)},U1=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ve;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:__(s,t,n):(i=!t.$stable,v_(t,s)),o=t}else t&&(y_(e,t),o={default:1});if(i)for(const a in s)!Cf(a)&&o[a]==null&&delete s[a]},Lt=G1;function W1(e){return j1(e)}function j1(e,t){const n=al();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:c,setText:l,setElementText:d,parentNode:u,nextSibling:f,setScopeId:h=Bn,insertStaticContent:p}=e,m=(b,w,k,L=null,$=null,F=null,G=void 0,Y=null,H=!!w.dynamicChildren)=>{if(b===w)return;b&&!os(b,w)&&(L=x(b),ae(b,$,F,!0),b=null),w.patchFlag===-2&&(H=!1,w.dynamicChildren=null);const{type:V,ref:Z,shapeFlag:Q}=w;switch(V){case ea:v(b,w,k,L);break;case _t:g(b,w,k,L);break;case Jl:b==null&&y(w,k,L,G);break;case Ze:T(b,w,k,L,$,F,G,Y,H);break;default:Q&1?M(b,w,k,L,$,F,G,Y,H):Q&6?P(b,w,k,L,$,F,G,Y,H):(Q&64||Q&128)&&V.process(b,w,k,L,$,F,G,Y,H,ne)}Z!=null&&$?po(Z,b&&b.ref,F,w||b,!w):Z==null&&b&&b.ref!=null&&po(b.ref,null,F,b,!0)},v=(b,w,k,L)=>{if(b==null)r(w.el=a(w.children),k,L);else{const $=w.el=b.el;w.children!==b.children&&l($,w.children)}},g=(b,w,k,L)=>{b==null?r(w.el=c(w.children||""),k,L):w.el=b.el},y=(b,w,k,L)=>{[b.el,b.anchor]=p(b.children,w,k,L,b.el,b.anchor)},_=({el:b,anchor:w},k,L)=>{let $;for(;b&&b!==w;)$=f(b),r(b,k,L),b=$;r(w,k,L)},S=({el:b,anchor:w})=>{let k;for(;b&&b!==w;)k=f(b),s(b),b=k;s(w)},M=(b,w,k,L,$,F,G,Y,H)=>{if(w.type==="svg"?G="svg":w.type==="math"&&(G="mathml"),b==null)R(w,k,L,$,F,G,Y,H);else{const V=b.el&&b.el._isVueCE?b.el:null;try{V&&V._beginPatch(),I(b,w,$,F,G,Y,H)}finally{V&&V._endPatch()}}},R=(b,w,k,L,$,F,G,Y)=>{let H,V;const{props:Z,shapeFlag:Q,transition:oe,dirs:te}=b;if(H=b.el=o(b.type,F,Z&&Z.is,Z),Q&8?d(H,b.children):Q&16&&C(b.children,H,null,L,$,Xl(b,F),G,Y),te&&Zr(b,null,L,"created"),E(H,b,b.scopeId,G,L),Z){for(const qe in Z)qe!=="value"&&!lo(qe)&&i(H,qe,null,Z[qe],F,L);"value"in Z&&i(H,"value",null,Z.value,F),(V=Z.onVnodeBeforeMount)&&Rn(V,L,b)}te&&Zr(b,null,L,"beforeMount");const Ie=z1($,oe);Ie&&oe.beforeEnter(H),r(H,w,k),((V=Z&&Z.onVnodeMounted)||Ie||te)&&Lt(()=>{V&&Rn(V,L,b),Ie&&oe.enter(H),te&&Zr(b,null,L,"mounted")},$)},E=(b,w,k,L,$)=>{if(k&&h(b,k),L)for(let F=0;F<L.length;F++)h(b,L[F]);if($){let F=$.subTree;if(w===F||E_(F.type)&&(F.ssContent===w||F.ssFallback===w)){const G=$.vnode;E(b,G,G.scopeId,G.slotScopeIds,$.parent)}}},C=(b,w,k,L,$,F,G,Y,H=0)=>{for(let V=H;V<b.length;V++){const Z=b[V]=Y?kr(b[V]):On(b[V]);m(null,Z,w,k,L,$,F,G,Y)}},I=(b,w,k,L,$,F,G)=>{const Y=w.el=b.el;let{patchFlag:H,dynamicChildren:V,dirs:Z}=w;H|=b.patchFlag&16;const Q=b.props||Ve,oe=w.props||Ve;let te;if(k&&Qr(k,!1),(te=oe.onVnodeBeforeUpdate)&&Rn(te,k,w,b),Z&&Zr(w,b,k,"beforeUpdate"),k&&Qr(k,!0),(Q.innerHTML&&oe.innerHTML==null||Q.textContent&&oe.textContent==null)&&d(Y,""),V?A(b.dynamicChildren,V,Y,k,L,Xl(w,$),F):G||D(b,w,Y,null,k,L,Xl(w,$),F,!1),H>0){if(H&16)O(Y,Q,oe,k,$);else if(H&2&&Q.class!==oe.class&&i(Y,"class",null,oe.class,$),H&4&&i(Y,"style",Q.style,oe.style,$),H&8){const Ie=w.dynamicProps;for(let qe=0;qe<Ie.length;qe++){const Be=Ie[qe],Bt=Q[Be],Ht=oe[Be];(Ht!==Bt||Be==="value")&&i(Y,Be,Bt,Ht,$,k)}}H&1&&b.children!==w.children&&d(Y,w.children)}else!G&&V==null&&O(Y,Q,oe,k,$);((te=oe.onVnodeUpdated)||Z)&&Lt(()=>{te&&Rn(te,k,w,b),Z&&Zr(w,b,k,"updated")},L)},A=(b,w,k,L,$,F,G)=>{for(let Y=0;Y<w.length;Y++){const H=b[Y],V=w[Y],Z=H.el&&(H.type===Ze||!os(H,V)||H.shapeFlag&198)?u(H.el):k;m(H,V,Z,null,L,$,F,G,!0)}},O=(b,w,k,L,$)=>{if(w!==k){if(w!==Ve)for(const F in w)!lo(F)&&!(F in k)&&i(b,F,w[F],null,$,L);for(const F in k){if(lo(F))continue;const G=k[F],Y=w[F];G!==Y&&F!=="value"&&i(b,F,Y,G,$,L)}"value"in k&&i(b,"value",w.value,k.value,$)}},T=(b,w,k,L,$,F,G,Y,H)=>{const V=w.el=b?b.el:a(""),Z=w.anchor=b?b.anchor:a("");let{patchFlag:Q,dynamicChildren:oe,slotScopeIds:te}=w;te&&(Y=Y?Y.concat(te):te),b==null?(r(V,k,L),r(Z,k,L),C(w.children||[],k,Z,$,F,G,Y,H)):Q>0&&Q&64&&oe&&b.dynamicChildren&&b.dynamicChildren.length===oe.length?(A(b.dynamicChildren,oe,k,$,F,G,Y),(w.key!=null||$&&w===$.subTree)&&kf(b,w,!0)):D(b,w,k,Z,$,F,G,Y,H)},P=(b,w,k,L,$,F,G,Y,H)=>{w.slotScopeIds=Y,b==null?w.shapeFlag&512?$.ctx.activate(w,k,L,G,H):N(w,k,L,$,F,G,H):z(b,w,H)},N=(b,w,k,L,$,F,G)=>{const Y=b.component=Q1(b,L,$);if(fl(b)&&(Y.ctx.renderer=ne),eC(Y,!1,G),Y.asyncDep){if($&&$.registerDep(Y,X,G),!b.el){const H=Y.subTree=B(_t);g(null,H,w,k),b.placeholder=H.el}}else X(Y,b,w,k,$,F,G)},z=(b,w,k)=>{const L=w.component=b.component;if(N1(b,w,k))if(L.asyncDep&&!L.asyncResolved){q(L,w,k);return}else L.next=w,L.update();else w.el=b.el,L.vnode=w},X=(b,w,k,L,$,F,G)=>{const Y=()=>{if(b.isMounted){let{next:Q,bu:oe,u:te,parent:Ie,vnode:qe}=b;{const In=b_(b);if(In){Q&&(Q.el=qe.el,q(b,Q,G)),In.asyncDep.then(()=>{b.isUnmounted||Y()});return}}let Be=Q,Bt;Qr(b,!1),Q?(Q.el=qe.el,q(b,Q,G)):Q=qe,oe&&qa(oe),(Bt=Q.props&&Q.props.onVnodeBeforeUpdate)&&Rn(Bt,Ie,Q,qe),Qr(b,!0);const Ht=vp(b),kn=b.subTree;b.subTree=Ht,m(kn,Ht,u(kn.el),x(kn),b,$,F),Q.el=Ht.el,Be===null&&D1(b,Ht.el),te&&Lt(te,$),(Bt=Q.props&&Q.props.onVnodeUpdated)&&Lt(()=>Rn(Bt,Ie,Q,qe),$)}else{let Q;const{el:oe,props:te}=w,{bm:Ie,m:qe,parent:Be,root:Bt,type:Ht}=b,kn=ci(w);Qr(b,!1),Ie&&qa(Ie),!kn&&(Q=te&&te.onVnodeBeforeMount)&&Rn(Q,Be,w),Qr(b,!0);{Bt.ce&&Bt.ce._def.shadowRoot!==!1&&Bt.ce._injectChildStyle(Ht);const In=b.subTree=vp(b);m(null,In,k,L,b,$,F),w.el=In.el}if(qe&&Lt(qe,$),!kn&&(Q=te&&te.onVnodeMounted)){const In=w;Lt(()=>Rn(Q,Be,In),$)}(w.shapeFlag&256||Be&&ci(Be.vnode)&&Be.vnode.shapeFlag&256)&&b.a&&Lt(b.a,$),b.isMounted=!0,w=k=L=null}};b.scope.on();const H=b.effect=new yy(Y);b.scope.off();const V=b.update=H.run.bind(H),Z=b.job=H.runIfDirty.bind(H);Z.i=b,Z.id=b.uid,H.scheduler=()=>bf(Z),Qr(b,!0),V()},q=(b,w,k)=>{w.component=b;const L=b.vnode.props;b.vnode=w,b.next=null,$1(b,w.props,L,k),U1(b,w.children,k),rr(),op(b),sr()},D=(b,w,k,L,$,F,G,Y,H=!1)=>{const V=b&&b.children,Z=b?b.shapeFlag:0,Q=w.children,{patchFlag:oe,shapeFlag:te}=w;if(oe>0){if(oe&128){U(V,Q,k,L,$,F,G,Y,H);return}else if(oe&256){re(V,Q,k,L,$,F,G,Y,H);return}}te&8?(Z&16&&He(V,$,F),Q!==V&&d(k,Q)):Z&16?te&16?U(V,Q,k,L,$,F,G,Y,H):He(V,$,F,!0):(Z&8&&d(k,""),te&16&&C(Q,k,L,$,F,G,Y,H))},re=(b,w,k,L,$,F,G,Y,H)=>{b=b||ii,w=w||ii;const V=b.length,Z=w.length,Q=Math.min(V,Z);let oe;for(oe=0;oe<Q;oe++){const te=w[oe]=H?kr(w[oe]):On(w[oe]);m(b[oe],te,k,null,$,F,G,Y,H)}V>Z?He(b,$,F,!0,!1,Q):C(w,k,L,$,F,G,Y,H,Q)},U=(b,w,k,L,$,F,G,Y,H)=>{let V=0;const Z=w.length;let Q=b.length-1,oe=Z-1;for(;V<=Q&&V<=oe;){const te=b[V],Ie=w[V]=H?kr(w[V]):On(w[V]);if(os(te,Ie))m(te,Ie,k,null,$,F,G,Y,H);else break;V++}for(;V<=Q&&V<=oe;){const te=b[Q],Ie=w[oe]=H?kr(w[oe]):On(w[oe]);if(os(te,Ie))m(te,Ie,k,null,$,F,G,Y,H);else break;Q--,oe--}if(V>Q){if(V<=oe){const te=oe+1,Ie=te<Z?w[te].el:L;for(;V<=oe;)m(null,w[V]=H?kr(w[V]):On(w[V]),k,Ie,$,F,G,Y,H),V++}}else if(V>oe)for(;V<=Q;)ae(b[V],$,F,!0),V++;else{const te=V,Ie=V,qe=new Map;for(V=Ie;V<=oe;V++){const Kt=w[V]=H?kr(w[V]):On(w[V]);Kt.key!=null&&qe.set(Kt.key,V)}let Be,Bt=0;const Ht=oe-Ie+1;let kn=!1,In=0;const Ji=new Array(Ht);for(V=0;V<Ht;V++)Ji[V]=0;for(V=te;V<=Q;V++){const Kt=b[V];if(Bt>=Ht){ae(Kt,$,F,!0);continue}let xn;if(Kt.key!=null)xn=qe.get(Kt.key);else for(Be=Ie;Be<=oe;Be++)if(Ji[Be-Ie]===0&&os(Kt,w[Be])){xn=Be;break}xn===void 0?ae(Kt,$,F,!0):(Ji[xn-Ie]=V+1,xn>=In?In=xn:kn=!0,m(Kt,w[xn],k,null,$,F,G,Y,H),Bt++)}const Qh=kn?q1(Ji):ii;for(Be=Qh.length-1,V=Ht-1;V>=0;V--){const Kt=Ie+V,xn=w[Kt],ep=w[Kt+1],tp=Kt+1<Z?ep.el||S_(ep):L;Ji[V]===0?m(null,xn,k,tp,$,F,G,Y,H):kn&&(Be<0||V!==Qh[Be]?ie(xn,k,tp,2):Be--)}}},ie=(b,w,k,L,$=null)=>{const{el:F,type:G,transition:Y,children:H,shapeFlag:V}=b;if(V&6){ie(b.component.subTree,w,k,L);return}if(V&128){b.suspense.move(w,k,L);return}if(V&64){G.move(b,w,k,ne);return}if(G===Ze){r(F,w,k);for(let Q=0;Q<H.length;Q++)ie(H[Q],w,k,L);r(b.anchor,w,k);return}if(G===Jl){_(b,w,k);return}if(L!==2&&V&1&&Y)if(L===0)Y.beforeEnter(F),r(F,w,k),Lt(()=>Y.enter(F),$);else{const{leave:Q,delayLeave:oe,afterLeave:te}=Y,Ie=()=>{b.ctx.isUnmounted?s(F):r(F,w,k)},qe=()=>{F._isLeaving&&F[Kn](!0),Q(F,()=>{Ie(),te&&te()})};oe?oe(F,Ie,qe):qe()}else r(F,w,k)},ae=(b,w,k,L=!1,$=!1)=>{const{type:F,props:G,ref:Y,children:H,dynamicChildren:V,shapeFlag:Z,patchFlag:Q,dirs:oe,cacheIndex:te}=b;if(Q===-2&&($=!1),Y!=null&&(rr(),po(Y,null,k,b,!0),sr()),te!=null&&(w.renderCache[te]=void 0),Z&256){w.ctx.deactivate(b);return}const Ie=Z&1&&oe,qe=!ci(b);let Be;if(qe&&(Be=G&&G.onVnodeBeforeUnmount)&&Rn(Be,w,b),Z&6)Ne(b.component,k,L);else{if(Z&128){b.suspense.unmount(k,L);return}Ie&&Zr(b,null,w,"beforeUnmount"),Z&64?b.type.remove(b,w,k,ne,L):V&&!V.hasOnce&&(F!==Ze||Q>0&&Q&64)?He(V,w,k,!1,!0):(F===Ze&&Q&384||!$&&Z&16)&&He(H,w,k),L&&ue(b)}(qe&&(Be=G&&G.onVnodeUnmounted)||Ie)&&Lt(()=>{Be&&Rn(Be,w,b),Ie&&Zr(b,null,w,"unmounted")},k)},ue=b=>{const{type:w,el:k,anchor:L,transition:$}=b;if(w===Ze){Ce(k,L);return}if(w===Jl){S(b);return}const F=()=>{s(k),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){const{leave:G,delayLeave:Y}=$,H=()=>G(k,F);Y?Y(b.el,F,H):H()}else F()},Ce=(b,w)=>{let k;for(;b!==w;)k=f(b),s(b),b=k;s(w)},Ne=(b,w,k)=>{const{bum:L,scope:$,job:F,subTree:G,um:Y,m:H,a:V}=b;bp(H),bp(V),L&&qa(L),$.stop(),F&&(F.flags|=8,ae(G,b,w,k)),Y&&Lt(Y,w),Lt(()=>{b.isUnmounted=!0},w)},He=(b,w,k,L=!1,$=!1,F=0)=>{for(let G=F;G<b.length;G++)ae(b[G],w,k,L,$)},x=b=>{if(b.shapeFlag&6)return x(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const w=f(b.anchor||b.el),k=w&&w[Uy];return k?f(k):w};let W=!1;const K=(b,w,k)=>{let L;b==null?w._vnode&&(ae(w._vnode,null,null,!0),L=w._vnode.component):m(w._vnode||null,b,w,null,null,null,k),w._vnode=b,W||(W=!0,op(L),$y(),W=!1)},ne={p:m,um:ae,m:ie,r:ue,mt:N,mc:C,pc:D,pbc:A,n:x,o:e};return{render:K,hydrate:void 0,createApp:R1(K)}}function Xl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Qr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function z1(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kf(e,t,n=!1){const r=e.children,s=t.children;if(fe(r)&&fe(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=kr(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&kf(o,a)),a.type===ea&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=i+(e.type===Ze?1:0)),a.type===_t&&!a.el&&(a.el=o.el)}}function q1(e){const t=e.slice(),n=[0];let r,s,i,o,a;const c=e.length;for(r=0;r<c;r++){const l=e[r];if(l!==0){if(s=n[n.length-1],e[s]<l){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<l?i=a+1:o=a;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function b_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:b_(t)}function bp(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function S_(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?S_(t.subTree):null}const E_=e=>e.__isSuspense;function G1(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):i1(e)}const Ze=Symbol.for("v-fgt"),ea=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Jl=Symbol.for("v-stc"),go=[];let Zt=null;function cn(e=!1){go.push(Zt=e?null:[])}function K1(){go.pop(),Zt=go[go.length-1]||null}let Mo=1;function wc(e,t=!1){Mo+=e,e<0&&Zt&&t&&(Zt.hasOnce=!0)}function w_(e){return e.dynamicChildren=Mo>0?Zt||ii:null,K1(),Mo>0&&Zt&&Zt.push(e),e}function C_(e,t,n,r,s,i){return w_(se(e,t,n,r,s,i,!0))}function Dn(e,t,n,r,s){return w_(B(e,t,n,r,s,!0))}function mi(e){return e?e.__v_isVNode===!0:!1}function os(e,t){return e.type===t.type&&e.key===t.key}const T_=({key:e})=>e??null,Ka=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||Je(e)||ve(e)?{i:St,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,r=0,s=null,i=e===Ze?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&T_(t),ref:t&&Ka(t),scopeId:Hy,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:St};return a?(If(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=rt(n)?8:16),Mo>0&&!o&&Zt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Zt.push(c),c}const B=Y1;function Y1(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===s_)&&(e=_t),mi(e)){const a=Fr(e,t,!0);return n&&If(a,n),Mo>0&&!i&&Zt&&(a.shapeFlag&6?Zt[Zt.indexOf(e)]=a:Zt.push(a)),a.patchFlag=-2,a}if(iC(e)&&(e=e.__vccOpts),t){t=X1(t);let{class:a,style:c}=t;a&&!rt(a)&&(t.class=Me(a)),ze(c)&&(ll(c)&&!fe(c)&&(c=dt({},c)),t.style=Xe(c))}const o=rt(e)?1:E_(e)?128:Wy(e)?64:ze(e)?4:ve(e)?2:0;return se(e,t,n,r,s,o,i,!0)}function X1(e){return e?ll(e)||p_(e)?dt({},e):e:null}function Fr(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=e,l=t?Qe(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&T_(l),ref:t&&t.ref?n&&i?fe(i)?i.concat(Ka(t)):[i,Ka(t)]:Ka(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ze?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fr(e.ssContent),ssFallback:e.ssFallback&&Fr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Cs(d,c.clone(d)),d}function ao(e=" ",t=0){return B(ea,null,e,t)}function ed(e="",t=!1){return t?(cn(),Dn(_t,null,e)):B(_t,null,e)}function On(e){return e==null||typeof e=="boolean"?B(_t):fe(e)?B(Ze,null,e.slice()):mi(e)?kr(e):B(ea,null,String(e))}function kr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fr(e)}function If(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),If(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!p_(t)?t._ctx=St:s===3&&St&&(St.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:St},n=32):(t=String(t),r&64?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function Qe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Me([t.class,r.class]));else if(s==="style")t.style=Xe([t.style,r.style]);else if(rl(s)){const i=t[s],o=r[s];o&&i!==o&&!(fe(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Rn(e,t,n,r=null){wn(e,t,7,[n,r])}const J1=u_();let Z1=0;function Q1(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||J1,i={uid:Z1++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new vy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:g_(r,s),emitsOptions:d_(r,s),emit:null,emitted:null,propsDefaults:Ve,inheritAttrs:r.inheritAttrs,ctx:Ve,data:Ve,props:Ve,attrs:Ve,slots:Ve,refs:Ve,setupState:Ve,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=M1.bind(null,i),e.ce&&e.ce(i),i}let xt=null;const Li=()=>xt||St;let Cc,td;{const e=al(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Cc=t("__VUE_INSTANCE_SETTERS__",n=>xt=n),td=t("__VUE_SSR_SETTERS__",n=>Po=n)}const ta=e=>{const t=xt;return Cc(e),e.scope.on(),()=>{e.scope.off(),Cc(t)}},Sp=()=>{xt&&xt.scope.off(),Cc(null)};function k_(e){return e.vnode.shapeFlag&4}let Po=!1;function eC(e,t=!1,n=!1){t&&td(t);const{props:r,children:s}=e.vnode,i=k_(e);F1(e,r,i,t),V1(e,s,n||t);const o=i?tC(e,t):void 0;return t&&td(!1),o}function tC(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,E1);const{setup:r}=n;if(r){rr();const s=e.setupContext=r.length>1?rC(e):null,i=ta(e),o=Qo(r,e,0,[e.props,s]),a=uy(o);if(sr(),i(),(a||e.sp)&&!ci(e)&&Zy(e),a){if(o.then(Sp,Sp),t)return o.then(c=>{Ep(e,c)}).catch(c=>{ul(c,e,0)});e.asyncDep=o}else Ep(e,o)}else I_(e)}function Ep(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ze(t)&&(e.setupState=Ly(t)),I_(e)}function I_(e,t,n){const r=e.type;e.render||(e.render=r.render||Bn);{const s=ta(e);rr();try{w1(e)}finally{sr(),s()}}}const nC={get(e,t){return It(e,"get",""),e[t]}};function rC(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nC),slots:e.slots,emit:e.emit,expose:t}}function gl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ly(yf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mo)return mo[n](e)},has(t,n){return n in t||n in mo}})):e.proxy}function sC(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function iC(e){return ve(e)&&"__vccOpts"in e}const j=(e,t)=>e1(e,t,Po);function zr(e,t,n){try{wc(-1);const r=arguments.length;return r===2?ze(t)&&!fe(t)?mi(t)?B(e,null,[t]):B(e,t):B(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&mi(n)&&(n=[n]),B(e,t,n))}finally{wc(1)}}const oC="3.5.27";/**
* @vue/runtime-dom v3.5.27
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let nd;const wp=typeof window<"u"&&window.trustedTypes;if(wp)try{nd=wp.createPolicy("vue",{createHTML:e=>e})}catch{}const x_=nd?e=>nd.createHTML(e):e=>e,aC="http://www.w3.org/2000/svg",cC="http://www.w3.org/1998/Math/MathML",Gn=typeof document<"u"?document:null,Cp=Gn&&Gn.createElement("template"),lC={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Gn.createElementNS(aC,e):t==="mathml"?Gn.createElementNS(cC,e):n?Gn.createElement(e,{is:n}):Gn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Gn.createTextNode(e),createComment:e=>Gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Cp.innerHTML=x_(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Cp.content;if(r==="svg"||r==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yr="transition",Qi="animation",gi=Symbol("_vtc"),R_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},A_=dt({},Gy,R_),uC=e=>(e.displayName="Transition",e.props=A_,e),$r=uC((e,{slots:t})=>zr(h1,M_(e),t)),es=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tp=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function M_(e){const t={};for(const T in e)T in R_||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=dC(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:S,onLeaveCancelled:M,onBeforeAppear:R=g,onAppear:E=y,onAppearCancelled:C=_}=t,I=(T,P,N,z)=>{T._enterCancelled=z,Sr(T,P?d:a),Sr(T,P?l:o),N&&N()},A=(T,P)=>{T._isLeaving=!1,Sr(T,u),Sr(T,h),Sr(T,f),P&&P()},O=T=>(P,N)=>{const z=T?E:y,X=()=>I(P,T,N);es(z,[P,X]),kp(()=>{Sr(P,T?c:i),An(P,T?d:a),Tp(z)||Ip(P,r,m,X)})};return dt(t,{onBeforeEnter(T){es(g,[T]),An(T,i),An(T,o)},onBeforeAppear(T){es(R,[T]),An(T,c),An(T,l)},onEnter:O(!1),onAppear:O(!0),onLeave(T,P){T._isLeaving=!0;const N=()=>A(T,P);An(T,u),T._enterCancelled?(An(T,f),rd(T)):(rd(T),An(T,f)),kp(()=>{T._isLeaving&&(Sr(T,u),An(T,h),Tp(S)||Ip(T,r,v,N))}),es(S,[T,N])},onEnterCancelled(T){I(T,!1,void 0,!0),es(_,[T])},onAppearCancelled(T){I(T,!0,void 0,!0),es(C,[T])},onLeaveCancelled(T){A(T),es(M,[T])}})}function dC(e){if(e==null)return null;if(ze(e))return[Zl(e.enter),Zl(e.leave)];{const t=Zl(e);return[t,t]}}function Zl(e){return ww(e)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[gi]||(e[gi]=new Set)).add(t)}function Sr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[gi];n&&(n.delete(t),n.size||(e[gi]=void 0))}function kp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let fC=0;function Ip(e,t,n,r){const s=e._endId=++fC,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=P_(e,t);if(!o)return r();const l=o+"end";let d=0;const u=()=>{e.removeEventListener(l,f),i()},f=h=>{h.target===e&&++d>=c&&u()};setTimeout(()=>{d<c&&u()},a+1),e.addEventListener(l,f)}function P_(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${yr}Delay`),i=r(`${yr}Duration`),o=xp(s,i),a=r(`${Qi}Delay`),c=r(`${Qi}Duration`),l=xp(a,c);let d=null,u=0,f=0;t===yr?o>0&&(d=yr,u=o,f=i.length):t===Qi?l>0&&(d=Qi,u=l,f=c.length):(u=Math.max(o,l),d=u>0?o>l?yr:Qi:null,f=d?d===yr?i.length:c.length:0);const h=d===yr&&/\b(?:transform|all)(?:,|$)/.test(r(`${yr}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:h}}function xp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Rp(n)+Rp(e[r])))}function Rp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rd(e){return(e?e.ownerDocument:document).body.offsetHeight}function hC(e,t,n){const r=e[gi];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Tc=Symbol("_vod"),O_=Symbol("_vsh"),xf={name:"show",beforeMount(e,{value:t},{transition:n}){e[Tc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):eo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),eo(e,!0),r.enter(e)):r.leave(e,()=>{eo(e,!1)}):eo(e,t))},beforeUnmount(e,{value:t}){eo(e,t)}};function eo(e,t){e.style.display=t?e[Tc]:"none",e[O_]=!t}const pC=Symbol(""),mC=/(?:^|;)\s*display\s*:/;function gC(e,t,n){const r=e.style,s=rt(n);let i=!1;if(n&&!s){if(t)if(rt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ya(r,a,"")}else for(const o in t)n[o]==null&&Ya(r,o,"");for(const o in n)o==="display"&&(i=!0),Ya(r,o,n[o])}else if(s){if(t!==n){const o=r[pC];o&&(n+=";"+o),r.cssText=n,i=mC.test(n)}}else t&&e.removeAttribute("style");Tc in e&&(e[Tc]=i?r.display:"",e[O_]&&(r.display="none"))}const Ap=/\s*!important$/;function Ya(e,t,n){if(fe(n))n.forEach(r=>Ya(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=vC(e,t);Ap.test(n)?e.setProperty(Wr(r),n.replace(Ap,""),"important"):e[r]=n}}const Mp=["Webkit","Moz","ms"],Ql={};function vC(e,t){const n=Ql[t];if(n)return n;let r=$t(t);if(r!=="filter"&&r in e)return Ql[t]=r;r=Oi(r);for(let s=0;s<Mp.length;s++){const i=Mp[s]+r;if(i in e)return Ql[t]=i}return t}const Pp="http://www.w3.org/1999/xlink";function Op(e,t,n,r,s,i=Rw(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pp,t.slice(6,t.length)):e.setAttributeNS(Pp,t,n):n==null||i&&!py(n)?e.removeAttribute(t):e.setAttribute(t,i?"":hr(n)?String(n):n)}function Lp(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?x_(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=py(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Gs(e,t,n,r){e.addEventListener(t,n,r)}function yC(e,t,n,r){e.removeEventListener(t,n,r)}const Np=Symbol("_vei");function _C(e,t,n,r,s=null){const i=e[Np]||(e[Np]={}),o=i[t];if(r&&o)o.value=r;else{const[a,c]=bC(t);if(r){const l=i[t]=wC(r,s);Gs(e,a,l,c)}else o&&(yC(e,a,o,c),i[t]=void 0)}}const Dp=/(?:Once|Passive|Capture)$/;function bC(e){let t;if(Dp.test(e)){t={};let r;for(;r=e.match(Dp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wr(e.slice(2)),t]}let eu=0;const SC=Promise.resolve(),EC=()=>eu||(SC.then(()=>eu=0),eu=Date.now());function wC(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wn(CC(r,n.value),t,5,[r])};return n.value=e,n.attached=EC(),n}function CC(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Fp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,TC=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?hC(e,r,o):t==="style"?gC(e,n,r):rl(t)?cf(t)||_C(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kC(e,t,r,o))?(Lp(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Op(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!rt(r))?Lp(e,$t(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Op(e,t,r,o))};function kC(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fp(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Fp(t)&&rt(n)?!1:t in e}const L_=new WeakMap,N_=new WeakMap,kc=Symbol("_moveCb"),$p=Symbol("_enterCb"),IC=e=>(delete e.props.mode,e),xC=IC({name:"TransitionGroup",props:dt({},A_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Li(),r=qy();let s,i;return wf(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!PC(s[0].el,n.vnode.el,o)){s=[];return}s.forEach(RC),s.forEach(AC);const a=s.filter(MC);rd(n.vnode.el),a.forEach(c=>{const l=c.el,d=l.style;An(l,o),d.transform=d.webkitTransform=d.transitionDuration="";const u=l[kc]=f=>{f&&f.target!==l||(!f||f.propertyName.endsWith("transform"))&&(l.removeEventListener("transitionend",u),l[kc]=null,Sr(l,o))};l.addEventListener("transitionend",u)}),s=[]}),()=>{const o=de(e),a=M_(o);let c=o.tag||Ze;if(s=[],i)for(let l=0;l<i.length;l++){const d=i[l];d.el&&d.el instanceof Element&&(s.push(d),Cs(d,Ao(d,a,r,n)),L_.set(d,{left:d.el.offsetLeft,top:d.el.offsetTop}))}i=t.default?Ef(t.default()):[];for(let l=0;l<i.length;l++){const d=i[l];d.key!=null&&Cs(d,Ao(d,a,r,n))}return B(c,null,i)}}}),Rf=xC;function RC(e){const t=e.el;t[kc]&&t[kc](),t[$p]&&t[$p]()}function AC(e){N_.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function MC(e){const t=L_.get(e),n=N_.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function PC(e,t,n){const r=e.cloneNode(),s=e[gi];s&&s.forEach(a=>{a.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=P_(r);return i.removeChild(r),o}const Bp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>qa(t,n):t};function OC(e){e.target.composing=!0}function Hp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const tu=Symbol("_assign");function Vp(e,t,n){return t&&(e=e.trim()),n&&(e=uf(e)),e}const $3={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[tu]=Bp(s);const i=r||s.props&&s.props.type==="number";Gs(e,t?"change":"input",o=>{o.target.composing||e[tu](Vp(e.value,n,i))}),(n||i)&&Gs(e,"change",()=>{e.value=Vp(e.value,n,i)}),t||(Gs(e,"compositionstart",OC),Gs(e,"compositionend",Hp),Gs(e,"change",Hp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[tu]=Bp(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?uf(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},LC=["ctrl","shift","alt","meta"],NC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>LC.some(n=>e[`${n}Key`]&&!t.includes(n))},B3=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=NC[t[o]];if(a&&a(s,t))return}return e(s,...i)})},DC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},H3=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Wr(s.key);if(t.some(o=>o===i||DC[o]===i))return e(s)})},FC=dt({patchProp:TC},lC);let Up;function $C(){return Up||(Up=W1(FC))}const BC=(...e)=>{const t=$C().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=VC(r);if(!s)return;const i=t._component;!ve(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,HC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function HC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function VC(e){return rt(e)?document.querySelector(e):e}function V3(e){}function D_(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const et=typeof window<"u",Af=et&&"IntersectionObserver"in window,UC=et&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),F_=et&&"matchMedia"in window&&typeof window.matchMedia=="function",Oo=()=>F_&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Wp(e,t,n){WC(e,t),t.set(e,n)}function WC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jp(e,t,n){return e.set($_(e,t),n),n}function Wn(e,t){return e.get($_(e,t))}function $_(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function B_(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function sd(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),B_(e,t.split("."),n))}function Nn(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return sd(e,t,n);if(Array.isArray(t))return B_(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function H_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function id(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function zp(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Mf(e){if(e&&"$el"in e){const t=e.$el;return(t==null?void 0:t.nodeType)===Node.TEXT_NODE?t.nextElementSibling:t}return e}const U3=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function W3(e){return Object.keys(e)}function nu(e,t){return t.every(n=>e.hasOwnProperty(n))}function Pf(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function qp(e,t,n){const r=Object.create(null),s=Object.create(null);for(const i in e)t.some(o=>o instanceof RegExp?o.test(i):o===i)?r[i]=e[i]:s[i]=e[i];return[r,s]}function As(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const V_=/^on[^a-z]/,U_=e=>V_.test(e),jC=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],zC=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function j3(e){return e.isComposing&&zC.includes(e.key)}function z3(e){const[t,n]=qp(e,[V_]),r=As(t,jC),[s,i]=qp(n,["class","style","id","inert",/^data-/]);return Object.assign(s,t),Object.assign(i,r),[s,i]}function Of(e){return e==null?[]:Array.isArray(e)?e:[e]}function q3(e,t){let n=0;const r=function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>e(...i),Ut(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function or(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function Gp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function Kp(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function qC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function G3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<t)return`${e} B`;const n=t===1024?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;for(;Math.abs(e)>=t&&r<n.length-1;)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function Rt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const s in e)r[s]=e[s];for(const s in t){const i=e[s],o=t[s];if(zp(i)&&zp(o)){r[s]=Rt(i,o,n);continue}if(n&&Array.isArray(i)&&Array.isArray(o)){r[s]=n(i,o);continue}r[s]=o}return r}function W_(e){return e.map(t=>t.type===Ze?W_(t.children):t).flat()}function ms(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(ms.cache.has(e))return ms.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ms.cache.set(e,t),t}ms.cache=new Map;function Zs(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Zs(e,n)).flat(1);if(t.suspense)return Zs(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Zs(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Zs(e,t.component.subTree).flat(1)}return[]}var $s=new WeakMap,ts=new WeakMap;class GC{constructor(t){Wp(this,$s,[]),Wp(this,ts,0),this.size=t}get isFull(){return Wn($s,this).length===this.size}push(t){Wn($s,this)[Wn(ts,this)]=t,jp(ts,this,(Wn(ts,this)+1)%this.size)}values(){return Wn($s,this).slice(Wn(ts,this)).concat(Wn($s,this).slice(0,Wn(ts,this)))}clear(){Wn($s,this).length=0,jp(ts,this,0)}}function Lf(e){const t=pt({});hn(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=ee(()=>t[r]);return n}function Ic(e,t){return e.includes(t)}function j_(e){return e[2].toLowerCase()+e.slice(3)}const vo=()=>[Function,Array];function Yp(e,t){return t="on"+Oi(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function K3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const s of e)s(...n);else typeof e=="function"&&e(...n)}function yo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>{var i,o;return!((i=s.parentElement)!=null&&i.closest("details:not([open])"))||s.tagName==="SUMMARY"&&((o=s.parentElement)==null?void 0:o.tagName)==="DETAILS"})}function KC(e,t,n){let r,s=e.indexOf(document.activeElement);const i=t==="next"?1:-1;do s+=i,r=e[s];while((!r||r.offsetParent==null||!((n==null?void 0:n(r))??!0))&&s<e.length&&s>=0);return r}function z_(e,t){var r,s,i,o;const n=yo(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&((r=n[0])==null||r.focus());else if(t==="first")(s=n[0])==null||s.focus();else if(t==="last")(i=n.at(-1))==null||i.focus();else if(typeof t=="number")(o=n[t])==null||o.focus();else{const a=KC(n,t);a?a.focus():z_(e,t==="next"?"first":"last")}}function Y3(e){return e==null||typeof e=="string"&&e.trim()===""}function X3(){}function YC(e,t){if(!(et&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function XC(e){return e.some(t=>mi(t)?t.type===_t?!1:t.type!==Ze||XC(t.children):!0)?e:null}function JC(e,t){if(!et||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function J3(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),i=s.left,o=s.top,a=s.right,c=s.bottom;return n>=i&&n<=a&&r>=o&&r<=c}function od(){const e=be(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Mf(e.value)}),t}function Z3(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Ts(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function Q3(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function e4(e){const t={};for(const n in e)t[$t(n)]=e[n];return t}function ZC(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,s]=n;return t.includes(r)?!!s:s!==void 0}))}const q_=["top","bottom"],QC=["start","end","left","right"];function ad(e,t){let[n,r]=e.split(" ");return r||(r=Ic(q_,n)?"start":Ic(QC,n)?"top":"center"),{side:Xp(n,t),align:Xp(r,t)}}function Xp(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function ru(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function su(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Jp(e){return{side:e.align,align:e.side}}function Zp(e){return Ic(q_,e.side)?"y":"x"}class ln{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,s=r?1+(1-n)/n:1,{x:i,y:o,width:a,height:c}=r?t.getBoundingClientRect():t;this.x=i*s,this.y=o*s,this.width=a*s,this.height=c*s}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Qp(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function G_(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new ln({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new ln(e)}function eT(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new ln({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/t,height:visualViewport.height*visualViewport.scale/t})}else return new ln({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new ln(e)}function K_(e){const t=new ln(e),n=getComputedStyle(e),r=n.transform;if(r){let s,i,o,a,c;if(r.startsWith("matrix3d("))s=r.slice(9,-1).split(/, /),i=Number(s[0]),o=Number(s[5]),a=Number(s[12]),c=Number(s[13]);else if(r.startsWith("matrix("))s=r.slice(7,-1).split(/, /),i=Number(s[0]),o=Number(s[3]),a=Number(s[4]),c=Number(s[5]);else return new ln(t);const l=n.transformOrigin,d=t.x-a-(1-i)*parseFloat(l),u=t.y-c-(1-o)*parseFloat(l.slice(l.indexOf(" ")+1)),f=i?t.width/i:e.offsetWidth+1,h=o?t.height/o:e.offsetHeight+1;return new ln({x:d,y:u,width:f,height:h})}else return new ln(t)}function ss(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(s=>{r.onfinish=()=>{s(r)}})),r}const Xa=new WeakMap;function tT(e,t){Object.keys(t).forEach(n=>{if(U_(n)){const r=j_(n),s=Xa.get(e);if(t[n]==null)s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))});else if(!s||![...s].some(i=>i[0]===r&&i[1]===t[n])){e.addEventListener(r,t[n]);const i=s||new Set;i.add([r,t[n]]),Xa.has(e)||Xa.set(e,i)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function nT(e,t){Object.keys(t).forEach(n=>{if(U_(n)){const r=j_(n),s=Xa.get(e);s==null||s.forEach(i=>{const[o,a]=i;o===r&&(e.removeEventListener(r,a),s.delete(i))})}else e.removeAttribute(n)})}const Bs=2.4,em=.2126729,tm=.7151522,nm=.072175,rT=.55,sT=.58,iT=.57,oT=.62,Ra=.03,rm=1.45,aT=5e-4,cT=1.25,lT=1.25,sm=.078,im=12.82051282051282,Aa=.06,om=.001;function am(e,t){const n=(e.r/255)**Bs,r=(e.g/255)**Bs,s=(e.b/255)**Bs,i=(t.r/255)**Bs,o=(t.g/255)**Bs,a=(t.b/255)**Bs;let c=n*em+r*tm+s*nm,l=i*em+o*tm+a*nm;if(c<=Ra&&(c+=(Ra-c)**rm),l<=Ra&&(l+=(Ra-l)**rm),Math.abs(l-c)<aT)return 0;let d;if(l>c){const u=(l**rT-c**sT)*cT;d=u<om?0:u<sm?u-u*im*Aa:u-Aa}else{const u=(l**oT-c**iT)*lT;d=u>-om?0:u>-sm?u-u*im*Aa:u+Aa}return d*100}const xc=.20689655172413793,uT=e=>e>xc**3?Math.cbrt(e):e/(3*xc**2)+4/29,dT=e=>e>xc?e**3:3*xc**2*(e-4/29);function Y_(e){const t=uT,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function X_(e){const t=dT,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const fT=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],hT=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,pT=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],mT=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function J_(e){const t=Array(3),n=hT,r=fT;for(let s=0;s<3;++s)t[s]=Math.round(or(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function Nf(e){let{r:t,g:n,b:r}=e;const s=[0,0,0],i=mT,o=pT;t=i(t/255),n=i(n/255),r=i(r/255);for(let a=0;a<3;++a)s[a]=o[a][0]*t+o[a][1]*n+o[a][2]*r;return s}function cd(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function gT(e){return cd(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const cm=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,vT={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>lm({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>lm({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>Lo({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>Lo({h:e,s:t,v:n,a:r})};function Fn(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&cm.test(e)){const{groups:t}=e.match(cm),{fn:n,values:r}=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((i,o)=>i.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return vT[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),_T(t)}else if(typeof e=="object"){if(nu(e,["r","g","b"]))return e;if(nu(e,["h","s","l"]))return Lo(Z_(e));if(nu(e,["h","s","v"]))return Lo(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Lo(e){const{h:t,s:n,v:r,a:s}=e,i=a=>{const c=(a+t/60)%6;return r-r*n*Math.max(Math.min(c,4-c,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:s}}function lm(e){return Lo(Z_(e))}function Z_(e){const{h:t,s:n,l:r,a:s}=e,i=r+n*Math.min(r,1-r),o=i===0?0:2-2*r/i;return{h:t,s:o,v:i,a:s}}function Ma(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function yT(e){let{r:t,g:n,b:r,a:s}=e;return`#${[Ma(t),Ma(n),Ma(r),s!==void 0?Ma(Math.round(s*255)):""].join("")}`}function _T(e){e=bT(e);let[t,n,r,s]=qC(e,2).map(i=>parseInt(i,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function bT(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=Gp(Gp(e,6),8,"F")),e}function ST(e,t){const n=Y_(Nf(e));return n[0]=n[0]+t*10,J_(X_(n))}function ET(e,t){const n=Y_(Nf(e));return n[0]=n[0]-t*10,J_(X_(n))}function wT(e){const t=Fn(e);return Nf(t)[1]}function Q_(e){const t=Math.abs(am(Fn(0),Fn(e)));return Math.abs(am(Fn(16777215),Fn(e)))>Math.min(t,50)?"#fff":"#000"}function le(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const ct=le({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function mt(e,t){const n=Li();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function qr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=mt(e).type;return ms((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}function CT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const vi=Symbol.for("vuetify:defaults");function TT(e){return we(e)}function Df(){const e=Oe(vi);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function vl(e,t){const n=Df(),r=we(e),s=j(()=>{if(Ut(t==null?void 0:t.disabled))return n.value;const o=Ut(t==null?void 0:t.scoped),a=Ut(t==null?void 0:t.reset),c=Ut(t==null?void 0:t.root);if(r.value==null&&!(o||a||c))return n.value;let l=Rt(r.value,{prev:n.value});if(o)return l;if(a||c){const d=Number(a||1/0);for(let u=0;u<=d&&!(!l||!("prev"in l));u++)l=l.prev;return l&&typeof c=="string"&&c in l&&(l=Rt(Rt(l,{prev:l}),l[c])),l}return l.prev?Rt(l.prev,l):l});return At(vi,s),s}function kT(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[ms(t)]<"u")}function IT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Df();const r=mt("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=j(()=>{var c;return(c=n.value)==null?void 0:c[e._as??t]}),i=new Proxy(e,{get(c,l){var h,p,m,v;const d=Reflect.get(c,l);if(l==="class"||l==="style")return[(h=s.value)==null?void 0:h[l],d].filter(g=>g!=null);if(kT(r.vnode,l))return d;const u=(p=s.value)==null?void 0:p[l];if(u!==void 0)return u;const f=(v=(m=n.value)==null?void 0:m.global)==null?void 0:v[l];return f!==void 0?f:d}}),o=be();hn(()=>{if(s.value){const c=Object.entries(s.value).filter(l=>{let[d]=l;return d.startsWith(d[0].toUpperCase())});o.value=c.length?Object.fromEntries(c):void 0}else o.value=void 0});function a(){const c=CT(vi,r);At(vi,j(()=>o.value?Rt((c==null?void 0:c.value)??{},o.value):c==null?void 0:c.value))}return{props:i,provideSubDefaults:a}}function Ni(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=le(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return Pf(r,t)},e.props._as=String,e.setup=function(r,s){const i=Df();if(!i.value)return e._setup(r,s);const{props:o,provideSubDefaults:a}=IT(r,r._as??e.name,i),c=e._setup(o,s);return a(),c}}return e}function De(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Ni:dl)(t)}function t4(e,t){return t.props=e,t}function Ff(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return De()({name:n??Oi($t(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...ct()},setup(r,s){let{slots:i}=s;return()=>{var o;return zr(r.tag,{class:[e,r.class],style:r.style},(o=i.default)==null?void 0:o.call(i))}}})}function xT(e,t,n,r){if(!n||Ts(e)||Ts(t))return;const s=n.get(e);if(s)s.set(t,r);else{const i=new WeakMap;i.set(t,r),n.set(e,i)}}function RT(e,t,n){var i,o;if(!n||Ts(e)||Ts(t))return null;const r=(i=n.get(e))==null?void 0:i.get(t);if(typeof r=="boolean")return r;const s=(o=n.get(t))==null?void 0:o.get(e);return typeof s=="boolean"?s:null}function gs(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;const s=RT(e,t,n);return s||(xT(e,t,n,!0),r.every(i=>gs(e[i],t[i],n)))}function eb(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const ld="cubic-bezier(0.4, 0, 0.2, 1)",um="cubic-bezier(0.0, 0, 0.2, 1)",dm="cubic-bezier(0.4, 0, 1, 1)",AT={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function MT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?PT(e):$f(e))return e;e=e.parentElement}return document.scrollingElement}function Rc(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&($f(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function $f(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n=t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight,r=t.overflowX==="scroll"||t.overflowX==="auto"&&e.scrollWidth>e.clientWidth;return n||r}function PT(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function OT(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function tt(e){const t=mt("useRender");t.render=e}function LT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,s=0,i=!1,o=0;function a(){clearTimeout(r),i=!1,o=0}const c=function(){for(var l=arguments.length,d=new Array(l),u=0;u<l;u++)d[u]=arguments[u];clearTimeout(r);const f=Date.now();o||(o=f);const h=f-Math.max(o,s);function p(){s=Date.now(),r=setTimeout(a,t),e(...d)}i?h>=t?p():n.trailing&&(r=setTimeout(p,t-h)):(i=!0,n.leading&&p())};return c.clear=a,c.immediate=e,c}const Et=[String,Function,Object,Array],ud=Symbol.for("vuetify:icons"),yl=le({icon:{type:Et},tag:{type:[String,Object,Function],required:!0}},"icon"),fm=De()({name:"VComponentIcon",props:yl(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return B(e.tag,null,{default:()=>{var s;return[e.icon?B(r,null,null):(s=n.default)==null?void 0:s.call(n)]}})}}}),tb=Ni({name:"VSvgIcon",inheritAttrs:!1,props:yl(),setup(e,t){let{attrs:n}=t;return()=>B(e.tag,Qe(n,{style:null}),{default:()=>[se("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?se("path",{d:r[0],"fill-opacity":r[1]},null):se("path",{d:r},null)):se("path",{d:e.icon},null)])]})}});Ni({name:"VLigatureIcon",props:yl(),setup(e){return()=>B(e.tag,null,{default:()=>[e.icon]})}});const nb=Ni({name:"VClassIcon",props:yl(),setup(e){return()=>B(e.tag,{class:Me(e.icon)},null)}}),NT=e=>{const t=Oe(ud);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:j(()=>{var c;const r=bt(e);if(!r)return{component:fm};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=(c=t.aliases)==null?void 0:c[s.slice(1)])),Array.isArray(s))return{component:tb,icon:s};if(typeof s!="string")return{component:fm,icon:s};const i=Object.keys(t.sets).find(l=>typeof s=="string"&&s.startsWith(`${l}:`)),o=i?s.slice(i.length+1):s;return{component:t.sets[i??t.defaultSet].component,icon:o}})}},DT={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off"},FT={component:e=>zr(nb,{...e,class:"mdi"})};function $T(){return{svg:{component:tb},class:{component:nb}}}function BT(e){const t=$T(),n=(e==null?void 0:e.defaultSet)??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=FT),Rt({defaultSet:n,sets:t,aliases:{...DT,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function Di(e,t){let n;function r(){n=Es(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}Se(e,s=>{s&&!n?r():s||(n==null||n.stop(),n=void 0)},{immediate:!0}),Ct(()=>{n==null||n.stop()})}function Zn(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:u=>u,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:u=>u;const i=mt("useProxiedModel"),o=we(e[t]!==void 0?e[t]:n),a=ms(t),l=j(a!==t?()=>{var u,f,h,p;return e[t],!!(((u=i.vnode.props)!=null&&u.hasOwnProperty(t)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${t}`)||(p=i.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var u,f;return e[t],!!((u=i.vnode.props)!=null&&u.hasOwnProperty(t)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${t}`)))});Di(()=>!l.value,()=>{Se(()=>e[t],u=>{o.value=u})});const d=j({get(){const u=e[t];return r(l.value?u:o.value)},set(u){const f=s(u),h=de(l.value?e[t]:o.value);h===f||r(h)===u||(o.value=f,i==null||i.emit(`update:${t}`,f))}});return Object.defineProperty(d,"externalValue",{get:()=>l.value?e[t]:o.value}),d}const HT={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},hm="$vuetify.",pm=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),rb=(e,t,n)=>function(r){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];if(!r.startsWith(hm))return pm(r,i);const a=r.replace(hm,""),c=e.value&&n.value[e.value],l=t.value&&n.value[t.value];let d=sd(c,a,null);return d||(`${r}${e.value}`,d=sd(l,a,null)),d||(d=r),typeof d!="string"&&(d=r),pm(d,i)};function Bf(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function sb(e,t){return Bf(e,t)(.1).includes(",")?",":"."}function iu(e,t,n){const r=Zn(e,t,e[t]??n.value);return r.value=e[t]??n.value,Se(n,s=>{e[t]==null&&(r.value=n.value)}),r}function ib(e){return t=>{const n=iu(t,"locale",e.current),r=iu(t,"fallback",e.fallback),s=iu(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:ee(()=>sb(n,r)),t:rb(n,r,s),n:Bf(n,r),provide:ib({current:n,fallback:r,messages:s})}}}function VT(e){const t=be((e==null?void 0:e.locale)??"en"),n=be((e==null?void 0:e.fallback)??"en"),r=we({en:HT,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:ee(()=>(e==null?void 0:e.decimalSeparator)??sb(t,n)),t:rb(t,n,r),n:Bf(t,n),provide:ib({current:t,fallback:n,messages:r})}}const Ac=Symbol.for("vuetify:locale");function UT(e){return e.name!=null}function WT(e){const t=e!=null&&e.adapter&&UT(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:VT(e),n=qT(t,e);return{...t,...n}}function jT(){const e=Oe(Ac);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function zT(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function qT(e,t){const n=we((t==null?void 0:t.rtl)??zT()),r=j(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:ee(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function na(){const e=Oe(Ac);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}function ra(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function GT(e,t,n){var d;const r=[];let s=[];const i=ob(e),o=ab(e),a=n??((d=ra(t))==null?void 0:d.firstDay)??0,c=(i.getDay()-a+7)%7,l=(o.getDay()-a+7)%7;for(let u=0;u<c;u++){const f=new Date(i);f.setDate(f.getDate()-(c-u)),s.push(f)}for(let u=1;u<=o.getDate();u++){const f=new Date(e.getFullYear(),e.getMonth(),u);s.push(f),s.length===7&&(r.push(s),s=[])}for(let u=1;u<7-l;u++){const f=new Date(o);f.setDate(f.getDate()+u),s.push(f)}return s.length>0&&r.push(s),r}function _o(e,t,n){var i;let r=(n??((i=ra(t))==null?void 0:i.firstDay)??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function KT(e,t){var s;const n=new Date(e),r=((((s=ra(t))==null?void 0:s.firstDay)??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function ob(e){return new Date(e.getFullYear(),e.getMonth(),1)}function ab(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function YT(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const XT=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function cb(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(XT.test(e))return YT(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const mm=new Date(2e3,0,2);function JT(e,t,n){var s;const r=t??((s=ra(e))==null?void 0:s.firstDay)??0;return H_(7).map(i=>{const o=new Date(mm);return o.setDate(mm.getDate()+r+i),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function ZT(e,t,n,r){const s=cb(e)??new Date,i=r==null?void 0:r[t];if(typeof i=="function")return i(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const a=s.getDate(),c=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${a} ${c}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function QT(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=Kp(String(n.getMonth()+1),2,"0"),i=Kp(String(n.getDate()),2,"0");return`${r}-${s}-${i}`}function ek(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function tk(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function nk(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function vs(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function rk(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function sk(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function No(e){return e.getFullYear()}function ik(e){return e.getMonth()}function ok(e,t,n,r){const s=ra(t),i=n??(s==null?void 0:s.firstDay)??0,o=(s==null?void 0:s.firstWeekSize)??1;return r!==void 0?ak(e,t,i,r):ck(e,t,i,o)}function ak(e,t,n,r){const s=(7+r-n)%7,i=_o(e,t,n),o=vs(i,6);function a(f){return(7+new Date(f,0,1).getDay()-n)%7}let c=No(i);c<No(o)&&a(c+1)<=s&&c++;const l=new Date(c,0,1),d=a(c),u=d<=s?vs(l,-d):vs(l,7-d);return 1+Pc(Hf(i),Do(u),"weeks")}function ck(e,t,n,r){const s=_o(e,t,n),i=vs(_o(e,t,n),6);function o(u){const f=new Date(u,0,1);return 7-Pc(f,_o(f,t,n),"days")}let a=No(s);a<No(i)&&o(a+1)>=r&&a++;const c=new Date(a,0,1),l=o(a),d=l>=r?vs(c,l-7):vs(c,l);return 1+Pc(Hf(s),Do(d),"weeks")}function lk(e){return e.getDate()}function uk(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function dk(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function fk(e){return e.getHours()}function hk(e){return e.getMinutes()}function pk(e){return new Date(e.getFullYear(),0,1)}function mk(e){return new Date(e.getFullYear(),11,31)}function gk(e,t){return Mc(e,t[0])&&_k(e,t[1])}function vk(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Mc(e,t){return e.getTime()>t.getTime()}function yk(e,t){return Mc(Do(e),Do(t))}function _k(e,t){return e.getTime()<t.getTime()}function gm(e,t){return e.getTime()===t.getTime()}function bk(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Sk(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function Ek(e,t){return e.getFullYear()===t.getFullYear()}function Pc(e,t,n){const r=new Date(e),s=new Date(t);switch(n){case"years":return r.getFullYear()-s.getFullYear();case"quarters":return Math.floor((r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12)/4);case"months":return r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-s.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-s.getTime())/1e3);default:return r.getTime()-s.getTime()}}function wk(e,t){const n=new Date(e);return n.setHours(t),n}function Ck(e,t){const n=new Date(e);return n.setMinutes(t),n}function Tk(e,t){const n=new Date(e);return n.setMonth(t),n}function kk(e,t){const n=new Date(e);return n.setDate(t),n}function Ik(e,t){const n=new Date(e);return n.setFullYear(t),n}function Do(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function Hf(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class xk{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return cb(t)}toJsDate(t){return t}toISO(t){return QT(this,t)}parseISO(t){return ek(t)}addMinutes(t,n){return tk(t,n)}addHours(t,n){return nk(t,n)}addDays(t,n){return vs(t,n)}addWeeks(t,n){return rk(t,n)}addMonths(t,n){return sk(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return GT(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return _o(t,this.locale,r)}endOfWeek(t){return KT(t,this.locale)}startOfMonth(t){return ob(t)}endOfMonth(t){return ab(t)}format(t,n){return ZT(t,n,this.locale,this.formats)}isEqual(t,n){return gm(t,n)}isValid(t){return vk(t)}isWithinRange(t,n){return gk(t,n)}isAfter(t,n){return Mc(t,n)}isAfterDay(t,n){return yk(t,n)}isBefore(t,n){return!Mc(t,n)&&!gm(t,n)}isSameDay(t,n){return bk(t,n)}isSameMonth(t,n){return Sk(t,n)}isSameYear(t,n){return Ek(t,n)}setMinutes(t,n){return Ck(t,n)}setHours(t,n){return wk(t,n)}setMonth(t,n){return Tk(t,n)}setDate(t,n){return kk(t,n)}setYear(t,n){return Ik(t,n)}getDiff(t,n,r){return Pc(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return JT(this.locale,r,n)}getYear(t){return No(t)}getMonth(t){return ik(t)}getWeek(t,n,r){const s=n!==void 0?Number(n):void 0,i=r!==void 0?Number(r):void 0;return ok(t,this.locale,s,i)}getDate(t){return lk(t)}getNextMonth(t){return uk(t)}getPreviousMonth(t){return dk(t)}getHours(t){return fk(t)}getMinutes(t){return hk(t)}startOfDay(t){return Do(t)}endOfDay(t){return Hf(t)}startOfYear(t){return pk(t)}endOfYear(t){return mk(t)}}const lb=Symbol.for("vuetify:date-options"),vm=Symbol.for("vuetify:date-adapter");function Rk(e,t){const n=Rt({adapter:xk,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:ub(n,t)}}function n4(e,t,n){const r=Ak(e,t,n),s=[t];for(let i=1;i<r;i++){const o=e.addDays(t,i);s.push(o)}return n&&s.push(e.endOfDay(n)),s}function Ak(e,t,n){const r=[`${e.toISO(n??t).split("T")[0]}T00:00:00Z`,`${e.toISO(t).split("T")[0]}T00:00:00Z`];return typeof e.date()=="string"?e.getDiff(r[0],r[1],"days"):e.getDiff(e.date(r[0]),e.date(r[1]),"days")}function ub(e,t){const n=pt(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return Se(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}function r4(){const e=Oe(lb);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=jT();return ub(e,t)}const s4=["sm","md","lg","xl","xxl"],dd=Symbol.for("vuetify:display"),ym={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},Mk=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ym;return Rt(ym,e)};function _m(e){return et&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function bm(e){return et&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function Sm(e){const t=et&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),c=n(/edge/i),l=n(/firefox/i),d=n(/opera/i),u=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:r,ios:s,cordova:i,electron:o,chrome:a,edge:c,firefox:l,opera:d,win:u,mac:f,linux:h,touch:UC,ssr:t==="ssr"}}function Pk(e,t){const{thresholds:n,mobileBreakpoint:r}=Mk(e),s=be(bm(t)),i=be(Sm(t)),o=pt({}),a=be(_m(t));function c(){s.value=bm(),a.value=_m()}function l(){c(),i.value=Sm()}return hn(()=>{const d=a.value<n.sm,u=a.value<n.md&&!d,f=a.value<n.lg&&!(u||d),h=a.value<n.xl&&!(f||u||d),p=a.value<n.xxl&&!(h||f||u||d),m=a.value>=n.xxl,v=d?"xs":u?"sm":f?"md":h?"lg":p?"xl":"xxl",g=typeof r=="number"?r:n[r],y=a.value<g;o.xs=d,o.sm=u,o.md=f,o.lg=h,o.xl=p,o.xxl=m,o.smAndUp=!d,o.mdAndUp=!(d||u),o.lgAndUp=!(d||u||f),o.xlAndUp=!(d||u||f||h),o.smAndDown=!(f||h||p||m),o.mdAndDown=!(h||p||m),o.lgAndDown=!(p||m),o.xlAndDown=!m,o.name=v,o.height=s.value,o.width=a.value,o.mobile=y,o.mobileBreakpoint=r,o.platform=i.value,o.thresholds=n}),et&&(window.addEventListener("resize",c,{passive:!0}),Ct(()=>{window.removeEventListener("resize",c)},!0)),{..._f(o),update:l,ssr:!!t}}const i4=le({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Ok(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();const n=Oe(dd);if(!n)throw new Error("Could not find Vuetify display injection");const r=j(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1);return{...n,displayClasses:ee(()=>t?{[`${t}--mobile`]:r.value}:{}),mobile:r}}const db=Symbol.for("vuetify:goto");function fb(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:AT}}function Lk(e){return Vf(e)??(document.scrollingElement||document.body)}function Vf(e){return typeof e=="string"?document.querySelector(e):Mf(e)}function ou(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=Vf(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function Nk(e,t){return{rtl:t.isRtl,options:Rt(fb(),e)}}async function Em(e,t,n,r){const s=n?"scrollLeft":"scrollTop",i=Rt((r==null?void 0:r.options)??fb(),t),o=r==null?void 0:r.rtl.value,a=(typeof e=="number"?e:Vf(e))??0,c=i.container==="parent"&&a instanceof HTMLElement?a.parentElement:Lk(i.container),l=Oo()?i.patterns.instant:typeof i.easing=="function"?i.easing:i.patterns[i.easing];if(!l)throw new TypeError(`Easing function "${i.easing}" not found.`);let d;if(typeof a=="number")d=ou(a,n,o);else if(d=ou(a,n,o)-ou(c,n,o),i.layout){const p=window.getComputedStyle(a).getPropertyValue("--v-layout-top");p&&(d-=parseInt(p,10))}d+=i.offset,d=Dk(c,d,!!o,!!n);const u=c[s]??0;if(d===u)return Promise.resolve(d);const f=performance.now();return new Promise(h=>requestAnimationFrame(function p(m){const g=(m-f)/i.duration,y=Math.floor(u+(d-u)*l(or(g,0,1)));if(c[s]=y,g>=1&&Math.abs(y-c[s])<10)return h(d);if(g>2)return h(c[s]);requestAnimationFrame(p)}))}function o4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Oe(db),{isRtl:n}=na();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:ee(()=>t.rtl.value||n.value)};async function s(i,o){return Em(i,Rt(e,o),!1,r)}return s.horizontal=async(i,o)=>Em(i,Rt(e,o),!0,r),s}function Dk(e,t,n,r){const{scrollWidth:s,scrollHeight:i}=e,[o,a]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let c,l;return r?n?(c=-(s-o),l=0):(c=0,l=s-o):(c=0,l=i+-a),or(t,c,l)}const Fo=Symbol.for("vuetify:theme"),tn=le({theme:String},"theme");function wm(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function Fk(){var r,s;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wm();const t=wm();if(!e)return{...t,isDisabled:!0};const n={};for(const[i,o]of Object.entries(e.themes??{})){const a=o.dark||i==="dark"?(r=t.themes)==null?void 0:r.dark:(s=t.themes)==null?void 0:s.light;n[i]=Rt(a,o)}return Rt(t,{...e,themes:n})}function ns(e,t,n,r){e.push(`${Vk(t,r)} {
`,...n.map(s=>` ${s};
`),`}
`)}function Cm(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[i,o]of Object.entries(e.colors)){const a=Fn(o);s.push(`--${t}theme-${i}: ${a.r},${a.g},${a.b}`),i.startsWith("on-")||s.push(`--${t}theme-${i}-overlay-multiplier: ${wT(o)>.18?n:r}`)}for(const[i,o]of Object.entries(e.variables)){const a=typeof o=="string"&&o.startsWith("#")?Fn(o):void 0,c=a?`${a.r}, ${a.g}, ${a.b}`:void 0;s.push(`--${t}${i}: ${c??o}`)}return s}function $k(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const i=s==="lighten"?ST:ET;for(const o of H_(n[s],1))r[`${e}-${s}-${o}`]=yT(i(Fn(t),o))}return r}function Bk(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...$k(r,s,t)})}return n}function Hk(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,s=Fn(e[n]);t[r]=Q_(s)}return t}function Vk(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function Uk(e,t,n){const r=Wk(e,t);r&&(r.innerHTML=n)}function Wk(e,t){if(!et)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function jk(e){const t=Fk(e),n=be(t.defaultTheme),r=we(t.themes),s=be("light"),i=j({get(){return n.value==="system"?s.value:n.value},set(g){n.value=g}}),o=j(()=>{const g={};for(const[y,_]of Object.entries(r.value)){const S={..._.colors,...Bk(_.colors,t.variations)};g[y]={..._,colors:{...S,...Hk(S)}}}return g}),a=ee(()=>o.value[i.value]),c=ee(()=>n.value==="system"),l=j(()=>{var M;const g=[],y=t.unimportant?"":" !important",_=t.scoped?t.prefix:"";(M=a.value)!=null&&M.dark&&ns(g,":root",["color-scheme: dark"],t.scope),ns(g,":root",Cm(a.value,t.prefix),t.scope);for(const[R,E]of Object.entries(o.value))ns(g,`.${t.prefix}theme--${R}`,[`color-scheme: ${E.dark?"dark":"normal"}`,...Cm(E,t.prefix)],t.scope);if(t.utilities){const R=[],E=[],C=new Set(Object.values(o.value).flatMap(I=>Object.keys(I.colors)));for(const I of C)I.startsWith("on-")?ns(E,`.${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${y}`],t.scope):(ns(R,`.${_}bg-${I}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${I}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${I}))${y}`,`color: rgb(var(--${t.prefix}theme-on-${I}))${y}`],t.scope),ns(E,`.${_}text-${I}`,[`color: rgb(var(--${t.prefix}theme-${I}))${y}`],t.scope),ns(E,`.${_}border-${I}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${I})`],t.scope));t.layers?g.push(`@layer background {
`,...R.map(I=>` ${I}`),`}
`,`@layer foreground {
`,...E.map(I=>` ${I}`),`}
`):g.push(...R,...E)}let S=g.map((R,E)=>E===0?R:` ${R}`).join("");return t.layers&&(S=`@layer vuetify.theme {
`+g.map(R=>` ${R}`).join("")+`
}`),S}),d=ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${i.value}`),u=ee(()=>Object.keys(o.value));if(F_){let y=function(){s.value=g.matches?"dark":"light"};const g=window.matchMedia("(prefers-color-scheme: dark)");y(),g.addEventListener("change",y,{passive:!0}),df()&&Ct(()=>{g.removeEventListener("change",y)})}function f(g){if(t.isDisabled)return;const y=g._context.provides.usehead;if(y){let _=function(){return{style:[{textContent:l.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(y.push){const S=y.push(_);et&&Se(l,()=>{S.patch(_)})}else et?(y.addHeadObjs(ee(_)),hn(()=>y.updateDOM())):y.addHeadObjs(_())}else{let _=function(){Uk(t.stylesheetId,t.cspNonce,l.value)};et?Se(l,_,{immediate:!0}):_()}}function h(g){g!=="system"&&!u.value.includes(g)||(i.value=g)}function p(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.value;const y=g.indexOf(i.value),_=y===-1?0:(y+1)%g.length;h(g[_])}function m(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(g)}const v=new Proxy(i,{get(g,y){return Reflect.get(g,y)},set(g,y,_){return y==="value"&&D_(`theme.global.name.value = ${_}`,`theme.change('${_}')`),Reflect.set(g,y,_)}});return{install:f,change:h,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:c,name:i,themes:r,current:a,computedThemes:o,prefix:t.prefix,themeClasses:d,styles:l,global:{name:v,current:a}}}function mn(e){mt("provideTheme");const t=Oe(Fo,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=ee(()=>e.theme??t.name.value),i={...t,name:n,current:ee(()=>t.themes.value[n.value]),themeClasses:ee(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`)};return At(Fo,i),i}function hb(){mt("useTheme");const e=Oe(Fo,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function Uf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=od(),r=we();if(et){const s=new ResizeObserver(i=>{e==null||e(i,s),i.length&&(t==="content"?r.value=i[0].contentRect:r.value=i[0].target.getBoundingClientRect())});Tn(()=>{s.disconnect()}),Se(()=>n.el,(i,o)=>{o&&(s.unobserve(o),r.value=void 0),i&&s.observe(i)},{flush:"post"})}return{resizeRef:n,contentRect:hi(r)}}const $o=Symbol.for("vuetify:layout"),pb=Symbol.for("vuetify:layout-item"),Tm=1e3,zk=le({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),a4=le({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function qk(){const e=Oe($o);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function c4(e){const t=Oe($o);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${Jy()}`,r=mt("useLayoutItem");At(pb,{id:n});const s=be(!1);e_(()=>s.value=!0),Qy(()=>s.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=t.register(r,{...e,active:j(()=>s.value?!1:e.active.value),id:n});return Tn(()=>t.unregister(n)),{layoutItemStyles:i,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const Gk=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...s}}];for(const o of e){const a=t.get(o),c=n.get(o),l=r.get(o);if(!a||!c||!l)continue;const d={...s,[a.value]:parseInt(s[a.value],10)+(l.value?parseInt(c.value,10):0)};i.push({id:o,layer:d}),s=d}return i};function Kk(e){const t=Oe($o,null),n=j(()=>t?t.rootZIndex.value-100:Tm),r=we([]),s=pt(new Map),i=pt(new Map),o=pt(new Map),a=pt(new Map),c=pt(new Map),{resizeRef:l,contentRect:d}=Uf(),u=j(()=>{const R=new Map,E=e.overlaps??[];for(const C of E.filter(I=>I.includes(":"))){const[I,A]=C.split(":");if(!r.value.includes(I)||!r.value.includes(A))continue;const O=s.get(I),T=s.get(A),P=i.get(I),N=i.get(A);!O||!T||!P||!N||(R.set(A,{position:O.value,amount:parseInt(P.value,10)}),R.set(I,{position:T.value,amount:-parseInt(N.value,10)}))}return R}),f=j(()=>{const R=[...new Set([...o.values()].map(C=>C.value))].sort((C,I)=>C-I),E=[];for(const C of R){const I=r.value.filter(A=>{var O;return((O=o.get(A))==null?void 0:O.value)===C});E.push(...I)}return Gk(E,s,i,a)}),h=j(()=>!Array.from(c.values()).some(R=>R.value)),p=j(()=>f.value[f.value.length-1].layer),m=ee(()=>({"--v-layout-left":me(p.value.left),"--v-layout-right":me(p.value.right),"--v-layout-top":me(p.value.top),"--v-layout-bottom":me(p.value.bottom),...h.value?void 0:{transition:"none"}})),v=j(()=>f.value.slice(1).map((R,E)=>{let{id:C}=R;const{layer:I}=f.value[E],A=i.get(C),O=s.get(C);return{id:C,...I,size:Number(A.value),position:O.value}})),g=R=>v.value.find(E=>E.id===R),y=mt("createLayout"),_=be(!1);return jr(()=>{_.value=!0}),At($o,{register:(R,E)=>{let{id:C,order:I,position:A,layoutSize:O,elementSize:T,active:P,disableTransitions:N,absolute:z}=E;o.set(C,I),s.set(C,A),i.set(C,O),a.set(C,P),N&&c.set(C,N);const q=Zs(pb,y==null?void 0:y.vnode).indexOf(R);q>-1?r.value.splice(q,0,C):r.value.push(C);const D=j(()=>v.value.findIndex(ae=>ae.id===C)),re=j(()=>n.value+f.value.length*2-D.value*2),U=j(()=>{const ae=A.value==="left"||A.value==="right",ue=A.value==="right",Ce=A.value==="bottom",Ne=T.value??O.value,He=Ne===0?"%":"px",x={[A.value]:0,zIndex:re.value,transform:`translate${ae?"X":"Y"}(${(P.value?0:-(Ne===0?100:Ne))*(ue||Ce?-1:1)}${He})`,position:z.value||n.value!==Tm?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!_.value)return x;const W=v.value[D.value],K=u.value.get(C);return K&&(W[K.position]+=K.amount),{...x,height:ae?`calc(100% - ${W.top}px - ${W.bottom}px)`:T.value?`${T.value}px`:void 0,left:ue?void 0:`${W.left}px`,right:ue?`${W.right}px`:void 0,top:A.value!=="bottom"?`${W.top}px`:void 0,bottom:A.value!=="top"?`${W.bottom}px`:void 0,width:ae?T.value?`${T.value}px`:void 0:`calc(100% - ${W.left}px - ${W.right}px)`}}),ie=j(()=>({zIndex:re.value-1}));return{layoutItemStyles:U,layoutItemScrimStyles:ie,zIndex:re}},unregister:R=>{o.delete(R),s.delete(R),i.delete(R),a.delete(R),c.delete(R),r.value=r.value.filter(E=>E!==R)},mainRect:p,mainStyles:m,getLayoutItem:g,items:v,layoutRect:d,rootZIndex:n}),{layoutClasses:ee(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),layoutStyles:ee(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0})),getLayoutItem:g,items:v,layoutRect:d,layoutRef:l}}function mb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=Rt(t,n),{aliases:s={},components:i={},directives:o={}}=r,a=Es();return a.run(()=>{const c=TT(r.defaults),l=Pk(r.display,r.ssr),d=jk(r.theme),u=BT(r.icons),f=WT(r.locale),h=Rk(r.date,f),p=Nk(r.goTo,f);function m(g){for(const _ in o)g.directive(_,o[_]);for(const _ in i)g.component(_,i[_]);for(const _ in s)g.component(_,Ni({...s[_],name:_,aliasName:s[_].name}));const y=Es();if(y.run(()=>{d.install(g)}),g.onUnmount(()=>y.stop()),g.provide(vi,c),g.provide(dd,l),g.provide(Fo,d),g.provide(ud,u),g.provide(Ac,f),g.provide(lb,h.options),g.provide(vm,h.instance),g.provide(db,p),et&&r.ssr)if(g.$nuxt)g.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:_}=g;g.mount=function(){const S=_(...arguments);return vt(()=>l.update()),g.mount=_,S}}g.mixin({computed:{$vuetify(){return pt({defaults:Hs.call(this,vi),display:Hs.call(this,dd),theme:Hs.call(this,Fo),icons:Hs.call(this,ud),locale:Hs.call(this,Ac),date:Hs.call(this,vm)})}}})}function v(){a.stop()}return{install:m,unmount:v,defaults:c,display:l,theme:d,icons:u,locale:f,date:h,goTo:p}})}const Yk="3.11.7";mb.version=Yk;function Hs(e){var r,s;const t=this.$,n=((r=t.parent)==null?void 0:r.provides)??((s=t.vnode.appContext)==null?void 0:s.provides);if(n&&e in n)return n[e]}const Xk=mb({theme:{defaultTheme:"dark"}});/*!
* pinia v3.0.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let gb;const _l=e=>gb=e,vb=Symbol();function fd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bo||(bo={}));function yb(){const e=Es(!0),t=e.run(()=>we({}));let n=[],r=[];const s=yf({install(i){_l(s),s._a=i,i.provide(vb,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const _b=()=>{};function km(e,t,n,r=_b){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&df()&&Ct(s),s}function Vs(e,...t){e.forEach(n=>{n(...t)})}const Jk=e=>e(),Im=Symbol(),au=Symbol();function hd(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];fd(s)&&fd(r)&&e.hasOwnProperty(n)&&!Je(r)&&!Jn(r)?e[n]=hd(s,r):e[n]=r}return e}const Zk=Symbol();function Qk(e){return!fd(e)||!Object.prototype.hasOwnProperty.call(e,Zk)}const{assign:Er}=Object;function eI(e){return!!(Je(e)&&e.effect)}function tI(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=s?s():{});const d=_f(n.state.value[e]);return Er(d,i,Object.keys(o||{}).reduce((u,f)=>(u[f]=yf(j(()=>{_l(n);const h=n._s.get(e);return o[f].call(h,h)})),u),{}))}return c=bb(e,l,t,n,r,!0),c}function bb(e,t,n={},r,s,i){let o;const a=Er({actions:{}},n),c={deep:!0};let l,d,u=new Set,f=new Set,h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={});let m;function v(C){let I;l=d=!1,typeof C=="function"?(C(r.state.value[e]),I={type:bo.patchFunction,storeId:e,events:h}):(hd(r.state.value[e],C),I={type:bo.patchObject,payload:C,storeId:e,events:h});const A=m=Symbol();vt().then(()=>{m===A&&(l=!0)}),d=!0,Vs(u,I,r.state.value[e])}const g=i?function(){const{state:I}=n,A=I?I():{};this.$patch(O=>{Er(O,A)})}:_b;function y(){o.stop(),u.clear(),f.clear(),r._s.delete(e)}const _=(C,I="")=>{if(Im in C)return C[au]=I,C;const A=function(){_l(r);const O=Array.from(arguments),T=new Set,P=new Set;function N(q){T.add(q)}function z(q){P.add(q)}Vs(f,{args:O,name:A[au],store:M,after:N,onError:z});let X;try{X=C.apply(this&&this.$id===e?this:M,O)}catch(q){throw Vs(P,q),q}return X instanceof Promise?X.then(q=>(Vs(T,q),q)).catch(q=>(Vs(P,q),Promise.reject(q))):(Vs(T,X),X)};return A[Im]=!0,A[au]=I,A},S={_p:r,$id:e,$onAction:km.bind(null,f),$patch:v,$reset:g,$subscribe(C,I={}){const A=km(u,C,I.detached,()=>O()),O=o.run(()=>Se(()=>r.state.value[e],T=>{(I.flush==="sync"?d:l)&&C({storeId:e,type:bo.direct,events:h},T)},Er({},c,I)));return A},$dispose:y},M=pt(S);r._s.set(e,M);const E=(r._a&&r._a.runWithContext||Jk)(()=>r._e.run(()=>(o=Es()).run(()=>t({action:_}))));for(const C in E){const I=E[C];if(Je(I)&&!eI(I)||Jn(I))i||(p&&Qk(I)&&(Je(I)?I.value=p[C]:hd(I,p[C])),r.state.value[e][C]=I);else if(typeof I=="function"){const A=_(I,C);E[C]=A,a.actions[C]=I}}return Er(M,E),Er(de(M),E),Object.defineProperty(M,"$state",{get:()=>r.state.value[e],set:C=>{v(I=>{Er(I,C)})}}),r._p.forEach(C=>{Er(M,o.run(()=>C({store:M,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(M.$state,p),l=!0,d=!0,M}/*! #__NO_SIDE_EFFECTS__ */function l4(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const c=o1();return o=o||(c?Oe(vb,null):null),o&&_l(o),o=gb,o._s.has(e)||(s?bb(e,t,r,o):tI(e,r,o)),o._s.get(e)}return i.$id=e,i}function u4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const s=e(this.$pinia),i=t[r];return typeof i=="function"?i.call(this,s):s[i]},n),{})}function d4(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[r](...s)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...s){return e(this.$pinia)[t[r]](...s)},n),{})}const nI=yb();/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Ks=typeof document<"u";function Sb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function rI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Sb(e.default)}const Fe=Object.assign;function cu(e,t){const n={};for(const r in t){const s=t[r];n[r]=Cn(s)?s.map(e):e(s)}return n}const So=()=>{},Cn=Array.isArray;function xm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Eb=/#/g,sI=/&/g,iI=/\//g,oI=/=/g,aI=/\?/g,wb=/\+/g,cI=/%5B/g,lI=/%5D/g,Cb=/%5E/g,uI=/%60/g,Tb=/%7B/g,dI=/%7C/g,kb=/%7D/g,fI=/%20/g;function Wf(e){return e==null?"":encodeURI(""+e).replace(dI,"|").replace(cI,"[").replace(lI,"]")}function hI(e){return Wf(e).replace(Tb,"{").replace(kb,"}").replace(Cb,"^")}function pd(e){return Wf(e).replace(wb,"%2B").replace(fI,"+").replace(Eb,"%23").replace(sI,"%26").replace(uI,"`").replace(Tb,"{").replace(kb,"}").replace(Cb,"^")}function pI(e){return pd(e).replace(oI,"%3D")}function mI(e){return Wf(e).replace(Eb,"%23").replace(aI,"%3F")}function gI(e){return mI(e).replace(iI,"%2F")}function Bo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const vI=/\/$/,yI=e=>e.replace(vI,"");function lu(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let c=t.indexOf("?");return c=a>=0&&c>a?-1:c,c>=0&&(r=t.slice(0,c),i=t.slice(c,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=EI(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:Bo(o)}}function _I(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bI(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&yi(t.matched[r],n.matched[s])&&Ib(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ib(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!SI(e[n],t[n]))return!1;return!0}function SI(e,t){return Cn(e)?Am(e,t):Cn(t)?Am(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function Am(e,t){return Cn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function EI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let md=function(e){return e.pop="pop",e.push="push",e}({}),uu=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function wI(e){if(!e)if(Ks){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yI(e)}const CI=/^[^#]+#/;function TI(e,t){return e.replace(CI,"#")+t}function kI(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const bl=()=>({left:window.scrollX,top:window.scrollY});function II(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=kI(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mm(e,t){return(history.state?history.state.position-t:-1)+e}const gd=new Map;function xI(e,t){gd.set(e,t)}function RI(e){const t=gd.get(e);return gd.delete(e),t}function AI(e){return typeof e=="string"||e&&typeof e=="object"}function xb(e){return typeof e=="string"||typeof e=="symbol"}let ot=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const Rb=Symbol("");ot.MATCHER_NOT_FOUND+"",ot.NAVIGATION_GUARD_REDIRECT+"",ot.NAVIGATION_ABORTED+"",ot.NAVIGATION_CANCELLED+"",ot.NAVIGATION_DUPLICATED+"";function _i(e,t){return Fe(new Error,{type:e,[Rb]:!0},t)}function jn(e,t){return e instanceof Error&&Rb in e&&(t==null||!!(e.type&t))}const MI=["params","query","hash"];function PI(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of MI)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function OI(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(wb," "),i=s.indexOf("="),o=Bo(i<0?s:s.slice(0,i)),a=i<0?null:Bo(s.slice(i+1));if(o in t){let c=t[o];Cn(c)||(c=t[o]=[c]),c.push(a)}else t[o]=a}return t}function Pm(e){let t="";for(let n in e){const r=e[n];if(n=pI(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Cn(r)?r.map(s=>s&&pd(s)):[r&&pd(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function LI(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Cn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const NI=Symbol(""),Om=Symbol(""),Sl=Symbol(""),jf=Symbol(""),vd=Symbol("");function to(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ir(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,c)=>{const l=f=>{f===!1?c(_i(ot.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?c(f):AI(f)?c(_i(ot.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},d=i(()=>e.call(r&&r.instances[s],t,n,l));let u=Promise.resolve(d);e.length<3&&(u=u.then(l)),u.catch(f=>c(f))})}function du(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let c=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Sb(c)){const l=(c.__vccOpts||c)[t];l&&i.push(Ir(l,n,r,o,a,s))}else{let l=c();i.push(()=>l.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=rI(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&Ir(f,n,r,o,a,s)()}))}}return i}function DI(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(l=>yi(l,a))?r.push(a):n.push(a));const c=e.matched[o];c&&(t.matched.find(l=>yi(l,c))||s.push(c))}return[n,r,s]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let FI=()=>location.protocol+"//"+location.host;function Ab(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),Rm(a,"")}return Rm(n,e)+r+s}function $I(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const h=Ab(e,location),p=n.value,m=t.value;let v=0;if(f){if(n.value=h,t.value=f,o&&o===p){o=null;return}v=m?f.position-m.position:0}else r(h);s.forEach(g=>{g(n.value,p,{delta:v,type:md.pop,direction:v?v>0?uu.forward:uu.back:uu.unknown})})};function c(){o=n.value}function l(f){s.push(f);const h=()=>{const p=s.indexOf(f);p>-1&&s.splice(p,1)};return i.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Fe({},f.state,{scroll:bl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:c,listen:l,destroy:u}}function Lm(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?bl():null}}function BI(e){const{history:t,location:n}=window,r={value:Ab(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,l,d){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+c:FI()+e+c;try{t[d?"replaceState":"pushState"](l,"",f),s.value=l}catch(h){console.error(h),n[d?"replace":"assign"](f)}}function o(c,l){i(c,Fe({},t.state,Lm(s.value.back,c,s.value.forward,!0),l,{position:s.value.position}),!0),r.value=c}function a(c,l){const d=Fe({},s.value,t.state,{forward:c,scroll:bl()});i(d.current,d,!0),i(c,Fe({},Lm(r.value,c,null),{position:d.position+1},l),!1),r.value=c}return{location:r,state:s,push:a,replace:o}}function HI(e){e=wI(e);const t=BI(e),n=$I(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Fe({location:"",base:e,go:r,createHref:TI.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let ls=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ft=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ft||{});const VI={type:ls.Static,value:""},UI=/[a-zA-Z0-9_]/;function WI(e){if(!e)return[[]];if(e==="/")return[[VI]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${l}": ${h}`)}let n=ft.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,c,l="",d="";function u(){l&&(n===ft.Static?i.push({type:ls.Static,value:l}):n===ft.Param||n===ft.ParamRegExp||n===ft.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ls.Param,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==ft.ParamRegExp){r=n,n=ft.EscapeNext;continue}switch(n){case ft.Static:c==="/"?(l&&u(),o()):c===":"?(u(),n=ft.Param):f();break;case ft.EscapeNext:f(),n=r;break;case ft.Param:c==="("?n=ft.ParamRegExp:UI.test(c)?f():(u(),n=ft.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case ft.ParamRegExp:c===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+c:n=ft.ParamRegExpEnd:d+=c;break;case ft.ParamRegExpEnd:u(),n=ft.Static,c!=="*"&&c!=="?"&&c!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===ft.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),u(),o(),s}const Nm="[^/]+?",jI={sensitive:!1,strict:!1,start:!0,end:!0};var Nt=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Nt||{});const zI=/[.+*?^${}()[\]/\\]/g;function qI(e,t){const n=Fe({},jI,t),r=[];let s=n.start?"^":"";const i=[];for(const l of e){const d=l.length?[]:[Nt.Root];n.strict&&!l.length&&(s+="/");for(let u=0;u<l.length;u++){const f=l[u];let h=Nt.Segment+(n.sensitive?Nt.BonusCaseSensitive:0);if(f.type===ls.Static)u||(s+="/"),s+=f.value.replace(zI,"\\$&"),h+=Nt.Static;else if(f.type===ls.Param){const{value:p,repeatable:m,optional:v,regexp:g}=f;i.push({name:p,repeatable:m,optional:v});const y=g||Nm;if(y!==Nm){h+=Nt.BonusCustomRegExp;try{`${y}`}catch(S){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+S.message)}}let _=m?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;u||(_=v&&l.length<2?`(?:/${_})`:"/"+_),v&&(_+="?"),s+=_,h+=Nt.Dynamic,v&&(h+=Nt.BonusOptional),m&&(h+=Nt.BonusRepeatable),y===".*"&&(h+=Nt.BonusWildcard)}d.push(h)}r.push(d)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=Nt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(l){const d=l.match(o),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",p=i[f-1];u[p.name]=h&&p.repeatable?h.split("/"):h}return u}function c(l){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===ls.Static)d+=h.value;else if(h.type===ls.Param){const{value:p,repeatable:m,optional:v}=h,g=p in l?l[p]:"";if(Cn(g)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=Cn(g)?g.join("/"):g;if(!y)if(v)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${p}"`);d+=y}}return d||"/"}return{re:o,score:r,keys:i,parse:a,stringify:c}}function GI(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Nt.Static+Nt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Nt.Static+Nt.Segment?1:-1:0}function Mb(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=GI(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Dm(r))return 1;if(Dm(s))return-1}return s.length-r.length}function Dm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const KI={strict:!1,end:!0,sensitive:!1};function YI(e,t,n){const r=qI(WI(e.path),n),s=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function XI(e,t){const n=[],r=new Map;t=xm(KI,t);function s(u){return r.get(u)}function i(u,f,h){const p=!h,m=$m(u);m.aliasOf=h&&h.record;const v=xm(t,u),g=[m];if("alias"in u){const S=typeof u.alias=="string"?[u.alias]:u.alias;for(const M of S)g.push($m(Fe({},m,{components:h?h.record.components:m.components,path:M,aliasOf:h?h.record:m})))}let y,_;for(const S of g){const{path:M}=S;if(f&&M[0]!=="/"){const R=f.record.path,E=R[R.length-1]==="/"?"":"/";S.path=f.record.path+(M&&E+M)}if(y=YI(S,f,v),h?h.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),p&&u.name&&!Bm(y)&&o(u.name)),Pb(y)&&c(y),m.children){const R=m.children;for(let E=0;E<R.length;E++)i(R[E],y,h&&h.children[E])}h=h||y}return _?()=>{o(_)}:So}function o(u){if(xb(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function c(u){const f=QI(u,n);n.splice(f,0,u),u.record.name&&!Bm(u)&&r.set(u.record.name,u)}function l(u,f){let h,p={},m,v;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u});v=h.record.name,p=Fe(Fm(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),u.params&&Fm(u.params,h.keys.map(_=>_.name))),m=h.stringify(p)}else if(u.path!=null)m=u.path,h=n.find(_=>_.re.test(m)),h&&(p=h.parse(m),v=h.record.name);else{if(h=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw _i(ot.MATCHER_NOT_FOUND,{location:u,currentLocation:f});v=h.record.name,p=Fe({},f.params,u.params),m=h.stringify(p)}const g=[];let y=h;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:m,params:p,matched:g,meta:ZI(g)}}e.forEach(u=>i(u));function d(){n.length=0,r.clear()}return{addRoute:i,resolve:l,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:s}}function Fm(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function $m(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:JI(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function JI(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Bm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZI(e){return e.reduce((t,n)=>Fe(t,n.meta),{})}function QI(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Mb(e,t[i])<0?r=i:n=i+1}const s=ex(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function ex(e){let t=e;for(;t=t.parent;)if(Pb(t)&&Mb(e,t)===0)return t}function Pb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hm(e){const t=Oe(Sl),n=Oe(jf),r=j(()=>{const c=Ut(e.to);return t.resolve(c)}),s=j(()=>{const{matched:c}=r.value,{length:l}=c,d=c[l-1],u=n.matched;if(!d||!u.length)return-1;const f=u.findIndex(yi.bind(null,d));if(f>-1)return f;const h=Vm(c[l-2]);return l>1&&Vm(d)===h&&u[u.length-1].path!==h?u.findIndex(yi.bind(null,c[l-2])):f}),i=j(()=>s.value>-1&&ix(n.params,r.value.params)),o=j(()=>s.value>-1&&s.value===n.matched.length-1&&Ib(n.params,r.value.params));function a(c={}){if(sx(c)){const l=t[Ut(e.replace)?"replace":"push"](Ut(e.to)).catch(So);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function tx(e){return e.length===1?e[0]:e}const nx=dl({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Hm,setup(e,{slots:t}){const n=pt(Hm(e)),{options:r}=Oe(Sl),s=j(()=>({[Um(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Um(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&tx(t.default(n));return e.custom?i:zr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),rx=nx;function sx(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ix(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Cn(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function Vm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Um=(e,t,n)=>e??t??n,ox=dl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Oe(vd),s=j(()=>e.route||r.value),i=Oe(Om,0),o=j(()=>{let l=Ut(i);const{matched:d}=s.value;let u;for(;(u=d[l])&&!u.components;)l++;return l}),a=j(()=>s.value.matched[o.value]);At(Om,j(()=>o.value+1)),At(NI,a),At(vd,s);const c=we();return Se(()=>[c.value,a.value,e.name],([l,d,u],[f,h,p])=>{d&&(d.instances[u]=l,h&&h!==d&&l&&l===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),l&&d&&(!h||!yi(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(m=>m(l))},{flush:"post"}),()=>{const l=s.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Wm(n.default,{Component:f,route:l});const h=u.props[d],p=h?h===!0?l.params:typeof h=="function"?h(l):h:null,v=zr(f,Fe({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:c}));return Wm(n.default,{Component:v,route:l})||v}}});function Wm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ax=ox;function cx(e){const t=XI(e.routes,e),n=e.parseQuery||OI,r=e.stringifyQuery||Pm,s=e.history,i=to(),o=to(),a=to(),c=be(_r);let l=_r;Ks&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=cu.bind(null,x=>""+x),u=cu.bind(null,gI),f=cu.bind(null,Bo);function h(x,W){let K,ne;return xb(x)?(K=t.getRecordMatcher(x),ne=W):ne=x,t.addRoute(ne,K)}function p(x){const W=t.getRecordMatcher(x);W&&t.removeRoute(W)}function m(){return t.getRoutes().map(x=>x.record)}function v(x){return!!t.getRecordMatcher(x)}function g(x,W){if(W=Fe({},W||c.value),typeof x=="string"){const k=lu(n,x,W.path),L=t.resolve({path:k.path},W),$=s.createHref(k.fullPath);return Fe(k,L,{params:f(L.params),hash:Bo(k.hash),redirectedFrom:void 0,href:$})}let K;if(x.path!=null)K=Fe({},x,{path:lu(n,x.path,W.path).path});else{const k=Fe({},x.params);for(const L in k)k[L]==null&&delete k[L];K=Fe({},x,{params:u(k)}),W.params=u(W.params)}const ne=t.resolve(K,W),ye=x.hash||"";ne.params=d(f(ne.params));const b=_I(r,Fe({},x,{hash:hI(ye),path:ne.path})),w=s.createHref(b);return Fe({fullPath:b,hash:ye,query:r===Pm?LI(x.query):x.query||{}},ne,{redirectedFrom:void 0,href:w})}function y(x){return typeof x=="string"?lu(n,x,c.value.path):Fe({},x)}function _(x,W){if(l!==x)return _i(ot.NAVIGATION_CANCELLED,{from:W,to:x})}function S(x){return E(x)}function M(x){return S(Fe(y(x),{replace:!0}))}function R(x,W){const K=x.matched[x.matched.length-1];if(K&&K.redirect){const{redirect:ne}=K;let ye=typeof ne=="function"?ne(x,W):ne;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=y(ye):{path:ye},ye.params={}),Fe({query:x.query,hash:x.hash,params:ye.path!=null?{}:x.params},ye)}}function E(x,W){const K=l=g(x),ne=c.value,ye=x.state,b=x.force,w=x.replace===!0,k=R(K,ne);if(k)return E(Fe(y(k),{state:typeof k=="object"?Fe({},ye,k.state):ye,force:b,replace:w}),W||K);const L=K;L.redirectedFrom=W;let $;return!b&&bI(r,ne,K)&&($=_i(ot.NAVIGATION_DUPLICATED,{to:L,from:ne}),ie(ne,ne,!0,!1)),($?Promise.resolve($):A(L,ne)).catch(F=>jn(F)?jn(F,ot.NAVIGATION_GUARD_REDIRECT)?F:U(F):D(F,L,ne)).then(F=>{if(F){if(jn(F,ot.NAVIGATION_GUARD_REDIRECT))return E(Fe({replace:w},y(F.to),{state:typeof F.to=="object"?Fe({},ye,F.to.state):ye,force:b}),W||L)}else F=T(L,ne,!0,w,ye);return O(L,ne,F),F})}function C(x,W){const K=_(x,W);return K?Promise.reject(K):Promise.resolve()}function I(x){const W=Ce.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(x):x()}function A(x,W){let K;const[ne,ye,b]=DI(x,W);K=du(ne.reverse(),"beforeRouteLeave",x,W);for(const k of ne)k.leaveGuards.forEach(L=>{K.push(Ir(L,x,W))});const w=C.bind(null,x,W);return K.push(w),He(K).then(()=>{K=[];for(const k of i.list())K.push(Ir(k,x,W));return K.push(w),He(K)}).then(()=>{K=du(ye,"beforeRouteUpdate",x,W);for(const k of ye)k.updateGuards.forEach(L=>{K.push(Ir(L,x,W))});return K.push(w),He(K)}).then(()=>{K=[];for(const k of b)if(k.beforeEnter)if(Cn(k.beforeEnter))for(const L of k.beforeEnter)K.push(Ir(L,x,W));else K.push(Ir(k.beforeEnter,x,W));return K.push(w),He(K)}).then(()=>(x.matched.forEach(k=>k.enterCallbacks={}),K=du(b,"beforeRouteEnter",x,W,I),K.push(w),He(K))).then(()=>{K=[];for(const k of o.list())K.push(Ir(k,x,W));return K.push(w),He(K)}).catch(k=>jn(k,ot.NAVIGATION_CANCELLED)?k:Promise.reject(k))}function O(x,W,K){a.list().forEach(ne=>I(()=>ne(x,W,K)))}function T(x,W,K,ne,ye){const b=_(x,W);if(b)return b;const w=W===_r,k=Ks?history.state:{};K&&(ne||w?s.replace(x.fullPath,Fe({scroll:w&&k&&k.scroll},ye)):s.push(x.fullPath,ye)),c.value=x,ie(x,W,K,w),U()}let P;function N(){P||(P=s.listen((x,W,K)=>{if(!Ne.listening)return;const ne=g(x),ye=R(ne,Ne.currentRoute.value);if(ye){E(Fe(ye,{replace:!0,force:!0}),ne).catch(So);return}l=ne;const b=c.value;Ks&&xI(Mm(b.fullPath,K.delta),bl()),A(ne,b).catch(w=>jn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_CANCELLED)?w:jn(w,ot.NAVIGATION_GUARD_REDIRECT)?(E(Fe(y(w.to),{force:!0}),ne).then(k=>{jn(k,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===md.pop&&s.go(-1,!1)}).catch(So),Promise.reject()):(K.delta&&s.go(-K.delta,!1),D(w,ne,b))).then(w=>{w=w||T(ne,b,!1),w&&(K.delta&&!jn(w,ot.NAVIGATION_CANCELLED)?s.go(-K.delta,!1):K.type===md.pop&&jn(w,ot.NAVIGATION_ABORTED|ot.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),O(ne,b,w)}).catch(So)}))}let z=to(),X=to(),q;function D(x,W,K){U(x);const ne=X.list();return ne.length?ne.forEach(ye=>ye(x,W,K)):console.error(x),Promise.reject(x)}function re(){return q&&c.value!==_r?Promise.resolve():new Promise((x,W)=>{z.add([x,W])})}function U(x){return q||(q=!x,N(),z.list().forEach(([W,K])=>x?K(x):W()),z.reset()),x}function ie(x,W,K,ne){const{scrollBehavior:ye}=e;if(!Ks||!ye)return Promise.resolve();const b=!K&&RI(Mm(x.fullPath,0))||(ne||!K)&&history.state&&history.state.scroll||null;return vt().then(()=>ye(x,W,b)).then(w=>w&&II(w)).catch(w=>D(w,x,W))}const ae=x=>s.go(x);let ue;const Ce=new Set,Ne={currentRoute:c,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:g,options:e,push:S,replace:M,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:X.add,isReady:re,install(x){x.component("RouterLink",rx),x.component("RouterView",ax),x.config.globalProperties.$router=Ne,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Ut(c)}),Ks&&!ue&&c.value===_r&&(ue=!0,S(s.location).catch(ne=>{}));const W={};for(const ne in _r)Object.defineProperty(W,ne,{get:()=>c.value[ne],enumerable:!0});x.provide(Sl,Ne),x.provide(jf,Py(W)),x.provide(vd,c);const K=x.unmount;Ce.add(x),x.unmount=function(){Ce.delete(x),Ce.size<1&&(l=_r,P&&P(),P=null,c.value=_r,ue=!1,q=!1),K()}}};function He(x){return x.reduce((W,K)=>W.then(()=>I(K)),Promise.resolve())}return Ne}function f4(){return Oe(Sl)}function h4(e){return Oe(jf)}const lx=e=>{const t={};Object.entries(Object.assign({"/src/layouts/default.vue":()=>yt(()=>import("./default-hOQ1mU83.js"),__vite__mapDeps([0,1]),import.meta.url)})).forEach(([s,i])=>{let o=s.replace("/src/layouts/","").replace(".vue","");t[o]=i});function r(s,i=!0){return s.map(o=>{var a,c,l,d,u,f;if(((a=o.children)==null?void 0:a.length)>0&&(o.children=r(o.children,!1)),i){if(!o.component&&((c=o.children)==null?void 0:c.find(p=>{var m;return(p.path===""||p.path==="/")&&((m=p.meta)==null?void 0:m.isLayout)})))return o;if(((l=o.meta)==null?void 0:l.layout)!==!1)return{path:o.path,component:t[((d=o.meta)==null?void 0:d.layout)||"default"],children:o.path==="/"?[o]:[{...o,path:""}],meta:{isLayout:!0}}}return(u=o.meta)!=null&&u.layout?{path:o.path,component:t[(f=o.meta)==null?void 0:f.layout],children:[{...o,path:""}],meta:{isLayout:!0}}:o})}return r(e)},ux=[{path:"/",name:"/",component:()=>yt(()=>import("./index-DSbPboXi.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url)},{path:"/404",name:"/404",component:()=>yt(()=>import("./404-BwZffhEb.js"),__vite__mapDeps([40,14,35]),import.meta.url)},{path:"/authorize",name:"/authorize",component:()=>yt(()=>import("./authorize-DZSBaQ17.js"),__vite__mapDeps([41,14,35]),import.meta.url)},{path:"/CacheManagement",name:"/CacheManagement",component:()=>yt(()=>import("./CacheManagement-BChWOOfR.js"),__vite__mapDeps([42,6,7,37,38,12,13,8,9,14,35]),import.meta.url)},{path:"/cses2wakeup",name:"/cses2wakeup",component:()=>yt(()=>import("./cses2wakeup-BmsqkMFZ.js"),__vite__mapDeps([43,14,6,7,44,33,22,19,15,16,20,34,21,12,13,23,45,10,11,17,18,8,9,35,46]),import.meta.url)},{path:"/debug",name:"/debug",component:()=>yt(()=>import("./debug-BSi7gIU2.js"),__vite__mapDeps([47,35,48]),import.meta.url)},{path:"/debug-init",name:"/debug-init",component:()=>yt(()=>import("./debug-init-B-H9lXTX.js"),__vite__mapDeps([49,4,5,14,36,15,16,35]),import.meta.url)},{path:"/debug-socket",name:"/debug-socket",component:()=>yt(()=>import("./debug-socket-DzG1kWef.js"),__vite__mapDeps([50,27,5,32,14,12,13,15,16,17,18,35]),import.meta.url)},{path:"/exam-editor",children:[{path:":id",name:"/exam-editor/[id]",component:()=>yt(()=>import("./_id_-B9b-OTX9.js"),__vite__mapDeps([51,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,29,30,35]),import.meta.url)}]},{path:"/examschedule",name:"/examschedule",component:()=>yt(()=>import("./examschedule-BBjKpA2N.js"),__vite__mapDeps([52,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,35,53]),import.meta.url)},{path:"/list",children:[{path:"",name:"/list/",component:()=>yt(()=>import("./index-D07_YIdP.js"),__vite__mapDeps([54,4,5,29,30,15,16,35]),import.meta.url)},{path:":id",name:"/list/[id]",component:()=>yt(()=>import("./_id_-DyC3JCaR.js"),__vite__mapDeps([55,4,5,29,30,15,16,22,19,20,12,13,17,18,35]),import.meta.url)}]},{path:"/settings",name:"/settings",component:()=>yt(()=>import("./settings-D372VNSO.js"),__vite__mapDeps([56,28,29,30,15,16,21,22,19,20,12,13,23,31,4,5,6,7,14,35,33,34,17,18,36,37,38,44,45,24,25,57]),import.meta.url)},{path:"/socket-debugger",name:"/socket-debugger",component:()=>yt(()=>import("./socket-debugger-DtAcJK1B.js"),__vite__mapDeps([58,27,5,14,12,13,15,16,17,18,19,20,6,7,35,59]),import.meta.url)}],El=cx({history:HI("./"),routes:lx(ux)});El.onError((e,t)=>{var n,r;(r=(n=e==null?void 0:e.message)==null?void 0:n.includes)!=null&&r.call(n,"Failed to fetch dynamically imported module")?localStorage.getItem("vuetify:dynamic-reload")?console.error("Dynamic import error, reloading page did not fix it",e):(console.log("Reloading page to fix dynamic import error"),localStorage.setItem("vuetify:dynamic-reload","true"),location.assign(t.fullPath)):console.error(e)});El.isReady().then(()=>{localStorage.removeItem("vuetify:dynamic-reload")});function dx(e){e.use(Xk).use(El).use(nI)}async function fx(){return typeof Notification<"u"&&Notification.requestPermission?await Notification.requestPermission()==="granted"?(console.log("通知权限已授予"),!0):(console.warn("通知权限被拒绝"),!1):(console.warn("浏览器不支持通知权限请求"),!1)}async function hx(){var e;try{return(e=navigator.storage)!=null&&e.persist?await navigator.storage.persist():!1}catch(t){return console.warn("请求持久性存储失败:",t),!1}}const fu="Classworks_settings",jm={"server.domain":"https://kv-service.houlang.cloud","server.siteKey":""},wr={"device.uuid":{type:"string",default:"00000000-0000-4000-8000-000000000000",description:"设备唯一标识符",icon:"mdi-identifier"},"storage.persistOnLoad":{type:"boolean",default:!0,description:"是否在页面加载时自动请求持久性存储",icon:"mdi-database-sync"},"display.emptySubjectDisplay":{type:"string",default:"card",validate:e=>["card","button"].includes(e),description:"空科目的显示方式",icon:"mdi-card-outline"},"hitokoto.enabled":{type:"boolean",default:!0,description:"启用一言",icon:"mdi-comment-quote"},"hitokoto.refreshInterval":{type:"number",default:300,description:"刷新时间0为不自动刷新",icon:"mdi-timer-refresh"},"display.dynamicSort":{type:"boolean",default:!0,description:"是否启用动态排序",icon:"mdi-sort-variant"},"display.showRandomButton":{type:"boolean",default:!1,description:"是否显示随机点人按钮",icon:"mdi-shuffle-variant"},"display.showFullscreenButton":{type:"boolean",default:!0,description:"是否显示全屏按钮",icon:"mdi-fullscreen"},"display.cardHoverEffect":{type:"boolean",default:!0,description:"是否启用卡片悬浮效果",icon:"mdi-gesture-tap"},"display.enhancedTouchMode":{type:"boolean",default:!0,description:"是否启用增强触摸模式",icon:"mdi-gesture-tap-button"},"display.showAntiScreenBurnCard":{type:"boolean",default:!1,description:"是否显示防烧屏忽悠卡片",icon:"mdi-monitor-shimmer"},"display.showListCard":{type:"boolean",default:!0,description:"是否显示列表卡片",icon:"mdi-list-box"},"display.showExamScheduleButton":{type:"boolean",default:!0,description:"是否显示考试看板",icon:"mdi-calendar-check"},"display.showQuickTools":{type:"boolean",default:!0,description:"是否显示快捷键盘",icon:"mdi-dialpad"},"display.forceDesktopMode":{type:"boolean",default:!1,description:"强制使用一体机UI模式",icon:"mdi-monitor"},"display.lateStudentsArePresent":{type:"boolean",default:!1,description:"将迟到人数算入出勤人数",icon:"mdi-clock-fast"},"server.domain":{type:"string",default:"",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("域名格式无效:",t),!1}},description:"后端服务器域名",icon:"mdi-web"},"server.classNumber":{type:"string",default:"高三八班",validate:e=>/.*/.test(e),description:"班级编号",icon:"mdi-account-group"},"server.siteKey":{type:"string",default:"",description:"网站令牌",icon:"mdi-key-chain"},"server.kvToken":{type:"string",default:"",description:"KV授权令牌",icon:"mdi-shield-key"},"server.authDomain":{type:"string",default:"https://kv.houlang.cloud",description:"授权服务器域名",icon:"mdi-shield-account",validate:e=>{if(!e)return!0;try{return new URL(e),!0}catch(t){return console.error("授权域名格式无效:",t),!1}}},"server.provider":{type:"string",default:"classworkscloud",validate:e=>["kv-local","kv-server","classworkscloud"].includes(e),description:"数据提供者",icon:"mdi-database"},"refresh.auto":{type:"boolean",default:!1,description:"是否启用自动刷新",icon:"mdi-refresh-auto"},"refresh.interval":{type:"number",default:300,validate:e=>e>=10&&e<=3600,description:"自动刷新间隔",icon:"mdi-timer-outline"},"font.size":{type:"number",default:28,validate:e=>e>=16&&e<=100,description:"字体大小",icon:"mdi-format-size"},"edit.autoSave":{type:"boolean",default:!0,description:"是否启用自动保存",icon:"mdi-content-save-outline"},"edit.blockNonTodayAutoSave":{type:"boolean",default:!0,description:"禁止自动保存非当天数据",icon:"mdi-calendar-lock"},"edit.refreshBeforeEdit":{type:"boolean",default:!0,description:"编辑前是否自动刷新",icon:"mdi-refresh"},"edit.confirmNonTodaySave":{type:"boolean",default:!0,description:"保存非当天数据需确认",icon:"mdi-calendar-alert"},"edit.blockPastDataEdit":{type:"boolean",default:!1,description:"禁止编辑过往数据",icon:"mdi-lock-clock"},"edit.autoSavePromptText":{type:"string",default:"喵呜",description:"自动保存模式提示文本",icon:"mdi-text-box-outline"},"edit.manualSavePromptText":{type:"string",default:"写完后点击上传谢谢喵",description:"手动保存模式提示文本",icon:"mdi-text-box-outline"},"developer.enabled":{type:"boolean",default:!1,description:"是否启用开发者选项",icon:"mdi-developer-board"},"developer.showDebugConfig":{type:"boolean",default:!1,description:"是否显示调试配置",icon:"mdi-bug-outline"},"developer.disableMessageLog":{type:"boolean",default:!1,description:"禁用消息日志记录",requireDeveloper:!0,icon:"mdi-message-off-outline"},"message.showSidebar":{type:"boolean",default:!0,description:"是否显示消息记录侧栏",requireDeveloper:!0,icon:"mdi-message-text-outline"},"message.maxActiveMessages":{type:"number",default:5,validate:e=>e>=1&&e<=10,description:"同时显示的最大消息数量",requireDeveloper:!0,icon:"mdi-message-badge-outline"},"message.timeout":{type:"number",default:5e3,validate:e=>e>=1e3&&e<=3e4,description:"消息自动关闭时间(毫秒)",requireDeveloper:!0,icon:"mdi-timer-sand"},"message.saveHistory":{type:"boolean",default:!0,description:"是否保存消息历史记录",requireDeveloper:!0,icon:"mdi-history"},"theme.mode":{type:"string",default:"dark",validate:e=>["light","dark"].includes(e),description:"主题模式",icon:"mdi-theme-light-dark"},"notification.singleSound":{type:"string",default:"Teams 默认.mp3",description:"单次通知铃声",icon:"mdi-bell-ring"},"notification.urgentSound":{type:"string",default:"Teams 默认通话铃.mp3",description:"持续通知铃声",icon:"mdi-bell-alert"},"randomPicker.enabled":{type:"boolean",default:!0,description:"是否启用随机点名功能",icon:"mdi-account-question"},"randomPicker.animation":{type:"boolean",default:!0,description:"是否启用随机点名动画效果",icon:"mdi-animation-play"},"randomPicker.defaultCount":{type:"number",default:1,validate:e=>e>=1&&e,description:"默认抽取人数",icon:"mdi-counter"},"randomPicker.excludeAbsent":{type:"boolean",default:!0,description:"是否排除请假学生",icon:"mdi-account-off"},"randomPicker.excludeLate":{type:"boolean",default:!1,description:"是否排除迟到学生",icon:"mdi-clock-alert"},"randomPicker.excludeExcluded":{type:"boolean",default:!0,description:"是否排除不参与学生",icon:"mdi-account-cancel"},"randomPicker.mode":{type:"string",default:"name",validate:e=>["name","number"].includes(e),description:"随机点名模式",icon:"mdi-format-list-numbered"},"randomPicker.maxNumber":{type:"number",default:60,validate:e=>e>=1&&e,description:"学号模式最大值",icon:"mdi-numeric"},"randomPicker.minNumber":{type:"number",default:1,validate:e=>e>=1&&e,description:"学号模式最小值",icon:"mdi-numeric-negative-1"},"pwa.hideInstallCard":{type:"boolean",default:!1,description:"不显示PWA安装卡片",icon:"mdi-download-off"}};class px{constructor(){this.settingsCache=null,this.isInitialized=!1}init(){this.isInitialized||(this.loadSettings(),this.isInitialized=!0)}loadSettings(){this.settingsCache={};try{const t=typeof localStorage<"u"?localStorage.getItem(fu):null;t&&(this.settingsCache=JSON.parse(t))}catch(t){console.error("加载设置失败:",t)}for(const[t,n]of Object.entries(wr))t in this.settingsCache||(this.settingsCache[t]=n.default);return this.settingsCache}saveSettings(){if(!(typeof localStorage>"u"))try{localStorage.setItem(fu,JSON.stringify(this.settingsCache))}catch(t){console.error("保存设置失败:",t)}}getSetting(t){this.isInitialized||this.init();const n=wr[t];if(!n)return console.warn(`未定义的设置项: ${t}`),null;if(n.requireDeveloper&&!this.settingsCache["developer.enabled"])return n.default;if(this.settingsCache["server.provider"]==="classworkscloud"&&jm[t]!==void 0)return jm[t];const r=this.settingsCache[t];return r!==void 0?r:n.default}setSetting(t,n){this.isInitialized||this.init();const r=wr[t];if(!r)return console.warn(`未定义的设置项: ${t}`),!1;if(r.requireDeveloper&&!this.settingsCache["developer.enabled"])return console.warn(`设置项 ${t} 需要启用开发者选项`),!1;try{const s=this.settingsCache[t];if(typeof n!==r.type&&(n=r.type==="boolean"?!!n:r.type==="number"?Number(n):String(n)),r.validate&&!r.validate(n))return console.warn(`设置项 ${t} 的值无效`),!1;this.settingsCache[t]=n,this.saveSettings(),this.logSettingsChange(t,s,n);const i=r.legacyKey;return i&&typeof localStorage<"u"&&localStorage.setItem(i,n.toString()),!0}catch(s){return console.error(`设置配置项 ${t} 失败:`,s),!1}}logSettingsChange(t,n,r){this.settingsCache["developer.enabled"]&&this.settingsCache["developer.showDebugConfig"]&&console.log(`[Settings] ${t}:`,{old:n,new:r,time:new Date().toLocaleTimeString()})}resetSetting(t){this.isInitialized||this.init();const n=wr[t];if(!n){console.warn(`未定义的设置项: ${t}`);return}this.settingsCache[t]=n.default,this.saveSettings()}resetAllSettings(){this.settingsCache={};for(const[t,n]of Object.entries(wr))this.settingsCache[t]=n.default;this.saveSettings()}watchSettings(t){if(typeof window>"u")return()=>{};const n=r=>{r.key===fu&&(this.settingsCache=JSON.parse(r.newValue),t(this.settingsCache))};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}getSettingDefinition(t){return wr[t]||null}exportSettingsAsKeyValue(){this.isInitialized||this.init();const t={};for(const n in wr)t[n]=this.getSetting(n);return t}}const Gr=new px;typeof window<"u"&&Gr.init();const zf=e=>Gr.getSetting(e),mx=(e,t)=>Gr.setSetting(e,t),gx=e=>Gr.resetSetting(e),vx=e=>Gr.watchSettings(e),yx=e=>Gr.getSettingDefinition(e),_x=()=>Gr.exportSettingsAsKeyValue(),p4=Object.freeze(Object.defineProperty({__proto__:null,SettingsManager:Gr,exportSettingsAsKeyValue:_x,getSetting:zf,getSettingDefinition:yx,requestNotificationPermission:fx,requestPersistentStorage:hx,resetSetting:gx,setSetting:mx,settingsDefinitions:wr,watchSettings:vx},Symbol.toStringTag,{value:"Module"}));class bx{constructor(){this.logs=[]}async addLog(t){return this.logs.push(t),this.logs.length>100&&this.logs.shift(),!0}async getLogs(t=20){return this.logs.slice(-t).reverse()}}const Ja=new bx,Ln=[];let Za=null,Pn=null;const no={SUCCESS:"success",ERROR:"error",INFO:"info",WARNING:"warning"},Sx={timeout:3e3,showSnackbar:!0,addToLog:!0};async function Pa(e,t,n="",r={}){const s={...Sx,...r},i={id:Date.now()+Math.random(),type:e,title:t,content:n.substring(0,500),timestamp:new Date};if(s.addToLog)try{for(await Ja.addLog(i),Ln.unshift(i);Ln.length>zf("message.maxActiveMessages");)Ln.pop();Pn==null||Pn(Ln)}catch(o){console.error("保存日志失败:",o)}return s.showSnackbar&&(Za==null||Za(i)),i}function Ex(e,t){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}const Ys={install:e=>{e.config.globalProperties.$message={success:(t,n,r)=>Pa(no.SUCCESS,t,n,r),error:(t,n,r)=>Pa(no.ERROR,t,n,r),info:(t,n,r)=>Pa(no.INFO,t,n,r),warning:(t,n,r)=>Pa(no.WARNING,t,n,r)}},onSnackbar:e=>{Za=e},onLog:e=>{Pn=e},getMessages:async()=>{try{return await Ja.getLogs()}catch(e){return console.error("获取日志失败:",e),[...Ln]}},clearMessages:async()=>{try{await Ja.clearLogs(),Ln.length=0,Pn==null||Pn(Ln)}catch(e){console.error("清除日志失败:",e)}},MessageType:no,markAsRead:()=>{},deleteMessage:async e=>{try{await Ja.deleteLog(e);const t=Ln.findIndex(n=>n.id===e);t!==-1&&Ln.splice(t,1),Pn==null||Pn(Ln)}catch(t){console.error("删除消息失败:",t)}},getUnreadCount:()=>0,debounce:Ex},Ob=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Fi=le({border:[Boolean,Number,String]},"border");function $i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return{borderClasses:j(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(s=>`border-${s}`):[]})}}const wx=[null,"default","comfortable","compact"],Ms=le({density:{type:String,default:"default",validator:e=>wx.includes(e)}},"density");function Bi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return{densityClasses:ee(()=>`${t}--density-${e.density}`)}}const sa=le({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function ia(e){return{elevationClasses:ee(()=>{const n=Je(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const mr=le({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function gr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return{roundedClasses:j(()=>{const r=Je(e)?e.value:e.rounded,s=Je(e)?!1:e.tile,i=[];if(s||r===!1)i.push("rounded-0");else if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const Mt=le({tag:{type:[String,Object,Function],default:"div"}},"tag");function qf(e){return Lf(()=>{const{class:t,style:n}=Cx(e);return{colorClasses:t,colorStyles:n}})}function bi(e){const{colorClasses:t,colorStyles:n}=qf(()=>({text:bt(e)}));return{textColorClasses:t,textColorStyles:n}}function li(e){const{colorClasses:t,colorStyles:n}=qf(()=>({background:bt(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function Cx(e){const t=bt(e),n=[],r={};if(t.background)if(cd(t.background)){if(r.backgroundColor=t.background,!t.text&&gT(t.background)){const s=Fn(t.background);if(s.a==null||s.a===1){const i=Q_(s);r.color=i,r.caretColor=i}}}else n.push(`bg-${t.background}`);return t.text&&(cd(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const Tx=["elevated","flat","tonal","outlined","text","plain"];function oa(e,t){return se(Ze,null,[e&&se("span",{key:"overlay",class:Me(`${t}__overlay`)},null),se("span",{key:"underlay",class:Me(`${t}__underlay`)},null)])}const Ps=le({color:String,variant:{type:String,default:"elevated",validator:e=>Tx.includes(e)}},"variant");function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();const n=ee(()=>{const{variant:i}=bt(e);return`${t}--variant-${i}`}),{colorClasses:r,colorStyles:s}=qf(()=>{const{variant:i,color:o}=bt(e);return{[["elevated","flat"].includes(i)?"background":"text"]:o}});return{colorClasses:r,colorStyles:s,variantClasses:n}}const Lb=le({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Fi(),...ct(),...Ms(),...sa(),...mr(),...Mt(),...tn(),...Ps()},"VBtnGroup"),zm=De()({name:"VBtnGroup",props:Lb(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{densityClasses:s}=Bi(e),{borderClasses:i}=$i(e),{elevationClasses:o}=ia(e),{roundedClasses:a}=gr(e);vl({VBtn:{height:ee(()=>e.direction==="horizontal"?"auto":null),baseColor:ee(()=>e.baseColor),color:ee(()=>e.color),density:ee(()=>e.density),flat:!0,variant:ee(()=>e.variant)}}),tt(()=>B(e.tag,{class:Me(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,i.value,s.value,o.value,a.value,e.class]),style:Xe(e.style)},n))}}),kx=le({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Ix=le({value:null,disabled:Boolean,selectedClass:String},"group-item");function xx(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=mt("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const s=Jy();At(Symbol.for(`${t.description}:id`),s);const i=Oe(t,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const o=ee(()=>e.value),a=j(()=>!!(i.disabled.value||e.disabled));function c(){i==null||i.register({id:s,value:o,disabled:a},r)}function l(){i==null||i.unregister(s)}c(),Tn(()=>l());const d=j(()=>i.isSelected(s)),u=j(()=>i.items.value[0].id===s),f=j(()=>i.items.value[i.items.value.length-1].id===s),h=j(()=>d.value&&[i.selectedClass.value,e.selectedClass]);return Se(d,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:s,isSelected:d,isFirst:u,isLast:f,toggle:()=>i.select(s,!d.value),select:p=>i.select(s,p),selectedClass:h,value:o,disabled:a,group:i,register:c,unregister:l}}function Rx(e,t){let n=!1;const r=pt([]),s=Zn(e,"modelValue",[],f=>f===void 0?[]:Nb(r,f===null?[null]:Of(f)),f=>{const h=Mx(r,f);return e.multiple?h:h[0]}),i=mt("useGroup");function o(f,h){const p=f,m=Symbol.for(`${t.description}:id`),g=Zs(m,i==null?void 0:i.vnode).indexOf(h);Ut(p.value)===void 0&&(p.value=g,p.useIndexAsValue=!0),g>-1?r.splice(g,0,p):r.push(p)}function a(f){if(n)return;c();const h=r.findIndex(p=>p.id===f);r.splice(h,1)}function c(){const f=r.find(h=>!h.disabled);f&&e.mandatory==="force"&&!s.value.length&&(s.value=[f.id])}jr(()=>{c()}),Tn(()=>{n=!0}),wf(()=>{for(let f=0;f<r.length;f++)r[f].useIndexAsValue&&(r[f].value=f)});function l(f,h){const p=r.find(m=>m.id===f);if(!(h&&(p!=null&&p.disabled)))if(e.multiple){const m=s.value.slice(),v=m.findIndex(y=>y===f),g=~v;if(h=h??!g,g&&e.mandatory&&m.length<=1||!g&&e.max!=null&&m.length+1>e.max)return;v<0&&h?m.push(f):v>=0&&!h&&m.splice(v,1),s.value=m}else{const m=s.value.includes(f);if(e.mandatory&&m||!m&&!h)return;s.value=h??!m?[f]:[]}}function d(f){if(e.multiple,s.value.length){const h=s.value[0],p=r.findIndex(g=>g.id===h);let m=(p+f)%r.length,v=r[m];for(;v.disabled&&m!==p;)m=(m+f)%r.length,v=r[m];if(v.disabled)return;s.value=[r[m].id]}else{const h=r.find(p=>!p.disabled);h&&(s.value=[h.id])}}const u={register:o,unregister:a,selected:s,select:l,disabled:ee(()=>e.disabled),prev:()=>d(r.length-1),next:()=>d(1),isSelected:f=>s.value.includes(f),selectedClass:ee(()=>e.selectedClass),items:ee(()=>r),getItemIndex:f=>Ax(r,f)};return At(t,u),u}function Ax(e,t){const n=Nb(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function Nb(e,t){const n=[];return t.forEach(r=>{const s=e.find(o=>gs(r,o.value)),i=e[r];(s==null?void 0:s.value)!==void 0?n.push(s.id):i!=null&&i.useIndexAsValue&&n.push(i.id)}),n}function Mx(e,t){const n=[];return t.forEach(r=>{const s=e.findIndex(i=>i.id===r);if(~s){const i=e[s];n.push(i.value!==void 0?i.value:s)}}),n}const Db=Symbol.for("vuetify:v-btn-toggle"),Px=le({...Lb(),...kx()},"VBtnToggle"),m4=De()({name:"VBtnToggle",props:Px(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:s,prev:i,select:o,selected:a}=Rx(e,Db);return tt(()=>{const c=zm.filterProps(e);return B(zm,Qe({class:["v-btn-toggle",e.class]},c,{style:e.style}),{default:()=>{var l;return[(l=n.default)==null?void 0:l.call(n,{isSelected:r,next:s,prev:i,select:o,selected:a})]}})}),{next:s,prev:i,select:o}}}),Ox=le({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),un=De(!1)({name:"VDefaultsProvider",props:Ox(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:s,reset:i,root:o,scoped:a}=_f(e);return vl(r,{reset:i,root:o,scoped:a,disabled:s}),()=>{var c;return(c=n.default)==null?void 0:c.call(n)}}}),Lx=["x-small","small","default","large","x-large"],wl=le({size:{type:[String,Number],default:"default"}},"size");function Cl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return Lf(()=>{const n=e.size;let r,s;return Ic(Lx,n)?r=`${t}--size-${n}`:n&&(s={width:me(n),height:me(n)}),{sizeClasses:r,sizeStyles:s}})}const Nx=le({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Et,opacity:[String,Number],...ct(),...wl(),...Mt({tag:"i"}),...tn()},"VIcon"),Hn=De()({name:"VIcon",props:Nx(),setup(e,t){let{attrs:n,slots:r}=t;const s=be(),{themeClasses:i}=hb(),{iconData:o}=NT(()=>s.value||e.icon),{sizeClasses:a}=Cl(e),{textColorClasses:c,textColorStyles:l}=bi(()=>e.color);return tt(()=>{var f,h;const d=(f=r.default)==null?void 0:f.call(r);d&&(s.value=(h=W_(d).filter(p=>p.type===ea&&p.children&&typeof p.children=="string")[0])==null?void 0:h.children);const u=!!(n.onClick||n.onClickOnce);return B(o.value.component,{tag:e.tag,icon:o.value.icon,class:Me(["v-icon","notranslate",i.value,a.value,c.value,{"v-icon--clickable":u,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:Xe([{"--v-icon-opacity":e.opacity},a.value?void 0:{fontSize:me(e.size),height:me(e.size),width:me(e.size)},l.value,e.style]),role:u?"button":void 0,"aria-hidden":!u,tabindex:u?e.disabled?-1:0:void 0},{default:()=>[d]})}),{}}});function Fb(e,t){const n=we(),r=be(!1);if(Af){const s=new IntersectionObserver(i=>{r.value=!!i.find(o=>o.isIntersecting)},t);Ct(()=>{s.disconnect()}),Se(n,(i,o)=>{o&&(s.unobserve(o),r.value=!1),i&&s.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Dx=le({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ct(),...wl(),...Mt({tag:"div"}),...tn()},"VProgressCircular"),Fx=De()({name:"VProgressCircular",props:Dx(),setup(e,t){let{slots:n}=t;const r=20,s=2*Math.PI*r,i=we(),{themeClasses:o}=mn(e),{sizeClasses:a,sizeStyles:c}=Cl(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{textColorClasses:u,textColorStyles:f}=bi(()=>e.bgColor),{intersectionRef:h,isIntersecting:p}=Fb(),{resizeRef:m,contentRect:v}=Uf(),g=ee(()=>or(parseFloat(e.modelValue),0,100)),y=ee(()=>Number(e.width)),_=ee(()=>c.value?Number(e.size):v.value?v.value.width:Math.max(y.value,32)),S=ee(()=>r/(1-y.value/_.value)*2),M=ee(()=>y.value/_.value*S.value),R=ee(()=>{const C=(100-g.value)/100*s;return e.rounded&&g.value>0&&g.value<100?me(Math.min(s-.01,C+M.value)):me(C)}),E=j(()=>{const C=Number(e.rotate);return e.rounded?C+M.value/2/s*360:C});return hn(()=>{h.value=i.value,m.value=i.value}),tt(()=>B(e.tag,{ref:i,class:Me(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate&&(e.indeterminate==="disable-shrink"||Oo())},o.value,a.value,l.value,e.class]),style:Xe([c.value,d.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:g.value},{default:()=>[se("svg",{style:{transform:`rotate(calc(-90deg + ${E.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${S.value} ${S.value}`},[se("circle",{class:Me(["v-progress-circular__underlay",u.value]),style:Xe(f.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":0},null),se("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":M.value,"stroke-dasharray":s,"stroke-dashoffset":R.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&se("div",{class:"v-progress-circular__content"},[n.default({value:g.value})])]})),{}}}),Hi=le({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Vi(e){return{dimensionStyles:j(()=>{const n={},r=me(e.height),s=me(e.maxHeight),i=me(e.maxWidth),o=me(e.minHeight),a=me(e.minWidth),c=me(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),i!=null&&(n.maxWidth=i),o!=null&&(n.minHeight=o),a!=null&&(n.minWidth=a),c!=null&&(n.width=c),n})}}const qm={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Tl=le({location:String},"location");function Gf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=na();return{locationStyles:j(()=>{if(!e.location)return{};const{side:i,align:o}=ad(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function a(l){return n?n(l):0}const c={};return i!=="center"&&(t?c[qm[i]]=`calc(100% - ${a(i)}px)`:c[i]=0),o!=="center"?t?c[qm[o]]=`calc(100% - ${a(o)}px)`:c[o]=0:(i==="center"?c.top=c.left="50%":c[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",c.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),c})}}const $x=le({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function Bx(e,t){const n=ee(()=>!!e.chunkCount||!!e.chunkWidth),r=j(()=>{const a=bt(t);if(!a)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const c=Number(e.chunkCount);return(a-Number(e.chunkGap)*(c-1))/c}),s=ee(()=>Number(e.chunkGap)),i=j(()=>{if(!n.value)return{};const a=me(s.value),c=me(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${c}, transparent ${c}, transparent)`,maskSize:`calc(${c} + ${a}) 100%`}});function o(a){const c=bt(t);if(!c)return a;const l=100*s.value/c,d=100*(r.value+s.value)/c,u=Math.floor((a+l)/d);return or(0,u*d-l/2,100)}return{hasChunks:n,chunksMaskStyles:i,snapValueToChunk:o}}const Hx=le({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...$x(),...ct(),...Tl({location:"top"}),...mr(),...Mt(),...tn()},"VProgressLinear"),$b=De()({name:"VProgressLinear",props:Hx(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=we(),s=Zn(e,"modelValue"),{isRtl:i,rtlClasses:o}=na(),{themeClasses:a}=mn(e),{locationStyles:c}=Gf(e),{textColorClasses:l,textColorStyles:d}=bi(()=>e.color),{backgroundColorClasses:u,backgroundColorStyles:f}=li(()=>e.bgColor||e.color),{backgroundColorClasses:h,backgroundColorStyles:p}=li(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:v}=li(()=>e.color),{roundedClasses:g}=gr(e),{intersectionRef:y,isIntersecting:_}=Fb(),S=j(()=>parseFloat(e.max)),M=j(()=>parseFloat(e.height)),R=j(()=>or(parseFloat(e.bufferValue)/S.value*100,0,100)),E=j(()=>or(parseFloat(s.value)/S.value*100,0,100)),C=j(()=>i.value!==e.reverse),I=j(()=>e.indeterminate?"fade-transition":"slide-x-transition"),A=be(0),{hasChunks:O,chunksMaskStyles:T,snapValueToChunk:P}=Bx(e,A);Di(O,()=>{const{resizeRef:q}=Uf(D=>A.value=D[0].contentRect.width);hn(()=>q.value=r.value)});const N=j(()=>O.value?P(R.value):R.value),z=j(()=>O.value?P(E.value):E.value);function X(q){if(!y.value)return;const{left:D,right:re,width:U}=y.value.getBoundingClientRect(),ie=C.value?U-q.clientX+(re-U):q.clientX-D;s.value=Math.round(ie/U*S.value)}return hn(()=>{y.value=r.value}),tt(()=>B(e.tag,{ref:r,class:Me(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&_.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},g.value,a.value,o.value,e.class]),style:Xe([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?me(M.value):0,"--v-progress-linear-height":me(M.value),...e.absolute?c.value:{}},T.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),S.value),onClick:e.clickable&&X},{default:()=>[e.stream&&se("div",{key:"stream",class:Me(["v-progress-linear__stream",l.value]),style:{...d.value,[C.value?"left":"right"]:me(-M.value),borderTop:`${me(M.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${me(M.value/4)})`,width:me(100-R.value,"%"),"--v-progress-linear-stream-to":me(M.value*(C.value?1:-1))}},null),se("div",{class:Me(["v-progress-linear__background",u.value]),style:Xe([f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),se("div",{class:Me(["v-progress-linear__buffer",h.value]),style:Xe([p.value,{opacity:parseFloat(e.bufferOpacity),width:me(N.value,"%")}])},null),B($r,{name:I.value},{default:()=>[e.indeterminate?se("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(q=>se("div",{key:q,class:Me(["v-progress-linear__indeterminate",q,m.value]),style:Xe(v.value)},null))]):se("div",{class:Me(["v-progress-linear__determinate",m.value]),style:Xe([v.value,{width:me(z.value,"%")}])},null)]}),n.default&&se("div",{class:"v-progress-linear__content"},[n.default({value:E.value,buffer:R.value})])]})),{}}}),Bb=le({loading:[Boolean,String]},"loader");function Hb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return{loaderClasses:ee(()=>({[`${t}--loading`]:e.loading}))}}function Vx(e,t){var r;let{slots:n}=t;return se("div",{class:Me(`${e.name}__loader`)},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||B($b,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Ux=["static","relative","fixed","absolute","sticky"],Kf=le({position:{type:String,validator:e=>Ux.includes(e)}},"position");function Yf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qr();return{positionClasses:ee(()=>e.position?`${t}--${e.position}`:void 0)}}function Wx(){const e=mt("useRoute");return j(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function jx(){var e,t;return(t=(e=mt("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function Xf(e,t){var u,f;const n=i_("RouterLink"),r=ee(()=>!!(e.href||e.to)),s=j(()=>(r==null?void 0:r.value)||Yp(t,"click")||Yp(e,"click"));if(typeof n=="string"||!("useLink"in n)){const h=ee(()=>e.href);return{isLink:r,isRouterLink:ee(()=>!1),isClickable:s,href:h,linkProps:pt({href:h})}}const i=n.useLink({to:ee(()=>e.to||""),replace:ee(()=>e.replace)}),o=j(()=>e.to?i:void 0),a=Wx(),c=j(()=>{var h,p,m;return o.value?e.exact?a.value?((m=o.value.isExactActive)==null?void 0:m.value)&&gs(o.value.route.value.query,a.value.query):((p=o.value.isExactActive)==null?void 0:p.value)??!1:((h=o.value.isActive)==null?void 0:h.value)??!1:!1}),l=j(()=>{var h;return e.to?(h=o.value)==null?void 0:h.route.value.href:e.href});return{isLink:r,isRouterLink:ee(()=>!!e.to),isClickable:s,isActive:c,route:(u=o.value)==null?void 0:u.route,navigate:(f=o.value)==null?void 0:f.navigate,href:l,linkProps:pt({href:l,"aria-current":ee(()=>c.value?"page":void 0),"aria-disabled":ee(()=>e.disabled&&r.value?"true":void 0),tabindex:ee(()=>e.disabled&&r.value?"-1":void 0)})}}const Jf=le({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let hu=!1;function zx(e,t){let n=!1,r,s;et&&(e!=null&&e.beforeEach)&&(vt(()=>{window.addEventListener("popstate",i),r=e.beforeEach((o,a,c)=>{hu?n?t(c):c():setTimeout(()=>n?t(c):c()),hu=!0}),s=e==null?void 0:e.afterEach(()=>{hu=!1})}),Ct(()=>{window.removeEventListener("popstate",i),r==null||r(),s==null||s()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function qx(e,t){Se(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n!=null&&t&&vt(()=>{t(n)})},{immediate:!0})}const yd=Symbol("rippleStop"),Gx=80;function Gm(e,t){e.style.transform=t,e.style.webkitTransform=t}function _d(e){return e.constructor.name==="TouchEvent"}function Vb(e){return e.constructor.name==="KeyboardEvent"}const Kx=function(e,t){var u;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,s=0;if(!Vb(e)){const f=t.getBoundingClientRect(),h=_d(e)?e.touches[e.touches.length-1]:e;r=h.clientX-f.left,s=h.clientY-f.top}let i=0,o=.3;(u=t._ripple)!=null&&u.circle?(o=.15,i=t.clientWidth/2,i=n.center?i:i+Math.sqrt((r-i)**2+(s-i)**2)/4):i=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const a=`${(t.clientWidth-i*2)/2}px`,c=`${(t.clientHeight-i*2)/2}px`,l=n.center?a:`${r-i}px`,d=n.center?c:`${s-i}px`;return{radius:i,scale:o,x:l,y:d,centerX:a,centerY:c}},Oc={show(e,t){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=t==null?void 0:t._ripple)!=null&&h.enabled))return;const r=document.createElement("span"),s=document.createElement("span");r.appendChild(s),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:c,centerX:l,centerY:d}=Kx(e,t,n),u=`${i*2}px`;s.className="v-ripple__animation",s.style.width=u,s.style.height=u,t.appendChild(r);const f=window.getComputedStyle(t);f&&f.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),Gm(s,`translate(${a}, ${c}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),Gm(s,`translate(${l}, ${d}) scale3d(1,1,1)`)})})},hide(e){var i;if(!((i=e==null?void 0:e._ripple)!=null&&i.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=Array.from(t).findLast(o=>!o.dataset.isHiding);if(n)n.dataset.isHiding="true";else return;const r=performance.now()-Number(n.dataset.activated),s=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function Ub(e){return typeof e>"u"||!!e}function Ho(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[yd])){if(e[yd]=!0,_d(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||Vb(e),n._ripple.class&&(t.class=n._ripple.class),_d(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Oc.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Gx)}else Oc.show(e,n,t)}}function Lc(e){e[yd]=!0}function Jt(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Jt(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Oc.hide(t)}}function Wb(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Vo=!1;function Yx(e,t){!Vo&&t.includes(e.key)&&(Vo=!0,Ho(e))}function jb(e){Vo=!1,Jt(e)}function zb(e){Vo&&(Vo=!1,Jt(e))}function qb(e,t,n){const{value:r,modifiers:s}=t,i=Ub(r);i||Oc.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=i,e._ripple.centered=s.center,e._ripple.circle=s.circle;const o=id(r)?r:{};o.class&&(e._ripple.class=o.class);const a=o.keys??["Enter","Space"];if(e._ripple.keyDownHandler=c=>Yx(c,a),i&&!n){if(s.stop){e.addEventListener("touchstart",Lc,{passive:!0}),e.addEventListener("mousedown",Lc);return}e.addEventListener("touchstart",Ho,{passive:!0}),e.addEventListener("touchend",Jt,{passive:!0}),e.addEventListener("touchmove",Wb,{passive:!0}),e.addEventListener("touchcancel",Jt),e.addEventListener("mousedown",Ho),e.addEventListener("mouseup",Jt),e.addEventListener("mouseleave",Jt),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",jb),e.addEventListener("blur",zb),e.addEventListener("dragstart",Jt,{passive:!0})}else!i&&n&&Gb(e)}function Gb(e){var t;e.removeEventListener("touchstart",Lc),e.removeEventListener("mousedown",Lc),e.removeEventListener("touchstart",Ho),e.removeEventListener("touchend",Jt),e.removeEventListener("touchmove",Wb),e.removeEventListener("touchcancel",Jt),e.removeEventListener("mousedown",Ho),e.removeEventListener("mouseup",Jt),e.removeEventListener("mouseleave",Jt),(t=e._ripple)!=null&&t.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",jb),e.removeEventListener("blur",zb),e.removeEventListener("dragstart",Jt)}function Xx(e,t){qb(e,t,!1)}function Jx(e){Gb(e),delete e._ripple}function Zx(e,t){if(t.value===t.oldValue)return;const n=Ub(t.oldValue);qb(e,t,n)}const Uo={mounted:Xx,unmounted:Jx,updated:Zx},Qx=le({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:Db},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Et,appendIcon:Et,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...sa(),...Ix(),...Bb(),...Tl(),...Kf(),...mr(),...Jf(),...wl(),...Mt({tag:"button"}),...tn(),...Ps({variant:"elevated"})},"VBtn"),Kb=De()({name:"VBtn",props:Qx(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{densityClasses:o}=Bi(e),{dimensionStyles:a}=Vi(e),{elevationClasses:c}=ia(e),{loaderClasses:l}=Hb(e),{locationStyles:d}=Gf(e),{positionClasses:u}=Yf(e),{roundedClasses:f}=gr(e),{sizeClasses:h,sizeStyles:p}=Cl(e),m=xx(e,e.symbol,!1),v=Xf(e,n),g=j(()=>{var O;return e.active!==void 0?e.active:v.isRouterLink.value?(O=v.isActive)==null?void 0:O.value:m==null?void 0:m.isSelected.value}),y=ee(()=>g.value?e.activeColor??e.color:e.color),_=j(()=>{var T,P;return{color:(m==null?void 0:m.isSelected.value)&&(!v.isLink.value||((T=v.isActive)==null?void 0:T.value))||!m||((P=v.isActive)==null?void 0:P.value)?y.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:S,colorStyles:M,variantClasses:R}=aa(_),E=j(()=>(m==null?void 0:m.disabled.value)||e.disabled),C=ee(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),I=j(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function A(O){var T;E.value||v.isLink.value&&(O.metaKey||O.ctrlKey||O.shiftKey||O.button!==0||n.target==="_blank")||(v.isRouterLink.value?(T=v.navigate)==null||T.call(v,O):m==null||m.toggle())}return qx(v,m==null?void 0:m.select),tt(()=>{const O=v.isLink.value?"a":e.tag,T=!!(e.prependIcon||r.prepend),P=!!(e.appendIcon||r.append),N=!!(e.icon&&e.icon!==!0);return ws(B(O,Qe(v.linkProps,{type:O==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":g.value,"v-btn--block":e.block,"v-btn--disabled":E.value,"v-btn--elevated":C.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,i.value,S.value,o.value,c.value,l.value,u.value,f.value,h.value,R.value,e.class],style:[M.value,a.value,d.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:E.value&&O!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:A,value:I.value}),{default:()=>{var z;return[oa(!0,"v-btn"),!e.icon&&T&&se("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):B(Hn,{key:"prepend-icon",icon:e.prependIcon},null)]),se("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&N?B(Hn,{key:"content-icon",icon:e.icon},null):B(un,{key:"content-defaults",disabled:!N,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var X;return[((X=r.default)==null?void 0:X.call(r))??bn(e.text)]}})]),!e.icon&&P&&se("span",{key:"append",class:"v-btn__append"},[r.append?B(un,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):B(Hn,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&se("span",{key:"loader",class:"v-btn__loader"},[((z=r.loader)==null?void 0:z.call(r))??B(Fx,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Uo,!E.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}});function pu(e,t){return{x:e.x+t.x,y:e.y+t.y}}function eR(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Km(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,s=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,i=n==="top"?0:n==="bottom"?t.height:n;return pu({x:s,y:i},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,s=n==="left"?0:n==="right"?t.width:n,i=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return pu({x:s,y:i},t)}return pu({x:t.width/2,y:t.height/2},t)}const Yb={static:rR,connected:iR},tR=le({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Yb},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function nR(e,t){const n=we({}),r=we();et&&Di(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var c,l;Se(()=>e.locationStrategy,a),Ct(()=>{window.removeEventListener("resize",s),visualViewport==null||visualViewport.removeEventListener("resize",i),visualViewport==null||visualViewport.removeEventListener("scroll",o),r.value=void 0}),window.addEventListener("resize",s,{passive:!0}),visualViewport==null||visualViewport.addEventListener("resize",i,{passive:!0}),visualViewport==null||visualViewport.addEventListener("scroll",o,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(c=e.locationStrategy(t,e,n))==null?void 0:c.updateLocation:r.value=(l=Yb[e.locationStrategy](t,e,n))==null?void 0:l.updateLocation});function s(a){var c;(c=r.value)==null||c.call(r,a)}function i(a){var c;(c=r.value)==null||c.call(r,a)}function o(a){var c;(c=r.value)==null||c.call(r,a)}return{contentStyles:n,updateLocation:r}}function rR(){}function sR(e,t){const n=K_(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function iR(e,t,n){(Array.isArray(e.target.value)||OT(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:s,preferredOrigin:i}=Lf(()=>{const g=ad(t.location,e.isRtl.value),y=t.origin==="overlap"?g:t.origin==="auto"?ru(g):ad(t.origin,e.isRtl.value);return g.side===y.side&&g.align===su(y).align?{preferredAnchor:Jp(g),preferredOrigin:Jp(y)}:{preferredAnchor:g,preferredOrigin:y}}),[o,a,c,l]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>j(()=>{const y=parseFloat(t[g]);return isNaN(y)?1/0:y})),d=j(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const g=t.offset.split(" ").map(parseFloat);return g.length<2&&g.push(0),g}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let u=!1,f=-1;const h=new GC(4),p=new ResizeObserver(()=>{if(!u)return;if(requestAnimationFrame(y=>{y!==f&&h.clear(),requestAnimationFrame(_=>{f=_})}),h.isFull){const y=h.values();if(gs(y.at(-1),y.at(-3))&&!gs(y.at(-1),y.at(-2)))return}const g=v();g&&h.push(g.flipped)});let m=new ln({x:0,y:0,width:0,height:0});Se(e.target,(g,y)=>{y&&!Array.isArray(y)&&p.unobserve(y),Array.isArray(g)?gs(g,y)||v():g&&p.observe(g)},{immediate:!0}),Se(e.contentEl,(g,y)=>{y&&p.unobserve(y),g&&p.observe(g)},{immediate:!0}),Ct(()=>{p.disconnect()});function v(){if(u=!1,requestAnimationFrame(()=>u=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=G_(e.target.value));const g=sR(e.contentEl.value,e.isRtl.value),y=Rc(e.contentEl.value),_=Number(t.viewportMargin);y.length||(y.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(g.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),g.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=y.reduce((P,N)=>{const z=eT(N);return P?new ln({x:Math.max(P.left,z.left),y:Math.max(P.top,z.top),width:Math.min(P.right,z.right)-Math.max(P.left,z.left),height:Math.min(P.bottom,z.bottom)-Math.max(P.top,z.top)}):z},void 0);t.stickToTarget?(S.x+=Math.min(_,m.x),S.y+=Math.min(_,m.y),S.width=Math.max(S.width-_*2,m.x+m.width-_),S.height=Math.max(S.height-_*2,m.y+m.height-_)):(S.x+=_,S.y+=_,S.width-=_*2,S.height-=_*2);let M={anchor:s.value,origin:i.value};function R(P){const N=new ln(g),z=Km(P.anchor,m),X=Km(P.origin,N);let{x:q,y:D}=eR(z,X);switch(P.anchor.side){case"top":D-=d.value[0];break;case"bottom":D+=d.value[0];break;case"left":q-=d.value[0];break;case"right":q+=d.value[0];break}switch(P.anchor.align){case"top":D-=d.value[1];break;case"bottom":D+=d.value[1];break;case"left":q-=d.value[1];break;case"right":q+=d.value[1];break}return N.x+=q,N.y+=D,N.width=Math.min(N.width,c.value),N.height=Math.min(N.height,l.value),{overflows:Qp(N,S),x:q,y:D}}let E=0,C=0;const I={x:0,y:0},A={x:!1,y:!1};let O=-1;for(;!(O++>10);){const{x:P,y:N,overflows:z}=R(M);E+=P,C+=N,g.x+=P,g.y+=N;{const X=Zp(M.anchor),q=z.x.before||z.x.after,D=z.y.before||z.y.after;let re=!1;if(["x","y"].forEach(U=>{if(U==="x"&&q&&!A.x||U==="y"&&D&&!A.y){const ie={anchor:{...M.anchor},origin:{...M.origin}},ae=U==="x"?X==="y"?su:ru:X==="y"?ru:su;ie.anchor=ae(ie.anchor),ie.origin=ae(ie.origin);const{overflows:ue}=R(ie);(ue[U].before<=z[U].before&&ue[U].after<=z[U].after||ue[U].before+ue[U].after<(z[U].before+z[U].after)/2)&&(M=ie,re=A[U]=!0)}}),re)continue}z.x.before&&(E+=z.x.before,g.x+=z.x.before),z.x.after&&(E-=z.x.after,g.x-=z.x.after),z.y.before&&(C+=z.y.before,g.y+=z.y.before),z.y.after&&(C-=z.y.after,g.y-=z.y.after);{const X=Qp(g,S);I.x=S.width-X.x.before-X.x.after,I.y=S.height-X.y.before-X.y.after,E+=X.x.before,g.x+=X.x.before,C+=X.y.before,g.y+=X.y.before}break}const T=Zp(M.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${M.anchor.side} ${M.anchor.align}`,transformOrigin:`${M.origin.side} ${M.origin.align}`,top:me(mu(C)),left:e.isRtl.value?void 0:me(mu(E)),right:e.isRtl.value?me(mu(-E)):void 0,minWidth:me(T==="y"?Math.min(o.value,m.width):o.value),maxWidth:me(Ym(or(I.x,o.value===1/0?0:o.value,c.value))),maxHeight:me(Ym(or(I.y,a.value===1/0?0:a.value,l.value)))}),{available:I,contentBox:g,flipped:A}}return Se(()=>[s.value,i.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>v()),vt(()=>{const g=v();if(!g)return;const{available:y,contentBox:_}=g;_.height>y.y&&requestAnimationFrame(()=>{v(),requestAnimationFrame(()=>{v()})})}),{updateLocation:v}}function mu(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ym(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let bd=!0;const Nc=[];function oR(e){!bd||Nc.length?(Nc.push(e),Sd()):(bd=!1,e(),Sd())}let Xm=-1;function Sd(){cancelAnimationFrame(Xm),Xm=requestAnimationFrame(()=>{const e=Nc.shift();e&&e(),Nc.length?Sd():bd=!0})}const Qa={none:null,close:lR,block:uR,reposition:dR},aR=le({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Qa}},"VOverlay-scroll-strategies");function cR(e,t){if(!et)return;let n;hn(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Es(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=Qa[e.scrollStrategy])==null||r.call(Qa,t,e,n)}))}),Ct(()=>{n==null||n.stop()})}function lR(e){function t(n){e.isActive.value=!1}Xb(Zf(e.target.value,e.contentEl.value),t)}function uR(e,t){var a;const n=(a=e.root.value)==null?void 0:a.offsetParent,r=Zf(e.target.value,e.contentEl.value),s=[...new Set([...Rc(r,t.contained?n:void 0),...Rc(e.contentEl.value,t.contained?n:void 0)])].filter(c=>!c.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(c=>$f(c)&&c)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((c,l)=>{c.style.setProperty("--v-body-scroll-x",me(-c.scrollLeft)),c.style.setProperty("--v-body-scroll-y",me(-c.scrollTop)),c!==document.documentElement&&c.style.setProperty("--v-scrollbar-offset",me(i)),c.classList.add("v-overlay-scroll-blocked")}),Ct(()=>{s.forEach((c,l)=>{const d=parseFloat(c.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(c.style.getPropertyValue("--v-body-scroll-y")),f=c.style.scrollBehavior;c.style.scrollBehavior="auto",c.style.removeProperty("--v-body-scroll-x"),c.style.removeProperty("--v-body-scroll-y"),c.style.removeProperty("--v-scrollbar-offset"),c.classList.remove("v-overlay-scroll-blocked"),c.scrollLeft=-d,c.scrollTop=-u,c.style.scrollBehavior=f}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function dR(e,t,n){let r=!1,s=-1,i=-1;function o(a){oR(()=>{var d,u;const c=performance.now();(u=(d=e.updateLocation).value)==null||u.call(d,a),r=(performance.now()-c)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Xb(Zf(e.target.value,e.contentEl.value),a=>{r?(cancelAnimationFrame(s),s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),Ct(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(s)})}function Zf(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!(t!=null&&t.contains(n))):e??t}function Xb(e,t){const n=[document,...Rc(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Ct(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const fR=Symbol.for("vuetify:v-menu"),hR=le({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function pR(e,t){let n=()=>{};function r(o,a){n==null||n();const c=o?e.openDelay:e.closeDelay,l=Math.max((a==null?void 0:a.minDelay)??0,Number(c??0));return new Promise(d=>{n=JC(l,()=>{t==null||t(o),d(o)})})}function s(){return r(!0)}function i(o){return r(!1,o)}return{clearDelay:n,runOpenDelay:s,runCloseDelay:i}}const mR=le({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...hR()},"VOverlay-activator");function gR(e,t){let{isActive:n,isTop:r,contentEl:s}=t;const i=mt("useActivator"),o=we();let a=!1,c=!1,l=!0;const d=j(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),u=j(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!d.value),{runOpenDelay:f,runCloseDelay:h}=pR(e,C=>{C===(e.openOnHover&&a||d.value&&c)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(l=!0),n.value=C)}),p=we(),m={onClick:C=>{C.stopPropagation(),o.value=C.currentTarget||C.target,n.value||(p.value=[C.clientX,C.clientY]),n.value=!n.value},onMouseenter:C=>{a=!0,o.value=C.currentTarget||C.target,f()},onMouseleave:C=>{a=!1,h()},onFocus:C=>{YC(C.target,":focus-visible")!==!1&&(c=!0,C.stopPropagation(),o.value=C.currentTarget||C.target,f())},onBlur:C=>{c=!1,C.stopPropagation(),h({minDelay:1})}},v=j(()=>{const C={};return u.value&&(C.onClick=m.onClick),e.openOnHover&&(C.onMouseenter=m.onMouseenter,C.onMouseleave=m.onMouseleave),d.value&&(C.onFocus=m.onFocus,C.onBlur=m.onBlur),C}),g=j(()=>{const C={};if(e.openOnHover&&(C.onMouseenter=()=>{a=!0,f()},C.onMouseleave=()=>{a=!1,h()}),d.value&&(C.onFocusin=I=>{I.target.matches(":focus-visible")&&(c=!0,f())},C.onFocusout=()=>{c=!1,h({minDelay:1})}),e.closeOnContentClick){const I=Oe(fR,null);C.onClick=()=>{n.value=!1,I==null||I.closeParents()}}return C}),y=j(()=>{const C={};return e.openOnHover&&(C.onMouseenter=()=>{l&&(a=!0,l=!1,f())},C.onMouseleave=()=>{a=!1,h()}),C});Se(r,C=>{var I;C&&(e.openOnHover&&!a&&(!d.value||!c)||d.value&&!c&&(!e.openOnHover||!a))&&!((I=s.value)!=null&&I.contains(document.activeElement))&&(n.value=!1)}),Se(n,C=>{C||setTimeout(()=>{p.value=void 0})},{flush:"post"});const _=od();hn(()=>{_.value&&vt(()=>{o.value=_.el})});const S=od(),M=j(()=>e.target==="cursor"&&p.value?p.value:S.value?S.el:Jb(e.target,i)||o.value),R=j(()=>Array.isArray(M.value)?void 0:M.value);let E;return Se(()=>!!e.activator,C=>{C&&et?(E=Es(),E.run(()=>{vR(e,i,{activatorEl:o,activatorEvents:v})})):E&&E.stop()},{flush:"post",immediate:!0}),Ct(()=>{E==null||E.stop()}),{activatorEl:o,activatorRef:_,target:M,targetEl:R,targetRef:S,activatorEvents:v,contentEvents:g,scrimEvents:y}}function vR(e,t,n){let{activatorEl:r,activatorEvents:s}=n;Se(()=>e.activator,(c,l)=>{if(l&&c!==l){const d=a(l);d&&o(d)}c&&vt(()=>i())},{immediate:!0}),Se(()=>e.activatorProps,()=>{i()}),Ct(()=>{o()});function i(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&tT(c,Qe(s.value,l))}function o(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;c&&nT(c,Qe(s.value,l))}function a(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const l=Jb(c,t);return r.value=(l==null?void 0:l.nodeType)===Node.ELEMENT_NODE?l:void 0,r.value}}function Jb(e,t){var r,s;if(!e)return;let n;if(e==="parent"){let i=(s=(r=t==null?void 0:t.proxy)==null?void 0:r.$el)==null?void 0:s.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const yR=le({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),ec=new Map;let Jm=0;function Zm(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(ec.values()).filter(l=>{var f;let{isActive:d,contentEl:u}=l;return d.value&&((f=u.value)==null?void 0:f.contains(t))}).map(l=>l.contentEl.value);let r,s=t.parentElement;for(;s;){if(n.includes(s)){r=s;break}s=s.parentElement}if(!r)return;const i=yo(r).filter(l=>l.tabIndex>=0);if(!i.length)return;const o=document.activeElement;if(i.length===1&&i[0].classList.contains("v-list")&&i[0].contains(o)){e.preventDefault();return}const a=i[0],c=i[i.length-1];e.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(e.preventDefault(),c.focus()),!e.shiftKey&&(o===c||c.classList.contains("v-list")&&c.contains(o))&&(e.preventDefault(),a.focus())}function _R(e,t){let{isActive:n,localTop:r,activatorEl:s,contentEl:i}=t;const o=Symbol("trap");let a=!1,c=-1;async function l(){a=!0,c=window.setTimeout(()=>{a=!1},100)}async function d(h){var v;const p=h.relatedTarget,m=h.target;document.removeEventListener("pointerdown",l),document.removeEventListener("keydown",u),await vt(),n.value&&!a&&p!==m&&i.value&&bt(r)&&![document,i.value].includes(m)&&!i.value.contains(m)&&((v=yo(i.value)[0])==null||v.focus())}function u(h){if(h.key==="Tab"&&(document.removeEventListener("keydown",u),n.value&&i.value&&h.target&&!i.value.contains(h.target))){const p=yo(document.documentElement);if(h.shiftKey&&h.target===p.at(0)||!h.shiftKey&&h.target===p.at(-1)){const m=yo(i.value);m.length>0&&(h.preventDefault(),m[0].focus())}}}const f=ee(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);et&&(Se(()=>e.retainFocus,h=>{h?ec.set(o,{isActive:n,contentEl:i}):ec.delete(o)},{immediate:!0}),Se(f,h=>{h?(document.addEventListener("pointerdown",l),document.addEventListener("focusin",d,{once:!0}),document.addEventListener("keydown",u)):(document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u))},{immediate:!0}),Jm++<1&&document.addEventListener("keydown",Zm)),Ct(()=>{ec.delete(o),clearTimeout(c),document.removeEventListener("pointerdown",l),document.removeEventListener("focusin",d),document.removeEventListener("keydown",u),--Jm<1&&document.removeEventListener("keydown",Zm)})}function bR(){if(!et)return be(!1);const{ssr:e}=Ok();if(e){const t=be(!1);return jr(()=>{t.value=!0}),t}else return be(!0)}const SR=le({eager:Boolean},"lazy");function ER(e,t){const n=be(!1),r=ee(()=>n.value||e.eager||t.value);Se(t,()=>n.value=!0);function s(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:s}}function Qf(){const t=mt("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const Qm=Symbol.for("vuetify:stack"),ro=pt([]);function wR(e,t,n){const r=mt("useStack"),s=!n,i=Oe(Qm,void 0),o=pt({activeChildren:new Set});At(Qm,o);const a=be(Number(bt(t)));Di(e,()=>{var u;const d=(u=ro.at(-1))==null?void 0:u[1];a.value=d?d+10:Number(bt(t)),s&&ro.push([r.uid,a.value]),i==null||i.activeChildren.add(r.uid),Ct(()=>{if(s){const f=de(ro).findIndex(h=>h[0]===r.uid);ro.splice(f,1)}i==null||i.activeChildren.delete(r.uid)})});const c=be(!0);return s&&hn(()=>{var u;const d=((u=ro.at(-1))==null?void 0:u[0])===r.uid;setTimeout(()=>c.value=d)}),{globalTop:hi(c),localTop:ee(()=>!o.activeChildren.size),stackStyles:ee(()=>({zIndex:a.value}))}}function CR(e){return{teleportTarget:j(()=>{const n=e();if(n===!0||!et)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let s=[...r.children].find(i=>i.matches(".v-overlay-container"));return s||(s=document.createElement("div"),s.className="v-overlay-container",r.appendChild(s)),s})}}const Zb=le({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Qs=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:s,group:i,...o}=e,{component:a=i?Rf:$r,...c}=id(r)?r:{};let l;return id(r)?l=Qe(c,ZC({disabled:s,group:i}),o):l=Qe({name:s||!r?"":r},o),zr(a,l,n)};function TR(){return!0}function Qb(e,t,n){if(!e||eS(e,n)===!1)return!1;const r=eb(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const s=(typeof n.value=="object"&&n.value.include||(()=>[]))();return s.push(t),!s.some(i=>i==null?void 0:i.contains(e.target))}function eS(e,t){return(typeof t.value=="object"&&t.value.closeConditional||TR)(e)}function kR(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&Qb(e,t,n)&&setTimeout(()=>{eS(e,n)&&r&&r(e)},0)}function eg(e,t){const n=eb(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const tg={mounted(e,t){const n=s=>kR(s,e,t),r=s=>{e._clickOutside.lastMousedownWasOutside=Qb(s,e,t)};eg(e,s=>{s.addEventListener("click",n,!0),s.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(eg(e,n=>{var i;if(!n||!((i=e._clickOutside)!=null&&i[t.instance.$.uid]))return;const{onClick:r,onMousedown:s}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",s,!0)}),delete e._clickOutside[t.instance.$.uid])}};function IR(e){const{modelValue:t,color:n,...r}=e;return B($r,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&se("div",Qe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const eh=le({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...mR(),...ct(),...Hi(),...SR(),...tR(),...aR(),...yR(),...tn(),...Zb()},"VOverlay"),Dc=De()({name:"VOverlay",directives:{vClickOutside:tg},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...As(eh(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:s}=t;const i=mt("VOverlay"),o=we(),a=we(),c=we(),l=Zn(e,"modelValue"),d=j({get:()=>l.value,set:x=>{x&&e.disabled||(l.value=x)}}),{themeClasses:u}=mn(e),{rtlClasses:f,isRtl:h}=na(),{hasContent:p,onAfterLeave:m}=ER(e,d),v=li(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:g,localTop:y,stackStyles:_}=wR(d,()=>e.zIndex,e._disableGlobalStack),{activatorEl:S,activatorRef:M,target:R,targetEl:E,targetRef:C,activatorEvents:I,contentEvents:A,scrimEvents:O}=gR(e,{isActive:d,isTop:y,contentEl:c}),{teleportTarget:T}=CR(()=>{var K,ne,ye;const x=e.attach||e.contained;if(x)return x;const W=((K=S==null?void 0:S.value)==null?void 0:K.getRootNode())||((ye=(ne=i.proxy)==null?void 0:ne.$el)==null?void 0:ye.getRootNode());return W instanceof ShadowRoot?W:!1}),{dimensionStyles:P}=Vi(e),N=bR(),{scopeId:z}=Qf();Se(()=>e.disabled,x=>{x&&(d.value=!1)});const{contentStyles:X,updateLocation:q}=nR(e,{isRtl:h,contentEl:c,target:R,isActive:d});cR(e,{root:o,contentEl:c,targetEl:E,target:R,isActive:d,updateLocation:q});function D(x){s("click:outside",x),e.persistent?Ce():d.value=!1}function re(x){return d.value&&y.value&&(!e.scrim||x.target===a.value||x instanceof MouseEvent&&x.shadowTarget===a.value)}_R(e,{isActive:d,localTop:y,contentEl:c,activatorEl:S}),et&&Se(d,x=>{x?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),Tn(()=>{et&&window.removeEventListener("keydown",U)});function U(x){var W,K,ne;x.key==="Escape"&&g.value&&((W=c.value)!=null&&W.contains(document.activeElement)||s("keydown",x),e.persistent?Ce():(d.value=!1,(K=c.value)!=null&&K.contains(document.activeElement)&&((ne=S.value)==null||ne.focus())))}function ie(x){x.key==="Escape"&&!g.value||s("keydown",x)}const ae=jx();Di(()=>e.closeOnBack,()=>{zx(ae,x=>{g.value&&d.value?(x(!1),e.persistent?Ce():d.value=!1):x()})});const ue=we();Se(()=>d.value&&(e.absolute||e.contained)&&T.value==null,x=>{if(x){const W=MT(o.value);W&&W!==document.scrollingElement&&(ue.value=W.scrollTop)}});function Ce(){e.noClickAnimation||c.value&&ss(c.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:ld})}function Ne(){s("afterEnter")}function He(){m(),s("afterLeave")}return tt(()=>{var x;return se(Ze,null,[(x=n.activator)==null?void 0:x.call(n,{isActive:d.value,targetRef:C,props:Qe({ref:M},I.value,e.activatorProps)}),N.value&&p.value&&B(d1,{disabled:!T.value,to:T.value},{default:()=>[se("div",Qe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":d.value,"v-overlay--contained":e.contained},u.value,f.value,e.class],style:[_.value,{"--v-overlay-opacity":e.opacity,top:me(ue.value)},e.style],ref:o,onKeydown:ie},z,r),[B(IR,Qe({color:v,modelValue:d.value&&!!e.scrim,ref:a},O.value),null),B(Qs,{appear:!0,persisted:!0,transition:e.transition,target:R.value,onAfterEnter:Ne,onAfterLeave:He},{default:()=>{var W;return[ws(se("div",Qe({ref:c,class:["v-overlay__content",e.contentClass],style:[P.value,X.value]},A.value,e.contentProps),[(W=n.default)==null?void 0:W.call(n,{isActive:d})]),[[xf,d.value],[tg,{handler:D,closeConditional:re,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:a,target:R,animateClick:Ce,contentEl:c,rootEl:o,globalTop:g,localTop:y,updateLocation:q}}}),gu=Symbol("Forwarded refs");function vu(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[gu]=n,new Proxy(e,{get(s,i){if(Reflect.has(s,i))return Reflect.get(s,i);if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,i)){const a=Reflect.get(o.value,i);return typeof a=="function"?a.bind(o.value):a}}},has(s,i){if(Reflect.has(s,i))return!0;if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,i))return!0;return!1},set(s,i,o){if(Reflect.has(s,i))return Reflect.set(s,i,o);if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,i))return Reflect.set(a.value,i,o);return!1},getOwnPropertyDescriptor(s,i){var a;const o=Reflect.getOwnPropertyDescriptor(s,i);if(o)return o;if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const c of n){if(!c.value)continue;const l=vu(c.value,i)??("_"in c.value?vu((a=c.value._)==null?void 0:a.setupState,i):void 0);if(l)return l}for(const c of n){const l=c.value&&c.value[gu];if(!l)continue;const d=l.slice();for(;d.length;){const u=d.shift(),f=vu(u.value,i);if(f)return f;const h=u.value&&u.value[gu];h&&d.push(...h)}}}}})}function xR(e){const t=be(e());let n=-1;function r(){clearInterval(n)}function s(){r(),vt(()=>t.value=e())}function i(o){const a=o?getComputedStyle(o):{transitionDuration:.2},c=parseFloat(a.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const l=performance.now();n=window.setInterval(()=>{const d=performance.now()-l+c;t.value=Math.max(e()-d,0),t.value<=0&&r()},c)}return Ct(r),{clear:r,time:t,start:i,reset:s}}const RR=le({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Tl({location:"bottom"}),...Kf(),...mr(),...Ps(),...tn(),...As(eh({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),AR=De()({name:"VSnackbar",props:RR(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Zn(e,"modelValue"),{positionClasses:s}=Yf(e),{scopeId:i}=Qf(),{themeClasses:o}=mn(e),{colorClasses:a,colorStyles:c,variantClasses:l}=aa(e),{roundedClasses:d}=gr(e),u=xR(()=>Number(e.timeout)),f=we(),h=we(),p=be(!1),m=be(0),v=we(),g=Oe($o,void 0);Di(()=>!!g,()=>{const O=qk();hn(()=>{v.value=O.mainStyles.value})}),Se(r,_),Se(()=>e.timeout,_),jr(()=>{r.value&&_()});let y=-1;function _(){u.reset(),window.clearTimeout(y);const O=Number(e.timeout);if(!r.value||O===-1)return;const T=Mf(h.value);u.start(T),y=window.setTimeout(()=>{r.value=!1},O)}function S(){u.reset(),window.clearTimeout(y)}function M(){p.value=!0,S()}function R(){p.value=!1,_()}function E(O){m.value=O.touches[0].clientY}function C(O){Math.abs(m.value-O.changedTouches[0].clientY)>50&&(r.value=!1)}function I(){p.value&&R()}const A=j(()=>e.location.split(" ").reduce((O,T)=>(O[`v-snackbar--${T}`]=!0,O),{}));return tt(()=>{const O=Dc.filterProps(e),T=!!(n.default||n.text||e.text);return B(Dc,Qe({ref:f,class:["v-snackbar",{"v-snackbar--active":r.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},A.value,s.value,e.class],style:[v.value,e.style]},O,{modelValue:r.value,"onUpdate:modelValue":P=>r.value=P,contentProps:Qe({class:["v-snackbar__wrapper",o.value,a.value,d.value,l.value],style:[c.value],onPointerenter:M,onPointerleave:R},O.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:E,onTouchend:C,onAfterLeave:I},i),{default:()=>{var P,N;return[oa(!1,"v-snackbar"),e.timer&&!p.value&&se("div",{key:"timer",class:"v-snackbar__timer"},[B($b,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:u.time.value},null)]),T&&se("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((P=n.text)==null?void 0:P.call(n))??e.text,(N=n.default)==null?void 0:N.call(n)]),n.actions&&B(un,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[se("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})]},activator:n.activator})}),tS({},f)}}),MR=dl({name:"GlobalMessage",setup(){var i;const e=we(!1),t=we(null),n={success:"mdi-check-circle",error:"mdi-alert-circle",warning:"mdi-alert",info:"mdi-information"},r={success:"success",error:"error",warning:"warning",info:"info"},s=(i=Ys==null?void 0:Ys.onSnackbar)==null?void 0:i.call(Ys,async o=>{o&&(e.value&&(e.value=!1,await vt()),t.value=o,e.value=!0)});return Tn(()=>s==null?void 0:s()),{snackbar:e,message:t,icons:n,colors:r}}}),PR={class:"d-flex align-center"},OR={class:"text-subtitle-2 font-weight-medium"},LR={key:0,class:"text-body-2"};function NR(e,t,n,r,s,i){var o;return cn(),Dn(AR,{modelValue:e.snackbar,"onUpdate:modelValue":t[1]||(t[1]=a=>e.snackbar=a),color:e.colors[(o=e.message)==null?void 0:o.type]||e.colors.info,timeout:2e3,location:"top right","multi-line":"",variant:"tonal"},{actions:gt(()=>[B(Kb,{icon:"mdi-close",variant:"text",onClick:t[0]||(t[0]=a=>e.snackbar=!1)})]),default:gt(()=>{var a,c,l,d;return[se("div",PR,[B(Hn,{icon:e.icons[(a=e.message)==null?void 0:a.type]||e.icons.info,class:"mr-2"},null,8,["icon"]),se("div",null,[se("div",OR,bn((c=e.message)==null?void 0:c.title),1),(l=e.message)!=null&&l.content?(cn(),C_("div",LR,bn((d=e.message)==null?void 0:d.content),1)):ed("",!0)])])]}),_:1},8,["modelValue","color"])}const nS=Ob(MR,[["render",NR]]),DR=le({...ct(),...Mt()},"VCardActions"),rS=De()({name:"VCardActions",props:DR(),setup(e,t){let{slots:n}=t;return vl({VBtn:{slim:!0,variant:"text"}}),tt(()=>B(e.tag,{class:Me(["v-card-actions",e.class]),style:Xe(e.style)},n)),{}}}),FR=le({opacity:[Number,String],...ct(),...Mt()},"VCardSubtitle"),$R=De()({name:"VCardSubtitle",props:FR(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Me(["v-card-subtitle",e.class]),style:Xe([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),sS=Ff("v-card-title");function BR(e){return{aspectStyles:j(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const iS=le({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...ct(),...Hi()},"VResponsive"),ng=De()({name:"VResponsive",props:iS(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=BR(e),{dimensionStyles:s}=Vi(e);return tt(()=>{var i;return se("div",{class:Me(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:Xe([s.value,e.style])},[se("div",{class:"v-responsive__sizer",style:Xe(r.value)},null),(i=n.additional)==null?void 0:i.call(n),n.default&&se("div",{class:Me(["v-responsive__content",e.contentClass])},[n.default()])])}),{}}});function HR(e,t){if(!Af)return;const n=t.modifiers||{},r=t.value,{handler:s,options:i}=typeof r=="object"?r:{handler:r,options:{}},o=new IntersectionObserver(function(){var u;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1?arguments[1]:void 0;const l=(u=e._observe)==null?void 0:u[t.instance.$.uid];if(!l)return;const d=a.some(f=>f.isIntersecting);s&&(!n.quiet||l.init)&&(!n.once||d||l.init)&&s(d,a,c),d&&n.once?oS(e,t):l.init=!0},i);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:o},o.observe(e)}function oS(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const rg={mounted:HR,unmounted:oS},VR=le({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...iS(),...ct(),...mr(),...Zb()},"VImg"),aS=De()({name:"VImg",directives:{vIntersect:rg},props:VR(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:s,backgroundColorStyles:i}=li(()=>e.color),{roundedClasses:o}=gr(e),a=mt("VImg"),c=be(""),l=we(),d=be(e.eager?"loading":"idle"),u=be(),f=be(),h=j(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),p=j(()=>h.value.aspect||u.value/f.value||0);Se(()=>e.src,()=>{m(d.value!=="idle")}),Se(p,(T,P)=>{!T&&P&&l.value&&S(l.value)}),pl(()=>m());function m(T){if(!(e.eager&&T)&&!(Af&&!T&&!e.eager)){if(d.value="loading",h.value.lazySrc){const P=new Image;P.src=h.value.lazySrc,S(P,null)}h.value.src&&vt(()=>{var P;n("loadstart",((P=l.value)==null?void 0:P.currentSrc)||h.value.src),setTimeout(()=>{var N;if(!a.isUnmounted)if((N=l.value)!=null&&N.complete){if(l.value.naturalWidth||g(),d.value==="error")return;p.value||S(l.value,null),d.value==="loading"&&v()}else p.value||S(l.value),y()})})}}function v(){var T;a.isUnmounted||(y(),S(l.value),d.value="loaded",n("load",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function g(){var T;a.isUnmounted||(d.value="error",n("error",((T=l.value)==null?void 0:T.currentSrc)||h.value.src))}function y(){const T=l.value;T&&(c.value=T.currentSrc||T.src)}let _=-1;Tn(()=>{clearTimeout(_)});function S(T){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const N=()=>{if(clearTimeout(_),a.isUnmounted)return;const{naturalHeight:z,naturalWidth:X}=T;z||X?(u.value=X,f.value=z):!T.complete&&d.value==="loading"&&P!=null?_=window.setTimeout(N,P):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(u.value=1,f.value=1)};N()}const M=ee(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),R=()=>{var N;if(!h.value.src||d.value==="idle")return null;const T=se("img",{class:Me(["v-img__img",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.src,srcset:h.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:l,onLoad:v,onError:g},null),P=(N=r.sources)==null?void 0:N.call(r);return B(Qs,{transition:e.transition,appear:!0},{default:()=>[ws(P?se("picture",{class:"v-img__picture"},[P,T]):T,[[xf,d.value==="loaded"]])]})},E=()=>B(Qs,{transition:e.transition},{default:()=>[h.value.lazySrc&&d.value!=="loaded"&&se("img",{class:Me(["v-img__img","v-img__img--preload",M.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:h.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),C=()=>r.placeholder?B(Qs,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!r.error)&&se("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,I=()=>r.error?B(Qs,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&se("div",{class:"v-img__error"},[r.error()])]}):null,A=()=>e.gradient?se("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=be(!1);{const T=Se(p,P=>{P&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),T())})}return tt(()=>{const T=ng.filterProps(e);return ws(B(ng,Qe({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!O.value},s.value,o.value,e.class],style:[{width:me(e.width==="auto"?u.value:e.width)},i.value,e.style]},T,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>se(Ze,null,[B(R,null,null),B(E,null,null),B(A,null,null),B(C,null,null),B(I,null,null)]),default:r.default}),[[rg,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:c,image:l,state:d,naturalWidth:u,naturalHeight:f}}}),UR=le({start:Boolean,end:Boolean,icon:Et,image:String,text:String,...Fi(),...ct(),...Ms(),...mr(),...wl(),...Mt(),...tn(),...Ps({variant:"flat"})},"VAvatar"),Fc=De()({name:"VAvatar",props:UR(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=mn(e),{borderClasses:s}=$i(e),{colorClasses:i,colorStyles:o,variantClasses:a}=aa(e),{densityClasses:c}=Bi(e),{roundedClasses:l}=gr(e),{sizeClasses:d,sizeStyles:u}=Cl(e);return tt(()=>B(e.tag,{class:Me(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,s.value,i.value,c.value,l.value,d.value,a.value,e.class]),style:Xe([o.value,u.value,e.style])},{default:()=>[n.default?B(un,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?B(aS,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?B(Hn,{key:"icon",icon:e.icon},null):e.text,oa(!1,"v-avatar")]})),{}}}),WR=le({appendAvatar:String,appendIcon:Et,prependAvatar:String,prependIcon:Et,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...ct(),...Ms(),...Mt()},"VCardItem"),jR=De()({name:"VCardItem",props:WR(),setup(e,t){let{slots:n}=t;return tt(()=>{const r=!!(e.prependAvatar||e.prependIcon),s=!!(r||n.prepend),i=!!(e.appendAvatar||e.appendIcon),o=!!(i||n.append),a=!!(e.title!=null||n.title),c=!!(e.subtitle!=null||n.subtitle);return B(e.tag,{class:Me(["v-card-item",e.class]),style:Xe(e.style)},{default:()=>{var l;return[s&&se("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?B(un,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):se(Ze,null,[e.prependAvatar&&B(Fc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Hn,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),se("div",{class:"v-card-item__content"},[a&&B(sS,{key:"title"},{default:()=>{var d;return[((d=n.title)==null?void 0:d.call(n))??bn(e.title)]}}),c&&B($R,{key:"subtitle"},{default:()=>{var d;return[((d=n.subtitle)==null?void 0:d.call(n))??bn(e.subtitle)]}}),(l=n.default)==null?void 0:l.call(n)]),o&&se("div",{key:"append",class:"v-card-item__append"},[n.append?B(un,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):se(Ze,null,[e.appendIcon&&B(Hn,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Fc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}})}),{}}}),zR=le({opacity:[Number,String],...ct(),...Mt()},"VCardText"),Ed=De()({name:"VCardText",props:zR(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Me(["v-card-text",e.class]),style:Xe([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),qR=le({appendAvatar:String,appendIcon:Et,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Fi(),...ct(),...Ms(),...Hi(),...sa(),...Bb(),...Tl(),...Kf(),...mr(),...Jf(),...Mt(),...tn(),...Ps({variant:"elevated"})},"VCard"),sg=De()({name:"VCard",directives:{vRipple:Uo},props:qR(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{borderClasses:i}=$i(e),{colorClasses:o,colorStyles:a,variantClasses:c}=aa(e),{densityClasses:l}=Bi(e),{dimensionStyles:d}=Vi(e),{elevationClasses:u}=ia(e),{loaderClasses:f}=Hb(e),{locationStyles:h}=Gf(e),{positionClasses:p}=Yf(e),{roundedClasses:m}=gr(e),v=Xf(e,n),g=be(void 0);return Se(()=>e.loading,(y,_)=>{g.value=!y&&typeof _=="string"?_:typeof y=="boolean"?void 0:y},{immediate:!0}),tt(()=>{const y=e.link!==!1&&v.isLink.value,_=!e.disabled&&e.link!==!1&&(e.link||v.isClickable.value),S=y?"a":e.tag,M=!!(r.title||e.title!=null),R=!!(r.subtitle||e.subtitle!=null),E=M||R,C=!!(r.append||e.appendAvatar||e.appendIcon),I=!!(r.prepend||e.prependAvatar||e.prependIcon),A=!!(r.image||e.image),O=E||I||C,T=!!(r.text||e.text!=null);return ws(B(S,Qe(v.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":_},s.value,i.value,o.value,l.value,u.value,f.value,p.value,m.value,c.value,e.class],style:[a.value,d.value,h.value,e.style],onClick:_&&v.navigate,tabindex:e.disabled?-1:void 0}),{default:()=>{var P;return[A&&se("div",{key:"image",class:"v-card__image"},[r.image?B(un,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):B(aS,{key:"image-img",cover:!0,src:e.image},null)]),B(Vx,{name:"v-card",active:!!e.loading,color:g.value},{default:r.loader}),O&&B(jR,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:r.item,prepend:r.prepend,title:r.title,subtitle:r.subtitle,append:r.append}),T&&B(Ed,{key:"text"},{default:()=>{var N;return[((N=r.text)==null?void 0:N.call(r))??e.text]}}),(P=r.default)==null?void 0:P.call(r),r.actions&&B(rS,null,{default:r.actions}),oa(_,"v-card")]}}),[[Uo,_&&e.ripple]])}),{}}}),GR=le({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function nn(e,t,n){return De()({name:e,props:GR({mode:n,origin:t}),setup(r,s){let{slots:i}=s;const o={onBeforeEnter(a){r.origin&&(a.style.transformOrigin=r.origin)},onLeave(a){if(r.leaveAbsolute){const{offsetTop:c,offsetLeft:l,offsetWidth:d,offsetHeight:u}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${c}px`,a.style.left=`${l}px`,a.style.width=`${d}px`,a.style.height=`${u}px`}r.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(r.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:c,top:l,left:d,width:u,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=c||"",a.style.top=l||"",a.style.left=d||"",a.style.width=u||"",a.style.height=f||""}}};return()=>{const a=r.group?Rf:$r;return zr(a,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:o},i.default)}}})}function cS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return De()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:Oo()},group:Boolean},setup(r,s){let{slots:i}=s;const o=r.group?Rf:$r;return()=>zr(o,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},i.default)}})}function lS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=$t(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;if(!a)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const c=`${o[r]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,e&&o._parent&&o._parent.classList.add(e),requestAnimationFrame(()=>{o.style[n]=c})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[r]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:s,onLeaveCancelled:s};function s(o){e&&o._parent&&o._parent.classList.remove(e),i(o)}function i(o){if(!o._initialStyle)return;const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const KR=le({target:[Object,Array]},"v-dialog-transition"),yu=new WeakMap,YR=De()({name:"VDialogTransition",props:KR(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(s){s.style.pointerEvents="none",s.style.visibility="hidden"},async onEnter(s,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),s.style.visibility="";const o=og(e.target,s),{x:a,y:c,sx:l,sy:d,speed:u}=o;if(yu.set(s,o),Oo())ss(s,[{opacity:0},{}],{duration:125*u,easing:um}).finished.then(()=>i());else{const h=ss(s,[{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0},{}],{duration:225*u,easing:um});(f=ig(s))==null||f.forEach(p=>{ss(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*u,easing:ld})}),h.finished.then(()=>i())}},onAfterEnter(s){s.style.removeProperty("pointer-events")},onBeforeLeave(s){s.style.pointerEvents="none"},async onLeave(s,i){var f;await new Promise(h=>requestAnimationFrame(h));let o;!yu.has(s)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?o=og(e.target,s):o=yu.get(s);const{x:a,y:c,sx:l,sy:d,speed:u}=o;Oo()?ss(s,[{},{opacity:0}],{duration:85*u,easing:dm}).finished.then(()=>i()):(ss(s,[{},{transform:`translate(${a}px, ${c}px) scale(${l}, ${d})`,opacity:0}],{duration:125*u,easing:dm}).finished.then(()=>i()),(f=ig(s))==null||f.forEach(p=>{ss(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*u,easing:ld})}))},onAfterLeave(s){s.style.removeProperty("pointer-events")}};return()=>e.target?B($r,Qe({name:"dialog-transition"},r,{css:!1}),n):B($r,{name:"dialog-transition"},n)}});function ig(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function og(e,t){const n=G_(e),r=K_(t),[s,i]=getComputedStyle(t).transformOrigin.split(" ").map(g=>parseFloat(g)),[o,a]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let c=n.left+n.width/2;o==="left"||a==="left"?c-=n.width/2:(o==="right"||a==="right")&&(c+=n.width/2);let l=n.top+n.height/2;o==="top"||a==="top"?l-=n.height/2:(o==="bottom"||a==="bottom")&&(l+=n.height/2);const d=n.width/r.width,u=n.height/r.height,f=Math.max(1,d,u),h=d/f||0,p=u/f||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),v=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:c-(s+r.left),y:l-(i+r.top),sx:h,sy:p,speed:v}}nn("fab-transition","center center","out-in");nn("dialog-bottom-transition");nn("dialog-top-transition");const g4=nn("fade-transition"),v4=nn("scale-transition");nn("scroll-x-transition");nn("scroll-x-reverse-transition");nn("scroll-y-transition");nn("scroll-y-reverse-transition");nn("slide-x-transition");const y4=nn("slide-x-reverse-transition"),_4=nn("slide-y-transition");nn("slide-y-reverse-transition");const XR=cS("expand-transition",lS()),b4=cS("expand-x-transition",lS("",!0)),JR=le({fullscreen:Boolean,scrollable:Boolean,...As(eh({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:YR},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),ZR=De()({name:"VDialog",props:JR(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const s=Zn(e,"modelValue"),{scopeId:i}=Qf(),o=we();function a(){var l;n("afterEnter"),(e.scrim||e.retainFocus)&&((l=o.value)!=null&&l.contentEl)&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return Se(s,async l=>{var d;l||(await vt(),(d=o.value.activatorEl)==null||d.focus({preventScroll:!0}))}),tt(()=>{const l=Dc.filterProps(e),d=Qe({"aria-haspopup":"dialog"},e.activatorProps),u=Qe({tabindex:-1},e.contentProps);return B(Dc,Qe({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},l,{modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,"aria-modal":"true",activatorProps:d,contentProps:u,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:a,onAfterLeave:c},i),{activator:r.activator,default:function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];return B(un,{root:"VDialog"},{default:()=>{var m;return[(m=r.default)==null?void 0:m.call(r,...h)]}})}})}),tS({},o)}}),QR=["dotted","dashed","solid","double"],eA=le({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>QR.includes(e)},...ct(),...tn()},"VDivider"),uS=De()({name:"VDivider",props:eA(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:s}=mn(e),{textColorClasses:i,textColorStyles:o}=bi(()=>e.color),a=j(()=>{const l={};return e.length&&(l[e.vertical?"height":"width"]=me(e.length)),e.thickness&&(l[e.vertical?"borderRightWidth":"borderTopWidth"]=me(e.thickness)),l}),c=ee(()=>{const l=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,d=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&l?me(l):void 0,marginInline:!e.vertical&&l?me(l):void 0,transform:d?`translate${e.vertical?"X":"Y"}(${me(d)})`:void 0}});return tt(()=>{const l=se("hr",{class:Me([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},s.value,i.value,e.class]),style:Xe([a.value,o.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null);return r.default?se("div",{class:Me(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[l,se("div",{class:"v-divider__content",style:Xe(c.value)},[r.default()]),l]):l}),{}}}),tA=Ff("v-spacer","div","VSpacer"),wd=Symbol.for("vuetify:list");function dS(){let{filterable:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=Oe(wd,{filterable:!1,hasPrepend:be(!1),updateHasPrepend:()=>null}),n={filterable:t.filterable||e,hasPrepend:be(!1),updateHasPrepend:r=>{r&&(n.hasPrepend.value=r)}};return At(wd,n),t}function fS(){return Oe(wd,null)}const th=e=>{const t={activate:n=>{let{id:r,value:s,activated:i}=n;return r=de(r),e&&!s&&i.size===1&&i.has(r)||(s?i.add(r):i.delete(r)),i},in:(n,r,s)=>{let i=new Set;if(n!=null)for(const o of Of(n))i=t.activate({id:o,value:!0,activated:new Set(i),children:r,parents:s});return i},out:n=>Array.from(n)};return t},hS=e=>{const t=th(e);return{activate:r=>{let{activated:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Set([i]):new Set;return t.activate({...o,id:i,activated:a})},in:(r,s,i)=>{let o=new Set;if(r!=null){const a=Of(r);a.length&&(o=t.in(a.slice(0,1),s,i))}return o},out:(r,s,i)=>t.out(r,s,i)}},nA=e=>{const t=th(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},rA=e=>{const t=hS(e);return{activate:r=>{let{id:s,activated:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.activate({id:s,activated:i,children:o,...a})},in:t.in,out:t.out}},sA={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){const i=new Set;i.add(t);let o=s.get(t);for(;o!=null;)i.add(o),o=s.get(o);return i}else return r.delete(t),r},select:()=>null},pS={open:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(n){let i=s.get(t);for(r.add(t);i!=null&&i!==t;)r.add(i),i=s.get(i);return r}else r.delete(t);return r},select:()=>null},iA={open:pS.open,select:e=>{let{id:t,value:n,opened:r,parents:s}=e;if(!n)return r;const i=[];let o=s.get(t);for(;o!=null;)i.push(o),o=s.get(o);return new Set(i)}},nh=e=>{const t={select:n=>{let{id:r,value:s,selected:i}=n;if(r=de(r),e&&!s){const o=Array.from(i.entries()).reduce((a,c)=>{let[l,d]=c;return d==="on"&&a.push(l),a},[]);if(o.length===1&&o[0]===r)return i}return i.set(r,s?"on":"off"),i},in:(n,r,s,i)=>{const o=new Map;for(const a of n||[])t.select({id:a,value:!0,selected:o,children:r,parents:s,disabled:i});return o},out:n=>{const r=[];for(const[s,i]of n.entries())i==="on"&&r.push(s);return r}};return t},mS=e=>{const t=nh(e);return{select:r=>{let{selected:s,id:i,...o}=r;i=de(i);const a=s.has(i)?new Map([[i,s.get(i)]]):new Map;return t.select({...o,id:i,selected:a})},in:(r,s,i,o)=>r!=null&&r.length?t.in(r.slice(0,1),s,i,o):new Map,out:(r,s,i)=>t.out(r,s,i)}},oA=e=>{const t=nh(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},aA=e=>{const t=mS(e);return{select:r=>{let{id:s,selected:i,children:o,...a}=r;return s=de(s),o.has(s)?i:t.select({id:s,selected:i,children:o,...a})},in:t.in,out:t.out}},gS=e=>{const t={select:n=>{let{id:r,value:s,selected:i,children:o,parents:a,disabled:c}=n;r=de(r);const l=new Map(i),d=[r];for(;d.length;){const f=d.shift();c.has(f)||i.set(de(f),s?"on":"off"),o.has(f)&&d.push(...o.get(f))}let u=de(a.get(r));for(;u;){let f=!0,h=!0;for(const p of o.get(u)){const m=de(p);if(!c.has(m)&&(i.get(m)!=="on"&&(f=!1),i.has(m)&&i.get(m)!=="off"&&(h=!1),!f&&!h))break}i.set(u,f?"on":h?"off":"indeterminate"),u=de(a.get(u))}return e&&!s&&Array.from(i.entries()).reduce((h,p)=>{let[m,v]=p;return v==="on"&&h.push(m),h},[]).length===0?l:i},in:(n,r,s)=>{let i=new Map;for(const o of n||[])i=t.select({id:o,value:!0,selected:i,children:r,parents:s,disabled:new Set});return i},out:(n,r)=>{const s=[];for(const[i,o]of n.entries())o==="on"&&!r.has(i)&&s.push(i);return s}};return t},cA=e=>{const t=gS(e);return{select:t.select,in:t.in,out:(r,s,i)=>{const o=[];for(const[a,c]of r.entries())if(c==="on"){if(i.has(a)){const l=i.get(a);if(r.get(l)==="on")continue}o.push(a)}return o}}},Si=Symbol.for("vuetify:nested"),vS={id:be(),root:{itemsRegistration:we("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:we(new Map),parents:we(new Map),disabled:we(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:we(!1),selectable:we(!1),opened:we(new Set),activated:we(new Set),selected:we(new Map),selectedValues:we([]),getPath:()=>[]}},lA=le({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),uA=(e,t,n)=>{let r=!1;const s=be(new Map),i=be(new Map),o=be(new Set),a=Zn(e,"opened",e.opened,_=>new Set(Array.isArray(_)?_.map(S=>de(S)):_),_=>[..._.values()]),c=j(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return nA(e.mandatory);case"single-leaf":return rA(e.mandatory);case"independent":return th(e.mandatory);case"single-independent":default:return hS(e.mandatory)}}),l=j(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;if(typeof e.selectStrategy=="function")return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return aA(e.mandatory);case"leaf":return oA(e.mandatory);case"independent":return nh(e.mandatory);case"single-independent":return mS(e.mandatory);case"trunk":return cA(e.mandatory);case"classic":default:return gS(e.mandatory)}}),d=j(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return iA;case"single":return sA;case"multiple":default:return pS}}),u=Zn(e,"activated",e.activated,_=>c.value.in(_,s.value,i.value),_=>c.value.out(_,s.value,i.value)),f=Zn(e,"selected",e.selected,_=>l.value.in(_,s.value,i.value,o.value),_=>l.value.out(_,s.value,i.value));Tn(()=>{r=!0});function h(_){const S=[];let M=de(_);for(;M!==void 0;)S.unshift(M),M=i.value.get(M);return S}const p=mt("nested"),m=new Set,v=LT(()=>{vt(()=>{s.value=new Map(s.value),i.value=new Map(i.value)})},100);Se(()=>[t.value,bt(n)],()=>{e.itemsRegistration==="props"&&g()},{immediate:!0});function g(){const _=new Map,S=new Map,M=new Set,R=bt(n)?I=>de(I.raw):I=>I.value,E=[...t.value];let C=0;for(;C<E.length;){const I=E[C++],A=R(I);if(I.children){const O=[];for(const T of I.children){const P=R(T);_.set(P,A),O.push(P),E.push(T)}S.set(A,O)}I.props.disabled&&M.add(A)}s.value=S,i.value=_,o.value=M}const y={id:be(),root:{opened:a,activatable:ee(()=>e.activatable),selectable:ee(()=>e.selectable),activated:u,selected:f,selectedValues:j(()=>{const _=[];for(const[S,M]of f.value.entries())M==="on"&&_.push(S);return _}),itemsRegistration:ee(()=>e.itemsRegistration),register:(_,S,M,R)=>{if(m.has(_)){h(_).map(String).join(" -> "),h(S).concat(_).map(String).join(" -> ");return}else m.add(_);S&&_!==S&&i.value.set(_,S),M&&o.value.add(_),R&&s.value.set(_,[]),S!=null&&s.value.set(S,[...s.value.get(S)||[],_]),v()},unregister:_=>{if(r)return;m.delete(_),s.value.delete(_),o.value.delete(_);const S=i.value.get(_);if(S){const M=s.value.get(S)??[];s.value.set(S,M.filter(R=>R!==_))}i.value.delete(_),v()},updateDisabled:(_,S)=>{S?o.value.add(_):o.value.delete(_)},open:(_,S,M)=>{p.emit("click:open",{id:_,value:S,path:h(_),event:M});const R=d.value.open({id:_,value:S,opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},openOnSelect:(_,S,M)=>{const R=d.value.select({id:_,value:S,selected:new Map(f.value),opened:new Set(a.value),children:s.value,parents:i.value,event:M});R&&(a.value=R)},select:(_,S,M)=>{p.emit("click:select",{id:_,value:S,path:h(_),event:M});const R=l.value.select({id:_,value:S,selected:new Map(f.value),children:s.value,parents:i.value,disabled:o.value,event:M});R&&(f.value=R),y.root.openOnSelect(_,S,M)},activate:(_,S,M)=>{if(!e.activatable)return y.root.select(_,!0,M);p.emit("click:activate",{id:_,value:S,path:h(_),event:M});const R=c.value.activate({id:_,value:S,activated:new Set(u.value),children:s.value,parents:i.value,event:M});if(R.size!==u.value.size)u.value=R;else{for(const E of R)if(!u.value.has(E)){u.value=R;return}for(const E of u.value)if(!R.has(E)){u.value=R;return}}},children:s,parents:i,disabled:o,getPath:h}};return At(Si,y),y.root},yS=(e,t,n)=>{const r=Oe(Si,vS),s=Symbol("nested item"),i=j(()=>{const a=de(bt(e));return a!==void 0?a:s}),o={...r,id:i,open:(a,c)=>r.root.open(i.value,a,c),openOnSelect:(a,c)=>r.root.openOnSelect(i.value,a,c),isOpen:j(()=>r.root.opened.value.has(i.value)),parent:j(()=>r.root.parents.value.get(i.value)),activate:(a,c)=>r.root.activate(i.value,a,c),isActivated:j(()=>r.root.activated.value.has(i.value)),select:(a,c)=>r.root.select(i.value,a,c),isSelected:j(()=>r.root.selected.value.get(i.value)==="on"),isIndeterminate:j(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:j(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return pl(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||vt(()=>{r.root.register(i.value,r.id.value,bt(t),n)})}),Tn(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(i.value)}),Se(i,(a,c)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(c),vt(()=>{r.root.register(a,r.id.value,bt(t),n)}))}),Se(()=>bt(t),a=>{r.root.updateDisabled(i.value,a)}),n&&At(Si,o),o},dA=()=>{const e=Oe(Si,vS);At(Si,{...e,isGroupActivator:!0})};function fA(){const e=be(!1);return jr(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:ee(()=>e.value?void 0:{transition:"none !important"}),isBooted:hi(e)}}const hA=Ni({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return dA(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),pA=le({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Et,default:"$collapse"},disabled:Boolean,expandIcon:{type:Et,default:"$expand"},rawId:[String,Number],prependIcon:Et,appendIcon:Et,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ct(),...Mt()},"VListGroup"),ag=De()({name:"VListGroup",props:pA(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:s,id:i}=yS(()=>e.value,()=>e.disabled,!0),o=j(()=>`v-list-group--id-${String(e.rawId??i.value)}`),a=fS(),{isBooted:c}=fA(),l=Oe(Si),d=ee(()=>{var m;return((m=l==null?void 0:l.root)==null?void 0:m.itemsRegistration.value)==="render"});function u(m){var v;["INPUT","TEXTAREA"].includes((v=m.target)==null?void 0:v.tagName)||s(!r.value,m)}const f=j(()=>({onClick:u,class:"v-list-group__header",id:o.value})),h=j(()=>r.value?e.collapseIcon:e.expandIcon),p=j(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&h.value,appendIcon:e.appendIcon||!e.subgroup&&h.value,title:e.title,value:e.value}}));return tt(()=>B(e.tag,{class:Me(["v-list-group",{"v-list-group--prepend":a==null?void 0:a.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:Xe(e.style)},{default:()=>[n.activator&&B(un,{defaults:p.value},{default:()=>[B(hA,null,{default:()=>[n.activator({props:f.value,isOpen:r.value})]})]}),B(Qs,{transition:{component:XR},disabled:!c.value},{default:()=>{var m,v;return[d.value?ws(se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(m=n.default)==null?void 0:m.call(n)]),[[xf,r.value]]):r.value&&se("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[(v=n.default)==null?void 0:v.call(n)])]}})]})),{isOpen:r}}}),mA=le({opacity:[Number,String],...ct(),...Mt()},"VListItemSubtitle"),_S=De()({name:"VListItemSubtitle",props:mA(),setup(e,t){let{slots:n}=t;return tt(()=>B(e.tag,{class:Me(["v-list-item-subtitle",e.class]),style:Xe([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),bS=Ff("v-list-item-title"),gA=le({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:Et,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:Et,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:vo(),onClickOnce:vo(),...Fi(),...ct(),...Ms(),...Hi(),...sa(),...mr(),...Jf(),...Mt(),...tn(),...Ps({variant:"text"})},"VListItem"),Cd=De()({name:"VListItem",directives:{vRipple:Uo},props:gA(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:s}=t;const i=Xf(e,n),o=j(()=>e.value===void 0?i.href.value:e.value),{activate:a,isActivated:c,select:l,isOpen:d,isSelected:u,isIndeterminate:f,isGroupActivator:h,root:p,parent:m,openOnSelect:v,id:g}=yS(o,()=>e.disabled,!1),y=fS(),_=j(()=>{var x;return e.active!==!1&&(e.active||((x=i.isActive)==null?void 0:x.value)||(p.activatable.value?c.value:u.value))}),S=ee(()=>e.link!==!1&&i.isLink.value),M=j(()=>!!y&&(p.selectable.value||p.activatable.value||e.value!=null)),R=j(()=>!e.disabled&&e.link!==!1&&(e.link||i.isClickable.value||M.value)),E=j(()=>y?S.value?"link":M.value?"option":"listitem":void 0),C=j(()=>{if(M.value)return p.activatable.value?c.value:p.selectable.value?u.value:_.value}),I=ee(()=>e.rounded||e.nav),A=ee(()=>e.color??e.activeColor),O=ee(()=>({color:_.value?A.value??e.baseColor:e.baseColor,variant:e.variant}));Se(()=>{var x;return(x=i.isActive)==null?void 0:x.value},x=>{x&&T()}),pl(()=>{var x;(x=i.isActive)!=null&&x.value&&vt(()=>T())});function T(){m.value!=null&&p.open(m.value,!0),v(!0)}const{themeClasses:P}=mn(e),{borderClasses:N}=$i(e),{colorClasses:z,colorStyles:X,variantClasses:q}=aa(O),{densityClasses:D}=Bi(e),{dimensionStyles:re}=Vi(e),{elevationClasses:U}=ia(e),{roundedClasses:ie}=gr(I),ae=ee(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),ue=ee(()=>e.ripple!==void 0&&e.ripple&&(y!=null&&y.filterable)?{keys:["Enter"]}:e.ripple),Ce=j(()=>({isActive:_.value,select:l,isOpen:d.value,isSelected:u.value,isIndeterminate:f.value}));function Ne(x){var W,K;s("click",x),!["INPUT","TEXTAREA"].includes((W=x.target)==null?void 0:W.tagName)&&R.value&&((K=i.navigate)==null||K.call(i,x),!h&&(p.activatable.value?a(!c.value,x):(p.selectable.value||e.value!=null&&!S.value)&&l(!u.value,x)))}function He(x){const W=x.target;["INPUT","TEXTAREA"].includes(W.tagName)||(x.key==="Enter"||x.key===" "&&!(y!=null&&y.filterable))&&(x.preventDefault(),x.stopPropagation(),x.target.dispatchEvent(new MouseEvent("click",x)))}return tt(()=>{const x=S.value?"a":e.tag,W=r.title||e.title!=null,K=r.subtitle||e.subtitle!=null,ne=!!(e.appendAvatar||e.appendIcon),ye=!!(ne||r.append),b=!!(e.prependAvatar||e.prependIcon),w=!!(b||r.prepend);return y==null||y.updateHasPrepend(w),e.activeColor&&D_("active-color",["color","base-color"]),ws(B(x,Qe(i.linkProps,{class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":R.value,"v-list-item--nav":e.nav,"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&_.value},P.value,N.value,z.value,D.value,U.value,ae.value,ie.value,q.value,e.class],style:[{"--v-list-prepend-gap":me(e.prependGap)},X.value,re.value,e.style],tabindex:R.value?y?-2:0:void 0,"aria-selected":C.value,role:E.value,onClick:Ne,onKeydown:R.value&&!S.value&&He}),{default:()=>{var k;return[oa(R.value||_.value,"v-list-item"),w&&se("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?B(un,{key:"prepend-defaults",disabled:!b,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var L;return[(L=r.prepend)==null?void 0:L.call(r,Ce.value)]}}):se(Ze,null,[e.prependAvatar&&B(Fc,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&B(Hn,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),se("div",{class:"v-list-item__spacer"},null)]),se("div",{class:"v-list-item__content","data-no-activator":""},[W&&B(bS,{key:"title"},{default:()=>{var L;return[((L=r.title)==null?void 0:L.call(r,{title:e.title}))??bn(e.title)]}}),K&&B(_S,{key:"subtitle"},{default:()=>{var L;return[((L=r.subtitle)==null?void 0:L.call(r,{subtitle:e.subtitle}))??bn(e.subtitle)]}}),(k=r.default)==null?void 0:k.call(r,Ce.value)]),ye&&se("div",{key:"append",class:"v-list-item__append"},[r.append?B(un,{key:"append-defaults",disabled:!ne,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var L;return[(L=r.append)==null?void 0:L.call(r,Ce.value)]}}):se(Ze,null,[e.appendIcon&&B(Hn,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&B(Fc,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),se("div",{class:"v-list-item__spacer"},null)])]}}),[[Uo,R.value&&ue.value]])}),{activate:a,isActivated:c,isGroupActivator:h,isSelected:u,list:y,select:l,root:p,id:g,link:i}}}),vA=le({color:String,inset:Boolean,sticky:Boolean,title:String,...ct(),...Mt()},"VListSubheader"),yA=De()({name:"VListSubheader",props:vA(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:s}=bi(()=>e.color);return tt(()=>{const i=!!(n.default||e.title);return B(e.tag,{class:Me(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:Xe([{textColorStyles:s},e.style])},{default:()=>{var o;return[i&&se("div",{class:"v-list-subheader__text"},[((o=n.default)==null?void 0:o.call(n))??e.title])]}})}),{}}}),_A=le({items:Array,returnObject:Boolean},"VListChildren"),SS=De()({name:"VListChildren",props:_A(),setup(e,t){let{slots:n}=t;return dS(),()=>{var r,s;return((r=n.default)==null?void 0:r.call(n))??((s=e.items)==null?void 0:s.map(i=>{var f,h;let{children:o,props:a,type:c,raw:l}=i;if(c==="divider")return((f=n.divider)==null?void 0:f.call(n,{props:a}))??B(uS,a,null);if(c==="subheader")return((h=n.subheader)==null?void 0:h.call(n,{props:a}))??B(yA,a,null);const d={subtitle:n.subtitle?p=>{var m;return(m=n.subtitle)==null?void 0:m.call(n,{...p,item:l})}:void 0,prepend:n.prepend?p=>{var m;return(m=n.prepend)==null?void 0:m.call(n,{...p,item:l})}:void 0,append:n.append?p=>{var m;return(m=n.append)==null?void 0:m.call(n,{...p,item:l})}:void 0,title:n.title?p=>{var m;return(m=n.title)==null?void 0:m.call(n,{...p,item:l})}:void 0},u=ag.filterProps(a);return o?B(ag,Qe(u,{value:e.returnObject?l:a==null?void 0:a.value,rawId:a==null?void 0:a.value}),{activator:p=>{let{props:m}=p;const v=Qe(a,m,{value:e.returnObject?l:a.value});return n.header?n.header({props:v}):B(Cd,v,d)},default:()=>B(SS,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:a}):B(Cd,Qe(a,{value:e.returnObject?l:a.value}),d)}))}}}),bA=le({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),SA=new Set(["item","divider","subheader"]);function ui(e,t){const n=Nn(t,e.itemTitle,t),r=Nn(t,e.itemValue,n),s=Nn(t,e.itemChildren),i=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?As(t,["children"]):t:void 0:Nn(t,e.itemProps);let o=Nn(t,e.itemType,"item");SA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:String(a.title??""),value:a.value,props:a,children:o==="item"&&Array.isArray(s)?ES(e,s):void 0,raw:t}}ui.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function ES(e,t){const n=Pf(e,ui.neededProps),r=[];for(const s of t)r.push(ui(n,s));return r}function S4(e){const t=j(()=>ES(e,e.items)),n=j(()=>t.value.some(a=>a.value===null)),r=be(new Map),s=be([]);hn(()=>{const a=t.value,c=new Map,l=[];for(let d=0;d<a.length;d++){const u=a[d];if(Ts(u.value)||u.value===null){let f=c.get(u.value);f||(f=[],c.set(u.value,f)),f.push(u)}else l.push(u)}r.value=c,s.value=l});function i(a){const c=r.value,l=t.value,d=s.value,u=n.value,f=e.returnObject,h=!!e.valueComparator,p=e.valueComparator||gs,m=Pf(e,ui.neededProps),v=[];e:for(const g of a){if(!u&&g===null)continue;if(f&&typeof g=="string"){v.push(ui(m,g));continue}const y=c.get(g);if(h||!y){for(const _ of h?l:d)if(p(g,_.value)){v.push(_);continue e}v.push(ui(m,g));continue}v.push(...y)}return v}function o(a){return e.returnObject?a.map(c=>{let{raw:l}=c;return l}):a.map(c=>{let{value:l}=c;return l})}return{items:t,transformIn:i,transformOut:o}}const EA=new Set(["item","divider","subheader"]);function wA(e,t){const n=Ts(t)?t:Nn(t,e.itemTitle),r=Ts(t)?t:Nn(t,e.itemValue,void 0),s=Nn(t,e.itemChildren),i=e.itemProps===!0?As(t,["children"]):Nn(t,e.itemProps);let o=Nn(t,e.itemType,"item");EA.has(o)||(o="item");const a={title:n,value:r,...i};return{type:o,title:a.title,value:a.value,props:a,children:o==="item"&&s?wS(e,s):void 0,raw:t}}function wS(e,t){const n=[];for(const r of t)n.push(wA(e,r));return n}function CA(e){return{items:j(()=>wS(e,e.items))}}const TA=le({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:Et,collapseIcon:Et,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":vo(),"onClick:select":vo(),"onUpdate:opened":vo(),...lA({selectStrategy:"single-leaf",openStrategy:"list"}),...Fi(),...ct(),...Ms(),...Hi(),...sa(),...bA(),...mr(),...Mt(),...tn(),...Ps({variant:"text"})},"VList"),kA=De()({name:"VList",props:TA(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=CA(e),{themeClasses:s}=mn(e),{backgroundColorClasses:i,backgroundColorStyles:o}=li(()=>e.bgColor),{borderClasses:a}=$i(e),{densityClasses:c}=Bi(e),{dimensionStyles:l}=Vi(e),{elevationClasses:d}=ia(e),{roundedClasses:u}=gr(e),{children:f,open:h,parents:p,select:m,getPath:v}=uA(e,r,()=>e.returnObject),g=ee(()=>e.lines?`v-list--${e.lines}-line`:void 0),y=ee(()=>e.activeColor),_=ee(()=>e.baseColor),S=ee(()=>e.color),M=ee(()=>e.selectable||e.activatable);dS({filterable:e.filterable}),vl({VListGroup:{activeColor:y,baseColor:_,color:S,expandIcon:ee(()=>e.expandIcon),collapseIcon:ee(()=>e.collapseIcon)},VListItem:{activeClass:ee(()=>e.activeClass),activeColor:y,baseColor:_,color:S,density:ee(()=>e.density),disabled:ee(()=>e.disabled),lines:ee(()=>e.lines),nav:ee(()=>e.nav),slim:ee(()=>e.slim),variant:ee(()=>e.variant)}});const R=be(!1),E=we();function C(N){R.value=!0}function I(N){R.value=!1}function A(N){var z;!R.value&&!(N.relatedTarget&&((z=E.value)!=null&&z.contains(N.relatedTarget)))&&P()}function O(N){const z=N.target;if(!(!E.value||z.tagName==="INPUT"&&["Home","End"].includes(N.key)||z.tagName==="TEXTAREA")){if(N.key==="ArrowDown")P("next");else if(N.key==="ArrowUp")P("prev");else if(N.key==="Home")P("first");else if(N.key==="End")P("last");else return;N.preventDefault()}}function T(N){R.value=!0}function P(N){if(E.value)return z_(E.value,N)}return tt(()=>{const N=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0);return B(e.tag,{ref:E,class:Me(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},s.value,i.value,a.value,c.value,d.value,g.value,u.value,e.class]),style:Xe([{"--v-list-indent":me(N),"--v-list-group-prepend":N?"0px":void 0,"--v-list-prepend-gap":me(e.prependGap)},o.value,l.value,e.style]),tabindex:e.disabled?-1:0,role:M.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:C,onFocusout:I,onFocus:A,onKeydown:O,onMousedown:T},{default:()=>[B(SS,{items:r.value,returnObject:e.returnObject},n)]})}),{open:h,select:m,focus:P,children:f,parents:p,getPath:v}}});let Td=null;const CS={name:"RateLimitModal",data(){return{isVisible:!1,activeRequests:[]}},computed:{hasActiveRequests(){return this.activeRequests.length>0}},watch:{hasActiveRequests(e){this.isVisible=e}},methods:{close(){this.isVisible=!1},show(e,t,n){const r=Date.now()+Math.random().toString(36).substring(2,9),s=Math.max(0,Math.floor((new Date(e)-new Date)/1e3)),i={id:r,resetTime:e,path:t,method:n,remainingSeconds:s};this.activeRequests.push(i),this.startCountdown(r),this.isVisible=!0},startCountdown(e){const t=this.activeRequests.find(r=>r.id===e);if(!t)return;const n=setInterval(()=>{const r=this.activeRequests.findIndex(s=>s.id===e);if(r===-1){clearInterval(n);return}this.activeRequests[r].remainingSeconds--,this.activeRequests[r].remainingSeconds<=0&&(clearInterval(n),this.activeRequests.splice(r,1))},1e3);t.intervalId=n},clearAllCountdowns(){this.activeRequests.forEach(e=>{e.intervalId&&clearInterval(e.intervalId)}),this.activeRequests=[]}},beforeUnmount(){this.clearAllCountdowns()},created(){Td=this}};CS.show=function(e,t,n){Td&&Td.show(e,t,n)};const IA=CS,xA={class:"text-primary font-weight-bold"};function RA(e,t,n,r,s,i){return cn(),Dn(ZR,{modelValue:e.isVisible,"onUpdate:modelValue":t[0]||(t[0]=o=>e.isVisible=o),"max-width":"500",persistent:""},{default:gt(()=>[B(sg,{class:"rate-limit-modal"},{default:gt(()=>[B(sS,{class:"text-center pa-4 bg-error text-white"},{default:gt(()=>[B(Hn,{class:"mr-2",icon:"mdi-clock-alert-outline",size:"large"}),t[1]||(t[1]=ao(" 请求频率超限 ",-1))]),_:1}),B(Ed,{class:"pa-6"},{default:gt(()=>[t[3]||(t[3]=se("div",{class:"text-body-1 mb-4"},"您的请求过于频繁,请稍后再试。",-1)),e.activeRequests.length>0?(cn(),Dn(sg,{key:0,class:"mb-4",flat:""},{default:gt(()=>[B(Ed,null,{default:gt(()=>[(cn(!0),C_(Ze,null,S1(e.activeRequests,(o,a)=>(cn(),Dn(kA,{key:a,class:"mb-4"},{default:gt(()=>[B(Cd,{color:"primary","prepend-icon":"mdi-web"},{default:gt(()=>[B(bS,null,{default:gt(()=>[t[2]||(t[2]=ao(" 等待时间: ",-1)),se("span",xA,bn(o.remainingSeconds),1)]),_:2},1024),B(_S,null,{default:gt(()=>[ao(bn(o.method)+" "+bn(o.path),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),e.index<e.activeRequests.length-1?(cn(),Dn(uS,{key:0,class:"my-3"})):ed("",!0)]),_:1})]),_:1})):ed("",!0),t[4]||(t[4]=se("div",{class:"text-body-2 text-grey"}," 请在等待时间后再次尝试,或减少请求频率以避免限制。 ",-1))]),_:1}),B(rS,{class:"pa-4 pt-0"},{default:gt(()=>[B(tA),B(Kb,{color:"primary",variant:"tonal",onClick:e.close},{default:gt(()=>[...t[5]||(t[5]=[ao(" 我知道了",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const AA=Ob(IA,[["render",RA]]),MA=le({...ct(),...As(zk(),["fullHeight"]),...tn()},"VApp"),PA=De()({name:"VApp",props:MA(),setup(e,t){let{slots:n}=t;const r=mn(e),{layoutClasses:s,getLayoutItem:i,items:o,layoutRef:a}=Kk({...e,fullHeight:!0}),{rtlClasses:c}=na();return tt(()=>{var l;return se("div",{ref:a,class:Me(["v-application",r.themeClasses.value,s.value,c.value,e.class]),style:Xe([e.style])},[se("div",{class:"v-application__wrap"},[(l=n.default)==null?void 0:l.call(n)])])}),{getLayoutItem:i,items:o,theme:r}}}),OA={__name:"App",setup(e){const t=hb();return jr(()=>{const n=zf("theme.mode");t.global.name.value=n,window.addEventListener("beforeinstallprompt",r=>{r.preventDefault(),window.deferredPwaPrompt=r,window.dispatchEvent(new Event("pwa-prompt-ready"))})}),(n,r)=>{const s=b1("router-view"),i=nS;return cn(),Dn(PA,null,{default:gt(()=>[B(s,null,{default:gt(({Component:o,route:a})=>[B($r,{mode:"out-in",name:"md3"},{default:gt(()=>[(cn(),Dn(i_(o),{key:a.path}))]),_:2},1024)]),_:1}),B(i),B(AA)]),_:1})}}};let _u;const cg=e=>({get:async()=>({visitorId:"unknown",error:(e==null?void 0:e.message)||String(e||""),fallback:!0})}),LA=async()=>{try{const e=await yt(()=>import("./fp.esm-HJFDfcHo.js"),[],import.meta.url);return(e==null?void 0:e.default)||e}catch(e){return console.warn("Fingerprint library blocked or failed to load; using fallback agent.",e),null}},TS=()=>(_u||(_u=(async()=>{const e=await LA();if(!e)return cg(new Error("fingerprint module unavailable"));try{return await e.load()}catch(t){return console.warn("FingerprintJS.load failed, using fallback agent.",t),cg(t)}})()),_u),kS=async()=>{const t=await(await TS()).get();return(t==null?void 0:t.visitorId)||"unknown"},E4=async()=>await(await TS()).get(),ce=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,xe=globalThis,ys="10.36.0";function Os(){return kl(xe),xe}function kl(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ys,t[ys]=t[ys]||{}}function Ui(e,t,n=xe){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[ys]=r[ys]||{};return s[e]||(s[e]=t())}const NA=["debug","info","warn","error","log","assert","trace"],DA="Sentry Logger ",$c={};function vr(e){if(!("console"in xe))return e();const t=xe.console,n={},r=Object.keys($c);r.forEach(s=>{const i=$c[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function FA(){sh().enabled=!0}function $A(){sh().enabled=!1}function IS(){return sh().enabled}function BA(...e){rh("log",...e)}function HA(...e){rh("warn",...e)}function VA(...e){rh("error",...e)}function rh(e,...t){ce&&IS()&&vr(()=>{xe.console[e](`${DA}[${e}]:`,...t)})}function sh(){return ce?Ui("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const J={enable:FA,disable:$A,isEnabled:IS,log:BA,warn:HA,error:VA},xS=50,ks="?",lg=/\(error: (.*)\)/,ug=/captureMessage|captureException/;function RS(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
`);for(let a=r;a<o.length;a++){let c=o[a];c.length>1024&&(c=c.slice(0,1024));const l=lg.test(c)?c.replace(lg,"$1"):c;if(!l.match(/\S*Error: /)){for(const d of t){const u=d(l);if(u){i.push(u);break}}if(i.length>=xS+s)break}}return WA(i.slice(s))}}function UA(e){return Array.isArray(e)?RS(...e):e}function WA(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Oa(t).function||"")&&t.pop(),t.reverse(),ug.test(Oa(t).function||"")&&(t.pop(),ug.test(Oa(t).function||"")&&t.pop()),t.slice(0,xS).map(n=>({...n,filename:n.filename||Oa(t).filename,function:n.function||ks}))}function Oa(e){return e[e.length-1]||{}}const bu="<anonymous>";function ar(e){try{return!e||typeof e!="function"?bu:e.name||bu}catch{return bu}}function dg(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}}}function AS(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const tc={},fg={};function Kr(e,t){tc[e]=tc[e]||[],tc[e].push(t)}function Yr(e,t){if(!fg[e]){fg[e]=!0;try{t()}catch(n){ce&&J.error(`Error while instrumenting ${e}`,n)}}}function dn(e,t){const n=e&&tc[e];if(n)for(const r of n)try{r(t)}catch(s){ce&&J.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${ar(r)}
Error:`,s)}}let Su=null;function MS(e){const t="error";Kr(t,e),Yr(t,jA)}function jA(){Su=xe.onerror,xe.onerror=function(e,t,n,r,s){return dn("error",{column:r,error:s,line:n,msg:e,url:t}),Su?Su.apply(this,arguments):!1},xe.onerror.__SENTRY_INSTRUMENTED__=!0}let Eu=null;function PS(e){const t="unhandledrejection";Kr(t,e),Yr(t,zA)}function zA(){Eu=xe.onunhandledrejection,xe.onunhandledrejection=function(e){return dn("unhandledrejection",e),Eu?Eu.apply(this,arguments):!0},xe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const OS=Object.prototype.toString;function Il(e){switch(OS.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return cr(e,Error)}}function Wi(e,t){return OS.call(e)===`[object ${t}]`}function LS(e){return Wi(e,"ErrorEvent")}function hg(e){return Wi(e,"DOMError")}function qA(e){return Wi(e,"DOMException")}function Qn(e){return Wi(e,"String")}function ih(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ei(e){return e===null||ih(e)||typeof e!="object"&&typeof e!="function"}function Wo(e){return Wi(e,"Object")}function xl(e){return typeof Event<"u"&&cr(e,Event)}function GA(e){return typeof Element<"u"&&cr(e,Element)}function KA(e){return Wi(e,"RegExp")}function ji(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function YA(e){return Wo(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function cr(e,t){try{return e instanceof t}catch{return!1}}function NS(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function oh(e){return typeof Request<"u"&&cr(e,Request)}const ah=xe,XA=80;function zt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,u=!Array.isArray(t)&&t.maxStringLength||XA;for(;n&&i++<r&&(l=JA(n,d),!(l==="html"||i>1&&o+s.length*c+l.length>=u));)s.push(l),o+=l.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function JA(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(ah.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t!=null&&t.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s!=null&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&Qn(o)){const a=o.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function Ls(){try{return ah.document.location.href}catch{return""}}function DS(e){if(!ah.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Wt(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&FS(s,r);try{e[t]=s}catch{ce&&J.log(`Failed to replace method "${t}" in object`,e)}}function qt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ce&&J.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function FS(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,qt(e,"__sentry_original__",t)}catch{}}function ch(e){return e.__sentry_original__}function $S(e){if(Il(e))return{message:e.message,name:e.name,stack:e.stack,...mg(e)};if(xl(e)){const t={type:e.type,target:pg(e.target),currentTarget:pg(e.currentTarget),...mg(e)};return typeof CustomEvent<"u"&&cr(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function pg(e){try{return GA(e)?zt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function mg(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function ZA(e){const t=Object.keys($S(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Us;function ca(e){if(Us!==void 0)return Us?Us(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=xe;return t in n&&typeof n[t]=="function"?(Us=n[t],Us(e)):(Us=null,e())}function Or(){return ca(()=>Math.random())}function la(){return ca(()=>Date.now())}function kd(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gg(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{NS(s)?n.push(AS(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function nc(e,t,n=!1){return Qn(e)?KA(t)?t.test(e):Qn(t)?n?e===t:e.includes(t):!1:!1}function er(e,t=[],n=!1){return t.some(r=>nc(e,r,n))}function QA(){const e=xe;return e.crypto||e.msCrypto}let wu;function eM(){return Or()*16}function en(e=QA()){try{if(e!=null&&e.randomUUID)return ca(()=>e.randomUUID()).replace(/-/g,"")}catch{}return wu||(wu="10000000100040008000"+1e11),wu.replace(/[018]/g,t=>(t^(eM()&15)>>t/4).toString(16))}function BS(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function as(e){const{message:t,event_id:n}=e;if(t)return t;const r=BS(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Id(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function wi(e,t){const n=BS(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s==null?void 0:s.data,...t.data};n.mechanism.data=i}}function vg(e){if(tM(e))return!0;try{qt(e,"__sentry_captured__",!0)}catch{}return!1}function tM(e){try{return e.__sentry_captured__}catch{}}const HS=1e3;function Ns(){return la()/HS}function nM(){const{performance:e}=xe;if(!(e!=null&&e.now)||!e.timeOrigin)return Ns;const t=e.timeOrigin;return()=>(t+ca(()=>e.now()))/HS}let yg;function lt(){return(yg??(yg=nM()))()}let Cu=null;function rM(){var o;const{performance:e}=xe;if(!(e!=null&&e.now))return;const t=3e5,n=ca(()=>e.now()),r=la(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const i=(o=e.timing)==null?void 0:o.navigationStart;return typeof i=="number"&&Math.abs(i+n-r)<t?i:r-n}function Gt(){return Cu===null&&(Cu=rM()),Cu}function sM(e){const t=lt(),n={sid:en(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>oM(n)};return e&&Ci(n,e),n}function Ci(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||lt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:en()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function iM(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Ci(e,n)}function oM(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function ua(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=ua(r[s],t[s],n-1));return r}function lr(){return en()}function tr(){return en().substring(16)}const xd="_sentrySpan";function Ti(e,t){t?qt(e,xd,t):delete e[xd]}function Bc(e){return e[xd]}const aM=100;class Vn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:lr(),sampleRand:Or()}}clone(){const t=new Vn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ti(t,Bc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ci(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Vn?n.getScopeData():Wo(n)?t:void 0,{tags:s,attributes:i,extra:o,user:a,contexts:c,level:l,fingerprint:d=[],propagationContext:u}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),d.length&&(this._fingerprint=d),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Ti(this,void 0),this._attachments=[],this.setPropagationContext({traceId:lr(),sampleRand:Or()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var i;const r=typeof n=="number"?n:aM;if(r<=0)return this;const s={timestamp:Ns(),...t,message:t.message?kd(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Bc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ua(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||en();if(!this._client)return ce&&J.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=(r==null?void 0:r.event_id)||en();if(!this._client)return ce&&J.warn("No client configured on scope - will not capture message!"),s;const i=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||en();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(ce&&J.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function cM(){return Ui("defaultCurrentScope",()=>new Vn)}function lM(){return Ui("defaultIsolationScope",()=>new Vn)}class uM{constructor(t,n){let r;t?r=t:r=new Vn;let s;n?s=n:s=new Vn,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return ji(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function ki(){const e=Os(),t=kl(e);return t.stack=t.stack||new uM(cM(),lM())}function dM(e){return ki().withScope(e)}function fM(e,t){const n=ki();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function _g(e){return ki().withScope(()=>e(ki().getIsolationScope()))}function hM(){return{withIsolationScope:_g,withScope:dM,withSetScope:fM,withSetIsolationScope:(e,t)=>_g(t),getCurrentScope:()=>ki().getScope(),getIsolationScope:()=>ki().getIsolationScope()}}function zi(e){const t=kl(e);return t.acs?t.acs:hM()}function Le(){const e=Os();return zi(e).getCurrentScope()}function rn(){const e=Os();return zi(e).getIsolationScope()}function VS(){return Ui("globalScope",()=>new Vn)}function Rl(...e){const t=Os(),n=zi(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ee(){return Le().getClient()}function pM(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,i={trace_id:n,span_id:s||tr()};return r&&(i.parent_span_id=r),i}const jt="sentry.source",lh="sentry.sample_rate",US="sentry.previous_trace_sample_rate",ur="sentry.op",st="sentry.origin",jo="sentry.idle_span_finish_reason",da="sentry.measurement_unit",fa="sentry.measurement_value",bg="sentry.custom_span_name",uh="sentry.profile_id",qi="sentry.exclusive_time",mM="sentry.link.type",gM=0,dh=1,ht=2;function vM(e){if(e<400&&e>=100)return{code:dh};if(e>=400&&e<500)switch(e){case 401:return{code:ht,message:"unauthenticated"};case 403:return{code:ht,message:"permission_denied"};case 404:return{code:ht,message:"not_found"};case 409:return{code:ht,message:"already_exists"};case 413:return{code:ht,message:"failed_precondition"};case 429:return{code:ht,message:"resource_exhausted"};case 499:return{code:ht,message:"cancelled"};default:return{code:ht,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:ht,message:"unimplemented"};case 503:return{code:ht,message:"unavailable"};case 504:return{code:ht,message:"deadline_exceeded"};default:return{code:ht,message:"internal_error"}}return{code:ht,message:"internal_error"}}function WS(e,t){e.setAttribute("http.response.status_code",t);const n=vM(t);n.message!=="unknown_error"&&e.setStatus(n)}const jS="_sentryScope",zS="_sentryIsolationScope";function yM(e){try{const t=xe.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function _M(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function bM(e,t,n){e&&(qt(e,zS,yM(n)),qt(e,jS,t))}function Hc(e){const t=e;return{scope:t[jS],isolationScope:_M(t[zS])}}const fh="sentry-",SM=/^sentry-/,EM=8192;function qS(e){const t=CM(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(SM)){const o=s.slice(fh.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function wM(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${fh}${r}`]=s),n),{});return TM(t)}function CM(e){if(!(!e||!Qn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Sg(n);return Object.entries(r).forEach(([s,i])=>{t[s]=i}),t},{}):Sg(e)}function Sg(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function TM(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>EM?(ce&&J.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const kM=/^o(\d+)\./,IM=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function xM(e){return e==="http"||e==="https"}function Gi(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function RM(e){const t=IM.exec(e);if(!t){vr(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",l=a;const d=l.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),l=d.pop()),l){const u=l.match(/^\d+/);u&&(l=u[0])}return GS({host:i,pass:s,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function GS(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function AM(e){if(!ce)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(J.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?xM(r)?t&&isNaN(parseInt(t,10))?(J.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(J.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(J.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function MM(e){const t=e.match(kM);return t==null?void 0:t[1]}function PM(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=MM(n)),r}function OM(e){const t=typeof e=="string"?RM(e):GS(e);if(!(!t||!AM(t)))return t}function Is(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const KS=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function LM(e){if(!e)return;const t=e.match(KS);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function NM(e,t){const n=LM(e),r=qS(t);if(!(n!=null&&n.traceId))return{traceId:lr(),sampleRand:Or()};const s=DM(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:a}=n;return{traceId:i,parentSpanId:o,sampled:a,dsc:r||{},sampleRand:s}}function YS(e=lr(),t=tr(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function XS(e=lr(),t=tr(),n){return`00-${e}-${t}-${n?"01":"00"}`}function DM(e,t){const n=Is(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Is(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Or()*r:r+Or()*(1-r):Or()}const JS=0,hh=1;let Eg=!1;function FM(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a,links:c}=Re(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a,links:c}}function $M(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Re(e).parent_span_id,i=Hc(e).scope,o=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||tr():t;return{parent_span_id:s,span_id:o,trace_id:n}}function BM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return YS(t,n,r)}function HM(e){const{traceId:t,spanId:n}=e.spanContext(),r=Xr(e);return XS(t,n,r)}function ZS(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:t,trace_id:n,sampled:r===hh,attributes:i,...s}))}function _s(e){return typeof e=="number"?wg(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wg(e.getTime()):lt()}function wg(e){return e>9999999999?e/1e3:e}function Re(e){var r;if(UM(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(VM(e)){const{attributes:s,startTime:i,name:o,endTime:a,status:c,links:l}=e,d="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:s,description:o,parent_span_id:d,start_timestamp:_s(i),timestamp:_s(a)||void 0,status:QS(c),op:s[ur],origin:s[st],links:ZS(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function VM(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function UM(e){return typeof e.getSpanJSON=="function"}function Xr(e){const{traceFlags:t}=e.spanContext();return t===hh}function QS(e){if(!(!e||e.code===gM))return e.code===dh?"ok":e.message||"internal_error"}const bs="_sentryChildSpans",Rd="_sentryRootSpan";function e0(e,t){const n=e[Rd]||e;qt(t,Rd,n),e[bs]?e[bs].add(t):qt(e,bs,new Set([t]))}function WM(e,t){e[bs]&&e[bs].delete(t)}function rc(e){const t=new Set;function n(r){if(!t.has(r)&&Xr(r)){t.add(r);const s=r[bs]?Array.from(r[bs]):[];for(const i of s)n(i)}}return n(e),Array.from(t)}function wt(e){return e[Rd]||e}function Tt(){const e=Os(),t=zi(e);return t.getActiveSpan?t.getActiveSpan():Bc(Le())}function Ad(){Eg||(vr(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Eg=!0)}let Cg=!1;function jM(){if(Cg)return;function e(){const t=Tt(),n=t&&wt(t);if(n){const r="internal_error";ce&&J.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ht,message:r})}}e.tag="sentry_tracingErrorCallback",Cg=!0,MS(e),PS(e)}function fn(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Ee())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Tg(e){J.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Vc(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(const n of t){if(qM(n)){if(nc(e.description,n))return ce&&Tg(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?nc(e.description,n.name):!0,s=n.op?e.op&&nc(e.op,n.op):!0;if(r&&s)return ce&&Tg(e),!0}return!1}function zM(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function qM(e){return typeof e=="string"||e instanceof RegExp}const ph="production",t0="_frozenDsc";function sc(e,t){qt(e,t0,t)}function n0(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||ph,release:n.release,public_key:r,trace_id:e,org_id:PM(t)};return t.emit("createDsc",s),s}function r0(e,t){const n=t.getPropagationContext();return n.dsc||n0(n.traceId,e)}function dr(e){var p;const t=Ee();if(!t)return{};const n=wt(e),r=Re(n),s=r.data,i=n.spanContext().traceState,o=(i==null?void 0:i.get("sentry.sample_rate"))??s[lh]??s[US];function a(m){return(typeof o=="number"||typeof o=="string")&&(m.sample_rate=`${o}`),m}const c=n[t0];if(c)return a(c);const l=i==null?void 0:i.get("sentry.dsc"),d=l&&qS(l);if(d)return a(d);const u=n0(e.spanContext().traceId,t),f=s[jt],h=r.description;return f!=="url"&&h&&(u.transaction=h),fn()&&(u.sampled=String(Xr(n)),u.sample_rand=(i==null?void 0:i.get("sentry.sample_rand"))??((p=Hc(n).scope)==null?void 0:p.getPropagationContext().sampleRand.toString())),a(u),t.emit("createDsc",u,n),u}class Br{constructor(t={}){this._traceId=t.traceId||lr(),this._spanId=t.spanId||tr()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:JS}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function vn(e,t=100,n=1/0){try{return Md("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function s0(e,t=3,n=100*1024){const r=vn(e,t);return XM(r)>n?s0(e,t-1,n):r}function Md(e,t,n=1/0,r=1/0,s=JM()){const[i,o]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=GM(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return Md("",h,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let u=0;const f=$S(t);for(const h in f){if(!Object.prototype.hasOwnProperty.call(f,h))continue;if(u>=r){d[h]="[MaxProperties ~]";break}const p=f[h];d[h]=Md(h,p,c-1,r,s),u++}return o(t),d}function GM(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(NS(t))return AS(t);if(YA(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${ar(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=KM(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function KM(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function YM(e){return~-encodeURI(e).split(/%..|./).length}function XM(e){return YM(JSON.stringify(e))}function JM(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Jr(e,t=[]){return[e,t]}function ZM(e,t){const[n,r]=e;return[n,[...r,t]]}function Pd(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function QM(e,t){return Pd(e,(n,r)=>t.includes(r))}function Od(e){const t=kl(xe);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function eP(e){const[t,n]=e;let r=JSON.stringify(t);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[Od(r),i]:r.push(typeof i=="string"?Od(i):i)}for(const i of n){const[o,a]=i;if(s(`
${JSON.stringify(o)}
`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(vn(a))}s(c)}}return typeof r=="string"?r:tP(r)}function tP(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function nP(e){return[{type:"span"},e]}function rP(e){const t=typeof e.data=="string"?Od(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const sP={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function kg(e){return sP[e]}function mh(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function i0(e,t,n,r){var i;const s=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gi(r)},...s&&{trace:s}}}function iP(e,t){var r,s,i,o;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((s=e.sdk)==null?void 0:s.packages)||[],...t.packages||[]],settings:(i=e.sdk)!=null&&i.settings||t.settings?{...(o=e.sdk)==null?void 0:o.settings,...t.settings}:void 0},e}function oP(e,t,n,r){const s=mh(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Gi(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Jr(i,[o])}function aP(e,t,n,r){const s=mh(n),i=e.type&&e.type!=="replay_event"?e.type:"event";iP(e,n==null?void 0:n.sdk);const o=i0(e,s,r,t);return delete e.sdkProcessingMetadata,Jr(o,[[{type:i},e]])}function cP(e,t){function n(h){return!!h.trace_id&&!!h.public_key}const r=dr(e[0]),s=t==null?void 0:t.getDsn(),i=t==null?void 0:t.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:Gi(s)}},{beforeSendSpan:a,ignoreSpans:c}=(t==null?void 0:t.getOptions())||{},l=c!=null&&c.length?e.filter(h=>!Vc(Re(h),c)):e,d=e.length-l.length;d&&(t==null||t.recordDroppedEvent("before_send","span",d));const u=a?h=>{const p=Re(h),m=a(p);return m||(Ad(),p)}:Re,f=[];for(const h of l){const p=u(h);p&&f.push(nP(p))}return Jr(o,f)}function lP(e){if(!ce)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Re(e),{spanId:s}=e.spanContext(),i=Xr(e),o=wt(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:d,description:u}=Re(o);l.push(`root ID: ${o.spanContext().spanId}`),d&&l.push(`root op: ${d}`),u&&l.push(`root description: ${u}`)}J.log(`${c}
${l.join(`
`)}`)}function uP(e){if(!ce)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Re(e),{spanId:r}=e.spanContext(),i=wt(e)===e,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${t}" with ID ${r}`;J.log(o)}function dP(e,t,n,r=Tt()){const s=r&&wt(r);s&&(ce&&J.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[fa]:t,[da]:n}))}function Ig(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[da],i=r[fa];typeof s=="string"&&typeof i=="number"&&(t[n.name]={value:i,unit:s})}),t}const xg=1e3;class Al{constructor(t={}){this._traceId=t.traceId||lr(),this._spanId=t.spanId||tr(),this._startTime=t.startTimestamp||lt(),this._links=t.links,this._attributes={},this.setAttributes({[st]:"manual",[ur]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?hh:JS}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=_s(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(jt,"custom"),this}end(t){this._endTime||(this._endTime=_s(t),uP(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ur],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:QS(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[st],profile_id:this._attributes[uh],exclusive_time:this._attributes[qi],measurements:Ig(this._events),is_segment:this._isStandaloneSpan&&wt(this)===this||void 0,segment_id:this._isStandaloneSpan?wt(this).spanContext().spanId:void 0,links:ZS(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){ce&&J.log("[Tracing] Adding an event to span:",t);const s=Rg(n)?n:r||lt(),i=Rg(n)?{}:n||{},o={name:t,time:_s(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Ee();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===wt(this)))return;if(this._isStandaloneSpan){this._sampled?hP(cP([this],t)):(ce&&J.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Hc(this).scope||Le()).captureEvent(r)}_convertSpanToTransaction(){var d;if(!Ag(Re(this)))return;this._name||(ce&&J.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Hc(this),r=(d=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const i=rc(this).filter(u=>u!==this&&!fP(u)).map(u=>Re(u)).filter(Ag),o=this._attributes[jt];delete this._attributes[bg],i.forEach(u=>{delete u.data[bg]});const a={contexts:{trace:FM(this)},spans:i.length>xg?i.sort((u,f)=>u.start_timestamp-f.start_timestamp).slice(0,xg):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:dr(this)},request:r,...o&&{transaction_info:{source:o}}},c=Ig(this._events);return c&&Object.keys(c).length&&(ce&&J.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function Rg(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ag(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function fP(e){return e instanceof Al&&e.isStandaloneSpan()}function hP(e){const t=Ee();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function pP(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(i){throw t(i),n(),i}return mP(s,t,n,r)}function mP(e,t,n,r){return ji(e)?e.then(s=>(n(),r(s),s),s=>{throw t(s),n(),s}):(n(),r(e),e)}function gP(e,t,n){if(!fn(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const i=Is(s);if(i===void 0)return ce&&J.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!i)return ce&&J.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,r];const o=n<i;return o||ce&&J.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[o,i,r]}const o0="__SENTRY_SUPPRESS_TRACING__";function vP(e,t){const n=vh();if(n.startSpan)return n.startSpan(e,t);const r=c0(e),{forceTransaction:s,parentSpan:i,scope:o}=e,a=o==null?void 0:o.clone();return Rl(a,()=>_P(i)(()=>{const l=Le(),d=l0(l,i),f=e.onlyIfParent&&!d?new Br:a0({parentSpan:d,spanArguments:r,forceTransaction:s,scope:l});return Ti(l,f),pP(()=>t(f),()=>{const{status:h}=Re(f);f.isRecording()&&(!h||h==="ok")&&f.setStatus({code:ht,message:"internal_error"})},()=>{f.end()})}))}function Hr(e){const t=vh();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=c0(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?o=>Rl(e.scope,o):s!==void 0?o=>gh(s,o):o=>o())(()=>{const o=Le(),a=l0(o,s);return e.onlyIfParent&&!a?new Br:a0({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}function gh(e,t){const n=vh();return n.withActiveSpan?n.withActiveSpan(e,t):Rl(r=>(Ti(r,e||void 0),t(r)))}function a0({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!fn()){const o=new Br;if(n||!e){const a={sampled:"false",sample_rate:"0",transaction:t.name,...dr(o)};sc(o,a)}return o}const s=rn();let i;if(e&&!n)i=yP(e,r,t),e0(e,i);else if(e){const o=dr(e),{traceId:a,spanId:c}=e.spanContext(),l=Xr(e);i=Mg({traceId:a,parentSpanId:c,...t},r,l),sc(i,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:l}={...s.getPropagationContext(),...r.getPropagationContext()};i=Mg({traceId:o,parentSpanId:c,...t},r,l),a&&sc(i,a)}return lP(i),bM(i,r,s),i}function c0(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=_s(e.startTime),delete r.startTime,r}return n}function vh(){const e=Os();return zi(e)}function Mg(e,t,n){var p;const r=Ee(),s=(r==null?void 0:r.getOptions())||{},{name:i=""}=e,o={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r==null||r.emit("beforeSampling",o,{decision:!1});const a=o.parentSampled??n,c=o.spanAttributes,l=t.getPropagationContext(),[d,u,f]=t.getScopeData().sdkProcessingMetadata[o0]?[!1]:gP(s,{name:i,parentSampled:a,attributes:c,parentSampleRate:Is((p=l.dsc)==null?void 0:p.sample_rate)},l.sampleRand),h=new Al({...e,attributes:{[jt]:"custom",[lh]:u!==void 0&&f?u:void 0,...c},sampled:d});return!d&&r&&(ce&&J.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function yP(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=t.getScopeData().sdkProcessingMetadata[o0]?!1:Xr(e),o=i?new Al({...n,parentSpanId:r,traceId:s,sampled:i}):new Br({traceId:s});e0(e,o);const a=Ee();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function l0(e,t){if(t)return t;if(t===null)return;const n=Bc(e);if(!n)return;const r=Ee();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?wt(n):n}function _P(e){return e!==void 0?t=>gh(e,t):t=>t()}const ic={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},bP="heartbeatFailed",SP="idleTimeout",EP="finalTimeout",wP="externalFinish";function u0(e,t={}){const n=new Map;let r=!1,s,i=wP,o=!t.disableAutoFinish;const a=[],{idleTimeout:c=ic.idleTimeout,finalTimeout:l=ic.finalTimeout,childSpanTimeout:d=ic.childSpanTimeout,beforeSpanEnd:u,trimIdleSpanEndTimestamp:f=!0}=t,h=Ee();if(!h||!fn()){const E=new Br,C={sample_rate:"0",sampled:"false",...dr(E)};return sc(E,C),E}const p=Le(),m=Tt(),v=CP(e);v.end=new Proxy(v.end,{apply(E,C,I){if(u&&u(v),C instanceof Br)return;const[A,...O]=I,T=A||lt(),P=_s(T),N=rc(v).filter(U=>U!==v),z=Re(v);if(!N.length||!f)return R(P),Reflect.apply(E,C,[P,...O]);const X=h.getOptions().ignoreSpans,q=N==null?void 0:N.reduce((U,ie)=>{const ae=Re(ie);return!ae.timestamp||X&&Vc(ae,X)?U:U?Math.max(U,ae.timestamp):ae.timestamp},void 0),D=z.start_timestamp,re=Math.min(D?D+l/1e3:1/0,Math.max(D||-1/0,Math.min(P,q||1/0)));return R(re),Reflect.apply(E,C,[re,...O])}});function g(){s&&(clearTimeout(s),s=void 0)}function y(E){g(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=SP,v.end(E))},c)}function _(E){s=setTimeout(()=>{!r&&o&&(i=bP,v.end(E))},d)}function S(E){g(),n.set(E,!0);const C=lt();_(C+d/1e3)}function M(E){if(n.has(E)&&n.delete(E),n.size===0){const C=lt();y(C+c/1e3)}}function R(E){r=!0,n.clear(),a.forEach(N=>N()),Ti(p,m);const C=Re(v),{start_timestamp:I}=C;if(!I)return;C.data[jo]||v.setAttribute(jo,i);const O=C.status;(!O||O==="unknown")&&v.setStatus({code:dh}),J.log(`[Tracing] Idle span "${C.op}" finished`);const T=rc(v).filter(N=>N!==v);let P=0;T.forEach(N=>{N.isRecording()&&(N.setStatus({code:ht,message:"cancelled"}),N.end(E),ce&&J.log("[Tracing] Cancelling span since span ended early",JSON.stringify(N,void 0,2)));const z=Re(N),{timestamp:X=0,start_timestamp:q=0}=z,D=q<=E,re=(l+c)/1e3,U=X-q<=re;if(ce){const ie=JSON.stringify(N,void 0,2);D?U||J.log("[Tracing] Discarding span since it finished after idle span final timeout",ie):J.log("[Tracing] Discarding span since it happened after idle span was finished",ie)}(!U||!D)&&(WM(v,N),P++)}),P>0&&v.setAttribute("sentry.idle_span_discarded_spans",P)}return a.push(h.on("spanStart",E=>{if(r||E===v||Re(E).timestamp||E instanceof Al&&E.isStandaloneSpan())return;rc(v).includes(E)&&S(E.spanContext().spanId)})),a.push(h.on("spanEnd",E=>{r||M(E.spanContext().spanId)})),a.push(h.on("idleSpanEnableAutoFinish",E=>{E===v&&(o=!0,y(),n.size&&_())})),t.disableAutoFinish||y(),setTimeout(()=>{r||(v.setStatus({code:ht,message:"deadline_exceeded"}),i=EP,v.end())},l),v}function CP(e){const t=Hr(e);return Ti(Le(),t),ce&&J.log("[Tracing] Started span is an idle span"),t}const Tu=0,Pg=1,Og=2;function Ml(e){return new zo(t=>{t(e)})}function yh(e){return new zo((t,n)=>{n(e)})}class zo{constructor(t){this._state=Tu,this._handlers=[],this._runExecutor(t)}then(t,n){return new zo((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new zo((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Tu)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Pg&&n[1](this._value),this._state===Og&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(i,o)=>{if(this._state===Tu){if(ji(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Pg,i)},s=i=>{n(Og,i)};try{t(r,s)}catch(i){s(i)}}}function TP(e,t,n,r=0){try{const s=Ld(t,n,e,r);return ji(s)?s:Ml(s)}catch(s){return yh(s)}}function Ld(e,t,n,r){const s=n[r];if(!e||!s)return e;const i=s({...e},t);return ce&&i===null&&J.log(`Event processor "${s.id||"?"}" dropped event`),ji(i)?i.then(o=>Ld(o,t,n,r+1)):Ld(i,t,n,r+1)}let zn,Lg,Ng,br;function kP(e){const t=xe._sentryDebugIds,n=xe._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(br&&r.length===Lg&&s.length===Ng)return br;Lg=r.length,Ng=s.length,br={},zn||(zn={});const i=(o,a)=>{for(const c of o){const l=a[c],d=zn==null?void 0:zn[c];if(d&&br&&l)br[d[0]]=l,zn&&(zn[c]=[d[0],l]);else if(l){const u=e(c);for(let f=u.length-1;f>=0;f--){const h=u[f],p=h==null?void 0:h.filename;if(p&&br&&zn){br[p]=l,zn[c]=[p,l];break}}}}};return t&&i(r,t),n&&i(s,n),br}function IP(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;RP(e,t),r&&PP(e,r),OP(e,n),AP(e,s),MP(e,i)}function Dg(e,t){const{extra:n,tags:r,attributes:s,user:i,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:d,eventProcessors:u,attachments:f,propagationContext:h,transactionName:p,span:m}=t;so(e,"extra",n),so(e,"tags",r),so(e,"attributes",s),so(e,"user",i),so(e,"contexts",o),e.sdkProcessingMetadata=ua(e.sdkProcessingMetadata,c,2),a&&(e.level=a),p&&(e.transactionName=p),m&&(e.span=m),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function so(e,t,n){e[t]=ua(e[t],n,1)}function xP(e,t){const n=VS().getScopeData();return e&&Dg(n,e.getScopeData()),t&&Dg(n,t.getScopeData()),n}function RP(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function AP(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function MP(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function PP(e,t){e.contexts={trace:$M(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:dr(t),...e.sdkProcessingMetadata};const n=wt(t),r=Re(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function OP(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function d0(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||en(),timestamp:t.timestamp||Ns()},l=n.integrations||e.integrations.map(v=>v.name);LP(c,e),FP(c,l),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&NP(c,e.stackParser);const d=BP(r,n.captureContext);n.mechanism&&wi(c,n.mechanism);const u=s?s.getEventProcessors():[],f=xP(i,d),h=[...n.attachments||[],...f.attachments];h.length&&(n.attachments=h),IP(c,f);const p=[...u,...f.eventProcessors];return TP(p,c,n).then(v=>(v&&DP(v),typeof o=="number"&&o>0?$P(v,o,a):v))}function LP(e,t){var a,c;const{environment:n,release:r,dist:s,maxValueLength:i}=t;e.environment=e.environment||n||ph,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const o=e.request;o!=null&&o.url&&i&&(o.url=kd(o.url,i)),i&&((c=(a=e.exception)==null?void 0:a.values)==null||c.forEach(l=>{l.value&&(l.value=kd(l.value,i))}))}function NP(e,t){var r,s;const n=kP(t);(s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function DP(e){var r,s;const t={};if((s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(i=>{var o,a;(a=(o=i.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([i,o])=>{n.push({type:"sourcemap",code_file:i,debug_id:o})})}function FP(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function $P(e,t,n){var s,i;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))},...e.user&&{user:vn(e.user,t,n)},...e.contexts&&{contexts:vn(e.contexts,t,n)},...e.extra&&{extra:vn(e.extra,t,n)}};return(s=e.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=vn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:vn(o.data,t,n)}}))),(i=e.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=vn(e.contexts.flags,3,n)),r}function BP(e,t){if(!t)return e;const n=e?e.clone():new Vn;return n.update(t),n}function HP(e){if(e)return VP(e)?{captureContext:e}:WP(e)?{captureContext:e}:e}function VP(e){return e instanceof Vn||typeof e=="function"}const UP=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function WP(e){return Object.keys(e).some(t=>UP.includes(t))}function Pl(e,t){return Le().captureException(e,HP(t))}function f0(e,t){return Le().captureEvent(e,t)}function jP(e,t){rn().setContext(e,t)}function zP(e,t){rn().setTag(e,t)}function qP(e){rn().setUser(e)}function GP(){const e=Ee();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function KP(e){rn().addEventProcessor(e)}function Fg(e){const t=rn(),n=Le(),{userAgent:r}=xe.navigator||{},s=sM({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return(i==null?void 0:i.status)==="ok"&&Ci(i,{status:"exited"}),h0(),t.setSession(s),s}function h0(){const e=rn(),n=Le().getSession()||e.getSession();n&&iM(n),p0(),e.setSession()}function p0(){const e=rn(),t=Ee(),n=e.getSession();n&&t&&t.captureSession(n)}function $g(e=!1){if(e){h0();return}p0()}const YP="7";function XP(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function JP(e){return`${XP(e)}${e.projectId}/envelope/`}function ZP(e,t){const n={sentry_version:YP};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function QP(e,t,n){return t||`${JP(e)}?${ZP(e,n)}`}const Bg=[];function eO(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function tO(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return eO(r)}function nO(e,t){const n={};return t.forEach(r=>{r&&m0(e,r,n)}),n}function Hg(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function m0(e,t,n){if(n[t.name]){ce&&J.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Bg.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Bg.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}ce&&J.log(`Integration installed: ${t.name}`)}function Vg(e){const t=Ee();if(!t){ce&&J.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function rO(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function sO(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[rO(e)])}function g0(e,t){const n=t??iO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=sO(n,r._metadata,r.tunnel,e.getDsn());v0().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function iO(e){return v0().get(e)}function v0(){return Ui("clientToLogBufferMap",()=>new WeakMap)}function oO(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function aO(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Gi(r)),Jr(s,[oO(e)])}function y0(e,t){const n=t??cO(e)??[];if(n.length===0)return;const r=e.getOptions(),s=aO(n,r._metadata,r.tunnel,e.getDsn());_0().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function cO(e){return _0().get(e)}function _0(){return Ui("clientToMetricBufferMap",()=>new WeakMap)}const _h=Symbol.for("SentryBufferFullError");function bh(e=100){const t=new Set;function n(){return t.size<e}function r(o){t.delete(o)}function s(o){if(!n())return yh(_h);const a=o();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(o){if(!t.size)return Ml(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(l=>setTimeout(()=>l(!1),o))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:i}}const lO=60*1e3;function uO(e,t=la()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?lO:r-t}function dO(e,t){return e[t]||e.all||0}function b0(e,t,n=la()){return dO(e,t)>n}function S0(e,{statusCode:t,headers:n},r=la()){const s={...e},i=n==null?void 0:n["x-sentry-rate-limits"],o=n==null?void 0:n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,l,,,d]=a.split(":",5),u=parseInt(c,10),f=(isNaN(u)?60:u)*1e3;if(!l)s.all=r+f;else for(const h of l.split(";"))h==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[h]=r+f):s[h]=r+f}else o?s.all=r+uO(o,r):t===429&&(s.all=r+60*1e3);return s}const E0=64;function fO(e,t,n=bh(e.bufferSize||E0)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Pd(o,(u,f)=>{const h=kg(f);b0(r,h)?e.recordDroppedEvent("ratelimit_backoff",h):a.push(u)}),a.length===0)return Promise.resolve({});const c=Jr(o[0],a),l=u=>{if(QM(c,["client_report"])){ce&&J.warn(`Dropping client report. Will not send outcomes (reason: ${u}).`);return}Pd(c,(f,h)=>{e.recordDroppedEvent(u,kg(h))})},d=()=>t({body:eP(c)}).then(u=>(u.statusCode!==void 0&&(u.statusCode<200||u.statusCode>=300)&&ce&&J.warn(`Sentry responded with status code ${u.statusCode} to sent event.`),r=S0(r,u),u),u=>{throw l("network_error"),ce&&J.error("Encountered error running transport request:",u),u});return n.add(d).then(u=>u,u=>{if(u===_h)return ce&&J.error("Skipped sending event because buffer is full."),l("queue_overflow"),Promise.resolve({});throw u})}return{send:i,flush:s}}function hO(e,t,n){const r=[{type:"client_report"},{timestamp:Ns(),discarded_events:e}];return Jr(t?{dsn:t}:{},[r])}function w0(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function pO(e){var c;const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:i,data:o,op:a}=((c=e.contexts)==null?void 0:c.trace)??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o==null?void 0:o[uh],exclusive_time:o==null?void 0:o[qi],measurements:e.measurements,is_segment:!0}}function mO(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[uh]:e.profile_id},...e.exclusive_time&&{[qi]:e.exclusive_time}}}},measurements:e.measurements}}const Ug="Not capturing exception because it's already been captured.",Wg="Discarded session because of missing or non-string release",C0=Symbol.for("SentryInternalError"),T0=Symbol.for("SentryDoNotSendEventError"),gO=5e3;function oc(e){return{message:e,[C0]:!0}}function ku(e){return{message:e,[T0]:!0}}function jg(e){return!!e&&typeof e=="object"&&C0 in e}function zg(e){return!!e&&typeof e=="object"&&T0 in e}function qg(e,t,n,r,s){let i=0,o,a=!1;e.on(n,()=>{i=0,clearTimeout(o),a=!1}),e.on(t,c=>{i+=r(c),i>=8e5?s(e):a||(a=!0,o=setTimeout(()=>{s(e)},gO))}),e.on("flush",()=>{s(e)})}class vO{constructor(t){var r,s,i;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=bh(((r=t.transportOptions)==null?void 0:r.bufferSize)??E0),t.dsn?this._dsn=OM(t.dsn):ce&&J.warn("No DSN provided, client will not send events."),this._dsn){const o=QP(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:o})}this._options.enableLogs=this._options.enableLogs??((s=this._options._experiments)==null?void 0:s.enableLogs),this._options.enableLogs&&qg(this,"afterCaptureLog","flushLogs",SO,g0),(this._options.enableMetrics??((i=this._options._experiments)==null?void 0:i.enableMetrics)??!0)&&qg(this,"afterCaptureMetric","flushMetrics",bO,y0)}captureException(t,n,r){const s=en();if(vg(t))return ce&&J.log(Ug),s;const i={event_id:s,...n};return this._process(()=>this.eventFromException(t,i).then(o=>this._captureEvent(o,i,r)).then(o=>o),"error"),i.event_id}captureMessage(t,n,r,s){const i={event_id:en(),...r},o=ih(t)?t:String(t),a=Ei(t),c=a?this.eventFromMessage(o,n,i):this.eventFromException(t,i);return this._process(()=>c.then(l=>this._captureEvent(l,i,s)),a?"unknown":"error"),i.event_id}captureEvent(t,n,r){const s=en();if(n!=null&&n.originalException&&vg(n.originalException))return ce&&J.log(Ug),s;const i={event_id:s,...n},o=t.sdkProcessingMetadata||{},a=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=Gg(t.type);return this._process(()=>this._captureEvent(t,i,a||r,c),l),i.event_id}captureSession(t){this.sendSession(t),Ci(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];m0(this,t,this._integrations),n||Hg(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=aP(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=ZM(r,rP(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=ph}=this._options;if("aggregates"in t){const i=t.attrs||{};if(!i.release&&!n){ce&&J.warn(Wg);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){ce&&J.warn(Wg);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=oP(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;ce&&J.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...i)=>n(...i);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return ce&&J.error("Error while sending envelope:",n),{}}return ce&&J.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=nO(this,t),Hg(this,t)}_updateSessionFromEvent(t,n){var c,l;let r=n.level==="fatal",s=!1;const i=(c=n.exception)==null?void 0:c.values;if(i){s=!0,r=!1;for(const d of i)if(((l=d.mechanism)==null?void 0:l.handled)===!1){r=!0;break}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&(Ci(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&(o!=null&&o.length)&&(n.integrations=o),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),d0(i,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:pM(r),...a.contexts};const c=r0(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=Le(),s=rn()){return ce&&Nd(t)&&J.log(`Captured error event \`${w0(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(i=>i.event_id,i=>{ce&&(zg(i)?J.log(i.message):jg(i)?J.warn(i.message):J.warn(i))})}_processEvent(t,n,r,s){const i=this.getOptions(),{sampleRate:o}=i,a=k0(t),c=Nd(t),d=`before send for type \`${t.type||"error"}\``,u=typeof o>"u"?void 0:Is(o);if(c&&typeof u=="number"&&Or()>u)return this.recordDroppedEvent("sample_rate","error"),yh(ku(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));const f=Gg(t.type);return this._prepareEvent(t,n,r,s).then(h=>{if(h===null)throw this.recordDroppedEvent("event_processor",f),ku("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return h;const m=_O(this,i,h,n);return yO(m,d)}).then(h=>{var v;if(h===null){if(this.recordDroppedEvent("before_send",f),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw ku(`${d} returned \`null\`, will not send event.`)}const p=r.getSession()||s.getSession();if(c&&p&&this._updateSessionFromEvent(p,h),a){const g=((v=h.sdkProcessingMetadata)==null?void 0:v.spanCountBeforeProcessing)||0,y=h.spans?h.spans.length:0,_=g-y;_>0&&this.recordDroppedEvent("before_send","span",_)}const m=h.transaction_info;if(a&&m&&h.transaction!==t.transaction){const g="custom";h.transaction_info={...m,source:g}}return this.sendEvent(h,n),h}).then(null,h=>{throw zg(h)||jg(h)?h:(this.captureException(h,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:h}),oc(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${h}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===_h&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){ce&&J.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){ce&&J.log("No outcomes to send");return}if(!this._dsn){ce&&J.log("No dsn provided, will not send outcomes");return}ce&&J.log("Sending outcomes:",t);const n=hO(t,this._options.tunnel&&Gi(this._dsn));this.sendEnvelope(n)}}function Gg(e){return e==="replay_event"?"replay":e||"error"}function yO(e,t){const n=`${t} must return \`null\` or a valid event.`;if(ji(e))return e.then(r=>{if(!Wo(r)&&r!==null)throw oc(n);return r},r=>{throw oc(`${t} rejected with ${r}`)});if(!Wo(e)&&e!==null)throw oc(n);return e}function _O(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o,ignoreSpans:a}=t;let c=n;if(Nd(c)&&s)return s(c,r);if(k0(c)){if(o||a){const l=pO(c);if(a!=null&&a.length&&Vc(l,a))return null;if(o){const d=o(l);d?c=ua(n,mO(d)):Ad()}if(c.spans){const d=[],u=c.spans;for(const h of u){if(a!=null&&a.length&&Vc(h,a)){zM(u,h);continue}if(o){const p=o(h);p?d.push(p):(Ad(),d.push(h))}else d.push(h)}const f=c.spans.length-d.length;f&&e.recordDroppedEvent("before_send","span",f),c.spans=d}}if(i){if(c.spans){const l=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return i(c,r)}}return c}function Nd(e){return e.type===void 0}function k0(e){return e.type==="transaction"}function bO(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+I0(e.attributes)}function SO(e){let t=0;return e.message&&(t+=e.message.length*2),t+I0(e.attributes)}function I0(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Kg(n[0]):Ei(n)?t+=Kg(n):t+=100}),t}function Kg(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function EO(e){return Il(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Yg(e){return EO(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function wO(e,t){t.debug===!0&&(ce?J.enable():vr(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Le().update(t.initialScope);const r=new e(t);return CO(r),r.init(),r}function CO(e){Le().setClient(e)}const TO="thismessage:/";function Sh(e){return"isRelative"in e}function Eh(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?TO:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function kO(e){if(Sh(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function Ss(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function IO(e){return e.split(/[?#]/,1)[0]}function Lr(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),i=e.indexOf(",");let o="";if(t&&i!==-1){const a=e.slice(i+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${o?`,${o}`:""}`}return e}function xO(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return AO(e,n)||RO(e,r)}function RO(e,t){return t?Xg(e)===Xg(t):!1}function AO(e,t){const n=Eh(e);return!n||Sh(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Xg(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function MO(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function x0(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ys})),version:ys}),e._metadata=s}function R0(e={}){const t=e.client||Ee();if(!GP()||!t)return{};const n=Os(),r=zi(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||Le(),i=e.span||Tt(),o=i?BM(i):PO(s),a=i?dr(i):r0(t,s),c=wM(a);if(!KS.test(o))return J.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(d.traceparent=i?HM(i):OO(s)),d}function PO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return YS(t,r,n)}function OO(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return XS(t,r,n)}function LO(e,t,n){let r,s,i;const o=n!=null&&n.maxWait?Math.max(n.maxWait,t):0,a=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function c(){return l(),r=e(),r}function l(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?c():r}function u(){return s&&clearTimeout(s),s=a(c,t),o&&i===void 0&&(i=a(c,o)),r}return u.cancel=l,u.flush=d,u}const NO=100;function Vr(e,t){const n=Ee(),r=rn();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=NO}=n.getOptions();if(i<=0)return;const a={timestamp:Ns(),...e},c=s?vr(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}let Jg;const DO="FunctionToString",Zg=new WeakMap,FO=()=>({name:DO,setupOnce(){Jg=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ch(this),n=Zg.has(Ee())&&t!==void 0?t:this;return Jg.apply(n,e)}}catch{}},setup(e){Zg.set(e,!0)}}),$O=FO,BO=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],HO="EventFilters",VO=(e={})=>{let t;return{name:HO,setup(n){const r=n.getOptions();t=Qg(e,r)},processEvent(n,r,s){if(!t){const i=s.getOptions();t=Qg(e,i)}return WO(n,t)?null:n}}},UO=(e={})=>({...VO(e),name:"InboundFilters"});function Qg(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:BO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function WO(e,t){if(e.type){if(e.type==="transaction"&&zO(e,t.ignoreTransactions))return ce&&J.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${as(e)}`),!0}else{if(jO(e,t.ignoreErrors))return ce&&J.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${as(e)}`),!0;if(YO(e))return ce&&J.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${as(e)}`),!0;if(qO(e,t.denyUrls))return ce&&J.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${as(e)}.
Url: ${Uc(e)}`),!0;if(!GO(e,t.allowUrls))return ce&&J.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${as(e)}.
Url: ${Uc(e)}`),!0}return!1}function jO(e,t){return t!=null&&t.length?w0(e).some(n=>er(n,t)):!1}function zO(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?er(n,t):!1}function qO(e,t){if(!(t!=null&&t.length))return!1;const n=Uc(e);return n?er(n,t):!1}function GO(e,t){if(!(t!=null&&t.length))return!0;const n=Uc(e);return n?er(n,t):!0}function KO(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Uc(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(i=>{var o,a,c;return((o=i.mechanism)==null?void 0:o.parent_id)===void 0&&((c=(a=i.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?KO(s):null}catch{return ce&&J.error(`Cannot extract url for event ${as(e)}`),null}}function YO(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function XO(e,t,n,r,s,i){var a;if(!((a=s.exception)!=null&&a.values)||!i||!cr(i.originalException,Error))return;const o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=Dd(e,t,r,i.originalException,n,s.exception.values,o,0))}function Dd(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(cr(r[s],Error)){ev(o,a);const l=e(t,r[s]),d=c.length;tv(l,s,d,a),c=Dd(e,t,n,r[s],s,[l,...c],l,d)}return Array.isArray(r.errors)&&r.errors.forEach((l,d)=>{if(cr(l,Error)){ev(o,a);const u=e(t,l),f=c.length;tv(u,`errors[${d}]`,f,a),c=Dd(e,t,n,l,s,[u,...c],u,f)}}),c}function ev(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function tv(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function JO(e){const t="console";Kr(t,e),Yr(t,ZO)}function ZO(){"console"in xe&&NA.forEach(function(e){e in xe.console&&Wt(xe.console,e,function(t){return $c[e]=t,function(...n){dn("console",{args:n,level:e});const s=$c[e];s==null||s.apply(xe.console,n)}})})}function A0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const QO="Dedupe",eL=()=>{let e;return{name:QO,processEvent(t){if(t.type)return t;try{if(nL(t,e))return ce&&J.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},tL=eL;function nL(e,t){return t?!!(rL(e,t)||sL(e,t)):!1}function rL(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!P0(e,t)||!M0(e,t))}function sL(e,t){const n=nv(t),r=nv(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!P0(e,t)||!M0(e,t))}function M0(e,t){let n=dg(e),r=dg(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function P0(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function nv(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function iL(e,t,n,r,s){if(!e.fetchData)return;const{method:i,url:o}=e.fetchData,a=fn()&&t(o);if(e.endTimestamp&&a){const h=e.fetchData.__span;if(!h)return;const p=r[h];p&&(cL(p,e),oL(p,e,s),delete r[h]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:l=!1}=typeof s=="object"?s:{spanOrigin:s},d=!!Tt(),u=a&&d?Hr(uL(o,i,c)):new Br;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const h=e.args[0],p={...e.args[1]||{}},m=aL(h,p,fn()&&d?u:void 0,l);m&&(e.args[1]=p,p.headers=m)}const f=Ee();if(f){const h={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",u,h)}return u}function oL(e,t,n){var s;const r=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;r==null||r(e,{headers:(s=t.response)==null?void 0:s.headers,error:t.error})}function aL(e,t,n,r){const s=R0({span:n,propagateTraceparent:r}),i=s["sentry-trace"],o=s.baggage,a=s.traceparent;if(!i)return;const c=t.headers||(oh(e)?e.headers:void 0);if(c)if(lL(c)){const l=new Headers(c);if(l.get("sentry-trace")||l.set("sentry-trace",i),r&&a&&!l.get("traceparent")&&l.set("traceparent",a),o){const d=l.get("baggage");d?La(d)||l.set("baggage",`${d},${o}`):l.set("baggage",o)}return l}else if(Array.isArray(c)){const l=[...c];c.find(u=>u[0]==="sentry-trace")||l.push(["sentry-trace",i]),r&&a&&!c.find(u=>u[0]==="traceparent")&&l.push(["traceparent",a]);const d=c.find(u=>u[0]==="baggage"&&La(u[1]));return o&&!d&&l.push(["baggage",o]),l}else{const l="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,u="baggage"in c?c.baggage:void 0,f=u?Array.isArray(u)?[...u]:[u]:[],h=u&&(Array.isArray(u)?u.find(m=>La(m)):La(u));o&&!h&&f.push(o);const p={...c,"sentry-trace":l??i,baggage:f.length>0?f.join(","):void 0};return r&&a&&!d&&(p.traceparent=a),p}else return{...s}}function cL(e,t){var n,r;if(t.response){WS(e,t.response.status);const s=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(s){const i=parseInt(s);i>0&&e.setAttribute("http.response_content_length",i)}}else t.error&&e.setStatus({code:ht,message:"internal_error"});e.end()}function La(e){return e.split(",").some(t=>t.trim().startsWith(fh))}function lL(e){return typeof Headers<"u"&&cr(e,Headers)}function uL(e,t,n){if(e.startsWith("data:")){const i=Lr(e);return{name:`${t} ${i}`,attributes:rv(e,void 0,t,n)}}const r=Eh(e),s=r?kO(r):e;return{name:`${t} ${s}`,attributes:rv(e,r,t,n)}}function rv(e,t,n,r){const s={url:Lr(e),type:"fetch","http.method":n,[st]:r,[ur]:"http.client"};return t&&(Sh(t)||(s["http.url"]=Lr(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function dL(e,t={},n=Le()){const{message:r,name:s,email:i,url:o,source:a,associatedEventId:c,tags:l}=e,d={contexts:{feedback:{contact_email:i,name:s,message:r,url:o,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:l},u=(n==null?void 0:n.getClient())||Ee();return u&&u.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function O0(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const qo=xe;function fL(){return"history"in qo&&!!qo.history}function hL(){if(!("fetch"in qo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Fd(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function pL(){var n;if(typeof EdgeRuntime=="string")return!0;if(!hL())return!1;if(Fd(qo.fetch))return!0;let e=!1;const t=qo.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Fd(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){ce&&J.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function L0(e,t){const n="fetch";Kr(n,e),Yr(n,()=>N0(void 0,t))}function mL(e){const t="fetch-body-resolved";Kr(t,e),Yr(t,()=>N0(vL))}function N0(e,t=!1){t&&!pL()||Wt(xe,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=yL(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:lt()*1e3,virtualError:s,headers:_L(r)};return e||dn("fetch",{...a}),n.apply(xe,r).then(async c=>(e?e(c):dn("fetch",{...a,endTimestamp:lt()*1e3,response:c}),c),c=>{dn("fetch",{...a,endTimestamp:lt()*1e3,error:c}),Il(c)&&c.stack===void 0&&(c.stack=s.stack,qt(c,"framesToPop",1));const l=Ee(),d=(l==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const h=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${h})`:qt(c,"__sentry_fetch_url_host__",h)}catch{}throw c})}})}async function gL(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function vL(e){let t;try{t=e.clone()}catch{return}gL(t,()=>{dn("fetch-body-resolved",{endTimestamp:lt()*1e3,response:e})})}function ac(e,t){return!!e&&typeof e=="object"&&!!e[t]}function sv(e){return typeof e=="string"?e:e?ac(e,"url")?e.url:e.toString?e.toString():"":""}function yL(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:sv(n),method:ac(r,"method")?String(r.method).toUpperCase():oh(n)&&ac(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:sv(t),method:ac(t,"method")?String(t.method).toUpperCase():"GET"}}function _L(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(oh(t))return new Headers(t.headers)}catch{}}function bL(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function SL(){return"npm"}function EL(){return!bL()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Wc(){return typeof window<"u"&&(!EL()||wL())}function wL(){const e=xe.process;return(e==null?void 0:e.type)==="renderer"}const _n=xe,Ue=_n.document,co=_n.navigator,D0="Report a Bug",CL="Cancel",TL="Send Bug Report",kL="Confirm",IL="Report a Bug",xL="your.email@example.org",RL="Email",AL="What's the bug? What did you expect?",ML="Description",PL="Your Name",OL="Name",LL="Thank you for your report!",NL="(required)",DL="Add a screenshot",FL="Remove screenshot",$L="Highlight",BL="Hide",HL="Remove",VL="widget",UL="api",WL=5e3,jL=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=Ee();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Le().setTags(e.tags);const r=dL({source:UL,url:Ls(),...e},t);return new Promise((s,i)=>{const o=setTimeout(()=>i("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,l)=>{if(c.event_id===r)return clearTimeout(o),a(),l!=null&&l.statusCode&&l.statusCode>=200&&l.statusCode<300?s(r):(l==null?void 0:l.statusCode)===403?i("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):i("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},cc=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function zL(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(co.userAgent)||/Macintosh/i.test(co.userAgent)&&co.maxTouchPoints&&co.maxTouchPoints>1||!isSecureContext)}function Na(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;(n=t.onFormOpen)==null||n.call(t),(r=e.onFormOpen)==null||r.call(e)},onFormClose:()=>{var n,r;(n=t.onFormClose)==null||n.call(t),(r=e.onFormClose)==null||r.call(e)},onSubmitSuccess:(n,r)=>{var s,i;(s=t.onSubmitSuccess)==null||s.call(t,n,r),(i=e.onSubmitSuccess)==null||i.call(e,n,r)},onSubmitError:n=>{var r,s;(r=t.onSubmitError)==null||r.call(t,n),(s=e.onSubmitError)==null||s.call(e,n)},onFormSubmitted:()=>{var n,r;(n=t.onFormSubmitted)==null||n.call(t),(r=e.onFormSubmitted)==null||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function qL(e){const t=Ue.createElement("style");return t.textContent=`
.widget__actor {
position: fixed;
z-index: var(--z-index);
margin: var(--page-margin);
inset: var(--actor-inset);
display: flex;
align-items: center;
gap: 8px;
padding: 16px;
font-family: inherit;
font-size: var(--font-size);
font-weight: 600;
line-height: 1.14em;
text-decoration: none;
background: var(--actor-background, var(--background));
border-radius: var(--actor-border-radius, 1.7em/50%);
border: var(--actor-border, var(--border));
box-shadow: var(--actor-box-shadow, var(--box-shadow));
color: var(--actor-color, var(--foreground));
fill: var(--actor-color, var(--foreground));
cursor: pointer;
opacity: 1;
transition: transform 0.2s ease-in-out;
transform: translate(0, 0) scale(1);
}
.widget__actor[aria-hidden="true"] {
opacity: 0;
pointer-events: none;
visibility: hidden;
transform: translate(0, 16px) scale(0.98);
}
.widget__actor:hover {
background: var(--actor-hover-background, var(--background));
filter: var(--interactive-filter);
}
.widget__actor svg {
width: 1.14em;
height: 1.14em;
}
@media (max-width: 600px) {
.widget__actor span {
display: none;
}
}
`,e&&t.setAttribute("nonce",e),t}function Xt(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Ws=20,GL="http://www.w3.org/2000/svg";function KL(){const e=a=>_n.document.createElementNS(GL,a),t=Xt(e("svg"),{width:`${Ws}`,height:`${Ws}`,viewBox:`0 0 ${Ws} ${Ws}`,fill:"var(--actor-color, var(--foreground))"}),n=Xt(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Xt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),i=Xt(e("clipPath"),{id:"clip0_57_80"}),o=Xt(e("rect"),{width:`${Ws}`,height:`${Ws}`,fill:"white"});return i.appendChild(o),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(o),t}function YL({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=Ue.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||D0,s.appendChild(KL()),e){const o=Ue.createElement("span");o.appendChild(Ue.createTextNode(e)),s.appendChild(o)}const i=qL(r);return{el:s,appendToDom(){n.appendChild(i),n.appendChild(s)},removeFromDom(){s.remove(),i.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const F0="rgba(88, 74, 192, 1)",XL={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:F0,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},iv={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:F0,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function ov(e){return`
--foreground: ${e.foreground};
--background: ${e.background};
--accent-foreground: ${e.accentForeground};
--accent-background: ${e.accentBackground};
--success-color: ${e.successColor};
--error-color: ${e.errorColor};
--border: ${e.border};
--box-shadow: ${e.boxShadow};
--outline: ${e.outline};
--interactive-filter: ${e.interactiveFilter};
`}function JL({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=Ue.createElement("style");return s.textContent=`
:host {
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
--font-size: 14px;
--z-index: 100000;
--page-margin: 16px;
--inset: auto 0 0 auto;
--actor-inset: var(--inset);
font-family: var(--font-family);
font-size: var(--font-size);
${e!=="system"?`color-scheme: only ${e};`:""}
${ov(e==="dark"?{...iv,...t}:{...XL,...n})}
}
${e==="system"?`
@media (prefers-color-scheme: dark) {
:host {
color-scheme: only dark;
${ov({...iv,...t})}
}
}`:""}
`,r&&s.setAttribute("nonce",r),s}const ZL=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:s="sentry-feedback",autoInject:i=!0,showBranding:o=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:l=!0,showName:d=!0,enableScreenshot:u=!0,useSentryUser:f={email:"email",name:"username"},tags:h,styleNonce:p,scriptNonce:m,colorScheme:v="system",themeLight:g={},themeDark:y={},addScreenshotButtonLabel:_=DL,cancelButtonLabel:S=CL,confirmButtonLabel:M=kL,emailLabel:R=RL,emailPlaceholder:E=xL,formTitle:C=IL,isRequiredLabel:I=NL,messageLabel:A=ML,messagePlaceholder:O=AL,nameLabel:T=OL,namePlaceholder:P=PL,removeScreenshotButtonLabel:N=FL,submitButtonLabel:z=TL,successMessageText:X=LL,triggerLabel:q=D0,triggerAriaLabel:D="",highlightToolText:re=$L,hideToolText:U=BL,removeHighlightText:ie=HL,onFormOpen:ae,onFormClose:ue,onSubmitSuccess:Ce,onSubmitError:Ne,onFormSubmitted:He}={})=>{const x={id:s,autoInject:i,showBranding:o,isEmailRequired:a,isNameRequired:c,showEmail:l,showName:d,enableScreenshot:u,useSentryUser:f,tags:h,styleNonce:p,scriptNonce:m,colorScheme:v,themeDark:y,themeLight:g,triggerLabel:q,triggerAriaLabel:D,cancelButtonLabel:S,submitButtonLabel:z,confirmButtonLabel:M,formTitle:C,emailLabel:R,emailPlaceholder:E,messageLabel:A,messagePlaceholder:O,nameLabel:T,namePlaceholder:P,successMessageText:X,isRequiredLabel:I,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:N,highlightToolText:re,hideToolText:U,removeHighlightText:ie,onFormClose:ue,onFormOpen:ae,onSubmitError:Ne,onSubmitSuccess:Ce,onFormSubmitted:He};let W=null,K=[];const ne=k=>{if(!W){const L=Ue.createElement("div");L.id=String(k.id),Ue.body.appendChild(L),W=L.attachShadow({mode:"open"}),W.appendChild(JL(k))}return W},ye=async k=>{const L=k.enableScreenshot&&zL();let $,F;try{$=(t?t():await e("feedbackModalIntegration",m))(),Vg($)}catch{throw cc&&J.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Y=L?n?n():await e("feedbackScreenshotIntegration",m):void 0;Y&&(F=Y(),Vg(F))}catch{cc&&J.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const G=$.createDialog({options:{...k,onFormClose:()=>{var Y;G==null||G.close(),(Y=k.onFormClose)==null||Y.call(k)},onFormSubmitted:()=>{var Y;G==null||G.close(),(Y=k.onFormSubmitted)==null||Y.call(k)}},screenshotIntegration:F,sendFeedback:jL,shadow:ne(k)});return G},b=(k,L={})=>{const $=Na(x,L),F=typeof k=="string"?Ue.querySelector(k):typeof k.addEventListener=="function"?k:null;if(!F)throw cc&&J.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let G=null;const Y=async()=>{G||(G=await ye({...$,onFormSubmitted:()=>{var V;G==null||G.removeFromDom(),(V=$.onFormSubmitted)==null||V.call($)}})),G.appendToDom(),G.open()};F.addEventListener("click",Y);const H=()=>{K=K.filter(V=>V!==H),G==null||G.removeFromDom(),G=null,F.removeEventListener("click",Y)};return K.push(H),H},w=(k={})=>{const L=Na(x,k),$=ne(L),F=YL({triggerLabel:L.triggerLabel,triggerAriaLabel:L.triggerAriaLabel,shadow:$,styleNonce:p});return b(F.el,{...L,onFormOpen(){F.hide()},onFormClose(){F.show()},onFormSubmitted(){F.show()}}),F};return{name:"Feedback",setupOnce(){!Wc()||!x.autoInject||(Ue.readyState==="loading"?Ue.addEventListener("DOMContentLoaded",()=>w().appendToDom()):w().appendToDom())},attachTo:b,createWidget(k={}){const L=w(Na(x,k));return L.appendToDom(),L},async createForm(k={}){return ye(Na(x,k))},remove(){var k;W&&((k=W.parentElement)==null||k.remove(),W=null),K.forEach(L=>L()),K=[]}}};var Ol,je,$0,cs,av,B0,$d,Go={},wh=[],QL=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ch=Array.isArray;function Mr(e,t){for(var n in t)e[n]=t[n];return e}function H0(e){var t=e.parentNode;t&&t.removeChild(e)}function ke(e,t,n){var r,s,i,o={};for(i in t)i=="key"?r=t[i]:i=="ref"?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?Ol.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return lc(e,o,r,s,null)}function lc(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++$0,__i:-1,__u:0};return s==null&&je.vnode!=null&&je.vnode(i),i}function ha(e){return e.children}function uc(e,t){this.props=e,this.context=t}function Ii(e,t){if(t==null)return e.__?Ii(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ii(e):null}function eN(e,t,n){var r,s=e.__v,i=s.__e,o=e.__P;if(o)return(r=Mr({},s)).__v=s.__v+1,je.vnode&&je.vnode(r),Th(o,r,s,e.__n,o.ownerSVGElement!==void 0,32&s.__u?[i]:null,t,i??Ii(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&V0(r),r}function V0(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return V0(e)}}function cv(e){(!e.__d&&(e.__d=!0)&&cs.push(e)&&!jc.__r++||av!==je.debounceRendering)&&((av=je.debounceRendering)||B0)(jc)}function jc(){var e,t,n,r=[],s=[];for(cs.sort($d);e=cs.shift();)e.__d&&(n=cs.length,t=eN(e,r,s)||t,n===0||cs.length>n?(Bd(r,t,s),s.length=r.length=0,t=void 0,cs.sort($d)):t&&je.__c&&je.__c(t,wh));t&&Bd(r,t,s),jc.__r=0}function U0(e,t,n,r,s,i,o,a,c,l,d){var u,f,h,p,m,v=r&&r.__k||wh,g=t.length;for(n.__d=c,tN(n,t,v),c=n.__d,u=0;u<g;u++)(h=n.__k[u])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?Go:v[h.__i]||Go,h.__i=u,Th(e,h,f,s,i,o,a,c,l,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&kh(f.ref,null,h),d.push(h.ref,h.__c||p,h)),m==null&&p!=null&&(m=p),65536&h.__u||f.__k===h.__k?c=W0(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function tN(e,t,n){var r,s,i,o,a,c=t.length,l=n.length,d=l,u=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?lc(null,s,null,null,s):Ch(s)?lc(ha,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?lc(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=nN(s,n,o=r+u,d),s.__i=a,i=null,a!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&u--,typeof s.type!="function"&&(s.__u|=65536)):a!==o&&(a===o+1?u++:a>o?d>c-o?u+=a-o:u--:u=a<o&&a==o-1?a-o:0,a!==r+u&&(s.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=Ii(i)),Hd(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ii(i)),Hd(i,i))}function W0(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=W0(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function nN(e,t,n,r){var s=e.key,i=e.type,o=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&i===c.type)return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((c=t[o])&&!(131072&c.__u)&&s==c.key&&i===c.type)return o;o--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&i===c.type)return a;a++}}return-1}function lv(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||QL.test(t)?n:n+"px"}function Da(e,t,n,r,s){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||lv(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||lv(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?dv:uv,i)):e.removeEventListener(t,i?dv:uv,i);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function uv(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(je.event?je.event(e):e)}}function dv(e){if(this.l)return this.l[e.type+!0](je.event?je.event(e):e)}function Th(e,t,n,r,s,i,o,a,c,l){var d,u,f,h,p,m,v,g,y,_,S,M,R,E,C,I=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=je.__b)&&d(t);e:if(typeof I=="function")try{if(g=t.props,y=(d=I.contextType)&&r[d.__c],_=d?y?y.props.value:d.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:("prototype"in I&&I.prototype.render?t.__c=u=new I(g,_):(t.__c=u=new uc(g,_),u.constructor=I,u.render=sN),y&&y.sub(u),u.props=g,u.state||(u.state={}),u.context=_,u.__n=r,f=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),I.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Mr({},u.__s)),Mr(u.__s,I.getDerivedStateFromProps(g,u.__s))),h=u.props,p=u.state,u.__v=t,f)I.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(I.getDerivedStateFromProps==null&&g!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,_),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,_)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[],u.__h.length&&o.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,_),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,p,m)})}if(u.context=_,u.props=g,u.__P=e,u.__e=!1,M=je.__r,R=0,"prototype"in I&&I.prototype.render){for(u.state=u.__s,u.__d=!1,M&&M(t),d=u.render(u.props,u.state,u.context),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[]}else do u.__d=!1,M&&M(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++R<25);u.state=u.__s,u.getChildContext!=null&&(r=Mr(Mr({},r),u.getChildContext())),f||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(h,p)),U0(e,Ch(C=d!=null&&d.type===ha&&d.key==null?d.props.children:d)?C:[C],t,n,r,s,i,o,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&o.push(u),v&&(u.__E=u.__=null)}catch(A){t.__v=null,c||i!=null?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),je.__e(A,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=rN(n.__e,t,n,r,s,i,o,c,l);(d=je.diffed)&&d(t)}function Bd(e,t,n){for(var r=0;r<n.length;r++)kh(n[r],n[++r],n[++r]);je.__c&&je.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(i){i.call(s)})}catch(i){je.__e(i,s.__v)}})}function rN(e,t,n,r,s,i,o,a,c){var l,d,u,f,h,p,m,v=n.props,g=t.props,y=t.type;if(y==="svg"&&(s=!0),i!=null){for(l=0;l<i.length;l++)if((h=i[l])&&"setAttribute"in h==!!y&&(y?h.localName===y:h.nodeType===3)){e=h,i[l]=null;break}}if(e==null){if(y===null)return document.createTextNode(g);e=s?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,g.is&&g),i=null,a=!1}if(y===null)v===g||a&&e.data===g||(e.data=g);else{if(i=i&&Ol.call(e.childNodes),v=n.props||Go,!a&&i!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)h=v[l],l=="children"||(l=="dangerouslySetInnerHTML"?u=h:l==="key"||l in g||Da(e,l,null,h,s));for(l in g)h=g[l],l=="children"?f=h:l=="dangerouslySetInnerHTML"?d=h:l=="value"?p=h:l=="checked"?m=h:l==="key"||a&&typeof h!="function"||v[l]===h||Da(e,l,h,v[l],s);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),U0(e,Ch(f)?f:[f],t,n,r,s&&y!=="foreignObject",i,o,i?i[0]:n.__k&&Ii(n,0),a,c),i!=null)for(l=i.length;l--;)i[l]!=null&&H0(i[l]);a||(l="value",p!==void 0&&(p!==e[l]||y==="progress"&&!p||y==="option"&&p!==v[l])&&Da(e,l,p,v[l],!1),l="checked",m!==void 0&&m!==e[l]&&Da(e,l,m,v[l],!1))}return e}function kh(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){je.__e(r,n)}}function Hd(e,t,n){var r,s;if(je.unmount&&je.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kh(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){je.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Hd(r[s],t,n||typeof e.type!="function");n||e.__e==null||H0(e.__e),e.__=e.__e=e.__d=void 0}function sN(e,t,n){return this.constructor(e,n)}function iN(e,t,n){var r,s,i,o;je.__&&je.__(e,t),s=(r=!1)?null:t.__k,i=[],o=[],Th(t,e=t.__k=ke(ha,null,[e]),s||Go,Go,t.ownerSVGElement!==void 0,s?null:t.firstChild?Ol.call(t.childNodes):null,i,s?s.__e:t.firstChild,r,o),e.__d=void 0,Bd(i,e,o)}Ol=wh.slice,je={__e:function(e,t,n,r){for(var s,i,o;t=t.__;)if((s=t.__c)&&!s.__)try{if((i=s.constructor)&&i.getDerivedStateFromError!=null&&(s.setState(i.getDerivedStateFromError(e)),o=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),o=s.__d),o)return s.__E=s}catch(a){e=a}throw e}},$0=0,uc.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Mr({},this.state),typeof e=="function"&&(e=e(Mr({},n),this.props)),e&&Mr(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),cv(this))},uc.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cv(this))},uc.prototype.render=ha,cs=[],B0=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$d=function(e,t){return e.__v.__b-t.__v.__b},jc.__r=0;var fr,We,Iu,fv,xi=0,j0=[],dc=[],nt=je,hv=nt.__b,pv=nt.__r,mv=nt.diffed,gv=nt.__c,vv=nt.unmount,yv=nt.__;function Ds(e,t){nt.__h&&nt.__h(We,e,xi||t),xi=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:dc}),n.__[e]}function us(e){return xi=1,z0(G0,e)}function z0(e,t,n){var r=Ds(fr++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):G0(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=We,!We.u)){var s=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,a,c,l);var u=!1;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!i||i.call(this,a,c,l))};We.u=!0;var i=We.shouldComponentUpdate,o=We.componentWillUpdate;We.componentWillUpdate=function(a,c,l){if(this.__e){var d=i;i=void 0,s(a,c,l),i=d}o&&o.call(this,a,c,l)},We.shouldComponentUpdate=s}return r.__N||r.__}function oN(e,t){var n=Ds(fr++,3);!nt.__s&&Ih(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function q0(e,t){var n=Ds(fr++,4);!nt.__s&&Ih(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function aN(e){return xi=5,pa(function(){return{current:e}},[])}function cN(e,t,n){xi=6,q0(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function pa(e,t){var n=Ds(fr++,7);return Ih(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function di(e,t){return xi=8,pa(function(){return e},t)}function lN(e){var t=We.context[e.__c],n=Ds(fr++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(We)),t.props.value):e.__}function uN(e,t){nt.useDebugValue&&nt.useDebugValue(t?t(e):e)}function dN(e){var t=Ds(fr++,10),n=us();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function fN(){var e=Ds(fr++,11);if(!e.__){for(var t=We.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function hN(){for(var e;e=j0.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fc),e.__H.__h.forEach(Vd),e.__H.__h=[]}catch(t){e.__H.__h=[],nt.__e(t,e.__v)}}nt.__b=function(e){We=null,hv&&hv(e)},nt.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yv&&yv(e,t)},nt.__r=function(e){pv&&pv(e),fr=0;var t=(We=e.__c).__H;t&&(Iu===We?(t.__h=[],We.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=dc,n.__N=n.i=void 0})):(t.__h.forEach(fc),t.__h.forEach(Vd),t.__h=[],fr=0)),Iu=We},nt.diffed=function(e){mv&&mv(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(j0.push(t)!==1&&fv===nt.requestAnimationFrame||((fv=nt.requestAnimationFrame)||pN)(hN)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==dc&&(n.__=n.__V),n.i=void 0,n.__V=dc})),Iu=We=null},nt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(fc),n.__h=n.__h.filter(function(r){return!r.__||Vd(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],nt.__e(r,n.__v)}}),gv&&gv(e,t)},nt.unmount=function(e){vv&&vv(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{fc(r)}catch(s){t=s}}),n.__H=void 0,t&&nt.__e(t,n.__v))};var _v=typeof requestAnimationFrame=="function";function pN(e){var t,n=function(){clearTimeout(r),_v&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_v&&(t=requestAnimationFrame(n))}function fc(e){var t=We,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),We=t}function Vd(e){var t=We;e.__c=e.__(),We=t}function Ih(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function G0(e,t){return typeof t=="function"?t(e):t}const mN=Object.defineProperty({__proto__:null,useCallback:di,useContext:lN,useDebugValue:uN,useEffect:oN,useErrorBoundary:dN,useId:fN,useImperativeHandle:cN,useLayoutEffect:q0,useMemo:pa,useReducer:z0,useRef:aN,useState:us},Symbol.toStringTag,{value:"Module"}),gN="http://www.w3.org/2000/svg";function vN(){const e=r=>Ue.createElementNS(gN,r),t=Xt(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Xt(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function yN({options:e}){const t=pa(()=>({__html:vN().outerHTML}),[]);return ke("h2",{class:"dialog__header"},ke("span",{class:"dialog__title"},e.formTitle),e.showBranding?ke("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function _N(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function xu(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function bN({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:i,onSubmitError:o,showEmail:a,showName:c,screenshotInput:l}){const{tags:d,addScreenshotButtonLabel:u,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:v,isNameRequired:g,messageLabel:y,messagePlaceholder:_,nameLabel:S,namePlaceholder:M,submitButtonLabel:R,isRequiredLabel:E}=e,[C,I]=us(!1),[A,O]=us(null),[T,P]=us(!1),N=l==null?void 0:l.input,[z,X]=us(null),q=di(U=>{X(U),P(!1)},[]),D=di(U=>{const ie=_N(U,{emailLabel:p,isEmailRequired:v,isNameRequired:g,messageLabel:y,nameLabel:S});return ie.length>0?O(`Please enter in the following required fields: ${ie.join(", ")}`):O(null),ie.length===0},[p,v,g,y,S]),re=di(async U=>{I(!0);try{if(U.preventDefault(),!(U.target instanceof HTMLFormElement))return;const ie=new FormData(U.target),ae=await(l&&T?l.value():void 0),ue={name:xu(ie,"name"),email:xu(ie,"email"),message:xu(ie,"message"),attachments:ae?[ae]:void 0};if(!D(ue))return;try{const Ce=await s({name:ue.name,email:ue.email,message:ue.message,source:VL,tags:d},{attachments:ue.attachments});i(ue,Ce)}catch(Ce){cc&&J.error(Ce),O(Ce),o(Ce)}}finally{I(!1)}},[l&&T,i,o]);return ke("form",{class:"form",onSubmit:re},N&&T?ke(N,{onError:q}):null,ke("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:C},ke("div",{class:"form__top"},A?ke("div",{class:"form__error-container"},A):null,c?ke("label",{for:"name",class:"form__label"},ke(Ru,{label:S,isRequiredLabel:E,isRequired:g}),ke("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:M,required:g,type:"text"})):ke("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?ke("label",{for:"email",class:"form__label"},ke(Ru,{label:p,isRequiredLabel:E,isRequired:v}),ke("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:v,type:"email"})):ke("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ke("label",{for:"message",class:"form__label"},ke(Ru,{label:y,isRequiredLabel:E,isRequired:!0}),ke("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),N?ke("label",{for:"screenshot",class:"form__label"},ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:()=>{X(null),P(U=>!U)}},T?f:u),z?ke("div",{class:"form__error-container"},z.message):null):null),ke("div",{class:"btn-group"},ke("button",{class:"btn btn--primary",disabled:C,type:"submit"},R),ke("button",{class:"btn btn--default",disabled:C,type:"button",onClick:r},h))))}function Ru({label:e,isRequired:t,isRequiredLabel:n}){return ke("span",{class:"form__label__text"},e,t&&ke("span",{class:"form__label__text--required"},n))}const Fa=16,bv=17,SN="http://www.w3.org/2000/svg";function EN(){const e=c=>_n.document.createElementNS(SN,c),t=Xt(e("svg"),{width:`${Fa}`,height:`${bv}`,viewBox:`0 0 ${Fa} ${bv}`,fill:"inherit"}),n=Xt(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Xt(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Xt(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const i=e("defs"),o=Xt(e("clipPath"),{id:"clip0_57_156"}),a=Xt(e("rect"),{width:`${Fa}`,height:`${Fa}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(a),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(a),t}function wN({open:e,onFormSubmitted:t,...n}){const r=n.options,s=pa(()=>({__html:EN().outerHTML}),[]),[i,o]=us(null),a=di(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),c=di((l,d)=>{n.onSubmitSuccess(l,d),o(setTimeout(()=>{t(),o(null)},WL))},[t]);return ke(ha,null,i?ke("div",{class:"success__position",onClick:a},ke("div",{class:"success__content"},r.successMessageText,ke("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):ke("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ke("div",{class:"dialog__position"},ke("div",{class:"dialog__content",onClick:l=>{l.stopPropagation()}},ke(yN,{options:r}),ke(bN,{...n,onSubmitSuccess:c})))))}const CN=`
.dialog {
position: fixed;
z-index: var(--z-index);
margin: 0;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
height: 100vh;
width: 100vw;
color: var(--dialog-color, var(--foreground));
fill: var(--dialog-color, var(--foreground));
line-height: 1.75em;
background-color: rgba(0, 0, 0, 0.05);
border: none;
inset: 0;
opacity: 1;
transition: opacity 0.2s ease-in-out;
}
.dialog__position {
position: fixed;
z-index: var(--z-index);
inset: var(--dialog-inset);
padding: var(--page-margin);
display: flex;
max-height: calc(100vh - (2 * var(--page-margin)));
}
@media (max-width: 600px) {
.dialog__position {
inset: var(--page-margin);
padding: 0;
}
}
.dialog__position:has(.editor) {
inset: var(--page-margin);
padding: 0;
}
.dialog:not([open]) {
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.dialog:not([open]) .dialog__content {
transform: translate(0, -16px) scale(0.98);
}
.dialog__content {
display: flex;
flex-direction: column;
gap: 16px;
padding: var(--dialog-padding, 24px);
max-width: 100%;
width: 100%;
max-height: 100%;
overflow: auto;
background: var(--dialog-background, var(--background));
border-radius: var(--dialog-border-radius, 20px);
border: var(--dialog-border, var(--border));
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
transform: translate(0, 0) scale(1);
transition: transform 0.2s ease-in-out;
}
`,TN=`
.dialog__header {
display: flex;
gap: 4px;
justify-content: space-between;
font-weight: var(--dialog-header-weight, 600);
margin: 0;
}
.dialog__title {
align-self: center;
width: var(--form-width, 272px);
}
@media (max-width: 600px) {
.dialog__title {
width: auto;
}
}
.dialog__position:has(.editor) .dialog__title {
width: auto;
}
.brand-link {
display: inline-flex;
}
.brand-link:focus-visible {
outline: var(--outline);
}
`,kN=`
.form {
display: flex;
overflow: auto;
flex-direction: row;
gap: 16px;
flex: 1 0;
}
.form fieldset {
border: none;
margin: 0;
padding: 0;
}
.form__right {
flex: 0 0 auto;
display: flex;
overflow: auto;
flex-direction: column;
justify-content: space-between;
gap: 20px;
width: var(--form-width, 100%);
}
.dialog__position:has(.editor) .form__right {
width: var(--form-width, 272px);
}
.form__top {
display: flex;
flex-direction: column;
gap: 8px;
}
.form__error-container {
color: var(--error-color);
fill: var(--error-color);
}
.form__label {
display: flex;
flex-direction: column;
gap: 4px;
margin: 0px;
}
.form__label__text {
display: flex;
gap: 4px;
align-items: center;
}
.form__label__text--required {
font-size: 0.85em;
}
.form__input {
font-family: inherit;
line-height: inherit;
background: transparent;
box-sizing: border-box;
border: var(--input-border, var(--border));
border-radius: var(--input-border-radius, 6px);
color: var(--input-color, inherit);
fill: var(--input-color, inherit);
font-size: var(--input-font-size, inherit);
font-weight: var(--input-font-weight, 500);
padding: 6px 12px;
}
.form__input::placeholder {
opacity: 0.65;
color: var(--input-placeholder-color, inherit);
filter: var(--interactive-filter);
}
.form__input:focus-visible {
outline: var(--input-focus-outline, var(--outline));
}
.form__input--textarea {
font-family: inherit;
resize: vertical;
}
.error {
color: var(--error-color);
fill: var(--error-color);
}
`,IN=`
.btn-group {
display: grid;
gap: 8px;
}
.btn {
line-height: inherit;
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
cursor: pointer;
font-family: inherit;
font-size: var(--button-font-size, inherit);
font-weight: var(--button-font-weight, 600);
padding: var(--button-padding, 6px 16px);
}
.btn[disabled] {
opacity: 0.6;
pointer-events: none;
}
.btn--primary {
color: var(--button-primary-color, var(--accent-foreground));
fill: var(--button-primary-color, var(--accent-foreground));
background: var(--button-primary-background, var(--accent-background));
border: var(--button-primary-border, var(--border));
border-radius: var(--button-primary-border-radius, 6px);
font-weight: var(--button-primary-font-weight, 500);
}
.btn--primary:hover {
color: var(--button-primary-hover-color, var(--accent-foreground));
fill: var(--button-primary-hover-color, var(--accent-foreground));
background: var(--button-primary-hover-background, var(--accent-background));
filter: var(--interactive-filter);
}
.btn--primary:focus-visible {
background: var(--button-primary-hover-background, var(--accent-background));
filter: var(--interactive-filter);
outline: var(--button-primary-focus-outline, var(--outline));
}
.btn--default {
color: var(--button-color, var(--foreground));
fill: var(--button-color, var(--foreground));
background: var(--button-background, var(--background));
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
font-weight: var(--button-font-weight, 500);
}
.btn--default:hover {
color: var(--button-color, var(--foreground));
fill: var(--button-color, var(--foreground));
background: var(--button-hover-background, var(--background));
filter: var(--interactive-filter);
}
.btn--default:focus-visible {
background: var(--button-hover-background, var(--background));
filter: var(--interactive-filter);
outline: var(--button-focus-outline, var(--outline));
}
`,xN=`
.success__position {
position: fixed;
inset: var(--dialog-inset);
padding: var(--page-margin);
z-index: var(--z-index);
}
.success__content {
background: var(--success-background, var(--background));
border: var(--success-border, var(--border));
border-radius: var(--success-border-radius, 1.7em/50%);
box-shadow: var(--success-box-shadow, var(--box-shadow));
font-weight: var(--success-font-weight, 600);
color: var(--success-color);
fill: var(--success-color);
padding: 12px 24px;
line-height: 1.75em;
display: grid;
align-items: center;
grid-auto-flow: column;
gap: 6px;
cursor: default;
}
.success__icon {
display: flex;
}
`;function RN(e){const t=Ue.createElement("style");return t.textContent=`
:host {
--dialog-inset: var(--inset);
}
${CN}
${TN}
${kN}
${IN}
${xN}
`,e&&t.setAttribute("nonce",e),t}function AN(){const e=Le().getUser(),t=rn().getUser(),n=VS().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const MN=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,i=e.useSentryUser,o=AN(),a=Ue.createElement("div"),c=RN(e.styleNonce);let l="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),Ue.body.style.overflow=l},open(){var h,p;f(!0),(h=e.onFormOpen)==null||h.call(e),(p=Ee())==null||p.emit("openFeedbackWidget"),l=Ue.body.style.overflow,Ue.body.style.overflow="hidden"},close(){f(!1),Ue.body.style.overflow=l}},u=t==null?void 0:t.createInput({h:ke,hooks:mN,dialog:d,options:e}),f=h=>{iN(ke(wN,{options:e,screenshotInput:u,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&(o==null?void 0:o[i.name])||""),defaultEmail:String(i&&(o==null?void 0:o[i.email])||""),onFormClose:()=>{var p;f(!1),(p=e.onFormClose)==null||p.call(e)},onSubmit:n,onSubmitSuccess:(p,m)=>{var v;f(!1),(v=e.onSubmitSuccess)==null||v.call(e,p,m)},onSubmitError:p=>{var m;(m=e.onSubmitError)==null||m.call(e,p)},onFormSubmitted:()=>{var p;(p=e.onFormSubmitted)==null||p.call(e)},open:h}),a)};return d}});function PN({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function ON(e){const t=Ue.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
.editor {
display: flex;
flex-grow: 1;
flex-direction: column;
}
.editor__image-container {
justify-items: center;
padding: 15px;
position: relative;
height: 100%;
border-radius: var(--menu-border-radius, 6px);
background-color: ${n};
background-image: repeating-linear-gradient(
-145deg,
transparent,
transparent 8px,
${n} 8px,
${n} 11px
),
repeating-linear-gradient(
-45deg,
transparent,
transparent 15px,
${r} 15px,
${r} 16px
);
}
.editor__canvas-container {
width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.editor__canvas-container > * {
object-fit: contain;
position: absolute;
}
.editor__tool-container {
padding-top: 8px;
display: flex;
justify-content: center;
}
.editor__tool-bar {
display: flex;
gap: 8px;
}
.editor__tool {
display: flex;
padding: 8px 12px;
justify-content: center;
align-items: center;
border: var(--button-border, var(--border));
border-radius: var(--button-border-radius, 6px);
background: var(--button-background, var(--background));
color: var(--button-color, var(--foreground));
}
.editor__tool--active {
background: var(--button-primary-background, var(--accent-background));
color: var(--button-primary-color, var(--accent-foreground));
}
.editor__rect {
position: absolute;
z-index: 2;
}
.editor__rect button {
opacity: 0;
position: absolute;
top: -12px;
right: -12px;
cursor: pointer;
padding: 0;
z-index: 3;
border: none;
background: none;
}
.editor__rect:hover button {
opacity: 1;
}
`,e&&t.setAttribute("nonce",e),t}function LN({h:e}){return function({action:n,setAction:r,options:s}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},s.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},s.hideToolText)))}}function NN({hooks:e}){function t(){const[n,r]=e.useState(_n.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(_n.devicePixelRatio)},i=matchMedia(`(resolution: ${_n.devicePixelRatio}dppx)`);return i.addEventListener("change",s),()=>{i.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:i,onError:o}){const a=t();e.useEffect(()=>{(async()=>{r();const l=await co.mediaDevices.getDisplayMedia({video:{width:_n.innerWidth*a,height:_n.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=Ue.createElement("video");await new Promise((u,f)=>{d.srcObject=l,d.onloadedmetadata=()=>{s(d,a),l.getTracks().forEach(h=>h.stop()),u()},d.play().catch(f)}),i()})().catch(o)},[])}}function DN(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function xr(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function Au(e,t){xr(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function Mu(e,t,n){xr(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(i=>{DN(i,s,t)})})}function FN({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const i=NN({hooks:t}),o=LN({h:e}),a=PN({h:e}),c={__html:ON(s.styleNonce).innerText},l=r.el.style,d=({screenshot:u})=>{const[f,h]=t.useState("highlight"),[p,m]=t.useState([]),v=t.useRef(null),g=t.useRef(null),y=t.useRef(null),_=t.useRef(null),[S,M]=t.useState(1),R=t.useMemo(()=>{const T=Ue.getElementById(s.id);if(!T)return"white";const P=getComputedStyle(T);return P.getPropertyValue("--button-primary-background")||P.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const T=()=>{const P=v.current;P&&(xr(u.canvas,{alpha:!1},N=>{const z=Math.min(P.clientWidth/N.width,P.clientHeight/N.height);M(z)}),(P.clientHeight===0||P.clientWidth===0)&&setTimeout(T,0))};return T(),_n.addEventListener("resize",T),()=>{_n.removeEventListener("resize",T)}},[u]);const E=t.useCallback((T,P)=>{xr(T,{alpha:!0},(N,z)=>{z.scale(P,P),N.width=u.canvas.width,N.height=u.canvas.height})},[u]);t.useEffect(()=>{E(g.current,u.dpi),Au(g.current,u.canvas)},[u]),t.useEffect(()=>{E(y.current,u.dpi),xr(y.current,{alpha:!0},(T,P)=>{P.clearRect(0,0,T.width,T.height)}),Mu(y.current,R,p)},[p,R]),t.useEffect(()=>{E(n,u.dpi),Au(n,u.canvas),xr(Ue.createElement("canvas"),{alpha:!0},(T,P)=>{P.scale(u.dpi,u.dpi),T.width=u.canvas.width,T.height=u.canvas.height,Mu(T,R,p),Au(n,T)})},[p,u,R]);const C=T=>{if(!f||!_.current)return;const P=_.current.getBoundingClientRect(),N={type:f,x:T.offsetX/S,y:T.offsetY/S},z=(D,re)=>{const U=(re.clientX-P.x)/S,ie=(re.clientY-P.y)/S;return{type:D.type,x:Math.min(D.x,U),y:Math.min(D.y,ie),w:Math.abs(U-D.x),h:Math.abs(ie-D.y)}},X=D=>{xr(y.current,{alpha:!0},(re,U)=>{U.clearRect(0,0,re.width,re.height)}),Mu(y.current,R,[...p,z(N,D)])},q=D=>{const re=z(N,D);re.w*S>=1&&re.h*S>=1&&m(U=>[...U,re]),Ue.removeEventListener("mousemove",X),Ue.removeEventListener("mouseup",q)};Ue.addEventListener("mousemove",X),Ue.addEventListener("mouseup",q)},I=t.useCallback(T=>P=>{P.preventDefault(),P.stopPropagation(),m(N=>{const z=[...N];return z.splice(T,1),z})},[]),A={width:`${u.canvas.width*S}px`,height:`${u.canvas.height*S}px`},O=T=>{T.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:v},e("canvas",{ref:g,id:"background",style:A}),e("canvas",{ref:y,id:"foreground",style:A}),e("div",{ref:_,onMouseDown:C,style:A},p.map((T,P)=>e("div",{key:P,class:"editor__rect",style:{top:`${T.y*S}px`,left:`${T.x*S}px`,width:`${T.w*S}px`,height:`${T.h*S}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:I(P),onMouseDown:O,onMouseUp:O,type:"button"},e(a,null))))))),e(o,{options:s,action:f,setAction:h}))};return function({onError:f}){const[h,p]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{l.display="none"},[]),onScreenshot:t.useCallback((m,v)=>{xr(Ue.createElement("canvas"),{alpha:!1},(g,y)=>{y.scale(v,v),g.width=m.videoWidth,g.height=m.videoHeight,y.drawImage(m,0,0,g.width,g.height),p({canvas:g,dpi:v})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display="block"},[]),onError:t.useCallback(m=>{l.display="block",f(m)},[])}),h?e(d,{screenshot:h}):e("div",null)}}const $N=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=Ue.createElement("canvas");return{input:FN({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const i=await new Promise(o=>{s.toBlob(o,"image/png")});if(i)return{data:new Uint8Array(await i.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),Pe=xe;let Ud=0;function K0(){return Ud>0}function BN(){Ud++,setTimeout(()=>{Ud--})}function Ri(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(ch(e))return e}catch{return e}const r=function(...s){try{const i=s.map(o=>Ri(o,t));return e.apply(this,i)}catch(i){throw BN(),Rl(o=>{o.addEventProcessor(a=>(t.mechanism&&(Id(a,void 0),wi(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Pl(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}FS(r,e),qt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function xh(){const e=Ls(),{referrer:t}=Pe.document||{},{userAgent:n}=Pe.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const HN=ZL({getModalIntegration:()=>MN,getScreenshotIntegration:()=>$N});function Rh(e,t){const n=Ah(e,t),r={type:zN(t),value:qN(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function VN(e,t,n,r){const s=Ee(),i=s==null?void 0:s.getOptions().normalizeDepth,o=JN(t),a={__serialized__:s0(t,i)};if(o)return{exception:{values:[Rh(e,o)]},extra:a};const c={exception:{values:[{type:xl(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:YN(t,{isUnhandledRejection:r})}]},extra:a};if(n){const l=Ah(e,n);l.length&&(c.exception.values[0].stacktrace={frames:l})}return c}function Pu(e,t){return{exception:{values:[Rh(e,t)]}}}function Ah(e,t){const n=t.stacktrace||t.stack||"",r=WN(t),s=jN(t);try{return e(n,r,s)}catch{}return[]}const UN=/Minified React error #\d+;/i;function WN(e){return e&&UN.test(e.message)?1:0}function jN(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Y0(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function zN(e){const t=e==null?void 0:e.name;return!t&&Y0(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function qN(e){const t=e==null?void 0:e.message;return Y0(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Yg(t.error):Yg(e):"No error message"}function GN(e,t,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,i=Mh(e,t,s,r);return wi(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ml(i)}function KN(e,t,n="info",r,s){const i=(r==null?void 0:r.syntheticException)||void 0,o=Wd(e,t,i,s);return o.level=n,r!=null&&r.event_id&&(o.event_id=r.event_id),Ml(o)}function Mh(e,t,n,r,s){let i;if(LS(t)&&t.error)return Pu(e,t.error);if(hg(t)||qA(t)){const o=t;if("stack"in t)i=Pu(e,t);else{const a=o.name||(hg(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=Wd(e,c,n,r),Id(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Il(t)?Pu(e,t):Wo(t)||xl(t)?(i=VN(e,t,n,s),wi(i,{synthetic:!0}),i):(i=Wd(e,t,n,r),Id(i,`${t}`),wi(i,{synthetic:!0}),i)}function Wd(e,t,n,r){const s={};if(r&&n){const i=Ah(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]}),wi(s,{synthetic:!0})}if(ih(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function YN(e,{isUnhandledRejection:t}){const n=ZA(e),r=t?"promise rejection":"exception";return LS(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:xl(e)?`Event \`${XN(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function XN(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function JN(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}class ZN extends vO{constructor(t){var d;const n=QN(t),r=Pe.SENTRY_SDK_SOURCE||SL();x0(n,"browser",["browser"],r),(d=n._metadata)!=null&&d.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:i,enableLogs:o,_experiments:a,enableMetrics:c}=this._options,l=c??(a==null?void 0:a.enableMetrics)??!0;Pe.document&&(i||o||l)&&Pe.document.addEventListener("visibilitychange",()=>{Pe.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),o&&g0(this),l&&y0(this))}),s&&this.on("beforeSendSession",MO)}eventFromException(t,n){return GN(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return KN(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function QN(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Pe.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const xs=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ge=xe,eD=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ma=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s??0),(i||s===void 0)&&(s=t.value,t.delta=i,t.rating=eD(t.value,n),e(t)))}},ga=(e=!0)=>{var n,r;const t=(r=(n=ge.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ki=()=>{const e=ga();return(e==null?void 0:e.activationStart)??0};function Nr(e,t,n){ge.document&&ge.addEventListener(e,t,n)}function zc(e,t,n){ge.document&&ge.removeEventListener(e,t,n)}let fi=-1;const X0=new Set,tD=()=>{var e,t;return((e=ge.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=ge.document)!=null&&t.prerendering)?0:1/0},hc=e=>{if(nD(e)&&fi>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of X0)t();isFinite(fi)||(fi=e.type==="visibilitychange"?e.timeStamp:0,zc("prerenderingchange",hc,!0))}},va=()=>{var e;if(ge.document&&fi<0){const t=Ki();fi=(ge.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??tD(),Nr("visibilitychange",hc,!0),Nr("pagehide",hc,!0),Nr("prerenderingchange",hc,!0)}return{get firstHiddenTime(){return fi},onHidden(t){X0.add(t)}}};function nD(e){var t;return e.type==="pagehide"||((t=ge.document)==null?void 0:t.visibilityState)==="hidden"}const rD=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ya=(e,t=-1)=>{var i,o;const n=ga();let r="navigate";return n&&((i=ge.document)!=null&&i.prerendering||Ki()>0?r="prerender":(o=ge.document)!=null&&o.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:rD(),navigationType:r}},Ou=new WeakMap;function Ph(e,t){try{return Ou.get(e)||Ou.set(e,new t),Ou.get(e)}catch{return new t}}class qc{constructor(){qc.prototype.__init.call(this),qc.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var s;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(s=this._onAfterProcessingUnexpectedShift)==null||s.call(this,t)}}const Yi=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Oh=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ll=e=>{var t;(t=ge.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},sD=[1800,3e3],iD=(e,t={})=>{Ll(()=>{const n=va(),r=ya("FCP");let s;const o=Yi("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Ki(),0),r.entries.push(c),s(!0)))});o&&(s=ma(e,r,sD,t.reportAllChanges))})},oD=[.1,.25],aD=(e,t={})=>{iD(Oh(()=>{var c;const n=ya("CLS",0);let r;const s=va(),i=Ph(t,qc),o=l=>{for(const d of l)i._processEntry(d);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Yi("layout-shift",o);a&&(r=ma(e,n,oD,t.reportAllChanges),s.onHidden(()=>{o(a.takeRecords()),r(!0)}),(c=ge==null?void 0:ge.setTimeout)==null||c.call(ge,r))}))};let J0=0,Lu=1/0,$a=0;const cD=e=>{e.forEach(t=>{t.interactionId&&(Lu=Math.min(Lu,t.interactionId),$a=Math.max($a,t.interactionId),J0=$a?($a-Lu)/7+1:0)})};let jd;const Z0=()=>jd?J0:performance.interactionCount||0,lD=()=>{"interactionCount"in performance||jd||(jd=Yi("event",cD,{type:"event",buffered:!0,durationThreshold:0}))},Nu=10;let Q0=0;const uD=()=>Z0()-Q0;class Gc{constructor(){Gc.prototype.__init.call(this),Gc.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){Q0=Z0(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(uD()/50));return this._longestInteractionList[t]}_processEntry(t){var s,i;if((s=this._onBeforeProcessingEntry)==null||s.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Nu||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((o,a)=>a._latency-o._latency),this._longestInteractionList.length>Nu){const o=this._longestInteractionList.splice(Nu);for(const a of o)this._longestInteractionMap.delete(a.id)}(i=this._onAfterProcessingINPCandidate)==null||i.call(this,r)}}}const eE=e=>{var n;const t=ge.requestIdleCallback||ge.setTimeout;((n=ge.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=Oh(e),Nr("visibilitychange",e,{once:!0,capture:!0}),Nr("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),zc("visibilitychange",e,{capture:!0}),zc("pagehide",e,{capture:!0})}))},dD=[200,500],fD=40,hD=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=va();Ll(()=>{lD();const r=ya("INP");let s;const i=Ph(t,Gc),o=c=>{eE(()=>{for(const d of c)i._processEntry(d);const l=i._estimateP98LongestInteraction();l&&l._latency!==r.value&&(r.value=l._latency,r.entries=l.entries,s())})},a=Yi("event",o,{durationThreshold:t.durationThreshold??fD});s=ma(e,r,dD,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(a.takeRecords()),s(!0)}))})};class pD{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const mD=[2500,4e3],gD=(e,t={})=>{Ll(()=>{const n=va(),r=ya("LCP");let s;const i=Ph(t,pD),o=c=>{t.reportAllChanges||(c=c.slice(-1));for(const l of c)i._processEntry(l),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Ki(),0),r.entries=[l],s())},a=Yi("largest-contentful-paint",o);if(a){s=ma(e,r,mD,t.reportAllChanges);const c=Oh(()=>{o(a.takeRecords()),a.disconnect(),s(!0)}),l=d=>{d.isTrusted&&(eE(c),zc(d.type,l,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Nr(d,l,{capture:!0})}})},vD=[800,1800],zd=e=>{var t,n;(t=ge.document)!=null&&t.prerendering?Ll(()=>zd(e)):((n=ge.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>zd(e),!0):setTimeout(e)},yD=(e,t={})=>{const n=ya("TTFB"),r=ma(e,n,vD,t.reportAllChanges);zd(()=>{const s=ga();s&&(n.value=Math.max(s.responseStart-Ki(),0),n.entries=[s],r(!0))})},Eo={},Kc={};let tE,nE,rE,sE;function Lh(e,t=!1){return Nl("cls",e,bD,tE,t)}function Nh(e,t=!1){return Nl("lcp",e,SD,nE,t)}function _D(e){return Nl("ttfb",e,ED,rE)}function iE(e){return Nl("inp",e,wD,sE)}function Rs(e,t){return oE(e,t),Kc[e]||(CD(e),Kc[e]=!0),aE(e,t)}function _a(e,t){const n=Eo[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(s){xs&&J.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${ar(r)}
Error:`,s)}}function bD(){return aD(e=>{_a("cls",{metric:e}),tE=e},{reportAllChanges:!0})}function SD(){return gD(e=>{_a("lcp",{metric:e}),nE=e},{reportAllChanges:!0})}function ED(){return yD(e=>{_a("ttfb",{metric:e}),rE=e})}function wD(){return hD(e=>{_a("inp",{metric:e}),sE=e})}function Nl(e,t,n,r,s=!1){oE(e,t);let i;return Kc[e]||(i=n(),Kc[e]=!0),r&&t({metric:r}),aE(e,t,s?i:void 0)}function CD(e){const t={};e==="event"&&(t.durationThreshold=0),Yi(e,n=>{_a(e,{entries:n})},t)}function oE(e,t){Eo[e]=Eo[e]||[],Eo[e].push(t)}function aE(e,t,n){return()=>{n&&n();const r=Eo[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function TD(e){return"duration"in e}const kD=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=ge.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};Nr("visibilitychange",t,{capture:!0,once:!0}),Nr("pagehide",t,{capture:!0,once:!0})};function Du(e){return typeof e=="number"&&isFinite(e)}function Ur(e,t,n,{...r}){const s=Re(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),gh(e,()=>{const i=Hr({startTime:t,...r});return i&&i.end(n),i})}function Dh(e){var v;const t=Ee();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:i}=e,{release:o,environment:a,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l==null?void 0:l.getReplayId(),u=Le(),f=u.getUser(),h=f!==void 0?f.email||f.id||f.ip_address:void 0;let p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}const m={release:o,environment:a,user:h||void 0,profile_id:p||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":(v=ge.navigator)==null?void 0:v.userAgent,"client.address":c?"{{auto}}":void 0,...s};return Hr({name:n,attributes:m,startTime:i,experimental:{standalone:!0}})}function ba(){return ge.addEventListener&&ge.performance}function at(e){return e/1e3}function ID(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function cE(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function lE(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n),r=!0}kD(()=>{s("pagehide")});const i=e.on("beforeStartNavigationSpan",(a,c)=>{c!=null&&c.isRedirect||(s("navigation"),i(),o())}),o=e.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,o()})}function xD(e){let t=0,n;if(!cE("layout-shift"))return;const r=Lh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);lE(e,(s,i)=>{RD(t,n,i,s),r()})}function RD(e,t,n,r){var l;xs&&J.log(`Sending CLS span (${e})`);const s=t?at((Gt()||0)+t.startTime):lt(),i=Le().getScopeData().transactionName,o=t?zt((l=t.sources[0])==null?void 0:l.node):"Layout shift",a={[st]:"auto.http.browser.cls",[ur]:"ui.webvital.cls",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((d,u)=>{a[`cls.source.${u+1}`]=zt(d.node)});const c=Dh({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("cls",{[da]:"",[fa]:e}),c.end(s))}function AD(e){let t=0,n;if(!cE("largest-contentful-paint"))return;const r=Nh(({metric:s})=>{const i=s.entries[s.entries.length-1];i&&(t=s.value,n=i)},!0);lE(e,(s,i)=>{MD(t,n,i,s),r()})}function MD(e,t,n,r){xs&&J.log(`Sending LCP span (${e})`);const s=at((Gt()||0)+((t==null?void 0:t.startTime)||0)),i=Le().getScopeData().transactionName,o=t?zt(t.element):"Largest contentful paint",a={[st]:"auto.http.browser.lcp",[ur]:"ui.webvital.lcp",[qi]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=zt(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Dh({name:o,transaction:i,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[da]:"millisecond",[fa]:e}),c.end(s))}function on(e){return e&&((Gt()||performance.timeOrigin)+e)/1e3}function uE(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:r,version:s}=ID(e.nextHopProtocol);t["network.protocol.version"]=s,t["network.protocol.name"]=r}return Gt()||(n=ba())!=null&&n.timeOrigin?PD({...t,"http.request.redirect_start":on(e.redirectStart),"http.request.redirect_end":on(e.redirectEnd),"http.request.worker_start":on(e.workerStart),"http.request.fetch_start":on(e.fetchStart),"http.request.domain_lookup_start":on(e.domainLookupStart),"http.request.domain_lookup_end":on(e.domainLookupEnd),"http.request.connect_start":on(e.connectStart),"http.request.secure_connection_start":on(e.secureConnectionStart),"http.request.connection_end":on(e.connectEnd),"http.request.request_start":on(e.requestStart),"http.request.response_start":on(e.responseStart),"http.request.response_end":on(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function PD(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const OD=2147483647;let Sv=0,yn={},Vt,ei;function LD({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=ba();if(r&&Gt()){r.mark&&ge.performance.mark("sentry-tracing-init");const s=t?AD(n):BD(),i=HD(),o=e?xD(n):$D();return()=>{s==null||s(),i(),o==null||o()}}return()=>{}}function ND(){Rs("longtask",({entries:e})=>{const t=Tt();if(!t)return;const{op:n,start_timestamp:r}=Re(t);for(const s of e){const i=at(Gt()+s.startTime),o=at(s.duration);n==="navigation"&&r&&i<r||Ur(t,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[st]:"auto.ui.browser.metrics"}})}})}function DD(){new PerformanceObserver(t=>{const n=Tt();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=at(Gt()+r.startTime),{start_timestamp:i,op:o}=Re(n);if(o==="navigation"&&i&&s<i)continue;const a=at(r.duration),c={[st]:"auto.ui.browser.metrics"},l=r.scripts[0],{invoker:d,invokerType:u,sourceURL:f,sourceFunctionName:h,sourceCharPosition:p}=l;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=u,f&&(c["code.filepath"]=f),h&&(c["code.function"]=h),p!==-1&&(c["browser.script.source_char_position"]=p),Ur(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function FD(){Rs("event",({entries:e})=>{const t=Tt();if(t){for(const n of e)if(n.name==="click"){const r=at(Gt()+n.startTime),s=at(n.duration),i={name:zt(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[st]:"auto.ui.browser.metrics"}},o=DS(n.target);o&&(i.attributes["ui.component_name"]=o),Ur(t,r,r+s,i)}}})}function $D(){return Lh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.cls={value:e.value,unit:""},ei=t)},!0)}function BD(){return Nh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(yn.lcp={value:e.value,unit:"millisecond"},Vt=t)},!0)}function HD(){return _D(({metric:e})=>{e.entries[e.entries.length-1]&&(yn.ttfb={value:e.value,unit:"millisecond"})})}function VD(e,t){const n=ba(),r=Gt();if(!(n!=null&&n.getEntries)||!r)return;const s=at(r),i=n.getEntries(),{op:o,start_timestamp:a}=Re(e);i.slice(Sv).forEach(c=>{const l=at(c.startTime),d=at(Math.max(0,c.duration));if(!(o==="navigation"&&a&&s+l<a))switch(c.entryType){case"navigation":{zD(e,c,s);break}case"mark":case"paint":case"measure":{WD(e,c,l,d,s,t.ignorePerformanceApiSpans);const u=va(),f=c.startTime<u.firstHiddenTime;c.name==="first-paint"&&f&&(yn.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&f&&(yn.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{KD(e,c,c.name,l,d,s,t.ignoreResourceSpans);break}}}),Sv=Math.max(i.length-1,0),YD(e),o==="pageload"&&(ZD(yn),t.recordClsOnPageloadSpan||delete yn.cls,t.recordLcpOnPageloadSpan||delete yn.lcp,Object.entries(yn).forEach(([c,l])=>{dP(c,l.value,l.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ki()),XD(e,t)),Vt=void 0,ei=void 0,yn={}}function UD(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function WD(e,t,n,r,s,i){if(UD(t)||["mark","measure"].includes(t.entryType)&&er(t.name,i))return;const o=ga(!1),a=at(o?o.requestStart:0),c=s+Math.max(n,a),l=s+n,d=l+r,u={[st]:"auto.resource.browser.metrics"};c!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=c),jD(u,t),c<=d&&Ur(e,c,d,{name:t.name,op:t.entryType,attributes:u})}function jD(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Ei(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Ei(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function zD(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ba(e,t,r,n)}),Ba(e,t,"secureConnection",n,"TLS/SSL"),Ba(e,t,"fetch",n,"cache"),Ba(e,t,"domainLookup",n,"DNS"),GD(e,t,n)}function Ba(e,t,n,r,s=n){const i=qD(n),o=t[i],a=t[`${n}Start`];!a||!o||Ur(e,r+at(a),r+at(o),{op:`browser.${s}`,name:t.name,attributes:{[st]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function qD(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function GD(e,t,n){const r=n+at(t.requestStart),s=n+at(t.responseEnd),i=n+at(t.responseStart);t.responseEnd&&(Ur(e,r,s,{op:"browser.request",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}),Ur(e,i,s,{op:"browser.response",name:t.name,attributes:{[st]:"auto.ui.browser.metrics"}}))}function KD(e,t,n,r,s,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o!=null&&o.includes(a))return;const c={[st]:"auto.resource.browser.metrics"},l=Ss(n);l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(ge.location.origin),JD(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...uE(t)},u=i+r,f=u+s;Ur(e,u,f,{name:n.replace(ge.location.origin,""),op:a,attributes:d})}function YD(e){const t=ge.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Du(n.rtt)&&(yn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Du(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Du(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function XD(e,t){Vt&&t.recordLcpOnPageloadSpan&&(Vt.element&&e.setAttribute("lcp.element",zt(Vt.element)),Vt.id&&e.setAttribute("lcp.id",Vt.id),Vt.url&&e.setAttribute("lcp.url",Vt.url.trim().slice(0,200)),Vt.loadTime!=null&&e.setAttribute("lcp.loadTime",Vt.loadTime),Vt.renderTime!=null&&e.setAttribute("lcp.renderTime",Vt.renderTime),e.setAttribute("lcp.size",Vt.size)),ei!=null&&ei.sources&&t.recordClsOnPageloadSpan&&ei.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,zt(n.node)))}function JD(e,t,n){n.forEach(([r,s])=>{const i=e[r];i!=null&&(typeof i=="number"&&i<OD||typeof i=="string")&&(t[s]=i)})}function ZD(e){const t=ga(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function QD(){return ba()&&Gt()?Rs("element",eF):()=>{}}const eF=({entries:e})=>{const t=Tt(),n=t?wt(t):void 0,r=n?Re(n).description:Le().getScopeData().transactionName;e.forEach(s=>{var h,p;const i=s;if(!i.identifier)return;const o=i.name,a=i.renderTime,c=i.loadTime,[l,d]=c?[at(c),"load-time"]:a?[at(a),"render-time"]:[lt(),"entry-emission"],u=o==="image-paint"?at(Math.max(0,(a??0)-(c??0))):0,f={[st]:"auto.ui.browser.elementtiming",[ur]:"ui.elementtiming",[jt]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":i.id,"element.type":((p=(h=i.element)==null?void 0:h.tagName)==null?void 0:p.toLowerCase())||"unknown","element.size":i.naturalWidth&&i.naturalHeight?`${i.naturalWidth}x${i.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":i.url||void 0,"element.identifier":i.identifier,"element.paint_type":o};vP({name:`element[${i.identifier}]`,attributes:f,startTime:l,onlyIfParent:!0},m=>{m.end(l+u)})})},tF=1e3;let Ev,qd,Gd;function dE(e){const t="dom";Kr(t,e),Yr(t,nF)}function nF(){if(!ge.document)return;const e=dn.bind(null,"dom"),t=wv(e,!0);ge.document.addEventListener("click",t,!1),ge.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,o;const s=(i=ge[n])==null?void 0:i.prototype;(o=s==null?void 0:s.hasOwnProperty)!=null&&o.call(s,"addEventListener")&&(Wt(s,"addEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=u[c]=u[c]||{refCount:0};if(!f.handler){const h=wv(e);f.handler=h,a.call(this,c,h,d)}f.refCount++}catch{}return a.call(this,c,l,d)}}),Wt(s,"removeEventListener",function(a){return function(c,l,d){if(c==="click"||c=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},f=u[c];f&&(f.refCount--,f.refCount<=0&&(a.call(this,c,f.handler,d),f.handler=void 0,delete u[c]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,l,d)}}))})}function rF(e){if(e.type!==qd)return!1;try{if(!e.target||e.target._sentryId!==Gd)return!1}catch{}return!0}function sF(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function wv(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=iF(n);if(sF(n.type,r))return;qt(n,"_sentryCaptured",!0),r&&!r._sentryId&&qt(r,"_sentryId",en());const s=n.type==="keypress"?"input":n.type;rF(n)||(e({event:n,name:s,global:t}),qd=n.type,Gd=r?r._sentryId:void 0),clearTimeout(Ev),Ev=ge.setTimeout(()=>{Gd=void 0,qd=void 0},tF)}}function iF(e){try{return e.target}catch{return null}}let Ha;function Dl(e){const t="history";Kr(t,e),Yr(t,oF)}function oF(){if(ge.addEventListener("popstate",()=>{const t=ge.location.href,n=Ha;if(Ha=t,n===t)return;dn("history",{from:n,to:t})}),!fL())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Ha,i=aF(String(r));if(Ha=i,s===i)return t.apply(this,n);dn("history",{from:s,to:i})}return t.apply(this,n)}}Wt(ge.history,"pushState",e),Wt(ge.history,"replaceState",e)}function aF(e){try{return new URL(e,ge.location.origin).toString()}catch{return e}}const pc={};function fE(e){const t=pc[e];if(t)return t;let n=ge[e];if(Fd(n))return pc[e]=n.bind(ge);const r=ge.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i!=null&&i[e]&&(n=i[e]),r.head.removeChild(s)}catch(s){xs&&J.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(pc[e]=n.bind(ge))}function cF(e){pc[e]=void 0}function Sa(...e){return fE("setTimeout")(...e)}const ds="__sentry_xhr_v3__";function hE(e){const t="xhr";Kr(t,e),Yr(t,lF)}function lF(){if(!ge.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,i=lt()*1e3,o=Qn(r[0])?r[0].toUpperCase():void 0,a=uF(r[1]);if(!o||!a)return t.apply(n,r);n[ds]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const l=n[ds];if(l&&n.readyState===4){try{l.status_code=n.status}catch{}const d={endTimestamp:lt()*1e3,startTimestamp:i,xhr:n,virtualError:s};dn("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(l,d,u){return c(),l.apply(d,u)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(l,d,u){const[f,h]=u,p=d[ds];return p&&Qn(f)&&Qn(h)&&(p.request_headers[f.toLowerCase()]=h),l.apply(d,u)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ds];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:lt()*1e3,xhr:n};return dn("xhr",i),t.apply(n,r)}})}function uF(e){if(Qn(e))return e;try{return e.toString()}catch{}}const dF=Symbol.for("sentry__originalRequestBody");function pE(e){return new URLSearchParams(e).toString()}function mE(e,t=J){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[pE(e)];if(!e)return[void 0]}catch(n){return xs&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return xs&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function gE(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][dF];return n!==void 0?n:void 0}}function vE(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return xs&&J.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}const Fu=[],mc=new Map,js=new Map,fF=60;function hF(){if(ba()&&Gt()){const t=pF();return()=>{t()}}return()=>{}}const Kd={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function pF(){return iE(mF)}const mF=({metric:e})=>{if(e.value==null)return;const t=at(e.value);if(t>fF)return;const n=e.entries.find(p=>p.duration===e.value&&Kd[p.name]);if(!n)return;const{interactionId:r}=n,s=Kd[n.name],i=at(Gt()+n.startTime),o=Tt(),a=o?wt(o):void 0,c=r!=null?mc.get(r):void 0,l=(c==null?void 0:c.span)||a,d=l?Re(l).description:Le().getScopeData().transactionName,u=(c==null?void 0:c.elementName)||zt(n.target),f={[st]:"auto.http.browser.inp",[ur]:`ui.interaction.${s}`,[qi]:n.duration},h=Dh({name:u,transaction:d,attributes:f,startTime:i});h&&(h.addEvent("inp",{[da]:"millisecond",[fa]:e.value}),h.end(i+t))};function gF(){const e=Object.keys(Kd);Wc()&&e.forEach(s=>{ge.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const i=s.target;if(!i)return;const o=zt(i),a=Math.round(s.timeStamp);if(js.set(a,o),js.size>50){const c=js.keys().next().value;c!==void 0&&js.delete(c)}}function n(s){const i=Math.round(s.startTime);let o=js.get(i);if(!o)for(let a=-5;a<=5;a++){const c=js.get(i+a);if(c){o=c;break}}return o||"<unknown>"}const r=({entries:s})=>{const i=Tt(),o=i&&wt(i);s.forEach(a=>{if(!TD(a))return;const c=a.interactionId;if(c==null||mc.has(c))return;const l=a.target?zt(a.target):n(a);if(Fu.length>10){const d=Fu.shift();mc.delete(d)}Fu.push(c),mc.set(c,{span:o,elementName:l})})};Rs("event",r),Rs("first-input",r)}const vF=40;function yF(e,t=fE("fetch")){let n=0,r=0;async function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw cF("fetch"),c}finally{n-=o,r--}}return fO(e,s,bh(e.bufferSize||vF))}const pn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_F=30,bF=50;function Yd(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?ks:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const SF=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,EF=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wF=/\((\S*)(?::(\d+))(?::(\d+))\)/,CF=/at (.+?) ?\(data:(.+?),/,TF=e=>{const t=e.match(CF);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=SF.exec(e);if(n){const[,s,i,o]=n;return Yd(s,ks,+i,+o)}const r=EF.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const a=wF.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[i,o]=yE(r[1]||ks,r[2]);return Yd(o,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},kF=[_F,TF],IF=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,xF=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,RF=e=>{const t=IF.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=xF.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||ks;return[s,r]=yE(s,r),Yd(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},AF=[bF,RF],MF=[kF,AF],PF=RS(...MF),yE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ks,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Va=1024,OF="Breadcrumbs",LF=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:OF,setup(n){t.console&&JO($F(n)),t.dom&&dE(FF(n,t.dom)),t.xhr&&hE(BF(n)),t.fetch&&L0(HF(n)),t.history&&Dl(VF(n)),t.sentry&&n.on("beforeSendEvent",DF(n))}}},NF=LF;function DF(e){return function(n){Ee()===e&&Vr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:as(n)},{event:n})}}function FF(e,t){return function(r){if(Ee()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Va&&(pn&&J.warn(`\`dom.maxStringLength\` cannot exceed ${Va}, but a value of ${a} was configured. Sentry will use ${Va} instead.`),a=Va),typeof o=="string"&&(o=[o]);try{const l=r.event,d=UF(l)?l.target:l;s=zt(d,{keyAttrs:o,maxStringLength:a}),i=DS(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),Vr(c,{event:r.event,name:r.name,global:r.global})}}function $F(e){return function(n){if(Ee()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:A0(n.level),message:gg(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gg(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Vr(r,{input:n.args,level:n.level})}}function BF(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ds];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:l}=i,d={method:o,url:a,status_code:c},u={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:O0(c)};e.emit("beforeOutgoingRequestBreadcrumb",f,u),Vr(f,u)}}function HF(e){return function(n){if(Ee()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),Vr(a,o)}else{const i=n.response,o={...n.fetchData,status_code:i==null?void 0:i.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i==null||i.status;const a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,type:"http",level:O0(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Vr(c,a)}}}function VF(e){return function(n){if(Ee()!==e)return;let r=n.from,s=n.to;const i=Ss(Pe.location.href);let o=r?Ss(r):void 0;const a=Ss(s);o!=null&&o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Vr({category:"navigation",data:{from:r,to:s}})}}function UF(e){return!!e&&!!e.target}const WF=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],jF="BrowserApiErrors",zF=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:jF,setupOnce(){t.setTimeout&&Wt(Pe,"setTimeout",Cv),t.setInterval&&Wt(Pe,"setInterval",Cv),t.requestAnimationFrame&&Wt(Pe,"requestAnimationFrame",GF),t.XMLHttpRequest&&"XMLHttpRequest"in Pe&&Wt(XMLHttpRequest.prototype,"send",KF);const n=t.eventTarget;n&&(Array.isArray(n)?n:WF).forEach(s=>YF(s,t))}}},qF=zF;function Cv(e){return function(...t){const n=t[0];return t[0]=Ri(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ar(e)}`}}),e.apply(this,t)}}function GF(e){return function(t){return e.apply(this,[Ri(t,{mechanism:{data:{handler:ar(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function KF(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Wt(n,s,function(i){const o={mechanism:{data:{handler:ar(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=ch(i);return a&&(o.mechanism.data.handler=ar(a)),Ri(i,o)})}),e.apply(this,t)}}function YF(e,t){var s,i;const r=(s=Pe[e])==null?void 0:s.prototype;(i=r==null?void 0:r.hasOwnProperty)!=null&&i.call(r,"addEventListener")&&(Wt(r,"addEventListener",function(o){return function(a,c,l){try{XF(c)&&(c.handleEvent=Ri(c.handleEvent,{mechanism:{data:{handler:ar(c),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&JF(this,a,c),o.apply(this,[a,Ri(c,{mechanism:{data:{handler:ar(c),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),l])}}),Wt(r,"removeEventListener",function(o){return function(a,c,l){try{const d=c.__sentry_wrapped__;d&&o.call(this,a,d,l)}catch{}return o.call(this,a,c,l)}}))}function XF(e){return typeof e.handleEvent=="function"}function JF(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const ZF=()=>({name:"BrowserSession",setupOnce(){if(typeof Pe.document>"u"){pn&&J.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Fg({ignoreDuration:!0}),$g(),Dl(({from:e,to:t})=>{e!==void 0&&e!==t&&(Fg({ignoreDuration:!0}),$g())})}}),QF="GlobalHandlers",e$=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:QF,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(n$(n),Tv("onerror")),t.onunhandledrejection&&(r$(n),Tv("onunhandledrejection"))}}},t$=e$;function n$(e){MS(t=>{const{stackParser:n,attachStacktrace:r}=_E();if(Ee()!==e||K0())return;const{msg:s,url:i,line:o,column:a,error:c}=t,l=o$(Mh(n,c||s,void 0,r,!1),i,o,a);l.level="error",f0(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function r$(e){PS(t=>{const{stackParser:n,attachStacktrace:r}=_E();if(Ee()!==e||K0())return;const s=s$(t),i=Ei(s)?i$(s):Mh(n,s,void 0,r,!0);i.level="error",f0(i,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function s$(e){if(Ei(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function i$(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function o$(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],l=r,d=n,u=a$(t)??Ls();return c.length===0&&c.push({colno:l,filename:u,function:ks,in_app:!0,lineno:d}),e}function Tv(e){pn&&J.log(`Global Handler attached: ${e}`)}function _E(){const e=Ee();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function a$(e){if(!(!Qn(e)||e.length===0))return e.startsWith("data:")?`<${Lr(e,!1)}>`:e}const c$=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Pe.navigator&&!Pe.location&&!Pe.document)return;const t=xh(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),l$="cause",u$=5,d$="LinkedErrors",f$=(e={})=>{const t=e.limit||u$,n=e.key||l$;return{name:d$,preprocessEvent(r,s,i){const o=i.getOptions();XO(Rh,o.stackParser,n,t,r,s)}}},h$=f$;function p$(){return m$()?(pn&&vr(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function m$(){var i;if(typeof Pe.window>"u")return!1;const e=Pe;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((i=t==null?void 0:t.runtime)!=null&&i.id))return!1;const n=Ls(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Pe===Pe.top&&r.some(o=>n.startsWith(`${o}://`)))}function bE(e){return[UO(),$O(),qF(),NF(),t$(),h$(),tL(),c$(),ZF()]}function g$(e={}){const t=!e.skipBrowserExtensionCheck&&p$();let n=e.defaultIntegrations==null?bE():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:UA(e.stackParser||PF),integrations:tO({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||yF};return wO(ZN,r)}const Ye=xe,Fh="sentryReplaySession",v$="replay_event",$h="Unable to send Replay",y$=3e5,_$=9e5,b$=5e3,S$=5500,E$=6e4,w$=5e3,C$=3,kv=15e4,Ua=5e3,T$=3e3,k$=300,Bh=2e7,I$=4999,x$=5e4,Iv=36e5;var R$=Object.defineProperty,A$=(e,t,n)=>t in e?R$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xv=(e,t,n)=>A$(e,typeof t!="symbol"?t+"":t,n),ut=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ut||{});function M$(e){return e.nodeType===e.ELEMENT_NODE}function wo(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function Co(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function P$(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function O$(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Yc(e){try{const t=e.rules||e.cssRules;return t?P$(Array.from(t,SE).join("")):null}catch{return null}}function L$(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],i=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}function SE(e){let t;if(D$(e))try{t=Yc(e.styleSheet)||O$(e)}catch{}else if(F$(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=L$(e)),r&&(n=N$(n)),r||s)return n}return t||e.cssText}function N$(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function D$(e){return"styleSheet"in e}function F$(e){return"selectorText"in e}class EE{constructor(){xv(this,"idNodeMap",new Map),xv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function $$(){return new EE}function Fl({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Ko({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Ai(e){return e.toLowerCase()}function Xd(e){return e.toUpperCase()}const Rv="__rrweb_original__";function B$(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const i=t.getImageData,o=Rv in i?i[Rv]:i;if(new Uint32Array(o.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function Hh(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ai(t):null}function Xc(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function wE(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return(s==null?void 0:s[1])??null}const Av={};function CE(e){const t=Av[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Av[e]=r.bind(window)}function Jd(...e){return CE("setTimeout")(...e)}function TE(...e){return CE("clearTimeout")(...e)}function kE(e){try{return e.contentDocument}catch{}}let H$=1;const V$=new RegExp("[^a-z0-9-_:]"),Yo=-2;function Vh(){return H$++}function U$(e){if(e instanceof HTMLFormElement)return"form";const t=Ai(e.tagName);return V$.test(t)?"div":t}function W$(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let zs,Mv;const j$=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,z$=/^(?:[a-z+]+:)?\/\//i,q$=/^www\..*/i,G$=/^(data:)([^,]*),(.*)/i;function K$(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const i=s.indexOf(":");if(i===-1){r.push(s);continue}const o=s.slice(0,i).trim();t.has(o)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Jc(e,t){return(e||"").replace(j$,(n,r,s,i,o,a)=>{const c=s||o||a,l=r||i||"";if(!c)return n;if(z$.test(c)||q$.test(c))return`url(${l}${c}${l})`;if(G$.test(c))return`url(${l}${c}${l})`;if(c[0]==="/")return`url(${l}${W$(t)+c}${l})`;const d=t.split("/"),u=c.split("/");d.pop();for(const f of u)f!=="."&&(f===".."?d.pop():d.push(f));return`url(${l}${d.join("/")}${l})`})}const Y$=/^[^ \t\n\r\u000c]+/,X$=/^[, \t\n\r\u000c]+/;function J$(e,t){if(t.trim()==="")return t;let n=0;function r(i){let o;const a=i.exec(t.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(X$),!(n>=t.length);){let i=r(Y$);if(i.slice(-1)===",")i=ti(e,i.substring(0,i.length-1)),s.push(i);else{let o="";i=ti(e,i);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const Pv=new WeakMap;function ti(e,t){return!t||t.trim()===""?t:$l(e,t)}function Z$(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function $l(e,t){let n=Pv.get(e);if(n||(n=e.createElement("a"),Pv.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function IE(e,t,n,r,s,i,o){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return ti(e,r);if(n==="xlink:href"&&r[0]!=="#")return ti(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return ti(e,r);if(n==="srcset")return J$(e,r);if(n==="style"){let a=Jc(r,$l(e));return o&&o.size>0&&(a=K$(a,o)),a}else if(t==="object"&&n==="data")return ti(e,r);return typeof i=="function"?i(n,r,s):r}function xE(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Q$(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const i=e.classList[s];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function eB(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function fs(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:fs(e.parentNode,t,n,r+1)}function ni(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(eB(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Mi(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const l=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(l))return!0}let a=-1,c=-1;if(i){if(c=fs(o,ni(r,s)),c<0)return!0;a=fs(o,ni(t,n),c>=0?c:1/0)}else{if(a=fs(o,ni(t,n)),a<0)return!1;c=fs(o,ni(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function tB(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=Jd(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{TE(a),s=!0,t()});return}const o="about:blank";if(r.location.href!==o||e.src===o||e.src==="")return Jd(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function nB(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const i=Jd(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{TE(i),r=!0,t()})}function rB(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:v,dataURLOptions:g={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M=!1,ignoreCSSAttributes:R}=t,E=sB(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ut.Document,childNodes:[],compatMode:e.compatMode}:{type:ut.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ut.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return oB(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:p,maskInputFn:v,dataURLOptions:g,inlineImages:y,recordCanvas:_,keepIframeSrcFn:S,newlyAddedElement:M,rootId:E,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,ignoreCSSAttributes:R});case e.TEXT_NODE:return iB(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:d,maskTextSelector:u,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:p,maskInputFn:v,rootId:E});case e.CDATA_SECTION_NODE:return{type:ut.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:ut.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function sB(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function iB(e,t){var g;const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:d}=t,u=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const h=u==="STYLE"?!0:void 0,p=u==="SCRIPT"?!0:void 0,m=u==="TEXTAREA"?!0:void 0;if(h&&f){try{e.nextSibling||e.previousSibling||(g=e.parentNode.sheet)!=null&&g.cssRules&&(f=Yc(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Jc(f,$l(t.doc))}p&&(f="SCRIPT_PLACEHOLDER");const v=Mi(e,r,i,s,o,n);if(!h&&!p&&!m&&f&&v&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||v)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),u==="OPTION"&&f){const y=Fl({type:null,tagName:u,maskInputOptions:c});f=Ko({isMasked:Mi(e,r,i,s,o,y),element:e,value:f,maskInputFn:l})}return{type:ut.Text,textContent:f||"",isStyle:h,rootId:d}}function oB(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:d={},inlineImages:u,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:p=!1,rootId:m,maskTextClass:v,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:_,ignoreCSSAttributes:S}=t,M=Q$(e,r,s,i),R=U$(e);let E={};const C=e.attributes.length;for(let A=0;A<C;A++){const O=e.attributes[A];O.name&&!xE(R,O.name,O.value)&&(E[O.name]=IE(n,R,Ai(O.name),O.value,e,c,S))}if(R==="link"&&o){const A=Array.from(n.styleSheets).find(T=>T.href===e.href);let O=null;A&&(O=Yc(A)),O&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=Jc(O,A.href))}if(R==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Yc(e.sheet);A&&(E._cssText=Jc(A,$l(n)))}if(R==="input"||R==="textarea"||R==="select"||R==="option"){const A=e,O=Hh(A),T=Xc(A,Xd(R),O),P=A.checked;if(O!=="submit"&&O!=="button"&&T){const N=Mi(A,v,y,g,_,Fl({type:O,tagName:Xd(R),maskInputOptions:a}));E.value=Ko({isMasked:N,element:A,value:T,maskInputFn:l})}P&&(E.checked=P)}if(R==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),R==="canvas"&&f){if(e.__context==="2d")B$(e)||(E.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const A=e.toDataURL(d.type,d.quality),O=n.createElement("canvas");O.width=e.width,O.height=e.height;const T=O.toDataURL(d.type,d.quality);A!==T&&(E.rr_dataURL=A)}}if(R==="img"&&u){zs||(zs=n.createElement("canvas"),Mv=zs.getContext("2d"));const A=e,O=A.currentSrc||A.getAttribute("src")||"<unknown-src>",T=A.crossOrigin,P=()=>{A.removeEventListener("load",P);try{zs.width=A.naturalWidth,zs.height=A.naturalHeight,Mv.drawImage(A,0,0),E.rr_dataURL=zs.toDataURL(d.type,d.quality)}catch(N){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P);return}else console.warn(`Cannot inline img src=${O}! Error: ${N}`)}A.crossOrigin==="anonymous"&&(T?E.crossOrigin=T:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?P():A.addEventListener("load",P)}if((R==="audio"||R==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),p||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),M){const{width:A,height:O}=e.getBoundingClientRect();E={class:E.class,rr_width:`${A}px`,rr_height:`${O}px`}}R==="iframe"&&!h(E.src)&&(!M&&!kE(e)&&(E.rr_src=E.src),delete E.src);let I;try{customElements.get(R)&&(I=!0)}catch{}return{type:ut.Element,tagName:R,attributes:E,childNodes:[],isSVG:Z$(e)||void 0,needBlock:M,rootId:m,isCustom:I}}function Ge(e){return e==null?"":e.toLowerCase()}function aB(e,t){if(t.comment&&e.type===ut.Comment)return!0;if(e.type===ut.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&wE(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ge(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ge(e.attributes.name)==="application-name"||Ge(e.attributes.rel)==="icon"||Ge(e.attributes.rel)==="apple-touch-icon"||Ge(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ge(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ge(e.attributes.property).match(/^(og|twitter|fb):/)||Ge(e.attributes.name).match(/^(og|twitter):/)||Ge(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ge(e.attributes.name)==="robots"||Ge(e.attributes.name)==="googlebot"||Ge(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ge(e.attributes.name)==="author"||Ge(e.attributes.name)==="generator"||Ge(e.attributes.name)==="framework"||Ge(e.attributes.name)==="publisher"||Ge(e.attributes.name)==="progid"||Ge(e.attributes.property).match(/^article:/)||Ge(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ge(e.attributes.name)==="google-site-verification"||Ge(e.attributes.name)==="yandex-verification"||Ge(e.attributes.name)==="csrf-token"||Ge(e.attributes.name)==="p:domain_verify"||Ge(e.attributes.name)==="verify-v1"||Ge(e.attributes.name)==="verification"||Ge(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ri(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:p={},maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_={},inlineImages:S=!1,recordCanvas:M=!1,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C=5e3,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:N}=t;let{preserveWhiteSpace:z=!0}=t;const X=rB(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,dataURLOptions:_,inlineImages:S,recordCanvas:M,keepIframeSrcFn:T,newlyAddedElement:P,ignoreCSSAttributes:N});if(!X)return console.warn(e,"not serialized"),null;let q;r.hasNode(e)?q=r.getId(e):aB(X,y)||!z&&X.type===ut.Text&&!X.isStyle&&!X.textContent.replace(/^\s+|\s+$/gm,"").length?q=Yo:q=Vh();const D=Object.assign(X,{id:q});if(r.add(e,D),q===Yo)return null;R&&R(e);let re=!f;if(D.type===ut.Element){re=re&&!D.needBlock;const U=e.shadowRoot;U&&Co(U)&&(D.isShadowHost=!0)}if((D.type===ut.Document||D.type===ut.Element)&&re){y.headWhitespace&&D.type===ut.Element&&D.tagName==="head"&&(z=!1);const U={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:f,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N},ie=e.childNodes?Array.from(e.childNodes):[];for(const ae of ie){const ue=ri(ae,U);ue&&D.childNodes.push(ue)}if(M$(e)&&e.shadowRoot)for(const ae of Array.from(e.shadowRoot.childNodes)){const ue=ri(ae,U);ue&&(Co(e.shadowRoot)&&(ue.isShadow=!0),D.childNodes.push(ue))}}if(e.parentNode&&wo(e.parentNode)&&Co(e.parentNode)&&(D.isShadow=!0),D.type===ut.Element&&D.tagName==="iframe"&&!D.needBlock&&tB(e,()=>{const U=kE(e);if(U&&E){const ie=ri(U,{doc:U,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});ie&&E(e,ie)}},C),D.type===ut.Element&&D.tagName==="img"&&!e.complete&&D.needBlock){const U=e,ie=()=>{if(U.isConnected&&!U.complete&&I)try{const ae=U.getBoundingClientRect();ae.width>0&&ae.height>0&&I(U,D,ae)}catch{}U.removeEventListener("load",ie)};U.isConnected&&U.addEventListener("load",ie)}return D.type===ut.Element&&D.tagName==="link"&&typeof D.attributes.rel=="string"&&(D.attributes.rel==="stylesheet"||D.attributes.rel==="preload"&&typeof D.attributes.href=="string"&&wE(D.attributes.href)==="css")&&nB(e,()=>{if(A){const U=ri(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:S,recordCanvas:M,preserveWhiteSpace:z,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:C,onStylesheetLoad:A,stylesheetLoadTimeout:O,keepIframeSrcFn:T,ignoreCSSAttributes:N});U&&A(e,U)}},O),D.type===ut.Element&&delete D.needBlock,D}function cB(e,t){const{mirror:n=new EE,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:d=null,inlineStylesheet:u=!0,inlineImages:f=!1,recordCanvas:h=!1,maskAllInputs:p=!1,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:T=new Set([])}=t||{};return ri(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:u,maskInputOptions:p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:p===!1?{}:p,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:_,inlineImages:f,recordCanvas:h,preserveWhiteSpace:S,onSerialize:M,onIframeLoad:R,iframeLoadTimeout:E,onBlockedImageLoad:C,onStylesheetLoad:I,stylesheetLoadTimeout:A,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:T})}function Ft(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Xs=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Ov={map:{},getId(){return console.error(Xs),-1},getNode(){return console.error(Xs),null},removeNodeFromMap(){console.error(Xs)},has(){return console.error(Xs),!1},reset(){console.error(Xs)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ov=new Proxy(Ov,{get(e,t,n){return t==="map"&&console.error(Xs),Reflect.get(e,t,n)}}));function Xo(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(mB(r),r=null),s=o,e.apply(c,i)):!r&&n.trailing!==!1&&(r=Bl(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function RE(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(o){Bl(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>RE(e,t,i||{},!0)}function Uh(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let Zc=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Zc=()=>new Date().getTime());function AE(e){var n,r,s,i,o,a;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((s=t==null?void 0:t.body)==null?void 0:s.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((o=(i=t==null?void 0:t.body)==null?void 0:i.parentElement)==null?void 0:o.scrollTop)||((a=t==null?void 0:t.body)==null?void 0:a.scrollTop)||0}}function ME(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function PE(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function OE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Yt(e,t,n,r,s){if(!e)return!1;const i=OE(e);if(!i)return!1;const o=ni(t,n);if(!s){const l=r&&i.matches(r);return o(i)&&!l}const a=fs(i,o);let c=-1;return a<0?!1:(r&&(c=fs(i,ni(null,r))),a>-1&&c<0?!0:a<c)}function lB(e,t){return t.getId(e)!==-1}function $u(e,t){return t.getId(e)===Yo}function LE(e,t){if(wo(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?LE(e.parentNode,t):!0:!0}function Zd(e){return!!e.changedTouches}function uB(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function NE(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function DE(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Qd(e){return!!(e!=null&&e.shadowRoot)}class dB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function FE(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function fB(e){let t=e,n;for(;n=FE(t);)t=n;return t}function hB(e){const t=e.ownerDocument;if(!t)return!1;const n=fB(e);return t.contains(n)}function $E(e){const t=e.ownerDocument;return t?t.contains(e)||hB(e):!1}const Lv={};function Wh(e){const t=Lv[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(s)}catch{}return Lv[e]=r.bind(window)}function pB(...e){return Wh("requestAnimationFrame")(...e)}function Bl(...e){return Wh("setTimeout")(...e)}function mB(...e){return Wh("clearTimeout")(...e)}var Te=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Te||{}),_e=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(_e||{}),Ot=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ot||{}),qn=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(qn||{}),Js=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Js||{});function jh(e){try{return e.contentDocument}catch{}}function gB(e){try{return e.contentWindow}catch{}}function Nv(e){return"__ln"in e}class vB{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Nv(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Nv(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const Dv=(e,t)=>`${e}@${t}`;class yB{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new vB,s=c=>{let l=c,d=Yo;for(;d===Yo;)l=l&&l.nextSibling,d=l&&this.mirror.getId(l);return d},i=c=>{if(!c.parentNode||!$E(c))return;const l=wo(c.parentNode)?this.mirror.getId(FE(c)):this.mirror.getId(c.parentNode),d=s(c);if(l===-1||d===-1)return r.addNode(c);const u=ri(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{NE(f,this.mirror)&&!Yt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),DE(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Qd(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(f,h)=>{Yt(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(f,h),f.contentWindow&&this.canvasManager.addWindow(f.contentWindow),this.shadowDomManager.observeAttachShadow(f))},onStylesheetLoad:(f,h)=>{this.stylesheetManager.attachLinkElement(f,h)},onBlockedImageLoad:(f,h,{width:p,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:h.id,attributes:{style:{width:`${p}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});u&&(t.push({parentId:l,nextId:d,node:u}),n.add(u.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)Fv(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!$v(this.droppedSet,c)&&!Fv(this.removes,c,this.mirror)||$v(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const l=this.mirror.getId(o.value.parentNode),d=s(o.value);l!==-1&&d!==-1&&(c=o)}if(!c){let l=r.tail;for(;l;){const d=l;if(l=l.previous,d){const u=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(u!==-1){c=d;break}else{const h=d.value;if(h.parentNode&&h.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const p=h.parentNode.host;if(this.mirror.getId(p)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:l}=c;if(typeof l.style=="string"){const d=JSON.stringify(c.styleDiff),u=JSON.stringify(c._unchangedStyles);d.length<l.style.length&&(d+u).split("var(").length===l.style.split("var(").length&&(l.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:l}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!$u(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Yt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,OE(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const o=Hh(n),a=n.tagName;s=Xc(n,a,o);const c=Fl({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),l=Mi(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Ko({isMasked:l,element:n,value:s,maskInputFn:this.maskInputFn})}if(Yt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!jh(n))r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!xE(n.tagName,r)&&(i.attributes[r]=IE(this.doc,Ai(n.tagName),Ai(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");t.oldValue&&o.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),l=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||l!==o.style.getPropertyPriority(a)?l===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,l]:i._unchangedStyles[a]=[c,l]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(Yt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=wo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Yt(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||$u(n,this.mirror)||!lB(n,this.mirror)||(this.addedSet.has(n)?(ef(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||LE(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Dv(r,s)]?ef(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:wo(t.target)&&Co(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if($u(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Dv(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Yt(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),Qd(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ef(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>ef(e,r))}function Fv(e,t,n){return e.length===0?!1:_B(e,t,n)}function _B(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function $v(e,t){return e.size===0?!1:BE(e,t)}function BE(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:BE(e,n):!1}let To;function bB(e){To=e}function SB(){To=void 0}const Ae=e=>To?(...n)=>{try{return e(...n)}catch(r){if(To&&To(r)===!0)return()=>{};throw r}}:e,si=[];function Ea(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function HE(e,t){var o,a;const n=new yB;si.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=(a=(o=window==null?void 0:window.Zone)==null?void 0:o.__symbol__)==null?void 0:a.call(o,"MutationObserver");s&&window[s]&&(r=window[s]);const i=new r(Ae(c=>{e.onMutation&&e.onMutation(c)===!1||n.processMutations.bind(n)(c)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function EB({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let o=[],a;const c=Xo(Ae(u=>{const f=Date.now()-a;e(o.map(h=>(h.timeOffset-=f,h)),u),o=[],a=null}),i),l=Ae(Xo(Ae(u=>{const f=Ea(u),{clientX:h,clientY:p}=Zd(u)?u.changedTouches[0]:u;a||(a=Zc()),o.push({x:h,y:p,id:r.getId(f),timeOffset:Zc()-a}),c(typeof DragEvent<"u"&&u instanceof DragEvent?_e.Drag:u instanceof MouseEvent?_e.MouseMove:_e.TouchMove)}),s,{trailing:!1})),d=[Ft("mousemove",l,n),Ft("touchmove",l,n),Ft("drag",l,n)];return Ae(()=>{d.forEach(u=>u())})}function wB({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let l=null;const d=u=>f=>{const h=Ea(f);if(Yt(h,r,s,i,!0))return;let p=null,m=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=qn.Mouse;break;case"touch":p=qn.Touch;break;case"pen":p=qn.Pen;break}p===qn.Touch?Ot[u]===Ot.MouseDown?m="TouchStart":Ot[u]===Ot.MouseUp&&(m="TouchEnd"):qn.Pen}else Zd(f)&&(p=qn.Touch);p!==null?(l=p,(m.startsWith("Touch")&&p===qn.Touch||m.startsWith("Mouse")&&p===qn.Mouse)&&(p=null)):Ot[u]===Ot.Click&&(p=l,l=null);const v=Zd(f)?f.changedTouches[0]:f;if(!v)return;const g=n.getId(h),{clientX:y,clientY:_}=v;Ae(e)({type:Ot[m],id:g,x:y,y:_,...p!==null&&{pointerType:p}})};return Object.keys(Ot).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&a[u]!==!1).forEach(u=>{let f=Ai(u);const h=d(u);if(window.PointerEvent)switch(Ot[u]){case Ot.MouseDown:case Ot.MouseUp:f=f.replace("mouse","pointer");break;case Ot.TouchStart:case Ot.TouchEnd:return}c.push(Ft(f,h,t))}),Ae(()=>{c.forEach(u=>u())})}function VE({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=Ae(Xo(Ae(c=>{const l=Ea(c);if(!l||Yt(l,r,s,i,!0))return;const d=n.getId(l);if(l===t&&t.defaultView){const u=AE(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Ft("scroll",a,t)}function CB({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Ae(Xo(Ae(()=>{const i=ME(),o=PE();(n!==i||r!==o)&&(e({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return Ft("resize",s,t)}const TB=["INPUT","TEXTAREA","SELECT"],Bv=new WeakMap;function kB({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:d,userTriggeredOnInput:u,maskTextClass:f,unmaskTextClass:h,maskTextSelector:p,unmaskTextSelector:m}){function v(E){let C=Ea(E);const I=E.isTrusted,A=C&&Xd(C.tagName);if(A==="OPTION"&&(C=C.parentElement),!C||!A||TB.indexOf(A)<0||Yt(C,r,s,i,!0))return;const O=C;if(O.classList.contains(o)||a&&O.matches(a))return;const T=Hh(C);let P=Xc(O,A,T),N=!1;const z=Fl({maskInputOptions:c,tagName:A,type:T}),X=Mi(C,f,p,h,m,z);(T==="radio"||T==="checkbox")&&(N=C.checked),P=Ko({isMasked:X,element:C,value:P,maskInputFn:l}),g(C,u?{text:P,isChecked:N,userTriggered:I}:{text:P,isChecked:N});const q=C.name;T==="radio"&&q&&N&&t.querySelectorAll(`input[type="radio"][name="${q}"]`).forEach(D=>{if(D!==C){const re=Ko({isMasked:X,element:D,value:Xc(D,A,T),maskInputFn:l});g(D,u?{text:re,isChecked:!N,userTriggered:!1}:{text:re,isChecked:!N})}})}function g(E,C){const I=Bv.get(E);if(!I||I.text!==C.text||I.isChecked!==C.isChecked){Bv.set(E,C);const A=n.getId(E);Ae(e)({...C,id:A})}}const _=(d.input==="last"?["change"]:["input","change"]).map(E=>Ft(E,Ae(v),t)),S=t.defaultView;if(!S)return()=>{_.forEach(E=>E())};const M=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),R=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return M&&M.set&&_.push(...R.map(E=>RE(E[0],E[1],{set(){Ae(v)({target:this,isTrusted:!1})}},!1,S))),Ae(()=>{_.forEach(E=>E())})}function Qc(e){const t=[];function n(r,s){if(Wa("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Wa("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Wa("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Wa("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(e,t)}function Rr(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function IB({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Ae((d,u,f)=>{const[h,p]=f,{id:m,styleId:v}=Rr(u,t,n.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,adds:[{rule:h,index:p}]}),d.apply(u,f)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Rr(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,removes:[{index:h}]}),d.apply(u,f)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Rr(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replace:h}),d.apply(u,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ae((d,u,f)=>{const[h]=f,{id:p,styleId:m}=Rr(u,t,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&e({id:p,styleId:m,replaceSync:h}),d.apply(u,f)})}));const c={};ja("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ja("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ja("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ja("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach(([d,u])=>{l[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=new Proxy(l[d].insertRule,{apply:Ae((f,h,p)=>{const[m,v]=p,{id:g,styleId:y}=Rr(h.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,adds:[{rule:m,index:[...Qc(h),v||0]}]}),f.apply(h,p)})}),u.prototype.deleteRule=new Proxy(l[d].deleteRule,{apply:Ae((f,h,p)=>{const[m]=p,{id:v,styleId:g}=Rr(h.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,removes:[{index:[...Qc(h),m]}]}),f.apply(h,p)})})}),Ae(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,u])=>{u.prototype.insertRule=l[d].insertRule,u.prototype.deleteRule=l[d].deleteRule})})}function UE({mirror:e,stylesheetManager:t},n){var o,a,c;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?(o=n.defaultView)==null?void 0:o.Document:(c=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:c.ShadowRoot,i=s!=null&&s.prototype?Object.getOwnPropertyDescriptor(s==null?void 0:s.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var l;return(l=i.get)==null?void 0:l.call(this)},set(l){var u;const d=(u=i.set)==null?void 0:u.call(this,l);if(r!==null&&r!==-1)try{t.adoptStyleSheets(l,r)}catch{}return d}}),Ae(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function xB({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ae((a,c,l)=>{var m;const[d,u,f]=l;if(n.has(d))return i.apply(c,[d,u,f]);const{id:h,styleId:p}=Rr((m=c.parentRule)==null?void 0:m.parentStyleSheet,t,r.styleMirror);return(h&&h!==-1||p&&p!==-1)&&e({id:h,styleId:p,set:{property:d,value:u,priority:f},index:Qc(c.parentRule)}),a.apply(c,l)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Ae((a,c,l)=>{var h;const[d]=l;if(n.has(d))return o.apply(c,[d]);const{id:u,styleId:f}=Rr((h=c.parentRule)==null?void 0:h.parentStyleSheet,t,r.styleMirror);return(u&&u!==-1||f&&f!==-1)&&e({id:u,styleId:f,remove:{property:d},index:Qc(c.parentRule)}),a.apply(c,l)})}),Ae(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function RB({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=Ae(l=>Xo(Ae(d=>{const u=Ea(d);if(!u||Yt(u,t,n,r,!0))return;const{currentTime:f,volume:h,muted:p,playbackRate:m}=u;e({type:l,id:s.getId(u),currentTime:f,volume:h,muted:p,playbackRate:m})}),i.media||500)),c=[Ft("play",a(Js.Play),o),Ft("pause",a(Js.Pause),o),Ft("seeked",a(Js.Seeked),o),Ft("volumechange",a(Js.VolumeChange),o),Ft("ratechange",a(Js.RateChange),o)];return Ae(()=>{c.forEach(l=>l())})}function AB({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,l,d){const u=new i(c,l,d);return s.set(u,{family:c,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),u};const o=Uh(t.fonts,"add",function(a){return function(c){return Bl(Ae(()=>{const l=s.get(c);l&&(e(l),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),Ae(()=>{r.forEach(a=>a())})}function MB(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=Ae(()=>{const l=t.getSelection();if(!l||a&&(l!=null&&l.isCollapsed))return;a=l.isCollapsed||!1;const d=[],u=l.rangeCount||0;for(let f=0;f<u;f++){const h=l.getRangeAt(f),{startContainer:p,startOffset:m,endContainer:v,endOffset:g}=h;Yt(p,r,s,i,!0)||Yt(v,r,s,i,!0)||d.push({start:n.getId(p),startOffset:m,end:n.getId(v),endOffset:g})}o({ranges:d})});return c(),Ft("selectionchange",c)}function PB({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Uh(n.customElements,"define",function(s){return function(i,o,a){try{t({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function OB(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=HE(e,e.doc));const s=EB(e),i=wB(e),o=VE(e),a=CB(e,{win:n}),c=kB(e),l=RB(e);let d=()=>{},u=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(d=IB(e,{win:n}),u=UE(e,e.doc),f=xB(e,{win:n}),e.collectFonts&&(h=AB(e)));const p=MB(e),m=PB(e),v=[];for(const g of e.plugins)v.push(g.observer(g.callback,n,g.options));return Ae(()=>{si.forEach(g=>g.reset()),r==null||r.disconnect(),s(),i(),o(),a(),c(),l(),d(),u(),f(),h(),p(),m(),v.forEach(g=>g())})}function Wa(e){return typeof window[e]<"u"}function ja(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tf{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const i=r||this.getIdToRemoteIdMap(t),o=s||this.getRemoteIdToIdMap(t);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class LB{constructor(){this.crossOriginIframeMirror=new tf(Vh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class NB{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tf(Vh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var s,i;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(i=this.loadListener)==null||i.call(this,t);const r=jh(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case Te.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:Te.IncrementalSnapshot,data:{source:_e.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Te.Meta:case Te.Load:case Te.DomContentLoaded:return!1;case Te.Plugin:return n;case Te.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case Te.IncrementalSnapshot:switch(n.data.source){case _e.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const i=this.crossOriginIframeRootIdMap.get(t);i&&this.patchRootIdOnNode(s.node,i)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.Drag:case _e.TouchMove:case _e.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case _e.ViewportResize:return!1;case _e.MediaInteraction:case _e.MouseInteraction:case _e.Scroll:case _e.CanvasMutation:case _e.Input:return this.replaceIds(n.data,t,["id"]),n;case _e.StyleSheetRule:case _e.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case _e.Font:return n;case _e.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case _e.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ut.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class DB{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class FB{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Co(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=HE({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(VE({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Bl(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(UE({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=jh(t),r=gB(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Uh(t.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&$E(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$B=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var za=0;za<Hv.length;za++)$B[Hv.charCodeAt(za)]=za;class Vv{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class BB{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new dB,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of t){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:SE(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class HB{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,pB(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let it,el;var ay;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((ay=e.contentWindow)==null?void 0:ay.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const gn=$$();function nr(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:u=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:p=!0,maskAllInputs:m,maskInputOptions:v,slimDOMOptions:g,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,maxCanvasSize:M=null,packFn:R,sampling:E={},dataURLOptions:C={},mousemoveWait:I,recordDOM:A=!0,recordCanvas:O=!1,recordCrossOriginIframes:T=!1,recordAfter:P=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:N=!1,collectFonts:z=!1,inlineImages:X=!1,plugins:q,keepIframeSrcFn:D=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:U,onMutation:ie,getCanvasManager:ae}=e;bB(U);const ue=T?window.parent===window:!0;let Ce=!1;if(!ue)try{window.parent.document&&(Ce=!1)}catch{Ce=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!Ce)return()=>{};I!==void 0&&E.mousemove===void 0&&(E.mousemove=I),gn.reset();const Ne=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},He=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};uB();let x,W=0;const K=H=>{for(const V of q||[])V.eventProcessor&&(H=V.eventProcessor(H));return R&&!Ce&&(H=R(H)),H};it=(H,V)=>{var Q;const Z=H;if(Z.timestamp=Zc(),(Q=si[0])!=null&&Q.isFrozen()&&Z.type!==Te.FullSnapshot&&!(Z.type===Te.IncrementalSnapshot&&Z.data.source===_e.Mutation)&&si.forEach(oe=>oe.unfreeze()),ue)t==null||t(K(Z),V);else if(Ce){const oe={type:"rrweb",event:K(Z),origin:window.location.origin,isCheckout:V};window.parent.postMessage(oe,"*")}if(Z.type===Te.FullSnapshot)x=Z,W=0;else if(Z.type===Te.IncrementalSnapshot){if(Z.data.source===_e.Mutation&&Z.data.isAttachIframe)return;W++;const oe=r&&W>=r,te=n&&x&&Z.timestamp-x.timestamp>n;(oe||te)&&Y(!0)}};const ne=H=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Mutation,...H}})},ye=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.Scroll,...H}}),b=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),w=H=>it({type:Te.IncrementalSnapshot,data:{source:_e.AdoptedStyleSheet,...H}}),k=new BB({mutationCb:ne,adoptedStyleSheetCb:w}),L=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new LB:new NB({mirror:gn,mutationCb:ne,stylesheetManager:k,recordCrossOriginIframes:T,wrappedEmit:it});for(const H of q||[])H.getMirror&&H.getMirror({nodeMirror:gn,crossOriginIframeMirror:L.crossOriginIframeMirror,crossOriginIframeStyleMirror:L.crossOriginIframeStyleMirror});const $=new HB,F=UB(ae,{mirror:gn,win:window,mutationCb:H=>it({type:Te.IncrementalSnapshot,data:{source:_e.CanvasMutation,...H}}),recordCanvas:O,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:M,sampling:E.canvas,dataURLOptions:C,errorHandler:U}),G=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new DB:new FB({mutationCb:ne,scrollCb:ye,bypassOptions:{onMutation:ie,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskInputOptions:Ne,dataURLOptions:C,maskAttributeFn:y,maskTextFn:S,maskInputFn:_,recordCanvas:O,inlineImages:X,sampling:E,slimDOMOptions:He,iframeManager:L,stylesheetManager:k,canvasManager:F,keepIframeSrcFn:D,processedNodeManager:$,ignoreCSSAttributes:re},mirror:gn}),Y=(H=!1)=>{if(!A)return;it({type:Te.Meta,data:{href:window.location.href,width:PE(),height:ME()}},H),k.reset(),G.init(),si.forEach(Z=>Z.lock());const V=cB(document,{mirror:gn,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:p,maskAllInputs:Ne,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,slimDOM:He,dataURLOptions:C,recordCanvas:O,inlineImages:X,onSerialize:Z=>{NE(Z,gn)&&L.addIframe(Z),DE(Z,gn)&&k.trackLinkElement(Z),Qd(Z)&&G.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,Q)=>{L.attachIframe(Z,Q),Z.contentWindow&&F.addWindow(Z.contentWindow),G.observeAttachShadow(Z)},onStylesheetLoad:(Z,Q)=>{k.attachLinkElement(Z,Q)},onBlockedImageLoad:(Z,Q,{width:oe,height:te})=>{ne({adds:[],removes:[],texts:[],attributes:[{id:Q.id,attributes:{style:{width:`${oe}px`,height:`${te}px`}}}]})},keepIframeSrcFn:D,ignoreCSSAttributes:re});if(!V)return console.warn("Failed to snapshot the document");it({type:Te.FullSnapshot,data:{node:V,initialOffset:AE(window)}}),si.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&k.adoptStyleSheets(document.adoptedStyleSheets,gn.getId(document))};el=Y;try{const H=[],V=Q=>{var oe;return Ae(OB)({onMutation:ie,mutationCb:ne,mousemoveCb:(te,Ie)=>it({type:Te.IncrementalSnapshot,data:{source:Ie,positions:te}}),mouseInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MouseInteraction,...te}}),scrollCb:ye,viewportResizeCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.ViewportResize,...te}}),inputCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Input,...te}}),mediaInteractionCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.MediaInteraction,...te}}),styleSheetRuleCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleSheetRule,...te}}),styleDeclarationCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.StyleDeclaration,...te}}),canvasMutationCb:b,fontCb:te=>it({type:Te.IncrementalSnapshot,data:{source:_e.Font,...te}}),selectionCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.Selection,...te}})},customElementCb:te=>{it({type:Te.IncrementalSnapshot,data:{source:_e.CustomElement,...te}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:d,unmaskTextClass:u,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:Ne,inlineStylesheet:p,sampling:E,recordDOM:A,recordCanvas:O,inlineImages:X,userTriggeredOnInput:N,collectFonts:z,doc:Q,maskAttributeFn:y,maskInputFn:_,maskTextFn:S,keepIframeSrcFn:D,blockSelector:i,unblockSelector:o,slimDOMOptions:He,dataURLOptions:C,mirror:gn,iframeManager:L,stylesheetManager:k,shadowDomManager:G,processedNodeManager:$,canvasManager:F,ignoreCSSAttributes:re,plugins:((oe=q==null?void 0:q.filter(te=>te.observer))==null?void 0:oe.map(te=>({observer:te.observer,options:te.options,callback:Ie=>it({type:Te.Plugin,data:{plugin:te.name,payload:Ie}})})))||[]},{})};L.addLoadListener(Q=>{try{H.push(V(Q.contentDocument))}catch(oe){console.warn(oe)}});const Z=()=>{Y(),H.push(V(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(H.push(Ft("DOMContentLoaded",()=>{it({type:Te.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Z()})),H.push(Ft("load",()=>{it({type:Te.Load,data:{}}),P==="load"&&Z()},window))),()=>{H.forEach(Q=>Q()),$.destroy(),el=void 0,SB()}}catch(H){console.warn(H)}}function VB(e){if(!el)throw new Error("please take full snapshot after start recording");el(e)}nr.mirror=gn;nr.takeFullSnapshot=VB;function UB(e,t){try{return e?e(t):new Vv}catch{return console.warn("Unable to initialize CanvasManager"),new Vv}}var Uv;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Uv||(Uv={}));const WB=3,jB=5;function zh(e){return e>9999999999?e:e*1e3}function Bu(e){return e>9999999999?e/1e3:e}function wa(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Te.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:vn(t,10,1e3)}}),t.category==="console")))}const zB="button,a";function WE(e){return e.closest(zB)||e}function jE(e){const t=zE(e);return!t||!(t instanceof Element)?t:WE(t)}function zE(e){return qB(e)?e.target:e}function qB(e){return typeof e=="object"&&!!e&&"target"in e}let Ar;function GB(e){return Ar||(Ar=[],KB()),Ar.push(e),()=>{const t=Ar?Ar.indexOf(e):-1;t>-1&&Ar.splice(t,1)}}function KB(){Wt(Ye,"open",function(e){return function(...t){if(Ar)try{Ar.forEach(n=>n())}catch{}return e.apply(Ye,t)}})}const YB=new Set([_e.Mutation,_e.StyleSheetRule,_e.StyleDeclaration,_e.AdoptedStyleSheet,_e.CanvasMutation,_e.Selection,_e.MediaInteraction]);function XB(e,t,n){e.handleClick(t,n)}class JB{constructor(t,n,r=wa){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=GB(()=>{this._lastMutation=Wv()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(QB(n,this._ignoreSelector)||!e5(t))return;const r={timestamp:Bu(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Bu(t)}registerScroll(t=Date.now()){this._lastScroll=Bu(t)}registerClick(t){const n=WE(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=Wv();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=t;if(i){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,l=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Ye.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:l,clickCount:o||1}};this._addBreadcrumbEvent(n,d);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Ye.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Sa(()=>this._checkClicks(),1e3)}}const ZB=["A","BUTTON","INPUT"];function QB(e,t){return!!(!ZB.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function e5(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Wv(){return Date.now()/1e3}function t5(e,t){try{if(!n5(t))return;const{source:n}=t.data;if(YB.has(n)&&e.registerMutation(t.timestamp),n===_e.Scroll&&e.registerScroll(t.timestamp),r5(t)){const{type:r,id:s}=t.data,i=nr.mirror.getNode(s);i instanceof HTMLElement&&r===Ot.Click&&e.registerClick(i)}}catch{}}function n5(e){return e.type===WB}function r5(e){return e.data.source===_e.MouseInteraction}function $n(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var qh=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(qh||{});const s5=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function i5(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(s5.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const o5=e=>t=>{if(!e.isEnabled())return;const n=a5(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&(s!=null&&s.target)&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&XB(e.clickDetector,n,jE(t.event)),wa(e,n)};function qE(e,t){const n=nr.mirror.getId(e),r=n&&nr.mirror.getNode(n),s=r&&nr.mirror.getMeta(r),i=s&&l5(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===qh.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:i5(i.attributes)}}:{}}}function a5(e){const{target:t,message:n}=c5(e);return $n({category:`ui.${e.name}`,...qE(t,n)})}function c5(e){const t=e.name==="click";let n,r=null;try{r=t?jE(e.event):zE(e.event),n=zt(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function l5(e){return e.type===qh.Element}function u5(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=d5(t);n&&wa(e,n)}function d5(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||f5(o)||!i)return null;const a=t||r||s,c=i.length===1;if(!a&&c)return null;const l=zt(o,{maxStringLength:200})||"<unknown>",d=qE(o,l);return $n({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function f5(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const h5={resource:y5,paint:g5,navigation:v5};function Hu(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function p5(e){return e.map(m5).filter(Boolean)}function m5(e){const t=h5[e.entryType];return t?t(e):null}function Pi(e){return((Gt()||Ye.performance.timeOrigin)+e)/1e3}function g5(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=Pi(s);return{type:n,name:r,start:i,end:i+t,data:void 0}}function v5(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:d,loadEventEnd:u,redirectCount:f,startTime:h,transferSize:p,type:m}=e;return s===0?null:{type:`${t}.${m}`,start:Pi(h),end:Pi(i),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:u,domComplete:i,redirectCount:f}}}function y5(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Pi(i),end:Pi(s),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function _5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return Gh(e,"largest-contentful-paint",n)}function b5(e){return e.sources!==void 0}function S5(e){const t=[],n=[];for(const r of e.entries)if(b5(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=nr.mirror.getId(i.node);o&&s.push(o)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Gh(e,"cumulative-layout-shift",n,t)}function E5(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Gh(e,"interaction-to-next-paint",n)}function Gh(e,t,n,r){const s=e.value,i=e.rating,o=Pi(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>nr.mirror.getId(a)):void 0,attributions:r}}}function w5(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Rs(s,n))}),r.push(Nh(Hu(_5,e)),Lh(Hu(S5,e)),iE(Hu(E5,e))),()=>{r.forEach(s=>s())}}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,C5='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function T5(){const e=new Blob([C5]);return URL.createObjectURL(e)}const jv=["log","warn","error"],gc="[Replay] ";function Vu(e,t="info"){Vr({category:"console",data:{logger:"replay"},level:t,message:`${gc}${e}`},{level:t})}function k5(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return he?(jv.forEach(r=>{n[r]=(...s)=>{J[r](gc,...s),t&&Vu(s.join(""),A0(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),J.error(gc,r),e?Pl(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Vu(r,"error")},n.infoTick=(...r)=>{J.log(gc,...r),t&&setTimeout(()=>Vu(r[0]),0)}):jv.forEach(r=>{n[r]=()=>{}}),n}const pe=k5();class Kh extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Bh}.`)}}class GE{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Bh)throw new Kh;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?zh(t):null}}class I5{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){he&&pe.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){he&&pe.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class x5{constructor(t){this._worker=new I5(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=zh(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Bh?Promise.reject(new Kh):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{he&&pe.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class R5{constructor(t){this._fallback=new GE,this._compression=new x5(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){he&&pe.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of t)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){he&&pe.exception(i,"Failed to add events when switching buffers.")}}}function A5({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=M5(t);if(n)return n}return he&&pe.log("Using simple buffer"),new GE}function M5(e){try{const t=e||P5();if(!t)return;he&&pe.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new R5(n)}catch(t){he&&pe.exception(t,"Failed to create compression worker")}}function P5(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?T5():""}function Yh(){try{return"sessionStorage"in Ye&&!!Ye.sessionStorage}catch{return!1}}function O5(e){L5(),e.session=void 0}function L5(){if(Yh())try{Ye.sessionStorage.removeItem(Fh)}catch{}}function KE(e){return e===void 0?!1:Math.random()<e}function Hl(e){if(Yh())try{Ye.sessionStorage.setItem(Fh,JSON.stringify(e))}catch{}}function YE(e){const t=Date.now(),n=e.id||en(),r=e.started||t,s=e.lastActivity||t,i=e.segmentId||0,o=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a,dirty:c}}function N5(e,t){return KE(e)?"session":t?"buffer":!1}function zv({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=N5(e,t),i=YE({sampled:s,previousSessionId:r});return n&&Hl(i),i}function D5(){if(!Yh())return null;try{const e=Ye.sessionStorage.getItem(Fh);if(!e)return null;const t=JSON.parse(e);return he&&pe.infoTick("Loading existing session"),YE(t)}catch{return null}}function nf(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function XE(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return nf(e.started,t,r)||nf(e.lastActivity,n,r)}function JE(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!XE(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Uu({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&D5();return s?JE(s,{sessionIdleExpire:e,maxReplayDuration:t})?(he&&pe.infoTick("Session in sessionStorage is expired, creating new one..."),zv(r,{previousSessionId:s.id})):s:(he&&pe.infoTick("Creating new session"),zv(r,{previousSessionId:n}))}function F5(e){return e.type===Te.Custom}function Xh(e,t,n){return QE(e,t)?(ZE(e,t,n),!0):!1}function $5(e,t,n){return QE(e,t)?ZE(e,t,n):Promise.resolve(null)}async function ZE(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=e.getOptions(),o=B5(t,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof Kh,a=o?"addEventSizeExceeded":"addEvent",c=Ee();if(c){const l=o?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(l,"replay")}if(o&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:a})}}function QE(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=zh(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(he&&pe.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function B5(e,t){try{if(typeof t=="function"&&F5(e))return t(e)}catch(n){return he&&pe.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function Jh(e){return!e.type}function rf(e){return e.type==="transaction"}function H5(e){return e.type==="replay_event"}function qv(e){return e.type==="feedback"}function V5(e){return(t,n)=>{if(!e.isEnabled()||!Jh(t)&&!rf(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(rf(t)){U5(e,t);return}W5(e,t)}}}function U5(e,t){var r,s;const n=e.getContext();(s=(r=t.contexts)==null?void 0:r.trace)!=null&&s.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function W5(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Sa(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function j5(e){return t=>{!e.isEnabled()||!Jh(t)||z5(e,t)}}function z5(e,t){var r,s,i;const n=(i=(s=(r=t.exception)==null?void 0:r.values)==null?void 0:s[0])==null?void 0:i.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const o=$n({category:"replay.hydrate-error",data:{url:Ls()}});wa(e,o)}}function q5(e){const t=Ee();t&&t.on("beforeAddBreadcrumb",n=>G5(e,n))}function G5(e,t){if(!e.isEnabled()||!ew(t))return;const n=K5(t);n&&wa(e,n)}function K5(e){return!ew(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Y5(e):$n(e)}function Y5(e){var s;const t=(s=e.data)==null?void 0:s.arguments;if(!Array.isArray(t)||t.length===0)return $n(e);let n=!1;const r=t.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Ua?(n=!0,`${i.slice(0,Ua)}`):i;if(typeof i=="object")try{const o=vn(i,7);return JSON.stringify(o).length>Ua?(n=!0,`${JSON.stringify(o,null,2).slice(0,Ua)}`):o}catch{}return i});return $n({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function ew(e){return!!e.category}function X5(e,t){var n,r,s;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((s=t.originalException)!=null&&s.__rrweb__)}function tw(){const e=Le().getPropagationContext().dsc;e&&delete e.replay_id;const t=Tt();if(t){const n=dr(t);delete n.replay_id}}function J5(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function Z5(e,t){return e.recordingMode!=="buffer"||t.message===$h||!t.exception||t.type?!1:KE(e.getOptions().errorSampleRate)}function Q5(e){return Object.assign((t,n)=>{var o;if(!e.isEnabled()||e.isPaused())return t;if(H5(t))return delete t.breadcrumbs,t;if(!Jh(t)&&!rf(t)&&!qv(t))return t;if(!e.checkAndHandleExpiredSession())return tw(),t;if(qv(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),J5(e,t),t;if(X5(t,n)&&!e.getOptions()._experiments.captureExceptions)return he&&pe.log("Ignoring error from rrweb internals",t),null;const s=Z5(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&((o=e.session)==null?void 0:o.sampled)==="buffer"){const a=e.session;a.dirty=!0,e.getOptions().stickySession&&Hl(a)}return t},{id:"Replay"})}function Vl(e,t){return t.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=e.throttledAddEvent({type:Te.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});return typeof a=="string"?Promise.resolve(null):a})}function e2(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function t2(e){return t=>{if(!e.isEnabled())return;const n=e2(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Vl(e,[n]),!1)))}}function n2(e,t){return he&&e.getOptions()._experiments.traceInternals?!1:xO(t,Ee())}function nw(e,t){e.isEnabled()&&t!==null&&(n2(e,t.name)||e.addUpdate(()=>(Vl(e,[t]),!0)))}function Ul(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=pE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function rw(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function tl(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function sw(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:i,statusCode:o,request:a,response:c}}}function Jo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Dr(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=r2(n);return r.body=s,i!=null&&i.length&&(r._meta={warnings:i}),r}function sf(e,t){return Object.entries(e).reduce((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n},{})}function r2(e){if(!e||typeof e!="string")return{body:e};const t=e.length>kv,n=s2(e);if(t){const r=e.slice(0,kv);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function s2(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function nl(e,t){const n=i2(e);return er(n,t)}function i2(e,t=Ye.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Ye.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function o2(e,t,n){try{const r=await c2(e,t,n),s=sw("resource.fetch",r);nw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture fetch breadcrumb")}}function a2(e,t){const{input:n,response:r}=t,s=n?gE(n):void 0,i=Ul(s),o=r?rw(r.headers.get("content-length")):void 0;i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}async function c2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:l,response_body_size:d}=e.data,u=nl(o,n.networkDetailAllowUrls)&&!nl(o,n.networkDetailDenyUrls),f=u?l2(n,t.input,l):Jo(l),h=await u2(u,n,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:f,response:h}}function l2({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?h2(n,t):{};if(!e)return Dr(s,r,void 0);const i=gE(n),[o,a]=mE(i,pe),c=Dr(s,r,o);return a?tl(c,a):c}async function u2(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Jo(s);const i=r?iw(r.headers,n):{};if(!r||!t&&s!==void 0)return Dr(i,s,void 0);const[o,a]=await f2(r),c=d2(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?tl(c,a):c}function d2(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e!=null&&e.length&&n===void 0?Ul(e):n;return r?t?Dr(s,i,e):Dr(s,i,void 0):Jo(i)}catch(i){return he&&pe.exception(i,"Failed to serialize response body"),Dr(s,n,void 0)}}async function f2(e){const t=p2(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await m2(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(he&&pe.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(he&&pe.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function iw(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function h2(e,t){return e.length===1&&typeof e[0]!="string"?Gv(e[0],t):e.length===2?Gv(e[1],t):{}}function Gv(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?iw(n,t):Array.isArray(n)?{}:sf(n,t):{}}function p2(e){try{return e.clone()}catch(t){he&&pe.exception(t,"Failed to clone response body")}}function m2(e){return new Promise((t,n)=>{const r=Sa(()=>n(new Error("Timeout while trying to read response body")),500);g2(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function g2(e){return await e.text()}async function v2(e,t,n){try{const r=_2(e,t,n),s=sw("resource.xhr",r);nw(n.replay,s)}catch(r){he&&pe.exception(r,"Failed to capture xhr breadcrumb")}}function y2(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Ul(r),i=n.getResponseHeader("content-length")?rw(n.getResponseHeader("content-length")):E2(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),i!==void 0&&(e.data.response_body_size=i)}function _2(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:l,status_code:d=0,request_body_size:u,response_body_size:f}=e.data;if(!c)return null;if(!a||!nl(c,n.networkDetailAllowUrls)||nl(c,n.networkDetailDenyUrls)){const R=Jo(u),E=Jo(f);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:R,response:E}}const h=a[ds],p=h?sf(h.request_headers,n.networkRequestHeaders):{},m=sf(vE(a),n.networkResponseHeaders),[v,g]=n.networkCaptureBodies?mE(o,pe):[void 0],[y,_]=n.networkCaptureBodies?b2(a):[void 0],S=Dr(p,u,v),M=Dr(m,f,y);return{startTimestamp:s,endTimestamp:i,url:c,method:l,statusCode:d,request:g?tl(S,g):S,response:_?tl(M,_):M}}function b2(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return S2(e.response,e.responseType)}catch(n){t.push(n)}return he&&pe.warn("Failed to get xhr response body",...t),[void 0]}function S2(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return he&&pe.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return he&&pe.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function E2(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ul(n)}catch{return}}function w2(e){const t=Ee();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",(c,l)=>C2(a,c,l))}catch{}}function C2(e,t,n){if(t.data)try{T2(t)&&I2(n)&&(y2(t,n),v2(t,n,e)),k2(t)&&x2(n)&&(a2(t,n),o2(t,n,e))}catch(r){he&&pe.exception(r,"Error when enriching network breadcrumb")}}function T2(e){return e.category==="xhr"}function k2(e){return e.category==="fetch"}function I2(e){return e==null?void 0:e.xhr}function x2(e){return e==null?void 0:e.response}function R2(e){const t=Ee();dE(o5(e)),Dl(t2(e)),q5(e),w2(e);const n=Q5(e);KP(n),t&&(t.on("beforeSendEvent",j5(e)),t.on("afterSendEvent",V5(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{var o;const i=e.getSessionId();s!=null&&s.includeReplay&&e.isEnabled()&&i&&((o=r.contexts)!=null&&o.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=i)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function A2(e){try{return Promise.all(Vl(e,[M2(Ye.performance.memory)]))}catch{return[]}}function M2(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function P2(e,t,n){return LO(e,t,{...n,setTimeoutImpl:Sa})}const an=xe.navigator;function O2(){return/iPhone|iPad|iPod/i.test((an==null?void 0:an.userAgent)??"")||/Macintosh/i.test((an==null?void 0:an.userAgent)??"")&&(an!=null&&an.maxTouchPoints)&&(an==null?void 0:an.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function L2(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){he&&pe.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&t5(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Xh(e,n,s))return!0;if(!s)return!1;const i=e.session;if(D2(e,s),e.recordingMode==="buffer"&&i&&e.eventBuffer&&!i.dirty){const o=e.eventBuffer.getEarliestTimestamp();o&&(he&&pe.log(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,e.getOptions().stickySession&&Hl(i))}return i!=null&&i.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function N2(e){const t=e.getOptions();return{type:Te.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function D2(e,t){!t||!e.session||e.session.segmentId!==0||Xh(e,N2(e),!1)}function F2(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function $2(e,t,n,r){return Jr(i0(e,mh(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function B2({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
`;if(typeof e=="string")n=`${r}${e}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function H2({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:s};e.emit("preprocessEvent",r,i);const o=await d0(e.getOptions(),r,i,t,e,rn());if(!o)return null;e.emit("postprocessEvent",o,i),o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:l,settings:d}=(a==null?void 0:a.sdk)||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:l||"0.0.0",settings:d},o}async function V2({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=B2({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:d}=r,u=Ee(),f=Le(),h=u==null?void 0:u.getTransport(),p=u==null?void 0:u.getDsn();if(!u||!h||!p||!i.sampled)return Promise.resolve({});const m={type:v$,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},v=await H2({scope:f,client:u,replayId:t,event:m});if(!v)return u.recordDroppedEvent("event_processor","replay"),he&&pe.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const g=$2(v,o,p,u.getOptions().tunnel);let y;try{y=await h.send(g)}catch(S){const M=new Error($h);try{M.cause=S}catch{}throw M}if(typeof y.statusCode=="number"&&(y.statusCode<200||y.statusCode>=300))throw new ow(y.statusCode);const _=S0({},y);if(b0(_,"replay"))throw new Zh(_);return y}class ow extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Zh extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function aw(e,t={count:0,interval:w$}){const{recordingData:n,onError:r}=e;if(n.length)try{return await V2(e),!0}catch(s){if(s instanceof ow||s instanceof Zh)throw s;if(jP("Replays",{_retryCount:t.count}),r&&r(s),t.count>=C$){const i=new Error(`${$h} - max retries exceeded`);try{i.cause=s}catch{}throw i}return t.interval*=++t.count,new Promise((i,o)=>{Sa(async()=>{try{await aw(e,t),i(!0)}catch(a){o(a)}},t.interval)})}}const cw="__THROTTLED",U2="__SKIPPED";function W2(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((l,d)=>{d<c&&r.delete(d)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=t){const d=o;return o=!0,d?U2:cw}o=!1;const l=r.get(c)||0;return r.set(c,l+1),e(...a)}}class j2{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:y$,sessionIdleExpire:_$},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=P2(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=W2((o,a)=>$5(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(T$,r),timeout:r,scrollTimeout:k$,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new JB(this,i)),he){const o=t._experiments;pe.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}this._handleVisibilityChange=()=>{Ye.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const o=$n({category:"ui.blur"});this._doChangeToBackgroundTasks(o)},this._handleWindowFocus=()=>{const o=$n({category:"ui.focus"});this._doChangeToForegroundTasks(o)},this._handleKeyboardEvent=o=>{u5(this,o)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){he&&pe.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){he&&pe.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",he&&pe.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){he&&pe.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Uu({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){he&&pe.log("Buffering is in progress, call `flush()` to save the replay");return}he&&pe.infoTick("Starting replay in buffer mode");const t=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=nr({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:E$}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:L2(this),...O2(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{he&&pe.log(`Stopping Replay${n?` triggered by ${n}`:""}`),tw(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,O5(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),he&&pe.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),he&&pe.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();he&&pe.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){if(this._lastActivity&&nf(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${Ye.location.pathname}${Ye.location.hash}${Ye.location.search}`,n=`${Ye.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===cw){const s=$n({category:"replay.throttled"});this.addUpdate(()=>!Xh(this,{type:jB,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Tt(),n=t&&wt(t),s=(n&&Re(n).data||{})[jt];if(!(!n||!s||!["route","custom"].includes(s)))return Re(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=A5({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Uu({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return JE(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{Ye.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ye.addEventListener("blur",this._handleWindowBlur),Ye.addEventListener("focus",this._handleWindowFocus),Ye.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(R2(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=w5(this)}_removeListeners(){try{Ye.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ye.removeEventListener("blur",this._handleWindowBlur),Ye.removeEventListener("focus",this._handleWindowFocus),Ye.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||XE(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){he&&pe.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:Te.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=p5(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(Vl(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){he&&pe.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await A2(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await aw({replayId:t,recordingData:o,segmentId:i,eventContext:s,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const s=Ee();if(s){const i=r instanceof Zh?"ratelimit_backoff":"send_error";s.recordDroppedEvent(i,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){he&&pe.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){he&&pe.log(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&he&&pe.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(l){this.handleException(l)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Hl(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(a=>{const c=F2(a.target),l=n.join(",");return c==null?void 0:c.matches(l)}))return!1;const r=t.length,s=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,o=s&&r>s;if(r>i||o){const a=$n({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(a)}return o?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function io(e,t){return[...e,...t].join(",")}function z2({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const i=["base","iframe[srcdoc]:not([src])"],o=io(e,[".sentry-mask","[data-sentry-mask]"]),a=io(t,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:io(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:io(r,[]),ignoreSelector:io(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function q2({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const Kv='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',G2=["content-length","content-type","accept"],K2=Symbol.for("sentry__originalRequestBody");let Yv=!1,Xv=!1;function Y2(){if(typeof Request>"u"||Xv)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return(r==null?void 0:r.body)!=null&&(s[K2]=r.body),s};t.prototype=e.prototype,xe.Request=t,Xv=!0}catch{}}const X2=e=>new J2(e);class J2{constructor({flushMinDelay:t=b$,flushMaxDelay:n=S$,minReplayDuration:r=I$,maxReplayDuration:s=Iv,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:l=!0,maskAllInputs:d=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:f=750,mutationLimit:h=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:S=[],mask:M=[],maskAttributes:R=["title","placeholder","aria-label"],unmask:E=[],block:C=[],unblock:I=[],ignore:A=[],maskFn:O,beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z=!1}={}){this.name="Replay";const X=z2({mask:M,unmask:E,block:C,unblock:I,ignore:A});if(this._recordingOptions={maskAllInputs:d,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(q,D,re)=>q2({maskAttributes:R,maskAllText:l,privacyOptions:X,key:q,value:D,el:re}),...X,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:q=>{try{q.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,x$),maxReplayDuration:Math.min(s,Iv),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:u,maskAllInputs:d,maskAllText:l,mutationBreadcrumbLimit:f,mutationLimit:h,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:v,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:Jv(_),networkResponseHeaders:Jv(S),beforeAddRecordingEvent:T,beforeErrorSampling:P,onError:N,attachRawBodyFromRequest:z,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Kv}`:Kv,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Wc())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Yv}set _isInitialized(t){Yv=t}afterAllSetup(t){!Wc()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&Y2(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=Z2(this._initialOptions,t);this._replay=new j2({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function Z2(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=Is(n.replaysSessionSampleRate),i=Is(n.replaysOnErrorSampleRate);return s==null&&i==null&&vr(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function Jv(e){return[...G2,...e.map(t=>t.toLowerCase())]}function Q2(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function lw(e){try{return new URL(e,Pe.location.origin).href}catch{return}}function e3(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function uw(e){try{return new Headers(e)}catch{return}}const Zv=new WeakMap,Wu=new Map,dw={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function t3(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:l}={...dw,...t},d=typeof i=="function"?i:p=>!0,u=p=>n3(p,a),f={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const v=Wu.get(m.span_id);v&&(m.timestamp=v/1e3,Wu.delete(m.span_id))}}),p)),s&&mL(p=>{if(p.response){const m=Zv.get(p.response);m&&p.endTimestamp&&Wu.set(m,p.endTimestamp)}}),L0(p=>{const m=iL(p,d,u,f,{propagateTraceparent:h,onRequestSpanEnd:l});if(p.response&&p.fetchData.__span&&Zv.set(p.response,p.fetchData.__span),m){const v=lw(p.fetchData.url),g=v?Ss(v).host:void 0;m.setAttributes({"http.url":v?Lr(v):void 0,"server.address":g}),o&&Qv(m),c==null||c(m,{headers:p.headers})}})),r&&hE(p=>{var v;const m=r3(p,d,u,f,h,l);m&&(o&&Qv(m),c==null||c(m,{headers:uw((v=p.xhr.__sentry_xhr_v3__)==null?void 0:v.request_headers)}))})}function Qv(e){const{url:t}=Re(e).data;if(!t||typeof t!="string")return;const n=Rs("resource",({entries:r})=>{r.forEach(s=>{e3(s)&&s.name.endsWith(t)&&(e.setAttributes(uE(s)),setTimeout(n))})})}function n3(e,t){const n=Ls();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return t?er(r.toString(),t)||i&&er(r.pathname,t):i}else{const r=!!e.match(/^\/(?!\/)/);return t?er(e,t):r}}function r3(e,t,n,r,s,i){const o=e.xhr,a=o==null?void 0:o[ds];if(!o||o.__sentry_own_request__||!a)return;const{url:c,method:l}=a,d=fn()&&t(c);if(e.endTimestamp&&d){const g=o.__sentry_xhr_span_id__;if(!g)return;const y=r[g];y&&a.status_code!==void 0&&(WS(y,a.status_code),y.end(),i==null||i(y,{headers:uw(vE(o)),error:e.error}),delete r[g]);return}const u=lw(c),f=Ss(u||c),h=Lr(IO(c)),p=!!Tt(),m=d&&p?Hr({name:`${l} ${h}`,attributes:{url:Lr(c),type:"xhr","http.method":l,"http.url":u?Lr(u):void 0,"server.address":f==null?void 0:f.host,[st]:"auto.http.browser",[ur]:"http.client",...(f==null?void 0:f.search)&&{"http.query":f==null?void 0:f.search},...(f==null?void 0:f.hash)&&{"http.fragment":f==null?void 0:f.hash}}}):new Br;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(c)&&s3(o,fn()&&p?m:void 0,s);const v=Ee();return v&&v.emit("beforeOutgoingRequestSpan",m,e),m}function s3(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:i}=R0({span:t,propagateTraceparent:n});r&&i3(e,r,s,i)}function i3(e,t,n,r){var i;const s=(i=e.__sentry_xhr_v3__)==null?void 0:i.request_headers;if(!(s!=null&&s["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(s!=null&&s.traceparent)&&e.setRequestHeader("traceparent",r),n){const o=s==null?void 0:s.baggage;(!o||!Q2(o))&&e.setRequestHeader("baggage",n)}}catch{}}function o3(){Pe.document?Pe.document.addEventListener("visibilitychange",()=>{const e=Tt();if(!e)return;const t=wt(e);if(Pe.document.hidden&&t){const n="cancelled",{op:r,status:s}=Re(t);pn&&J.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ht,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):pn&&J.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const a3=3600,fw="sentry_previous_trace",c3="sentry.previous_trace";function l3(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?f3():void 0;e.on("spanStart",o=>{if(wt(o)!==o)return;const a=Le().getPropagationContext();s=u3(s,o,a),r&&d3(s)});let i=!0;n&&e.on("beforeSampling",o=>{if(!s)return;const a=Le(),c=a.getPropagationContext();if(i&&c.parentSpanId){i=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(of(s.spanContext))},sampleRand:s.sampleRand}),o.parentSampled=of(s.spanContext),o.parentSampleRate=s.sampleRate,o.spanAttributes={...o.spanAttributes,[US]:s.sampleRate}})}function u3(e,t,n){const r=Re(t);function s(){var a,c;try{return Number((a=n.dsc)==null?void 0:a.sample_rate)??Number((c=r.data)==null?void 0:c[lh])}catch{return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return i;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=a3&&(pn&&J.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[mM]:"previous_trace"}}),t.setAttribute(c3,`${o.traceId}-${o.spanId}-${of(o)?1:0}`)),i)}function d3(e){try{Pe.sessionStorage.setItem(fw,JSON.stringify(e))}catch(t){pn&&J.warn("Could not store previous trace in sessionStorage",t)}}function f3(){var e;try{const t=(e=Pe.sessionStorage)==null?void 0:e.getItem(fw);return JSON.parse(t)}catch{return}}function of(e){return e.traceFlags===1}const h3="BrowserTracing",p3={...ic,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...dw},ey=(e={})=>{const t={name:void 0,source:void 0},n=Pe.document,{enableInp:r,enableElementTiming:s,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:u,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:p,traceFetch:m,traceXHR:v,trackFetchStreamPerformance:g,shouldCreateSpanForRequest:y,enableHTTPTimings:_,ignoreResourceSpans:S,ignorePerformanceApiSpans:M,instrumentPageLoad:R,instrumentNavigation:E,detectRedirects:C,linkPreviousTrace:I,consistentTraceSampling:A,enableReportPageLoaded:O,onRequestSpanStart:T,onRequestSpanEnd:P}={...p3,...e};let N,z,X;function q(D,re,U=!0){const ie=re.op==="pageload",ae=re.name,ue=d?d(re):re,Ce=ue.attributes||{};if(ae!==ue.name&&(Ce[jt]="custom",ue.attributes=Ce),!U){const x=Ns();Hr({...ue,startTime:x}).end(x);return}t.name=ue.name,t.source=Ce[jt];const Ne=u0(ue,{idleTimeout:u,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:ie,beforeSpanEnd:x=>{N==null||N(),VD(x,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:M}),ny(D,void 0);const W=Le(),K=W.getPropagationContext();W.setPropagationContext({...K,traceId:Ne.spanContext().traceId,sampled:Xr(Ne),dsc:dr(x)}),ie&&(X=void 0)},trimIdleSpanEndTimestamp:!O});ie&&O&&(X=Ne),ny(D,Ne);function He(){n&&["interactive","complete"].includes(n.readyState)&&D.emit("idleSpanEnableAutoFinish",Ne)}ie&&!O&&n&&(n.addEventListener("readystatechange",()=>{He()}),He())}return{name:h3,setup(D){if(jM(),N=LD({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:l||!1,client:D}),r&&hF(),s&&QD(),o&&xe.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?DD():i&&ND(),a&&FD(),C&&n){const U=()=>{z=lt()};addEventListener("click",U,{capture:!0}),addEventListener("keydown",U,{capture:!0,passive:!0})}function re(){const U=Zo(D);U&&!Re(U).timestamp&&(pn&&J.log(`[Tracing] Finishing current active span with op: ${Re(U).op}`),U.setAttribute(jo,"cancelled"),U.end())}D.on("startNavigationSpan",(U,ie)=>{if(Ee()!==D)return;if(ie!=null&&ie.isRedirect){pn&&J.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),q(D,{op:"navigation.redirect",...U},!1);return}z=void 0,re(),rn().setPropagationContext({traceId:lr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:tr()});const ae=Le();ae.setPropagationContext({traceId:lr(),sampleRand:Math.random(),propagationSpanId:fn()?void 0:tr()}),ae.setSDKProcessingMetadata({normalizedRequest:void 0}),q(D,{op:"navigation",...U,parentSpan:null,forceTransaction:!0})}),D.on("startPageLoadSpan",(U,ie={})=>{if(Ee()!==D)return;re();const ae=ie.sentryTrace||ty("sentry-trace"),ue=ie.baggage||ty("baggage"),Ce=NM(ae,ue),Ne=Le();Ne.setPropagationContext(Ce),fn()||(Ne.getPropagationContext().propagationSpanId=tr()),Ne.setSDKProcessingMetadata({normalizedRequest:xh()}),q(D,{op:"pageload",...U})}),D.on("endPageloadSpan",()=>{O&&X&&(X.setAttribute(jo,"reportPageLoaded"),X.end())})},afterAllSetup(D){let re=Ls();if(I!=="off"&&l3(D,{linkPreviousTrace:I,consistentTraceSampling:A}),Pe.location){if(R){const U=Gt();m3(D,{name:Pe.location.pathname,startTime:U?U/1e3:void 0,attributes:{[jt]:"url",[st]:"auto.pageload.browser"}})}E&&Dl(({to:U,from:ie})=>{if(ie===void 0&&(re==null?void 0:re.indexOf(U))!==-1){re=void 0;return}re=void 0;const ae=Eh(U),ue=Zo(D),Ce=ue&&C&&v3(ue,z);hw(D,{name:(ae==null?void 0:ae.pathname)||Pe.location.pathname,attributes:{[jt]:"url",[st]:"auto.navigation.browser"}},{url:U,isRedirect:Ce})})}p&&o3(),a&&g3(D,u,f,h,t),r&&gF(),t3(D,{traceFetch:m,traceXHR:v,trackFetchStreamPerformance:g,tracePropagationTargets:D.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_,onRequestSpanStart:T,onRequestSpanEnd:P})}}};function m3(e,t,n){e.emit("startPageLoadSpan",t,n),Le().setTransactionName(t.name);const r=Zo(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function hw(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const i=Le();return i.setTransactionName(t.name),r&&!s&&i.setSDKProcessingMetadata({normalizedRequest:{...xh(),url:r}}),Zo(e)}function ty(e){const t=Pe.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function g3(e,t,n,r,s){const i=Pe.document;let o;const a=()=>{const c="ui.action.click",l=Zo(e);if(l){const d=Re(l).op;if(["navigation","pageload"].includes(d)){pn&&J.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(jo,"interactionInterrupted"),o.end(),o=void 0),!s.name){pn&&J.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}o=u0({name:s.name,op:c,attributes:{[jt]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};i&&addEventListener("click",a,{capture:!0})}const pw="_sentry_idleSpan";function Zo(e){return e[pw]}function ny(e,t){qt(e,pw,t)}const ry=1.5;function v3(e,t){const n=Re(e),r=Ns(),s=n.start_timestamp;return!(r-s>ry||t&&r-t<=ry)}const mw=["activate","mount"],gw=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,y3=/(?:^|[-_])(\w)/g,_3=e=>e.replace(y3,t=>t.toUpperCase()).replace(/[-_]/g,""),b3="<Root>",ju="<Anonymous>",S3=(e,t)=>e.repeat(t),ko=(e,t)=>{if(!e)return ju;if(e.$root===e)return b3;if(!e.$options)return ju;const n=e.$options;let r=n.name||n._componentTag||n.__name;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${_3(r)}>`:ju)+(s&&t!==!1?` at ${s}`:"")},E3=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return`
found in
${t.map((s,i)=>`${(i===0?"---> ":S3(" ",5+i*2))+(Array.isArray(s)?`${ko(s[0])}... (${s[1]} recursive calls)`:ko(s))}`).join(`
`)}`}return`
(found in ${ko(e)})`},w3=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,s,i)=>{var l;const o=ko(s,!1),a=s?E3(s):"",c={componentName:o,lifecycleHook:i,trace:a};if((t==null?void 0:t.attachProps)!==!1&&s&&((l=s.$options)!=null&&l.propsData?c.propsData=s.$options.propsData:s.$props&&(c.propsData=s.$props)),setTimeout(()=>{Pl(r,{captureContext:{contexts:{vue:c}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,s,i);else throw r}},sy="ui.vue",C3={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function zu(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{var r;(r=e.$root)!=null&&r.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function T3(e,t){function n(s){return s.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(s=>n(t)===n(s))}const k3=(e={})=>{const t=(e.hooks||[]).concat(mw).filter((s,i,o)=>o.indexOf(s)===i),n={},r=e.timeout||2e3;for(const s of t){const i=C3[s];if(!i){gw&&J.warn(`Unknown hook: ${s}`);continue}for(const o of i)n[o]=function(){var f;const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Hr({name:"Application Render",op:`${sy}.render`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0}),zu(this,lt(),r));const c=ko(this,!1);if(!(a||(Array.isArray(e.trackComponents)?T3(e.trackComponents,c):e.trackComponents))){zu(this,lt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const d=o===i[0],u=((f=this.$root)==null?void 0:f.$_sentryRootComponentSpan)||Tt();if(d){if(u){const h=this.$_sentryComponentSpans[s];h&&h.end(),this.$_sentryComponentSpans[s]=Hr({name:`Vue ${c}`,op:`${sy}.${s}`,attributes:{[st]:"auto.ui.vue"},onlyIfParent:!0})}}else{const h=this.$_sentryComponentSpans[s];if(!h)return;h.end(),zu(this,lt(),r)}}}return n},I3=xe,x3={Vue:I3.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:mw,timeout:2e3,trackComponents:!1}},R3="Vue",A3=(e={})=>({name:R3,setup(t){const n={...x3,...t.getOptions(),...e};if(!n.Vue&&!n.app){vr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(s=>iy(s,n)):n.Vue&&iy(n.Vue,n)}}),iy=(e,t)=>{var n;gw&&((n=e._instance)==null?void 0:n.isMounted)===!0&&vr(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&w3(e,t),fn(t)&&e.mixin(k3(t.tracingOptions))};function M3(e={}){const t={defaultIntegrations:[...bE(),A3()],...e};return x0(t,"vue"),g$(t)}function P3(e,t,n){let r=!1;e.onError(s=>Pl(s,{mechanism:{handled:!1}})),e.beforeEach((s,i,o)=>{const a=r?void 0:O3(),c={};for(const u of Object.keys(s.params))c[`url.path.parameter.${u}`]=s.params[u],c[`params.${u}`]=s.params[u];for(const u of Object.keys(s.query)){const f=s.query[u];f&&(c[`query.${u}`]=f)}let l=s.path,d="url";if(s.name&&t.routeLabel!=="path")l=s.name.toString(),d="custom";else if(s.matched.length>0){const u=s.matched.length-1;l=s.matched[u].path,d="route"}Le().setTransactionName(l),t.instrumentPageLoad&&a&&(Re(a).data[jt]!=="custom"&&(a.updateName(l),a.setAttribute(jt,d)),a.setAttributes({...c,[st]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!a&&n({name:l,op:"navigation",attributes:{...c,[st]:"auto.navigation.vue",[jt]:d}}),o&&o()})}function O3(){const e=Tt(),t=e&&wt(e);return t&&Re(t).op==="pageload"?t:void 0}function L3(e={}){if(!e.router)return ey(e);const t=ey({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),P3(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{hw(o,c)})}}}const N3=yb(),Xi=BC(OA);let is=null;M3({app:Xi,dsn:"https://2f8e5e4ec986c6077d3798ba9f683fdd@o4510762489151488.ingest.us.sentry.io/4510762503438336",sendDefaultPii:!0,integrations:[L3({router:El}),X2({maskAllText:!1,blockAllMedia:!1}),is=HN({autoInject:!1,colorScheme:"system",showBranding:!1,showName:!0,showEmail:!0,isNameRequired:!1,isEmailRequired:!1,useSentryUser:{name:"username",email:"email"},themeDark:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"},themeLight:{submitBackground:"#6200EA",submitBackgroundHover:"#7C4DFF"}})],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/kv-service\.(houlang\.cloud|wuyuan\.dev)/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,enableLogs:!0,beforeSend(e){return e}});kS().then(e=>{qP({id:e,username:e}),zP("fingerprint",e),console.log("Sentry 用户标识已设置:",e)}).catch(e=>{console.warn("设置 Sentry 用户标识失败:",e)});window.openSentryFeedback=()=>{try{if(!is)return console.warn("Sentry Feedback integration 未初始化"),!1;if(typeof is.createWidget=="function"){const e=is.createWidget();if(e&&typeof e.open=="function")return e.open(),console.log("Sentry Feedback 对话框已打开"),!0}return typeof is.openDialog=="function"?(is.openDialog(),console.log("Sentry Feedback 对话框已打开"),!0):(console.warn("无法找到打开 Feedback 的方法"),console.log("可用方法:",Object.keys(is)),!1)}catch(e){return console.error("打开 Sentry Feedback 时出错:",e),!1}};window.startSentryReplay=()=>{try{const e=Ee();if(!e)return console.warn("Sentry 客户端未初始化"),!1;const n=(e.getOptions().integrations||[]).find(r=>r&&r.name==="Replay");return n&&typeof n.start=="function"?(n.start(),console.log("Sentry Replay 已手动启动"),!0):(console.warn("无法找到 Sentry Replay integration"),!1)}catch(e){return console.error("启动 Sentry Replay 时出错:",e),!1}};dx(Xi);Xi.use(Ys);Xi.use(N3);Xi.component("GlobalMessage",nS);Xi.mount("#app");document.readyState==="complete"?oy():window.addEventListener("load",oy,{once:!0});async function oy(){try{const e=(await yt(async()=>{const{default:r}=await import("./index-ghQi_28l.js");return{default:r}},[],import.meta.url)).default;e.init("rhp8uqoc3l");const n=await kS();console.log("Visitor ID:",n),e.identify(n),e.setTag("fingerprintjs",n)}catch(e){console.warn("Clarity 加载或标识设置失败:",e)}}try{const e=()=>{document.body.classList.add("app-loaded");const t=document.getElementById("app-loader");t&&setTimeout(()=>t.remove(),220)};document.readyState==="complete"||document.readyState==="interactive"?e():window.addEventListener("DOMContentLoaded",e,{once:!0})}catch{}export{Tn as $,bn as A,m4 as B,C_ as C,ed as D,Qe as E,Ze as F,S1 as G,ZR as H,ws as I,xf as J,uS as K,Fc as L,rS as M,H3 as N,B3 as O,kA as P,Cd as Q,zm as R,Uo as S,Rf as T,_4 as U,PA as V,y4 as W,Ok as X,$R as Y,jr as Z,Ob as _,fA as a,Qs as a$,bS as a0,_S as a1,we as a2,j as a3,pt as a4,fx as a5,hx as a6,l4 as a7,d4 as a8,u4 as a9,As as aA,bi as aB,li as aC,ss as aD,ld as aE,Qx as aF,Bi as aG,Qf as aH,vl as aI,me as aJ,Ms as aK,Pf as aL,id as aM,D3 as aN,Ff as aO,kS as aP,E4 as aQ,S4 as aR,et as aS,X3 as aT,yA as aU,XC as aV,un as aW,Z3 as aX,gs as aY,YC as aZ,Et as a_,Fx as aa,Gr as ab,vx as ac,yt as ad,Se as ae,F3 as af,$b as ag,Ut as ah,jR as ai,AR as aj,wr as ak,ng as al,aS as am,Dc as an,h4 as ao,f4 as ap,jT as aq,Zn as ar,Of as as,z3 as at,tS as au,ee as av,vt as aw,K3 as ax,G3 as ay,be as az,tt as b,V3 as b$,vo as b0,r4 as b1,n4 as b2,hn as b3,H_ as b4,rg as b5,od as b6,na as b7,g4 as b8,Ak as b9,jx as bA,_R as bB,c4 as bC,hi as bD,Xp as bE,yR as bF,a4 as bG,i4 as bH,Fi as bI,dl as bJ,Ys as bK,ui as bL,j3 as bM,Q3 as bN,Oe as bO,ER as bP,SR as bQ,xx as bR,Ix as bS,At as bT,Rx as bU,kx as bV,U_ as bW,W3 as bX,mt as bY,t4 as bZ,Oi as b_,Ct as ba,q3 as bb,or as bc,XR as bd,gr as be,hb as bf,Gf as bg,qp as bh,Zb as bi,tn as bj,mr as bk,Tl as bl,Jy as bm,eh as bn,mn as bo,ia as bp,sa as bq,$r as br,gx as bs,yx as bt,_x as bu,pR as bv,hR as bw,GC as bx,Di as by,$i as bz,B as c,Ts as c0,sd as c1,Y3 as c2,Hb as c3,Vx as c4,Bb as c5,bt as c6,de as c7,Nn as c8,_f as c9,$3 as cA,o4 as cB,Cl as cC,Xf as cD,b4 as cE,Jf as cF,qr as cG,yf as cH,pl as cI,K_ as cJ,Fr as cK,p4 as cL,MT as ca,Oo as cb,m1 as cc,Uf as cd,U3 as ce,Ps as cf,wl as cg,Yf as ch,Kf as ci,fR as cj,e_ as ck,KC as cl,yo as cm,YR as cn,z_ as co,J3 as cp,e4 as cq,bA as cr,AA as cs,n_ as ct,aa as cu,oa as cv,zr as cw,s4 as cx,F_ as cy,v4 as cz,Me as d,Vi as e,Hi as f,De as g,ct as h,se as i,Dn as j,zf as k,sg as l,Mt as m,Xe as n,cn as o,le as p,sS as q,b1 as r,mx as s,Hn as t,qk as u,ao as v,gt as w,tA as x,Kb as y,Ed as z};