diff --git a/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js b/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js index 17c6ff04..1b54f635 100644 --- a/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js +++ b/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js @@ -1,52 +1,52 @@ -(function(f,ie){typeof exports=="object"&&typeof module<"u"?ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ie):(f=typeof globalThis<"u"?globalThis:f||self,ie(f.Vue))})(this,function(f){"use strict";function ie(e,t){return n=>Object.keys(e).reduce((r,a)=>{const i=typeof e[a]=="object"&&e[a]!=null&&!Array.isArray(e[a])?e[a]:{type:e[a]};return n&&a in n?r[a]={...i,default:n[a]}:r[a]=i,t&&!r[a].source&&(r[a].source=t),r},{})}const at=ie({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Aa(e){f.warn(`Vuetify: ${e}`)}function cv(e){f.warn(`Vuetify error: ${e}`)}function O9(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`,f.warn(`[Vuetify UPGRADE] '${e}' is deprecated, use ${t} instead.`)}const Bn=typeof window<"u",lP=Bn&&"IntersectionObserver"in window,W_e=Bn&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),R9=Bn&&"EyeDropper"in window,sP=Bn&&"matchMedia"in window&&typeof window.matchMedia=="function",bu=()=>sP&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function B9(e,t,n){G_e(e,t),t.set(e,n)}function G_e(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function F9(e,t,n){return e.set(H9(e,t),n),n}function Lc(e,t){return e.get(H9(e,t))}function H9(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 z9(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;a"u"?n:a}if(typeof t=="string")return dv(e,t,n);if(Array.isArray(t))return z9(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function wu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Re(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 fv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function uP(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function cP(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const dP=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 W9(e){return Object.keys(e)}function hv(e,t){return t.every(n=>e.hasOwnProperty(n))}function fi(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function fP(e,t,n){const r=Object.create(null),a=Object.create(null);for(const o in e)t.some(i=>i instanceof RegExp?i.test(o):i===o)?r[o]=e[o]:a[o]=e[o];return[r,a]}function Kt(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const G9=/^on[^a-z]/,hP=e=>G9.test(e),U_e=["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"],Y_e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function j_e(e){return e.isComposing&&Y_e.includes(e.key)}function Su(e){const[t,n]=fP(e,[G9]),r=Kt(t,U_e),[a,o]=fP(n,["class","style","id","inert",/^data-/]);return Object.assign(a,t),Object.assign(o,r),[a,o]}function jn(e){return e==null?[]:Array.isArray(e)?e:[e]}function U9(e,t){let n=0;const r=function(){for(var a=arguments.length,o=new Array(a),i=0;ie(...o),f.unref(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function Fn(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 Y9(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function j9(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 K9(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function K_e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&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 a in e)r[a]=e[a];for(const a in t){const o=e[a],i=t[a];if(uP(o)&&uP(i)){r[a]=bo(o,i,n);continue}if(n&&Array.isArray(o)&&Array.isArray(i)){r[a]=n(o,i);continue}r[a]=i}return r}function Z9(e){return e.map(t=>t.type===f.Fragment?Z9(t.children):t).flat()}function vv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(vv.cache.has(e))return vv.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return vv.cache.set(e,t),t}vv.cache=new Map;function Pg(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Pg(e,n)).flat(1);if(t.suspense)return Pg(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Pg(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Pg(e,t.component.subTree).flat(1)}return[]}var Ng=new WeakMap,pv=new WeakMap;class J9{constructor(t){B9(this,Ng,[]),B9(this,pv,0),this.size=t}get isFull(){return Lc(Ng,this).length===this.size}push(t){Lc(Ng,this)[Lc(pv,this)]=t,F9(pv,this,(Lc(pv,this)+1)%this.size)}values(){return Lc(Ng,this).slice(Lc(pv,this)).concat(Lc(Ng,this).slice(0,Lc(pv,this)))}clear(){Lc(Ng,this).length=0,F9(pv,this,0)}}function X_e(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function vP(e){const t=f.reactive({});f.watchEffect(()=>{const r=e();for(const a in r)t[a]=r[a]},{flush:"sync"});const n={};for(const r in t)n[r]=f.toRef(()=>t[r]);return n}function i_(e,t){return e.includes(t)}function Q9(e){return e[2].toLowerCase()+e.slice(3)}const Qa=()=>[Function,Array];function q9(e,t){return t="on"+f.capitalize(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Y1(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&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(a=>`${a}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch(a){return cv(String(a)),[]}return r.filter(a=>!a.closest("[inert]")).filter(a=>!!a.offsetParent||a.getClientRects().length>0).filter(a=>!a.parentElement?.closest("details:not([open])")||a.tagName==="SUMMARY"&&a.parentElement?.tagName==="DETAILS")}function $9(e,t,n){let r,a=e.indexOf(document.activeElement);const o=t==="next"?1:-1;do a+=o,r=e[a];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&a=0);return r}function mv(e,t){const n=af(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=$9(n,t);r?r.focus():mv(e,t==="next"?"first":"last")}}function j1(e){return e==null||typeof e=="string"&&e.trim()===""}function l_(){}function Lg(e,t){if(!(Bn&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function s_(e){return e.some(t=>f.isVNode(t)?t.type===f.Comment?!1:t.type!==f.Fragment||s_(t.children):!0)?e:null}function u_(e,t,n){return e?.(t)??n?.(t)}function Z_e(e,t){if(!Bn||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function J_e(e,t){const n=e.clientX,r=e.clientY,a=t.getBoundingClientRect(),o=a.left,i=a.top,l=a.right,s=a.bottom;return n>=o&&n<=l&&r>=i&&r<=s}function K1(){const e=f.shallowRef(),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:()=>cP(e.value)}),t}function Og(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function of(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function c_(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function Q_e(e,t,n){const r=new RegExp(`[\\d\\-${c_(n)}]`),a=e.split("").filter(i=>r.test(i)).filter((i,l,s)=>l===0&&/[-]/.test(i)||i===n&&l===s.indexOf(i)||/\d/.test(i)).join("");if(t===0)return a.split(n)[0];const o=new RegExp(`${c_(n)}\\d`);if(t!==null&&o.test(a)){const i=a.split(n);return[i[0],i[1].substring(0,t)].join(n)}return a}function q_e(e){const t={};for(const n in e)t[f.camelize(n)]=e[n];return t}function $_e(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,a]=n;return t.includes(r)?!!a:a!==void 0}))}function eY(e){const t=n=>Array.isArray(n)?n.map(r=>t(r)):f.isRef(n)||f.isReactive(n)||f.isProxy(n)?t(f.toRaw(n)):uP(n)?Object.keys(n).reduce((r,a)=>(r[a]=t(n[a]),r),{}):n;return t(e)}const tY=["top","bottom"],eTe=["start","end","left","right"];function pP(e,t){let[n,r]=e.split(" ");return r||(r=i_(tY,n)?"start":i_(eTe,n)?"top":"center"),{side:mP(n,t),align:mP(r,t)}}function mP(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function gP(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function yP(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function nY(e){return{side:e.align,align:e.side}}function rY(e){return i_(tY,e.side)?"y":"x"}class ll{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,a=r?1+(1-n)/n:1,{x:o,y:i,width:l,height:s}=r?t.getBoundingClientRect():t;this.x=o*a,this.y=i*a,this.width=l*a,this.height=s*a}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 aY(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 oY(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new ll({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new ll(e)}function tTe(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new ll({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 ll({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new ll(e)}function bP(e){const t=new ll(e),n=getComputedStyle(e),r=n.transform;if(r){let a,o,i,l,s;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),o=Number(a[0]),i=Number(a[5]),l=Number(a[12]),s=Number(a[13]);else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),o=Number(a[0]),i=Number(a[3]),l=Number(a[4]),s=Number(a[5]);else return new ll(t);const u=n.transformOrigin,c=t.x-l-(1-o)*parseFloat(u),d=t.y-s-(1-i)*parseFloat(u.slice(u.indexOf(" ")+1)),h=o?t.width/o:e.offsetWidth+1,v=i?t.height/i:e.offsetHeight+1;return new ll({x:c,y:d,width:h,height:v})}else return new ll(t)}function Oc(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(a=>{r.onfinish=()=>{a(r)}})),r}const d_=new WeakMap;function nTe(e,t){Object.keys(t).forEach(n=>{if(hP(n)){const r=Q9(n),a=d_.get(e);if(t[n]==null)a?.forEach(o=>{const[i,l]=o;i===r&&(e.removeEventListener(r,l),a.delete(o))});else if(!a||![...a].some(o=>o[0]===r&&o[1]===t[n])){e.addEventListener(r,t[n]);const o=a||new Set;o.add([r,t[n]]),d_.has(e)||d_.set(e,o)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function rTe(e,t){Object.keys(t).forEach(n=>{if(hP(n)){const r=Q9(n),a=d_.get(e);a?.forEach(o=>{const[i,l]=o;i===r&&(e.removeEventListener(r,l),a.delete(o))})}else e.removeAttribute(n)})}const Rg=2.4,iY=.2126729,lY=.7151522,sY=.072175,aTe=.55,oTe=.58,iTe=.57,lTe=.62,f_=.03,uY=1.45,sTe=5e-4,uTe=1.25,cTe=1.25,cY=.078,dY=12.82051282051282,h_=.06,fY=.001;function hY(e,t){const n=(e.r/255)**Rg,r=(e.g/255)**Rg,a=(e.b/255)**Rg,o=(t.r/255)**Rg,i=(t.g/255)**Rg,l=(t.b/255)**Rg;let s=n*iY+r*lY+a*sY,u=o*iY+i*lY+l*sY;if(s<=f_&&(s+=(f_-s)**uY),u<=f_&&(u+=(f_-u)**uY),Math.abs(u-s)s){const d=(u**aTe-s**oTe)*uTe;c=d-fY?0:d>-cY?d-d*dY*h_:d+h_}return c*100}const v_=.20689655172413793,dTe=e=>e>v_**3?Math.cbrt(e):e/(3*v_**2)+4/29,fTe=e=>e>v_?e**3:3*v_**2*(e-4/29);function vY(e){const t=dTe,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function pY(e){const t=fTe,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const hTe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],vTe=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,pTe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],mTe=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function mY(e){const t=Array(3),n=vTe,r=hTe;for(let a=0;a<3;++a)t[a]=Math.round(Fn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function wP(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],o=mTe,i=pTe;t=o(t/255),n=o(n/255),r=o(r/255);for(let l=0;l<3;++l)a[l]=i[l][0]*t+i[l][1]*n+i[l][2]*r;return a}function SP(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function gTe(e){return SP(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const gY=/^(?(?:rgb|hsl)a?)\((?.+)\)/,yTe={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)=>yY({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>yY({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>xu({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>xu({h:e,s:t,v:n,a:r})};function sl(e){if(typeof e=="number")return(isNaN(e)||e<0||e>16777215)&&Aa(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&gY.test(e)){const{groups:t}=e.match(gY),{fn:n,values:r}=t,a=r.split(/,\s*|\s*\/\s*|\s+/).map((o,i)=>o.endsWith("%")||i>0&&i<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return yTe[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map(r=>r+r).join(""):[6,8].includes(t.length)||Aa(`'${e}' is not a valid hex(a) color`);const n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&Aa(`'${e}' is not a valid hex(a) color`),xY(t)}else if(typeof e=="object"){if(hv(e,["r","g","b"]))return e;if(hv(e,["h","s","l"]))return xu(CP(e));if(hv(e,["h","s","v"]))return xu(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 xu(e){const{h:t,s:n,v:r,a}=e,o=l=>{const s=(l+t/60)%6;return r-r*n*Math.max(Math.min(s,4-s,1),0)},i=[o(5),o(3),o(1)].map(l=>Math.round(l*255));return{r:i[0],g:i[1],b:i[2],a}}function yY(e){return xu(CP(e))}function X1(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),o=Math.min(t,n,r);let i=0;a!==o&&(a===t?i=60*(0+(n-r)/(a-o)):a===n?i=60*(2+(r-t)/(a-o)):a===r&&(i=60*(4+(t-n)/(a-o)))),i<0&&(i=i+360);const l=a===0?0:(a-o)/a,s=[i,l,a];return{h:s[0],s:s[1],v:s[2],a:e.a}}function xP(e){const{h:t,s:n,v:r,a}=e,o=r-r*n/2,i=o===1||o===0?0:(r-o)/Math.min(o,1-o);return{h:t,s:i,l:o,a}}function CP(e){const{h:t,s:n,l:r,a}=e,o=r+n*Math.min(r,1-r),i=o===0?0:2-2*r/o;return{h:t,s:i,v:o,a}}function bY(e){let{r:t,g:n,b:r,a}=e;return a===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${a})`}function wY(e){return bY(xu(e))}function p_(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function SY(e){let{r:t,g:n,b:r,a}=e;return`#${[p_(t),p_(n),p_(r),a!==void 0?p_(Math.round(a*255)):""].join("")}`}function xY(e){e=wTe(e);let[t,n,r,a]=K_e(e,2).map(o=>parseInt(o,16));return a=a===void 0?a:a/255,{r:t,g:n,b:r,a}}function bTe(e){const t=xY(e);return X1(t)}function CY(e){return SY(xu(e))}function wTe(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=j9(j9(e,6),8,"F")),e}function STe(e,t){const n=vY(wP(e));return n[0]=n[0]+t*10,mY(pY(n))}function xTe(e,t){const n=vY(wP(e));return n[0]=n[0]-t*10,mY(pY(n))}function _P(e){const t=sl(e);return wP(t)[1]}function CTe(e,t){const n=_P(e),r=_P(t),a=Math.max(n,r),o=Math.min(n,r);return(a+.05)/(o+.05)}function _Y(e){const t=Math.abs(hY(sl(0),sl(e)));return Math.abs(hY(sl(16777215),sl(e)))>Math.min(t,50)?"#fff":"#000"}function Gr(e,t){const n=f.getCurrentInstance();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Cu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Gr(e).type;return vv(t?.aliasName||t?.name)}function _Te(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gr("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const Bg=Symbol.for("vuetify:defaults");function TTe(e){return f.ref(e)}function TP(){const e=f.inject(Bg);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Cr(e,t){const n=TP(),r=f.ref(e),a=f.computed(()=>{if(f.unref(t?.disabled))return n.value;const i=f.unref(t?.scoped),l=f.unref(t?.reset),s=f.unref(t?.root);if(r.value==null&&!(i||l||s))return n.value;let u=bo(r.value,{prev:n.value});if(i)return u;if(l||s){const c=Number(l||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof s=="string"&&s in u&&(u=bo(bo(u,{prev:u}),u[s])),u}return u.prev?bo(u.prev,u):u});return f.provide(Bg,a),a}function kTe(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[vv(t)]<"u")}function ATe(){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]:TP();const r=Gr("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const a=f.computed(()=>n.value?.[e._as??t]),o=new Proxy(e,{get(s,u){const c=Reflect.get(s,u);if(u==="class"||u==="style")return[a.value?.[u],c].filter(v=>v!=null);if(kTe(r.vnode,u))return c;const d=a.value?.[u];if(d!==void 0)return d;const h=n.value?.global?.[u];return h!==void 0?h:c}}),i=f.shallowRef();f.watchEffect(()=>{if(a.value){const s=Object.entries(a.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});i.value=s.length?Object.fromEntries(s):void 0}else i.value=void 0});function l(){const s=_Te(Bg,r);f.provide(Bg,f.computed(()=>i.value?bo(s?.value??{},i.value):s?.value))}return{props:o,provideSubDefaults:l}}function zo(e){if(e._setup=e._setup??e.setup,!e.name)return Aa("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=ie(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return fi(r,t)},e.props._as=String,e.setup=function(r,a){const o=TP();if(!o.value)return e._setup(r,a);const{props:i,provideSubDefaults:l}=ATe(r,r._as??e.name,o),s=e._setup(i,a);return l(),s}}return e}function Ce(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?zo:f.defineComponent)(t)}function ETe(e,t){return t.props=e,t}function Rc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Ce()({name:n??f.capitalize(f.camelize(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...at()},setup(r,a){let{slots:o}=a;return()=>f.h(r.tag,{class:[e,r.class],style:r.style},o.default?.())}})}function ITe(e,t,n,r){if(!n||of(e)||of(t))return;const a=n.get(e);if(a)a.set(t,r);else{const o=new WeakMap;o.set(t,r),n.set(e,o)}}function MTe(e,t,n){if(!n||of(e)||of(t))return null;const r=n.get(e)?.get(t);if(typeof r=="boolean")return r;const a=n.get(t)?.get(e);return typeof a=="boolean"?a:null}function Ea(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 a=MTe(e,t,n);return a||(ITe(e,t,n,!0),r.every(o=>Ea(e[o],t[o],n)))}function TY(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 Z1="cubic-bezier(0.4, 0, 0.2, 1)",kY="cubic-bezier(0.0, 0, 0.2, 1)",AY="cubic-bezier(0.4, 0, 1, 1)",DTe={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 ul(e,t,n){return Object.keys(e).filter(r=>hP(r)&&r.endsWith(t)).reduce((r,a)=>(r[a.slice(0,-t.length)]=o=>Y1(e[a],o,n(o)),r),{})}function m_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?VTe(e):kP(e))return e;e=e.parentElement}return document.scrollingElement}function g_(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(kP(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function kP(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 VTe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function PTe(e){let{depth:t,isLast:n,isLastGroup:r,leafLinks:a,separateRoots:o,parentIndentLines:i,variant:l}=e;const s=n&&(!r||o||t>1);return!i||!t?{leaf:void 0,node:void 0,children:i,footer:i&&(!s||l==="simple")?[...i,o?"none":"line"]:["none"]}:l==="simple"?{leaf:[...i,"line"],node:[...i,"line"],children:[...i,"line"],footer:[...i,"line","line"]}:{leaf:[...i,s?"last-leaf":"leaf",...a?["leaf-link"]:[]],node:[...i,s?"last-leaf":"leaf"],children:[...i,s?"none":"line"],footer:[...i,s?"none":"line"]}}function NTe(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function ke(e){const t=Gr("useRender");t.render=e}function LTe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,a=0,o=!1,i=0;function l(){clearTimeout(r),o=!1,i=0}const s=function(){for(var u=arguments.length,c=new Array(u),d=0;d=t?p():n.trailing&&(r=setTimeout(p,t-v)):(o=!0,n.leading&&p())};return s.clear=l,s.immediate=e,s}function Ul(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=K1(),r=f.ref();if(Bn){const a=new ResizeObserver(o=>{e?.(o,a),o.length&&(t==="content"?r.value=o[0].contentRect:r.value=o[0].target.getBoundingClientRect())});f.onBeforeUnmount(()=>{a.disconnect()}),f.watch(()=>n.el,(o,i)=>{i&&(a.unobserve(i),r.value=void 0),o&&a.observe(o)},{flush:"post"})}return{resizeRef:n,contentRect:f.readonly(r)}}const J1=Symbol.for("vuetify:layout"),EY=Symbol.for("vuetify:layout-item"),IY=1e3,MY=ie({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),gv=ie({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function DY(){const e=f.inject(J1);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function yv(e){const t=f.inject(J1);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${f.useId()}`,r=Gr("useLayoutItem");f.provide(EY,{id:n});const a=f.shallowRef(!1);f.onDeactivated(()=>a.value=!0),f.onActivated(()=>a.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:i}=t.register(r,{...e,active:f.computed(()=>a.value?!1:e.active.value),id:n});return f.onBeforeUnmount(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:i}}const OTe=(e,t,n,r)=>{let a={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...a}}];for(const i of e){const l=t.get(i),s=n.get(i),u=r.get(i);if(!l||!s||!u)continue;const c={...a,[l.value]:parseInt(a[l.value],10)+(u.value?parseInt(s.value,10):0)};o.push({id:i,layer:c}),a=c}return o};function VY(e){const t=f.inject(J1,null),n=f.computed(()=>t?t.rootZIndex.value-100:IY),r=f.ref([]),a=f.reactive(new Map),o=f.reactive(new Map),i=f.reactive(new Map),l=f.reactive(new Map),s=f.reactive(new Map),{resizeRef:u,contentRect:c}=Ul(),d=f.computed(()=>{const x=new Map,T=e.overlaps??[];for(const A of T.filter(E=>E.includes(":"))){const[E,I]=A.split(":");if(!r.value.includes(E)||!r.value.includes(I))continue;const M=a.get(E),N=a.get(I),D=o.get(E),P=o.get(I);!M||!N||!D||!P||(x.set(I,{position:M.value,amount:parseInt(D.value,10)}),x.set(E,{position:N.value,amount:-parseInt(P.value,10)}))}return x}),h=f.computed(()=>{const x=[...new Set([...i.values()].map(A=>A.value))].sort((A,E)=>A-E),T=[];for(const A of x){const E=r.value.filter(I=>i.get(I)?.value===A);T.push(...E)}return OTe(T,a,o,l)}),v=f.computed(()=>!Array.from(s.values()).some(x=>x.value)),p=f.computed(()=>h.value[h.value.length-1].layer),m=f.toRef(()=>({"--v-layout-left":Re(p.value.left),"--v-layout-right":Re(p.value.right),"--v-layout-top":Re(p.value.top),"--v-layout-bottom":Re(p.value.bottom),...v.value?void 0:{transition:"none"}})),g=f.computed(()=>h.value.slice(1).map((x,T)=>{let{id:A}=x;const{layer:E}=h.value[T],I=o.get(A),M=a.get(A);return{id:A,...E,size:Number(I.value),position:M.value}})),y=x=>g.value.find(T=>T.id===x),b=Gr("createLayout"),w=f.shallowRef(!1);f.onMounted(()=>{w.value=!0}),f.provide(J1,{register:(x,T)=>{let{id:A,order:E,position:I,layoutSize:M,elementSize:N,active:D,disableTransitions:P,absolute:O}=T;i.set(A,E),a.set(A,I),o.set(A,M),l.set(A,D),P&&s.set(A,P);const R=Pg(EY,b?.vnode).indexOf(x);R>-1?r.value.splice(R,0,A):r.value.push(A);const B=f.computed(()=>g.value.findIndex(j=>j.id===A)),W=f.computed(()=>n.value+h.value.length*2-B.value*2),H=f.computed(()=>{const j=I.value==="left"||I.value==="right",U=I.value==="right",Y=I.value==="bottom",Z=N.value??M.value,te=Z===0?"%":"px",$={[I.value]:0,zIndex:W.value,transform:`translate${j?"X":"Y"}(${(D.value?0:-(Z===0?100:Z))*(U||Y?-1:1)}${te})`,position:O.value||n.value!==IY?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!w.value)return $;const ae=g.value[B.value];ae||Aa(`[Vuetify] Could not find layout item "${A}"`);const de=d.value.get(A);return de&&(ae[de.position]+=de.amount),{...$,height:j?`calc(100% - ${ae.top}px - ${ae.bottom}px)`:N.value?`${N.value}px`:void 0,left:U?void 0:`${ae.left}px`,right:U?`${ae.right}px`:void 0,top:I.value!=="bottom"?`${ae.top}px`:void 0,bottom:I.value!=="top"?`${ae.bottom}px`:void 0,width:j?N.value?`${N.value}px`:void 0:`calc(100% - ${ae.left}px - ${ae.right}px)`}}),z=f.computed(()=>({zIndex:W.value-1}));return{layoutItemStyles:H,layoutItemScrimStyles:z,zIndex:W}},unregister:x=>{i.delete(x),a.delete(x),o.delete(x),l.delete(x),s.delete(x),r.value=r.value.filter(T=>T!==x)},mainRect:p,mainStyles:m,getLayoutItem:y,items:g,layoutRect:c,rootZIndex:n});const S=f.toRef(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=f.toRef(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:S,layoutStyles:_,getLayoutItem:y,items:g,layoutRect:c,layoutRef:u}}function qa(e,t){let n;function r(){n=f.effectScope(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}f.watch(e,a=>{a&&!n?r():a||(n?.stop(),n=void 0)},{immediate:!0}),f.onScopeDispose(()=>{n?.stop()})}function ot(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const o=Gr("useProxiedModel"),i=f.ref(e[t]!==void 0?e[t]:n),l=vv(t),u=l!==t?f.computed(()=>(e[t],!!((o.vnode.props?.hasOwnProperty(t)||o.vnode.props?.hasOwnProperty(l))&&(o.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||o.vnode.props?.hasOwnProperty(`onUpdate:${l}`))))):f.computed(()=>(e[t],!!(o.vnode.props?.hasOwnProperty(t)&&o.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));qa(()=>!u.value,()=>{f.watch(()=>e[t],d=>{i.value=d})});const c=f.computed({get(){const d=e[t];return r(u.value?d:i.value)},set(d){const h=a(d),v=f.toRaw(u.value?e[t]:i.value);v===h||r(v)===d||(i.value=h,o?.emit(`update:${t}`,h))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:i.value}),c}const AP={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",notAllowed:"Value is not allowed"},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"},command:{search:"Type a command or search..."},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"}}},PY="$vuetify.",NY=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),LY=(e,t,n)=>function(r){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;inew Intl.NumberFormat([e.value,t.value],r).format(n)}function OY(e,t){return EP(e,t)(.1).includes(",")?",":"."}function IP(e,t,n){const r=ot(e,t,e[t]??n.value);return r.value=e[t]??n.value,f.watch(n,a=>{e[t]==null&&(r.value=n.value)}),r}function RY(e){return t=>{const n=IP(t,"locale",e.current),r=IP(t,"fallback",e.fallback),a=IP(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,decimalSeparator:f.toRef(()=>OY(n,r)),t:LY(n,r,a),n:EP(n,r),provide:RY({current:n,fallback:r,messages:a})}}}function RTe(e){const t=f.shallowRef(e?.locale??"en"),n=f.shallowRef(e?.fallback??"en"),r=f.ref({en:AP,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:f.toRef(()=>e?.decimalSeparator??OY(t,n)),t:LY(t,n,r),n:EP(t,n),provide:RY({current:t,fallback:n,messages:r})}}const Fg=Symbol.for("vuetify:locale");function BTe(e){return e.name!=null}function FTe(e){const t=e?.adapter&&BTe(e?.adapter)?e?.adapter:RTe(e),n=zTe(t,e);return{...t,...n}}function An(){const e=f.inject(Fg);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function BY(e){const t=f.inject(Fg);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),r=WTe(n,t.rtl,e),a={...n,...r};return f.provide(Fg,a),a}function HTe(){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 zTe(e,t){const n=f.ref(t?.rtl??HTe()),r=f.computed(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:f.toRef(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function WTe(e,t,n){const r=f.computed(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:r,rtl:t,rtlClasses:f.toRef(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function ea(){const e=f.inject(Fg);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const Q1=Symbol.for("vuetify:theme"),pn=ie({theme:String},"theme");function FY(){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 GTe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FY();const t=FY();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,a]of Object.entries(e.themes??{})){const o=a.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=bo(o,a)}return bo(t,{...e,themes:n})}function bv(e,t,n,r){e.push(`${KTe(t,r)} { +(function(f,ie){typeof exports=="object"&&typeof module<"u"?ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],ie):(f=typeof globalThis<"u"?globalThis:f||self,ie(f.Vue))})(this,function(f){"use strict";function ie(e,t){return n=>Object.keys(e).reduce((r,a)=>{const i=typeof e[a]=="object"&&e[a]!=null&&!Array.isArray(e[a])?e[a]:{type:e[a]};return n&&a in n?r[a]={...i,default:n[a]}:r[a]=i,t&&!r[a].source&&(r[a].source=t),r},{})}const nt=ie({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Ea(e){f.warn(`Vuetify: ${e}`)}function uv(e){f.warn(`Vuetify error: ${e}`)}function B9(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`,f.warn(`[Vuetify UPGRADE] '${e}' is deprecated, use ${t} instead.`)}const Bn=typeof window<"u",dP=Bn&&"IntersectionObserver"in window,G_e=Bn&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),F9=Bn&&"EyeDropper"in window,fP=Bn&&"matchMedia"in window&&typeof window.matchMedia=="function",bu=()=>fP&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function H9(e,t,n){U_e(e,t),t.set(e,n)}function U_e(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function z9(e,t,n){return e.set(W9(e,t),n),n}function Nc(e,t){return e.get(W9(e,t))}function W9(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 G9(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let a=0;a"u"?n:a}if(typeof t=="string")return cv(e,t,n);if(Array.isArray(t))return G9(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function wu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function Oe(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 dv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function hP(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function vP(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}const pP=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 U9(e){return Object.keys(e)}function fv(e,t){return t.every(n=>e.hasOwnProperty(n))}function vi(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function mP(e,t,n){const r=Object.create(null),a=Object.create(null);for(const o in e)t.some(i=>i instanceof RegExp?i.test(o):i===o)?r[o]=e[o]:a[o]=e[o];return[r,a]}function Kt(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const Y9=/^on[^a-z]/,gP=e=>Y9.test(e),Y_e=["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"],j_e=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function K_e(e){return e.isComposing&&j_e.includes(e.key)}function Su(e){const[t,n]=mP(e,[Y9]),r=Kt(t,Y_e),[a,o]=mP(n,["class","style","id","inert",/^data-/]);return Object.assign(a,t),Object.assign(o,r),[a,o]}function Kn(e){return e==null?[]:Array.isArray(e)?e:[e]}function j9(e,t){let n=0;const r=function(){for(var a=arguments.length,o=new Array(a),i=0;ie(...o),f.unref(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function Fn(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 K9(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function X9(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 Z9(e,t){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,t-e.length))+e}function X_e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r1&&arguments[1]!==void 0?arguments[1]:1e3;if(e=t&&r0&&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 a in e)r[a]=e[a];for(const a in t){const o=e[a],i=t[a];if(hP(o)&&hP(i)){r[a]=So(o,i,n);continue}if(n&&Array.isArray(o)&&Array.isArray(i)){r[a]=n(o,i);continue}r[a]=i}return r}function Q9(e){return e.map(t=>t.type===f.Fragment?Q9(t.children):t).flat()}function hv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(hv.cache.has(e))return hv.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return hv.cache.set(e,t),t}hv.cache=new Map;function Og(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>Og(e,n)).flat(1);if(t.suspense)return Og(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>Og(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return Og(e,t.component.subTree).flat(1)}return[]}var Rg=new WeakMap,vv=new WeakMap;class q9{constructor(t){H9(this,Rg,[]),H9(this,vv,0),this.size=t}get isFull(){return Nc(Rg,this).length===this.size}push(t){Nc(Rg,this)[Nc(vv,this)]=t,z9(vv,this,(Nc(vv,this)+1)%this.size)}values(){return Nc(Rg,this).slice(Nc(vv,this)).concat(Nc(Rg,this).slice(0,Nc(vv,this)))}clear(){Nc(Rg,this).length=0,z9(vv,this,0)}}function Z_e(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function yP(e){const t=f.reactive({});f.watchEffect(()=>{const r=e();for(const a in r)t[a]=r[a]},{flush:"sync"});const n={};for(const r in t)n[r]=f.toRef(()=>t[r]);return n}function o_(e,t){return e.includes(t)}function $9(e){return e[2].toLowerCase()+e.slice(3)}const Qa=()=>[Function,Array];function eY(e,t){return t="on"+f.capitalize(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function j1(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&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(a=>`${a}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch(a){return uv(String(a)),[]}return r.filter(a=>!a.closest("[inert]")).filter(a=>!!a.offsetParent||a.getClientRects().length>0).filter(a=>!a.parentElement?.closest("details:not([open])")||a.tagName==="SUMMARY"&&a.parentElement?.tagName==="DETAILS")}function tY(e,t,n){let r,a=e.indexOf(document.activeElement);const o=t==="next"?1:-1;do a+=o,r=e[a];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&a=0);return r}function pv(e,t){const n=rf(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=tY(n,t);r?r.focus():pv(e,t==="next"?"first":"last")}}function K1(e){return e==null||typeof e=="string"&&e.trim()===""}function i_(){}function Bg(e,t){if(!(Bn&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function l_(e){return e.some(t=>f.isVNode(t)?t.type===f.Comment?!1:t.type!==f.Fragment||l_(t.children):!0)?e:null}function s_(e,t,n){return e?.(t)??n?.(t)}function J_e(e,t){if(!Bn||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Q_e(e,t){const n=e.clientX,r=e.clientY,a=t.getBoundingClientRect(),o=a.left,i=a.top,l=a.right,s=a.bottom;return n>=o&&n<=l&&r>=i&&r<=s}function X1(){const e=f.shallowRef(),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:()=>vP(e.value)}),t}function Fg(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function af(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function u_(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function q_e(e,t,n){const r=new RegExp(`[\\d\\-${u_(n)}]`),a=e.split("").filter(i=>r.test(i)).filter((i,l,s)=>l===0&&/[-]/.test(i)||i===n&&l===s.indexOf(i)||/\d/.test(i)).join("");if(t===0)return a.split(n)[0];const o=new RegExp(`${u_(n)}\\d`);if(t!==null&&o.test(a)){const i=a.split(n);return[i[0],i[1].substring(0,t)].join(n)}return a}function $_e(e){const t={};for(const n in e)t[f.camelize(n)]=e[n];return t}function eTe(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(n=>{let[r,a]=n;return t.includes(r)?!!a:a!==void 0}))}function nY(e){const t=n=>Array.isArray(n)?n.map(r=>t(r)):f.isRef(n)||f.isReactive(n)||f.isProxy(n)?t(f.toRaw(n)):hP(n)?Object.keys(n).reduce((r,a)=>(r[a]=t(n[a]),r),{}):n;return t(e)}const rY=["top","bottom"],tTe=["start","end","left","right"];function bP(e,t){let[n,r]=e.split(" ");return r||(r=o_(rY,n)?"start":o_(tTe,n)?"top":"center"),{side:wP(n,t),align:wP(r,t)}}function wP(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function SP(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function xP(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function aY(e){return{side:e.align,align:e.side}}function oY(e){return o_(rY,e.side)?"y":"x"}class il{constructor(t){const n=document.body.currentCSSZoom??1,r=t instanceof Element,a=r?1+(1-n)/n:1,{x:o,y:i,width:l,height:s}=r?t.getBoundingClientRect():t;this.x=o*a,this.y=i*a,this.width=l*a,this.height=s*a}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 iY(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 lY(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new il({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}else return new il(e)}function nTe(e){if(e===document.documentElement)if(visualViewport){const t=document.body.currentCSSZoom??1;return new il({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 il({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new il(e)}function CP(e){const t=new il(e),n=getComputedStyle(e),r=n.transform;if(r){let a,o,i,l,s;if(r.startsWith("matrix3d("))a=r.slice(9,-1).split(/, /),o=Number(a[0]),i=Number(a[5]),l=Number(a[12]),s=Number(a[13]);else if(r.startsWith("matrix("))a=r.slice(7,-1).split(/, /),o=Number(a[0]),i=Number(a[3]),l=Number(a[4]),s=Number(a[5]);else return new il(t);const u=n.transformOrigin,c=t.x-l-(1-o)*parseFloat(u),d=t.y-s-(1-i)*parseFloat(u.slice(u.indexOf(" ")+1)),h=o?t.width/o:e.offsetWidth+1,v=i?t.height/i:e.offsetHeight+1;return new il({x:c,y:d,width:h,height:v})}else return new il(t)}function Lc(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(a=>{r.onfinish=()=>{a(r)}})),r}const c_=new WeakMap;function rTe(e,t){Object.keys(t).forEach(n=>{if(gP(n)){const r=$9(n),a=c_.get(e);if(t[n]==null)a?.forEach(o=>{const[i,l]=o;i===r&&(e.removeEventListener(r,l),a.delete(o))});else if(!a||![...a].some(o=>o[0]===r&&o[1]===t[n])){e.addEventListener(r,t[n]);const o=a||new Set;o.add([r,t[n]]),c_.has(e)||c_.set(e,o)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function aTe(e,t){Object.keys(t).forEach(n=>{if(gP(n)){const r=$9(n),a=c_.get(e);a?.forEach(o=>{const[i,l]=o;i===r&&(e.removeEventListener(r,l),a.delete(o))})}else e.removeAttribute(n)})}const Hg=2.4,sY=.2126729,uY=.7151522,cY=.072175,oTe=.55,iTe=.58,lTe=.57,sTe=.62,d_=.03,dY=1.45,uTe=5e-4,cTe=1.25,dTe=1.25,fY=.078,hY=12.82051282051282,f_=.06,vY=.001;function pY(e,t){const n=(e.r/255)**Hg,r=(e.g/255)**Hg,a=(e.b/255)**Hg,o=(t.r/255)**Hg,i=(t.g/255)**Hg,l=(t.b/255)**Hg;let s=n*sY+r*uY+a*cY,u=o*sY+i*uY+l*cY;if(s<=d_&&(s+=(d_-s)**dY),u<=d_&&(u+=(d_-u)**dY),Math.abs(u-s)s){const d=(u**oTe-s**iTe)*cTe;c=d-vY?0:d>-fY?d-d*hY*f_:d+f_}return c*100}const h_=.20689655172413793,fTe=e=>e>h_**3?Math.cbrt(e):e/(3*h_**2)+4/29,hTe=e=>e>h_?e**3:3*h_**2*(e-4/29);function mY(e){const t=fTe,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function gY(e){const t=hTe,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const vTe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],pTe=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,mTe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],gTe=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function yY(e){const t=Array(3),n=pTe,r=vTe;for(let a=0;a<3;++a)t[a]=Math.round(Fn(n(r[a][0]*e[0]+r[a][1]*e[1]+r[a][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function _P(e){let{r:t,g:n,b:r}=e;const a=[0,0,0],o=gTe,i=mTe;t=o(t/255),n=o(n/255),r=o(r/255);for(let l=0;l<3;++l)a[l]=i[l][0]*t+i[l][1]*n+i[l][2]*r;return a}function TP(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function yTe(e){return TP(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const bY=/^(?(?:rgb|hsl)a?)\((?.+)\)/,bTe={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)=>wY({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>wY({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>xu({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>xu({h:e,s:t,v:n,a:r})};function ll(e){if(typeof e=="number")return(isNaN(e)||e<0||e>16777215)&&Ea(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&bY.test(e)){const{groups:t}=e.match(bY),{fn:n,values:r}=t,a=r.split(/,\s*|\s*\/\s*|\s+/).map((o,i)=>o.endsWith("%")||i>0&&i<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(o)/100:parseFloat(o));return bTe[n](...a)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map(r=>r+r).join(""):[6,8].includes(t.length)||Ea(`'${e}' is not a valid hex(a) color`);const n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&Ea(`'${e}' is not a valid hex(a) color`),_Y(t)}else if(typeof e=="object"){if(fv(e,["r","g","b"]))return e;if(fv(e,["h","s","l"]))return xu(AP(e));if(fv(e,["h","s","v"]))return xu(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 xu(e){const{h:t,s:n,v:r,a}=e,o=l=>{const s=(l+t/60)%6;return r-r*n*Math.max(Math.min(s,4-s,1),0)},i=[o(5),o(3),o(1)].map(l=>Math.round(l*255));return{r:i[0],g:i[1],b:i[2],a}}function wY(e){return xu(AP(e))}function Z1(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,a=Math.max(t,n,r),o=Math.min(t,n,r);let i=0;a!==o&&(a===t?i=60*(0+(n-r)/(a-o)):a===n?i=60*(2+(r-t)/(a-o)):a===r&&(i=60*(4+(t-n)/(a-o)))),i<0&&(i=i+360);const l=a===0?0:(a-o)/a,s=[i,l,a];return{h:s[0],s:s[1],v:s[2],a:e.a}}function kP(e){const{h:t,s:n,v:r,a}=e,o=r-r*n/2,i=o===1||o===0?0:(r-o)/Math.min(o,1-o);return{h:t,s:i,l:o,a}}function AP(e){const{h:t,s:n,l:r,a}=e,o=r+n*Math.min(r,1-r),i=o===0?0:2-2*r/o;return{h:t,s:i,v:o,a}}function SY(e){let{r:t,g:n,b:r,a}=e;return a===void 0?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${a})`}function xY(e){return SY(xu(e))}function v_(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function CY(e){let{r:t,g:n,b:r,a}=e;return`#${[v_(t),v_(n),v_(r),a!==void 0?v_(Math.round(a*255)):""].join("")}`}function _Y(e){e=STe(e);let[t,n,r,a]=X_e(e,2).map(o=>parseInt(o,16));return a=a===void 0?a:a/255,{r:t,g:n,b:r,a}}function wTe(e){const t=_Y(e);return Z1(t)}function TY(e){return CY(xu(e))}function STe(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=X9(X9(e,6),8,"F")),e}function xTe(e,t){const n=mY(_P(e));return n[0]=n[0]+t*10,yY(gY(n))}function CTe(e,t){const n=mY(_P(e));return n[0]=n[0]-t*10,yY(gY(n))}function EP(e){const t=ll(e);return _P(t)[1]}function _Te(e,t){const n=EP(e),r=EP(t),a=Math.max(n,r),o=Math.min(n,r);return(a+.05)/(o+.05)}function kY(e){const t=Math.abs(pY(ll(0),ll(e)));return Math.abs(pY(ll(16777215),ll(e)))>Math.min(t,50)?"#fff":"#000"}function Ur(e,t){const n=f.getCurrentInstance();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Cu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=Ur(e).type;return hv(t?.aliasName||t?.name)}function TTe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ur("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const zg=Symbol.for("vuetify:defaults");function kTe(e){return f.ref(e)}function IP(){const e=f.inject(zg);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function _r(e,t){const n=IP(),r=f.ref(e),a=f.computed(()=>{if(f.unref(t?.disabled))return n.value;const i=f.unref(t?.scoped),l=f.unref(t?.reset),s=f.unref(t?.root);if(r.value==null&&!(i||l||s))return n.value;let u=So(r.value,{prev:n.value});if(i)return u;if(l||s){const c=Number(l||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof s=="string"&&s in u&&(u=So(So(u,{prev:u}),u[s])),u}return u.prev?So(u.prev,u):u});return f.provide(zg,a),a}function ATe(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[hv(t)]<"u")}function ETe(){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]:IP();const r=Ur("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const a=f.computed(()=>n.value?.[e._as??t]),o=new Proxy(e,{get(s,u){const c=Reflect.get(s,u);if(u==="class"||u==="style")return[a.value?.[u],c].filter(v=>v!=null);if(ATe(r.vnode,u))return c;const d=a.value?.[u];if(d!==void 0)return d;const h=n.value?.global?.[u];return h!==void 0?h:c}}),i=f.shallowRef();f.watchEffect(()=>{if(a.value){const s=Object.entries(a.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});i.value=s.length?Object.fromEntries(s):void 0}else i.value=void 0});function l(){const s=TTe(zg,r);f.provide(zg,f.computed(()=>i.value?So(s?.value??{},i.value):s?.value))}return{props:o,provideSubDefaults:l}}function zo(e){if(e._setup=e._setup??e.setup,!e.name)return Ea("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=ie(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return vi(r,t)},e.props._as=String,e.setup=function(r,a){const o=IP();if(!o.value)return e._setup(r,a);const{props:i,provideSubDefaults:l}=ETe(r,r._as??e.name,o),s=e._setup(i,a);return l(),s}}return e}function Te(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?zo:f.defineComponent)(t)}function ITe(e,t){return t.props=e,t}function Oc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Te()({name:n??f.capitalize(f.camelize(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...nt()},setup(r,a){let{slots:o}=a;return()=>f.h(r.tag,{class:[e,r.class],style:r.style},o.default?.())}})}function MTe(e,t,n,r){if(!n||af(e)||af(t))return;const a=n.get(e);if(a)a.set(t,r);else{const o=new WeakMap;o.set(t,r),n.set(e,o)}}function DTe(e,t,n){if(!n||af(e)||af(t))return null;const r=n.get(e)?.get(t);if(typeof r=="boolean")return r;const a=n.get(t)?.get(e);return typeof a=="boolean"?a:null}function Ia(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 a=DTe(e,t,n);return a||(MTe(e,t,n,!0),r.every(o=>Ia(e[o],t[o],n)))}function AY(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 J1="cubic-bezier(0.4, 0, 0.2, 1)",EY="cubic-bezier(0.0, 0, 0.2, 1)",IY="cubic-bezier(0.4, 0, 1, 1)",VTe={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 sl(e,t,n){return Object.keys(e).filter(r=>gP(r)&&r.endsWith(t)).reduce((r,a)=>(r[a.slice(0,-t.length)]=o=>j1(e[a],o,n(o)),r),{})}function p_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?PTe(e):MP(e))return e;e=e.parentElement}return document.scrollingElement}function m_(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(MP(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function MP(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 PTe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function NTe(e){let{depth:t,isLast:n,isLastGroup:r,leafLinks:a,separateRoots:o,parentIndentLines:i,variant:l}=e;const s=n&&(!r||o||t>1);return!i||!t?{leaf:void 0,node:void 0,children:i,footer:i&&(!s||l==="simple")?[...i,o?"none":"line"]:["none"]}:l==="simple"?{leaf:[...i,"line"],node:[...i,"line"],children:[...i,"line"],footer:[...i,"line","line"]}:{leaf:[...i,s?"last-leaf":"leaf",...a?["leaf-link"]:[]],node:[...i,s?"last-leaf":"leaf"],children:[...i,s?"none":"line"],footer:[...i,s?"none":"line"]}}function LTe(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Ae(e){const t=Ur("useRender");t.render=e}function OTe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},r=0,a=0,o=!1,i=0;function l(){clearTimeout(r),o=!1,i=0}const s=function(){for(var u=arguments.length,c=new Array(u),d=0;d=t?p():n.trailing&&(r=setTimeout(p,t-v)):(o=!0,n.leading&&p())};return s.clear=l,s.immediate=e,s}function Gl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=X1(),r=f.ref();if(Bn){const a=new ResizeObserver(o=>{e?.(o,a),o.length&&(t==="content"?r.value=o[0].contentRect:r.value=o[0].target.getBoundingClientRect())});f.onBeforeUnmount(()=>{a.disconnect()}),f.watch(()=>n.el,(o,i)=>{i&&(a.unobserve(i),r.value=void 0),o&&a.observe(o)},{flush:"post"})}return{resizeRef:n,contentRect:f.readonly(r)}}const Q1=Symbol.for("vuetify:layout"),MY=Symbol.for("vuetify:layout-item"),DY=1e3,VY=ie({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),mv=ie({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function PY(){const e=f.inject(Q1);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function gv(e){const t=f.inject(Q1);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${f.useId()}`,r=Ur("useLayoutItem");f.provide(MY,{id:n});const a=f.shallowRef(!1);f.onDeactivated(()=>a.value=!0),f.onActivated(()=>a.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:i}=t.register(r,{...e,active:f.computed(()=>a.value?!1:e.active.value),id:n});return f.onBeforeUnmount(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:i}}const RTe=(e,t,n,r)=>{let a={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...a}}];for(const i of e){const l=t.get(i),s=n.get(i),u=r.get(i);if(!l||!s||!u)continue;const c={...a,[l.value]:parseInt(a[l.value],10)+(u.value?parseInt(s.value,10):0)};o.push({id:i,layer:c}),a=c}return o};function NY(e){const t=f.inject(Q1,null),n=f.computed(()=>t?t.rootZIndex.value-100:DY),r=f.ref([]),a=f.reactive(new Map),o=f.reactive(new Map),i=f.reactive(new Map),l=f.reactive(new Map),s=f.reactive(new Map),{resizeRef:u,contentRect:c}=Gl(),d=f.computed(()=>{const x=new Map,T=e.overlaps??[];for(const A of T.filter(E=>E.includes(":"))){const[E,I]=A.split(":");if(!r.value.includes(E)||!r.value.includes(I))continue;const M=a.get(E),N=a.get(I),D=o.get(E),P=o.get(I);!M||!N||!D||!P||(x.set(I,{position:M.value,amount:parseInt(D.value,10)}),x.set(E,{position:N.value,amount:-parseInt(P.value,10)}))}return x}),h=f.computed(()=>{const x=[...new Set([...i.values()].map(A=>A.value))].sort((A,E)=>A-E),T=[];for(const A of x){const E=r.value.filter(I=>i.get(I)?.value===A);T.push(...E)}return RTe(T,a,o,l)}),v=f.computed(()=>!Array.from(s.values()).some(x=>x.value)),p=f.computed(()=>h.value[h.value.length-1].layer),m=f.toRef(()=>({"--v-layout-left":Oe(p.value.left),"--v-layout-right":Oe(p.value.right),"--v-layout-top":Oe(p.value.top),"--v-layout-bottom":Oe(p.value.bottom),...v.value?void 0:{transition:"none"}})),g=f.computed(()=>h.value.slice(1).map((x,T)=>{let{id:A}=x;const{layer:E}=h.value[T],I=o.get(A),M=a.get(A);return{id:A,...E,size:Number(I.value),position:M.value}})),y=x=>g.value.find(T=>T.id===x),b=Ur("createLayout"),w=f.shallowRef(!1);f.onMounted(()=>{w.value=!0}),f.provide(Q1,{register:(x,T)=>{let{id:A,order:E,position:I,layoutSize:M,elementSize:N,active:D,disableTransitions:P,absolute:O}=T;i.set(A,E),a.set(A,I),o.set(A,M),l.set(A,D),P&&s.set(A,P);const R=Og(MY,b?.vnode).indexOf(x);R>-1?r.value.splice(R,0,A):r.value.push(A);const B=f.computed(()=>g.value.findIndex(j=>j.id===A)),z=f.computed(()=>n.value+h.value.length*2-B.value*2),H=f.computed(()=>{const j=I.value==="left"||I.value==="right",U=I.value==="right",Y=I.value==="bottom",Z=N.value??M.value,ne=Z===0?"%":"px",$={[I.value]:0,zIndex:z.value,transform:`translate${j?"X":"Y"}(${(D.value?0:-(Z===0?100:Z))*(U||Y?-1:1)}${ne})`,position:O.value||n.value!==DY?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!w.value)return $;const ae=g.value[B.value];ae||Ea(`[Vuetify] Could not find layout item "${A}"`);const de=d.value.get(A);return de&&(ae[de.position]+=de.amount),{...$,height:j?`calc(100% - ${ae.top}px - ${ae.bottom}px)`:N.value?`${N.value}px`:void 0,left:U?void 0:`${ae.left}px`,right:U?`${ae.right}px`:void 0,top:I.value!=="bottom"?`${ae.top}px`:void 0,bottom:I.value!=="top"?`${ae.bottom}px`:void 0,width:j?N.value?`${N.value}px`:void 0:`calc(100% - ${ae.left}px - ${ae.right}px)`}}),G=f.computed(()=>({zIndex:z.value-1}));return{layoutItemStyles:H,layoutItemScrimStyles:G,zIndex:z}},unregister:x=>{i.delete(x),a.delete(x),o.delete(x),l.delete(x),s.delete(x),r.value=r.value.filter(T=>T!==x)},mainRect:p,mainStyles:m,getLayoutItem:y,items:g,layoutRect:c,rootZIndex:n});const S=f.toRef(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),_=f.toRef(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:S,layoutStyles:_,getLayoutItem:y,items:g,layoutRect:c,layoutRef:u}}function qa(e,t){let n;function r(){n=f.effectScope(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}f.watch(e,a=>{a&&!n?r():a||(n?.stop(),n=void 0)},{immediate:!0}),f.onScopeDispose(()=>{n?.stop()})}function ot(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const o=Ur("useProxiedModel"),i=f.ref(e[t]!==void 0?e[t]:n),l=hv(t),u=l!==t?f.computed(()=>(e[t],!!((o.vnode.props?.hasOwnProperty(t)||o.vnode.props?.hasOwnProperty(l))&&(o.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||o.vnode.props?.hasOwnProperty(`onUpdate:${l}`))))):f.computed(()=>(e[t],!!(o.vnode.props?.hasOwnProperty(t)&&o.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));qa(()=>!u.value,()=>{f.watch(()=>e[t],d=>{i.value=d})});const c=f.computed({get(){const d=e[t];return r(u.value?d:i.value)},set(d){const h=a(d),v=f.toRaw(u.value?e[t]:i.value);v===h||r(v)===d||(i.value=h,o?.emit(`update:${t}`,h))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?e[t]:i.value}),c}const DP={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",notAllowed:"Value is not allowed"},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"},command:{search:"Type a command or search..."},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"}}},LY="$vuetify.",OY=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),RY=(e,t,n)=>function(r){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;inew Intl.NumberFormat([e.value,t.value],r).format(n)}function BY(e,t){return VP(e,t)(.1).includes(",")?",":"."}function PP(e,t,n){const r=ot(e,t,e[t]??n.value);return r.value=e[t]??n.value,f.watch(n,a=>{e[t]==null&&(r.value=n.value)}),r}function FY(e){return t=>{const n=PP(t,"locale",e.current),r=PP(t,"fallback",e.fallback),a=PP(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,decimalSeparator:f.toRef(()=>BY(n,r)),t:RY(n,r,a),n:VP(n,r),provide:FY({current:n,fallback:r,messages:a})}}}function BTe(e){const t=f.shallowRef(e?.locale??"en"),n=f.shallowRef(e?.fallback??"en"),r=f.ref({en:DP,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:f.toRef(()=>e?.decimalSeparator??BY(t,n)),t:RY(t,n,r),n:VP(t,n),provide:FY({current:t,fallback:n,messages:r})}}const Wg=Symbol.for("vuetify:locale");function FTe(e){return e.name!=null}function HTe(e){const t=e?.adapter&&FTe(e?.adapter)?e?.adapter:BTe(e),n=WTe(t,e);return{...t,...n}}function An(){const e=f.inject(Wg);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function HY(e){const t=f.inject(Wg);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),r=GTe(n,t.rtl,e),a={...n,...r};return f.provide(Wg,a),a}function zTe(){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 WTe(e,t){const n=f.ref(t?.rtl??zTe()),r=f.computed(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:f.toRef(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function GTe(e,t,n){const r=f.computed(()=>n.rtl??t.value[e.current.value]??!1);return{isRtl:r,rtl:t,rtlClasses:f.toRef(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function ta(){const e=f.inject(Wg);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const q1=Symbol.for("vuetify:theme"),pn=ie({theme:String},"theme");function zY(){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 UTe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zY();const t=zY();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,a]of Object.entries(e.themes??{})){const o=a.dark||r==="dark"?t.themes?.dark:t.themes?.light;n[r]=So(o,a)}return So(t,{...e,themes:n})}function yv(e,t,n,r){e.push(`${XTe(t,r)} { `,...n.map(a=>` ${a}; `),`} -`)}function HY(e,t){const n=e.dark?2:1,r=e.dark?1:2,a=[];for(const[o,i]of Object.entries(e.colors)){const l=sl(i);a.push(`--${t}theme-${o}: ${l.r},${l.g},${l.b}`),o.startsWith("on-")||a.push(`--${t}theme-${o}-overlay-multiplier: ${_P(i)>.18?n:r}`)}for(const[o,i]of Object.entries(e.variables)){const l=typeof i=="string"&&i.startsWith("#")?sl(i):void 0,s=l?`${l.r}, ${l.g}, ${l.b}`:void 0;a.push(`--${t}${o}: ${s??i}`)}return a}function UTe(e,t,n){const r={};if(n)for(const a of["lighten","darken"]){const o=a==="lighten"?STe:xTe;for(const i of wu(n[a],1))r[`${e}-${a}-${i}`]=SY(o(sl(t),i))}return r}function YTe(e,t){if(!t)return{};let n={};for(const r of t.colors){const a=e[r];a&&(n={...n,...UTe(r,a,t)})}return n}function jTe(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,a=sl(e[n]);t[r]=_Y(a)}return t}function KTe(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function XTe(e,t,n){const r=ZTe(e,t);r&&(r.innerHTML=n)}function ZTe(e,t){if(!Bn)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 JTe(e){const t=GTe(e),n=f.shallowRef(t.defaultTheme),r=f.ref(t.themes),a=f.shallowRef("light"),o=f.computed({get(){return n.value==="system"?a.value:n.value},set(y){n.value=y}}),i=f.computed(()=>{const y={};for(const[b,w]of Object.entries(r.value)){const S={...w.colors,...YTe(w.colors,t.variations)};y[b]={...w,colors:{...S,...jTe(S)}}}return y}),l=f.toRef(()=>i.value[o.value]),s=f.toRef(()=>n.value==="system"),u=f.computed(()=>{const y=[],b=t.unimportant?"":" !important",w=t.scoped?t.prefix:"";l.value?.dark&&bv(y,":root",["color-scheme: dark"],t.scope),bv(y,":root",HY(l.value,t.prefix),t.scope);for(const[_,x]of Object.entries(i.value))bv(y,`.${t.prefix}theme--${_}`,[`color-scheme: ${x.dark?"dark":"normal"}`,...HY(x,t.prefix)],t.scope);if(t.utilities){const _=[],x=[],T=new Set(Object.values(i.value).flatMap(A=>Object.keys(A.colors)));for(const A of T)A.startsWith("on-")?bv(x,`.${A}`,[`color: rgb(var(--${t.prefix}theme-${A}))${b}`],t.scope):(bv(_,`.${w}bg-${A}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${A}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${A}))${b}`,`color: rgb(var(--${t.prefix}theme-on-${A}))${b}`],t.scope),bv(x,`.${w}text-${A}`,[`color: rgb(var(--${t.prefix}theme-${A}))${b}`],t.scope),bv(x,`.${w}border-${A}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${A})`],t.scope));t.layers?y.push(`@layer background { +`)}function WY(e,t){const n=e.dark?2:1,r=e.dark?1:2,a=[];for(const[o,i]of Object.entries(e.colors)){const l=ll(i);a.push(`--${t}theme-${o}: ${l.r},${l.g},${l.b}`),o.startsWith("on-")||a.push(`--${t}theme-${o}-overlay-multiplier: ${EP(i)>.18?n:r}`)}for(const[o,i]of Object.entries(e.variables)){const l=typeof i=="string"&&i.startsWith("#")?ll(i):void 0,s=l?`${l.r}, ${l.g}, ${l.b}`:void 0;a.push(`--${t}${o}: ${s??i}`)}return a}function YTe(e,t,n){const r={};if(n)for(const a of["lighten","darken"]){const o=a==="lighten"?xTe:CTe;for(const i of wu(n[a],1))r[`${e}-${a}-${i}`]=CY(o(ll(t),i))}return r}function jTe(e,t){if(!t)return{};let n={};for(const r of t.colors){const a=e[r];a&&(n={...n,...YTe(r,a,t)})}return n}function KTe(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,a=ll(e[n]);t[r]=kY(a)}return t}function XTe(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function ZTe(e,t,n){const r=JTe(e,t);r&&(r.innerHTML=n)}function JTe(e,t){if(!Bn)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 QTe(e){const t=UTe(e),n=f.shallowRef(t.defaultTheme),r=f.ref(t.themes),a=f.shallowRef("light"),o=f.computed({get(){return n.value==="system"?a.value:n.value},set(y){n.value=y}}),i=f.computed(()=>{const y={};for(const[b,w]of Object.entries(r.value)){const S={...w.colors,...jTe(w.colors,t.variations)};y[b]={...w,colors:{...S,...KTe(S)}}}return y}),l=f.toRef(()=>i.value[o.value]),s=f.toRef(()=>n.value==="system"),u=f.computed(()=>{const y=[],b=t.unimportant?"":" !important",w=t.scoped?t.prefix:"";l.value?.dark&&yv(y,":root",["color-scheme: dark"],t.scope),yv(y,":root",WY(l.value,t.prefix),t.scope);for(const[_,x]of Object.entries(i.value))yv(y,`.${t.prefix}theme--${_}`,[`color-scheme: ${x.dark?"dark":"normal"}`,...WY(x,t.prefix)],t.scope);if(t.utilities){const _=[],x=[],T=new Set(Object.values(i.value).flatMap(A=>Object.keys(A.colors)));for(const A of T)A.startsWith("on-")?yv(x,`.${A}`,[`color: rgb(var(--${t.prefix}theme-${A}))${b}`],t.scope):(yv(_,`.${w}bg-${A}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${A}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${A}))${b}`,`color: rgb(var(--${t.prefix}theme-on-${A}))${b}`],t.scope),yv(x,`.${w}text-${A}`,[`color: rgb(var(--${t.prefix}theme-${A}))${b}`],t.scope),yv(x,`.${w}border-${A}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${A})`],t.scope));t.layers?y.push(`@layer background { `,..._.map(A=>` ${A}`),`} `,`@layer foreground { `,...x.map(A=>` ${A}`),`} `):y.push(..._,...x)}let S=y.map((_,x)=>x===0?_:` ${_}`).join("");return t.layers&&(S=`@layer vuetify.theme { `+y.map(_=>` ${_}`).join("")+` -}`),S}),c=f.toRef(()=>t.isDisabled?void 0:`${t.prefix}theme--${o.value}`),d=f.toRef(()=>Object.keys(i.value));if(sP){let b=function(){a.value=y.matches?"dark":"light"};const y=window.matchMedia("(prefers-color-scheme: dark)");b(),y.addEventListener("change",b,{passive:!0}),f.getCurrentScope()&&f.onScopeDispose(()=>{y.removeEventListener("change",b)})}function h(y){if(t.isDisabled)return;const b=y._context.provides.usehead;if(b){let w=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(b.push){const S=b.push(w);Bn&&f.watch(u,()=>{S.patch(w)})}else Bn?(b.addHeadObjs(f.toRef(w)),f.watchEffect(()=>b.updateDOM())):b.addHeadObjs(w())}else{let w=function(){XTe(t.stylesheetId,t.cspNonce,u.value)};Bn?f.watch(u,w,{immediate:!0}):w()}}function v(y){if(y!=="system"&&!d.value.includes(y)){Aa(`Theme "${y}" not found on the Vuetify theme instance`);return}o.value=y}function p(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const b=y.indexOf(o.value),w=b===-1?0:(b+1)%y.length;v(y[w])}function m(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(y)}const g=new Proxy(o,{get(y,b){return Reflect.get(y,b)},set(y,b,w){return b==="value"&&O9(`theme.global.name.value = ${w}`,`theme.change('${w}')`),Reflect.set(y,b,w)}});return{install:h,change:v,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:s,name:o,themes:r,current:l,computedThemes:i,prefix:t.prefix,themeClasses:c,styles:u,global:{name:g,current:l}}}function In(e){Gr("provideTheme");const t=f.inject(Q1,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=f.toRef(()=>e.theme??t.name.value),r=f.toRef(()=>t.themes.value[n.value]),a=f.toRef(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),o={...t,name:n,current:r,themeClasses:a};return f.provide(Q1,o),o}function wv(){Gr("useTheme");const e=f.inject(Q1,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}const QTe=ie({...at(),...Kt(MY(),["fullHeight"]),...pn()},"VApp"),qTe=Ce()({name:"VApp",props:QTe(),setup(e,t){let{slots:n}=t;const r=In(e),{layoutClasses:a,getLayoutItem:o,items:i,layoutRef:l}=VY({...e,fullHeight:!0}),{rtlClasses:s}=ea();return ke(()=>f.createElementVNode("div",{ref:l,class:f.normalizeClass(["v-application",r.themeClasses.value,a.value,s.value,e.class]),style:f.normalizeStyle([e.style])},[f.createElementVNode("div",{class:"v-application__wrap"},[n.default?.()])])),{getLayoutItem:o,items:i,theme:r}}}),Ft=ie({tag:{type:[String,Object,Function],default:"div"}},"tag"),zY=ie({text:String,...at(),...Ft()},"VToolbarTitle"),MP=Ce()({name:"VToolbarTitle",props:zY(),setup(e,t){let{slots:n}=t;return ke(()=>{const r=!!(n.default||n.text||e.text);return f.createVNode(e.tag,{class:f.normalizeClass(["v-toolbar-title",e.class]),style:f.normalizeStyle(e.style)},{default:()=>[r&&f.createElementVNode("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})}),{}}}),$Te=ie({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function cl(e,t,n){return Ce()({name:e,props:$Te({mode:n,origin:t}),setup(r,a){let{slots:o}=a;const i={onBeforeEnter(l){r.origin&&(l.style.transformOrigin=r.origin)},onLeave(l){if(r.leaveAbsolute){const{offsetTop:s,offsetLeft:u,offsetWidth:c,offsetHeight:d}=l;l._transitionInitialStyles={position:l.style.position,top:l.style.top,left:l.style.left,width:l.style.width,height:l.style.height},l.style.position="absolute",l.style.top=`${s}px`,l.style.left=`${u}px`,l.style.width=`${c}px`,l.style.height=`${d}px`}r.hideOnLeave&&l.style.setProperty("display","none","important")},onAfterLeave(l){if(r.leaveAbsolute&&l?._transitionInitialStyles){const{position:s,top:u,left:c,width:d,height:h}=l._transitionInitialStyles;delete l._transitionInitialStyles,l.style.position=s||"",l.style.top=u||"",l.style.left=c||"",l.style.width=d||"",l.style.height=h||""}}};return()=>{const l=r.group?f.TransitionGroup:f.Transition;return f.h(l,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:i},o.default)}}})}function DP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Ce()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:bu()},group:Boolean,hideOnLeave:Boolean},setup(r,a){let{slots:o}=a;const i=r.group?f.TransitionGroup:f.Transition;return()=>f.h(i,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:{...t,onLeave:l=>{r.hideOnLeave?l.style.setProperty("display","none","important"):t.onLeave?.(l)}}},o.default)}})}function VP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return{onBeforeEnter(a){a._parent=a.parentNode,a._initialStyle={transition:a.style.transition,overflow:a.style.overflow,width:a.style.width,height:a.style.height}},onEnter(a){const o=a._initialStyle;if(!o)return;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const i=`${a.offsetWidth}px`,l=`${a.offsetHeight}px`;["x","both"].includes(t)&&(a.style.width="0"),["y","both"].includes(t)&&(a.style.height="0"),a.offsetHeight,a.style.transition=o.transition,e&&a._parent&&a._parent.classList.add(e),requestAnimationFrame(()=>{["x","both"].includes(t)&&(a.style.width=i),["y","both"].includes(t)&&(a.style.height=l)})},onAfterEnter:r,onEnterCancelled:r,onLeave(a){a._initialStyle={transition:"",overflow:a.style.overflow,width:a.style.width,height:a.style.height},a.style.overflow="hidden",["x","both"].includes(t)&&(a.style.width=`${a.offsetWidth}px`),["y","both"].includes(t)&&(a.style.height=`${a.offsetHeight}px`),a.offsetHeight,requestAnimationFrame(()=>{["x","both"].includes(t)&&(a.style.width="0"),["y","both"].includes(t)&&(a.style.height="0")})},onAfterLeave:n,onLeaveCancelled:n};function n(a){e&&a._parent&&a._parent.classList.remove(e),r(a)}function r(a){if(!a._initialStyle)return;const{width:o,height:i}=a._initialStyle;a.style.overflow=a._initialStyle.overflow,o!=null&&["x","both"].includes(t)&&(a.style.width=o),i!=null&&["y","both"].includes(t)&&(a.style.height=i),delete a._initialStyle}}const eke=ie({target:[Object,Array]},"v-dialog-transition"),PP=new WeakMap,y_=Ce()({name:"VDialogTransition",props:eke(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,o){await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),a.style.visibility="";const i=GY(e.target,a),{x:l,y:s,sx:u,sy:c,speed:d}=i;if(PP.set(a,i),bu())Oc(a,[{opacity:0},{}],{duration:125*d,easing:kY}).finished.then(()=>o());else{const h=Oc(a,[{transform:`translate(${l}px, ${s}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*d,easing:kY});WY(a)?.forEach(v=>{Oc(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*d,easing:Z1})}),h.finished.then(()=>o())}},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,o){await new Promise(h=>requestAnimationFrame(h));let i;!PP.has(a)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?i=GY(e.target,a):i=PP.get(a);const{x:l,y:s,sx:u,sy:c,speed:d}=i;bu()?Oc(a,[{},{opacity:0}],{duration:85*d,easing:AY}).finished.then(()=>o()):(Oc(a,[{},{transform:`translate(${l}px, ${s}px) scale(${u}, ${c})`,opacity:0}],{duration:125*d,easing:AY}).finished.then(()=>o()),WY(a)?.forEach(v=>{Oc(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*d,easing:Z1})}))},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?f.createVNode(f.Transition,f.mergeProps({name:"dialog-transition"},r,{css:!1}),n):f.createVNode(f.Transition,{name:"dialog-transition"},n)}});function WY(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function GY(e,t){const n=oY(e),r=bP(t),[a,o]=getComputedStyle(t).transformOrigin.split(" ").map(y=>parseFloat(y)),[i,l]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let s=n.left+n.width/2;i==="left"||l==="left"?s-=n.width/2:(i==="right"||l==="right")&&(s+=n.width/2);let u=n.top+n.height/2;i==="top"||l==="top"?u-=n.height/2:(i==="bottom"||l==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,h=Math.max(1,c,d),v=c/h||0,p=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),g=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:s-(a+r.left),y:u-(o+r.top),sx:v,sy:p,speed:g}}const tke=cl("fab-transition","center center","out-in"),nke=cl("dialog-bottom-transition"),rke=cl("dialog-top-transition"),q1=cl("fade-transition"),NP=cl("scale-transition"),ake=cl("scroll-x-transition"),oke=cl("scroll-x-reverse-transition"),ike=cl("scroll-y-transition"),lke=cl("scroll-y-reverse-transition"),ske=cl("slide-x-transition"),uke=cl("slide-x-reverse-transition"),LP=cl("slide-y-transition"),cke=cl("slide-y-reverse-transition"),b_=DP("expand-transition",VP()),OP=DP("expand-x-transition",VP("","x")),dke=DP("expand-both-transition",VP("","both")),fke=ie({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Ht=Ce(!1)({name:"VDefaultsProvider",props:fke(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:o,root:i,scoped:l}=f.toRefs(e);return Cr(r,{reset:o,root:i,scoped:l,disabled:a}),()=>n.default?.()}}),Ur=ie({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Yr(e){return{dimensionStyles:f.computed(()=>{const n={},r=Re(e.height),a=Re(e.maxHeight),o=Re(e.maxWidth),i=Re(e.minHeight),l=Re(e.minWidth),s=Re(e.width);return r!=null&&(n.height=r),a!=null&&(n.maxHeight=a),o!=null&&(n.maxWidth=o),i!=null&&(n.minHeight=i),l!=null&&(n.minWidth=l),s!=null&&(n.width=s),n})}}function hke(e){return{aspectStyles:f.computed(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const UY=ie({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...at(),...Ur()},"VResponsive"),RP=Ce()({name:"VResponsive",props:UY(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=hke(e),{dimensionStyles:a}=Yr(e);return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:f.normalizeStyle([a.value,e.style])},[f.createElementVNode("div",{class:"v-responsive__sizer",style:f.normalizeStyle(r.value)},null),n.additional?.(),n.default&&f.createElementVNode("div",{class:f.normalizeClass(["v-responsive__content",e.contentClass])},[n.default()])])),{}}});function BP(e){return vP(()=>{const{class:t,style:n}=YY(e);return{colorClasses:t,colorStyles:n}})}function za(e){const{colorClasses:t,colorStyles:n}=BP(()=>({text:f.toValue(e)}));return{textColorClasses:t,textColorStyles:n}}function Ln(e){const{colorClasses:t,colorStyles:n}=BP(()=>({background:f.toValue(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function vke(e){return{text:typeof e.text=="string"?e.text.replace(/^text-/,""):e.text,background:typeof e.background=="string"?e.background.replace(/^bg-/,""):e.background}}function YY(e){const t=vke(f.toValue(e)),n=[],r={};if(t.background)if(SP(t.background)){if(r.backgroundColor=t.background,!t.text&&gTe(t.background)){const a=sl(t.background);if(a.a==null||a.a===1){const o=_Y(a);r.color=o,r.caretColor=o}}}else n.push(`bg-${t.background}`);return t.text&&(SP(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const qn=ie({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function ur(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{roundedClasses:f.computed(()=>{const r=f.isRef(e)?e.value:e.rounded,a=f.isRef(e)?!1:e.tile,o=[];if(a||r===!1)o.push("rounded-0");else if(r===!0||r==="")o.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))o.push(`rounded-${i}`);return o})}}const Bc=ie({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Wo=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,group:o,...i}=e,{component:l=o?f.TransitionGroup:f.Transition,...s}=fv(r)?r:{};let u;return fv(r)?u=f.mergeProps(s,$_e({disabled:a,group:o}),i):u=f.mergeProps({name:a||!r?"":r},i),f.h(l,u,n)};function jY(e,t){if(!lP)return;const n=t.modifiers||{},r=t.value,{handler:a,options:o}=typeof r=="object"?r:{handler:r,options:{}},i=new IntersectionObserver(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const u=e._observe?.[t.instance.$.uid];if(!u)return;const c=l.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,l,s),c&&n.once?FP(e,t):u.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function FP(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const dl={mounted:jY,unmounted:FP,updated:(e,t)=>{e._observe?.[t.instance.$.uid]&&(FP(e,t),jY(e,t))}},KY=ie({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,imageClass:null,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,...UY(),...at(),...qn(),...Bc()},"VImg"),Fc=Ce()({name:"VImg",directives:{vIntersect:dl},props:KY(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{roundedClasses:i}=ur(e),l=Gr("VImg"),s=f.shallowRef(""),u=f.ref(),c=f.shallowRef(e.eager?"loading":"idle"),d=f.shallowRef(),h=f.shallowRef(),v=f.computed(()=>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=f.computed(()=>v.value.aspect||d.value/h.value||0);f.watch(()=>e.src,()=>{m(c.value!=="idle")}),f.watch(p,(N,D)=>{!N&&D&&u.value&&S(u.value)}),f.onBeforeMount(()=>m());function m(N){if(!(e.eager&&N)&&!(lP&&!N&&!e.eager)){if(c.value="loading",v.value.lazySrc){const D=new Image;D.src=v.value.lazySrc,S(D,null)}v.value.src&&f.nextTick(()=>{n("loadstart",u.value?.currentSrc||v.value.src),setTimeout(()=>{if(!l.isUnmounted)if(u.value?.complete){if(u.value.naturalWidth||y(),c.value==="error")return;p.value||S(u.value,null),c.value==="loading"&&g()}else p.value||S(u.value),b()})})}}function g(){l.isUnmounted||(b(),S(u.value),c.value="loaded",n("load",u.value?.currentSrc||v.value.src))}function y(){l.isUnmounted||(c.value="error",n("error",u.value?.currentSrc||v.value.src))}function b(){const N=u.value;N&&(s.value=N.currentSrc||N.src)}let w=-1;f.onBeforeUnmount(()=>{clearTimeout(w)});function S(N){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(w),l.isUnmounted)return;const{naturalHeight:O,naturalWidth:L}=N;O||L?(d.value=L,h.value=O):!N.complete&&c.value==="loading"&&D!=null?w=window.setTimeout(P,D):(N.currentSrc.endsWith(".svg")||N.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,h.value=1)};P()}const _=f.toRef(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),x=()=>{if(!v.value.src||c.value==="idle")return null;const N=f.createElementVNode("img",{class:f.normalizeClass(["v-img__img",_.value,e.imageClass]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.src,srcset:v.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:g,onError:y},null),D=r.sources?.();return f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[f.withDirectives(D?f.createElementVNode("picture",{class:"v-img__picture"},[D,N]):N,[[f.vShow,c.value==="loaded"]])]})},T=()=>f.createVNode(Wo,{transition:e.transition},{default:()=>[v.value.lazySrc&&c.value!=="loaded"&&f.createElementVNode("img",{class:f.normalizeClass(["v-img__img","v-img__img--preload",_.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),A=()=>r.placeholder?f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&f.createElementVNode("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,E=()=>r.error?f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&f.createElementVNode("div",{class:"v-img__error"},[r.error()])]}):null,I=()=>e.gradient?f.createElementVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,M=f.shallowRef(!1);{const N=f.watch(p,D=>{D&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{M.value=!0})}),N())})}return ke(()=>{const N=RP.filterProps(e);return f.withDirectives(f.createVNode(RP,f.mergeProps({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!M.value,"v-img--fit-content":e.width==="fit-content"},a.value,i.value,e.class],style:[{width:Re(e.width==="auto"?d.value:e.width)},o.value,e.style]},N,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(x,null,null),f.createVNode(T,null,null),f.createVNode(I,null,null),f.createVNode(A,null,null),f.createVNode(E,null,null)]),default:r.default}),[[dl,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:u,state:c,naturalWidth:d,naturalHeight:h}}}),wo=ie({border:[Boolean,Number,String]},"border");function Go(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{borderClasses:f.computed(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(a=>`border-${a}`):[]})}}const jr=ie({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function va(e){return{elevationClasses:f.toRef(()=>{const n=f.isRef(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const XY={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},_u=ie({location:String},"location");function lf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=ea();return{locationStyles:f.computed(()=>{if(!e.location)return{};const{side:o,align:i}=pP(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function l(u){return n?n(u):0}const s={};return o!=="center"&&(t?s[XY[o]]=`calc(100% - ${l(o)}px)`:s[o]=0),i!=="center"?t?s[XY[i]]=`calc(100% - ${l(i)}px)`:s[i]=0:(o==="center"?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),s})}}const pke=[null,"prominent","default","comfortable","compact"],ZY=ie({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>pke.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...wo(),...at(),...jr(),..._u(),...qn(),...Ft({tag:"header"}),...pn()},"VToolbar"),Hc=Ce()({name:"VToolbar",props:ZY(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.color),{borderClasses:o}=Go(e),{elevationClasses:i}=va(e),{locationStyles:l}=lf(e),{roundedClasses:s}=ur(e),{themeClasses:u}=In(e),{rtlClasses:c}=ea(),d=f.shallowRef(e.extended===null?!!n.extension?.():e.extended),h=f.computed(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=f.computed(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Cr({VBtn:{variant:"text"}}),ke(()=>{const p=!!(e.title||n.title),m=!!(n.image||e.image),g=n.extension?.();return d.value=e.extended===null?!!g:e.extended,f.createVNode(e.tag,{class:f.normalizeClass(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,o.value,i.value,s.value,u.value,c.value,e.class]),style:f.normalizeStyle([a.value,l.value,e.style])},{default:()=>[m&&f.createElementVNode("div",{key:"image",class:"v-toolbar__image"},[n.image?f.createVNode(Ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):f.createVNode(Fc,{key:"image-img",cover:!0,src:e.image},null)]),f.createVNode(Ht,{defaults:{VTabs:{height:Re(h.value)}}},{default:()=>[f.createElementVNode("div",{class:"v-toolbar__content",style:{height:Re(h.value)}},[n.prepend&&f.createElementVNode("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),p&&f.createVNode(MP,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&f.createElementVNode("div",{class:"v-toolbar__append"},[n.append?.()])])]}),f.createVNode(Ht,{defaults:{VTabs:{height:Re(v.value)}}},{default:()=>[f.createVNode(b_,null,{default:()=>[d.value&&f.createElementVNode("div",{class:"v-toolbar__extension",style:{height:Re(v.value)}},[g])]})]})]})}),{contentHeight:h,extensionHeight:v}}}),mke=ie({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function gke(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n,layoutSize:r}=t;let a=0,o=0;const i=f.ref(null),l=f.shallowRef(0),s=f.shallowRef(0),u=f.shallowRef(0),c=f.shallowRef(!1),d=f.shallowRef(!1),h=f.shallowRef(!1),v=f.shallowRef(!1),p=f.shallowRef(!0),m=f.computed(()=>Number(e.scrollThreshold)),g=f.computed(()=>Fn((m.value-l.value)/m.value||0));function y(_){const x="window"in _?window.innerHeight:_.clientHeight,T="window"in _?document.documentElement.scrollHeight:_.scrollHeight;return{clientHeight:x,scrollHeight:T}}function b(){const _=i.value;if(!_)return;const{clientHeight:x,scrollHeight:T}=y(_),A=T-x,E=r?.value||0,I=m.value+E;p.value=A>I}function w(){b()}function S(){const _=i.value;if(!_||n&&!n.value)return;a=l.value,l.value="window"in _?_.pageYOffset:_.scrollTop;const x=_ instanceof Window?document.documentElement.scrollHeight:_.scrollHeight;o!==x&&(x>o&&b(),o=x),d.value=l.value=A-5;!d.value&&E&&l.value>=m.value&&p.value&&(v.value=!0);const I=Math.abs(l.value-a)>100,M=l.value<=5;(d.value&&a-l.value>1&&!E||I&&l.value{s.value=s.value||l.value}),f.watch(c,()=>{s.value=0}),f.onMounted(()=>{f.watch(()=>e.scrollTarget,_=>{const x=_?document.querySelector(_):window;if(!x){Aa(`Unable to locate element with identifier ${_}`);return}x!==i.value&&(i.value?.removeEventListener("scroll",S),i.value=x,i.value.addEventListener("scroll",S,{passive:!0}),Promise.resolve().then(()=>{b()}))},{immediate:!0}),window.addEventListener("resize",w,{passive:!0})}),f.onBeforeUnmount(()=>{i.value?.removeEventListener("scroll",S),window.removeEventListener("resize",w)}),n&&f.watch(n,S,{immediate:!0}),{scrollThreshold:m,currentScroll:l,currentThreshold:u,isScrollActive:c,scrollRatio:g,isScrollingUp:d,savedScroll:s,isAtBottom:h,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:p}}function Sv(){const e=f.shallowRef(!1);return f.onMounted(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:f.toRef(()=>e.value?void 0:{transition:"none !important"}),isBooted:f.readonly(e)}}const yke=ie({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Kt(ZY(),["location"]),...gv(),...mke(),height:{type:[Number,String],default:64}},"VAppBar"),bke=Ce()({name:"VAppBar",props:yke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),a=ot(e,"modelValue"),o=f.computed(()=>{const x=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:x.has("hide"),fullyHide:x.has("fully-hide"),inverted:x.has("inverted"),collapse:x.has("collapse"),elevate:x.has("elevate"),fadeImage:x.has("fade-image")}}),i=f.computed(()=>{const x=o.value;return x.hide||x.fullyHide||x.inverted||x.collapse||x.elevate||x.fadeImage||!a.value}),l=f.computed(()=>{const x=r.value?.contentHeight??0,T=r.value?.extensionHeight??0;return x+T}),{currentScroll:s,scrollThreshold:u,isScrollingUp:c,scrollRatio:d,isAtBottom:h,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:p}=gke(e,{canScroll:i,layoutSize:l}),m=f.toRef(()=>o.value.hide||o.value.fullyHide),g=f.computed(()=>e.collapse||o.value.collapse&&(o.value.inverted?d.value>0:d.value===0)),y=f.computed(()=>e.flat||o.value.fullyHide&&!a.value||o.value.elevate&&(o.value.inverted?s.value>0:s.value===0)),b=f.computed(()=>o.value.fadeImage?o.value.inverted?1-d.value:d.value:void 0),w=f.computed(()=>{if(o.value.hide&&o.value.inverted)return 0;const x=r.value?.contentHeight??0,T=r.value?.extensionHeight??0;return m.value?s.value!!e.scrollBehavior,()=>{f.watchEffect(()=>{if(!m.value){a.value=!0;return}if(o.value.inverted){a.value=s.value>u.value;return}if(!p.value){a.value=!0;return}if(v.value){a.value=!1;return}a.value=c.value&&!h.value||s.valueparseInt(e.order,10)),position:f.toRef(()=>e.location),layoutSize:w,elementSize:f.shallowRef(void 0),active:a,absolute:f.toRef(()=>e.absolute)});return ke(()=>{const x=Kt(Hc.filterProps(e),["location"]);return f.createVNode(Hc,f.mergeProps({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{..._.value,"--v-toolbar-image-opacity":b.value,height:void 0,...S.value},e.style]},x,{collapse:g.value,flat:y.value}),n)}),{}}}),wke=[null,"default","comfortable","compact"],_r=ie({density:{type:String,default:"default",validator:e=>wke.includes(e)}},"density");function $a(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{densityClasses:f.toRef(()=>`${t}--density-${e.density}`)}}const Ske=["elevated","flat","tonal","outlined","text","plain"];function zc(e,t){return f.createElementVNode(f.Fragment,null,[e&&f.createElementVNode("span",{key:"overlay",class:f.normalizeClass(`${t}__overlay`)},null),f.createElementVNode("span",{key:"underlay",class:f.normalizeClass(`${t}__underlay`)},null)])}const fl=ie({color:String,variant:{type:String,default:"elevated",validator:e=>Ske.includes(e)}},"variant");function Wc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=f.toRef(()=>{const{variant:o}=f.toValue(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:a}=BP(()=>{const{variant:o,color:i}=f.toValue(e);return{[["elevated","flat"].includes(o)?"background":"text"]:i}});return{colorClasses:r,colorStyles:a,variantClasses:n}}const JY=ie({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...wo(),...at(),..._r(),...jr(),...qn(),...Ft(),...pn(),...fl()},"VBtnGroup"),w_=Ce()({name:"VBtnGroup",props:JY(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{densityClasses:a}=$a(e),{borderClasses:o}=Go(e),{elevationClasses:i}=va(e),{roundedClasses:l}=ur(e);Cr({VBtn:{height:f.toRef(()=>e.direction==="horizontal"?"auto":null),baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),density:f.toRef(()=>e.density),flat:!0,variant:f.toRef(()=>e.variant)}}),ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,o.value,a.value,i.value,l.value,e.class]),style:f.normalizeStyle(e.style)},n))}}),xv=ie({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Cv=ie({value:null,disabled:Boolean,selectedClass:String},"group-item");function sf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Gr("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=f.useId();f.provide(Symbol.for(`${t.description}:id`),a);const o=f.inject(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const i=f.toRef(()=>e.value),l=f.computed(()=>!!(o.disabled.value||e.disabled));function s(){o?.register({id:a,value:i,disabled:l},r)}function u(){o?.unregister(a)}s(),f.onBeforeUnmount(()=>u());const c=f.computed(()=>o.isSelected(a)),d=f.computed(()=>o.items.value[0].id===a),h=f.computed(()=>o.items.value[o.items.value.length-1].id===a),v=f.computed(()=>c.value&&[o.selectedClass.value,e.selectedClass]);return f.watch(c,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:a,isSelected:c,isFirst:d,isLast:h,toggle:()=>o.select(a,!c.value),select:p=>o.select(a,p),selectedClass:v,value:i,disabled:l,group:o,register:s,unregister:u}}function uf(e,t){let n=!1;const r=f.reactive([]),a=ot(e,"modelValue",[],h=>h===void 0?[]:QY(r,h===null?[null]:jn(h)),h=>{const v=Cke(r,h);return e.multiple?v:v[0]}),o=Gr("useGroup");function i(h,v){const p=h,m=Symbol.for(`${t.description}:id`),y=Pg(m,o?.vnode).indexOf(v);f.unref(p.value)===void 0&&(p.value=y,p.useIndexAsValue=!0),y>-1?r.splice(y,0,p):r.push(p)}function l(h){if(n)return;s();const v=r.findIndex(p=>p.id===h);r.splice(v,1)}function s(){const h=r.find(v=>!v.disabled);h&&e.mandatory==="force"&&!a.value.length&&(a.value=[h.id])}f.onMounted(()=>{s()}),f.onBeforeUnmount(()=>{n=!0}),f.onUpdated(()=>{for(let h=0;hm.id===h);if(!(v&&p?.disabled))if(e.multiple){const m=a.value.slice(),g=m.findIndex(b=>b===h),y=~g;if(v=v??!y,y&&e.mandatory&&m.length<=1||!y&&e.max!=null&&m.length+1>e.max)return;g<0&&v?m.push(h):g>=0&&!v&&m.splice(g,1),a.value=m}else{const m=a.value.includes(h);if(e.mandatory&&m||!m&&!v)return;a.value=v??!m?[h]:[]}}function c(h){if(e.multiple&&Aa('This method is not supported when using "multiple" prop'),a.value.length){const v=a.value[0],p=r.findIndex(y=>y.id===v);let m=(p+h)%r.length,g=r[m];for(;g.disabled&&m!==p;)m=(m+h)%r.length,g=r[m];if(g.disabled)return;a.value=[r[m].id]}else{const v=r.find(p=>!p.disabled);v&&(a.value=[v.id])}}const d={register:i,unregister:l,selected:a,select:u,disabled:f.toRef(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:h=>a.value.includes(h),selectedClass:f.toRef(()=>e.selectedClass),items:f.toRef(()=>r),getItemIndex:h=>xke(r,h)};return f.provide(t,d),d}function xke(e,t){const n=QY(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function QY(e,t){const n=[];return t.forEach(r=>{const a=e.find(i=>Ea(r,i.value)),o=e[r];a?.value!==void 0?n.push(a.id):o?.useIndexAsValue&&n.push(o.id)}),n}function Cke(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(o=>o.id===r);if(~a){const o=e[a];n.push(o.value!==void 0?o.value:a)}}),n}const HP=Symbol.for("vuetify:v-btn-toggle"),_ke=ie({...JY(),...xv()},"VBtnToggle"),Tke=Ce()({name:"VBtnToggle",props:_ke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:o,select:i,selected:l}=uf(e,HP);return ke(()=>{const s=w_.filterProps(e);return f.createVNode(w_,f.mergeProps({class:["v-btn-toggle",e.class]},s,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:a,prev:o,select:i,selected:l})]})}),{next:a,prev:o,select:i}}}),ut=[String,Function,Object,Array],zP=Symbol.for("vuetify:icons"),S_=ie({icon:{type:ut},tag:{type:[String,Object,Function],required:!0}},"icon"),WP=Ce()({name:"VComponentIcon",props:S_(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return f.createVNode(e.tag,null,{default:()=>[e.icon?f.createVNode(r,null,null):n.default?.()]})}}}),GP=zo({name:"VSvgIcon",inheritAttrs:!1,props:S_(),setup(e,t){let{attrs:n}=t;return()=>f.createVNode(e.tag,f.mergeProps(n,{style:null}),{default:()=>[f.createElementVNode("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)?f.createElementVNode("path",{d:r[0],"fill-opacity":r[1]},null):f.createElementVNode("path",{d:r},null)):f.createElementVNode("path",{d:e.icon},null)])]})}}),kke=zo({name:"VLigatureIcon",props:S_(),setup(e){return()=>f.createVNode(e.tag,null,{default:()=>[e.icon]})}}),UP=zo({name:"VClassIcon",props:S_(),setup(e){return()=>f.createVNode(e.tag,{class:f.normalizeClass(e.icon)},null)}}),Ake=e=>{const t=f.inject(zP);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:f.computed(()=>{const r=f.toValue(e);if(!r)return{component:WP};let a=r;if(typeof a=="string"&&(a=a.trim(),a.startsWith("$")&&(a=t.aliases?.[a.slice(1)])),a||Aa(`Could not find aliased icon "${r}"`),Array.isArray(a))return{component:GP,icon:a};if(typeof a!="string")return{component:WP,icon:a};const o=Object.keys(t.sets).find(s=>typeof a=="string"&&a.startsWith(`${s}:`)),i=o?a.slice(o.length+1):a;return{component:t.sets[o??t.defaultSet].component,icon:i}})}},Eke=["x-small","small","default","large","x-large"],Tu=ie({size:{type:[String,Number],default:"default"}},"size");function Hg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return vP(()=>{const n=e.size;let r,a;return i_(Eke,n)?r=`${t}--size-${n}`:n&&(a={width:Re(n),height:Re(n)}),{sizeClasses:r,sizeStyles:a}})}const Ike=ie({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:ut,opacity:[String,Number],...at(),...Tu(),...Ft({tag:"i"}),...pn()},"VIcon"),St=Ce()({name:"VIcon",props:Ike(),setup(e,t){let{attrs:n,slots:r}=t;const a=f.shallowRef(),{themeClasses:o}=wv(),{iconData:i}=Ake(()=>a.value||e.icon),{sizeClasses:l}=Hg(e),{textColorClasses:s,textColorStyles:u}=za(()=>e.color);return ke(()=>{const c=r.default?.();c&&(a.value=Z9(c).filter(h=>h.type===f.Text&&h.children&&typeof h.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return f.createVNode(i.value.component,{tag:e.tag,icon:i.value.icon,class:f.normalizeClass(["v-icon","notranslate",o.value,l.value,s.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:f.normalizeStyle([{"--v-icon-opacity":e.opacity},l.value?void 0:{fontSize:Re(e.size),height:Re(e.size),width:Re(e.size)},u.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function $1(e,t){const n=f.ref(),r=f.shallowRef(!1);if(lP){const a=new IntersectionObserver(o=>{r.value=!!o.find(i=>i.isIntersecting)},t);f.onScopeDispose(()=>{a.disconnect()}),f.watch(n,(o,i)=>{i&&(a.unobserve(i),r.value=!1),o&&a.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Mke=ie({reveal:{type:[Boolean,Object],default:!1}},"reveal");function Dke(e){const n=f.toRef(()=>typeof e.reveal=="object"?Math.max(0,Number(e.reveal.duration??900)):900),r=f.shallowRef(e.reveal?"initial":"disabled");return f.onMounted(async()=>{e.reveal&&(r.value="initial",await new Promise(a=>requestAnimationFrame(a)),r.value="pending",await new Promise(a=>setTimeout(a,n.value)),r.value="done")}),{duration:n,state:r}}const Vke=ie({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},...at(),...Mke(),...Tu(),...Ft({tag:"div"}),...pn()},"VProgressCircular"),cf=Ce()({name:"VProgressCircular",props:Vke(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,o=f.ref(),{themeClasses:i}=In(e),{sizeClasses:l,sizeStyles:s}=Hg(e),{textColorClasses:u,textColorStyles:c}=za(()=>e.color),{textColorClasses:d,textColorStyles:h}=za(()=>e.bgColor),{intersectionRef:v,isIntersecting:p}=$1(),{resizeRef:m,contentRect:g}=Ul(),{state:y,duration:b}=Dke(e),w=f.toRef(()=>y.value==="initial"?0:Fn(parseFloat(e.modelValue),0,100)),S=f.toRef(()=>Number(e.width)),_=f.toRef(()=>s.value?Number(e.size):g.value?g.value.width:Math.max(S.value,32)),x=f.toRef(()=>r/(1-S.value/_.value)*2),T=f.toRef(()=>S.value/_.value*x.value),A=f.toRef(()=>{const I=(100-w.value)/100*a;return e.rounded&&w.value>0&&w.value<100?Re(Math.min(a-.01,I+T.value)):Re(I)}),E=f.computed(()=>{const I=Number(e.rotate);return e.rounded?I+T.value/2/a*360:I});return f.watchEffect(()=>{v.value=o.value,m.value=o.value}),ke(()=>f.createVNode(e.tag,{ref:o,class:f.normalizeClass(["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"||bu()),"v-progress-circular--revealing":["initial","pending"].includes(y.value)},i.value,l.value,u.value,e.class]),style:f.normalizeStyle([s.value,c.value,{"--progress-reveal-duration":`${b.value}ms`},e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:w.value},{default:()=>[f.createElementVNode("svg",{style:{transform:`rotate(calc(-90deg + ${E.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${x.value} ${x.value}`},[f.createElementVNode("circle",{class:f.normalizeClass(["v-progress-circular__underlay",d.value]),style:f.normalizeStyle(h.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),f.createElementVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":a,"stroke-dashoffset":A.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&f.createElementVNode("div",{class:"v-progress-circular__content"},[n.default({value:w.value})])]})),{}}}),Pke=ie({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function Nke(e,t){const n=f.toRef(()=>!!e.chunkCount||!!e.chunkWidth),r=f.computed(()=>{const l=f.toValue(t);if(!l)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const s=Number(e.chunkCount);return(l-Number(e.chunkGap)*(s-1))/s}),a=f.toRef(()=>Number(e.chunkGap)),o=f.computed(()=>{if(!n.value)return{};const l=Re(a.value),s=Re(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${s}, transparent ${s}, transparent)`,maskSize:`calc(${s} + ${l}) 100%`}});function i(l){const s=f.toValue(t);if(!s)return l;const u=100*a.value/s,c=100*(r.value+a.value)/s,d=Math.floor((l+u)/c);return Fn(0,d*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:o,snapValueToChunk:i}}const Lke=ie({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,...Pke(),...at(),..._u({location:"top"}),...qn(),...Ft(),...pn()},"VProgressLinear"),zg=Ce()({name:"VProgressLinear",props:Lke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),a=ot(e,"modelValue"),{isRtl:o,rtlClasses:i}=ea(),{themeClasses:l}=In(e),{locationStyles:s}=lf(e),{textColorClasses:u,textColorStyles:c}=za(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:h}=Ln(()=>e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:p}=Ln(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:g}=Ln(()=>e.color),{roundedClasses:y}=ur(e),{intersectionRef:b,isIntersecting:w}=$1(),S=f.computed(()=>parseFloat(e.max)),_=f.computed(()=>parseFloat(e.height)),x=f.computed(()=>Fn(parseFloat(e.bufferValue)/S.value*100,0,100)),T=f.computed(()=>Fn(parseFloat(a.value)/S.value*100,0,100)),A=f.computed(()=>o.value!==e.reverse),E=f.computed(()=>e.indeterminate?"fade-transition":"slide-x-transition"),I=f.shallowRef(0),{hasChunks:M,chunksMaskStyles:N,snapValueToChunk:D}=Nke(e,I);qa(M,()=>{const{resizeRef:R}=Ul(B=>I.value=B[0].contentRect.width);f.watchEffect(()=>R.value=r.value)});const P=f.computed(()=>M.value?D(x.value):x.value),O=f.computed(()=>M.value?D(T.value):T.value);function L(R){if(!b.value)return;const{left:B,right:W,width:H}=b.value.getBoundingClientRect(),z=A.value?H-R.clientX+(W-H):R.clientX-B;a.value=Math.round(z/H*S.value)}return f.watchEffect(()=>{b.value=r.value}),ke(()=>f.createVNode(e.tag,{ref:r,class:f.normalizeClass(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":A.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},y.value,l.value,i.value,e.class]),style:f.normalizeStyle([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Re(_.value):0,"--v-progress-linear-height":Re(_.value),...e.absolute?s.value:{}},N.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(a.value),S.value),onClick:e.clickable&&L},{default:()=>[e.stream&&f.createElementVNode("div",{key:"stream",class:f.normalizeClass(["v-progress-linear__stream",u.value]),style:{...c.value,[A.value?"left":"right"]:Re(-_.value),borderTop:`${Re(_.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Re(_.value/4)})`,width:Re(100-x.value,"%"),"--v-progress-linear-stream-to":Re(_.value*(A.value?1:-1))}},null),f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__background",d.value]),style:f.normalizeStyle([h.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__buffer",v.value]),style:f.normalizeStyle([p.value,{opacity:parseFloat(e.bufferOpacity),width:Re(P.value,"%")}])},null),f.createVNode(f.Transition,{name:E.value},{default:()=>[e.indeterminate?f.createElementVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(R=>f.createElementVNode("div",{key:R,class:f.normalizeClass(["v-progress-linear__indeterminate",R,m.value]),style:f.normalizeStyle(g.value)},null))]):f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__determinate",m.value]),style:f.normalizeStyle([g.value,{width:Re(O.value,"%")}])},null)]}),n.default&&f.createElementVNode("div",{class:"v-progress-linear__content"},[n.default({value:T.value,buffer:x.value})])]})),{}}}),x_=ie({loading:[Boolean,String]},"loader");function ew(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{loaderClasses:f.toRef(()=>({[`${t}--loading`]:e.loading}))}}function tw(e,t){let{slots:n}=t;return f.createElementVNode("div",{class:f.normalizeClass(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||f.createVNode(zg,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Oke=["static","relative","fixed","absolute","sticky"],Wg=ie({position:{type:String,validator:e=>Oke.includes(e)}},"position");function Gg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{positionClasses:f.toRef(()=>e.position?`${t}--${e.position}`:void 0)}}function Rke(){const e=Gr("useRoute");return f.computed(()=>e?.proxy?.$route)}function qY(){return Gr("useRouter")?.proxy?.$router}function nw(e,t){const n=f.resolveDynamicComponent("RouterLink"),r=f.toRef(()=>!!(e.href||e.to)),a=f.computed(()=>r?.value||q9(t,"click")||q9(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=f.toRef(()=>e.href);return{isLink:r,isRouterLink:f.toRef(()=>!1),isClickable:a,href:d,linkProps:f.reactive({href:d}),route:f.toRef(()=>{}),navigate:f.toRef(()=>{})}}const o=n.useLink({to:f.toRef(()=>e.to||""),replace:f.toRef(()=>e.replace)}),i=f.computed(()=>e.to?o:void 0),l=Rke(),s=f.computed(()=>i.value?e.exact?l.value?i.value.isExactActive?.value&&Ea(i.value.route.value.query,l.value.query):i.value.isExactActive?.value??!1:i.value.isActive?.value??!1:!1),u=f.computed(()=>e.to?i.value?.route.value.href:e.href),c=f.toRef(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:a,isActive:s,route:f.toRef(()=>i.value?.route.value),navigate:f.toRef(()=>i.value?.navigate),href:u,linkProps:f.reactive({href:u,"aria-current":f.toRef(()=>s.value?"page":void 0),"aria-disabled":f.toRef(()=>e.disabled&&r.value?"true":void 0),tabindex:f.toRef(()=>e.disabled&&r.value?"-1":void 0)})}}const rw=ie({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let YP=!1;function Bke(e,t){let n=!1,r,a;Bn&&e?.beforeEach&&(f.nextTick(()=>{window.addEventListener("popstate",o),r=e.beforeEach(()=>YP?n?t():void 0:(YP=!0,new Promise(i=>{setTimeout(()=>i(n?t():void 0))}))),a=e?.afterEach(()=>{YP=!1})}),f.onScopeDispose(()=>{window.removeEventListener("popstate",o),r?.(),a?.()}));function o(i){i.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function Fke(e,t){f.watch(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&f.nextTick(()=>{t(n)})},{immediate:!0})}const jP=Symbol("rippleStop"),Hke=80;function $Y(e,t){e.style.transform=t,e.style.webkitTransform=t}function KP(e){return e.constructor.name==="TouchEvent"}function ej(e){return e.constructor.name==="KeyboardEvent"}const zke=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!ej(e)){const d=t.getBoundingClientRect(),h=KP(e)?e.touches[e.touches.length-1]:e;r=h.clientX-d.left,a=h.clientY-d.top}let o=0,i=.3;t._ripple?.circle?(i=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(a-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const l=`${(t.clientWidth-o*2)/2}px`,s=`${(t.clientHeight-o*2)/2}px`,u=n.center?l:`${r-o}px`,c=n.center?s:`${a-o}px`;return{radius:o,scale:i,x:u,y:c,centerX:l,centerY:s}},C_={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:i,x:l,y:s,centerX:u,centerY:c}=zke(e,t,n),d=`${o*2}px`;a.className="v-ripple__animation",a.style.width=d,a.style.height=d,t.appendChild(r);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),$Y(a,`translate(${l}, ${s}) scale3d(${i},${i},${i})`),a.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),$Y(a,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.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),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},a)}};function tj(e){return typeof e>"u"||!!e}function aw(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[jP])){if(e[jP]=!0,KP(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||ej(e),n._ripple.class&&(t.class=n._ripple.class),KP(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{C_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Hke)}else C_.show(e,n,t)}}function __(e){e[jP]=!0}function hl(e){const t=e.currentTarget;if(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(()=>{hl(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),C_.hide(t)}}function nj(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let ow=!1;function Wke(e,t){!ow&&t.includes(e.key)&&(ow=!0,aw(e))}function rj(e){ow=!1,hl(e)}function aj(e){ow&&(ow=!1,hl(e))}function oj(e,t,n){const{value:r,modifiers:a}=t,o=tj(r);o||C_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=a.center,e._ripple.circle=a.circle;const i=fv(r)?r:{};i.class&&(e._ripple.class=i.class);const l=i.keys??["Enter","Space"];if(e._ripple.keyDownHandler=s=>Wke(s,l),o&&!n){if(a.stop){e.addEventListener("touchstart",__,{passive:!0}),e.addEventListener("mousedown",__);return}e.addEventListener("touchstart",aw,{passive:!0}),e.addEventListener("touchend",hl,{passive:!0}),e.addEventListener("touchmove",nj,{passive:!0}),e.addEventListener("touchcancel",hl),e.addEventListener("mousedown",aw),e.addEventListener("mouseup",hl),e.addEventListener("mouseleave",hl),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",rj),e.addEventListener("blur",aj),e.addEventListener("dragstart",hl,{passive:!0})}else!o&&n&&ij(e)}function ij(e){e.removeEventListener("touchstart",__),e.removeEventListener("mousedown",__),e.removeEventListener("touchstart",aw),e.removeEventListener("touchend",hl),e.removeEventListener("touchmove",nj),e.removeEventListener("touchcancel",hl),e.removeEventListener("mousedown",aw),e.removeEventListener("mouseup",hl),e.removeEventListener("mouseleave",hl),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",rj),e.removeEventListener("blur",aj),e.removeEventListener("dragstart",hl)}function Gke(e,t){oj(e,t,!1)}function Uke(e){ij(e),delete e._ripple}function Yke(e,t){if(t.value===t.oldValue)return;const n=tj(t.oldValue);oj(e,t,n)}const eo={mounted:Gke,unmounted:Uke,updated:Yke},T_=ie({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:HP},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:ut,appendIcon:ut,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...wo(),...at(),..._r(),...Ur(),...jr(),...Cv(),...x_(),..._u(),...Wg(),...qn(),...rw(),...Tu(),...Ft({tag:"button"}),...pn(),...fl({variant:"elevated"})},"VBtn"),xt=Ce()({name:"VBtn",props:T_(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{borderClasses:o}=Go(e),{densityClasses:i}=$a(e),{dimensionStyles:l}=Yr(e),{elevationClasses:s}=va(e),{loaderClasses:u}=ew(e),{locationStyles:c}=lf(e),{positionClasses:d}=Gg(e),{roundedClasses:h}=ur(e),{sizeClasses:v,sizeStyles:p}=Hg(e),m=sf(e,e.symbol,!1),g=nw(e,n),y=f.computed(()=>e.active!==void 0?e.active:g.isRouterLink.value?g.isActive?.value:m?.isSelected.value),b=f.toRef(()=>y.value?e.activeColor??e.color:e.color),w=f.computed(()=>({color:m?.isSelected.value&&(!g.isLink.value||g.isActive?.value)||!m||g.isActive?.value?b.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:S,colorStyles:_,variantClasses:x}=Wc(w),T=f.computed(()=>m?.disabled.value||e.disabled),A=f.toRef(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),E=f.computed(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function I(M){T.value||g.isLink.value&&(M.metaKey||M.ctrlKey||M.shiftKey||M.button!==0||n.target==="_blank")||(g.isRouterLink.value?g.navigate.value?.(M):m?.toggle())}return Fke(g,m?.select),ke(()=>{const M=g.isLink.value?"a":e.tag,N=!!(e.prependIcon||r.prepend),D=!!(e.appendIcon||r.append),P=!!(e.icon&&e.icon!==!0);return f.withDirectives(f.createVNode(M,f.mergeProps(g.linkProps,{type:M==="a"?void 0:"button",class:["v-btn",m?.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":A.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}`]:[],a.value,o.value,S.value,i.value,s.value,u.value,d.value,h.value,v.value,x.value,e.class],style:[_.value,l.value,c.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value&&M!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:I,value:E.value}),{default:()=>[zc(!0,"v-btn"),!e.icon&&N&&f.createElementVNode("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):f.createVNode(St,{key:"prepend-icon",icon:e.prependIcon},null)]),f.createElementVNode("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&P?f.createVNode(St,{key:"content-icon",icon:e.icon},null):f.createVNode(Ht,{key:"content-defaults",disabled:!P,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??f.toDisplayString(e.text)]})]),!e.icon&&D&&f.createElementVNode("span",{key:"append",class:"v-btn__append"},[r.append?f.createVNode(Ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):f.createVNode(St,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&f.createElementVNode("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??f.createVNode(cf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[eo,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),jke=ie({...Kt(T_({icon:"$menu",variant:"text"}),["spaced"])},"VAppBarNavIcon"),Kke=Ce()({name:"VAppBarNavIcon",props:jke(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(xt,f.mergeProps(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),Xke=Ce()({name:"VAppBarTitle",props:zY(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(MP,f.mergeProps(e,{class:"v-app-bar-title"}),n)),{}}}),lj=Rc("v-alert-title"),sj=ie({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function uj(e,t){return{iconSize:f.computed(()=>{const r=new Map(e.iconSizes),a=e.iconSize??t()??"default";return r.has(a)?r.get(a):a})}}const Zke=["success","info","warning","error"],Jke=ie({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:ut,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>Zke.includes(e)},...at(),..._r(),...Ur(),...jr(),...sj(),..._u(),...Wg(),...qn(),...Ft(),...pn(),...fl({variant:"flat"})},"VAlert"),Qke=Ce()({name:"VAlert",props:Jke(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.toRef(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:i}=uj(e,()=>e.prominent?44:void 0),{themeClasses:l}=In(e),{colorClasses:s,colorStyles:u,variantClasses:c}=Wc(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:d}=$a(e),{dimensionStyles:h}=Yr(e),{elevationClasses:v}=va(e),{locationStyles:p}=lf(e),{positionClasses:m}=Gg(e),{roundedClasses:g}=ur(e),{textColorClasses:y,textColorStyles:b}=za(()=>e.borderColor),{t:w}=An(),S=f.toRef(()=>({"aria-label":w(e.closeLabel),onClick(_){a.value=!1,n("click:close",_)}}));return()=>{const _=!!(r.prepend||o.value),x=!!(r.title||e.title),T=!!(r.close||e.closable),A={density:e.density,icon:o.value,size:e.iconSize||e.prominent?i.value:void 0};return a.value&&f.createVNode(e.tag,{class:f.normalizeClass(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},l.value,s.value,d.value,v.value,m.value,g.value,c.value,e.class]),style:f.normalizeStyle([u.value,h.value,p.value,e.style]),role:"alert"},{default:()=>[zc(!1,"v-alert"),e.border&&f.createElementVNode("div",{key:"border",class:f.normalizeClass(["v-alert__border",y.value]),style:f.normalizeStyle(b.value)},null),_&&f.createElementVNode("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!o.value,defaults:{VIcon:{...A}}},r.prepend):f.createVNode(St,f.mergeProps({key:"prepend-icon"},A),null)]),f.createElementVNode("div",{class:"v-alert__content"},[x&&f.createVNode(lj,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&f.createElementVNode("div",{key:"append",class:"v-alert__append"},[r.append()]),T&&f.createElementVNode("div",{key:"close",class:"v-alert__close"},[r.close?f.createVNode(Ht,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:S.value})]}):f.createVNode(xt,f.mergeProps({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},S.value),null)])]})}}}),qke=ie({start:Boolean,end:Boolean,icon:ut,image:String,text:String,...wo(),...at(),..._r(),...qn(),...Tu(),...Ft(),...pn(),...fl({variant:"flat"})},"VAvatar"),vl=Ce()({name:"VAvatar",props:qke(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{borderClasses:a}=Go(e),{colorClasses:o,colorStyles:i,variantClasses:l}=Wc(e),{densityClasses:s}=$a(e),{roundedClasses:u}=ur(e),{sizeClasses:c,sizeStyles:d}=Hg(e);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,o.value,s.value,u.value,c.value,l.value,e.class]),style:f.normalizeStyle([i.value,d.value,e.style])},{default:()=>[n.default?f.createVNode(Ht,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?f.createVNode(Fc,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?f.createVNode(St,{key:"icon",icon:e.icon},null):e.text,zc(!1,"v-avatar")]})),{}}}),$ke=ie({text:String,onClick:Qa(),...at(),...pn()},"VLabel"),Ug=Ce()({name:"VLabel",props:$ke(),setup(e,t){let{slots:n}=t;return ke(()=>f.createElementVNode("label",{class:f.normalizeClass(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:f.normalizeStyle(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),cj=Symbol.for("vuetify:selection-control-group"),XP=ie({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:ut,trueIcon:ut,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Ea},...at(),..._r(),...pn()},"SelectionControlGroup"),eAe=ie({...XP({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),dj=Ce()({name:"VSelectionControlGroup",props:eAe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.useId(),o=f.toRef(()=>e.id||`v-selection-control-group-${a}`),i=f.toRef(()=>e.name||o.value),l=new Set;return f.provide(cj,{modelValue:r,forceUpdate:()=>{l.forEach(s=>s())},onForceUpdate:s=>{l.add(s),f.onScopeDispose(()=>{l.delete(s)})}}),Cr({[e.defaultsTarget]:{color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled),density:f.toRef(()=>e.density),error:f.toRef(()=>e.error),inline:f.toRef(()=>e.inline),modelValue:r,multiple:f.toRef(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:i,falseIcon:f.toRef(()=>e.falseIcon),trueIcon:f.toRef(()=>e.trueIcon),readonly:f.toRef(()=>e.readonly),ripple:f.toRef(()=>e.ripple),type:f.toRef(()=>e.type),valueComparator:f.toRef(()=>e.valueComparator)}}),ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:f.normalizeStyle(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),k_=ie({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...at(),...XP()},"VSelectionControl");function tAe(e){const t=f.inject(cj,void 0),{densityClasses:n}=$a(e),r=ot(e,"modelValue"),a=f.computed(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),o=f.computed(()=>e.falseValue!==void 0?e.falseValue:!1),i=f.computed(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),l=f.computed({get(){const v=t?t.modelValue.value:r.value;return i.value?jn(v).some(p=>e.valueComparator(p,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const p=v?a.value:o.value;let m=p;i.value&&(m=v?[...jn(r.value),p]:jn(r.value).filter(g=>!e.valueComparator(g,a.value))),t?t.modelValue.value=m:r.value=m}}),{textColorClasses:s,textColorStyles:u}=za(()=>{if(!(e.error||e.disabled))return l.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=Ln(()=>l.value&&!e.error&&!e.disabled?e.color:e.baseColor),h=f.computed(()=>l.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:o,model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:h}}const df=Ce()({name:"VSelectionControl",directives:{vRipple:eo},inheritAttrs:!1,props:k_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:o,icon:i,model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:h}=tAe(e),v=f.useId(),p=f.shallowRef(!1),m=f.shallowRef(!1),g=f.ref(),y=f.toRef(()=>e.id||`input-${v}`),b=f.toRef(()=>!e.disabled&&!e.readonly);a?.onForceUpdate(()=>{g.value&&(g.value.checked=l.value)});function w(T){b.value&&(p.value=!0,Lg(T.target,":focus-visible")!==!1&&(m.value=!0))}function S(){p.value=!1,m.value=!1}function _(T){T.stopPropagation()}function x(T){if(!b.value){g.value&&(g.value.checked=l.value);return}e.readonly&&a&&f.nextTick(()=>a.forceUpdate()),l.value=T.target.checked}return ke(()=>{const T=r.label?r.label({label:e.label,props:{for:y.value}}):e.label,[A,E]=Su(n),I=f.createElementVNode("input",f.mergeProps({ref:g,checked:l.value,disabled:!!e.disabled,id:y.value,onBlur:S,onFocus:w,onInput:x,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?l.value:void 0},E),null);return f.createElementVNode("div",f.mergeProps({class:["v-selection-control",{"v-selection-control--dirty":l.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},o.value,e.class]},A,{style:e.style}),[f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control__wrapper",s.value]),style:f.normalizeStyle(u.value)},[r.default?.({backgroundColorClasses:c,backgroundColorStyles:d}),f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control__input"])},[r.input?.({model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:I,icon:i.value,props:{onFocus:w,onBlur:S,id:y.value}})??f.createElementVNode(f.Fragment,null,[i.value&&f.createVNode(St,{key:"icon",icon:i.value},null),I])]),[[eo,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),T&&f.createVNode(Ug,{for:y.value,onClick:_},{default:()=>[T]})])}),{isFocused:p,input:g}}}),fj=ie({indeterminate:Boolean,indeterminateIcon:{type:ut,default:"$checkboxIndeterminate"},...k_({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Bs=Ce()({name:"VCheckboxBtn",props:fj(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"indeterminate"),a=ot(e,"modelValue");function o(s){r.value&&(r.value=!1)}const i=f.toRef(()=>r.value?e.indeterminateIcon:e.falseIcon),l=f.toRef(()=>r.value?e.indeterminateIcon:e.trueIcon);return ke(()=>{const s=Kt(df.filterProps(e),["modelValue"]);return f.createVNode(df,f.mergeProps(s,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,o],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:l.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function iw(e){const{t}=An();function n(r){let{name:a,color:o,...i}=r;const l={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],s=e[`onClick:${a}`];function u(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),Y1(s,new PointerEvent("click",d)))}const c=s&&l?t(`$vuetify.input.${l}`,e.label??""):void 0;return f.createVNode(St,f.mergeProps({icon:e[`${a}Icon`],"aria-label":c,onClick:s,onKeydown:u,color:o},i),null)}return{InputIcon:n}}const nAe=ie({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...at(),...Bc({transition:{component:LP,leaveAbsolute:!0,group:!0}})},"VMessages"),hj=Ce()({name:"VMessages",props:nAe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>jn(e.messages)),{textColorClasses:a,textColorStyles:o}=za(()=>e.color);return ke(()=>f.createVNode(Wo,{transition:e.transition,tag:"div",class:f.normalizeClass(["v-messages",a.value,e.class]),style:f.normalizeStyle([o.value,e.style])},{default:()=>[e.active&&r.value.map((i,l)=>f.createElementVNode("div",{class:"v-messages__message",key:`${l}-${r.value}`},[n.message?n.message({message:i}):i]))]})),{}}}),lw=ie({focused:Boolean,"onUpdate:focused":Qa()},"focus");function Gc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=ot(e,"focused"),r=f.toRef(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function o(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:o}}const vj=Symbol.for("vuetify:form"),rAe=ie({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function aAe(e){const t=ot(e,"modelValue"),n=f.toRef(()=>e.disabled),r=f.toRef(()=>e.readonly),a=f.shallowRef(!1),o=f.ref([]),i=f.ref([]);async function l(){const c=[];let d=!0;i.value=[],a.value=!0;for(const h of o.value){const v=await h.validate();if(v.length>0&&(d=!1,c.push({id:h.id,errorMessages:v})),!d&&e.fastFail)break}return i.value=c,a.value=!1,{valid:d,errors:i.value}}function s(){o.value.forEach(c=>c.reset())}function u(){o.value.forEach(c=>c.resetValidation())}return f.watch(o,()=>{let c=0,d=0;const h=[];for(const v of o.value)v.isValid===!1?(d++,h.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;i.value=h,t.value=d>0?!1:c===o.value.length?!0:null},{deep:!0,flush:"post"}),f.provide(vj,{register:c=>{let{id:d,vm:h,validate:v,reset:p,resetValidation:m}=c;o.value.some(g=>g.id===d)&&Aa(`Duplicate input name "${d}"`),o.value.push({id:d,validate:v,reset:p,resetValidation:m,vm:f.markRaw(h),isValid:null,errorMessages:[]})},unregister:c=>{o.value=o.value.filter(d=>d.id!==c)},update:(c,d,h)=>{const v=o.value.find(p=>p.id===c);v&&(v.isValid=d,v.errorMessages=h)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:o,validateOn:f.toRef(()=>e.validateOn)}),{errors:i,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:o,validate:l,reset:s,resetValidation:u}}function Yg(e){const t=f.inject(vj,null);return{...t,isReadonly:f.computed(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:f.computed(()=>!!(e?.disabled??t?.isDisabled.value))}}const oAe=Symbol.for("vuetify:rules");function iAe(e){const t=f.inject(oAe,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??f.toRef(e)}const pj=ie({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...lw()},"validation");function mj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.useId();const r=ot(e,"modelValue"),a=f.computed(()=>e.validationValue===void 0?r.value:e.validationValue),o=Yg(e),i=iAe(()=>e.rules),l=f.ref([]),s=f.shallowRef(!0),u=f.computed(()=>!!(jn(r.value===""?null:r.value).length||jn(a.value===""?null:a.value).length)),c=f.computed(()=>e.errorMessages?.length?jn(e.errorMessages).concat(l.value).slice(0,Math.max(0,Number(e.maxErrors))):l.value),d=f.computed(()=>{let S=(e.validateOn??o.validateOn?.value)||"input";S==="lazy"&&(S="input lazy"),S==="eager"&&(S="input eager");const _=new Set(S?.split(" ")??[]);return{input:_.has("input"),blur:_.has("blur")||_.has("input")||_.has("invalid-input"),invalidInput:_.has("invalid-input"),lazy:_.has("lazy"),eager:_.has("eager")}}),h=f.computed(()=>e.error||e.errorMessages?.length?!1:e.rules.length?s.value?l.value.length||d.value.lazy?null:!0:!l.value.length:!0),v=f.shallowRef(!1),p=f.computed(()=>({[`${t}--error`]:h.value===!1,[`${t}--dirty`]:u.value,[`${t}--disabled`]:o.isDisabled.value,[`${t}--readonly`]:o.isReadonly.value})),m=Gr("validation"),g=f.computed(()=>e.name??f.unref(n));f.onBeforeMount(()=>{o.register?.({id:g.value,vm:m,validate:w,reset:y,resetValidation:b})}),f.onBeforeUnmount(()=>{o.unregister?.(g.value)}),f.onMounted(async()=>{d.value.lazy||await w(!d.value.eager),o.update?.(g.value,h.value,c.value)}),qa(()=>d.value.input||d.value.invalidInput&&h.value===!1,()=>{f.watch(a,()=>{if(a.value!=null)w();else if(e.focused){const S=f.watch(()=>e.focused,_=>{_||w(),S()})}})}),qa(()=>d.value.blur,()=>{f.watch(()=>e.focused,S=>{S||w()})}),f.watch([h,c],()=>{o.update?.(g.value,h.value,c.value)});async function y(){r.value=null,await f.nextTick(),await b()}async function b(){s.value=!0,d.value.lazy?l.value=[]:await w(!d.value.eager)}async function w(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _=[];v.value=!0;for(const x of i.value){if(_.length>=Number(e.maxErrors??1))break;const A=await(typeof x=="function"?x:()=>x)(a.value);if(A!==!0){if(A!==!1&&typeof A!="string"){console.warn(`${A} is not a valid value. Rule functions must return boolean true or a string.`);continue}_.push(A||"")}}return l.value=_,v.value=!1,s.value=S,l.value}return{errorMessages:c,isDirty:u,isDisabled:o.isDisabled,isReadonly:o.isReadonly,isPristine:s,isValid:h,isValidating:v,reset:y,resetValidation:b,validate:w,validationClasses:p}}const Uc=ie({id:String,appendIcon:ut,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:ut,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Qa(),"onClick:append":Qa(),...at(),..._r(),...fi(Ur(),["maxWidth","minWidth","width"]),...pn(),...pj()},"VInput"),to=Ce()({name:"VInput",props:{...Uc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:o}=$a(e),{dimensionStyles:i}=Yr(e),{themeClasses:l}=In(e),{rtlClasses:s}=ea(),{InputIcon:u}=iw(e),c=f.useId(),d=f.computed(()=>e.id||`input-${c}`),{errorMessages:h,isDirty:v,isDisabled:p,isReadonly:m,isPristine:g,isValid:y,isValidating:b,reset:w,resetValidation:S,validate:_,validationClasses:x}=mj(e,"v-input",d),T=f.computed(()=>e.errorMessages?.length||!g.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),A=f.toRef(()=>T.value.length>0),E=f.toRef(()=>!e.hideDetails||e.hideDetails==="auto"&&(A.value||!!r.details)),I=f.computed(()=>E.value?`${d.value}-messages`:void 0),M=f.computed(()=>({id:d,messagesId:I,isDirty:v,isDisabled:p,isReadonly:m,isPristine:g,isValid:y,isValidating:b,hasDetails:E,reset:w,resetValidation:S,validate:_})),N=f.toRef(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),D=f.toRef(()=>{if(e.iconColor)return e.iconColor===!0?N.value:e.iconColor});return ke(()=>{const P=!!(r.prepend||e.prependIcon),O=!!(r.append||e.appendIcon);return f.createElementVNode("div",{class:f.normalizeClass(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},o.value,l.value,s.value,x.value,e.class]),style:f.normalizeStyle([i.value,e.style])},[P&&f.createElementVNode("div",{key:"prepend",class:"v-input__prepend"},[r.prepend?r.prepend(M.value):e.prependIcon&&f.createVNode(u,{key:"prepend-icon",name:"prepend",color:D.value},null)]),r.default&&f.createElementVNode("div",{class:"v-input__control"},[r.default?.(M.value)]),O&&f.createElementVNode("div",{key:"append",class:"v-input__append"},[r.append?r.append(M.value):e.appendIcon&&f.createVNode(u,{key:"append-icon",name:"append",color:D.value},null)]),E.value&&f.createElementVNode("div",{id:I.value,class:"v-input__details",role:"alert","aria-live":"polite"},[f.createVNode(hj,{active:A.value,messages:T.value},{message:r.message}),r.details?.(M.value)])])}),{reset:w,resetValidation:S,validate:_,isValid:y,errorMessages:h}}}),ZP=Symbol("Forwarded refs");function JP(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function pa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"modelValue"),{isFocused:o,focus:i,blur:l}=Gc(e),s=f.ref(),u=f.useId();return ke(()=>{const[c,d]=Su(n),h=to.filterProps(e),v=Bs.filterProps(e);return f.createVNode(to,f.mergeProps({ref:s,class:["v-checkbox",e.class]},c,h,{modelValue:a.value,"onUpdate:modelValue":p=>a.value=p,id:e.id||`checkbox-${u}`,focused:o.value,style:e.style}),{...r,default:p=>{let{id:m,messagesId:g,isDisabled:y,isReadonly:b,isValid:w}=p;return f.createVNode(Bs,f.mergeProps(v,{id:m.value,"aria-describedby":g.value,disabled:y.value,readonly:b.value},d,{error:w.value===!1,modelValue:a.value,"onUpdate:modelValue":S=>a.value=S,onFocus:i,onBlur:l}),r)}})}),pa({},s)}}),A_=["sm","md","lg","xl","xxl"],QP=Symbol.for("vuetify:display"),gj={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},sAe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gj;return bo(gj,e)};function yj(e){return Bn&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function bj(e){return Bn&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function wj(e){const t=Bn&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),a=n(/iphone|ipad|ipod/i),o=n(/cordova/i),i=n(/electron/i),l=n(/chrome/i),s=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),h=n(/mac/i),v=n(/linux/i);return{android:r,ios:a,cordova:o,electron:i,chrome:l,edge:s,firefox:u,opera:c,win:d,mac:h,linux:v,touch:W_e,ssr:t==="ssr"}}function uAe(e,t){const{thresholds:n,mobileBreakpoint:r}=sAe(e),a=f.shallowRef(bj(t)),o=f.shallowRef(wj(t)),i=f.reactive({}),l=f.shallowRef(yj(t));function s(){a.value=bj(),l.value=yj()}function u(){s(),o.value=wj()}return f.watchEffect(()=>{const c=l.value=n.xxl,g=c?"xs":d?"sm":h?"md":v?"lg":p?"xl":"xxl",y=typeof r=="number"?r:n[r],b=l.value{window.removeEventListener("resize",s)},!0)),{...f.toRefs(i),update:u,ssr:!!t}}const Tv=ie({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function pl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=f.inject(QP);if(!n)throw new Error("Could not find Vuetify display injection");const r=f.computed(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:a,mobile:r}}const Sj=Symbol.for("vuetify:goto");function xj(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:DTe}}function cAe(e){return qP(e)??(document.scrollingElement||document.body)}function qP(e){return typeof e=="string"?document.querySelector(e):cP(e)}function $P(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=qP(e),a=0;for(;r;)a+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return a}function dAe(e,t){return{rtl:t.isRtl,options:bo(xj(),e)}}async function Cj(e,t,n,r){const a=n?"scrollLeft":"scrollTop",o=bo(r?.options??xj(),t),i=r?.rtl.value,l=(typeof e=="number"?e:qP(e))??0,s=o.container==="parent"&&l instanceof HTMLElement?l.parentElement:cAe(o.container),u=bu()?o.patterns.instant:typeof o.easing=="function"?o.easing:o.patterns[o.easing];if(!u)throw new TypeError(`Easing function "${o.easing}" not found.`);let c;if(typeof l=="number")c=$P(l,n,i);else if(c=$P(l,n,i)-$P(s,n,i),o.layout){const p=window.getComputedStyle(l).getPropertyValue("--v-layout-top");p&&(c-=parseInt(p,10))}c+=o.offset,c=hAe(s,c,!!i,!!n);const d=s[a]??0;if(c===d)return Promise.resolve(c);const h=performance.now();return new Promise(v=>requestAnimationFrame(function p(m){const y=(m-h)/o.duration,b=Math.floor(d+(c-d)*u(Fn(y,0,1)));if(s[a]=b,y>=1&&Math.abs(b-s[a])<10)return v(c);if(y>2)return Aa("Scroll target is not reachable"),v(s[a]);requestAnimationFrame(p)}))}function fAe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=f.inject(Sj),{isRtl:n}=ea();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:f.toRef(()=>t.rtl.value||n.value)};async function a(o,i){return Cj(o,bo(e,i),!1,r)}return a.horizontal=async(o,i)=>Cj(o,bo(e,i),!0,r),a}function hAe(e,t,n,r){const{scrollWidth:a,scrollHeight:o}=e,[i,l]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let s,u;return r?n?(s=-(a-i),u=0):(s=0,u=a-i):(s=0,u=o+-l),Fn(t,s,u)}function vAe(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:a}=e;const o=sw(a,n),i=Tj(a,r,n),l=sw(a,t),s=kj(a,t),u=l*.4;return i>s?s-u:i+otypeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...at(),...Tv({mobile:null}),...Ft(),...xv({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),uw=Ce()({name:"VSlideGroup",props:tN(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=ea(),{displayClasses:a,mobile:o}=pl(e),i=uf(e,e.symbol),l=f.shallowRef(!1),s=f.shallowRef(0),u=f.shallowRef(0),c=f.shallowRef(0),d=f.computed(()=>e.direction==="horizontal"),{resizeRef:h,contentRect:v}=Ul(),{resizeRef:p,contentRect:m}=Ul(),g=fAe(),y=f.computed(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),b=f.computed(()=>i.selected.value.length?i.items.value.findIndex(j=>j.id===i.selected.value[0]):-1),w=f.computed(()=>i.selected.value.length?i.items.value.findIndex(j=>j.id===i.selected.value[i.selected.value.length-1]):-1);if(Bn){let j=-1;f.watch(()=>[i.selected.value,v.value,m.value,d.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(v.value&&m.value){const U=d.value?"width":"height";u.value=v.value[U],c.value=m.value[U],l.value=u.value+1=0&&p.el){const U=p.el.children[w.value];_(U,e.centerActive)}})})}const S=f.shallowRef(!1);function _(j,U){let Y=0;U?Y=pAe({containerElement:h.el,isHorizontal:d.value,selectedElement:j}):Y=vAe({containerElement:h.el,isHorizontal:d.value,isRtl:r.value,selectedElement:j}),x(Y)}function x(j){if(!Bn||!h.el)return;const U=sw(d.value,h.el),Y=Tj(d.value,r.value,h.el);if(!(_j(d.value,h.el)<=U||Math.abs(j-Y)<16)){if(d.value&&r.value&&h.el){const{scrollWidth:te,offsetWidth:$}=h.el;j=te-$-j}d.value?g.horizontal(j,y.value):g(j,y.value)}}function T(j){const{scrollTop:U,scrollLeft:Y}=j.target;s.value=d.value?Y:U}function A(j){if(S.value=!0,!(!l.value||!p.el)){for(const U of j.composedPath())for(const Y of p.el.children)if(Y===U){_(Y);return}}}function E(j){S.value=!1}let I=!1;function M(j){!I&&!S.value&&!(j.relatedTarget&&p.el?.contains(j.relatedTarget))&&O(),I=!1}function N(){I=!0}function D(j){if(!p.el)return;function U(Y){j.preventDefault(),O(Y)}d.value?j.key==="ArrowRight"?U(r.value?"prev":"next"):j.key==="ArrowLeft"&&U(r.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function P(j,U){if(!j)return;let Y=j;do Y=Y?.[U==="next"?"nextElementSibling":"previousElementSibling"];while(Y?.hasAttribute("disabled"));return Y}function O(j){if(!p.el)return;let U;if(!j)U=af(p.el)[0];else if(j==="next"){if(U=P(p.el.querySelector(":focus"),j),!U)return O("first")}else if(j==="prev"){if(U=P(p.el.querySelector(":focus"),j),!U)return O("last")}else j==="first"?(U=p.el.firstElementChild,U?.hasAttribute("disabled")&&(U=P(U,"next"))):j==="last"&&(U=p.el.lastElementChild,U?.hasAttribute("disabled")&&(U=P(U,"prev")));U&&U.focus({preventScroll:!0})}function L(j){const U=d.value&&r.value?-1:1,Y=(j==="prev"?-U:U)*u.value;let Z=s.value+Y;if(d.value&&r.value&&h.el){const{scrollWidth:te,offsetWidth:$}=h.el;Z+=te-$}x(Z)}const R=f.computed(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),B=f.computed(()=>l.value||Math.abs(s.value)>0),W=f.computed(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!o.value;case!0:return B.value;case"mobile":return o.value||B.value;default:return!o.value&&B.value}}),H=f.computed(()=>Math.abs(s.value)>1),z=f.computed(()=>{if(!h.value||!B.value)return!1;const j=_j(d.value,h.el),U=mAe(d.value,h.el);return j-U-Math.abs(s.value)>1});return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":W.value,"v-slide-group--is-overflowing":l.value},a.value,e.class]),style:f.normalizeStyle(e.style),tabindex:S.value||i.selected.value.length?-1:0,onFocus:M},{default:()=>[W.value&&f.createElementVNode("div",{key:"prev",class:f.normalizeClass(["v-slide-group__prev",{"v-slide-group__prev--disabled":!H.value}]),onMousedown:N,onClick:()=>H.value&&L("prev")},[n.prev?.(R.value)??f.createVNode(q1,null,{default:()=>[f.createVNode(St,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),f.createElementVNode("div",{key:"container",ref:h,class:f.normalizeClass(["v-slide-group__container",e.contentClass]),onScroll:T},[f.createElementVNode("div",{ref:p,class:"v-slide-group__content",onFocusin:A,onFocusout:E,onKeydown:D},[n.default?.(R.value)])]),W.value&&f.createElementVNode("div",{key:"next",class:f.normalizeClass(["v-slide-group__next",{"v-slide-group__next--disabled":!z.value}]),onMousedown:N,onClick:()=>z.value&&L("next")},[n.next?.(R.value)??f.createVNode(q1,null,{default:()=>[f.createVNode(St,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:i.selected,scrollTo:L,scrollOffset:s,focus:O,hasPrev:H,hasNext:z}}}),Aj=Symbol.for("vuetify:v-chip-group"),gAe=ie({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ea},...tN({scrollToActive:!1}),...at(),...xv({selectedClass:"v-chip--selected"}),...Ft(),...pn(),...fl({variant:"tonal"})},"VChipGroup"),yAe=Ce()({name:"VChipGroup",props:gAe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isSelected:a,select:o,next:i,prev:l,selected:s}=uf(e,Aj);return Cr({VChip:{baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled),filter:f.toRef(()=>e.filter),variant:f.toRef(()=>e.variant)}}),ke(()=>{const u=uw.filterProps(e);return f.createVNode(uw,f.mergeProps(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:a,select:o,next:i,prev:l,selected:s.value})]})}),{}}}),bAe=ie({activeClass:String,appendAvatar:String,appendIcon:ut,baseColor:String,closable:Boolean,closeIcon:{type:ut,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:ut,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:ut,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:Qa(),onClickOnce:Qa(),...wo(),...at(),..._r(),...jr(),...Cv(),...qn(),...rw(),...Tu(),...Ft({tag:"span"}),...pn(),...fl({variant:"tonal"})},"VChip"),ml=Ce()({name:"VChip",directives:{vRipple:eo},props:bAe(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:o}=An(),{borderClasses:i}=Go(e),{densityClasses:l}=$a(e),{elevationClasses:s}=va(e),{roundedClasses:u}=ur(e),{sizeClasses:c}=Hg(e),{themeClasses:d}=In(e),h=ot(e,"modelValue"),v=sf(e,Aj,!1),p=sf(e,eN,!1),m=nw(e,n),g=f.toRef(()=>e.link!==!1&&m.isLink.value),y=f.computed(()=>!e.disabled&&e.link!==!1&&(!!v||e.link||m.isClickable.value)),b=f.toRef(()=>({"aria-label":o(e.closeLabel),disabled:e.disabled,onClick(A){A.preventDefault(),A.stopPropagation(),h.value=!1,r("click:close",A)}}));f.watch(h,A=>{A?(v?.register(),p?.register()):(v?.unregister(),p?.unregister())});const{colorClasses:w,colorStyles:S,variantClasses:_}=Wc(()=>({color:!v||v.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function x(A){r("click",A),y.value&&(m.navigate.value?.(A),v?.toggle())}function T(A){(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x(A))}return()=>{const A=m.isLink.value?"a":e.tag,E=!!(e.appendIcon||e.appendAvatar),I=!!(E||a.append),M=!!(a.close||e.closable),N=!!(a.filter||e.filter)&&v,D=!!(e.prependIcon||e.prependAvatar),P=!!(D||a.prepend);return h.value&&f.withDirectives(f.createVNode(A,f.mergeProps(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":y.value,"v-chip--filter":N,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&m.isActive?.value},d.value,i.value,w.value,l.value,s.value,u.value,c.value,_.value,v?.selectedClass.value,e.class],style:[S.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:y.value?0:void 0,onClick:x,onKeydown:y.value&&!g.value&&T}),{default:()=>[zc(y.value,"v-chip"),N&&f.createVNode(OP,{key:"filter"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-chip__filter"},[a.filter?f.createVNode(Ht,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):f.createVNode(St,{key:"filter-icon",icon:e.filterIcon},null)]),[[f.vShow,v.isSelected.value]])]}),P&&f.createElementVNode("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):f.createElementVNode(f.Fragment,null,[e.prependIcon&&f.createVNode(St,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&f.createVNode(vl,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),f.createElementVNode("div",{class:"v-chip__content","data-no-activator":""},[a.default?.({isSelected:v?.isSelected.value,selectedClass:v?.selectedClass.value,select:v?.select,toggle:v?.toggle,value:v?.value.value,disabled:e.disabled})??f.toDisplayString(e.text)]),I&&f.createElementVNode("div",{key:"append",class:"v-chip__append"},[a.append?f.createVNode(Ht,{key:"append-defaults",disabled:!E,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(St,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(vl,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),M&&f.createElementVNode("button",f.mergeProps({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},b.value),[a.close?f.createVNode(Ht,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):f.createVNode(St,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[eo,y.value&&e.ripple,null]])}}}),wAe=["dotted","dashed","solid","double"],SAe=ie({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=>wAe.includes(e)},...at(),...pn()},"VDivider"),Ia=Ce()({name:"VDivider",props:SAe(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{textColorClasses:o,textColorStyles:i}=za(()=>e.color),l=f.computed(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=Re(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=Re(e.thickness)),u}),s=f.toRef(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?Re(u):void 0,marginInline:!e.vertical&&u?Re(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${Re(c)})`:void 0}});return ke(()=>{const u=f.createElementVNode("hr",{class:f.normalizeClass([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,o.value,e.class]),style:f.normalizeStyle([l.value,i.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?f.createElementVNode("div",{class:f.normalizeClass(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,f.createElementVNode("div",{class:"v-divider__content",style:f.normalizeStyle(s.value)},[r.default()]),u]):u}),{}}}),nN=Symbol.for("vuetify:list");function Ej(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=f.inject(nN,{filterable:!1,hasPrepend:f.shallowRef(!1),updateHasPrepend:()=>null,trackingIndex:f.shallowRef(-1),navigationStrategy:f.shallowRef("focus"),uid:""}),{filterable:n,trackingIndex:r=t.trackingIndex,navigationStrategy:a=t.navigationStrategy,uid:o=t.uid||f.useId()}=e,i={filterable:t.filterable||n,hasPrepend:f.shallowRef(!1),updateHasPrepend:l=>{l&&(i.hasPrepend.value=l)},trackingIndex:r,navigationStrategy:a,uid:o};return f.provide(nN,i),t}function Ij(){return f.inject(nN,null)}const rN=e=>{const t={activate:n=>{let{id:r,value:a,activated:o}=n;return r=f.toRaw(r),e&&!a&&o.size===1&&o.has(r)||(a?o.add(r):o.delete(r)),o},in:(n,r,a)=>{let o=new Set;if(n!=null)for(const i of jn(n))o=t.activate({id:i,value:!0,activated:new Set(o),children:r,parents:a});return o},out:n=>Array.from(n)};return t},Mj=e=>{const t=rN(e);return{activate:r=>{let{activated:a,id:o,...i}=r;o=f.toRaw(o);const l=a.has(o)?new Set([o]):new Set;return t.activate({...i,id:o,activated:l})},in:(r,a,o)=>{let i=new Set;if(r!=null){const l=jn(r);l.length&&(i=t.in(l.slice(0,1),a,o))}return i},out:(r,a,o)=>t.out(r,a,o)}},xAe=e=>{const t=rN(e);return{activate:r=>{let{id:a,activated:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.activate({id:a,activated:o,children:i,...l})},in:t.in,out:t.out}},CAe=e=>{const t=Mj(e);return{activate:r=>{let{id:a,activated:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.activate({id:a,activated:o,children:i,...l})},in:t.in,out:t.out}},_Ae={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const o=new Set;o.add(t);let i=a.get(t);for(;i!=null;)o.add(i),i=a.get(i);return o}else return r.delete(t),r},select:()=>null},Dj={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let o=a.get(t);for(r.add(t);o!=null&&o!==t;)r.add(o),o=a.get(o);return r}else r.delete(t);return r},select:()=>null},TAe={open:Dj.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const o=[];let i=a.get(t);for(;i!=null;)o.push(i),i=a.get(i);return new Set(o)}},aN=e=>{const t={select:n=>{let{id:r,value:a,selected:o}=n;if(r=f.toRaw(r),e&&!a){const i=Array.from(o.entries()).reduce((l,s)=>{let[u,c]=s;return c==="on"&&l.push(u),l},[]);if(i.length===1&&i[0]===r)return o}return o.set(r,a?"on":"off"),o},in:(n,r,a,o)=>{const i=new Map;for(const l of n||[])t.select({id:l,value:!0,selected:i,children:r,parents:a,disabled:o});return i},out:n=>{const r=[];for(const[a,o]of n.entries())o==="on"&&r.push(a);return r}};return t},Vj=e=>{const t=aN(e);return{select:r=>{let{selected:a,id:o,...i}=r;o=f.toRaw(o);const l=a.has(o)?new Map([[o,a.get(o)]]):new Map;return t.select({...i,id:o,selected:l})},in:(r,a,o,i)=>r?.length?t.in(r.slice(0,1),a,o,i):new Map,out:(r,a,o)=>t.out(r,a,o)}},kAe=e=>{const t=aN(e);return{select:r=>{let{id:a,selected:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.select({id:a,selected:o,children:i,...l})},in:t.in,out:t.out}},AAe=e=>{const t=Vj(e);return{select:r=>{let{id:a,selected:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.select({id:a,selected:o,children:i,...l})},in:t.in,out:t.out}},oN=e=>{const t={select:n=>{let{id:r,value:a,selected:o,children:i,parents:l,disabled:s}=n;r=f.toRaw(r);const u=new Map(o),c=[r];for(;c.length;){const h=c.shift();s.has(h)||o.set(f.toRaw(h),a?"on":"off"),i.has(h)&&c.push(...i.get(h))}let d=f.toRaw(l.get(r));for(;d;){let h=!0,v=!0;for(const p of i.get(d)){const m=f.toRaw(p);if(!s.has(m)&&(o.get(m)!=="on"&&(h=!1),o.has(m)&&o.get(m)!=="off"&&(v=!1),!h&&!v))break}o.set(d,h?"on":v?"off":"indeterminate"),d=f.toRaw(l.get(d))}return e&&!a&&Array.from(o.entries()).reduce((v,p)=>{let[m,g]=p;return g==="on"&&v.push(m),v},[]).length===0?u:o},in:(n,r,a)=>{let o=new Map;for(const i of n||[])o=t.select({id:i,value:!0,selected:o,children:r,parents:a,disabled:new Set});return o},out:(n,r)=>{const a=[];for(const[o,i]of n.entries())i==="on"&&!r.has(o)&&a.push(o);return a}};return t},EAe=e=>{const t=oN(e);return{select:t.select,in:t.in,out:(r,a,o)=>{const i=[];for(const[l,s]of r.entries())if(s==="on"){if(o.has(l)){const u=o.get(l);if(r.get(u)==="on")continue}i.push(l)}return i}}},IAe=e=>{const n={select:oN(e).select,in:(r,a,o,i)=>{let l=new Map;for(const s of r||[])a.has(s)||(l=n.select({id:s,value:!0,selected:l,children:a,parents:o,disabled:i}));return l},out:r=>{const a=[];for(const[o,i]of r.entries())(i==="on"||i==="indeterminate")&&a.push(o);return a}};return n},jg=Symbol.for("vuetify:nested"),Pj={id:f.shallowRef(),root:{itemsRegistration:f.ref("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:f.ref(new Map),parents:f.ref(new Map),disabled:f.ref(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:f.ref(!1),scrollToActive:f.ref(!1),selectable:f.ref(!1),opened:f.ref(new Set),activated:f.ref(new Set),selected:f.ref(new Map),selectedValues:f.ref([]),getPath:()=>[]}},MAe=ie({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"),DAe=(e,t)=>{let{items:n,returnObject:r,scrollToActive:a}=t,o=!1;const i=f.shallowRef(new Map),l=f.shallowRef(new Map),s=f.shallowRef(new Set),u=ot(e,"opened",e.opened,_=>new Set(Array.isArray(_)?_.map(x=>f.toRaw(x)):_),_=>[..._.values()]),c=f.computed(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return xAe(e.mandatory);case"single-leaf":return CAe(e.mandatory);case"independent":return rN(e.mandatory);case"single-independent":default:return Mj(e.mandatory)}}),d=f.computed(()=>{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 AAe(e.mandatory);case"leaf":return kAe(e.mandatory);case"independent":return aN(e.mandatory);case"single-independent":return Vj(e.mandatory);case"trunk":return EAe(e.mandatory);case"branch":return IAe(e.mandatory);case"classic":default:return oN(e.mandatory)}}),h=f.computed(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return TAe;case"single":return _Ae;case"multiple":default:return Dj}}),v=ot(e,"activated",e.activated,_=>c.value.in(_,i.value,l.value),_=>c.value.out(_,i.value,l.value)),p=ot(e,"selected",e.selected,_=>d.value.in(_,i.value,l.value,s.value),_=>d.value.out(_,i.value,l.value));f.onBeforeUnmount(()=>{o=!0});function m(_){const x=[];let T=f.toRaw(_);for(;T!==void 0;)x.unshift(T),T=l.value.get(T);return x}const g=Gr("nested"),y=new Set,b=LTe(()=>{f.nextTick(()=>{i.value=new Map(i.value),l.value=new Map(l.value)})},100);f.watch(()=>[n.value,f.toValue(r)],()=>{e.itemsRegistration==="props"&&w()},{immediate:!0});function w(){const _=new Map,x=new Map,T=new Set,A=f.toValue(r)?M=>f.toRaw(M.raw):M=>M.value,E=[...n.value];let I=0;for(;Ie.activatable),scrollToActive:f.toRef(()=>f.toValue(a)),selectable:f.toRef(()=>e.selectable),activated:v,selected:p,selectedValues:f.computed(()=>{const _=[];for(const[x,T]of p.value.entries())T==="on"&&_.push(x);return _}),itemsRegistration:f.toRef(()=>e.itemsRegistration),register:(_,x,T,A)=>{if(y.has(_)){const E=m(_).map(String).join(" -> "),I=m(x).concat(_).map(String).join(" -> ");cv(`Multiple nodes with the same ID +}`),S}),c=f.toRef(()=>t.isDisabled?void 0:`${t.prefix}theme--${o.value}`),d=f.toRef(()=>Object.keys(i.value));if(fP){let b=function(){a.value=y.matches?"dark":"light"};const y=window.matchMedia("(prefers-color-scheme: dark)");b(),y.addEventListener("change",b,{passive:!0}),f.getCurrentScope()&&f.onScopeDispose(()=>{y.removeEventListener("change",b)})}function h(y){if(t.isDisabled)return;const b=y._context.provides.usehead;if(b){let w=function(){return{style:[{textContent:u.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}};if(b.push){const S=b.push(w);Bn&&f.watch(u,()=>{S.patch(w)})}else Bn?(b.addHeadObjs(f.toRef(w)),f.watchEffect(()=>b.updateDOM())):b.addHeadObjs(w())}else{let w=function(){ZTe(t.stylesheetId,t.cspNonce,u.value)};Bn?f.watch(u,w,{immediate:!0}):w()}}function v(y){if(y!=="system"&&!d.value.includes(y)){Ea(`Theme "${y}" not found on the Vuetify theme instance`);return}o.value=y}function p(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.value;const b=y.indexOf(o.value),w=b===-1?0:(b+1)%y.length;v(y[w])}function m(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["light","dark"];p(y)}const g=new Proxy(o,{get(y,b){return Reflect.get(y,b)},set(y,b,w){return b==="value"&&B9(`theme.global.name.value = ${w}`,`theme.change('${w}')`),Reflect.set(y,b,w)}});return{install:h,change:v,cycle:p,toggle:m,isDisabled:t.isDisabled,isSystem:s,name:o,themes:r,current:l,computedThemes:i,prefix:t.prefix,themeClasses:c,styles:u,global:{name:g,current:l}}}function In(e){Ur("provideTheme");const t=f.inject(q1,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=f.toRef(()=>e.theme??t.name.value),r=f.toRef(()=>t.themes.value[n.value]),a=f.toRef(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),o={...t,name:n,current:r,themeClasses:a};return f.provide(q1,o),o}function bv(){Ur("useTheme");const e=f.inject(q1,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}const qTe=ie({...nt(),...Kt(VY(),["fullHeight"]),...pn()},"VApp"),$Te=Te()({name:"VApp",props:qTe(),setup(e,t){let{slots:n}=t;const r=In(e),{layoutClasses:a,getLayoutItem:o,items:i,layoutRef:l}=NY({...e,fullHeight:!0}),{rtlClasses:s}=ta();return Ae(()=>f.createElementVNode("div",{ref:l,class:f.normalizeClass(["v-application",r.themeClasses.value,a.value,s.value,e.class]),style:f.normalizeStyle([e.style])},[f.createElementVNode("div",{class:"v-application__wrap"},[n.default?.()])])),{getLayoutItem:o,items:i,theme:r}}}),Ht=ie({tag:{type:[String,Object,Function],default:"div"}},"tag"),GY=ie({text:String,...nt(),...Ht()},"VToolbarTitle"),NP=Te()({name:"VToolbarTitle",props:GY(),setup(e,t){let{slots:n}=t;return Ae(()=>{const r=!!(n.default||n.text||e.text);return f.createVNode(e.tag,{class:f.normalizeClass(["v-toolbar-title",e.class]),style:f.normalizeStyle(e.style)},{default:()=>[r&&f.createElementVNode("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})}),{}}}),eke=ie({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function ul(e,t,n){return Te()({name:e,props:eke({mode:n,origin:t}),setup(r,a){let{slots:o}=a;const i={onBeforeEnter(l){r.origin&&(l.style.transformOrigin=r.origin)},onLeave(l){if(r.leaveAbsolute){const{offsetTop:s,offsetLeft:u,offsetWidth:c,offsetHeight:d}=l;l._transitionInitialStyles={position:l.style.position,top:l.style.top,left:l.style.left,width:l.style.width,height:l.style.height},l.style.position="absolute",l.style.top=`${s}px`,l.style.left=`${u}px`,l.style.width=`${c}px`,l.style.height=`${d}px`}r.hideOnLeave&&l.style.setProperty("display","none","important")},onAfterLeave(l){if(r.leaveAbsolute&&l?._transitionInitialStyles){const{position:s,top:u,left:c,width:d,height:h}=l._transitionInitialStyles;delete l._transitionInitialStyles,l.style.position=s||"",l.style.top=u||"",l.style.left=c||"",l.style.width=d||"",l.style.height=h||""}}};return()=>{const l=r.group?f.TransitionGroup:f.Transition;return f.h(l,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:i},o.default)}}})}function LP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Te()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:bu()},group:Boolean,hideOnLeave:Boolean},setup(r,a){let{slots:o}=a;const i=r.group?f.TransitionGroup:f.Transition;return()=>f.h(i,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:{...t,onLeave:l=>{r.hideOnLeave?l.style.setProperty("display","none","important"):t.onLeave?.(l)}}},o.default)}})}function OP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y";return{onBeforeEnter(a){a._parent=a.parentNode,a._initialStyle={transition:a.style.transition,overflow:a.style.overflow,width:a.style.width,height:a.style.height}},onEnter(a){const o=a._initialStyle;if(!o)return;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const i=`${a.offsetWidth}px`,l=`${a.offsetHeight}px`;["x","both"].includes(t)&&(a.style.width="0"),["y","both"].includes(t)&&(a.style.height="0"),a.offsetHeight,a.style.transition=o.transition,e&&a._parent&&a._parent.classList.add(e),requestAnimationFrame(()=>{["x","both"].includes(t)&&(a.style.width=i),["y","both"].includes(t)&&(a.style.height=l)})},onAfterEnter:r,onEnterCancelled:r,onLeave(a){a._initialStyle={transition:"",overflow:a.style.overflow,width:a.style.width,height:a.style.height},a.style.overflow="hidden",["x","both"].includes(t)&&(a.style.width=`${a.offsetWidth}px`),["y","both"].includes(t)&&(a.style.height=`${a.offsetHeight}px`),a.offsetHeight,requestAnimationFrame(()=>{["x","both"].includes(t)&&(a.style.width="0"),["y","both"].includes(t)&&(a.style.height="0")})},onAfterLeave:n,onLeaveCancelled:n};function n(a){e&&a._parent&&a._parent.classList.remove(e),r(a)}function r(a){if(!a._initialStyle)return;const{width:o,height:i}=a._initialStyle;a.style.overflow=a._initialStyle.overflow,o!=null&&["x","both"].includes(t)&&(a.style.width=o),i!=null&&["y","both"].includes(t)&&(a.style.height=i),delete a._initialStyle}}const tke=ie({target:[Object,Array]},"v-dialog-transition"),RP=new WeakMap,g_=Te()({name:"VDialogTransition",props:tke(),setup(e,t){let{slots:n}=t;const r={onBeforeEnter(a){a.style.pointerEvents="none",a.style.visibility="hidden"},async onEnter(a,o){await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),a.style.visibility="";const i=YY(e.target,a),{x:l,y:s,sx:u,sy:c,speed:d}=i;if(RP.set(a,i),bu())Lc(a,[{opacity:0},{}],{duration:125*d,easing:EY}).finished.then(()=>o());else{const h=Lc(a,[{transform:`translate(${l}px, ${s}px) scale(${u}, ${c})`,opacity:0},{}],{duration:225*d,easing:EY});UY(a)?.forEach(v=>{Lc(v,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*d,easing:J1})}),h.finished.then(()=>o())}},onAfterEnter(a){a.style.removeProperty("pointer-events")},onBeforeLeave(a){a.style.pointerEvents="none"},async onLeave(a,o){await new Promise(h=>requestAnimationFrame(h));let i;!RP.has(a)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?i=YY(e.target,a):i=RP.get(a);const{x:l,y:s,sx:u,sy:c,speed:d}=i;bu()?Lc(a,[{},{opacity:0}],{duration:85*d,easing:IY}).finished.then(()=>o()):(Lc(a,[{},{transform:`translate(${l}px, ${s}px) scale(${u}, ${c})`,opacity:0}],{duration:125*d,easing:IY}).finished.then(()=>o()),UY(a)?.forEach(v=>{Lc(v,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*d,easing:J1})}))},onAfterLeave(a){a.style.removeProperty("pointer-events")}};return()=>e.target?f.createVNode(f.Transition,f.mergeProps({name:"dialog-transition"},r,{css:!1}),n):f.createVNode(f.Transition,{name:"dialog-transition"},n)}});function UY(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function YY(e,t){const n=lY(e),r=CP(t),[a,o]=getComputedStyle(t).transformOrigin.split(" ").map(y=>parseFloat(y)),[i,l]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let s=n.left+n.width/2;i==="left"||l==="left"?s-=n.width/2:(i==="right"||l==="right")&&(s+=n.width/2);let u=n.top+n.height/2;i==="top"||l==="top"?u-=n.height/2:(i==="bottom"||l==="bottom")&&(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,h=Math.max(1,c,d),v=c/h||0,p=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),g=m>.12?Math.min(1.5,(m-.12)*10+1):1;return{x:s-(a+r.left),y:u-(o+r.top),sx:v,sy:p,speed:g}}const nke=ul("fab-transition","center center","out-in"),rke=ul("dialog-bottom-transition"),ake=ul("dialog-top-transition"),$1=ul("fade-transition"),BP=ul("scale-transition"),oke=ul("scroll-x-transition"),ike=ul("scroll-x-reverse-transition"),lke=ul("scroll-y-transition"),ske=ul("scroll-y-reverse-transition"),uke=ul("slide-x-transition"),cke=ul("slide-x-reverse-transition"),FP=ul("slide-y-transition"),dke=ul("slide-y-reverse-transition"),y_=LP("expand-transition",OP()),HP=LP("expand-x-transition",OP("","x")),fke=LP("expand-both-transition",OP("","both")),hke=ie({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),zt=Te(!1)({name:"VDefaultsProvider",props:hke(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:a,reset:o,root:i,scoped:l}=f.toRefs(e);return _r(r,{reset:o,root:i,scoped:l,disabled:a}),()=>n.default?.()}}),Yr=ie({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function jr(e){return{dimensionStyles:f.computed(()=>{const n={},r=Oe(e.height),a=Oe(e.maxHeight),o=Oe(e.maxWidth),i=Oe(e.minHeight),l=Oe(e.minWidth),s=Oe(e.width);return r!=null&&(n.height=r),a!=null&&(n.maxHeight=a),o!=null&&(n.maxWidth=o),i!=null&&(n.minHeight=i),l!=null&&(n.minWidth=l),s!=null&&(n.width=s),n})}}function vke(e){return{aspectStyles:f.computed(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const jY=ie({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...nt(),...Yr()},"VResponsive"),zP=Te()({name:"VResponsive",props:jY(),setup(e,t){let{slots:n}=t;const{aspectStyles:r}=vke(e),{dimensionStyles:a}=jr(e);return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:f.normalizeStyle([a.value,e.style])},[f.createElementVNode("div",{class:"v-responsive__sizer",style:f.normalizeStyle(r.value)},null),n.additional?.(),n.default&&f.createElementVNode("div",{class:f.normalizeClass(["v-responsive__content",e.contentClass])},[n.default()])])),{}}});function WP(e){return yP(()=>{const{class:t,style:n}=KY(e);return{colorClasses:t,colorStyles:n}})}function Wa(e){const{colorClasses:t,colorStyles:n}=WP(()=>({text:f.toValue(e)}));return{textColorClasses:t,textColorStyles:n}}function Ln(e){const{colorClasses:t,colorStyles:n}=WP(()=>({background:f.toValue(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function pke(e){return{text:typeof e.text=="string"?e.text.replace(/^text-/,""):e.text,background:typeof e.background=="string"?e.background.replace(/^bg-/,""):e.background}}function KY(e){const t=pke(f.toValue(e)),n=[],r={};if(t.background)if(TP(t.background)){if(r.backgroundColor=t.background,!t.text&&yTe(t.background)){const a=ll(t.background);if(a.a==null||a.a===1){const o=kY(a);r.color=o,r.caretColor=o}}}else n.push(`bg-${t.background}`);return t.text&&(TP(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}const $n=ie({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function cr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{roundedClasses:f.computed(()=>{const r=f.isRef(e)?e.value:e.rounded,a=f.isRef(e)?!1:e.tile,o=[];if(a||r===!1)o.push("rounded-0");else if(r===!0||r==="")o.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))o.push(`rounded-${i}`);return o})}}const Rc=ie({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),Wo=(e,t)=>{let{slots:n}=t;const{transition:r,disabled:a,group:o,...i}=e,{component:l=o?f.TransitionGroup:f.Transition,...s}=dv(r)?r:{};let u;return dv(r)?u=f.mergeProps(s,eTe({disabled:a,group:o}),i):u=f.mergeProps({name:a||!r?"":r},i),f.h(l,u,n)};function XY(e,t){if(!dP)return;const n=t.modifiers||{},r=t.value,{handler:a,options:o}=typeof r=="object"?r:{handler:r,options:{}},i=new IntersectionObserver(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const u=e._observe?.[t.instance.$.uid];if(!u)return;const c=l.some(d=>d.isIntersecting);a&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&a(c,l,s),c&&n.once?GP(e,t):u.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:i},i.observe(e)}function GP(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const cl={mounted:XY,unmounted:GP,updated:(e,t)=>{e._observe?.[t.instance.$.uid]&&(GP(e,t),XY(e,t))}},ZY=ie({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,imageClass:null,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,...jY(),...nt(),...$n(),...Rc()},"VImg"),Bc=Te()({name:"VImg",directives:{vIntersect:cl},props:ZY(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{roundedClasses:i}=cr(e),l=Ur("VImg"),s=f.shallowRef(""),u=f.ref(),c=f.shallowRef(e.eager?"loading":"idle"),d=f.shallowRef(),h=f.shallowRef(),v=f.computed(()=>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=f.computed(()=>v.value.aspect||d.value/h.value||0);f.watch(()=>e.src,()=>{m(c.value!=="idle")}),f.watch(p,(N,D)=>{!N&&D&&u.value&&S(u.value)}),f.onBeforeMount(()=>m());function m(N){if(!(e.eager&&N)&&!(dP&&!N&&!e.eager)){if(c.value="loading",v.value.lazySrc){const D=new Image;D.src=v.value.lazySrc,S(D,null)}v.value.src&&f.nextTick(()=>{n("loadstart",u.value?.currentSrc||v.value.src),setTimeout(()=>{if(!l.isUnmounted)if(u.value?.complete){if(u.value.naturalWidth||y(),c.value==="error")return;p.value||S(u.value,null),c.value==="loading"&&g()}else p.value||S(u.value),b()})})}}function g(){l.isUnmounted||(b(),S(u.value),c.value="loaded",n("load",u.value?.currentSrc||v.value.src))}function y(){l.isUnmounted||(c.value="error",n("error",u.value?.currentSrc||v.value.src))}function b(){const N=u.value;N&&(s.value=N.currentSrc||N.src)}let w=-1;f.onBeforeUnmount(()=>{clearTimeout(w)});function S(N){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(w),l.isUnmounted)return;const{naturalHeight:O,naturalWidth:L}=N;O||L?(d.value=L,h.value=O):!N.complete&&c.value==="loading"&&D!=null?w=window.setTimeout(P,D):(N.currentSrc.endsWith(".svg")||N.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,h.value=1)};P()}const _=f.toRef(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),x=()=>{if(!v.value.src||c.value==="idle")return null;const N=f.createElementVNode("img",{class:f.normalizeClass(["v-img__img",_.value,e.imageClass]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.src,srcset:v.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:g,onError:y},null),D=r.sources?.();return f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[f.withDirectives(D?f.createElementVNode("picture",{class:"v-img__picture"},[D,N]):N,[[f.vShow,c.value==="loaded"]])]})},T=()=>f.createVNode(Wo,{transition:e.transition},{default:()=>[v.value.lazySrc&&c.value!=="loaded"&&f.createElementVNode("img",{class:f.normalizeClass(["v-img__img","v-img__img--preload",_.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:v.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),A=()=>r.placeholder?f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!r.error)&&f.createElementVNode("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,E=()=>r.error?f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[c.value==="error"&&f.createElementVNode("div",{class:"v-img__error"},[r.error()])]}):null,I=()=>e.gradient?f.createElementVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,M=f.shallowRef(!1);{const N=f.watch(p,D=>{D&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{M.value=!0})}),N())})}return Ae(()=>{const N=zP.filterProps(e);return f.withDirectives(f.createVNode(zP,f.mergeProps({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!M.value,"v-img--fit-content":e.width==="fit-content"},a.value,i.value,e.class],style:[{width:Oe(e.width==="auto"?d.value:e.width)},o.value,e.style]},N,{aspectRatio:p.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(x,null,null),f.createVNode(T,null,null),f.createVNode(I,null,null),f.createVNode(A,null,null),f.createVNode(E,null,null)]),default:r.default}),[[cl,{handler:m,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:u,state:c,naturalWidth:d,naturalHeight:h}}}),xo=ie({border:[Boolean,Number,String]},"border");function Go(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{borderClasses:f.computed(()=>{const r=e.border;return r===!0||r===""?`${t}--border`:typeof r=="string"||r===0?String(r).split(" ").map(a=>`border-${a}`):[]})}}const Kr=ie({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function pa(e){return{elevationClasses:f.toRef(()=>{const n=f.isRef(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const JY={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},_u=ie({location:String},"location");function of(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=ta();return{locationStyles:f.computed(()=>{if(!e.location)return{};const{side:o,align:i}=bP(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function l(u){return n?n(u):0}const s={};return o!=="center"&&(t?s[JY[o]]=`calc(100% - ${l(o)}px)`:s[o]=0),i!=="center"?t?s[JY[i]]=`calc(100% - ${l(i)}px)`:s[i]=0:(o==="center"?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),s})}}const mke=[null,"prominent","default","comfortable","compact"],QY=ie({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>mke.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...xo(),...nt(),...Kr(),..._u(),...$n(),...Ht({tag:"header"}),...pn()},"VToolbar"),Fc=Te()({name:"VToolbar",props:QY(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.color),{borderClasses:o}=Go(e),{elevationClasses:i}=pa(e),{locationStyles:l}=of(e),{roundedClasses:s}=cr(e),{themeClasses:u}=In(e),{rtlClasses:c}=ta(),d=f.shallowRef(e.extended===null?!!n.extension?.():e.extended),h=f.computed(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=f.computed(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return _r({VBtn:{variant:"text"}}),Ae(()=>{const p=!!(e.title||n.title),m=!!(n.image||e.image),g=n.extension?.();return d.value=e.extended===null?!!g:e.extended,f.createVNode(e.tag,{class:f.normalizeClass(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,o.value,i.value,s.value,u.value,c.value,e.class]),style:f.normalizeStyle([a.value,l.value,e.style])},{default:()=>[m&&f.createElementVNode("div",{key:"image",class:"v-toolbar__image"},[n.image?f.createVNode(zt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):f.createVNode(Bc,{key:"image-img",cover:!0,src:e.image},null)]),f.createVNode(zt,{defaults:{VTabs:{height:Oe(h.value)}}},{default:()=>[f.createElementVNode("div",{class:"v-toolbar__content",style:{height:Oe(h.value)}},[n.prepend&&f.createElementVNode("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),p&&f.createVNode(NP,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&f.createElementVNode("div",{class:"v-toolbar__append"},[n.append?.()])])]}),f.createVNode(zt,{defaults:{VTabs:{height:Oe(v.value)}}},{default:()=>[f.createVNode(y_,null,{default:()=>[d.value&&f.createElementVNode("div",{class:"v-toolbar__extension",style:{height:Oe(v.value)}},[g])]})]})]})}),{contentHeight:h,extensionHeight:v}}}),gke=ie({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function yke(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:n,layoutSize:r}=t;let a=0,o=0;const i=f.ref(null),l=f.shallowRef(0),s=f.shallowRef(0),u=f.shallowRef(0),c=f.shallowRef(!1),d=f.shallowRef(!1),h=f.shallowRef(!1),v=f.shallowRef(!1),p=f.shallowRef(!0),m=f.computed(()=>Number(e.scrollThreshold)),g=f.computed(()=>Fn((m.value-l.value)/m.value||0));function y(_){const x="window"in _?window.innerHeight:_.clientHeight,T="window"in _?document.documentElement.scrollHeight:_.scrollHeight;return{clientHeight:x,scrollHeight:T}}function b(){const _=i.value;if(!_)return;const{clientHeight:x,scrollHeight:T}=y(_),A=T-x,E=r?.value||0,I=m.value+E;p.value=A>I}function w(){b()}function S(){const _=i.value;if(!_||n&&!n.value)return;a=l.value,l.value="window"in _?_.pageYOffset:_.scrollTop;const x=_ instanceof Window?document.documentElement.scrollHeight:_.scrollHeight;o!==x&&(x>o&&b(),o=x),d.value=l.value=A-5;!d.value&&E&&l.value>=m.value&&p.value&&(v.value=!0);const I=Math.abs(l.value-a)>100,M=l.value<=5;(d.value&&a-l.value>1&&!E||I&&l.value{s.value=s.value||l.value}),f.watch(c,()=>{s.value=0}),f.onMounted(()=>{f.watch(()=>e.scrollTarget,_=>{const x=_?document.querySelector(_):window;if(!x){Ea(`Unable to locate element with identifier ${_}`);return}x!==i.value&&(i.value?.removeEventListener("scroll",S),i.value=x,i.value.addEventListener("scroll",S,{passive:!0}),Promise.resolve().then(()=>{b()}))},{immediate:!0}),window.addEventListener("resize",w,{passive:!0})}),f.onBeforeUnmount(()=>{i.value?.removeEventListener("scroll",S),window.removeEventListener("resize",w)}),n&&f.watch(n,S,{immediate:!0}),{scrollThreshold:m,currentScroll:l,currentThreshold:u,isScrollActive:c,scrollRatio:g,isScrollingUp:d,savedScroll:s,isAtBottom:h,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:p}}function wv(){const e=f.shallowRef(!1);return f.onMounted(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:f.toRef(()=>e.value?void 0:{transition:"none !important"}),isBooted:f.readonly(e)}}const bke=ie({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...Kt(QY(),["location"]),...mv(),...gke(),height:{type:[Number,String],default:64}},"VAppBar"),wke=Te()({name:"VAppBar",props:bke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),a=ot(e,"modelValue"),o=f.computed(()=>{const x=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:x.has("hide"),fullyHide:x.has("fully-hide"),inverted:x.has("inverted"),collapse:x.has("collapse"),elevate:x.has("elevate"),fadeImage:x.has("fade-image")}}),i=f.computed(()=>{const x=o.value;return x.hide||x.fullyHide||x.inverted||x.collapse||x.elevate||x.fadeImage||!a.value}),l=f.computed(()=>{const x=r.value?.contentHeight??0,T=r.value?.extensionHeight??0;return x+T}),{currentScroll:s,scrollThreshold:u,isScrollingUp:c,scrollRatio:d,isAtBottom:h,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:p}=yke(e,{canScroll:i,layoutSize:l}),m=f.toRef(()=>o.value.hide||o.value.fullyHide),g=f.computed(()=>e.collapse||o.value.collapse&&(o.value.inverted?d.value>0:d.value===0)),y=f.computed(()=>e.flat||o.value.fullyHide&&!a.value||o.value.elevate&&(o.value.inverted?s.value>0:s.value===0)),b=f.computed(()=>o.value.fadeImage?o.value.inverted?1-d.value:d.value:void 0),w=f.computed(()=>{if(o.value.hide&&o.value.inverted)return 0;const x=r.value?.contentHeight??0,T=r.value?.extensionHeight??0;return m.value?s.value!!e.scrollBehavior,()=>{f.watchEffect(()=>{if(!m.value){a.value=!0;return}if(o.value.inverted){a.value=s.value>u.value;return}if(!p.value){a.value=!0;return}if(v.value){a.value=!1;return}a.value=c.value&&!h.value||s.valueparseInt(e.order,10)),position:f.toRef(()=>e.location),layoutSize:w,elementSize:f.shallowRef(void 0),active:a,absolute:f.toRef(()=>e.absolute)});return Ae(()=>{const x=Kt(Fc.filterProps(e),["location"]);return f.createVNode(Fc,f.mergeProps({ref:r,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{..._.value,"--v-toolbar-image-opacity":b.value,height:void 0,...S.value},e.style]},x,{collapse:g.value,flat:y.value}),n)}),{}}}),Ske=[null,"default","comfortable","compact"],Tr=ie({density:{type:String,default:"default",validator:e=>Ske.includes(e)}},"density");function $a(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{densityClasses:f.toRef(()=>`${t}--density-${e.density}`)}}const xke=["elevated","flat","tonal","outlined","text","plain"];function Hc(e,t){return f.createElementVNode(f.Fragment,null,[e&&f.createElementVNode("span",{key:"overlay",class:f.normalizeClass(`${t}__overlay`)},null),f.createElementVNode("span",{key:"underlay",class:f.normalizeClass(`${t}__underlay`)},null)])}const dl=ie({color:String,variant:{type:String,default:"elevated",validator:e=>xke.includes(e)}},"variant");function zc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=f.toRef(()=>{const{variant:o}=f.toValue(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:a}=WP(()=>{const{variant:o,color:i}=f.toValue(e);return{[["elevated","flat"].includes(o)?"background":"text"]:i}});return{colorClasses:r,colorStyles:a,variantClasses:n}}const qY=ie({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...xo(),...nt(),...Tr(),...Kr(),...$n(),...Ht(),...pn(),...dl()},"VBtnGroup"),b_=Te()({name:"VBtnGroup",props:qY(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{densityClasses:a}=$a(e),{borderClasses:o}=Go(e),{elevationClasses:i}=pa(e),{roundedClasses:l}=cr(e);_r({VBtn:{height:f.toRef(()=>e.direction==="horizontal"?"auto":null),baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),density:f.toRef(()=>e.density),flat:!0,variant:f.toRef(()=>e.variant)}}),Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},r.value,o.value,a.value,i.value,l.value,e.class]),style:f.normalizeStyle(e.style)},n))}}),Sv=ie({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),xv=ie({value:null,disabled:Boolean,selectedClass:String},"group-item");function lf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=Ur("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=f.useId();f.provide(Symbol.for(`${t.description}:id`),a);const o=f.inject(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const i=f.toRef(()=>e.value),l=f.computed(()=>!!(o.disabled.value||e.disabled));function s(){o?.register({id:a,value:i,disabled:l},r)}function u(){o?.unregister(a)}s(),f.onBeforeUnmount(()=>u());const c=f.computed(()=>o.isSelected(a)),d=f.computed(()=>o.items.value[0].id===a),h=f.computed(()=>o.items.value[o.items.value.length-1].id===a),v=f.computed(()=>c.value&&[o.selectedClass.value,e.selectedClass]);return f.watch(c,p=>{r.emit("group:selected",{value:p})},{flush:"sync"}),{id:a,isSelected:c,isFirst:d,isLast:h,toggle:()=>o.select(a,!c.value),select:p=>o.select(a,p),selectedClass:v,value:i,disabled:l,group:o,register:s,unregister:u}}function sf(e,t){let n=!1;const r=f.reactive([]),a=ot(e,"modelValue",[],h=>h===void 0?[]:$Y(r,h===null?[null]:Kn(h)),h=>{const v=_ke(r,h);return e.multiple?v:v[0]}),o=Ur("useGroup");function i(h,v){const p=h,m=Symbol.for(`${t.description}:id`),y=Og(m,o?.vnode).indexOf(v);f.unref(p.value)===void 0&&(p.value=y,p.useIndexAsValue=!0),y>-1?r.splice(y,0,p):r.push(p)}function l(h){if(n)return;s();const v=r.findIndex(p=>p.id===h);r.splice(v,1)}function s(){const h=r.find(v=>!v.disabled);h&&e.mandatory==="force"&&!a.value.length&&(a.value=[h.id])}f.onMounted(()=>{s()}),f.onBeforeUnmount(()=>{n=!0}),f.onUpdated(()=>{for(let h=0;hm.id===h);if(!(v&&p?.disabled))if(e.multiple){const m=a.value.slice(),g=m.findIndex(b=>b===h),y=~g;if(v=v??!y,y&&e.mandatory&&m.length<=1||!y&&e.max!=null&&m.length+1>e.max)return;g<0&&v?m.push(h):g>=0&&!v&&m.splice(g,1),a.value=m}else{const m=a.value.includes(h);if(e.mandatory&&m||!m&&!v)return;a.value=v??!m?[h]:[]}}function c(h){if(e.multiple&&Ea('This method is not supported when using "multiple" prop'),a.value.length){const v=a.value[0],p=r.findIndex(y=>y.id===v);let m=(p+h)%r.length,g=r[m];for(;g.disabled&&m!==p;)m=(m+h)%r.length,g=r[m];if(g.disabled)return;a.value=[r[m].id]}else{const v=r.find(p=>!p.disabled);v&&(a.value=[v.id])}}const d={register:i,unregister:l,selected:a,select:u,disabled:f.toRef(()=>e.disabled),prev:()=>c(r.length-1),next:()=>c(1),isSelected:h=>a.value.includes(h),selectedClass:f.toRef(()=>e.selectedClass),items:f.toRef(()=>r),getItemIndex:h=>Cke(r,h)};return f.provide(t,d),d}function Cke(e,t){const n=$Y(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function $Y(e,t){const n=[];return t.forEach(r=>{const a=e.find(i=>Ia(r,i.value)),o=e[r];a?.value!==void 0?n.push(a.id):o?.useIndexAsValue&&n.push(o.id)}),n}function _ke(e,t){const n=[];return t.forEach(r=>{const a=e.findIndex(o=>o.id===r);if(~a){const o=e[a];n.push(o.value!==void 0?o.value:a)}}),n}const UP=Symbol.for("vuetify:v-btn-toggle"),Tke=ie({...qY(),...Sv()},"VBtnToggle"),kke=Te()({name:"VBtnToggle",props:Tke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:a,prev:o,select:i,selected:l}=sf(e,UP);return Ae(()=>{const s=b_.filterProps(e);return f.createVNode(b_,f.mergeProps({class:["v-btn-toggle",e.class]},s,{style:e.style}),{default:()=>[n.default?.({isSelected:r,next:a,prev:o,select:i,selected:l})]})}),{next:a,prev:o,select:i}}}),st=[String,Function,Object,Array],YP=Symbol.for("vuetify:icons"),w_=ie({icon:{type:st},tag:{type:[String,Object,Function],required:!0}},"icon"),jP=Te()({name:"VComponentIcon",props:w_(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return f.createVNode(e.tag,null,{default:()=>[e.icon?f.createVNode(r,null,null):n.default?.()]})}}}),KP=zo({name:"VSvgIcon",inheritAttrs:!1,props:w_(),setup(e,t){let{attrs:n}=t;return()=>f.createVNode(e.tag,f.mergeProps(n,{style:null}),{default:()=>[f.createElementVNode("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)?f.createElementVNode("path",{d:r[0],"fill-opacity":r[1]},null):f.createElementVNode("path",{d:r},null)):f.createElementVNode("path",{d:e.icon},null)])]})}}),Ake=zo({name:"VLigatureIcon",props:w_(),setup(e){return()=>f.createVNode(e.tag,null,{default:()=>[e.icon]})}}),XP=zo({name:"VClassIcon",props:w_(),setup(e){return()=>f.createVNode(e.tag,{class:f.normalizeClass(e.icon)},null)}}),Eke=e=>{const t=f.inject(YP);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:f.computed(()=>{const r=f.toValue(e);if(!r)return{component:jP};let a=r;if(typeof a=="string"&&(a=a.trim(),a.startsWith("$")&&(a=t.aliases?.[a.slice(1)])),a||Ea(`Could not find aliased icon "${r}"`),Array.isArray(a))return{component:KP,icon:a};if(typeof a!="string")return{component:jP,icon:a};const o=Object.keys(t.sets).find(s=>typeof a=="string"&&a.startsWith(`${s}:`)),i=o?a.slice(o.length+1):a;return{component:t.sets[o??t.defaultSet].component,icon:i}})}},Ike=["x-small","small","default","large","x-large"],Tu=ie({size:{type:[String,Number],default:"default"}},"size");function Gg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return yP(()=>{const n=e.size;let r,a;return o_(Ike,n)?r=`${t}--size-${n}`:n&&(a={width:Oe(n),height:Oe(n)}),{sizeClasses:r,sizeStyles:a}})}const Mke=ie({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:st,opacity:[String,Number],...nt(),...Tu(),...Ht({tag:"i"}),...pn()},"VIcon"),Ct=Te()({name:"VIcon",props:Mke(),setup(e,t){let{attrs:n,slots:r}=t;const a=f.shallowRef(),{themeClasses:o}=bv(),{iconData:i}=Eke(()=>a.value||e.icon),{sizeClasses:l}=Gg(e),{textColorClasses:s,textColorStyles:u}=Wa(()=>e.color);return Ae(()=>{const c=r.default?.();c&&(a.value=Q9(c).filter(h=>h.type===f.Text&&h.children&&typeof h.children=="string")[0]?.children);const d=!!(n.onClick||n.onClickOnce);return f.createVNode(i.value.component,{tag:e.tag,icon:i.value.icon,class:f.normalizeClass(["v-icon","notranslate",o.value,l.value,s.value,{"v-icon--clickable":d,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:f.normalizeStyle([{"--v-icon-opacity":e.opacity},l.value?void 0:{fontSize:Oe(e.size),height:Oe(e.size),width:Oe(e.size)},u.value,e.style]),role:d?"button":void 0,"aria-hidden":!d,tabindex:d?e.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function ew(e,t){const n=f.ref(),r=f.shallowRef(!1);if(dP){const a=new IntersectionObserver(o=>{r.value=!!o.find(i=>i.isIntersecting)},t);f.onScopeDispose(()=>{a.disconnect()}),f.watch(n,(o,i)=>{i&&(a.unobserve(i),r.value=!1),o&&a.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const Dke=ie({reveal:{type:[Boolean,Object],default:!1}},"reveal");function Vke(e){const n=f.toRef(()=>typeof e.reveal=="object"?Math.max(0,Number(e.reveal.duration??900)):900),r=f.shallowRef(e.reveal?"initial":"disabled");return f.onMounted(async()=>{e.reveal&&(r.value="initial",await new Promise(a=>requestAnimationFrame(a)),r.value="pending",await new Promise(a=>setTimeout(a,n.value)),r.value="done")}),{duration:n,state:r}}const Pke=ie({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},...nt(),...Dke(),...Tu(),...Ht({tag:"div"}),...pn()},"VProgressCircular"),uf=Te()({name:"VProgressCircular",props:Pke(),setup(e,t){let{slots:n}=t;const r=20,a=2*Math.PI*r,o=f.ref(),{themeClasses:i}=In(e),{sizeClasses:l,sizeStyles:s}=Gg(e),{textColorClasses:u,textColorStyles:c}=Wa(()=>e.color),{textColorClasses:d,textColorStyles:h}=Wa(()=>e.bgColor),{intersectionRef:v,isIntersecting:p}=ew(),{resizeRef:m,contentRect:g}=Gl(),{state:y,duration:b}=Vke(e),w=f.toRef(()=>y.value==="initial"?0:Fn(parseFloat(e.modelValue),0,100)),S=f.toRef(()=>Number(e.width)),_=f.toRef(()=>s.value?Number(e.size):g.value?g.value.width:Math.max(S.value,32)),x=f.toRef(()=>r/(1-S.value/_.value)*2),T=f.toRef(()=>S.value/_.value*x.value),A=f.toRef(()=>{const I=(100-w.value)/100*a;return e.rounded&&w.value>0&&w.value<100?Oe(Math.min(a-.01,I+T.value)):Oe(I)}),E=f.computed(()=>{const I=Number(e.rotate);return e.rounded?I+T.value/2/a*360:I});return f.watchEffect(()=>{v.value=o.value,m.value=o.value}),Ae(()=>f.createVNode(e.tag,{ref:o,class:f.normalizeClass(["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"||bu()),"v-progress-circular--revealing":["initial","pending"].includes(y.value)},i.value,l.value,u.value,e.class]),style:f.normalizeStyle([s.value,c.value,{"--progress-reveal-duration":`${b.value}ms`},e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:w.value},{default:()=>[f.createElementVNode("svg",{style:{transform:`rotate(calc(-90deg + ${E.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${x.value} ${x.value}`},[f.createElementVNode("circle",{class:f.normalizeClass(["v-progress-circular__underlay",d.value]),style:f.normalizeStyle(h.value),fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":a,"stroke-dashoffset":0},null),f.createElementVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":T.value,"stroke-dasharray":a,"stroke-dashoffset":A.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&f.createElementVNode("div",{class:"v-progress-circular__content"},[n.default({value:w.value})])]})),{}}}),Nke=ie({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function Lke(e,t){const n=f.toRef(()=>!!e.chunkCount||!!e.chunkWidth),r=f.computed(()=>{const l=f.toValue(t);if(!l)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const s=Number(e.chunkCount);return(l-Number(e.chunkGap)*(s-1))/s}),a=f.toRef(()=>Number(e.chunkGap)),o=f.computed(()=>{if(!n.value)return{};const l=Oe(a.value),s=Oe(r.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${s}, transparent ${s}, transparent)`,maskSize:`calc(${s} + ${l}) 100%`}});function i(l){const s=f.toValue(t);if(!s)return l;const u=100*a.value/s,c=100*(r.value+a.value)/s,d=Math.floor((l+u)/c);return Fn(0,d*c-u/2,100)}return{hasChunks:n,chunksMaskStyles:o,snapValueToChunk:i}}const Oke=ie({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,...Nke(),...nt(),..._u({location:"top"}),...$n(),...Ht(),...pn()},"VProgressLinear"),Ug=Te()({name:"VProgressLinear",props:Oke(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),a=ot(e,"modelValue"),{isRtl:o,rtlClasses:i}=ta(),{themeClasses:l}=In(e),{locationStyles:s}=of(e),{textColorClasses:u,textColorStyles:c}=Wa(()=>e.color),{backgroundColorClasses:d,backgroundColorStyles:h}=Ln(()=>e.bgColor||e.color),{backgroundColorClasses:v,backgroundColorStyles:p}=Ln(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:m,backgroundColorStyles:g}=Ln(()=>e.color),{roundedClasses:y}=cr(e),{intersectionRef:b,isIntersecting:w}=ew(),S=f.computed(()=>parseFloat(e.max)),_=f.computed(()=>parseFloat(e.height)),x=f.computed(()=>Fn(parseFloat(e.bufferValue)/S.value*100,0,100)),T=f.computed(()=>Fn(parseFloat(a.value)/S.value*100,0,100)),A=f.computed(()=>o.value!==e.reverse),E=f.computed(()=>e.indeterminate?"fade-transition":"slide-x-transition"),I=f.shallowRef(0),{hasChunks:M,chunksMaskStyles:N,snapValueToChunk:D}=Lke(e,I);qa(M,()=>{const{resizeRef:R}=Gl(B=>I.value=B[0].contentRect.width);f.watchEffect(()=>R.value=r.value)});const P=f.computed(()=>M.value?D(x.value):x.value),O=f.computed(()=>M.value?D(T.value):T.value);function L(R){if(!b.value)return;const{left:B,right:z,width:H}=b.value.getBoundingClientRect(),G=A.value?H-R.clientX+(z-H):R.clientX-B;a.value=Math.round(G/H*S.value)}return f.watchEffect(()=>{b.value=r.value}),Ae(()=>f.createVNode(e.tag,{ref:r,class:f.normalizeClass(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&w.value,"v-progress-linear--reverse":A.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},y.value,l.value,i.value,e.class]),style:f.normalizeStyle([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Oe(_.value):0,"--v-progress-linear-height":Oe(_.value),...e.absolute?s.value:{}},N.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(a.value),S.value),onClick:e.clickable&&L},{default:()=>[e.stream&&f.createElementVNode("div",{key:"stream",class:f.normalizeClass(["v-progress-linear__stream",u.value]),style:{...c.value,[A.value?"left":"right"]:Oe(-_.value),borderTop:`${Oe(_.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Oe(_.value/4)})`,width:Oe(100-x.value,"%"),"--v-progress-linear-stream-to":Oe(_.value*(A.value?1:-1))}},null),f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__background",d.value]),style:f.normalizeStyle([h.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__buffer",v.value]),style:f.normalizeStyle([p.value,{opacity:parseFloat(e.bufferOpacity),width:Oe(P.value,"%")}])},null),f.createVNode(f.Transition,{name:E.value},{default:()=>[e.indeterminate?f.createElementVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(R=>f.createElementVNode("div",{key:R,class:f.normalizeClass(["v-progress-linear__indeterminate",R,m.value]),style:f.normalizeStyle(g.value)},null))]):f.createElementVNode("div",{class:f.normalizeClass(["v-progress-linear__determinate",m.value]),style:f.normalizeStyle([g.value,{width:Oe(O.value,"%")}])},null)]}),n.default&&f.createElementVNode("div",{class:"v-progress-linear__content"},[n.default({value:T.value,buffer:x.value})])]})),{}}}),S_=ie({loading:[Boolean,String]},"loader");function tw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{loaderClasses:f.toRef(()=>({[`${t}--loading`]:e.loading}))}}function nw(e,t){let{slots:n}=t;return f.createElementVNode("div",{class:f.normalizeClass(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||f.createVNode(Ug,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const Rke=["static","relative","fixed","absolute","sticky"],Yg=ie({position:{type:String,validator:e=>Rke.includes(e)}},"position");function jg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();return{positionClasses:f.toRef(()=>e.position?`${t}--${e.position}`:void 0)}}function Bke(){const e=Ur("useRoute");return f.computed(()=>e?.proxy?.$route)}function ej(){return Ur("useRouter")?.proxy?.$router}function rw(e,t){const n=f.resolveDynamicComponent("RouterLink"),r=f.toRef(()=>!!(e.href||e.to)),a=f.computed(()=>r?.value||eY(t,"click")||eY(e,"click"));if(typeof n=="string"||!("useLink"in n)){const d=f.toRef(()=>e.href);return{isLink:r,isRouterLink:f.toRef(()=>!1),isClickable:a,href:d,linkProps:f.reactive({href:d}),route:f.toRef(()=>{}),navigate:f.toRef(()=>{})}}const o=n.useLink({to:f.toRef(()=>e.to||""),replace:f.toRef(()=>e.replace)}),i=f.computed(()=>e.to?o:void 0),l=Bke(),s=f.computed(()=>i.value?e.exact?l.value?i.value.isExactActive?.value&&Ia(i.value.route.value.query,l.value.query):i.value.isExactActive?.value??!1:i.value.isActive?.value??!1:!1),u=f.computed(()=>e.to?i.value?.route.value.href:e.href),c=f.toRef(()=>!!e.to);return{isLink:r,isRouterLink:c,isClickable:a,isActive:s,route:f.toRef(()=>i.value?.route.value),navigate:f.toRef(()=>i.value?.navigate),href:u,linkProps:f.reactive({href:u,"aria-current":f.toRef(()=>s.value?"page":void 0),"aria-disabled":f.toRef(()=>e.disabled&&r.value?"true":void 0),tabindex:f.toRef(()=>e.disabled&&r.value?"-1":void 0)})}}const aw=ie({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ZP=!1;function Fke(e,t){let n=!1,r,a;Bn&&e?.beforeEach&&(f.nextTick(()=>{window.addEventListener("popstate",o),r=e.beforeEach(()=>ZP?n?t():void 0:(ZP=!0,new Promise(i=>{setTimeout(()=>i(n?t():void 0))}))),a=e?.afterEach(()=>{ZP=!1})}),f.onScopeDispose(()=>{window.removeEventListener("popstate",o),r?.(),a?.()}));function o(i){i.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function Hke(e,t){f.watch(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&f.nextTick(()=>{t(n)})},{immediate:!0})}const JP=Symbol("rippleStop"),zke=80;function tj(e,t){e.style.transform=t,e.style.webkitTransform=t}function QP(e){return e.constructor.name==="TouchEvent"}function nj(e){return e.constructor.name==="KeyboardEvent"}const Wke=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,a=0;if(!nj(e)){const d=t.getBoundingClientRect(),h=QP(e)?e.touches[e.touches.length-1]:e;r=h.clientX-d.left,a=h.clientY-d.top}let o=0,i=.3;t._ripple?.circle?(i=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(a-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const l=`${(t.clientWidth-o*2)/2}px`,s=`${(t.clientHeight-o*2)/2}px`,u=n.center?l:`${r-o}px`,c=n.center?s:`${a-o}px`;return{radius:o,scale:i,x:u,y:c,centerX:l,centerY:s}},x_={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),a=document.createElement("span");r.appendChild(a),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:i,x:l,y:s,centerX:u,centerY:c}=Wke(e,t,n),d=`${o*2}px`;a.className="v-ripple__animation",a.style.width=d,a.style.height=d,t.appendChild(r);const h=window.getComputedStyle(t);h&&h.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),a.classList.add("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--visible"),tj(a,`translate(${l}, ${s}) scale3d(${i},${i},${i})`),a.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.classList.remove("v-ripple__animation--enter"),a.classList.add("v-ripple__animation--in"),tj(a,`translate(${u}, ${c}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.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),a=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},a)}};function rj(e){return typeof e>"u"||!!e}function ow(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[JP])){if(e[JP]=!0,QP(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||nj(e),n._ripple.class&&(t.class=n._ripple.class),QP(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{x_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},zke)}else x_.show(e,n,t)}}function C_(e){e[JP]=!0}function fl(e){const t=e.currentTarget;if(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(()=>{fl(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),x_.hide(t)}}function aj(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let iw=!1;function Gke(e,t){!iw&&t.includes(e.key)&&(iw=!0,ow(e))}function oj(e){iw=!1,fl(e)}function ij(e){iw&&(iw=!1,fl(e))}function lj(e,t,n){const{value:r,modifiers:a}=t,o=rj(r);o||x_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=a.center,e._ripple.circle=a.circle;const i=dv(r)?r:{};i.class&&(e._ripple.class=i.class);const l=i.keys??["Enter","Space"];if(e._ripple.keyDownHandler=s=>Gke(s,l),o&&!n){if(a.stop){e.addEventListener("touchstart",C_,{passive:!0}),e.addEventListener("mousedown",C_);return}e.addEventListener("touchstart",ow,{passive:!0}),e.addEventListener("touchend",fl,{passive:!0}),e.addEventListener("touchmove",aj,{passive:!0}),e.addEventListener("touchcancel",fl),e.addEventListener("mousedown",ow),e.addEventListener("mouseup",fl),e.addEventListener("mouseleave",fl),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",oj),e.addEventListener("blur",ij),e.addEventListener("dragstart",fl,{passive:!0})}else!o&&n&&sj(e)}function sj(e){e.removeEventListener("touchstart",C_),e.removeEventListener("mousedown",C_),e.removeEventListener("touchstart",ow),e.removeEventListener("touchend",fl),e.removeEventListener("touchmove",aj),e.removeEventListener("touchcancel",fl),e.removeEventListener("mousedown",ow),e.removeEventListener("mouseup",fl),e.removeEventListener("mouseleave",fl),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",oj),e.removeEventListener("blur",ij),e.removeEventListener("dragstart",fl)}function Uke(e,t){lj(e,t,!1)}function Yke(e){sj(e),delete e._ripple}function jke(e,t){if(t.value===t.oldValue)return;const n=rj(t.oldValue);lj(e,t,n)}const eo={mounted:Uke,unmounted:Yke,updated:jke},__=ie({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:UP},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:st,appendIcon:st,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...xo(),...nt(),...Tr(),...Yr(),...Kr(),...xv(),...S_(),..._u(),...Yg(),...$n(),...aw(),...Tu(),...Ht({tag:"button"}),...pn(),...dl({variant:"elevated"})},"VBtn"),_t=Te()({name:"VBtn",props:__(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{borderClasses:o}=Go(e),{densityClasses:i}=$a(e),{dimensionStyles:l}=jr(e),{elevationClasses:s}=pa(e),{loaderClasses:u}=tw(e),{locationStyles:c}=of(e),{positionClasses:d}=jg(e),{roundedClasses:h}=cr(e),{sizeClasses:v,sizeStyles:p}=Gg(e),m=lf(e,e.symbol,!1),g=rw(e,n),y=f.computed(()=>e.active!==void 0?e.active:g.isRouterLink.value?g.isActive?.value:m?.isSelected.value),b=f.toRef(()=>y.value?e.activeColor??e.color:e.color),w=f.computed(()=>({color:m?.isSelected.value&&(!g.isLink.value||g.isActive?.value)||!m||g.isActive?.value?b.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:S,colorStyles:_,variantClasses:x}=zc(w),T=f.computed(()=>m?.disabled.value||e.disabled),A=f.toRef(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),E=f.computed(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function I(M){T.value||g.isLink.value&&(M.metaKey||M.ctrlKey||M.shiftKey||M.button!==0||n.target==="_blank")||(g.isRouterLink.value?g.navigate.value?.(M):m?.toggle())}return Hke(g,m?.select),Ae(()=>{const M=g.isLink.value?"a":e.tag,N=!!(e.prependIcon||r.prepend),D=!!(e.appendIcon||r.append),P=!!(e.icon&&e.icon!==!0);return f.withDirectives(f.createVNode(M,f.mergeProps(g.linkProps,{type:M==="a"?void 0:"button",class:["v-btn",m?.selectedClass.value,{"v-btn--active":y.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":A.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}`]:[],a.value,o.value,S.value,i.value,s.value,u.value,d.value,h.value,v.value,x.value,e.class],style:[_.value,l.value,c.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value&&M!=="a"||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:I,value:E.value}),{default:()=>[Hc(!0,"v-btn"),!e.icon&&N&&f.createElementVNode("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):f.createVNode(Ct,{key:"prepend-icon",icon:e.prependIcon},null)]),f.createElementVNode("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&P?f.createVNode(Ct,{key:"content-icon",icon:e.icon},null):f.createVNode(zt,{key:"content-defaults",disabled:!P,defaults:{VIcon:{icon:e.icon}}},{default:()=>[r.default?.()??f.toDisplayString(e.text)]})]),!e.icon&&D&&f.createElementVNode("span",{key:"append",class:"v-btn__append"},[r.append?f.createVNode(zt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):f.createVNode(Ct,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&f.createElementVNode("span",{key:"loader",class:"v-btn__loader"},[r.loader?.()??f.createVNode(uf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[eo,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:m}}}),Kke=ie({...Kt(__({icon:"$menu",variant:"text"}),["spaced"])},"VAppBarNavIcon"),Xke=Te()({name:"VAppBarNavIcon",props:Kke(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(_t,f.mergeProps(e,{class:["v-app-bar-nav-icon"]}),n)),{}}}),Zke=Te()({name:"VAppBarTitle",props:GY(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(NP,f.mergeProps(e,{class:"v-app-bar-title"}),n)),{}}}),uj=Oc("v-alert-title"),cj=ie({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function dj(e,t){return{iconSize:f.computed(()=>{const r=new Map(e.iconSizes),a=e.iconSize??t()??"default";return r.has(a)?r.get(a):a})}}const Jke=["success","info","warning","error"],Qke=ie({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:st,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>Jke.includes(e)},...nt(),...Tr(),...Yr(),...Kr(),...cj(),..._u(),...Yg(),...$n(),...Ht(),...pn(),...dl({variant:"flat"})},"VAlert"),qke=Te()({name:"VAlert",props:Qke(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.toRef(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),{iconSize:i}=dj(e,()=>e.prominent?44:void 0),{themeClasses:l}=In(e),{colorClasses:s,colorStyles:u,variantClasses:c}=zc(()=>({color:e.color??e.type,variant:e.variant})),{densityClasses:d}=$a(e),{dimensionStyles:h}=jr(e),{elevationClasses:v}=pa(e),{locationStyles:p}=of(e),{positionClasses:m}=jg(e),{roundedClasses:g}=cr(e),{textColorClasses:y,textColorStyles:b}=Wa(()=>e.borderColor),{t:w}=An(),S=f.toRef(()=>({"aria-label":w(e.closeLabel),onClick(_){a.value=!1,n("click:close",_)}}));return()=>{const _=!!(r.prepend||o.value),x=!!(r.title||e.title),T=!!(r.close||e.closable),A={density:e.density,icon:o.value,size:e.iconSize||e.prominent?i.value:void 0};return a.value&&f.createVNode(e.tag,{class:f.normalizeClass(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},l.value,s.value,d.value,v.value,m.value,g.value,c.value,e.class]),style:f.normalizeStyle([u.value,h.value,p.value,e.style]),role:"alert"},{default:()=>[Hc(!1,"v-alert"),e.border&&f.createElementVNode("div",{key:"border",class:f.normalizeClass(["v-alert__border",y.value]),style:f.normalizeStyle(b.value)},null),_&&f.createElementVNode("div",{key:"prepend",class:"v-alert__prepend"},[r.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!o.value,defaults:{VIcon:{...A}}},r.prepend):f.createVNode(Ct,f.mergeProps({key:"prepend-icon"},A),null)]),f.createElementVNode("div",{class:"v-alert__content"},[x&&f.createVNode(uj,{key:"title"},{default:()=>[r.title?.()??e.title]}),r.text?.()??e.text,r.default?.()]),r.append&&f.createElementVNode("div",{key:"append",class:"v-alert__append"},[r.append()]),T&&f.createElementVNode("div",{key:"close",class:"v-alert__close"},[r.close?f.createVNode(zt,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[r.close?.({props:S.value})]}):f.createVNode(_t,f.mergeProps({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},S.value),null)])]})}}}),$ke=ie({start:Boolean,end:Boolean,icon:st,image:String,text:String,...xo(),...nt(),...Tr(),...$n(),...Tu(),...Ht(),...pn(),...dl({variant:"flat"})},"VAvatar"),hl=Te()({name:"VAvatar",props:$ke(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{borderClasses:a}=Go(e),{colorClasses:o,colorStyles:i,variantClasses:l}=zc(e),{densityClasses:s}=$a(e),{roundedClasses:u}=cr(e),{sizeClasses:c,sizeStyles:d}=Gg(e);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,a.value,o.value,s.value,u.value,c.value,l.value,e.class]),style:f.normalizeStyle([i.value,d.value,e.style])},{default:()=>[n.default?f.createVNode(zt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?f.createVNode(Bc,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?f.createVNode(Ct,{key:"icon",icon:e.icon},null):e.text,Hc(!1,"v-avatar")]})),{}}}),eAe=ie({text:String,onClick:Qa(),...nt(),...pn()},"VLabel"),Kg=Te()({name:"VLabel",props:eAe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createElementVNode("label",{class:f.normalizeClass(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:f.normalizeStyle(e.style),onClick:e.onClick},[e.text,n.default?.()])),{}}}),fj=Symbol.for("vuetify:selection-control-group"),qP=ie({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:st,trueIcon:st,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Ia},...nt(),...Tr(),...pn()},"SelectionControlGroup"),tAe=ie({...qP({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),hj=Te()({name:"VSelectionControlGroup",props:tAe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.useId(),o=f.toRef(()=>e.id||`v-selection-control-group-${a}`),i=f.toRef(()=>e.name||o.value),l=new Set;return f.provide(fj,{modelValue:r,forceUpdate:()=>{l.forEach(s=>s())},onForceUpdate:s=>{l.add(s),f.onScopeDispose(()=>{l.delete(s)})}}),_r({[e.defaultsTarget]:{color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled),density:f.toRef(()=>e.density),error:f.toRef(()=>e.error),inline:f.toRef(()=>e.inline),modelValue:r,multiple:f.toRef(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:i,falseIcon:f.toRef(()=>e.falseIcon),trueIcon:f.toRef(()=>e.trueIcon),readonly:f.toRef(()=>e.readonly),ripple:f.toRef(()=>e.ripple),type:f.toRef(()=>e.type),valueComparator:f.toRef(()=>e.valueComparator)}}),Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:f.normalizeStyle(e.style),role:e.type==="radio"?"radiogroup":void 0},[n.default?.()])),{}}}),T_=ie({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...nt(),...qP()},"VSelectionControl");function nAe(e){const t=f.inject(fj,void 0),{densityClasses:n}=$a(e),r=ot(e,"modelValue"),a=f.computed(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),o=f.computed(()=>e.falseValue!==void 0?e.falseValue:!1),i=f.computed(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),l=f.computed({get(){const v=t?t.modelValue.value:r.value;return i.value?Kn(v).some(p=>e.valueComparator(p,a.value)):e.valueComparator(v,a.value)},set(v){if(e.readonly)return;const p=v?a.value:o.value;let m=p;i.value&&(m=v?[...Kn(r.value),p]:Kn(r.value).filter(g=>!e.valueComparator(g,a.value))),t?t.modelValue.value=m:r.value=m}}),{textColorClasses:s,textColorStyles:u}=Wa(()=>{if(!(e.error||e.disabled))return l.value?e.color:e.baseColor}),{backgroundColorClasses:c,backgroundColorStyles:d}=Ln(()=>l.value&&!e.error&&!e.disabled?e.color:e.baseColor),h=f.computed(()=>l.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:a,falseValue:o,model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:h}}const cf=Te()({name:"VSelectionControl",directives:{vRipple:eo},inheritAttrs:!1,props:T_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:a,densityClasses:o,icon:i,model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:h}=nAe(e),v=f.useId(),p=f.shallowRef(!1),m=f.shallowRef(!1),g=f.ref(),y=f.toRef(()=>e.id||`input-${v}`),b=f.toRef(()=>!e.disabled&&!e.readonly);a?.onForceUpdate(()=>{g.value&&(g.value.checked=l.value)});function w(T){b.value&&(p.value=!0,Bg(T.target,":focus-visible")!==!1&&(m.value=!0))}function S(){p.value=!1,m.value=!1}function _(T){T.stopPropagation()}function x(T){if(!b.value){g.value&&(g.value.checked=l.value);return}e.readonly&&a&&f.nextTick(()=>a.forceUpdate()),l.value=T.target.checked}return Ae(()=>{const T=r.label?r.label({label:e.label,props:{for:y.value}}):e.label,[A,E]=Su(n),I=f.createElementVNode("input",f.mergeProps({ref:g,checked:l.value,disabled:!!e.disabled,id:y.value,onBlur:S,onFocus:w,onInput:x,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?l.value:void 0},E),null);return f.createElementVNode("div",f.mergeProps({class:["v-selection-control",{"v-selection-control--dirty":l.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":m.value,"v-selection-control--inline":e.inline},o.value,e.class]},A,{style:e.style}),[f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control__wrapper",s.value]),style:f.normalizeStyle(u.value)},[r.default?.({backgroundColorClasses:c,backgroundColorStyles:d}),f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-selection-control__input"])},[r.input?.({model:l,textColorClasses:s,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:I,icon:i.value,props:{onFocus:w,onBlur:S,id:y.value}})??f.createElementVNode(f.Fragment,null,[i.value&&f.createVNode(Ct,{key:"icon",icon:i.value},null),I])]),[[eo,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),T&&f.createVNode(Kg,{for:y.value,onClick:_},{default:()=>[T]})])}),{isFocused:p,input:g}}}),vj=ie({indeterminate:Boolean,indeterminateIcon:{type:st,default:"$checkboxIndeterminate"},...T_({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Rs=Te()({name:"VCheckboxBtn",props:vj(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"indeterminate"),a=ot(e,"modelValue");function o(s){r.value&&(r.value=!1)}const i=f.toRef(()=>r.value?e.indeterminateIcon:e.falseIcon),l=f.toRef(()=>r.value?e.indeterminateIcon:e.trueIcon);return Ae(()=>{const s=Kt(cf.filterProps(e),["modelValue"]);return f.createVNode(cf,f.mergeProps(s,{modelValue:a.value,"onUpdate:modelValue":[u=>a.value=u,o],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:l.value,"aria-checked":r.value?"mixed":void 0}),n)}),{}}});function lw(e){const{t}=An();function n(r){let{name:a,color:o,...i}=r;const l={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[a],s=e[`onClick:${a}`];function u(d){d.key!=="Enter"&&d.key!==" "||(d.preventDefault(),d.stopPropagation(),j1(s,new PointerEvent("click",d)))}const c=s&&l?t(`$vuetify.input.${l}`,e.label??""):void 0;return f.createVNode(Ct,f.mergeProps({icon:e[`${a}Icon`],"aria-label":c,onClick:s,onKeydown:u,color:o},i),null)}return{InputIcon:n}}const rAe=ie({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...nt(),...Rc({transition:{component:FP,leaveAbsolute:!0,group:!0}})},"VMessages"),pj=Te()({name:"VMessages",props:rAe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>Kn(e.messages)),{textColorClasses:a,textColorStyles:o}=Wa(()=>e.color);return Ae(()=>f.createVNode(Wo,{transition:e.transition,tag:"div",class:f.normalizeClass(["v-messages",a.value,e.class]),style:f.normalizeStyle([o.value,e.style])},{default:()=>[e.active&&r.value.map((i,l)=>f.createElementVNode("div",{class:"v-messages__message",key:`${l}-${r.value}`},[n.message?n.message({message:i}):i]))]})),{}}}),sw=ie({focused:Boolean,"onUpdate:focused":Qa()},"focus");function Wc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=ot(e,"focused"),r=f.toRef(()=>({[`${t}--focused`]:n.value}));function a(){n.value=!0}function o(){n.value=!1}return{focusClasses:r,isFocused:n,focus:a,blur:o}}const mj=Symbol.for("vuetify:form"),aAe=ie({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function oAe(e){const t=ot(e,"modelValue"),n=f.toRef(()=>e.disabled),r=f.toRef(()=>e.readonly),a=f.shallowRef(!1),o=f.ref([]),i=f.ref([]);async function l(){const c=[];let d=!0;i.value=[],a.value=!0;for(const h of o.value){const v=await h.validate();if(v.length>0&&(d=!1,c.push({id:h.id,errorMessages:v})),!d&&e.fastFail)break}return i.value=c,a.value=!1,{valid:d,errors:i.value}}function s(){o.value.forEach(c=>c.reset())}function u(){o.value.forEach(c=>c.resetValidation())}return f.watch(o,()=>{let c=0,d=0;const h=[];for(const v of o.value)v.isValid===!1?(d++,h.push({id:v.id,errorMessages:v.errorMessages})):v.isValid===!0&&c++;i.value=h,t.value=d>0?!1:c===o.value.length?!0:null},{deep:!0,flush:"post"}),f.provide(mj,{register:c=>{let{id:d,vm:h,validate:v,reset:p,resetValidation:m}=c;o.value.some(g=>g.id===d)&&Ea(`Duplicate input name "${d}"`),o.value.push({id:d,validate:v,reset:p,resetValidation:m,vm:f.markRaw(h),isValid:null,errorMessages:[]})},unregister:c=>{o.value=o.value.filter(d=>d.id!==c)},update:(c,d,h)=>{const v=o.value.find(p=>p.id===c);v&&(v.isValid=d,v.errorMessages=h)},isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:o,validateOn:f.toRef(()=>e.validateOn)}),{errors:i,isDisabled:n,isReadonly:r,isValidating:a,isValid:t,items:o,validate:l,reset:s,resetValidation:u}}function Xg(e){const t=f.inject(mj,null);return{...t,isReadonly:f.computed(()=>!!(e?.readonly??t?.isReadonly.value)),isDisabled:f.computed(()=>!!(e?.disabled??t?.isDisabled.value))}}const iAe=Symbol.for("vuetify:rules");function lAe(e){const t=f.inject(iAe,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??f.toRef(e)}const gj=ie({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...sw()},"validation");function yj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.useId();const r=ot(e,"modelValue"),a=f.computed(()=>e.validationValue===void 0?r.value:e.validationValue),o=Xg(e),i=lAe(()=>e.rules),l=f.ref([]),s=f.shallowRef(!0),u=f.computed(()=>!!(Kn(r.value===""?null:r.value).length||Kn(a.value===""?null:a.value).length)),c=f.computed(()=>e.errorMessages?.length?Kn(e.errorMessages).concat(l.value).slice(0,Math.max(0,Number(e.maxErrors))):l.value),d=f.computed(()=>{let S=(e.validateOn??o.validateOn?.value)||"input";S==="lazy"&&(S="input lazy"),S==="eager"&&(S="input eager");const _=new Set(S?.split(" ")??[]);return{input:_.has("input"),blur:_.has("blur")||_.has("input")||_.has("invalid-input"),invalidInput:_.has("invalid-input"),lazy:_.has("lazy"),eager:_.has("eager")}}),h=f.computed(()=>e.error||e.errorMessages?.length?!1:e.rules.length?s.value?l.value.length||d.value.lazy?null:!0:!l.value.length:!0),v=f.shallowRef(!1),p=f.computed(()=>({[`${t}--error`]:h.value===!1,[`${t}--dirty`]:u.value,[`${t}--disabled`]:o.isDisabled.value,[`${t}--readonly`]:o.isReadonly.value})),m=Ur("validation"),g=f.computed(()=>e.name??f.unref(n));f.onBeforeMount(()=>{o.register?.({id:g.value,vm:m,validate:w,reset:y,resetValidation:b})}),f.onBeforeUnmount(()=>{o.unregister?.(g.value)}),f.onMounted(async()=>{d.value.lazy||await w(!d.value.eager),o.update?.(g.value,h.value,c.value)}),qa(()=>d.value.input||d.value.invalidInput&&h.value===!1,()=>{f.watch(a,()=>{if(a.value!=null)w();else if(e.focused){const S=f.watch(()=>e.focused,_=>{_||w(),S()})}})}),qa(()=>d.value.blur,()=>{f.watch(()=>e.focused,S=>{S||w()})}),f.watch([h,c],()=>{o.update?.(g.value,h.value,c.value)});async function y(){r.value=null,await f.nextTick(),await b()}async function b(){s.value=!0,d.value.lazy?l.value=[]:await w(!d.value.eager)}async function w(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const _=[];v.value=!0;for(const x of i.value){if(_.length>=Number(e.maxErrors??1))break;const A=await(typeof x=="function"?x:()=>x)(a.value);if(A!==!0){if(A!==!1&&typeof A!="string"){console.warn(`${A} is not a valid value. Rule functions must return boolean true or a string.`);continue}_.push(A||"")}}return l.value=_,v.value=!1,s.value=S,l.value}return{errorMessages:c,isDirty:u,isDisabled:o.isDisabled,isReadonly:o.isReadonly,isPristine:s,isValid:h,isValidating:v,reset:y,resetValidation:b,validate:w,validationClasses:p}}const Gc=ie({id:String,appendIcon:st,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:st,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Qa(),"onClick:append":Qa(),...nt(),...Tr(),...vi(Yr(),["maxWidth","minWidth","width"]),...pn(),...gj()},"VInput"),to=Te()({name:"VInput",props:{...Gc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{densityClasses:o}=$a(e),{dimensionStyles:i}=jr(e),{themeClasses:l}=In(e),{rtlClasses:s}=ta(),{InputIcon:u}=lw(e),c=f.useId(),d=f.computed(()=>e.id||`input-${c}`),{errorMessages:h,isDirty:v,isDisabled:p,isReadonly:m,isPristine:g,isValid:y,isValidating:b,reset:w,resetValidation:S,validate:_,validationClasses:x}=yj(e,"v-input",d),T=f.computed(()=>e.errorMessages?.length||!g.value&&h.value.length?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages),A=f.toRef(()=>T.value.length>0),E=f.toRef(()=>!e.hideDetails||e.hideDetails==="auto"&&(A.value||!!r.details)),I=f.computed(()=>E.value?`${d.value}-messages`:void 0),M=f.computed(()=>({id:d,messagesId:I,isDirty:v,isDisabled:p,isReadonly:m,isPristine:g,isValid:y,isValidating:b,hasDetails:E,reset:w,resetValidation:S,validate:_})),N=f.toRef(()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor),D=f.toRef(()=>{if(e.iconColor)return e.iconColor===!0?N.value:e.iconColor});return Ae(()=>{const P=!!(r.prepend||e.prependIcon),O=!!(r.append||e.appendIcon);return f.createElementVNode("div",{class:f.normalizeClass(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focused,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},o.value,l.value,s.value,x.value,e.class]),style:f.normalizeStyle([i.value,e.style])},[P&&f.createElementVNode("div",{key:"prepend",class:"v-input__prepend"},[r.prepend?r.prepend(M.value):e.prependIcon&&f.createVNode(u,{key:"prepend-icon",name:"prepend",color:D.value},null)]),r.default&&f.createElementVNode("div",{class:"v-input__control"},[r.default?.(M.value)]),O&&f.createElementVNode("div",{key:"append",class:"v-input__append"},[r.append?r.append(M.value):e.appendIcon&&f.createVNode(u,{key:"append-icon",name:"append",color:D.value},null)]),E.value&&f.createElementVNode("div",{id:I.value,class:"v-input__details",role:"alert","aria-live":"polite"},[f.createVNode(pj,{active:A.value,messages:T.value},{message:r.message}),r.details?.(M.value)])])}),{reset:w,resetValidation:S,validate:_,isValid:y,errorMessages:h}}}),$P=Symbol("Forwarded refs");function eN(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ma(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"modelValue"),{isFocused:o,focus:i,blur:l}=Wc(e),s=f.ref(),u=f.useId();return Ae(()=>{const[c,d]=Su(n),h=to.filterProps(e),v=Rs.filterProps(e);return f.createVNode(to,f.mergeProps({ref:s,class:["v-checkbox",e.class]},c,h,{modelValue:a.value,"onUpdate:modelValue":p=>a.value=p,id:e.id||`checkbox-${u}`,focused:o.value,style:e.style}),{...r,default:p=>{let{id:m,messagesId:g,isDisabled:y,isReadonly:b,isValid:w}=p;return f.createVNode(Rs,f.mergeProps(v,{id:m.value,"aria-describedby":g.value,disabled:y.value,readonly:b.value},d,{error:w.value===!1,modelValue:a.value,"onUpdate:modelValue":S=>a.value=S,onFocus:i,onBlur:l}),r)}})}),ma({},s)}}),k_=["sm","md","lg","xl","xxl"],tN=Symbol.for("vuetify:display"),bj={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},uAe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bj;return So(bj,e)};function wj(e){return Bn&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Sj(e){return Bn&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function xj(e){const t=Bn&&!e?window.navigator.userAgent:"ssr";function n(p){return!!t.match(p)}const r=n(/android/i),a=n(/iphone|ipad|ipod/i),o=n(/cordova/i),i=n(/electron/i),l=n(/chrome/i),s=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),h=n(/mac/i),v=n(/linux/i);return{android:r,ios:a,cordova:o,electron:i,chrome:l,edge:s,firefox:u,opera:c,win:d,mac:h,linux:v,touch:G_e,ssr:t==="ssr"}}function cAe(e,t){const{thresholds:n,mobileBreakpoint:r}=uAe(e),a=f.shallowRef(Sj(t)),o=f.shallowRef(xj(t)),i=f.reactive({}),l=f.shallowRef(wj(t));function s(){a.value=Sj(),l.value=wj()}function u(){s(),o.value=xj()}return f.watchEffect(()=>{const c=l.value=n.xxl,g=c?"xs":d?"sm":h?"md":v?"lg":p?"xl":"xxl",y=typeof r=="number"?r:n[r],b=l.value{window.removeEventListener("resize",s)},!0)),{...f.toRefs(i),update:u,ssr:!!t}}const _v=ie({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function vl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cu();const n=f.inject(tN);if(!n)throw new Error("Could not find Vuetify display injection");const r=f.computed(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.valuet?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:a,mobile:r}}const Cj=Symbol.for("vuetify:goto");function _j(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:VTe}}function dAe(e){return nN(e)??(document.scrollingElement||document.body)}function nN(e){return typeof e=="string"?document.querySelector(e):vP(e)}function rN(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=nN(e),a=0;for(;r;)a+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return a}function fAe(e,t){return{rtl:t.isRtl,options:So(_j(),e)}}async function Tj(e,t,n,r){const a=n?"scrollLeft":"scrollTop",o=So(r?.options??_j(),t),i=r?.rtl.value,l=(typeof e=="number"?e:nN(e))??0,s=o.container==="parent"&&l instanceof HTMLElement?l.parentElement:dAe(o.container),u=bu()?o.patterns.instant:typeof o.easing=="function"?o.easing:o.patterns[o.easing];if(!u)throw new TypeError(`Easing function "${o.easing}" not found.`);let c;if(typeof l=="number")c=rN(l,n,i);else if(c=rN(l,n,i)-rN(s,n,i),o.layout){const p=window.getComputedStyle(l).getPropertyValue("--v-layout-top");p&&(c-=parseInt(p,10))}c+=o.offset,c=vAe(s,c,!!i,!!n);const d=s[a]??0;if(c===d)return Promise.resolve(c);const h=performance.now();return new Promise(v=>requestAnimationFrame(function p(m){const y=(m-h)/o.duration,b=Math.floor(d+(c-d)*u(Fn(y,0,1)));if(s[a]=b,y>=1&&Math.abs(b-s[a])<10)return v(c);if(y>2)return Ea("Scroll target is not reachable"),v(s[a]);requestAnimationFrame(p)}))}function hAe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=f.inject(Cj),{isRtl:n}=ta();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:f.toRef(()=>t.rtl.value||n.value)};async function a(o,i){return Tj(o,So(e,i),!1,r)}return a.horizontal=async(o,i)=>Tj(o,So(e,i),!0,r),a}function vAe(e,t,n,r){const{scrollWidth:a,scrollHeight:o}=e,[i,l]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let s,u;return r?n?(s=-(a-i),u=0):(s=0,u=a-i):(s=0,u=o+-l),Fn(t,s,u)}function pAe(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:a}=e;const o=uw(a,n),i=Aj(a,r,n),l=uw(a,t),s=Ej(a,t),u=l*.4;return i>s?s-u:i+otypeof e=="boolean"||["always","desktop","mobile","never"].includes(e)},...nt(),..._v({mobile:null}),...Ht(),...Sv({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),cw=Te()({name:"VSlideGroup",props:oN(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=ta(),{displayClasses:a,mobile:o}=vl(e),i=sf(e,e.symbol),l=f.shallowRef(!1),s=f.shallowRef(0),u=f.shallowRef(0),c=f.shallowRef(0),d=f.computed(()=>e.direction==="horizontal"),{resizeRef:h,contentRect:v}=Gl(),{resizeRef:p,contentRect:m}=Gl(),g=hAe(),y=f.computed(()=>({container:h.el,duration:200,easing:"easeOutQuart"})),b=f.computed(()=>i.selected.value.length?i.items.value.findIndex(j=>j.id===i.selected.value[0]):-1),w=f.computed(()=>i.selected.value.length?i.items.value.findIndex(j=>j.id===i.selected.value[i.selected.value.length-1]):-1);if(Bn){let j=-1;f.watch(()=>[i.selected.value,v.value,m.value,d.value],()=>{cancelAnimationFrame(j),j=requestAnimationFrame(()=>{if(v.value&&m.value){const U=d.value?"width":"height";u.value=v.value[U],c.value=m.value[U],l.value=u.value+1=0&&p.el){const U=p.el.children[w.value];_(U,e.centerActive)}})})}const S=f.shallowRef(!1);function _(j,U){let Y=0;U?Y=mAe({containerElement:h.el,isHorizontal:d.value,selectedElement:j}):Y=pAe({containerElement:h.el,isHorizontal:d.value,isRtl:r.value,selectedElement:j}),x(Y)}function x(j){if(!Bn||!h.el)return;const U=uw(d.value,h.el),Y=Aj(d.value,r.value,h.el);if(!(kj(d.value,h.el)<=U||Math.abs(j-Y)<16)){if(d.value&&r.value&&h.el){const{scrollWidth:ne,offsetWidth:$}=h.el;j=ne-$-j}d.value?g.horizontal(j,y.value):g(j,y.value)}}function T(j){const{scrollTop:U,scrollLeft:Y}=j.target;s.value=d.value?Y:U}function A(j){if(S.value=!0,!(!l.value||!p.el)){for(const U of j.composedPath())for(const Y of p.el.children)if(Y===U){_(Y);return}}}function E(j){S.value=!1}let I=!1;function M(j){!I&&!S.value&&!(j.relatedTarget&&p.el?.contains(j.relatedTarget))&&O(),I=!1}function N(){I=!0}function D(j){if(!p.el)return;function U(Y){j.preventDefault(),O(Y)}d.value?j.key==="ArrowRight"?U(r.value?"prev":"next"):j.key==="ArrowLeft"&&U(r.value?"next":"prev"):j.key==="ArrowDown"?U("next"):j.key==="ArrowUp"&&U("prev"),j.key==="Home"?U("first"):j.key==="End"&&U("last")}function P(j,U){if(!j)return;let Y=j;do Y=Y?.[U==="next"?"nextElementSibling":"previousElementSibling"];while(Y?.hasAttribute("disabled"));return Y}function O(j){if(!p.el)return;let U;if(!j)U=rf(p.el)[0];else if(j==="next"){if(U=P(p.el.querySelector(":focus"),j),!U)return O("first")}else if(j==="prev"){if(U=P(p.el.querySelector(":focus"),j),!U)return O("last")}else j==="first"?(U=p.el.firstElementChild,U?.hasAttribute("disabled")&&(U=P(U,"next"))):j==="last"&&(U=p.el.lastElementChild,U?.hasAttribute("disabled")&&(U=P(U,"prev")));U&&U.focus({preventScroll:!0})}function L(j){const U=d.value&&r.value?-1:1,Y=(j==="prev"?-U:U)*u.value;let Z=s.value+Y;if(d.value&&r.value&&h.el){const{scrollWidth:ne,offsetWidth:$}=h.el;Z+=ne-$}x(Z)}const R=f.computed(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),B=f.computed(()=>l.value||Math.abs(s.value)>0),z=f.computed(()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!o.value;case!0:return B.value;case"mobile":return o.value||B.value;default:return!o.value&&B.value}}),H=f.computed(()=>Math.abs(s.value)>1),G=f.computed(()=>{if(!h.value||!B.value)return!1;const j=kj(d.value,h.el),U=gAe(d.value,h.el);return j-U-Math.abs(s.value)>1});return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-slide-group",{"v-slide-group--vertical":!d.value,"v-slide-group--has-affixes":z.value,"v-slide-group--is-overflowing":l.value},a.value,e.class]),style:f.normalizeStyle(e.style),tabindex:S.value||i.selected.value.length?-1:0,onFocus:M},{default:()=>[z.value&&f.createElementVNode("div",{key:"prev",class:f.normalizeClass(["v-slide-group__prev",{"v-slide-group__prev--disabled":!H.value}]),onMousedown:N,onClick:()=>H.value&&L("prev")},[n.prev?.(R.value)??f.createVNode($1,null,{default:()=>[f.createVNode(Ct,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),f.createElementVNode("div",{key:"container",ref:h,class:f.normalizeClass(["v-slide-group__container",e.contentClass]),onScroll:T},[f.createElementVNode("div",{ref:p,class:"v-slide-group__content",onFocusin:A,onFocusout:E,onKeydown:D},[n.default?.(R.value)])]),z.value&&f.createElementVNode("div",{key:"next",class:f.normalizeClass(["v-slide-group__next",{"v-slide-group__next--disabled":!G.value}]),onMousedown:N,onClick:()=>G.value&&L("next")},[n.next?.(R.value)??f.createVNode($1,null,{default:()=>[f.createVNode(Ct,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]})),{selected:i.selected,scrollTo:L,scrollOffset:s,focus:O,hasPrev:H,hasNext:G}}}),Ij=Symbol.for("vuetify:v-chip-group"),yAe=ie({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Ia},...oN({scrollToActive:!1}),...nt(),...Sv({selectedClass:"v-chip--selected"}),...Ht(),...pn(),...dl({variant:"tonal"})},"VChipGroup"),bAe=Te()({name:"VChipGroup",props:yAe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isSelected:a,select:o,next:i,prev:l,selected:s}=sf(e,Ij);return _r({VChip:{baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled),filter:f.toRef(()=>e.filter),variant:f.toRef(()=>e.variant)}}),Ae(()=>{const u=cw.filterProps(e);return f.createVNode(cw,f.mergeProps(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:a,select:o,next:i,prev:l,selected:s.value})]})}),{}}}),wAe=ie({activeClass:String,appendAvatar:String,appendIcon:st,baseColor:String,closable:Boolean,closeIcon:{type:st,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:st,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:st,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:Qa(),onClickOnce:Qa(),...xo(),...nt(),...Tr(),...Kr(),...xv(),...$n(),...aw(),...Tu(),...Ht({tag:"span"}),...pn(),...dl({variant:"tonal"})},"VChip"),pl=Te()({name:"VChip",directives:{vRipple:eo},props:wAe(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:o}=An(),{borderClasses:i}=Go(e),{densityClasses:l}=$a(e),{elevationClasses:s}=pa(e),{roundedClasses:u}=cr(e),{sizeClasses:c}=Gg(e),{themeClasses:d}=In(e),h=ot(e,"modelValue"),v=lf(e,Ij,!1),p=lf(e,aN,!1),m=rw(e,n),g=f.toRef(()=>e.link!==!1&&m.isLink.value),y=f.computed(()=>!e.disabled&&e.link!==!1&&(!!v||e.link||m.isClickable.value)),b=f.toRef(()=>({"aria-label":o(e.closeLabel),disabled:e.disabled,onClick(A){A.preventDefault(),A.stopPropagation(),h.value=!1,r("click:close",A)}}));f.watch(h,A=>{A?(v?.register(),p?.register()):(v?.unregister(),p?.unregister())});const{colorClasses:w,colorStyles:S,variantClasses:_}=zc(()=>({color:!v||v.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function x(A){r("click",A),y.value&&(m.navigate.value?.(A),v?.toggle())}function T(A){(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x(A))}return()=>{const A=m.isLink.value?"a":e.tag,E=!!(e.appendIcon||e.appendAvatar),I=!!(E||a.append),M=!!(a.close||e.closable),N=!!(a.filter||e.filter)&&v,D=!!(e.prependIcon||e.prependAvatar),P=!!(D||a.prepend);return h.value&&f.withDirectives(f.createVNode(A,f.mergeProps(m.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":y.value,"v-chip--filter":N,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&m.isActive?.value},d.value,i.value,w.value,l.value,s.value,u.value,c.value,_.value,v?.selectedClass.value,e.class],style:[S.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:y.value?0:void 0,onClick:x,onKeydown:y.value&&!g.value&&T}),{default:()=>[Hc(y.value,"v-chip"),N&&f.createVNode(HP,{key:"filter"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-chip__filter"},[a.filter?f.createVNode(zt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},a.filter):f.createVNode(Ct,{key:"filter-icon",icon:e.filterIcon},null)]),[[f.vShow,v.isSelected.value]])]}),P&&f.createElementVNode("div",{key:"prepend",class:"v-chip__prepend"},[a.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},a.prepend):f.createElementVNode(f.Fragment,null,[e.prependIcon&&f.createVNode(Ct,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&f.createVNode(hl,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),f.createElementVNode("div",{class:"v-chip__content","data-no-activator":""},[a.default?.({isSelected:v?.isSelected.value,selectedClass:v?.selectedClass.value,select:v?.select,toggle:v?.toggle,value:v?.value.value,disabled:e.disabled})??f.toDisplayString(e.text)]),I&&f.createElementVNode("div",{key:"append",class:"v-chip__append"},[a.append?f.createVNode(zt,{key:"append-defaults",disabled:!E,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},a.append):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(Ct,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(hl,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),M&&f.createElementVNode("button",f.mergeProps({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},b.value),[a.close?f.createVNode(zt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},a.close):f.createVNode(Ct,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[eo,y.value&&e.ripple,null]])}}}),SAe=["dotted","dashed","solid","double"],xAe=ie({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=>SAe.includes(e)},...nt(),...pn()},"VDivider"),Ma=Te()({name:"VDivider",props:xAe(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{textColorClasses:o,textColorStyles:i}=Wa(()=>e.color),l=f.computed(()=>{const u={};return e.length&&(u[e.vertical?"height":"width"]=Oe(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=Oe(e.thickness)),u}),s=f.toRef(()=>{const u=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,c=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&u?Oe(u):void 0,marginInline:!e.vertical&&u?Oe(u):void 0,transform:c?`translate${e.vertical?"X":"Y"}(${Oe(c)})`:void 0}});return Ae(()=>{const u=f.createElementVNode("hr",{class:f.normalizeClass([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,o.value,e.class]),style:f.normalizeStyle([l.value,i.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?f.createElementVNode("div",{class:f.normalizeClass(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[u,f.createElementVNode("div",{class:"v-divider__content",style:f.normalizeStyle(s.value)},[r.default()]),u]):u}),{}}}),iN=Symbol.for("vuetify:list");function Mj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const t=f.inject(iN,{filterable:!1,hasPrepend:f.shallowRef(!1),updateHasPrepend:()=>null,trackingIndex:f.shallowRef(-1),navigationStrategy:f.shallowRef("focus"),uid:""}),{filterable:n,trackingIndex:r=t.trackingIndex,navigationStrategy:a=t.navigationStrategy,uid:o=t.uid||f.useId()}=e,i={filterable:t.filterable||n,hasPrepend:f.shallowRef(!1),updateHasPrepend:l=>{l&&(i.hasPrepend.value=l)},trackingIndex:r,navigationStrategy:a,uid:o};return f.provide(iN,i),t}function Dj(){return f.inject(iN,null)}const lN=e=>{const t={activate:n=>{let{id:r,value:a,activated:o}=n;return r=f.toRaw(r),e&&!a&&o.size===1&&o.has(r)||(a?o.add(r):o.delete(r)),o},in:(n,r,a)=>{let o=new Set;if(n!=null)for(const i of Kn(n))o=t.activate({id:i,value:!0,activated:new Set(o),children:r,parents:a});return o},out:n=>Array.from(n)};return t},Vj=e=>{const t=lN(e);return{activate:r=>{let{activated:a,id:o,...i}=r;o=f.toRaw(o);const l=a.has(o)?new Set([o]):new Set;return t.activate({...i,id:o,activated:l})},in:(r,a,o)=>{let i=new Set;if(r!=null){const l=Kn(r);l.length&&(i=t.in(l.slice(0,1),a,o))}return i},out:(r,a,o)=>t.out(r,a,o)}},CAe=e=>{const t=lN(e);return{activate:r=>{let{id:a,activated:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.activate({id:a,activated:o,children:i,...l})},in:t.in,out:t.out}},_Ae=e=>{const t=Vj(e);return{activate:r=>{let{id:a,activated:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.activate({id:a,activated:o,children:i,...l})},in:t.in,out:t.out}},TAe={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){const o=new Set;o.add(t);let i=a.get(t);for(;i!=null;)o.add(i),i=a.get(i);return o}else return r.delete(t),r},select:()=>null},Pj={open:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(n){let o=a.get(t);for(r.add(t);o!=null&&o!==t;)r.add(o),o=a.get(o);return r}else r.delete(t);return r},select:()=>null},kAe={open:Pj.open,select:e=>{let{id:t,value:n,opened:r,parents:a}=e;if(!n)return r;const o=[];let i=a.get(t);for(;i!=null;)o.push(i),i=a.get(i);return new Set(o)}},sN=e=>{const t={select:n=>{let{id:r,value:a,selected:o}=n;if(r=f.toRaw(r),e&&!a){const i=Array.from(o.entries()).reduce((l,s)=>{let[u,c]=s;return c==="on"&&l.push(u),l},[]);if(i.length===1&&i[0]===r)return o}return o.set(r,a?"on":"off"),o},in:(n,r,a,o)=>{const i=new Map;for(const l of n||[])t.select({id:l,value:!0,selected:i,children:r,parents:a,disabled:o});return i},out:n=>{const r=[];for(const[a,o]of n.entries())o==="on"&&r.push(a);return r}};return t},Nj=e=>{const t=sN(e);return{select:r=>{let{selected:a,id:o,...i}=r;o=f.toRaw(o);const l=a.has(o)?new Map([[o,a.get(o)]]):new Map;return t.select({...i,id:o,selected:l})},in:(r,a,o,i)=>r?.length?t.in(r.slice(0,1),a,o,i):new Map,out:(r,a,o)=>t.out(r,a,o)}},AAe=e=>{const t=sN(e);return{select:r=>{let{id:a,selected:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.select({id:a,selected:o,children:i,...l})},in:t.in,out:t.out}},EAe=e=>{const t=Nj(e);return{select:r=>{let{id:a,selected:o,children:i,...l}=r;return a=f.toRaw(a),i.has(a)?o:t.select({id:a,selected:o,children:i,...l})},in:t.in,out:t.out}},uN=e=>{const t={select:n=>{let{id:r,value:a,selected:o,children:i,parents:l,disabled:s}=n;r=f.toRaw(r);const u=new Map(o),c=[r];for(;c.length;){const h=c.shift();s.has(h)||o.set(f.toRaw(h),a?"on":"off"),i.has(h)&&c.push(...i.get(h))}let d=f.toRaw(l.get(r));for(;d;){let h=!0,v=!0;for(const p of i.get(d)){const m=f.toRaw(p);if(!s.has(m)&&(o.get(m)!=="on"&&(h=!1),o.has(m)&&o.get(m)!=="off"&&(v=!1),!h&&!v))break}o.set(d,h?"on":v?"off":"indeterminate"),d=f.toRaw(l.get(d))}return e&&!a&&Array.from(o.entries()).reduce((v,p)=>{let[m,g]=p;return g==="on"&&v.push(m),v},[]).length===0?u:o},in:(n,r,a)=>{let o=new Map;for(const i of n||[])o=t.select({id:i,value:!0,selected:o,children:r,parents:a,disabled:new Set});return o},out:(n,r)=>{const a=[];for(const[o,i]of n.entries())i==="on"&&!r.has(o)&&a.push(o);return a}};return t},IAe=e=>{const t=uN(e);return{select:t.select,in:t.in,out:(r,a,o)=>{const i=[];for(const[l,s]of r.entries())if(s==="on"){if(o.has(l)){const u=o.get(l);if(r.get(u)==="on")continue}i.push(l)}return i}}},MAe=e=>{const n={select:uN(e).select,in:(r,a,o,i)=>{let l=new Map;for(const s of r||[])a.has(s)||(l=n.select({id:s,value:!0,selected:l,children:a,parents:o,disabled:i}));return l},out:r=>{const a=[];for(const[o,i]of r.entries())(i==="on"||i==="indeterminate")&&a.push(o);return a}};return n},Zg=Symbol.for("vuetify:nested"),Lj={id:f.shallowRef(),root:{itemsRegistration:f.ref("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:f.ref(new Map),parents:f.ref(new Map),disabled:f.ref(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:f.ref(!1),scrollToActive:f.ref(!1),selectable:f.ref(!1),opened:f.ref(new Set),activated:f.ref(new Set),selected:f.ref(new Map),selectedValues:f.ref([]),getPath:()=>[]}},DAe=ie({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"),VAe=(e,t)=>{let{items:n,returnObject:r,scrollToActive:a}=t,o=!1;const i=f.shallowRef(new Map),l=f.shallowRef(new Map),s=f.shallowRef(new Set),u=ot(e,"opened",e.opened,_=>new Set(Array.isArray(_)?_.map(x=>f.toRaw(x)):_),_=>[..._.values()]),c=f.computed(()=>{if(typeof e.activeStrategy=="object")return e.activeStrategy;if(typeof e.activeStrategy=="function")return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return CAe(e.mandatory);case"single-leaf":return _Ae(e.mandatory);case"independent":return lN(e.mandatory);case"single-independent":default:return Vj(e.mandatory)}}),d=f.computed(()=>{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 EAe(e.mandatory);case"leaf":return AAe(e.mandatory);case"independent":return sN(e.mandatory);case"single-independent":return Nj(e.mandatory);case"trunk":return IAe(e.mandatory);case"branch":return MAe(e.mandatory);case"classic":default:return uN(e.mandatory)}}),h=f.computed(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return kAe;case"single":return TAe;case"multiple":default:return Pj}}),v=ot(e,"activated",e.activated,_=>c.value.in(_,i.value,l.value),_=>c.value.out(_,i.value,l.value)),p=ot(e,"selected",e.selected,_=>d.value.in(_,i.value,l.value,s.value),_=>d.value.out(_,i.value,l.value));f.onBeforeUnmount(()=>{o=!0});function m(_){const x=[];let T=f.toRaw(_);for(;T!==void 0;)x.unshift(T),T=l.value.get(T);return x}const g=Ur("nested"),y=new Set,b=OTe(()=>{f.nextTick(()=>{i.value=new Map(i.value),l.value=new Map(l.value)})},100);f.watch(()=>[n.value,f.toValue(r)],()=>{e.itemsRegistration==="props"&&w()},{immediate:!0});function w(){const _=new Map,x=new Map,T=new Set,A=f.toValue(r)?M=>f.toRaw(M.raw):M=>M.value,E=[...n.value];let I=0;for(;Ie.activatable),scrollToActive:f.toRef(()=>f.toValue(a)),selectable:f.toRef(()=>e.selectable),activated:v,selected:p,selectedValues:f.computed(()=>{const _=[];for(const[x,T]of p.value.entries())T==="on"&&_.push(x);return _}),itemsRegistration:f.toRef(()=>e.itemsRegistration),register:(_,x,T,A)=>{if(y.has(_)){const E=m(_).map(String).join(" -> "),I=m(x).concat(_).map(String).join(" -> ");uv(`Multiple nodes with the same ID ${E} - ${I}`);return}else y.add(_);x&&_!==x&&l.value.set(_,x),T&&s.value.add(_),A&&i.value.set(_,[]),x!=null&&i.value.set(x,[...i.value.get(x)||[],_]),b()},unregister:_=>{if(o)return;y.delete(_),i.value.delete(_),s.value.delete(_);const x=l.value.get(_);if(x){const T=i.value.get(x)??[];i.value.set(x,T.filter(A=>A!==_))}l.value.delete(_),b()},updateDisabled:(_,x)=>{x?s.value.add(_):s.value.delete(_)},open:(_,x,T)=>{g.emit("click:open",{id:_,value:x,path:m(_),event:T});const A=h.value.open({id:_,value:x,opened:new Set(u.value),children:i.value,parents:l.value,event:T});A&&(u.value=A)},openOnSelect:(_,x,T)=>{const A=h.value.select({id:_,value:x,selected:new Map(p.value),opened:new Set(u.value),children:i.value,parents:l.value,event:T});A&&(u.value=A)},select:(_,x,T)=>{g.emit("click:select",{id:_,value:x,path:m(_),event:T});const A=d.value.select({id:_,value:x,selected:new Map(p.value),children:i.value,parents:l.value,disabled:s.value,event:T});A&&(p.value=A),S.root.openOnSelect(_,x,T)},activate:(_,x,T)=>{if(!e.activatable)return S.root.select(_,!0,T);g.emit("click:activate",{id:_,value:x,path:m(_),event:T});const A=c.value.activate({id:_,value:x,activated:new Set(v.value),children:i.value,parents:l.value,event:T});if(A.size!==v.value.size)v.value=A;else{for(const E of A)if(!v.value.has(E)){v.value=A;return}for(const E of v.value)if(!A.has(E)){v.value=A;return}}},children:i,parents:l,disabled:s,getPath:m}};return f.provide(jg,S),S.root},Nj=(e,t,n)=>{const r=f.inject(jg,Pj),a=Symbol("nested item"),o=f.computed(()=>{const l=f.toRaw(f.toValue(e));return l!==void 0?l:a}),i={...r,id:o,open:(l,s)=>r.root.open(o.value,l,s),openOnSelect:(l,s)=>r.root.openOnSelect(o.value,l,s),isOpen:f.computed(()=>r.root.opened.value.has(o.value)),parent:f.computed(()=>r.root.parents.value.get(o.value)),activate:(l,s)=>r.root.activate(o.value,l,s),isActivated:f.computed(()=>r.root.activated.value.has(o.value)),scrollToActive:r.root.scrollToActive,select:(l,s)=>r.root.select(o.value,l,s),isSelected:f.computed(()=>r.root.selected.value.get(o.value)==="on"),isIndeterminate:f.computed(()=>r.root.selected.value.get(o.value)==="indeterminate"),isLeaf:f.computed(()=>!r.root.children.value.get(o.value)),isGroupActivator:r.isGroupActivator};return f.onBeforeMount(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||f.nextTick(()=>{r.root.register(o.value,r.id.value,f.toValue(t),n)})}),f.onBeforeUnmount(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(o.value)}),f.watch(o,(l,s)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(s),f.nextTick(()=>{r.root.register(l,r.id.value,f.toValue(t),n)}))}),f.watch(()=>f.toValue(t),l=>{r.root.updateDisabled(o.value,l)}),n&&f.provide(jg,i),i},VAe=()=>{const e=f.inject(jg,Pj);f.provide(jg,{...e,isGroupActivator:!0})},PAe=zo({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return VAe(),()=>n.default?.()}}),Lj=ie({activeColor:String,baseColor:String,color:String,collapseIcon:{type:ut,default:"$collapse"},disabled:Boolean,expandIcon:{type:ut,default:"$expand"},rawId:[String,Number],prependIcon:ut,appendIcon:ut,fluid:Boolean,subgroup:Boolean,title:String,value:null,...at(),...Ft()},"VListGroup"),cw=Ce()({name:"VListGroup",props:Lj(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:o}=Nj(()=>e.value,()=>e.disabled,!0),i=f.computed(()=>`v-list-group--id-${String(e.rawId??o.value)}`),l=Ij(),{isBooted:s}=Sv(),u=f.inject(jg),c=f.toRef(()=>u?.root?.itemsRegistration.value==="render");function d(m){["INPUT","TEXTAREA"].includes(m.target?.tagName)||a(!r.value,m)}const h=f.computed(()=>({onClick:d,class:"v-list-group__header",id:i.value})),v=f.computed(()=>r.value?e.collapseIcon:e.expandIcon),p=f.computed(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&v.value,appendIcon:e.appendIcon||!e.subgroup&&v.value,title:e.title,value:e.value}}));return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-group",{"v-list-group--prepend":l?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.activator&&f.createVNode(Ht,{defaults:p.value},{default:()=>[f.createVNode(PAe,null,{default:()=>[n.activator({props:h.value,isOpen:r.value})]})]}),f.createVNode(Wo,{transition:{component:b_},disabled:!s.value},{default:()=>[c.value?f.withDirectives(f.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":i.value},[n.default?.()]),[[f.vShow,r.value]]):r.value&&f.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":i.value},[n.default?.()])]})]})),{isOpen:r}}}),NAe=ie({opacity:[Number,String],...at(),...Ft()},"VListItemSubtitle"),Oj=Ce()({name:"VListItemSubtitle",props:NAe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-subtitle",e.class]),style:f.normalizeStyle([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),kv=Rc("v-list-item-title"),Rj=ie({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:ut,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:ut,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,index:Number,tabindex:[Number,String],onClick:Qa(),onClickOnce:Qa(),...wo(),...at(),..._r(),...Ur(),...jr(),...qn(),...rw(),...Ft(),...pn(),...fl({variant:"text"})},"VListItem"),Vr=Ce()({name:"VListItem",directives:{vRipple:eo},props:Rj(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const o=nw(e,n),i=f.ref(),l=f.computed(()=>e.value===void 0?o.href.value:e.value),{activate:s,isActivated:u,select:c,isOpen:d,isSelected:h,isIndeterminate:v,isGroupActivator:p,root:m,parent:g,openOnSelect:y,scrollToActive:b,id:w}=Nj(l,()=>e.disabled,!1),S=Ij(),_=f.computed(()=>e.active!==!1&&(e.active||o.isActive?.value||(m.activatable.value?u.value:h.value))),x=f.toRef(()=>e.link!==!1&&o.isLink.value),T=f.computed(()=>!!S&&(m.selectable.value||m.activatable.value||e.value!=null)),A=f.computed(()=>!e.disabled&&e.link!==!1&&(e.link||o.isClickable.value||T.value)),E=f.computed(()=>S&&S.navigationStrategy.value==="track"&&e.index!==void 0&&S.trackingIndex.value===e.index),I=f.computed(()=>S?x.value?"link":T.value?"option":"listitem":void 0),M=f.computed(()=>{if(T.value)return m.activatable.value?u.value:m.selectable.value?h.value:_.value}),N=f.toRef(()=>e.rounded||e.nav),D=f.toRef(()=>e.color??e.activeColor),P=f.toRef(()=>({color:_.value?D.value??e.baseColor:e.baseColor,variant:e.variant}));f.watch(()=>o.isActive?.value,me=>{me&&O()}),f.watch(u,me=>{!me||!b||i.value?.scrollIntoView({block:"nearest",behavior:"instant"})}),f.watch(E,me=>{me&&i.value?.scrollIntoView({block:"nearest",behavior:"instant"})}),f.onBeforeMount(()=>{o.isActive?.value&&f.nextTick(()=>O())});function O(){g.value!=null&&m.open(g.value,!0),y(!0)}const{themeClasses:L}=In(e),{borderClasses:R}=Go(e),{colorClasses:B,colorStyles:W,variantClasses:H}=Wc(P),{densityClasses:z}=$a(e),{dimensionStyles:j}=Yr(e),{elevationClasses:U}=va(e),{roundedClasses:Y}=ur(N),Z=f.toRef(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),te=f.toRef(()=>e.ripple!==void 0&&e.ripple&&S?.filterable?{keys:["Enter"]}:e.ripple),$=f.computed(()=>({isActive:_.value,select:c,isOpen:d.value,isSelected:h.value,isIndeterminate:v.value,isDisabled:e.disabled}));function ae(me){a("click",me),!["INPUT","TEXTAREA"].includes(me.target?.tagName)&&A.value&&(o.navigate.value?.(me),!p&&(m.activatable.value?s(!u.value,me):(m.selectable.value||e.value!=null&&!x.value)&&c(!h.value,me)))}function de(me){const fe=me.target;["INPUT","TEXTAREA"].includes(fe.tagName)||(me.key==="Enter"||me.key===" "&&!S?.filterable)&&(me.preventDefault(),me.stopPropagation(),me.target.dispatchEvent(new MouseEvent("click",me)))}return ke(()=>{const me=x.value?"a":e.tag,fe=r.title||e.title!=null,Ee=r.subtitle||e.subtitle!=null,ne=!!(!!(e.appendAvatar||e.appendIcon)||r.append),Pe=!!(!!(e.prependAvatar||e.prependIcon)||r.prepend);return S?.updateHasPrepend(Pe),e.activeColor&&O9("active-color",["color","base-color"]),f.withDirectives(f.createVNode(me,f.mergeProps(o.linkProps,{ref:i,id:e.index!==void 0&&S?`v-list-item-${S.uid}-${e.index}`:void 0,class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!Pe&&S?.hasPrepend.value,"v-list-item--slim":e.slim,"v-list-item--focus-visible":E.value,[`${e.activeClass}`]:e.activeClass&&_.value},L.value,R.value,B.value,z.value,U.value,Z.value,Y.value,H.value,e.class],style:[{"--v-list-prepend-gap":Re(e.prependGap)},W.value,j.value,e.style],tabindex:e.tabindex??(A.value?S?-2:0:void 0),"aria-selected":M.value,role:I.value,onClick:ae,onKeydown:A.value&&!x.value&&de}),{default:()=>[zc(A.value||_.value,"v-list-item"),Pe&&f.createElementVNode("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?f.createVNode(Ht,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[r.prepend?.($.value)]}):f.createElementVNode(f.Fragment,null,[e.prependAvatar&&f.createVNode(vl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(St,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),f.createElementVNode("div",{class:"v-list-item__spacer"},null)]),f.createElementVNode("div",{class:"v-list-item__content","data-no-activator":""},[fe&&f.createVNode(kv,{key:"title"},{default:()=>[r.title?.({title:e.title})??f.toDisplayString(e.title)]}),Ee&&f.createVNode(Oj,{key:"subtitle"},{default:()=>[r.subtitle?.({subtitle:e.subtitle})??f.toDisplayString(e.subtitle)]}),r.default?.($.value)]),ne&&f.createElementVNode("div",{key:"append",class:"v-list-item__append"},[r.append?f.createVNode(Ht,{key:"append-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[r.append?.($.value)]}):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(St,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(vl,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),f.createElementVNode("div",{class:"v-list-item__spacer"},null)])]}),[[eo,A.value&&te.value]])}),{activate:s,isActivated:u,isGroupActivator:p,isSelected:h,list:S,select:c,root:m,id:w,link:o}}}),LAe=ie({color:String,inset:Boolean,sticky:Boolean,title:String,...at(),...Ft()},"VListSubheader"),Av=Ce()({name:"VListSubheader",props:LAe(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=za(()=>e.color);return ke(()=>{const o=!!(n.default||e.title);return f.createVNode(e.tag,{class:f.normalizeClass(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:f.normalizeStyle([{textColorStyles:a},e.style])},{default:()=>[o&&f.createElementVNode("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),OAe=ie({items:Array,returnObject:Boolean},"VListChildren"),Bj=Ce()({name:"VListChildren",props:OAe(),setup(e,t){let{slots:n}=t;return Ej(),()=>n.default?.()??e.items?.map((r,a)=>{let{children:o,props:i,type:l,raw:s}=r;if(l==="divider")return n.divider?.({props:i})??f.createVNode(Ia,i,null);if(l==="subheader")return n.subheader?.({props:i})??f.createVNode(Av,i,null);const u={subtitle:n.subtitle?d=>n.subtitle?.({...d,item:s}):void 0,prepend:n.prepend?d=>n.prepend?.({...d,item:s}):void 0,append:n.append?d=>n.append?.({...d,item:s}):void 0,title:n.title?d=>n.title?.({...d,item:s}):void 0},c=cw.filterProps(i);return o?f.createVNode(cw,f.mergeProps(c,{value:e.returnObject?s:i?.value,rawId:i?.value}),{activator:d=>{let{props:h}=d;const v=f.mergeProps(i,h,{value:e.returnObject?s:i.value});return n.header?n.header({props:v}):f.createVNode(Vr,f.mergeProps(v,{index:a}),u)},default:()=>f.createVNode(Bj,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:{...i,index:a}}):f.createVNode(Vr,f.mergeProps(i,{index:a,value:e.returnObject?s:i.value}),u)})}}),Fj=ie({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"),RAe=new Set(["item","divider","subheader"]);function Fs(e,t){const n=Wr(t,e.itemTitle,t),r=Wr(t,e.itemValue,n),a=Wr(t,e.itemChildren),o=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Kt(t,["children"]):t:void 0:Wr(t,e.itemProps);let i=Wr(t,e.itemType,"item");RAe.has(i)||(i="item");const l={title:n,value:r,...o};return{type:i,title:String(l.title??""),value:l.value,props:l,children:i==="item"&&Array.isArray(a)?Hj(e,a):void 0,raw:t}}Fs.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function Hj(e,t){const n=fi(e,Fs.neededProps),r=[];for(const a of t)r.push(Fs(n,a));return r}function iN(e){const t=f.computed(()=>Hj(e,e.items)),n=f.computed(()=>t.value.some(l=>l.value===null)),r=f.shallowRef(new Map),a=f.shallowRef([]);f.watchEffect(()=>{const l=t.value,s=new Map,u=[];for(let c=0;c{let{raw:u}=s;return u}):l.map(s=>{let{value:u}=s;return u})}return{items:t,transformIn:o,transformOut:i}}const BAe=new Set(["item","divider","subheader"]);function FAe(e,t){const n=of(t)?t:Wr(t,e.itemTitle),r=of(t)?t:Wr(t,e.itemValue,void 0),a=Wr(t,e.itemChildren),o=e.itemProps===!0?Kt(t,["children"]):Wr(t,e.itemProps);let i=Wr(t,e.itemType,"item");BAe.has(i)||(i="item");const l={title:n,value:r,...o};return{type:i,title:l.title,value:l.value,props:l,children:i==="item"&&a?zj(e,a):void 0,raw:t}}function zj(e,t){const n=[];for(const r of t)n.push(FAe(e,r));return n}function Wj(e){return{items:f.computed(()=>zj(e,e.items))}}const Gj=ie({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:ut,collapseIcon:ut,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,navigationStrategy:{type:String,default:"focus"},navigationIndex:Number,"onClick:open":Qa(),"onClick:select":Qa(),"onUpdate:opened":Qa(),...MAe({selectStrategy:"single-leaf",openStrategy:"list"}),...wo(),...at(),..._r(),...Ur(),...jr(),...Fj(),...qn(),...Ft(),...pn(),...fl({variant:"text"})},"VList"),hi=Ce()({name:"VList",props:Gj(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"update:navigationIndex":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{items:o}=Wj(e),{themeClasses:i}=In(e),{backgroundColorClasses:l,backgroundColorStyles:s}=Ln(()=>e.bgColor),{borderClasses:u}=Go(e),{densityClasses:c}=$a(e),{dimensionStyles:d}=Yr(e),{elevationClasses:h}=va(e),{roundedClasses:v}=ur(e),{children:p,open:m,parents:g,select:y,getPath:b}=DAe(e,{items:o,returnObject:f.toRef(()=>e.returnObject),scrollToActive:f.toRef(()=>e.navigationStrategy==="track")}),w=f.toRef(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=f.toRef(()=>e.activeColor),_=f.toRef(()=>e.baseColor),x=f.toRef(()=>e.color),T=f.toRef(()=>e.selectable||e.activatable),A=ot(e,"navigationIndex",-1,z=>z??-1),E=f.useId();Ej({filterable:e.filterable,trackingIndex:A,navigationStrategy:f.toRef(()=>e.navigationStrategy),uid:E}),f.watch(o,()=>{e.navigationStrategy==="track"&&(A.value=-1)}),Cr({VListGroup:{activeColor:S,baseColor:_,color:x,expandIcon:f.toRef(()=>e.expandIcon),collapseIcon:f.toRef(()=>e.collapseIcon)},VListItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:S,baseColor:_,color:x,density:f.toRef(()=>e.density),disabled:f.toRef(()=>e.disabled),lines:f.toRef(()=>e.lines),nav:f.toRef(()=>e.nav),slim:f.toRef(()=>e.slim),variant:f.toRef(()=>e.variant),tabindex:f.toRef(()=>e.navigationStrategy==="track"?-1:void 0)}});const I=f.shallowRef(!1),M=f.ref();function N(z){I.value=!0}function D(z){I.value=!1}function P(z){e.navigationStrategy==="track"?~A.value||(A.value=R("first")):!I.value&&!(z.relatedTarget&&M.value?.contains(z.relatedTarget))&&H()}function O(){e.navigationStrategy==="track"&&(A.value=-1)}function L(z){switch(z){case"ArrowDown":return"next";case"ArrowUp":return"prev";case"Home":return"first";case"End":return"last";default:return null}}function R(z){const j=o.value.length;if(j===0)return-1;let U;z==="first"?U=0:z==="last"?U=j-1:(U=A.value+(z==="next"?1:-1),U<0&&(U=j-1),U>=j&&(U=0));const Y=U;let Z=0;for(;Z=j&&(U=0),U===Y)return-1;Z++}return-1}function B(z){const j=z.target;if(!M.value||j.tagName==="INPUT"&&["Home","End"].includes(z.key)||j.tagName==="TEXTAREA")return;const U=L(z.key);if(U!==null)if(z.preventDefault(),e.navigationStrategy==="track"){const Y=R(U);Y!==-1&&(A.value=Y)}else H(U)}function W(z){I.value=!0}function H(z){if(M.value)return mv(M.value,z)}return ke(()=>{const z=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0),j=T.value?n.ariaMultiselectable??!String(e.selectStrategy).startsWith("single-"):void 0;return f.createVNode(e.tag,{ref:M,class:f.normalizeClass(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,l.value,u.value,c.value,h.value,w.value,v.value,e.class]),style:f.normalizeStyle([{"--v-list-indent":Re(z),"--v-list-group-prepend":z?"0px":void 0,"--v-list-prepend-gap":Re(e.prependGap)},s.value,d.value,e.style]),tabindex:e.disabled?-1:0,role:T.value?"listbox":"list","aria-activedescendant":e.navigationStrategy==="track"&&A.value>=0?`v-list-item-${E}-${A.value}`:void 0,"aria-multiselectable":j,onFocusin:N,onFocusout:D,onFocus:P,onBlur:O,onKeydown:B,onMousedown:W},{default:()=>[f.createVNode(Bj,{items:o.value,returnObject:e.returnObject},r)]})}),{open:m,select:y,focus:H,children:p,parents:g,getPath:b,navigationIndex:A}}}),HAe=Rc("v-list-img"),zAe=ie({start:Boolean,end:Boolean,...at(),...Ft()},"VListItemAction"),lN=Ce()({name:"VListItemAction",props:zAe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),WAe=ie({start:Boolean,end:Boolean,...at(),...Ft()},"VListItemMedia"),GAe=Ce()({name:"VListItemMedia",props:WAe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class]),style:f.normalizeStyle(e.style)},n)),{}}});function sN(e,t){return{x:e.x+t.x,y:e.y+t.y}}function UAe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uj(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return sN({x:a,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return sN({x:a,y:o},t)}return sN({x:t.width/2,y:t.height/2},t)}const Yj={static:KAe,connected:ZAe},YAe=ie({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Yj},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 jAe(e,t){const n=f.ref({}),r=f.ref();Bn&&qa(()=>!!(t.isActive.value&&e.locationStrategy),l=>{f.watch(()=>e.locationStrategy,l),f.onScopeDispose(()=>{window.removeEventListener("resize",a),visualViewport?.removeEventListener("resize",o),visualViewport?.removeEventListener("scroll",i),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),visualViewport?.addEventListener("resize",o,{passive:!0}),visualViewport?.addEventListener("scroll",i,{passive:!0}),typeof e.locationStrategy=="function"?r.value=e.locationStrategy(t,e,n)?.updateLocation:r.value=Yj[e.locationStrategy](t,e,n)?.updateLocation});function a(l){r.value?.(l)}function o(l){r.value?.(l)}function i(l){r.value?.(l)}return{contentStyles:n,updateLocation:r}}function KAe(){}function XAe(e,t){const n=bP(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 ZAe(e,t,n){(Array.isArray(e.target.value)||NTe(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:o}=vP(()=>{const y=pP(t.location,e.isRtl.value),b=t.origin==="overlap"?y:t.origin==="auto"?gP(y):pP(t.origin,e.isRtl.value);return y.side===b.side&&y.align===yP(b).align?{preferredAnchor:nY(y),preferredOrigin:nY(b)}:{preferredAnchor:y,preferredOrigin:b}}),[i,l,s,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(y=>f.computed(()=>{const b=parseFloat(t[y]);return isNaN(b)?1/0:b})),c=f.computed(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const y=t.offset.split(" ").map(parseFloat);return y.length<2&&y.push(0),y}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,h=-1;const v=new J9(4),p=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(b=>{b!==h&&v.clear(),requestAnimationFrame(w=>{h=w})}),v.isFull){const b=v.values();if(Ea(b.at(-1),b.at(-3))&&!Ea(b.at(-1),b.at(-2)))return}const y=g();y&&v.push(y.flipped)});let m=new ll({x:0,y:0,width:0,height:0});f.watch(e.target,(y,b)=>{b&&!Array.isArray(b)&&p.unobserve(b),Array.isArray(y)?Ea(y,b)||g():y&&p.observe(y)},{immediate:!0}),f.watch(e.contentEl,(y,b)=>{b&&p.unobserve(b),y&&p.observe(y)},{immediate:!0}),f.onScopeDispose(()=>{p.disconnect()});function g(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=oY(e.target.value));const y=XAe(e.contentEl.value,e.isRtl.value),b=g_(e.contentEl.value),w=Number(t.viewportMargin);b.length||(b.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(y.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),y.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=b.reduce((D,P)=>{const O=tTe(P);return D?new ll({x:Math.max(D.left,O.left),y:Math.max(D.top,O.top),width:Math.min(D.right,O.right)-Math.max(D.left,O.left),height:Math.min(D.bottom,O.bottom)-Math.max(D.top,O.top)}):O},void 0);t.stickToTarget?(S.x+=Math.min(w,m.x),S.y+=Math.min(w,m.y),S.width=Math.max(S.width-w*2,m.x+m.width-w),S.height=Math.max(S.height-w*2,m.y+m.height-w)):(S.x+=w,S.y+=w,S.width-=w*2,S.height-=w*2);let _={anchor:a.value,origin:o.value};function x(D){const P=new ll(y),O=Uj(D.anchor,m),L=Uj(D.origin,P);let{x:R,y:B}=UAe(O,L);switch(D.anchor.side){case"top":B-=c.value[0];break;case"bottom":B+=c.value[0];break;case"left":R-=c.value[0];break;case"right":R+=c.value[0];break}switch(D.anchor.align){case"top":B-=c.value[1];break;case"bottom":B+=c.value[1];break;case"left":R-=c.value[1];break;case"right":R+=c.value[1];break}return P.x+=R,P.y+=B,P.width=Math.min(P.width,s.value),P.height=Math.min(P.height,u.value),{overflows:aY(P,S),x:R,y:B}}let T=0,A=0;const E={x:0,y:0},I={x:!1,y:!1};let M=-1;for(;;){if(M++>10){cv("Infinite loop detected in connectedLocationStrategy");break}const{x:D,y:P,overflows:O}=x(_);T+=D,A+=P,y.x+=D,y.y+=P;{const L=rY(_.anchor),R=O.x.before||O.x.after,B=O.y.before||O.y.after;let W=!1;if(["x","y"].forEach(H=>{if(H==="x"&&R&&!I.x||H==="y"&&B&&!I.y){const z={anchor:{..._.anchor},origin:{..._.origin}},j=H==="x"?L==="y"?yP:gP:L==="y"?gP:yP;z.anchor=j(z.anchor),z.origin=j(z.origin);const{overflows:U}=x(z);(U[H].before<=O[H].before&&U[H].after<=O[H].after||U[H].before+U[H].after<(O[H].before+O[H].after)/2)&&(_=z,W=I[H]=!0)}}),W)continue}O.x.before&&(T+=O.x.before,y.x+=O.x.before),O.x.after&&(T-=O.x.after,y.x-=O.x.after),O.y.before&&(A+=O.y.before,y.y+=O.y.before),O.y.after&&(A-=O.y.after,y.y-=O.y.after);{const L=aY(y,S);E.x=S.width-L.x.before-L.x.after,E.y=S.height-L.y.before-L.y.after,T+=L.x.before,y.x+=L.x.before,A+=L.y.before,y.y+=L.y.before}break}const N=rY(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:Re(uN(A)),left:e.isRtl.value?void 0:Re(uN(T)),right:e.isRtl.value?Re(uN(-T)):void 0,minWidth:Re(N==="y"?Math.min(i.value,m.width):i.value),maxWidth:Re(jj(Fn(E.x,i.value===1/0?0:i.value,s.value))),maxHeight:Re(jj(Fn(E.y,l.value===1/0?0:l.value,u.value)))}),{available:E,contentBox:y,flipped:I}}return f.watch(()=>[a.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>g()),f.nextTick(()=>{const y=g();if(!y)return;const{available:b,contentBox:w}=y;w.height>b.y&&requestAnimationFrame(()=>{g(),requestAnimationFrame(()=>{g()})})}),{updateLocation:g}}function uN(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function jj(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let cN=!0;const E_=[];function JAe(e){!cN||E_.length?(E_.push(e),dN()):(cN=!1,e(),dN())}let Kj=-1;function dN(){cancelAnimationFrame(Kj),Kj=requestAnimationFrame(()=>{const e=E_.shift();e&&e(),E_.length?dN():cN=!0})}const Xj={none:null,close:$Ae,block:eEe,reposition:tEe},QAe=ie({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Xj}},"VOverlay-scroll-strategies");function qAe(e,t){if(!Bn)return;let n;f.watchEffect(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=f.effectScope(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):Xj[e.scrollStrategy]?.(t,e,n)}))}),f.onScopeDispose(()=>{n?.stop()})}function $Ae(e){function t(n){e.isActive.value=!1}Zj(fN(e.target.value,e.contentEl.value),t)}function eEe(e,t){const n=e.root.value?.offsetParent,r=fN(e.target.value,e.contentEl.value),a=[...new Set([...g_(r,t.contained?n:void 0),...g_(e.contentEl.value,t.contained?n:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,i=(l=>kP(l)&&l)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),a.forEach((l,s)=>{l.style.setProperty("--v-body-scroll-x",Re(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",Re(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",Re(o)),l.classList.add("v-overlay-scroll-blocked")}),f.onScopeDispose(()=>{a.forEach((l,s)=>{const u=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),d=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-u,l.scrollTop=-c,l.style.scrollBehavior=d}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function tEe(e,t,n){let r=!1,a=-1,o=-1;function i(l){JAe(()=>{const s=performance.now();e.updateLocation.value?.(l),r=(performance.now()-s)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?l=>l():requestIdleCallback)(()=>{n.run(()=>{Zj(fN(e.target.value,e.contentEl.value),l=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{i(l)})})):i(l)})})}),f.onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(a)})}function fN(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function Zj(e,t){const n=[document,...g_(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),f.onScopeDispose(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const hN=Symbol.for("vuetify:v-menu"),vN=ie({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function pN(e,t){let n=()=>{};function r(i,l){n?.();const s=i?e.openDelay:e.closeDelay,u=Math.max(l?.minDelay??0,Number(s??0));return new Promise(c=>{n=Z_e(u,()=>{t?.(i),c(i)})})}function a(){return r(!0)}function o(i){return r(!1,i)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:o}}const nEe=ie({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,...vN()},"VOverlay-activator");function rEe(e,t){let{isActive:n,isTop:r,contentEl:a}=t;const o=Gr("useActivator"),i=f.ref();let l=!1,s=!1,u=!0;const c=f.computed(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=f.computed(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:h,runCloseDelay:v}=pN(e,A=>{A===(e.openOnHover&&l||c.value&&s)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==A&&(u=!0),n.value=A)}),p=f.ref(),m={onClick:A=>{A.stopPropagation(),i.value=A.currentTarget||A.target,n.value||(p.value=[A.clientX,A.clientY]),n.value=!n.value},onMouseenter:A=>{l=!0,i.value=A.currentTarget||A.target,h()},onMouseleave:A=>{l=!1,v()},onFocus:A=>{Lg(A.target,":focus-visible")!==!1&&(s=!0,A.stopPropagation(),i.value=A.currentTarget||A.target,h())},onBlur:A=>{s=!1,A.stopPropagation(),v({minDelay:1})}},g=f.computed(()=>{const A={};return d.value&&(A.onClick=m.onClick),e.openOnHover&&(A.onMouseenter=m.onMouseenter,A.onMouseleave=m.onMouseleave),c.value&&(A.onFocus=m.onFocus,A.onBlur=m.onBlur),A}),y=f.computed(()=>{const A={};if(e.openOnHover&&(A.onMouseenter=()=>{l=!0,h()},A.onMouseleave=()=>{l=!1,v()}),c.value&&(A.onFocusin=E=>{E.target.matches(":focus-visible")&&(s=!0,h())},A.onFocusout=()=>{s=!1,v({minDelay:1})}),e.closeOnContentClick){const E=f.inject(hN,null);A.onClick=()=>{n.value=!1,E?.closeParents()}}return A}),b=f.computed(()=>{const A={};return e.openOnHover&&(A.onMouseenter=()=>{u&&(l=!0,u=!1,h())},A.onMouseleave=()=>{l=!1,v()}),A});f.watch(r,A=>{A&&(e.openOnHover&&!l&&(!c.value||!s)||c.value&&!s&&(!e.openOnHover||!l))&&!a.value?.contains(document.activeElement)&&v()}),f.watch(n,A=>{A||setTimeout(()=>{p.value=void 0})},{flush:"post"});const w=K1();f.watchEffect(()=>{w.value&&f.nextTick(()=>{i.value=w.el})});const S=K1(),_=f.computed(()=>e.target==="cursor"&&p.value?p.value:S.value?S.el:Jj(e.target,o)||i.value),x=f.computed(()=>Array.isArray(_.value)?void 0:_.value);let T;return f.watch(()=>!!e.activator,A=>{A&&Bn?(T=f.effectScope(),T.run(()=>{aEe(e,o,{activatorEl:i,activatorEvents:g})})):T&&T.stop()},{flush:"post",immediate:!0}),f.onScopeDispose(()=>{T?.stop()}),{activatorEl:i,activatorRef:w,target:_,targetEl:x,targetRef:S,activatorEvents:g,contentEvents:y,scrimEvents:b}}function aEe(e,t,n){let{activatorEl:r,activatorEvents:a}=n;f.watch(()=>e.activator,(s,u)=>{if(u&&s!==u){const c=l(u);c&&i(c)}s&&f.nextTick(()=>o())},{immediate:!0}),f.watch(()=>e.activatorProps,()=>{o()}),f.onScopeDispose(()=>{i()});function o(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&nTe(s,f.mergeProps(a.value,u))}function i(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&rTe(s,f.mergeProps(a.value,u))}function l(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=Jj(s,t);return r.value=u?.nodeType===Node.ELEMENT_NODE?u:void 0,r.value}}function Jj(e,t){if(!e)return;let n;if(e==="parent"){let r=t?.proxy?.$el?.parentNode;for(;r?.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const Qj=ie({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),I_=new Map;let qj=0;function $j(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(I_.values()).filter(u=>{let{isActive:c,contentEl:d}=u;return c.value&&d.value?.contains(t)}).map(u=>u.contentEl.value);let r,a=t.parentElement;for(;a;){if(n.includes(a)){r=a;break}a=a.parentElement}if(!r)return;const o=af(r).filter(u=>u.tabIndex>=0);if(!o.length)return;const i=document.activeElement;if(o.length===1&&o[0].classList.contains("v-list")&&o[0].contains(i)){e.preventDefault();return}const l=o[0],s=o[o.length-1];e.shiftKey&&(i===l||l.classList.contains("v-list")&&l.contains(i))&&(e.preventDefault(),s.focus()),!e.shiftKey&&(i===s||s.classList.contains("v-list")&&s.contains(i))&&(e.preventDefault(),l.focus())}function eK(e,t){let{isActive:n,localTop:r,activatorEl:a,contentEl:o}=t;const i=Symbol("trap");let l=!1,s=-1;async function u(){l=!0,s=window.setTimeout(()=>{l=!1},100)}async function c(v){const p=v.relatedTarget,m=v.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",d),await f.nextTick(),n.value&&!l&&p!==m&&o.value&&f.toValue(r)&&![document,o.value].includes(m)&&!o.value.contains(m)&&af(o.value)[0]?.focus()}function d(v){if(v.key==="Tab"&&(document.removeEventListener("keydown",d),n.value&&o.value&&v.target&&!o.value.contains(v.target))){const p=af(document.documentElement);if(v.shiftKey&&v.target===p.at(0)||!v.shiftKey&&v.target===p.at(-1)){const m=af(o.value);m.length>0&&(v.preventDefault(),m[0].focus())}}}const h=f.toRef(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);Bn&&(f.watch(()=>e.retainFocus,v=>{v?I_.set(i,{isActive:n,contentEl:o}):I_.delete(i)},{immediate:!0}),f.watch(h,v=>{v?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",d)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d))},{immediate:!0}),qj++<1&&document.addEventListener("keydown",$j)),f.onScopeDispose(()=>{I_.delete(i),clearTimeout(s),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d),--qj<1&&document.removeEventListener("keydown",$j)})}function tK(){if(!Bn)return f.shallowRef(!1);const{ssr:e}=pl();if(e){const t=f.shallowRef(!1);return f.onMounted(()=>{t.value=!0}),t}else return f.shallowRef(!0)}const mN=ie({eager:Boolean},"lazy");function gN(e,t){const n=f.shallowRef(!1),r=f.toRef(()=>n.value||e.eager||t.value);f.watch(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function Ev(){const t=Gr("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const nK=Symbol.for("vuetify:stack"),dw=f.reactive([]);function oEe(e,t,n){const r=Gr("useStack"),a=!n,o=f.inject(nK,void 0),i=f.reactive({activeChildren:new Set});f.provide(nK,i);const l=f.shallowRef(Number(f.toValue(t)));qa(e,()=>{const c=dw.at(-1)?.[1];l.value=c?c+10:Number(f.toValue(t)),a&&dw.push([r.uid,l.value]),o?.activeChildren.add(r.uid),f.onScopeDispose(()=>{if(a){const d=f.toRaw(dw).findIndex(h=>h[0]===r.uid);dw.splice(d,1)}o?.activeChildren.delete(r.uid)})});const s=f.shallowRef(!0);a&&f.watchEffect(()=>{const c=dw.at(-1)?.[0]===r.uid;setTimeout(()=>s.value=c)});const u=f.toRef(()=>!i.activeChildren.size);return{globalTop:f.readonly(s),localTop:u,stackStyles:f.toRef(()=>({zIndex:l.value}))}}function iEe(e){return{teleportTarget:f.computed(()=>{const n=e();if(n===!0||!Bn)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null){f.warn(`Unable to locate target ${n}`);return}let a=[...r.children].find(o=>o.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function lEe(){return!0}function rK(e,t,n){if(!e||aK(e,n)===!1)return!1;const r=TY(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(o=>o?.contains(e.target))}function aK(e,t){return(typeof t.value=="object"&&t.value.closeConditional||lEe)(e)}function sEe(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&rK(e,t,n)&&setTimeout(()=>{aK(e,n)&&r&&r(e)},0)}function oK(e,t){const n=TY(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const yN={mounted(e,t){const n=a=>sEe(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=rK(a,e,t)};oK(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(oK(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function uEe(e){const{modelValue:t,color:n,...r}=e;return f.createVNode(f.Transition,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&f.createElementVNode("div",f.mergeProps({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const fw=ie({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},...nEe(),...at(),...Ur(),...mN(),...YAe(),...QAe(),...Qj(),...pn(),...Bc()},"VOverlay"),Ri=Ce()({name:"VOverlay",directives:{vClickOutside:yN},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Kt(fw(),["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:a}=t;const o=Gr("VOverlay"),i=f.ref(),l=f.ref(),s=f.ref(),u=ot(e,"modelValue"),c=f.computed({get:()=>u.value,set:$=>{$&&e.disabled||(u.value=$)}}),{themeClasses:d}=In(e),{rtlClasses:h,isRtl:v}=ea(),{hasContent:p,onAfterLeave:m}=gN(e,c),g=Ln(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:y,localTop:b,stackStyles:w}=oEe(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:S,activatorRef:_,target:x,targetEl:T,targetRef:A,activatorEvents:E,contentEvents:I,scrimEvents:M}=rEe(e,{isActive:c,isTop:b,contentEl:s}),{teleportTarget:N}=iEe(()=>{const $=e.attach||e.contained;if($)return $;const ae=S?.value?.getRootNode()||o.proxy?.$el?.getRootNode();return ae instanceof ShadowRoot?ae:!1}),{dimensionStyles:D}=Yr(e),P=tK(),{scopeId:O}=Ev();f.watch(()=>e.disabled,$=>{$&&(c.value=!1)});const{contentStyles:L,updateLocation:R}=jAe(e,{isRtl:v,contentEl:s,target:x,isActive:c});qAe(e,{root:i,contentEl:s,targetEl:T,target:x,isActive:c,updateLocation:R});function B($){a("click:outside",$),e.persistent?Y():c.value=!1}function W($){return c.value&&b.value&&(!e.scrim||$.target===l.value||$ instanceof MouseEvent&&$.shadowTarget===l.value)}eK(e,{isActive:c,localTop:b,contentEl:s,activatorEl:S}),Bn&&f.watch(c,$=>{$?window.addEventListener("keydown",H):window.removeEventListener("keydown",H)},{immediate:!0}),f.onBeforeUnmount(()=>{Bn&&window.removeEventListener("keydown",H)});function H($){$.key==="Escape"&&y.value&&(s.value?.contains(document.activeElement)||a("keydown",$),e.persistent?Y():(c.value=!1,s.value?.contains(document.activeElement)&&S.value?.focus()))}function z($){$.key==="Escape"&&!y.value||a("keydown",$)}const j=qY();qa(()=>e.closeOnBack,()=>{Bke(j,()=>{if(y.value&&c.value)return e.persistent?Y():c.value=!1,!1})});const U=f.ref();f.watch(()=>c.value&&(e.absolute||e.contained)&&N.value==null,$=>{if($){const ae=m_(i.value);ae&&ae!==document.scrollingElement&&(U.value=ae.scrollTop)}});function Y(){e.noClickAnimation||s.value&&Oc(s.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Z1})}function Z(){a("afterEnter")}function te(){m(),a("afterLeave")}return ke(()=>f.createElementVNode(f.Fragment,null,[n.activator?.({isActive:c.value,targetRef:A,props:f.mergeProps({ref:_},E.value,e.activatorProps)}),P.value&&p.value&&f.createVNode(f.Teleport,{disabled:!N.value,to:N.value},{default:()=>[f.createElementVNode("div",f.mergeProps({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,h.value,e.class],style:[w.value,{"--v-overlay-opacity":e.opacity,top:Re(U.value)},e.style],ref:i,onKeydown:z},O,r),[f.createVNode(uEe,f.mergeProps({color:g,modelValue:c.value&&!!e.scrim,ref:l},M.value),null),f.createVNode(Wo,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterEnter:Z,onAfterLeave:te},{default:()=>[f.withDirectives(f.createElementVNode("div",f.mergeProps({ref:s,class:["v-overlay__content",e.contentClass],style:[D.value,L.value]},I.value,e.contentProps),[n.default?.({isActive:c})]),[[f.vShow,c.value],[yN,{handler:B,closeConditional:W,include:()=>[S.value]}]])]})])]})])),{activatorEl:S,scrimEl:l,target:x,animateClick:Y,contentEl:s,rootEl:i,globalTop:y,localTop:b,updateLocation:R}}}),iK=ie({id:String,submenu:Boolean,...Kt(fw({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:y_}}),["absolute"])},"VMenu"),Uo=Ce()({name:"VMenu",props:iK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{scopeId:a}=Ev(),{isRtl:o}=ea(),i=f.useId(),l=f.toRef(()=>e.id||`v-menu-${i}`),s=f.ref(),u=f.inject(hN,null),c=f.shallowRef(new Set);f.provide(hN,{register(){c.value.add(i)},unregister(){c.value.delete(i)},closeParents(m){setTimeout(()=>{!c.value.size&&!e.persistent&&(m==null||s.value?.contentEl&&!J_e(m,s.value.contentEl))&&(r.value=!1,u?.closeParents())},40)}}),f.onBeforeUnmount(()=>u?.unregister()),f.onDeactivated(()=>r.value=!1),f.watch(r,m=>{m?u?.register():u?.unregister()},{immediate:!0});function d(m){u?.closeParents(m)}function h(m){if(!e.disabled)if(m.key==="Tab"||m.key==="Enter"&&!e.closeOnContentClick){if(m.key==="Enter"&&(m.target instanceof HTMLTextAreaElement||m.target instanceof HTMLInputElement&&m.target.closest("form")))return;m.key==="Enter"&&m.preventDefault(),!$9(af(s.value?.contentEl,!1),m.shiftKey?"prev":"next",y=>y.tabIndex>=0)&&!e.retainFocus&&(r.value=!1,s.value?.activatorEl?.focus())}else e.submenu&&m.key===(o.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,s.value?.activatorEl?.focus())}function v(m){if(e.disabled)return;const g=s.value?.contentEl;g&&r.value?m.key==="ArrowDown"?(m.preventDefault(),m.stopImmediatePropagation(),mv(g,"next")):m.key==="ArrowUp"?(m.preventDefault(),m.stopImmediatePropagation(),mv(g,"prev")):e.submenu&&(m.key===(o.value?"ArrowRight":"ArrowLeft")?r.value=!1:m.key===(o.value?"ArrowLeft":"ArrowRight")&&(m.preventDefault(),mv(g,"first"))):(e.submenu?m.key===(o.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(m.key))&&(r.value=!0,m.preventDefault(),setTimeout(()=>setTimeout(()=>v(m))))}const p=f.computed(()=>f.mergeProps({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-controls":l.value,"aria-owns":l.value,onKeydown:v},e.activatorProps));return ke(()=>{const m=Ri.filterProps(e);return f.createVNode(Ri,f.mergeProps({ref:s,id:l.value,class:["v-menu",e.class],style:e.style},m,{modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,absolute:!0,activatorProps:p.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:h},a),{activator:n.activator,default:function(){for(var g=arguments.length,y=new Array(g),b=0;b[n.default?.(...y)]})}})}),pa({id:l,ΨopenChildren:c},s)}}),bN=ie({color:String,...wo(),...at(),...Ur(),...jr(),..._u(),...Wg(),...qn(),...Ft(),...pn()},"VSheet"),Yc=Ce()({name:"VSheet",props:bN(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{borderClasses:i}=Go(e),{dimensionStyles:l}=Yr(e),{elevationClasses:s}=va(e),{locationStyles:u}=lf(e),{positionClasses:c}=Gg(e),{roundedClasses:d}=ur(e);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-sheet",r.value,a.value,i.value,s.value,c.value,d.value,e.class]),style:f.normalizeStyle([o.value,l.value,u.value,e.style])},n)),{}}}),cEe=ie({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...at(),...Bc({transition:{component:LP}})},"VCounter"),M_=Ce()({name:"VCounter",functional:!0,props:cEe(),setup(e,t){let{slots:n}=t;const r=f.toRef(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return ke(()=>f.createVNode(Wo,{transition:e.transition},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:f.normalizeStyle(e.style)},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[f.vShow,e.active]])]})),{}}}),dEe=ie({floating:Boolean,...at()},"VFieldLabel"),hw=Ce()({name:"VFieldLabel",props:dEe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(Ug,{class:f.normalizeClass(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),fEe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],vw=ie({appendInnerIcon:ut,bgColor:String,clearable:Boolean,clearIcon:{type:ut,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:ut,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>fEe.includes(e)},"onClick:clear":Qa(),"onClick:appendInner":Qa(),"onClick:prependInner":Qa(),...at(),...x_(),...qn(),...pn()},"VField"),ff=Ce()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,...lw(),...vw()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:o}=In(e),{loaderClasses:i}=ew(e),{focusClasses:l,isFocused:s,focus:u,blur:c}=Gc(e),{InputIcon:d}=iw(e),{roundedClasses:h}=ur(e),{rtlClasses:v}=ea(),p=f.toRef(()=>e.dirty||e.active),m=f.toRef(()=>!!(e.label||a.label)),g=f.toRef(()=>!e.singleLine&&m.value),y=f.useId(),b=f.computed(()=>e.id||`input-${y}`),w=f.toRef(()=>e.details?`${b.value}-messages`:void 0),S=f.ref(),_=f.ref(),x=f.ref(),T=f.computed(()=>["plain","underlined"].includes(e.variant)),A=f.computed(()=>e.error||e.disabled?void 0:p.value&&s.value?e.color:e.baseColor),E=f.computed(()=>{if(!(!e.iconColor||e.glow&&!s.value))return e.iconColor===!0?A.value:e.iconColor}),{backgroundColorClasses:I,backgroundColorStyles:M}=Ln(()=>e.bgColor),{textColorClasses:N,textColorStyles:D}=za(A);f.watch(p,B=>{if(g.value&&!bu()){const W=S.value.$el,H=_.value.$el;requestAnimationFrame(()=>{const z=bP(W),j=new ll(H),U=j.x-z.x,Y=j.y-z.y-(z.height/2-j.height/2),Z=j.width/.75,te=Math.abs(Z-z.width)>1?{maxWidth:Re(Z)}:void 0,$=getComputedStyle(W),ae=getComputedStyle(H),de=parseFloat($.transitionDuration)*1e3||150,me=parseFloat(ae.getPropertyValue("--v-field-label-scale")),fe=ae.getPropertyValue("color");W.style.visibility="visible",H.style.visibility="hidden",Oc(W,{transform:`translate(${U}px, ${Y}px) scale(${me})`,color:fe,...te},{duration:de,easing:Z1,direction:B?"normal":"reverse"}).finished.then(()=>{W.style.removeProperty("visibility"),H.style.removeProperty("visibility")})})}},{flush:"post"});const P=f.computed(()=>({isActive:p,isFocused:s,controlRef:x,iconColor:E,blur:c,focus:u})),O=f.toRef(()=>{const B=!p.value;return{"aria-hidden":B,for:B?void 0:b.value}}),L=f.toRef(()=>{const B=g.value&&p.value;return{"aria-hidden":B,for:B?void 0:b.value}});function R(B){B.target!==document.activeElement&&B.preventDefault()}return ke(()=>{const B=e.variant==="outlined",W=!!(a["prepend-inner"]||e.prependInnerIcon),H=!!(e.clearable||a.clear)&&!e.disabled,z=!!(a["append-inner"]||e.appendInnerIcon||H),j=()=>a.label?a.label({...P.value,label:e.label,props:{for:b.value}}):e.label;return f.createElementVNode("div",f.mergeProps({class:["v-field",{"v-field--active":p.value,"v-field--appended":z,"v-field--center-affix":e.centerAffix??!T.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":W,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!j(),[`v-field--variant-${e.variant}`]:!0},o.value,I.value,l.value,i.value,h.value,v.value,e.class],style:[M.value,e.style],onClick:R},n),[f.createElementVNode("div",{class:"v-field__overlay"},null),f.createVNode(tw,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),W&&f.createElementVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[a["prepend-inner"]?a["prepend-inner"](P.value):e.prependInnerIcon&&f.createVNode(d,{key:"prepend-icon",name:"prependInner",color:E.value},null)]),f.createElementVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&f.createVNode(hw,f.mergeProps({key:"floating-label",ref:_,class:[N.value],floating:!0},O.value,{style:D.value}),{default:()=>[j()]}),m.value&&f.createVNode(hw,f.mergeProps({key:"label",ref:S,id:e.labelId},L.value),{default:()=>[j()]}),a.default?.({...P.value,props:{id:b.value,class:"v-field__input","aria-describedby":w.value},focus:u,blur:c})??f.createElementVNode("div",{id:b.value,class:"v-field__input","aria-describedby":w.value},null)]),H&&f.createVNode(OP,{key:"clear"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-field__clearable",onMousedown:U=>{U.preventDefault(),U.stopPropagation()}},[f.createVNode(Ht,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({...P.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):f.createVNode(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[f.vShow,e.dirty]])]}),z&&f.createElementVNode("div",{key:"append",class:"v-field__append-inner"},[a["append-inner"]?a["append-inner"](P.value):e.appendInnerIcon&&f.createVNode(d,{key:"append-icon",name:"appendInner",color:E.value},null)]),f.createElementVNode("div",{class:f.normalizeClass(["v-field__outline",N.value]),style:f.normalizeStyle(D.value)},[B&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-field__outline__start"},null),g.value&&f.createElementVNode("div",{class:"v-field__outline__notch"},[f.createVNode(hw,f.mergeProps({ref:_,floating:!0},O.value),{default:()=>[j()]})]),f.createElementVNode("div",{class:"v-field__outline__end"},null)]),T.value&&g.value&&f.createVNode(hw,f.mergeProps({ref:_,floating:!0},O.value),{default:()=>[j()]})])])}),{controlRef:x,fieldIconColor:E}}}),lK=ie({autocomplete:String},"autocomplete");function wN(e){const t=f.useId(),n=f.shallowRef(0),r=f.toRef(()=>e.autocomplete==="suppress"),a=f.toRef(()=>{if(e.name)return r.value?`${e.name}-${t}-${n.value}`:e.name}),o=f.toRef(()=>r.value?"off":e.autocomplete);return{isSuppressing:r,fieldAutocomplete:o,fieldName:a,update:()=>n.value=new Date().getTime()}}function sK(e){function t(n,r){if(!e.autofocus||!n)return;const a=r[0].target;(a.matches("input,textarea")?a:a.querySelector("input,textarea"))?.focus()}return{onIntersect:t}}const hEe=["color","file","time","date","datetime-local","week","month"],pw=ie({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...lK(),...Kt(Uc(),["direction"]),...vw()},"VTextField"),ta=Ce()({name:"VTextField",directives:{vIntersect:dl},inheritAttrs:!1,props:pw(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const o=ot(e,"modelValue",void 0,T=>Object.is(T,-0)?"-0":T),{isFocused:i,focus:l,blur:s}=Gc(e),{onIntersect:u}=sK(e),c=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(o.value):typeof e.counterValue=="number"?e.counterValue:(o.value??"").toString().length),d=f.computed(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=f.computed(()=>["plain","underlined"].includes(e.variant)),v=f.ref(),p=f.ref(),m=f.ref(),g=wN(e),y=f.computed(()=>hEe.includes(e.type)||e.persistentPlaceholder||i.value||e.active);function b(){g.isSuppressing.value&&g.update(),i.value||l(),f.nextTick(()=>{m.value!==document.activeElement&&m.value?.focus()})}function w(T){r("mousedown:control",T),T.target!==m.value&&(b(),T.preventDefault())}function S(T){r("click:control",T)}function _(T,A){T.stopPropagation(),b(),f.nextTick(()=>{A(),Y1(e["onClick:clear"],T)})}function x(T){const A=T.target;if(!(e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type))){o.value=A.value;return}const E=A.value,I=A.selectionStart,M=A.selectionEnd;o.value=E,f.nextTick(()=>{let N=0;E.trimStart().length===A.value.length&&(N=E.length-A.value.length),I!=null&&(A.selectionStart=I-N),M!=null&&(A.selectionEnd=M-N)})}return ke(()=>{const T=!!(a.counter||e.counter!==!1&&e.counter!=null),A=!!(T||a.details),[E,I]=Su(n),{modelValue:M,...N}=to.filterProps(e),D=ff.filterProps(e);return f.createVNode(to,f.mergeProps({ref:v,modelValue:o.value,"onUpdate:modelValue":P=>o.value=P,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":h.value},e.class],style:e.style},E,N,{centerAffix:!h.value,focused:i.value}),{...a,default:P=>{let{id:O,isDisabled:L,isDirty:R,isReadonly:B,isValid:W,hasDetails:H,reset:z}=P;return f.createVNode(ff,f.mergeProps({ref:p,onMousedown:w,onClick:S,"onClick:clear":j=>_(j,z),role:e.role},Kt(D,["onClick:clear"]),{id:O.value,labelId:`${O.value}-label`,active:y.value||R.value,dirty:R.value||e.dirty,disabled:L.value,focused:i.value,details:H.value,error:W.value===!1}),{...a,default:j=>{let{props:{class:U,...Y},controlRef:Z}=j;const te=f.createElementVNode("input",f.mergeProps({ref:$=>m.value=Z.value=$,value:o.value,onInput:x,autofocus:e.autofocus,readonly:B.value,disabled:L.value,name:g.fieldName.value,autocomplete:g.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:l,onBlur:s,"aria-labelledby":`${O.value}-label`},Y,I),null);return f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{class:"v-text-field__prefix"},[f.createElementVNode("span",{class:"v-text-field__prefix__text"},[e.prefix])]),f.withDirectives(a.default?f.createElementVNode("div",{class:f.normalizeClass(U),"data-no-activator":""},[a.default({id:O}),te]):f.cloneVNode(te,{class:U}),[[dl,u,null,{once:!0}]]),e.suffix&&f.createElementVNode("span",{class:"v-text-field__suffix"},[f.createElementVNode("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:A?P=>f.createElementVNode(f.Fragment,null,[a.details?.(P),T&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(M_,{active:e.persistentCounter||i.value,value:c.value,max:d.value,disabled:e.disabled},a.counter)])]):void 0})}),pa({},v,p,m)}}),vEe=ie({renderless:Boolean,...at()},"VVirtualScrollItem"),uK=Ce()({name:"VVirtualScrollItem",inheritAttrs:!1,props:vEe(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:o,contentRect:i}=Ul(void 0,"border");f.watch(()=>i.value?.height,l=>{l!=null&&r("update:height",l)}),ke(()=>e.renderless?f.createElementVNode(f.Fragment,null,[a.default?.({itemRef:o})]):f.createElementVNode("div",f.mergeProps({ref:o,class:["v-virtual-scroll__item",e.class],style:e.style},n),[a.default?.()]))}}),pEe=-1,mEe=1,SN=100,cK=ie({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function dK(e,t){const n=pl(),r=f.shallowRef(0);f.watchEffect(()=>{r.value=parseFloat(e.itemHeight||0)});const a=f.shallowRef(0),o=f.shallowRef(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),i=f.shallowRef(0),l=f.shallowRef(0),s=f.ref(),u=f.ref();let c=0;const{resizeRef:d,contentRect:h}=Ul();f.watchEffect(()=>{d.value=s.value});const v=f.computed(()=>s.value===document.documentElement?n.height.value:h.value?.height||parseInt(e.height)||0),p=f.computed(()=>!!(s.value&&u.value&&v.value&&r.value));let m=Array.from({length:t.value.length}),g=Array.from({length:t.value.length});const y=f.shallowRef(0);let b=-1;function w(H){return m[H]||r.value}const S=U9(()=>{const H=performance.now();g[0]=0;const z=t.value.length;for(let j=1;j<=z;j++)g[j]=(g[j-1]||0)+w(j-1);y.value=Math.max(y.value,performance.now()-H)},y),_=f.watch(p,H=>{H&&(_(),c=u.value.offsetTop,S.immediate(),L(),~b&&f.nextTick(()=>{Bn&&window.requestAnimationFrame(()=>{B(b),b=-1})}))});f.onScopeDispose(()=>{S.clear()});function x(H,z){const j=m[H],U=r.value;r.value=U?Math.min(r.value,z):z,(j!==z||U!==r.value)&&(m[H]=z,S())}function T(H){H=Fn(H,0,t.value.length);const z=Math.floor(H),j=H%1,U=z+1,Y=g[z]||0,Z=g[U]||Y;return Y+(Z-Y)*j}function A(H){return gEe(g,H)}let E=0,I=0,M=0;f.watch(v,(H,z)=>{L(),H{I=0,L()})});let N=-1;function D(){if(!s.value||!u.value)return;const H=s.value.scrollTop,z=performance.now();z-M>500?(I=Math.sign(H-E),c=u.value.offsetTop):I=H-E,E=H,M=z,window.clearTimeout(N),N=window.setTimeout(P,500),L()}function P(){!s.value||!u.value||(I=0,M=0,window.clearTimeout(N),L())}let O=-1;function L(){cancelAnimationFrame(O),O=requestAnimationFrame(R)}function R(){if(!s.value||!v.value||!r.value)return;const H=E-c,z=Math.sign(I),j=Math.max(0,H-SN),U=Fn(A(j),0,t.value.length),Y=H+v.value+SN,Z=Fn(A(Y)+1,U+1,t.value.length);if((z!==pEe||Uo.value)){const te=T(a.value)-T(U),$=T(Z)-T(o.value);Math.max(te,$)>SN?(a.value=U,o.value=Z):(U<=0&&(a.value=U),Z>=t.value.length&&(o.value=Z))}i.value=T(a.value),l.value=T(t.value.length)-T(o.value)}function B(H){const z=T(H);!s.value||H&&!z?b=H:s.value.scrollTop=z}const W=f.computed(()=>t.value.slice(a.value,o.value).map((H,z)=>{const j=z+a.value;return{raw:H,index:j,key:Wr(H,e.itemKey,j)}}));return f.watch(t,()=>{m=Array.from({length:t.value.length}),g=Array.from({length:t.value.length}),S.immediate(),L()},{deep:1}),{calculateVisibleItems:L,containerRef:s,markerRef:u,computedItems:W,paddingTop:i,paddingBottom:l,scrollToIndex:B,handleScroll:D,handleScrollend:P,handleItemResize:x}}function gEe(e,t){let n=e.length-1,r=0,a=0,o=null,i=-1;if(e[n]>1,o=e[a],o>t)n=a-1;else if(o[]},renderless:Boolean,...cK(),...at(),...Ur()},"VVirtualScroll"),D_=Ce()({name:"VVirtualScroll",props:yEe(),setup(e,t){let{slots:n}=t;const r=Gr("VVirtualScroll"),{dimensionStyles:a}=Yr(e),{calculateVisibleItems:o,containerRef:i,markerRef:l,handleScroll:s,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:h,paddingBottom:v,computedItems:p}=dK(e,f.toRef(()=>e.items));return qa(()=>e.renderless,()=>{function m(){const y=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";i.value===document.documentElement?(document[y]("scroll",s,{passive:!0}),document[y]("scrollend",u)):(i.value?.[y]("scroll",s,{passive:!0}),i.value?.[y]("scrollend",u))}f.onMounted(()=>{i.value=m_(r.vnode.el,!0),m(!0)}),f.onScopeDispose(m)}),ke(()=>{const m=p.value.map(g=>f.createVNode(uK,{key:g.key,renderless:e.renderless,"onUpdate:height":y=>c(g.index,y)},{default:y=>n.default?.({item:g.raw,index:g.index,...y})}));return e.renderless?f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Re(h.value)}},null),m,f.createElementVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Re(v.value)}},null)]):f.createElementVNode("div",{ref:i,class:f.normalizeClass(["v-virtual-scroll",e.class]),onScrollPassive:s,onScrollend:u,style:f.normalizeStyle([a.value,e.style])},[f.createElementVNode("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Re(h.value),paddingBottom:Re(v.value)}},[m])])}),{calculateVisibleItems:o,scrollToIndex:d}}});function xN(e,t){const n=f.shallowRef(!1);let r;function a(l){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function o(){await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>{if(n.value){const s=f.watch(n,()=>{s(),l()})}else l()})}async function i(l){if(l.key==="Tab"&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(l.key))return;const s=e.value?.$el;if(!s)return;(l.key==="Home"||l.key==="End")&&s.scrollTo({top:l.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await o();const u=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(l.key==="PageDown"||l.key==="Home"){const c=s.getBoundingClientRect().top;for(const d of u)if(d.getBoundingClientRect().top>=c){d.focus();break}}else{const c=s.getBoundingClientRect().bottom;for(const d of[...u].reverse())if(d.getBoundingClientRect().bottom<=c){d.focus();break}}}return{onScrollPassive:a,onKeydown:i}}function CN(e){let{groups:t,onLeave:n}=e;function r(l){return l.type==="list"?l.contentRef.value?.$el:l.contentRef.value}function a(l){const s=r(l);return s?af(s):[]}function o(l){const s=l.target,u=l.shiftKey?"backward":"forward",c=t.map(a),d=t.map(v=>v.type==="list"?v.contentRef.value?.$el:v.contentRef.value).findIndex(v=>v?.contains(s)),h=i(c,d,u,s);if(h===null){const v=t[d],p=c[d];(v.type==="list"||(u==="forward"?p.at(-1)===l.target:p.at(0)===l.target))&&n()}else{l.preventDefault(),l.stopImmediatePropagation();const v=t[h];if(v.type==="list"&&f.toValue(v.displayItemsCount)>0)v.contentRef.value?.focus(0);else{const p=u==="forward";c[h].at(p?0:-1).focus()}}}function i(l,s,u,c){const d=t[s],h=l[s];if(d.type!=="list"&&!(u==="forward"?h.at(-1)===c:h.at(0)===c))return null;const v=u==="forward"?1:-1;for(let p=s+v;p>=0&&p0||m.type==="list"&&f.toValue(m.displayItemsCount)>0)return p}return null}return{onTabKeydown:o}}const bEe=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let a=e.indexOf(t);for(;~a;)r.push([a,a+t.length]),a=e.indexOf(t,a+t.length);return r.length?r:-1};function _N(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const Iv=ie({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function wEe(e,t,n){const r=[],a=n?.default??bEe,o=n?.filterKeys?jn(n.filterKeys):!1,i=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let l=[];e:for(let s=0;s0)&&!n?.noFilter){let p=!1;if(typeof u=="object"){if(u.type==="divider"||u.type==="subheader"){(l.at(-1)?.type!=="divider"||u.type!=="subheader")&&(l=[]),l.push({index:s,matches:{},type:u.type});continue}const y=o||Object.keys(c);p=y.length===i;for(const b of y){const w=Wr(c,b),S=n?.customKeyFilter?.[b];if(v=S?S(w,t,u):a(w,t,u),v!==-1&&v!==!1)S?d[b]=_N(v,t):h[b]=_N(v,t);else if(n?.filterMode==="every")continue e}}else v=a(u,t,u),v!==-1&&v!==!1&&(h.title=_N(v,t));const m=Object.keys(h).length,g=Object.keys(d).length;if(!m&&!g||n?.filterMode==="union"&&g!==i&&!m||n?.filterMode==="intersection"&&(g!==i||!m&&i>0&&!p))continue}l.length&&(r.push(...l),l=[]),r.push({index:s,matches:{...h,...d}})}return r}function Mv(e,t,n,r){const a=f.shallowRef([]),o=f.shallowRef(new Map),i=f.computed(()=>r?.transform?f.unref(t).map(s=>[s,r.transform(s)]):f.unref(t));f.watchEffect(()=>{const s=typeof n=="function"?n():f.unref(n),u=typeof s!="string"&&typeof s!="number"?"":String(s),c=wEe(i.value,u,{customKeyFilter:{...e.customKeyFilter,...f.unref(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=f.unref(t),h=[],v=new Map;c.forEach(p=>{let{index:m,matches:g}=p;const y=d[m];h.push(y),v.set(y.value,g)}),a.value=h,o.value=v});function l(s){return o.value.get(s.value)}return{filteredItems:a,filteredMatches:o,getMatches:l}}function TN(e,t,n){return n==null||!n.length?t:n.map((r,a)=>{const o=a===0?0:n[a-1][1],i=[f.createElementVNode("span",{class:f.normalizeClass(`${e}__unmask`)},[t.slice(o,r[0])]),f.createElementVNode("span",{class:f.normalizeClass(`${e}__mask`)},[t.slice(r[0],r[1])])];return a===n.length-1&&i.push(f.createElementVNode("span",{class:f.normalizeClass(`${e}__unmask`)},[t.slice(r[1])])),f.createElementVNode(f.Fragment,null,[i])})}const SEe=ie({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function kN(e,t){const n=f.useId(),r=f.computed(()=>`menu-${n}`),a=f.toRef(()=>f.toValue(t)),o=f.toRef(()=>r.value);return{menuId:r,ariaExpanded:a,ariaControls:o}}const AN=ie({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:ut,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...SEe(),...Fj({itemChildren:!1})},"Select"),xEe=ie({search:String,...Iv({filterKeys:["title"]}),...AN(),...Kt(pw({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...Bc({transition:{component:y_}})},"VSelect"),Kg=Ce()({name:"VSelect",props:xEe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0,"update:search":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),a=f.ref(),o=f.ref(),i=f.ref(),l=f.ref(),s=f.ref(),{items:u,transformIn:c,transformOut:d}=iN(e),h=ot(e,"search",""),{filteredItems:v,getMatches:p}=Mv(e,u,()=>h.value),m=ot(e,"modelValue",[],ne=>c(ne===null?[null]:jn(ne)),ne=>{const pe=d(ne);return e.multiple?pe:pe[0]??null}),g=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(m.value):typeof e.counterValue=="number"?e.counterValue:m.value.length),y=Yg(e),b=wN(e),w=f.computed(()=>m.value.map(ne=>ne.value)),S=f.shallowRef(!1),_=f.toRef(()=>e.closableChips&&!y.isReadonly.value&&!y.isDisabled.value),{InputIcon:x}=iw(e);let T="",A=0,E;const I=f.computed(()=>{const ne=h.value?v.value:u.value;return e.hideSelected?ne.filter(pe=>!m.value.some(Pe=>(e.valueComparator||Ea)(Pe,pe))):ne}),M=f.computed(()=>e.hideNoData&&!I.value.length||y.isReadonly.value||y.isDisabled.value),N=ot(e,"menu"),D=f.computed({get:()=>N.value,set:ne=>{N.value&&!ne&&o.value?.ΨopenChildren.size||ne&&M.value||(N.value=ne)}}),{menuId:P,ariaExpanded:O,ariaControls:L}=kN(e,D),R=f.computed(()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),B=f.ref(),W=xN(B,a),{onTabKeydown:H}=CN({groups:[{type:"element",contentRef:i},{type:"list",contentRef:B,displayItemsCount:()=>I.value.length},{type:"element",contentRef:l}],onLeave:()=>{D.value=!1,a.value?.focus()}});function z(ne){e.openOnClear&&(D.value=!0)}function j(){M.value||(D.value=!D.value)}function U(ne){ne.key==="Tab"&&H(ne),B.value?.$el.contains(ne.target)&&Og(ne)&&Y(ne)}function Y(ne){if(!ne.key||y.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(ne.key)&&ne.preventDefault(),["Enter","ArrowDown"," "].includes(ne.key)&&(D.value=!0),["Escape","Tab"].includes(ne.key)&&(D.value=!1),e.clearable&&ne.key==="Backspace"){ne.preventDefault(),m.value=[],z();return}ne.key==="Home"?B.value?.focus("first"):ne.key==="End"&&B.value?.focus("last");const pe=1e3;if(!Og(ne))return;const Pe=performance.now();Pe-E>pe&&(T="",A=0),T+=ne.key.toLowerCase(),E=Pe;const ze=I.value;function lt(){let oe=kt();return oe||T.at(-1)===T.at(-2)&&(T=T.slice(0,-1),A++,oe=kt(),oe)||(A=0,oe=kt(),oe)?oe:(T=ne.key.toLowerCase(),kt())}function kt(){for(let oe=A;oe1&&arguments[1]!==void 0?arguments[1]:!0;if(!ne.props.disabled)if(e.multiple){const Pe=m.value.findIndex(lt=>(e.valueComparator||Ea)(lt.value,ne.value)),ze=pe??!~Pe;if(~Pe){const lt=ze?[...m.value,ne]:[...m.value];lt.splice(Pe,1),m.value=lt}else ze&&(m.value=[...m.value,ne])}else{const Pe=pe!==!1;m.value=Pe?[ne]:[],f.nextTick(()=>{D.value=!1})}}function te(ne){const pe=ne.target;a.value?.$el.contains(pe)||(D.value=!1)}function $(){return I.value.findIndex(ne=>m.value.some(pe=>(e.valueComparator||Ea)(pe.value,ne.value)))}function ae(){if(!m.value.length)return-1;const ne=e.valueComparator||Ea;let pe=0;for(const Pe of I.value){if(m.value.some(lt=>ne(lt.value,Pe.value)))return Pe.props.disabled?-1:pe;Pe.props.disabled||pe++}return-1}function de(){if(e.eager&&s.value?.calculateVisibleItems(),B.value&&S.value){const ne=ae();B.value.focus(ne>=0?ne:"first")}}function me(){h.value="",S.value&&a.value?.focus()}function fe(ne){S.value=!0}function Ee(ne){a.value?.$el.contains(ne.relatedTarget)||(S.value=!1)}function De(ne){if(ne==null)m.value=[];else if(Lg(a.value,":autofill")||Lg(a.value,":-webkit-autofill")){const pe=u.value.find(Pe=>Pe.title===ne);pe&&Z(pe)}else a.value&&(a.value.value="")}return f.watch(D,()=>{if(!e.hideSelected&&D.value&&m.value.length){const ne=$();Bn&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{ne>=0&&s.value?.scrollToIndex(ne)})}}),f.watch(u,(ne,pe)=>{D.value||S.value&&e.hideNoData&&!pe.length&&ne.length&&(D.value=!0)}),ke(()=>{const ne=!!(e.chips||n.chip),pe=!!(!e.hideNoData||I.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Pe=m.value.length>0,ze=ta.filterProps(e),lt=Pe||!S.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder,kt={search:h,filteredItems:v.value};return f.createVNode(ta,f.mergeProps({ref:a},ze,{modelValue:m.value.map(X=>X.props.title).join(", "),name:void 0,"onUpdate:modelValue":De,focused:S.value,"onUpdate:focused":X=>S.value=X,validationValue:m.externalValue,counterValue:g.value,dirty:Pe,class:["v-select",{"v-select--active-menu":D.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":m.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:lt,"onClick:clear":z,"onMousedown:control":j,onBlur:te,onKeydown:Y,"aria-expanded":O.value,"aria-controls":L.value}),{...n,default:X=>{let{id:ee}=X;return f.createElementVNode(f.Fragment,null,[f.createElementVNode("select",{hidden:!0,multiple:e.multiple,name:b.fieldName.value},[u.value.map(ge=>f.createElementVNode("option",{key:ge.value,value:ge.value,selected:w.value.includes(ge.value)},null))]),f.createVNode(Uo,f.mergeProps({id:P.value,ref:o,modelValue:D.value,"onUpdate:modelValue":ge=>D.value=ge,activator:"parent",contentClass:"v-select__content",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:de,onAfterLeave:me},R.value),{default:()=>[f.createVNode(Yc,{onFocusin:fe,onFocusout:Ee,onKeydown:U},{default:()=>[n["menu-header"]&&f.createElementVNode("header",{ref:i},[n["menu-header"](kt)]),pe&&f.createVNode(hi,f.mergeProps({key:"select-list",ref:B,selected:w.value,selectStrategy:e.multiple?"independent":"single-independent",tabindex:"-1",selectable:!!I.value.length,"aria-live":"polite","aria-labelledby":`${ee.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},W,e.listProps),{default:()=>[n["prepend-item"]?.(),!I.value.length&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Vr,{key:"no-data",title:r(e.noDataText)},null)),f.createVNode(D_,{ref:s,renderless:!0,items:I.value,itemKey:"value"},{default:ge=>{let{item:oe,index:Oe,itemRef:je}=ge;const he=q_e(oe.props),Se=f.mergeProps(oe.props,{ref:je,key:oe.value,onClick:()=>Z(oe,null),"aria-posinset":Oe+1,"aria-setsize":I.value.length});return oe.type==="divider"?n.divider?.({props:oe.raw,index:Oe})??f.createVNode(Ia,f.mergeProps(oe.props,{key:`divider-${Oe}`}),null):oe.type==="subheader"?n.subheader?.({props:oe.raw,index:Oe})??f.createVNode(Av,f.mergeProps(oe.props,{key:`subheader-${Oe}`}),null):n.item?.({item:oe,index:Oe,props:Se})??f.createVNode(Vr,f.mergeProps(Se,{role:"option"}),{prepend:$e=>{let{isSelected:le}=$e;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Bs,{key:oe.value,modelValue:le,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:ue=>ue.preventDefault()},null):void 0,he.prependAvatar&&f.createVNode(vl,{image:he.prependAvatar},null),he.prependIcon&&f.createVNode(St,{icon:he.prependIcon},null)])},title:()=>h.value?TN("v-select",oe.title,p(oe)?.title):oe.title})}}),n["append-item"]?.()]}),n["menu-footer"]&&f.createElementVNode("footer",{ref:l},[n["menu-footer"](kt)])]})]}),m.value.map((ge,oe)=>{function Oe($e){$e.stopPropagation(),$e.preventDefault(),Z(ge,!1)}const je=f.mergeProps(ml.filterProps(ge.props),{"onClick:close":Oe,onKeydown($e){$e.key!=="Enter"&&$e.key!==" "||($e.preventDefault(),$e.stopPropagation(),Oe($e))},onMousedown($e){$e.preventDefault(),$e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),he=ne?!!n.chip:!!n.selection,Se=he?s_(ne?n.chip({item:ge,index:oe,props:je}):n.selection({item:ge,index:oe})):void 0;if(!(he&&!Se))return f.createElementVNode("div",{key:ge.value,class:"v-select__selection"},[ne?n.chip?f.createVNode(Ht,{key:"chip-defaults",defaults:{VChip:{closable:_.value,size:"small",text:ge.title}}},{default:()=>[Se]}):f.createVNode(ml,f.mergeProps({key:"chip",closable:_.value,size:"small",text:ge.title,disabled:ge.props.disabled},je),null):Se??f.createElementVNode("span",{class:"v-select__selection-text"},[ge.title,e.multiple&&oe!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),a=f.ref(),o=f.shallowRef(!1),i=f.shallowRef(!0),l=f.shallowRef(!1),s=f.ref(),u=f.ref(),c=f.shallowRef(-1),d=f.shallowRef(null),{items:h,transformIn:v,transformOut:p}=iN(e),{textColorClasses:m,textColorStyles:g}=za(()=>a.value?.color),{InputIcon:y}=iw(e),b=ot(e,"search",""),w=ot(e,"modelValue",[],X=>v(X===null?[null]:jn(X)),X=>{const ee=p(X);return e.multiple?ee:ee[0]??null}),S=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:w.value.length),_=Yg(e),{filteredItems:x,getMatches:T}=Mv(e,h,()=>d.value??(i.value?"":b.value)),A=f.computed(()=>e.hideSelected&&d.value===null?x.value.filter(X=>!w.value.some(ee=>ee.value===X.value)):x.value),E=f.toRef(()=>e.closableChips&&!_.isReadonly.value&&!_.isDisabled.value),I=f.computed(()=>!!(e.chips||n.chip)),M=f.computed(()=>I.value||!!n.selection),N=f.computed(()=>w.value.map(X=>X.props.value)),D=f.computed(()=>A.value.find(X=>X.type==="item"&&!X.props.disabled)),P=f.computed(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===D.value?.title)&&A.value.length>0&&!i.value&&!l.value),O=f.computed(()=>e.hideNoData&&!A.value.length||_.isReadonly.value||_.isDisabled.value),L=ot(e,"menu"),R=f.computed({get:()=>L.value,set:X=>{L.value&&!X&&s.value?.ΨopenChildren.size||X&&O.value||(L.value=X)}}),{menuId:B,ariaExpanded:W,ariaControls:H}=kN(e,R),z=f.ref(),j=f.ref(),U=f.ref(),Y=xN(z,a),{onTabKeydown:Z}=CN({groups:[{type:"element",contentRef:j},{type:"list",contentRef:z,displayItemsCount:()=>A.value.length},{type:"element",contentRef:U}],onLeave:()=>{R.value=!1,a.value?.focus()}});function te(X){e.openOnClear&&(R.value=!0),b.value=""}function $(){O.value||(R.value=!0)}function ae(X){O.value||(o.value&&(X.preventDefault(),X.stopPropagation()),R.value=!R.value)}function de(X){X.key==="Tab"&&Z(X),z.value?.$el.contains(X.target)&&(Og(X)||X.key==="Backspace")&&a.value?.focus()}function me(X){if(_.isReadonly.value)return;const ee=a.value?.selectionStart,ge=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(X.key)&&X.preventDefault(),["Enter","ArrowDown"].includes(X.key)&&(R.value=!0),["Escape"].includes(X.key)&&(R.value=!1),P.value&&["Enter","Tab"].includes(X.key)&&D.value&&!w.value.some(oe=>{let{value:Oe}=oe;return Oe===D.value.value})&&kt(D.value),X.key==="ArrowDown"&&P.value&&z.value?.focus("next"),["Backspace","Delete"].includes(X.key)){if(!e.multiple&&M.value&&w.value.length>0&&!b.value)return kt(w.value[0],!1);if(~c.value){X.preventDefault();const oe=c.value;kt(w.value[c.value],!1),c.value=oe>=ge-1?ge-2:oe}else X.key==="Backspace"&&!b.value&&(c.value=ge-1);return}if(e.multiple)if(X.key==="ArrowLeft"){if(c.value<0&&ee&&ee>0)return;const oe=c.value>-1?c.value-1:ge-1;if(w.value[oe])c.value=oe;else{const Oe=b.value?.length??null;c.value=-1,a.value?.setSelectionRange(Oe,Oe)}}else if(X.key==="ArrowRight"){if(c.value<0)return;const oe=c.value+1;w.value[oe]?c.value=oe:(c.value=-1,a.value?.setSelectionRange(0,0))}else~c.value&&Og(X)&&(c.value=-1)}function fe(X){if(Lg(a.value,":autofill")||Lg(a.value,":-webkit-autofill")){const ee=h.value.find(ge=>ge.title===X.target.value);ee&&kt(ee)}}function Ee(){e.eager&&u.value?.calculateVisibleItems()}function De(){o.value&&(i.value=!0,a.value?.focus()),d.value=null}function ne(X){o.value=!0,setTimeout(()=>{l.value=!0})}function pe(X){l.value=!1,a.value?.$el.contains(X.relatedTarget)||(o.value=!1)}function Pe(X){(X==null||X===""&&!e.multiple&&!M.value)&&(w.value=[])}function ze(X){s.value?.contentEl?.contains(X.relatedTarget)&&(o.value=!0)}const lt=f.shallowRef(!1);function kt(X){let ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!X||X.props.disabled))if(e.multiple){const ge=w.value.findIndex(Oe=>(e.valueComparator||Ea)(Oe.value,X.value)),oe=ee??!~ge;if(~ge){const Oe=oe?[...w.value,X]:[...w.value];Oe.splice(ge,1),w.value=Oe}else oe&&(w.value=[...w.value,X]);e.clearOnSelect&&(b.value="")}else{const ge=ee!==!1;w.value=ge?[X]:[],d.value=i.value?"":b.value??"",b.value=ge&&!M.value?X.title:"",f.nextTick(()=>{R.value=!1,i.value=!0})}}return f.watch(o,(X,ee)=>{X!==ee&&(X?(lt.value=!0,b.value=e.multiple||M.value?"":String(w.value.at(-1)?.props.title??""),i.value=!0,f.nextTick(()=>lt.value=!1)):(!e.multiple&&b.value==null&&(w.value=[]),R.value=!1,!i.value&&b.value&&(d.value=b.value),b.value="",c.value=-1))}),f.watch(b,X=>{!o.value||lt.value||(X&&(R.value=!0),i.value=!X)}),f.watch(R,X=>{if(!e.hideSelected&&X&&w.value.length&&i.value){const ee=A.value.findIndex(ge=>w.value.some(oe=>ge.value===oe.value));Bn&&window.requestAnimationFrame(()=>{ee>=0&&u.value?.scrollToIndex(ee)})}X&&(d.value=null)}),f.watch(h,(X,ee)=>{R.value||o.value&&!ee.length&&X.length&&(R.value=!0)}),ke(()=>{const X=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),ee=w.value.length>0,ge=ta.filterProps(e),oe={search:b,filteredItems:x.value};return f.createVNode(ta,f.mergeProps({ref:a},ge,{modelValue:b.value,"onUpdate:modelValue":[Oe=>b.value=Oe,Pe],focused:o.value,"onUpdate:focused":Oe=>o.value=Oe,validationValue:w.externalValue,counterValue:S.value,dirty:ee,onChange:fe,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":R.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!M.value,"v-autocomplete--selecting-index":c.value>-1},e.class],style:e.style,readonly:_.isReadonly.value,placeholder:ee?void 0:e.placeholder,"onClick:clear":te,"onMousedown:control":$,onKeydown:me,onBlur:ze,"aria-expanded":W.value,"aria-controls":H.value}),{...n,default:Oe=>{let{id:je}=Oe;return f.createElementVNode(f.Fragment,null,[f.createVNode(Uo,f.mergeProps({id:B.value,ref:s,modelValue:R.value,"onUpdate:modelValue":he=>R.value=he,activator:"parent",contentClass:"v-autocomplete__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:Ee,onAfterLeave:De},e.menuProps),{default:()=>[f.createVNode(Yc,{onFocusin:ne,onKeydown:de},{default:()=>[n["menu-header"]&&f.createElementVNode("header",{ref:j},[n["menu-header"](oe)]),X&&f.createVNode(hi,f.mergeProps({key:"autocomplete-list",ref:z,filterable:!0,selected:N.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:he=>he.preventDefault(),onFocusout:pe,tabindex:"-1",selectable:!!A.value.length,"aria-live":"polite","aria-labelledby":`${je.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},Y,e.listProps),{default:()=>[n["prepend-item"]?.(),!A.value.length&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Vr,{key:"no-data",title:r(e.noDataText)},null)),f.createVNode(D_,{ref:u,renderless:!0,items:A.value,itemKey:"value"},{default:he=>{let{item:Se,index:$e,itemRef:le}=he;const ue=f.mergeProps(Se.props,{ref:le,key:Se.value,active:P.value&&Se===D.value?!0:void 0,onClick:()=>kt(Se,null),"aria-posinset":$e+1,"aria-setsize":A.value.length});return Se.type==="divider"?n.divider?.({props:Se.raw,index:$e})??f.createVNode(Ia,f.mergeProps(Se.props,{key:`divider-${$e}`}),null):Se.type==="subheader"?n.subheader?.({props:Se.raw,index:$e})??f.createVNode(Av,f.mergeProps(Se.props,{key:`subheader-${$e}`}),null):n.item?.({item:Se,index:$e,props:ue})??f.createVNode(Vr,f.mergeProps(ue,{role:"option"}),{prepend:xe=>{let{isSelected:Ve}=xe;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Bs,{key:Se.value,modelValue:Ve,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:et=>et.preventDefault()},null):void 0,Se.props.prependAvatar&&f.createVNode(vl,{image:Se.props.prependAvatar},null),Se.props.prependIcon&&f.createVNode(St,{icon:Se.props.prependIcon},null)])},title:()=>i.value?Se.title:TN("v-autocomplete",Se.title,T(Se)?.title)})}}),n["append-item"]?.()]}),n["menu-footer"]&&f.createElementVNode("footer",{ref:U},[n["menu-footer"](oe)])]})]}),w.value.map((he,Se)=>{function $e(Ve){Ve.stopPropagation(),Ve.preventDefault(),kt(he,!1)}const le=f.mergeProps(ml.filterProps(he.props),{"onClick:close":$e,onKeydown(Ve){Ve.key!=="Enter"&&Ve.key!==" "||(Ve.preventDefault(),Ve.stopPropagation(),$e(Ve))},onMousedown(Ve){Ve.preventDefault(),Ve.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),ue=I.value?!!n.chip:!!n.selection,xe=ue?s_(I.value?n.chip({item:he,index:Se,props:le}):n.selection({item:he,index:Se})):void 0;if(!(ue&&!xe))return f.createElementVNode("div",{key:he.value,class:f.normalizeClass(["v-autocomplete__selection",Se===c.value&&["v-autocomplete__selection--selected",m.value]]),style:f.normalizeStyle(Se===c.value?g.value:{})},[I.value?n.chip?f.createVNode(Ht,{key:"chip-defaults",defaults:{VChip:{closable:E.value,size:"small",text:he.title}}},{default:()=>[xe]}):f.createVNode(ml,f.mergeProps({key:"chip",closable:E.value,size:"small",text:he.title,disabled:he.props.disabled},le),null):xe??f.createElementVNode("span",{class:"v-autocomplete__selection-text"},[he.title,e.multiple&&See.color),{roundedClasses:a}=ur(e),{t:o}=An(),{textColorClasses:i,textColorStyles:l}=za(()=>e.textColor),{themeClasses:s}=wv(),{locationStyles:u}=lf(e,!0,d=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(d)?Number(e.offsetY??0):["left","right"].includes(d)?Number(e.offsetX??0):0)),{dimensionStyles:c}=Yr(e);return ke(()=>{const d=Number(e.content),h=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:`${e.max}+`,[v,p]=fP(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return f.createVNode(e.tag,f.mergeProps({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},p,{style:e.style}),{default:()=>[f.createElementVNode("div",{class:"v-badge__wrapper"},[t.slots.default?.(),f.createVNode(Wo,{transition:e.transition},{default:()=>[f.withDirectives(f.createElementVNode("span",f.mergeProps({class:["v-badge__badge",s.value,n.value,a.value,i.value],style:[r.value,l.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":o(e.label,d),"aria-live":"polite",role:"status"},v),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?f.createVNode(St,{icon:e.icon},null):h]),[[f.vShow,e.modelValue]])]})])]})}),{}}}),TEe=ie({color:String,density:String,...at()},"VBannerActions"),hK=Ce()({name:"VBannerActions",props:TEe(),setup(e,t){let{slots:n}=t;return Cr({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-banner-actions",e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),vK=Rc("v-banner-text"),kEe=ie({avatar:String,bgColor:String,color:String,icon:ut,lines:String,stacked:Boolean,sticky:Boolean,text:String,...wo(),...at(),..._r(),...Ur(),...Tv({mobile:null}),...jr(),..._u(),...Wg(),...qn(),...Ft(),...pn()},"VBanner"),AEe=Ce()({name:"VBanner",props:kEe(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.bgColor),{borderClasses:o}=Go(e),{densityClasses:i}=$a(e),{displayClasses:l,mobile:s}=pl(e),{dimensionStyles:u}=Yr(e),{elevationClasses:c}=va(e),{locationStyles:d}=lf(e),{positionClasses:h}=Gg(e),{roundedClasses:v}=ur(e),{themeClasses:p}=In(e),m=f.toRef(()=>e.color),g=f.toRef(()=>e.density);Cr({VBannerActions:{color:m,density:g}}),ke(()=>{const y=!!(e.text||n.text),b=!!(e.avatar||e.icon),w=!!(b||n.prepend);return f.createVNode(e.tag,{class:f.normalizeClass(["v-banner",{"v-banner--stacked":e.stacked||s.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},p.value,r.value,o.value,i.value,l.value,c.value,h.value,v.value,e.class]),style:f.normalizeStyle([a.value,u.value,d.value,e.style]),role:"banner"},{default:()=>[w&&f.createElementVNode("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!b,defaults:{VAvatar:{color:m.value,density:g.value,icon:e.icon,image:e.avatar}}},n.prepend):f.createVNode(vl,{key:"prepend-avatar",color:m.value,density:g.value,icon:e.icon,image:e.avatar},null)]),f.createElementVNode("div",{class:"v-banner__content"},[y&&f.createVNode(vK,{key:"text"},{default:()=>[n.text?.()??e.text]}),n.default?.()]),n.actions&&f.createVNode(hK,{key:"actions"},n.actions)]})})}}),EEe=ie({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...wo(),...at(),..._r(),...jr(),...qn(),...gv({name:"bottom-navigation"}),...Ft({tag:"header"}),...xv({selectedClass:"v-btn--selected"}),...pn()},"VBottomNavigation"),IEe=Ce()({name:"VBottomNavigation",props:EEe(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=wv(),{borderClasses:a}=Go(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.bgColor),{densityClasses:l}=$a(e),{elevationClasses:s}=va(e),{roundedClasses:u}=ur(e),{ssrBootStyles:c}=Sv(),d=f.computed(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),h=ot(e,"active",e.active),{layoutItemStyles:v}=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>"bottom"),layoutSize:f.toRef(()=>h.value?d.value:0),elementSize:d,active:h,absolute:f.toRef(()=>e.absolute)});return uf(e,HP),Cr({VBtn:{baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),density:f.toRef(()=>e.density),stacked:f.toRef(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-bottom-navigation",{"v-bottom-navigation--active":h.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,o.value,a.value,l.value,s.value,u.value,e.class]),style:f.normalizeStyle([i.value,v.value,{height:Re(d.value)},c.value,e.style])},{default:()=>[n.default&&f.createElementVNode("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),pK=ie({fullscreen:Boolean,scrollable:Boolean,...Kt(fw({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:y_},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),ku=Ce()({name:"VDialog",props:pK(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),{scopeId:o}=Ev(),i=f.ref();function l(){n("afterEnter"),(e.scrim||e.retainFocus)&&i.value?.contentEl&&!i.value.contentEl.contains(document.activeElement)&&i.value.contentEl.focus({preventScroll:!0})}function s(){n("afterLeave")}return f.watch(a,async u=>{u||(await f.nextTick(),i.value.activatorEl?.focus({preventScroll:!0}))}),ke(()=>{const u=Ri.filterProps(e),c=f.mergeProps({"aria-haspopup":"dialog"},e.activatorProps),d=f.mergeProps({tabindex:-1},e.contentProps);return f.createVNode(Ri,f.mergeProps({ref:i,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,"aria-modal":"true",activatorProps:c,contentProps:d,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:l,onAfterLeave:s},o),{activator:r.activator,default:function(){for(var h=arguments.length,v=new Array(h),p=0;p[r.default?.(...v)]})}})}),pa({},i)}}),MEe=ie({inset:Boolean,...pK({transition:"bottom-sheet-transition"})},"VBottomSheet"),DEe=Ce()({name:"VBottomSheet",props:MEe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue");return ke(()=>{const a=ku.filterProps(e);return f.createVNode(ku,f.mergeProps(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":o=>r.value=o,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),VEe=ie({divider:[Number,String],...at()},"VBreadcrumbsDivider"),mK=Ce()({name:"VBreadcrumbsDivider",props:VEe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createElementVNode("li",{"aria-hidden":"true",class:f.normalizeClass(["v-breadcrumbs-divider",e.class]),style:f.normalizeStyle(e.style)},[n?.default?.()??e.divider])),{}}}),PEe=ie({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...at(),...fi(Ur(),["width","maxWidth"]),...rw(),...Ft({tag:"li"})},"VBreadcrumbsItem"),gK=Ce()({name:"VBreadcrumbsItem",props:PEe(),setup(e,t){let{slots:n,attrs:r}=t;const a=nw(e,r),o=f.computed(()=>e.active||a.isActive?.value),{dimensionStyles:i}=Yr(e),{textColorClasses:l,textColorStyles:s}=za(()=>o.value?e.activeColor:e.color);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-breadcrumbs-item",{"v-breadcrumbs-item--active":o.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:o.value&&e.activeClass},l.value,e.class]),style:f.normalizeStyle([s.value,i.value,e.style]),"aria-current":o.value?"page":void 0},{default:()=>[a.isLink.value?f.createElementVNode("a",f.mergeProps({class:"v-breadcrumbs-item--link",onClick:a.navigate.value},a.linkProps),[n.default?.()??e.title]):n.default?.()??e.title]})),{}}}),NEe=ie({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:ut,items:{type:Array,default:()=>[]},...at(),..._r(),...qn(),...Ft({tag:"ul"})},"VBreadcrumbs"),yK=Ce()({name:"VBreadcrumbs",props:NEe(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.bgColor),{densityClasses:o}=$a(e),{roundedClasses:i}=ur(e);Cr({VBreadcrumbsDivider:{divider:f.toRef(()=>e.divider)},VBreadcrumbsItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:f.toRef(()=>e.activeColor),color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled)}});const l=f.computed(()=>e.items.map(s=>typeof s=="string"?{item:{title:s},raw:s}:{item:s,raw:s}));return ke(()=>{const s=!!(n.prepend||e.icon);return f.createVNode(e.tag,{class:f.normalizeClass(["v-breadcrumbs",r.value,o.value,i.value,e.class]),style:f.normalizeStyle([a.value,e.style])},{default:()=>[s&&f.createElementVNode("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):f.createVNode(St,{key:"prepend-icon",start:!0,icon:e.icon},null)]),l.value.map((u,c,d)=>{let{item:h,raw:v}=u;return f.createElementVNode(f.Fragment,null,[n.item?.({item:h,index:c})??f.createVNode(gK,f.mergeProps({key:c,disabled:c>=d.length-1},typeof h=="string"?{title:h}:h),{default:n.title?()=>n.title?.({item:h,index:c}):void 0}),cn.divider?.({item:v,index:c}):void 0})])}),n.default?.()]})}),{}}}),LEe=ie({active:{type:Boolean,default:void 0},activeColor:String,activeIcon:[String,Function,Object],activeVariant:String,baseVariant:{type:String,default:"tonal"},disabled:Boolean,height:[Number,String],width:[Number,String],hideOverlay:Boolean,icon:[String,Function,Object],iconColor:String,loading:Boolean,opacity:[Number,String],readonly:Boolean,rotate:[Number,String],size:{type:[Number,String],default:"default"},sizes:{type:Array,default:()=>[["x-small",16],["small",24],["default",40],["large",48],["x-large",56]]},text:{type:[String,Number,Boolean],default:void 0},...wo(),...at(),...jr(),...sj(),...qn(),...Ft({tag:"button"}),...pn(),...fl({variant:"flat"})},"VIconBtn"),bK=Ce()({name:"VIconBtn",props:LEe(),emits:{"update:active":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"active"),{themeClasses:o}=In(e),{borderClasses:i}=Go(e),{elevationClasses:l}=va(e),{roundedClasses:s}=ur(e),{colorClasses:u,colorStyles:c,variantClasses:d}=Wc(()=>({color:(()=>{if(!e.disabled)return a.value?e.activeColor??e.color??"surface-variant":e.color})(),variant:a.value===void 0?e.variant:a.value?e.activeVariant??e.variant:e.baseVariant??e.variant})),h=new Map(e.sizes);function v(){e.disabled||e.readonly||a.value===void 0||e.tag==="a"&&n.href||(a.value=!a.value)}return ke(()=>{const p=a.value?e.activeIcon??e.icon:e.icon,m=e.size,y=h.has(m)?h.get(m):m,b=e.height??y,w=e.width??y,{iconSize:S}=uj(e,()=>new Map(e.iconSizes).get(m)),_={icon:p,size:S.value,color:e.iconColor,opacity:e.opacity};return f.createVNode(e.tag,{type:e.tag==="button"?"button":void 0,class:f.normalizeClass([{"v-icon-btn":!0,"v-icon-btn--active":a.value,"v-icon-btn--disabled":e.disabled,"v-icon-btn--loading":e.loading,"v-icon-btn--readonly":e.readonly,[`v-icon-btn--${e.size}`]:!0},o.value,u.value,i.value,l.value,s.value,d.value,e.class]),style:f.normalizeStyle([{"--v-icon-btn-rotate":Re(e.rotate,"deg"),"--v-icon-btn-height":Re(b),"--v-icon-btn-width":Re(w)},c.value,e.style]),tabindex:e.disabled||e.readonly?-1:0,onClick:v},{default:()=>[zc(!e.hideOverlay,"v-icon-btn"),f.createElementVNode("div",{class:"v-icon-btn__content","data-no-activator":""},[!r.default&&p?f.createVNode(St,f.mergeProps({key:"content-icon"},_),null):f.createVNode(Ht,{key:"content-defaults",disabled:!p,defaults:{VIcon:{..._}}},{default:()=>r.default?.()??f.toDisplayString(e.text)})]),!!e.loading&&f.createElementVNode("span",{key:"loader",class:"v-icon-btn__loader"},[r.loader?.()??f.createVNode(cf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:"disable-shrink",width:"2",size:S.value},null)])]})}),{}}});function OEe(e){return e%4===0&&e%100!==0||e%400===0}const wK=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,SK=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,REe=[0,31,28,31,30,31,30,31,31,30,31,30,31],BEe=[0,31,29,31,30,31,30,31,31,30,31,30,31],FEe=28,HEe=31,EN=12,xK=1,V_=1,vf=7,CK=60,zEe=59,WEe=24*60,GEe=24,UEe=23,YEe=0,jEe=1e4,KEe=100,XEe=100,ZEe=1e4;function JEe(e,t,n){const r=Bi(e);return VK(r,t[0],DK),Hs(r),n&&Dv(r,n,r.hasTime),r}function QEe(e,t,n){const r=Bi(e);return VK(r,t[t.length-1]),Hs(r),n&&Dv(r,n,r.hasTime),r}function _K(e){const t=Bi(e);return t.day=V_,P_(t),Hs(t),t}function TK(e){const t=Bi(e);return t.day=DN(t.year,t.month),P_(t),Hs(t),t}function Xg(e){return isFinite(parseInt(e))}function qEe(e){return typeof e=="number"&&isFinite(e)||!!SK.exec(e)||typeof e=="object"&&isFinite(e.hour)&&isFinite(e.minute)}function kK(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=SK.exec(e);return t?parseInt(t[1])*60+parseInt(t[3]||0):!1}else return typeof e=="object"?typeof e.hour!="number"||typeof e.minute!="number"?!1:e.hour*60+e.minute:!1}function Zg(e){return typeof e=="number"&&isFinite(e)||typeof e=="string"&&!!wK.exec(e)||e instanceof Date}function jc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;if(typeof e=="number"&&isFinite(e)&&(e=new Date(e)),e instanceof Date){const o=IN(e);return n&&Dv(o,n,o.hasTime),o}if(typeof e!="string"){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const r=wK.exec(e);if(!r){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const a={date:e,time:"",year:parseInt(r[1]),month:parseInt(r[2]),day:parseInt(r[4])||1,hour:parseInt(r[6])||0,minute:parseInt(r[8])||0,weekday:0,hasDay:!!r[4],hasTime:!!(r[6]&&r[8]),past:!1,present:!1,future:!1};return P_(a),Hs(a),n&&Dv(a,n,a.hasTime),a}function IN(e){return Hs({date:"",time:"",year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),weekday:e.getDay(),hour:e.getHours(),minute:e.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function ma(e){return e.year*jEe+e.month*KEe+e.day}function MN(e){return e.hour*XEe+e.minute}function pf(e){return ma(e)*ZEe+MN(e)}function Dv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ma(t),a=ma(e),o=r===a;return e.hasTime&&n&&o&&(r=MN(t),a=MN(e),o=r===a),e.past=ar,e}function AK(e){return e instanceof Date||typeof e=="number"&&isFinite(e)}function EK(e,t,n){return e.hasTime!==t&&(e.hasTime=t,t||(e.hour=UEe,e.minute=zEe,e.time=MK(e))),e}function IK(e,t,n){return e.hasTime=!0,e.hour=0,e.minute=0,VN(e,t),Hs(e),n&&Dv(e,n,!0),e}function P_(e){return e.weekday=$Ee(e),e}function Hs(e){return e.time=MK(e),e.date=eIe(e),e}function $Ee(e){if(e.hasDay){const t=Math.floor,n=e.day,r=(e.month+9)%EN+1,a=t(e.year/100),o=e.year%100-(e.month<=2?1:0);return((n+t(2.6*r-.2)-2*a+o+t(o/4)+t(a/4))%7+7)%7}return e.weekday}function DN(e,t){return OEe(e)?BEe[t]:REe[t]}function Bi(e){if(e==null)return null;const{date:t,time:n,year:r,month:a,day:o,weekday:i,hour:l,minute:s,hasDay:u,hasTime:c,past:d,present:h,future:v}=e;return{date:t,time:n,year:r,month:a,day:o,weekday:i,hour:l,minute:s,hasDay:u,hasTime:c,past:d,present:h,future:v}}function Vv(e,t){let n=String(e);for(;n.length=CK;)e.minute-=CK,e.hour++,e.hour>=GEe&&(mf(e),e.hour=YEe);return e}function mf(e){return e.day++,e.weekday=(e.weekday+1)%vf,e.day>FEe&&e.day>DN(e.year,e.month)&&(e.day=V_,e.month++,e.month>EN&&(e.month=xK,e.year++)),e}function DK(e){return e.day--,e.weekday=(e.weekday+6)%vf,e.day1&&arguments[1]!==void 0?arguments[1]:mf,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;for(;--n>=0;)t(e);return e}function tIe(e,t){const n=(t.year-e.year)*525600,r=(t.month-e.month)*43800,a=(t.day-e.day)*1440,o=(t.hour-e.hour)*60,i=t.minute-e.minute;return n+r+a+o+i}function VK(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mf,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:6;for(;e.weekday!==t&&--r>=0;)n(e);return e}function nIe(e){const t=[1,1,1,1,1,1,1],n=[0,0,0,0,0,0,0];for(let r=0;r4&&arguments[4]!==void 0?arguments[4]:42,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;const i=ma(t),l=[];let s=Bi(e),u=0,c=u===i;if(i"";return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?n:(r,a)=>{try{return new Intl.DateTimeFormat(e||void 0,t(r,a)).format(PN(r))}catch{return""}}}function aIe(e){if(typeof e=="string"&&(e=e.split(",")),Array.isArray(e)){const t=e.map(a=>parseInt(a));if(t.length>vf||t.length===0)return!1;const n={};let r=!1;for(let a=0;a=vf)return!1;if(a>0){const i=o-t[a-1];if(i<0){if(r)return!1;r=!0}else if(i===0)return!1}if(n[o])return!1;n[o]=!0}return!0}return!1}function oIe(e){const t=f.reactive({now:jc("0000-00-00 00:00",!0),today:jc("0000-00-00",!0)}),n=f.computed(()=>e.now&&Zg(e.now)?jc(e.now,!0):null);function r(){t.now.present=t.today.present=!0,t.now.past=t.today.past=!1,t.now.future=t.today.future=!1}function a(){return IN(new Date)}function o(s,u){s.date!==u.date&&(u.year=s.year,u.month=s.month,u.day=s.day,u.weekday=s.weekday,u.date=s.date)}function i(s,u){s.time!==u.time&&(u.hour=s.hour,u.minute=s.minute,u.time=s.time)}function l(){const s=n.value||a();o(s,t.now),i(s,t.now),o(s,t.today)}return f.watch(n,l),l(),r(),{times:t,parsedNow:n,updateTimes:l,setPresent:r,getNow:a,updateDay:o,updateTime:i}}function gw(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 + ${I}`);return}else y.add(_);x&&_!==x&&l.value.set(_,x),T&&s.value.add(_),A&&i.value.set(_,[]),x!=null&&i.value.set(x,[...i.value.get(x)||[],_]),b()},unregister:_=>{if(o)return;y.delete(_),i.value.delete(_),s.value.delete(_);const x=l.value.get(_);if(x){const T=i.value.get(x)??[];i.value.set(x,T.filter(A=>A!==_))}l.value.delete(_),b()},updateDisabled:(_,x)=>{x?s.value.add(_):s.value.delete(_)},open:(_,x,T)=>{g.emit("click:open",{id:_,value:x,path:m(_),event:T});const A=h.value.open({id:_,value:x,opened:new Set(u.value),children:i.value,parents:l.value,event:T});A&&(u.value=A)},openOnSelect:(_,x,T)=>{const A=h.value.select({id:_,value:x,selected:new Map(p.value),opened:new Set(u.value),children:i.value,parents:l.value,event:T});A&&(u.value=A)},select:(_,x,T)=>{g.emit("click:select",{id:_,value:x,path:m(_),event:T});const A=d.value.select({id:_,value:x,selected:new Map(p.value),children:i.value,parents:l.value,disabled:s.value,event:T});A&&(p.value=A),S.root.openOnSelect(_,x,T)},activate:(_,x,T)=>{if(!e.activatable)return S.root.select(_,!0,T);g.emit("click:activate",{id:_,value:x,path:m(_),event:T});const A=c.value.activate({id:_,value:x,activated:new Set(v.value),children:i.value,parents:l.value,event:T});if(A.size!==v.value.size)v.value=A;else{for(const E of A)if(!v.value.has(E)){v.value=A;return}for(const E of v.value)if(!A.has(E)){v.value=A;return}}},children:i,parents:l,disabled:s,getPath:m}};return f.provide(Zg,S),S.root},Oj=(e,t,n)=>{const r=f.inject(Zg,Lj),a=Symbol("nested item"),o=f.computed(()=>{const l=f.toRaw(f.toValue(e));return l!==void 0?l:a}),i={...r,id:o,open:(l,s)=>r.root.open(o.value,l,s),openOnSelect:(l,s)=>r.root.openOnSelect(o.value,l,s),isOpen:f.computed(()=>r.root.opened.value.has(o.value)),parent:f.computed(()=>r.root.parents.value.get(o.value)),activate:(l,s)=>r.root.activate(o.value,l,s),isActivated:f.computed(()=>r.root.activated.value.has(o.value)),scrollToActive:r.root.scrollToActive,select:(l,s)=>r.root.select(o.value,l,s),isSelected:f.computed(()=>r.root.selected.value.get(o.value)==="on"),isIndeterminate:f.computed(()=>r.root.selected.value.get(o.value)==="indeterminate"),isLeaf:f.computed(()=>!r.root.children.value.get(o.value)),isGroupActivator:r.isGroupActivator};return f.onBeforeMount(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||f.nextTick(()=>{r.root.register(o.value,r.id.value,f.toValue(t),n)})}),f.onBeforeUnmount(()=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||r.root.unregister(o.value)}),f.watch(o,(l,s)=>{r.isGroupActivator||r.root.itemsRegistration.value==="props"||(r.root.unregister(s),f.nextTick(()=>{r.root.register(l,r.id.value,f.toValue(t),n)}))}),f.watch(()=>f.toValue(t),l=>{r.root.updateDisabled(o.value,l)}),n&&f.provide(Zg,i),i},PAe=()=>{const e=f.inject(Zg,Lj);f.provide(Zg,{...e,isGroupActivator:!0})},NAe=zo({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return PAe(),()=>n.default?.()}}),Rj=ie({activeColor:String,baseColor:String,color:String,collapseIcon:{type:st,default:"$collapse"},disabled:Boolean,expandIcon:{type:st,default:"$expand"},rawId:[String,Number],prependIcon:st,appendIcon:st,fluid:Boolean,subgroup:Boolean,title:String,value:null,...nt(),...Ht()},"VListGroup"),dw=Te()({name:"VListGroup",props:Rj(),setup(e,t){let{slots:n}=t;const{isOpen:r,open:a,id:o}=Oj(()=>e.value,()=>e.disabled,!0),i=f.computed(()=>`v-list-group--id-${String(e.rawId??o.value)}`),l=Dj(),{isBooted:s}=wv(),u=f.inject(Zg),c=f.toRef(()=>u?.root?.itemsRegistration.value==="render");function d(m){["INPUT","TEXTAREA"].includes(m.target?.tagName)||a(!r.value,m)}const h=f.computed(()=>({onClick:d,class:"v-list-group__header",id:i.value})),v=f.computed(()=>r.value?e.collapseIcon:e.expandIcon),p=f.computed(()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&v.value,appendIcon:e.appendIcon||!e.subgroup&&v.value,title:e.title,value:e.value}}));return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-group",{"v-list-group--prepend":l?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.activator&&f.createVNode(zt,{defaults:p.value},{default:()=>[f.createVNode(NAe,null,{default:()=>[n.activator({props:h.value,isOpen:r.value})]})]}),f.createVNode(Wo,{transition:{component:y_},disabled:!s.value},{default:()=>[c.value?f.withDirectives(f.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":i.value},[n.default?.()]),[[f.vShow,r.value]]):r.value&&f.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":i.value},[n.default?.()])]})]})),{isOpen:r}}}),LAe=ie({opacity:[Number,String],...nt(),...Ht()},"VListItemSubtitle"),Bj=Te()({name:"VListItemSubtitle",props:LAe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-subtitle",e.class]),style:f.normalizeStyle([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n)),{}}}),Tv=Oc("v-list-item-title"),Fj=ie({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:st,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:st,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,index:Number,tabindex:[Number,String],onClick:Qa(),onClickOnce:Qa(),...xo(),...nt(),...Tr(),...Yr(),...Kr(),...$n(),...aw(),...Ht(),...pn(),...dl({variant:"text"})},"VListItem"),Pr=Te()({name:"VListItem",directives:{vRipple:eo},props:Fj(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const o=rw(e,n),i=f.ref(),l=f.computed(()=>e.value===void 0?o.href.value:e.value),{activate:s,isActivated:u,select:c,isOpen:d,isSelected:h,isIndeterminate:v,isGroupActivator:p,root:m,parent:g,openOnSelect:y,scrollToActive:b,id:w}=Oj(l,()=>e.disabled,!1),S=Dj(),_=f.computed(()=>e.active!==!1&&(e.active||o.isActive?.value||(m.activatable.value?u.value:h.value))),x=f.toRef(()=>e.link!==!1&&o.isLink.value),T=f.computed(()=>!!S&&(m.selectable.value||m.activatable.value||e.value!=null)),A=f.computed(()=>!e.disabled&&e.link!==!1&&(e.link||o.isClickable.value||T.value)),E=f.computed(()=>S&&S.navigationStrategy.value==="track"&&e.index!==void 0&&S.trackingIndex.value===e.index),I=f.computed(()=>S?x.value?"link":T.value?"option":"listitem":void 0),M=f.computed(()=>{if(T.value)return m.activatable.value?u.value:m.selectable.value?h.value:_.value}),N=f.toRef(()=>e.rounded||e.nav),D=f.toRef(()=>e.color??e.activeColor),P=f.toRef(()=>({color:_.value?D.value??e.baseColor:e.baseColor,variant:e.variant}));f.watch(()=>o.isActive?.value,ve=>{ve&&O()}),f.watch(u,ve=>{!ve||!b||i.value?.scrollIntoView({block:"nearest",behavior:"instant"})}),f.watch(E,ve=>{ve&&i.value?.scrollIntoView({block:"nearest",behavior:"instant"})}),f.onBeforeMount(()=>{o.isActive?.value&&f.nextTick(()=>O())});function O(){g.value!=null&&m.open(g.value,!0),y(!0)}const{themeClasses:L}=In(e),{borderClasses:R}=Go(e),{colorClasses:B,colorStyles:z,variantClasses:H}=zc(P),{densityClasses:G}=$a(e),{dimensionStyles:j}=jr(e),{elevationClasses:U}=pa(e),{roundedClasses:Y}=cr(N),Z=f.toRef(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),ne=f.toRef(()=>e.ripple!==void 0&&e.ripple&&S?.filterable?{keys:["Enter"]}:e.ripple),$=f.computed(()=>({isActive:_.value,select:c,isOpen:d.value,isSelected:h.value,isIndeterminate:v.value,isDisabled:e.disabled}));function ae(ve){a("click",ve),!["INPUT","TEXTAREA"].includes(ve.target?.tagName)&&A.value&&(o.navigate.value?.(ve),!p&&(m.activatable.value?s(!u.value,ve):(m.selectable.value||e.value!=null&&!x.value)&&c(!h.value,ve)))}function de(ve){const ge=ve.target;["INPUT","TEXTAREA"].includes(ge.tagName)||(ve.key==="Enter"||ve.key===" "&&!S?.filterable)&&(ve.preventDefault(),ve.stopPropagation(),ve.target.dispatchEvent(new MouseEvent("click",ve)))}return Ae(()=>{const ve=x.value?"a":e.tag,ge=r.title||e.title!=null,Se=r.subtitle||e.subtitle!=null,ee=!!(!!(e.appendAvatar||e.appendIcon)||r.append),Ie=!!(!!(e.prependAvatar||e.prependIcon)||r.prepend);return S?.updateHasPrepend(Ie),e.activeColor&&B9("active-color",["color","base-color"]),f.withDirectives(f.createVNode(ve,f.mergeProps(o.linkProps,{ref:i,id:e.index!==void 0&&S?`v-list-item-${S.uid}-${e.index}`:void 0,class:["v-list-item",{"v-list-item--active":_.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!Ie&&S?.hasPrepend.value,"v-list-item--slim":e.slim,"v-list-item--focus-visible":E.value,[`${e.activeClass}`]:e.activeClass&&_.value},L.value,R.value,B.value,G.value,U.value,Z.value,Y.value,H.value,e.class],style:[{"--v-list-prepend-gap":Oe(e.prependGap)},z.value,j.value,e.style],tabindex:e.tabindex??(A.value?S?-2:0:void 0),"aria-selected":M.value,role:I.value,onClick:ae,onKeydown:A.value&&!x.value&&de}),{default:()=>[Hc(A.value||_.value,"v-list-item"),Ie&&f.createElementVNode("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?f.createVNode(zt,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[r.prepend?.($.value)]}):f.createElementVNode(f.Fragment,null,[e.prependAvatar&&f.createVNode(hl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(Ct,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),f.createElementVNode("div",{class:"v-list-item__spacer"},null)]),f.createElementVNode("div",{class:"v-list-item__content","data-no-activator":""},[ge&&f.createVNode(Tv,{key:"title"},{default:()=>[r.title?.({title:e.title})??f.toDisplayString(e.title)]}),Se&&f.createVNode(Bj,{key:"subtitle"},{default:()=>[r.subtitle?.({subtitle:e.subtitle})??f.toDisplayString(e.subtitle)]}),r.default?.($.value)]),ee&&f.createElementVNode("div",{key:"append",class:"v-list-item__append"},[r.append?f.createVNode(zt,{key:"append-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[r.append?.($.value)]}):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(Ct,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(hl,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),f.createElementVNode("div",{class:"v-list-item__spacer"},null)])]}),[[eo,A.value&&ne.value]])}),{activate:s,isActivated:u,isGroupActivator:p,isSelected:h,list:S,select:c,root:m,id:w,link:o}}}),OAe=ie({color:String,inset:Boolean,sticky:Boolean,title:String,...nt(),...Ht()},"VListSubheader"),kv=Te()({name:"VListSubheader",props:OAe(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Wa(()=>e.color);return Ae(()=>{const o=!!(n.default||e.title);return f.createVNode(e.tag,{class:f.normalizeClass(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class]),style:f.normalizeStyle([{textColorStyles:a},e.style])},{default:()=>[o&&f.createElementVNode("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})}),{}}}),RAe=ie({items:Array,returnObject:Boolean},"VListChildren"),Hj=Te()({name:"VListChildren",props:RAe(),setup(e,t){let{slots:n}=t;return Mj(),()=>n.default?.()??e.items?.map((r,a)=>{let{children:o,props:i,type:l,raw:s}=r;if(l==="divider")return n.divider?.({props:i})??f.createVNode(Ma,i,null);if(l==="subheader")return n.subheader?.({props:i})??f.createVNode(kv,i,null);const u={subtitle:n.subtitle?d=>n.subtitle?.({...d,item:s}):void 0,prepend:n.prepend?d=>n.prepend?.({...d,item:s}):void 0,append:n.append?d=>n.append?.({...d,item:s}):void 0,title:n.title?d=>n.title?.({...d,item:s}):void 0},c=dw.filterProps(i);return o?f.createVNode(dw,f.mergeProps(c,{value:e.returnObject?s:i?.value,rawId:i?.value}),{activator:d=>{let{props:h}=d;const v=f.mergeProps(i,h,{value:e.returnObject?s:i.value});return n.header?n.header({props:v}):f.createVNode(Pr,f.mergeProps(v,{index:a}),u)},default:()=>f.createVNode(Hj,{items:o,returnObject:e.returnObject},n)}):n.item?n.item({props:{...i,index:a}}):f.createVNode(Pr,f.mergeProps(i,{index:a,value:e.returnObject?s:i.value}),u)})}}),zj=ie({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"),BAe=new Set(["item","divider","subheader"]);function Bs(e,t){const n=Gr(t,e.itemTitle,t),r=Gr(t,e.itemValue,n),a=Gr(t,e.itemChildren),o=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Kt(t,["children"]):t:void 0:Gr(t,e.itemProps);let i=Gr(t,e.itemType,"item");BAe.has(i)||(i="item");const l={title:n,value:r,...o};return{type:i,title:String(l.title??""),value:l.value,props:l,children:i==="item"&&Array.isArray(a)?Wj(e,a):void 0,raw:t}}Bs.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function Wj(e,t){const n=vi(e,Bs.neededProps),r=[];for(const a of t)r.push(Bs(n,a));return r}function cN(e){const t=f.computed(()=>Wj(e,e.items)),n=f.computed(()=>t.value.some(l=>l.value===null)),r=f.shallowRef(new Map),a=f.shallowRef([]);f.watchEffect(()=>{const l=t.value,s=new Map,u=[];for(let c=0;c{let{raw:u}=s;return u}):l.map(s=>{let{value:u}=s;return u})}return{items:t,transformIn:o,transformOut:i}}const FAe=new Set(["item","divider","subheader"]);function HAe(e,t){const n=af(t)?t:Gr(t,e.itemTitle),r=af(t)?t:Gr(t,e.itemValue,void 0),a=Gr(t,e.itemChildren),o=e.itemProps===!0?Kt(t,["children"]):Gr(t,e.itemProps);let i=Gr(t,e.itemType,"item");FAe.has(i)||(i="item");const l={title:n,value:r,...o};return{type:i,title:l.title,value:l.value,props:l,children:i==="item"&&a?Gj(e,a):void 0,raw:t}}function Gj(e,t){const n=[];for(const r of t)n.push(HAe(e,r));return n}function Uj(e){return{items:f.computed(()=>Gj(e,e.items))}}const Yj=ie({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:st,collapseIcon:st,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,navigationStrategy:{type:String,default:"focus"},navigationIndex:Number,"onClick:open":Qa(),"onClick:select":Qa(),"onUpdate:opened":Qa(),...DAe({selectStrategy:"single-leaf",openStrategy:"list"}),...xo(),...nt(),...Tr(),...Yr(),...Kr(),...zj(),...$n(),...Ht(),...pn(),...dl({variant:"text"})},"VList"),pi=Te()({name:"VList",props:Yj(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"update:navigationIndex":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:a}=t;const{items:o}=Uj(e),{themeClasses:i}=In(e),{backgroundColorClasses:l,backgroundColorStyles:s}=Ln(()=>e.bgColor),{borderClasses:u}=Go(e),{densityClasses:c}=$a(e),{dimensionStyles:d}=jr(e),{elevationClasses:h}=pa(e),{roundedClasses:v}=cr(e),{children:p,open:m,parents:g,select:y,getPath:b}=VAe(e,{items:o,returnObject:f.toRef(()=>e.returnObject),scrollToActive:f.toRef(()=>e.navigationStrategy==="track")}),w=f.toRef(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=f.toRef(()=>e.activeColor),_=f.toRef(()=>e.baseColor),x=f.toRef(()=>e.color),T=f.toRef(()=>e.selectable||e.activatable),A=ot(e,"navigationIndex",-1,G=>G??-1),E=f.useId();Mj({filterable:e.filterable,trackingIndex:A,navigationStrategy:f.toRef(()=>e.navigationStrategy),uid:E}),f.watch(o,()=>{e.navigationStrategy==="track"&&(A.value=-1)}),_r({VListGroup:{activeColor:S,baseColor:_,color:x,expandIcon:f.toRef(()=>e.expandIcon),collapseIcon:f.toRef(()=>e.collapseIcon)},VListItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:S,baseColor:_,color:x,density:f.toRef(()=>e.density),disabled:f.toRef(()=>e.disabled),lines:f.toRef(()=>e.lines),nav:f.toRef(()=>e.nav),slim:f.toRef(()=>e.slim),variant:f.toRef(()=>e.variant),tabindex:f.toRef(()=>e.navigationStrategy==="track"?-1:void 0)}});const I=f.shallowRef(!1),M=f.ref();function N(G){I.value=!0}function D(G){I.value=!1}function P(G){e.navigationStrategy==="track"?~A.value||(A.value=R("first")):!I.value&&!(G.relatedTarget&&M.value?.contains(G.relatedTarget))&&H()}function O(){e.navigationStrategy==="track"&&(A.value=-1)}function L(G){switch(G){case"ArrowDown":return"next";case"ArrowUp":return"prev";case"Home":return"first";case"End":return"last";default:return null}}function R(G){const j=o.value.length;if(j===0)return-1;let U;G==="first"?U=0:G==="last"?U=j-1:(U=A.value+(G==="next"?1:-1),U<0&&(U=j-1),U>=j&&(U=0));const Y=U;let Z=0;for(;Z=j&&(U=0),U===Y)return-1;Z++}return-1}function B(G){const j=G.target;if(!M.value||j.tagName==="INPUT"&&["Home","End"].includes(G.key)||j.tagName==="TEXTAREA")return;const U=L(G.key);if(U!==null)if(G.preventDefault(),e.navigationStrategy==="track"){const Y=R(U);Y!==-1&&(A.value=Y)}else H(U)}function z(G){I.value=!0}function H(G){if(M.value)return pv(M.value,G)}return Ae(()=>{const G=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0),j=T.value?n.ariaMultiselectable??!String(e.selectStrategy).startsWith("single-"):void 0;return f.createVNode(e.tag,{ref:M,class:f.normalizeClass(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},i.value,l.value,u.value,c.value,h.value,w.value,v.value,e.class]),style:f.normalizeStyle([{"--v-list-indent":Oe(G),"--v-list-group-prepend":G?"0px":void 0,"--v-list-prepend-gap":Oe(e.prependGap)},s.value,d.value,e.style]),tabindex:e.disabled?-1:0,role:T.value?"listbox":"list","aria-activedescendant":e.navigationStrategy==="track"&&A.value>=0?`v-list-item-${E}-${A.value}`:void 0,"aria-multiselectable":j,onFocusin:N,onFocusout:D,onFocus:P,onBlur:O,onKeydown:B,onMousedown:z},{default:()=>[f.createVNode(Hj,{items:o.value,returnObject:e.returnObject},r)]})}),{open:m,select:y,focus:H,children:p,parents:g,getPath:b,navigationIndex:A}}}),zAe=Oc("v-list-img"),WAe=ie({start:Boolean,end:Boolean,...nt(),...Ht()},"VListItemAction"),dN=Te()({name:"VListItemAction",props:WAe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),GAe=ie({start:Boolean,end:Boolean,...nt(),...Ht()},"VListItemMedia"),UAe=Te()({name:"VListItemMedia",props:GAe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class]),style:f.normalizeStyle(e.style)},n)),{}}});function fN(e,t){return{x:e.x+t.x,y:e.y+t.y}}function YAe(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jj(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,a=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return fN({x:a,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,a=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return fN({x:a,y:o},t)}return fN({x:t.width/2,y:t.height/2},t)}const Kj={static:XAe,connected:JAe},jAe=ie({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Kj},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 KAe(e,t){const n=f.ref({}),r=f.ref();Bn&&qa(()=>!!(t.isActive.value&&e.locationStrategy),l=>{f.watch(()=>e.locationStrategy,l),f.onScopeDispose(()=>{window.removeEventListener("resize",a),visualViewport?.removeEventListener("resize",o),visualViewport?.removeEventListener("scroll",i),r.value=void 0}),window.addEventListener("resize",a,{passive:!0}),visualViewport?.addEventListener("resize",o,{passive:!0}),visualViewport?.addEventListener("scroll",i,{passive:!0}),typeof e.locationStrategy=="function"?r.value=e.locationStrategy(t,e,n)?.updateLocation:r.value=Kj[e.locationStrategy](t,e,n)?.updateLocation});function a(l){r.value?.(l)}function o(l){r.value?.(l)}function i(l){r.value?.(l)}return{contentStyles:n,updateLocation:r}}function XAe(){}function ZAe(e,t){const n=CP(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 JAe(e,t,n){(Array.isArray(e.target.value)||LTe(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:o}=yP(()=>{const y=bP(t.location,e.isRtl.value),b=t.origin==="overlap"?y:t.origin==="auto"?SP(y):bP(t.origin,e.isRtl.value);return y.side===b.side&&y.align===xP(b).align?{preferredAnchor:aY(y),preferredOrigin:aY(b)}:{preferredAnchor:y,preferredOrigin:b}}),[i,l,s,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(y=>f.computed(()=>{const b=parseFloat(t[y]);return isNaN(b)?1/0:b})),c=f.computed(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const y=t.offset.split(" ").map(parseFloat);return y.length<2&&y.push(0),y}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let d=!1,h=-1;const v=new q9(4),p=new ResizeObserver(()=>{if(!d)return;if(requestAnimationFrame(b=>{b!==h&&v.clear(),requestAnimationFrame(w=>{h=w})}),v.isFull){const b=v.values();if(Ia(b.at(-1),b.at(-3))&&!Ia(b.at(-1),b.at(-2)))return}const y=g();y&&v.push(y.flipped)});let m=new il({x:0,y:0,width:0,height:0});f.watch(e.target,(y,b)=>{b&&!Array.isArray(b)&&p.unobserve(b),Array.isArray(y)?Ia(y,b)||g():y&&p.observe(y)},{immediate:!0}),f.watch(e.contentEl,(y,b)=>{b&&p.unobserve(b),y&&p.observe(y)},{immediate:!0}),f.onScopeDispose(()=>{p.disconnect()});function g(){if(d=!1,requestAnimationFrame(()=>d=!0),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(m=lY(e.target.value));const y=ZAe(e.contentEl.value,e.isRtl.value),b=m_(e.contentEl.value),w=Number(t.viewportMargin);b.length||(b.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(y.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),y.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const S=b.reduce((D,P)=>{const O=nTe(P);return D?new il({x:Math.max(D.left,O.left),y:Math.max(D.top,O.top),width:Math.min(D.right,O.right)-Math.max(D.left,O.left),height:Math.min(D.bottom,O.bottom)-Math.max(D.top,O.top)}):O},void 0);t.stickToTarget?(S.x+=Math.min(w,m.x),S.y+=Math.min(w,m.y),S.width=Math.max(S.width-w*2,m.x+m.width-w),S.height=Math.max(S.height-w*2,m.y+m.height-w)):(S.x+=w,S.y+=w,S.width-=w*2,S.height-=w*2);let _={anchor:a.value,origin:o.value};function x(D){const P=new il(y),O=jj(D.anchor,m),L=jj(D.origin,P);let{x:R,y:B}=YAe(O,L);switch(D.anchor.side){case"top":B-=c.value[0];break;case"bottom":B+=c.value[0];break;case"left":R-=c.value[0];break;case"right":R+=c.value[0];break}switch(D.anchor.align){case"top":B-=c.value[1];break;case"bottom":B+=c.value[1];break;case"left":R-=c.value[1];break;case"right":R+=c.value[1];break}return P.x+=R,P.y+=B,P.width=Math.min(P.width,s.value),P.height=Math.min(P.height,u.value),{overflows:iY(P,S),x:R,y:B}}let T=0,A=0;const E={x:0,y:0},I={x:!1,y:!1};let M=-1;for(;;){if(M++>10){uv("Infinite loop detected in connectedLocationStrategy");break}const{x:D,y:P,overflows:O}=x(_);T+=D,A+=P,y.x+=D,y.y+=P;{const L=oY(_.anchor),R=O.x.before||O.x.after,B=O.y.before||O.y.after;let z=!1;if(["x","y"].forEach(H=>{if(H==="x"&&R&&!I.x||H==="y"&&B&&!I.y){const G={anchor:{..._.anchor},origin:{..._.origin}},j=H==="x"?L==="y"?xP:SP:L==="y"?SP:xP;G.anchor=j(G.anchor),G.origin=j(G.origin);const{overflows:U}=x(G);(U[H].before<=O[H].before&&U[H].after<=O[H].after||U[H].before+U[H].after<(O[H].before+O[H].after)/2)&&(_=G,z=I[H]=!0)}}),z)continue}O.x.before&&(T+=O.x.before,y.x+=O.x.before),O.x.after&&(T-=O.x.after,y.x-=O.x.after),O.y.before&&(A+=O.y.before,y.y+=O.y.before),O.y.after&&(A-=O.y.after,y.y-=O.y.after);{const L=iY(y,S);E.x=S.width-L.x.before-L.x.after,E.y=S.height-L.y.before-L.y.after,T+=L.x.before,y.x+=L.x.before,A+=L.y.before,y.y+=L.y.before}break}const N=oY(_.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${_.anchor.side} ${_.anchor.align}`,transformOrigin:`${_.origin.side} ${_.origin.align}`,top:Oe(hN(A)),left:e.isRtl.value?void 0:Oe(hN(T)),right:e.isRtl.value?Oe(hN(-T)):void 0,minWidth:Oe(N==="y"?Math.min(i.value,m.width):i.value),maxWidth:Oe(Xj(Fn(E.x,i.value===1/0?0:i.value,s.value))),maxHeight:Oe(Xj(Fn(E.y,l.value===1/0?0:l.value,u.value)))}),{available:E,contentBox:y,flipped:I}}return f.watch(()=>[a.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>g()),f.nextTick(()=>{const y=g();if(!y)return;const{available:b,contentBox:w}=y;w.height>b.y&&requestAnimationFrame(()=>{g(),requestAnimationFrame(()=>{g()})})}),{updateLocation:g}}function hN(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Xj(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let vN=!0;const A_=[];function QAe(e){!vN||A_.length?(A_.push(e),pN()):(vN=!1,e(),pN())}let Zj=-1;function pN(){cancelAnimationFrame(Zj),Zj=requestAnimationFrame(()=>{const e=A_.shift();e&&e(),A_.length?pN():vN=!0})}const Jj={none:null,close:eEe,block:tEe,reposition:nEe},qAe=ie({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Jj}},"VOverlay-scroll-strategies");function $Ae(e,t){if(!Bn)return;let n;f.watchEffect(async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=f.effectScope(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):Jj[e.scrollStrategy]?.(t,e,n)}))}),f.onScopeDispose(()=>{n?.stop()})}function eEe(e){function t(n){e.isActive.value=!1}Qj(mN(e.target.value,e.contentEl.value),t)}function tEe(e,t){const n=e.root.value?.offsetParent,r=mN(e.target.value,e.contentEl.value),a=[...new Set([...m_(r,t.contained?n:void 0),...m_(e.contentEl.value,t.contained?n:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,i=(l=>MP(l)&&l)(n||document.documentElement);i&&e.root.value.classList.add("v-overlay--scroll-blocked"),a.forEach((l,s)=>{l.style.setProperty("--v-body-scroll-x",Oe(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",Oe(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",Oe(o)),l.classList.add("v-overlay-scroll-blocked")}),f.onScopeDispose(()=>{a.forEach((l,s)=>{const u=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),d=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-u,l.scrollTop=-c,l.style.scrollBehavior=d}),i&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function nEe(e,t,n){let r=!1,a=-1,o=-1;function i(l){QAe(()=>{const s=performance.now();e.updateLocation.value?.(l),r=(performance.now()-s)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?l=>l():requestIdleCallback)(()=>{n.run(()=>{Qj(mN(e.target.value,e.contentEl.value),l=>{r?(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{i(l)})})):i(l)})})}),f.onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(a)})}function mN(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find(n=>!t?.contains(n)):e??t}function Qj(e,t){const n=[document,...m_(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),f.onScopeDispose(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const gN=Symbol.for("vuetify:v-menu"),yN=ie({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function bN(e,t){let n=()=>{};function r(i,l){n?.();const s=i?e.openDelay:e.closeDelay,u=Math.max(l?.minDelay??0,Number(s??0));return new Promise(c=>{n=J_e(u,()=>{t?.(i),c(i)})})}function a(){return r(!0)}function o(i){return r(!1,i)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:o}}const rEe=ie({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,...yN()},"VOverlay-activator");function aEe(e,t){let{isActive:n,isTop:r,contentEl:a}=t;const o=Ur("useActivator"),i=f.ref();let l=!1,s=!1,u=!0;const c=f.computed(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=f.computed(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!c.value),{runOpenDelay:h,runCloseDelay:v}=bN(e,A=>{A===(e.openOnHover&&l||c.value&&s)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==A&&(u=!0),n.value=A)}),p=f.ref(),m={onClick:A=>{A.stopPropagation(),i.value=A.currentTarget||A.target,n.value||(p.value=[A.clientX,A.clientY]),n.value=!n.value},onMouseenter:A=>{l=!0,i.value=A.currentTarget||A.target,h()},onMouseleave:A=>{l=!1,v()},onFocus:A=>{Bg(A.target,":focus-visible")!==!1&&(s=!0,A.stopPropagation(),i.value=A.currentTarget||A.target,h())},onBlur:A=>{s=!1,A.stopPropagation(),v({minDelay:1})}},g=f.computed(()=>{const A={};return d.value&&(A.onClick=m.onClick),e.openOnHover&&(A.onMouseenter=m.onMouseenter,A.onMouseleave=m.onMouseleave),c.value&&(A.onFocus=m.onFocus,A.onBlur=m.onBlur),A}),y=f.computed(()=>{const A={};if(e.openOnHover&&(A.onMouseenter=()=>{l=!0,h()},A.onMouseleave=()=>{l=!1,v()}),c.value&&(A.onFocusin=E=>{E.target.matches(":focus-visible")&&(s=!0,h())},A.onFocusout=()=>{s=!1,v({minDelay:1})}),e.closeOnContentClick){const E=f.inject(gN,null);A.onClick=()=>{n.value=!1,E?.closeParents()}}return A}),b=f.computed(()=>{const A={};return e.openOnHover&&(A.onMouseenter=()=>{u&&(l=!0,u=!1,h())},A.onMouseleave=()=>{l=!1,v()}),A});f.watch(r,A=>{A&&(e.openOnHover&&!l&&(!c.value||!s)||c.value&&!s&&(!e.openOnHover||!l))&&!a.value?.contains(document.activeElement)&&v()}),f.watch(n,A=>{A||setTimeout(()=>{p.value=void 0})},{flush:"post"});const w=X1();f.watchEffect(()=>{w.value&&f.nextTick(()=>{i.value=w.el})});const S=X1(),_=f.computed(()=>e.target==="cursor"&&p.value?p.value:S.value?S.el:qj(e.target,o)||i.value),x=f.computed(()=>Array.isArray(_.value)?void 0:_.value);let T;return f.watch(()=>!!e.activator,A=>{A&&Bn?(T=f.effectScope(),T.run(()=>{oEe(e,o,{activatorEl:i,activatorEvents:g})})):T&&T.stop()},{flush:"post",immediate:!0}),f.onScopeDispose(()=>{T?.stop()}),{activatorEl:i,activatorRef:w,target:_,targetEl:x,targetRef:S,activatorEvents:g,contentEvents:y,scrimEvents:b}}function oEe(e,t,n){let{activatorEl:r,activatorEvents:a}=n;f.watch(()=>e.activator,(s,u)=>{if(u&&s!==u){const c=l(u);c&&i(c)}s&&f.nextTick(()=>o())},{immediate:!0}),f.watch(()=>e.activatorProps,()=>{o()}),f.onScopeDispose(()=>{i()});function o(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&rTe(s,f.mergeProps(a.value,u))}function i(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&aTe(s,f.mergeProps(a.value,u))}function l(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=qj(s,t);return r.value=u?.nodeType===Node.ELEMENT_NODE?u:void 0,r.value}}function qj(e,t){if(!e)return;let n;if(e==="parent"){let r=t?.proxy?.$el?.parentNode;for(;r?.hasAttribute("data-no-activator");)r=r.parentNode;n=r}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}const $j=ie({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),E_=new Map;let eK=0;function tK(e){const t=document.activeElement;if(e.key!=="Tab"||!t)return;const n=Array.from(E_.values()).filter(u=>{let{isActive:c,contentEl:d}=u;return c.value&&d.value?.contains(t)}).map(u=>u.contentEl.value);let r,a=t.parentElement;for(;a;){if(n.includes(a)){r=a;break}a=a.parentElement}if(!r)return;const o=rf(r).filter(u=>u.tabIndex>=0);if(!o.length)return;const i=document.activeElement;if(o.length===1&&o[0].classList.contains("v-list")&&o[0].contains(i)){e.preventDefault();return}const l=o[0],s=o[o.length-1];e.shiftKey&&(i===l||l.classList.contains("v-list")&&l.contains(i))&&(e.preventDefault(),s.focus()),!e.shiftKey&&(i===s||s.classList.contains("v-list")&&s.contains(i))&&(e.preventDefault(),l.focus())}function nK(e,t){let{isActive:n,localTop:r,activatorEl:a,contentEl:o}=t;const i=Symbol("trap");let l=!1,s=-1;async function u(){l=!0,s=window.setTimeout(()=>{l=!1},100)}async function c(v){const p=v.relatedTarget,m=v.target;document.removeEventListener("pointerdown",u),document.removeEventListener("keydown",d),await f.nextTick(),n.value&&!l&&p!==m&&o.value&&f.toValue(r)&&![document,o.value].includes(m)&&!o.value.contains(m)&&rf(o.value)[0]?.focus()}function d(v){if(v.key==="Tab"&&(document.removeEventListener("keydown",d),n.value&&o.value&&v.target&&!o.value.contains(v.target))){const p=rf(document.documentElement);if(v.shiftKey&&v.target===p.at(0)||!v.shiftKey&&v.target===p.at(-1)){const m=rf(o.value);m.length>0&&(v.preventDefault(),m[0].focus())}}}const h=f.toRef(()=>n.value&&e.captureFocus&&!e.disableInitialFocus);Bn&&(f.watch(()=>e.retainFocus,v=>{v?E_.set(i,{isActive:n,contentEl:o}):E_.delete(i)},{immediate:!0}),f.watch(h,v=>{v?(document.addEventListener("pointerdown",u),document.addEventListener("focusin",c,{once:!0}),document.addEventListener("keydown",d)):(document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d))},{immediate:!0}),eK++<1&&document.addEventListener("keydown",tK)),f.onScopeDispose(()=>{E_.delete(i),clearTimeout(s),document.removeEventListener("pointerdown",u),document.removeEventListener("focusin",c),document.removeEventListener("keydown",d),--eK<1&&document.removeEventListener("keydown",tK)})}function rK(){if(!Bn)return f.shallowRef(!1);const{ssr:e}=vl();if(e){const t=f.shallowRef(!1);return f.onMounted(()=>{t.value=!0}),t}else return f.shallowRef(!0)}const wN=ie({eager:Boolean},"lazy");function SN(e,t){const n=f.shallowRef(!1),r=f.toRef(()=>n.value||e.eager||t.value);f.watch(t,()=>n.value=!0);function a(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:a}}function Av(){const t=Ur("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const aK=Symbol.for("vuetify:stack"),fw=f.reactive([]);function iEe(e,t,n){const r=Ur("useStack"),a=!n,o=f.inject(aK,void 0),i=f.reactive({activeChildren:new Set});f.provide(aK,i);const l=f.shallowRef(Number(f.toValue(t)));qa(e,()=>{const c=fw.at(-1)?.[1];l.value=c?c+10:Number(f.toValue(t)),a&&fw.push([r.uid,l.value]),o?.activeChildren.add(r.uid),f.onScopeDispose(()=>{if(a){const d=f.toRaw(fw).findIndex(h=>h[0]===r.uid);fw.splice(d,1)}o?.activeChildren.delete(r.uid)})});const s=f.shallowRef(!0);a&&f.watchEffect(()=>{const c=fw.at(-1)?.[0]===r.uid;setTimeout(()=>s.value=c)});const u=f.toRef(()=>!i.activeChildren.size);return{globalTop:f.readonly(s),localTop:u,stackStyles:f.toRef(()=>({zIndex:l.value}))}}function lEe(e){return{teleportTarget:f.computed(()=>{const n=e();if(n===!0||!Bn)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null){f.warn(`Unable to locate target ${n}`);return}let a=[...r.children].find(o=>o.matches(".v-overlay-container"));return a||(a=document.createElement("div"),a.className="v-overlay-container",r.appendChild(a)),a})}}function sEe(){return!0}function oK(e,t,n){if(!e||iK(e,n)===!1)return!1;const r=AY(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const a=(typeof n.value=="object"&&n.value.include||(()=>[]))();return a.push(t),!a.some(o=>o?.contains(e.target))}function iK(e,t){return(typeof t.value=="object"&&t.value.closeConditional||sEe)(e)}function uEe(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&oK(e,t,n)&&setTimeout(()=>{iK(e,n)&&r&&r(e)},0)}function lK(e,t){const n=AY(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const xN={mounted(e,t){const n=a=>uEe(a,e,t),r=a=>{e._clickOutside.lastMousedownWasOutside=oK(a,e,t)};lK(e,a=>{a.addEventListener("click",n,!0),a.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(lK(e,n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:a}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",a,!0)}),delete e._clickOutside[t.instance.$.uid])}};function cEe(e){const{modelValue:t,color:n,...r}=e;return f.createVNode(f.Transition,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&f.createElementVNode("div",f.mergeProps({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const hw=ie({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},...rEe(),...nt(),...Yr(),...wN(),...jAe(),...qAe(),...$j(),...pn(),...Rc()},"VOverlay"),Ri=Te()({name:"VOverlay",directives:{vClickOutside:xN},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Kt(hw(),["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:a}=t;const o=Ur("VOverlay"),i=f.ref(),l=f.ref(),s=f.ref(),u=ot(e,"modelValue"),c=f.computed({get:()=>u.value,set:$=>{$&&e.disabled||(u.value=$)}}),{themeClasses:d}=In(e),{rtlClasses:h,isRtl:v}=ta(),{hasContent:p,onAfterLeave:m}=SN(e,c),g=Ln(()=>typeof e.scrim=="string"?e.scrim:null),{globalTop:y,localTop:b,stackStyles:w}=iEe(c,()=>e.zIndex,e._disableGlobalStack),{activatorEl:S,activatorRef:_,target:x,targetEl:T,targetRef:A,activatorEvents:E,contentEvents:I,scrimEvents:M}=aEe(e,{isActive:c,isTop:b,contentEl:s}),{teleportTarget:N}=lEe(()=>{const $=e.attach||e.contained;if($)return $;const ae=S?.value?.getRootNode()||o.proxy?.$el?.getRootNode();return ae instanceof ShadowRoot?ae:!1}),{dimensionStyles:D}=jr(e),P=rK(),{scopeId:O}=Av();f.watch(()=>e.disabled,$=>{$&&(c.value=!1)});const{contentStyles:L,updateLocation:R}=KAe(e,{isRtl:v,contentEl:s,target:x,isActive:c});$Ae(e,{root:i,contentEl:s,targetEl:T,target:x,isActive:c,updateLocation:R});function B($){a("click:outside",$),e.persistent?Y():c.value=!1}function z($){return c.value&&b.value&&(!e.scrim||$.target===l.value||$ instanceof MouseEvent&&$.shadowTarget===l.value)}nK(e,{isActive:c,localTop:b,contentEl:s,activatorEl:S}),Bn&&f.watch(c,$=>{$?window.addEventListener("keydown",H):window.removeEventListener("keydown",H)},{immediate:!0}),f.onBeforeUnmount(()=>{Bn&&window.removeEventListener("keydown",H)});function H($){$.key==="Escape"&&y.value&&(s.value?.contains(document.activeElement)||a("keydown",$),e.persistent?Y():(c.value=!1,s.value?.contains(document.activeElement)&&S.value?.focus()))}function G($){$.key==="Escape"&&!y.value||a("keydown",$)}const j=ej();qa(()=>e.closeOnBack,()=>{Fke(j,()=>{if(y.value&&c.value)return e.persistent?Y():c.value=!1,!1})});const U=f.ref();f.watch(()=>c.value&&(e.absolute||e.contained)&&N.value==null,$=>{if($){const ae=p_(i.value);ae&&ae!==document.scrollingElement&&(U.value=ae.scrollTop)}});function Y(){e.noClickAnimation||s.value&&Lc(s.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:J1})}function Z(){a("afterEnter")}function ne(){m(),a("afterLeave")}return Ae(()=>f.createElementVNode(f.Fragment,null,[n.activator?.({isActive:c.value,targetRef:A,props:f.mergeProps({ref:_},E.value,e.activatorProps)}),P.value&&p.value&&f.createVNode(f.Teleport,{disabled:!N.value,to:N.value},{default:()=>[f.createElementVNode("div",f.mergeProps({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":c.value,"v-overlay--contained":e.contained},d.value,h.value,e.class],style:[w.value,{"--v-overlay-opacity":e.opacity,top:Oe(U.value)},e.style],ref:i,onKeydown:G},O,r),[f.createVNode(cEe,f.mergeProps({color:g,modelValue:c.value&&!!e.scrim,ref:l},M.value),null),f.createVNode(Wo,{appear:!0,persisted:!0,transition:e.transition,target:x.value,onAfterEnter:Z,onAfterLeave:ne},{default:()=>[f.withDirectives(f.createElementVNode("div",f.mergeProps({ref:s,class:["v-overlay__content",e.contentClass],style:[D.value,L.value]},I.value,e.contentProps),[n.default?.({isActive:c})]),[[f.vShow,c.value],[xN,{handler:B,closeConditional:z,include:()=>[S.value]}]])]})])]})])),{activatorEl:S,scrimEl:l,target:x,animateClick:Y,contentEl:s,rootEl:i,globalTop:y,localTop:b,updateLocation:R}}}),sK=ie({id:String,submenu:Boolean,...Kt(hw({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:g_}}),["absolute"])},"VMenu"),Uo=Te()({name:"VMenu",props:sK(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{scopeId:a}=Av(),{isRtl:o}=ta(),i=f.useId(),l=f.toRef(()=>e.id||`v-menu-${i}`),s=f.ref(),u=f.inject(gN,null),c=f.shallowRef(new Set);f.provide(gN,{register(){c.value.add(i)},unregister(){c.value.delete(i)},closeParents(m){setTimeout(()=>{!c.value.size&&!e.persistent&&(m==null||s.value?.contentEl&&!Q_e(m,s.value.contentEl))&&(r.value=!1,u?.closeParents())},40)}}),f.onBeforeUnmount(()=>u?.unregister()),f.onDeactivated(()=>r.value=!1),f.watch(r,m=>{m?u?.register():u?.unregister()},{immediate:!0});function d(m){u?.closeParents(m)}function h(m){if(!e.disabled)if(m.key==="Tab"||m.key==="Enter"&&!e.closeOnContentClick){if(m.key==="Enter"&&(m.target instanceof HTMLTextAreaElement||m.target instanceof HTMLInputElement&&m.target.closest("form")))return;m.key==="Enter"&&m.preventDefault(),!tY(rf(s.value?.contentEl,!1),m.shiftKey?"prev":"next",y=>y.tabIndex>=0)&&!e.retainFocus&&(r.value=!1,s.value?.activatorEl?.focus())}else e.submenu&&m.key===(o.value?"ArrowRight":"ArrowLeft")&&(r.value=!1,s.value?.activatorEl?.focus())}function v(m){if(e.disabled)return;const g=s.value?.contentEl;g&&r.value?m.key==="ArrowDown"?(m.preventDefault(),m.stopImmediatePropagation(),pv(g,"next")):m.key==="ArrowUp"?(m.preventDefault(),m.stopImmediatePropagation(),pv(g,"prev")):e.submenu&&(m.key===(o.value?"ArrowRight":"ArrowLeft")?r.value=!1:m.key===(o.value?"ArrowLeft":"ArrowRight")&&(m.preventDefault(),pv(g,"first"))):(e.submenu?m.key===(o.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(m.key))&&(r.value=!0,m.preventDefault(),setTimeout(()=>setTimeout(()=>v(m))))}const p=f.computed(()=>f.mergeProps({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-controls":l.value,"aria-owns":l.value,onKeydown:v},e.activatorProps));return Ae(()=>{const m=Ri.filterProps(e);return f.createVNode(Ri,f.mergeProps({ref:s,id:l.value,class:["v-menu",e.class],style:e.style},m,{modelValue:r.value,"onUpdate:modelValue":g=>r.value=g,absolute:!0,activatorProps:p.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":d,onKeydown:h},a),{activator:n.activator,default:function(){for(var g=arguments.length,y=new Array(g),b=0;b[n.default?.(...y)]})}})}),ma({id:l,ΨopenChildren:c},s)}}),CN=ie({color:String,...xo(),...nt(),...Yr(),...Kr(),..._u(),...Yg(),...$n(),...Ht(),...pn()},"VSheet"),Uc=Te()({name:"VSheet",props:CN(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{borderClasses:i}=Go(e),{dimensionStyles:l}=jr(e),{elevationClasses:s}=pa(e),{locationStyles:u}=of(e),{positionClasses:c}=jg(e),{roundedClasses:d}=cr(e);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-sheet",r.value,a.value,i.value,s.value,c.value,d.value,e.class]),style:f.normalizeStyle([o.value,l.value,u.value,e.style])},n)),{}}}),dEe=ie({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...nt(),...Rc({transition:{component:FP}})},"VCounter"),I_=Te()({name:"VCounter",functional:!0,props:dEe(),setup(e,t){let{slots:n}=t;const r=f.toRef(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Ae(()=>f.createVNode(Wo,{transition:e.transition},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:f.normalizeStyle(e.style)},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[f.vShow,e.active]])]})),{}}}),fEe=ie({floating:Boolean,...nt()},"VFieldLabel"),vw=Te()({name:"VFieldLabel",props:fEe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(Kg,{class:f.normalizeClass(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),hEe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],pw=ie({appendInnerIcon:st,bgColor:String,clearable:Boolean,clearIcon:{type:st,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:st,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>hEe.includes(e)},"onClick:clear":Qa(),"onClick:appendInner":Qa(),"onClick:prependInner":Qa(),...nt(),...S_(),...$n(),...pn()},"VField"),df=Te()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,...sw(),...pw()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{themeClasses:o}=In(e),{loaderClasses:i}=tw(e),{focusClasses:l,isFocused:s,focus:u,blur:c}=Wc(e),{InputIcon:d}=lw(e),{roundedClasses:h}=cr(e),{rtlClasses:v}=ta(),p=f.toRef(()=>e.dirty||e.active),m=f.toRef(()=>!!(e.label||a.label)),g=f.toRef(()=>!e.singleLine&&m.value),y=f.useId(),b=f.computed(()=>e.id||`input-${y}`),w=f.toRef(()=>e.details?`${b.value}-messages`:void 0),S=f.ref(),_=f.ref(),x=f.ref(),T=f.computed(()=>["plain","underlined"].includes(e.variant)),A=f.computed(()=>e.error||e.disabled?void 0:p.value&&s.value?e.color:e.baseColor),E=f.computed(()=>{if(!(!e.iconColor||e.glow&&!s.value))return e.iconColor===!0?A.value:e.iconColor}),{backgroundColorClasses:I,backgroundColorStyles:M}=Ln(()=>e.bgColor),{textColorClasses:N,textColorStyles:D}=Wa(A);f.watch(p,B=>{if(g.value&&!bu()){const z=S.value.$el,H=_.value.$el;requestAnimationFrame(()=>{const G=CP(z),j=new il(H),U=j.x-G.x,Y=j.y-G.y-(G.height/2-j.height/2),Z=j.width/.75,ne=Math.abs(Z-G.width)>1?{maxWidth:Oe(Z)}:void 0,$=getComputedStyle(z),ae=getComputedStyle(H),de=parseFloat($.transitionDuration)*1e3||150,ve=parseFloat(ae.getPropertyValue("--v-field-label-scale")),ge=ae.getPropertyValue("color");z.style.visibility="visible",H.style.visibility="hidden",Lc(z,{transform:`translate(${U}px, ${Y}px) scale(${ve})`,color:ge,...ne},{duration:de,easing:J1,direction:B?"normal":"reverse"}).finished.then(()=>{z.style.removeProperty("visibility"),H.style.removeProperty("visibility")})})}},{flush:"post"});const P=f.computed(()=>({isActive:p,isFocused:s,controlRef:x,iconColor:E,blur:c,focus:u})),O=f.toRef(()=>{const B=!p.value;return{"aria-hidden":B,for:B?void 0:b.value}}),L=f.toRef(()=>{const B=g.value&&p.value;return{"aria-hidden":B,for:B?void 0:b.value}});function R(B){B.target!==document.activeElement&&B.preventDefault()}return Ae(()=>{const B=e.variant==="outlined",z=!!(a["prepend-inner"]||e.prependInnerIcon),H=!!(e.clearable||a.clear)&&!e.disabled,G=!!(a["append-inner"]||e.appendInnerIcon||H),j=()=>a.label?a.label({...P.value,label:e.label,props:{for:b.value}}):e.label;return f.createElementVNode("div",f.mergeProps({class:["v-field",{"v-field--active":p.value,"v-field--appended":G,"v-field--center-affix":e.centerAffix??!T.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":z,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!j(),[`v-field--variant-${e.variant}`]:!0},o.value,I.value,l.value,i.value,h.value,v.value,e.class],style:[M.value,e.style],onClick:R},n),[f.createElementVNode("div",{class:"v-field__overlay"},null),f.createVNode(nw,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:a.loader}),z&&f.createElementVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[a["prepend-inner"]?a["prepend-inner"](P.value):e.prependInnerIcon&&f.createVNode(d,{key:"prepend-icon",name:"prependInner",color:E.value},null)]),f.createElementVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&g.value&&f.createVNode(vw,f.mergeProps({key:"floating-label",ref:_,class:[N.value],floating:!0},O.value,{style:D.value}),{default:()=>[j()]}),m.value&&f.createVNode(vw,f.mergeProps({key:"label",ref:S,id:e.labelId},L.value),{default:()=>[j()]}),a.default?.({...P.value,props:{id:b.value,class:"v-field__input","aria-describedby":w.value},focus:u,blur:c})??f.createElementVNode("div",{id:b.value,class:"v-field__input","aria-describedby":w.value},null)]),H&&f.createVNode(HP,{key:"clear"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-field__clearable",onMousedown:U=>{U.preventDefault(),U.stopPropagation()}},[f.createVNode(zt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[a.clear?a.clear({...P.value,props:{onFocus:u,onBlur:c,onClick:e["onClick:clear"],tabindex:-1}}):f.createVNode(d,{name:"clear",onFocus:u,onBlur:c,tabindex:-1},null)]})]),[[f.vShow,e.dirty]])]}),G&&f.createElementVNode("div",{key:"append",class:"v-field__append-inner"},[a["append-inner"]?a["append-inner"](P.value):e.appendInnerIcon&&f.createVNode(d,{key:"append-icon",name:"appendInner",color:E.value},null)]),f.createElementVNode("div",{class:f.normalizeClass(["v-field__outline",N.value]),style:f.normalizeStyle(D.value)},[B&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-field__outline__start"},null),g.value&&f.createElementVNode("div",{class:"v-field__outline__notch"},[f.createVNode(vw,f.mergeProps({ref:_,floating:!0},O.value),{default:()=>[j()]})]),f.createElementVNode("div",{class:"v-field__outline__end"},null)]),T.value&&g.value&&f.createVNode(vw,f.mergeProps({ref:_,floating:!0},O.value),{default:()=>[j()]})])])}),{controlRef:x,fieldIconColor:E}}}),uK=ie({autocomplete:String},"autocomplete");function _N(e){const t=f.useId(),n=f.shallowRef(0),r=f.toRef(()=>e.autocomplete==="suppress"),a=f.toRef(()=>{if(e.name)return r.value?`${e.name}-${t}-${n.value}`:e.name}),o=f.toRef(()=>r.value?"off":e.autocomplete);return{isSuppressing:r,fieldAutocomplete:o,fieldName:a,update:()=>n.value=new Date().getTime()}}function cK(e){function t(n,r){if(!e.autofocus||!n)return;const a=r[0].target;(a.matches("input,textarea")?a:a.querySelector("input,textarea"))?.focus()}return{onIntersect:t}}const vEe=["color","file","time","date","datetime-local","week","month"],mw=ie({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...uK(),...Kt(Gc(),["direction"]),...pw()},"VTextField"),na=Te()({name:"VTextField",directives:{vIntersect:cl},inheritAttrs:!1,props:mw(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const o=ot(e,"modelValue",void 0,T=>Object.is(T,-0)?"-0":T),{isFocused:i,focus:l,blur:s}=Wc(e),{onIntersect:u}=cK(e),c=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(o.value):typeof e.counterValue=="number"?e.counterValue:(o.value??"").toString().length),d=f.computed(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=f.computed(()=>["plain","underlined"].includes(e.variant)),v=f.ref(),p=f.ref(),m=f.ref(),g=_N(e),y=f.computed(()=>vEe.includes(e.type)||e.persistentPlaceholder||i.value||e.active);function b(){g.isSuppressing.value&&g.update(),i.value||l(),f.nextTick(()=>{m.value!==document.activeElement&&m.value?.focus()})}function w(T){r("mousedown:control",T),T.target!==m.value&&(b(),T.preventDefault())}function S(T){r("click:control",T)}function _(T,A){T.stopPropagation(),b(),f.nextTick(()=>{A(),j1(e["onClick:clear"],T)})}function x(T){const A=T.target;if(!(e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type))){o.value=A.value;return}const E=A.value,I=A.selectionStart,M=A.selectionEnd;o.value=E,f.nextTick(()=>{let N=0;E.trimStart().length===A.value.length&&(N=E.length-A.value.length),I!=null&&(A.selectionStart=I-N),M!=null&&(A.selectionEnd=M-N)})}return Ae(()=>{const T=!!(a.counter||e.counter!==!1&&e.counter!=null),A=!!(T||a.details),[E,I]=Su(n),{modelValue:M,...N}=to.filterProps(e),D=df.filterProps(e);return f.createVNode(to,f.mergeProps({ref:v,modelValue:o.value,"onUpdate:modelValue":P=>o.value=P,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":h.value},e.class],style:e.style},E,N,{centerAffix:!h.value,focused:i.value}),{...a,default:P=>{let{id:O,isDisabled:L,isDirty:R,isReadonly:B,isValid:z,hasDetails:H,reset:G}=P;return f.createVNode(df,f.mergeProps({ref:p,onMousedown:w,onClick:S,"onClick:clear":j=>_(j,G),role:e.role},Kt(D,["onClick:clear"]),{id:O.value,labelId:`${O.value}-label`,active:y.value||R.value,dirty:R.value||e.dirty,disabled:L.value,focused:i.value,details:H.value,error:z.value===!1}),{...a,default:j=>{let{props:{class:U,...Y},controlRef:Z}=j;const ne=f.createElementVNode("input",f.mergeProps({ref:$=>m.value=Z.value=$,value:o.value,onInput:x,autofocus:e.autofocus,readonly:B.value,disabled:L.value,name:g.fieldName.value,autocomplete:g.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:l,onBlur:s,"aria-labelledby":`${O.value}-label`},Y,I),null);return f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{class:"v-text-field__prefix"},[f.createElementVNode("span",{class:"v-text-field__prefix__text"},[e.prefix])]),f.withDirectives(a.default?f.createElementVNode("div",{class:f.normalizeClass(U),"data-no-activator":""},[a.default({id:O}),ne]):f.cloneVNode(ne,{class:U}),[[cl,u,null,{once:!0}]]),e.suffix&&f.createElementVNode("span",{class:"v-text-field__suffix"},[f.createElementVNode("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:A?P=>f.createElementVNode(f.Fragment,null,[a.details?.(P),T&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(I_,{active:e.persistentCounter||i.value,value:c.value,max:d.value,disabled:e.disabled},a.counter)])]):void 0})}),ma({},v,p,m)}}),pEe=ie({renderless:Boolean,...nt()},"VVirtualScrollItem"),dK=Te()({name:"VVirtualScrollItem",inheritAttrs:!1,props:pEe(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{resizeRef:o,contentRect:i}=Gl(void 0,"border");f.watch(()=>i.value?.height,l=>{l!=null&&r("update:height",l)}),Ae(()=>e.renderless?f.createElementVNode(f.Fragment,null,[a.default?.({itemRef:o})]):f.createElementVNode("div",f.mergeProps({ref:o,class:["v-virtual-scroll__item",e.class],style:e.style},n),[a.default?.()]))}}),mEe=-1,gEe=1,TN=100,fK=ie({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function hK(e,t){const n=vl(),r=f.shallowRef(0);f.watchEffect(()=>{r.value=parseFloat(e.itemHeight||0)});const a=f.shallowRef(0),o=f.shallowRef(Math.ceil((parseInt(e.height)||n.height.value)/(r.value||16))||1),i=f.shallowRef(0),l=f.shallowRef(0),s=f.ref(),u=f.ref();let c=0;const{resizeRef:d,contentRect:h}=Gl();f.watchEffect(()=>{d.value=s.value});const v=f.computed(()=>s.value===document.documentElement?n.height.value:h.value?.height||parseInt(e.height)||0),p=f.computed(()=>!!(s.value&&u.value&&v.value&&r.value));let m=Array.from({length:t.value.length}),g=Array.from({length:t.value.length});const y=f.shallowRef(0);let b=-1;function w(H){return m[H]||r.value}const S=j9(()=>{const H=performance.now();g[0]=0;const G=t.value.length;for(let j=1;j<=G;j++)g[j]=(g[j-1]||0)+w(j-1);y.value=Math.max(y.value,performance.now()-H)},y),_=f.watch(p,H=>{H&&(_(),c=u.value.offsetTop,S.immediate(),L(),~b&&f.nextTick(()=>{Bn&&window.requestAnimationFrame(()=>{B(b),b=-1})}))});f.onScopeDispose(()=>{S.clear()});function x(H,G){const j=m[H],U=r.value;r.value=U?Math.min(r.value,G):G,(j!==G||U!==r.value)&&(m[H]=G,S())}function T(H){H=Fn(H,0,t.value.length);const G=Math.floor(H),j=H%1,U=G+1,Y=g[G]||0,Z=g[U]||Y;return Y+(Z-Y)*j}function A(H){return yEe(g,H)}let E=0,I=0,M=0;f.watch(v,(H,G)=>{L(),H{I=0,L()})});let N=-1;function D(){if(!s.value||!u.value)return;const H=s.value.scrollTop,G=performance.now();G-M>500?(I=Math.sign(H-E),c=u.value.offsetTop):I=H-E,E=H,M=G,window.clearTimeout(N),N=window.setTimeout(P,500),L()}function P(){!s.value||!u.value||(I=0,M=0,window.clearTimeout(N),L())}let O=-1;function L(){cancelAnimationFrame(O),O=requestAnimationFrame(R)}function R(){if(!s.value||!v.value||!r.value)return;const H=E-c,G=Math.sign(I),j=Math.max(0,H-TN),U=Fn(A(j),0,t.value.length),Y=H+v.value+TN,Z=Fn(A(Y)+1,U+1,t.value.length);if((G!==mEe||Uo.value)){const ne=T(a.value)-T(U),$=T(Z)-T(o.value);Math.max(ne,$)>TN?(a.value=U,o.value=Z):(U<=0&&(a.value=U),Z>=t.value.length&&(o.value=Z))}i.value=T(a.value),l.value=T(t.value.length)-T(o.value)}function B(H){const G=T(H);!s.value||H&&!G?b=H:s.value.scrollTop=G}const z=f.computed(()=>t.value.slice(a.value,o.value).map((H,G)=>{const j=G+a.value;return{raw:H,index:j,key:Gr(H,e.itemKey,j)}}));return f.watch(t,()=>{m=Array.from({length:t.value.length}),g=Array.from({length:t.value.length}),S.immediate(),L()},{deep:1}),{calculateVisibleItems:L,containerRef:s,markerRef:u,computedItems:z,paddingTop:i,paddingBottom:l,scrollToIndex:B,handleScroll:D,handleScrollend:P,handleItemResize:x}}function yEe(e,t){let n=e.length-1,r=0,a=0,o=null,i=-1;if(e[n]>1,o=e[a],o>t)n=a-1;else if(o[]},renderless:Boolean,...fK(),...nt(),...Yr()},"VVirtualScroll"),M_=Te()({name:"VVirtualScroll",props:bEe(),setup(e,t){let{slots:n}=t;const r=Ur("VVirtualScroll"),{dimensionStyles:a}=jr(e),{calculateVisibleItems:o,containerRef:i,markerRef:l,handleScroll:s,handleScrollend:u,handleItemResize:c,scrollToIndex:d,paddingTop:h,paddingBottom:v,computedItems:p}=hK(e,f.toRef(()=>e.items));return qa(()=>e.renderless,()=>{function m(){const y=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";i.value===document.documentElement?(document[y]("scroll",s,{passive:!0}),document[y]("scrollend",u)):(i.value?.[y]("scroll",s,{passive:!0}),i.value?.[y]("scrollend",u))}f.onMounted(()=>{i.value=p_(r.vnode.el,!0),m(!0)}),f.onScopeDispose(m)}),Ae(()=>{const m=p.value.map(g=>f.createVNode(dK,{key:g.key,renderless:e.renderless,"onUpdate:height":y=>c(g.index,y)},{default:y=>n.default?.({item:g.raw,index:g.index,...y})}));return e.renderless?f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:Oe(h.value)}},null),m,f.createElementVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:Oe(v.value)}},null)]):f.createElementVNode("div",{ref:i,class:f.normalizeClass(["v-virtual-scroll",e.class]),onScrollPassive:s,onScrollend:u,style:f.normalizeStyle([a.value,e.style])},[f.createElementVNode("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:Oe(h.value),paddingBottom:Oe(v.value)}},[m])])}),{calculateVisibleItems:o,scrollToIndex:d}}});function kN(e,t){const n=f.shallowRef(!1);let r;function a(l){cancelAnimationFrame(r),n.value=!0,r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{n.value=!1})})}async function o(){await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>{if(n.value){const s=f.watch(n,()=>{s(),l()})}else l()})}async function i(l){if(l.key==="Tab"&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(l.key))return;const s=e.value?.$el;if(!s)return;(l.key==="Home"||l.key==="End")&&s.scrollTo({top:l.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await o();const u=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(l.key==="PageDown"||l.key==="Home"){const c=s.getBoundingClientRect().top;for(const d of u)if(d.getBoundingClientRect().top>=c){d.focus();break}}else{const c=s.getBoundingClientRect().bottom;for(const d of[...u].reverse())if(d.getBoundingClientRect().bottom<=c){d.focus();break}}}return{onScrollPassive:a,onKeydown:i}}function AN(e){let{groups:t,onLeave:n}=e;function r(l){return l.type==="list"?l.contentRef.value?.$el:l.contentRef.value}function a(l){const s=r(l);return s?rf(s):[]}function o(l){const s=l.target,u=l.shiftKey?"backward":"forward",c=t.map(a),d=t.map(v=>v.type==="list"?v.contentRef.value?.$el:v.contentRef.value).findIndex(v=>v?.contains(s)),h=i(c,d,u,s);if(h===null){const v=t[d],p=c[d];(v.type==="list"||(u==="forward"?p.at(-1)===l.target:p.at(0)===l.target))&&n()}else{l.preventDefault(),l.stopImmediatePropagation();const v=t[h];if(v.type==="list"&&f.toValue(v.displayItemsCount)>0)v.contentRef.value?.focus(0);else{const p=u==="forward";c[h].at(p?0:-1).focus()}}}function i(l,s,u,c){const d=t[s],h=l[s];if(d.type!=="list"&&!(u==="forward"?h.at(-1)===c:h.at(0)===c))return null;const v=u==="forward"?1:-1;for(let p=s+v;p>=0&&p0||m.type==="list"&&f.toValue(m.displayItemsCount)>0)return p}return null}return{onTabKeydown:o}}const wEe=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let a=e.indexOf(t);for(;~a;)r.push([a,a+t.length]),a=e.indexOf(t,a+t.length);return r.length?r:-1};function EN(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const Ev=ie({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function SEe(e,t,n){const r=[],a=n?.default??wEe,o=n?.filterKeys?Kn(n.filterKeys):!1,i=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let l=[];e:for(let s=0;s0)&&!n?.noFilter){let p=!1;if(typeof u=="object"){if(u.type==="divider"||u.type==="subheader"){(l.at(-1)?.type!=="divider"||u.type!=="subheader")&&(l=[]),l.push({index:s,matches:{},type:u.type});continue}const y=o||Object.keys(c);p=y.length===i;for(const b of y){const w=Gr(c,b),S=n?.customKeyFilter?.[b];if(v=S?S(w,t,u):a(w,t,u),v!==-1&&v!==!1)S?d[b]=EN(v,t):h[b]=EN(v,t);else if(n?.filterMode==="every")continue e}}else v=a(u,t,u),v!==-1&&v!==!1&&(h.title=EN(v,t));const m=Object.keys(h).length,g=Object.keys(d).length;if(!m&&!g||n?.filterMode==="union"&&g!==i&&!m||n?.filterMode==="intersection"&&(g!==i||!m&&i>0&&!p))continue}l.length&&(r.push(...l),l=[]),r.push({index:s,matches:{...h,...d}})}return r}function Iv(e,t,n,r){const a=f.shallowRef([]),o=f.shallowRef(new Map),i=f.computed(()=>r?.transform?f.unref(t).map(s=>[s,r.transform(s)]):f.unref(t));f.watchEffect(()=>{const s=typeof n=="function"?n():f.unref(n),u=typeof s!="string"&&typeof s!="number"?"":String(s),c=SEe(i.value,u,{customKeyFilter:{...e.customKeyFilter,...f.unref(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=f.unref(t),h=[],v=new Map;c.forEach(p=>{let{index:m,matches:g}=p;const y=d[m];h.push(y),v.set(y.value,g)}),a.value=h,o.value=v});function l(s){return o.value.get(s.value)}return{filteredItems:a,filteredMatches:o,getMatches:l}}function IN(e,t,n){return n==null||!n.length?t:n.map((r,a)=>{const o=a===0?0:n[a-1][1],i=[f.createElementVNode("span",{class:f.normalizeClass(`${e}__unmask`)},[t.slice(o,r[0])]),f.createElementVNode("span",{class:f.normalizeClass(`${e}__mask`)},[t.slice(r[0],r[1])])];return a===n.length-1&&i.push(f.createElementVNode("span",{class:f.normalizeClass(`${e}__unmask`)},[t.slice(r[1])])),f.createElementVNode(f.Fragment,null,[i])})}const xEe=ie({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function MN(e,t){const n=f.useId(),r=f.computed(()=>`menu-${n}`),a=f.toRef(()=>f.toValue(t)),o=f.toRef(()=>r.value);return{menuId:r,ariaExpanded:a,ariaControls:o}}const DN=ie({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:st,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...xEe(),...zj({itemChildren:!1})},"Select"),CEe=ie({search:String,...Ev({filterKeys:["title"]}),...DN(),...Kt(mw({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...Rc({transition:{component:g_}})},"VSelect"),Jg=Te()({name:"VSelect",props:CEe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0,"update:search":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),a=f.ref(),o=f.ref(),i=f.ref(),l=f.ref(),s=f.ref(),{items:u,transformIn:c,transformOut:d}=cN(e),h=ot(e,"search",""),{filteredItems:v,getMatches:p}=Iv(e,u,()=>h.value),m=ot(e,"modelValue",[],ee=>c(ee===null?[null]:Kn(ee)),ee=>{const be=d(ee);return e.multiple?be:be[0]??null}),g=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(m.value):typeof e.counterValue=="number"?e.counterValue:m.value.length),y=Xg(e),b=_N(e),w=f.computed(()=>m.value.map(ee=>ee.value)),S=f.shallowRef(!1),_=f.toRef(()=>e.closableChips&&!y.isReadonly.value&&!y.isDisabled.value),{InputIcon:x}=lw(e);let T="",A=0,E;const I=f.computed(()=>{const ee=h.value?v.value:u.value;return e.hideSelected?ee.filter(be=>!m.value.some(Ie=>(e.valueComparator||Ia)(Ie,be))):ee}),M=f.computed(()=>e.hideNoData&&!I.value.length||y.isReadonly.value||y.isDisabled.value),N=ot(e,"menu"),D=f.computed({get:()=>N.value,set:ee=>{N.value&&!ee&&o.value?.ΨopenChildren.size||ee&&M.value||(N.value=ee)}}),{menuId:P,ariaExpanded:O,ariaControls:L}=MN(e,D),R=f.computed(()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),B=f.ref(),z=kN(B,a),{onTabKeydown:H}=AN({groups:[{type:"element",contentRef:i},{type:"list",contentRef:B,displayItemsCount:()=>I.value.length},{type:"element",contentRef:l}],onLeave:()=>{D.value=!1,a.value?.focus()}});function G(ee){e.openOnClear&&(D.value=!0)}function j(){M.value||(D.value=!D.value)}function U(ee){ee.key==="Tab"&&H(ee),B.value?.$el.contains(ee.target)&&Fg(ee)&&Y(ee)}function Y(ee){if(!ee.key||y.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(ee.key)&&ee.preventDefault(),["Enter","ArrowDown"," "].includes(ee.key)&&(D.value=!0),["Escape","Tab"].includes(ee.key)&&(D.value=!1),e.clearable&&ee.key==="Backspace"){ee.preventDefault(),m.value=[],G();return}ee.key==="Home"?B.value?.focus("first"):ee.key==="End"&&B.value?.focus("last");const be=1e3;if(!Fg(ee))return;const Ie=performance.now();Ie-E>be&&(T="",A=0),T+=ee.key.toLowerCase(),E=Ie;const He=I.value;function yt(){let oe=St();return oe||T.at(-1)===T.at(-2)&&(T=T.slice(0,-1),A++,oe=St(),oe)||(A=0,oe=St(),oe)?oe:(T=ee.key.toLowerCase(),St())}function St(){for(let oe=A;oe1&&arguments[1]!==void 0?arguments[1]:!0;if(!ee.props.disabled)if(e.multiple){const Ie=m.value.findIndex(yt=>(e.valueComparator||Ia)(yt.value,ee.value)),He=be??!~Ie;if(~Ie){const yt=He?[...m.value,ee]:[...m.value];yt.splice(Ie,1),m.value=yt}else He&&(m.value=[...m.value,ee])}else{const Ie=be!==!1;m.value=Ie?[ee]:[],f.nextTick(()=>{D.value=!1})}}function ne(ee){const be=ee.target;a.value?.$el.contains(be)||(D.value=!1)}function $(){return I.value.findIndex(ee=>m.value.some(be=>(e.valueComparator||Ia)(be.value,ee.value)))}function ae(){if(!m.value.length)return-1;const ee=e.valueComparator||Ia;let be=0;for(const Ie of I.value){if(m.value.some(yt=>ee(yt.value,Ie.value)))return Ie.props.disabled?-1:be;Ie.props.disabled||be++}return-1}function de(){if(e.eager&&s.value?.calculateVisibleItems(),B.value&&S.value){const ee=ae();B.value.focus(ee>=0?ee:"first")}}function ve(){h.value="",S.value&&a.value?.focus()}function ge(ee){S.value=!0}function Se(ee){a.value?.$el.contains(ee.relatedTarget)||(S.value=!1)}function Re(ee){if(ee==null)m.value=[];else if(Bg(a.value,":autofill")||Bg(a.value,":-webkit-autofill")){const be=u.value.find(Ie=>Ie.title===ee);be&&Z(be)}else a.value&&(a.value.value="")}return f.watch(D,()=>{if(!e.hideSelected&&D.value&&m.value.length){const ee=$();Bn&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{ee>=0&&s.value?.scrollToIndex(ee)})}}),f.watch(u,(ee,be)=>{D.value||S.value&&e.hideNoData&&!be.length&&ee.length&&(D.value=!0)}),Ae(()=>{const ee=!!(e.chips||n.chip),be=!!(!e.hideNoData||I.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),Ie=m.value.length>0,He=na.filterProps(e),yt=Ie||!S.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder,St={search:h,filteredItems:v.value};return f.createVNode(na,f.mergeProps({ref:a},He,{modelValue:m.value.map(X=>X.props.title).join(", "),name:void 0,"onUpdate:modelValue":Re,focused:S.value,"onUpdate:focused":X=>S.value=X,validationValue:m.externalValue,counterValue:g.value,dirty:Ie,class:["v-select",{"v-select--active-menu":D.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":m.value.length,"v-select--selection-slot":!!n.selection},e.class],style:e.style,inputmode:"none",placeholder:yt,"onClick:clear":G,"onMousedown:control":j,onBlur:ne,onKeydown:Y,"aria-expanded":O.value,"aria-controls":L.value}),{...n,default:X=>{let{id:te}=X;return f.createElementVNode(f.Fragment,null,[f.createElementVNode("select",{hidden:!0,multiple:e.multiple,name:b.fieldName.value},[u.value.map(pe=>f.createElementVNode("option",{key:pe.value,value:pe.value,selected:w.value.includes(pe.value)},null))]),f.createVNode(Uo,f.mergeProps({id:P.value,ref:o,modelValue:D.value,"onUpdate:modelValue":pe=>D.value=pe,activator:"parent",contentClass:"v-select__content",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:de,onAfterLeave:ve},R.value),{default:()=>[f.createVNode(Uc,{onFocusin:ge,onFocusout:Se,onKeydown:U},{default:()=>[n["menu-header"]&&f.createElementVNode("header",{ref:i},[n["menu-header"](St)]),be&&f.createVNode(pi,f.mergeProps({key:"select-list",ref:B,selected:w.value,selectStrategy:e.multiple?"independent":"single-independent",tabindex:"-1",selectable:!!I.value.length,"aria-live":"polite","aria-labelledby":`${te.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},z,e.listProps),{default:()=>[n["prepend-item"]?.(),!I.value.length&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Pr,{key:"no-data",title:r(e.noDataText)},null)),f.createVNode(M_,{ref:s,renderless:!0,items:I.value,itemKey:"value"},{default:pe=>{let{item:oe,index:Le,itemRef:je}=pe;const fe=$_e(oe.props),_e=f.mergeProps(oe.props,{ref:je,key:oe.value,onClick:()=>Z(oe,null),"aria-posinset":Le+1,"aria-setsize":I.value.length});return oe.type==="divider"?n.divider?.({props:oe.raw,index:Le})??f.createVNode(Ma,f.mergeProps(oe.props,{key:`divider-${Le}`}),null):oe.type==="subheader"?n.subheader?.({props:oe.raw,index:Le})??f.createVNode(kv,f.mergeProps(oe.props,{key:`subheader-${Le}`}),null):n.item?.({item:oe,index:Le,props:_e})??f.createVNode(Pr,f.mergeProps(_e,{role:"option"}),{prepend:$e=>{let{isSelected:le}=$e;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Rs,{key:oe.value,modelValue:le,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:ue=>ue.preventDefault()},null):void 0,fe.prependAvatar&&f.createVNode(hl,{image:fe.prependAvatar},null),fe.prependIcon&&f.createVNode(Ct,{icon:fe.prependIcon},null)])},title:()=>h.value?IN("v-select",oe.title,p(oe)?.title):oe.title})}}),n["append-item"]?.()]}),n["menu-footer"]&&f.createElementVNode("footer",{ref:l},[n["menu-footer"](St)])]})]}),m.value.map((pe,oe)=>{function Le($e){$e.stopPropagation(),$e.preventDefault(),Z(pe,!1)}const je=f.mergeProps(pl.filterProps(pe.props),{"onClick:close":Le,onKeydown($e){$e.key!=="Enter"&&$e.key!==" "||($e.preventDefault(),$e.stopPropagation(),Le($e))},onMousedown($e){$e.preventDefault(),$e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),fe=ee?!!n.chip:!!n.selection,_e=fe?l_(ee?n.chip({item:pe,index:oe,props:je}):n.selection({item:pe,index:oe})):void 0;if(!(fe&&!_e))return f.createElementVNode("div",{key:pe.value,class:"v-select__selection"},[ee?n.chip?f.createVNode(zt,{key:"chip-defaults",defaults:{VChip:{closable:_.value,size:"small",text:pe.title}}},{default:()=>[_e]}):f.createVNode(pl,f.mergeProps({key:"chip",closable:_.value,size:"small",text:pe.title,disabled:pe.props.disabled},je),null):_e??f.createElementVNode("span",{class:"v-select__selection-text"},[pe.title,e.multiple&&oe!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),a=f.ref(),o=f.shallowRef(!1),i=f.shallowRef(!0),l=f.shallowRef(!1),s=f.ref(),u=f.ref(),c=f.shallowRef(-1),d=f.shallowRef(null),{items:h,transformIn:v,transformOut:p}=cN(e),{textColorClasses:m,textColorStyles:g}=Wa(()=>a.value?.color),{InputIcon:y}=lw(e),b=ot(e,"search",""),w=ot(e,"modelValue",[],X=>v(X===null?[null]:Kn(X)),X=>{const te=p(X);return e.multiple?te:te[0]??null}),S=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:w.value.length),_=Xg(e),{filteredItems:x,getMatches:T}=Iv(e,h,()=>d.value??(i.value?"":b.value)),A=f.computed(()=>e.hideSelected&&d.value===null?x.value.filter(X=>!w.value.some(te=>te.value===X.value)):x.value),E=f.toRef(()=>e.closableChips&&!_.isReadonly.value&&!_.isDisabled.value),I=f.computed(()=>!!(e.chips||n.chip)),M=f.computed(()=>I.value||!!n.selection),N=f.computed(()=>w.value.map(X=>X.props.value)),D=f.computed(()=>A.value.find(X=>X.type==="item"&&!X.props.disabled)),P=f.computed(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&b.value===D.value?.title)&&A.value.length>0&&!i.value&&!l.value),O=f.computed(()=>e.hideNoData&&!A.value.length||_.isReadonly.value||_.isDisabled.value),L=ot(e,"menu"),R=f.computed({get:()=>L.value,set:X=>{L.value&&!X&&s.value?.ΨopenChildren.size||X&&O.value||(L.value=X)}}),{menuId:B,ariaExpanded:z,ariaControls:H}=MN(e,R),G=f.ref(),j=f.ref(),U=f.ref(),Y=kN(G,a),{onTabKeydown:Z}=AN({groups:[{type:"element",contentRef:j},{type:"list",contentRef:G,displayItemsCount:()=>A.value.length},{type:"element",contentRef:U}],onLeave:()=>{R.value=!1,a.value?.focus()}});function ne(X){e.openOnClear&&(R.value=!0),b.value=""}function $(){O.value||(R.value=!0)}function ae(X){O.value||(o.value&&(X.preventDefault(),X.stopPropagation()),R.value=!R.value)}function de(X){X.key==="Tab"&&Z(X),G.value?.$el.contains(X.target)&&(Fg(X)||X.key==="Backspace")&&a.value?.focus()}function ve(X){if(_.isReadonly.value)return;const te=a.value?.selectionStart,pe=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(X.key)&&X.preventDefault(),["Enter","ArrowDown"].includes(X.key)&&(R.value=!0),["Escape"].includes(X.key)&&(R.value=!1),P.value&&["Enter","Tab"].includes(X.key)&&D.value&&!w.value.some(oe=>{let{value:Le}=oe;return Le===D.value.value})&&St(D.value),X.key==="ArrowDown"&&P.value&&G.value?.focus("next"),["Backspace","Delete"].includes(X.key)){if(!e.multiple&&M.value&&w.value.length>0&&!b.value)return St(w.value[0],!1);if(~c.value){X.preventDefault();const oe=c.value;St(w.value[c.value],!1),c.value=oe>=pe-1?pe-2:oe}else X.key==="Backspace"&&!b.value&&(c.value=pe-1);return}if(e.multiple)if(X.key==="ArrowLeft"){if(c.value<0&&te&&te>0)return;const oe=c.value>-1?c.value-1:pe-1;if(w.value[oe])c.value=oe;else{const Le=b.value?.length??null;c.value=-1,a.value?.setSelectionRange(Le,Le)}}else if(X.key==="ArrowRight"){if(c.value<0)return;const oe=c.value+1;w.value[oe]?c.value=oe:(c.value=-1,a.value?.setSelectionRange(0,0))}else~c.value&&Fg(X)&&(c.value=-1)}function ge(X){if(Bg(a.value,":autofill")||Bg(a.value,":-webkit-autofill")){const te=h.value.find(pe=>pe.title===X.target.value);te&&St(te)}}function Se(){e.eager&&u.value?.calculateVisibleItems()}function Re(){o.value&&(i.value=!0,a.value?.focus()),d.value=null}function ee(X){o.value=!0,setTimeout(()=>{l.value=!0})}function be(X){l.value=!1,a.value?.$el.contains(X.relatedTarget)||(o.value=!1)}function Ie(X){(X==null||X===""&&!e.multiple&&!M.value)&&(w.value=[])}function He(X){s.value?.contentEl?.contains(X.relatedTarget)&&(o.value=!0)}const yt=f.shallowRef(!1);function St(X){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!X||X.props.disabled))if(e.multiple){const pe=w.value.findIndex(Le=>(e.valueComparator||Ia)(Le.value,X.value)),oe=te??!~pe;if(~pe){const Le=oe?[...w.value,X]:[...w.value];Le.splice(pe,1),w.value=Le}else oe&&(w.value=[...w.value,X]);e.clearOnSelect&&(b.value="")}else{const pe=te!==!1;w.value=pe?[X]:[],d.value=i.value?"":b.value??"",b.value=pe&&!M.value?X.title:"",f.nextTick(()=>{R.value=!1,i.value=!0})}}return f.watch(o,(X,te)=>{X!==te&&(X?(yt.value=!0,b.value=e.multiple||M.value?"":String(w.value.at(-1)?.props.title??""),i.value=!0,f.nextTick(()=>yt.value=!1)):(!e.multiple&&b.value==null&&(w.value=[]),R.value=!1,!i.value&&b.value&&(d.value=b.value),b.value="",c.value=-1))}),f.watch(b,X=>{!o.value||yt.value||(X&&(R.value=!0),i.value=!X)}),f.watch(R,X=>{if(!e.hideSelected&&X&&w.value.length&&i.value){const te=A.value.findIndex(pe=>w.value.some(oe=>pe.value===oe.value));Bn&&window.requestAnimationFrame(()=>{te>=0&&u.value?.scrollToIndex(te)})}X&&(d.value=null)}),f.watch(h,(X,te)=>{R.value||o.value&&!te.length&&X.length&&(R.value=!0)}),Ae(()=>{const X=!!(!e.hideNoData||A.value.length||n["prepend-item"]||n["append-item"]||n["no-data"]),te=w.value.length>0,pe=na.filterProps(e),oe={search:b,filteredItems:x.value};return f.createVNode(na,f.mergeProps({ref:a},pe,{modelValue:b.value,"onUpdate:modelValue":[Le=>b.value=Le,Ie],focused:o.value,"onUpdate:focused":Le=>o.value=Le,validationValue:w.externalValue,counterValue:S.value,dirty:te,onChange:ge,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":R.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!M.value,"v-autocomplete--selecting-index":c.value>-1},e.class],style:e.style,readonly:_.isReadonly.value,placeholder:te?void 0:e.placeholder,"onClick:clear":ne,"onMousedown:control":$,onKeydown:ve,onBlur:He,"aria-expanded":z.value,"aria-controls":H.value}),{...n,default:Le=>{let{id:je}=Le;return f.createElementVNode(f.Fragment,null,[f.createVNode(Uo,f.mergeProps({id:B.value,ref:s,modelValue:R.value,"onUpdate:modelValue":fe=>R.value=fe,activator:"parent",contentClass:"v-autocomplete__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:Se,onAfterLeave:Re},e.menuProps),{default:()=>[f.createVNode(Uc,{onFocusin:ee,onKeydown:de},{default:()=>[n["menu-header"]&&f.createElementVNode("header",{ref:j},[n["menu-header"](oe)]),X&&f.createVNode(pi,f.mergeProps({key:"autocomplete-list",ref:G,filterable:!0,selected:N.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:fe=>fe.preventDefault(),onFocusout:be,tabindex:"-1",selectable:!!A.value.length,"aria-live":"polite","aria-labelledby":`${je.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},Y,e.listProps),{default:()=>[n["prepend-item"]?.(),!A.value.length&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Pr,{key:"no-data",title:r(e.noDataText)},null)),f.createVNode(M_,{ref:u,renderless:!0,items:A.value,itemKey:"value"},{default:fe=>{let{item:_e,index:$e,itemRef:le}=fe;const ue=f.mergeProps(_e.props,{ref:le,key:_e.value,active:P.value&&_e===D.value?!0:void 0,onClick:()=>St(_e,null),"aria-posinset":$e+1,"aria-setsize":A.value.length});return _e.type==="divider"?n.divider?.({props:_e.raw,index:$e})??f.createVNode(Ma,f.mergeProps(_e.props,{key:`divider-${$e}`}),null):_e.type==="subheader"?n.subheader?.({props:_e.raw,index:$e})??f.createVNode(kv,f.mergeProps(_e.props,{key:`subheader-${$e}`}),null):n.item?.({item:_e,index:$e,props:ue})??f.createVNode(Pr,f.mergeProps(ue,{role:"option"}),{prepend:xe=>{let{isSelected:Ve}=xe;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Rs,{key:_e.value,modelValue:Ve,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:Qe=>Qe.preventDefault()},null):void 0,_e.props.prependAvatar&&f.createVNode(hl,{image:_e.props.prependAvatar},null),_e.props.prependIcon&&f.createVNode(Ct,{icon:_e.props.prependIcon},null)])},title:()=>i.value?_e.title:IN("v-autocomplete",_e.title,T(_e)?.title)})}}),n["append-item"]?.()]}),n["menu-footer"]&&f.createElementVNode("footer",{ref:U},[n["menu-footer"](oe)])]})]}),w.value.map((fe,_e)=>{function $e(Ve){Ve.stopPropagation(),Ve.preventDefault(),St(fe,!1)}const le=f.mergeProps(pl.filterProps(fe.props),{"onClick:close":$e,onKeydown(Ve){Ve.key!=="Enter"&&Ve.key!==" "||(Ve.preventDefault(),Ve.stopPropagation(),$e(Ve))},onMousedown(Ve){Ve.preventDefault(),Ve.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),ue=I.value?!!n.chip:!!n.selection,xe=ue?l_(I.value?n.chip({item:fe,index:_e,props:le}):n.selection({item:fe,index:_e})):void 0;if(!(ue&&!xe))return f.createElementVNode("div",{key:fe.value,class:f.normalizeClass(["v-autocomplete__selection",_e===c.value&&["v-autocomplete__selection--selected",m.value]]),style:f.normalizeStyle(_e===c.value?g.value:{})},[I.value?n.chip?f.createVNode(zt,{key:"chip-defaults",defaults:{VChip:{closable:E.value,size:"small",text:fe.title}}},{default:()=>[xe]}):f.createVNode(pl,f.mergeProps({key:"chip",closable:E.value,size:"small",text:fe.title,disabled:fe.props.disabled},le),null):xe??f.createElementVNode("span",{class:"v-autocomplete__selection-text"},[fe.title,e.multiple&&_ee.color),{roundedClasses:a}=cr(e),{t:o}=An(),{textColorClasses:i,textColorStyles:l}=Wa(()=>e.textColor),{themeClasses:s}=bv(),{locationStyles:u}=of(e,!0,d=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(d)?Number(e.offsetY??0):["left","right"].includes(d)?Number(e.offsetX??0):0)),{dimensionStyles:c}=jr(e);return Ae(()=>{const d=Number(e.content),h=!e.max||isNaN(d)?e.content:d<=Number(e.max)?d:`${e.max}+`,[v,p]=mP(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return f.createVNode(e.tag,f.mergeProps({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},p,{style:e.style}),{default:()=>[f.createElementVNode("div",{class:"v-badge__wrapper"},[t.slots.default?.(),f.createVNode(Wo,{transition:e.transition},{default:()=>[f.withDirectives(f.createElementVNode("span",f.mergeProps({class:["v-badge__badge",s.value,n.value,a.value,i.value],style:[r.value,l.value,c.value,e.inline?{}:u.value],"aria-atomic":"true","aria-label":o(e.label,d),"aria-live":"polite",role:"status"},v),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?f.createVNode(Ct,{icon:e.icon},null):h]),[[f.vShow,e.modelValue]])]})])]})}),{}}}),kEe=ie({color:String,density:String,...nt()},"VBannerActions"),pK=Te()({name:"VBannerActions",props:kEe(),setup(e,t){let{slots:n}=t;return _r({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-banner-actions",e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),mK=Oc("v-banner-text"),AEe=ie({avatar:String,bgColor:String,color:String,icon:st,lines:String,stacked:Boolean,sticky:Boolean,text:String,...xo(),...nt(),...Tr(),...Yr(),..._v({mobile:null}),...Kr(),..._u(),...Yg(),...$n(),...Ht(),...pn()},"VBanner"),EEe=Te()({name:"VBanner",props:AEe(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.bgColor),{borderClasses:o}=Go(e),{densityClasses:i}=$a(e),{displayClasses:l,mobile:s}=vl(e),{dimensionStyles:u}=jr(e),{elevationClasses:c}=pa(e),{locationStyles:d}=of(e),{positionClasses:h}=jg(e),{roundedClasses:v}=cr(e),{themeClasses:p}=In(e),m=f.toRef(()=>e.color),g=f.toRef(()=>e.density);_r({VBannerActions:{color:m,density:g}}),Ae(()=>{const y=!!(e.text||n.text),b=!!(e.avatar||e.icon),w=!!(b||n.prepend);return f.createVNode(e.tag,{class:f.normalizeClass(["v-banner",{"v-banner--stacked":e.stacked||s.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},p.value,r.value,o.value,i.value,l.value,c.value,h.value,v.value,e.class]),style:f.normalizeStyle([a.value,u.value,d.value,e.style]),role:"banner"},{default:()=>[w&&f.createElementVNode("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!b,defaults:{VAvatar:{color:m.value,density:g.value,icon:e.icon,image:e.avatar}}},n.prepend):f.createVNode(hl,{key:"prepend-avatar",color:m.value,density:g.value,icon:e.icon,image:e.avatar},null)]),f.createElementVNode("div",{class:"v-banner__content"},[y&&f.createVNode(mK,{key:"text"},{default:()=>[n.text?.()??e.text]}),n.default?.()]),n.actions&&f.createVNode(pK,{key:"actions"},n.actions)]})})}}),IEe=ie({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...xo(),...nt(),...Tr(),...Kr(),...$n(),...mv({name:"bottom-navigation"}),...Ht({tag:"header"}),...Sv({selectedClass:"v-btn--selected"}),...pn()},"VBottomNavigation"),MEe=Te()({name:"VBottomNavigation",props:IEe(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=bv(),{borderClasses:a}=Go(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.bgColor),{densityClasses:l}=$a(e),{elevationClasses:s}=pa(e),{roundedClasses:u}=cr(e),{ssrBootStyles:c}=wv(),d=f.computed(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),h=ot(e,"active",e.active),{layoutItemStyles:v}=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>"bottom"),layoutSize:f.toRef(()=>h.value?d.value:0),elementSize:d,active:h,absolute:f.toRef(()=>e.absolute)});return sf(e,UP),_r({VBtn:{baseColor:f.toRef(()=>e.baseColor),color:f.toRef(()=>e.color),density:f.toRef(()=>e.density),stacked:f.toRef(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-bottom-navigation",{"v-bottom-navigation--active":h.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},r.value,o.value,a.value,l.value,s.value,u.value,e.class]),style:f.normalizeStyle([i.value,v.value,{height:Oe(d.value)},c.value,e.style])},{default:()=>[n.default&&f.createElementVNode("div",{class:"v-bottom-navigation__content"},[n.default()])]})),{}}}),gK=ie({fullscreen:Boolean,scrollable:Boolean,...Kt(hw({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:g_},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),ku=Te()({name:"VDialog",props:gK(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),{scopeId:o}=Av(),i=f.ref();function l(){n("afterEnter"),(e.scrim||e.retainFocus)&&i.value?.contentEl&&!i.value.contentEl.contains(document.activeElement)&&i.value.contentEl.focus({preventScroll:!0})}function s(){n("afterLeave")}return f.watch(a,async u=>{u||(await f.nextTick(),i.value.activatorEl?.focus({preventScroll:!0}))}),Ae(()=>{const u=Ri.filterProps(e),c=f.mergeProps({"aria-haspopup":"dialog"},e.activatorProps),d=f.mergeProps({tabindex:-1},e.contentProps);return f.createVNode(Ri,f.mergeProps({ref:i,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},u,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,"aria-modal":"true",activatorProps:c,contentProps:d,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:l,onAfterLeave:s},o),{activator:r.activator,default:function(){for(var h=arguments.length,v=new Array(h),p=0;p[r.default?.(...v)]})}})}),ma({},i)}}),DEe=ie({inset:Boolean,...gK({transition:"bottom-sheet-transition"})},"VBottomSheet"),VEe=Te()({name:"VBottomSheet",props:DEe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue");return Ae(()=>{const a=ku.filterProps(e);return f.createVNode(ku,f.mergeProps(a,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:r.value,"onUpdate:modelValue":o=>r.value=o,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)}),{}}}),PEe=ie({divider:[Number,String],...nt()},"VBreadcrumbsDivider"),yK=Te()({name:"VBreadcrumbsDivider",props:PEe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createElementVNode("li",{"aria-hidden":"true",class:f.normalizeClass(["v-breadcrumbs-divider",e.class]),style:f.normalizeStyle(e.style)},[n?.default?.()??e.divider])),{}}}),NEe=ie({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...nt(),...vi(Yr(),["width","maxWidth"]),...aw(),...Ht({tag:"li"})},"VBreadcrumbsItem"),bK=Te()({name:"VBreadcrumbsItem",props:NEe(),setup(e,t){let{slots:n,attrs:r}=t;const a=rw(e,r),o=f.computed(()=>e.active||a.isActive?.value),{dimensionStyles:i}=jr(e),{textColorClasses:l,textColorStyles:s}=Wa(()=>o.value?e.activeColor:e.color);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-breadcrumbs-item",{"v-breadcrumbs-item--active":o.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:o.value&&e.activeClass},l.value,e.class]),style:f.normalizeStyle([s.value,i.value,e.style]),"aria-current":o.value?"page":void 0},{default:()=>[a.isLink.value?f.createElementVNode("a",f.mergeProps({class:"v-breadcrumbs-item--link",onClick:a.navigate.value},a.linkProps),[n.default?.()??e.title]):n.default?.()??e.title]})),{}}}),LEe=ie({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:st,items:{type:Array,default:()=>[]},...nt(),...Tr(),...$n(),...Ht({tag:"ul"})},"VBreadcrumbs"),wK=Te()({name:"VBreadcrumbs",props:LEe(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.bgColor),{densityClasses:o}=$a(e),{roundedClasses:i}=cr(e);_r({VBreadcrumbsDivider:{divider:f.toRef(()=>e.divider)},VBreadcrumbsItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:f.toRef(()=>e.activeColor),color:f.toRef(()=>e.color),disabled:f.toRef(()=>e.disabled)}});const l=f.computed(()=>e.items.map(s=>typeof s=="string"?{item:{title:s},raw:s}:{item:s,raw:s}));return Ae(()=>{const s=!!(n.prepend||e.icon);return f.createVNode(e.tag,{class:f.normalizeClass(["v-breadcrumbs",r.value,o.value,i.value,e.class]),style:f.normalizeStyle([a.value,e.style])},{default:()=>[s&&f.createElementVNode("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):f.createVNode(Ct,{key:"prepend-icon",start:!0,icon:e.icon},null)]),l.value.map((u,c,d)=>{let{item:h,raw:v}=u;return f.createElementVNode(f.Fragment,null,[n.item?.({item:h,index:c})??f.createVNode(bK,f.mergeProps({key:c,disabled:c>=d.length-1},typeof h=="string"?{title:h}:h),{default:n.title?()=>n.title?.({item:h,index:c}):void 0}),cn.divider?.({item:v,index:c}):void 0})])}),n.default?.()]})}),{}}}),OEe=ie({active:{type:Boolean,default:void 0},activeColor:String,activeIcon:[String,Function,Object],activeVariant:String,baseVariant:{type:String,default:"tonal"},disabled:Boolean,height:[Number,String],width:[Number,String],hideOverlay:Boolean,icon:[String,Function,Object],iconColor:String,loading:Boolean,opacity:[Number,String],readonly:Boolean,rotate:[Number,String],size:{type:[Number,String],default:"default"},sizes:{type:Array,default:()=>[["x-small",16],["small",24],["default",40],["large",48],["x-large",56]]},text:{type:[String,Number,Boolean],default:void 0},...xo(),...nt(),...Kr(),...cj(),...$n(),...Ht({tag:"button"}),...pn(),...dl({variant:"flat"})},"VIconBtn"),SK=Te()({name:"VIconBtn",props:OEe(),emits:{"update:active":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"active"),{themeClasses:o}=In(e),{borderClasses:i}=Go(e),{elevationClasses:l}=pa(e),{roundedClasses:s}=cr(e),{colorClasses:u,colorStyles:c,variantClasses:d}=zc(()=>({color:(()=>{if(!e.disabled)return a.value?e.activeColor??e.color??"surface-variant":e.color})(),variant:a.value===void 0?e.variant:a.value?e.activeVariant??e.variant:e.baseVariant??e.variant})),h=new Map(e.sizes);function v(){e.disabled||e.readonly||a.value===void 0||e.tag==="a"&&n.href||(a.value=!a.value)}return Ae(()=>{const p=a.value?e.activeIcon??e.icon:e.icon,m=e.size,y=h.has(m)?h.get(m):m,b=e.height??y,w=e.width??y,{iconSize:S}=dj(e,()=>new Map(e.iconSizes).get(m)),_={icon:p,size:S.value,color:e.iconColor,opacity:e.opacity};return f.createVNode(e.tag,{type:e.tag==="button"?"button":void 0,class:f.normalizeClass([{"v-icon-btn":!0,"v-icon-btn--active":a.value,"v-icon-btn--disabled":e.disabled,"v-icon-btn--loading":e.loading,"v-icon-btn--readonly":e.readonly,[`v-icon-btn--${e.size}`]:!0},o.value,u.value,i.value,l.value,s.value,d.value,e.class]),style:f.normalizeStyle([{"--v-icon-btn-rotate":Oe(e.rotate,"deg"),"--v-icon-btn-height":Oe(b),"--v-icon-btn-width":Oe(w)},c.value,e.style]),tabindex:e.disabled||e.readonly?-1:0,onClick:v},{default:()=>[Hc(!e.hideOverlay,"v-icon-btn"),f.createElementVNode("div",{class:"v-icon-btn__content","data-no-activator":""},[!r.default&&p?f.createVNode(Ct,f.mergeProps({key:"content-icon"},_),null):f.createVNode(zt,{key:"content-defaults",disabled:!p,defaults:{VIcon:{..._}}},{default:()=>r.default?.()??f.toDisplayString(e.text)})]),!!e.loading&&f.createElementVNode("span",{key:"loader",class:"v-icon-btn__loader"},[r.loader?.()??f.createVNode(uf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:"disable-shrink",width:"2",size:S.value},null)])]})}),{}}});function REe(e){return e%4===0&&e%100!==0||e%400===0}const xK=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,CK=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,BEe=[0,31,28,31,30,31,30,31,31,30,31,30,31],FEe=[0,31,29,31,30,31,30,31,31,30,31,30,31],HEe=28,zEe=31,VN=12,_K=1,D_=1,hf=7,TK=60,WEe=59,GEe=24*60,UEe=24,YEe=23,jEe=0,KEe=1e4,XEe=100,ZEe=100,JEe=1e4;function QEe(e,t,n){const r=Bi(e);return NK(r,t[0],PK),Fs(r),n&&Mv(r,n,r.hasTime),r}function qEe(e,t,n){const r=Bi(e);return NK(r,t[t.length-1]),Fs(r),n&&Mv(r,n,r.hasTime),r}function kK(e){const t=Bi(e);return t.day=D_,V_(t),Fs(t),t}function AK(e){const t=Bi(e);return t.day=LN(t.year,t.month),V_(t),Fs(t),t}function Qg(e){return isFinite(parseInt(e))}function $Ee(e){return typeof e=="number"&&isFinite(e)||!!CK.exec(e)||typeof e=="object"&&isFinite(e.hour)&&isFinite(e.minute)}function EK(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=CK.exec(e);return t?parseInt(t[1])*60+parseInt(t[3]||0):!1}else return typeof e=="object"?typeof e.hour!="number"||typeof e.minute!="number"?!1:e.hour*60+e.minute:!1}function qg(e){return typeof e=="number"&&isFinite(e)||typeof e=="string"&&!!xK.exec(e)||e instanceof Date}function Yc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;if(typeof e=="number"&&isFinite(e)&&(e=new Date(e)),e instanceof Date){const o=PN(e);return n&&Mv(o,n,o.hasTime),o}if(typeof e!="string"){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const r=xK.exec(e);if(!r){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const a={date:e,time:"",year:parseInt(r[1]),month:parseInt(r[2]),day:parseInt(r[4])||1,hour:parseInt(r[6])||0,minute:parseInt(r[8])||0,weekday:0,hasDay:!!r[4],hasTime:!!(r[6]&&r[8]),past:!1,present:!1,future:!1};return V_(a),Fs(a),n&&Mv(a,n,a.hasTime),a}function PN(e){return Fs({date:"",time:"",year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),weekday:e.getDay(),hour:e.getHours(),minute:e.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function ga(e){return e.year*KEe+e.month*XEe+e.day}function NN(e){return e.hour*ZEe+e.minute}function vf(e){return ga(e)*JEe+NN(e)}function Mv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ga(t),a=ga(e),o=r===a;return e.hasTime&&n&&o&&(r=NN(t),a=NN(e),o=r===a),e.past=ar,e}function IK(e){return e instanceof Date||typeof e=="number"&&isFinite(e)}function MK(e,t,n){return e.hasTime!==t&&(e.hasTime=t,t||(e.hour=YEe,e.minute=WEe,e.time=VK(e))),e}function DK(e,t,n){return e.hasTime=!0,e.hour=0,e.minute=0,ON(e,t),Fs(e),n&&Mv(e,n,!0),e}function V_(e){return e.weekday=eIe(e),e}function Fs(e){return e.time=VK(e),e.date=tIe(e),e}function eIe(e){if(e.hasDay){const t=Math.floor,n=e.day,r=(e.month+9)%VN+1,a=t(e.year/100),o=e.year%100-(e.month<=2?1:0);return((n+t(2.6*r-.2)-2*a+o+t(o/4)+t(a/4))%7+7)%7}return e.weekday}function LN(e,t){return REe(e)?FEe[t]:BEe[t]}function Bi(e){if(e==null)return null;const{date:t,time:n,year:r,month:a,day:o,weekday:i,hour:l,minute:s,hasDay:u,hasTime:c,past:d,present:h,future:v}=e;return{date:t,time:n,year:r,month:a,day:o,weekday:i,hour:l,minute:s,hasDay:u,hasTime:c,past:d,present:h,future:v}}function Dv(e,t){let n=String(e);for(;n.length=TK;)e.minute-=TK,e.hour++,e.hour>=UEe&&(pf(e),e.hour=jEe);return e}function pf(e){return e.day++,e.weekday=(e.weekday+1)%hf,e.day>HEe&&e.day>LN(e.year,e.month)&&(e.day=D_,e.month++,e.month>VN&&(e.month=_K,e.year++)),e}function PK(e){return e.day--,e.weekday=(e.weekday+6)%hf,e.day1&&arguments[1]!==void 0?arguments[1]:pf,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;for(;--n>=0;)t(e);return e}function nIe(e,t){const n=(t.year-e.year)*525600,r=(t.month-e.month)*43800,a=(t.day-e.day)*1440,o=(t.hour-e.hour)*60,i=t.minute-e.minute;return n+r+a+o+i}function NK(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pf,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:6;for(;e.weekday!==t&&--r>=0;)n(e);return e}function rIe(e){const t=[1,1,1,1,1,1,1],n=[0,0,0,0,0,0,0];for(let r=0;r4&&arguments[4]!==void 0?arguments[4]:42,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;const i=ga(t),l=[];let s=Bi(e),u=0,c=u===i;if(i"";return typeof Intl>"u"||typeof Intl.DateTimeFormat>"u"?n:(r,a)=>{try{return new Intl.DateTimeFormat(e||void 0,t(r,a)).format(RN(r))}catch{return""}}}function oIe(e){if(typeof e=="string"&&(e=e.split(",")),Array.isArray(e)){const t=e.map(a=>parseInt(a));if(t.length>hf||t.length===0)return!1;const n={};let r=!1;for(let a=0;a=hf)return!1;if(a>0){const i=o-t[a-1];if(i<0){if(r)return!1;r=!0}else if(i===0)return!1}if(n[o])return!1;n[o]=!0}return!0}return!1}function iIe(e){const t=f.reactive({now:Yc("0000-00-00 00:00",!0),today:Yc("0000-00-00",!0)}),n=f.computed(()=>e.now&&qg(e.now)?Yc(e.now,!0):null);function r(){t.now.present=t.today.present=!0,t.now.past=t.today.past=!1,t.now.future=t.today.future=!1}function a(){return PN(new Date)}function o(s,u){s.date!==u.date&&(u.year=s.year,u.month=s.month,u.day=s.day,u.weekday=s.weekday,u.date=s.date)}function i(s,u){s.time!==u.time&&(u.hour=s.hour,u.minute=s.minute,u.time=s.time)}function l(){const s=n.value||a();o(s,t.now),i(s,t.now),o(s,t.today)}return f.watch(n,l),l(),r(),{times:t,parsedNow:n,updateTimes:l,setPresent:r,getNow:a,updateDay:o,updateTime:i}}function yw(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 iIe(e,t,n){const r=[];let a=[];const o=PK(e),i=NK(e),l=n??gw(t)?.firstDay??0,s=(o.getDay()-l+7)%7,u=(i.getDay()-l+7)%7;for(let c=0;c0&&r.push(a),r}function yw(e,t,n){let r=(n??gw(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(Aa("Invalid firstDayOfWeek, expected discrete number in range [0-6]"),r=0);const a=new Date(e);for(;a.getDay()!==r;)a.setDate(a.getDate()-1);return a}function lIe(e,t){const n=new Date(e),r=((gw(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function PK(e){return new Date(e.getFullYear(),e.getMonth(),1)}function NK(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function sIe(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const uIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function LK(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(uIe.test(e))return sIe(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const OK=new Date(2e3,0,2);function cIe(e,t,n){const r=t??gw(e)?.firstDay??0;return wu(7).map(a=>{const o=new Date(OK);return o.setDate(OK.getDate()+r+a),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function dIe(e,t,n,r){const a=LK(e)??new Date,o=r?.[t];if(typeof o=="function")return o(a,t,n);let i={};switch(t){case"fullDate":i={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":i={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const l=a.getDate(),s=new Intl.DateTimeFormat(n,{month:"long"}).format(a);return`${l} ${s}`;case"normalDateWithWeekday":i={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":i={month:"short",day:"numeric"};break;case"year":i={year:"numeric"};break;case"month":i={month:"long"};break;case"monthShort":i={month:"short"};break;case"monthAndYear":i={month:"long",year:"numeric"};break;case"monthAndDate":i={month:"long",day:"numeric"};break;case"weekday":i={weekday:"long"};break;case"weekdayShort":i={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(a.getDate());case"hours12h":i={hour:"numeric",hour12:!0};break;case"hours24h":i={hour:"numeric",hour12:!1};break;case"minutes":i={minute:"numeric"};break;case"seconds":i={second:"numeric"};break;case"fullTime":i={hour:"numeric",minute:"numeric"};break;case"fullTime12h":i={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":i={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":i={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");case"keyboardDateTime12h":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");case"keyboardDateTime24h":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");default:i=o??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,i).format(a)}function fIe(e,t){const n=e.toJsDate(t),r=n.getFullYear(),a=K9(String(n.getMonth()+1),2,"0"),o=K9(String(n.getDate()),2,"0");return`${r}-${a}-${o}`}function hIe(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function vIe(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function pIe(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Nv(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function mIe(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function gIe(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function bw(e){return e.getFullYear()}function yIe(e){return e.getMonth()}function bIe(e,t,n,r){const a=gw(t),o=n??a?.firstDay??0,i=a?.firstWeekSize??1;return r!==void 0?wIe(e,t,o,r):SIe(e,t,o,i)}function wIe(e,t,n,r){const a=(7+r-n)%7,o=yw(e,t,n),i=Nv(o,6);function l(h){return(7+new Date(h,0,1).getDay()-n)%7}let s=bw(o);s=r&&l++;const s=new Date(l,0,1),u=i(l),c=u>=r?Nv(s,u-7):Nv(s,u);return 1+O_(NN(a),ww(c),"weeks")}function xIe(e){return e.getDate()}function CIe(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function _Ie(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function TIe(e){return e.getHours()}function kIe(e){return e.getMinutes()}function AIe(e){return new Date(e.getFullYear(),0,1)}function EIe(e){return new Date(e.getFullYear(),11,31)}function IIe(e,t){return L_(e,t[0])&&VIe(e,t[1])}function MIe(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function L_(e,t){return e.getTime()>t.getTime()}function DIe(e,t){return L_(ww(e),ww(t))}function VIe(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function Lv(){const e=f.inject(BK);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=An();return zK(e,t)}const R_=ie({start:{type:[String,Number,Date],validate:Zg,default:()=>IN(new Date).date},end:{type:[String,Number,Date],validate:Zg},weekdays:{type:[Array,String],default:()=>[0,1,2,3,4,5,6],validate:aIe},firstDayOfWeek:[Number,String],firstDayOfYear:[Number,String],weekdayFormat:{type:Function,default:null},dayFormat:{type:Function,default:null},locale:String,now:{type:String,validator:Zg},type:{type:String,default:"month"}},"VCalendar-base");function LN(e){const{times:t,updateTimes:n}=oIe({now:e.now}),r=BY(e),a=Lv(),o=f.computed(()=>e.type==="month"?_K(jc(e.start,!0)):jc(e.start,!0)),i=f.computed(()=>{const S=o.value,_=e.end&&jc(e.end)||S,x=pf(_)Zg(e.modelValue)?jc(e.modelValue,!0):o.value||t.today),s=f.computed(()=>{const S=Array.isArray(e.weekdays)?e.weekdays:(e.weekdays||"").split(",").map(x=>parseInt(x,10)),_=a.toJsDate(a.startOfWeek(a.date(),e.firstDayOfWeek)).getDay();return[...S.toSorted().filter(x=>x>=_),...S.toSorted().filter(x=>x<_)]}),u=f.computed(()=>{const S=l.value,_=parseInt(String(e.categoryDays))||1;switch(e.type){case"day":return[S.weekday];case"4day":return[S.weekday,(S.weekday+1)%7,(S.weekday+2)%7,(S.weekday+3)%7];case"category":return Array.from({length:_},(x,T)=>(S.weekday+T)%7);default:return s.value}}),c=f.computed(()=>nIe(s.value)),d=f.computed(()=>N_(o.value,i.value,t.today,c.value)),h=f.computed(()=>e.dayFormat?e.dayFormat:mw(r.current.value,()=>({timeZone:"UTC",day:"numeric"}))),v=f.computed(()=>e.weekdayFormat?e.weekdayFormat:mw(r.current.value,(S,_)=>({timeZone:"UTC",weekday:_?"short":"long"})));function p(S){return YY(S)}function m(S){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{"v-present":S.present,"v-past":S.past,"v-future":S.future,"v-outside":_}}function g(S){return a.getWeek(a.date(S.date),e.firstDayOfWeek,e.firstDayOfYear)}function y(S){return JEe(S,s.value,t.today)}function b(S){return QEe(S,s.value,t.today)}function w(S){return mw(r.current.value,()=>S)}return{times:t,locale:r,parsedValue:l,parsedWeekdays:s,effectiveWeekdays:u,weekdaySkips:c,parsedStart:o,parsedEnd:i,days:d,dayFormatter:h,weekdayFormatter:v,getColorProps:p,getRelativeClasses:m,getWeekNumber:g,getStartOfWeek:y,getEndOfWeek:b,getFormatter:w,updateTimes:n}}const WK=ie({maxDays:{type:Number,default:7},intervalHeight:{type:[Number,String],default:48,validate:Xg},intervalWidth:{type:[Number,String],default:60,validate:Xg},intervalMinutes:{type:[Number,String],default:60,validate:Xg},firstInterval:{type:[Number,String],default:0,validate:Xg},firstTime:{type:[Number,String,Object],validate:qEe},intervalCount:{type:[Number,String],default:24,validate:Xg},intervalFormat:{type:Function,default:null},intervalStyle:{type:Function,default:null},showIntervalLabel:{type:Function,default:null}},"VCalendar-intervals");function GK(e){const t=LN(e),n=f.shallowRef(),r=f.computed(()=>parseInt(String(e.firstInterval||0))),a=f.computed(()=>parseInt(String(e.intervalMinutes||60))),o=f.computed(()=>parseInt(String(e.intervalCount||24))),i=f.computed(()=>parseFloat(String(e.intervalHeight||48))),l=f.computed(()=>kK(e.firstTime)),s=f.computed(()=>{const _=l.value;return _!==!1&&_>=0&&_<=WEe?_:r.value*a.value}),u=f.computed(()=>o.value*i.value),c=f.computed(()=>N_(t.parsedStart.value,t.parsedEnd.value,t.times.today,t.weekdaySkips.value,e.maxDays)),d=f.computed(()=>{const _=c.value,x=s.value,T=a.value,A=o.value,E=t.times.now;return _.map(I=>rIe(I,x,T,A,E))}),h=f.computed(()=>e.intervalFormat?e.intervalFormat:mw(t.locale.current.value,(_,x)=>x?_.minute===0?{timeZone:"UTC",hour:"numeric"}:{timeZone:"UTC",hour:"numeric",minute:"2-digit"}:{timeZone:"UTC",hour:"2-digit",minute:"2-digit"}));function v(_){const x=d.value[0][0];return!(x.hour===_.hour&&x.minute===_.minute)}function p(_){}function m(_,x){const T=Bi(x),A=_.currentTarget.getBoundingClientRect(),E=s.value,I=_,M=_,N=I.changedTouches||I.touches,P=((N&&N[0]?N[0].clientY:M.clientY)-A.top)/i.value,O=Math.floor(P*a.value),L=E+O;return IK(T,L,t.times.now)}function g(_){const x=Bi(_);return x.timeToY=w,x.timeDelta=S,x.minutesToPixels=b,x.week=c.value,x.intervalRange=[s.value,s.value+o.value*a.value],x}function y(_){const x=w(_),T=n.value;return x===!1||!T?!1:(T.scrollTop=x,!0)}function b(_){return _/a.value*i.value}function w(_){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const T=x!==!1;let E=S(_,typeof x!="boolean"?x:void 0);return E===!1||(E*=u.value,T?E<0?E=0:E>u.value&&(E=u.value):E<0?E=E+u.value:E>u.value&&(E=E-u.value)),E}function S(_,x){let T=kK(_);if(T===!1)return!1;const A=o.value*a.value;if(x&&typeof _=="object"&&"day"in _){const I=ma(_),M=ma(x);T+=(I-M)*A}const E=s.value;return(T-E)/A}return{...t,scrollAreaRef:n,parsedFirstInterval:r,parsedIntervalMinutes:a,parsedIntervalCount:o,parsedIntervalHeight:i,parsedFirstTime:l,firstMinute:s,bodyHeight:u,days:c,intervals:d,intervalFormatter:h,showIntervalLabelDefault:v,intervalStyleDefault:p,getTimestampAtEvent:m,getSlotScope:g,scrollToTime:y,minutesToPixels:b,timeToY:w,timeDelta:S}}function UIe(e,t){const n=t.value,r={passive:!t.modifiers?.active};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},t.modifiers?.quiet||n()}function YIe(e,t){if(!e._onResize?.[t.instance.$.uid])return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const Sw={mounted:UIe,unmounted:YIe},xw=zo({name:"VCalendarDaily",directives:{vResize:Sw},props:{color:String,shortWeekdays:{type:Boolean,default:!0},shortIntervals:{type:Boolean,default:!0},hideHeader:Boolean,...R_(),...WK()},setup(e,t){let{slots:n,attrs:r}=t;const a=f.ref(0),o=f.ref(),i=GK(e);function l(){f.nextTick(s)}function s(){a.value=u()}function u(){return i.scrollAreaRef.value&&o.value?i.scrollAreaRef.value.offsetWidth-o.value.offsetWidth:0}function c(){return f.createElementVNode("div",{class:"v-calendar-daily__head",style:{marginRight:a.value+"px"}},[d(),h()])}function d(){const D=Re(e.intervalWidth);return f.createElementVNode("div",{class:"v-calendar-daily__intervals-head",style:{width:D}},[n["interval-header"]?.()])}function h(){return i.days.value.map(v)}function v(D,P){const O=ul(r,":day",L=>({nativeEvent:L,...i.getSlotScope(D)}));return f.createElementVNode("div",f.mergeProps({key:D.date,class:["v-calendar-daily_head-day",i.getRelativeClasses(D)]},O),[m(D),g(D),p(D,P)])}function p(D,P){return n["day-header"]?.({week:i.days.value,...D,index:P})??[]}function m(D){const P=D.present?e.color:void 0;return f.createElementVNode("div",f.mergeProps(i.getColorProps({text:P}),{class:"v-calendar-daily_head-weekday"}),[i.weekdayFormatter.value(D,e.shortWeekdays)])}function g(D){return f.createElementVNode("div",{class:"v-calendar-daily_head-day-label"},[n["day-label-header"]?.(D)??y(D)])}function y(D){const P=ul(r,":date",O=>({nativeEvent:O,...D}));return f.createVNode(bK,f.mergeProps({active:D.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":l_},P),{default:()=>[i.dayFormatter.value(D,!1)]})}function b(){return f.createElementVNode("div",{class:"v-calendar-daily__body"},[w()])}function w(){return f.createElementVNode("div",{ref:i.scrollAreaRef,class:"v-calendar-daily__scroll-area"},[S()])}function S(){return f.createElementVNode("div",{ref:o,class:"v-calendar-daily__pane",style:{height:Re(i.bodyHeight.value)}},[_()])}function _(){return f.createElementVNode("div",{class:"v-calendar-daily__day-container"},[I(),n.days?.()??x()])}function x(){return i.days.value.map((D,P)=>{const O=ul(r,":time",L=>({nativeEvent:L,...i.getSlotScope(i.getTimestampAtEvent(L,D))}));return f.createElementVNode("div",f.mergeProps({key:D.date,class:["v-calendar-daily__day",i.getRelativeClasses(D)]},O),[A(P),T(D)])})}function T(D){return n["day-body"]?.(i.getSlotScope(D))??[]}function A(D){return i.intervals.value[D].map(E)}function E(D){const P=Re(e.intervalHeight),O=e.intervalStyle||i.intervalStyleDefault;return f.createElementVNode("div",{class:"v-calendar-daily__day-interval",key:D.time,style:f.normalizeStyle([{height:P},O(D)])},[n.interval?.(i.getSlotScope(D))])}function I(){const D=Re(e.intervalWidth),P=ul(r,":interval",O=>({nativeEvent:O,...i.getTimestampAtEvent(O,i.parsedStart.value)}));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-daily__intervals-body",style:{width:D}},P),[M()])}function M(){return i.intervals.value.length?i.intervals.value[0].map(N):null}function N(D){const P=Re(e.intervalHeight),O=e.shortIntervals,B=(e.showIntervalLabel||i.showIntervalLabelDefault)(D)?i.intervalFormatter.value(D,O):void 0;return f.createElementVNode("div",{key:D.time,class:"v-calendar-daily__interval",style:{height:P}},[f.createElementVNode("div",{class:"v-calendar-daily__interval-text"},[B])])}return f.onMounted(l),ke(()=>f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-calendar-daily",r.class]),onDragstart:D=>D.preventDefault()},[e.hideHeader?void 0:c(),b()]),[[Sw,s,void 0,{quiet:!0}]])),{...i,scrollPush:a,pane:o,init:l,onResize:s,getScrollPush:u}}});function jIe(e,t){return typeof t=="function"?t(e):typeof t=="string"&&typeof e=="object"&&e?e[t]:typeof e=="string"?e:""}function UK(e,t){return typeof e=="string"?e.split(/\s*,\s/):Array.isArray(e)?e.map(n=>{if(typeof n=="string")return n;const r=typeof n.categoryName=="string"?n.categoryName:jIe(n,t);return{...n,categoryName:r}}):[]}const KIe=zo({name:"VCalendarCategory",props:{categories:{type:[Array,String],default:""},categoryText:[String,Function],categoryForInvalid:{type:String,default:""},...R_(),...WK()},setup(e,t){let{slots:n,attrs:r}=t;const a=GK(e),o=f.computed(()=>UK(e.categories,e.categoryText));function i(g,y){const b=typeof y=="object"&&y&&y.categoryName===e.categoryForInvalid?null:y;return{...g,category:b}}function l(g){return f.createElementVNode("div",{class:"v-calendar-category__columns"},[o.value.map(y=>s(g,i(g,y)))])}function s(g,y){const b=typeof y.category=="object"?y.category.categoryName:y.category,w=ul(r,":dayCategory",()=>i(a.getSlotScope(g)||g,y.category));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-category__column-header"},w),[n.category?.(y)??u(b),n["day-header"]?.(y)])}function u(g){return f.createElementVNode("div",{class:"v-calendar-category__category"},[g===null?e.categoryForInvalid:g])}function c(){const g=[];return a.days.value.forEach((y,b)=>{const w=new Array(o.value.length||1);w.fill(y),g.push(...w.map((S,_)=>d(S,b,_)))}),g}function d(g,y,b){const w=o.value[b],S=ul(r,":time",_=>a.getSlotScope(a.getTimestampAtEvent(_,g)));return f.createElementVNode("div",f.mergeProps({key:g.date+"-"+b,class:["v-calendar-daily__day",a.getRelativeClasses(g)]},S),[h(y,w),p(g,w)])}function h(g,y){return a.intervals.value[g].map(b=>v(b,y))}function v(g,y){const b=Re(e.intervalHeight),w=e.intervalStyle||a.intervalStyleDefault;return f.createElementVNode("div",{key:g.time,class:"v-calendar-daily__day-interval",style:f.normalizeStyle([{height:b},w({...g,category:y})])},[n.interval?.(i(a.getSlotScope(g),y))])}function p(g,y){return f.createElementVNode("div",{class:"v-calendar-category__columns"},[m(g,y)])}function m(g,y){const b=ul(r,":timeCategory",w=>i(a.getSlotScope(a.getTimestampAtEvent(w,g)),y));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-category__column"},b),[n["day-body"]?.(i(a.getSlotScope(g),y))])}return ke(()=>f.createVNode(xw,f.mergeProps({class:["v-calendar-daily","v-calendar-category"]},e),{...n,days:c,"day-header":l})),{...a,parsedCategories:o}}}),XIe={control:"ctrl",command:"cmd",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",spacebar:" ",space:" ",return:"enter",del:"delete",plus:"+",slash:"/",underscore:"_",minus:"-",hyphen:"-"};function YK(e){const t=e.toLowerCase();return XIe[t]||t}function jK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={keys:[],separators:[]};if(!e)return t||Aa("Invalid hotkey combination: empty string provided"),n;if(e.length>1&&["+","/","_"].some(c=>e.startsWith(c))&&!["++","//","__"].some(c=>e.startsWith(c))||e.includes("++")||e.includes("//")||e.includes("__")||e==="+"||e==="/"||e==="_"||e.length>1&&(e.endsWith("+")||e.endsWith("/")||e.endsWith("_"))&&e.at(-2)!==e.at(-1)||e==="++"||e==="//"||e==="--"||e==="__")return t||Aa(`Invalid hotkey combination: "${e}" has invalid structure`),n;const o=[],i=[];let l="";const s=c=>{l&&(c&&i.push(c),o.push(YK(l)),l="")};for(let c=0;cc.length>1&&c.includes("-")&&c!=="--")?(t||Aa(`Invalid hotkey combination: "${e}" has invalid structure`),n):o.length===0&&e?{keys:[YK(e)],separators:i}:{keys:o,separators:i}}function ZIe(e){if(!e)return Aa("Invalid hotkey sequence: empty string provided"),[];const t=e.startsWith("-")&&e!=="-"&&!["---","--+"].includes(e),n=e.endsWith("-")&&!e.endsWith("+-")&&!e.endsWith("_-")&&e!=="-"&&e!=="---";if(t||n)return Aa(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[];const r=[];let a="",o=0;for(;o1?e[o-2]:void 0;["+","_"].includes(c)&&!["+","/"].includes(d??"")?(a+=u,o++):(a?(r.push(a),a=""):r.push("-"),o++)}else a+=u,o++}a&&r.push(a);const i=[];let l=0;for(const u of r)u==="-"?(l%2===0&&i.push("-"),l++):(l=0,i.push(u));return i.every(u=>jK(u,!0).keys.length>0)?i:(Aa(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[])}const KK=zo({name:"VCalendarWeekly",props:{minWeeks:{validate:Xg,default:1},monthFormat:Function,showWeek:Boolean,color:String,shortWeekdays:{type:Boolean,default:!0},showMonthOnFirst:{type:Boolean,default:!0},shortMonths:{type:Boolean,default:!0},hideHeader:Boolean,...R_()},setup(e,t){let{slots:n,attrs:r}=t;const a=LN(e),o=wv(),i=f.computed(()=>parseInt(String(e.minWeeks))),l=f.computed(()=>{const _=i.value*a.parsedWeekdays.value.length,x=a.getStartOfWeek(a.parsedStart.value),T=a.getEndOfWeek(a.parsedEnd.value);return N_(x,T,a.times.today,a.weekdaySkips.value,Number.MAX_SAFE_INTEGER,_)}),s=f.computed(()=>{const _=a.times.today,x=a.getStartOfWeek(_),T=a.getEndOfWeek(_);return N_(x,T,_,a.weekdaySkips.value,a.parsedWeekdays.value.length,a.parsedWeekdays.value.length)}),u=f.computed(()=>e.monthFormat?e.monthFormat:mw(a.locale.current.value,(_,x)=>({timeZone:"UTC",month:x?"short":"long"})));function c(_){const x=ma(_);return xma(a.parsedEnd.value)}function d(){return f.createElementVNode("div",{class:"v-calendar-weekly__head",role:"row"},[h()])}function h(){const _=s.value.map(v);return e.showWeek&&_.unshift(f.createElementVNode("div",{class:"v-calendar-weekly__head-weeknumber"},null)),_}function v(_,x){const T=c(l.value[x]),A=_.present?e.color:void 0;return f.createElementVNode("div",f.mergeProps(a.getColorProps({text:A}),{key:_.date,class:["v-calendar-weekly__head-weekday",a.getRelativeClasses(_,T)],role:"columnheader"}),[a.weekdayFormatter.value(_,e.shortWeekdays)])}function p(){const _=l.value,x=a.parsedWeekdays.value.length,T=[];for(let A=0;A<_.length;A+=x)T.push(m(_.slice(A,A+x),g(_[A])));return T}function m(_,x){const T=_.map((A,E)=>b(A,E,_));return e.showWeek&&T.unshift(y(x)),f.createElementVNode("div",{key:_[0].date,class:"v-calendar-weekly__week",role:"row"},[T])}function g(_){return a.getWeekNumber(_)}function y(_){return f.createElementVNode("div",{class:"v-calendar-weekly__weeknumber"},[f.createElementVNode("small",null,[String(_)])])}function b(_,x,T){const A=c(_),E=ul(r,":day",I=>({nativeEvent:I,..._}));return f.createElementVNode("div",f.mergeProps({key:_.date,class:["v-calendar-weekly__day",a.getRelativeClasses(_,A)],role:"cell"},E),[w(_),n.day?.({outside:A,index:x,week:T,..._})])}function w(_){return f.createElementVNode("div",{class:"v-calendar-weekly__day-label"},[n["day-label"]?.(_)??S(_)])}function S(_){const x=_.day===1&&e.showMonthOnFirst,T=ul(r,":date",A=>({nativeEvent:A,..._}));return f.createVNode(bK,f.mergeProps({active:_.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":l_},T),{default:()=>[x?u.value(_,e.shortMonths)+" "+a.dayFormatter.value(_,!1):a.dayFormatter.value(_,!1)]})}return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-calendar-weekly",o.themeClasses.value]),onDragstart:_=>_.preventDefault()},[e.hideHeader?void 0:d(),p()])),{...a,days:l,todayWeek:s,monthFormatter:u,isOutside:c}}}),JIe=864e5;function XK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=e.map(r=>({event:r,columnCount:0,column:0,left:0,width:100}));return n.sort((r,a)=>Math.max(t,r.event.startTimestampIdentifier)-Math.max(t,a.event.startTimestampIdentifier)||a.event.endTimestampIdentifier-r.event.endTimestampIdentifier),n}function zs(e,t,n,r){return(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0)?!(e>=r||t<=n):!(e>r||t{t.visuals.forEach(n=>{n.columnCount=e.length})})}function JK(e){return[e.startTimestampIdentifier,e.endTimestampIdentifier]}function QK(e){return[e.startIdentifier,e.endIdentifier]}function qK(e,t){return[Math.max(t,e.startTimestampIdentifier),Math.min(t+JIe,e.endTimestampIdentifier)]}function QIe(e,t,n,r){for(let a=0;a{t.groups=[],t.min=t.max=-1},getVisuals:function(n,r,a){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;(n.weekday===e||o)&&t.reset();const i=pf(n),l=XK(r,i);return l.forEach(s=>{const[u,c]=a?JK(s.event):QK(s.event);t.groups.length>0&&!zs(u,c,t.min,t.max,a)&&(ZK(t.groups),t.reset());let d=QIe(t.groups,u,c,a);d===-1&&(d=t.groups.length,t.groups.push({start:u,end:c,visuals:[]}));const h=t.groups[d];h.visuals.push(s),h.start=Math.min(h.start,u),h.end=Math.max(h.end,c),s.column=d,t.min===-1?(t.min=u,t.max=c):(t.min=Math.min(t.min,u),t.max=Math.max(t.max,c))}),ZK(t.groups),a&&t.reset(),l}};return t}const eX=100,qIe=(e,t,n)=>{const r=$K(t);return(a,o,i,l)=>{const s=r.getVisuals(a,o,i,l);return i&&s.forEach(u=>{u.left=u.column*eX/u.columnCount,u.width=eX/u.columnCount}),s}},B_=100,$Ie=5,eMe=1.7,tMe=(e,t,n)=>{const r=$K(t);return(a,o,i,l)=>{if(!i)return r.getVisuals(a,o,i,l);const s=pf(a),u=XK(o,s),c=sMe(u,s);for(const d of c){const h=[];for(const v of d.visuals){const p=uMe(v,s),m=oMe(p,h);if(m===!1){const g=iMe(p,h);g&&(p.parent=g,p.sibling=zs(p.start,p.end,g.start,F_(g.start,n)),p.index=g.index+1,g.children.push(p))}else{const[g]=tX(p,h,m-1,m-1),y=tX(p,h,m+1,m+h.length,!0);p.children=y,p.index=m,g&&(p.parent=g,p.sibling=zs(p.start,p.end,g.start,F_(g.start,n)),g.children.push(p));for(const b of y)b.parent===g&&(b.parent=p),b.index-p.index<=1&&p.sibling&&zs(p.start,F_(p.start,n),b.start,b.end)&&(b.sibling=!0)}h.push(p)}nMe(h,n)}return u.sort((d,h)=>d.left-h.left||d.event.startTimestampIdentifier-h.event.startTimestampIdentifier),u}};function nMe(e,t){for(const n of e){const{visual:r,parent:a}=n,o=nX(n)+1,i=a?a.visual.left:0,l=B_-i,s=Math.min($Ie,B_/o),u=rMe(n,e),c=l/(o-n.index+1),d=l/(o-n.index+(n.sibling?1:0))*u;a&&(r.left=n.sibling?i+c:i+s),r.width=lMe(n,e,t)?B_-r.left:Math.min(B_-r.left,d*eMe)}}function rMe(e,t){if(!e.children.length)return 1;const n=e.index+t.length;return e.children.reduce((a,o)=>Math.min(a,o.index),n)-e.index}function aMe(e,t){const n=[];for(const r of t)zs(e.start,e.end,r.start,r.end)&&n.push(r.index);return n}function oMe(e,t){const n=aMe(e,t);n.sort();for(let r=0;r4&&arguments[4]!==void 0?arguments[4]:!1;const o=[];for(const i of t)i.index>=n&&i.index<=r&&zs(e.start,e.end,i.start,i.end)&&o.push(i);if(a&&o.length>0){const i=o.reduce((l,s)=>Math.min(l,s.index),o[0].index);return o.filter(l=>l.index===i)}return o}function iMe(e,t){let n=null;for(const r of t)zs(e.start,e.end,r.start,r.end)&&(n===null||r.index>n.index)&&(n=r);return n}function lMe(e,t,n){for(const r of t)if(r!==e&&r.index>e.index&&zs(e.start,F_(e.start,n),r.start,r.end))return!1;return!0}function sMe(e,t){const n=[];for(const r of e){const[a,o]=qK(r.event,t);let i=!1;for(const l of n)if(zs(a,o,l.start,l.end)){l.visuals.push(r),l.end=Math.max(l.end,o),i=!0;break}i||n.push({start:a,end:o,visuals:[r]})}return n}function uMe(e,t){const[n,r]=qK(e.event,t);return{parent:null,sibling:!0,index:0,visual:e,start:n,end:r,children:[]}}function nX(e){let t=e.index;for(const n of e.children){const r=nX(n);r>t&&(t=r)}return t}function F_(e,t){const n=e%100,r=n+t,a=Math.floor(r/60),o=r%60;return e-n+a*100+o}const rX={stack:tMe,column:qIe};function cMe(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;const i=e[n],l=e[r],s=jc(i,!0),u=l?jc(l,!0):s,c=AK(i)?EK(s,a):s,d=AK(l)?EK(u,a):u,h=ma(c),v=pf(c),p=ma(d),m=c.hasTime?0:2359,g=pf(d)+m,y=!c.hasTime;return{input:e,start:c,startIdentifier:h,startTimestampIdentifier:v,end:d,endIdentifier:p,endTimestampIdentifier:g,allDay:y,index:t,category:o}}function ON(e,t){return t>=e.startIdentifier&&t<=e.endIdentifier}function dMe(e,t,n){if(n){const r=VN(Bi(t),n[0]),a=VN(Bi(t),n[1]),o=e.startTimestampIdentifierpf(r);return o&&i}return ON(e,ma(t))}function fMe(e,t){return e.end.time==="00:00"&&e.end.date===t.date&&e.start.date!==t.date}function aX(e,t,n,r){return n===e.startIdentifier||r===t.weekday&&ON(e,n)}function hMe(e,t,n){return t<=e.endIdentifier&&n>=e.startIdentifier}const vMe=100,pMe=95,mMe=ie({events:{type:Array,default:()=>[]},eventStart:{type:String,default:"start"},eventEnd:{type:String,default:"end"},eventTimed:{type:[String,Function],default:"timed"},eventCategory:{type:[String,Function],default:"category"},eventHeight:{type:Number,default:20},eventColor:{type:[String,Function],default:"primary"},eventTextColor:{type:[String,Function]},eventName:{type:[String,Function],default:"name"},eventOverlapThreshold:{type:[String,Number],default:60},eventOverlapMode:{type:[String,Function],default:"stack",validate:e=>e in rX||typeof e=="function"},eventMore:{type:Boolean,default:!0},eventMoreText:{type:String,default:"$vuetify.calendar.moreEvents"},eventRipple:{type:[Boolean,Object],default:null},eventMarginBottom:{type:Number,default:1}},"VCalendar-events");function gMe(e,t,n){const r=LN(e),a=f.computed(()=>!Array.isArray(e.events)||e.events.length===0),o=f.computed(()=>e.type==="category"),i=f.computed(()=>typeof e.eventTimed=="function"?e.eventTimed:P=>!!P[e.eventTimed]),l=f.computed(()=>typeof e.eventCategory=="function"?e.eventCategory:P=>P[e.eventCategory]),s=f.computed(()=>e.events?e.events.map((P,O)=>cMe(P,O,e.eventStart||"",e.eventEnd||"",i.value(P),o.value?l.value(P):!1)):[]),u=f.computed(()=>parseInt(String(e.eventOverlapThreshold||0))),c=f.computed(()=>typeof e.eventTextColor=="function"?e.eventTextColor:()=>e.eventTextColor),d=f.computed(()=>typeof e.eventName=="function"?e.eventName:(P,O)=>P.input[e.eventName]||""),h=f.computed(()=>typeof e.eventOverlapMode=="function"?e.eventOverlapMode:rX[e.eventOverlapMode]),v=f.computed(()=>r.effectiveWeekdays.value);function p(P){return typeof e.eventColor=="function"?e.eventColor(P):P.color||e.eventColor}const m=f.ref([]);function g(){if(a.value||!e.eventMore)return;const P=e.eventHeight||0,O=y();for(const L in O){const{parent:R,events:B,more:W}=O[L];if(!W)break;const H=R.getBoundingClientRect(),z=B.length-1,j=B.map(Y=>({event:Y,bottom:Y.getBoundingClientRect().bottom})).sort((Y,Z)=>Y.bottom-Z.bottom);let U=0;for(let Y=0;Y<=z;Y++){const Z=j[Y].bottom;(Y===z?Z>H.bottom:Z+P>H.bottom)&&(j[Y].event.style.display="none",U++)}U?(W.style.display="",W.innerHTML=r.locale.t(e.eventMoreText,U)):W.style.display="none"}}function y(){const P={},O=m.value;return!O||!O.length||O.forEach(L=>{const R=L.getAttribute("data-date");L.parentElement&&R&&(R in P||(P[R]={parent:L.parentElement,more:null,events:[]}),L.getAttribute("data-more")?P[R].more=L:(P[R].events.push(L),L.style.display=""))}),P}function b(P,O){let{event:L}=P;const R=e.eventHeight||0,B=e.eventMarginBottom||0,W=ma(O),H=O.week,z=W===L.startIdentifier;let j=W===L.endIdentifier,U=pMe;if(!o.value)for(let Z=O.index+1;Z=te)U+=vMe,j=j||te===L.endIdentifier;else{j=!0;break}}return S(L,{eventParsed:L,day:O,start:z,end:j,timed:!1},!1,{class:["v-event",{"v-event-start":z,"v-event-end":j}],style:{height:`${R}px`,width:`${U}%`,marginBottom:`${B}px`},"data-date":O.date})}function w(P,O){let{event:L,left:R,width:B}=P;const W=O.timeDelta(L.start,O),H=O.timeDelta(L.end,O);if(H===!1||W===!1||H<0||W>=1||fMe(L,O))return!1;const z=ma(O),j=L.startIdentifier>=z,U=L.endIdentifier>z,Y=O.timeToY(L.start,O),Z=O.timeToY(L.end,O),te=Math.max(e.eventHeight||0,Z-Y);return S(L,{eventParsed:L,day:O,start:j,end:U,timed:!0},!0,{class:"v-event-timed",style:{top:`${Y}px`,height:`${te}px`,left:`${R}%`,width:`${B}%`}})}function S(P,O,L,R){const B=t.event,W=c.value(P.input),H=p(P.input),z=P.start.hour<12&&P.end.hour>=12,j=tIe(P.start,P.end)<=u.value,U=(ae,de)=>r.getFormatter({timeZone:"UTC",hour:"numeric",minute:ae.minute>0?"numeric":void 0})(ae,!0),Y=()=>U(P.start)+" - "+U(P.end),Z=()=>{const ae=d.value(P,L);if(P.start.hasTime)if(L){const de=Y(),me=j?", ":f.createElementVNode("br",null,null);return f.createElementVNode("span",{class:"v-event-summary"},[f.createElementVNode("strong",null,[ae]),me,de])}else{const de=U(P.start);return f.createElementVNode("span",{class:"v-event-summary"},[f.createElementVNode("strong",null,[de]),f.createTextVNode(" "),ae])}return f.createElementVNode("span",{class:"v-event-summary"},[ae])},te={...O,event:P.input,outside:O.day.outside,singline:j,overlapsNoon:z,formatTime:U,timeSummary:Y,eventSummary:Z},$=ul(n,":event",ae=>({...te,nativeEvent:ae}));return f.withDirectives(f.createElementVNode("div",f.mergeProps(r.getColorProps({text:W,background:H}),$,R,{ref_for:!0,ref:m}),[B?.(te)??_(Z)]),[[eo,e.eventRipple??!0]])}function _(P){return f.createElementVNode("div",{class:"pl-1"},[P()])}function x(P){const O=(e.eventHeight||0)+(e.eventMarginBottom||0);return f.createElementVNode("div",{style:{height:`${O}px`},"data-date":P.date,ref_for:!0,ref:m},null)}function T(P){const O=e.eventHeight||0,L=e.eventMarginBottom||0,R=ul(n,":more",B=>({nativeEvent:B,...P}));return f.withDirectives(f.createElementVNode("div",f.mergeProps({class:["v-event-more pl-1",{"v-outside":P.outside}],"data-date":P.date,"data-more":"1",style:{display:"none",height:`${O}px`,marginBottom:`${L}px`},ref_for:!0,ref:m},R),null),[[eo,e.eventRipple??!0]])}function A(){const P=r.days.value,O=ma(P[0]),L=ma(P[P.length-1]);return s.value.filter(R=>hMe(R,O,L))}function E(P,O){return!o.value||typeof O=="object"&&O.categoryName&&O.categoryName===P.category||typeof P.category=="string"&&O===P.category||typeof P.category!="string"&&O===null}function I(P){const O=ma(P),L=v.value[0];return s.value.filter(R=>aX(R,P,O,L))}function M(P){const O=ma(P),L=v.value[0];return s.value.filter(R=>R.allDay&&(o.value?ON(R,O):aX(R,P,O,L))&&E(R,P.category))}function N(P){return s.value.filter(O=>!O.allDay&&dMe(O,P,P.intervalRange)&&E(O,P.category))}function D(){if(a.value)return{...t};const P=h.value(s.value,v.value[0],u.value),O=R=>!!R,L=(R,B,W,H)=>{const z=B(R),j=P(R,z,H,o.value);if(H)return j.map(Y=>W(Y,R)).filter(O);const U=[];return j.forEach((Y,Z)=>{for(;U.length{let B=L(R,I,b,!1);if(B&&B.length>0&&e.eventMore&&B.push(T(R)),t.day){const W=t.day(R);W&&(B=B?B.concat(W):W)}return B},"day-header":R=>{let B=L(R,M,b,!1);if(t["day-header"]){const W=t["day-header"](R);W&&(B=B?B.concat(W):W)}return B},"day-body":R=>{const B=L(R,N,w,!0);let W=[f.createElementVNode("div",{class:"v-event-timed-container"},[B])];if(t["day-body"]){const H=t["day-body"](R);H&&(W=W.concat(H))}return W}}}return{...r,noEvents:a,parsedEvents:s,parsedEventOverlapThreshold:u,eventTimedFunction:i,eventCategoryFunction:l,eventTextColorFunction:c,eventNameFunction:d,eventModeFunction:h,eventWeekdays:v,categoryMode:o,eventColorFunction:p,eventsRef:m,updateEventVisibility:g,getEventsMap:y,genDayEvent:b,genTimedEvent:w,genEvent:S,genName:_,genPlaceholder:x,genMore:T,getVisibleEvents:A,isEventForCategory:E,getEventsForDay:I,getEventsForDayAll:M,getEventsForDayTimed:N,getScopedSlots:D}}const yMe=Ce()({name:"VCalendar",directives:{vResize:Sw},props:{modelValue:{type:[String,Number,Date],validate:Zg},categoryDays:{type:[Number,String],default:1,validate:e=>isFinite(parseInt(e))&&parseInt(e)>0},categories:{type:[Array,String],default:""},categoryText:{type:[String,Function]},maxDays:{type:Number,default:7},categoryHideDynamic:{type:Boolean},categoryShowAll:{type:Boolean},categoryForInvalid:{type:String,default:""},...R_(),...mMe()},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const o=f.ref(),i=gMe(e,n,r),l=f.ref(null),s=f.ref(null),u=f.computed(()=>parseInt(String(e.categoryDays))||1),c=f.computed(()=>UK(e.categories,e.categoryText)),d=f.computed(()=>{const x=i.parsedValue.value;let T=null,A=e.maxDays,E=c.value,I=x,M=x;switch(e.type){case"month":T=KK,I=_K(x),M=TK(x);break;case"week":T=xw,I=i.getStartOfWeek(x),M=i.getEndOfWeek(x),A=7;break;case"day":T=xw,A=1;break;case"4day":T=xw,M=Pv(Bi(M),mf,3),Hs(M),A=4;break;case"custom-weekly":T=KK,I=i.parsedStart.value||x,M=i.parsedEnd.value;break;case"custom-daily":T=xw,I=i.parsedStart.value||x,M=i.parsedEnd.value;break;case"category":const N=u.value;T=KIe,M=Pv(Bi(M),mf,N),Hs(M),A=N,E=_(E);break;default:const D=e.type;throw new Error(`${D} is not a valid Calendar type`)}return{component:T,start:I,end:M,maxDays:A,categories:E}}),h=f.computed(()=>i.effectiveWeekdays.value),v=f.computed(()=>e.type==="category"),p=f.computed(()=>i.getFormatter({timeZone:"UTC",month:"long"})),m=f.computed(()=>i.getFormatter({timeZone:"UTC",month:"short"})),g=f.computed(()=>{const{start:x,end:T}=d.value,A=x.year!==T.year,E=A||x.month!==T.month;return A?m.value(x,!0)+" "+x.year+" - "+m.value(T,!0)+" "+T.year:E?m.value(x,!0)+" - "+m.value(T,!0)+" "+T.year:p.value(x,!1)+" "+x.year});function y(){const{start:x,end:T}=d.value;(!l.value||!s.value||x.date!==l.value.date||T.date!==s.value.date)&&(l.value=x,s.value=T,a("change",{start:x,end:T}))}function b(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;const T=Bi(i.parsedValue.value),A=x>0,E=A?mf:DK,I=A?HEe:V_;let M=A?x:-x;for(;--M>=0;)switch(e.type){case"month":T.day=I,E(T);break;case"week":Pv(T,E,vf);break;case"day":Pv(T,E,1);break;case"4day":Pv(T,E,4);break;case"category":Pv(T,E,u.value);break}P_(T),Hs(T),Dv(T,i.times.now),e.modelValue instanceof Date?a("update:modelValue",PN(T)):typeof e.modelValue=="number"?a("update:modelValue",PN(T).getTime()):a("update:modelValue",T.date),a("moved",T)}function w(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b(x)}function S(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b(-x)}function _(x){if(!i.noEvents.value){const T=x.reduce((A,E,I)=>(typeof E=="object"&&E.categoryName?A[E.categoryName]={index:I,count:0}:typeof E=="string"&&(A[E]={index:I,count:0}),A),{});if(!e.categoryHideDynamic||!e.categoryShowAll){let A=x.length;i.parsedEvents.value.forEach(E=>{let I=E.category;typeof I!="string"&&(I=e.categoryForInvalid),I&&(I in T?T[I].count++:e.categoryHideDynamic||(T[I]={index:A++,count:1}))})}if(!e.categoryShowAll)for(const A in T)T[A].count===0&&delete T[A];x=x.filter(A=>typeof A=="object"&&A.categoryName?T.hasOwnProperty(A.categoryName):typeof A=="string"?T.hasOwnProperty(A):!1)}return x}return f.watch(d,y),f.onMounted(()=>{i.updateEventVisibility(),y()}),f.onUpdated(()=>{window.requestAnimationFrame(i.updateEventVisibility)}),ke(()=>{const{start:x,end:T,maxDays:A,component:E,categories:I}=d.value;return f.withDirectives(f.createVNode(E,f.mergeProps({ref:o,class:["v-calendar",{"v-calendar-events":!i.noEvents.value}],role:"grid"},E.filterProps(e),{start:x.date,end:T.date,maxDays:A,weekdays:i.effectiveWeekdays.value,categories:I,"onClick:date":(M,N)=>{r["onUpdate:modelValue"]&&a("update:modelValue",N.date)}}),i.getScopedSlots()),[[Sw,i.updateEventVisibility,void 0,{quiet:!0}]])}),pa({...i,lastStart:l,lastEnd:s,parsedCategoryDays:u,renderProps:d,eventWeekdays:h,categoryMode:v,title:g,monthLongFormatter:p,monthShortFormatter:m,parsedCategories:c,checkChange:y,move:b,next:w,prev:S,getCategoryList:_},o)}}),bMe=ie({...at(),...Ft()},"VCardActions"),gf=Ce()({name:"VCardActions",props:bMe(),setup(e,t){let{slots:n}=t;return Cr({VBtn:{slim:!0,variant:"text"}}),ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-actions",e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),wMe=ie({opacity:[Number,String],...at(),...Ft()},"VCardSubtitle"),RN=Ce()({name:"VCardSubtitle",props:wMe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-subtitle",e.class]),style:f.normalizeStyle([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),BN=Rc("v-card-title"),SMe=ie({appendAvatar:String,appendIcon:ut,prependAvatar:String,prependIcon:ut,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...at(),..._r(),...Ft()},"VCardItem"),oX=Ce()({name:"VCardItem",props:SMe(),setup(e,t){let{slots:n}=t;return ke(()=>{const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),o=!!(e.appendAvatar||e.appendIcon),i=!!(o||n.append),l=!!(e.title!=null||n.title),s=!!(e.subtitle!=null||n.subtitle);return f.createVNode(e.tag,{class:f.normalizeClass(["v-card-item",e.class]),style:f.normalizeStyle(e.style)},{default:()=>[a&&f.createElementVNode("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?f.createVNode(Ht,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):f.createElementVNode(f.Fragment,null,[e.prependAvatar&&f.createVNode(vl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(St,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),f.createElementVNode("div",{class:"v-card-item__content"},[l&&f.createVNode(BN,{key:"title"},{default:()=>[n.title?.()??f.toDisplayString(e.title)]}),s&&f.createVNode(RN,{key:"subtitle"},{default:()=>[n.subtitle?.()??f.toDisplayString(e.subtitle)]}),n.default?.()]),i&&f.createElementVNode("div",{key:"append",class:"v-card-item__append"},[n.append?f.createVNode(Ht,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(St,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(vl,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),xMe=ie({opacity:[Number,String],...at(),...Ft()},"VCardText"),Au=Ce()({name:"VCardText",props:xMe(),setup(e,t){let{slots:n}=t;return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-text",e.class]),style:f.normalizeStyle([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),CMe=ie({appendAvatar:String,appendIcon:ut,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:ut,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},...wo(),...at(),..._r(),...Ur(),...jr(),...x_(),..._u(),...Wg(),...qn(),...rw(),...Ft(),...pn(),...fl({variant:"elevated"})},"VCard"),gl=Ce()({name:"VCard",directives:{vRipple:eo},props:CMe(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{borderClasses:o}=Go(e),{colorClasses:i,colorStyles:l,variantClasses:s}=Wc(e),{densityClasses:u}=$a(e),{dimensionStyles:c}=Yr(e),{elevationClasses:d}=va(e),{loaderClasses:h}=ew(e),{locationStyles:v}=lf(e),{positionClasses:p}=Gg(e),{roundedClasses:m}=ur(e),g=nw(e,n),y=f.shallowRef(void 0);return f.watch(()=>e.loading,(b,w)=>{y.value=!b&&typeof w=="string"?w:typeof b=="boolean"?void 0:b},{immediate:!0}),ke(()=>{const b=e.link!==!1&&g.isLink.value,w=!e.disabled&&e.link!==!1&&(e.link||g.isClickable.value),S=b?"a":e.tag,_=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),T=_||x,A=!!(r.append||e.appendAvatar||e.appendIcon),E=!!(r.prepend||e.prependAvatar||e.prependIcon),I=!!(r.image||e.image),M=T||E||A,N=!!(r.text||e.text!=null);return f.withDirectives(f.createVNode(S,f.mergeProps(g.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":w},a.value,o.value,i.value,u.value,d.value,h.value,p.value,m.value,s.value,e.class],style:[l.value,c.value,v.value,{"--v-card-height":Re(e.height)},e.style],onClick:w&&g.navigate.value,tabindex:e.disabled?-1:void 0}),{default:()=>[I&&f.createElementVNode("div",{key:"image",class:"v-card__image"},[r.image?f.createVNode(Ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):f.createVNode(Fc,{key:"image-img",cover:!0,src:e.image},null)]),f.createVNode(tw,{name:"v-card",active:!!e.loading,color:y.value},{default:r.loader}),M&&f.createVNode(oX,{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}),N&&f.createVNode(Au,{key:"text"},{default:()=>[r.text?.()??e.text]}),r.default?.(),r.actions&&f.createVNode(gf,null,{default:r.actions}),zc(w,"v-card")]}),[[eo,w&&e.ripple]])}),{}}}),_Me=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,o=.5,i=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+i&&e.right(e)),Math.abs(e.offsetX)r+i&&e.down(e))};function TMe(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function kMe(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),_Me(t)}function AMe(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function EMe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>TMe(n,t),touchend:n=>kMe(n,t),touchmove:n=>AMe(n,t)}}function IMe(e,t){const n=t.value,r=n?.parent?e.parentElement:e,a=n?.options??{passive:!0},o=t.instance?.$.uid;if(!r||o===void 0)return;const i=EMe(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[o]=i,W9(i).forEach(l=>{r.addEventListener(l,i[l],a)})}function MMe(e,t){const n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;const a=n._touchHandlers[r];W9(a).forEach(o=>{n.removeEventListener(o,a[o])}),delete n._touchHandlers[r]}const H_={mounted:IMe,unmounted:MMe},iX=Symbol.for("vuetify:v-window"),lX=Symbol.for("vuetify:v-window-group"),z_=ie({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...at(),...Ft(),...pn()},"VWindow"),yf=Ce()({name:"VWindow",directives:{vTouch:H_},props:z_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isRtl:a}=ea(),{t:o}=An(),i=uf(e,lX),l=f.ref(),s=f.computed(()=>a.value?!e.reverse:e.reverse),u=f.shallowRef(!1),c=f.computed(()=>{if(e.crossfade)return"v-window-crossfade-transition";const x=e.direction==="vertical"?"y":"x",A=(s.value?!u.value:u.value)?"-reverse":"";return`v-window-${x}${A}-transition`}),d=f.shallowRef(0),h=f.ref(void 0),v=f.computed(()=>i.items.value.findIndex(x=>i.selected.value.includes(x.id)));f.watch(v,(x,T)=>{let A;const E={left:0,top:0};Bn&&T>=0&&(A=m_(l.value),E.left=A?.scrollLeft,E.top=A?.scrollTop);const I=i.items.value.length,M=I-1;I<=2?u.value=x{if(!Bn||!A)return;A.scrollTop!==E.top&&A.scrollTo({...E,behavior:"instant"}),requestAnimationFrame(()=>{if(!A)return;A.scrollTop!==E.top&&A.scrollTo({...E,behavior:"instant"})})})},{flush:"sync"}),f.provide(iX,{transition:c,isReversed:u,transitionCount:d,transitionHeight:h,rootRef:l});const p=f.toRef(()=>e.continuous||v.value!==0),m=f.toRef(()=>e.continuous||v.value!==i.items.value.length-1);function g(){p.value&&i.prev()}function y(){m.value&&i.next()}const b=f.computed(()=>{const x=[],T={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${s.value?"right":"left"}`,onClick:i.prev,"aria-label":o("$vuetify.carousel.prev")};x.push(p.value?n.prev?n.prev({props:T}):f.createVNode(xt,T,null):f.createElementVNode("div",null,null));const A={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${s.value?"left":"right"}`,onClick:i.next,"aria-label":o("$vuetify.carousel.next")};return x.push(m.value?n.next?n.next({props:A}):f.createVNode(xt,A,null):f.createElementVNode("div",null,null)),x}),w=f.computed(()=>e.touch===!1?e.touch:{...{left:()=>{s.value?g():y()},right:()=>{s.value?y():g()},start:T=>{let{originalEvent:A}=T;A.stopPropagation()}},...e.touch===!0?{}:e.touch});function S(x){(e.direction==="horizontal"&&x.key==="ArrowLeft"||e.direction==="vertical"&&x.key==="ArrowUp")&&(x.preventDefault(),g(),f.nextTick(()=>{p.value?_(0):_(1)})),(e.direction==="horizontal"&&x.key==="ArrowRight"||e.direction==="vertical"&&x.key==="ArrowDown")&&(x.preventDefault(),y(),f.nextTick(()=>{m.value?_(1):_(0)}))}function _(x){const T=b.value[x];if(!T)return;(Array.isArray(T)?T[0]:T).el?.focus()}return ke(()=>f.withDirectives(f.createVNode(e.tag,{ref:l,class:f.normalizeClass(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},r.value,e.class]),style:f.normalizeStyle([e.style,{"--v-window-transition-duration":bu()?null:Re(e.transitionDuration,"ms")}])},{default:()=>[f.createElementVNode("div",{class:"v-window__container",style:{height:h.value}},[n.default?.({group:i}),e.showArrows!==!1&&f.createElementVNode("div",{class:f.normalizeClass(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}]),onKeydown:S},[b.value])]),n.additional?.({group:i})]}),[[H_,w.value]])),{group:i}}}),DMe=ie({color:String,cycle:Boolean,delimiterIcon:{type:ut,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...z_({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),VMe=Ce()({name:"VCarousel",props:DMe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{t:a}=An(),o=f.ref();let i=-1;f.watch(r,s),f.watch(()=>e.interval,s),f.watch(()=>e.cycle,c=>{c?s():window.clearTimeout(i)}),f.onMounted(l);function l(){!e.cycle||!o.value||(i=window.setTimeout(o.value.group.next,Number(e.interval)>0?Number(e.interval):6e3))}function s(){window.clearTimeout(i),window.requestAnimationFrame(l)}function u(c,d){(e.direction==="horizontal"&&c.key==="ArrowLeft"||e.direction==="vertical"&&c.key==="ArrowUp")&&(c.preventDefault(),d.prev(),f.nextTick(()=>o.value?.$el.querySelector(".v-btn--active")?.focus())),(e.direction==="horizontal"&&c.key==="ArrowRight"||e.direction==="vertical"&&c.key==="ArrowDown")&&(c.preventDefault(),d.next(),f.nextTick(()=>o.value?.$el.querySelector(".v-btn--active")?.focus()))}return ke(()=>{const c=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({ref:o},c,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:Re(e.height)},e.style]}),{default:n.default,additional:d=>{let{group:h}=d;return f.createElementVNode(f.Fragment,null,[!e.hideDelimiters&&f.createElementVNode("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[h.items.value.length>0&&f.createVNode(Ht,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[h.items.value.map((v,p)=>{const m={id:`carousel-item-${v.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",p+1,h.items.value.length),class:["v-carousel__controls__item",h.isSelected(v.id)&&"v-btn--active"],onClick:()=>h.select(v.id,!0),onKeydown:g=>u(g,h)};return n.item?n.item({props:m,item:v}):f.createVNode(xt,f.mergeProps(v,m),null)})]})]),e.progress&&f.createVNode(zg,{absolute:!0,class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(h.getItemIndex(r.value)+1)/h.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),W_=ie({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...at(),...Cv(),...mN()},"VWindowItem"),bf=Ce()({name:"VWindowItem",directives:{vTouch:H_},props:W_(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(iX),a=sf(e,lX),{isBooted:o}=Sv();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const i=f.shallowRef(!1),l=f.computed(()=>o.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function s(){!i.value||!r||(i.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){i.value||!r||(i.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Re(r.rootRef.value?.clientHeight)),r.transitionCount.value+=1)}function c(){s()}function d(p){i.value&&f.nextTick(()=>{!l.value||!i.value||!r||(r.transitionHeight.value=Re(p.clientHeight))})}const h=f.computed(()=>{const p=r.isReversed.value?e.reverseTransition:e.transition;return l.value?{name:typeof p!="string"?r.transition.value:p,onBeforeEnter:u,onAfterEnter:s,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:s,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:v}=gN(e,a.isSelected);return ke(()=>f.createVNode(Wo,{transition:h.value,disabled:!o.value},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-window-item",a.selectedClass.value,e.class]),style:f.normalizeStyle(e.style)},[v.value&&n.default?.()]),[[f.vShow,a.isSelected.value]])]})),{groupItem:a}}}),PMe=ie({...KY(),...W_()},"VCarouselItem"),NMe=Ce()({name:"VCarouselItem",inheritAttrs:!1,props:PMe(),setup(e,t){let{slots:n,attrs:r}=t;ke(()=>{const a=Fc.filterProps(e),o=bf.filterProps(e);return f.createVNode(bf,f.mergeProps({class:["v-carousel-item",e.class]},o),{default:()=>[f.createVNode(Fc,f.mergeProps(r,a),n)]})})}}),LMe=Rc("v-code","code"),OMe=ie({color:{type:Object},disabled:Boolean,readonly:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...at()},"VColorPickerCanvas"),RMe=zo({name:"VColorPickerCanvas",props:OMe(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=f.shallowRef(!1),a=f.ref(),o=f.shallowRef(parseFloat(e.width)),i=f.shallowRef(parseFloat(e.height)),l=f.ref({x:0,y:0}),s=f.toRef(()=>!e.disabled&&!e.readonly),u=f.computed({get:()=>l.value,set(y){if(!a.value)return;const{x:b,y:w}=y;l.value=y,n("update:color",{h:e.color?.h??0,s:Fn(b,0,o.value)/o.value,v:1-Fn(w,0,i.value)/i.value,a:e.color?.a??1})}}),c=f.computed(()=>{const{x:y,y:b}=u.value,w=parseInt(e.dotSize,10)/2;return{width:Re(e.dotSize),height:Re(e.dotSize),transform:`translate(${Re(y-w)}, ${Re(b-w)})`}}),{resizeRef:d}=Ul(y=>{if(!d.el?.offsetParent)return;const{width:b,height:w}=y[0].contentRect;o.value=Math.round(b),i.value=Math.round(w)});function h(y,b,w){const{left:S,top:_,width:x,height:T}=w;u.value={x:Fn(y-S,0,x),y:Fn(b-_,0,T)}}function v(y){y.type==="mousedown"&&y.preventDefault(),s.value&&(p(y),window.addEventListener("mousemove",p),window.addEventListener("mouseup",m),window.addEventListener("touchmove",p),window.addEventListener("touchend",m))}function p(y){if(!s.value||!a.value)return;r.value=!0;const b=X_e(y);h(b.clientX,b.clientY,a.value.getBoundingClientRect())}function m(){window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",m)}function g(){if(!a.value)return;const y=a.value,b=y.getContext("2d");if(!b)return;const w=b.createLinearGradient(0,0,y.width,0);w.addColorStop(0,"hsla(0, 0%, 100%, 1)"),w.addColorStop(1,`hsla(${e.color?.h??0}, 100%, 50%, 1)`),b.fillStyle=w,b.fillRect(0,0,y.width,y.height);const S=b.createLinearGradient(0,0,0,y.height);S.addColorStop(0,"hsla(0, 0%, 0%, 0)"),S.addColorStop(1,"hsla(0, 0%, 0%, 1)"),b.fillStyle=S,b.fillRect(0,0,y.width,y.height)}return f.watch(()=>e.color?.h,g,{immediate:!0}),f.watch(()=>[o.value,i.value],(y,b)=>{g(),l.value={x:u.value.x*y[0]/b[0],y:u.value.y*y[1]/b[1]}},{flush:"post"}),f.watch(()=>e.color,()=>{if(r.value){r.value=!1;return}l.value=e.color?{x:e.color.s*o.value,y:(1-e.color.v)*i.value}:{x:0,y:0}},{deep:!0,immediate:!0}),f.onMounted(()=>g()),ke(()=>f.createElementVNode("div",{ref:d,class:f.normalizeClass(["v-color-picker-canvas",e.class]),style:f.normalizeStyle(e.style),onMousedown:v,onTouchstartPassive:v},[f.createElementVNode("canvas",{ref:a,width:o.value,height:i.value},null),e.color&&f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:f.normalizeStyle(c.value)},null)])),{}}});function BMe(e,t){if(t){const{a:n,...r}=e;return r}return e}function FMe(e,t){if(t==null||typeof t=="string"){const n=typeof e.a=="number"&&e.a<1;if(t?.startsWith("rgb(")){const{r:a,g:o,b:i,a:l}=xu(e);return`rgb(${a} ${o} ${i}`+(n?` / ${l})`:")")}else if(t?.startsWith("hsl(")){const{h:a,s:o,l:i,a:l}=xP(e);return`hsl(${a} ${Math.round(o*100)} ${Math.round(i*100)}`+(n?` / ${l})`:")")}const r=CY(e);return e.a===1?r.slice(0,7):r}if(typeof t=="object"){let n;return hv(t,["r","g","b"])?n=xu(e):hv(t,["h","s","l"])?n=xP(e):hv(t,["h","s","v"])&&(n=e),BMe(n,!hv(t,["a"])&&e.a===1)}return e}const Jg={h:0,s:0,v:0,a:1},FN={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:xu,from:X1},HMe={...FN,inputs:FN.inputs?.slice(0,3)},HN={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:xP,from:CP},zMe={...HN,inputs:HN.inputs.slice(0,3)},sX={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:CY,from:bTe},WMe={...sX,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},Ov={rgb:HMe,rgba:FN,hsl:zMe,hsla:HN,hex:WMe,hexa:sX},GMe=e=>{let{label:t,...n}=e;return f.createElementVNode("div",{class:"v-color-picker-edit__input"},[f.createElementVNode("input",f.normalizeProps(f.guardReactiveProps(n)),null),f.createElementVNode("span",null,[t])])},UMe=ie({color:Object,disabled:Boolean,readonly:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Ov).includes(e)},modes:{type:Array,default:()=>Object.keys(Ov),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Ov).includes(t))},...at()},"VColorPickerEdit"),YMe=zo({name:"VColorPickerEdit",props:UMe(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),a=f.computed(()=>e.modes.map(i=>({...Ov[i],name:i}))),o=f.computed(()=>{const i=a.value.find(s=>s.name===e.mode);if(!i)return[];const l=e.color?i.to(e.color):null;return i.inputs?.map(s=>{let{getValue:u,getColor:c,localeKey:d,...h}=s;return{...i.inputProps,...h,ariaLabel:r(`$vuetify.colorPicker.ariaLabel.${d}`),disabled:e.disabled,readonly:e.readonly,value:l&&u(l),onChange:v=>{const p=v.target;p&&n("update:color",i.from(c(l??i.to(Jg),p.value)))}}})});return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-edit",e.class]),style:f.normalizeStyle(e.style)},[o.value?.map(i=>f.createVNode(GMe,i,null)),a.value.length>1&&f.createVNode(xt,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":r("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const i=a.value.findIndex(l=>l.name===e.mode);n("update:mode",a.value[(i+1)%a.value.length].name)}},null)])),{}}}),zN=Symbol.for("vuetify:v-slider");function WN(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),o="touches"in e?e.touches[0]:e;return r?o.clientY-(a.top+a.height/2):o.clientX-(a.left+a.width/2)}function jMe(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const uX=ie({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"||e==="hover"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...qn(),...jr({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),cX=e=>{const t=f.computed(()=>parseFloat(e.min)),n=f.computed(()=>parseFloat(e.max)),r=f.computed(()=>Number(e.step)>0?parseFloat(e.step):0),a=f.computed(()=>Math.max(Y9(r.value),Y9(t.value)));function o(i){if(i=parseFloat(i),r.value<=0)return i;const l=Fn(i,t.value,n.value),s=t.value%r.value;let u=Math.round((l-s)/r.value)*r.value+s;return l>u&&u+r.value>n.value&&(u=n.value),parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:o}},dX=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:o,getActiveThumb:i}=e;const l=Yg(t),{isRtl:s}=ea(),u=f.toRef(()=>t.reverse),c=f.computed(()=>t.direction==="vertical"),d=f.computed(()=>c.value!==u.value),{min:h,max:v,step:p,decimals:m,roundValue:g}=n,y=f.computed(()=>parseInt(t.thumbSize,10)),b=f.computed(()=>parseInt(t.tickSize,10)),w=f.computed(()=>parseInt(t.trackSize,10)),S=f.computed(()=>(v.value-h.value)/p.value),_=f.computed(()=>t.error||l.isDisabled.value?void 0:t.thumbColor??t.color),x=f.computed(()=>t.error||l.isDisabled.value?void 0:t.thumbColor),T=f.computed(()=>t.error||l.isDisabled.value?void 0:t.trackColor??t.color),A=f.computed(()=>t.error||l.isDisabled.value?void 0:t.trackFillColor??t.color),E=f.shallowRef(!1),I=f.shallowRef(0),M=f.ref(),N=f.ref();function D($){const ae=M.value?.$el;if(!ae)return;const de=t.direction==="vertical",me=de?"top":"left",fe=de?"height":"width",Ee=de?"clientY":"clientX",{[me]:De,[fe]:ne}=ae.getBoundingClientRect(),pe=jMe($,Ee);let Pe=Fn((pe-De-I.value)/ne)||0;return(de?d.value:d.value!==s.value)&&(Pe=1-Pe),g(h.value+Pe*(v.value-h.value))}const P=$=>{const ae=D($);ae!=null&&o({value:ae}),E.value=!1,I.value=0},O=$=>{const ae=D($);N.value=i($),N.value&&(E.value=!0,N.value.contains($.target)?I.value=WN($,N.value,t.direction):(I.value=0,ae!=null&&a({value:ae})),ae!=null&&r({value:ae}),f.nextTick(()=>N.value?.focus()))},L={passive:!0,capture:!0};function R($){const ae=D($);ae!=null&&a({value:ae})}function B($){$.stopPropagation(),$.preventDefault(),P($),window.removeEventListener("mousemove",R,L),window.removeEventListener("mouseup",B)}function W($){P($),window.removeEventListener("touchmove",R,L),$.target?.removeEventListener("touchend",W)}function H($){O($),window.addEventListener("touchmove",R,L),$.target?.addEventListener("touchend",W,{passive:!1})}function z($){$.button===0&&($.preventDefault(),O($),window.addEventListener("mousemove",R,L),window.addEventListener("mouseup",B,{passive:!1}))}f.onScopeDispose(()=>{window.removeEventListener("touchmove",R),window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",B)});const j=$=>{const ae=($-h.value)/(v.value-h.value)*100;return Fn(isNaN(ae)?0:ae,0,100)},U=f.toRef(()=>t.showTicks),Y=f.computed(()=>U.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map($=>({value:$,position:j($),label:$.toString()})):Object.keys(t.ticks).map($=>({value:parseFloat($),position:j(parseFloat($)),label:t.ticks[$]})):S.value!==1/0?wu(S.value+1).map($=>{const ae=h.value+$*p.value;return{value:ae,position:j(ae)}}):[]:[]),Z=f.computed(()=>Y.value.some($=>{let{label:ae}=$;return!!ae})),te={activeThumbRef:N,color:f.toRef(()=>t.color),decimals:m,disabled:l.isDisabled,direction:f.toRef(()=>t.direction),elevation:f.toRef(()=>t.elevation),hasLabels:Z,isReversed:u,indexFromEnd:d,min:h,max:v,mousePressed:E,noKeyboard:f.toRef(()=>t.noKeyboard),numTicks:S,onSliderMousedown:z,onSliderTouchstart:H,parsedTicks:Y,parseMouseMove:D,position:j,readonly:l.isReadonly,rounded:f.toRef(()=>t.rounded),roundValue:g,showTicks:U,startOffset:I,step:p,thumbSize:y,thumbColor:_,thumbLabelColor:x,thumbLabel:f.toRef(()=>t.thumbLabel),ticks:f.toRef(()=>t.ticks),tickSize:b,trackColor:T,trackContainerRef:M,trackFillColor:A,trackSize:w,vertical:c};return f.provide(zN,te),te},KMe=ie({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...at()},"VSliderThumb"),GN=Ce()({name:"VSliderThumb",directives:{vRipple:eo},props:KMe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.inject(zN),{isRtl:o,rtlClasses:i}=ea();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:l,max:s,thumbColor:u,thumbLabelColor:c,step:d,disabled:h,thumbSize:v,thumbLabel:p,direction:m,isReversed:g,vertical:y,readonly:b,elevation:w,mousePressed:S,decimals:_,indexFromEnd:x}=a,T=f.shallowRef(!1),A=f.shallowRef(!1),E=f.computed(()=>h.value?void 0:w.value),{elevationClasses:I}=va(E),{textColorClasses:M,textColorStyles:N}=za(u),{backgroundColorClasses:D,backgroundColorStyles:P}=Ln(c),{pageup:O,pagedown:L,end:R,home:B,left:W,right:H,down:z,up:j}=dP,U=[O,L,R,B,W,H,z,j],Y=f.computed(()=>d.value?[1,2,3]:[1,5,10]);function Z($,ae){if(e.noKeyboard||h.value||!U.includes($.key))return;$.preventDefault();const de=d.value||.1,me=(s.value-l.value)/de;if([W,H,z,j].includes($.key)){const Ee=(y.value?[o.value?W:H,g.value?z:j]:x.value!==o.value?[W,j]:[H,j]).includes($.key)?1:-1,De=$.shiftKey?2:$.ctrlKey?1:0;Ee===-1&&ae===s.value&&!De&&!Number.isInteger(me)?ae=ae-me%1*de:ae=ae+Ee*de*Y.value[De]}else if($.key===B)ae=l.value;else if($.key===R)ae=s.value;else{const fe=$.key===L?1:-1;ae=ae-fe*de*(me>100?me/10:10)}return Math.max(e.min,Math.min(e.max,ae))}function te($){const ae=Z($,e.modelValue);ae!=null&&(A.value=!1,r("update:modelValue",ae))}return f.watch(()=>e.focused,$=>{$&&(A.value=!1)}),ke(()=>{const $=Re(x.value?100-e.position:e.position,"%"),ae=p.value==="always"||p.value===!0&&e.focused||p.value==="hover"&&(T.value||e.focused&&!A.value);return f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&S.value},e.class,i.value]),style:f.normalizeStyle([{"--v-slider-thumb-position":$,"--v-slider-thumb-size":Re(v.value)},e.style]),role:"slider",tabindex:h.value?-1:0,"aria-label":e.name,"aria-valuemin":l.value,"aria-valuemax":s.value,"aria-valuenow":e.modelValue,"aria-readonly":!!b.value,"aria-orientation":m.value,onKeydown:b.value?void 0:te,onMouseenter:()=>{T.value=!0},onMouseleave:()=>{T.value=!1,A.value=!0}},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__surface",M.value,I.value]),style:f.normalizeStyle(N.value)},null),f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__ripple",M.value]),style:f.normalizeStyle(N.value)},null),[[eo,e.ripple,null,{circle:!0,center:!0}]]),f.createVNode(NP,{origin:"bottom center"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-slider-thumb__label-container"},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__label",D.value]),style:f.normalizeStyle(P.value)},[f.createElementVNode("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(d.value?_.value:1)]),f.createElementVNode("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[f.vShow,ae]])]})])}),{}}}),XMe=ie({start:{type:Number,required:!0},stop:{type:Number,required:!0},...at()},"VSliderTrack"),fX=Ce()({name:"VSliderTrack",props:XMe(),emits:{},setup(e,t){let{slots:n}=t;const r=f.inject(zN);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:o,rounded:i,showTicks:l,tickSize:s,trackColor:u,trackFillColor:c,trackSize:d,vertical:h,min:v,max:p,indexFromEnd:m}=r,{roundedClasses:g}=ur(i),{backgroundColorClasses:y,backgroundColorStyles:b}=Ln(c),{backgroundColorClasses:w,backgroundColorStyles:S}=Ln(u),_=f.computed(()=>`inset-${h.value?"block":"inline"}-${m.value?"end":"start"}`),x=f.computed(()=>h.value?"height":"width"),T=f.computed(()=>({[_.value]:"0%",[x.value]:"100%"})),A=f.computed(()=>e.stop-e.start),E=f.computed(()=>({[_.value]:Re(e.start,"%"),[x.value]:Re(A.value,"%")})),I=f.computed(()=>l.value?(h.value?o.value.slice().reverse():o.value).map((N,D)=>{const P=N.value!==v.value&&N.value!==p.value?Re(N.position,"%"):void 0;return f.createElementVNode("div",{key:N.value,class:f.normalizeClass(["v-slider-track__tick",{"v-slider-track__tick--filled":N.position>=e.start&&N.position<=e.stop,"v-slider-track__tick--first":N.value===v.value,"v-slider-track__tick--last":N.value===p.value}]),style:{[_.value]:P}},[(N.label||n["tick-label"])&&f.createElementVNode("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:N,index:D})??N.label])])}):[]);return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track",g.value,e.class]),style:f.normalizeStyle([{"--v-slider-track-size":Re(d.value),"--v-slider-tick-size":Re(s.value)},e.style])},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__background",w.value,{"v-slider-track__background--opacity":!!a.value||!c.value}]),style:{...T.value,...S.value}},null),f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__fill",y.value]),style:{...E.value,...b.value}},null),l.value&&f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":l.value==="always"}])},[I.value])])),{}}}),ZMe=ie({...lw(),...uX(),...Uc(),modelValue:{type:[Number,String],default:0}},"VSlider"),UN=Ce()({name:"VSlider",inheritAttrs:!1,props:ZMe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:a}=t;const o=f.ref(),i=f.ref(),{rtlClasses:l}=ea(),s=cX(e),u=ot(e,"modelValue",void 0,I=>s.roundValue(I??s.min.value)),{min:c,max:d,mousePressed:h,roundValue:v,onSliderMousedown:p,onSliderTouchstart:m,trackContainerRef:g,position:y,hasLabels:b,disabled:w,readonly:S,noKeyboard:_}=dX({props:e,steps:s,onSliderStart:()=>{!w.value&&!S.value&&r("start",u.value)},onSliderEnd:I=>{let{value:M}=I;const N=v(M);!w.value&&!S.value&&(u.value=N),r("end",N)},onSliderMove:I=>{let{value:M}=I;!w.value&&!S.value&&(u.value=v(M))},getActiveThumb:()=>o.value?.$el}),{isFocused:x,focus:T,blur:A}=Gc(e),E=f.computed(()=>y(u.value));return ke(()=>{const I=to.filterProps(e),[M,N]=Su(a),D=!!(e.label||n.label||n.prepend);return f.createVNode(to,f.mergeProps({ref:i,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||b.value,"v-slider--focused":x.value,"v-slider--pressed":h.value,"v-slider--disabled":w.value},l.value,e.class],style:e.style},I,M,{focused:x.value}),{...n,prepend:D?P=>f.createElementVNode(f.Fragment,null,[n.label?.(P)??(e.label?f.createVNode(Ug,{id:P.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(P)]):void 0,default:P=>{let{id:O,messagesId:L}=P;return f.createElementVNode("div",{class:"v-slider__container",onMousedown:S.value?void 0:p,onTouchstartPassive:S.value?void 0:m},[f.createElementVNode("input",{id:O.value,name:e.name||O.value,disabled:w.value,readonly:S.value,tabindex:"-1",value:u.value},null),f.createVNode(fX,{ref:g,start:0,stop:E.value},{"tick-label":n["tick-label"]}),f.createVNode(GN,f.mergeProps({ref:o,"aria-describedby":L.value,focused:x.value,noKeyboard:_.value,min:c.value,max:d.value,modelValue:u.value,"onUpdate:modelValue":R=>u.value=R,position:E.value,elevation:e.elevation,onFocus:T,onBlur:A,ripple:e.ripple,name:e.name},N),{"thumb-label":n["thumb-label"]})])}})}),pa({focus:()=>o.value?.$el.focus()},i)}}),hX=ie({color:{type:Object},disabled:Boolean,readonly:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:ut,default:"$eyeDropper"},...at()},"VColorPickerPreview"),JMe=zo({name:"VColorPickerPreview",props:hX(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),a=new AbortController,o=f.toRef(()=>!e.disabled&&!e.readonly);f.onUnmounted(()=>a.abort());async function i(){if(!R9||!o.value)return;const l=new window.EyeDropper;try{const s=await l.open({signal:a.signal}),u=X1(sl(s.sRGBHex));n("update:color",{...e.color??Jg,...u})}catch{}}return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:f.normalizeStyle(e.style)},[R9&&!e.hideEyeDropper&&f.createElementVNode("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[f.createVNode(xt,{"aria-label":r("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,readonly:e.readonly,icon:e.eyeDropperIcon,variant:"plain",onClick:i},null)]),f.createElementVNode("div",{class:"v-color-picker-preview__dot"},[f.createElementVNode("div",{style:{background:wY(e.color??Jg)}},null)]),f.createElementVNode("div",{class:"v-color-picker-preview__sliders"},[f.createVNode(UN,{class:"v-color-picker-preview__track v-color-picker-preview__hue","aria-label":r("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:e.color?.h,"onUpdate:modelValue":l=>n("update:color",{...e.color??Jg,h:l}),step:1,min:0,max:360,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&f.createVNode(UN,{class:"v-color-picker-preview__track v-color-picker-preview__alpha","aria-label":r("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:e.color?.a??1,"onUpdate:modelValue":l=>n("update:color",{...e.color??Jg,a:l}),step:.01,min:0,max:1,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])),{}}}),QMe={red:{base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink:{base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple:{base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo:{base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue:{base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue:{base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan:{base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal:{base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green:{base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen:{base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime:{base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow:{base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber:{base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange:{base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange:{base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown:{base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey:{base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey:{base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades:{black:"#000000",white:"#ffffff",transparent:"#ffffff00"}},qMe=ie({swatches:{type:Array,default:()=>$Me(QMe)},disabled:Boolean,readonly:Boolean,color:Object,maxHeight:[Number,String],...at()},"VColorPickerSwatches");function $Me(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const eDe=zo({name:"VColorPickerSwatches",props:qMe(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=f.toRef(()=>!e.disabled&&!e.readonly);function a(o){!r.value||!o||n("update:color",o)}return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-swatches",e.class]),style:f.normalizeStyle([{maxHeight:Re(e.maxHeight)},e.style])},[f.createElementVNode("div",null,[e.swatches.map(o=>f.createElementVNode("div",{class:"v-color-picker-swatches__swatch"},[o.map(i=>{const l=sl(i),s=X1(l),u=bY(l);return f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-swatches__color",{"v-color-picker-swatches__color--disabled":e.disabled}]),onClick:()=>a(s)},[f.createElementVNode("div",{style:{background:u}},[e.color&&Ea(e.color,s)?f.createVNode(St,{size:"x-small",icon:"$success",color:CTe(i,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),tDe=Rc("v-picker-title"),G_=ie({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...bN()},"VPicker"),Qg=Ce()({name:"VPicker",props:G_(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.color);return ke(()=>{const o=Yc.filterProps(e),i=!e.hideTitle&&!!(e.title||n.title);return f.createVNode(Yc,f.mergeProps(o,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>[!e.hideHeader&&f.createElementVNode("div",{key:"header",class:f.normalizeClass(["v-picker__header-wrapper",r.value]),style:f.normalizeStyle([a.value])},[i&&f.createVNode(tDe,{key:"picker-title"},{default:()=>[n.title?.()??e.title]}),n.header&&f.createElementVNode("div",{class:"v-picker__header"},[n.header()])]),f.createElementVNode("div",{class:"v-picker__body"},[n.default?.()]),n.actions&&f.createVNode(Ht,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[f.createElementVNode("div",{class:"v-picker__actions"},[n.actions()])]})]})}),{}}}),nDe=ie({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Ov).includes(e)},modes:{type:Array,default:()=>Object.keys(Ov),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Ov).includes(t))},showSwatches:Boolean,readonly:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...G_({hideHeader:!0}),...fi(hX(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker"),rDe=zo({name:"VColorPicker",props:nDe(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"mode"),a=f.ref(null),o=ot(e,"modelValue",void 0,c=>{if(c==null||c==="")return null;let d;try{d=X1(sl(c))}catch(h){return Aa(h),null}return d},c=>c?FMe(c,e.modelValue):null),i=f.computed(()=>o.value?{...o.value,h:a.value??o.value.h}:null),{rtlClasses:l}=ea();let s=!0;f.watch(o,c=>{if(!s){s=!0;return}c&&(a.value=c.h)},{immediate:!0});const u=c=>{s=!1,a.value=c.h,o.value=c};return f.onBeforeMount(()=>{e.modes.includes(r.value)||(r.value=e.modes[0])}),Cr({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),ke(()=>{const c=Qg.filterProps(e);return f.createVNode(Qg,f.mergeProps(c,{class:["v-color-picker",l.value,e.class],style:[{"--v-color-picker-color-hsv":wY({...i.value??Jg,a:1})},e.style]}),{...n,default:()=>f.createElementVNode(f.Fragment,null,[!e.hideCanvas&&f.createVNode(RMe,{key:"canvas",color:i.value,"onUpdate:color":u,disabled:e.disabled,readonly:e.readonly,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&f.createElementVNode("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&f.createVNode(JMe,{key:"preview",color:i.value,"onUpdate:color":u,hideAlpha:!r.value.endsWith("a"),disabled:e.disabled,readonly:e.readonly,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&f.createVNode(YMe,{key:"edit",modes:e.modes,mode:r.value,"onUpdate:mode":d=>r.value=d,color:i.value,"onUpdate:color":u,disabled:e.disabled,readonly:e.readonly},null)]),e.showSwatches&&f.createVNode(eDe,{key:"swatches",color:i.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled,readonly:e.readonly},null)])})}),{}}}),aDe=ie({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Iv({filterKeys:["title"]}),...AN({hideNoData:!0,returnObject:!0}),...Kt(pw({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),oDe=Ce()({name:"VCombobox",props:aDe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.ref(),i=f.shallowRef(!1),l=f.shallowRef(!0),s=f.shallowRef(!1),u=f.ref(),c=f.ref(),d=f.shallowRef(-1);let h=!1;const{items:v,transformIn:p,transformOut:m}=iN(e),{textColorClasses:g,textColorStyles:y}=za(()=>o.value?.color),{InputIcon:b}=iw(e),w=ot(e,"modelValue",[],oe=>p(jn(oe)),oe=>{const Oe=m(oe);return e.multiple?Oe:Oe[0]??null}),S=Yg(e),_=f.toRef(()=>e.closableChips&&!S.isReadonly.value&&!S.isDisabled.value),x=f.computed(()=>!!(e.chips||r.chip)),T=f.computed(()=>x.value||!!r.selection),A=f.shallowRef(!e.multiple&&!T.value?w.value[0]?.title??"":""),E=f.shallowRef(null),I=f.computed({get:()=>A.value,set:async oe=>{if(A.value=oe??"",oe===null||oe===""&&!e.multiple&&!T.value?w.value=[]:!e.multiple&&!T.value&&(w.value=[Fs(e,oe)],f.nextTick(()=>c.value?.scrollToIndex(0))),oe&&e.multiple&&e.delimiters?.length){const Oe=lt(oe);Oe.length>1&&(kt(Oe),A.value="")}oe||(d.value=-1),l.value=!oe}}),M=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?w.value.length:I.value.length),{filteredItems:N,getMatches:D}=Mv(e,v,()=>E.value??(e.alwaysFilter||!l.value?I.value:"")),P=f.computed(()=>e.hideSelected&&E.value===null?N.value.filter(oe=>!w.value.some(Oe=>Oe.value===oe.value)):N.value),O=f.computed(()=>e.hideNoData&&!P.value.length||S.isReadonly.value||S.isDisabled.value),L=ot(e,"menu"),R=f.computed({get:()=>L.value,set:oe=>{L.value&&!oe&&u.value?.ΨopenChildren.size||oe&&O.value||(L.value=oe)}}),{menuId:B,ariaExpanded:W,ariaControls:H}=kN(e,R);f.watch(A,oe=>{h?f.nextTick(()=>h=!1):i.value&&!R.value&&(R.value=!0),n("update:search",oe)}),f.watch(w,oe=>{!e.multiple&&!T.value&&(A.value=oe[0]?.title??"")});const z=f.computed(()=>w.value.map(oe=>oe.value)),j=f.computed(()=>P.value.find(oe=>oe.type==="item"&&!oe.props.disabled)),U=f.computed(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&I.value===j.value?.title)&&P.value.length>0&&!l.value&&!s.value),Y=f.ref(),Z=f.ref(),te=f.ref(),$=xN(Y,o),{onTabKeydown:ae}=CN({groups:[{type:"element",contentRef:Z},{type:"list",contentRef:Y,displayItemsCount:()=>P.value.length},{type:"element",contentRef:te}],onLeave:()=>{R.value=!1,o.value?.focus()}});function de(oe){h=!0,f.nextTick(()=>h=!1),e.openOnClear&&(R.value=!0)}function me(){O.value||(R.value=!0)}function fe(oe){O.value||(i.value&&(oe.preventDefault(),oe.stopPropagation()),R.value=!R.value)}function Ee(oe){oe.key==="Tab"&&ae(oe),Y.value?.$el.contains(oe.target)&&(Og(oe)||oe.key==="Backspace")&&o.value?.focus()}function De(oe){if(j_e(oe)||S.isReadonly.value)return;const Oe=o.value?.selectionStart,je=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(oe.key)&&oe.preventDefault(),["Enter","ArrowDown"].includes(oe.key)&&(R.value=!0),["Escape"].includes(oe.key)&&(R.value=!1),U.value&&["Enter","Tab"].includes(oe.key)&&j.value&&!w.value.some(he=>{let{value:Se}=he;return Se===j.value.value})&&ze(j.value),oe.key==="ArrowDown"&&U.value&&Y.value?.focus("next"),oe.key==="Enter"&&I.value&&(ze(Fs(e,I.value),!0,!0),T.value&&(A.value="")),["Backspace","Delete"].includes(oe.key)){if(!e.multiple&&T.value&&w.value.length>0&&!I.value)return ze(w.value[0],!1);if(~d.value){oe.preventDefault();const he=d.value;ze(w.value[d.value],!1),d.value=he>=je-1?je-2:he}else oe.key==="Backspace"&&!I.value&&(d.value=je-1);return}if(e.multiple)if(oe.key==="ArrowLeft"){if(d.value<0&&Oe&&Oe>0)return;const he=d.value>-1?d.value-1:je-1;w.value[he]?d.value=he:(d.value=-1,o.value?.setSelectionRange(I.value.length,I.value.length))}else if(oe.key==="ArrowRight"){if(d.value<0)return;const he=d.value+1;w.value[he]?d.value=he:(d.value=-1,o.value?.setSelectionRange(0,0))}else~d.value&&Og(oe)&&(d.value=-1)}function ne(oe){const Oe=oe?.clipboardData?.getData("Text")??"",je=lt(Oe);je.length>1&&e.multiple&&(oe.preventDefault(),kt(je))}function pe(){e.eager&&c.value?.calculateVisibleItems()}function Pe(){i.value&&o.value?.focus(),l.value=!0,E.value=null}function ze(oe){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!oe||oe.props.disabled))if(e.multiple){const he=w.value.findIndex($e=>(e.valueComparator||Ea)($e.value,oe.value)),Se=Oe??!~he;if(~he){const $e=Se?[...w.value,oe]:[...w.value];$e.splice(he,1),w.value=$e}else Se&&(w.value=[...w.value,oe]);e.clearOnSelect&&(I.value="")}else{const he=Oe!==!1;w.value=he?[oe]:[],(!l.value||e.alwaysFilter)&&A.value&&(E.value=A.value),A.value=he&&!T.value?oe.title:"",f.nextTick(()=>{R.value=je,l.value=!0})}}function lt(oe){const je=[` -`,...e.delimiters??[]].map(c_).join("|");return oe.split(new RegExp(`(?:${je})+`))}async function kt(oe){for(let Oe of oe)Oe=Oe.trim(),Oe&&(ze(Fs(e,Oe)),await f.nextTick())}function X(oe){i.value=!0,setTimeout(()=>{s.value=!0})}function ee(oe){s.value=!1,o.value?.$el.contains(oe.relatedTarget)||(i.value=!1)}function ge(oe){u.value?.contentEl?.contains(oe.relatedTarget)&&(i.value=!0)}return f.watch(i,(oe,Oe)=>{if(!(oe||oe===Oe)&&(d.value=-1,R.value=!1,I.value)){if(e.multiple){ze(Fs(e,I.value));return}if(!T.value)return;w.value.some(je=>{let{title:he}=je;return he===I.value})?A.value="":ze(Fs(e,I.value))}}),f.watch(R,oe=>{if(!e.hideSelected&&oe&&w.value.length&&l.value){const Oe=P.value.findIndex(je=>w.value.some(he=>(e.valueComparator||Ea)(he.value,je.value)));Bn&&window.requestAnimationFrame(()=>{Oe>=0&&c.value?.scrollToIndex(Oe)})}oe&&(E.value=null)}),f.watch(v,(oe,Oe)=>{R.value||i.value&&!Oe.length&&oe.length&&(R.value=!0)}),ke(()=>{const oe=!!(!e.hideNoData||P.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),Oe=w.value.length>0,je=ta.filterProps(e),he={search:I,filteredItems:N.value};return f.createVNode(ta,f.mergeProps({ref:o},je,{modelValue:I.value,"onUpdate:modelValue":Se=>I.value=Se,focused:i.value,"onUpdate:focused":Se=>i.value=Se,validationValue:w.externalValue,counterValue:M.value,dirty:Oe,class:["v-combobox",{"v-combobox--active-menu":R.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!T.value,"v-combobox--selecting-index":d.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:S.isReadonly.value,placeholder:Oe?void 0:e.placeholder,"onClick:clear":de,"onMousedown:control":me,onKeydown:De,onPaste:ne,onBlur:ge,"aria-expanded":W.value,"aria-controls":H.value}),{...r,default:Se=>{let{id:$e}=Se;return f.createElementVNode(f.Fragment,null,[f.createVNode(Uo,f.mergeProps({id:B.value,ref:u,modelValue:R.value,"onUpdate:modelValue":le=>R.value=le,activator:"parent",contentClass:"v-combobox__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:pe,onAfterLeave:Pe},e.menuProps),{default:()=>[f.createVNode(Yc,{onFocusin:X,onKeydown:Ee},{default:()=>[r["menu-header"]&&f.createElementVNode("header",{ref:Z},[r["menu-header"](he)]),oe&&f.createVNode(hi,f.mergeProps({key:"combobox-list",ref:Y,filterable:!0,selected:z.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:le=>le.preventDefault(),selectable:!!P.value.length,onFocusout:ee,tabindex:"-1","aria-live":"polite","aria-labelledby":`${$e.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},$,e.listProps),{default:()=>[r["prepend-item"]?.(),!P.value.length&&!e.hideNoData&&(r["no-data"]?.()??f.createVNode(Vr,{key:"no-data",title:a(e.noDataText)},null)),f.createVNode(D_,{ref:c,renderless:!0,items:P.value,itemKey:"value"},{default:le=>{let{item:ue,index:xe,itemRef:Ve}=le;const et=f.mergeProps(ue.props,{ref:Ve,key:ue.value,active:U.value&&ue===j.value?!0:void 0,onClick:()=>ze(ue,null),"aria-posinset":xe+1,"aria-setsize":P.value.length});return ue.type==="divider"?r.divider?.({props:ue.raw,index:xe})??f.createVNode(Ia,f.mergeProps(ue.props,{key:`divider-${xe}`}),null):ue.type==="subheader"?r.subheader?.({props:ue.raw,index:xe})??f.createVNode(Av,f.mergeProps(ue.props,{key:`subheader-${xe}`}),null):r.item?.({item:ue,index:xe,props:et})??f.createVNode(Vr,f.mergeProps(et,{role:"option"}),{prepend:ye=>{let{isSelected:Le}=ye;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Bs,{key:ue.value,modelValue:Le,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:tt=>tt.preventDefault()},null):void 0,ue.props.prependAvatar&&f.createVNode(vl,{image:ue.props.prependAvatar},null),ue.props.prependIcon&&f.createVNode(St,{icon:ue.props.prependIcon},null)])},title:()=>l.value?ue.title:TN("v-combobox",ue.title,D(ue)?.title)})}}),r["append-item"]?.()]}),r["menu-footer"]&&f.createElementVNode("footer",{ref:te},[r["menu-footer"](he)])]})]}),w.value.map((le,ue)=>{function xe(Le){Le.stopPropagation(),Le.preventDefault(),ze(le,!1)}const Ve=f.mergeProps(ml.filterProps(le.props),{"onClick:close":xe,onKeydown(Le){Le.key!=="Enter"&&Le.key!==" "||(Le.preventDefault(),Le.stopPropagation(),xe(Le))},onMousedown(Le){Le.preventDefault(),Le.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),et=x.value?!!r.chip:!!r.selection,ye=et?s_(x.value?r.chip({item:le,index:ue,props:Ve}):r.selection({item:le,index:ue})):void 0;if(!(et&&!ye))return f.createElementVNode("div",{key:le.value,class:f.normalizeClass(["v-combobox__selection",ue===d.value&&["v-combobox__selection--selected",g.value]]),style:f.normalizeStyle(ue===d.value?y.value:{})},[x.value?r.chip?f.createVNode(Ht,{key:"chip-defaults",defaults:{VChip:{closable:_.value,size:"small",text:le.title}}},{default:()=>[ye]}):f.createVNode(ml,f.mergeProps({key:"chip",closable:_.value,size:"small",text:le.title,disabled:le.props.disabled},Ve),null):ye??f.createElementVNode("span",{class:"v-combobox__selection-text"},[le.title,e.multiple&&ue!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.ref();f.watchEffect(()=>{o.value=structuredClone(eY(a.value))});const{t:i}=An(),l=f.computed(()=>Ea(a.value,o.value));function s(m){return typeof e.disabled=="boolean"?e.disabled:Array.isArray(e.disabled)?e.disabled.includes(m):l.value}const u=f.computed(()=>s("save")),c=f.computed(()=>s("cancel"));function d(){a.value=o.value,n("save",o.value)}function h(){o.value=structuredClone(eY(a.value)),n("cancel")}function v(m){return f.createElementVNode(f.Fragment,null,[f.createVNode(xt,f.mergeProps({disabled:c.value,variant:"text",color:e.color,onClick:h,text:i(e.cancelText)},m),null),f.createVNode(xt,f.mergeProps({disabled:u.value,variant:"text",color:e.color,onClick:d,text:i(e.okText)},m),null)])}let p=!1;return ke(()=>f.createElementVNode(f.Fragment,null,[r.default?.({model:o,save:d,cancel:h,isPristine:l.value,get actions(){return p=!0,v}}),!e.hideActions&&!p&&v()])),{save:d,cancel:h,isPristine:l}}}),vX=ie({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),pX=Symbol.for("vuetify:datatable:expanded");function U_(e){const t=f.toRef(()=>e.expandOnClick),n=ot(e,"expanded",e.expanded,l=>new Set(l),l=>[...l.values()]);function r(l,s){const u=new Set(n.value),c=f.toRaw(l.value);if(s)u.add(c);else{const d=[...n.value].find(h=>f.toRaw(h)===c);u.delete(d)}n.value=u}function a(l){const s=f.toRaw(l.value);return[...n.value].some(u=>f.toRaw(u)===s)}function o(l){r(l,!a(l))}const i={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:o};return f.provide(pX,i),i}function mX(){const e=f.inject(pX);if(!e)throw new Error("foo");return e}const YN=ie({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),gX=Symbol.for("vuetify:data-table-group");function jN(e){return{groupBy:ot(e,"groupBy")}}function Y_(e){const{disableSort:t,groupBy:n,sortBy:r}=e,a=f.ref(new Set),o=f.computed(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t?.value?[]:r.value));function i(c){return a.value.has(c.id)}function l(c){const d=new Set(a.value);i(c)?d.delete(c.id):d.add(c.id),a.value=d}function s(c){function d(h){const v=[];for(const p of h.items)"type"in p&&p.type==="group"?v.push(...d(p)):v.push(p);return[...new Set(v)]}return d({items:c})}const u={sortByWithGroups:o,toggleGroup:l,opened:a,groupBy:n,extractRows:s,isGroupOpen:i};return f.provide(gX,u),u}function yX(){const e=f.inject(gX);if(!e)throw new Error("Missing group!");return e}function sDe(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=dv(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function bX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=sDe(e,t[0]),o=[],i=t.slice(1);return a.forEach((l,s)=>{const u=t[0],c=`${r}_${u}_${s}`;o.push({depth:n,id:c,key:u,value:s,items:i.length?bX(l,i,n+1,c):l,type:"group"})}),o}function wX(e,t,n){const r=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&r.push(a),(t.has(a.id)||a.value==null)&&(r.push(...wX(a.items,t,n)),n&&r.push({...a,type:"group-summary"}))):r.push(a);return r}function j_(e,t,n,r){const a=f.computed(()=>t.value.length?bX(f.toValue(e),t.value.map(i=>i.key)):[]),o=f.computed(()=>t.value.length?wX(a.value,n.value,f.toValue(r)):f.toValue(e));return{groups:a,flatItems:o}}function K_(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:o}=e;const i=Gr("VDataTable"),l=()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:o.value});let s=null;f.watch(l,u=>{Ea(s,u)||(s&&s.search!==u.search&&(t.value=1),i.emit("update:options",u),s=u)},{deep:!0,immediate:!0})}const KN=ie({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10},pageBy:{type:String,default:"any"}},"DataTable-paginate"),SX=Symbol.for("vuetify:data-table-pagination");function XN(e){const t=ot(e,"page",void 0,r=>Number(r??1)),n=ot(e,"itemsPerPage",void 0,r=>Number(r??10));return{page:t,itemsPerPage:n}}function ZN(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=f.computed(()=>n.value===-1?0:n.value*(t.value-1)),o=f.computed(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),i=f.computed(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));f.watch([t,i],()=>{t.value>i.value&&(t.value=i.value)});function l(h){n.value=h,t.value=1}function s(){t.value=Fn(t.value+1,1,i.value)}function u(){t.value=Fn(t.value-1,1,i.value)}function c(h){t.value=Fn(h,1,i.value)}const d={page:t,itemsPerPage:n,startIndex:a,stopIndex:o,pageCount:i,itemsLength:r,nextPage:s,prevPage:u,setPage:c,setItemsPerPage:l};return f.provide(SX,d),d}function uDe(){const e=f.inject(SX);if(!e)throw new Error("Missing pagination!");return e}function xX(e){const t=Gr("usePaginatedItems"),{items:n,startIndex:r,stopIndex:a,itemsPerPage:o}=e,i=f.computed(()=>o.value<=0?f.toValue(n):f.toValue(n).slice(r.value,a.value));return f.watch(i,l=>{t.emit("update:currentItems",l)},{immediate:!0}),{paginatedItems:i}}function cDe(e){const{sortedItems:t,paginate:n,group:r}=e,a=f.toValue(e.pageBy);if(a==="item"){const{paginatedItems:o,pageCount:i,setItemsPerPage:l}=n(t),{flatItems:s}=r(o);return{pageCount:i,setItemsPerPage:l,paginatedItems:s}}if(a==="group"){const{flatItems:o,groups:i}=r(t),{paginatedItems:l,pageCount:s,setItemsPerPage:u}=n(i),c=f.computed(()=>{if(!l.value.length)return[];const d=l.value.at(0).id,h=l.value.at(-1).id,v=o.value.findIndex(g=>g.type==="group"&&g.id===d),p=o.value.findIndex(g=>g.type==="group"&&g.id===h),m=o.value.findIndex((g,y)=>y>p&&g.type==="group"&&g.depth===0);return o.value.slice(v,m===-1?void 0:m)});return{pageCount:s,setItemsPerPage:u,paginatedItems:c}}if(a==="any"){const{flatItems:o}=r(t),{paginatedItems:i,pageCount:l,setItemsPerPage:s}=n(o);return{pageCount:l,setItemsPerPage:s,paginatedItems:i}}throw new Error(`Unrecognized pagination target ${a}`)}const dDe={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:n}=e;return new Set(n?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},CX={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return CX.select({items:n,value:t,selected:r})}},fDe={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n}=e;return new Set(t?n.map(r=>r.value):[])}},_X=ie({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),TX=Symbol.for("vuetify:data-table-selection");function X_(e,t){let{allItems:n,currentPage:r}=t;const a=ot(e,"modelValue",e.modelValue,b=>{const w=e.valueComparator;return w?new Set(jn(b).map(S=>n.value.find(_=>w(S,_.value))?.value??S)):new Set(jn(b).map(S=>of(S)?n.value.find(_=>S===_.value)?.value??S:n.value.find(_=>Ea(S,_.value))?.value??S))},b=>[...b.values()]),o=f.computed(()=>n.value.filter(b=>b.selectable)),i=f.computed(()=>f.toValue(r).filter(b=>b.selectable)),l=f.computed(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return dDe;case"all":return fDe;case"page":default:return CX}}),s=f.shallowRef(null);function u(b){return jn(b).every(w=>a.value.has(w.value))}function c(b){return jn(b).some(w=>a.value.has(w.value))}function d(b,w){const S=l.value.select({items:b,value:w,selected:new Set(a.value)});a.value=S}function h(b,w,S){const _=[],x=f.toValue(r);if(w=w??x.findIndex(T=>T.value===b.value),e.selectStrategy!=="single"&&S?.shiftKey&&s.value!==null){const[T,A]=[s.value,w].sort((E,I)=>E-I);_.push(...x.slice(T,A+1).filter(E=>E.selectable))}else _.push(b),s.value=w;d(_,!u([b]))}function v(b){const w=l.value.selectAll({value:b,allItems:o.value,currentPage:i.value,selected:new Set(a.value)});a.value=w}const p=f.computed(()=>a.value.size>0),m=f.computed(()=>{const b=l.value.allSelected({allItems:o.value,currentPage:i.value});return!!b.length&&u(b)}),g=f.toRef(()=>l.value.showSelectAll),y={toggleSelect:h,select:d,selectAll:v,isSelected:u,isSomeSelected:c,someSelected:p,allSelected:m,showSelectAll:g,lastSelectedIndex:s,selectStrategy:l};return f.provide(TX,y),y}function Z_(){const e=f.inject(TX);if(!e)throw new Error("Missing selection!");return e}const kX=ie({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),AX=Symbol.for("vuetify:data-table-sort");function J_(e){const t=f.toRef(()=>e.initialSortOrder),n=ot(e,"sortBy"),r=f.toRef(()=>e.mustSort),a=f.toRef(()=>e.multiSort);return{initialSortOrder:t,sortBy:n,multiSort:a,mustSort:r}}function hDe(e,t){if(!fv(e))return{active:!!e};const{key:n,mode:r,modifier:a}=e,o=a==="alt"&&t?.altKey||a==="shift"&&t?.shiftKey;return{active:!n||t?.ctrlKey||t?.metaKey||!1,mode:o?r==="append"?"prepend":"append":r}}function Q_(e){const{initialSortOrder:t,sortBy:n,mustSort:r,multiSort:a,page:o}=e,i=function(u,c){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(u.key==null)return;let h=n.value.map(g=>({...g}))??[];const v=h.find(g=>g.key===u.key),p=t.value,m=t.value==="desc"?"asc":"desc";if(v)v.order===m?d||r.value&&h.length===1?v.order=t.value:h=h.filter(g=>g.key!==u.key):v.order=m;else{const{active:g,mode:y}=hDe(a.value,c);g?y==="prepend"?h.unshift({key:u.key,order:p}):h.push({key:u.key,order:p}):h=[{key:u.key,order:p}]}n.value=h,o&&(o.value=1)};function l(u){return!!n.value.find(c=>c.key===u.key)}const s={sortBy:n,toggleSort:i,isSorted:l};return f.provide(AX,s),s}function EX(){const e=f.inject(AX);if(!e)throw new Error("Missing sort!");return e}function JN(e,t,n,r){const a=An();return{sortedItems:f.computed(()=>n.value.length?vDe(t.value,n.value,a.current.value,{transform:r?.transform,sortFunctions:{...e.customKeySort,...r?.sortFunctions?.value},sortRawFunctions:r?.sortRawFunctions?.value}):t.value)}}function vDe(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(i=>[i,r?.transform?r.transform(i):i]).sort((i,l)=>{for(let s=0;sg!=null?g.toString().toLocaleLowerCase():g),h!==v))return j1(h)&&j1(v)?0:j1(h)?-1:j1(v)?1:!isNaN(h)&&!isNaN(v)?Number(h)-Number(v):a.compare(h,v)}return 0}).map(i=>{let[l]=i;return l})}const pDe=ie({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function mDe(e,t){const n=e.returnObject?t:Wr(t,e.itemValue),r=Wr(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function gDe(e,t){const n=[];for(const r of t)n.push(mDe(e,r));return n}function yDe(e){return{items:f.computed(()=>gDe(e,e.items))}}const bDe=ie({search:String,loading:Boolean,itemsLength:[Number,String],...at(),...pDe(),..._X(),...kX(),...KN({itemsPerPage:5}),...vX(),...YN(),...Iv(),...Ft(),...Bc({transition:{component:q1,hideOnLeave:!0}})},"VDataIterator"),wDe=Ce()({name:"VDataIterator",props:bDe(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"groupBy"),a=f.toRef(()=>e.search),{items:o}=yDe(e),{filteredItems:i}=Mv(e,o,a,{transform:Y=>Y.raw}),{initialSortOrder:l,sortBy:s,multiSort:u,mustSort:c}=J_(e),{page:d,itemsPerPage:h}=XN(e),{toggleSort:v}=Q_({initialSortOrder:l,sortBy:s,multiSort:u,mustSort:c,page:d}),{sortByWithGroups:p,opened:m,extractRows:g,isGroupOpen:y,toggleGroup:b}=Y_({groupBy:r,sortBy:s}),{sortedItems:w}=JN(e,i,p,{transform:Y=>Y.raw}),{flatItems:S}=j_(w,r,m,!1),_=f.toRef(()=>!j1(e.itemsLength)),x=f.toRef(()=>_.value?Number(e.itemsLength):S.value.length),{startIndex:T,stopIndex:A,pageCount:E,prevPage:I,nextPage:M,setItemsPerPage:N,setPage:D}=ZN({page:d,itemsPerPage:h,itemsLength:x}),P=f.shallowRef([]),O=f.computed(()=>_.value?S.value:P.value);qa(()=>!_.value,()=>{const{paginatedItems:Y}=xX({items:S,startIndex:T,stopIndex:A,itemsPerPage:h});f.watchEffect(()=>{P.value=Y.value})});const L=f.computed(()=>g(O.value)),{isSelected:R,select:B,selectAll:W,toggleSelect:H}=X_(e,{allItems:o,currentPage:L}),{isExpanded:z,toggleExpand:j}=U_(e);K_({page:d,itemsPerPage:h,sortBy:s,groupBy:r,search:a});const U=f.computed(()=>({page:d.value,itemsPerPage:h.value,sortBy:s.value,pageCount:E.value,toggleSort:v,prevPage:I,nextPage:M,setPage:D,setItemsPerPage:N,isSelected:R,select:B,selectAll:W,toggleSelect:H,isExpanded:z,toggleExpand:j,isGroupOpen:y,toggleGroup:b,items:L.value,itemsCount:i.value.length,groupedItems:O.value}));return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.header?.(U.value),f.createVNode(Wo,{transition:e.transition},{default:()=>[e.loading?f.createVNode(tw,{key:"loader",name:"v-data-iterator",active:!0},{default:Y=>n.loader?.(Y)}):f.createElementVNode("div",{key:"items"},[O.value.length?n.default?.(U.value):n["no-data"]?.()])]}),n.footer?.(U.value)]})),{}}});function SDe(){const e=f.ref([]);f.onBeforeUpdate(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const xDe=ie({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:ut,default:"$first"},prevIcon:{type:ut,default:"$prev"},nextIcon:{type:ut,default:"$next"},lastIcon:{type:ut,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...wo(),...at(),..._r(),...jr(),...qn(),...Tu(),...Ft({tag:"nav"}),...pn(),...fl({variant:"text"})},"VPagination"),qg=Ce()({name:"VPagination",props:xDe(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ot(e,"modelValue"),{t:o,n:i}=An(),{isRtl:l}=ea(),{themeClasses:s}=In(e),{width:u}=pl(),c=f.shallowRef(-1);Cr(void 0,{scoped:!0});const{resizeRef:d}=Ul(A=>{if(!A.length)return;const{target:E,contentRect:I}=A[0],M=E.querySelector(".v-pagination__list > *");if(!M)return;const N=I.width,D=M.offsetWidth+parseFloat(getComputedStyle(M).marginRight)*2;c.value=m(N,D)}),h=f.computed(()=>parseInt(e.length,10)),v=f.computed(()=>parseInt(e.start,10)),p=f.computed(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:m(u.value,58));function m(A,E){const I=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((A-E*I)/E).toFixed(2))))}const g=f.computed(()=>{if(h.value<=0||isNaN(h.value)||h.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[a.value];if(h.value<=p.value)return wu(h.value,v.value);const A=p.value%2===0,E=A?p.value/2:Math.floor(p.value/2),I=A?E:E+1,M=h.value-E;if(I-a.value>=0)return[...wu(Math.max(1,p.value-1),v.value),e.ellipsis,h.value];if(a.value-M>=(A?1:0)){const N=p.value-1,D=h.value-N+v.value;return[v.value,e.ellipsis,...wu(N,D)]}else{const N=Math.max(1,p.value-2),D=N===1?a.value:a.value-Math.ceil(N/2)+v.value;return[v.value,e.ellipsis,...wu(N,D),e.ellipsis,h.value]}});function y(A,E,I){A.preventDefault(),a.value=E,I&&r(I,E)}const{refs:b,updateRef:w}=SDe();Cr({VPaginationBtn:{color:f.toRef(()=>e.color),border:f.toRef(()=>e.border),density:f.toRef(()=>e.density),size:f.toRef(()=>e.size),variant:f.toRef(()=>e.variant),rounded:f.toRef(()=>e.rounded),elevation:f.toRef(()=>e.elevation)}});const S=f.computed(()=>g.value.map((A,E)=>{const I=M=>w(M,E);if(typeof A=="string")return{isActive:!1,key:`ellipsis-${E}`,page:A,props:{ref:I,ellipsis:!0,icon:!0,disabled:!0}};{const M=A===a.value;return{isActive:M,key:A,page:i(A),props:{ref:I,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:M?e.activeColor:e.color,"aria-current":M,"aria-label":o(M?e.currentPageAriaLabel:e.pageAriaLabel,A),onClick:N=>y(N,A)}}}})),_=f.computed(()=>{const A=!!e.disabled||a.value<=v.value,E=!!e.disabled||a.value>=v.value+h.value-1;return{first:e.showFirstLastPage?{icon:l.value?e.lastIcon:e.firstIcon,onClick:I=>y(I,v.value,"first"),disabled:A,"aria-label":o(e.firstAriaLabel),"aria-disabled":A}:void 0,prev:{icon:l.value?e.nextIcon:e.prevIcon,onClick:I=>y(I,a.value-1,"prev"),disabled:A,"aria-label":o(e.previousAriaLabel),"aria-disabled":A},next:{icon:l.value?e.prevIcon:e.nextIcon,onClick:I=>y(I,a.value+1,"next"),disabled:E,"aria-label":o(e.nextAriaLabel),"aria-disabled":E},last:e.showFirstLastPage?{icon:l.value?e.firstIcon:e.lastIcon,onClick:I=>y(I,v.value+h.value-1,"last"),disabled:E,"aria-label":o(e.lastAriaLabel),"aria-disabled":E}:void 0}});function x(){const A=a.value-v.value;b.value[A]?.$el.focus()}function T(A){A.key===dP.left&&!e.disabled&&a.value>Number(e.start)?(a.value=a.value-1,f.nextTick(x)):A.key===dP.right&&!e.disabled&&a.valuef.createVNode(e.tag,{ref:d,class:f.normalizeClass(["v-pagination",s.value,e.class]),style:f.normalizeStyle(e.style),role:"navigation","aria-label":o(e.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[f.createElementVNode("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&f.createElementVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(_.value.first):f.createVNode(xt,f.mergeProps({_as:"VPaginationBtn"},_.value.first),null)]),f.createElementVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(_.value.prev):f.createVNode(xt,f.mergeProps({_as:"VPaginationBtn"},_.value.prev),null)]),S.value.map((A,E)=>f.createElementVNode("li",{key:A.key,class:f.normalizeClass(["v-pagination__item",{"v-pagination__item--is-active":A.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(A):f.createVNode(xt,f.mergeProps({_as:"VPaginationBtn"},A.props),{default:()=>[A.page]})])),f.createElementVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(_.value.next):f.createVNode(xt,f.mergeProps({_as:"VPaginationBtn"},_.value.next),null)]),e.showFirstLastPage&&f.createElementVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(_.value.last):f.createVNode(xt,f.mergeProps({_as:"VPaginationBtn"},_.value.last),null)])])]})),{}}}),QN=ie({color:String,prevIcon:{type:ut,default:"$prev"},nextIcon:{type:ut,default:"$next"},firstIcon:{type:ut,default:"$first"},lastIcon:{type:ut,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Cw=Ce()({name:"VDataTableFooter",props:QN(),setup(e,t){let{slots:n}=t;const{t:r}=An(),{page:a,pageCount:o,startIndex:i,stopIndex:l,itemsLength:s,itemsPerPage:u,setItemsPerPage:c}=uDe(),d=f.computed(()=>e.itemsPerPageOptions.map(h=>typeof h=="number"?{value:h,title:h===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(h)}:{...h,title:isNaN(Number(h.title))?r(h.title):h.title}));return ke(()=>{const h=qg.filterProps(e);return f.createElementVNode("div",{class:"v-data-table-footer"},[n.prepend?.(),f.createElementVNode("div",{class:"v-data-table-footer__items-per-page"},[f.createElementVNode("span",null,[r(e.itemsPerPageText)]),f.createVNode(Kg,{items:d.value,itemColor:e.color,modelValue:u.value,"onUpdate:modelValue":v=>c(Number(v)),density:"compact",variant:"outlined","aria-label":r(e.itemsPerPageText),hideDetails:!0},null)]),f.createElementVNode("div",{class:"v-data-table-footer__info"},[f.createElementVNode("div",null,[r(e.pageText,s.value?i.value+1:0,l.value,s.value)])]),f.createElementVNode("div",{class:"v-data-table-footer__pagination"},[f.createVNode(qg,f.mergeProps({modelValue:a.value,"onUpdate:modelValue":v=>a.value=v,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:o.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},Kt(h,["color"])),null)])])}),{}}}),_w=ETe({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td",a=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return f.createVNode(r,{class:f.normalizeClass(["v-data-table__td",{"v-data-table-column--fixed":a==="start","v-data-table-column--fixed-end":a==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:Re(e.height),width:Re(e.width),maxWidth:Re(e.maxWidth),left:a==="start"?Re(e.fixedOffset||null):void 0,right:a==="end"?Re(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?Re(e.indent):void 0}},{default:()=>[n.default?.()]})}),CDe=ie({headers:Array},"DataTable-header"),IX=Symbol.for("vuetify:data-table-headers"),MX={title:"",sortable:!1},_De={...MX,width:48};function TDe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let o=0;or){t.splice(o,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function qN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)qN(n,t);return t}function DX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&DX(n.children,t);return t}function kDe(e){if(e.key){if(e.key==="data-table-group")return MX;if(["data-table-expand","data-table-select"].includes(e.key))return _De}}function $N(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>$N(n,t+1))):t}function ADe(e){let t=!1;function n(o,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(o)if(l!=="none"&&(o.fixed=l),o.fixed===!0&&(o.fixed="start"),o.fixed===i)if(o.children)if(i==="start")for(let s=o.children.length-1;s>=0;s--)n(o.children[s],i,i);else for(let s=0;s=0;s--)n(o.children[s],i);else for(let s=0;s=0;o--)n(e[o],"start");for(let o=0;o=0;o--)a=PX(e[o],a)}function VX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=VX(n,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function PX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=PX(n,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function EDe(e,t){const n=[];let r=0;const a=TDe(e);for(;a.size()>0;){let i=a.count();const l=[];let s=1;for(;i>0;){const{element:u,priority:c}=a.dequeue(),d=t-r-$N(u);if(l.push({...u,rowspan:d??1,colspan:u.children?qN(u).length:1}),u.children)for(const h of u.children){const v=c%1+s/Math.pow(10,r+2);a.enqueue(h,r+d+v)}s+=1,i-=1}r+=1,n.push(l)}return{columns:e.map(i=>qN(i)).flat(),headers:n}}function NX(e){const t=[];for(const n of e){const r={...kDe(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),o=r.value??a??null,i={...r,key:a,value:o,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?NX(r.children):void 0};t.push(i)}return t}function eL(e,t){const n=f.ref([]),r=f.ref([]),a=f.ref({}),o=f.ref({}),i=f.ref({});f.watchEffect(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(m=>({key:m,title:f.capitalize(m)}))).slice(),c=DX(u);t?.groupBy?.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const d=NX(u);ADe(d);const h=Math.max(...d.map(m=>$N(m)))+1,v=EDe(d,h);n.value=v.headers,r.value=v.columns;const p=v.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(a.value[m.key]=m.sort),m.sortRaw&&(o.value[m.key]=m.sortRaw)),m.filter&&(i.value[m.key]=m.filter))});const l={headers:n,columns:r,sortFunctions:a,sortRawFunctions:o,filterFunctions:i};return f.provide(IX,l),l}function q_(){const e=f.inject(IX);if(!e)throw new Error("Missing headers!");return e}const LX=ie({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortIcon:{type:ut},sortAscIcon:{type:ut,default:"$sortAsc"},sortDescIcon:{type:ut,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,..._r(),...Tv(),...x_()},"VDataTableHeaders"),Rv=Ce()({name:"VDataTableHeaders",props:LX(),setup(e,t){let{slots:n}=t;const{t:r}=An(),{toggleSort:a,sortBy:o,isSorted:i}=EX(),{someSelected:l,allSelected:s,selectAll:u,showSelectAll:c}=Z_(),{columns:d,headers:h}=q_(),{loaderClasses:v}=ew(e);function p(E,I){if(!(e.sticky||e.fixedHeader)&&!E.fixed)return;const M=typeof E.fixed=="string"?E.fixed:E.fixed?"start":"none";return{position:"sticky",left:M==="start"?Re(E.fixedOffset):void 0,right:M==="end"?Re(E.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${I})`:void 0}}function m(E,I){E.key==="Enter"&&!e.disableSort&&a(I,E)}function g(E){switch(o.value.find(M=>M.key===E.key)?.order){case"asc":return e.sortAscIcon;case"desc":return e.sortDescIcon;default:return e.sortIcon||(e.initialSortOrder==="asc"?e.sortAscIcon:e.sortDescIcon)}}const{backgroundColorClasses:y,backgroundColorStyles:b}=Ln(()=>e.color),{displayClasses:w,mobile:S}=pl(e),_=f.computed(()=>({headers:h.value,columns:d.value,toggleSort:a,isSorted:i,sortBy:o.value,someSelected:l.value,allSelected:s.value,selectAll:u,getSortIcon:g})),x=f.computed(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},w.value,v.value]),T=E=>{let{column:I,x:M,y:N}=E;const D=I.key==="data-table-select"||I.key==="data-table-expand",P=I.key==="data-table-group"&&I.width===0&&!I.title,O=f.mergeProps(e.headerProps??{},I.headerProps??{});return f.createVNode(_w,f.mergeProps({tag:"th",align:I.align,class:[{"v-data-table__th--sortable":I.sortable&&!e.disableSort,"v-data-table__th--sorted":i(I),"v-data-table__th--fixed":I.fixed},...x.value],style:{width:Re(I.width),minWidth:Re(I.minWidth),maxWidth:Re(I.maxWidth),...p(I,N)},colspan:I.colspan,rowspan:I.rowspan,fixed:I.fixed,nowrap:I.nowrap,lastFixed:I.lastFixed,firstFixedEnd:I.firstFixedEnd,noPadding:D,empty:P,tabindex:I.sortable?0:void 0,onClick:I.sortable?L=>a(I,L):void 0,onKeydown:I.sortable?L=>m(L,I):void 0},O),{default:()=>{const L=`header.${I.key}`,R={column:I,selectAll:u,isSorted:i,toggleSort:a,sortBy:o.value,someSelected:l.value,allSelected:s.value,getSortIcon:g};return n[L]?n[L](R):P?"":I.key==="data-table-select"?n["header.data-table-select"]?.(R)??(c.value&&f.createVNode(Bs,{color:e.color,density:e.density,modelValue:s.value,indeterminate:l.value&&!s.value,"onUpdate:modelValue":u},null)):f.createElementVNode("div",{class:"v-data-table-header__content"},[f.createElementVNode("span",null,[I.title]),I.sortable&&!e.disableSort&&f.createVNode(St,{key:"icon",class:"v-data-table-header__sort-icon",icon:g(I)},null),e.multiSort&&i(I)&&f.createElementVNode("div",{key:"badge",class:f.normalizeClass(["v-data-table-header__sort-badge",...y.value]),style:f.normalizeStyle(b.value)},[o.value.findIndex(B=>B.key===I.key)+1])])}})},A=()=>{const E=f.computed(()=>d.value.filter(N=>N?.sortable&&!e.disableSort)),I=d.value.find(N=>N.key==="data-table-select"),M=f.computed({get:()=>E.value.filter(N=>{let{key:D}=N;return o.value.some(P=>P.key===D)}),set:N=>{const D=jn(N),P=o.value.map(L=>L.key);D.filter(L=>{let{key:R}=L;return!P.includes(R)}).forEach(L=>a(L)),f.nextTick(()=>o.value=o.value.filter(L=>{let{key:R}=L;return D.some(B=>B.key===R)}))}});return f.createVNode(_w,f.mergeProps({tag:"th",class:[...x.value],colspan:h.value.length+1},e.headerProps),{default:()=>[f.createElementVNode("div",{class:"v-data-table-header__content"},[f.createVNode(Kg,{modelValue:M.value,"onUpdate:modelValue":N=>M.value=N,chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:E.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined",returnObject:!0,"onClick:clear":()=>o.value=[]},{append:I?()=>f.createVNode(Bs,{color:e.color,density:"compact",modelValue:s.value,indeterminate:l.value&&!s.value,"onUpdate:modelValue":()=>u(!s.value)},null):void 0,chip:N=>{let{item:D}=N;return f.createVNode(ml,{onClick:D.raw.sortable?()=>a(D.raw,void 0,!0):void 0,onMousedown:P=>{P.preventDefault(),P.stopPropagation()}},{default:()=>[D.title,f.createVNode(St,{class:f.normalizeClass(["v-data-table__td-sort-icon",i(D.raw)&&"v-data-table__td-sort-icon-active"]),icon:g(D.raw),size:"small"},null)]})}})])]})};ke(()=>S.value?f.createElementVNode("tr",null,[f.createVNode(A,null,null)]):f.createElementVNode(f.Fragment,null,[n.headers?n.headers(_.value):h.value.map((E,I)=>f.createElementVNode("tr",null,[E.map((M,N)=>f.createVNode(T,{column:M,x:N,y:I},null))])),e.loading&&f.createElementVNode("tr",{class:"v-data-table-progress"},[f.createElementVNode("th",{colspan:d.value.length},[f.createVNode(tw,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),OX=ie({item:{type:Object,required:!0},groupCollapseIcon:{type:ut,default:"$tableGroupCollapse"},groupExpandIcon:{type:ut,default:"$tableGroupExpand"},..._r()},"VDataTableGroupHeaderRow"),IDe=Ce()({name:"VDataTableGroupHeaderRow",props:OX(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:o}=yX(),{isSelected:i,isSomeSelected:l,select:s}=Z_(),{columns:u}=q_(),c=f.computed(()=>o([e.item])),d=f.toRef(()=>u.value.length-(u.value.some(h=>h.key==="data-table-select")?1:0));return()=>f.createElementVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(h=>{if(h.key==="data-table-group"){const v=r(e.item)?e.groupCollapseIcon:e.groupExpandIcon,p=()=>a(e.item);return n["data-table-group"]?.({item:e.item,count:c.value.length,props:{icon:v,onClick:p}})??f.createVNode(_w,{class:"v-data-table-group-header-row__column",colspan:d.value},{default:()=>[f.createVNode(xt,{size:"small",variant:"text",icon:v,onClick:p},null),f.createElementVNode("span",null,[e.item.value]),f.createElementVNode("span",null,[f.createTextVNode("("),c.value.length,f.createTextVNode(")")])]})}else if(h.key==="data-table-select"){const v=c.value.filter(y=>y.selectable),p=v.length>0&&i(v),m=l(v)&&!p,g=y=>s(v,y);return n["data-table-select"]?.({props:{modelValue:p,indeterminate:m,"onUpdate:modelValue":g}})??f.createVNode(_w,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[f.createVNode(Bs,{density:e.density,disabled:v.length===0,modelValue:p,indeterminate:m,"onUpdate:modelValue":g},null)]})}return""})])}}),RX=ie({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:ut,default:"$collapse"},expandIcon:{type:ut,default:"$expand"},onClick:Qa(),onContextmenu:Qa(),onDblclick:Qa(),..._r(),...Tv()},"VDataTableRow"),tL=Ce()({name:"VDataTableRow",props:RX(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:a}=pl(e,"v-data-table__tr"),{isSelected:o,toggleSelect:i,someSelected:l,allSelected:s,selectAll:u}=Z_(),{isExpanded:c,toggleExpand:d}=mX(),{toggleSort:h,sortBy:v,isSorted:p}=EX(),{columns:m}=q_();ke(()=>f.createElementVNode("tr",{class:f.normalizeClass(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&m.value.map((g,y)=>{const b=e.item,w=`item.${g.key}`,S=`header.${g.key}`,_={index:e.index,item:b.raw,internalItem:b,value:dv(b.columns,g.key),column:g,isSelected:o,toggleSelect:i,isExpanded:c,toggleExpand:d},x={column:g,selectAll:u,isSorted:p,toggleSort:h,sortBy:v.value,someSelected:l.value,allSelected:s.value,getSortIcon:()=>""},T=typeof e.cellProps=="function"?e.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value,column:g}):e.cellProps,A=typeof g.cellProps=="function"?g.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value}):g.cellProps,E=g.key==="data-table-select"||g.key==="data-table-expand",I=g.key==="data-table-group"&&g.width===0&&!g.title;return f.createVNode(_w,f.mergeProps({align:g.align,indent:g.indent,class:{"v-data-table__td--expanded-row":g.key==="data-table-expand","v-data-table__td--select-row":g.key==="data-table-select"},fixed:g.fixed,fixedOffset:g.fixedOffset,fixedEndOffset:g.fixedEndOffset,lastFixed:g.lastFixed,firstFixedEnd:g.firstFixedEnd,maxWidth:a.value?void 0:g.maxWidth,noPadding:E,empty:I,nowrap:g.nowrap,width:a.value?void 0:g.width},T,A),{default:()=>{if(g.key==="data-table-select")return n["item.data-table-select"]?.({..._,props:{color:e.color,disabled:!b.selectable,modelValue:o([b]),onClick:f.withModifiers(()=>i(b),["stop"])}})??f.createVNode(Bs,{color:e.color,disabled:!b.selectable,density:e.density,modelValue:o([b]),onClick:f.withModifiers(N=>i(b,e.index,N),["stop"])},null);if(g.key==="data-table-expand")return n["item.data-table-expand"]?.({..._,props:{icon:c(b)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:f.withModifiers(()=>d(b),["stop"])}})??f.createVNode(xt,{icon:c(b)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:f.withModifiers(()=>d(b),["stop"])},null);if(n[w]&&!a.value)return n[w](_);const M=f.toDisplayString(_.value);return a.value?f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-data-table__td-title"},[n[S]?.(x)??g.title]),f.createElementVNode("div",{class:"v-data-table__td-value"},[n[w]?.(_)??M])]):M}})})]))}}),BX=ie({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...fi(RX(),["collapseIcon","expandIcon","density"]),...fi(OX(),["groupCollapseIcon","groupExpandIcon","density"]),...Tv()},"VDataTableRows"),Bv=Ce()({name:"VDataTableRows",inheritAttrs:!1,props:BX(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=q_(),{expandOnClick:o,toggleExpand:i,isExpanded:l}=mX(),{isSelected:s,toggleSelect:u}=Z_(),{toggleGroup:c,isGroupOpen:d}=yX(),{t:h}=An(),{mobile:v}=pl(e);return ke(()=>{const p=fi(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||r.loading)?f.createElementVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[f.createElementVNode("td",{colspan:a.value.length},[r.loading?.()??h(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?f.createElementVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[f.createElementVNode("td",{colspan:a.value.length},[r["no-data"]?.()??h(e.noDataText)])]):f.createElementVNode(f.Fragment,null,[e.items.map((m,g)=>{if(m.type==="group"){const w={index:g,item:m,columns:a.value,isExpanded:l,toggleExpand:i,isSelected:s,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return r["group-header"]?r["group-header"](w):f.createVNode(IDe,f.mergeProps({key:`group-header_${m.id}`,item:m},ul(n,":groupHeader",()=>w),p),r)}if(m.type==="group-summary"){const w={index:g,item:m,columns:a.value,toggleGroup:c};return r["group-summary"]?.(w)??""}const y={index:m.virtualIndex??g,item:m.raw,internalItem:m,columns:a.value,isExpanded:l,toggleExpand:i,isSelected:s,toggleSelect:u},b={...y,props:f.mergeProps({key:`item_${m.key??m.index}`,onClick:o.value?()=>{i(m)}:void 0,index:g,item:m,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:v.value},ul(n,":row",()=>y),typeof e.rowProps=="function"?e.rowProps({item:y.item,index:y.index,internalItem:y.internalItem}):e.rowProps)};return f.createElementVNode(f.Fragment,{key:b.props.key},[r.item?r.item(b):f.createVNode(tL,b.props,r),l(m)&&r["expanded-row"]?.(y)])})])}),{}}}),FX=ie({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...at(),..._r(),...Ft(),...pn()},"VTable"),Fv=Ce()({name:"VTable",props:FX(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=In(e),{densityClasses:o}=$a(e);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},a.value,o.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.top?.(),n.default?f.createElementVNode("div",{class:"v-table__wrapper",style:{height:Re(e.height)}},[f.createElementVNode("table",null,[n.default()])]):n.wrapper?.(),n.bottom?.()]})),{}}}),MDe=ie({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function DDe(e,t,n,r){const a=e.returnObject?t:Wr(t,e.itemValue),o=Wr(t,e.itemSelectable,!0),i=r.reduce((l,s)=>(s.key!=null&&(l[s.key]=Wr(t,s.value)),l),{});return{type:"item",key:e.returnObject?Wr(t,e.itemValue):a,index:n,value:a,selectable:o,columns:i,raw:t}}function VDe(e,t,n){return t.map((r,a)=>DDe(e,r,a,n))}function nL(e,t){return{items:f.computed(()=>VDe(e,e.items,t.value))}}const rL=ie({...BX(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...vX(),...YN(),...CDe(),...MDe(),..._X(),...kX(),...Kt(LX(),["multiSort","initialSortOrder"]),...FX()},"DataTable"),PDe=ie({...KN(),...rL(),...Iv(),...QN()},"VDataTable"),NDe=Ce()({name:"VDataTable",props:PDe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=jN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=J_(e),{page:u,itemsPerPage:c}=XN(e),{disableSort:d}=f.toRefs(e),{columns:h,headers:v,sortFunctions:p,sortRawFunctions:m,filterFunctions:g}=eL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:y}=nL(e,h),b=f.toRef(()=>e.search),{filteredItems:w}=Mv(e,y,b,{transform:Z=>Z.columns,customKeyFilter:g}),{toggleSort:S}=Q_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s,page:u}),{sortByWithGroups:_,opened:x,extractRows:T,isGroupOpen:A,toggleGroup:E}=Y_({groupBy:a,sortBy:i,disableSort:d}),{sortedItems:I}=JN(e,w,_,{transform:Z=>({...Z.raw,...Z.columns}),sortFunctions:p,sortRawFunctions:m}),M=f.computed(()=>e.pageBy==="auto"?e.groupBy.length?"group":"item":e.pageBy),{pageCount:N,setItemsPerPage:D,paginatedItems:P}=cDe({pageBy:M,sortedItems:I,paginate:Z=>{const te=f.computed(()=>f.toValue(Z).length),{startIndex:$,stopIndex:ae,pageCount:de,setItemsPerPage:me}=ZN({page:u,itemsPerPage:c,itemsLength:te}),{paginatedItems:fe}=xX({items:Z,startIndex:$,stopIndex:ae,itemsPerPage:c});return{paginatedItems:fe,pageCount:de,setItemsPerPage:me}},group:Z=>j_(Z,a,x,()=>!!r["group-summary"])}),O=f.computed(()=>T(P.value)),{isSelected:L,select:R,selectAll:B,toggleSelect:W,someSelected:H,allSelected:z}=X_(e,{allItems:y,currentPage:O}),{isExpanded:j,toggleExpand:U}=U_(e);K_({page:u,itemsPerPage:c,sortBy:i,groupBy:a,search:b}),Cr({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const Y=f.computed(()=>({page:u.value,itemsPerPage:c.value,sortBy:i.value,pageCount:N.value,toggleSort:S,setItemsPerPage:D,someSelected:H.value,allSelected:z.value,isSelected:L,select:R,selectAll:B,toggleSelect:W,isExpanded:j,toggleExpand:U,isGroupOpen:A,toggleGroup:E,items:O.value.map(Z=>Z.raw),internalItems:O.value,groupedItems:P.value,columns:h.value,headers:v.value}));return ke(()=>{const Z=Cw.filterProps(e),te=Rv.filterProps(Kt(e,["multiSort"])),$=Bv.filterProps(e),ae=Fv.filterProps(e);return f.createVNode(Fv,f.mergeProps({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},ae,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(Y.value),default:()=>r.default?r.default(Y.value):f.createElementVNode(f.Fragment,null,[r.colgroup?.(Y.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead"},[f.createVNode(Rv,f.mergeProps(te,{multiSort:!!e.multiSort}),r)]),r.thead?.(Y.value),!e.hideDefaultBody&&f.createElementVNode("tbody",null,[r["body.prepend"]?.(Y.value),r.body?r.body(Y.value):f.createVNode(Bv,f.mergeProps(n,$,{items:P.value}),r),r["body.append"]?.(Y.value)]),r.tbody?.(Y.value),r.tfoot?.(Y.value)]),bottom:()=>r.bottom?r.bottom(Y.value):!e.hideDefaultFooter&&f.createElementVNode(f.Fragment,null,[f.createVNode(Ia,null,null),f.createVNode(Cw,Z,{prepend:r["footer.prepend"]})])})}),{}}}),LDe=ie({...Kt(rL(),["hideDefaultFooter"]),...YN(),...cK(),...Iv()},"VDataTableVirtual"),ODe=Ce()({name:"VDataTableVirtual",props:LDe(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=jN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=J_(e),{disableSort:u}=f.toRefs(e),{columns:c,headers:d,filterFunctions:h,sortFunctions:v,sortRawFunctions:p}=eL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:m}=nL(e,c),g=f.toRef(()=>e.search),{filteredItems:y}=Mv(e,m,g,{transform:fe=>fe.columns,customKeyFilter:h}),{toggleSort:b}=Q_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}),{sortByWithGroups:w,opened:S,extractRows:_,isGroupOpen:x,toggleGroup:T}=Y_({groupBy:a,sortBy:i,disableSort:u}),{sortedItems:A}=JN(e,y,w,{transform:fe=>({...fe.raw,...fe.columns}),sortFunctions:v,sortRawFunctions:p}),{flatItems:E}=j_(A,a,S,()=>!!r["group-summary"]),I=f.computed(()=>_(E.value)),{isSelected:M,select:N,selectAll:D,toggleSelect:P,someSelected:O,allSelected:L}=X_(e,{allItems:I,currentPage:I}),{isExpanded:R,toggleExpand:B}=U_(e),{containerRef:W,markerRef:H,paddingTop:z,paddingBottom:j,computedItems:U,handleItemResize:Y,handleScroll:Z,handleScrollend:te,calculateVisibleItems:$,scrollToIndex:ae}=dK(e,E),de=f.computed(()=>U.value.map(fe=>({...fe.raw,virtualIndex:fe.index})));K_({sortBy:i,page:f.shallowRef(1),itemsPerPage:f.shallowRef(-1),groupBy:a,search:g}),Cr({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const me=f.computed(()=>({sortBy:i.value,toggleSort:b,someSelected:O.value,allSelected:L.value,isSelected:M,select:N,selectAll:D,toggleSelect:P,isExpanded:R,toggleExpand:B,isGroupOpen:x,toggleGroup:T,items:I.value.map(fe=>fe.raw),internalItems:I.value,groupedItems:E.value,columns:c.value,headers:d.value}));return ke(()=>{const fe=Rv.filterProps(Kt(e,["multiSort"])),Ee=Bv.filterProps(e),De=Fv.filterProps(e);return f.createVNode(Fv,f.mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},De,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(me.value),wrapper:()=>f.createElementVNode("div",{ref:W,onScrollPassive:Z,onScrollend:te,class:"v-table__wrapper",style:{height:Re(e.height)}},[f.createElementVNode("table",null,[r.colgroup?.(me.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead"},[f.createVNode(Rv,f.mergeProps(fe,{multiSort:!!e.multiSort}),r)]),r.thead?.(me.value),!e.hideDefaultBody&&f.createElementVNode("tbody",{key:"tbody"},[f.createElementVNode("tr",{ref:H,style:{height:Re(z.value),border:0}},[f.createElementVNode("td",{colspan:c.value.length,style:{height:0,border:0}},null)]),r["body.prepend"]?.(me.value),f.createVNode(Bv,f.mergeProps(n,Ee,{items:de.value}),{...r,item:ne=>f.createVNode(uK,{key:ne.internalItem.index,renderless:!0,"onUpdate:height":pe=>Y(ne.internalItem.index,pe)},{default:pe=>{let{itemRef:Pe}=pe;return r.item?.({...ne,itemRef:Pe})??f.createVNode(tL,f.mergeProps(ne.props,{ref:Pe,key:ne.internalItem.index,index:ne.index}),r)}})}),r["body.append"]?.(me.value),f.createElementVNode("tr",{style:{height:Re(j.value),border:0}},[f.createElementVNode("td",{colspan:c.value.length,style:{height:0,border:0}},null)])]),r.tbody?.(me.value),r.tfoot?.(me.value)])]),bottom:()=>r.bottom?.(me.value)})}),{calculateVisibleItems:$,scrollToIndex:ae}}}),RDe=ie({itemsLength:{type:[Number,String],required:!0},...KN(),...rL(),...QN()},"VDataTableServer"),BDe=Ce()({name:"VDataTableServer",props:RDe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=jN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=J_(e),{page:u,itemsPerPage:c}=XN(e),{disableSort:d}=f.toRefs(e),h=f.computed(()=>parseInt(e.itemsLength,10)),{columns:v,headers:p}=eL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:m}=nL(e,v),{toggleSort:g}=Q_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s,page:u}),{opened:y,isGroupOpen:b,toggleGroup:w,extractRows:S}=Y_({groupBy:a,sortBy:i,disableSort:d}),{pageCount:_,setItemsPerPage:x}=ZN({page:u,itemsPerPage:c,itemsLength:h}),{flatItems:T}=j_(m,a,y,()=>!!r["group-summary"]),{isSelected:A,select:E,selectAll:I,toggleSelect:M,someSelected:N,allSelected:D}=X_(e,{allItems:m,currentPage:m}),{isExpanded:P,toggleExpand:O}=U_(e),L=f.computed(()=>S(m.value));K_({page:u,itemsPerPage:c,sortBy:i,groupBy:a,search:f.toRef(()=>e.search)}),f.provide("v-data-table",{toggleSort:g,sortBy:i}),Cr({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const R=f.computed(()=>({page:u.value,itemsPerPage:c.value,sortBy:i.value,pageCount:_.value,toggleSort:g,setItemsPerPage:x,someSelected:N.value,allSelected:D.value,isSelected:A,select:E,selectAll:I,toggleSelect:M,isExpanded:P,toggleExpand:O,isGroupOpen:b,toggleGroup:w,items:L.value.map(B=>B.raw),internalItems:L.value,groupedItems:T.value,columns:v.value,headers:p.value}));ke(()=>{const B=Cw.filterProps(e),W=Rv.filterProps(Kt(e,["multiSort"])),H=Bv.filterProps(e),z=Fv.filterProps(e);return f.createVNode(Fv,f.mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},z,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(R.value),default:()=>r.default?r.default(R.value):f.createElementVNode(f.Fragment,null,[r.colgroup?.(R.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[f.createVNode(Rv,f.mergeProps(W,{multiSort:!!e.multiSort}),r)]),r.thead?.(R.value),!e.hideDefaultBody&&f.createElementVNode("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[r["body.prepend"]?.(R.value),r.body?r.body(R.value):f.createVNode(Bv,f.mergeProps(n,H,{items:T.value}),r),r["body.append"]?.(R.value)]),r.tbody?.(R.value),r.tfoot?.(R.value)]),bottom:()=>r.bottom?r.bottom(R.value):!e.hideDefaultFooter&&f.createElementVNode(f.Fragment,null,[f.createVNode(Ia,null,null),f.createVNode(Cw,B,{prepend:r["footer.prepend"]})])})})}}),FDe=ie({fluid:{type:Boolean,default:!1},...at(),...Ur(),...Ft()},"VContainer"),HX=Ce()({name:"VContainer",props:FDe(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=ea(),{dimensionStyles:a}=Yr(e);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-container",{"v-container--fluid":e.fluid},r.value,e.class]),style:f.normalizeStyle([a.value,e.style])},n)),{}}}),zX=A_.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),WX=A_.reduce((e,t)=>{const n="offset"+f.capitalize(t);return e[n]={type:[String,Number],default:null},e},{}),GX=A_.reduce((e,t)=>{const n="order"+f.capitalize(t);return e[n]={type:[String,Number],default:null},e},{}),UX={col:Object.keys(zX),offset:Object.keys(WX),order:Object.keys(GX)};function HDe(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const zDe=["auto","start","end","center","baseline","stretch"],WDe=ie({cols:{type:[Boolean,String,Number],default:!1},...zX,offset:{type:[String,Number],default:null},...WX,order:{type:[String,Number],default:null},...GX,alignSelf:{type:String,default:null,validator:e=>zDe.includes(e)},...at(),...Ft()},"VCol"),aL=Ce()({name:"VCol",props:WDe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>{const a=[];let o;for(o in UX)UX[o].forEach(l=>{const s=e[l],u=HDe(o,l,s);u&&a.push(u)});const i=a.some(l=>l.startsWith("v-col-"));return a.push({"v-col":!i||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>f.h(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),oL=["start","end","center"],YX=["space-between","space-around","space-evenly"];function iL(e,t){return A_.reduce((n,r)=>{const a=e+f.capitalize(r);return n[a]=t(),n},{})}const GDe=[...oL,"baseline","stretch"],jX=e=>GDe.includes(e),KX=iL("align",()=>({type:String,default:null,validator:jX})),UDe=[...oL,...YX],XX=e=>UDe.includes(e),ZX=iL("justify",()=>({type:String,default:null,validator:XX})),YDe=[...oL,...YX,"stretch"],JX=e=>YDe.includes(e),QX=iL("alignContent",()=>({type:String,default:null,validator:JX})),qX={align:Object.keys(KX),justify:Object.keys(ZX),alignContent:Object.keys(QX)},jDe={align:"align",justify:"justify",alignContent:"align-content"};function KDe(e,t,n){let r=jDe[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const XDe=ie({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:jX},...KX,justify:{type:String,default:null,validator:XX},...ZX,alignContent:{type:String,default:null,validator:JX},...QX,...at(),...Ft()},"VRow"),lL=Ce()({name:"VRow",props:XDe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>{const a=[];let o;for(o in qX)qX[o].forEach(i=>{const l=e[i],s=KDe(o,i,l);s&&a.push(s)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>f.h(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),Ws=Rc("v-spacer","div","VSpacer"),$X=ie({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],controlVariant:{type:String,default:"docked"},noMonthPicker:Boolean,disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:ut,default:"$next"},prevIcon:{type:ut,default:"$prev"},modeIcon:{type:ut,default:"$subgroup"},text:String,monthText:String,yearText:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),sL=Ce()({name:"VDatePickerControls",props:$X(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:prev-year":()=>!0,"click:next-year":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),i=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),l=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-month"):!!e.disabled),s=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("next-month"):!!e.disabled),u=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-year"):!!e.disabled),c=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("next-year"):!!e.disabled);function d(){n("click:prev")}function h(){n("click:next")}function v(){n("click:prev-year")}function p(){n("click:next-year")}function m(){n("click:year")}function g(){n("click:month")}return ke(()=>{const y={VBtn:{density:"comfortable",variant:"text"}},b=f.createVNode(xt,{"data-testid":"prev-month",disabled:l.value,icon:e.prevIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:d},null),w=f.createVNode(xt,{"data-testid":"next-month",disabled:s.value,icon:e.nextIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:h},null),S=f.createVNode(xt,{"data-testid":"prev-year",disabled:u.value,icon:e.prevIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.previousYear"),onClick:v},null),_=f.createVNode(xt,{"data-testid":"next-year",disabled:c.value,icon:e.nextIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.nextYear"),onClick:p},null),x=f.createVNode(xt,{class:"v-date-picker-controls__only-month-btn","data-testid":"month-btn",density:"default",disabled:o.value,text:e.monthText,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:g},null),T=f.createVNode(xt,{class:"v-date-picker-controls__only-year-btn","data-testid":"year-btn",density:"default",disabled:i.value,text:e.yearText,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null),A=f.createVNode(xt,{class:"v-date-picker-controls__year-btn","data-testid":"year-btn",density:"default",disabled:i.value,text:e.text,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null),E=f.createElementVNode(f.Fragment,null,[f.createVNode(xt,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",height:"36",disabled:o.value,text:e.text,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:g},null),f.createVNode(xt,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:i.value,icon:e.modeIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null)]),I={viewMode:e.viewMode,disabled:Array.isArray(e.disabled)?e.disabled:[],monthYearText:e.text??"",monthText:e.monthText??"",yearText:e.yearText??"",openMonths:g,openYears:m,prevMonth:d,nextMonth:h,prevYear:v,nextYear:p},M=f.createElementVNode(f.Fragment,null,[e.noMonthPicker?A:E,f.createVNode(Ws,null,null),f.createElementVNode("div",{class:"v-date-picker-controls__month"},[b,w])]),N=f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-date-picker-controls__month"},[b,x,w]),f.createVNode(Ws,null,null),f.createElementVNode("div",{class:"v-date-picker-controls__year"},[S,T,_])]);return f.createVNode(Ht,{defaults:y},{default:()=>[f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-controls",`v-date-picker-controls--variant-${e.controlVariant}`]),style:{"--v-date-picker-controls-height":Re(e.controlHeight)}},[r.default?.(I)??f.createElementVNode(f.Fragment,null,[e.controlVariant==="modal"&&M,e.controlVariant==="docked"&&N])])]})}),{}}}),ZDe=ie({appendIcon:ut,color:String,header:String,transition:String,onClick:Qa()},"VDatePickerHeader"),uL=Ce()({name:"VDatePickerHeader",props:ZDe(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color);function i(){n("click")}function l(){n("click:append")}return ke(()=>{const s=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value]),style:f.normalizeStyle(o.value),onClick:i},[r.prepend&&f.createElementVNode("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),s&&f.createVNode(Wo,{key:"content",name:e.transition},{default:()=>[f.createElementVNode("div",{key:e.header,class:"v-date-picker-header__content"},[r.default?.()??e.header])]}),u&&f.createElementVNode("div",{class:"v-date-picker-header__append"},[r.append?f.createVNode(Ht,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>[r.append?.()]}):f.createVNode(xt,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:l},null)])])}),{}}}),JDe=ie({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");function QDe(e){const t=Lv(),n=ot(e,"modelValue",[],m=>jn(m).map(g=>t.date(g))),r=f.computed(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=ot(e,"year",void 0,m=>{const g=m!=null?Number(m):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),g))},m=>t.getYear(m)),o=ot(e,"month",void 0,m=>{const g=m!=null?Number(m):t.getMonth(r.value),y=t.setYear(t.startOfMonth(t.date()),t.getYear(a.value));return t.setMonth(y,g)},m=>t.getMonth(m)),i=f.computed(()=>{const m=t.toJsDate(t.startOfWeek(t.date(),e.firstDayOfWeek)).getDay();return t.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter((g,y)=>e.weekdays.includes((y+m)%7))}),l=f.computed(()=>{const m=t.getWeekArray(o.value,e.firstDayOfWeek),g=m.flat(),y=6*7;if(e.weeksInMonth==="static"&&g.lengthe.weekdays.includes(t.toJsDate(y).getDay())).map((y,b)=>{const w=t.toISO(y),S=!t.isSameMonth(y,o.value),_=t.isSameDay(y,t.startOfMonth(o.value)),x=t.isSameDay(y,t.endOfMonth(o.value)),T=t.isSameDay(y,o.value),A=e.weekdays.length;return{date:y,formatted:t.format(y,"keyboardDate"),isAdjacent:S,isDisabled:p(y),isEnd:x,isHidden:S&&!e.showAdjacentMonths,isSame:T,isSelected:n.value.some(E=>t.isSameDay(y,E)),isStart:_,isToday:t.isSameDay(y,g),isWeekEnd:b%A===A-1,isWeekStart:b%A===0,isoDate:w,localized:t.format(y,"dayOfMonth"),month:t.getMonth(y),year:t.getYear(y)}})}const u=f.computed(()=>{const m=t.startOfWeek(r.value,e.firstDayOfWeek),g=[];for(let b=0;b<=6;b++)g.push(t.addDays(m,b));const y=t.date();return s(g,y)}),c=f.computed(()=>{const m=l.value.flat(),g=t.date();return s(m,g)}),d=f.computed(()=>l.value.map(m=>m.length?t.getWeek(m[0],e.firstDayOfWeek,e.firstDayOfYear):null)),{minDate:h,maxDate:v}=eZ(e);function p(m){if(e.disabled)return!0;const g=t.date(m);return h.value&&t.isBefore(t.endOfDay(g),h.value)||v.value&&t.isAfter(g,v.value)?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(y=>t.isSameDay(t.date(y),g)):typeof e.allowedDates=="function"?!e.allowedDates(g):!1}return{displayValue:r,daysInMonth:c,daysInWeek:u,genDays:s,model:n,weeksInMonth:l,weekdayLabels:i,weekNumbers:d}}function eZ(e){const t=Lv(),n=f.computed(()=>{if(!e.min)return null;const i=t.date(e.min);return t.isValid(i)?i:null}),r=f.computed(()=>{if(!e.max)return null;const i=t.date(e.max);return t.isValid(i)?i:null});function a(i){return n.value&&t.isBefore(i,n.value)?n.value:r.value&&t.isAfter(i,r.value)?r.value:i}function o(i){return(!n.value||t.isAfter(i,n.value))&&(!r.value||t.isBefore(i,r.value))}return{minDate:n,maxDate:r,clampDate:a,isInAllowedRange:o}}const tZ=ie({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,readonly:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},events:{type:[Array,Function,Object],default:()=>null},eventColor:{type:[Array,Function,Object,String],default:()=>null},...Kt(JDe(),["displayValue"])},"VDatePickerMonth"),cL=Ce()({name:"VDatePickerMonth",props:tZ(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=f.ref(),{t:o}=An(),{daysInMonth:i,model:l,weekNumbers:s,weekdayLabels:u}=QDe(e),c=Lv(),d=f.shallowRef(),h=f.shallowRef(),v=f.shallowRef(!1),p=f.toRef(()=>v.value?e.reverseTransition:e.transition);e.multiple==="range"&&l.value.length>0&&(d.value=l.value[0],l.value.length>1&&(h.value=l.value[l.value.length-1]));const m=f.computed(()=>{const x=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return l.value.length>=x});f.watch(i,(x,T)=>{T&&(v.value=c.isBefore(x[0].date,T[0].date))});function g(x){const T=c.startOfDay(x);if(l.value.length===0?d.value=void 0:l.value.length===1&&(d.value=l.value[0],h.value=void 0),!d.value)d.value=T,l.value=[d.value];else if(h.value)d.value=x,h.value=void 0,l.value=[d.value];else{if(c.isSameDay(T,d.value)){d.value=void 0,l.value=[];return}else c.isBefore(T,d.value)?(h.value=c.endOfDay(d.value),d.value=T):h.value=c.endOfDay(T);l.value=GIe(c,d.value,h.value)}}function y(x){const T=c.format(x.date,"fullDateWithWeekday"),A=x.isToday?"currentDate":"selectDate";return o(`$vuetify.datePicker.ariaLabel.${A}`,T)}function b(x){const T=l.value.findIndex(A=>c.isSameDay(A,x));if(T===-1)l.value=[...l.value,x];else{const A=[...l.value];A.splice(T,1),l.value=A}}function w(x){e.multiple==="range"?g(x):e.multiple?b(x):l.value=[x]}function S(x){const{events:T,eventColor:A}=e;let E,I=[];if(Array.isArray(T)?E=T.includes(x):T instanceof Function?E=T(x)||!1:T?E=T[x]||!1:E=!1,E)E!==!0?I=jn(E):typeof A=="string"?I=[A]:typeof A=="function"?I=jn(A(x)):Array.isArray(A)?I=A:typeof A=="object"&&A!==null&&(I=jn(A[x]));else return[];return I.length?I.filter(Boolean).map(M=>typeof M=="string"?M:"surface-variant"):["surface-variant"]}function _(x){const T=S(x);return T.length?f.createElementVNode("div",{class:"v-date-picker-month__events"},[T.map(A=>f.createVNode(fK,{dot:!0,color:A},null))]):null}ke(()=>f.createElementVNode("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&f.createElementVNode("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&f.createElementVNode("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[f.createTextVNode(" ")]),s.value.map(x=>f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[x]))]),f.createVNode(Wo,{name:p.value},{default:()=>[f.createElementVNode("div",{ref:a,key:i.value[0].date?.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&u.value.map(x=>f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day","v-date-picker-month__weekday"])},[x])),i.value.map((x,T)=>{const A={props:{class:"v-date-picker-month__day-btn",color:x.isSelected||x.isToday?e.color:void 0,disabled:x.isDisabled,readonly:e.readonly,icon:!0,ripple:!1,variant:x.isSelected?"flat":x.isToday?"outlined":"text","aria-label":y(x),"aria-current":x.isToday?"date":void 0,onClick:()=>w(x.date)},item:x,i:T};return m.value&&!x.isSelected&&(x.isDisabled=!0),f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":x.isAdjacent,"v-date-picker-month__day--hide-adjacent":x.isHidden,"v-date-picker-month__day--selected":x.isSelected,"v-date-picker-month__day--week-end":x.isWeekEnd,"v-date-picker-month__day--week-start":x.isWeekStart}]),"data-v-date":x.isDisabled?void 0:x.isoDate},[(e.showAdjacentMonths||!x.isAdjacent)&&(r.day?.(A)??f.createVNode(xt,A.props,{default:()=>[x.localized,_(x.isoDate)]}))])})])]})]))}}),nZ=ie({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),dL=Ce()({name:"VDatePickerMonths",props:nZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Lv(),o=ot(e,"modelValue"),i=f.computed(()=>{let s=a.startOfYear(a.date());return e.year&&(s=a.setYear(s,e.year)),wu(12).map(u=>{const c=a.format(s,"monthShort"),d=a.format(s,"month"),h=!!(!l(u)||e.min&&a.isAfter(a.startOfMonth(a.date(e.min)),s)||e.max&&a.isAfter(s,a.startOfMonth(a.date(e.max))));return s=a.getNextMonth(s),{isDisabled:h,text:c,label:d,value:u}})});f.watchEffect(()=>{o.value=o.value??a.getMonth(a.date())});function l(s){return Array.isArray(e.allowedMonths)&&e.allowedMonths.length?e.allowedMonths.includes(s):typeof e.allowedMonths=="function"?e.allowedMonths(s):!0}return ke(()=>f.createElementVNode("div",{class:"v-date-picker-months",style:{height:Re(e.height)}},[f.createElementVNode("div",{class:"v-date-picker-months__content"},[i.value.map((s,u)=>{const c={active:o.value===u,ariaLabel:s.label,color:o.value===u?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:o.value===s.value?"flat":"text",onClick:()=>d(u)};function d(h){if(o.value===h){n("update:modelValue",o.value);return}o.value=h}return r.month?.({month:s,i:u,props:c})??f.createVNode(xt,f.mergeProps({key:"month"},c),null)})])])),{}}}),rZ=ie({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),fL=Ce()({name:"VDatePickerYears",props:rZ(),directives:{vIntersect:dl},emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Lv(),o=ot(e,"modelValue"),i=f.shallowRef(!1),l=f.computed(()=>{const h=a.getYear(a.date());let v=h-100,p=h+52;e.min&&(v=a.getYear(a.date(e.min))),e.max&&(p=a.getYear(a.date(e.max)));let m=a.startOfYear(a.date());return m=a.setYear(m,v),wu(p-v+1,v).map(g=>{const y=a.format(m,"year");return m=a.setYear(m,a.getYear(m)+1),{text:y,value:g,isDisabled:!d(g)}})});f.watchEffect(()=>{o.value=o.value??a.getYear(a.date())});const s=K1(),u=K1();function c(){const h=s.el,v=u.el;if(!h||!v)return;const p=h.getBoundingClientRect(),m=v.getBoundingClientRect();h.scrollTop+=m.top-p.top-h.clientHeight/2+m.height/2}function d(h){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(h):typeof e.allowedYears=="function"?e.allowedYears(h):!0}return ke(()=>f.withDirectives(f.createElementVNode("div",{class:"v-date-picker-years",ref:s,style:{height:Re(e.height)}},[f.createElementVNode("div",{class:"v-date-picker-years__content",onFocus:()=>u.el?.focus(),onFocusin:()=>i.value=!0,onFocusout:()=>i.value=!1,tabindex:i.value?-1:0},[l.value.map((h,v)=>{const p={ref:o.value===h.value?u:void 0,active:o.value===h.value,color:o.value===h.value?e.color:void 0,rounded:!0,text:h.text,disabled:h.isDisabled,variant:o.value===h.value?"flat":"text",onClick:()=>{if(o.value===h.value){n("update:modelValue",o.value);return}o.value=h.value}};return r.year?.({year:h,i:v,props:p})??f.createVNode(xt,f.mergeProps({key:"month"},p),null)})])]),[[dl,{handler:c},null,{once:!0}]])),{}}}),qDe=ie({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,headerDateFormat:{type:String,default:"normalDateWithWeekday"},landscapeHeaderWidth:[Number,String],...Kt($X(),["active","monthText","yearText"]),...tZ({weeksInMonth:"static"}),...Kt(nZ(),["modelValue"]),...Kt(rZ(),["modelValue"]),...G_({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),$_=Ce()({name:"VDatePicker",props:qDe(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Lv(),{t:o}=An(),{rtlClasses:i}=ea(),l=ot(e,"modelValue",void 0,Y=>jn(Y).map(Z=>a.date(Z)),Y=>e.multiple?Y:Y[0]),s=ot(e,"viewMode"),{minDate:u,maxDate:c,clampDate:d}=eZ(e),h=f.computed(()=>{const Y=a.date(),Z=l.value?.[0]?a.date(l.value[0]):d(Y);return Z&&a.isValid(Z)?Z:Y}),v=f.toRef(()=>e.headerColor??e.color),p=ot(e,"month"),m=f.computed({get:()=>Number(p.value??a.getMonth(a.startOfMonth(h.value))),set:Y=>p.value=Y}),g=ot(e,"year"),y=f.computed({get:()=>Number(g.value??a.getYear(a.startOfYear(a.setMonth(h.value,m.value)))),set:Y=>g.value=Y}),b=f.shallowRef(!1),w=f.computed(()=>{if(e.multiple&&l.value.length>1)return o("$vuetify.datePicker.itemsSelected",l.value.length);const Y=l.value[0]&&a.isValid(l.value[0])?a.format(a.date(l.value[0]),e.headerDateFormat):o(e.header);return e.landscape&&Y.split(" ").length===3?Y.replace(" ",` -`):Y}),S=f.toRef(()=>{let Y=a.date();return Y=a.setDate(Y,1),Y=a.setMonth(Y,m.value),Y=a.setYear(Y,y.value),Y}),_=f.toRef(()=>a.format(S.value,"monthAndYear")),x=f.toRef(()=>a.format(S.value,"monthShort")),T=f.toRef(()=>a.format(S.value,"year")),A=f.toRef(()=>`date-picker-header${b.value?"-reverse":""}-transition`),E=f.computed(()=>{if(e.disabled)return!0;const Y=[];if(s.value!=="month")Y.push("prev-month","next-month","prev-year","next-year");else{let Z=a.date();if(Z=a.startOfMonth(Z),Z=a.setMonth(Z,m.value),Z=a.setYear(Z,y.value),u.value){const te=a.addDays(a.startOfMonth(Z),-1),$=a.addDays(a.startOfYear(Z),-1);a.isAfter(u.value,te)&&Y.push("prev-month"),a.isAfter(u.value,$)&&Y.push("prev-year")}if(c.value){const te=a.addDays(a.endOfMonth(Z),1),$=a.addDays(a.endOfYear(Z),1);a.isAfter(te,c.value)&&Y.push("next-month"),a.isAfter($,c.value)&&Y.push("next-year")}}return Y}),I=f.computed(()=>e.allowedYears||D),M=f.computed(()=>e.allowedMonths||P);function N(Y,Z){const te=e.allowedDates;if(typeof te!="function")return!0;const $=1+HK(a,Y,Z);for(let ae=0;ae<$;ae++)if(te(a.addDays(Y,ae)))return!0;return!1}function D(Y){if(typeof e.allowedDates=="function"){const Z=a.parseISO(`${Y}-01-01`);return N(Z,a.endOfYear(Z))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const Z of e.allowedDates)if(a.getYear(a.date(Z))===Y)return!0;return!1}return!0}function P(Y){if(typeof e.allowedDates=="function"){const Z=String(Y+1).padStart(2,"0"),te=a.parseISO(`${y.value}-${Z}-01`);return N(te,a.endOfMonth(te))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const Z of e.allowedDates)if(a.getYear(a.date(Z))===y.value&&a.getMonth(a.date(Z))===Y)return!0;return!1}return!0}function O(){m.value<11?m.value++:(y.value++,m.value=0,U()),j()}function L(){m.value>0?m.value--:(y.value--,m.value=11,U()),j()}function R(){if(y.value++,c.value){const Y=String(m.value+1).padStart(2,"0"),Z=a.parseISO(`${y.value}-${Y}-01`);a.isAfter(Z,c.value)&&(m.value=a.getMonth(c.value))}U()}function B(){if(y.value--,u.value){const Y=String(m.value+1).padStart(2,"0"),Z=a.endOfMonth(a.parseISO(`${y.value}-${Y}-01`));a.isAfter(u.value,Z)&&(m.value=a.getMonth(u.value))}U()}function W(){s.value="month"}function H(){s.value=s.value==="months"?"month":"months"}function z(){s.value=s.value==="year"?"month":"year"}function j(){s.value==="months"&&H()}function U(){s.value==="year"&&z()}return f.watch(l,(Y,Z)=>{const te=jn(Z),$=jn(Y);if(!$.length)return;const ae=a.date(te[te.length-1]),de=a.date($[$.length-1]);if(a.isSameDay(ae,de))return;const me=a.getMonth(de),fe=a.getYear(de);me!==m.value&&(m.value=me,j()),fe!==y.value&&(y.value=fe,U()),b.value=a.isBefore(ae,de)}),ke(()=>{const Y=Qg.filterProps(e),Z=Kt(sL.filterProps(e),["viewMode"]),te=uL.filterProps(e),$=cL.filterProps(e),ae=Kt(dL.filterProps(e),["modelValue"]),de=Kt(fL.filterProps(e),["modelValue"]),me={color:v.value,header:w.value,transition:A.value};return f.createVNode(Qg,f.mergeProps(Y,{color:v.value,class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},i.value,e.class],style:[{"--v-date-picker-landscape-header-width":Re(e.landscapeHeaderWidth)},e.style]}),{title:()=>r.title?.()??f.createElementVNode("div",{class:"v-date-picker__title"},[o(e.title)]),header:()=>r.header?f.createVNode(Ht,{defaults:{VDatePickerHeader:{...me}}},{default:()=>[r.header?.(me)]}):f.createVNode(uL,f.mergeProps({key:"header"},te,me,{onClick:s.value!=="month"?W:void 0}),{prepend:r.prepend,append:r.append}),default:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(sL,f.mergeProps(Z,{disabled:E.value,viewMode:s.value,text:_.value,monthText:x.value,yearText:T.value,"onClick:next":O,"onClick:prev":L,"onClick:nextYear":R,"onClick:prevYear":B,"onClick:month":H,"onClick:year":z}),{default:r.controls}),f.createVNode(q1,{hideOnLeave:!0},{default:()=>[s.value==="months"?f.createVNode(dL,f.mergeProps({key:"date-picker-months"},ae,{modelValue:m.value,"onUpdate:modelValue":[fe=>m.value=fe,j],min:u.value,max:c.value,year:y.value,allowedMonths:M.value}),{month:r.month}):s.value==="year"?f.createVNode(fL,f.mergeProps({key:"date-picker-years"},de,{modelValue:y.value,"onUpdate:modelValue":[fe=>y.value=fe,U],min:u.value,max:c.value,allowedYears:I.value}),{year:r.year}):f.createVNode(cL,f.mergeProps({key:"date-picker-month"},$,{modelValue:l.value,"onUpdate:modelValue":fe=>l.value=fe,month:m.value,"onUpdate:month":[fe=>m.value=fe,j],year:y.value,"onUpdate:year":[fe=>y.value=fe,U],min:u.value,max:c.value}),{day:r.day})]})]),actions:r.actions})}),{}}}),$De=ie({actionText:String,bgColor:String,color:String,icon:ut,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...at(),...Ur(),...Tu({size:void 0}),...pn()},"VEmptyState"),eVe=Ce()({name:"VEmptyState",props:$De(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:a}=In(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.bgColor),{dimensionStyles:l}=Yr(e),{displayClasses:s}=pl();function u(c){n("click:action",c)}return ke(()=>{const c=!!(r.actions||e.actionText),d=!!(r.headline||e.headline),h=!!(r.title||e.title),v=!!(r.text||e.text),p=!!(r.media||e.image||e.icon),m=e.size||(e.image?200:96);return f.createElementVNode("div",{class:f.normalizeClass(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},a.value,o.value,s.value,e.class]),style:f.normalizeStyle([i.value,l.value,e.style])},[p&&f.createElementVNode("div",{key:"media",class:"v-empty-state__media"},[r.media?f.createVNode(Ht,{key:"media-defaults",defaults:{VImg:{src:e.image,height:m},VIcon:{size:m,icon:e.icon}}},{default:()=>[r.media()]}):f.createElementVNode(f.Fragment,null,[e.image?f.createVNode(Fc,{key:"image",src:e.image,height:m},null):e.icon?f.createVNode(St,{key:"icon",color:e.color,size:m,icon:e.icon},null):void 0])]),d&&f.createElementVNode("div",{key:"headline",class:"v-empty-state__headline"},[r.headline?.()??e.headline]),h&&f.createElementVNode("div",{key:"title",class:"v-empty-state__title"},[r.title?.()??e.title]),v&&f.createElementVNode("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:Re(e.textWidth)}},[r.text?.()??e.text]),r.default&&f.createElementVNode("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&f.createElementVNode("div",{key:"actions",class:"v-empty-state__actions"},[f.createVNode(Ht,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[r.actions?.({props:{onClick:u}})??f.createVNode(xt,{onClick:u},null)]})])])}),{}}}),Tw=Symbol.for("vuetify:v-expansion-panel"),aZ=ie({...at(),...mN()},"VExpansionPanelText"),hL=Ce()({name:"VExpansionPanelText",props:aZ(),setup(e,t){let{slots:n}=t;const r=f.inject(Tw);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:o}=gN(e,r.isSelected);return ke(()=>f.createVNode(b_,{onAfterLeave:o},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-expansion-panel-text",e.class]),style:f.normalizeStyle(e.style)},[n.default&&a.value&&f.createElementVNode("div",{class:"v-expansion-panel-text__wrapper"},[n.default?.()])]),[[f.vShow,r.isSelected.value]])]})),{}}}),oZ=ie({color:String,expandIcon:{type:ut,default:"$expand"},collapseIcon:{type:ut,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...at(),...Ur()},"VExpansionPanelTitle"),vL=Ce()({name:"VExpansionPanelTitle",directives:{vRipple:eo},props:oZ(),setup(e,t){let{slots:n}=t;const r=f.inject(Tw);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{dimensionStyles:i}=Yr(e),l=f.computed(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),s=f.toRef(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return ke(()=>f.withDirectives(f.createElementVNode("button",{class:f.normalizeClass(["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},a.value,e.class]),style:f.normalizeStyle([o.value,i.value,e.style]),type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[f.createElementVNode("span",{class:"v-expansion-panel-title__overlay"},null),n.default?.(l.value),!e.hideActions&&f.createVNode(Ht,{defaults:{VIcon:{icon:s.value}}},{default:()=>[f.createElementVNode("span",{class:"v-expansion-panel-title__icon"},[n.actions?.(l.value)??f.createVNode(St,null,null)])]})]),[[eo,e.ripple]])),{}}}),iZ=ie({title:String,text:String,bgColor:String,...jr(),...Cv(),...qn(),...Ft(),...oZ(),...aZ()},"VExpansionPanel"),tVe=Ce()({name:"VExpansionPanel",props:iZ(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=sf(e,Tw),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.bgColor),{elevationClasses:i}=va(e),{roundedClasses:l}=ur(e),s=f.toRef(()=>r?.disabled.value||e.disabled),u=f.computed(()=>r.group.items.value.reduce((h,v,p)=>(r.group.selected.value.includes(v.id)&&h.push(p),h),[])),c=f.computed(()=>{const h=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-h===1)}),d=f.computed(()=>{const h=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-h===-1)});return f.provide(Tw,r),ke(()=>{const h=!!(n.text||e.text),v=!!(n.title||e.title),p=vL.filterProps(e),m=hL.filterProps(e);return f.createVNode(e.tag,{class:f.normalizeClass(["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":s.value},l.value,a.value,e.class]),style:f.normalizeStyle([o.value,e.style])},{default:()=>[f.createElementVNode("div",{class:f.normalizeClass(["v-expansion-panel__shadow",...i.value])},null),f.createVNode(Ht,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...m}}},{default:()=>[v&&f.createVNode(vL,{key:"title"},{default:()=>[n.title?n.title():e.title]}),h&&f.createVNode(hL,{key:"text"},{default:()=>[n.text?n.text():e.text]}),n.default?.()]})]})}),{groupItem:r}}}),nVe=["default","accordion","inset","popout"],rVe=ie({flat:Boolean,...xv(),...fi(iZ(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...pn(),...at(),...Ft(),variant:{type:String,default:"default",validator:e=>nVe.includes(e)}},"VExpansionPanels"),aVe=Ce()({name:"VExpansionPanels",props:rVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:a}=uf(e,Tw),{themeClasses:o}=In(e),i=f.toRef(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Cr({VExpansionPanel:{bgColor:f.toRef(()=>e.bgColor),collapseIcon:f.toRef(()=>e.collapseIcon),color:f.toRef(()=>e.color),eager:f.toRef(()=>e.eager),elevation:f.toRef(()=>e.elevation),expandIcon:f.toRef(()=>e.expandIcon),focusable:f.toRef(()=>e.focusable),hideActions:f.toRef(()=>e.hideActions),readonly:f.toRef(()=>e.readonly),ripple:f.toRef(()=>e.ripple),rounded:f.toRef(()=>e.rounded),static:f.toRef(()=>e.static)}}),ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},o.value,i.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.({prev:a,next:r})]})),{next:r,prev:a}}}),oVe=ie({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...Kt(T_({active:!0}),["location","spaced"]),...gv(),..._u(),...Bc({transition:"fab-transition"})},"VFab"),iVe=Ce()({name:"VFab",props:oVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.shallowRef(56),o=f.ref(),{resizeRef:i}=Ul(d=>{d.length&&(a.value=d[0].target.clientHeight)}),l=f.toRef(()=>e.app||e.absolute),s=f.computed(()=>l.value?e.location?.split(" ").shift()??"bottom":!1),u=f.computed(()=>l.value?e.location?.split(" ")[1]??"end":!1);qa(()=>e.app,()=>{const d=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:s,layoutSize:f.computed(()=>e.layout?a.value+24:0),elementSize:f.computed(()=>a.value+24),active:f.computed(()=>e.app&&r.value),absolute:f.toRef(()=>e.absolute)});f.watchEffect(()=>{o.value=d.layoutItemStyles.value})});const c=f.ref();return ke(()=>{const d=xt.filterProps(e);return f.createElementVNode("div",{ref:c,class:f.normalizeClass(["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${s.value}`]:l.value,[`v-fab--${u.value}`]:l.value},e.class]),style:f.normalizeStyle([e.app?{...o.value}:{height:e.absolute?"100%":"inherit"},e.style])},[f.createElementVNode("div",{class:"v-fab__container"},[f.createVNode(Wo,{appear:e.appear,transition:e.transition},{default:()=>[f.withDirectives(f.createVNode(xt,f.mergeProps({ref:i},d,{active:void 0,location:void 0}),n),[[f.vShow,e.active]])]})])])}),{}}});function lVe(){function e(n){return[...n.dataTransfer?.items??[]].filter(a=>a.kind==="file").map(a=>a.webkitGetAsEntry()).filter(Boolean).length>0||[...n.dataTransfer?.files??[]].length>0}async function t(n){const r=[],a=[...n.dataTransfer?.items??[]].filter(o=>o.kind==="file").map(o=>o.webkitGetAsEntry()).filter(Boolean);if(a.length)for(const o of a){const i=await lZ(o,sZ(".",o));r.push(...i.map(l=>l.file))}else r.push(...n.dataTransfer?.files??[]);return r}return{handleDrop:t,hasFilesOrFolders:e}}function lZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((n,r)=>{e.isFile?e.file(o=>n([{file:o,path:t}]),r):e.isDirectory&&e.createReader().readEntries(async o=>{const i=[];for(const l of o)i.push(...await lZ(l,sZ(t,l)));n(i)})})}function sZ(e,t){return t.isDirectory?`${e}/${t.name}`:e}const sVe=ie({filterByType:String},"file-accept");function uVe(e){const t=f.computed(()=>e.filterByType?cVe(e.filterByType):null);function n(r){if(t.value){const a=r.filter(t.value);return{accepted:a,rejected:r.filter(o=>!a.includes(o))}}return{accepted:r,rejected:[]}}return{filterAccepted:n}}function cVe(e){const t=e.split(",").map(o=>o.trim().toLowerCase()),n=t.filter(o=>o.startsWith(".")),r=t.filter(o=>o.endsWith("/*")),a=t.filter(o=>!n.includes(o)&&!r.includes(o));return o=>{const i=o.name.split(".").at(-1)?.toLowerCase()??"",l=o.type.split("/").at(0)?.toLowerCase()??"";return a.includes(o.type)||n.includes(`.${i}`)||r.includes(`${l}/*`)}}const dVe=ie({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...Kt(Uc({prependIcon:"$file"}),["direction"]),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>jn(e).every(t=>t!=null&&typeof t=="object")},...sVe(),...vw({clearable:!0})},"VFileInput"),uZ=Ce()({name:"VFileInput",inheritAttrs:!1,props:dVe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:o}=An(),{filterAccepted:i}=uVe(e),l=ot(e,"modelValue",e.modelValue,W=>jn(W),W=>!e.multiple&&Array.isArray(W)?W[0]:W),{isFocused:s,focus:u,blur:c}=Gc(e),d=f.computed(()=>typeof e.showSize!="boolean"?e.showSize:void 0),h=f.computed(()=>(l.value??[]).reduce((W,H)=>{let{size:z=0}=H;return W+z},0)),v=f.computed(()=>X9(h.value,d.value)),p=f.computed(()=>(l.value??[]).map(W=>{const{name:H="",size:z=0}=W,j=D(H);return e.showSize?`${j} (${X9(z,d.value)})`:j})),m=f.computed(()=>{const W=l.value?.length??0;return e.showSize?o(e.counterSizeString,W,v.value):o(e.counterString,W)}),g=f.ref(),y=f.ref(),b=f.ref(),w=f.toRef(()=>s.value||e.active),S=f.computed(()=>["plain","underlined"].includes(e.variant)),_=f.shallowRef(!1),{handleDrop:x,hasFilesOrFolders:T}=lVe();function A(){b.value!==document.activeElement&&b.value?.focus(),s.value||u()}function E(W){b.value?.click()}function I(W){r("mousedown:control",W)}function M(W){b.value?.click(),r("click:control",W)}function N(W){W.stopPropagation(),A(),f.nextTick(()=>{l.value=[],Y1(e["onClick:clear"],W)})}function D(W){if(W.length{(!Array.isArray(W)||!W.length)&&b.value&&(b.value.value="")}),ke(()=>{const W=!!(a.counter||e.counter),H=!!(W||a.details),[z,j]=Su(n),{modelValue:U,...Y}=to.filterProps(e),Z={...ff.filterProps(e),"onClick:clear":N},te=n.webkitdirectory!==void 0&&n.webkitdirectory!==!1,$=n.accept?String(n.accept):void 0,ae=te?void 0:e.filterByType??$;return f.createVNode(to,f.mergeProps({ref:g,modelValue:e.multiple?l.value:l.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":_.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":S.value},e.class],style:e.style,"onClick:prepend":E},z,Y,{centerAffix:!S.value,focused:s.value}),{...a,default:de=>{let{id:me,isDisabled:fe,isDirty:Ee,isReadonly:De,isValid:ne,hasDetails:pe}=de;return f.createVNode(ff,f.mergeProps({ref:y,prependIcon:e.prependIcon,onMousedown:I,onClick:M,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Z,{id:me.value,active:w.value||Ee.value,dirty:Ee.value||e.dirty,disabled:fe.value,focused:s.value,details:pe.value,error:ne.value===!1,onDragover:P,onDrop:L}),{...a,default:Pe=>{let{props:{class:ze,...lt},controlRef:kt}=Pe;return f.createElementVNode(f.Fragment,null,[f.createElementVNode("input",f.mergeProps({ref:X=>b.value=kt.value=X,type:"file",accept:ae,readonly:De.value,disabled:fe.value,multiple:e.multiple,name:e.name,onClick:X=>{X.stopPropagation(),De.value&&X.preventDefault(),A()},onChange:R,onDragleave:O,onFocus:A,onBlur:c},lt,j),null),f.createElementVNode("div",{class:f.normalizeClass(ze)},[!!l.value?.length&&!e.hideInput&&(a.selection?a.selection({fileNames:p.value,totalBytes:h.value,totalBytesReadable:v.value}):e.chips?p.value.map(X=>f.createVNode(ml,{key:X,size:"small",text:X},null)):p.value.join(", "))])])}})},details:H?de=>f.createElementVNode(f.Fragment,null,[a.details?.(de),W&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(M_,{active:!!l.value?.length,value:m.value,disabled:e.disabled},a.counter)])]):void 0})}),pa({},g,y,b)}}),fVe=ie({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...wo(),...at(),...jr(),...gv(),...qn(),...Ft({tag:"footer"}),...pn()},"VFooter"),hVe=Ce()({name:"VFooter",props:fVe(),setup(e,t){let{slots:n}=t;const r=f.ref(),{themeClasses:a}=In(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.color),{borderClasses:l}=Go(e),{elevationClasses:s}=va(e),{roundedClasses:u}=ur(e),c=f.shallowRef(32),{resizeRef:d}=Ul(v=>{v.length&&(c.value=v[0].target.clientHeight)}),h=f.computed(()=>e.height==="auto"?c.value:parseInt(e.height,10));return qa(()=>e.app,()=>{const v=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>"bottom"),layoutSize:h,elementSize:f.computed(()=>e.height==="auto"?void 0:h.value),active:f.toRef(()=>e.app),absolute:f.toRef(()=>e.absolute)});f.watchEffect(()=>{r.value=v.layoutItemStyles.value})}),ke(()=>f.createVNode(e.tag,{ref:d,class:f.normalizeClass(["v-footer",a.value,o.value,l.value,s.value,u.value,e.class]),style:f.normalizeStyle([i.value,e.app?r.value:{height:Re(e.height)},e.style])},n)),{}}}),vVe=ie({...at(),...rAe()},"VForm"),kw=Ce()({name:"VForm",props:vVe(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=aAe(e),o=f.ref();function i(s){s.preventDefault(),a.reset()}function l(s){const u=s,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(d=>{let{valid:h}=d;h&&o.value?.submit()}),u.preventDefault()}return ke(()=>f.createElementVNode("form",{ref:o,class:f.normalizeClass(["v-form",e.class]),style:f.normalizeStyle(e.style),novalidate:!0,onReset:i,onSubmit:l},[n.default?.(a)])),pa(a,o)}}),pVe=ie({color:String,...wo(),...at(),...qn(),...Ft({tag:"kbd"}),...pn(),...jr()},"VKbd"),pL=Ce()({name:"VKbd",props:pVe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{borderClasses:a}=Go(e),{roundedClasses:o}=ur(e),{backgroundColorClasses:i,backgroundColorStyles:l}=Ln(()=>e.color),{elevationClasses:s}=va(e);return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-kbd",r.value,i.value,a.value,s.value,o.value,e.class]),style:f.normalizeStyle([l.value,e.style])},n)),{}}});function cZ(e,t,n){const r=n&&e.mac?e.mac:e.default,a=t==="icon"&&!r.icon||t==="symbol"&&!r.symbol?"text":t;let o=r[a]??r.text;return a==="text"&&typeof o=="string"&&o.startsWith("$")&&!o.startsWith("$vuetify.")&&(o=o.slice(1).toUpperCase()),a==="icon"?["icon",o]:[a,o]}const dZ={ctrl:{mac:{symbol:"⌃",icon:"$ctrl",text:"$vuetify.hotkey.ctrl"},default:{text:"Ctrl"}},meta:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},cmd:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},shift:{mac:{symbol:"⇧",icon:"$shift",text:"$vuetify.hotkey.shift"},default:{text:"Shift"}},alt:{mac:{symbol:"⌥",icon:"$alt",text:"$vuetify.hotkey.option"},default:{text:"Alt"}},enter:{default:{symbol:"↵",icon:"$enter",text:"$vuetify.hotkey.enter"}},arrowup:{default:{symbol:"↑",icon:"$arrowup",text:"$vuetify.hotkey.upArrow"}},arrowdown:{default:{symbol:"↓",icon:"$arrowdown",text:"$vuetify.hotkey.downArrow"}},arrowleft:{default:{symbol:"←",icon:"$arrowleft",text:"$vuetify.hotkey.leftArrow"}},arrowright:{default:{symbol:"→",icon:"$arrowright",text:"$vuetify.hotkey.rightArrow"}},backspace:{default:{symbol:"⌫",icon:"$backspace",text:"$vuetify.hotkey.backspace"}},escape:{default:{text:"$vuetify.hotkey.escape"}}," ":{mac:{symbol:"␣",icon:"$space",text:"$vuetify.hotkey.space"},default:{text:"$vuetify.hotkey.space"}},"-":{default:{text:"-"}},"+":{default:{text:"+"}}},mVe=ie({keys:String,displayMode:{type:String,default:"icon"},keyMap:{type:Object,default:()=>dZ},platform:{type:String,default:"auto"},inline:Boolean,disabled:Boolean,prefix:String,suffix:String,variant:{type:String,default:"elevated",validator:e=>["elevated","flat","tonal","outlined","text","plain","contained"].includes(e)},...at(),...pn(),...wo(),...qn(),...jr(),color:String},"VHotkey"),mL=Symbol("VHotkey:AND_DELINEATOR"),gL=Symbol("VHotkey:SLASH_DELINEATOR"),fZ=Symbol("VHotkey:THEN_DELINEATOR");function gVe(e,t,n){const r=t.toLowerCase();if(r in e){const a=cZ(e[r],"text",n);return typeof a[1]=="string"?a[1]:String(a[1])}return t.toUpperCase()}function hZ(e,t,n,r){const a=n.toLowerCase();if(a in e){const o=cZ(e[a],t,r);return o[0]==="text"&&typeof o[1]=="string"&&o[1].startsWith("$")&&!o[1].startsWith("$vuetify.")?["text",o[1].replace("$","").toUpperCase(),n]:[...o,n]}return["text",n.toUpperCase(),n]}const yVe=Ce()({name:"VHotkey",props:mVe(),setup(e){const{t}=An(),{themeClasses:n}=In(e),{rtlClasses:r}=ea(),{borderClasses:a}=Go(e),{roundedClasses:o}=ur(e),{elevationClasses:i}=va(e),{colorClasses:l,colorStyles:s,variantClasses:u}=Wc(()=>({color:e.color,variant:e.variant==="contained"?"elevated":e.variant})),c=f.computed(()=>e.platform==="auto"?typeof navigator<"u"&&/macintosh/i.test(navigator.userAgent):e.platform==="mac"),d=f.computed(()=>e.keys?e.keys.split(" ").map(y=>{const b=[],w=ZIe(y);for(let S=0;S0&&b.push(fZ);const{keys:x,separators:T}=jK(_);for(let A=0;A0&&b.push(T[A-1]==="/"?gL:mL),b.push(hZ(e.keyMap,e.displayMode,E,c.value))}}return b}):[]),h=f.computed(()=>{if(!e.keys)return"";const b=d.value.map(w=>{const S=[];for(const _ of w)if(Array.isArray(_)){const x=_[0]==="icon"||_[0]==="symbol"?hZ(bo(dZ,e.keyMap),"text",String(_[1]),c.value)[1]:_[1];S.push(v(x))}else _===mL?S.push(t("$vuetify.hotkey.plus")):_===gL?S.push(t("$vuetify.hotkey.or")):_===fZ&&S.push(t("$vuetify.hotkey.then"));return S.join(" ")}).join(", ");return t("$vuetify.hotkey.shortcut",b)});function v(y){return y.startsWith("$vuetify.")?t(y):y}function p(y){if(e.displayMode==="text")return;const b=gVe(e.keyMap,String(y[2]),c.value);return v(b)}function m(y,b){const w=e.variant==="contained",S=w?"kbd":pL,_=["v-hotkey__key",`v-hotkey__key-${y[0]}`,...w?["v-hotkey__key--nested"]:[a.value,o.value,i.value,l.value]];return f.createVNode(S,{key:b,class:f.normalizeClass(_),style:f.normalizeStyle(w?void 0:s.value),"aria-hidden":"true",title:p(y)},{default:()=>[y[0]==="icon"?f.createVNode(St,{icon:y[1],"aria-hidden":"true"},null):v(y[1])]})}function g(y,b){return f.createElementVNode("span",{key:b,class:"v-hotkey__divider","aria-hidden":"true"},[y===mL?"+":y===gL?"/":t("$vuetify.hotkey.then")])}ke(()=>{const y=f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{key:"prefix",class:"v-hotkey__prefix"},[e.prefix]),d.value.map((b,w)=>f.createElementVNode("span",{class:"v-hotkey__combination",key:w},[b.map((S,_)=>Array.isArray(S)?m(S,_):g(S,_)),w[y]})])})}}),bVe=ie({disabled:Boolean,modelValue:{type:Boolean,default:null},...vN()},"VHover"),wVe=Ce()({name:"VHover",props:bVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{runOpenDelay:a,runCloseDelay:o}=pN(e,i=>!e.disabled&&(r.value=i));return()=>n.default?.({isHovering:r.value,props:{onMouseenter:a,onMouseleave:o}})}}),SVe=ie({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...Ur(),...Ft()},"VInfiniteScroll"),vZ=zo({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=$1();return f.watch(a,async o=>{n("intersect",e.side,o)}),ke(()=>f.createElementVNode("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:r},[f.createTextVNode(" ")])),{}}}),xVe=Ce()({name:"VInfiniteScroll",props:SVe(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.ref(),o=f.shallowRef("ok"),i=f.shallowRef("ok"),l=f.computed(()=>Re(e.margin)),s=f.shallowRef(!1);function u(x){if(!a.value)return;const T=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[T]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function h(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}f.onMounted(()=>{a.value&&(e.side==="start"?u(d()):e.side==="both"&&u(d()/2-h()/2))});function v(x,T){x==="start"?o.value=T:x==="end"?i.value=T:x==="both"&&(o.value=T,i.value=T)}function p(x){return x==="start"?o.value:i.value}let m=0;function g(x,T){s.value=T,s.value&&y(x)}function y(x){if(e.mode!=="manual"&&!s.value)return;const T=p(x);if(!a.value||["empty","loading"].includes(T))return;m=d(),v(x,"loading");function A(E){v(x,E),f.nextTick(()=>{E==="empty"||E==="error"||(E==="ok"&&x==="start"&&u(d()-m+c()),e.mode!=="manual"&&f.nextTick(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{y(x)})})})}))})}r("load",{side:x,done:A})}const{t:b}=An();function w(x,T){if(e.side!==x&&e.side!=="both")return;const A=()=>y(x),E={side:x,props:{onClick:A,color:e.color}};return T==="error"?n.error?.(E):T==="empty"?n.empty?.(E)??f.createElementVNode("div",null,[b(e.emptyText)]):e.mode==="manual"?T==="loading"?n.loading?.(E)??f.createVNode(cf,{indeterminate:!0,color:e.color},null):n["load-more"]?.(E)??f.createVNode(xt,{variant:"outlined",color:e.color,onClick:A},{default:()=>[b(e.loadMoreText)]}):n.loading?.(E)??f.createVNode(cf,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:S}=Yr(e);ke(()=>{const x=e.tag,T=e.side==="start"||e.side==="both",A=e.side==="end"||e.side==="both",E=e.mode==="intersect";return f.createVNode(x,{ref:a,class:f.normalizeClass(["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":T,"v-infinite-scroll--end":A}]),style:f.normalizeStyle(S.value)},{default:()=>[f.createElementVNode("div",{class:"v-infinite-scroll__side"},[w("start",o.value)]),T&&E&&f.createVNode(vZ,{key:"start",side:"start",onIntersect:g,rootMargin:l.value},null),n.default?.(),A&&E&&f.createVNode(vZ,{key:"end",side:"end",onIntersect:g,rootMargin:l.value},null),f.createElementVNode("div",{class:"v-infinite-scroll__side"},[w("end",i.value)])]})});function _(x){const T=x??e.side;v(T,"ok"),f.nextTick(()=>{T!=="end"&&u(d()-m+c()),e.mode!=="manual"&&f.nextTick(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{T==="both"?(y("start"),y("end")):y(T)})})})})})}return{reset:_}}}),pZ=Symbol.for("vuetify:v-item-group"),CVe=ie({...at(),...xv({selectedClass:"v-item--selected"}),...Ft(),...pn()},"VItemGroup"),_Ve=Ce()({name:"VItemGroup",props:CVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isSelected:a,select:o,next:i,prev:l,selected:s}=uf(e,pZ);return()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-item-group",r.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.({isSelected:a,select:o,next:i,prev:l,selected:s.value})]})}}),TVe=Ce()({name:"VItem",props:Cv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:o,selectedClass:i,value:l,disabled:s}=sf(e,pZ);return()=>n.default?.({isSelected:r.value,selectedClass:i.value,select:a,toggle:o,value:l.value,disabled:s.value})}}),kVe=ie({...at(),...Ur(),...MY()},"VLayout"),AVe=Ce()({name:"VLayout",props:kVe(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:o,items:i,layoutRef:l}=VY(e),{dimensionStyles:s}=Yr(e);return ke(()=>f.createElementVNode("div",{ref:l,class:f.normalizeClass([r.value,e.class]),style:f.normalizeStyle([s.value,a.value,e.style])},[n.default?.()])),{getLayoutItem:o,items:i}}}),EVe=ie({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...at(),...gv()},"VLayoutItem"),IVe=Ce()({name:"VLayoutItem",props:EVe(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>e.position),elementSize:f.toRef(()=>e.size),layoutSize:f.toRef(()=>e.size),active:f.toRef(()=>e.modelValue),absolute:f.toRef(()=>e.absolute)});return()=>f.createElementVNode("div",{class:f.normalizeClass(["v-layout-item",e.class]),style:f.normalizeStyle([r.value,e.style])},[n.default?.()])}}),MVe=ie({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...at(),...Ur(),...Ft(),...Bc({transition:"fade-transition"})},"VLazy"),DVe=Ce()({name:"VLazy",directives:{vIntersect:dl},props:MVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Yr(e),a=ot(e,"modelValue");function o(i){a.value||(a.value=i)}return ke(()=>f.withDirectives(f.createVNode(e.tag,{class:f.normalizeClass(["v-lazy",e.class]),style:f.normalizeStyle([r.value,e.style])},{default:()=>[a.value&&f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[n.default?.()]})]}),[[dl,{handler:o,options:e.options},null]])),{}}}),VVe=ie({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...at()},"VLocaleProvider"),PVe=Ce()({name:"VLocaleProvider",props:VVe(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=BY(e);return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-locale-provider",r.value,e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),NVe=ie({scrollable:Boolean,...at(),...Ur(),...Ft({tag:"main"})},"VMain"),LVe=Ce()({name:"VMain",props:NVe(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Yr(e),{mainStyles:a}=DY(),{ssrBootStyles:o}=Sv();return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:f.normalizeStyle([a.value,o.value,r.value,e.style])},{default:()=>[e.scrollable?f.createElementVNode("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]})),{}}});function OVe(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=f.shallowRef(!1),o=f.shallowRef(0),i=f.computed(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:Re(o.value)}:{top:r.value.top}]});f.onMounted(()=>{f.watch(n,u=>{u?window.addEventListener("scroll",s,{passive:!0}):window.removeEventListener("scroll",s)},{immediate:!0})}),f.onBeforeUnmount(()=>{window.removeEventListener("scroll",s)});let l=0;function s(){const u=l>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),h=window.scrollY-Math.max(0,o.value-d),v=c.height+Math.max(o.value,d)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=mZ(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return mZ(t)*1e3}function FVe(){const e={};function t(a){Array.from(a.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new J9(BVe))).push([a.timeStamp,o])})}function n(a){Array.from(a.changedTouches).forEach(o=>{delete e[o.identifier]})}function r(a){const o=e[a]?.values().reverse();if(!o)throw new Error(`No samples for touch id ${a}`);const i=o[0],l=[],s=[];for(const u of o){if(i[0]-u[0]>RVe)break;l.push({t:u[0],d:u[1].clientX}),s.push({t:u[0],d:u[1].clientY})}return{x:gZ(l),y:gZ(s),get direction(){const{x:u,y:c}=this,[d,h]=[Math.abs(u),Math.abs(c)];return d>h&&u>=0?"right":d>h&&u<=0?"left":h>d&&c>=0?"down":h>d&&c<=0?"up":HVe()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function HVe(){throw new Error}function zVe(e){let{el:t,isActive:n,isTemporary:r,width:a,touchless:o,position:i}=e;f.onMounted(()=>{window.addEventListener("touchstart",b,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",S,{passive:!0})}),f.onBeforeUnmount(()=>{window.removeEventListener("touchstart",b),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",S)});const l=f.computed(()=>["left","right"].includes(i.value)),{addMovement:s,endTouch:u,getVelocity:c}=FVe();let d=!1;const h=f.shallowRef(!1),v=f.shallowRef(0),p=f.shallowRef(0);let m;function g(x,T){return(i.value==="left"?x:i.value==="right"?document.documentElement.clientWidth-x:i.value==="top"?x:i.value==="bottom"?document.documentElement.clientHeight-x:$g())-(T?a.value:0)}function y(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const A=i.value==="left"?(x-p.value)/a.value:i.value==="right"?(document.documentElement.clientWidth-x-p.value)/a.value:i.value==="top"?(x-p.value)/a.value:i.value==="bottom"?(document.documentElement.clientHeight-x-p.value)/a.value:$g();return T?Fn(A):A}function b(x){if(o.value)return;const T=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY,E=25,I=i.value==="left"?Tdocument.documentElement.clientWidth-E:i.value==="top"?Adocument.documentElement.clientHeight-E:$g(),M=n.value&&(i.value==="left"?Tdocument.documentElement.clientWidth-a.value:i.value==="top"?Adocument.documentElement.clientHeight-a.value:$g());(I||M||n.value&&r.value)&&(m=[T,A],p.value=g(l.value?T:A,n.value),v.value=y(l.value?T:A),d=p.value>-20&&p.value<80,u(x),s(x))}function w(x){const T=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY;if(d){if(!x.cancelable){d=!1;return}const I=Math.abs(T-m[0]),M=Math.abs(A-m[1]);(l.value?I>M&&I>3:M>I&&M>3)?(h.value=!0,d=!1):(l.value?M:I)>3&&(d=!1)}if(!h.value)return;x.preventDefault(),s(x);const E=y(l.value?T:A,!1);v.value=Math.max(0,Math.min(1,E)),E>1?p.value=g(l.value?T:A,!0):E<0&&(p.value=g(l.value?T:A,!1))}function S(x){if(d=!1,!h.value)return;s(x),h.value=!1;const T=c(x.changedTouches[0].identifier),A=Math.abs(T.x),E=Math.abs(T.y);(l.value?A>E&&A>400:E>A&&E>3)?n.value=T.direction===({left:"right",right:"left",top:"down",bottom:"up"}[i.value]||$g()):n.value=v.value>.5}const _=f.computed(()=>h.value?{transform:i.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:i.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:i.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:i.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:$g(),transition:"none"}:void 0);return qa(h,()=>{const x=t.value?.style.transform??null,T=t.value?.style.transition??null;f.watchEffect(()=>{t.value?.style.setProperty("transform",_.value?.transform||"none"),t.value?.style.setProperty("transition",_.value?.transition||null)}),f.onScopeDispose(()=>{t.value?.style.setProperty("transform",x),t.value?.style.setProperty("transition",T)})}),{isDragging:h,dragProgress:v,dragStyles:_}}function $g(){throw new Error}const WVe=["start","end","left","right","top","bottom"],GVe=ie({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>WVe.includes(e)},sticky:Boolean,...wo(),...at(),...vN(),...Tv({mobile:null}),...jr(),...gv(),...qn(),...Kt(Qj(),["disableInitialFocus"]),...Ft({tag:"nav"}),...pn()},"VNavigationDrawer"),UVe=Ce()({name:"VNavigationDrawer",props:GVe(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:o}=ea(),{themeClasses:i}=In(e),{borderClasses:l}=Go(e),{backgroundColorClasses:s,backgroundColorStyles:u}=Ln(()=>e.color),{elevationClasses:c}=va(e),{displayClasses:d,mobile:h}=pl(e),{roundedClasses:v}=ur(e),p=qY(),m=ot(e,"modelValue",null,H=>!!H),{ssrBootStyles:g}=Sv(),{scopeId:y}=Ev(),b=f.ref(),w=f.shallowRef(!1),{runOpenDelay:S,runCloseDelay:_}=pN(e,H=>{w.value=H}),x=f.computed(()=>e.rail&&e.expandOnHover&&w.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),T=f.computed(()=>mP(e.location,o.value)),A=f.toRef(()=>e.persistent),E=f.computed(()=>!e.permanent&&(h.value||e.temporary)),I=f.computed(()=>e.sticky&&!E.value&&T.value!=="bottom");eK(e,{isActive:m,localTop:E,contentEl:b}),qa(()=>e.expandOnHover&&e.rail!=null,()=>{f.watch(w,H=>r("update:rail",!H))}),qa(()=>!e.disableResizeWatcher,()=>{f.watch(E,H=>!e.permanent&&f.nextTick(()=>m.value=!H))}),qa(()=>!e.disableRouteWatcher&&!!p,()=>{f.watch(p.currentRoute,()=>E.value&&(m.value=!1))}),f.watch(()=>e.permanent,H=>{H&&(m.value=!0)}),e.modelValue==null&&!E.value&&(m.value=e.permanent||!h.value);const{isDragging:M,dragProgress:N}=zVe({el:b,isActive:m,isTemporary:E,width:x,touchless:f.toRef(()=>e.touchless),position:T}),D=f.computed(()=>{const H=E.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):x.value;return M.value?H*N.value:H}),{layoutItemStyles:P,layoutItemScrimStyles:O}=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:T,layoutSize:D,elementSize:x,active:f.readonly(m),disableTransitions:f.toRef(()=>M.value),absolute:f.computed(()=>e.absolute||I.value&&typeof L.value!="string")}),{isStuck:L,stickyStyles:R}=OVe({rootEl:b,isSticky:I,layoutItemStyles:P}),B=Ln(()=>typeof e.scrim=="string"?e.scrim:null),W=f.computed(()=>({...M.value?{opacity:N.value*.2,transition:"none"}:void 0,...O.value}));return Cr({VList:{bgColor:"transparent"}}),ke(()=>{const H=a.image||e.image;return f.createElementVNode(f.Fragment,null,[f.createVNode(e.tag,f.mergeProps({ref:b,onMouseenter:S,onMouseleave:_,class:["v-navigation-drawer",`v-navigation-drawer--${T.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":w.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":E.value,"v-navigation-drawer--persistent":A.value,"v-navigation-drawer--active":m.value,"v-navigation-drawer--sticky":I.value},i.value,s.value,l.value,d.value,c.value,v.value,e.class],style:[u.value,P.value,g.value,R.value,e.style],inert:!m.value},y,n),{default:()=>[H&&f.createElementVNode("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?f.createVNode(Ht,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):f.createVNode(Fc,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&f.createElementVNode("div",{class:"v-navigation-drawer__prepend"},[a.prepend?.()]),f.createElementVNode("div",{class:"v-navigation-drawer__content"},[a.default?.()]),a.append&&f.createElementVNode("div",{class:"v-navigation-drawer__append"},[a.append?.()])]}),f.createVNode(f.Transition,{name:"fade-transition"},{default:()=>[E.value&&(M.value||m.value)&&!!e.scrim&&f.createElementVNode("div",f.mergeProps({class:["v-navigation-drawer__scrim",B.backgroundColorClasses.value],style:[W.value,B.backgroundColorStyles.value],onClick:()=>{A.value||(m.value=!1)}},y),null)]})])}),{isStuck:L}}}),YVe=zo({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=tK();return()=>r.value&&n.default?.()}}),jVe=50,KVe=500;function XVe(e){let{toggleUpDown:t}=e,n=-1,r=-1;f.onScopeDispose(o);function a(l){o(),i(l),window.addEventListener("pointerup",o),document.addEventListener("blur",o),n=window.setTimeout(()=>{r=window.setInterval(()=>i(l),jVe)},KVe)}function o(){window.clearTimeout(n),window.clearInterval(r),window.removeEventListener("pointerup",o),document.removeEventListener("blur",o)}f.onScopeDispose(o);function i(l){t(l==="up")}return{holdStart:a,holdStop:o}}const ZVe=ie({controlVariant:{type:String,default:"default"},inset:Boolean,hideInput:Boolean,modelValue:{type:Number,default:null},min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},precision:{type:Number,default:0},minFractionDigits:{type:Number,default:null},decimalSeparator:{type:String,validator:e=>!e||e.length===1},...Kt(pw(),["modelValue","validationValue"])},"VNumberInput"),yZ=Ce()({name:"VNumberInput",props:{...ZVe()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),{holdStart:a,holdStop:o}=XVe({toggleUpDown:M}),i=Yg(e),l=f.computed(()=>i.isDisabled.value||i.isReadonly.value),s=f.shallowRef(e.focused),{decimalSeparator:u}=An(),c=f.computed(()=>e.decimalSeparator?.[0]||u.value);function d(U){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.precision,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const te=Y==null?String(U):U.toFixed(Y);if(s.value&&Z)return Number(te).toString().replace(".",c.value);if(e.minFractionDigits===null||Y!==null&&YU??null,U=>U==null?U??null:Fn(Number(U),e.min,e.max)),v=f.shallowRef(null),p=f.shallowRef(null);f.watch(h,U=>{s.value&&!l.value&&Number(v.value?.replace(c.value,"."))===U||(U==null?(v.value=null,p.value=null):isNaN(U)||(v.value=d(U),p.value=Number(v.value.replace(c.value,"."))))},{immediate:!0});const m=f.computed({get:()=>v.value,set(U){if(U===null||U===""){h.value=null,v.value=null,p.value=null;return}const Y=Number(U.replace(c.value,"."));isNaN(Y)||(v.value=U,p.value=Y,Y<=e.max&&Y>=e.min&&(h.value=Y))}}),g=f.computed(()=>{if(p.value===null)return!1;const U=Number(v.value?.replace(c.value,"."));return U!==Fn(U,e.min,e.max)}),y=f.computed(()=>l.value?!1:(h.value??0)+e.step<=e.max),b=f.computed(()=>l.value?!1:(h.value??0)-e.step>=e.min),w=f.computed(()=>e.hideInput?"stacked":e.controlVariant),S=f.toRef(()=>w.value==="split"?"$plus":"$collapse"),_=f.toRef(()=>w.value==="split"?"$minus":"$expand"),x=f.toRef(()=>w.value==="split"?"default":"small"),T=f.toRef(()=>w.value==="stacked"?"auto":"100%"),A={props:{onClick:P,onPointerup:O,onPointerdown:L,onPointercancel:O}},E={props:{onClick:P,onPointerup:O,onPointerdown:R,onPointercancel:O}};f.watch(()=>e.precision,()=>W()),f.watch(()=>e.minFractionDigits,()=>W()),f.onMounted(()=>{B()});function I(U){if(U==null)return 0;const Y=U.toString(),Z=Y.indexOf(".");return~Z?Y.length-Z:0}function M(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(l.value)return;if(h.value==null){m.value=d(Fn(0,e.min,e.max));return}let Y=Math.max(I(h.value),I(e.step));e.precision!=null&&(Y=Math.max(Y,e.precision)),U?y.value&&(m.value=d(h.value+e.step,Y)):b.value&&(m.value=d(h.value-e.step,Y))}function N(U){if(l.value||!U.data)return;const Y=U.target,{value:Z,selectionStart:te,selectionEnd:$}=Y??{},ae=Z?Z.slice(0,te)+U.data+Z.slice($):U.data,de=Q_e(ae,e.precision,c.value);if(new RegExp(`^-?\\d*${c_(c.value)}?\\d*$`).test(ae)||(U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de)),e.precision!=null){if(ae.split(c.value)[1]?.length>e.precision){U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de);const me=(te??0)+U.data.length;Y.setSelectionRange(me,me)}e.precision===0&&ae.endsWith(c.value)&&(U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de))}}async function D(U){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(U.key)||U.ctrlKey||["ArrowDown","ArrowUp"].includes(U.key)&&(U.preventDefault(),U.stopPropagation(),B(),await f.nextTick(),U.key==="ArrowDown"?M(!1):M())}function P(U){U.stopPropagation()}function O(U){U.currentTarget?.releasePointerCapture(U.pointerId),U.preventDefault(),o()}function L(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),a("up")}function R(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),a("down")}function B(){if(l.value||!r.value)return;const U=r.value.value,Y=Number(U.replace(c.value,"."));U&&!isNaN(Y)?m.value=d(Fn(Y,e.min,e.max)):m.value=null}function W(){l.value||(m.value=h.value!==null&&!isNaN(h.value)?d(h.value,e.precision,!1):null)}function H(){if(!l.value){if(h.value===null||isNaN(h.value)){m.value=null;return}m.value=h.value.toString().replace(".",c.value)}}function z(){H()}function j(){B()}return ke(()=>{const{modelValue:U,type:Y,...Z}=ta.filterProps(e);function te(){return n.increment?f.createVNode(Ht,{key:"increment-defaults",defaults:{VBtn:{disabled:!y.value,height:T.value,size:x.value,icon:S.value,variant:"text"}}},{default:()=>[n.increment(A)]}):f.createVNode(xt,{"aria-hidden":"true","data-testid":"increment",disabled:!y.value,height:T.value,icon:S.value,key:"increment-btn",onClick:P,onPointerdown:L,onPointerup:O,onPointercancel:O,size:x.value,variant:"text",tabindex:"-1"},null)}function $(){return n.decrement?f.createVNode(Ht,{key:"decrement-defaults",defaults:{VBtn:{disabled:!b.value,height:T.value,size:x.value,icon:_.value,variant:"text"}}},{default:()=>[n.decrement(E)]}):f.createVNode(xt,{"aria-hidden":"true","data-testid":"decrement",disabled:!b.value,height:T.value,icon:_.value,key:"decrement-btn",onClick:P,onPointerdown:R,onPointerup:O,onPointercancel:O,size:x.value,variant:"text",tabindex:"-1"},null)}function ae(){return f.createElementVNode("div",{class:"v-number-input__control"},[$(),f.createVNode(Ia,{vertical:w.value!=="stacked"},null),te()])}function de(){return!e.hideInput&&!e.inset?f.createVNode(Ia,{vertical:!0},null):void 0}const me=w.value==="split"?f.createElementVNode("div",{class:"v-number-input__control"},[f.createVNode(Ia,{vertical:!0},null),te()]):e.reverse||w.value==="hidden"?void 0:f.createElementVNode(f.Fragment,null,[de(),ae()]),fe=n["append-inner"]||me,Ee=w.value==="split"?f.createElementVNode("div",{class:"v-number-input__control"},[$(),f.createVNode(Ia,{vertical:!0},null)]):e.reverse&&w.value!=="hidden"?f.createElementVNode(f.Fragment,null,[ae(),de()]):void 0,De=n["prepend-inner"]||Ee;return f.createVNode(ta,f.mergeProps({ref:r},Z,{modelValue:m.value,"onUpdate:modelValue":ne=>m.value=ne,focused:s.value,"onUpdate:focused":ne=>s.value=ne,validationValue:h.value,error:e.error||g.value||void 0,onBeforeinput:N,onFocus:z,onBlur:j,onKeydown:D,class:["v-number-input",{"v-number-input--default":w.value==="default","v-number-input--hide-input":e.hideInput,"v-number-input--inset":e.inset,"v-number-input--reverse":e.reverse,"v-number-input--split":w.value==="split","v-number-input--stacked":w.value==="stacked"},e.class],style:e.style,inputmode:"decimal"}),{...n,"append-inner":fe?function(){for(var ne=arguments.length,pe=new Array(ne),Pe=0;Pe!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{densityClasses:o}=$a(e),{dimensionStyles:i}=Yr(e),{isFocused:l,focus:s,blur:u}=Gc(e),c=ot(e,"modelValue","",M=>M==null?[]:String(M).split(""),M=>M.join("")),{t:d}=An(),h=f.computed(()=>Number(e.length)),v=f.computed(()=>Array(h.value).fill(0)),p=f.ref(-1),m=f.ref(),g=f.ref([]),y=f.computed(()=>g.value[p.value]);let b=!1;qa(()=>e.autofocus,()=>{const M=f.effectScope();M.run(()=>{const{intersectionRef:N,isIntersecting:D}=$1();f.watchEffect(()=>{N.value=g.value[0]}),f.watch(D,P=>{P&&(N.value?.focus(),M.stop())})})});function w(){if(I(y.value.value)){y.value.value="";return}if(b)return;const M=c.value.slice(),N=y.value.value;M[p.value]=N;let D=null;p.value>c.value.length?D=c.value.length+1:p.value+1!==h.value&&(D="next"),c.value=M,D&&mv(m.value,D)}function S(){b=!1,w()}function _(M){const N=c.value.slice(),D=p.value;let P=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(M.key)&&(M.preventDefault(),M.key==="ArrowLeft"?P="prev":M.key==="ArrowRight"?P="next":["Backspace","Delete"].includes(M.key)&&(N[p.value]="",c.value=N,p.value>0&&M.key==="Backspace"?P="prev":requestAnimationFrame(()=>{g.value[D]?.select()})),requestAnimationFrame(()=>{P!=null&&mv(m.value,P)}))}function x(M,N){N.preventDefault(),N.stopPropagation();const D=N?.clipboardData?.getData("Text").trim().slice(0,h.value)??"",P=D.length-1===-1?M:D.length-1;I(D)||(c.value=D.split(""),p.value=P)}function T(){c.value=[]}function A(M,N){s(),p.value=N}function E(){u(),p.value=-1}function I(M){return e.type==="number"&&/[^0-9]/g.test(M)}return Cr({VField:{color:f.toRef(()=>e.color),bgColor:f.toRef(()=>e.color),baseColor:f.toRef(()=>e.baseColor),disabled:f.toRef(()=>e.disabled),error:f.toRef(()=>e.error),variant:f.toRef(()=>e.variant),rounded:f.toRef(()=>e.rounded)}},{scoped:!0}),f.watch(c,M=>{M.length===h.value&&r("finish",M.join(""))},{deep:!0}),f.watch(p,M=>{M<0||f.nextTick(()=>{g.value[M]?.select()})}),ke(()=>{const[M,N]=Su(n);return f.createElementVNode("div",f.mergeProps({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},o.value,e.class],style:[e.style]},M),[f.createElementVNode("div",{ref:m,class:"v-otp-input__content",style:f.normalizeStyle([i.value])},[v.value.map((D,P)=>f.createElementVNode(f.Fragment,null,[e.divider&&P!==0&&f.createElementVNode("span",{class:"v-otp-input__divider"},[e.divider]),f.createVNode(ff,{focused:l.value&&e.focusAll||p.value===P,key:P},{...a,loader:void 0,default:()=>f.createElementVNode("input",{ref:O=>g.value[P]=O,"aria-label":d(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:f.normalizeClass(["v-otp-input__field"]),disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:P===0?h.value:"1",placeholder:e.placeholder,type:e.masked?"password":e.type==="number"?"text":e.type,value:c.value[P],onInput:w,onFocus:O=>A(O,P),onBlur:E,onKeydown:_,onCompositionstart:()=>b=!0,onCompositionend:S,onPaste:O=>x(P,O)},null)})])),f.createElementVNode("input",f.mergeProps({class:"v-otp-input-input",type:"hidden"},N,{value:c.value.join("")}),null),f.createVNode(Ri,{contained:!0,contentClass:"v-otp-input__loader",modelValue:!!e.loading,persistent:!0},{default:()=>[a.loader?.()??f.createVNode(cf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}),a.default?.()])])}),{blur:()=>{g.value?.some(M=>M.blur())},focus:()=>{g.value?.[0].focus()},reset:T,isFocused:l}}});function qVe(e){return Math.floor(Math.abs(e))*Math.sign(e)}const $Ve=ie({scale:{type:[Number,String],default:.5},...at()},"VParallax"),ePe=Ce()({name:"VParallax",props:$Ve(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=$1(),{resizeRef:o,contentRect:i}=Ul(),{height:l}=pl(),s=f.ref();f.watchEffect(()=>{r.value=o.value=s.value?.$el});let u;f.watch(a,v=>{v?(u=m_(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",h,{passive:!0}),h()):u.removeEventListener("scroll",h)}),f.onBeforeUnmount(()=>{u?.removeEventListener("scroll",h)}),f.watch(l,h),f.watch(()=>i.value?.height,h);const c=f.computed(()=>1-Fn(Number(e.scale)));let d=-1;function h(){!a.value||bu()||(cancelAnimationFrame(d),d=requestAnimationFrame(()=>{const v=(s.value?.$el).querySelector(".v-img__img");if(!v)return;const p=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,m=u instanceof Document?window.scrollY:u.scrollTop,g=r.value.getBoundingClientRect().top+m,y=i.value.height,b=g+(y-p)/2,w=qVe((m-b)*c.value),S=Math.max(1,(c.value*(p-y)+y)/y);v.style.setProperty("transform",`translateY(${w}px) scale(${S})`)}))}return ke(()=>f.createVNode(Fc,{class:f.normalizeClass(["v-parallax",{"v-parallax--active":a.value},e.class]),style:f.normalizeStyle(e.style),ref:s,cover:!0,onLoadstart:h,onLoad:h},n)),{}}}),tPe=ie({...k_({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),nPe=Ce()({name:"VRadio",props:tPe(),setup(e,t){let{slots:n}=t;return ke(()=>{const r=df.filterProps(e);return f.createVNode(df,f.mergeProps(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),rPe=ie({height:{type:[Number,String],default:"auto"},...Kt(Uc(),["direction"]),...Kt(XP(),["multiple"]),trueIcon:{type:ut,default:"$radioOn"},falseIcon:{type:ut,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),aPe=Ce()({name:"VRadioGroup",inheritAttrs:!1,props:rPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=f.useId(),o=f.computed(()=>e.id||`radio-group-${a}`),i=ot(e,"modelValue"),l=f.ref();return ke(()=>{const[s,u]=Su(n),c=to.filterProps(e),d=df.filterProps(e),h=r.label?r.label({label:e.label,props:{for:o.value}}):e.label;return f.createVNode(to,f.mergeProps({ref:l,class:["v-radio-group",e.class],style:e.style},s,c,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:o.value}),{...r,default:v=>{let{id:p,messagesId:m,isDisabled:g,isReadonly:y}=v;return f.createElementVNode(f.Fragment,null,[h&&f.createVNode(Ug,{id:p.value},{default:()=>[h]}),f.createVNode(dj,f.mergeProps(d,{id:p.value,"aria-describedby":m.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:y.value,"aria-labelledby":h?p.value:void 0,multiple:!1},u,{modelValue:i.value,"onUpdate:modelValue":b=>i.value=b}),r)])}})}),pa({},l)}}),oPe=ie({...lw(),...Uc(),...uX(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),iPe=Ce()({name:"VRangeSlider",inheritAttrs:!1,props:oPe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:a}=t;const o=f.ref(),i=f.ref(),l=f.ref(),{rtlClasses:s}=ea();function u(N){if(!o.value||!i.value)return;const D=WN(N,o.value.$el,e.direction),P=WN(N,i.value.$el,e.direction),O=Math.abs(D),L=Math.abs(P);return ON?.length?N.map(D=>c.roundValue(D)):[0,0]),{activeThumbRef:h,hasLabels:v,max:p,min:m,mousePressed:g,onSliderMousedown:y,onSliderTouchstart:b,position:w,trackContainerRef:S,disabled:_,readonly:x}=dX({props:e,steps:c,onSliderStart:()=>{if(_.value||x.value){h.value?.blur();return}r("start",d.value)},onSliderEnd:N=>{let{value:D}=N;if(_.value||x.value)h.value?.blur();else{const P=h.value===o.value?.$el?[D,d.value[1]]:[d.value[0],D];!e.strict&&P[0]{let{value:D}=N;const[P,O]=d.value;if(_.value||x.value){h.value?.blur();return}!e.strict&&P===O&&P!==m.value&&(h.value=D>P?i.value?.$el:o.value?.$el,h.value?.focus()),h.value===o.value?.$el?d.value=[Math.min(D,O),O]:d.value=[P,Math.max(P,D)]},getActiveThumb:u}),{isFocused:T,focus:A,blur:E}=Gc(e),I=f.computed(()=>w(d.value[0])),M=f.computed(()=>w(d.value[1]));return ke(()=>{const N=to.filterProps(e),[D,P]=Su(a),O=!!(e.label||n.label||n.prepend);return f.createVNode(to,f.mergeProps({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||v.value,"v-slider--focused":T.value,"v-slider--pressed":g.value,"v-slider--disabled":_.value},s.value,e.class],style:e.style,ref:l},N,D,{focused:T.value}),{...n,prepend:O?L=>f.createElementVNode(f.Fragment,null,[n.label?.(L)??(e.label?f.createVNode(Ug,{class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(L)]):void 0,default:L=>{let{id:R,messagesId:B}=L;return f.createElementVNode("div",{class:"v-slider__container",onMousedown:x.value?void 0:y,onTouchstartPassive:x.value?void 0:b},[f.createElementVNode("input",{id:`${R.value}_start`,name:e.name||R.value,disabled:_.value,readonly:x.value,tabindex:"-1",value:d.value[0]},null),f.createElementVNode("input",{id:`${R.value}_stop`,name:e.name||R.value,disabled:_.value,readonly:x.value,tabindex:"-1",value:d.value[1]},null),f.createVNode(fX,{ref:S,start:I.value,stop:M.value},{"tick-label":n["tick-label"]}),f.createVNode(GN,f.mergeProps({ref:o,"aria-describedby":B.value,focused:T&&h.value===o.value?.$el,modelValue:d.value[0],"onUpdate:modelValue":W=>d.value=[W,d.value[1]],onFocus:W=>{A(),h.value=o.value?.$el,p.value!==m.value&&d.value[0]===d.value[1]&&d.value[1]===m.value&&W.relatedTarget!==i.value?.$el&&(o.value?.$el.blur(),i.value?.$el.focus())},onBlur:()=>{E(),h.value=void 0},min:m.value,max:d.value[1],position:I.value,ripple:e.ripple},P),{"thumb-label":n["thumb-label"]}),f.createVNode(GN,f.mergeProps({ref:i,"aria-describedby":B.value,focused:T&&h.value===i.value?.$el,modelValue:d.value[1],"onUpdate:modelValue":W=>d.value=[d.value[0],W],onFocus:W=>{A(),h.value=i.value?.$el,p.value!==m.value&&d.value[0]===d.value[1]&&d.value[0]===p.value&&W.relatedTarget!==o.value?.$el&&(i.value?.$el.blur(),o.value?.$el.focus())},onBlur:()=>{E(),h.value=void 0},min:d.value[0],max:p.value,position:M.value,ripple:e.ripple},P),{"thumb-label":n["thumb-label"]})])}})}),pa({focus:()=>o.value?.$el.focus()},l)}}),lPe=ie({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:ut,default:"$ratingEmpty"},fullIcon:{type:ut,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...at(),..._r(),...Tu(),...Ft(),...pn()},"VRating"),sPe=Ce()({name:"VRating",props:lPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),{themeClasses:a}=In(e),o=f.ref(),i=ot(e,"modelValue"),l=f.computed(()=>Fn(parseFloat(i.value),0,Number(e.length))),s=f.computed(()=>wu(Number(e.length),1)),u=f.computed(()=>s.value.flatMap(S=>e.halfIncrements?[S-.5,S]:[S])),c=f.shallowRef(-1),d=f.computed(()=>u.value.map(S=>{const _=e.hover&&c.value>-1,x=l.value>=S,T=c.value>=S,E=(_?T:x)?e.fullIcon:e.emptyIcon,I=e.activeColor??e.color,M=x||T?I:e.color;return{isFilled:x,isHovered:T,icon:E,color:M}})),h=f.computed(()=>[0,...u.value].map(S=>{function _(){c.value=S}function x(){c.value=-1}function T(){e.disabled||e.readonly||(i.value=l.value===S&&e.clearable?0:S)}return{onMouseenter:e.hover?_:void 0,onMouseleave:e.hover?x:void 0,onClick:T}})),v=f.computed(()=>e.halfIncrements?1+Math.floor(Math.max(0,Number(i.value??0)-.5))*2:Math.floor(Math.max(0,Number(i.value??0)-1)));function p(){o.value?.querySelector('[tabindex="0"]')?.focus()}function m(S){if(e.disabled||e.readonly||S.ctrlKey||S.altKey)return;const _=e.halfIncrements?.5:1;if(S.key==="ArrowRight"){const x=Math.min(Number(e.length),Number(i.value??0)+_);i.value=x,f.nextTick(()=>p())}if(S.key==="ArrowLeft"){const x=Math.max(0,Number(i.value??0)-_);i.value=x,f.nextTick(()=>p())}}const g=f.useId(),y=f.computed(()=>e.name??`v-rating-${g}`);function b(S){let{value:_,index:x,showStar:T=!0}=S;const{onMouseenter:A,onMouseleave:E,onClick:I}=h.value[x+1],M=`${y.value}-${String(_).replace(".","-")}`,N=x===v.value,D={color:d.value[x]?.color,density:e.density,disabled:e.disabled,icon:d.value[x]?.icon,ripple:e.ripple,size:e.size,variant:"plain",tabindex:N?0:-1,onKeydown:m};return f.createElementVNode(f.Fragment,null,[f.createElementVNode("label",{for:M,class:f.normalizeClass({"v-rating__item--half":e.halfIncrements&&_%1>0,"v-rating__item--full":e.halfIncrements&&_%1===0}),onMouseenter:A,onMouseleave:E,onClick:I},[f.createElementVNode("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,_,e.length)]),T?n.item?n.item({...d.value[x],props:D,value:_,index:x,rating:l.value}):f.createVNode(xt,f.mergeProps({"aria-label":r(e.itemAriaLabel,_,e.length)},D),null):void 0]),f.createElementVNode("input",{class:"v-rating__hidden",name:y.value,id:M,type:"radio",value:_,checked:l.value===_,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function w(S){return n["item-label"]?n["item-label"](S):S.label?f.createElementVNode("span",null,[S.label]):f.createElementVNode("span",null,[f.createTextVNode(" ")])}return ke(()=>{const S=!!e.itemLabels?.length||n["item-label"];return f.createVNode(e.tag,{class:f.normalizeClass(["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class]),style:f.normalizeStyle(e.style),ref:o},{default:()=>[f.createVNode(b,{value:0,index:-1,showStar:!1},null),s.value.map((_,x)=>f.createElementVNode("div",{class:"v-rating__wrapper"},[S&&e.itemLabelPosition==="top"?w({value:_,index:x,label:e.itemLabels?.[x]}):void 0,f.createElementVNode("div",{class:"v-rating__item"},[e.halfIncrements?f.createElementVNode(f.Fragment,null,[f.createVNode(b,{value:_-.5,index:x*2},null),f.createVNode(b,{value:_,index:x*2+1},null)]):f.createVNode(b,{value:_,index:x},null)]),S&&e.itemLabelPosition==="bottom"?w({value:_,index:x,label:e.itemLabels?.[x]}):void 0]))]})}),{}}}),uPe={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function cPe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.createElementVNode("div",{class:f.normalizeClass(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function bZ(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>eT(t))}function eT(e){let t=[];if(!e)return t;const n=uPe[e];if(e!==n){if(e.includes(","))return wZ(e);if(e.includes("@"))return bZ(e);n.includes(",")?t=wZ(n):n.includes("@")?t=bZ(n):n&&t.push(eT(n))}return[cPe(e,t)]}function wZ(e){return e.replace(/\s/g,"").split(",").map(eT)}const dPe=ie({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Ur(),...jr(),...pn()},"VSkeletonLoader"),fPe=Ce()({name:"VSkeletonLoader",inheritAttrs:!1,props:dPe(),setup(e,t){let{attrs:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{dimensionStyles:i}=Yr(e),{elevationClasses:l}=va(e),{themeClasses:s}=In(e),{t:u}=An(),c=f.computed(()=>eT(jn(e.type).join(",")));return ke(()=>{const d=!r.default||e.loading,h=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return d?f.createElementVNode("div",f.mergeProps({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,a.value,l.value],style:[o.value,i.value]},h,n),[c.value]):f.createElementVNode(f.Fragment,null,[r.default?.()])}),{}}}),hPe=Ce()({name:"VSlideGroupItem",props:Cv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=sf(e,eN);return()=>n.default?.({isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}});function vPe(e){const t=f.shallowRef(e());let n=-1;function r(){clearInterval(n)}function a(){r(),f.nextTick(()=>t.value=e())}function o(i){const l=i?getComputedStyle(i):{transitionDuration:.2},s=parseFloat(l.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+s;t.value=Math.max(e()-c,0),t.value<=0&&r()},s)}return f.onScopeDispose(r),{clear:r,time:t,start:o,reset:a}}const SZ=ie({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,..._u({location:"bottom"}),...Wg(),...qn(),...fl(),...pn(),...Kt(fw({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),yL=Ce()({name:"VSnackbar",props:SZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{positionClasses:a}=Gg(e),{scopeId:o}=Ev(),{themeClasses:i}=In(e),{colorClasses:l,colorStyles:s,variantClasses:u}=Wc(e),{roundedClasses:c}=ur(e),d=vPe(()=>Number(e.timeout)),h=f.ref(),v=f.ref(),p=f.shallowRef(!1),m=f.shallowRef(0),g=f.ref(),y=f.inject(J1,void 0);qa(()=>!!y,()=>{const M=DY();f.watchEffect(()=>{g.value=M.mainStyles.value})}),f.watch(r,w),f.watch(()=>e.timeout,w),f.onMounted(()=>{r.value&&w()});let b=-1;function w(){d.reset(),window.clearTimeout(b);const M=Number(e.timeout);if(!r.value||M===-1)return;const N=cP(v.value);d.start(N),b=window.setTimeout(()=>{r.value=!1},M)}function S(){d.reset(),window.clearTimeout(b)}function _(){p.value=!0,S()}function x(){p.value=!1,w()}function T(M){m.value=M.touches[0].clientY}function A(M){Math.abs(m.value-M.changedTouches[0].clientY)>50&&(r.value=!1)}function E(){p.value&&x()}const I=f.computed(()=>e.location.split(" ").reduce((M,N)=>(M[`v-snackbar--${N}`]=!0,M),{}));return ke(()=>{const M=Ri.filterProps(e),N=!!(n.default||n.text||e.text);return f.createVNode(Ri,f.mergeProps({ref:h,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},I.value,a.value,e.class],style:[g.value,e.style]},M,{modelValue:r.value,"onUpdate:modelValue":D=>r.value=D,contentProps:f.mergeProps({class:["v-snackbar__wrapper",i.value,l.value,c.value,u.value],style:[s.value],onPointerenter:_,onPointerleave:x},M.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:T,onTouchend:A,onAfterLeave:E},o),{default:()=>[zc(!1,"v-snackbar"),e.timer&&!p.value&&f.createElementVNode("div",{key:"timer",class:"v-snackbar__timer"},[f.createVNode(zg,{ref:v,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:d.time.value},null)]),N&&f.createElementVNode("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[n.text?.()??e.text,n.default?.()]),n.actions&&f.createVNode(Ht,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[f.createElementVNode("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})],activator:n.activator})}),pa({},h)}}),pPe=ie({closable:[Boolean,String],closeText:{type:String,default:"$vuetify.dismiss"},modelValue:{type:Array,default:()=>[]},...Kt(SZ(),["modelValue"])},"VSnackbarQueue"),mPe=Ce()({name:"VSnackbarQueue",props:pPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.shallowRef(!1),i=f.shallowRef(!1),l=f.shallowRef();f.watch(()=>e.modelValue.length,(h,v)=>{!i.value&&h>v&&u()}),f.watch(o,h=>{h&&(i.value=!0)});function s(){e.modelValue.length?u():(l.value=void 0,i.value=!1)}function u(){const[h,...v]=e.modelValue;n("update:modelValue",v),l.value=typeof h=="string"?{text:h}:h,f.nextTick(()=>{o.value=!0})}function c(){o.value=!1}const d=f.computed(()=>({color:typeof e.closable=="string"?e.closable:void 0,text:a(e.closeText)}));ke(()=>{const h=!!(e.closable||r.actions),{modelValue:v,...p}=yL.filterProps(e);return f.createElementVNode(f.Fragment,null,[i.value&&!!l.value&&(r.default?f.createVNode(Ht,{defaults:{VSnackbar:l.value}},{default:()=>[r.default({item:l.value})]}):f.createVNode(yL,f.mergeProps(p,l.value,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m,onAfterLeave:s}),{text:r.text?()=>r.text?.({item:l.value}):void 0,actions:h?()=>f.createElementVNode(f.Fragment,null,[r.actions?f.createVNode(Ht,{defaults:{VBtn:d.value}},{default:()=>[r.actions({item:l.value,props:{onClick:c}})]}):f.createVNode(xt,f.mergeProps(d.value,{onClick:c}),null)]):void 0}))])})}}),xZ=ie({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:[Boolean,String,Number],width:{type:[Number,String],default:300}},"Line"),CZ=ie({autoLineWidth:Boolean,...xZ()},"VBarline"),_Z=Ce()({name:"VBarline",props:CZ(),setup(e,t){let{slots:n}=t;const r=f.useId(),a=f.computed(()=>e.id||`barline-${r}`),o=f.computed(()=>Number(e.autoDrawDuration)||500),i=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),l=f.computed(()=>parseFloat(e.lineWidth)||4),s=f.computed(()=>Math.max(e.modelValue.length*l.value,Number(e.width))),u=f.computed(()=>({minX:0,maxX:s.value,minY:0,maxY:parseInt(e.height,10)})),c=f.computed(()=>e.modelValue.map(g=>Wr(g,e.itemValue,g)));function d(g,y){const{minX:b,maxX:w,minY:S,maxY:_}=y,x=g.length;let T=e.max!=null?Number(e.max):Math.max(...g),A=e.min!=null?Number(e.min):Math.min(...g);A>0&&e.min==null&&(A=0),T<0&&e.max==null&&(T=0);const E=w/(x===1?2:x),I=(_-S)/(T-A||1),M=_-Math.abs(A*I);return g.map((N,D)=>{const P=Math.abs(I*N);return{x:b+D*E,y:M-P+ +(N<0)*P,height:P,value:N}})}const h=f.computed(()=>{const g=[],y=d(c.value,u.value),b=y.length;for(let w=0;g.lengthd(c.value,u.value)),p=f.computed(()=>v.value.length===1?(u.value.maxX-l.value)/2:(Math.abs(v.value[0].x-v.value[1].x)-l.value)/2),m=f.computed(()=>typeof e.smooth=="boolean"?e.smooth?2:0:Number(e.smooth));ke(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return f.createElementVNode("svg",{display:"block"},[f.createElementVNode("defs",null,[f.createElementVNode("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((y,b)=>f.createElementVNode("stop",{offset:b/Math.max(g.length-1,1),"stop-color":y||"currentColor"},null))])]),f.createElementVNode("clipPath",{id:`${a.value}-clip`},[v.value.map(y=>f.createElementVNode("rect",{x:y.x+p.value,y:y.y,width:l.value,height:y.height,rx:m.value,ry:m.value},[e.autoDraw&&!bu()&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("animate",{attributeName:"y",from:y.y+y.height,to:y.y,dur:`${o.value}ms`,fill:"freeze"},null),f.createElementVNode("animate",{attributeName:"height",from:"0",to:y.height,dur:`${o.value}ms`,fill:"freeze"},null)])]))]),i.value&&f.createElementVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((y,b)=>f.createElementVNode("text",{x:y.x+p.value+l.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[n.label?.({index:b,value:y.value})??y.value]))]),f.createElementVNode("g",{"clip-path":`url(#${a.value}-clip)`,fill:`url(#${a.value})`},[f.createElementVNode("rect",{x:0,y:0,width:Math.max(e.modelValue.length*l.value,Number(e.width)),height:e.height},null)])])})}});function gPe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const a=e.shift(),o=e[e.length-1];return(n?`M${a.x} ${r-a.x+2} L${a.x} ${a.y}`:`M${a.x} ${a.y}`)+e.map((i,l)=>{const s=e[l+1],u=e[l-1]||a,c=s&&yPe(s,i,u);if(!s||c)return`L${i.x} ${i.y}`;const d=Math.min(TZ(u,i),TZ(s,i)),v=d/2e.id||`trendline-${r}`),o=f.computed(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),i=f.ref(0),l=f.ref(null);function s(g,y){const{minX:b,maxX:w,minY:S,maxY:_}=y;g.length===1&&(g=[g[0],g[0]]);const x=g.length,T=e.max!=null?Number(e.max):Math.max(...g),A=e.min!=null?Number(e.min):Math.min(...g),E=(w-b)/(x-1),I=(_-S)/(T-A||1);return g.map((M,N)=>({x:b+N*E,y:_-(M-A)*I,value:M}))}const u=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),c=f.computed(()=>parseFloat(e.lineWidth)||4),d=f.computed(()=>Number(e.width)),h=f.computed(()=>{const g=Number(e.padding);return{minX:g,maxX:d.value-g,minY:g,maxY:parseInt(e.height,10)-g}}),v=f.computed(()=>e.modelValue.map(g=>Wr(g,e.itemValue,g))),p=f.computed(()=>{const g=[],y=s(v.value,h.value),b=y.length;for(let w=0;g.lengthe.modelValue,async()=>{if(await f.nextTick(),!e.autoDraw||!l.value||bu())return;const g=l.value,y=g.getTotalLength();e.fill?(g.style.transformOrigin="bottom center",g.style.transition="none",g.style.transform="scaleY(0)",g.getBoundingClientRect(),g.style.transition=`transform ${o.value}ms ${e.autoDrawEasing}`,g.style.transform="scaleY(1)"):(g.style.strokeDasharray=`${y}`,g.style.strokeDashoffset=`${y}`,g.getBoundingClientRect(),g.style.transition=`stroke-dashoffset ${o.value}ms ${e.autoDrawEasing}`,g.style.strokeDashoffset="0"),i.value=y},{immediate:!0});function m(g){const y=typeof e.smooth=="boolean"?e.smooth?8:0:Number(e.smooth);return gPe(s(v.value,h.value),y,g,parseInt(e.height,10))}ke(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return f.createElementVNode("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[f.createElementVNode("defs",null,[f.createElementVNode("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((y,b)=>f.createElementVNode("stop",{offset:b/Math.max(g.length-1,1),"stop-color":y||"currentColor"},null))])]),u.value&&f.createElementVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[p.value.map((y,b)=>f.createElementVNode("text",{x:y.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[n.label?.({index:b,value:y.value})??y.value]))]),f.createElementVNode("path",{ref:l,d:m(e.fill),fill:e.fill?`url(#${a.value})`:"none",stroke:e.fill?"none":`url(#${a.value})`},null),e.fill&&f.createElementVNode("path",{d:m(!1),fill:"none",stroke:e.color??e.gradient?.[0]},null)])})}}),bPe=ie({type:{type:String,default:"trend"},...CZ(),...AZ()},"VSparkline"),wPe=Ce()({name:"VSparkline",props:bPe(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=za(()=>e.color),o=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),i=f.computed(()=>{let l=parseInt(e.height,10);return o.value&&(l+=parseInt(e.labelSize,10)*1.5),l});ke(()=>{const l=e.type==="trend"?EZ:_Z,s=e.type==="trend"?EZ.filterProps(e):_Z.filterProps(e);return f.createVNode(l,f.mergeProps({key:e.type,class:r.value,style:a.value,viewBox:`0 0 ${e.width} ${parseInt(i.value,10)}`},s),n)})}}),SPe=ie({...at(),...iK({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),xPe=Ce()({name:"VSpeedDial",props:SPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.ref(),o=f.computed(()=>{const[l,s="center"]=e.location?.split(" ")??[];return`${l} ${s}`}),i=f.computed(()=>({[`v-speed-dial__content--${o.value.replace(" ","-")}`]:!0}));return ke(()=>{const l=Uo.filterProps(e);return f.createVNode(Uo,f.mergeProps(l,{modelValue:r.value,"onUpdate:modelValue":s=>r.value=s,class:e.class,style:e.style,contentClass:["v-speed-dial__content",i.value,e.contentClass],location:o.value,ref:a,transition:"fade-transition"}),{...n,default:s=>f.createVNode(Ht,{defaults:{VBtn:{size:"small"}}},{default:()=>[f.createVNode(Wo,{appear:!0,group:!0,transition:e.transition},{default:()=>[n.default?.(s)]})]})})}),{}}}),bL=Symbol.for("vuetify:v-stepper"),IZ=ie({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),MZ=Ce()({name:"VStepperActions",props:IZ(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An();function o(){n("click:prev")}function i(){n("click:next")}return ke(()=>{const l={onClick:o},s={onClick:i};return f.createElementVNode("div",{class:"v-stepper-actions"},[f.createVNode(Ht,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>[r.prev?.({props:l})??f.createVNode(xt,l,null)]}),f.createVNode(Ht,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>[r.next?.({props:s})??f.createVNode(xt,s,null)]})])}),{}}}),DZ=Rc("v-stepper-header"),CPe=ie({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:ut,default:"$complete"},editable:Boolean,editIcon:{type:ut,default:"$edit"},error:Boolean,errorIcon:{type:ut,default:"$error"},icon:ut,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),_Pe=ie({...CPe(),...Cv()},"VStepperItem"),VZ=Ce()({name:"VStepperItem",directives:{vRipple:eo},props:_Pe(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=sf(e,bL,!0),a=f.computed(()=>r?.value.value??e.value),o=f.computed(()=>e.rules.every(h=>h()===!0)),i=f.computed(()=>!e.disabled&&e.editable),l=f.computed(()=>!e.disabled&&e.editable),s=f.computed(()=>e.error||!o.value),u=f.computed(()=>e.complete||e.rules.length>0&&o.value),c=f.computed(()=>s.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),d=f.computed(()=>({canEdit:l.value,hasError:s.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return ke(()=>{const h=(!r||r.isSelected.value||u.value||l.value)&&!s.value&&!e.disabled,v=!!(e.title!=null||n.title),p=!!(e.subtitle!=null||n.subtitle);function m(){r?.toggle()}return f.withDirectives(f.createElementVNode("button",{class:f.normalizeClass(["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":s.value},r?.selectedClass.value]),disabled:!e.editable,type:"button",onClick:m},[i.value&&zc(!0,"v-stepper-item"),f.createVNode(vl,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:h?e.color:void 0,size:24},{default:()=>[n.icon?.(d.value)??(c.value?f.createVNode(St,{icon:c.value},null):a.value)]}),f.createElementVNode("div",{class:"v-stepper-item__content"},[v&&f.createElementVNode("div",{key:"title",class:"v-stepper-item__title"},[n.title?.(d.value)??e.title]),p&&f.createElementVNode("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[n.subtitle?.(d.value)??e.subtitle]),n.default?.(d.value)])]),[[eo,e.editable&&e.ripple,null]])}),{}}}),TPe=ie({...Kt(z_(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),PZ=Ce()({name:"VStepperWindow",props:TPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(bL,null),a=ot(e,"modelValue"),o=f.computed({get(){return a.value!=null||!r?a.value:r.items.value.find(i=>r.selected.value.includes(i.id))?.value},set(i){a.value=i}});return ke(()=>{const i=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({_as:"VStepperWindow"},i,{modelValue:o.value,"onUpdate:modelValue":l=>o.value=l,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),kPe=ie({...W_()},"VStepperWindowItem"),NZ=Ce()({name:"VStepperWindowItem",props:kPe(),setup(e,t){let{slots:n}=t;return ke(()=>{const r=bf.filterProps(e);return f.createVNode(bf,f.mergeProps({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),APe=ie({altLabels:Boolean,bgColor:String,completeIcon:ut,editIcon:ut,editable:Boolean,errorIcon:ut,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},nonLinear:Boolean,flat:Boolean,...Tv()},"Stepper"),EPe=ie({...APe(),...xv({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...bN(),...fi(IZ(),["prevText","nextText"])},"VStepper"),IPe=Ce()({name:"VStepper",props:EPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:o,selected:i}=uf(e,bL),{displayClasses:l,mobile:s}=pl(e),{completeIcon:u,editIcon:c,errorIcon:d,color:h,editable:v,prevText:p,nextText:m}=f.toRefs(e),g=f.computed(()=>e.items.map((w,S)=>{const _=Wr(w,e.itemTitle,w),x=Wr(w,e.itemValue,S+1),T=e.itemProps===!0?w:Wr(w,e.itemProps),A={title:_,value:x,...T};return{title:A.title,value:A.value,props:A,raw:w}})),y=f.computed(()=>r.value.findIndex(w=>i.value.includes(w.id))),b=f.computed(()=>e.disabled?e.disabled:y.value===0?"prev":y.value===r.value.length-1?"next":!1);return Cr({VStepperItem:{editable:v,errorIcon:d,completeIcon:u,editIcon:c,prevText:p,nextText:m},VStepperActions:{color:h,disabled:b,prevText:p,nextText:m}}),ke(()=>{const w=Yc.filterProps(e),S=!!(n.header||e.items.length),_=e.items.length>0,x=!e.hideActions&&!!(_||n.actions);return f.createVNode(Yc,f.mergeProps(w,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":s.value},l.value,e.class],style:e.style}),{default:()=>[S&&f.createVNode(DZ,{key:"stepper-header"},{default:()=>[g.value.map((T,A)=>{let{raw:E,...I}=T;return f.createElementVNode(f.Fragment,null,[!!A&&f.createVNode(Ia,null,null),f.createVNode(VZ,I.props,{default:n[`header-item.${I.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),_&&f.createVNode(PZ,{key:"stepper-window"},{default:()=>[g.value.map(T=>f.createVNode(NZ,{value:T.value},{default:()=>n[`item.${T.value}`]?.(T)??n.item?.(T)}))]}),n.default?.({prev:o,next:a}),x&&(n.actions?.({next:a,prev:o})??f.createVNode(MZ,{key:"stepper-actions","onClick:prev":o,"onClick:next":a},n))]})}),{prev:o,next:a}}}),MPe=ie({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Uc(),...k_()},"VSwitch"),DPe=Ce()({name:"VSwitch",inheritAttrs:!1,props:MPe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"indeterminate"),o=ot(e,"modelValue"),{loaderClasses:i}=ew(e),{isFocused:l,focus:s,blur:u}=Gc(e),c=f.ref(),d=f.ref(),h=sP&&window.matchMedia("(forced-colors: active)").matches,v=f.toRef(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),p=f.useId(),m=f.toRef(()=>e.id||`switch-${p}`);function g(){a.value&&(a.value=!1)}function y(b){b.stopPropagation(),b.preventDefault(),c.value?.input?.click()}return ke(()=>{const[b,w]=Su(n),S=to.filterProps(e),_=df.filterProps(e);return f.createVNode(to,f.mergeProps({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},i.value,e.class]},b,S,{modelValue:o.value,"onUpdate:modelValue":x=>o.value=x,id:m.value,focused:l.value,style:e.style}),{...r,default:x=>{let{id:T,messagesId:A,isDisabled:E,isReadonly:I,isValid:M}=x;const N={model:o,isValid:M};return f.createVNode(df,f.mergeProps({ref:c},_,{modelValue:o.value,"onUpdate:modelValue":[D=>o.value=D,g],id:T.value,"aria-describedby":A.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:E.value,readonly:I.value,onFocus:s,onBlur:u},w),{...r,default:D=>{let{backgroundColorClasses:P,backgroundColorStyles:O}=D;return f.createElementVNode("div",{class:f.normalizeClass(["v-switch__track",h?void 0:P.value]),style:f.normalizeStyle(O.value),onClick:y},[r["track-true"]&&f.createElementVNode("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](N)]),r["track-false"]&&f.createElementVNode("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](N)])])},input:D=>{let{inputNode:P,icon:O,backgroundColorClasses:L,backgroundColorStyles:R}=D;return f.createElementVNode(f.Fragment,null,[P,f.createElementVNode("div",{class:f.normalizeClass(["v-switch__thumb",{"v-switch__thumb--filled":O||e.loading},e.inset||h?void 0:L.value]),style:f.normalizeStyle(e.inset?void 0:R.value)},[r.thumb?f.createVNode(Ht,{defaults:{VIcon:{icon:O,size:"x-small"}}},{default:()=>[r.thumb({...N,icon:O})]}):f.createVNode(NP,null,{default:()=>[e.loading?f.createVNode(tw,{name:"v-switch",active:!0,color:M.value===!1?void 0:v.value},{default:B=>r.loader?r.loader(B):f.createVNode(cf,{active:B.isActive,color:B.color,indeterminate:!0,size:"16",width:"2"},null)}):O&&f.createVNode(St,{key:String(O),icon:O,size:"x-small"},null)]})])])}})}})}),pa({},d)}}),VPe=ie({color:String,height:[Number,String],window:Boolean,...at(),...jr(),...gv(),...qn(),...Ft(),...pn()},"VSystemBar"),PPe=Ce()({name:"VSystemBar",props:VPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{elevationClasses:i}=va(e),{roundedClasses:l}=ur(e),{ssrBootStyles:s}=Sv(),u=f.computed(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=yv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.shallowRef("top"),layoutSize:u,elementSize:u,active:f.computed(()=>!0),absolute:f.toRef(()=>e.absolute)});return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,i.value,l.value,e.class]),style:f.normalizeStyle([o.value,c.value,s.value,e.style])},n)),{}}}),wL=Symbol.for("vuetify:v-tabs"),LZ=ie({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...Kt(T_({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),SL=Ce()({name:"VTab",props:LZ(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:o}=za(()=>e.sliderColor),{backgroundColorClasses:i,backgroundColorStyles:l}=Ln(()=>e.sliderColor),s=f.ref(),u=f.ref(),c=f.computed(()=>e.direction==="horizontal"),d=f.computed(()=>s.value?.group?.isSelected.value??!1);function h(g,y){return{opacity:[0,1]}}function v(g,y){return e.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function p(g,y){const b=y.getBoundingClientRect(),w=g.getBoundingClientRect(),S=c.value?"x":"y",_=c.value?"X":"Y",x=c.value?"right":"bottom",T=c.value?"width":"height",A=b[S],E=w[S],I=A>E?b[x]-w[x]:b[S]-w[S],M=Math.sign(I)>0?c.value?"right":"bottom":Math.sign(I)<0?c.value?"left":"top":"center",D=(Math.abs(I)+(Math.sign(I)<0?b[T]:w[T]))/Math.max(b[T],w[T])||0,P=b[T]/w[T]||0,O=1.5;return{transform:[`translate${_}(${I}px) scale${_}(${P})`,`translate${_}(${I/O}px) scale${_}(${(D-1)/O+1})`,"none"],transformOrigin:Array(3).fill(M)}}function m(g){let{value:y}=g;if(y){const b=s.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),w=u.value;if(!b||!w)return;const S=getComputedStyle(b).backgroundColor,_={fade:h,grow:v,shift:p}[e.sliderTransition??"shift"]??p,x=Number(e.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[e.sliderTransition??"shift"]??225);Oc(w,{backgroundColor:[S,S],..._(w,b)},{duration:x,easing:Z1})}}return ke(()=>{const g=xt.filterProps(e);return f.createVNode(xt,f.mergeProps({symbol:wL,ref:s,class:["v-tab",e.class,d.value&&e.inset?i.value:[]],style:[e.style,d.value&&e.inset?l.value:[],{backgroundColor:d.value&&e.inset?"transparent !important":void 0}],tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},g,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":m}),{...n,default:()=>f.createElementVNode(f.Fragment,null,[n.default?.()??e.text,!e.hideSlider&&f.createElementVNode("div",{ref:u,class:f.normalizeClass(["v-tab__slider",e.inset?i.value:a.value]),style:f.normalizeStyle([o.value,e.inset?l.value:a.value])},null)])})}),pa({},s)}}),NPe=ie({...Kt(z_(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),OZ=Ce()({name:"VTabsWindow",props:NPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(wL,null),a=ot(e,"modelValue"),o=f.computed({get(){return a.value!=null||!r?a.value:r.items.value.find(i=>r.selected.value.includes(i.id))?.value},set(i){a.value=i}});return ke(()=>{const i=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({_as:"VTabsWindow"},i,{modelValue:o.value,"onUpdate:modelValue":l=>o.value=l,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),LPe=ie({...W_()},"VTabsWindowItem"),RZ=Ce()({name:"VTabsWindowItem",props:LPe(),setup(e,t){let{slots:n}=t;return ke(()=>{const r=bf.filterProps(e);return f.createVNode(bf,f.mergeProps({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function OPe(e){return e?e.map(t=>fv(t)?t:{text:t,value:t}):[]}const RPe=ie({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...fi(LZ(),["spaced","sliderTransition","sliderTransitionDuration"]),...tN({mandatory:"force",selectedClass:"v-tab-item--selected"}),..._r(),...Ft()},"VTabs"),nT=Ce()({name:"VTabs",props:RPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.computed(()=>OPe(e.items)),{densityClasses:i}=$a(e),{backgroundColorClasses:l,backgroundColorStyles:s}=Ln(()=>e.bgColor),{scopeId:u}=Ev();return Cr({VTab:{color:f.toRef(e,"color"),direction:f.toRef(e,"direction"),stacked:f.toRef(e,"stacked"),fixed:f.toRef(e,"fixedTabs"),inset:f.toRef(e,"inset"),sliderColor:f.toRef(e,"sliderColor"),sliderTransition:f.toRef(e,"sliderTransition"),sliderTransitionDuration:f.toRef(e,"sliderTransitionDuration"),hideSlider:f.toRef(e,"hideSlider")}}),ke(()=>{const c=uw.filterProps(e),d=!!(r.window||e.items.length>0);return f.createElementVNode(f.Fragment,null,[f.createVNode(uw,f.mergeProps(c,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--inset":e.inset,"v-tabs--stacked":e.stacked},i.value,l.value,e.class],style:[{"--v-tabs-height":Re(e.height),"--v-tabs-inset-padding":e.inset?Re(e.insetPadding):void 0,"--v-tabs-inset-radius":e.inset?Re(e.insetRadius):void 0},s.value,e.style],role:"tablist",symbol:wL},u,n),{default:r.default??(()=>o.value.map(h=>r.tab?.({item:h})??f.createVNode(SL,f.mergeProps(h,{key:h.text,value:h.value,spaced:e.spaced}),{default:r[`tab.${h.value}`]?()=>r[`tab.${h.value}`]?.({item:h}):void 0}))),prev:r.prev,next:r.next}),d&&f.createVNode(OZ,f.mergeProps({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,key:"tabs-window"},u),{default:()=>[o.value.map(h=>r.item?.({item:h})??f.createVNode(RZ,{value:h.value},{default:()=>r[`item.${h.value}`]?.({item:h})})),r.window?.()]})])}),{}}}),BPe=ie({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...lK(),...Kt(Uc(),["direction"]),...vw()},"VTextarea"),BZ=Ce()({name:"VTextarea",directives:{vIntersect:dl},inheritAttrs:!1,props:BPe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const o=ot(e,"modelValue"),{isFocused:i,focus:l,blur:s}=Gc(e),{onIntersect:u}=sK(e),c=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value||"").toString().length),d=f.computed(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=f.ref(),v=f.ref(),p=f.shallowRef(""),m=f.ref(),g=f.ref(0),{platform:y}=pl(),b=wN(e),w=f.computed(()=>e.persistentPlaceholder||i.value||e.active);function S(){b.isSuppressing.value&&b.update(),m.value!==document.activeElement&&m.value?.focus(),i.value||l()}function _(P){S(),r("click:control",P)}function x(P){r("mousedown:control",P)}function T(P){P.stopPropagation(),S(),f.nextTick(()=>{o.value="",Y1(e["onClick:clear"],P)})}function A(P){const O=P.target;if(!e.modelModifiers?.trim){o.value=O.value;return}const L=O.value,R=O.selectionStart,B=O.selectionEnd;o.value=L,f.nextTick(()=>{let W=0;L.trimStart().length===O.value.length&&(W=L.length-O.value.length),R!=null&&(O.selectionStart=R-W),B!=null&&(O.selectionEnd=B-W)})}const E=f.ref(),I=f.ref(Number(e.rows)),M=f.computed(()=>["plain","underlined"].includes(e.variant));f.watchEffect(()=>{e.autoGrow||(I.value=Number(e.rows))});function N(){f.nextTick(()=>{if(!m.value)return;if(y.value.firefox){g.value=12;return}const{offsetWidth:P,clientWidth:O}=m.value;g.value=Math.max(0,P-O)}),e.autoGrow&&f.nextTick(()=>{if(!E.value||!v.value)return;const P=getComputedStyle(E.value),O=getComputedStyle(v.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),R=E.value.scrollHeight,B=parseFloat(P.lineHeight),W=Math.max(parseFloat(e.rows)*B+L,parseFloat(O.getPropertyValue("--v-input-control-height"))),H=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*B+L||1/0,z=Fn(R??0,W,H);I.value=Math.floor((z-L)/B),p.value=Re(z)})}f.onMounted(N),f.watch(o,N),f.watch(()=>e.rows,N),f.watch(()=>e.maxHeight,N),f.watch(()=>e.maxRows,N),f.watch(()=>e.density,N),f.watch(I,P=>{r("update:rows",P)});let D;return f.watch(E,P=>{P?(D=new ResizeObserver(N),D.observe(E.value)):D?.disconnect()}),f.onBeforeUnmount(()=>{D?.disconnect()}),ke(()=>{const P=!!(a.counter||e.counter||e.counterValue),O=!!(P||a.details),[L,R]=Su(n),{modelValue:B,...W}=to.filterProps(e),H={...ff.filterProps(e),"onClick:clear":T};return f.createVNode(to,f.mergeProps({ref:h,modelValue:o.value,"onUpdate:modelValue":z=>o.value=z,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":M.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?Re(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":Re(g.value)},e.style]},L,W,{centerAffix:I.value===1&&!M.value,focused:i.value}),{...a,default:z=>{let{id:j,isDisabled:U,isDirty:Y,isReadonly:Z,isValid:te,hasDetails:$}=z;return f.createVNode(ff,f.mergeProps({ref:v,style:{"--v-textarea-control-height":p.value},onClick:_,onMousedown:x,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},H,{id:j.value,active:w.value||Y.value,labelId:`${j.value}-label`,centerAffix:I.value===1&&!M.value,dirty:Y.value||e.dirty,disabled:U.value,focused:i.value,details:$.value,error:te.value===!1}),{...a,default:ae=>{let{props:{class:de,...me},controlRef:fe}=ae;return f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{class:"v-text-field__prefix"},[e.prefix]),f.withDirectives(f.createElementVNode("textarea",f.mergeProps({ref:Ee=>m.value=fe.value=Ee,class:de,value:o.value,onInput:A,autofocus:e.autofocus,readonly:Z.value,disabled:U.value,placeholder:e.placeholder,rows:e.rows,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,onFocus:S,onBlur:s,"aria-labelledby":`${j.value}-label`},me,R),null),[[dl,{handler:u},null,{once:!0}]]),e.autoGrow&&f.withDirectives(f.createElementVNode("textarea",{class:f.normalizeClass([de,"v-textarea__sizer"]),id:`${me.id}-sizer`,"onUpdate:modelValue":Ee=>o.value=Ee,ref:E,readonly:!0,"aria-hidden":"true"},null),[[f.vModelText,o.value]]),e.suffix&&f.createElementVNode("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:O?z=>f.createElementVNode(f.Fragment,null,[a.details?.(z),P&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(M_,{active:e.persistentCounter||i.value,value:c.value,max:d.value,disabled:e.disabled},a.counter)])]):void 0})}),pa({},h,v,m)}}),FPe=ie({withBackground:Boolean,...at(),...pn(),...Ft()},"VThemeProvider"),xL=Ce()({name:"VThemeProvider",props:FPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e);return()=>e.withBackground?f.createVNode(e.tag,{class:f.normalizeClass(["v-theme-provider",r.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.()]}):n.default?.()}}),HPe=ie({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:ut,iconColor:String,lineColor:String,...at(),...qn(),...Tu(),...jr()},"VTimelineDivider"),zPe=Ce()({name:"VTimelineDivider",props:HPe(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=Hg(e,"v-timeline-divider__dot"),{backgroundColorStyles:o,backgroundColorClasses:i}=Ln(()=>e.dotColor),{roundedClasses:l}=ur(e,"v-timeline-divider__dot"),{elevationClasses:s}=va(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Ln(()=>e.lineColor);return ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class]),style:f.normalizeStyle(e.style)},[f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__before",u.value]),style:f.normalizeStyle(c.value)},null),!e.hideDot&&f.createElementVNode("div",{key:"dot",class:f.normalizeClass(["v-timeline-divider__dot",s.value,l.value,r.value]),style:f.normalizeStyle(a.value)},[f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__inner-dot",i.value,l.value]),style:f.normalizeStyle(o.value)},[n.default?f.createVNode(Ht,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):f.createVNode(St,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__after",u.value]),style:f.normalizeStyle(c.value)},null)])),{}}}),FZ=ie({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:ut,iconColor:String,lineInset:[Number,String],side:{type:String,validator:e=>e==null||["start","end"].includes(e)},...at(),...Ur(),...jr(),...qn(),...Tu(),...Ft()},"VTimelineItem"),WPe=Ce()({name:"VTimelineItem",props:FZ(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=Yr(e),a=f.shallowRef(0),o=f.ref();return f.watch(o,i=>{i&&(a.value=i.$el.querySelector(".v-timeline-divider__dot")?.getBoundingClientRect().width??0)},{flush:"post"}),ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot,"v-timeline-item--side-start":e.side==="start","v-timeline-item--side-end":e.side==="end"},e.class]),style:f.normalizeStyle([{"--v-timeline-dot-size":Re(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${Re(e.lineInset)})`:Re(0)},e.style])},[f.createElementVNode("div",{class:"v-timeline-item__body",style:f.normalizeStyle(r.value)},[n.default?.()]),f.createVNode(zPe,{ref:o,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&f.createElementVNode("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&n.opposite?.()])])),{}}}),GPe=ie({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...fi(FZ({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...at(),..._r(),...Ft(),...pn()},"VTimeline"),UPe=Ce()({name:"VTimeline",props:GPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{densityClasses:a}=$a(e),{rtlClasses:o}=ea();Cr({VTimelineDivider:{lineColor:f.toRef(()=>e.lineColor)},VTimelineItem:{density:f.toRef(()=>e.density),dotColor:f.toRef(()=>e.dotColor),fillDot:f.toRef(()=>e.fillDot),hideOpposite:f.toRef(()=>e.hideOpposite),iconColor:f.toRef(()=>e.iconColor),lineColor:f.toRef(()=>e.lineColor),lineInset:f.toRef(()=>e.lineInset),size:f.toRef(()=>e.size)}});const i=f.computed(()=>{const s=e.side?e.side:e.density!=="default"?"end":null;return s&&`v-timeline--side-${s}`}),l=f.computed(()=>{const s=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return s;case"start":return s[0];case"end":return s[1];default:return null}});return ke(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,l.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,i.value,o.value,e.class]),style:f.normalizeStyle([{"--v-timeline-line-thickness":Re(e.lineThickness)},e.style])},n)),{}}}),YPe=ie({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),CL=Ce()({name:"VTimePickerClock",props:YPe(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const r=f.ref(null),a=f.ref(null),o=f.ref(void 0),i=f.ref(!1),l=f.ref(null),s=f.ref(null),u=U9(H=>n("change",H),750),{textColorClasses:c,textColorStyles:d}=za(()=>e.color),{backgroundColorClasses:h,backgroundColorStyles:v}=Ln(()=>e.color),p=f.computed(()=>e.max-e.min+1),m=f.computed(()=>e.double?p.value/2:p.value),g=f.computed(()=>360/m.value),y=f.computed(()=>g.value*Math.PI/180),b=f.computed(()=>e.modelValue==null?e.min:e.modelValue),w=f.computed(()=>.62),S=f.computed(()=>{const H=[];for(let z=e.min;z<=e.max;z=z+e.step)H.push(z);return H});f.watch(()=>e.modelValue,H=>{o.value=H});function _(H){o.value!==H&&(o.value=H),n("input",H)}function x(H){return!e.allowedValues||e.allowedValues(H)}function T(H){if(!e.scrollable||e.disabled)return;H.preventDefault();const z=Math.sign(-H.deltaY||1);let j=b.value;do j=j+z,j=(j-e.min+p.value)%p.value+e.min;while(!x(j)&&j!==b.value);j!==e.displayedValue&&_(j),u(j)}function A(H){return e.double&&H-e.min>=m.value}function E(H){return A(H)?w.value:1}function I(H){const z=e.rotate*Math.PI/180;return{x:Math.sin((H-e.min)*y.value+z)*E(H),y:-Math.cos((H-e.min)*y.value+z)*E(H)}}function M(H,z){const j=(Math.round(H/g.value)+(z?m.value:0))%p.value+e.min;return H<360-g.value/2?j:z?e.max-m.value+1:e.min}function N(H){const{x:z,y:j}=I(H);return{left:`${Math.round(50+z*50)}%`,top:`${Math.round(50+j*50)}%`}}function D(H,z){const j=z.x-H.x,U=z.y-H.y;return Math.sqrt(j*j+U*U)}function P(H,z){const j=2*Math.atan2(z.y-H.y-D(H,z),z.x-H.x);return Math.abs(j*180/Math.PI)}function O(H){l.value===null&&(l.value=H),s.value=H,_(H)}function L(H){if(H.preventDefault(),!i.value&&H.type!=="click"||!r.value)return;const{width:z,top:j,left:U}=r.value?.getBoundingClientRect(),{width:Y}=a.value?.getBoundingClientRect()??{width:0},{clientX:Z,clientY:te}="touches"in H?H.touches[0]:H,$={x:z/2,y:-z/2},ae={x:Z-U,y:j-te},de=Math.round(P($,ae)-e.rotate+360)%360,me=e.double&&D($,ae)<(Y+Y*w.value)/4,fe=Math.ceil(15/g.value);let Ee;for(let De=0;Def.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:R,onTouchstart:R,onWheel:T,ref:r},[f.createElementVNode("div",{class:"v-time-picker-clock__inner",ref:a},[f.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":A(e.modelValue)},c.value]),style:f.normalizeStyle([{transform:`rotate(${e.rotate+g.value*(b.value-e.min)}deg) scaleY(${E(b.value)})`},d.value])},null),S.value.map(H=>{const z=H===b.value;return f.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":z,"v-time-picker-clock__item--disabled":e.disabled||!x(H)},z&&h.value]),style:f.normalizeStyle([N(H),z&&v.value])},[f.createElementVNode("span",null,[e.format(H)])])})])]))}}),jPe=ie({active:Boolean,color:String,disabled:Boolean,label:String,modelValue:String,error:String,showHint:Boolean,readonly:Boolean},"VTimePickerField"),_L=Ce()({name:"VTimePickerField",props:jPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n}=t;const{textColorClasses:r,textColorStyles:a}=za(()=>e.color),o=f.ref(),i=f.shallowRef(!1);function l(s){if(["Backspace","Delete"].includes(s.key)){s.preventDefault();const u=s.target;u.value="",n("update:modelValue",null)}}return ke(()=>f.createVNode(ta,{ref:o,_as:"VTimePickerField",autocomplete:"off",class:f.normalizeClass(["v-time-picker-controls__time__field",{"v-time-picker-controls__time__field--active":e.active},e.active?r.value:[]]),style:f.normalizeStyle(e.active?a.value:[]),disabled:e.disabled,variant:"solo-filled",inputmode:"numeric",hideDetails:"auto","aria-label":e.label,"aria-invalid":!!e.error,"aria-errormessage":e.error,error:!!e.error,hint:e.showHint?e.label:void 0,persistentHint:!0,flat:!0,modelValue:e.modelValue??(i.value?"":"--"),"onUpdate:modelValue":s=>n("update:modelValue",s),onKeydown:l,onFocus:()=>i.value=!0,onBlur:()=>i.value=!1},null)),pa({},o)}});function Yl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}function HZ(e){return e?(e-1)%12+1:12}function Aw(e,t){return e%12+(t==="pm"?12:0)}function Ew(e){const t=e.replaceAll(/\D/g,"");return t.length>0?Number(t):null}function KPe(e,t,n){{if(e===23&&t)return{value:0};if(e===0&&!t)return{value:23}}return{value:e+(t?1:-1)}}function XPe(e,t){return e===59&&t?0:e===0&&!t?59:e+(t?1:-1)}const zZ=ie({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],max:String,min:String},"time-validation");function WZ(e){const t=f.computed(()=>{const o=e.min?Number(e.min.split(":")[0]):0,i=e.max?Number(e.max.split(":")[0]):23;return l=>li?!1:Array.isArray(e.allowedHours)?e.allowedHours.includes(l):typeof e.allowedHours=="function"?e.allowedHours(l):!0}),n=f.computed(()=>{const[o,i]=e.min?e.min.split(":").map(Number):[0,0],[l,s]=e.max?e.max.split(":").map(Number):[23,59],u=o*60+i,c=l*60+s;return(d,h)=>{if(d!==null){const v=60*d+h;if(vc)return!1}return Array.isArray(e.allowedMinutes)?e.allowedMinutes.includes(h):typeof e.allowedMinutes=="function"?e.allowedMinutes(h):!0}}),r=f.computed(()=>{const[o,i,l]=e.min?e.min.split(":").map(Number):[0,0,0],[s,u,c]=e.max?e.max.split(":").map(Number):[23,59,59],d=o*3600+i*60+(l||0),h=s*3600+u*60+(c||0);return(v,p,m)=>{if(v!==null&&p!==null){const g=3600*v+60*p+m;if(gh)return!1}return Array.isArray(e.allowedSeconds)?e.allowedSeconds.includes(m):typeof e.allowedSeconds=="function"?e.allowedSeconds(m):!0}});function a(o,i,l){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const c=o==="hour"?t.value:o==="minute"?v=>n.value(s,v):v=>r.value(s,u,v),d=o==="hour"?v=>KPe(v,l).value:v=>XPe(v,l),h=o==="hour"?24:60;for(let v=1;v<=h&&(i=d(i),!c(i));v++);return i}return{isAllowedHour:t,isAllowedMinute:n,isAllowedSecond:r,findNextAllowed:a}}const ZPe=ie({ampm:Boolean,color:String,disabled:Boolean,inputHints:Boolean,hour:[Number,String],minute:[Number,String],second:[Number,String],period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String,...zZ()},"VTimePickerControls"),TL=Ce()({name:"VTimePickerControls",props:ZPe(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0,"update:hour":e=>!0,"update:minute":e=>!0,"update:second":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),{isAllowedHour:a,isAllowedMinute:o,isAllowedSecond:i,findNextAllowed:l}=WZ(e),s=f.computed(()=>e.hour!==null?e.ampm?Aw(Number(e.hour),e.period??"am"):Number(e.hour):null),u=f.computed(()=>e.minute!==null?Number(e.minute):null),c=f.computed(()=>e.hour===null?!0:a.value?.(Number(s.value))??!0),d=f.computed(()=>e.minute===null?!0:o.value?.(s.value,Number(e.minute))??!0),h=f.computed(()=>e.second===null?!0:i.value?.(s.value,u.value,Number(e.second))??!0),v={in:D=>{if(D==null||isNaN(Number(D)))return null;const P=Number(D);return e.ampm?Yl(HZ(P)):Yl(P)},out:D=>{if(isNaN(Number(D))||D==null||D==="")return null;const P=typeof D=="string"?Ew(D):Number(D);return P===null?null:e.ampm?Aw(P,e.period??"am"):Fn(P,0,23)}},p=ot(e,"hour",void 0,v.in,v.out),m={in:D=>D!=null&&!isNaN(Number(D))?Yl(`${D}`):null,out:D=>{if(isNaN(Number(D))||D==null||D==="")return null;const P=typeof D=="string"?Ew(D):Number(D);return P!==null?Fn(P,0,59):null}},g=ot(e,"minute",void 0,m.in,m.out),y=ot(e,"second",void 0,m.in,m.out);function b(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=e.period==="am",O=e.ampm?Aw(Number(p.value??0),P?"am":"pm"):Number(p.value??0),L=l("hour",O,D.key==="ArrowUp"),R=P&&L>=12||!P&&L<12;e.ampm&&R?(n("update:period",e.period==="am"?"pm":"am"),f.nextTick(()=>p.value=Yl(L))):p.value=Yl(L)}function w(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=Number(g.value??0),O=l("minute",P,D.key==="ArrowUp",s.value);g.value=Yl(O)}function S(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=Number(y.value??0),O=l("second",P,D.key==="ArrowUp",s.value,u.value);y.value=Yl(O)}function _(D,P,O){return L=>{if(!L.data)return;const R=L.target,{value:B,selectionStart:W,selectionEnd:H}=R??{};if(Ew(L.data)===null){L.preventDefault();return}const z=B?B.slice(0,W)+L.data+B.slice(H):L.data;if(z.length>2){if(W===H&&H===0&&L.data.trim().startsWith("0")){L.preventDefault(),R.value=z.trim().substring(0,2),O(R.value),L.data.trim().length===1&&R.setSelectionRange(1,1);return}if(W===H&&H===1&&B.startsWith("0")){L.preventDefault(),R.value=z.trim().substring(0,2),O(R.value);return}const U=e.viewMode==="hour"?e.ampm?12:23:59;if(Ew(z)>U){L.preventDefault(),R.value=Yl(String(Ew(L.data)).substring(0,2)),O(R.value);return}}const j=D(z);P(j)&&L.preventDefault()}}function x(D){n("update:period",D)}const T=f.ref(),A=f.ref(),E=f.ref();f.watch(()=>e.viewMode,(D,P)=>{switch(P){case"hour":T.value.blur();break;case"minute":A.value.blur();break;case"second":E.value.blur();break}});const I=_(v.out,D=>v.in(D)===p.value,D=>p.value=D),M=_(m.out,D=>m.in(D)===g.value,D=>g.value=D),N=_(m.out,D=>m.in(D)===y.value,D=>y.value=D);return ke(()=>f.createElementVNode("div",{class:"v-time-picker-controls"},[f.createElementVNode("div",{class:f.normalizeClass({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-ampm":e.ampm,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[f.createVNode(_L,{ref:T,active:e.viewMode==="hour",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.hour"),showHint:e.inputHints,error:c.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:p.value,"onUpdate:modelValue":D=>p.value=D,onKeydown:b,onBeforeinput:I,onFocus:()=>n("update:viewMode","hour")},null),f.createElementVNode("span",{class:"v-time-picker-controls__time__separator"},[f.createTextVNode(":")]),f.createVNode(_L,{ref:A,active:e.viewMode==="minute",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.minute"),showHint:e.inputHints,error:d.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:g.value,"onUpdate:modelValue":D=>g.value=D,onKeydown:w,onBeforeinput:M,onFocus:()=>n("update:viewMode","minute")},null),e.useSeconds&&f.createElementVNode("span",{key:"secondsDivider",class:"v-time-picker-controls__time__separator"},[f.createTextVNode(":")]),e.useSeconds&&f.createElementVNode(f.Fragment,null,[f.createVNode(_L,{key:"secondsVal",ref:E,active:e.viewMode==="second",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.second"),showHint:e.inputHints,error:h.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:y.value,"onUpdate:modelValue":D=>y.value=D,onKeydown:S,onBeforeinput:N,onFocus:()=>n("update:viewMode","second")},null)]),e.ampm&&f.createElementVNode("div",{class:"v-time-picker-controls__ampm"},[f.createVNode(xt,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:f.normalizeClass({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"}),disabled:e.disabled,text:r("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?x("am"):null},null),f.createVNode(xt,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:f.normalizeClass({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"}),disabled:e.disabled,text:r("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?x("pm"):null},null)])])])),{}}}),JPe=ie({disabled:Boolean,format:{type:String,default:"ampm"},viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,variant:{type:String,default:"dial"},...zZ(),...Kt(G_({title:"$vuetify.timePicker.title"}),["landscape"]),..._r()},"VTimePicker"),QPe=Ce()({name:"VTimePicker",props:JPe(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),{densityClasses:o}=$a(e),i=f.ref(null),l=f.ref(null),s=f.ref(null),u=f.ref(null),c=f.ref(null),d=f.ref(null),h=ot(e,"period","am"),v=ot(e,"viewMode","hour"),p=f.ref(null),m=f.ref(null),g=f.computed(()=>e.format==="ampm"),{isAllowedHour:y,isAllowedMinute:b,isAllowedSecond:w}=WZ(e),S=f.toRef(()=>e.modelValue!==null&&i.value===null&&l.value===null&&(!e.useSeconds||s.value===null));function _(){const I=x();I!==null&&I!==e.modelValue&&n("update:modelValue",I),S.value&&n("update:modelValue",null)}f.watch(i,_),f.watch(l,_),f.watch(s,_),f.watch(h,(I,M)=>{i.value==null||I===M||(I==="pm"&&i.value<12?i.value=i.value+12:I==="am"&&i.value>=12&&(i.value=i.value-12))}),f.watch(()=>e.modelValue,I=>T(I)),f.watch(()=>e.useSeconds,(I,M)=>{M&&!I&&v.value==="second"&&(v.value="minute"),!I&&s.value!==null&&(s.value=null)}),f.onMounted(()=>{T(e.modelValue)});function x(){return i.value!=null&&l.value!=null&&(!e.useSeconds||s.value!=null)?`${Yl(i.value)}:${Yl(l.value)}`+(e.useSeconds?`:${Yl(s.value)}`:""):null}function T(I){if(I==null||I==="")i.value=null,l.value=null,s.value=null;else if(I instanceof Date)i.value=I.getHours(),l.value=I.getMinutes(),s.value=I.getSeconds();else{const[M,,N,,D,P]=I.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);i.value=P?Aw(parseInt(M,10),P):parseInt(M,10),l.value=parseInt(N,10),s.value=parseInt(D||0,10)}h.value=i.value==null||i.value<12?"am":"pm"}function A(I){v.value==="hour"?i.value=g.value?Aw(I,h.value):I:v.value==="minute"?l.value=I:s.value=I}function E(I){switch(v.value||"hour"){case"hour":n("update:hour",I);break;case"minute":n("update:minute",I);break;case"second":n("update:second",I);break}const M=i.value!==null&&l.value!==null&&(e.useSeconds?s.value!==null:!0);v.value==="hour"?v.value="minute":e.useSeconds&&v.value==="minute"&&(v.value="second"),!(i.value===u.value&&l.value===c.value&&(!e.useSeconds||s.value===d.value)||x()===null)&&(u.value=i.value,c.value=l.value,e.useSeconds&&(d.value=s.value),M&&_())}ke(()=>{const I=Kt(Qg.filterProps(e),["hideHeader"]),M=TL.filterProps(e),N=CL.filterProps(Kt(e,["format","modelValue","min","max"])),D=v.value==="hour"?y.value:v.value==="minute"?P=>b.value(i.value,P):P=>w.value(i.value,l.value,P);return f.createVNode(Qg,f.mergeProps(I,{color:void 0,class:["v-time-picker",`v-time-picker--variant-${e.variant}`,e.class,o.value],hideHeader:e.hideHeader&&e.variant!=="input",style:e.style}),{title:()=>r.title?.()??f.createElementVNode("div",{class:"v-time-picker__title"},[a(e.title)]),header:()=>f.createVNode(TL,f.mergeProps(M,{ampm:g.value,hour:i.value,minute:l.value,period:h.value,second:s.value,viewMode:v.value,inputHints:e.variant==="input","onUpdate:hour":P=>i.value=P,"onUpdate:minute":P=>l.value=P,"onUpdate:second":P=>s.value=P,"onUpdate:period":P=>h.value=P,"onUpdate:viewMode":P=>v.value=P,ref:p}),null),default:()=>f.createVNode(CL,f.mergeProps(N,{allowedValues:D,double:v.value==="hour"&&!g.value,format:v.value==="hour"?g.value?HZ:P=>P:P=>Yl(P,2),max:v.value==="hour"?g.value&&h.value==="am"?11:23:59,min:v.value==="hour"&&g.value&&h.value==="pm"?12:0,size:20,step:v.value==="hour"?1:5,modelValue:v.value==="hour"?i.value:v.value==="minute"?l.value:s.value,onChange:E,onInput:A,ref:m}),null),actions:r.actions})})}}),qPe=ie({...at(),...fl({variant:"text"})},"VToolbarItems"),$Pe=Ce()({name:"VToolbarItems",props:qPe(),setup(e,t){let{slots:n}=t;return Cr({VBtn:{color:f.toRef(()=>e.color),height:"inherit",variant:f.toRef(()=>e.variant)}}),ke(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-toolbar-items",e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),eNe=ie({id:String,interactive:Boolean,text:String,...Kt(fw({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),Hv=Ce()({name:"VTooltip",props:eNe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{scopeId:a}=Ev(),o=f.useId(),i=f.toRef(()=>e.id||`v-tooltip-${o}`),l=f.ref(),s=f.computed(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=f.computed(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=f.toRef(()=>e.transition!=null?e.transition:r.value?"scale-transition":"fade-transition"),d=f.computed(()=>f.mergeProps({"aria-describedby":i.value},e.activatorProps));return ke(()=>{const h=Ri.filterProps(e);return f.createVNode(Ri,f.mergeProps({ref:l,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:i.value},h,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:s.value,origin:u.value,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){for(var v=arguments.length,p=new Array(v),m=0;mr.value?.isOpen?e.collapseIcon:e.expandIcon),o=f.computed(()=>({VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,toggleIcon:a.value}}));return ke(()=>{const i=cw.filterProps(e);return f.createVNode(cw,f.mergeProps(i,{ref:r,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?l=>f.createElementVNode(f.Fragment,null,[f.createVNode(Ht,{defaults:o.value},{default:()=>[n.activator?.(l)]})]):void 0})}),{}}}),GZ=Symbol.for("vuetify:v-treeview"),UZ=ie({loading:Boolean,hideActions:Boolean,hasCustomPrepend:Boolean,indentLines:Array,toggleIcon:ut,...Rj({slim:!0})},"VTreeviewItem"),AL=Ce()({name:"VTreeviewItem",props:UZ(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.inject(GZ,{visibleIds:f.ref()}).visibleIds,o=f.ref(),i=f.computed(()=>o.value?.root.activatable.value&&o.value?.isGroupActivator),l=f.computed(()=>o.value?.link.isClickable.value||e.value!=null&&!!o.value?.list),s=f.computed(()=>!e.disabled&&e.link!==!1&&(e.link||l.value||i.value)),u=f.computed(()=>a.value&&!a.value.has(f.toRaw(o.value?.id)));function c(h){s.value&&i.value&&o.value?.activate(!o.value?.isActivated,h)}function d(h){h.preventDefault(),h.stopPropagation(),r("toggleExpand",h)}return ke(()=>{const h=Vr.filterProps(e),v=n.prepend||e.toggleIcon||e.indentLines||e.prependIcon||e.prependAvatar;return f.createVNode(Vr,f.mergeProps({ref:o},h,{active:o.value?.isActivated||void 0,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":i.value,"v-treeview-item--filtered":u.value},e.class],role:"treeitem",ripple:!1,onClick:c}),{...n,prepend:v?p=>f.createElementVNode(f.Fragment,null,[e.indentLines&&e.indentLines.length>0?f.createElementVNode("div",{key:"indent-lines",class:"v-treeview-indent-lines",style:{"--v-indent-parts":e.indentLines.length}},[e.indentLines.map(m=>f.createElementVNode("div",{class:f.normalizeClass(`v-treeview-indent-line v-treeview-indent-line--${m}`)},null))]):"",!e.hideActions&&f.createVNode(lN,{start:!0},{default:()=>[e.toggleIcon?f.createElementVNode(f.Fragment,null,[n.toggle?f.createVNode(Ht,{key:"prepend-defaults",defaults:{VBtn:{density:"compact",icon:e.toggleIcon,variant:"text",loading:e.loading},VProgressCircular:{indeterminate:"disable-shrink",size:20,width:2}}},{default:()=>[n.toggle({...p,loading:e.loading,props:{onClick:d}})]}):f.createVNode(xt,{key:"prepend-toggle",density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:d},{loader:()=>f.createVNode(cf,{indeterminate:"disable-shrink",size:"20",width:"2"},null)})]):f.createElementVNode("div",{class:"v-treeview-item__level"},null)]}),e.hasCustomPrepend?f.createVNode(Ht,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{start:!0}}},{default:()=>[n.prepend?.(p)]}):f.createElementVNode(f.Fragment,null,[n.prepend?.(p),e.prependAvatar&&f.createVNode(vl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(St,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]):void 0})}),pa({},o)}}),YZ=ie({fluid:Boolean,disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:ut,default:"$checkboxIndeterminate"},falseIcon:ut,trueIcon:ut,returnObject:Boolean,activatable:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],index:Number,isLastGroup:Boolean,separateRoots:Boolean,parentIndentLines:Array,indentLinesVariant:String,path:{type:Array,default:()=>[]},...fi(UZ(),["hideActions"]),..._r()},"VTreeviewChildren"),rT=Ce()({name:"VTreeviewChildren",props:YZ(),setup(e,t){let{slots:n}=t;const r=f.reactive(new Set),a=f.ref([]),o=f.computed(()=>!e.disabled&&(e.openOnClick!=null?e.openOnClick:e.selectable&&!e.activatable));async function i(s){try{if(!e.items?.length||!e.loadChildren)return;s?.children?.length===0&&(r.add(s.value),await e.loadChildren(s.raw))}finally{r.delete(s.value)}}function l(s,u){e.selectable&&s(u)}return()=>n.default?.()??e.items?.map((s,u,c)=>{const{children:d,props:h}=s,v=r.has(s.value),p=!!c.at(u+1)?.children,m=e.path?.length??0,g=c.length-1===u,y={index:u,depth:m,isFirst:u===0,isLast:g,path:[...e.path,u],hideAction:e.hideActions},b=PTe({depth:m,isLast:g,isLastGroup:e.isLastGroup,leafLinks:!e.hideActions&&!e.fluid,separateRoots:e.separateRoots,parentIndentLines:e.parentIndentLines,variant:e.indentLinesVariant}),w={toggle:n.toggle?T=>n.toggle?.({...T,...y,item:s.raw,internalItem:s,loading:v}):void 0,prepend:T=>f.createElementVNode(f.Fragment,null,[e.selectable&&(!d||d&&!["leaf","single-leaf"].includes(e.selectStrategy))&&f.createVNode(lN,{start:!0},{default:()=>[f.createVNode(Bs,{key:s.value,modelValue:T.isSelected,disabled:e.disabled||h.disabled,loading:v,color:e.selectedColor,density:e.density,indeterminate:T.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,"onUpdate:modelValue":A=>l(T.select,A),onClick:A=>A.stopPropagation(),onKeydown:A=>{["Enter","Space"].includes(A.key)&&(A.stopPropagation(),l(T.select,T.isSelected))}},null)]}),n.prepend?.({...T,...y,item:s.raw,internalItem:s})]),append:n.append?T=>n.append?.({...T,...y,item:s.raw,internalItem:s}):void 0,title:n.title?T=>n.title?.({...T,item:s.raw,internalItem:s}):void 0,subtitle:n.subtitle?T=>n.subtitle?.({...T,item:s.raw,internalItem:s}):void 0},S=kL.filterProps(h),_=rT.filterProps({...e,...y}),x={hideActions:e.hideActions,indentLines:b.footer};return d?f.createVNode(kL,f.mergeProps(S,{value:e.returnObject?s.raw:S?.value,rawId:S?.value}),{activator:T=>{let{props:A,isOpen:E}=T;const I={...h,...A,value:h?.value,hideActions:e.hideActions,indentLines:b.node,ariaExpanded:E,onToggleExpand:[()=>i(s),A.onClick],onClick:e.disabled||h.disabled?void 0:o.value?[()=>i(s),A.onClick]:()=>l(a.value[u]?.select,!a.value[u]?.isSelected)};return u_(n.header,{props:I,item:s.raw,internalItem:s,loading:v},()=>f.createVNode(AL,f.mergeProps({ref:M=>a.value[u]=M},I,{hasCustomPrepend:!!n.prepend,value:e.returnObject?s.raw:h.value,loading:v}),w))},default:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(rT,f.mergeProps(_,{items:d,indentLinesVariant:e.indentLinesVariant,parentIndentLines:b.children,isLastGroup:p,returnObject:e.returnObject}),n),n.footer?.({props:x,item:s.raw,internalItem:s,loading:v})])}):u_(n.item,{props:h,item:s.raw,internalItem:s},()=>s.type==="divider"?u_(n.divider,{props:s.raw},()=>f.createVNode(Ia,s.props,null)):s.type==="subheader"?u_(n.subheader,{props:s.raw},()=>f.createVNode(Av,s.props,null)):f.createVNode(AL,f.mergeProps(h,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,indentLines:b.leaf,value:e.returnObject?f.toRaw(s.raw):h.value}),w))})}});function jZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(const n of e)t.push(n),n.children&&jZ(n.children,t);return t}const nNe=ie({openAll:Boolean,indentLines:[Boolean,String],indentLinesColor:String,indentLinesOpacity:[String,Number],search:String,hideNoData:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},...Iv({filterKeys:["title"]}),...Kt(YZ(),["index","path","indentLinesVariant","parentIndentLines","isLastGroup"]),...Kt(Gj({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["nav","openStrategy"]),modelValue:Array},"VTreeview"),KZ=Ce()({name:"VTreeview",props:nNe(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const{t:a}=An(),{items:o}=Wj(e),i=f.toRef(()=>e.activeColor),l=f.toRef(()=>e.baseColor),s=f.toRef(()=>e.color),u=ot(e,"activated"),c=ot(e,"selected"),d=f.computed({get:()=>e.modelValue??c.value,set(S){c.value=S,r("update:modelValue",S)}}),h=f.ref(),v=f.computed(()=>e.openAll?w(o.value):e.opened),p=f.computed(()=>jZ(o.value)),m=f.toRef(()=>e.search),{filteredItems:g}=Mv(e,p,m),y=f.computed(()=>{if(!m.value)return null;const S=h.value?.getPath;return S?new Set(g.value.flatMap(_=>{const x=e.returnObject?_.raw:_.props.value;return[...S(x),...b(x)].map(f.toRaw)})):null});function b(S){const _=[],x=(h.value?.children.get(S)??[]).slice();for(;x.length;){const T=x.shift();T&&(_.push(T),x.push(...(h.value?.children.get(T)??[]).slice()))}return _}function w(S){let _=[];for(const x of S)x.children&&(_.push(e.returnObject?f.toRaw(x.raw):x.value),x.children&&(_=_.concat(w(x.children))));return _}return f.provide(GZ,{visibleIds:y}),Cr({VTreeviewGroup:{activeColor:i,baseColor:l,color:s,collapseIcon:f.toRef(()=>e.collapseIcon),expandIcon:f.toRef(()=>e.expandIcon)},VTreeviewItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:i,baseColor:l,color:s,density:f.toRef(()=>e.density),disabled:f.toRef(()=>e.disabled),lines:f.toRef(()=>e.lines),variant:f.toRef(()=>e.variant)}}),ke(()=>{const S=hi.filterProps(e),_=rT.filterProps(e),x=typeof e.indentLines=="boolean"?"default":e.indentLines;return f.createVNode(hi,f.mergeProps({ref:h},S,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],role:"tree",openStrategy:"multiple",style:[{"--v-treeview-indent-line-color":e.indentLinesColor,"--v-treeview-indent-line-opacity":e.indentLinesOpacity},e.style],opened:v.value,activated:u.value,"onUpdate:activated":T=>u.value=T,selected:d.value,"onUpdate:selected":T=>d.value=T}),{default:()=>[y.value?.size===0&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Vr,{key:"no-data",title:a(e.noDataText)},null)),f.createVNode(rT,f.mergeProps(_,{density:e.density,returnObject:e.returnObject,items:o.value,parentIndentLines:e.indentLines?[]:void 0,indentLinesVariant:x}),n)]})}),{}}}),rNe=Ce()({name:"VValidation",props:pj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=mj(e,"validation");return()=>n.default?.(r)}}),aNe=Object.freeze(Object.defineProperty({__proto__:null,VAlert:Qke,VAlertTitle:lj,VApp:qTe,VAppBar:bke,VAppBarNavIcon:Kke,VAppBarTitle:Xke,VAutocomplete:hf,VAvatar:vl,VBadge:fK,VBanner:AEe,VBannerActions:hK,VBannerText:vK,VBottomNavigation:IEe,VBottomSheet:DEe,VBreadcrumbs:yK,VBreadcrumbsDivider:mK,VBreadcrumbsItem:gK,VBtn:xt,VBtnGroup:w_,VBtnToggle:Tke,VCalendar:yMe,VCard:gl,VCardActions:gf,VCardItem:oX,VCardSubtitle:RN,VCardText:Au,VCardTitle:BN,VCarousel:VMe,VCarouselItem:NMe,VCheckbox:_v,VCheckboxBtn:Bs,VChip:ml,VChipGroup:yAe,VClassIcon:UP,VCode:LMe,VCol:aL,VColorPicker:rDe,VCombobox:oDe,VComponentIcon:WP,VConfirmEdit:lDe,VContainer:HX,VCounter:M_,VDataIterator:wDe,VDataTable:NDe,VDataTableFooter:Cw,VDataTableHeaders:Rv,VDataTableRow:tL,VDataTableRows:Bv,VDataTableServer:BDe,VDataTableVirtual:ODe,VDatePicker:$_,VDatePickerControls:sL,VDatePickerHeader:uL,VDatePickerMonth:cL,VDatePickerMonths:dL,VDatePickerYears:fL,VDefaultsProvider:Ht,VDialog:ku,VDialogBottomTransition:nke,VDialogTopTransition:rke,VDialogTransition:y_,VDivider:Ia,VEmptyState:eVe,VExpandBothTransition:dke,VExpandTransition:b_,VExpandXTransition:OP,VExpansionPanel:tVe,VExpansionPanelText:hL,VExpansionPanelTitle:vL,VExpansionPanels:aVe,VFab:iVe,VFabTransition:tke,VFadeTransition:q1,VField:ff,VFieldLabel:hw,VFileInput:uZ,VFooter:hVe,VForm:kw,VHotkey:yVe,VHover:wVe,VIcon:St,VImg:Fc,VInfiniteScroll:xVe,VInput:to,VItem:TVe,VItemGroup:_Ve,VKbd:pL,VLabel:Ug,VLayout:AVe,VLayoutItem:IVe,VLazy:DVe,VLigatureIcon:kke,VList:hi,VListGroup:cw,VListImg:HAe,VListItem:Vr,VListItemAction:lN,VListItemMedia:GAe,VListItemSubtitle:Oj,VListItemTitle:kv,VListSubheader:Av,VLocaleProvider:PVe,VMain:LVe,VMenu:Uo,VMessages:hj,VNavigationDrawer:UVe,VNoSsr:YVe,VNumberInput:yZ,VOtpInput:QVe,VOverlay:Ri,VPagination:qg,VParallax:ePe,VProgressCircular:cf,VProgressLinear:zg,VRadio:nPe,VRadioGroup:aPe,VRangeSlider:iPe,VRating:sPe,VResponsive:RP,VRow:lL,VScaleTransition:NP,VScrollXReverseTransition:oke,VScrollXTransition:ake,VScrollYReverseTransition:lke,VScrollYTransition:ike,VSelect:Kg,VSelectionControl:df,VSelectionControlGroup:dj,VSheet:Yc,VSkeletonLoader:fPe,VSlideGroup:uw,VSlideGroupItem:hPe,VSlideXReverseTransition:uke,VSlideXTransition:ske,VSlideYReverseTransition:cke,VSlideYTransition:LP,VSlider:UN,VSnackbar:yL,VSnackbarQueue:mPe,VSpacer:Ws,VSparkline:wPe,VSpeedDial:xPe,VStepper:IPe,VStepperActions:MZ,VStepperHeader:DZ,VStepperItem:VZ,VStepperWindow:PZ,VStepperWindowItem:NZ,VSvgIcon:GP,VSwitch:DPe,VSystemBar:PPe,VTab:SL,VTable:Fv,VTabs:nT,VTabsWindow:OZ,VTabsWindowItem:RZ,VTextField:ta,VTextarea:BZ,VThemeProvider:xL,VTimePicker:QPe,VTimePickerClock:CL,VTimePickerControls:TL,VTimeline:UPe,VTimelineItem:WPe,VToolbar:Hc,VToolbarItems:$Pe,VToolbarTitle:MP,VTooltip:Hv,VTreeview:KZ,VTreeviewGroup:kL,VTreeviewItem:AL,VValidation:rNe,VVirtualScroll:D_,VWindow:yf,VWindowItem:bf},Symbol.toStringTag,{value:"Module"}));function oNe(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:o,...i}=n,l=!Object.keys(i).length,{handler:s,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:i?.attr??l,characterData:i?.char??l,childList:i?.child??l,subtree:i?.sub??l}},c=new MutationObserver(function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0;s?.(d,h),a&&XZ(e,t)});o&&s?.([],c),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function XZ(e,t){e._mutate?.[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const iNe={mounted:oNe,unmounted:XZ};function ZZ(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},o=typeof r=="function"||"handleEvent"in r?r:r.handler,i=n?e:t.arg?document.querySelector(t.arg):window;i&&(i.addEventListener("scroll",o,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:o,options:a,target:n?void 0:i})}function JZ(e,t){if(!e._onScroll?.[t.instance.$.uid])return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function lNe(e,t){t.value!==t.oldValue&&(JZ(e,t),ZZ(e,t))}const sNe={mounted:ZZ,unmounted:JZ,updated:lNe};function uNe(e,t){const n=typeof e=="string"?f.resolveComponent(e):e,r=cNe(n,t);return{mounted:r,updated:r,unmounted(a){f.render(null,a)}}}function cNe(e,t){return function(n,r,a){const o=typeof t=="function"?t(r):t,i=r.value?.text??r.value??o?.text,l=fv(r.value)?r.value:{},s=()=>i??n.textContent,u=(a.ctx===r.instance.$?dNe(a,r.instance.$)?.provides:a.ctx?.provides)??r.instance.$.provides,c=f.h(e,f.mergeProps(o,l),s);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),f.render(c,n)}}function dNe(e,t){const n=new Set,r=o=>{for(const i of o){if(!i)continue;if(i===e||i.el&&e.el&&i.el===e.el)return!0;n.add(i);let l;if(i.suspense?l=r([i.ssContent]):Array.isArray(i.children)?l=r(i.children):i.component?.vnode&&(l=r([i.component?.subTree])),l)return l;n.delete(i)}return!1};if(!r([t.subTree]))return cv("Could not find original vnode, component will not inherit provides"),t;const a=Array.from(n).reverse();for(const o of a)if(o.component)return o.component;return t}const fNe=uNe(Hv,e=>({activator:(fv(e.value)?!e.value.text:["",!1,null].includes(e.value))?null:"parent",location:e.arg?.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value})),hNe=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:yN,Intersect:dl,Mutate:iNe,Resize:Sw,Ripple:eo,Scroll:sNe,Tooltip:fNe,Touch:H_},Symbol.toStringTag,{value:"Module"}));function EL(e,t,n){const r=ot(e,t);return r.value=e[t]??n.value,f.watch(n,a=>{e[t]==null&&(r.value=a)}),r}function QZ(e){return e(.1).includes(",")?",":"."}function qZ(e){return t=>{const n=EL(t,"locale",e.current),r=EL(t,"fallback",e.fallback),a=EL(t,"messages",e.messages),o=e.useI18n({locale:n.value,fallbackLocale:r.value,messages:a.value,useScope:"local",legacy:!1,inheritLocale:!1});return f.watch(n,i=>{o.locale.value=i}),{name:"vue-i18n",current:n,fallback:r,messages:a,decimalSeparator:f.toRef(()=>t.decimalSeparator??QZ(o.n)),t:function(i){for(var l=arguments.length,s=new Array(l>1?l-1:0),u=1;uQZ(t.global.n)),t:function(i){for(var l=arguments.length,s=new Array(l>1?l-1:0),u=1;u0&&r.push(a),r}function bw(e,t,n){let r=(n??yw(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(Ea("Invalid firstDayOfWeek, expected discrete number in range [0-6]"),r=0);const a=new Date(e);for(;a.getDay()!==r;)a.setDate(a.getDate()-1);return a}function sIe(e,t){const n=new Date(e),r=((yw(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function LK(e){return new Date(e.getFullYear(),e.getMonth(),1)}function OK(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function uIe(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const cIe=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function RK(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if(cIe.test(e))return uIe(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const BK=new Date(2e3,0,2);function dIe(e,t,n){const r=t??yw(e)?.firstDay??0;return wu(7).map(a=>{const o=new Date(BK);return o.setDate(BK.getDate()+r+a),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(o)})}function fIe(e,t,n,r){const a=RK(e)??new Date,o=r?.[t];if(typeof o=="function")return o(a,t,n);let i={};switch(t){case"fullDate":i={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":i={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const l=a.getDate(),s=new Intl.DateTimeFormat(n,{month:"long"}).format(a);return`${l} ${s}`;case"normalDateWithWeekday":i={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":i={month:"short",day:"numeric"};break;case"year":i={year:"numeric"};break;case"month":i={month:"long"};break;case"monthShort":i={month:"short"};break;case"monthAndYear":i={month:"long",year:"numeric"};break;case"monthAndDate":i={month:"long",day:"numeric"};break;case"weekday":i={weekday:"long"};break;case"weekdayShort":i={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(a.getDate());case"hours12h":i={hour:"numeric",hour12:!0};break;case"hours24h":i={hour:"numeric",hour12:!1};break;case"minutes":i={minute:"numeric"};break;case"seconds":i={second:"numeric"};break;case"fullTime":i={hour:"numeric",minute:"numeric"};break;case"fullTime12h":i={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":i={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":i={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":i={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");case"keyboardDateTime12h":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");case"keyboardDateTime24h":return i={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,i).format(a).replace(/, /g," ");default:i=o??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,i).format(a)}function hIe(e,t){const n=e.toJsDate(t),r=n.getFullYear(),a=Z9(String(n.getMonth()+1),2,"0"),o=Z9(String(n.getDate()),2,"0");return`${r}-${a}-${o}`}function vIe(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function pIe(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function mIe(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Pv(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function gIe(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function yIe(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function ww(e){return e.getFullYear()}function bIe(e){return e.getMonth()}function wIe(e,t,n,r){const a=yw(t),o=n??a?.firstDay??0,i=a?.firstWeekSize??1;return r!==void 0?SIe(e,t,o,r):xIe(e,t,o,i)}function SIe(e,t,n,r){const a=(7+r-n)%7,o=bw(e,t,n),i=Pv(o,6);function l(h){return(7+new Date(h,0,1).getDay()-n)%7}let s=ww(o);s=r&&l++;const s=new Date(l,0,1),u=i(l),c=u>=r?Pv(s,u-7):Pv(s,u);return 1+L_(BN(a),Sw(c),"weeks")}function CIe(e){return e.getDate()}function _Ie(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function TIe(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function kIe(e){return e.getHours()}function AIe(e){return e.getMinutes()}function EIe(e){return new Date(e.getFullYear(),0,1)}function IIe(e){return new Date(e.getFullYear(),11,31)}function MIe(e,t){return N_(e,t[0])&&PIe(e,t[1])}function DIe(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function N_(e,t){return e.getTime()>t.getTime()}function VIe(e,t){return N_(Sw(e),Sw(t))}function PIe(e,t){return e.getTime(){n.locale=e.locale[r]??r??n.locale}),n}function Nv(){const e=f.inject(HK);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=An();return GK(e,t)}const O_=ie({start:{type:[String,Number,Date],validate:qg,default:()=>PN(new Date).date},end:{type:[String,Number,Date],validate:qg},weekdays:{type:[Array,String],default:()=>[0,1,2,3,4,5,6],validate:oIe},firstDayOfWeek:[Number,String],firstDayOfYear:[Number,String],weekdayFormat:{type:Function,default:null},dayFormat:{type:Function,default:null},locale:String,now:{type:String,validator:qg},type:{type:String,default:"month"}},"VCalendar-base");function FN(e){const{times:t,updateTimes:n}=iIe({now:e.now}),r=HY(e),a=Nv(),o=f.computed(()=>e.type==="month"?kK(Yc(e.start,!0)):Yc(e.start,!0)),i=f.computed(()=>{const S=o.value,_=e.end&&Yc(e.end)||S,x=vf(_)qg(e.modelValue)?Yc(e.modelValue,!0):o.value||t.today),s=f.computed(()=>{const S=Array.isArray(e.weekdays)?e.weekdays:(e.weekdays||"").split(",").map(x=>parseInt(x,10)),_=a.toJsDate(a.startOfWeek(a.date(),e.firstDayOfWeek)).getDay();return[...S.toSorted().filter(x=>x>=_),...S.toSorted().filter(x=>x<_)]}),u=f.computed(()=>{const S=l.value,_=parseInt(String(e.categoryDays))||1;switch(e.type){case"day":return[S.weekday];case"4day":return[S.weekday,(S.weekday+1)%7,(S.weekday+2)%7,(S.weekday+3)%7];case"category":return Array.from({length:_},(x,T)=>(S.weekday+T)%7);default:return s.value}}),c=f.computed(()=>rIe(s.value)),d=f.computed(()=>P_(o.value,i.value,t.today,c.value)),h=f.computed(()=>e.dayFormat?e.dayFormat:gw(r.current.value,()=>({timeZone:"UTC",day:"numeric"}))),v=f.computed(()=>e.weekdayFormat?e.weekdayFormat:gw(r.current.value,(S,_)=>({timeZone:"UTC",weekday:_?"short":"long"})));function p(S){return KY(S)}function m(S){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{"v-present":S.present,"v-past":S.past,"v-future":S.future,"v-outside":_}}function g(S){return a.getWeek(a.date(S.date),e.firstDayOfWeek,e.firstDayOfYear)}function y(S){return QEe(S,s.value,t.today)}function b(S){return qEe(S,s.value,t.today)}function w(S){return gw(r.current.value,()=>S)}return{times:t,locale:r,parsedValue:l,parsedWeekdays:s,effectiveWeekdays:u,weekdaySkips:c,parsedStart:o,parsedEnd:i,days:d,dayFormatter:h,weekdayFormatter:v,getColorProps:p,getRelativeClasses:m,getWeekNumber:g,getStartOfWeek:y,getEndOfWeek:b,getFormatter:w,updateTimes:n}}const UK=ie({maxDays:{type:Number,default:7},intervalHeight:{type:[Number,String],default:48,validate:Qg},intervalWidth:{type:[Number,String],default:60,validate:Qg},intervalMinutes:{type:[Number,String],default:60,validate:Qg},firstInterval:{type:[Number,String],default:0,validate:Qg},firstTime:{type:[Number,String,Object],validate:$Ee},intervalCount:{type:[Number,String],default:24,validate:Qg},intervalFormat:{type:Function,default:null},intervalStyle:{type:Function,default:null},showIntervalLabel:{type:Function,default:null}},"VCalendar-intervals");function YK(e){const t=FN(e),n=f.shallowRef(),r=f.computed(()=>parseInt(String(e.firstInterval||0))),a=f.computed(()=>parseInt(String(e.intervalMinutes||60))),o=f.computed(()=>parseInt(String(e.intervalCount||24))),i=f.computed(()=>parseFloat(String(e.intervalHeight||48))),l=f.computed(()=>EK(e.firstTime)),s=f.computed(()=>{const _=l.value;return _!==!1&&_>=0&&_<=GEe?_:r.value*a.value}),u=f.computed(()=>o.value*i.value),c=f.computed(()=>P_(t.parsedStart.value,t.parsedEnd.value,t.times.today,t.weekdaySkips.value,e.maxDays)),d=f.computed(()=>{const _=c.value,x=s.value,T=a.value,A=o.value,E=t.times.now;return _.map(I=>aIe(I,x,T,A,E))}),h=f.computed(()=>e.intervalFormat?e.intervalFormat:gw(t.locale.current.value,(_,x)=>x?_.minute===0?{timeZone:"UTC",hour:"numeric"}:{timeZone:"UTC",hour:"numeric",minute:"2-digit"}:{timeZone:"UTC",hour:"2-digit",minute:"2-digit"}));function v(_){const x=d.value[0][0];return!(x.hour===_.hour&&x.minute===_.minute)}function p(_){}function m(_,x){const T=Bi(x),A=_.currentTarget.getBoundingClientRect(),E=s.value,I=_,M=_,N=I.changedTouches||I.touches,P=((N&&N[0]?N[0].clientY:M.clientY)-A.top)/i.value,O=Math.floor(P*a.value),L=E+O;return DK(T,L,t.times.now)}function g(_){const x=Bi(_);return x.timeToY=w,x.timeDelta=S,x.minutesToPixels=b,x.week=c.value,x.intervalRange=[s.value,s.value+o.value*a.value],x}function y(_){const x=w(_),T=n.value;return x===!1||!T?!1:(T.scrollTop=x,!0)}function b(_){return _/a.value*i.value}function w(_){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const T=x!==!1;let E=S(_,typeof x!="boolean"?x:void 0);return E===!1||(E*=u.value,T?E<0?E=0:E>u.value&&(E=u.value):E<0?E=E+u.value:E>u.value&&(E=E-u.value)),E}function S(_,x){let T=EK(_);if(T===!1)return!1;const A=o.value*a.value;if(x&&typeof _=="object"&&"day"in _){const I=ga(_),M=ga(x);T+=(I-M)*A}const E=s.value;return(T-E)/A}return{...t,scrollAreaRef:n,parsedFirstInterval:r,parsedIntervalMinutes:a,parsedIntervalCount:o,parsedIntervalHeight:i,parsedFirstTime:l,firstMinute:s,bodyHeight:u,days:c,intervals:d,intervalFormatter:h,showIntervalLabelDefault:v,intervalStyleDefault:p,getTimestampAtEvent:m,getSlotScope:g,scrollToTime:y,minutesToPixels:b,timeToY:w,timeDelta:S}}function YIe(e,t){const n=t.value,r={passive:!t.modifiers?.active};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},t.modifiers?.quiet||n()}function jIe(e,t){if(!e._onResize?.[t.instance.$.uid])return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}const xw={mounted:YIe,unmounted:jIe},Cw=zo({name:"VCalendarDaily",directives:{vResize:xw},props:{color:String,shortWeekdays:{type:Boolean,default:!0},shortIntervals:{type:Boolean,default:!0},hideHeader:Boolean,...O_(),...UK()},setup(e,t){let{slots:n,attrs:r}=t;const a=f.ref(0),o=f.ref(),i=YK(e);function l(){f.nextTick(s)}function s(){a.value=u()}function u(){return i.scrollAreaRef.value&&o.value?i.scrollAreaRef.value.offsetWidth-o.value.offsetWidth:0}function c(){return f.createElementVNode("div",{class:"v-calendar-daily__head",style:{marginRight:a.value+"px"}},[d(),h()])}function d(){const D=Oe(e.intervalWidth);return f.createElementVNode("div",{class:"v-calendar-daily__intervals-head",style:{width:D}},[n["interval-header"]?.()])}function h(){return i.days.value.map(v)}function v(D,P){const O=sl(r,":day",L=>({nativeEvent:L,...i.getSlotScope(D)}));return f.createElementVNode("div",f.mergeProps({key:D.date,class:["v-calendar-daily_head-day",i.getRelativeClasses(D)]},O),[m(D),g(D),p(D,P)])}function p(D,P){return n["day-header"]?.({week:i.days.value,...D,index:P})??[]}function m(D){const P=D.present?e.color:void 0;return f.createElementVNode("div",f.mergeProps(i.getColorProps({text:P}),{class:"v-calendar-daily_head-weekday"}),[i.weekdayFormatter.value(D,e.shortWeekdays)])}function g(D){return f.createElementVNode("div",{class:"v-calendar-daily_head-day-label"},[n["day-label-header"]?.(D)??y(D)])}function y(D){const P=sl(r,":date",O=>({nativeEvent:O,...D}));return f.createVNode(SK,f.mergeProps({active:D.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":i_},P),{default:()=>[i.dayFormatter.value(D,!1)]})}function b(){return f.createElementVNode("div",{class:"v-calendar-daily__body"},[w()])}function w(){return f.createElementVNode("div",{ref:i.scrollAreaRef,class:"v-calendar-daily__scroll-area"},[S()])}function S(){return f.createElementVNode("div",{ref:o,class:"v-calendar-daily__pane",style:{height:Oe(i.bodyHeight.value)}},[_()])}function _(){return f.createElementVNode("div",{class:"v-calendar-daily__day-container"},[I(),n.days?.()??x()])}function x(){return i.days.value.map((D,P)=>{const O=sl(r,":time",L=>({nativeEvent:L,...i.getSlotScope(i.getTimestampAtEvent(L,D))}));return f.createElementVNode("div",f.mergeProps({key:D.date,class:["v-calendar-daily__day",i.getRelativeClasses(D)]},O),[A(P),T(D)])})}function T(D){return n["day-body"]?.(i.getSlotScope(D))??[]}function A(D){return i.intervals.value[D].map(E)}function E(D){const P=Oe(e.intervalHeight),O=e.intervalStyle||i.intervalStyleDefault;return f.createElementVNode("div",{class:"v-calendar-daily__day-interval",key:D.time,style:f.normalizeStyle([{height:P},O(D)])},[n.interval?.(i.getSlotScope(D))])}function I(){const D=Oe(e.intervalWidth),P=sl(r,":interval",O=>({nativeEvent:O,...i.getTimestampAtEvent(O,i.parsedStart.value)}));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-daily__intervals-body",style:{width:D}},P),[M()])}function M(){return i.intervals.value.length?i.intervals.value[0].map(N):null}function N(D){const P=Oe(e.intervalHeight),O=e.shortIntervals,B=(e.showIntervalLabel||i.showIntervalLabelDefault)(D)?i.intervalFormatter.value(D,O):void 0;return f.createElementVNode("div",{key:D.time,class:"v-calendar-daily__interval",style:{height:P}},[f.createElementVNode("div",{class:"v-calendar-daily__interval-text"},[B])])}return f.onMounted(l),Ae(()=>f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-calendar-daily",r.class]),onDragstart:D=>D.preventDefault()},[e.hideHeader?void 0:c(),b()]),[[xw,s,void 0,{quiet:!0}]])),{...i,scrollPush:a,pane:o,init:l,onResize:s,getScrollPush:u}}});function KIe(e,t){return typeof t=="function"?t(e):typeof t=="string"&&typeof e=="object"&&e?e[t]:typeof e=="string"?e:""}function jK(e,t){return typeof e=="string"?e.split(/\s*,\s/):Array.isArray(e)?e.map(n=>{if(typeof n=="string")return n;const r=typeof n.categoryName=="string"?n.categoryName:KIe(n,t);return{...n,categoryName:r}}):[]}const XIe=zo({name:"VCalendarCategory",props:{categories:{type:[Array,String],default:""},categoryText:[String,Function],categoryForInvalid:{type:String,default:""},...O_(),...UK()},setup(e,t){let{slots:n,attrs:r}=t;const a=YK(e),o=f.computed(()=>jK(e.categories,e.categoryText));function i(g,y){const b=typeof y=="object"&&y&&y.categoryName===e.categoryForInvalid?null:y;return{...g,category:b}}function l(g){return f.createElementVNode("div",{class:"v-calendar-category__columns"},[o.value.map(y=>s(g,i(g,y)))])}function s(g,y){const b=typeof y.category=="object"?y.category.categoryName:y.category,w=sl(r,":dayCategory",()=>i(a.getSlotScope(g)||g,y.category));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-category__column-header"},w),[n.category?.(y)??u(b),n["day-header"]?.(y)])}function u(g){return f.createElementVNode("div",{class:"v-calendar-category__category"},[g===null?e.categoryForInvalid:g])}function c(){const g=[];return a.days.value.forEach((y,b)=>{const w=new Array(o.value.length||1);w.fill(y),g.push(...w.map((S,_)=>d(S,b,_)))}),g}function d(g,y,b){const w=o.value[b],S=sl(r,":time",_=>a.getSlotScope(a.getTimestampAtEvent(_,g)));return f.createElementVNode("div",f.mergeProps({key:g.date+"-"+b,class:["v-calendar-daily__day",a.getRelativeClasses(g)]},S),[h(y,w),p(g,w)])}function h(g,y){return a.intervals.value[g].map(b=>v(b,y))}function v(g,y){const b=Oe(e.intervalHeight),w=e.intervalStyle||a.intervalStyleDefault;return f.createElementVNode("div",{key:g.time,class:"v-calendar-daily__day-interval",style:f.normalizeStyle([{height:b},w({...g,category:y})])},[n.interval?.(i(a.getSlotScope(g),y))])}function p(g,y){return f.createElementVNode("div",{class:"v-calendar-category__columns"},[m(g,y)])}function m(g,y){const b=sl(r,":timeCategory",w=>i(a.getSlotScope(a.getTimestampAtEvent(w,g)),y));return f.createElementVNode("div",f.mergeProps({class:"v-calendar-category__column"},b),[n["day-body"]?.(i(a.getSlotScope(g),y))])}return Ae(()=>f.createVNode(Cw,f.mergeProps({class:["v-calendar-daily","v-calendar-category"]},e),{...n,days:c,"day-header":l})),{...a,parsedCategories:o}}}),ZIe={control:"ctrl",command:"cmd",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",spacebar:" ",space:" ",return:"enter",del:"delete",plus:"+",slash:"/",underscore:"_",minus:"-",hyphen:"-"};function KK(e){const t=e.toLowerCase();return ZIe[t]||t}function XK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={keys:[],separators:[]};if(!e)return t||Ea("Invalid hotkey combination: empty string provided"),n;if(e.length>1&&["+","/","_"].some(c=>e.startsWith(c))&&!["++","//","__"].some(c=>e.startsWith(c))||e.includes("++")||e.includes("//")||e.includes("__")||e==="+"||e==="/"||e==="_"||e.length>1&&(e.endsWith("+")||e.endsWith("/")||e.endsWith("_"))&&e.at(-2)!==e.at(-1)||e==="++"||e==="//"||e==="--"||e==="__")return t||Ea(`Invalid hotkey combination: "${e}" has invalid structure`),n;const o=[],i=[];let l="";const s=c=>{l&&(c&&i.push(c),o.push(KK(l)),l="")};for(let c=0;cc.length>1&&c.includes("-")&&c!=="--")?(t||Ea(`Invalid hotkey combination: "${e}" has invalid structure`),n):o.length===0&&e?{keys:[KK(e)],separators:i}:{keys:o,separators:i}}function JIe(e){if(!e)return Ea("Invalid hotkey sequence: empty string provided"),[];const t=e.startsWith("-")&&e!=="-"&&!["---","--+"].includes(e),n=e.endsWith("-")&&!e.endsWith("+-")&&!e.endsWith("_-")&&e!=="-"&&e!=="---";if(t||n)return Ea(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[];const r=[];let a="",o=0;for(;o1?e[o-2]:void 0;["+","_"].includes(c)&&!["+","/"].includes(d??"")?(a+=u,o++):(a?(r.push(a),a=""):r.push("-"),o++)}else a+=u,o++}a&&r.push(a);const i=[];let l=0;for(const u of r)u==="-"?(l%2===0&&i.push("-"),l++):(l=0,i.push(u));return i.every(u=>XK(u,!0).keys.length>0)?i:(Ea(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[])}const ZK=zo({name:"VCalendarWeekly",props:{minWeeks:{validate:Qg,default:1},monthFormat:Function,showWeek:Boolean,color:String,shortWeekdays:{type:Boolean,default:!0},showMonthOnFirst:{type:Boolean,default:!0},shortMonths:{type:Boolean,default:!0},hideHeader:Boolean,...O_()},setup(e,t){let{slots:n,attrs:r}=t;const a=FN(e),o=bv(),i=f.computed(()=>parseInt(String(e.minWeeks))),l=f.computed(()=>{const _=i.value*a.parsedWeekdays.value.length,x=a.getStartOfWeek(a.parsedStart.value),T=a.getEndOfWeek(a.parsedEnd.value);return P_(x,T,a.times.today,a.weekdaySkips.value,Number.MAX_SAFE_INTEGER,_)}),s=f.computed(()=>{const _=a.times.today,x=a.getStartOfWeek(_),T=a.getEndOfWeek(_);return P_(x,T,_,a.weekdaySkips.value,a.parsedWeekdays.value.length,a.parsedWeekdays.value.length)}),u=f.computed(()=>e.monthFormat?e.monthFormat:gw(a.locale.current.value,(_,x)=>({timeZone:"UTC",month:x?"short":"long"})));function c(_){const x=ga(_);return xga(a.parsedEnd.value)}function d(){return f.createElementVNode("div",{class:"v-calendar-weekly__head",role:"row"},[h()])}function h(){const _=s.value.map(v);return e.showWeek&&_.unshift(f.createElementVNode("div",{class:"v-calendar-weekly__head-weeknumber"},null)),_}function v(_,x){const T=c(l.value[x]),A=_.present?e.color:void 0;return f.createElementVNode("div",f.mergeProps(a.getColorProps({text:A}),{key:_.date,class:["v-calendar-weekly__head-weekday",a.getRelativeClasses(_,T)],role:"columnheader"}),[a.weekdayFormatter.value(_,e.shortWeekdays)])}function p(){const _=l.value,x=a.parsedWeekdays.value.length,T=[];for(let A=0;A<_.length;A+=x)T.push(m(_.slice(A,A+x),g(_[A])));return T}function m(_,x){const T=_.map((A,E)=>b(A,E,_));return e.showWeek&&T.unshift(y(x)),f.createElementVNode("div",{key:_[0].date,class:"v-calendar-weekly__week",role:"row"},[T])}function g(_){return a.getWeekNumber(_)}function y(_){return f.createElementVNode("div",{class:"v-calendar-weekly__weeknumber"},[f.createElementVNode("small",null,[String(_)])])}function b(_,x,T){const A=c(_),E=sl(r,":day",I=>({nativeEvent:I,..._}));return f.createElementVNode("div",f.mergeProps({key:_.date,class:["v-calendar-weekly__day",a.getRelativeClasses(_,A)],role:"cell"},E),[w(_),n.day?.({outside:A,index:x,week:T,..._})])}function w(_){return f.createElementVNode("div",{class:"v-calendar-weekly__day-label"},[n["day-label"]?.(_)??S(_)])}function S(_){const x=_.day===1&&e.showMonthOnFirst,T=sl(r,":date",A=>({nativeEvent:A,..._}));return f.createVNode(SK,f.mergeProps({active:_.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":i_},T),{default:()=>[x?u.value(_,e.shortMonths)+" "+a.dayFormatter.value(_,!1):a.dayFormatter.value(_,!1)]})}return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-calendar-weekly",o.themeClasses.value]),onDragstart:_=>_.preventDefault()},[e.hideHeader?void 0:d(),p()])),{...a,days:l,todayWeek:s,monthFormatter:u,isOutside:c}}}),QIe=864e5;function JK(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=e.map(r=>({event:r,columnCount:0,column:0,left:0,width:100}));return n.sort((r,a)=>Math.max(t,r.event.startTimestampIdentifier)-Math.max(t,a.event.startTimestampIdentifier)||a.event.endTimestampIdentifier-r.event.endTimestampIdentifier),n}function Hs(e,t,n,r){return(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0)?!(e>=r||t<=n):!(e>r||t{t.visuals.forEach(n=>{n.columnCount=e.length})})}function qK(e){return[e.startTimestampIdentifier,e.endTimestampIdentifier]}function $K(e){return[e.startIdentifier,e.endIdentifier]}function eX(e,t){return[Math.max(t,e.startTimestampIdentifier),Math.min(t+QIe,e.endTimestampIdentifier)]}function qIe(e,t,n,r){for(let a=0;a{t.groups=[],t.min=t.max=-1},getVisuals:function(n,r,a){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;(n.weekday===e||o)&&t.reset();const i=vf(n),l=JK(r,i);return l.forEach(s=>{const[u,c]=a?qK(s.event):$K(s.event);t.groups.length>0&&!Hs(u,c,t.min,t.max,a)&&(QK(t.groups),t.reset());let d=qIe(t.groups,u,c,a);d===-1&&(d=t.groups.length,t.groups.push({start:u,end:c,visuals:[]}));const h=t.groups[d];h.visuals.push(s),h.start=Math.min(h.start,u),h.end=Math.max(h.end,c),s.column=d,t.min===-1?(t.min=u,t.max=c):(t.min=Math.min(t.min,u),t.max=Math.max(t.max,c))}),QK(t.groups),a&&t.reset(),l}};return t}const nX=100,$Ie=(e,t,n)=>{const r=tX(t);return(a,o,i,l)=>{const s=r.getVisuals(a,o,i,l);return i&&s.forEach(u=>{u.left=u.column*nX/u.columnCount,u.width=nX/u.columnCount}),s}},R_=100,eMe=5,tMe=1.7,nMe=(e,t,n)=>{const r=tX(t);return(a,o,i,l)=>{if(!i)return r.getVisuals(a,o,i,l);const s=vf(a),u=JK(o,s),c=uMe(u,s);for(const d of c){const h=[];for(const v of d.visuals){const p=cMe(v,s),m=iMe(p,h);if(m===!1){const g=lMe(p,h);g&&(p.parent=g,p.sibling=Hs(p.start,p.end,g.start,B_(g.start,n)),p.index=g.index+1,g.children.push(p))}else{const[g]=rX(p,h,m-1,m-1),y=rX(p,h,m+1,m+h.length,!0);p.children=y,p.index=m,g&&(p.parent=g,p.sibling=Hs(p.start,p.end,g.start,B_(g.start,n)),g.children.push(p));for(const b of y)b.parent===g&&(b.parent=p),b.index-p.index<=1&&p.sibling&&Hs(p.start,B_(p.start,n),b.start,b.end)&&(b.sibling=!0)}h.push(p)}rMe(h,n)}return u.sort((d,h)=>d.left-h.left||d.event.startTimestampIdentifier-h.event.startTimestampIdentifier),u}};function rMe(e,t){for(const n of e){const{visual:r,parent:a}=n,o=aX(n)+1,i=a?a.visual.left:0,l=R_-i,s=Math.min(eMe,R_/o),u=aMe(n,e),c=l/(o-n.index+1),d=l/(o-n.index+(n.sibling?1:0))*u;a&&(r.left=n.sibling?i+c:i+s),r.width=sMe(n,e,t)?R_-r.left:Math.min(R_-r.left,d*tMe)}}function aMe(e,t){if(!e.children.length)return 1;const n=e.index+t.length;return e.children.reduce((a,o)=>Math.min(a,o.index),n)-e.index}function oMe(e,t){const n=[];for(const r of t)Hs(e.start,e.end,r.start,r.end)&&n.push(r.index);return n}function iMe(e,t){const n=oMe(e,t);n.sort();for(let r=0;r4&&arguments[4]!==void 0?arguments[4]:!1;const o=[];for(const i of t)i.index>=n&&i.index<=r&&Hs(e.start,e.end,i.start,i.end)&&o.push(i);if(a&&o.length>0){const i=o.reduce((l,s)=>Math.min(l,s.index),o[0].index);return o.filter(l=>l.index===i)}return o}function lMe(e,t){let n=null;for(const r of t)Hs(e.start,e.end,r.start,r.end)&&(n===null||r.index>n.index)&&(n=r);return n}function sMe(e,t,n){for(const r of t)if(r!==e&&r.index>e.index&&Hs(e.start,B_(e.start,n),r.start,r.end))return!1;return!0}function uMe(e,t){const n=[];for(const r of e){const[a,o]=eX(r.event,t);let i=!1;for(const l of n)if(Hs(a,o,l.start,l.end)){l.visuals.push(r),l.end=Math.max(l.end,o),i=!0;break}i||n.push({start:a,end:o,visuals:[r]})}return n}function cMe(e,t){const[n,r]=eX(e.event,t);return{parent:null,sibling:!0,index:0,visual:e,start:n,end:r,children:[]}}function aX(e){let t=e.index;for(const n of e.children){const r=aX(n);r>t&&(t=r)}return t}function B_(e,t){const n=e%100,r=n+t,a=Math.floor(r/60),o=r%60;return e-n+a*100+o}const oX={stack:nMe,column:$Ie};function dMe(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;const i=e[n],l=e[r],s=Yc(i,!0),u=l?Yc(l,!0):s,c=IK(i)?MK(s,a):s,d=IK(l)?MK(u,a):u,h=ga(c),v=vf(c),p=ga(d),m=c.hasTime?0:2359,g=vf(d)+m,y=!c.hasTime;return{input:e,start:c,startIdentifier:h,startTimestampIdentifier:v,end:d,endIdentifier:p,endTimestampIdentifier:g,allDay:y,index:t,category:o}}function HN(e,t){return t>=e.startIdentifier&&t<=e.endIdentifier}function fMe(e,t,n){if(n){const r=ON(Bi(t),n[0]),a=ON(Bi(t),n[1]),o=e.startTimestampIdentifiervf(r);return o&&i}return HN(e,ga(t))}function hMe(e,t){return e.end.time==="00:00"&&e.end.date===t.date&&e.start.date!==t.date}function iX(e,t,n,r){return n===e.startIdentifier||r===t.weekday&&HN(e,n)}function vMe(e,t,n){return t<=e.endIdentifier&&n>=e.startIdentifier}const pMe=100,mMe=95,gMe=ie({events:{type:Array,default:()=>[]},eventStart:{type:String,default:"start"},eventEnd:{type:String,default:"end"},eventTimed:{type:[String,Function],default:"timed"},eventCategory:{type:[String,Function],default:"category"},eventHeight:{type:Number,default:20},eventColor:{type:[String,Function],default:"primary"},eventTextColor:{type:[String,Function]},eventName:{type:[String,Function],default:"name"},eventOverlapThreshold:{type:[String,Number],default:60},eventOverlapMode:{type:[String,Function],default:"stack",validate:e=>e in oX||typeof e=="function"},eventMore:{type:Boolean,default:!0},eventMoreText:{type:String,default:"$vuetify.calendar.moreEvents"},eventRipple:{type:[Boolean,Object],default:null},eventMarginBottom:{type:Number,default:1}},"VCalendar-events");function yMe(e,t,n){const r=FN(e),a=f.computed(()=>!Array.isArray(e.events)||e.events.length===0),o=f.computed(()=>e.type==="category"),i=f.computed(()=>typeof e.eventTimed=="function"?e.eventTimed:P=>!!P[e.eventTimed]),l=f.computed(()=>typeof e.eventCategory=="function"?e.eventCategory:P=>P[e.eventCategory]),s=f.computed(()=>e.events?e.events.map((P,O)=>dMe(P,O,e.eventStart||"",e.eventEnd||"",i.value(P),o.value?l.value(P):!1)):[]),u=f.computed(()=>parseInt(String(e.eventOverlapThreshold||0))),c=f.computed(()=>typeof e.eventTextColor=="function"?e.eventTextColor:()=>e.eventTextColor),d=f.computed(()=>typeof e.eventName=="function"?e.eventName:(P,O)=>P.input[e.eventName]||""),h=f.computed(()=>typeof e.eventOverlapMode=="function"?e.eventOverlapMode:oX[e.eventOverlapMode]),v=f.computed(()=>r.effectiveWeekdays.value);function p(P){return typeof e.eventColor=="function"?e.eventColor(P):P.color||e.eventColor}const m=f.ref([]);function g(){if(a.value||!e.eventMore)return;const P=e.eventHeight||0,O=y();for(const L in O){const{parent:R,events:B,more:z}=O[L];if(!z)break;const H=R.getBoundingClientRect(),G=B.length-1,j=B.map(Y=>({event:Y,bottom:Y.getBoundingClientRect().bottom})).sort((Y,Z)=>Y.bottom-Z.bottom);let U=0;for(let Y=0;Y<=G;Y++){const Z=j[Y].bottom;(Y===G?Z>H.bottom:Z+P>H.bottom)&&(j[Y].event.style.display="none",U++)}U?(z.style.display="",z.innerHTML=r.locale.t(e.eventMoreText,U)):z.style.display="none"}}function y(){const P={},O=m.value;return!O||!O.length||O.forEach(L=>{const R=L.getAttribute("data-date");L.parentElement&&R&&(R in P||(P[R]={parent:L.parentElement,more:null,events:[]}),L.getAttribute("data-more")?P[R].more=L:(P[R].events.push(L),L.style.display=""))}),P}function b(P,O){let{event:L}=P;const R=e.eventHeight||0,B=e.eventMarginBottom||0,z=ga(O),H=O.week,G=z===L.startIdentifier;let j=z===L.endIdentifier,U=mMe;if(!o.value)for(let Z=O.index+1;Z=ne)U+=pMe,j=j||ne===L.endIdentifier;else{j=!0;break}}return S(L,{eventParsed:L,day:O,start:G,end:j,timed:!1},!1,{class:["v-event",{"v-event-start":G,"v-event-end":j}],style:{height:`${R}px`,width:`${U}%`,marginBottom:`${B}px`},"data-date":O.date})}function w(P,O){let{event:L,left:R,width:B}=P;const z=O.timeDelta(L.start,O),H=O.timeDelta(L.end,O);if(H===!1||z===!1||H<0||z>=1||hMe(L,O))return!1;const G=ga(O),j=L.startIdentifier>=G,U=L.endIdentifier>G,Y=O.timeToY(L.start,O),Z=O.timeToY(L.end,O),ne=Math.max(e.eventHeight||0,Z-Y);return S(L,{eventParsed:L,day:O,start:j,end:U,timed:!0},!0,{class:"v-event-timed",style:{top:`${Y}px`,height:`${ne}px`,left:`${R}%`,width:`${B}%`}})}function S(P,O,L,R){const B=t.event,z=c.value(P.input),H=p(P.input),G=P.start.hour<12&&P.end.hour>=12,j=nIe(P.start,P.end)<=u.value,U=(ae,de)=>r.getFormatter({timeZone:"UTC",hour:"numeric",minute:ae.minute>0?"numeric":void 0})(ae,!0),Y=()=>U(P.start)+" - "+U(P.end),Z=()=>{const ae=d.value(P,L);if(P.start.hasTime)if(L){const de=Y(),ve=j?", ":f.createElementVNode("br",null,null);return f.createElementVNode("span",{class:"v-event-summary"},[f.createElementVNode("strong",null,[ae]),ve,de])}else{const de=U(P.start);return f.createElementVNode("span",{class:"v-event-summary"},[f.createElementVNode("strong",null,[de]),f.createTextVNode(" "),ae])}return f.createElementVNode("span",{class:"v-event-summary"},[ae])},ne={...O,event:P.input,outside:O.day.outside,singline:j,overlapsNoon:G,formatTime:U,timeSummary:Y,eventSummary:Z},$=sl(n,":event",ae=>({...ne,nativeEvent:ae}));return f.withDirectives(f.createElementVNode("div",f.mergeProps(r.getColorProps({text:z,background:H}),$,R,{ref_for:!0,ref:m}),[B?.(ne)??_(Z)]),[[eo,e.eventRipple??!0]])}function _(P){return f.createElementVNode("div",{class:"pl-1"},[P()])}function x(P){const O=(e.eventHeight||0)+(e.eventMarginBottom||0);return f.createElementVNode("div",{style:{height:`${O}px`},"data-date":P.date,ref_for:!0,ref:m},null)}function T(P){const O=e.eventHeight||0,L=e.eventMarginBottom||0,R=sl(n,":more",B=>({nativeEvent:B,...P}));return f.withDirectives(f.createElementVNode("div",f.mergeProps({class:["v-event-more pl-1",{"v-outside":P.outside}],"data-date":P.date,"data-more":"1",style:{display:"none",height:`${O}px`,marginBottom:`${L}px`},ref_for:!0,ref:m},R),null),[[eo,e.eventRipple??!0]])}function A(){const P=r.days.value,O=ga(P[0]),L=ga(P[P.length-1]);return s.value.filter(R=>vMe(R,O,L))}function E(P,O){return!o.value||typeof O=="object"&&O.categoryName&&O.categoryName===P.category||typeof P.category=="string"&&O===P.category||typeof P.category!="string"&&O===null}function I(P){const O=ga(P),L=v.value[0];return s.value.filter(R=>iX(R,P,O,L))}function M(P){const O=ga(P),L=v.value[0];return s.value.filter(R=>R.allDay&&(o.value?HN(R,O):iX(R,P,O,L))&&E(R,P.category))}function N(P){return s.value.filter(O=>!O.allDay&&fMe(O,P,P.intervalRange)&&E(O,P.category))}function D(){if(a.value)return{...t};const P=h.value(s.value,v.value[0],u.value),O=R=>!!R,L=(R,B,z,H)=>{const G=B(R),j=P(R,G,H,o.value);if(H)return j.map(Y=>z(Y,R)).filter(O);const U=[];return j.forEach((Y,Z)=>{for(;U.length{let B=L(R,I,b,!1);if(B&&B.length>0&&e.eventMore&&B.push(T(R)),t.day){const z=t.day(R);z&&(B=B?B.concat(z):z)}return B},"day-header":R=>{let B=L(R,M,b,!1);if(t["day-header"]){const z=t["day-header"](R);z&&(B=B?B.concat(z):z)}return B},"day-body":R=>{const B=L(R,N,w,!0);let z=[f.createElementVNode("div",{class:"v-event-timed-container"},[B])];if(t["day-body"]){const H=t["day-body"](R);H&&(z=z.concat(H))}return z}}}return{...r,noEvents:a,parsedEvents:s,parsedEventOverlapThreshold:u,eventTimedFunction:i,eventCategoryFunction:l,eventTextColorFunction:c,eventNameFunction:d,eventModeFunction:h,eventWeekdays:v,categoryMode:o,eventColorFunction:p,eventsRef:m,updateEventVisibility:g,getEventsMap:y,genDayEvent:b,genTimedEvent:w,genEvent:S,genName:_,genPlaceholder:x,genMore:T,getVisibleEvents:A,isEventForCategory:E,getEventsForDay:I,getEventsForDayAll:M,getEventsForDayTimed:N,getScopedSlots:D}}const bMe=Te()({name:"VCalendar",directives:{vResize:xw},props:{modelValue:{type:[String,Number,Date],validate:qg},categoryDays:{type:[Number,String],default:1,validate:e=>isFinite(parseInt(e))&&parseInt(e)>0},categories:{type:[Array,String],default:""},categoryText:{type:[String,Function]},maxDays:{type:Number,default:7},categoryHideDynamic:{type:Boolean},categoryShowAll:{type:Boolean},categoryForInvalid:{type:String,default:""},...O_(),...gMe()},setup(e,t){let{slots:n,attrs:r,emit:a}=t;const o=f.ref(),i=yMe(e,n,r),l=f.ref(null),s=f.ref(null),u=f.computed(()=>parseInt(String(e.categoryDays))||1),c=f.computed(()=>jK(e.categories,e.categoryText)),d=f.computed(()=>{const x=i.parsedValue.value;let T=null,A=e.maxDays,E=c.value,I=x,M=x;switch(e.type){case"month":T=ZK,I=kK(x),M=AK(x);break;case"week":T=Cw,I=i.getStartOfWeek(x),M=i.getEndOfWeek(x),A=7;break;case"day":T=Cw,A=1;break;case"4day":T=Cw,M=Vv(Bi(M),pf,3),Fs(M),A=4;break;case"custom-weekly":T=ZK,I=i.parsedStart.value||x,M=i.parsedEnd.value;break;case"custom-daily":T=Cw,I=i.parsedStart.value||x,M=i.parsedEnd.value;break;case"category":const N=u.value;T=XIe,M=Vv(Bi(M),pf,N),Fs(M),A=N,E=_(E);break;default:const D=e.type;throw new Error(`${D} is not a valid Calendar type`)}return{component:T,start:I,end:M,maxDays:A,categories:E}}),h=f.computed(()=>i.effectiveWeekdays.value),v=f.computed(()=>e.type==="category"),p=f.computed(()=>i.getFormatter({timeZone:"UTC",month:"long"})),m=f.computed(()=>i.getFormatter({timeZone:"UTC",month:"short"})),g=f.computed(()=>{const{start:x,end:T}=d.value,A=x.year!==T.year,E=A||x.month!==T.month;return A?m.value(x,!0)+" "+x.year+" - "+m.value(T,!0)+" "+T.year:E?m.value(x,!0)+" - "+m.value(T,!0)+" "+T.year:p.value(x,!1)+" "+x.year});function y(){const{start:x,end:T}=d.value;(!l.value||!s.value||x.date!==l.value.date||T.date!==s.value.date)&&(l.value=x,s.value=T,a("change",{start:x,end:T}))}function b(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;const T=Bi(i.parsedValue.value),A=x>0,E=A?pf:PK,I=A?zEe:D_;let M=A?x:-x;for(;--M>=0;)switch(e.type){case"month":T.day=I,E(T);break;case"week":Vv(T,E,hf);break;case"day":Vv(T,E,1);break;case"4day":Vv(T,E,4);break;case"category":Vv(T,E,u.value);break}V_(T),Fs(T),Mv(T,i.times.now),e.modelValue instanceof Date?a("update:modelValue",RN(T)):typeof e.modelValue=="number"?a("update:modelValue",RN(T).getTime()):a("update:modelValue",T.date),a("moved",T)}function w(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b(x)}function S(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;b(-x)}function _(x){if(!i.noEvents.value){const T=x.reduce((A,E,I)=>(typeof E=="object"&&E.categoryName?A[E.categoryName]={index:I,count:0}:typeof E=="string"&&(A[E]={index:I,count:0}),A),{});if(!e.categoryHideDynamic||!e.categoryShowAll){let A=x.length;i.parsedEvents.value.forEach(E=>{let I=E.category;typeof I!="string"&&(I=e.categoryForInvalid),I&&(I in T?T[I].count++:e.categoryHideDynamic||(T[I]={index:A++,count:1}))})}if(!e.categoryShowAll)for(const A in T)T[A].count===0&&delete T[A];x=x.filter(A=>typeof A=="object"&&A.categoryName?T.hasOwnProperty(A.categoryName):typeof A=="string"?T.hasOwnProperty(A):!1)}return x}return f.watch(d,y),f.onMounted(()=>{i.updateEventVisibility(),y()}),f.onUpdated(()=>{window.requestAnimationFrame(i.updateEventVisibility)}),Ae(()=>{const{start:x,end:T,maxDays:A,component:E,categories:I}=d.value;return f.withDirectives(f.createVNode(E,f.mergeProps({ref:o,class:["v-calendar",{"v-calendar-events":!i.noEvents.value}],role:"grid"},E.filterProps(e),{start:x.date,end:T.date,maxDays:A,weekdays:i.effectiveWeekdays.value,categories:I,"onClick:date":(M,N)=>{r["onUpdate:modelValue"]&&a("update:modelValue",N.date)}}),i.getScopedSlots()),[[xw,i.updateEventVisibility,void 0,{quiet:!0}]])}),ma({...i,lastStart:l,lastEnd:s,parsedCategoryDays:u,renderProps:d,eventWeekdays:h,categoryMode:v,title:g,monthLongFormatter:p,monthShortFormatter:m,parsedCategories:c,checkChange:y,move:b,next:w,prev:S,getCategoryList:_},o)}}),wMe=ie({...nt(),...Ht()},"VCardActions"),mf=Te()({name:"VCardActions",props:wMe(),setup(e,t){let{slots:n}=t;return _r({VBtn:{slim:!0,variant:"text"}}),Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-actions",e.class]),style:f.normalizeStyle(e.style)},n)),{}}}),SMe=ie({opacity:[Number,String],...nt(),...Ht()},"VCardSubtitle"),zN=Te()({name:"VCardSubtitle",props:SMe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-subtitle",e.class]),style:f.normalizeStyle([{"--v-card-subtitle-opacity":e.opacity},e.style])},n)),{}}}),WN=Oc("v-card-title"),xMe=ie({appendAvatar:String,appendIcon:st,prependAvatar:String,prependIcon:st,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...nt(),...Tr(),...Ht()},"VCardItem"),lX=Te()({name:"VCardItem",props:xMe(),setup(e,t){let{slots:n}=t;return Ae(()=>{const r=!!(e.prependAvatar||e.prependIcon),a=!!(r||n.prepend),o=!!(e.appendAvatar||e.appendIcon),i=!!(o||n.append),l=!!(e.title!=null||n.title),s=!!(e.subtitle!=null||n.subtitle);return f.createVNode(e.tag,{class:f.normalizeClass(["v-card-item",e.class]),style:f.normalizeStyle(e.style)},{default:()=>[a&&f.createElementVNode("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?f.createVNode(zt,{key:"prepend-defaults",disabled:!r,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):f.createElementVNode(f.Fragment,null,[e.prependAvatar&&f.createVNode(hl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(Ct,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),f.createElementVNode("div",{class:"v-card-item__content"},[l&&f.createVNode(WN,{key:"title"},{default:()=>[n.title?.()??f.toDisplayString(e.title)]}),s&&f.createVNode(zN,{key:"subtitle"},{default:()=>[n.subtitle?.()??f.toDisplayString(e.subtitle)]}),n.default?.()]),i&&f.createElementVNode("div",{key:"append",class:"v-card-item__append"},[n.append?f.createVNode(zt,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):f.createElementVNode(f.Fragment,null,[e.appendIcon&&f.createVNode(Ct,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&f.createVNode(hl,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})}),{}}}),CMe=ie({opacity:[Number,String],...nt(),...Ht()},"VCardText"),Au=Te()({name:"VCardText",props:CMe(),setup(e,t){let{slots:n}=t;return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-card-text",e.class]),style:f.normalizeStyle([{"--v-card-text-opacity":e.opacity},e.style])},n)),{}}}),_Me=ie({appendAvatar:String,appendIcon:st,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:st,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},...xo(),...nt(),...Tr(),...Yr(),...Kr(),...S_(),..._u(),...Yg(),...$n(),...aw(),...Ht(),...pn(),...dl({variant:"elevated"})},"VCard"),ml=Te()({name:"VCard",directives:{vRipple:eo},props:_Me(),setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:a}=In(e),{borderClasses:o}=Go(e),{colorClasses:i,colorStyles:l,variantClasses:s}=zc(e),{densityClasses:u}=$a(e),{dimensionStyles:c}=jr(e),{elevationClasses:d}=pa(e),{loaderClasses:h}=tw(e),{locationStyles:v}=of(e),{positionClasses:p}=jg(e),{roundedClasses:m}=cr(e),g=rw(e,n),y=f.shallowRef(void 0);return f.watch(()=>e.loading,(b,w)=>{y.value=!b&&typeof w=="string"?w:typeof b=="boolean"?void 0:b},{immediate:!0}),Ae(()=>{const b=e.link!==!1&&g.isLink.value,w=!e.disabled&&e.link!==!1&&(e.link||g.isClickable.value),S=b?"a":e.tag,_=!!(r.title||e.title!=null),x=!!(r.subtitle||e.subtitle!=null),T=_||x,A=!!(r.append||e.appendAvatar||e.appendIcon),E=!!(r.prepend||e.prependAvatar||e.prependIcon),I=!!(r.image||e.image),M=T||E||A,N=!!(r.text||e.text!=null);return f.withDirectives(f.createVNode(S,f.mergeProps(g.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":w},a.value,o.value,i.value,u.value,d.value,h.value,p.value,m.value,s.value,e.class],style:[l.value,c.value,v.value,{"--v-card-height":Oe(e.height)},e.style],onClick:w&&g.navigate.value,tabindex:e.disabled?-1:void 0}),{default:()=>[I&&f.createElementVNode("div",{key:"image",class:"v-card__image"},[r.image?f.createVNode(zt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):f.createVNode(Bc,{key:"image-img",cover:!0,src:e.image},null)]),f.createVNode(nw,{name:"v-card",active:!!e.loading,color:y.value},{default:r.loader}),M&&f.createVNode(lX,{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}),N&&f.createVNode(Au,{key:"text"},{default:()=>[r.text?.()??e.text]}),r.default?.(),r.actions&&f.createVNode(mf,null,{default:r.actions}),Hc(w,"v-card")]}),[[eo,w&&e.ripple]])}),{}}}),TMe=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:a}=e,o=.5,i=16;e.offsetX=n-t,e.offsetY=a-r,Math.abs(e.offsetY)t+i&&e.right(e)),Math.abs(e.offsetX)r+i&&e.down(e))};function kMe(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function AMe(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),TMe(t)}function EMe(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function IMe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>kMe(n,t),touchend:n=>AMe(n,t),touchmove:n=>EMe(n,t)}}function MMe(e,t){const n=t.value,r=n?.parent?e.parentElement:e,a=n?.options??{passive:!0},o=t.instance?.$.uid;if(!r||o===void 0)return;const i=IMe(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[o]=i,U9(i).forEach(l=>{r.addEventListener(l,i[l],a)})}function DMe(e,t){const n=t.value?.parent?e.parentElement:e,r=t.instance?.$.uid;if(!n?._touchHandlers||r===void 0)return;const a=n._touchHandlers[r];U9(a).forEach(o=>{n.removeEventListener(o,a[o])}),delete n._touchHandlers[r]}const F_={mounted:MMe,unmounted:DMe},sX=Symbol.for("vuetify:v-window"),uX=Symbol.for("vuetify:v-window-group"),H_=ie({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...nt(),...Ht(),...pn()},"VWindow"),gf=Te()({name:"VWindow",directives:{vTouch:F_},props:H_(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isRtl:a}=ta(),{t:o}=An(),i=sf(e,uX),l=f.ref(),s=f.computed(()=>a.value?!e.reverse:e.reverse),u=f.shallowRef(!1),c=f.computed(()=>{if(e.crossfade)return"v-window-crossfade-transition";const x=e.direction==="vertical"?"y":"x",A=(s.value?!u.value:u.value)?"-reverse":"";return`v-window-${x}${A}-transition`}),d=f.shallowRef(0),h=f.ref(void 0),v=f.computed(()=>i.items.value.findIndex(x=>i.selected.value.includes(x.id)));f.watch(v,(x,T)=>{let A;const E={left:0,top:0};Bn&&T>=0&&(A=p_(l.value),E.left=A?.scrollLeft,E.top=A?.scrollTop);const I=i.items.value.length,M=I-1;I<=2?u.value=x{if(!Bn||!A)return;A.scrollTop!==E.top&&A.scrollTo({...E,behavior:"instant"}),requestAnimationFrame(()=>{if(!A)return;A.scrollTop!==E.top&&A.scrollTo({...E,behavior:"instant"})})})},{flush:"sync"}),f.provide(sX,{transition:c,isReversed:u,transitionCount:d,transitionHeight:h,rootRef:l});const p=f.toRef(()=>e.continuous||v.value!==0),m=f.toRef(()=>e.continuous||v.value!==i.items.value.length-1);function g(){p.value&&i.prev()}function y(){m.value&&i.next()}const b=f.computed(()=>{const x=[],T={icon:a.value?e.nextIcon:e.prevIcon,class:`v-window__${s.value?"right":"left"}`,onClick:i.prev,"aria-label":o("$vuetify.carousel.prev")};x.push(p.value?n.prev?n.prev({props:T}):f.createVNode(_t,T,null):f.createElementVNode("div",null,null));const A={icon:a.value?e.prevIcon:e.nextIcon,class:`v-window__${s.value?"left":"right"}`,onClick:i.next,"aria-label":o("$vuetify.carousel.next")};return x.push(m.value?n.next?n.next({props:A}):f.createVNode(_t,A,null):f.createElementVNode("div",null,null)),x}),w=f.computed(()=>e.touch===!1?e.touch:{...{left:()=>{s.value?g():y()},right:()=>{s.value?y():g()},start:T=>{let{originalEvent:A}=T;A.stopPropagation()}},...e.touch===!0?{}:e.touch});function S(x){(e.direction==="horizontal"&&x.key==="ArrowLeft"||e.direction==="vertical"&&x.key==="ArrowUp")&&(x.preventDefault(),g(),f.nextTick(()=>{p.value?_(0):_(1)})),(e.direction==="horizontal"&&x.key==="ArrowRight"||e.direction==="vertical"&&x.key==="ArrowDown")&&(x.preventDefault(),y(),f.nextTick(()=>{m.value?_(1):_(0)}))}function _(x){const T=b.value[x];if(!T)return;(Array.isArray(T)?T[0]:T).el?.focus()}return Ae(()=>f.withDirectives(f.createVNode(e.tag,{ref:l,class:f.normalizeClass(["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover","v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},r.value,e.class]),style:f.normalizeStyle([e.style,{"--v-window-transition-duration":bu()?null:Oe(e.transitionDuration,"ms")}])},{default:()=>[f.createElementVNode("div",{class:"v-window__container",style:{height:h.value}},[n.default?.({group:i}),e.showArrows!==!1&&f.createElementVNode("div",{class:f.normalizeClass(["v-window__controls",{"v-window__controls--left":e.verticalArrows==="left"||e.verticalArrows===!0},{"v-window__controls--right":e.verticalArrows==="right"}]),onKeydown:S},[b.value])]),n.additional?.({group:i})]}),[[F_,w.value]])),{group:i}}}),VMe=ie({color:String,cycle:Boolean,delimiterIcon:{type:st,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...H_({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),PMe=Te()({name:"VCarousel",props:VMe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{t:a}=An(),o=f.ref();let i=-1;f.watch(r,s),f.watch(()=>e.interval,s),f.watch(()=>e.cycle,c=>{c?s():window.clearTimeout(i)}),f.onMounted(l);function l(){!e.cycle||!o.value||(i=window.setTimeout(o.value.group.next,Number(e.interval)>0?Number(e.interval):6e3))}function s(){window.clearTimeout(i),window.requestAnimationFrame(l)}function u(c,d){(e.direction==="horizontal"&&c.key==="ArrowLeft"||e.direction==="vertical"&&c.key==="ArrowUp")&&(c.preventDefault(),d.prev(),f.nextTick(()=>o.value?.$el.querySelector(".v-btn--active")?.focus())),(e.direction==="horizontal"&&c.key==="ArrowRight"||e.direction==="vertical"&&c.key==="ArrowDown")&&(c.preventDefault(),d.next(),f.nextTick(()=>o.value?.$el.querySelector(".v-btn--active")?.focus()))}return Ae(()=>{const c=gf.filterProps(e);return f.createVNode(gf,f.mergeProps({ref:o},c,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:Oe(e.height)},e.style]}),{default:n.default,additional:d=>{let{group:h}=d;return f.createElementVNode(f.Fragment,null,[!e.hideDelimiters&&f.createElementVNode("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[h.items.value.length>0&&f.createVNode(zt,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[h.items.value.map((v,p)=>{const m={id:`carousel-item-${v.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",p+1,h.items.value.length),class:["v-carousel__controls__item",h.isSelected(v.id)&&"v-btn--active"],onClick:()=>h.select(v.id,!0),onKeydown:g=>u(g,h)};return n.item?n.item({props:m,item:v}):f.createVNode(_t,f.mergeProps(v,m),null)})]})]),e.progress&&f.createVNode(Ug,{absolute:!0,class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(h.getItemIndex(r.value)+1)/h.items.value.length*100},null)])},prev:n.prev,next:n.next})}),{}}}),z_=ie({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...nt(),...xv(),...wN()},"VWindowItem"),yf=Te()({name:"VWindowItem",directives:{vTouch:F_},props:z_(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(sX),a=lf(e,uX),{isBooted:o}=wv();if(!r||!a)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const i=f.shallowRef(!1),l=f.computed(()=>o.value&&(r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function s(){!i.value||!r||(i.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function u(){i.value||!r||(i.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=Oe(r.rootRef.value?.clientHeight)),r.transitionCount.value+=1)}function c(){s()}function d(p){i.value&&f.nextTick(()=>{!l.value||!i.value||!r||(r.transitionHeight.value=Oe(p.clientHeight))})}const h=f.computed(()=>{const p=r.isReversed.value?e.reverseTransition:e.transition;return l.value?{name:typeof p!="string"?r.transition.value:p,onBeforeEnter:u,onAfterEnter:s,onEnterCancelled:c,onBeforeLeave:u,onAfterLeave:s,onLeaveCancelled:c,onEnter:d}:!1}),{hasContent:v}=SN(e,a.isSelected);return Ae(()=>f.createVNode(Wo,{transition:h.value,disabled:!o.value},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-window-item",a.selectedClass.value,e.class]),style:f.normalizeStyle(e.style)},[v.value&&n.default?.()]),[[f.vShow,a.isSelected.value]])]})),{groupItem:a}}}),NMe=ie({...ZY(),...z_()},"VCarouselItem"),LMe=Te()({name:"VCarouselItem",inheritAttrs:!1,props:NMe(),setup(e,t){let{slots:n,attrs:r}=t;Ae(()=>{const a=Bc.filterProps(e),o=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({class:["v-carousel-item",e.class]},o),{default:()=>[f.createVNode(Bc,f.mergeProps(r,a),n)]})})}}),OMe=Oc("v-code","code"),RMe=ie({color:{type:Object},disabled:Boolean,readonly:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...nt()},"VColorPickerCanvas"),BMe=zo({name:"VColorPickerCanvas",props:RMe(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const r=f.shallowRef(!1),a=f.ref(),o=f.shallowRef(parseFloat(e.width)),i=f.shallowRef(parseFloat(e.height)),l=f.ref({x:0,y:0}),s=f.toRef(()=>!e.disabled&&!e.readonly),u=f.computed({get:()=>l.value,set(y){if(!a.value)return;const{x:b,y:w}=y;l.value=y,n("update:color",{h:e.color?.h??0,s:Fn(b,0,o.value)/o.value,v:1-Fn(w,0,i.value)/i.value,a:e.color?.a??1})}}),c=f.computed(()=>{const{x:y,y:b}=u.value,w=parseInt(e.dotSize,10)/2;return{width:Oe(e.dotSize),height:Oe(e.dotSize),transform:`translate(${Oe(y-w)}, ${Oe(b-w)})`}}),{resizeRef:d}=Gl(y=>{if(!d.el?.offsetParent)return;const{width:b,height:w}=y[0].contentRect;o.value=Math.round(b),i.value=Math.round(w)});function h(y,b,w){const{left:S,top:_,width:x,height:T}=w;u.value={x:Fn(y-S,0,x),y:Fn(b-_,0,T)}}function v(y){y.type==="mousedown"&&y.preventDefault(),s.value&&(p(y),window.addEventListener("mousemove",p),window.addEventListener("mouseup",m),window.addEventListener("touchmove",p),window.addEventListener("touchend",m))}function p(y){if(!s.value||!a.value)return;r.value=!0;const b=Z_e(y);h(b.clientX,b.clientY,a.value.getBoundingClientRect())}function m(){window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",m),window.removeEventListener("touchmove",p),window.removeEventListener("touchend",m)}function g(){if(!a.value)return;const y=a.value,b=y.getContext("2d");if(!b)return;const w=b.createLinearGradient(0,0,y.width,0);w.addColorStop(0,"hsla(0, 0%, 100%, 1)"),w.addColorStop(1,`hsla(${e.color?.h??0}, 100%, 50%, 1)`),b.fillStyle=w,b.fillRect(0,0,y.width,y.height);const S=b.createLinearGradient(0,0,0,y.height);S.addColorStop(0,"hsla(0, 0%, 0%, 0)"),S.addColorStop(1,"hsla(0, 0%, 0%, 1)"),b.fillStyle=S,b.fillRect(0,0,y.width,y.height)}return f.watch(()=>e.color?.h,g,{immediate:!0}),f.watch(()=>[o.value,i.value],(y,b)=>{g(),l.value={x:u.value.x*y[0]/b[0],y:u.value.y*y[1]/b[1]}},{flush:"post"}),f.watch(()=>e.color,()=>{if(r.value){r.value=!1;return}l.value=e.color?{x:e.color.s*o.value,y:(1-e.color.v)*i.value}:{x:0,y:0}},{deep:!0,immediate:!0}),f.onMounted(()=>g()),Ae(()=>f.createElementVNode("div",{ref:d,class:f.normalizeClass(["v-color-picker-canvas",e.class]),style:f.normalizeStyle(e.style),onMousedown:v,onTouchstartPassive:v},[f.createElementVNode("canvas",{ref:a,width:o.value,height:i.value},null),e.color&&f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:f.normalizeStyle(c.value)},null)])),{}}});function FMe(e,t){if(t){const{a:n,...r}=e;return r}return e}function HMe(e,t){if(t==null||typeof t=="string"){const n=typeof e.a=="number"&&e.a<1;if(t?.startsWith("rgb(")){const{r:a,g:o,b:i,a:l}=xu(e);return`rgb(${a} ${o} ${i}`+(n?` / ${l})`:")")}else if(t?.startsWith("hsl(")){const{h:a,s:o,l:i,a:l}=kP(e);return`hsl(${a} ${Math.round(o*100)} ${Math.round(i*100)}`+(n?` / ${l})`:")")}const r=TY(e);return e.a===1?r.slice(0,7):r}if(typeof t=="object"){let n;return fv(t,["r","g","b"])?n=xu(e):fv(t,["h","s","l"])?n=kP(e):fv(t,["h","s","v"])&&(n=e),FMe(n,!fv(t,["a"])&&e.a===1)}return e}const $g={h:0,s:0,v:0,a:1},GN={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:xu,from:Z1},zMe={...GN,inputs:GN.inputs?.slice(0,3)},UN={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:kP,from:AP},WMe={...UN,inputs:UN.inputs.slice(0,3)},cX={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:TY,from:wTe},GMe={...cX,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},Lv={rgb:zMe,rgba:GN,hsl:WMe,hsla:UN,hex:GMe,hexa:cX},UMe=e=>{let{label:t,...n}=e;return f.createElementVNode("div",{class:"v-color-picker-edit__input"},[f.createElementVNode("input",f.normalizeProps(f.guardReactiveProps(n)),null),f.createElementVNode("span",null,[t])])},YMe=ie({color:Object,disabled:Boolean,readonly:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Lv).includes(e)},modes:{type:Array,default:()=>Object.keys(Lv),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Lv).includes(t))},...nt()},"VColorPickerEdit"),jMe=zo({name:"VColorPickerEdit",props:YMe(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),a=f.computed(()=>e.modes.map(i=>({...Lv[i],name:i}))),o=f.computed(()=>{const i=a.value.find(s=>s.name===e.mode);if(!i)return[];const l=e.color?i.to(e.color):null;return i.inputs?.map(s=>{let{getValue:u,getColor:c,localeKey:d,...h}=s;return{...i.inputProps,...h,ariaLabel:r(`$vuetify.colorPicker.ariaLabel.${d}`),disabled:e.disabled,readonly:e.readonly,value:l&&u(l),onChange:v=>{const p=v.target;p&&n("update:color",i.from(c(l??i.to($g),p.value)))}}})});return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-edit",e.class]),style:f.normalizeStyle(e.style)},[o.value?.map(i=>f.createVNode(UMe,i,null)),a.value.length>1&&f.createVNode(_t,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":r("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const i=a.value.findIndex(l=>l.name===e.mode);n("update:mode",a.value[(i+1)%a.value.length].name)}},null)])),{}}}),YN=Symbol.for("vuetify:v-slider");function jN(e,t,n){const r=n==="vertical",a=t.getBoundingClientRect(),o="touches"in e?e.touches[0]:e;return r?o.clientY-(a.top+a.height/2):o.clientX-(a.left+a.width/2)}function KMe(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const dX=ie({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"||e==="hover"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$n(),...Kr({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),fX=e=>{const t=f.computed(()=>parseFloat(e.min)),n=f.computed(()=>parseFloat(e.max)),r=f.computed(()=>Number(e.step)>0?parseFloat(e.step):0),a=f.computed(()=>Math.max(K9(r.value),K9(t.value)));function o(i){if(i=parseFloat(i),r.value<=0)return i;const l=Fn(i,t.value,n.value),s=t.value%r.value;let u=Math.round((l-s)/r.value)*r.value+s;return l>u&&u+r.value>n.value&&(u=n.value),parseFloat(Math.min(u,n.value).toFixed(a.value))}return{min:t,max:n,step:r,decimals:a,roundValue:o}},hX=e=>{let{props:t,steps:n,onSliderStart:r,onSliderMove:a,onSliderEnd:o,getActiveThumb:i}=e;const l=Xg(t),{isRtl:s}=ta(),u=f.toRef(()=>t.reverse),c=f.computed(()=>t.direction==="vertical"),d=f.computed(()=>c.value!==u.value),{min:h,max:v,step:p,decimals:m,roundValue:g}=n,y=f.computed(()=>parseInt(t.thumbSize,10)),b=f.computed(()=>parseInt(t.tickSize,10)),w=f.computed(()=>parseInt(t.trackSize,10)),S=f.computed(()=>(v.value-h.value)/p.value),_=f.computed(()=>t.error||l.isDisabled.value?void 0:t.thumbColor??t.color),x=f.computed(()=>t.error||l.isDisabled.value?void 0:t.thumbColor),T=f.computed(()=>t.error||l.isDisabled.value?void 0:t.trackColor??t.color),A=f.computed(()=>t.error||l.isDisabled.value?void 0:t.trackFillColor??t.color),E=f.shallowRef(!1),I=f.shallowRef(0),M=f.ref(),N=f.ref();function D($){const ae=M.value?.$el;if(!ae)return;const de=t.direction==="vertical",ve=de?"top":"left",ge=de?"height":"width",Se=de?"clientY":"clientX",{[ve]:Re,[ge]:ee}=ae.getBoundingClientRect(),be=KMe($,Se);let Ie=Fn((be-Re-I.value)/ee)||0;return(de?d.value:d.value!==s.value)&&(Ie=1-Ie),g(h.value+Ie*(v.value-h.value))}const P=$=>{const ae=D($);ae!=null&&o({value:ae}),E.value=!1,I.value=0},O=$=>{const ae=D($);N.value=i($),N.value&&(E.value=!0,N.value.contains($.target)?I.value=jN($,N.value,t.direction):(I.value=0,ae!=null&&a({value:ae})),ae!=null&&r({value:ae}),f.nextTick(()=>N.value?.focus()))},L={passive:!0,capture:!0};function R($){const ae=D($);ae!=null&&a({value:ae})}function B($){$.stopPropagation(),$.preventDefault(),P($),window.removeEventListener("mousemove",R,L),window.removeEventListener("mouseup",B)}function z($){P($),window.removeEventListener("touchmove",R,L),$.target?.removeEventListener("touchend",z)}function H($){O($),window.addEventListener("touchmove",R,L),$.target?.addEventListener("touchend",z,{passive:!1})}function G($){$.button===0&&($.preventDefault(),O($),window.addEventListener("mousemove",R,L),window.addEventListener("mouseup",B,{passive:!1}))}f.onScopeDispose(()=>{window.removeEventListener("touchmove",R),window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",B)});const j=$=>{const ae=($-h.value)/(v.value-h.value)*100;return Fn(isNaN(ae)?0:ae,0,100)},U=f.toRef(()=>t.showTicks),Y=f.computed(()=>U.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map($=>({value:$,position:j($),label:$.toString()})):Object.keys(t.ticks).map($=>({value:parseFloat($),position:j(parseFloat($)),label:t.ticks[$]})):S.value!==1/0?wu(S.value+1).map($=>{const ae=h.value+$*p.value;return{value:ae,position:j(ae)}}):[]:[]),Z=f.computed(()=>Y.value.some($=>{let{label:ae}=$;return!!ae})),ne={activeThumbRef:N,color:f.toRef(()=>t.color),decimals:m,disabled:l.isDisabled,direction:f.toRef(()=>t.direction),elevation:f.toRef(()=>t.elevation),hasLabels:Z,isReversed:u,indexFromEnd:d,min:h,max:v,mousePressed:E,noKeyboard:f.toRef(()=>t.noKeyboard),numTicks:S,onSliderMousedown:G,onSliderTouchstart:H,parsedTicks:Y,parseMouseMove:D,position:j,readonly:l.isReadonly,rounded:f.toRef(()=>t.rounded),roundValue:g,showTicks:U,startOffset:I,step:p,thumbSize:y,thumbColor:_,thumbLabelColor:x,thumbLabel:f.toRef(()=>t.thumbLabel),ticks:f.toRef(()=>t.ticks),tickSize:b,trackColor:T,trackContainerRef:M,trackFillColor:A,trackSize:w,vertical:c};return f.provide(YN,ne),ne},XMe=ie({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...nt()},"VSliderThumb"),KN=Te()({name:"VSliderThumb",directives:{vRipple:eo},props:XMe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.inject(YN),{isRtl:o,rtlClasses:i}=ta();if(!a)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:l,max:s,thumbColor:u,thumbLabelColor:c,step:d,disabled:h,thumbSize:v,thumbLabel:p,direction:m,isReversed:g,vertical:y,readonly:b,elevation:w,mousePressed:S,decimals:_,indexFromEnd:x}=a,T=f.shallowRef(!1),A=f.shallowRef(!1),E=f.computed(()=>h.value?void 0:w.value),{elevationClasses:I}=pa(E),{textColorClasses:M,textColorStyles:N}=Wa(u),{backgroundColorClasses:D,backgroundColorStyles:P}=Ln(c),{pageup:O,pagedown:L,end:R,home:B,left:z,right:H,down:G,up:j}=pP,U=[O,L,R,B,z,H,G,j],Y=f.computed(()=>d.value?[1,2,3]:[1,5,10]);function Z($,ae){if(e.noKeyboard||h.value||!U.includes($.key))return;$.preventDefault();const de=d.value||.1,ve=(s.value-l.value)/de;if([z,H,G,j].includes($.key)){const Se=(y.value?[o.value?z:H,g.value?G:j]:x.value!==o.value?[z,j]:[H,j]).includes($.key)?1:-1,Re=$.shiftKey?2:$.ctrlKey?1:0;Se===-1&&ae===s.value&&!Re&&!Number.isInteger(ve)?ae=ae-ve%1*de:ae=ae+Se*de*Y.value[Re]}else if($.key===B)ae=l.value;else if($.key===R)ae=s.value;else{const ge=$.key===L?1:-1;ae=ae-ge*de*(ve>100?ve/10:10)}return Math.max(e.min,Math.min(e.max,ae))}function ne($){const ae=Z($,e.modelValue);ae!=null&&(A.value=!1,r("update:modelValue",ae))}return f.watch(()=>e.focused,$=>{$&&(A.value=!1)}),Ae(()=>{const $=Oe(x.value?100-e.position:e.position,"%"),ae=p.value==="always"||p.value===!0&&e.focused||p.value==="hover"&&(T.value||e.focused&&!A.value);return f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&S.value},e.class,i.value]),style:f.normalizeStyle([{"--v-slider-thumb-position":$,"--v-slider-thumb-size":Oe(v.value)},e.style]),role:"slider",tabindex:h.value?-1:0,"aria-label":e.name,"aria-valuemin":l.value,"aria-valuemax":s.value,"aria-valuenow":e.modelValue,"aria-readonly":!!b.value,"aria-orientation":m.value,onKeydown:b.value?void 0:ne,onMouseenter:()=>{T.value=!0},onMouseleave:()=>{T.value=!1,A.value=!0}},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__surface",M.value,I.value]),style:f.normalizeStyle(N.value)},null),f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__ripple",M.value]),style:f.normalizeStyle(N.value)},null),[[eo,e.ripple,null,{circle:!0,center:!0}]]),f.createVNode(BP,{origin:"bottom center"},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:"v-slider-thumb__label-container"},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-thumb__label",D.value]),style:f.normalizeStyle(P.value)},[f.createElementVNode("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(d.value?_.value:1)]),f.createElementVNode("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[f.vShow,ae]])]})])}),{}}}),ZMe=ie({start:{type:Number,required:!0},stop:{type:Number,required:!0},...nt()},"VSliderTrack"),vX=Te()({name:"VSliderTrack",props:ZMe(),emits:{},setup(e,t){let{slots:n}=t;const r=f.inject(YN);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:a,parsedTicks:o,rounded:i,showTicks:l,tickSize:s,trackColor:u,trackFillColor:c,trackSize:d,vertical:h,min:v,max:p,indexFromEnd:m}=r,{roundedClasses:g}=cr(i),{backgroundColorClasses:y,backgroundColorStyles:b}=Ln(c),{backgroundColorClasses:w,backgroundColorStyles:S}=Ln(u),_=f.computed(()=>`inset-${h.value?"block":"inline"}-${m.value?"end":"start"}`),x=f.computed(()=>h.value?"height":"width"),T=f.computed(()=>({[_.value]:"0%",[x.value]:"100%"})),A=f.computed(()=>e.stop-e.start),E=f.computed(()=>({[_.value]:Oe(e.start,"%"),[x.value]:Oe(A.value,"%")})),I=f.computed(()=>l.value?(h.value?o.value.slice().reverse():o.value).map((N,D)=>{const P=N.value!==v.value&&N.value!==p.value?Oe(N.position,"%"):void 0;return f.createElementVNode("div",{key:N.value,class:f.normalizeClass(["v-slider-track__tick",{"v-slider-track__tick--filled":N.position>=e.start&&N.position<=e.stop,"v-slider-track__tick--first":N.value===v.value,"v-slider-track__tick--last":N.value===p.value}]),style:{[_.value]:P}},[(N.label||n["tick-label"])&&f.createElementVNode("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:N,index:D})??N.label])])}):[]);return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track",g.value,e.class]),style:f.normalizeStyle([{"--v-slider-track-size":Oe(d.value),"--v-slider-tick-size":Oe(s.value)},e.style])},[f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__background",w.value,{"v-slider-track__background--opacity":!!a.value||!c.value}]),style:{...T.value,...S.value}},null),f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__fill",y.value]),style:{...E.value,...b.value}},null),l.value&&f.createElementVNode("div",{class:f.normalizeClass(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":l.value==="always"}])},[I.value])])),{}}}),JMe=ie({...sw(),...dX(),...Gc(),modelValue:{type:[Number,String],default:0}},"VSlider"),XN=Te()({name:"VSlider",inheritAttrs:!1,props:JMe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:a}=t;const o=f.ref(),i=f.ref(),{rtlClasses:l}=ta(),s=fX(e),u=ot(e,"modelValue",void 0,I=>s.roundValue(I??s.min.value)),{min:c,max:d,mousePressed:h,roundValue:v,onSliderMousedown:p,onSliderTouchstart:m,trackContainerRef:g,position:y,hasLabels:b,disabled:w,readonly:S,noKeyboard:_}=hX({props:e,steps:s,onSliderStart:()=>{!w.value&&!S.value&&r("start",u.value)},onSliderEnd:I=>{let{value:M}=I;const N=v(M);!w.value&&!S.value&&(u.value=N),r("end",N)},onSliderMove:I=>{let{value:M}=I;!w.value&&!S.value&&(u.value=v(M))},getActiveThumb:()=>o.value?.$el}),{isFocused:x,focus:T,blur:A}=Wc(e),E=f.computed(()=>y(u.value));return Ae(()=>{const I=to.filterProps(e),[M,N]=Su(a),D=!!(e.label||n.label||n.prepend);return f.createVNode(to,f.mergeProps({ref:i,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||b.value,"v-slider--focused":x.value,"v-slider--pressed":h.value,"v-slider--disabled":w.value},l.value,e.class],style:e.style},I,M,{focused:x.value}),{...n,prepend:D?P=>f.createElementVNode(f.Fragment,null,[n.label?.(P)??(e.label?f.createVNode(Kg,{id:P.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(P)]):void 0,default:P=>{let{id:O,messagesId:L}=P;return f.createElementVNode("div",{class:"v-slider__container",onMousedown:S.value?void 0:p,onTouchstartPassive:S.value?void 0:m},[f.createElementVNode("input",{id:O.value,name:e.name||O.value,disabled:w.value,readonly:S.value,tabindex:"-1",value:u.value},null),f.createVNode(vX,{ref:g,start:0,stop:E.value},{"tick-label":n["tick-label"]}),f.createVNode(KN,f.mergeProps({ref:o,"aria-describedby":L.value,focused:x.value,noKeyboard:_.value,min:c.value,max:d.value,modelValue:u.value,"onUpdate:modelValue":R=>u.value=R,position:E.value,elevation:e.elevation,onFocus:T,onBlur:A,ripple:e.ripple,name:e.name},N),{"thumb-label":n["thumb-label"]})])}})}),ma({focus:()=>o.value?.$el.focus()},i)}}),pX=ie({color:{type:Object},disabled:Boolean,readonly:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:st,default:"$eyeDropper"},...nt()},"VColorPickerPreview"),QMe=zo({name:"VColorPickerPreview",props:pX(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),a=new AbortController,o=f.toRef(()=>!e.disabled&&!e.readonly);f.onUnmounted(()=>a.abort());async function i(){if(!F9||!o.value)return;const l=new window.EyeDropper;try{const s=await l.open({signal:a.signal}),u=Z1(ll(s.sRGBHex));n("update:color",{...e.color??$g,...u})}catch{}}return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:f.normalizeStyle(e.style)},[F9&&!e.hideEyeDropper&&f.createElementVNode("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[f.createVNode(_t,{"aria-label":r("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,readonly:e.readonly,icon:e.eyeDropperIcon,variant:"plain",onClick:i},null)]),f.createElementVNode("div",{class:"v-color-picker-preview__dot"},[f.createElementVNode("div",{style:{background:xY(e.color??$g)}},null)]),f.createElementVNode("div",{class:"v-color-picker-preview__sliders"},[f.createVNode(XN,{class:"v-color-picker-preview__track v-color-picker-preview__hue","aria-label":r("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:e.color?.h,"onUpdate:modelValue":l=>n("update:color",{...e.color??$g,h:l}),step:1,min:0,max:360,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&f.createVNode(XN,{class:"v-color-picker-preview__track v-color-picker-preview__alpha","aria-label":r("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:e.color?.a??1,"onUpdate:modelValue":l=>n("update:color",{...e.color??$g,a:l}),step:.01,min:0,max:1,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])),{}}}),qMe={red:{base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink:{base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple:{base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple:{base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo:{base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue:{base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue:{base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan:{base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal:{base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green:{base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen:{base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime:{base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow:{base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber:{base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange:{base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange:{base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown:{base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey:{base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey:{base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades:{black:"#000000",white:"#ffffff",transparent:"#ffffff00"}},$Me=ie({swatches:{type:Array,default:()=>eDe(qMe)},disabled:Boolean,readonly:Boolean,color:Object,maxHeight:[Number,String],...nt()},"VColorPickerSwatches");function eDe(e){return Object.keys(e).map(t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]})}const tDe=zo({name:"VColorPickerSwatches",props:$Me(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const r=f.toRef(()=>!e.disabled&&!e.readonly);function a(o){!r.value||!o||n("update:color",o)}return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-swatches",e.class]),style:f.normalizeStyle([{maxHeight:Oe(e.maxHeight)},e.style])},[f.createElementVNode("div",null,[e.swatches.map(o=>f.createElementVNode("div",{class:"v-color-picker-swatches__swatch"},[o.map(i=>{const l=ll(i),s=Z1(l),u=SY(l);return f.createElementVNode("div",{class:f.normalizeClass(["v-color-picker-swatches__color",{"v-color-picker-swatches__color--disabled":e.disabled}]),onClick:()=>a(s)},[f.createElementVNode("div",{style:{background:u}},[e.color&&Ia(e.color,s)?f.createVNode(Ct,{size:"x-small",icon:"$success",color:_Te(i,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),nDe=Oc("v-picker-title"),W_=ie({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...CN()},"VPicker"),ey=Te()({name:"VPicker",props:W_(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:a}=Ln(()=>e.color);return Ae(()=>{const o=Uc.filterProps(e),i=!e.hideTitle&&!!(e.title||n.title);return f.createVNode(Uc,f.mergeProps(o,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>[!e.hideHeader&&f.createElementVNode("div",{key:"header",class:f.normalizeClass(["v-picker__header-wrapper",r.value]),style:f.normalizeStyle([a.value])},[i&&f.createVNode(nDe,{key:"picker-title"},{default:()=>[n.title?.()??e.title]}),n.header&&f.createElementVNode("div",{class:"v-picker__header"},[n.header()])]),f.createElementVNode("div",{class:"v-picker__body"},[n.default?.()]),n.actions&&f.createVNode(zt,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[f.createElementVNode("div",{class:"v-picker__actions"},[n.actions()])]})]})}),{}}}),rDe=ie({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Lv).includes(e)},modes:{type:Array,default:()=>Object.keys(Lv),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(Lv).includes(t))},showSwatches:Boolean,readonly:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...W_({hideHeader:!0}),...vi(pX(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker"),aDe=zo({name:"VColorPicker",props:rDe(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"mode"),a=f.ref(null),o=ot(e,"modelValue",void 0,c=>{if(c==null||c==="")return null;let d;try{d=Z1(ll(c))}catch(h){return Ea(h),null}return d},c=>c?HMe(c,e.modelValue):null),i=f.computed(()=>o.value?{...o.value,h:a.value??o.value.h}:null),{rtlClasses:l}=ta();let s=!0;f.watch(o,c=>{if(!s){s=!0;return}c&&(a.value=c.h)},{immediate:!0});const u=c=>{s=!1,a.value=c.h,o.value=c};return f.onBeforeMount(()=>{e.modes.includes(r.value)||(r.value=e.modes[0])}),_r({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),Ae(()=>{const c=ey.filterProps(e);return f.createVNode(ey,f.mergeProps(c,{class:["v-color-picker",l.value,e.class],style:[{"--v-color-picker-color-hsv":xY({...i.value??$g,a:1})},e.style]}),{...n,default:()=>f.createElementVNode(f.Fragment,null,[!e.hideCanvas&&f.createVNode(BMe,{key:"canvas",color:i.value,"onUpdate:color":u,disabled:e.disabled,readonly:e.readonly,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&f.createElementVNode("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&f.createVNode(QMe,{key:"preview",color:i.value,"onUpdate:color":u,hideAlpha:!r.value.endsWith("a"),disabled:e.disabled,readonly:e.readonly,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&f.createVNode(jMe,{key:"edit",modes:e.modes,mode:r.value,"onUpdate:mode":d=>r.value=d,color:i.value,"onUpdate:color":u,disabled:e.disabled,readonly:e.readonly},null)]),e.showSwatches&&f.createVNode(tDe,{key:"swatches",color:i.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled,readonly:e.readonly},null)])})}),{}}}),oDe=ie({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...Ev({filterKeys:["title"]}),...DN({hideNoData:!0,returnObject:!0}),...Kt(mw({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),iDe=Te()({name:"VCombobox",props:oDe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.ref(),i=f.shallowRef(!1),l=f.shallowRef(!0),s=f.shallowRef(!1),u=f.ref(),c=f.ref(),d=f.shallowRef(-1);let h=!1;const{items:v,transformIn:p,transformOut:m}=cN(e),{textColorClasses:g,textColorStyles:y}=Wa(()=>o.value?.color),{InputIcon:b}=lw(e),w=ot(e,"modelValue",[],oe=>p(Kn(oe)),oe=>{const Le=m(oe);return e.multiple?Le:Le[0]??null}),S=Xg(e),_=f.toRef(()=>e.closableChips&&!S.isReadonly.value&&!S.isDisabled.value),x=f.computed(()=>!!(e.chips||r.chip)),T=f.computed(()=>x.value||!!r.selection),A=f.shallowRef(!e.multiple&&!T.value?w.value[0]?.title??"":""),E=f.shallowRef(null),I=f.computed({get:()=>A.value,set:async oe=>{if(A.value=oe??"",oe===null||oe===""&&!e.multiple&&!T.value?w.value=[]:!e.multiple&&!T.value&&(w.value=[Bs(e,oe)],f.nextTick(()=>c.value?.scrollToIndex(0))),oe&&e.multiple&&e.delimiters?.length){const Le=yt(oe);Le.length>1&&(St(Le),A.value="")}oe||(d.value=-1),l.value=!oe}}),M=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(w.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?w.value.length:I.value.length),{filteredItems:N,getMatches:D}=Iv(e,v,()=>E.value??(e.alwaysFilter||!l.value?I.value:"")),P=f.computed(()=>e.hideSelected&&E.value===null?N.value.filter(oe=>!w.value.some(Le=>Le.value===oe.value)):N.value),O=f.computed(()=>e.hideNoData&&!P.value.length||S.isReadonly.value||S.isDisabled.value),L=ot(e,"menu"),R=f.computed({get:()=>L.value,set:oe=>{L.value&&!oe&&u.value?.ΨopenChildren.size||oe&&O.value||(L.value=oe)}}),{menuId:B,ariaExpanded:z,ariaControls:H}=MN(e,R);f.watch(A,oe=>{h?f.nextTick(()=>h=!1):i.value&&!R.value&&(R.value=!0),n("update:search",oe)}),f.watch(w,oe=>{!e.multiple&&!T.value&&(A.value=oe[0]?.title??"")});const G=f.computed(()=>w.value.map(oe=>oe.value)),j=f.computed(()=>P.value.find(oe=>oe.type==="item"&&!oe.props.disabled)),U=f.computed(()=>(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&I.value===j.value?.title)&&P.value.length>0&&!l.value&&!s.value),Y=f.ref(),Z=f.ref(),ne=f.ref(),$=kN(Y,o),{onTabKeydown:ae}=AN({groups:[{type:"element",contentRef:Z},{type:"list",contentRef:Y,displayItemsCount:()=>P.value.length},{type:"element",contentRef:ne}],onLeave:()=>{R.value=!1,o.value?.focus()}});function de(oe){h=!0,f.nextTick(()=>h=!1),e.openOnClear&&(R.value=!0)}function ve(){O.value||(R.value=!0)}function ge(oe){O.value||(i.value&&(oe.preventDefault(),oe.stopPropagation()),R.value=!R.value)}function Se(oe){oe.key==="Tab"&&ae(oe),Y.value?.$el.contains(oe.target)&&(Fg(oe)||oe.key==="Backspace")&&o.value?.focus()}function Re(oe){if(K_e(oe)||S.isReadonly.value)return;const Le=o.value?.selectionStart,je=w.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(oe.key)&&oe.preventDefault(),["Enter","ArrowDown"].includes(oe.key)&&(R.value=!0),["Escape"].includes(oe.key)&&(R.value=!1),U.value&&["Enter","Tab"].includes(oe.key)&&j.value&&!w.value.some(fe=>{let{value:_e}=fe;return _e===j.value.value})&&He(j.value),oe.key==="ArrowDown"&&U.value&&Y.value?.focus("next"),oe.key==="Enter"&&I.value&&(He(Bs(e,I.value),!0,!0),T.value&&(A.value="")),["Backspace","Delete"].includes(oe.key)){if(!e.multiple&&T.value&&w.value.length>0&&!I.value)return He(w.value[0],!1);if(~d.value){oe.preventDefault();const fe=d.value;He(w.value[d.value],!1),d.value=fe>=je-1?je-2:fe}else oe.key==="Backspace"&&!I.value&&(d.value=je-1);return}if(e.multiple)if(oe.key==="ArrowLeft"){if(d.value<0&&Le&&Le>0)return;const fe=d.value>-1?d.value-1:je-1;w.value[fe]?d.value=fe:(d.value=-1,o.value?.setSelectionRange(I.value.length,I.value.length))}else if(oe.key==="ArrowRight"){if(d.value<0)return;const fe=d.value+1;w.value[fe]?d.value=fe:(d.value=-1,o.value?.setSelectionRange(0,0))}else~d.value&&Fg(oe)&&(d.value=-1)}function ee(oe){const Le=oe?.clipboardData?.getData("Text")??"",je=yt(Le);je.length>1&&e.multiple&&(oe.preventDefault(),St(je))}function be(){e.eager&&c.value?.calculateVisibleItems()}function Ie(){i.value&&o.value?.focus(),l.value=!0,E.value=null}function He(oe){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!(!oe||oe.props.disabled))if(e.multiple){const fe=w.value.findIndex($e=>(e.valueComparator||Ia)($e.value,oe.value)),_e=Le??!~fe;if(~fe){const $e=_e?[...w.value,oe]:[...w.value];$e.splice(fe,1),w.value=$e}else _e&&(w.value=[...w.value,oe]);e.clearOnSelect&&(I.value="")}else{const fe=Le!==!1;w.value=fe?[oe]:[],(!l.value||e.alwaysFilter)&&A.value&&(E.value=A.value),A.value=fe&&!T.value?oe.title:"",f.nextTick(()=>{R.value=je,l.value=!0})}}function yt(oe){const je=[` +`,...e.delimiters??[]].map(u_).join("|");return oe.split(new RegExp(`(?:${je})+`))}async function St(oe){for(let Le of oe)Le=Le.trim(),Le&&(He(Bs(e,Le)),await f.nextTick())}function X(oe){i.value=!0,setTimeout(()=>{s.value=!0})}function te(oe){s.value=!1,o.value?.$el.contains(oe.relatedTarget)||(i.value=!1)}function pe(oe){u.value?.contentEl?.contains(oe.relatedTarget)&&(i.value=!0)}return f.watch(i,(oe,Le)=>{if(!(oe||oe===Le)&&(d.value=-1,R.value=!1,I.value)){if(e.multiple){He(Bs(e,I.value));return}if(!T.value)return;w.value.some(je=>{let{title:fe}=je;return fe===I.value})?A.value="":He(Bs(e,I.value))}}),f.watch(R,oe=>{if(!e.hideSelected&&oe&&w.value.length&&l.value){const Le=P.value.findIndex(je=>w.value.some(fe=>(e.valueComparator||Ia)(fe.value,je.value)));Bn&&window.requestAnimationFrame(()=>{Le>=0&&c.value?.scrollToIndex(Le)})}oe&&(E.value=null)}),f.watch(v,(oe,Le)=>{R.value||i.value&&!Le.length&&oe.length&&(R.value=!0)}),Ae(()=>{const oe=!!(!e.hideNoData||P.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),Le=w.value.length>0,je=na.filterProps(e),fe={search:I,filteredItems:N.value};return f.createVNode(na,f.mergeProps({ref:o},je,{modelValue:I.value,"onUpdate:modelValue":_e=>I.value=_e,focused:i.value,"onUpdate:focused":_e=>i.value=_e,validationValue:w.externalValue,counterValue:M.value,dirty:Le,class:["v-combobox",{"v-combobox--active-menu":R.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!T.value,"v-combobox--selecting-index":d.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:S.isReadonly.value,placeholder:Le?void 0:e.placeholder,"onClick:clear":de,"onMousedown:control":ve,onKeydown:Re,onPaste:ee,onBlur:pe,"aria-expanded":z.value,"aria-controls":H.value}),{...r,default:_e=>{let{id:$e}=_e;return f.createElementVNode(f.Fragment,null,[f.createVNode(Uo,f.mergeProps({id:B.value,ref:u,modelValue:R.value,"onUpdate:modelValue":le=>R.value=le,activator:"parent",contentClass:"v-combobox__content",disabled:O.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:be,onAfterLeave:Ie},e.menuProps),{default:()=>[f.createVNode(Uc,{onFocusin:X,onKeydown:Se},{default:()=>[r["menu-header"]&&f.createElementVNode("header",{ref:Z},[r["menu-header"](fe)]),oe&&f.createVNode(pi,f.mergeProps({key:"combobox-list",ref:Y,filterable:!0,selected:G.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:le=>le.preventDefault(),selectable:!!P.value.length,onFocusout:te,tabindex:"-1","aria-live":"polite","aria-labelledby":`${$e.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},$,e.listProps),{default:()=>[r["prepend-item"]?.(),!P.value.length&&!e.hideNoData&&(r["no-data"]?.()??f.createVNode(Pr,{key:"no-data",title:a(e.noDataText)},null)),f.createVNode(M_,{ref:c,renderless:!0,items:P.value,itemKey:"value"},{default:le=>{let{item:ue,index:xe,itemRef:Ve}=le;const Qe=f.mergeProps(ue.props,{ref:Ve,key:ue.value,active:U.value&&ue===j.value?!0:void 0,onClick:()=>He(ue,null),"aria-posinset":xe+1,"aria-setsize":P.value.length});return ue.type==="divider"?r.divider?.({props:ue.raw,index:xe})??f.createVNode(Ma,f.mergeProps(ue.props,{key:`divider-${xe}`}),null):ue.type==="subheader"?r.subheader?.({props:ue.raw,index:xe})??f.createVNode(kv,f.mergeProps(ue.props,{key:`subheader-${xe}`}),null):r.item?.({item:ue,index:xe,props:Qe})??f.createVNode(Pr,f.mergeProps(Qe,{role:"option"}),{prepend:me=>{let{isSelected:Ne}=me;return f.createElementVNode(f.Fragment,null,[e.multiple&&!e.hideSelected?f.createVNode(Rs,{key:ue.value,modelValue:Ne,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:rt=>rt.preventDefault()},null):void 0,ue.props.prependAvatar&&f.createVNode(hl,{image:ue.props.prependAvatar},null),ue.props.prependIcon&&f.createVNode(Ct,{icon:ue.props.prependIcon},null)])},title:()=>l.value?ue.title:IN("v-combobox",ue.title,D(ue)?.title)})}}),r["append-item"]?.()]}),r["menu-footer"]&&f.createElementVNode("footer",{ref:ne},[r["menu-footer"](fe)])]})]}),w.value.map((le,ue)=>{function xe(Ne){Ne.stopPropagation(),Ne.preventDefault(),He(le,!1)}const Ve=f.mergeProps(pl.filterProps(le.props),{"onClick:close":xe,onKeydown(Ne){Ne.key!=="Enter"&&Ne.key!==" "||(Ne.preventDefault(),Ne.stopPropagation(),xe(Ne))},onMousedown(Ne){Ne.preventDefault(),Ne.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),Qe=x.value?!!r.chip:!!r.selection,me=Qe?l_(x.value?r.chip({item:le,index:ue,props:Ve}):r.selection({item:le,index:ue})):void 0;if(!(Qe&&!me))return f.createElementVNode("div",{key:le.value,class:f.normalizeClass(["v-combobox__selection",ue===d.value&&["v-combobox__selection--selected",g.value]]),style:f.normalizeStyle(ue===d.value?y.value:{})},[x.value?r.chip?f.createVNode(zt,{key:"chip-defaults",defaults:{VChip:{closable:_.value,size:"small",text:le.title}}},{default:()=>[me]}):f.createVNode(pl,f.mergeProps({key:"chip",closable:_.value,size:"small",text:le.title,disabled:le.props.disabled},Ve),null):me??f.createElementVNode("span",{class:"v-combobox__selection-text"},[le.title,e.multiple&&ue!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.ref();f.watchEffect(()=>{o.value=structuredClone(nY(a.value))});const{t:i}=An(),l=f.computed(()=>Ia(a.value,o.value));function s(m){return typeof e.disabled=="boolean"?e.disabled:Array.isArray(e.disabled)?e.disabled.includes(m):l.value}const u=f.computed(()=>s("save")),c=f.computed(()=>s("cancel"));function d(){a.value=o.value,n("save",o.value)}function h(){o.value=structuredClone(nY(a.value)),n("cancel")}function v(m){return f.createElementVNode(f.Fragment,null,[f.createVNode(_t,f.mergeProps({disabled:c.value,variant:"text",color:e.color,onClick:h,text:i(e.cancelText)},m),null),f.createVNode(_t,f.mergeProps({disabled:u.value,variant:"text",color:e.color,onClick:d,text:i(e.okText)},m),null)])}let p=!1;return Ae(()=>f.createElementVNode(f.Fragment,null,[r.default?.({model:o,save:d,cancel:h,isPristine:l.value,get actions(){return p=!0,v}}),!e.hideActions&&!p&&v()])),{save:d,cancel:h,isPristine:l}}}),mX=ie({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),gX=Symbol.for("vuetify:datatable:expanded");function G_(e){const t=f.toRef(()=>e.expandOnClick),n=ot(e,"expanded",e.expanded,l=>new Set(l),l=>[...l.values()]);function r(l,s){const u=new Set(n.value),c=f.toRaw(l.value);if(s)u.add(c);else{const d=[...n.value].find(h=>f.toRaw(h)===c);u.delete(d)}n.value=u}function a(l){const s=f.toRaw(l.value);return[...n.value].some(u=>f.toRaw(u)===s)}function o(l){r(l,!a(l))}const i={expand:r,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:o};return f.provide(gX,i),i}function yX(){const e=f.inject(gX);if(!e)throw new Error("foo");return e}const ZN=ie({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),bX=Symbol.for("vuetify:data-table-group");function JN(e){return{groupBy:ot(e,"groupBy")}}function U_(e){const{disableSort:t,groupBy:n,sortBy:r}=e,a=f.ref(new Set),o=f.computed(()=>n.value.map(c=>({...c,order:c.order??!1})).concat(t?.value?[]:r.value));function i(c){return a.value.has(c.id)}function l(c){const d=new Set(a.value);i(c)?d.delete(c.id):d.add(c.id),a.value=d}function s(c){function d(h){const v=[];for(const p of h.items)"type"in p&&p.type==="group"?v.push(...d(p)):v.push(p);return[...new Set(v)]}return d({items:c})}const u={sortByWithGroups:o,toggleGroup:l,opened:a,groupBy:n,extractRows:s,isGroupOpen:i};return f.provide(bX,u),u}function wX(){const e=f.inject(bX);if(!e)throw new Error("Missing group!");return e}function uDe(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const a=cv(r.raw,t);n.has(a)||n.set(a,[]),n.get(a).push(r)}return n}function SX(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const a=uDe(e,t[0]),o=[],i=t.slice(1);return a.forEach((l,s)=>{const u=t[0],c=`${r}_${u}_${s}`;o.push({depth:n,id:c,key:u,value:s,items:i.length?SX(l,i,n+1,c):l,type:"group"})}),o}function xX(e,t,n){const r=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&r.push(a),(t.has(a.id)||a.value==null)&&(r.push(...xX(a.items,t,n)),n&&r.push({...a,type:"group-summary"}))):r.push(a);return r}function Y_(e,t,n,r){const a=f.computed(()=>t.value.length?SX(f.toValue(e),t.value.map(i=>i.key)):[]),o=f.computed(()=>t.value.length?xX(a.value,n.value,f.toValue(r)):f.toValue(e));return{groups:a,flatItems:o}}function j_(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:a,search:o}=e;const i=Ur("VDataTable"),l=()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:a.value,search:o.value});let s=null;f.watch(l,u=>{Ia(s,u)||(s&&s.search!==u.search&&(t.value=1),i.emit("update:options",u),s=u)},{deep:!0,immediate:!0})}const QN=ie({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10},pageBy:{type:String,default:"any"}},"DataTable-paginate"),CX=Symbol.for("vuetify:data-table-pagination");function qN(e){const t=ot(e,"page",void 0,r=>Number(r??1)),n=ot(e,"itemsPerPage",void 0,r=>Number(r??10));return{page:t,itemsPerPage:n}}function $N(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,a=f.computed(()=>n.value===-1?0:n.value*(t.value-1)),o=f.computed(()=>n.value===-1?r.value:Math.min(r.value,a.value+n.value)),i=f.computed(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));f.watch([t,i],()=>{t.value>i.value&&(t.value=i.value)});function l(h){n.value=h,t.value=1}function s(){t.value=Fn(t.value+1,1,i.value)}function u(){t.value=Fn(t.value-1,1,i.value)}function c(h){t.value=Fn(h,1,i.value)}const d={page:t,itemsPerPage:n,startIndex:a,stopIndex:o,pageCount:i,itemsLength:r,nextPage:s,prevPage:u,setPage:c,setItemsPerPage:l};return f.provide(CX,d),d}function cDe(){const e=f.inject(CX);if(!e)throw new Error("Missing pagination!");return e}function _X(e){const t=Ur("usePaginatedItems"),{items:n,startIndex:r,stopIndex:a,itemsPerPage:o}=e,i=f.computed(()=>o.value<=0?f.toValue(n):f.toValue(n).slice(r.value,a.value));return f.watch(i,l=>{t.emit("update:currentItems",l)},{immediate:!0}),{paginatedItems:i}}function dDe(e){const{sortedItems:t,paginate:n,group:r}=e,a=f.toValue(e.pageBy);if(a==="item"){const{paginatedItems:o,pageCount:i,setItemsPerPage:l}=n(t),{flatItems:s}=r(o);return{pageCount:i,setItemsPerPage:l,paginatedItems:s}}if(a==="group"){const{flatItems:o,groups:i}=r(t),{paginatedItems:l,pageCount:s,setItemsPerPage:u}=n(i),c=f.computed(()=>{if(!l.value.length)return[];const d=l.value.at(0).id,h=l.value.at(-1).id,v=o.value.findIndex(g=>g.type==="group"&&g.id===d),p=o.value.findIndex(g=>g.type==="group"&&g.id===h),m=o.value.findIndex((g,y)=>y>p&&g.type==="group"&&g.depth===0);return o.value.slice(v,m===-1?void 0:m)});return{pageCount:s,setItemsPerPage:u,paginatedItems:c}}if(a==="any"){const{flatItems:o}=r(t),{paginatedItems:i,pageCount:l,setItemsPerPage:s}=n(o);return{pageCount:l,setItemsPerPage:s,paginatedItems:i}}throw new Error(`Unrecognized pagination target ${a}`)}const fDe={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:n}=e;return new Set(n?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},TX={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return TX.select({items:n,value:t,selected:r})}},hDe={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const a of t)n?r.add(a.value):r.delete(a.value);return r},selectAll:e=>{let{value:t,allItems:n}=e;return new Set(t?n.map(r=>r.value):[])}},kX=ie({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),AX=Symbol.for("vuetify:data-table-selection");function K_(e,t){let{allItems:n,currentPage:r}=t;const a=ot(e,"modelValue",e.modelValue,b=>{const w=e.valueComparator;return w?new Set(Kn(b).map(S=>n.value.find(_=>w(S,_.value))?.value??S)):new Set(Kn(b).map(S=>af(S)?n.value.find(_=>S===_.value)?.value??S:n.value.find(_=>Ia(S,_.value))?.value??S))},b=>[...b.values()]),o=f.computed(()=>n.value.filter(b=>b.selectable)),i=f.computed(()=>f.toValue(r).filter(b=>b.selectable)),l=f.computed(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return fDe;case"all":return hDe;case"page":default:return TX}}),s=f.shallowRef(null);function u(b){return Kn(b).every(w=>a.value.has(w.value))}function c(b){return Kn(b).some(w=>a.value.has(w.value))}function d(b,w){const S=l.value.select({items:b,value:w,selected:new Set(a.value)});a.value=S}function h(b,w,S){const _=[],x=f.toValue(r);if(w=w??x.findIndex(T=>T.value===b.value),e.selectStrategy!=="single"&&S?.shiftKey&&s.value!==null){const[T,A]=[s.value,w].sort((E,I)=>E-I);_.push(...x.slice(T,A+1).filter(E=>E.selectable))}else _.push(b),s.value=w;d(_,!u([b]))}function v(b){const w=l.value.selectAll({value:b,allItems:o.value,currentPage:i.value,selected:new Set(a.value)});a.value=w}const p=f.computed(()=>a.value.size>0),m=f.computed(()=>{const b=l.value.allSelected({allItems:o.value,currentPage:i.value});return!!b.length&&u(b)}),g=f.toRef(()=>l.value.showSelectAll),y={toggleSelect:h,select:d,selectAll:v,isSelected:u,isSomeSelected:c,someSelected:p,allSelected:m,showSelectAll:g,lastSelectedIndex:s,selectStrategy:l};return f.provide(AX,y),y}function X_(){const e=f.inject(AX);if(!e)throw new Error("Missing selection!");return e}const EX=ie({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),IX=Symbol.for("vuetify:data-table-sort");function Z_(e){const t=f.toRef(()=>e.initialSortOrder),n=ot(e,"sortBy"),r=f.toRef(()=>e.mustSort),a=f.toRef(()=>e.multiSort);return{initialSortOrder:t,sortBy:n,multiSort:a,mustSort:r}}function vDe(e,t){if(!dv(e))return{active:!!e};const{key:n,mode:r,modifier:a}=e,o=a==="alt"&&t?.altKey||a==="shift"&&t?.shiftKey;return{active:!n||t?.ctrlKey||t?.metaKey||!1,mode:o?r==="append"?"prepend":"append":r}}function J_(e){const{initialSortOrder:t,sortBy:n,mustSort:r,multiSort:a,page:o}=e,i=function(u,c){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(u.key==null)return;let h=n.value.map(g=>({...g}))??[];const v=h.find(g=>g.key===u.key),p=t.value,m=t.value==="desc"?"asc":"desc";if(v)v.order===m?d||r.value&&h.length===1?v.order=t.value:h=h.filter(g=>g.key!==u.key):v.order=m;else{const{active:g,mode:y}=vDe(a.value,c);g?y==="prepend"?h.unshift({key:u.key,order:p}):h.push({key:u.key,order:p}):h=[{key:u.key,order:p}]}n.value=h,o&&(o.value=1)};function l(u){return!!n.value.find(c=>c.key===u.key)}const s={sortBy:n,toggleSort:i,isSorted:l};return f.provide(IX,s),s}function MX(){const e=f.inject(IX);if(!e)throw new Error("Missing sort!");return e}function eL(e,t,n,r){const a=An();return{sortedItems:f.computed(()=>n.value.length?pDe(t.value,n.value,a.current.value,{transform:r?.transform,sortFunctions:{...e.customKeySort,...r?.sortFunctions?.value},sortRawFunctions:r?.sortRawFunctions?.value}):t.value)}}function pDe(e,t,n,r){const a=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return e.map(i=>[i,r?.transform?r.transform(i):i]).sort((i,l)=>{for(let s=0;sg!=null?g.toString().toLocaleLowerCase():g),h!==v))return K1(h)&&K1(v)?0:K1(h)?-1:K1(v)?1:!isNaN(h)&&!isNaN(v)?Number(h)-Number(v):a.compare(h,v)}return 0}).map(i=>{let[l]=i;return l})}const mDe=ie({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function gDe(e,t){const n=e.returnObject?t:Gr(t,e.itemValue),r=Gr(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function yDe(e,t){const n=[];for(const r of t)n.push(gDe(e,r));return n}function bDe(e){return{items:f.computed(()=>yDe(e,e.items))}}const wDe=ie({search:String,loading:Boolean,itemsLength:[Number,String],...nt(),...mDe(),...kX(),...EX(),...QN({itemsPerPage:5}),...mX(),...ZN(),...Ev(),...Ht(),...Rc({transition:{component:$1,hideOnLeave:!0}})},"VDataIterator"),SDe=Te()({name:"VDataIterator",props:wDe(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"groupBy"),a=f.toRef(()=>e.search),{items:o}=bDe(e),{filteredItems:i}=Iv(e,o,a,{transform:Y=>Y.raw}),{initialSortOrder:l,sortBy:s,multiSort:u,mustSort:c}=Z_(e),{page:d,itemsPerPage:h}=qN(e),{toggleSort:v}=J_({initialSortOrder:l,sortBy:s,multiSort:u,mustSort:c,page:d}),{sortByWithGroups:p,opened:m,extractRows:g,isGroupOpen:y,toggleGroup:b}=U_({groupBy:r,sortBy:s}),{sortedItems:w}=eL(e,i,p,{transform:Y=>Y.raw}),{flatItems:S}=Y_(w,r,m,!1),_=f.toRef(()=>!K1(e.itemsLength)),x=f.toRef(()=>_.value?Number(e.itemsLength):S.value.length),{startIndex:T,stopIndex:A,pageCount:E,prevPage:I,nextPage:M,setItemsPerPage:N,setPage:D}=$N({page:d,itemsPerPage:h,itemsLength:x}),P=f.shallowRef([]),O=f.computed(()=>_.value?S.value:P.value);qa(()=>!_.value,()=>{const{paginatedItems:Y}=_X({items:S,startIndex:T,stopIndex:A,itemsPerPage:h});f.watchEffect(()=>{P.value=Y.value})});const L=f.computed(()=>g(O.value)),{isSelected:R,select:B,selectAll:z,toggleSelect:H}=K_(e,{allItems:o,currentPage:L}),{isExpanded:G,toggleExpand:j}=G_(e);j_({page:d,itemsPerPage:h,sortBy:s,groupBy:r,search:a});const U=f.computed(()=>({page:d.value,itemsPerPage:h.value,sortBy:s.value,pageCount:E.value,toggleSort:v,prevPage:I,nextPage:M,setPage:D,setItemsPerPage:N,isSelected:R,select:B,selectAll:z,toggleSelect:H,isExpanded:G,toggleExpand:j,isGroupOpen:y,toggleGroup:b,items:L.value,itemsCount:i.value.length,groupedItems:O.value}));return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.header?.(U.value),f.createVNode(Wo,{transition:e.transition},{default:()=>[e.loading?f.createVNode(nw,{key:"loader",name:"v-data-iterator",active:!0},{default:Y=>n.loader?.(Y)}):f.createElementVNode("div",{key:"items"},[O.value.length?n.default?.(U.value):n["no-data"]?.()])]}),n.footer?.(U.value)]})),{}}});function xDe(){const e=f.ref([]);f.onBeforeUpdate(()=>e.value=[]);function t(n,r){e.value[r]=n}return{refs:e,updateRef:t}}const CDe=ie({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:st,default:"$first"},prevIcon:{type:st,default:"$prev"},nextIcon:{type:st,default:"$next"},lastIcon:{type:st,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...xo(),...nt(),...Tr(),...Kr(),...$n(),...Tu(),...Ht({tag:"nav"}),...pn(),...dl({variant:"text"})},"VPagination"),ty=Te()({name:"VPagination",props:CDe(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=ot(e,"modelValue"),{t:o,n:i}=An(),{isRtl:l}=ta(),{themeClasses:s}=In(e),{width:u}=vl(),c=f.shallowRef(-1);_r(void 0,{scoped:!0});const{resizeRef:d}=Gl(A=>{if(!A.length)return;const{target:E,contentRect:I}=A[0],M=E.querySelector(".v-pagination__list > *");if(!M)return;const N=I.width,D=M.offsetWidth+parseFloat(getComputedStyle(M).marginRight)*2;c.value=m(N,D)}),h=f.computed(()=>parseInt(e.length,10)),v=f.computed(()=>parseInt(e.start,10)),p=f.computed(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):c.value>=0?c.value:m(u.value,58));function m(A,E){const I=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((A-E*I)/E).toFixed(2))))}const g=f.computed(()=>{if(h.value<=0||isNaN(h.value)||h.value>Number.MAX_SAFE_INTEGER)return[];if(p.value<=0)return[];if(p.value===1)return[a.value];if(h.value<=p.value)return wu(h.value,v.value);const A=p.value%2===0,E=A?p.value/2:Math.floor(p.value/2),I=A?E:E+1,M=h.value-E;if(I-a.value>=0)return[...wu(Math.max(1,p.value-1),v.value),e.ellipsis,h.value];if(a.value-M>=(A?1:0)){const N=p.value-1,D=h.value-N+v.value;return[v.value,e.ellipsis,...wu(N,D)]}else{const N=Math.max(1,p.value-2),D=N===1?a.value:a.value-Math.ceil(N/2)+v.value;return[v.value,e.ellipsis,...wu(N,D),e.ellipsis,h.value]}});function y(A,E,I){A.preventDefault(),a.value=E,I&&r(I,E)}const{refs:b,updateRef:w}=xDe();_r({VPaginationBtn:{color:f.toRef(()=>e.color),border:f.toRef(()=>e.border),density:f.toRef(()=>e.density),size:f.toRef(()=>e.size),variant:f.toRef(()=>e.variant),rounded:f.toRef(()=>e.rounded),elevation:f.toRef(()=>e.elevation)}});const S=f.computed(()=>g.value.map((A,E)=>{const I=M=>w(M,E);if(typeof A=="string")return{isActive:!1,key:`ellipsis-${E}`,page:A,props:{ref:I,ellipsis:!0,icon:!0,disabled:!0}};{const M=A===a.value;return{isActive:M,key:A,page:i(A),props:{ref:I,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:M?e.activeColor:e.color,"aria-current":M,"aria-label":o(M?e.currentPageAriaLabel:e.pageAriaLabel,A),onClick:N=>y(N,A)}}}})),_=f.computed(()=>{const A=!!e.disabled||a.value<=v.value,E=!!e.disabled||a.value>=v.value+h.value-1;return{first:e.showFirstLastPage?{icon:l.value?e.lastIcon:e.firstIcon,onClick:I=>y(I,v.value,"first"),disabled:A,"aria-label":o(e.firstAriaLabel),"aria-disabled":A}:void 0,prev:{icon:l.value?e.nextIcon:e.prevIcon,onClick:I=>y(I,a.value-1,"prev"),disabled:A,"aria-label":o(e.previousAriaLabel),"aria-disabled":A},next:{icon:l.value?e.prevIcon:e.nextIcon,onClick:I=>y(I,a.value+1,"next"),disabled:E,"aria-label":o(e.nextAriaLabel),"aria-disabled":E},last:e.showFirstLastPage?{icon:l.value?e.firstIcon:e.lastIcon,onClick:I=>y(I,v.value+h.value-1,"last"),disabled:E,"aria-label":o(e.lastAriaLabel),"aria-disabled":E}:void 0}});function x(){const A=a.value-v.value;b.value[A]?.$el.focus()}function T(A){A.key===pP.left&&!e.disabled&&a.value>Number(e.start)?(a.value=a.value-1,f.nextTick(x)):A.key===pP.right&&!e.disabled&&a.valuef.createVNode(e.tag,{ref:d,class:f.normalizeClass(["v-pagination",s.value,e.class]),style:f.normalizeStyle(e.style),role:"navigation","aria-label":o(e.ariaLabel),onKeydown:T,"data-test":"v-pagination-root"},{default:()=>[f.createElementVNode("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&f.createElementVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(_.value.first):f.createVNode(_t,f.mergeProps({_as:"VPaginationBtn"},_.value.first),null)]),f.createElementVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(_.value.prev):f.createVNode(_t,f.mergeProps({_as:"VPaginationBtn"},_.value.prev),null)]),S.value.map((A,E)=>f.createElementVNode("li",{key:A.key,class:f.normalizeClass(["v-pagination__item",{"v-pagination__item--is-active":A.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(A):f.createVNode(_t,f.mergeProps({_as:"VPaginationBtn"},A.props),{default:()=>[A.page]})])),f.createElementVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(_.value.next):f.createVNode(_t,f.mergeProps({_as:"VPaginationBtn"},_.value.next),null)]),e.showFirstLastPage&&f.createElementVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(_.value.last):f.createVNode(_t,f.mergeProps({_as:"VPaginationBtn"},_.value.last),null)])])]})),{}}}),tL=ie({color:String,prevIcon:{type:st,default:"$prev"},nextIcon:{type:st,default:"$next"},firstIcon:{type:st,default:"$first"},lastIcon:{type:st,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),_w=Te()({name:"VDataTableFooter",props:tL(),setup(e,t){let{slots:n}=t;const{t:r}=An(),{page:a,pageCount:o,startIndex:i,stopIndex:l,itemsLength:s,itemsPerPage:u,setItemsPerPage:c}=cDe(),d=f.computed(()=>e.itemsPerPageOptions.map(h=>typeof h=="number"?{value:h,title:h===-1?r("$vuetify.dataFooter.itemsPerPageAll"):String(h)}:{...h,title:isNaN(Number(h.title))?r(h.title):h.title}));return Ae(()=>{const h=ty.filterProps(e);return f.createElementVNode("div",{class:"v-data-table-footer"},[n.prepend?.(),f.createElementVNode("div",{class:"v-data-table-footer__items-per-page"},[f.createElementVNode("span",null,[r(e.itemsPerPageText)]),f.createVNode(Jg,{items:d.value,itemColor:e.color,modelValue:u.value,"onUpdate:modelValue":v=>c(Number(v)),density:"compact",variant:"outlined","aria-label":r(e.itemsPerPageText),hideDetails:!0},null)]),f.createElementVNode("div",{class:"v-data-table-footer__info"},[f.createElementVNode("div",null,[r(e.pageText,s.value?i.value+1:0,l.value,s.value)])]),f.createElementVNode("div",{class:"v-data-table-footer__pagination"},[f.createVNode(ty,f.mergeProps({modelValue:a.value,"onUpdate:modelValue":v=>a.value=v,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:o.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},Kt(h,["color"])),null)])])}),{}}}),Tw=ITe({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,t)=>{let{slots:n}=t;const r=e.tag??"td",a=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return f.createVNode(r,{class:f.normalizeClass(["v-data-table__td",{"v-data-table-column--fixed":a==="start","v-data-table-column--fixed-end":a==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:Oe(e.height),width:Oe(e.width),maxWidth:Oe(e.maxWidth),left:a==="start"?Oe(e.fixedOffset||null):void 0,right:a==="end"?Oe(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?Oe(e.indent):void 0}},{default:()=>[n.default?.()]})}),_De=ie({headers:Array},"DataTable-header"),DX=Symbol.for("vuetify:data-table-headers"),VX={title:"",sortable:!1},TDe={...VX,width:48};function kDe(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(n=>({element:n,priority:0}));return{enqueue:(n,r)=>{let a=!1;for(let o=0;or){t.splice(o,0,{element:n,priority:r}),a=!0;break}a||t.push({element:n,priority:r})},size:()=>t.length,count:()=>{let n=0;if(!t.length)return 0;const r=Math.floor(t[0].priority);for(let a=0;at.shift()}}function nL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const n of e.children)nL(n,t);return t}function PX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&PX(n.children,t);return t}function ADe(e){if(e.key){if(e.key==="data-table-group")return VX;if(["data-table-expand","data-table-select"].includes(e.key))return TDe}}function rL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(n=>rL(n,t+1))):t}function EDe(e){let t=!1;function n(o,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(o)if(l!=="none"&&(o.fixed=l),o.fixed===!0&&(o.fixed="start"),o.fixed===i)if(o.children)if(i==="start")for(let s=o.children.length-1;s>=0;s--)n(o.children[s],i,i);else for(let s=0;s=0;s--)n(o.children[s],i);else for(let s=0;s=0;o--)n(e[o],"start");for(let o=0;o=0;o--)a=LX(e[o],a)}function NX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=NX(n,t)}else e.fixed&&e.fixed!=="end"&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function LX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=LX(n,t)}else e.fixed==="end"&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function IDe(e,t){const n=[];let r=0;const a=kDe(e);for(;a.size()>0;){let i=a.count();const l=[];let s=1;for(;i>0;){const{element:u,priority:c}=a.dequeue(),d=t-r-rL(u);if(l.push({...u,rowspan:d??1,colspan:u.children?nL(u).length:1}),u.children)for(const h of u.children){const v=c%1+s/Math.pow(10,r+2);a.enqueue(h,r+d+v)}s+=1,i-=1}r+=1,n.push(l)}return{columns:e.map(i=>nL(i)).flat(),headers:n}}function OX(e){const t=[];for(const n of e){const r={...ADe(n),...n},a=r.key??(typeof r.value=="string"?r.value:null),o=r.value??a??null,i={...r,key:a,value:o,sortable:r.sortable??(r.key!=null||!!r.sort),children:r.children?OX(r.children):void 0};t.push(i)}return t}function aL(e,t){const n=f.ref([]),r=f.ref([]),a=f.ref({}),o=f.ref({}),i=f.ref({});f.watchEffect(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(m=>({key:m,title:f.capitalize(m)}))).slice(),c=PX(u);t?.groupBy?.value.length&&!c.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!c.has("data-table-select")&&u.unshift({key:"data-table-select"}),t?.showExpand?.value&&!c.has("data-table-expand")&&u.push({key:"data-table-expand"});const d=OX(u);EDe(d);const h=Math.max(...d.map(m=>rL(m)))+1,v=IDe(d,h);n.value=v.headers,r.value=v.columns;const p=v.headers.flat(1);for(const m of p)m.key&&(m.sortable&&(m.sort&&(a.value[m.key]=m.sort),m.sortRaw&&(o.value[m.key]=m.sortRaw)),m.filter&&(i.value[m.key]=m.filter))});const l={headers:n,columns:r,sortFunctions:a,sortRawFunctions:o,filterFunctions:i};return f.provide(DX,l),l}function Q_(){const e=f.inject(DX);if(!e)throw new Error("Missing headers!");return e}const RX=ie({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortIcon:{type:st},sortAscIcon:{type:st,default:"$sortAsc"},sortDescIcon:{type:st,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Tr(),..._v(),...S_()},"VDataTableHeaders"),Ov=Te()({name:"VDataTableHeaders",props:RX(),setup(e,t){let{slots:n}=t;const{t:r}=An(),{toggleSort:a,sortBy:o,isSorted:i}=MX(),{someSelected:l,allSelected:s,selectAll:u,showSelectAll:c}=X_(),{columns:d,headers:h}=Q_(),{loaderClasses:v}=tw(e);function p(E,I){if(!(e.sticky||e.fixedHeader)&&!E.fixed)return;const M=typeof E.fixed=="string"?E.fixed:E.fixed?"start":"none";return{position:"sticky",left:M==="start"?Oe(E.fixedOffset):void 0,right:M==="end"?Oe(E.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${I})`:void 0}}function m(E,I){E.key==="Enter"&&!e.disableSort&&a(I,E)}function g(E){switch(o.value.find(M=>M.key===E.key)?.order){case"asc":return e.sortAscIcon;case"desc":return e.sortDescIcon;default:return e.sortIcon||(e.initialSortOrder==="asc"?e.sortAscIcon:e.sortDescIcon)}}const{backgroundColorClasses:y,backgroundColorStyles:b}=Ln(()=>e.color),{displayClasses:w,mobile:S}=vl(e),_=f.computed(()=>({headers:h.value,columns:d.value,toggleSort:a,isSorted:i,sortBy:o.value,someSelected:l.value,allSelected:s.value,selectAll:u,getSortIcon:g})),x=f.computed(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},w.value,v.value]),T=E=>{let{column:I,x:M,y:N}=E;const D=I.key==="data-table-select"||I.key==="data-table-expand",P=I.key==="data-table-group"&&I.width===0&&!I.title,O=f.mergeProps(e.headerProps??{},I.headerProps??{});return f.createVNode(Tw,f.mergeProps({tag:"th",align:I.align,class:[{"v-data-table__th--sortable":I.sortable&&!e.disableSort,"v-data-table__th--sorted":i(I),"v-data-table__th--fixed":I.fixed},...x.value],style:{width:Oe(I.width),minWidth:Oe(I.minWidth),maxWidth:Oe(I.maxWidth),...p(I,N)},colspan:I.colspan,rowspan:I.rowspan,fixed:I.fixed,nowrap:I.nowrap,lastFixed:I.lastFixed,firstFixedEnd:I.firstFixedEnd,noPadding:D,empty:P,tabindex:I.sortable?0:void 0,onClick:I.sortable?L=>a(I,L):void 0,onKeydown:I.sortable?L=>m(L,I):void 0},O),{default:()=>{const L=`header.${I.key}`,R={column:I,selectAll:u,isSorted:i,toggleSort:a,sortBy:o.value,someSelected:l.value,allSelected:s.value,getSortIcon:g};return n[L]?n[L](R):P?"":I.key==="data-table-select"?n["header.data-table-select"]?.(R)??(c.value&&f.createVNode(Rs,{color:e.color,density:e.density,modelValue:s.value,indeterminate:l.value&&!s.value,"onUpdate:modelValue":u},null)):f.createElementVNode("div",{class:"v-data-table-header__content"},[f.createElementVNode("span",null,[I.title]),I.sortable&&!e.disableSort&&f.createVNode(Ct,{key:"icon",class:"v-data-table-header__sort-icon",icon:g(I)},null),e.multiSort&&i(I)&&f.createElementVNode("div",{key:"badge",class:f.normalizeClass(["v-data-table-header__sort-badge",...y.value]),style:f.normalizeStyle(b.value)},[o.value.findIndex(B=>B.key===I.key)+1])])}})},A=()=>{const E=f.computed(()=>d.value.filter(N=>N?.sortable&&!e.disableSort)),I=d.value.find(N=>N.key==="data-table-select"),M=f.computed({get:()=>E.value.filter(N=>{let{key:D}=N;return o.value.some(P=>P.key===D)}),set:N=>{const D=Kn(N),P=o.value.map(L=>L.key);D.filter(L=>{let{key:R}=L;return!P.includes(R)}).forEach(L=>a(L)),f.nextTick(()=>o.value=o.value.filter(L=>{let{key:R}=L;return D.some(B=>B.key===R)}))}});return f.createVNode(Tw,f.mergeProps({tag:"th",class:[...x.value],colspan:h.value.length+1},e.headerProps),{default:()=>[f.createElementVNode("div",{class:"v-data-table-header__content"},[f.createVNode(Jg,{modelValue:M.value,"onUpdate:modelValue":N=>M.value=N,chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:E.value,label:r("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined",returnObject:!0,"onClick:clear":()=>o.value=[]},{append:I?()=>f.createVNode(Rs,{color:e.color,density:"compact",modelValue:s.value,indeterminate:l.value&&!s.value,"onUpdate:modelValue":()=>u(!s.value)},null):void 0,chip:N=>{let{item:D}=N;return f.createVNode(pl,{onClick:D.raw.sortable?()=>a(D.raw,void 0,!0):void 0,onMousedown:P=>{P.preventDefault(),P.stopPropagation()}},{default:()=>[D.title,f.createVNode(Ct,{class:f.normalizeClass(["v-data-table__td-sort-icon",i(D.raw)&&"v-data-table__td-sort-icon-active"]),icon:g(D.raw),size:"small"},null)]})}})])]})};Ae(()=>S.value?f.createElementVNode("tr",null,[f.createVNode(A,null,null)]):f.createElementVNode(f.Fragment,null,[n.headers?n.headers(_.value):h.value.map((E,I)=>f.createElementVNode("tr",null,[E.map((M,N)=>f.createVNode(T,{column:M,x:N,y:I},null))])),e.loading&&f.createElementVNode("tr",{class:"v-data-table-progress"},[f.createElementVNode("th",{colspan:d.value.length},[f.createVNode(nw,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"||e.loading==="true"?e.color:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),BX=ie({item:{type:Object,required:!0},groupCollapseIcon:{type:st,default:"$tableGroupCollapse"},groupExpandIcon:{type:st,default:"$tableGroupExpand"},...Tr()},"VDataTableGroupHeaderRow"),MDe=Te()({name:"VDataTableGroupHeaderRow",props:BX(),setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:a,extractRows:o}=wX(),{isSelected:i,isSomeSelected:l,select:s}=X_(),{columns:u}=Q_(),c=f.computed(()=>o([e.item])),d=f.toRef(()=>u.value.length-(u.value.some(h=>h.key==="data-table-select")?1:0));return()=>f.createElementVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(h=>{if(h.key==="data-table-group"){const v=r(e.item)?e.groupCollapseIcon:e.groupExpandIcon,p=()=>a(e.item);return n["data-table-group"]?.({item:e.item,count:c.value.length,props:{icon:v,onClick:p}})??f.createVNode(Tw,{class:"v-data-table-group-header-row__column",colspan:d.value},{default:()=>[f.createVNode(_t,{size:"small",variant:"text",icon:v,onClick:p},null),f.createElementVNode("span",null,[e.item.value]),f.createElementVNode("span",null,[f.createTextVNode("("),c.value.length,f.createTextVNode(")")])]})}else if(h.key==="data-table-select"){const v=c.value.filter(y=>y.selectable),p=v.length>0&&i(v),m=l(v)&&!p,g=y=>s(v,y);return n["data-table-select"]?.({props:{modelValue:p,indeterminate:m,"onUpdate:modelValue":g}})??f.createVNode(Tw,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[f.createVNode(Rs,{density:e.density,disabled:v.length===0,modelValue:p,indeterminate:m,"onUpdate:modelValue":g},null)]})}return""})])}}),FX=ie({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:st,default:"$collapse"},expandIcon:{type:st,default:"$expand"},onClick:Qa(),onContextmenu:Qa(),onDblclick:Qa(),...Tr(),..._v()},"VDataTableRow"),oL=Te()({name:"VDataTableRow",props:FX(),setup(e,t){let{slots:n}=t;const{displayClasses:r,mobile:a}=vl(e,"v-data-table__tr"),{isSelected:o,toggleSelect:i,someSelected:l,allSelected:s,selectAll:u}=X_(),{isExpanded:c,toggleExpand:d}=yX(),{toggleSort:h,sortBy:v,isSorted:p}=MX(),{columns:m}=Q_();Ae(()=>f.createElementVNode("tr",{class:f.normalizeClass(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},r.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&m.value.map((g,y)=>{const b=e.item,w=`item.${g.key}`,S=`header.${g.key}`,_={index:e.index,item:b.raw,internalItem:b,value:cv(b.columns,g.key),column:g,isSelected:o,toggleSelect:i,isExpanded:c,toggleExpand:d},x={column:g,selectAll:u,isSorted:p,toggleSort:h,sortBy:v.value,someSelected:l.value,allSelected:s.value,getSortIcon:()=>""},T=typeof e.cellProps=="function"?e.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value,column:g}):e.cellProps,A=typeof g.cellProps=="function"?g.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value}):g.cellProps,E=g.key==="data-table-select"||g.key==="data-table-expand",I=g.key==="data-table-group"&&g.width===0&&!g.title;return f.createVNode(Tw,f.mergeProps({align:g.align,indent:g.indent,class:{"v-data-table__td--expanded-row":g.key==="data-table-expand","v-data-table__td--select-row":g.key==="data-table-select"},fixed:g.fixed,fixedOffset:g.fixedOffset,fixedEndOffset:g.fixedEndOffset,lastFixed:g.lastFixed,firstFixedEnd:g.firstFixedEnd,maxWidth:a.value?void 0:g.maxWidth,noPadding:E,empty:I,nowrap:g.nowrap,width:a.value?void 0:g.width},T,A),{default:()=>{if(g.key==="data-table-select")return n["item.data-table-select"]?.({..._,props:{color:e.color,disabled:!b.selectable,modelValue:o([b]),onClick:f.withModifiers(()=>i(b),["stop"])}})??f.createVNode(Rs,{color:e.color,disabled:!b.selectable,density:e.density,modelValue:o([b]),onClick:f.withModifiers(N=>i(b,e.index,N),["stop"])},null);if(g.key==="data-table-expand")return n["item.data-table-expand"]?.({..._,props:{icon:c(b)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:f.withModifiers(()=>d(b),["stop"])}})??f.createVNode(_t,{icon:c(b)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:f.withModifiers(()=>d(b),["stop"])},null);if(n[w]&&!a.value)return n[w](_);const M=f.toDisplayString(_.value);return a.value?f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-data-table__td-title"},[n[S]?.(x)??g.title]),f.createElementVNode("div",{class:"v-data-table__td-value"},[n[w]?.(_)??M])]):M}})})]))}}),HX=ie({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...vi(FX(),["collapseIcon","expandIcon","density"]),...vi(BX(),["groupCollapseIcon","groupExpandIcon","density"]),..._v()},"VDataTableRows"),Rv=Te()({name:"VDataTableRows",inheritAttrs:!1,props:HX(),setup(e,t){let{attrs:n,slots:r}=t;const{columns:a}=Q_(),{expandOnClick:o,toggleExpand:i,isExpanded:l}=yX(),{isSelected:s,toggleSelect:u}=X_(),{toggleGroup:c,isGroupOpen:d}=wX(),{t:h}=An(),{mobile:v}=vl(e);return Ae(()=>{const p=vi(e,["groupCollapseIcon","groupExpandIcon","density"]);return e.loading&&(!e.items.length||r.loading)?f.createElementVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[f.createElementVNode("td",{colspan:a.value.length},[r.loading?.()??h(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?f.createElementVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[f.createElementVNode("td",{colspan:a.value.length},[r["no-data"]?.()??h(e.noDataText)])]):f.createElementVNode(f.Fragment,null,[e.items.map((m,g)=>{if(m.type==="group"){const w={index:g,item:m,columns:a.value,isExpanded:l,toggleExpand:i,isSelected:s,toggleSelect:u,toggleGroup:c,isGroupOpen:d};return r["group-header"]?r["group-header"](w):f.createVNode(MDe,f.mergeProps({key:`group-header_${m.id}`,item:m},sl(n,":groupHeader",()=>w),p),r)}if(m.type==="group-summary"){const w={index:g,item:m,columns:a.value,toggleGroup:c};return r["group-summary"]?.(w)??""}const y={index:m.virtualIndex??g,item:m.raw,internalItem:m,columns:a.value,isExpanded:l,toggleExpand:i,isSelected:s,toggleSelect:u},b={...y,props:f.mergeProps({key:`item_${m.key??m.index}`,onClick:o.value?()=>{i(m)}:void 0,index:g,item:m,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:v.value},sl(n,":row",()=>y),typeof e.rowProps=="function"?e.rowProps({item:y.item,index:y.index,internalItem:y.internalItem}):e.rowProps)};return f.createElementVNode(f.Fragment,{key:b.props.key},[r.item?r.item(b):f.createVNode(oL,b.props,r),l(m)&&r["expanded-row"]?.(y)])})])}),{}}}),zX=ie({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...nt(),...Tr(),...Ht(),...pn()},"VTable"),Bv=Te()({name:"VTable",props:zX(),setup(e,t){let{slots:n,emit:r}=t;const{themeClasses:a}=In(e),{densityClasses:o}=$a(e);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":e.striped==="even","v-table--striped-odd":e.striped==="odd"},a.value,o.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.top?.(),n.default?f.createElementVNode("div",{class:"v-table__wrapper",style:{height:Oe(e.height)}},[f.createElementVNode("table",null,[n.default()])]):n.wrapper?.(),n.bottom?.()]})),{}}}),DDe=ie({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function VDe(e,t,n,r){const a=e.returnObject?t:Gr(t,e.itemValue),o=Gr(t,e.itemSelectable,!0),i=r.reduce((l,s)=>(s.key!=null&&(l[s.key]=Gr(t,s.value)),l),{});return{type:"item",key:e.returnObject?Gr(t,e.itemValue):a,index:n,value:a,selectable:o,columns:i,raw:t}}function PDe(e,t,n){return t.map((r,a)=>VDe(e,r,a,n))}function iL(e,t){return{items:f.computed(()=>PDe(e,e.items,t.value))}}const lL=ie({...HX(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...mX(),...ZN(),..._De(),...DDe(),...kX(),...EX(),...Kt(RX(),["multiSort","initialSortOrder"]),...zX()},"DataTable"),NDe=ie({...QN(),...lL(),...Ev(),...tL()},"VDataTable"),LDe=Te()({name:"VDataTable",props:NDe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=JN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=Z_(e),{page:u,itemsPerPage:c}=qN(e),{disableSort:d}=f.toRefs(e),{columns:h,headers:v,sortFunctions:p,sortRawFunctions:m,filterFunctions:g}=aL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:y}=iL(e,h),b=f.toRef(()=>e.search),{filteredItems:w}=Iv(e,y,b,{transform:Z=>Z.columns,customKeyFilter:g}),{toggleSort:S}=J_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s,page:u}),{sortByWithGroups:_,opened:x,extractRows:T,isGroupOpen:A,toggleGroup:E}=U_({groupBy:a,sortBy:i,disableSort:d}),{sortedItems:I}=eL(e,w,_,{transform:Z=>({...Z.raw,...Z.columns}),sortFunctions:p,sortRawFunctions:m}),M=f.computed(()=>e.pageBy==="auto"?e.groupBy.length?"group":"item":e.pageBy),{pageCount:N,setItemsPerPage:D,paginatedItems:P}=dDe({pageBy:M,sortedItems:I,paginate:Z=>{const ne=f.computed(()=>f.toValue(Z).length),{startIndex:$,stopIndex:ae,pageCount:de,setItemsPerPage:ve}=$N({page:u,itemsPerPage:c,itemsLength:ne}),{paginatedItems:ge}=_X({items:Z,startIndex:$,stopIndex:ae,itemsPerPage:c});return{paginatedItems:ge,pageCount:de,setItemsPerPage:ve}},group:Z=>Y_(Z,a,x,()=>!!r["group-summary"])}),O=f.computed(()=>T(P.value)),{isSelected:L,select:R,selectAll:B,toggleSelect:z,someSelected:H,allSelected:G}=K_(e,{allItems:y,currentPage:O}),{isExpanded:j,toggleExpand:U}=G_(e);j_({page:u,itemsPerPage:c,sortBy:i,groupBy:a,search:b}),_r({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const Y=f.computed(()=>({page:u.value,itemsPerPage:c.value,sortBy:i.value,pageCount:N.value,toggleSort:S,setItemsPerPage:D,someSelected:H.value,allSelected:G.value,isSelected:L,select:R,selectAll:B,toggleSelect:z,isExpanded:j,toggleExpand:U,isGroupOpen:A,toggleGroup:E,items:O.value.map(Z=>Z.raw),internalItems:O.value,groupedItems:P.value,columns:h.value,headers:v.value}));return Ae(()=>{const Z=_w.filterProps(e),ne=Ov.filterProps(Kt(e,["multiSort"])),$=Rv.filterProps(e),ae=Bv.filterProps(e);return f.createVNode(Bv,f.mergeProps({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},ae,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(Y.value),default:()=>r.default?r.default(Y.value):f.createElementVNode(f.Fragment,null,[r.colgroup?.(Y.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead"},[f.createVNode(Ov,f.mergeProps(ne,{multiSort:!!e.multiSort}),r)]),r.thead?.(Y.value),!e.hideDefaultBody&&f.createElementVNode("tbody",null,[r["body.prepend"]?.(Y.value),r.body?r.body(Y.value):f.createVNode(Rv,f.mergeProps(n,$,{items:P.value}),r),r["body.append"]?.(Y.value)]),r.tbody?.(Y.value),r.tfoot?.(Y.value)]),bottom:()=>r.bottom?r.bottom(Y.value):!e.hideDefaultFooter&&f.createElementVNode(f.Fragment,null,[f.createVNode(Ma,null,null),f.createVNode(_w,Z,{prepend:r["footer.prepend"]})])})}),{}}}),ODe=ie({...Kt(lL(),["hideDefaultFooter"]),...ZN(),...fK(),...Ev()},"VDataTableVirtual"),RDe=Te()({name:"VDataTableVirtual",props:ODe(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=JN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=Z_(e),{disableSort:u}=f.toRefs(e),{columns:c,headers:d,filterFunctions:h,sortFunctions:v,sortRawFunctions:p}=aL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:m}=iL(e,c),g=f.toRef(()=>e.search),{filteredItems:y}=Iv(e,m,g,{transform:ge=>ge.columns,customKeyFilter:h}),{toggleSort:b}=J_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}),{sortByWithGroups:w,opened:S,extractRows:_,isGroupOpen:x,toggleGroup:T}=U_({groupBy:a,sortBy:i,disableSort:u}),{sortedItems:A}=eL(e,y,w,{transform:ge=>({...ge.raw,...ge.columns}),sortFunctions:v,sortRawFunctions:p}),{flatItems:E}=Y_(A,a,S,()=>!!r["group-summary"]),I=f.computed(()=>_(E.value)),{isSelected:M,select:N,selectAll:D,toggleSelect:P,someSelected:O,allSelected:L}=K_(e,{allItems:I,currentPage:I}),{isExpanded:R,toggleExpand:B}=G_(e),{containerRef:z,markerRef:H,paddingTop:G,paddingBottom:j,computedItems:U,handleItemResize:Y,handleScroll:Z,handleScrollend:ne,calculateVisibleItems:$,scrollToIndex:ae}=hK(e,E),de=f.computed(()=>U.value.map(ge=>({...ge.raw,virtualIndex:ge.index})));j_({sortBy:i,page:f.shallowRef(1),itemsPerPage:f.shallowRef(-1),groupBy:a,search:g}),_r({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const ve=f.computed(()=>({sortBy:i.value,toggleSort:b,someSelected:O.value,allSelected:L.value,isSelected:M,select:N,selectAll:D,toggleSelect:P,isExpanded:R,toggleExpand:B,isGroupOpen:x,toggleGroup:T,items:I.value.map(ge=>ge.raw),internalItems:I.value,groupedItems:E.value,columns:c.value,headers:d.value}));return Ae(()=>{const ge=Ov.filterProps(Kt(e,["multiSort"])),Se=Rv.filterProps(e),Re=Bv.filterProps(e);return f.createVNode(Bv,f.mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Re,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(ve.value),wrapper:()=>f.createElementVNode("div",{ref:z,onScrollPassive:Z,onScrollend:ne,class:"v-table__wrapper",style:{height:Oe(e.height)}},[f.createElementVNode("table",null,[r.colgroup?.(ve.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead"},[f.createVNode(Ov,f.mergeProps(ge,{multiSort:!!e.multiSort}),r)]),r.thead?.(ve.value),!e.hideDefaultBody&&f.createElementVNode("tbody",{key:"tbody"},[f.createElementVNode("tr",{ref:H,style:{height:Oe(G.value),border:0}},[f.createElementVNode("td",{colspan:c.value.length,style:{height:0,border:0}},null)]),r["body.prepend"]?.(ve.value),f.createVNode(Rv,f.mergeProps(n,Se,{items:de.value}),{...r,item:ee=>f.createVNode(dK,{key:ee.internalItem.index,renderless:!0,"onUpdate:height":be=>Y(ee.internalItem.index,be)},{default:be=>{let{itemRef:Ie}=be;return r.item?.({...ee,itemRef:Ie})??f.createVNode(oL,f.mergeProps(ee.props,{ref:Ie,key:ee.internalItem.index,index:ee.index}),r)}})}),r["body.append"]?.(ve.value),f.createElementVNode("tr",{style:{height:Oe(j.value),border:0}},[f.createElementVNode("td",{colspan:c.value.length,style:{height:0,border:0}},null)])]),r.tbody?.(ve.value),r.tfoot?.(ve.value)])]),bottom:()=>r.bottom?.(ve.value)})}),{calculateVisibleItems:$,scrollToIndex:ae}}}),BDe=ie({itemsLength:{type:[Number,String],required:!0},...QN(),...lL(),...tL()},"VDataTableServer"),FDe=Te()({name:"VDataTableServer",props:BDe(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{groupBy:a}=JN(e),{initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s}=Z_(e),{page:u,itemsPerPage:c}=qN(e),{disableSort:d}=f.toRefs(e),h=f.computed(()=>parseInt(e.itemsLength,10)),{columns:v,headers:p}=aL(e,{groupBy:a,showSelect:f.toRef(()=>e.showSelect),showExpand:f.toRef(()=>e.showExpand)}),{items:m}=iL(e,v),{toggleSort:g}=J_({initialSortOrder:o,sortBy:i,multiSort:l,mustSort:s,page:u}),{opened:y,isGroupOpen:b,toggleGroup:w,extractRows:S}=U_({groupBy:a,sortBy:i,disableSort:d}),{pageCount:_,setItemsPerPage:x}=$N({page:u,itemsPerPage:c,itemsLength:h}),{flatItems:T}=Y_(m,a,y,()=>!!r["group-summary"]),{isSelected:A,select:E,selectAll:I,toggleSelect:M,someSelected:N,allSelected:D}=K_(e,{allItems:m,currentPage:m}),{isExpanded:P,toggleExpand:O}=G_(e),L=f.computed(()=>S(m.value));j_({page:u,itemsPerPage:c,sortBy:i,groupBy:a,search:f.toRef(()=>e.search)}),f.provide("v-data-table",{toggleSort:g,sortBy:i}),_r({VDataTableRows:{hideNoData:f.toRef(()=>e.hideNoData),noDataText:f.toRef(()=>e.noDataText),loading:f.toRef(()=>e.loading),loadingText:f.toRef(()=>e.loadingText)}});const R=f.computed(()=>({page:u.value,itemsPerPage:c.value,sortBy:i.value,pageCount:_.value,toggleSort:g,setItemsPerPage:x,someSelected:N.value,allSelected:D.value,isSelected:A,select:E,selectAll:I,toggleSelect:M,isExpanded:P,toggleExpand:O,isGroupOpen:b,toggleGroup:w,items:L.value.map(B=>B.raw),internalItems:L.value,groupedItems:T.value,columns:v.value,headers:p.value}));Ae(()=>{const B=_w.filterProps(e),z=Ov.filterProps(Kt(e,["multiSort"])),H=Rv.filterProps(e),G=Bv.filterProps(e);return f.createVNode(Bv,f.mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},G,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>r.top?.(R.value),default:()=>r.default?r.default(R.value):f.createElementVNode(f.Fragment,null,[r.colgroup?.(R.value),!e.hideDefaultHeader&&f.createElementVNode("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[f.createVNode(Ov,f.mergeProps(z,{multiSort:!!e.multiSort}),r)]),r.thead?.(R.value),!e.hideDefaultBody&&f.createElementVNode("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[r["body.prepend"]?.(R.value),r.body?r.body(R.value):f.createVNode(Rv,f.mergeProps(n,H,{items:T.value}),r),r["body.append"]?.(R.value)]),r.tbody?.(R.value),r.tfoot?.(R.value)]),bottom:()=>r.bottom?r.bottom(R.value):!e.hideDefaultFooter&&f.createElementVNode(f.Fragment,null,[f.createVNode(Ma,null,null),f.createVNode(_w,B,{prepend:r["footer.prepend"]})])})})}}),HDe=ie({fluid:{type:Boolean,default:!1},...nt(),...Yr(),...Ht()},"VContainer"),WX=Te()({name:"VContainer",props:HDe(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=ta(),{dimensionStyles:a}=jr(e);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-container",{"v-container--fluid":e.fluid},r.value,e.class]),style:f.normalizeStyle([a.value,e.style])},n)),{}}}),GX=k_.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}),UX=k_.reduce((e,t)=>{const n="offset"+f.capitalize(t);return e[n]={type:[String,Number],default:null},e},{}),YX=k_.reduce((e,t)=>{const n="order"+f.capitalize(t);return e[n]={type:[String,Number],default:null},e},{}),jX={col:Object.keys(GX),offset:Object.keys(UX),order:Object.keys(YX)};function zDe(e,t,n){let r=e;if(!(n==null||n===!1)){if(t){const a=t.replace(e,"");r+=`-${a}`}return e==="col"&&(r="v-"+r),e==="col"&&(n===""||n===!0)||(r+=`-${n}`),r.toLowerCase()}}const WDe=["auto","start","end","center","baseline","stretch"],GDe=ie({cols:{type:[Boolean,String,Number],default:!1},...GX,offset:{type:[String,Number],default:null},...UX,order:{type:[String,Number],default:null},...YX,alignSelf:{type:String,default:null,validator:e=>WDe.includes(e)},...nt(),...Ht()},"VCol"),sL=Te()({name:"VCol",props:GDe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>{const a=[];let o;for(o in jX)jX[o].forEach(l=>{const s=e[l],u=zDe(o,l,s);u&&a.push(u)});const i=a.some(l=>l.startsWith("v-col-"));return a.push({"v-col":!i||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),a});return()=>f.h(e.tag,{class:[r.value,e.class],style:e.style},n.default?.())}}),uL=["start","end","center"],KX=["space-between","space-around","space-evenly"];function cL(e,t){return k_.reduce((n,r)=>{const a=e+f.capitalize(r);return n[a]=t(),n},{})}const UDe=[...uL,"baseline","stretch"],XX=e=>UDe.includes(e),ZX=cL("align",()=>({type:String,default:null,validator:XX})),YDe=[...uL,...KX],JX=e=>YDe.includes(e),QX=cL("justify",()=>({type:String,default:null,validator:JX})),jDe=[...uL,...KX,"stretch"],qX=e=>jDe.includes(e),$X=cL("alignContent",()=>({type:String,default:null,validator:qX})),eZ={align:Object.keys(ZX),justify:Object.keys(QX),alignContent:Object.keys($X)},KDe={align:"align",justify:"justify",alignContent:"align-content"};function XDe(e,t,n){let r=KDe[e];if(n!=null){if(t){const a=t.replace(e,"");r+=`-${a}`}return r+=`-${n}`,r.toLowerCase()}}const ZDe=ie({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:XX},...ZX,justify:{type:String,default:null,validator:JX},...QX,alignContent:{type:String,default:null,validator:qX},...$X,...nt(),...Ht()},"VRow"),dL=Te()({name:"VRow",props:ZDe(),setup(e,t){let{slots:n}=t;const r=f.computed(()=>{const a=[];let o;for(o in eZ)eZ[o].forEach(i=>{const l=e[i],s=XDe(o,i,l);s&&a.push(s)});return a.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),a});return()=>f.h(e.tag,{class:["v-row",r.value,e.class],style:e.style},n.default?.())}}),zs=Oc("v-spacer","div","VSpacer"),tZ=ie({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],controlVariant:{type:String,default:"docked"},noMonthPicker:Boolean,disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:st,default:"$next"},prevIcon:{type:st,default:"$prev"},modeIcon:{type:st,default:"$subgroup"},text:String,monthText:String,yearText:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),fL=Te()({name:"VDatePickerControls",props:tZ(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:prev-year":()=>!0,"click:next-year":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),i=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),l=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-month"):!!e.disabled),s=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("next-month"):!!e.disabled),u=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("prev-year"):!!e.disabled),c=f.computed(()=>Array.isArray(e.disabled)?e.disabled.includes("next-year"):!!e.disabled);function d(){n("click:prev")}function h(){n("click:next")}function v(){n("click:prev-year")}function p(){n("click:next-year")}function m(){n("click:year")}function g(){n("click:month")}return Ae(()=>{const y={VBtn:{density:"comfortable",variant:"text"}},b=f.createVNode(_t,{"data-testid":"prev-month",disabled:l.value,icon:e.prevIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:d},null),w=f.createVNode(_t,{"data-testid":"next-month",disabled:s.value,icon:e.nextIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:h},null),S=f.createVNode(_t,{"data-testid":"prev-year",disabled:u.value,icon:e.prevIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.previousYear"),onClick:v},null),_=f.createVNode(_t,{"data-testid":"next-year",disabled:c.value,icon:e.nextIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.nextYear"),onClick:p},null),x=f.createVNode(_t,{class:"v-date-picker-controls__only-month-btn","data-testid":"month-btn",density:"default",disabled:o.value,text:e.monthText,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:g},null),T=f.createVNode(_t,{class:"v-date-picker-controls__only-year-btn","data-testid":"year-btn",density:"default",disabled:i.value,text:e.yearText,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null),A=f.createVNode(_t,{class:"v-date-picker-controls__year-btn","data-testid":"year-btn",density:"default",disabled:i.value,text:e.text,appendIcon:e.modeIcon,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null),E=f.createElementVNode(f.Fragment,null,[f.createVNode(_t,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",height:"36",disabled:o.value,text:e.text,rounded:!0,"aria-label":a("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:g},null),f.createVNode(_t,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:i.value,icon:e.modeIcon,"aria-label":a("$vuetify.datePicker.ariaLabel.selectYear"),onClick:m},null)]),I={viewMode:e.viewMode,disabled:Array.isArray(e.disabled)?e.disabled:[],monthYearText:e.text??"",monthText:e.monthText??"",yearText:e.yearText??"",openMonths:g,openYears:m,prevMonth:d,nextMonth:h,prevYear:v,nextYear:p},M=f.createElementVNode(f.Fragment,null,[e.noMonthPicker?A:E,f.createVNode(zs,null,null),f.createElementVNode("div",{class:"v-date-picker-controls__month"},[b,w])]),N=f.createElementVNode(f.Fragment,null,[f.createElementVNode("div",{class:"v-date-picker-controls__month"},[b,x,w]),f.createVNode(zs,null,null),f.createElementVNode("div",{class:"v-date-picker-controls__year"},[S,T,_])]);return f.createVNode(zt,{defaults:y},{default:()=>[f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-controls",`v-date-picker-controls--variant-${e.controlVariant}`]),style:{"--v-date-picker-controls-height":Oe(e.controlHeight)}},[r.default?.(I)??f.createElementVNode(f.Fragment,null,[e.controlVariant==="modal"&&M,e.controlVariant==="docked"&&N])])]})}),{}}}),JDe=ie({appendIcon:st,color:String,header:String,transition:String,onClick:Qa()},"VDatePickerHeader"),hL=Te()({name:"VDatePickerHeader",props:JDe(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color);function i(){n("click")}function l(){n("click:append")}return Ae(()=>{const s=!!(r.default||e.header),u=!!(r.append||e.appendIcon);return f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},a.value]),style:f.normalizeStyle(o.value),onClick:i},[r.prepend&&f.createElementVNode("div",{key:"prepend",class:"v-date-picker-header__prepend"},[r.prepend()]),s&&f.createVNode(Wo,{key:"content",name:e.transition},{default:()=>[f.createElementVNode("div",{key:e.header,class:"v-date-picker-header__content"},[r.default?.()??e.header])]}),u&&f.createElementVNode("div",{class:"v-date-picker-header__append"},[r.append?f.createVNode(zt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>[r.append?.()]}):f.createVNode(_t,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:l},null)])])}),{}}}),QDe=ie({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");function qDe(e){const t=Nv(),n=ot(e,"modelValue",[],m=>Kn(m).map(g=>t.date(g))),r=f.computed(()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),a=ot(e,"year",void 0,m=>{const g=m!=null?Number(m):t.getYear(r.value);return t.startOfYear(t.setYear(t.date(),g))},m=>t.getYear(m)),o=ot(e,"month",void 0,m=>{const g=m!=null?Number(m):t.getMonth(r.value),y=t.setYear(t.startOfMonth(t.date()),t.getYear(a.value));return t.setMonth(y,g)},m=>t.getMonth(m)),i=f.computed(()=>{const m=t.toJsDate(t.startOfWeek(t.date(),e.firstDayOfWeek)).getDay();return t.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter((g,y)=>e.weekdays.includes((y+m)%7))}),l=f.computed(()=>{const m=t.getWeekArray(o.value,e.firstDayOfWeek),g=m.flat(),y=6*7;if(e.weeksInMonth==="static"&&g.lengthe.weekdays.includes(t.toJsDate(y).getDay())).map((y,b)=>{const w=t.toISO(y),S=!t.isSameMonth(y,o.value),_=t.isSameDay(y,t.startOfMonth(o.value)),x=t.isSameDay(y,t.endOfMonth(o.value)),T=t.isSameDay(y,o.value),A=e.weekdays.length;return{date:y,formatted:t.format(y,"keyboardDate"),isAdjacent:S,isDisabled:p(y),isEnd:x,isHidden:S&&!e.showAdjacentMonths,isSame:T,isSelected:n.value.some(E=>t.isSameDay(y,E)),isStart:_,isToday:t.isSameDay(y,g),isWeekEnd:b%A===A-1,isWeekStart:b%A===0,isoDate:w,localized:t.format(y,"dayOfMonth"),month:t.getMonth(y),year:t.getYear(y)}})}const u=f.computed(()=>{const m=t.startOfWeek(r.value,e.firstDayOfWeek),g=[];for(let b=0;b<=6;b++)g.push(t.addDays(m,b));const y=t.date();return s(g,y)}),c=f.computed(()=>{const m=l.value.flat(),g=t.date();return s(m,g)}),d=f.computed(()=>l.value.map(m=>m.length?t.getWeek(m[0],e.firstDayOfWeek,e.firstDayOfYear):null)),{minDate:h,maxDate:v}=nZ(e);function p(m){if(e.disabled)return!0;const g=t.date(m);return h.value&&t.isBefore(t.endOfDay(g),h.value)||v.value&&t.isAfter(g,v.value)?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(y=>t.isSameDay(t.date(y),g)):typeof e.allowedDates=="function"?!e.allowedDates(g):!1}return{displayValue:r,daysInMonth:c,daysInWeek:u,genDays:s,model:n,weeksInMonth:l,weekdayLabels:i,weekNumbers:d}}function nZ(e){const t=Nv(),n=f.computed(()=>{if(!e.min)return null;const i=t.date(e.min);return t.isValid(i)?i:null}),r=f.computed(()=>{if(!e.max)return null;const i=t.date(e.max);return t.isValid(i)?i:null});function a(i){return n.value&&t.isBefore(i,n.value)?n.value:r.value&&t.isAfter(i,r.value)?r.value:i}function o(i){return(!n.value||t.isAfter(i,n.value))&&(!r.value||t.isBefore(i,r.value))}return{minDate:n,maxDate:r,clampDate:a,isInAllowedRange:o}}const rZ=ie({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,readonly:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},events:{type:[Array,Function,Object],default:()=>null},eventColor:{type:[Array,Function,Object,String],default:()=>null},...Kt(QDe(),["displayValue"])},"VDatePickerMonth"),vL=Te()({name:"VDatePickerMonth",props:rZ(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=f.ref(),{t:o}=An(),{daysInMonth:i,model:l,weekNumbers:s,weekdayLabels:u}=qDe(e),c=Nv(),d=f.shallowRef(),h=f.shallowRef(),v=f.shallowRef(!1),p=f.toRef(()=>v.value?e.reverseTransition:e.transition);e.multiple==="range"&&l.value.length>0&&(d.value=l.value[0],l.value.length>1&&(h.value=l.value[l.value.length-1]));const m=f.computed(()=>{const x=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return l.value.length>=x});f.watch(i,(x,T)=>{T&&(v.value=c.isBefore(x[0].date,T[0].date))});function g(x){const T=c.startOfDay(x);if(l.value.length===0?d.value=void 0:l.value.length===1&&(d.value=l.value[0],h.value=void 0),!d.value)d.value=T,l.value=[d.value];else if(h.value)d.value=x,h.value=void 0,l.value=[d.value];else{if(c.isSameDay(T,d.value)){d.value=void 0,l.value=[];return}else c.isBefore(T,d.value)?(h.value=c.endOfDay(d.value),d.value=T):h.value=c.endOfDay(T);l.value=UIe(c,d.value,h.value)}}function y(x){const T=c.format(x.date,"fullDateWithWeekday"),A=x.isToday?"currentDate":"selectDate";return o(`$vuetify.datePicker.ariaLabel.${A}`,T)}function b(x){const T=l.value.findIndex(A=>c.isSameDay(A,x));if(T===-1)l.value=[...l.value,x];else{const A=[...l.value];A.splice(T,1),l.value=A}}function w(x){e.multiple==="range"?g(x):e.multiple?b(x):l.value=[x]}function S(x){const{events:T,eventColor:A}=e;let E,I=[];if(Array.isArray(T)?E=T.includes(x):T instanceof Function?E=T(x)||!1:T?E=T[x]||!1:E=!1,E)E!==!0?I=Kn(E):typeof A=="string"?I=[A]:typeof A=="function"?I=Kn(A(x)):Array.isArray(A)?I=A:typeof A=="object"&&A!==null&&(I=Kn(A[x]));else return[];return I.length?I.filter(Boolean).map(M=>typeof M=="string"?M:"surface-variant"):["surface-variant"]}function _(x){const T=S(x);return T.length?f.createElementVNode("div",{class:"v-date-picker-month__events"},[T.map(A=>f.createVNode(vK,{dot:!0,color:A},null))]):null}Ae(()=>f.createElementVNode("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&f.createElementVNode("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&f.createElementVNode("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[f.createTextVNode(" ")]),s.value.map(x=>f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[x]))]),f.createVNode(Wo,{name:p.value},{default:()=>[f.createElementVNode("div",{ref:a,key:i.value[0].date?.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&u.value.map(x=>f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day","v-date-picker-month__weekday"])},[x])),i.value.map((x,T)=>{const A={props:{class:"v-date-picker-month__day-btn",color:x.isSelected||x.isToday?e.color:void 0,disabled:x.isDisabled,readonly:e.readonly,icon:!0,ripple:!1,variant:x.isSelected?"flat":x.isToday?"outlined":"text","aria-label":y(x),"aria-current":x.isToday?"date":void 0,onClick:()=>w(x.date)},item:x,i:T};return m.value&&!x.isSelected&&(x.isDisabled=!0),f.createElementVNode("div",{class:f.normalizeClass(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":x.isAdjacent,"v-date-picker-month__day--hide-adjacent":x.isHidden,"v-date-picker-month__day--selected":x.isSelected,"v-date-picker-month__day--week-end":x.isWeekEnd,"v-date-picker-month__day--week-start":x.isWeekStart}]),"data-v-date":x.isDisabled?void 0:x.isoDate},[(e.showAdjacentMonths||!x.isAdjacent)&&(r.day?.(A)??f.createVNode(_t,A.props,{default:()=>[x.localized,_(x.isoDate)]}))])})])]})]))}}),aZ=ie({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),pL=Te()({name:"VDatePickerMonths",props:aZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Nv(),o=ot(e,"modelValue"),i=f.computed(()=>{let s=a.startOfYear(a.date());return e.year&&(s=a.setYear(s,e.year)),wu(12).map(u=>{const c=a.format(s,"monthShort"),d=a.format(s,"month"),h=!!(!l(u)||e.min&&a.isAfter(a.startOfMonth(a.date(e.min)),s)||e.max&&a.isAfter(s,a.startOfMonth(a.date(e.max))));return s=a.getNextMonth(s),{isDisabled:h,text:c,label:d,value:u}})});f.watchEffect(()=>{o.value=o.value??a.getMonth(a.date())});function l(s){return Array.isArray(e.allowedMonths)&&e.allowedMonths.length?e.allowedMonths.includes(s):typeof e.allowedMonths=="function"?e.allowedMonths(s):!0}return Ae(()=>f.createElementVNode("div",{class:"v-date-picker-months",style:{height:Oe(e.height)}},[f.createElementVNode("div",{class:"v-date-picker-months__content"},[i.value.map((s,u)=>{const c={active:o.value===u,ariaLabel:s.label,color:o.value===u?e.color:void 0,disabled:s.isDisabled,rounded:!0,text:s.text,variant:o.value===s.value?"flat":"text",onClick:()=>d(u)};function d(h){if(o.value===h){n("update:modelValue",o.value);return}o.value=h}return r.month?.({month:s,i:u,props:c})??f.createVNode(_t,f.mergeProps({key:"month"},c),null)})])])),{}}}),oZ=ie({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),mL=Te()({name:"VDatePickerYears",props:oZ(),directives:{vIntersect:cl},emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Nv(),o=ot(e,"modelValue"),i=f.shallowRef(!1),l=f.computed(()=>{const h=a.getYear(a.date());let v=h-100,p=h+52;e.min&&(v=a.getYear(a.date(e.min))),e.max&&(p=a.getYear(a.date(e.max)));let m=a.startOfYear(a.date());return m=a.setYear(m,v),wu(p-v+1,v).map(g=>{const y=a.format(m,"year");return m=a.setYear(m,a.getYear(m)+1),{text:y,value:g,isDisabled:!d(g)}})});f.watchEffect(()=>{o.value=o.value??a.getYear(a.date())});const s=X1(),u=X1();function c(){const h=s.el,v=u.el;if(!h||!v)return;const p=h.getBoundingClientRect(),m=v.getBoundingClientRect();h.scrollTop+=m.top-p.top-h.clientHeight/2+m.height/2}function d(h){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(h):typeof e.allowedYears=="function"?e.allowedYears(h):!0}return Ae(()=>f.withDirectives(f.createElementVNode("div",{class:"v-date-picker-years",ref:s,style:{height:Oe(e.height)}},[f.createElementVNode("div",{class:"v-date-picker-years__content",onFocus:()=>u.el?.focus(),onFocusin:()=>i.value=!0,onFocusout:()=>i.value=!1,tabindex:i.value?-1:0},[l.value.map((h,v)=>{const p={ref:o.value===h.value?u:void 0,active:o.value===h.value,color:o.value===h.value?e.color:void 0,rounded:!0,text:h.text,disabled:h.isDisabled,variant:o.value===h.value?"flat":"text",onClick:()=>{if(o.value===h.value){n("update:modelValue",o.value);return}o.value=h.value}};return r.year?.({year:h,i:v,props:p})??f.createVNode(_t,f.mergeProps({key:"month"},p),null)})])]),[[cl,{handler:c},null,{once:!0}]])),{}}}),$De=ie({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,headerDateFormat:{type:String,default:"normalDateWithWeekday"},landscapeHeaderWidth:[Number,String],...Kt(tZ(),["active","monthText","yearText"]),...rZ({weeksInMonth:"static"}),...Kt(aZ(),["modelValue"]),...Kt(oZ(),["modelValue"]),...W_({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),q_=Te()({name:"VDatePicker",props:$De(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const a=Nv(),{t:o}=An(),{rtlClasses:i}=ta(),l=ot(e,"modelValue",void 0,Y=>Kn(Y).map(Z=>a.date(Z)),Y=>e.multiple?Y:Y[0]),s=ot(e,"viewMode"),{minDate:u,maxDate:c,clampDate:d}=nZ(e),h=f.computed(()=>{const Y=a.date(),Z=l.value?.[0]?a.date(l.value[0]):d(Y);return Z&&a.isValid(Z)?Z:Y}),v=f.toRef(()=>e.headerColor??e.color),p=ot(e,"month"),m=f.computed({get:()=>Number(p.value??a.getMonth(a.startOfMonth(h.value))),set:Y=>p.value=Y}),g=ot(e,"year"),y=f.computed({get:()=>Number(g.value??a.getYear(a.startOfYear(a.setMonth(h.value,m.value)))),set:Y=>g.value=Y}),b=f.shallowRef(!1),w=f.computed(()=>{if(e.multiple&&l.value.length>1)return o("$vuetify.datePicker.itemsSelected",l.value.length);const Y=l.value[0]&&a.isValid(l.value[0])?a.format(a.date(l.value[0]),e.headerDateFormat):o(e.header);return e.landscape&&Y.split(" ").length===3?Y.replace(" ",` +`):Y}),S=f.toRef(()=>{let Y=a.date();return Y=a.setDate(Y,1),Y=a.setMonth(Y,m.value),Y=a.setYear(Y,y.value),Y}),_=f.toRef(()=>a.format(S.value,"monthAndYear")),x=f.toRef(()=>a.format(S.value,"monthShort")),T=f.toRef(()=>a.format(S.value,"year")),A=f.toRef(()=>`date-picker-header${b.value?"-reverse":""}-transition`),E=f.computed(()=>{if(e.disabled)return!0;const Y=[];if(s.value!=="month")Y.push("prev-month","next-month","prev-year","next-year");else{let Z=a.date();if(Z=a.startOfMonth(Z),Z=a.setMonth(Z,m.value),Z=a.setYear(Z,y.value),u.value){const ne=a.addDays(a.startOfMonth(Z),-1),$=a.addDays(a.startOfYear(Z),-1);a.isAfter(u.value,ne)&&Y.push("prev-month"),a.isAfter(u.value,$)&&Y.push("prev-year")}if(c.value){const ne=a.addDays(a.endOfMonth(Z),1),$=a.addDays(a.endOfYear(Z),1);a.isAfter(ne,c.value)&&Y.push("next-month"),a.isAfter($,c.value)&&Y.push("next-year")}}return Y}),I=f.computed(()=>e.allowedYears||D),M=f.computed(()=>e.allowedMonths||P);function N(Y,Z){const ne=e.allowedDates;if(typeof ne!="function")return!0;const $=1+WK(a,Y,Z);for(let ae=0;ae<$;ae++)if(ne(a.addDays(Y,ae)))return!0;return!1}function D(Y){if(typeof e.allowedDates=="function"){const Z=a.parseISO(`${Y}-01-01`);return N(Z,a.endOfYear(Z))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const Z of e.allowedDates)if(a.getYear(a.date(Z))===Y)return!0;return!1}return!0}function P(Y){if(typeof e.allowedDates=="function"){const Z=String(Y+1).padStart(2,"0"),ne=a.parseISO(`${y.value}-${Z}-01`);return N(ne,a.endOfMonth(ne))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const Z of e.allowedDates)if(a.getYear(a.date(Z))===y.value&&a.getMonth(a.date(Z))===Y)return!0;return!1}return!0}function O(){m.value<11?m.value++:(y.value++,m.value=0,U()),j()}function L(){m.value>0?m.value--:(y.value--,m.value=11,U()),j()}function R(){if(y.value++,c.value){const Y=String(m.value+1).padStart(2,"0"),Z=a.parseISO(`${y.value}-${Y}-01`);a.isAfter(Z,c.value)&&(m.value=a.getMonth(c.value))}U()}function B(){if(y.value--,u.value){const Y=String(m.value+1).padStart(2,"0"),Z=a.endOfMonth(a.parseISO(`${y.value}-${Y}-01`));a.isAfter(u.value,Z)&&(m.value=a.getMonth(u.value))}U()}function z(){s.value="month"}function H(){s.value=s.value==="months"?"month":"months"}function G(){s.value=s.value==="year"?"month":"year"}function j(){s.value==="months"&&H()}function U(){s.value==="year"&&G()}return f.watch(l,(Y,Z)=>{const ne=Kn(Z),$=Kn(Y);if(!$.length)return;const ae=a.date(ne[ne.length-1]),de=a.date($[$.length-1]);if(a.isSameDay(ae,de))return;const ve=a.getMonth(de),ge=a.getYear(de);ve!==m.value&&(m.value=ve,j()),ge!==y.value&&(y.value=ge,U()),b.value=a.isBefore(ae,de)}),Ae(()=>{const Y=ey.filterProps(e),Z=Kt(fL.filterProps(e),["viewMode"]),ne=hL.filterProps(e),$=vL.filterProps(e),ae=Kt(pL.filterProps(e),["modelValue"]),de=Kt(mL.filterProps(e),["modelValue"]),ve={color:v.value,header:w.value,transition:A.value};return f.createVNode(ey,f.mergeProps(Y,{color:v.value,class:["v-date-picker",`v-date-picker--${s.value}`,{"v-date-picker--show-week":e.showWeek},i.value,e.class],style:[{"--v-date-picker-landscape-header-width":Oe(e.landscapeHeaderWidth)},e.style]}),{title:()=>r.title?.()??f.createElementVNode("div",{class:"v-date-picker__title"},[o(e.title)]),header:()=>r.header?f.createVNode(zt,{defaults:{VDatePickerHeader:{...ve}}},{default:()=>[r.header?.(ve)]}):f.createVNode(hL,f.mergeProps({key:"header"},ne,ve,{onClick:s.value!=="month"?z:void 0}),{prepend:r.prepend,append:r.append}),default:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(fL,f.mergeProps(Z,{disabled:E.value,viewMode:s.value,text:_.value,monthText:x.value,yearText:T.value,"onClick:next":O,"onClick:prev":L,"onClick:nextYear":R,"onClick:prevYear":B,"onClick:month":H,"onClick:year":G}),{default:r.controls}),f.createVNode($1,{hideOnLeave:!0},{default:()=>[s.value==="months"?f.createVNode(pL,f.mergeProps({key:"date-picker-months"},ae,{modelValue:m.value,"onUpdate:modelValue":[ge=>m.value=ge,j],min:u.value,max:c.value,year:y.value,allowedMonths:M.value}),{month:r.month}):s.value==="year"?f.createVNode(mL,f.mergeProps({key:"date-picker-years"},de,{modelValue:y.value,"onUpdate:modelValue":[ge=>y.value=ge,U],min:u.value,max:c.value,allowedYears:I.value}),{year:r.year}):f.createVNode(vL,f.mergeProps({key:"date-picker-month"},$,{modelValue:l.value,"onUpdate:modelValue":ge=>l.value=ge,month:m.value,"onUpdate:month":[ge=>m.value=ge,j],year:y.value,"onUpdate:year":[ge=>y.value=ge,U],min:u.value,max:c.value}),{day:r.day})]})]),actions:r.actions})}),{}}}),eVe=ie({actionText:String,bgColor:String,color:String,icon:st,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...nt(),...Yr(),...Tu({size:void 0}),...pn()},"VEmptyState"),tVe=Te()({name:"VEmptyState",props:eVe(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{themeClasses:a}=In(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.bgColor),{dimensionStyles:l}=jr(e),{displayClasses:s}=vl();function u(c){n("click:action",c)}return Ae(()=>{const c=!!(r.actions||e.actionText),d=!!(r.headline||e.headline),h=!!(r.title||e.title),v=!!(r.text||e.text),p=!!(r.media||e.image||e.icon),m=e.size||(e.image?200:96);return f.createElementVNode("div",{class:f.normalizeClass(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},a.value,o.value,s.value,e.class]),style:f.normalizeStyle([i.value,l.value,e.style])},[p&&f.createElementVNode("div",{key:"media",class:"v-empty-state__media"},[r.media?f.createVNode(zt,{key:"media-defaults",defaults:{VImg:{src:e.image,height:m},VIcon:{size:m,icon:e.icon}}},{default:()=>[r.media()]}):f.createElementVNode(f.Fragment,null,[e.image?f.createVNode(Bc,{key:"image",src:e.image,height:m},null):e.icon?f.createVNode(Ct,{key:"icon",color:e.color,size:m,icon:e.icon},null):void 0])]),d&&f.createElementVNode("div",{key:"headline",class:"v-empty-state__headline"},[r.headline?.()??e.headline]),h&&f.createElementVNode("div",{key:"title",class:"v-empty-state__title"},[r.title?.()??e.title]),v&&f.createElementVNode("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:Oe(e.textWidth)}},[r.text?.()??e.text]),r.default&&f.createElementVNode("div",{key:"content",class:"v-empty-state__content"},[r.default()]),c&&f.createElementVNode("div",{key:"actions",class:"v-empty-state__actions"},[f.createVNode(zt,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[r.actions?.({props:{onClick:u}})??f.createVNode(_t,{onClick:u},null)]})])])}),{}}}),kw=Symbol.for("vuetify:v-expansion-panel"),iZ=ie({...nt(),...wN()},"VExpansionPanelText"),gL=Te()({name:"VExpansionPanelText",props:iZ(),setup(e,t){let{slots:n}=t;const r=f.inject(kw);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:a,onAfterLeave:o}=SN(e,r.isSelected);return Ae(()=>f.createVNode(y_,{onAfterLeave:o},{default:()=>[f.withDirectives(f.createElementVNode("div",{class:f.normalizeClass(["v-expansion-panel-text",e.class]),style:f.normalizeStyle(e.style)},[n.default&&a.value&&f.createElementVNode("div",{class:"v-expansion-panel-text__wrapper"},[n.default?.()])]),[[f.vShow,r.isSelected.value]])]})),{}}}),lZ=ie({color:String,expandIcon:{type:st,default:"$expand"},collapseIcon:{type:st,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...nt(),...Yr()},"VExpansionPanelTitle"),yL=Te()({name:"VExpansionPanelTitle",directives:{vRipple:eo},props:lZ(),setup(e,t){let{slots:n}=t;const r=f.inject(kw);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{dimensionStyles:i}=jr(e),l=f.computed(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),s=f.toRef(()=>r.isSelected.value?e.collapseIcon:e.expandIcon);return Ae(()=>f.withDirectives(f.createElementVNode("button",{class:f.normalizeClass(["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},a.value,e.class]),style:f.normalizeStyle([o.value,i.value,e.style]),type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[f.createElementVNode("span",{class:"v-expansion-panel-title__overlay"},null),n.default?.(l.value),!e.hideActions&&f.createVNode(zt,{defaults:{VIcon:{icon:s.value}}},{default:()=>[f.createElementVNode("span",{class:"v-expansion-panel-title__icon"},[n.actions?.(l.value)??f.createVNode(Ct,null,null)])]})]),[[eo,e.ripple]])),{}}}),sZ=ie({title:String,text:String,bgColor:String,...Kr(),...xv(),...$n(),...Ht(),...lZ(),...iZ()},"VExpansionPanel"),nVe=Te()({name:"VExpansionPanel",props:sZ(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=lf(e,kw),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.bgColor),{elevationClasses:i}=pa(e),{roundedClasses:l}=cr(e),s=f.toRef(()=>r?.disabled.value||e.disabled),u=f.computed(()=>r.group.items.value.reduce((h,v,p)=>(r.group.selected.value.includes(v.id)&&h.push(p),h),[])),c=f.computed(()=>{const h=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-h===1)}),d=f.computed(()=>{const h=r.group.items.value.findIndex(v=>v.id===r.id);return!r.isSelected.value&&u.value.some(v=>v-h===-1)});return f.provide(kw,r),Ae(()=>{const h=!!(n.text||e.text),v=!!(n.title||e.title),p=yL.filterProps(e),m=gL.filterProps(e);return f.createVNode(e.tag,{class:f.normalizeClass(["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":s.value},l.value,a.value,e.class]),style:f.normalizeStyle([o.value,e.style])},{default:()=>[f.createElementVNode("div",{class:f.normalizeClass(["v-expansion-panel__shadow",...i.value])},null),f.createVNode(zt,{defaults:{VExpansionPanelTitle:{...p},VExpansionPanelText:{...m}}},{default:()=>[v&&f.createVNode(yL,{key:"title"},{default:()=>[n.title?n.title():e.title]}),h&&f.createVNode(gL,{key:"text"},{default:()=>[n.text?n.text():e.text]}),n.default?.()]})]})}),{groupItem:r}}}),rVe=["default","accordion","inset","popout"],aVe=ie({flat:Boolean,...Sv(),...vi(sZ(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...pn(),...nt(),...Ht(),variant:{type:String,default:"default",validator:e=>rVe.includes(e)}},"VExpansionPanels"),oVe=Te()({name:"VExpansionPanels",props:aVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:r,prev:a}=sf(e,kw),{themeClasses:o}=In(e),i=f.toRef(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return _r({VExpansionPanel:{bgColor:f.toRef(()=>e.bgColor),collapseIcon:f.toRef(()=>e.collapseIcon),color:f.toRef(()=>e.color),eager:f.toRef(()=>e.eager),elevation:f.toRef(()=>e.elevation),expandIcon:f.toRef(()=>e.expandIcon),focusable:f.toRef(()=>e.focusable),hideActions:f.toRef(()=>e.hideActions),readonly:f.toRef(()=>e.readonly),ripple:f.toRef(()=>e.ripple),rounded:f.toRef(()=>e.rounded),static:f.toRef(()=>e.static)}}),Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},o.value,i.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.({prev:a,next:r})]})),{next:r,prev:a}}}),iVe=ie({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...Kt(__({active:!0}),["location","spaced"]),...mv(),..._u(),...Rc({transition:"fab-transition"})},"VFab"),lVe=Te()({name:"VFab",props:iVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.shallowRef(56),o=f.ref(),{resizeRef:i}=Gl(d=>{d.length&&(a.value=d[0].target.clientHeight)}),l=f.toRef(()=>e.app||e.absolute),s=f.computed(()=>l.value?e.location?.split(" ").shift()??"bottom":!1),u=f.computed(()=>l.value?e.location?.split(" ")[1]??"end":!1);qa(()=>e.app,()=>{const d=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:s,layoutSize:f.computed(()=>e.layout?a.value+24:0),elementSize:f.computed(()=>a.value+24),active:f.computed(()=>e.app&&r.value),absolute:f.toRef(()=>e.absolute)});f.watchEffect(()=>{o.value=d.layoutItemStyles.value})});const c=f.ref();return Ae(()=>{const d=_t.filterProps(e);return f.createElementVNode("div",{ref:c,class:f.normalizeClass(["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${s.value}`]:l.value,[`v-fab--${u.value}`]:l.value},e.class]),style:f.normalizeStyle([e.app?{...o.value}:{height:e.absolute?"100%":"inherit"},e.style])},[f.createElementVNode("div",{class:"v-fab__container"},[f.createVNode(Wo,{appear:e.appear,transition:e.transition},{default:()=>[f.withDirectives(f.createVNode(_t,f.mergeProps({ref:i},d,{active:void 0,location:void 0}),n),[[f.vShow,e.active]])]})])])}),{}}});function sVe(){function e(n){return[...n.dataTransfer?.items??[]].filter(a=>a.kind==="file").map(a=>a.webkitGetAsEntry()).filter(Boolean).length>0||[...n.dataTransfer?.files??[]].length>0}async function t(n){const r=[],a=[...n.dataTransfer?.items??[]].filter(o=>o.kind==="file").map(o=>o.webkitGetAsEntry()).filter(Boolean);if(a.length)for(const o of a){const i=await uZ(o,cZ(".",o));r.push(...i.map(l=>l.file))}else r.push(...n.dataTransfer?.files??[]);return r}return{handleDrop:t,hasFilesOrFolders:e}}function uZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((n,r)=>{e.isFile?e.file(o=>n([{file:o,path:t}]),r):e.isDirectory&&e.createReader().readEntries(async o=>{const i=[];for(const l of o)i.push(...await uZ(l,cZ(t,l)));n(i)})})}function cZ(e,t){return t.isDirectory?`${e}/${t.name}`:e}const uVe=ie({filterByType:String},"file-accept");function cVe(e){const t=f.computed(()=>e.filterByType?dVe(e.filterByType):null);function n(r){if(t.value){const a=r.filter(t.value);return{accepted:a,rejected:r.filter(o=>!a.includes(o))}}return{accepted:r,rejected:[]}}return{filterAccepted:n}}function dVe(e){const t=e.split(",").map(o=>o.trim().toLowerCase()),n=t.filter(o=>o.startsWith(".")),r=t.filter(o=>o.endsWith("/*")),a=t.filter(o=>!n.includes(o)&&!r.includes(o));return o=>{const i=o.name.split(".").at(-1)?.toLowerCase()??"",l=o.type.split("/").at(0)?.toLowerCase()??"";return a.includes(o.type)||n.includes(`.${i}`)||r.includes(`${l}/*`)}}const fVe=ie({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...Kt(Gc({prependIcon:"$file"}),["direction"]),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>Kn(e).every(t=>t!=null&&typeof t=="object")},...uVe(),...pw({clearable:!0})},"VFileInput"),dZ=Te()({name:"VFileInput",inheritAttrs:!1,props:fVe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{t:o}=An(),{filterAccepted:i}=cVe(e),l=ot(e,"modelValue",e.modelValue,z=>Kn(z),z=>!e.multiple&&Array.isArray(z)?z[0]:z),{isFocused:s,focus:u,blur:c}=Wc(e),d=f.computed(()=>typeof e.showSize!="boolean"?e.showSize:void 0),h=f.computed(()=>(l.value??[]).reduce((z,H)=>{let{size:G=0}=H;return z+G},0)),v=f.computed(()=>J9(h.value,d.value)),p=f.computed(()=>(l.value??[]).map(z=>{const{name:H="",size:G=0}=z,j=D(H);return e.showSize?`${j} (${J9(G,d.value)})`:j})),m=f.computed(()=>{const z=l.value?.length??0;return e.showSize?o(e.counterSizeString,z,v.value):o(e.counterString,z)}),g=f.ref(),y=f.ref(),b=f.ref(),w=f.toRef(()=>s.value||e.active),S=f.computed(()=>["plain","underlined"].includes(e.variant)),_=f.shallowRef(!1),{handleDrop:x,hasFilesOrFolders:T}=sVe();function A(){b.value!==document.activeElement&&b.value?.focus(),s.value||u()}function E(z){b.value?.click()}function I(z){r("mousedown:control",z)}function M(z){b.value?.click(),r("click:control",z)}function N(z){z.stopPropagation(),A(),f.nextTick(()=>{l.value=[],j1(e["onClick:clear"],z)})}function D(z){if(z.length{(!Array.isArray(z)||!z.length)&&b.value&&(b.value.value="")}),Ae(()=>{const z=!!(a.counter||e.counter),H=!!(z||a.details),[G,j]=Su(n),{modelValue:U,...Y}=to.filterProps(e),Z={...df.filterProps(e),"onClick:clear":N},ne=n.webkitdirectory!==void 0&&n.webkitdirectory!==!1,$=n.accept?String(n.accept):void 0,ae=ne?void 0:e.filterByType??$;return f.createVNode(to,f.mergeProps({ref:g,modelValue:e.multiple?l.value:l.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":_.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":S.value},e.class],style:e.style,"onClick:prepend":E},G,Y,{centerAffix:!S.value,focused:s.value}),{...a,default:de=>{let{id:ve,isDisabled:ge,isDirty:Se,isReadonly:Re,isValid:ee,hasDetails:be}=de;return f.createVNode(df,f.mergeProps({ref:y,prependIcon:e.prependIcon,onMousedown:I,onClick:M,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Z,{id:ve.value,active:w.value||Se.value,dirty:Se.value||e.dirty,disabled:ge.value,focused:s.value,details:be.value,error:ee.value===!1,onDragover:P,onDrop:L}),{...a,default:Ie=>{let{props:{class:He,...yt},controlRef:St}=Ie;return f.createElementVNode(f.Fragment,null,[f.createElementVNode("input",f.mergeProps({ref:X=>b.value=St.value=X,type:"file",accept:ae,readonly:Re.value,disabled:ge.value,multiple:e.multiple,name:e.name,onClick:X=>{X.stopPropagation(),Re.value&&X.preventDefault(),A()},onChange:R,onDragleave:O,onFocus:A,onBlur:c},yt,j),null),f.createElementVNode("div",{class:f.normalizeClass(He)},[!!l.value?.length&&!e.hideInput&&(a.selection?a.selection({fileNames:p.value,totalBytes:h.value,totalBytesReadable:v.value}):e.chips?p.value.map(X=>f.createVNode(pl,{key:X,size:"small",text:X},null)):p.value.join(", "))])])}})},details:H?de=>f.createElementVNode(f.Fragment,null,[a.details?.(de),z&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(I_,{active:!!l.value?.length,value:m.value,disabled:e.disabled},a.counter)])]):void 0})}),ma({},g,y,b)}}),hVe=ie({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...xo(),...nt(),...Kr(),...mv(),...$n(),...Ht({tag:"footer"}),...pn()},"VFooter"),vVe=Te()({name:"VFooter",props:hVe(),setup(e,t){let{slots:n}=t;const r=f.ref(),{themeClasses:a}=In(e),{backgroundColorClasses:o,backgroundColorStyles:i}=Ln(()=>e.color),{borderClasses:l}=Go(e),{elevationClasses:s}=pa(e),{roundedClasses:u}=cr(e),c=f.shallowRef(32),{resizeRef:d}=Gl(v=>{v.length&&(c.value=v[0].target.clientHeight)}),h=f.computed(()=>e.height==="auto"?c.value:parseInt(e.height,10));return qa(()=>e.app,()=>{const v=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>"bottom"),layoutSize:h,elementSize:f.computed(()=>e.height==="auto"?void 0:h.value),active:f.toRef(()=>e.app),absolute:f.toRef(()=>e.absolute)});f.watchEffect(()=>{r.value=v.layoutItemStyles.value})}),Ae(()=>f.createVNode(e.tag,{ref:d,class:f.normalizeClass(["v-footer",a.value,o.value,l.value,s.value,u.value,e.class]),style:f.normalizeStyle([i.value,e.app?r.value:{height:Oe(e.height)},e.style])},n)),{}}}),pVe=ie({...nt(),...aAe()},"VForm"),Aw=Te()({name:"VForm",props:pVe(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=oAe(e),o=f.ref();function i(s){s.preventDefault(),a.reset()}function l(s){const u=s,c=a.validate();u.then=c.then.bind(c),u.catch=c.catch.bind(c),u.finally=c.finally.bind(c),r("submit",u),u.defaultPrevented||c.then(d=>{let{valid:h}=d;h&&o.value?.submit()}),u.preventDefault()}return Ae(()=>f.createElementVNode("form",{ref:o,class:f.normalizeClass(["v-form",e.class]),style:f.normalizeStyle(e.style),novalidate:!0,onReset:i,onSubmit:l},[n.default?.(a)])),ma(a,o)}}),mVe=ie({color:String,...xo(),...nt(),...$n(),...Ht({tag:"kbd"}),...pn(),...Kr()},"VKbd"),bL=Te()({name:"VKbd",props:mVe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{borderClasses:a}=Go(e),{roundedClasses:o}=cr(e),{backgroundColorClasses:i,backgroundColorStyles:l}=Ln(()=>e.color),{elevationClasses:s}=pa(e);return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-kbd",r.value,i.value,a.value,s.value,o.value,e.class]),style:f.normalizeStyle([l.value,e.style])},n)),{}}});function fZ(e,t,n){const r=n&&e.mac?e.mac:e.default,a=t==="icon"&&!r.icon||t==="symbol"&&!r.symbol?"text":t;let o=r[a]??r.text;return a==="text"&&typeof o=="string"&&o.startsWith("$")&&!o.startsWith("$vuetify.")&&(o=o.slice(1).toUpperCase()),a==="icon"?["icon",o]:[a,o]}const hZ={ctrl:{mac:{symbol:"⌃",icon:"$ctrl",text:"$vuetify.hotkey.ctrl"},default:{text:"Ctrl"}},meta:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},cmd:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},shift:{mac:{symbol:"⇧",icon:"$shift",text:"$vuetify.hotkey.shift"},default:{text:"Shift"}},alt:{mac:{symbol:"⌥",icon:"$alt",text:"$vuetify.hotkey.option"},default:{text:"Alt"}},enter:{default:{symbol:"↵",icon:"$enter",text:"$vuetify.hotkey.enter"}},arrowup:{default:{symbol:"↑",icon:"$arrowup",text:"$vuetify.hotkey.upArrow"}},arrowdown:{default:{symbol:"↓",icon:"$arrowdown",text:"$vuetify.hotkey.downArrow"}},arrowleft:{default:{symbol:"←",icon:"$arrowleft",text:"$vuetify.hotkey.leftArrow"}},arrowright:{default:{symbol:"→",icon:"$arrowright",text:"$vuetify.hotkey.rightArrow"}},backspace:{default:{symbol:"⌫",icon:"$backspace",text:"$vuetify.hotkey.backspace"}},escape:{default:{text:"$vuetify.hotkey.escape"}}," ":{mac:{symbol:"␣",icon:"$space",text:"$vuetify.hotkey.space"},default:{text:"$vuetify.hotkey.space"}},"-":{default:{text:"-"}},"+":{default:{text:"+"}}},gVe=ie({keys:String,displayMode:{type:String,default:"icon"},keyMap:{type:Object,default:()=>hZ},platform:{type:String,default:"auto"},inline:Boolean,disabled:Boolean,prefix:String,suffix:String,variant:{type:String,default:"elevated",validator:e=>["elevated","flat","tonal","outlined","text","plain","contained"].includes(e)},...nt(),...pn(),...xo(),...$n(),...Kr(),color:String},"VHotkey"),wL=Symbol("VHotkey:AND_DELINEATOR"),SL=Symbol("VHotkey:SLASH_DELINEATOR"),vZ=Symbol("VHotkey:THEN_DELINEATOR");function yVe(e,t,n){const r=t.toLowerCase();if(r in e){const a=fZ(e[r],"text",n);return typeof a[1]=="string"?a[1]:String(a[1])}return t.toUpperCase()}function pZ(e,t,n,r){const a=n.toLowerCase();if(a in e){const o=fZ(e[a],t,r);return o[0]==="text"&&typeof o[1]=="string"&&o[1].startsWith("$")&&!o[1].startsWith("$vuetify.")?["text",o[1].replace("$","").toUpperCase(),n]:[...o,n]}return["text",n.toUpperCase(),n]}const bVe=Te()({name:"VHotkey",props:gVe(),setup(e){const{t}=An(),{themeClasses:n}=In(e),{rtlClasses:r}=ta(),{borderClasses:a}=Go(e),{roundedClasses:o}=cr(e),{elevationClasses:i}=pa(e),{colorClasses:l,colorStyles:s,variantClasses:u}=zc(()=>({color:e.color,variant:e.variant==="contained"?"elevated":e.variant})),c=f.computed(()=>e.platform==="auto"?typeof navigator<"u"&&/macintosh/i.test(navigator.userAgent):e.platform==="mac"),d=f.computed(()=>e.keys?e.keys.split(" ").map(y=>{const b=[],w=JIe(y);for(let S=0;S0&&b.push(vZ);const{keys:x,separators:T}=XK(_);for(let A=0;A0&&b.push(T[A-1]==="/"?SL:wL),b.push(pZ(e.keyMap,e.displayMode,E,c.value))}}return b}):[]),h=f.computed(()=>{if(!e.keys)return"";const b=d.value.map(w=>{const S=[];for(const _ of w)if(Array.isArray(_)){const x=_[0]==="icon"||_[0]==="symbol"?pZ(So(hZ,e.keyMap),"text",String(_[1]),c.value)[1]:_[1];S.push(v(x))}else _===wL?S.push(t("$vuetify.hotkey.plus")):_===SL?S.push(t("$vuetify.hotkey.or")):_===vZ&&S.push(t("$vuetify.hotkey.then"));return S.join(" ")}).join(", ");return t("$vuetify.hotkey.shortcut",b)});function v(y){return y.startsWith("$vuetify.")?t(y):y}function p(y){if(e.displayMode==="text")return;const b=yVe(e.keyMap,String(y[2]),c.value);return v(b)}function m(y,b){const w=e.variant==="contained",S=w?"kbd":bL,_=["v-hotkey__key",`v-hotkey__key-${y[0]}`,...w?["v-hotkey__key--nested"]:[a.value,o.value,i.value,l.value]];return f.createVNode(S,{key:b,class:f.normalizeClass(_),style:f.normalizeStyle(w?void 0:s.value),"aria-hidden":"true",title:p(y)},{default:()=>[y[0]==="icon"?f.createVNode(Ct,{icon:y[1],"aria-hidden":"true"},null):v(y[1])]})}function g(y,b){return f.createElementVNode("span",{key:b,class:"v-hotkey__divider","aria-hidden":"true"},[y===wL?"+":y===SL?"/":t("$vuetify.hotkey.then")])}Ae(()=>{const y=f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{key:"prefix",class:"v-hotkey__prefix"},[e.prefix]),d.value.map((b,w)=>f.createElementVNode("span",{class:"v-hotkey__combination",key:w},[b.map((S,_)=>Array.isArray(S)?m(S,_):g(S,_)),w[y]})])})}}),wVe=ie({disabled:Boolean,modelValue:{type:Boolean,default:null},...yN()},"VHover"),SVe=Te()({name:"VHover",props:wVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{runOpenDelay:a,runCloseDelay:o}=bN(e,i=>!e.disabled&&(r.value=i));return()=>n.default?.({isHovering:r.value,props:{onMouseenter:a,onMouseleave:o}})}}),xVe=ie({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...Yr(),...Ht()},"VInfiniteScroll"),mZ=zo({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:r,isIntersecting:a}=ew();return f.watch(a,async o=>{n("intersect",e.side,o)}),Ae(()=>f.createElementVNode("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:r},[f.createTextVNode(" ")])),{}}}),CVe=Te()({name:"VInfiniteScroll",props:xVe(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.ref(),o=f.shallowRef("ok"),i=f.shallowRef("ok"),l=f.computed(()=>Oe(e.margin)),s=f.shallowRef(!1);function u(x){if(!a.value)return;const T=e.direction==="vertical"?"scrollTop":"scrollLeft";a.value[T]=x}function c(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return a.value[x]}function d(){if(!a.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return a.value[x]}function h(){if(!a.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return a.value[x]}f.onMounted(()=>{a.value&&(e.side==="start"?u(d()):e.side==="both"&&u(d()/2-h()/2))});function v(x,T){x==="start"?o.value=T:x==="end"?i.value=T:x==="both"&&(o.value=T,i.value=T)}function p(x){return x==="start"?o.value:i.value}let m=0;function g(x,T){s.value=T,s.value&&y(x)}function y(x){if(e.mode!=="manual"&&!s.value)return;const T=p(x);if(!a.value||["empty","loading"].includes(T))return;m=d(),v(x,"loading");function A(E){v(x,E),f.nextTick(()=>{E==="empty"||E==="error"||(E==="ok"&&x==="start"&&u(d()-m+c()),e.mode!=="manual"&&f.nextTick(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{y(x)})})})}))})}r("load",{side:x,done:A})}const{t:b}=An();function w(x,T){if(e.side!==x&&e.side!=="both")return;const A=()=>y(x),E={side:x,props:{onClick:A,color:e.color}};return T==="error"?n.error?.(E):T==="empty"?n.empty?.(E)??f.createElementVNode("div",null,[b(e.emptyText)]):e.mode==="manual"?T==="loading"?n.loading?.(E)??f.createVNode(uf,{indeterminate:!0,color:e.color},null):n["load-more"]?.(E)??f.createVNode(_t,{variant:"outlined",color:e.color,onClick:A},{default:()=>[b(e.loadMoreText)]}):n.loading?.(E)??f.createVNode(uf,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:S}=jr(e);Ae(()=>{const x=e.tag,T=e.side==="start"||e.side==="both",A=e.side==="end"||e.side==="both",E=e.mode==="intersect";return f.createVNode(x,{ref:a,class:f.normalizeClass(["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":T,"v-infinite-scroll--end":A}]),style:f.normalizeStyle(S.value)},{default:()=>[f.createElementVNode("div",{class:"v-infinite-scroll__side"},[w("start",o.value)]),T&&E&&f.createVNode(mZ,{key:"start",side:"start",onIntersect:g,rootMargin:l.value},null),n.default?.(),A&&E&&f.createVNode(mZ,{key:"end",side:"end",onIntersect:g,rootMargin:l.value},null),f.createElementVNode("div",{class:"v-infinite-scroll__side"},[w("end",i.value)])]})});function _(x){const T=x??e.side;v(T,"ok"),f.nextTick(()=>{T!=="end"&&u(d()-m+c()),e.mode!=="manual"&&f.nextTick(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{T==="both"?(y("start"),y("end")):y(T)})})})})})}return{reset:_}}}),gZ=Symbol.for("vuetify:v-item-group"),_Ve=ie({...nt(),...Sv({selectedClass:"v-item--selected"}),...Ht(),...pn()},"VItemGroup"),TVe=Te()({name:"VItemGroup",props:_Ve(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{isSelected:a,select:o,next:i,prev:l,selected:s}=sf(e,gZ);return()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-item-group",r.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.({isSelected:a,select:o,next:i,prev:l,selected:s.value})]})}}),kVe=Te()({name:"VItem",props:xv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:a,toggle:o,selectedClass:i,value:l,disabled:s}=lf(e,gZ);return()=>n.default?.({isSelected:r.value,selectedClass:i.value,select:a,toggle:o,value:l.value,disabled:s.value})}}),AVe=ie({...nt(),...Yr(),...VY()},"VLayout"),EVe=Te()({name:"VLayout",props:AVe(),setup(e,t){let{slots:n}=t;const{layoutClasses:r,layoutStyles:a,getLayoutItem:o,items:i,layoutRef:l}=NY(e),{dimensionStyles:s}=jr(e);return Ae(()=>f.createElementVNode("div",{ref:l,class:f.normalizeClass([r.value,e.class]),style:f.normalizeStyle([s.value,a.value,e.style])},[n.default?.()])),{getLayoutItem:o,items:i}}}),IVe=ie({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...nt(),...mv()},"VLayoutItem"),MVe=Te()({name:"VLayoutItem",props:IVe(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:r}=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.toRef(()=>e.position),elementSize:f.toRef(()=>e.size),layoutSize:f.toRef(()=>e.size),active:f.toRef(()=>e.modelValue),absolute:f.toRef(()=>e.absolute)});return()=>f.createElementVNode("div",{class:f.normalizeClass(["v-layout-item",e.class]),style:f.normalizeStyle([r.value,e.style])},[n.default?.()])}}),DVe=ie({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...nt(),...Yr(),...Ht(),...Rc({transition:"fade-transition"})},"VLazy"),VVe=Te()({name:"VLazy",directives:{vIntersect:cl},props:DVe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=jr(e),a=ot(e,"modelValue");function o(i){a.value||(a.value=i)}return Ae(()=>f.withDirectives(f.createVNode(e.tag,{class:f.normalizeClass(["v-lazy",e.class]),style:f.normalizeStyle([r.value,e.style])},{default:()=>[a.value&&f.createVNode(Wo,{transition:e.transition,appear:!0},{default:()=>[n.default?.()]})]}),[[cl,{handler:o,options:e.options},null]])),{}}}),PVe=ie({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...nt()},"VLocaleProvider"),NVe=Te()({name:"VLocaleProvider",props:PVe(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=HY(e);return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-locale-provider",r.value,e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),LVe=ie({scrollable:Boolean,...nt(),...Yr(),...Ht({tag:"main"})},"VMain"),OVe=Te()({name:"VMain",props:LVe(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=jr(e),{mainStyles:a}=PY(),{ssrBootStyles:o}=wv();return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:f.normalizeStyle([a.value,o.value,r.value,e.style])},{default:()=>[e.scrollable?f.createElementVNode("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]})),{}}});function RVe(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const a=f.shallowRef(!1),o=f.shallowRef(0),i=f.computed(()=>{const u=typeof a.value=="boolean"?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[u]:Oe(o.value)}:{top:r.value.top}]});f.onMounted(()=>{f.watch(n,u=>{u?window.addEventListener("scroll",s,{passive:!0}):window.removeEventListener("scroll",s)},{immediate:!0})}),f.onBeforeUnmount(()=>{window.removeEventListener("scroll",s)});let l=0;function s(){const u=l>window.scrollY?"up":"down",c=t.value.getBoundingClientRect(),d=parseFloat(r.value.top??0),h=window.scrollY-Math.max(0,o.value-d),v=c.height+Math.max(o.value,d)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;c.height0;n--){if(e[n].t===e[n-1].t)continue;const r=yZ(t),a=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(a-r)*Math.abs(a),n===e.length-1&&(t*=.5)}return yZ(t)*1e3}function HVe(){const e={};function t(a){Array.from(a.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new q9(FVe))).push([a.timeStamp,o])})}function n(a){Array.from(a.changedTouches).forEach(o=>{delete e[o.identifier]})}function r(a){const o=e[a]?.values().reverse();if(!o)throw new Error(`No samples for touch id ${a}`);const i=o[0],l=[],s=[];for(const u of o){if(i[0]-u[0]>BVe)break;l.push({t:u[0],d:u[1].clientX}),s.push({t:u[0],d:u[1].clientY})}return{x:bZ(l),y:bZ(s),get direction(){const{x:u,y:c}=this,[d,h]=[Math.abs(u),Math.abs(c)];return d>h&&u>=0?"right":d>h&&u<=0?"left":h>d&&c>=0?"down":h>d&&c<=0?"up":zVe()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function zVe(){throw new Error}function WVe(e){let{el:t,isActive:n,isTemporary:r,width:a,touchless:o,position:i}=e;f.onMounted(()=>{window.addEventListener("touchstart",b,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",S,{passive:!0})}),f.onBeforeUnmount(()=>{window.removeEventListener("touchstart",b),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",S)});const l=f.computed(()=>["left","right"].includes(i.value)),{addMovement:s,endTouch:u,getVelocity:c}=HVe();let d=!1;const h=f.shallowRef(!1),v=f.shallowRef(0),p=f.shallowRef(0);let m;function g(x,T){return(i.value==="left"?x:i.value==="right"?document.documentElement.clientWidth-x:i.value==="top"?x:i.value==="bottom"?document.documentElement.clientHeight-x:ny())-(T?a.value:0)}function y(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const A=i.value==="left"?(x-p.value)/a.value:i.value==="right"?(document.documentElement.clientWidth-x-p.value)/a.value:i.value==="top"?(x-p.value)/a.value:i.value==="bottom"?(document.documentElement.clientHeight-x-p.value)/a.value:ny();return T?Fn(A):A}function b(x){if(o.value)return;const T=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY,E=25,I=i.value==="left"?Tdocument.documentElement.clientWidth-E:i.value==="top"?Adocument.documentElement.clientHeight-E:ny(),M=n.value&&(i.value==="left"?Tdocument.documentElement.clientWidth-a.value:i.value==="top"?Adocument.documentElement.clientHeight-a.value:ny());(I||M||n.value&&r.value)&&(m=[T,A],p.value=g(l.value?T:A,n.value),v.value=y(l.value?T:A),d=p.value>-20&&p.value<80,u(x),s(x))}function w(x){const T=x.changedTouches[0].clientX,A=x.changedTouches[0].clientY;if(d){if(!x.cancelable){d=!1;return}const I=Math.abs(T-m[0]),M=Math.abs(A-m[1]);(l.value?I>M&&I>3:M>I&&M>3)?(h.value=!0,d=!1):(l.value?M:I)>3&&(d=!1)}if(!h.value)return;x.preventDefault(),s(x);const E=y(l.value?T:A,!1);v.value=Math.max(0,Math.min(1,E)),E>1?p.value=g(l.value?T:A,!0):E<0&&(p.value=g(l.value?T:A,!1))}function S(x){if(d=!1,!h.value)return;s(x),h.value=!1;const T=c(x.changedTouches[0].identifier),A=Math.abs(T.x),E=Math.abs(T.y);(l.value?A>E&&A>400:E>A&&E>3)?n.value=T.direction===({left:"right",right:"left",top:"down",bottom:"up"}[i.value]||ny()):n.value=v.value>.5}const _=f.computed(()=>h.value?{transform:i.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:i.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:i.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:i.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:ny(),transition:"none"}:void 0);return qa(h,()=>{const x=t.value?.style.transform??null,T=t.value?.style.transition??null;f.watchEffect(()=>{t.value?.style.setProperty("transform",_.value?.transform||"none"),t.value?.style.setProperty("transition",_.value?.transition||null)}),f.onScopeDispose(()=>{t.value?.style.setProperty("transform",x),t.value?.style.setProperty("transition",T)})}),{isDragging:h,dragProgress:v,dragStyles:_}}function ny(){throw new Error}const GVe=["start","end","left","right","top","bottom"],UVe=ie({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>GVe.includes(e)},sticky:Boolean,...xo(),...nt(),...yN(),..._v({mobile:null}),...Kr(),...mv(),...$n(),...Kt($j(),["disableInitialFocus"]),...Ht({tag:"nav"}),...pn()},"VNavigationDrawer"),YVe=Te()({name:"VNavigationDrawer",props:UVe(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{isRtl:o}=ta(),{themeClasses:i}=In(e),{borderClasses:l}=Go(e),{backgroundColorClasses:s,backgroundColorStyles:u}=Ln(()=>e.color),{elevationClasses:c}=pa(e),{displayClasses:d,mobile:h}=vl(e),{roundedClasses:v}=cr(e),p=ej(),m=ot(e,"modelValue",null,H=>!!H),{ssrBootStyles:g}=wv(),{scopeId:y}=Av(),b=f.ref(),w=f.shallowRef(!1),{runOpenDelay:S,runCloseDelay:_}=bN(e,H=>{w.value=H}),x=f.computed(()=>e.rail&&e.expandOnHover&&w.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),T=f.computed(()=>wP(e.location,o.value)),A=f.toRef(()=>e.persistent),E=f.computed(()=>!e.permanent&&(h.value||e.temporary)),I=f.computed(()=>e.sticky&&!E.value&&T.value!=="bottom");nK(e,{isActive:m,localTop:E,contentEl:b}),qa(()=>e.expandOnHover&&e.rail!=null,()=>{f.watch(w,H=>r("update:rail",!H))}),qa(()=>!e.disableResizeWatcher,()=>{f.watch(E,H=>!e.permanent&&f.nextTick(()=>m.value=!H))}),qa(()=>!e.disableRouteWatcher&&!!p,()=>{f.watch(p.currentRoute,()=>E.value&&(m.value=!1))}),f.watch(()=>e.permanent,H=>{H&&(m.value=!0)}),e.modelValue==null&&!E.value&&(m.value=e.permanent||!h.value);const{isDragging:M,dragProgress:N}=WVe({el:b,isActive:m,isTemporary:E,width:x,touchless:f.toRef(()=>e.touchless),position:T}),D=f.computed(()=>{const H=E.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):x.value;return M.value?H*N.value:H}),{layoutItemStyles:P,layoutItemScrimStyles:O}=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:T,layoutSize:D,elementSize:x,active:f.readonly(m),disableTransitions:f.toRef(()=>M.value),absolute:f.computed(()=>e.absolute||I.value&&typeof L.value!="string")}),{isStuck:L,stickyStyles:R}=RVe({rootEl:b,isSticky:I,layoutItemStyles:P}),B=Ln(()=>typeof e.scrim=="string"?e.scrim:null),z=f.computed(()=>({...M.value?{opacity:N.value*.2,transition:"none"}:void 0,...O.value}));return _r({VList:{bgColor:"transparent"}}),Ae(()=>{const H=a.image||e.image;return f.createElementVNode(f.Fragment,null,[f.createVNode(e.tag,f.mergeProps({ref:b,onMouseenter:S,onMouseleave:_,class:["v-navigation-drawer",`v-navigation-drawer--${T.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":w.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":E.value,"v-navigation-drawer--persistent":A.value,"v-navigation-drawer--active":m.value,"v-navigation-drawer--sticky":I.value},i.value,s.value,l.value,d.value,c.value,v.value,e.class],style:[u.value,P.value,g.value,R.value,e.style],inert:!m.value},y,n),{default:()=>[H&&f.createElementVNode("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?f.createVNode(zt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):f.createVNode(Bc,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&f.createElementVNode("div",{class:"v-navigation-drawer__prepend"},[a.prepend?.()]),f.createElementVNode("div",{class:"v-navigation-drawer__content"},[a.default?.()]),a.append&&f.createElementVNode("div",{class:"v-navigation-drawer__append"},[a.append?.()])]}),f.createVNode(f.Transition,{name:"fade-transition"},{default:()=>[E.value&&(M.value||m.value)&&!!e.scrim&&f.createElementVNode("div",f.mergeProps({class:["v-navigation-drawer__scrim",B.backgroundColorClasses.value],style:[z.value,B.backgroundColorStyles.value],onClick:()=>{A.value||(m.value=!1)}},y),null)]})])}),{isStuck:L}}}),jVe=zo({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=rK();return()=>r.value&&n.default?.()}}),KVe=50,XVe=500;function ZVe(e){let{toggleUpDown:t}=e,n=-1,r=-1;f.onScopeDispose(o);function a(l){o(),i(l),window.addEventListener("pointerup",o),document.addEventListener("blur",o),n=window.setTimeout(()=>{r=window.setInterval(()=>i(l),KVe)},XVe)}function o(){window.clearTimeout(n),window.clearInterval(r),window.removeEventListener("pointerup",o),document.removeEventListener("blur",o)}f.onScopeDispose(o);function i(l){t(l==="up")}return{holdStart:a,holdStop:o}}const JVe=ie({controlVariant:{type:String,default:"default"},inset:Boolean,hideInput:Boolean,modelValue:{type:Number,default:null},min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},precision:{type:Number,default:0},minFractionDigits:{type:Number,default:null},decimalSeparator:{type:String,validator:e=>!e||e.length===1},...Kt(mw(),["modelValue","validationValue"])},"VNumberInput"),wZ=Te()({name:"VNumberInput",props:{...JVe()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.ref(),{holdStart:a,holdStop:o}=ZVe({toggleUpDown:M}),i=Xg(e),l=f.computed(()=>i.isDisabled.value||i.isReadonly.value),s=f.shallowRef(e.focused),{decimalSeparator:u}=An(),c=f.computed(()=>e.decimalSeparator?.[0]||u.value);function d(U){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.precision,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ne=Y==null?String(U):U.toFixed(Y);if(s.value&&Z)return Number(ne).toString().replace(".",c.value);if(e.minFractionDigits===null||Y!==null&&YU??null,U=>U==null?U??null:Fn(Number(U),e.min,e.max)),v=f.shallowRef(null),p=f.shallowRef(null);f.watch(h,U=>{s.value&&!l.value&&Number(v.value?.replace(c.value,"."))===U||(U==null?(v.value=null,p.value=null):isNaN(U)||(v.value=d(U),p.value=Number(v.value.replace(c.value,"."))))},{immediate:!0});const m=f.computed({get:()=>v.value,set(U){if(U===null||U===""){h.value=null,v.value=null,p.value=null;return}const Y=Number(U.replace(c.value,"."));isNaN(Y)||(v.value=U,p.value=Y,Y<=e.max&&Y>=e.min&&(h.value=Y))}}),g=f.computed(()=>{if(p.value===null)return!1;const U=Number(v.value?.replace(c.value,"."));return U!==Fn(U,e.min,e.max)}),y=f.computed(()=>l.value?!1:(h.value??0)+e.step<=e.max),b=f.computed(()=>l.value?!1:(h.value??0)-e.step>=e.min),w=f.computed(()=>e.hideInput?"stacked":e.controlVariant),S=f.toRef(()=>w.value==="split"?"$plus":"$collapse"),_=f.toRef(()=>w.value==="split"?"$minus":"$expand"),x=f.toRef(()=>w.value==="split"?"default":"small"),T=f.toRef(()=>w.value==="stacked"?"auto":"100%"),A={props:{onClick:P,onPointerup:O,onPointerdown:L,onPointercancel:O}},E={props:{onClick:P,onPointerup:O,onPointerdown:R,onPointercancel:O}};f.watch(()=>e.precision,()=>z()),f.watch(()=>e.minFractionDigits,()=>z()),f.onMounted(()=>{B()});function I(U){if(U==null)return 0;const Y=U.toString(),Z=Y.indexOf(".");return~Z?Y.length-Z:0}function M(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(l.value)return;if(h.value==null){m.value=d(Fn(0,e.min,e.max));return}let Y=Math.max(I(h.value),I(e.step));e.precision!=null&&(Y=Math.max(Y,e.precision)),U?y.value&&(m.value=d(h.value+e.step,Y)):b.value&&(m.value=d(h.value-e.step,Y))}function N(U){if(l.value||!U.data)return;const Y=U.target,{value:Z,selectionStart:ne,selectionEnd:$}=Y??{},ae=Z?Z.slice(0,ne)+U.data+Z.slice($):U.data,de=q_e(ae,e.precision,c.value);if(new RegExp(`^-?\\d*${u_(c.value)}?\\d*$`).test(ae)||(U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de)),e.precision!=null){if(ae.split(c.value)[1]?.length>e.precision){U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de);const ve=(ne??0)+U.data.length;Y.setSelectionRange(ve,ve)}e.precision===0&&ae.endsWith(c.value)&&(U.preventDefault(),Y.value=de,f.nextTick(()=>m.value=de))}}async function D(U){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(U.key)||U.ctrlKey||["ArrowDown","ArrowUp"].includes(U.key)&&(U.preventDefault(),U.stopPropagation(),B(),await f.nextTick(),U.key==="ArrowDown"?M(!1):M())}function P(U){U.stopPropagation()}function O(U){U.currentTarget?.releasePointerCapture(U.pointerId),U.preventDefault(),o()}function L(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),a("up")}function R(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),a("down")}function B(){if(l.value||!r.value)return;const U=r.value.value,Y=Number(U.replace(c.value,"."));U&&!isNaN(Y)?m.value=d(Fn(Y,e.min,e.max)):m.value=null}function z(){l.value||(m.value=h.value!==null&&!isNaN(h.value)?d(h.value,e.precision,!1):null)}function H(){if(!l.value){if(h.value===null||isNaN(h.value)){m.value=null;return}m.value=h.value.toString().replace(".",c.value)}}function G(){H()}function j(){B()}return Ae(()=>{const{modelValue:U,type:Y,...Z}=na.filterProps(e);function ne(){return n.increment?f.createVNode(zt,{key:"increment-defaults",defaults:{VBtn:{disabled:!y.value,height:T.value,size:x.value,icon:S.value,variant:"text"}}},{default:()=>[n.increment(A)]}):f.createVNode(_t,{"aria-hidden":"true","data-testid":"increment",disabled:!y.value,height:T.value,icon:S.value,key:"increment-btn",onClick:P,onPointerdown:L,onPointerup:O,onPointercancel:O,size:x.value,variant:"text",tabindex:"-1"},null)}function $(){return n.decrement?f.createVNode(zt,{key:"decrement-defaults",defaults:{VBtn:{disabled:!b.value,height:T.value,size:x.value,icon:_.value,variant:"text"}}},{default:()=>[n.decrement(E)]}):f.createVNode(_t,{"aria-hidden":"true","data-testid":"decrement",disabled:!b.value,height:T.value,icon:_.value,key:"decrement-btn",onClick:P,onPointerdown:R,onPointerup:O,onPointercancel:O,size:x.value,variant:"text",tabindex:"-1"},null)}function ae(){return f.createElementVNode("div",{class:"v-number-input__control"},[$(),f.createVNode(Ma,{vertical:w.value!=="stacked"},null),ne()])}function de(){return!e.hideInput&&!e.inset?f.createVNode(Ma,{vertical:!0},null):void 0}const ve=w.value==="split"?f.createElementVNode("div",{class:"v-number-input__control"},[f.createVNode(Ma,{vertical:!0},null),ne()]):e.reverse||w.value==="hidden"?void 0:f.createElementVNode(f.Fragment,null,[de(),ae()]),ge=n["append-inner"]||ve,Se=w.value==="split"?f.createElementVNode("div",{class:"v-number-input__control"},[$(),f.createVNode(Ma,{vertical:!0},null)]):e.reverse&&w.value!=="hidden"?f.createElementVNode(f.Fragment,null,[ae(),de()]):void 0,Re=n["prepend-inner"]||Se;return f.createVNode(na,f.mergeProps({ref:r},Z,{modelValue:m.value,"onUpdate:modelValue":ee=>m.value=ee,focused:s.value,"onUpdate:focused":ee=>s.value=ee,validationValue:h.value,error:e.error||g.value||void 0,onBeforeinput:N,onFocus:G,onBlur:j,onKeydown:D,class:["v-number-input",{"v-number-input--default":w.value==="default","v-number-input--hide-input":e.hideInput,"v-number-input--inset":e.inset,"v-number-input--reverse":e.reverse,"v-number-input--split":w.value==="split","v-number-input--stacked":w.value==="stacked"},e.class],style:e.style,inputmode:"decimal"}),{...n,"append-inner":ge?function(){for(var ee=arguments.length,be=new Array(ee),Ie=0;Ie!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const{densityClasses:o}=$a(e),{dimensionStyles:i}=jr(e),{isFocused:l,focus:s,blur:u}=Wc(e),c=ot(e,"modelValue","",M=>M==null?[]:String(M).split(""),M=>M.join("")),{t:d}=An(),h=f.computed(()=>Number(e.length)),v=f.computed(()=>Array(h.value).fill(0)),p=f.ref(-1),m=f.ref(),g=f.ref([]),y=f.computed(()=>g.value[p.value]);let b=!1;qa(()=>e.autofocus,()=>{const M=f.effectScope();M.run(()=>{const{intersectionRef:N,isIntersecting:D}=ew();f.watchEffect(()=>{N.value=g.value[0]}),f.watch(D,P=>{P&&(N.value?.focus(),M.stop())})})});function w(){if(I(y.value.value)){y.value.value="";return}if(b)return;const M=c.value.slice(),N=y.value.value;M[p.value]=N;let D=null;p.value>c.value.length?D=c.value.length+1:p.value+1!==h.value&&(D="next"),c.value=M,D&&pv(m.value,D)}function S(){b=!1,w()}function _(M){const N=c.value.slice(),D=p.value;let P=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(M.key)&&(M.preventDefault(),M.key==="ArrowLeft"?P="prev":M.key==="ArrowRight"?P="next":["Backspace","Delete"].includes(M.key)&&(N[p.value]="",c.value=N,p.value>0&&M.key==="Backspace"?P="prev":requestAnimationFrame(()=>{g.value[D]?.select()})),requestAnimationFrame(()=>{P!=null&&pv(m.value,P)}))}function x(M,N){N.preventDefault(),N.stopPropagation();const D=N?.clipboardData?.getData("Text").trim().slice(0,h.value)??"",P=D.length-1===-1?M:D.length-1;I(D)||(c.value=D.split(""),p.value=P)}function T(){c.value=[]}function A(M,N){s(),p.value=N}function E(){u(),p.value=-1}function I(M){return e.type==="number"&&/[^0-9]/g.test(M)}return _r({VField:{color:f.toRef(()=>e.color),bgColor:f.toRef(()=>e.color),baseColor:f.toRef(()=>e.baseColor),disabled:f.toRef(()=>e.disabled),error:f.toRef(()=>e.error),variant:f.toRef(()=>e.variant),rounded:f.toRef(()=>e.rounded)}},{scoped:!0}),f.watch(c,M=>{M.length===h.value&&r("finish",M.join(""))},{deep:!0}),f.watch(p,M=>{M<0||f.nextTick(()=>{g.value[M]?.select()})}),Ae(()=>{const[M,N]=Su(n);return f.createElementVNode("div",f.mergeProps({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},o.value,e.class],style:[e.style]},M),[f.createElementVNode("div",{ref:m,class:"v-otp-input__content",style:f.normalizeStyle([i.value])},[v.value.map((D,P)=>f.createElementVNode(f.Fragment,null,[e.divider&&P!==0&&f.createElementVNode("span",{class:"v-otp-input__divider"},[e.divider]),f.createVNode(df,{focused:l.value&&e.focusAll||p.value===P,key:P},{...a,loader:void 0,default:()=>f.createElementVNode("input",{ref:O=>g.value[P]=O,"aria-label":d(e.label,P+1),autofocus:P===0&&e.autofocus,autocomplete:"one-time-code",class:f.normalizeClass(["v-otp-input__field"]),disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:P===0?h.value:"1",placeholder:e.placeholder,type:e.masked?"password":e.type==="number"?"text":e.type,value:c.value[P],onInput:w,onFocus:O=>A(O,P),onBlur:E,onKeydown:_,onCompositionstart:()=>b=!0,onCompositionend:S,onPaste:O=>x(P,O)},null)})])),f.createElementVNode("input",f.mergeProps({class:"v-otp-input-input",type:"hidden"},N,{value:c.value.join("")}),null),f.createVNode(Ri,{contained:!0,contentClass:"v-otp-input__loader",modelValue:!!e.loading,persistent:!0},{default:()=>[a.loader?.()??f.createVNode(uf,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}),a.default?.()])])}),{blur:()=>{g.value?.some(M=>M.blur())},focus:()=>{g.value?.[0].focus()},reset:T,isFocused:l}}});function $Ve(e){return Math.floor(Math.abs(e))*Math.sign(e)}const ePe=ie({scale:{type:[Number,String],default:.5},...nt()},"VParallax"),tPe=Te()({name:"VParallax",props:ePe(),setup(e,t){let{slots:n}=t;const{intersectionRef:r,isIntersecting:a}=ew(),{resizeRef:o,contentRect:i}=Gl(),{height:l}=vl(),s=f.ref();f.watchEffect(()=>{r.value=o.value=s.value?.$el});let u;f.watch(a,v=>{v?(u=p_(r.value),u=u===document.scrollingElement?document:u,u.addEventListener("scroll",h,{passive:!0}),h()):u.removeEventListener("scroll",h)}),f.onBeforeUnmount(()=>{u?.removeEventListener("scroll",h)}),f.watch(l,h),f.watch(()=>i.value?.height,h);const c=f.computed(()=>1-Fn(Number(e.scale)));let d=-1;function h(){!a.value||bu()||(cancelAnimationFrame(d),d=requestAnimationFrame(()=>{const v=(s.value?.$el).querySelector(".v-img__img");if(!v)return;const p=u instanceof Document?document.documentElement.clientHeight:u.clientHeight,m=u instanceof Document?window.scrollY:u.scrollTop,g=r.value.getBoundingClientRect().top+m,y=i.value.height,b=g+(y-p)/2,w=$Ve((m-b)*c.value),S=Math.max(1,(c.value*(p-y)+y)/y);v.style.setProperty("transform",`translateY(${w}px) scale(${S})`)}))}return Ae(()=>f.createVNode(Bc,{class:f.normalizeClass(["v-parallax",{"v-parallax--active":a.value},e.class]),style:f.normalizeStyle(e.style),ref:s,cover:!0,onLoadstart:h,onLoad:h},n)),{}}}),nPe=ie({...T_({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),rPe=Te()({name:"VRadio",props:nPe(),setup(e,t){let{slots:n}=t;return Ae(()=>{const r=cf.filterProps(e);return f.createVNode(cf,f.mergeProps(r,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)}),{}}}),aPe=ie({height:{type:[Number,String],default:"auto"},...Kt(Gc(),["direction"]),...Kt(qP(),["multiple"]),trueIcon:{type:st,default:"$radioOn"},falseIcon:{type:st,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),oPe=Te()({name:"VRadioGroup",inheritAttrs:!1,props:aPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=f.useId(),o=f.computed(()=>e.id||`radio-group-${a}`),i=ot(e,"modelValue"),l=f.ref();return Ae(()=>{const[s,u]=Su(n),c=to.filterProps(e),d=cf.filterProps(e),h=r.label?r.label({label:e.label,props:{for:o.value}}):e.label;return f.createVNode(to,f.mergeProps({ref:l,class:["v-radio-group",e.class],style:e.style},s,c,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:o.value}),{...r,default:v=>{let{id:p,messagesId:m,isDisabled:g,isReadonly:y}=v;return f.createElementVNode(f.Fragment,null,[h&&f.createVNode(Kg,{id:p.value},{default:()=>[h]}),f.createVNode(hj,f.mergeProps(d,{id:p.value,"aria-describedby":m.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:g.value,readonly:y.value,"aria-labelledby":h?p.value:void 0,multiple:!1},u,{modelValue:i.value,"onUpdate:modelValue":b=>i.value=b}),r)])}})}),ma({},l)}}),iPe=ie({...sw(),...Gc(),...dX(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),lPe=Te()({name:"VRangeSlider",inheritAttrs:!1,props:iPe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:r,attrs:a}=t;const o=f.ref(),i=f.ref(),l=f.ref(),{rtlClasses:s}=ta();function u(N){if(!o.value||!i.value)return;const D=jN(N,o.value.$el,e.direction),P=jN(N,i.value.$el,e.direction),O=Math.abs(D),L=Math.abs(P);return ON?.length?N.map(D=>c.roundValue(D)):[0,0]),{activeThumbRef:h,hasLabels:v,max:p,min:m,mousePressed:g,onSliderMousedown:y,onSliderTouchstart:b,position:w,trackContainerRef:S,disabled:_,readonly:x}=hX({props:e,steps:c,onSliderStart:()=>{if(_.value||x.value){h.value?.blur();return}r("start",d.value)},onSliderEnd:N=>{let{value:D}=N;if(_.value||x.value)h.value?.blur();else{const P=h.value===o.value?.$el?[D,d.value[1]]:[d.value[0],D];!e.strict&&P[0]{let{value:D}=N;const[P,O]=d.value;if(_.value||x.value){h.value?.blur();return}!e.strict&&P===O&&P!==m.value&&(h.value=D>P?i.value?.$el:o.value?.$el,h.value?.focus()),h.value===o.value?.$el?d.value=[Math.min(D,O),O]:d.value=[P,Math.max(P,D)]},getActiveThumb:u}),{isFocused:T,focus:A,blur:E}=Wc(e),I=f.computed(()=>w(d.value[0])),M=f.computed(()=>w(d.value[1]));return Ae(()=>{const N=to.filterProps(e),[D,P]=Su(a),O=!!(e.label||n.label||n.prepend);return f.createVNode(to,f.mergeProps({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||v.value,"v-slider--focused":T.value,"v-slider--pressed":g.value,"v-slider--disabled":_.value},s.value,e.class],style:e.style,ref:l},N,D,{focused:T.value}),{...n,prepend:O?L=>f.createElementVNode(f.Fragment,null,[n.label?.(L)??(e.label?f.createVNode(Kg,{class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(L)]):void 0,default:L=>{let{id:R,messagesId:B}=L;return f.createElementVNode("div",{class:"v-slider__container",onMousedown:x.value?void 0:y,onTouchstartPassive:x.value?void 0:b},[f.createElementVNode("input",{id:`${R.value}_start`,name:e.name||R.value,disabled:_.value,readonly:x.value,tabindex:"-1",value:d.value[0]},null),f.createElementVNode("input",{id:`${R.value}_stop`,name:e.name||R.value,disabled:_.value,readonly:x.value,tabindex:"-1",value:d.value[1]},null),f.createVNode(vX,{ref:S,start:I.value,stop:M.value},{"tick-label":n["tick-label"]}),f.createVNode(KN,f.mergeProps({ref:o,"aria-describedby":B.value,focused:T&&h.value===o.value?.$el,modelValue:d.value[0],"onUpdate:modelValue":z=>d.value=[z,d.value[1]],onFocus:z=>{A(),h.value=o.value?.$el,p.value!==m.value&&d.value[0]===d.value[1]&&d.value[1]===m.value&&z.relatedTarget!==i.value?.$el&&(o.value?.$el.blur(),i.value?.$el.focus())},onBlur:()=>{E(),h.value=void 0},min:m.value,max:d.value[1],position:I.value,ripple:e.ripple},P),{"thumb-label":n["thumb-label"]}),f.createVNode(KN,f.mergeProps({ref:i,"aria-describedby":B.value,focused:T&&h.value===i.value?.$el,modelValue:d.value[1],"onUpdate:modelValue":z=>d.value=[d.value[0],z],onFocus:z=>{A(),h.value=i.value?.$el,p.value!==m.value&&d.value[0]===d.value[1]&&d.value[0]===p.value&&z.relatedTarget!==o.value?.$el&&(i.value?.$el.blur(),o.value?.$el.focus())},onBlur:()=>{E(),h.value=void 0},min:d.value[0],max:p.value,position:M.value,ripple:e.ripple},P),{"thumb-label":n["thumb-label"]})])}})}),ma({focus:()=>o.value?.$el.focus()},l)}}),sPe=ie({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:st,default:"$ratingEmpty"},fullIcon:{type:st,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...nt(),...Tr(),...Tu(),...Ht(),...pn()},"VRating"),uPe=Te()({name:"VRating",props:sPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=An(),{themeClasses:a}=In(e),o=f.ref(),i=ot(e,"modelValue"),l=f.computed(()=>Fn(parseFloat(i.value),0,Number(e.length))),s=f.computed(()=>wu(Number(e.length),1)),u=f.computed(()=>s.value.flatMap(S=>e.halfIncrements?[S-.5,S]:[S])),c=f.shallowRef(-1),d=f.computed(()=>u.value.map(S=>{const _=e.hover&&c.value>-1,x=l.value>=S,T=c.value>=S,E=(_?T:x)?e.fullIcon:e.emptyIcon,I=e.activeColor??e.color,M=x||T?I:e.color;return{isFilled:x,isHovered:T,icon:E,color:M}})),h=f.computed(()=>[0,...u.value].map(S=>{function _(){c.value=S}function x(){c.value=-1}function T(){e.disabled||e.readonly||(i.value=l.value===S&&e.clearable?0:S)}return{onMouseenter:e.hover?_:void 0,onMouseleave:e.hover?x:void 0,onClick:T}})),v=f.computed(()=>e.halfIncrements?1+Math.floor(Math.max(0,Number(i.value??0)-.5))*2:Math.floor(Math.max(0,Number(i.value??0)-1)));function p(){o.value?.querySelector('[tabindex="0"]')?.focus()}function m(S){if(e.disabled||e.readonly||S.ctrlKey||S.altKey)return;const _=e.halfIncrements?.5:1;if(S.key==="ArrowRight"){const x=Math.min(Number(e.length),Number(i.value??0)+_);i.value=x,f.nextTick(()=>p())}if(S.key==="ArrowLeft"){const x=Math.max(0,Number(i.value??0)-_);i.value=x,f.nextTick(()=>p())}}const g=f.useId(),y=f.computed(()=>e.name??`v-rating-${g}`);function b(S){let{value:_,index:x,showStar:T=!0}=S;const{onMouseenter:A,onMouseleave:E,onClick:I}=h.value[x+1],M=`${y.value}-${String(_).replace(".","-")}`,N=x===v.value,D={color:d.value[x]?.color,density:e.density,disabled:e.disabled,icon:d.value[x]?.icon,ripple:e.ripple,size:e.size,variant:"plain",tabindex:N?0:-1,onKeydown:m};return f.createElementVNode(f.Fragment,null,[f.createElementVNode("label",{for:M,class:f.normalizeClass({"v-rating__item--half":e.halfIncrements&&_%1>0,"v-rating__item--full":e.halfIncrements&&_%1===0}),onMouseenter:A,onMouseleave:E,onClick:I},[f.createElementVNode("span",{class:"v-rating__hidden"},[r(e.itemAriaLabel,_,e.length)]),T?n.item?n.item({...d.value[x],props:D,value:_,index:x,rating:l.value}):f.createVNode(_t,f.mergeProps({"aria-label":r(e.itemAriaLabel,_,e.length)},D),null):void 0]),f.createElementVNode("input",{class:"v-rating__hidden",name:y.value,id:M,type:"radio",value:_,checked:l.value===_,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function w(S){return n["item-label"]?n["item-label"](S):S.label?f.createElementVNode("span",null,[S.label]):f.createElementVNode("span",null,[f.createTextVNode(" ")])}return Ae(()=>{const S=!!e.itemLabels?.length||n["item-label"];return f.createVNode(e.tag,{class:f.normalizeClass(["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},a.value,e.class]),style:f.normalizeStyle(e.style),ref:o},{default:()=>[f.createVNode(b,{value:0,index:-1,showStar:!1},null),s.value.map((_,x)=>f.createElementVNode("div",{class:"v-rating__wrapper"},[S&&e.itemLabelPosition==="top"?w({value:_,index:x,label:e.itemLabels?.[x]}):void 0,f.createElementVNode("div",{class:"v-rating__item"},[e.halfIncrements?f.createElementVNode(f.Fragment,null,[f.createVNode(b,{value:_-.5,index:x*2},null),f.createVNode(b,{value:_,index:x*2+1},null)]):f.createVNode(b,{value:_,index:x},null)]),S&&e.itemLabelPosition==="bottom"?w({value:_,index:x,label:e.itemLabels?.[x]}):void 0]))]})}),{}}}),cPe={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function dPe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return f.createElementVNode("div",{class:f.normalizeClass(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function SZ(e){const[t,n]=e.split("@");return Array.from({length:n}).map(()=>$_(t))}function $_(e){let t=[];if(!e)return t;const n=cPe[e];if(e!==n){if(e.includes(","))return xZ(e);if(e.includes("@"))return SZ(e);n.includes(",")?t=xZ(n):n.includes("@")?t=SZ(n):n&&t.push($_(n))}return[dPe(e,t)]}function xZ(e){return e.replace(/\s/g,"").split(",").map($_)}const fPe=ie({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...Yr(),...Kr(),...pn()},"VSkeletonLoader"),hPe=Te()({name:"VSkeletonLoader",inheritAttrs:!1,props:fPe(),setup(e,t){let{attrs:n,slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{dimensionStyles:i}=jr(e),{elevationClasses:l}=pa(e),{themeClasses:s}=In(e),{t:u}=An(),c=f.computed(()=>$_(Kn(e.type).join(",")));return Ae(()=>{const d=!r.default||e.loading,h=e.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(e.loadingText),role:"alert"};return d?f.createElementVNode("div",f.mergeProps({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},s.value,a.value,l.value],style:[o.value,i.value]},h,n),[c.value]):f.createElementVNode(f.Fragment,null,[r.default?.()])}),{}}}),vPe=Te()({name:"VSlideGroupItem",props:xv(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=lf(e,aN);return()=>n.default?.({isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}});function pPe(e){const t=f.shallowRef(e());let n=-1;function r(){clearInterval(n)}function a(){r(),f.nextTick(()=>t.value=e())}function o(i){const l=i?getComputedStyle(i):{transitionDuration:.2},s=parseFloat(l.transitionDuration)*1e3||200;if(r(),t.value<=0)return;const u=performance.now();n=window.setInterval(()=>{const c=performance.now()-u+s;t.value=Math.max(e()-c,0),t.value<=0&&r()},s)}return f.onScopeDispose(r),{clear:r,time:t,start:o,reset:a}}const CZ=ie({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,..._u({location:"bottom"}),...Yg(),...$n(),...dl(),...pn(),...Kt(hw({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),xL=Te()({name:"VSnackbar",props:CZ(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{positionClasses:a}=jg(e),{scopeId:o}=Av(),{themeClasses:i}=In(e),{colorClasses:l,colorStyles:s,variantClasses:u}=zc(e),{roundedClasses:c}=cr(e),d=pPe(()=>Number(e.timeout)),h=f.ref(),v=f.ref(),p=f.shallowRef(!1),m=f.shallowRef(0),g=f.ref(),y=f.inject(Q1,void 0);qa(()=>!!y,()=>{const M=PY();f.watchEffect(()=>{g.value=M.mainStyles.value})}),f.watch(r,w),f.watch(()=>e.timeout,w),f.onMounted(()=>{r.value&&w()});let b=-1;function w(){d.reset(),window.clearTimeout(b);const M=Number(e.timeout);if(!r.value||M===-1)return;const N=vP(v.value);d.start(N),b=window.setTimeout(()=>{r.value=!1},M)}function S(){d.reset(),window.clearTimeout(b)}function _(){p.value=!0,S()}function x(){p.value=!1,w()}function T(M){m.value=M.touches[0].clientY}function A(M){Math.abs(m.value-M.changedTouches[0].clientY)>50&&(r.value=!1)}function E(){p.value&&x()}const I=f.computed(()=>e.location.split(" ").reduce((M,N)=>(M[`v-snackbar--${N}`]=!0,M),{}));return Ae(()=>{const M=Ri.filterProps(e),N=!!(n.default||n.text||e.text);return f.createVNode(Ri,f.mergeProps({ref:h,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},I.value,a.value,e.class],style:[g.value,e.style]},M,{modelValue:r.value,"onUpdate:modelValue":D=>r.value=D,contentProps:f.mergeProps({class:["v-snackbar__wrapper",i.value,l.value,c.value,u.value],style:[s.value],onPointerenter:_,onPointerleave:x},M.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:T,onTouchend:A,onAfterLeave:E},o),{default:()=>[Hc(!1,"v-snackbar"),e.timer&&!p.value&&f.createElementVNode("div",{key:"timer",class:"v-snackbar__timer"},[f.createVNode(Ug,{ref:v,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,modelValue:d.time.value},null)]),N&&f.createElementVNode("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[n.text?.()??e.text,n.default?.()]),n.actions&&f.createVNode(zt,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[f.createElementVNode("div",{class:"v-snackbar__actions"},[n.actions({isActive:r})])]})],activator:n.activator})}),ma({},h)}}),mPe=ie({closable:[Boolean,String],closeText:{type:String,default:"$vuetify.dismiss"},modelValue:{type:Array,default:()=>[]},...Kt(CZ(),["modelValue"])},"VSnackbarQueue"),gPe=Te()({name:"VSnackbarQueue",props:mPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),o=f.shallowRef(!1),i=f.shallowRef(!1),l=f.shallowRef();f.watch(()=>e.modelValue.length,(h,v)=>{!i.value&&h>v&&u()}),f.watch(o,h=>{h&&(i.value=!0)});function s(){e.modelValue.length?u():(l.value=void 0,i.value=!1)}function u(){const[h,...v]=e.modelValue;n("update:modelValue",v),l.value=typeof h=="string"?{text:h}:h,f.nextTick(()=>{o.value=!0})}function c(){o.value=!1}const d=f.computed(()=>({color:typeof e.closable=="string"?e.closable:void 0,text:a(e.closeText)}));Ae(()=>{const h=!!(e.closable||r.actions),{modelValue:v,...p}=xL.filterProps(e);return f.createElementVNode(f.Fragment,null,[i.value&&!!l.value&&(r.default?f.createVNode(zt,{defaults:{VSnackbar:l.value}},{default:()=>[r.default({item:l.value})]}):f.createVNode(xL,f.mergeProps(p,l.value,{modelValue:o.value,"onUpdate:modelValue":m=>o.value=m,onAfterLeave:s}),{text:r.text?()=>r.text?.({item:l.value}):void 0,actions:h?()=>f.createElementVNode(f.Fragment,null,[r.actions?f.createVNode(zt,{defaults:{VBtn:d.value}},{default:()=>[r.actions({item:l.value,props:{onClick:c}})]}):f.createVNode(_t,f.mergeProps(d.value,{onClick:c}),null)]):void 0}))])})}}),_Z=ie({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:[Boolean,String,Number],width:{type:[Number,String],default:300}},"Line"),TZ=ie({autoLineWidth:Boolean,..._Z()},"VBarline"),kZ=Te()({name:"VBarline",props:TZ(),setup(e,t){let{slots:n}=t;const r=f.useId(),a=f.computed(()=>e.id||`barline-${r}`),o=f.computed(()=>Number(e.autoDrawDuration)||500),i=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),l=f.computed(()=>parseFloat(e.lineWidth)||4),s=f.computed(()=>Math.max(e.modelValue.length*l.value,Number(e.width))),u=f.computed(()=>({minX:0,maxX:s.value,minY:0,maxY:parseInt(e.height,10)})),c=f.computed(()=>e.modelValue.map(g=>Gr(g,e.itemValue,g)));function d(g,y){const{minX:b,maxX:w,minY:S,maxY:_}=y,x=g.length;let T=e.max!=null?Number(e.max):Math.max(...g),A=e.min!=null?Number(e.min):Math.min(...g);A>0&&e.min==null&&(A=0),T<0&&e.max==null&&(T=0);const E=w/(x===1?2:x),I=(_-S)/(T-A||1),M=_-Math.abs(A*I);return g.map((N,D)=>{const P=Math.abs(I*N);return{x:b+D*E,y:M-P+ +(N<0)*P,height:P,value:N}})}const h=f.computed(()=>{const g=[],y=d(c.value,u.value),b=y.length;for(let w=0;g.lengthd(c.value,u.value)),p=f.computed(()=>v.value.length===1?(u.value.maxX-l.value)/2:(Math.abs(v.value[0].x-v.value[1].x)-l.value)/2),m=f.computed(()=>typeof e.smooth=="boolean"?e.smooth?2:0:Number(e.smooth));Ae(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return f.createElementVNode("svg",{display:"block"},[f.createElementVNode("defs",null,[f.createElementVNode("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((y,b)=>f.createElementVNode("stop",{offset:b/Math.max(g.length-1,1),"stop-color":y||"currentColor"},null))])]),f.createElementVNode("clipPath",{id:`${a.value}-clip`},[v.value.map(y=>f.createElementVNode("rect",{x:y.x+p.value,y:y.y,width:l.value,height:y.height,rx:m.value,ry:m.value},[e.autoDraw&&!bu()&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("animate",{attributeName:"y",from:y.y+y.height,to:y.y,dur:`${o.value}ms`,fill:"freeze"},null),f.createElementVNode("animate",{attributeName:"height",from:"0",to:y.height,dur:`${o.value}ms`,fill:"freeze"},null)])]))]),i.value&&f.createElementVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[h.value.map((y,b)=>f.createElementVNode("text",{x:y.x+p.value+l.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[n.label?.({index:b,value:y.value})??y.value]))]),f.createElementVNode("g",{"clip-path":`url(#${a.value}-clip)`,fill:`url(#${a.value})`},[f.createElementVNode("rect",{x:0,y:0,width:Math.max(e.modelValue.length*l.value,Number(e.width)),height:e.height},null)])])})}});function yPe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:75;if(e.length===0)return"";const a=e.shift(),o=e[e.length-1];return(n?`M${a.x} ${r-a.x+2} L${a.x} ${a.y}`:`M${a.x} ${a.y}`)+e.map((i,l)=>{const s=e[l+1],u=e[l-1]||a,c=s&&bPe(s,i,u);if(!s||c)return`L${i.x} ${i.y}`;const d=Math.min(AZ(u,i),AZ(s,i)),v=d/2e.id||`trendline-${r}`),o=f.computed(()=>Number(e.autoDrawDuration)||(e.fill?500:2e3)),i=f.ref(0),l=f.ref(null);function s(g,y){const{minX:b,maxX:w,minY:S,maxY:_}=y;g.length===1&&(g=[g[0],g[0]]);const x=g.length,T=e.max!=null?Number(e.max):Math.max(...g),A=e.min!=null?Number(e.min):Math.min(...g),E=(w-b)/(x-1),I=(_-S)/(T-A||1);return g.map((M,N)=>({x:b+N*E,y:_-(M-A)*I,value:M}))}const u=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),c=f.computed(()=>parseFloat(e.lineWidth)||4),d=f.computed(()=>Number(e.width)),h=f.computed(()=>{const g=Number(e.padding);return{minX:g,maxX:d.value-g,minY:g,maxY:parseInt(e.height,10)-g}}),v=f.computed(()=>e.modelValue.map(g=>Gr(g,e.itemValue,g))),p=f.computed(()=>{const g=[],y=s(v.value,h.value),b=y.length;for(let w=0;g.lengthe.modelValue,async()=>{if(await f.nextTick(),!e.autoDraw||!l.value||bu())return;const g=l.value,y=g.getTotalLength();e.fill?(g.style.transformOrigin="bottom center",g.style.transition="none",g.style.transform="scaleY(0)",g.getBoundingClientRect(),g.style.transition=`transform ${o.value}ms ${e.autoDrawEasing}`,g.style.transform="scaleY(1)"):(g.style.strokeDasharray=`${y}`,g.style.strokeDashoffset=`${y}`,g.getBoundingClientRect(),g.style.transition=`stroke-dashoffset ${o.value}ms ${e.autoDrawEasing}`,g.style.strokeDashoffset="0"),i.value=y},{immediate:!0});function m(g){const y=typeof e.smooth=="boolean"?e.smooth?8:0:Number(e.smooth);return yPe(s(v.value,h.value),y,g,parseInt(e.height,10))}Ae(()=>{const g=e.gradient.slice().length?e.gradient.slice().reverse():[""];return f.createElementVNode("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[f.createElementVNode("defs",null,[f.createElementVNode("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:e.gradientDirection==="left"?"100%":"0",y1:e.gradientDirection==="top"?"100%":"0",x2:e.gradientDirection==="right"?"100%":"0",y2:e.gradientDirection==="bottom"?"100%":"0"},[g.map((y,b)=>f.createElementVNode("stop",{offset:b/Math.max(g.length-1,1),"stop-color":y||"currentColor"},null))])]),u.value&&f.createElementVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[p.value.map((y,b)=>f.createElementVNode("text",{x:y.x+c.value/2+c.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||7*.75),"font-size":Number(e.labelSize)||7},[n.label?.({index:b,value:y.value})??y.value]))]),f.createElementVNode("path",{ref:l,d:m(e.fill),fill:e.fill?`url(#${a.value})`:"none",stroke:e.fill?"none":`url(#${a.value})`},null),e.fill&&f.createElementVNode("path",{d:m(!1),fill:"none",stroke:e.color??e.gradient?.[0]},null)])})}}),wPe=ie({type:{type:String,default:"trend"},...TZ(),...IZ()},"VSparkline"),SPe=Te()({name:"VSparkline",props:wPe(),setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:a}=Wa(()=>e.color),o=f.computed(()=>!!(e.showLabels||e.labels.length>0||n?.label)),i=f.computed(()=>{let l=parseInt(e.height,10);return o.value&&(l+=parseInt(e.labelSize,10)*1.5),l});Ae(()=>{const l=e.type==="trend"?MZ:kZ,s=e.type==="trend"?MZ.filterProps(e):kZ.filterProps(e);return f.createVNode(l,f.mergeProps({key:e.type,class:r.value,style:a.value,viewBox:`0 0 ${e.width} ${parseInt(i.value,10)}`},s),n)})}}),xPe=ie({...nt(),...sK({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),CPe=Te()({name:"VSpeedDial",props:xPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),a=f.ref(),o=f.computed(()=>{const[l,s="center"]=e.location?.split(" ")??[];return`${l} ${s}`}),i=f.computed(()=>({[`v-speed-dial__content--${o.value.replace(" ","-")}`]:!0}));return Ae(()=>{const l=Uo.filterProps(e);return f.createVNode(Uo,f.mergeProps(l,{modelValue:r.value,"onUpdate:modelValue":s=>r.value=s,class:e.class,style:e.style,contentClass:["v-speed-dial__content",i.value,e.contentClass],location:o.value,ref:a,transition:"fade-transition"}),{...n,default:s=>f.createVNode(zt,{defaults:{VBtn:{size:"small"}}},{default:()=>[f.createVNode(Wo,{appear:!0,group:!0,transition:e.transition},{default:()=>[n.default?.(s)]})]})})}),{}}}),CL=Symbol.for("vuetify:v-stepper"),DZ=ie({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),VZ=Te()({name:"VStepperActions",props:DZ(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An();function o(){n("click:prev")}function i(){n("click:next")}return Ae(()=>{const l={onClick:o},s={onClick:i};return f.createElementVNode("div",{class:"v-stepper-actions"},[f.createVNode(zt,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>[r.prev?.({props:l})??f.createVNode(_t,l,null)]}),f.createVNode(zt,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>[r.next?.({props:s})??f.createVNode(_t,s,null)]})])}),{}}}),PZ=Oc("v-stepper-header"),_Pe=ie({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:st,default:"$complete"},editable:Boolean,editIcon:{type:st,default:"$edit"},error:Boolean,errorIcon:{type:st,default:"$error"},icon:st,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),TPe=ie({..._Pe(),...xv()},"VStepperItem"),NZ=Te()({name:"VStepperItem",directives:{vRipple:eo},props:TPe(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=lf(e,CL,!0),a=f.computed(()=>r?.value.value??e.value),o=f.computed(()=>e.rules.every(h=>h()===!0)),i=f.computed(()=>!e.disabled&&e.editable),l=f.computed(()=>!e.disabled&&e.editable),s=f.computed(()=>e.error||!o.value),u=f.computed(()=>e.complete||e.rules.length>0&&o.value),c=f.computed(()=>s.value?e.errorIcon:u.value?e.completeIcon:r.isSelected.value&&e.editable?e.editIcon:e.icon),d=f.computed(()=>({canEdit:l.value,hasError:s.value,hasCompleted:u.value,title:e.title,subtitle:e.subtitle,step:a.value,value:e.value}));return Ae(()=>{const h=(!r||r.isSelected.value||u.value||l.value)&&!s.value&&!e.disabled,v=!!(e.title!=null||n.title),p=!!(e.subtitle!=null||n.subtitle);function m(){r?.toggle()}return f.withDirectives(f.createElementVNode("button",{class:f.normalizeClass(["v-stepper-item",{"v-stepper-item--complete":u.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":s.value},r?.selectedClass.value]),disabled:!e.editable,type:"button",onClick:m},[i.value&&Hc(!0,"v-stepper-item"),f.createVNode(hl,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:h?e.color:void 0,size:24},{default:()=>[n.icon?.(d.value)??(c.value?f.createVNode(Ct,{icon:c.value},null):a.value)]}),f.createElementVNode("div",{class:"v-stepper-item__content"},[v&&f.createElementVNode("div",{key:"title",class:"v-stepper-item__title"},[n.title?.(d.value)??e.title]),p&&f.createElementVNode("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[n.subtitle?.(d.value)??e.subtitle]),n.default?.(d.value)])]),[[eo,e.editable&&e.ripple,null]])}),{}}}),kPe=ie({...Kt(H_(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),LZ=Te()({name:"VStepperWindow",props:kPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(CL,null),a=ot(e,"modelValue"),o=f.computed({get(){return a.value!=null||!r?a.value:r.items.value.find(i=>r.selected.value.includes(i.id))?.value},set(i){a.value=i}});return Ae(()=>{const i=gf.filterProps(e);return f.createVNode(gf,f.mergeProps({_as:"VStepperWindow"},i,{modelValue:o.value,"onUpdate:modelValue":l=>o.value=l,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),APe=ie({...z_()},"VStepperWindowItem"),OZ=Te()({name:"VStepperWindowItem",props:APe(),setup(e,t){let{slots:n}=t;return Ae(()=>{const r=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({_as:"VStepperWindowItem"},r,{class:["v-stepper-window-item",e.class],style:e.style}),n)}),{}}}),EPe=ie({altLabels:Boolean,bgColor:String,completeIcon:st,editIcon:st,editable:Boolean,errorIcon:st,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},nonLinear:Boolean,flat:Boolean,..._v()},"Stepper"),IPe=ie({...EPe(),...Sv({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...CN(),...vi(DZ(),["prevText","nextText"])},"VStepper"),MPe=Te()({name:"VStepper",props:IPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:r,next:a,prev:o,selected:i}=sf(e,CL),{displayClasses:l,mobile:s}=vl(e),{completeIcon:u,editIcon:c,errorIcon:d,color:h,editable:v,prevText:p,nextText:m}=f.toRefs(e),g=f.computed(()=>e.items.map((w,S)=>{const _=Gr(w,e.itemTitle,w),x=Gr(w,e.itemValue,S+1),T=e.itemProps===!0?w:Gr(w,e.itemProps),A={title:_,value:x,...T};return{title:A.title,value:A.value,props:A,raw:w}})),y=f.computed(()=>r.value.findIndex(w=>i.value.includes(w.id))),b=f.computed(()=>e.disabled?e.disabled:y.value===0?"prev":y.value===r.value.length-1?"next":!1);return _r({VStepperItem:{editable:v,errorIcon:d,completeIcon:u,editIcon:c,prevText:p,nextText:m},VStepperActions:{color:h,disabled:b,prevText:p,nextText:m}}),Ae(()=>{const w=Uc.filterProps(e),S=!!(n.header||e.items.length),_=e.items.length>0,x=!e.hideActions&&!!(_||n.actions);return f.createVNode(Uc,f.mergeProps(w,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":s.value},l.value,e.class],style:e.style}),{default:()=>[S&&f.createVNode(PZ,{key:"stepper-header"},{default:()=>[g.value.map((T,A)=>{let{raw:E,...I}=T;return f.createElementVNode(f.Fragment,null,[!!A&&f.createVNode(Ma,null,null),f.createVNode(NZ,I.props,{default:n[`header-item.${I.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])})]}),_&&f.createVNode(LZ,{key:"stepper-window"},{default:()=>[g.value.map(T=>f.createVNode(OZ,{value:T.value},{default:()=>n[`item.${T.value}`]?.(T)??n.item?.(T)}))]}),n.default?.({prev:o,next:a}),x&&(n.actions?.({next:a,prev:o})??f.createVNode(VZ,{key:"stepper-actions","onClick:prev":o,"onClick:next":a},n))]})}),{prev:o,next:a}}}),DPe=ie({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Gc(),...T_()},"VSwitch"),VPe=Te()({name:"VSwitch",inheritAttrs:!1,props:DPe(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"indeterminate"),o=ot(e,"modelValue"),{loaderClasses:i}=tw(e),{isFocused:l,focus:s,blur:u}=Wc(e),c=f.ref(),d=f.ref(),h=fP&&window.matchMedia("(forced-colors: active)").matches,v=f.toRef(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),p=f.useId(),m=f.toRef(()=>e.id||`switch-${p}`);function g(){a.value&&(a.value=!1)}function y(b){b.stopPropagation(),b.preventDefault(),c.value?.input?.click()}return Ae(()=>{const[b,w]=Su(n),S=to.filterProps(e),_=cf.filterProps(e);return f.createVNode(to,f.mergeProps({ref:d,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":a.value},i.value,e.class]},b,S,{modelValue:o.value,"onUpdate:modelValue":x=>o.value=x,id:m.value,focused:l.value,style:e.style}),{...r,default:x=>{let{id:T,messagesId:A,isDisabled:E,isReadonly:I,isValid:M}=x;const N={model:o,isValid:M};return f.createVNode(cf,f.mergeProps({ref:c},_,{modelValue:o.value,"onUpdate:modelValue":[D=>o.value=D,g],id:T.value,"aria-describedby":A.value,type:"checkbox","aria-checked":a.value?"mixed":void 0,disabled:E.value,readonly:I.value,onFocus:s,onBlur:u},w),{...r,default:D=>{let{backgroundColorClasses:P,backgroundColorStyles:O}=D;return f.createElementVNode("div",{class:f.normalizeClass(["v-switch__track",h?void 0:P.value]),style:f.normalizeStyle(O.value),onClick:y},[r["track-true"]&&f.createElementVNode("div",{key:"prepend",class:"v-switch__track-true"},[r["track-true"](N)]),r["track-false"]&&f.createElementVNode("div",{key:"append",class:"v-switch__track-false"},[r["track-false"](N)])])},input:D=>{let{inputNode:P,icon:O,backgroundColorClasses:L,backgroundColorStyles:R}=D;return f.createElementVNode(f.Fragment,null,[P,f.createElementVNode("div",{class:f.normalizeClass(["v-switch__thumb",{"v-switch__thumb--filled":O||e.loading},e.inset||h?void 0:L.value]),style:f.normalizeStyle(e.inset?void 0:R.value)},[r.thumb?f.createVNode(zt,{defaults:{VIcon:{icon:O,size:"x-small"}}},{default:()=>[r.thumb({...N,icon:O})]}):f.createVNode(BP,null,{default:()=>[e.loading?f.createVNode(nw,{name:"v-switch",active:!0,color:M.value===!1?void 0:v.value},{default:B=>r.loader?r.loader(B):f.createVNode(uf,{active:B.isActive,color:B.color,indeterminate:!0,size:"16",width:"2"},null)}):O&&f.createVNode(Ct,{key:String(O),icon:O,size:"x-small"},null)]})])])}})}})}),ma({},d)}}),PPe=ie({color:String,height:[Number,String],window:Boolean,...nt(),...Kr(),...mv(),...$n(),...Ht(),...pn()},"VSystemBar"),NPe=Te()({name:"VSystemBar",props:PPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{backgroundColorClasses:a,backgroundColorStyles:o}=Ln(()=>e.color),{elevationClasses:i}=pa(e),{roundedClasses:l}=cr(e),{ssrBootStyles:s}=wv(),u=f.computed(()=>e.height??(e.window?32:24)),{layoutItemStyles:c}=gv({id:e.name,order:f.computed(()=>parseInt(e.order,10)),position:f.shallowRef("top"),layoutSize:u,elementSize:u,active:f.computed(()=>!0),absolute:f.toRef(()=>e.absolute)});return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-system-bar",{"v-system-bar--window":e.window},r.value,a.value,i.value,l.value,e.class]),style:f.normalizeStyle([o.value,c.value,s.value,e.style])},n)),{}}}),_L=Symbol.for("vuetify:v-tabs"),RZ=ie({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...Kt(__({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),TL=Te()({name:"VTab",props:RZ(),setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:a,textColorStyles:o}=Wa(()=>e.sliderColor),{backgroundColorClasses:i,backgroundColorStyles:l}=Ln(()=>e.sliderColor),s=f.ref(),u=f.ref(),c=f.computed(()=>e.direction==="horizontal"),d=f.computed(()=>s.value?.group?.isSelected.value??!1);function h(g,y){return{opacity:[0,1]}}function v(g,y){return e.direction==="vertical"?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function p(g,y){const b=y.getBoundingClientRect(),w=g.getBoundingClientRect(),S=c.value?"x":"y",_=c.value?"X":"Y",x=c.value?"right":"bottom",T=c.value?"width":"height",A=b[S],E=w[S],I=A>E?b[x]-w[x]:b[S]-w[S],M=Math.sign(I)>0?c.value?"right":"bottom":Math.sign(I)<0?c.value?"left":"top":"center",D=(Math.abs(I)+(Math.sign(I)<0?b[T]:w[T]))/Math.max(b[T],w[T])||0,P=b[T]/w[T]||0,O=1.5;return{transform:[`translate${_}(${I}px) scale${_}(${P})`,`translate${_}(${I/O}px) scale${_}(${(D-1)/O+1})`,"none"],transformOrigin:Array(3).fill(M)}}function m(g){let{value:y}=g;if(y){const b=s.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),w=u.value;if(!b||!w)return;const S=getComputedStyle(b).backgroundColor,_={fade:h,grow:v,shift:p}[e.sliderTransition??"shift"]??p,x=Number(e.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[e.sliderTransition??"shift"]??225);Lc(w,{backgroundColor:[S,S],..._(w,b)},{duration:x,easing:J1})}}return Ae(()=>{const g=_t.filterProps(e);return f.createVNode(_t,f.mergeProps({symbol:_L,ref:s,class:["v-tab",e.class,d.value&&e.inset?i.value:[]],style:[e.style,d.value&&e.inset?l.value:[],{backgroundColor:d.value&&e.inset?"transparent !important":void 0}],tabindex:d.value?0:-1,role:"tab","aria-selected":String(d.value),active:!1},g,r,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":m}),{...n,default:()=>f.createElementVNode(f.Fragment,null,[n.default?.()??e.text,!e.hideSlider&&f.createElementVNode("div",{ref:u,class:f.normalizeClass(["v-tab__slider",e.inset?i.value:a.value]),style:f.normalizeStyle([o.value,e.inset?l.value:a.value])},null)])})}),ma({},s)}}),LPe=ie({...Kt(H_(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),BZ=Te()({name:"VTabsWindow",props:LPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=f.inject(_L,null),a=ot(e,"modelValue"),o=f.computed({get(){return a.value!=null||!r?a.value:r.items.value.find(i=>r.selected.value.includes(i.id))?.value},set(i){a.value=i}});return Ae(()=>{const i=gf.filterProps(e);return f.createVNode(gf,f.mergeProps({_as:"VTabsWindow"},i,{modelValue:o.value,"onUpdate:modelValue":l=>o.value=l,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)}),{}}}),OPe=ie({...z_()},"VTabsWindowItem"),FZ=Te()({name:"VTabsWindowItem",props:OPe(),setup(e,t){let{slots:n}=t;return Ae(()=>{const r=yf.filterProps(e);return f.createVNode(yf,f.mergeProps({_as:"VTabsWindowItem"},r,{class:["v-tabs-window-item",e.class],style:e.style}),n)}),{}}});function RPe(e){return e?e.map(t=>dv(t)?t:{text:t,value:t}):[]}const BPe=ie({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...vi(RZ(),["spaced","sliderTransition","sliderTransitionDuration"]),...oN({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Tr(),...Ht()},"VTabs"),tT=Te()({name:"VTabs",props:BPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const a=ot(e,"modelValue"),o=f.computed(()=>RPe(e.items)),{densityClasses:i}=$a(e),{backgroundColorClasses:l,backgroundColorStyles:s}=Ln(()=>e.bgColor),{scopeId:u}=Av();return _r({VTab:{color:f.toRef(e,"color"),direction:f.toRef(e,"direction"),stacked:f.toRef(e,"stacked"),fixed:f.toRef(e,"fixedTabs"),inset:f.toRef(e,"inset"),sliderColor:f.toRef(e,"sliderColor"),sliderTransition:f.toRef(e,"sliderTransition"),sliderTransitionDuration:f.toRef(e,"sliderTransitionDuration"),hideSlider:f.toRef(e,"hideSlider")}}),Ae(()=>{const c=cw.filterProps(e),d=!!(r.window||e.items.length>0);return f.createElementVNode(f.Fragment,null,[f.createVNode(cw,f.mergeProps(c,{modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--inset":e.inset,"v-tabs--stacked":e.stacked},i.value,l.value,e.class],style:[{"--v-tabs-height":Oe(e.height),"--v-tabs-inset-padding":e.inset?Oe(e.insetPadding):void 0,"--v-tabs-inset-radius":e.inset?Oe(e.insetRadius):void 0},s.value,e.style],role:"tablist",symbol:_L},u,n),{default:r.default??(()=>o.value.map(h=>r.tab?.({item:h})??f.createVNode(TL,f.mergeProps(h,{key:h.text,value:h.value,spaced:e.spaced}),{default:r[`tab.${h.value}`]?()=>r[`tab.${h.value}`]?.({item:h}):void 0}))),prev:r.prev,next:r.next}),d&&f.createVNode(BZ,f.mergeProps({modelValue:a.value,"onUpdate:modelValue":h=>a.value=h,key:"tabs-window"},u),{default:()=>[o.value.map(h=>r.item?.({item:h})??f.createVNode(FZ,{value:h.value},{default:()=>r[`item.${h.value}`]?.({item:h})})),r.window?.()]})])}),{}}}),FPe=ie({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...uK(),...Kt(Gc(),["direction"]),...pw()},"VTextarea"),HZ=Te()({name:"VTextarea",directives:{vIntersect:cl},inheritAttrs:!1,props:FPe(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:a}=t;const o=ot(e,"modelValue"),{isFocused:i,focus:l,blur:s}=Wc(e),{onIntersect:u}=cK(e),c=f.computed(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value||"").toString().length),d=f.computed(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),h=f.ref(),v=f.ref(),p=f.shallowRef(""),m=f.ref(),g=f.ref(0),{platform:y}=vl(),b=_N(e),w=f.computed(()=>e.persistentPlaceholder||i.value||e.active);function S(){b.isSuppressing.value&&b.update(),m.value!==document.activeElement&&m.value?.focus(),i.value||l()}function _(P){S(),r("click:control",P)}function x(P){r("mousedown:control",P)}function T(P){P.stopPropagation(),S(),f.nextTick(()=>{o.value="",j1(e["onClick:clear"],P)})}function A(P){const O=P.target;if(!e.modelModifiers?.trim){o.value=O.value;return}const L=O.value,R=O.selectionStart,B=O.selectionEnd;o.value=L,f.nextTick(()=>{let z=0;L.trimStart().length===O.value.length&&(z=L.length-O.value.length),R!=null&&(O.selectionStart=R-z),B!=null&&(O.selectionEnd=B-z)})}const E=f.ref(),I=f.ref(Number(e.rows)),M=f.computed(()=>["plain","underlined"].includes(e.variant));f.watchEffect(()=>{e.autoGrow||(I.value=Number(e.rows))});function N(){f.nextTick(()=>{if(!m.value)return;if(y.value.firefox){g.value=12;return}const{offsetWidth:P,clientWidth:O}=m.value;g.value=Math.max(0,P-O)}),e.autoGrow&&f.nextTick(()=>{if(!E.value||!v.value)return;const P=getComputedStyle(E.value),O=getComputedStyle(v.value.$el),L=parseFloat(P.getPropertyValue("--v-field-padding-top"))+parseFloat(P.getPropertyValue("--v-input-padding-top"))+parseFloat(P.getPropertyValue("--v-field-padding-bottom")),R=E.value.scrollHeight,B=parseFloat(P.lineHeight),z=Math.max(parseFloat(e.rows)*B+L,parseFloat(O.getPropertyValue("--v-input-control-height"))),H=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*B+L||1/0,G=Fn(R??0,z,H);I.value=Math.floor((G-L)/B),p.value=Oe(G)})}f.onMounted(N),f.watch(o,N),f.watch(()=>e.rows,N),f.watch(()=>e.maxHeight,N),f.watch(()=>e.maxRows,N),f.watch(()=>e.density,N),f.watch(I,P=>{r("update:rows",P)});let D;return f.watch(E,P=>{P?(D=new ResizeObserver(N),D.observe(E.value)):D?.disconnect()}),f.onBeforeUnmount(()=>{D?.disconnect()}),Ae(()=>{const P=!!(a.counter||e.counter||e.counterValue),O=!!(P||a.details),[L,R]=Su(n),{modelValue:B,...z}=to.filterProps(e),H={...df.filterProps(e),"onClick:clear":T};return f.createVNode(to,f.mergeProps({ref:h,modelValue:o.value,"onUpdate:modelValue":G=>o.value=G,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":M.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?Oe(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":Oe(g.value)},e.style]},L,z,{centerAffix:I.value===1&&!M.value,focused:i.value}),{...a,default:G=>{let{id:j,isDisabled:U,isDirty:Y,isReadonly:Z,isValid:ne,hasDetails:$}=G;return f.createVNode(df,f.mergeProps({ref:v,style:{"--v-textarea-control-height":p.value},onClick:_,onMousedown:x,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},H,{id:j.value,active:w.value||Y.value,labelId:`${j.value}-label`,centerAffix:I.value===1&&!M.value,dirty:Y.value||e.dirty,disabled:U.value,focused:i.value,details:$.value,error:ne.value===!1}),{...a,default:ae=>{let{props:{class:de,...ve},controlRef:ge}=ae;return f.createElementVNode(f.Fragment,null,[e.prefix&&f.createElementVNode("span",{class:"v-text-field__prefix"},[e.prefix]),f.withDirectives(f.createElementVNode("textarea",f.mergeProps({ref:Se=>m.value=ge.value=Se,class:de,value:o.value,onInput:A,autofocus:e.autofocus,readonly:Z.value,disabled:U.value,placeholder:e.placeholder,rows:e.rows,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,onFocus:S,onBlur:s,"aria-labelledby":`${j.value}-label`},ve,R),null),[[cl,{handler:u},null,{once:!0}]]),e.autoGrow&&f.withDirectives(f.createElementVNode("textarea",{class:f.normalizeClass([de,"v-textarea__sizer"]),id:`${ve.id}-sizer`,"onUpdate:modelValue":Se=>o.value=Se,ref:E,readonly:!0,"aria-hidden":"true"},null),[[f.vModelText,o.value]]),e.suffix&&f.createElementVNode("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:O?G=>f.createElementVNode(f.Fragment,null,[a.details?.(G),P&&f.createElementVNode(f.Fragment,null,[f.createElementVNode("span",null,null),f.createVNode(I_,{active:e.persistentCounter||i.value,value:c.value,max:d.value,disabled:e.disabled},a.counter)])]):void 0})}),ma({},h,v,m)}}),HPe=ie({withBackground:Boolean,...nt(),...pn(),...Ht()},"VThemeProvider"),kL=Te()({name:"VThemeProvider",props:HPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e);return()=>e.withBackground?f.createVNode(e.tag,{class:f.normalizeClass(["v-theme-provider",r.value,e.class]),style:f.normalizeStyle(e.style)},{default:()=>[n.default?.()]}):n.default?.()}}),zPe=ie({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:st,iconColor:String,lineColor:String,...nt(),...$n(),...Tu(),...Kr()},"VTimelineDivider"),WPe=Te()({name:"VTimelineDivider",props:zPe(),setup(e,t){let{slots:n}=t;const{sizeClasses:r,sizeStyles:a}=Gg(e,"v-timeline-divider__dot"),{backgroundColorStyles:o,backgroundColorClasses:i}=Ln(()=>e.dotColor),{roundedClasses:l}=cr(e,"v-timeline-divider__dot"),{elevationClasses:s}=pa(e),{backgroundColorClasses:u,backgroundColorStyles:c}=Ln(()=>e.lineColor);return Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class]),style:f.normalizeStyle(e.style)},[f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__before",u.value]),style:f.normalizeStyle(c.value)},null),!e.hideDot&&f.createElementVNode("div",{key:"dot",class:f.normalizeClass(["v-timeline-divider__dot",s.value,l.value,r.value]),style:f.normalizeStyle(a.value)},[f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__inner-dot",i.value,l.value]),style:f.normalizeStyle(o.value)},[n.default?f.createVNode(zt,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):f.createVNode(Ct,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-divider__after",u.value]),style:f.normalizeStyle(c.value)},null)])),{}}}),zZ=ie({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:st,iconColor:String,lineInset:[Number,String],side:{type:String,validator:e=>e==null||["start","end"].includes(e)},...nt(),...Yr(),...Kr(),...$n(),...Tu(),...Ht()},"VTimelineItem"),GPe=Te()({name:"VTimelineItem",props:zZ(),setup(e,t){let{slots:n}=t;const{dimensionStyles:r}=jr(e),a=f.shallowRef(0),o=f.ref();return f.watch(o,i=>{i&&(a.value=i.$el.querySelector(".v-timeline-divider__dot")?.getBoundingClientRect().width??0)},{flush:"post"}),Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot,"v-timeline-item--side-start":e.side==="start","v-timeline-item--side-end":e.side==="end"},e.class]),style:f.normalizeStyle([{"--v-timeline-dot-size":Oe(a.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${Oe(e.lineInset)})`:Oe(0)},e.style])},[f.createElementVNode("div",{class:"v-timeline-item__body",style:f.normalizeStyle(r.value)},[n.default?.()]),f.createVNode(WPe,{ref:o,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),e.density!=="compact"&&f.createElementVNode("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&n.opposite?.()])])),{}}}),UPe=ie({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...vi(zZ({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...nt(),...Tr(),...Ht(),...pn()},"VTimeline"),YPe=Te()({name:"VTimeline",props:UPe(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=In(e),{densityClasses:a}=$a(e),{rtlClasses:o}=ta();_r({VTimelineDivider:{lineColor:f.toRef(()=>e.lineColor)},VTimelineItem:{density:f.toRef(()=>e.density),dotColor:f.toRef(()=>e.dotColor),fillDot:f.toRef(()=>e.fillDot),hideOpposite:f.toRef(()=>e.hideOpposite),iconColor:f.toRef(()=>e.iconColor),lineColor:f.toRef(()=>e.lineColor),lineInset:f.toRef(()=>e.lineInset),size:f.toRef(()=>e.size)}});const i=f.computed(()=>{const s=e.side?e.side:e.density!=="default"?"end":null;return s&&`v-timeline--side-${s}`}),l=f.computed(()=>{const s=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return s;case"start":return s[0];case"end":return s[1];default:return null}});return Ae(()=>f.createVNode(e.tag,{class:f.normalizeClass(["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,l.value,{"v-timeline--inset-line":!!e.lineInset},r.value,a.value,i.value,o.value,e.class]),style:f.normalizeStyle([{"--v-timeline-line-thickness":Oe(e.lineThickness)},e.style])},n)),{}}}),jPe=ie({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),AL=Te()({name:"VTimePickerClock",props:jPe(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const r=f.ref(null),a=f.ref(null),o=f.ref(void 0),i=f.ref(!1),l=f.ref(null),s=f.ref(null),u=j9(H=>n("change",H),750),{textColorClasses:c,textColorStyles:d}=Wa(()=>e.color),{backgroundColorClasses:h,backgroundColorStyles:v}=Ln(()=>e.color),p=f.computed(()=>e.max-e.min+1),m=f.computed(()=>e.double?p.value/2:p.value),g=f.computed(()=>360/m.value),y=f.computed(()=>g.value*Math.PI/180),b=f.computed(()=>e.modelValue==null?e.min:e.modelValue),w=f.computed(()=>.62),S=f.computed(()=>{const H=[];for(let G=e.min;G<=e.max;G=G+e.step)H.push(G);return H});f.watch(()=>e.modelValue,H=>{o.value=H});function _(H){o.value!==H&&(o.value=H),n("input",H)}function x(H){return!e.allowedValues||e.allowedValues(H)}function T(H){if(!e.scrollable||e.disabled)return;H.preventDefault();const G=Math.sign(-H.deltaY||1);let j=b.value;do j=j+G,j=(j-e.min+p.value)%p.value+e.min;while(!x(j)&&j!==b.value);j!==e.displayedValue&&_(j),u(j)}function A(H){return e.double&&H-e.min>=m.value}function E(H){return A(H)?w.value:1}function I(H){const G=e.rotate*Math.PI/180;return{x:Math.sin((H-e.min)*y.value+G)*E(H),y:-Math.cos((H-e.min)*y.value+G)*E(H)}}function M(H,G){const j=(Math.round(H/g.value)+(G?m.value:0))%p.value+e.min;return H<360-g.value/2?j:G?e.max-m.value+1:e.min}function N(H){const{x:G,y:j}=I(H);return{left:`${Math.round(50+G*50)}%`,top:`${Math.round(50+j*50)}%`}}function D(H,G){const j=G.x-H.x,U=G.y-H.y;return Math.sqrt(j*j+U*U)}function P(H,G){const j=2*Math.atan2(G.y-H.y-D(H,G),G.x-H.x);return Math.abs(j*180/Math.PI)}function O(H){l.value===null&&(l.value=H),s.value=H,_(H)}function L(H){if(H.preventDefault(),!i.value&&H.type!=="click"||!r.value)return;const{width:G,top:j,left:U}=r.value?.getBoundingClientRect(),{width:Y}=a.value?.getBoundingClientRect()??{width:0},{clientX:Z,clientY:ne}="touches"in H?H.touches[0]:H,$={x:G/2,y:-G/2},ae={x:Z-U,y:j-ne},de=Math.round(P($,ae)-e.rotate+360)%360,ve=e.double&&D($,ae)<(Y+Y*w.value)/4,ge=Math.ceil(15/g.value);let Se;for(let Re=0;Ref.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":e.modelValue==null,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:R,onTouchstart:R,onWheel:T,ref:r},[f.createElementVNode("div",{class:"v-time-picker-clock__inner",ref:a},[f.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":A(e.modelValue)},c.value]),style:f.normalizeStyle([{transform:`rotate(${e.rotate+g.value*(b.value-e.min)}deg) scaleY(${E(b.value)})`},d.value])},null),S.value.map(H=>{const G=H===b.value;return f.createElementVNode("div",{class:f.normalizeClass([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":G,"v-time-picker-clock__item--disabled":e.disabled||!x(H)},G&&h.value]),style:f.normalizeStyle([N(H),G&&v.value])},[f.createElementVNode("span",null,[e.format(H)])])})])]))}}),KPe=ie({active:Boolean,color:String,disabled:Boolean,label:String,modelValue:String,error:String,showHint:Boolean,readonly:Boolean},"VTimePickerField"),EL=Te()({name:"VTimePickerField",props:KPe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n}=t;const{textColorClasses:r,textColorStyles:a}=Wa(()=>e.color),o=f.ref(),i=f.shallowRef(!1);function l(s){if(["Backspace","Delete"].includes(s.key)){s.preventDefault();const u=s.target;u.value="",n("update:modelValue",null)}}return Ae(()=>f.createVNode(na,{ref:o,_as:"VTimePickerField",autocomplete:"off",class:f.normalizeClass(["v-time-picker-controls__time__field",{"v-time-picker-controls__time__field--active":e.active},e.active?r.value:[]]),style:f.normalizeStyle(e.active?a.value:[]),disabled:e.disabled,variant:"solo-filled",inputmode:"numeric",hideDetails:"auto","aria-label":e.label,"aria-invalid":!!e.error,"aria-errormessage":e.error,error:!!e.error,hint:e.showHint?e.label:void 0,persistentHint:!0,flat:!0,modelValue:e.modelValue??(i.value?"":"--"),"onUpdate:modelValue":s=>n("update:modelValue",s),onKeydown:l,onFocus:()=>i.value=!0,onBlur:()=>i.value=!1},null)),ma({},o)}});function Ul(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(t,"0")}function WZ(e){return e?(e-1)%12+1:12}function Ew(e,t){return e%12+(t==="pm"?12:0)}function Iw(e){const t=e.replaceAll(/\D/g,"");return t.length>0?Number(t):null}function XPe(e,t,n){{if(e===23&&t)return{value:0};if(e===0&&!t)return{value:23}}return{value:e+(t?1:-1)}}function ZPe(e,t){return e===59&&t?0:e===0&&!t?59:e+(t?1:-1)}const GZ=ie({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],max:String,min:String},"time-validation");function UZ(e){const t=f.computed(()=>{const o=e.min?Number(e.min.split(":")[0]):0,i=e.max?Number(e.max.split(":")[0]):23;return l=>li?!1:Array.isArray(e.allowedHours)?e.allowedHours.includes(l):typeof e.allowedHours=="function"?e.allowedHours(l):!0}),n=f.computed(()=>{const[o,i]=e.min?e.min.split(":").map(Number):[0,0],[l,s]=e.max?e.max.split(":").map(Number):[23,59],u=o*60+i,c=l*60+s;return(d,h)=>{if(d!==null){const v=60*d+h;if(vc)return!1}return Array.isArray(e.allowedMinutes)?e.allowedMinutes.includes(h):typeof e.allowedMinutes=="function"?e.allowedMinutes(h):!0}}),r=f.computed(()=>{const[o,i,l]=e.min?e.min.split(":").map(Number):[0,0,0],[s,u,c]=e.max?e.max.split(":").map(Number):[23,59,59],d=o*3600+i*60+(l||0),h=s*3600+u*60+(c||0);return(v,p,m)=>{if(v!==null&&p!==null){const g=3600*v+60*p+m;if(gh)return!1}return Array.isArray(e.allowedSeconds)?e.allowedSeconds.includes(m):typeof e.allowedSeconds=="function"?e.allowedSeconds(m):!0}});function a(o,i,l){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const c=o==="hour"?t.value:o==="minute"?v=>n.value(s,v):v=>r.value(s,u,v),d=o==="hour"?v=>XPe(v,l).value:v=>ZPe(v,l),h=o==="hour"?24:60;for(let v=1;v<=h&&(i=d(i),!c(i));v++);return i}return{isAllowedHour:t,isAllowedMinute:n,isAllowedSecond:r,findNextAllowed:a}}const JPe=ie({ampm:Boolean,color:String,disabled:Boolean,inputHints:Boolean,hour:[Number,String],minute:[Number,String],second:[Number,String],period:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String,...GZ()},"VTimePickerControls"),IL=Te()({name:"VTimePickerControls",props:JPe(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0,"update:hour":e=>!0,"update:minute":e=>!0,"update:second":e=>!0},setup(e,t){let{emit:n}=t;const{t:r}=An(),{isAllowedHour:a,isAllowedMinute:o,isAllowedSecond:i,findNextAllowed:l}=UZ(e),s=f.computed(()=>e.hour!==null?e.ampm?Ew(Number(e.hour),e.period??"am"):Number(e.hour):null),u=f.computed(()=>e.minute!==null?Number(e.minute):null),c=f.computed(()=>e.hour===null?!0:a.value?.(Number(s.value))??!0),d=f.computed(()=>e.minute===null?!0:o.value?.(s.value,Number(e.minute))??!0),h=f.computed(()=>e.second===null?!0:i.value?.(s.value,u.value,Number(e.second))??!0),v={in:D=>{if(D==null||isNaN(Number(D)))return null;const P=Number(D);return e.ampm?Ul(WZ(P)):Ul(P)},out:D=>{if(isNaN(Number(D))||D==null||D==="")return null;const P=typeof D=="string"?Iw(D):Number(D);return P===null?null:e.ampm?Ew(P,e.period??"am"):Fn(P,0,23)}},p=ot(e,"hour",void 0,v.in,v.out),m={in:D=>D!=null&&!isNaN(Number(D))?Ul(`${D}`):null,out:D=>{if(isNaN(Number(D))||D==null||D==="")return null;const P=typeof D=="string"?Iw(D):Number(D);return P!==null?Fn(P,0,59):null}},g=ot(e,"minute",void 0,m.in,m.out),y=ot(e,"second",void 0,m.in,m.out);function b(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=e.period==="am",O=e.ampm?Ew(Number(p.value??0),P?"am":"pm"):Number(p.value??0),L=l("hour",O,D.key==="ArrowUp"),R=P&&L>=12||!P&&L<12;e.ampm&&R?(n("update:period",e.period==="am"?"pm":"am"),f.nextTick(()=>p.value=Ul(L))):p.value=Ul(L)}function w(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=Number(g.value??0),O=l("minute",P,D.key==="ArrowUp",s.value);g.value=Ul(O)}function S(D){if(!["ArrowUp","ArrowDown"].includes(D.key))return;D.preventDefault(),D.stopPropagation();const P=Number(y.value??0),O=l("second",P,D.key==="ArrowUp",s.value,u.value);y.value=Ul(O)}function _(D,P,O){return L=>{if(!L.data)return;const R=L.target,{value:B,selectionStart:z,selectionEnd:H}=R??{};if(Iw(L.data)===null){L.preventDefault();return}const G=B?B.slice(0,z)+L.data+B.slice(H):L.data;if(G.length>2){if(z===H&&H===0&&L.data.trim().startsWith("0")){L.preventDefault(),R.value=G.trim().substring(0,2),O(R.value),L.data.trim().length===1&&R.setSelectionRange(1,1);return}if(z===H&&H===1&&B.startsWith("0")){L.preventDefault(),R.value=G.trim().substring(0,2),O(R.value);return}const U=e.viewMode==="hour"?e.ampm?12:23:59;if(Iw(G)>U){L.preventDefault(),R.value=Ul(String(Iw(L.data)).substring(0,2)),O(R.value);return}}const j=D(G);P(j)&&L.preventDefault()}}function x(D){n("update:period",D)}const T=f.ref(),A=f.ref(),E=f.ref();f.watch(()=>e.viewMode,(D,P)=>{switch(P){case"hour":T.value.blur();break;case"minute":A.value.blur();break;case"second":E.value.blur();break}});const I=_(v.out,D=>v.in(D)===p.value,D=>p.value=D),M=_(m.out,D=>m.in(D)===g.value,D=>g.value=D),N=_(m.out,D=>m.in(D)===y.value,D=>y.value=D);return Ae(()=>f.createElementVNode("div",{class:"v-time-picker-controls"},[f.createElementVNode("div",{class:f.normalizeClass({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-ampm":e.ampm,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[f.createVNode(EL,{ref:T,active:e.viewMode==="hour",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.hour"),showHint:e.inputHints,error:c.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:p.value,"onUpdate:modelValue":D=>p.value=D,onKeydown:b,onBeforeinput:I,onFocus:()=>n("update:viewMode","hour")},null),f.createElementVNode("span",{class:"v-time-picker-controls__time__separator"},[f.createTextVNode(":")]),f.createVNode(EL,{ref:A,active:e.viewMode==="minute",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.minute"),showHint:e.inputHints,error:d.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:g.value,"onUpdate:modelValue":D=>g.value=D,onKeydown:w,onBeforeinput:M,onFocus:()=>n("update:viewMode","minute")},null),e.useSeconds&&f.createElementVNode("span",{key:"secondsDivider",class:"v-time-picker-controls__time__separator"},[f.createTextVNode(":")]),e.useSeconds&&f.createElementVNode(f.Fragment,null,[f.createVNode(EL,{key:"secondsVal",ref:E,active:e.viewMode==="second",color:e.color,disabled:e.disabled,label:r("$vuetify.timePicker.second"),showHint:e.inputHints,error:h.value?void 0:r("$vuetify.timePicker.notAllowed"),modelValue:y.value,"onUpdate:modelValue":D=>y.value=D,onKeydown:S,onBeforeinput:N,onFocus:()=>n("update:viewMode","second")},null)]),e.ampm&&f.createElementVNode("div",{class:"v-time-picker-controls__ampm"},[f.createVNode(_t,{active:e.period==="am",color:e.period==="am"?e.color:void 0,class:f.normalizeClass({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="am"}),disabled:e.disabled,text:r("$vuetify.timePicker.am"),variant:e.disabled&&e.period==="am"?"elevated":"tonal",onClick:()=>e.period!=="am"?x("am"):null},null),f.createVNode(_t,{active:e.period==="pm",color:e.period==="pm"?e.color:void 0,class:f.normalizeClass({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":e.period==="pm"}),disabled:e.disabled,text:r("$vuetify.timePicker.pm"),variant:e.disabled&&e.period==="pm"?"elevated":"tonal",onClick:()=>e.period!=="pm"?x("pm"):null},null)])])])),{}}}),QPe=ie({disabled:Boolean,format:{type:String,default:"ampm"},viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,variant:{type:String,default:"dial"},...GZ(),...Kt(W_({title:"$vuetify.timePicker.title"}),["landscape"]),...Tr()},"VTimePicker"),qPe=Te()({name:"VTimePicker",props:QPe(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{t:a}=An(),{densityClasses:o}=$a(e),i=f.ref(null),l=f.ref(null),s=f.ref(null),u=f.ref(null),c=f.ref(null),d=f.ref(null),h=ot(e,"period","am"),v=ot(e,"viewMode","hour"),p=f.ref(null),m=f.ref(null),g=f.computed(()=>e.format==="ampm"),{isAllowedHour:y,isAllowedMinute:b,isAllowedSecond:w}=UZ(e),S=f.toRef(()=>e.modelValue!==null&&i.value===null&&l.value===null&&(!e.useSeconds||s.value===null));function _(){const I=x();I!==null&&I!==e.modelValue&&n("update:modelValue",I),S.value&&n("update:modelValue",null)}f.watch(i,_),f.watch(l,_),f.watch(s,_),f.watch(h,(I,M)=>{i.value==null||I===M||(I==="pm"&&i.value<12?i.value=i.value+12:I==="am"&&i.value>=12&&(i.value=i.value-12))}),f.watch(()=>e.modelValue,I=>T(I)),f.watch(()=>e.useSeconds,(I,M)=>{M&&!I&&v.value==="second"&&(v.value="minute"),!I&&s.value!==null&&(s.value=null)}),f.onMounted(()=>{T(e.modelValue)});function x(){return i.value!=null&&l.value!=null&&(!e.useSeconds||s.value!=null)?`${Ul(i.value)}:${Ul(l.value)}`+(e.useSeconds?`:${Ul(s.value)}`:""):null}function T(I){if(I==null||I==="")i.value=null,l.value=null,s.value=null;else if(I instanceof Date)i.value=I.getHours(),l.value=I.getMinutes(),s.value=I.getSeconds();else{const[M,,N,,D,P]=I.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);i.value=P?Ew(parseInt(M,10),P):parseInt(M,10),l.value=parseInt(N,10),s.value=parseInt(D||0,10)}h.value=i.value==null||i.value<12?"am":"pm"}function A(I){v.value==="hour"?i.value=g.value?Ew(I,h.value):I:v.value==="minute"?l.value=I:s.value=I}function E(I){switch(v.value||"hour"){case"hour":n("update:hour",I);break;case"minute":n("update:minute",I);break;case"second":n("update:second",I);break}const M=i.value!==null&&l.value!==null&&(e.useSeconds?s.value!==null:!0);v.value==="hour"?v.value="minute":e.useSeconds&&v.value==="minute"&&(v.value="second"),!(i.value===u.value&&l.value===c.value&&(!e.useSeconds||s.value===d.value)||x()===null)&&(u.value=i.value,c.value=l.value,e.useSeconds&&(d.value=s.value),M&&_())}Ae(()=>{const I=Kt(ey.filterProps(e),["hideHeader"]),M=IL.filterProps(e),N=AL.filterProps(Kt(e,["format","modelValue","min","max"])),D=v.value==="hour"?y.value:v.value==="minute"?P=>b.value(i.value,P):P=>w.value(i.value,l.value,P);return f.createVNode(ey,f.mergeProps(I,{color:void 0,class:["v-time-picker",`v-time-picker--variant-${e.variant}`,e.class,o.value],hideHeader:e.hideHeader&&e.variant!=="input",style:e.style}),{title:()=>r.title?.()??f.createElementVNode("div",{class:"v-time-picker__title"},[a(e.title)]),header:()=>f.createVNode(IL,f.mergeProps(M,{ampm:g.value,hour:i.value,minute:l.value,period:h.value,second:s.value,viewMode:v.value,inputHints:e.variant==="input","onUpdate:hour":P=>i.value=P,"onUpdate:minute":P=>l.value=P,"onUpdate:second":P=>s.value=P,"onUpdate:period":P=>h.value=P,"onUpdate:viewMode":P=>v.value=P,ref:p}),null),default:()=>f.createVNode(AL,f.mergeProps(N,{allowedValues:D,double:v.value==="hour"&&!g.value,format:v.value==="hour"?g.value?WZ:P=>P:P=>Ul(P,2),max:v.value==="hour"?g.value&&h.value==="am"?11:23:59,min:v.value==="hour"&&g.value&&h.value==="pm"?12:0,size:20,step:v.value==="hour"?1:5,modelValue:v.value==="hour"?i.value:v.value==="minute"?l.value:s.value,onChange:E,onInput:A,ref:m}),null),actions:r.actions})})}}),$Pe=ie({...nt(),...dl({variant:"text"})},"VToolbarItems"),eNe=Te()({name:"VToolbarItems",props:$Pe(),setup(e,t){let{slots:n}=t;return _r({VBtn:{color:f.toRef(()=>e.color),height:"inherit",variant:f.toRef(()=>e.variant)}}),Ae(()=>f.createElementVNode("div",{class:f.normalizeClass(["v-toolbar-items",e.class]),style:f.normalizeStyle(e.style)},[n.default?.()])),{}}}),tNe=ie({id:String,interactive:Boolean,text:String,...Kt(hw({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),Fv=Te()({name:"VTooltip",props:tNe(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=ot(e,"modelValue"),{scopeId:a}=Av(),o=f.useId(),i=f.toRef(()=>e.id||`v-tooltip-${o}`),l=f.ref(),s=f.computed(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=f.computed(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),c=f.toRef(()=>e.transition!=null?e.transition:r.value?"scale-transition":"fade-transition"),d=f.computed(()=>f.mergeProps({"aria-describedby":i.value},e.activatorProps));return Ae(()=>{const h=Ri.filterProps(e);return f.createVNode(Ri,f.mergeProps({ref:l,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:i.value},h,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,transition:c.value,absolute:!0,location:s.value,origin:u.value,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},a),{activator:n.activator,default:function(){for(var v=arguments.length,p=new Array(v),m=0;mr.value?.isOpen?e.collapseIcon:e.expandIcon),o=f.computed(()=>({VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,toggleIcon:a.value}}));return Ae(()=>{const i=dw.filterProps(e);return f.createVNode(dw,f.mergeProps(i,{ref:r,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?l=>f.createElementVNode(f.Fragment,null,[f.createVNode(zt,{defaults:o.value},{default:()=>[n.activator?.(l)]})]):void 0})}),{}}}),YZ=Symbol.for("vuetify:v-treeview"),jZ=ie({loading:Boolean,hideActions:Boolean,hasCustomPrepend:Boolean,indentLines:Array,toggleIcon:st,...Fj({slim:!0})},"VTreeviewItem"),DL=Te()({name:"VTreeviewItem",props:jZ(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const a=f.inject(YZ,{visibleIds:f.ref()}).visibleIds,o=f.ref(),i=f.computed(()=>o.value?.root.activatable.value&&o.value?.isGroupActivator),l=f.computed(()=>o.value?.link.isClickable.value||e.value!=null&&!!o.value?.list),s=f.computed(()=>!e.disabled&&e.link!==!1&&(e.link||l.value||i.value)),u=f.computed(()=>a.value&&!a.value.has(f.toRaw(o.value?.id)));function c(h){s.value&&i.value&&o.value?.activate(!o.value?.isActivated,h)}function d(h){h.preventDefault(),h.stopPropagation(),r("toggleExpand",h)}return Ae(()=>{const h=Pr.filterProps(e),v=n.prepend||e.toggleIcon||e.indentLines||e.prependIcon||e.prependAvatar;return f.createVNode(Pr,f.mergeProps({ref:o},h,{active:o.value?.isActivated||void 0,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":i.value,"v-treeview-item--filtered":u.value},e.class],role:"treeitem",ripple:!1,onClick:c}),{...n,prepend:v?p=>f.createElementVNode(f.Fragment,null,[e.indentLines&&e.indentLines.length>0?f.createElementVNode("div",{key:"indent-lines",class:"v-treeview-indent-lines",style:{"--v-indent-parts":e.indentLines.length}},[e.indentLines.map(m=>f.createElementVNode("div",{class:f.normalizeClass(`v-treeview-indent-line v-treeview-indent-line--${m}`)},null))]):"",!e.hideActions&&f.createVNode(dN,{start:!0},{default:()=>[e.toggleIcon?f.createElementVNode(f.Fragment,null,[n.toggle?f.createVNode(zt,{key:"prepend-defaults",defaults:{VBtn:{density:"compact",icon:e.toggleIcon,variant:"text",loading:e.loading},VProgressCircular:{indeterminate:"disable-shrink",size:20,width:2}}},{default:()=>[n.toggle({...p,loading:e.loading,props:{onClick:d}})]}):f.createVNode(_t,{key:"prepend-toggle",density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:d},{loader:()=>f.createVNode(uf,{indeterminate:"disable-shrink",size:"20",width:"2"},null)})]):f.createElementVNode("div",{class:"v-treeview-item__level"},null)]}),e.hasCustomPrepend?f.createVNode(zt,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{start:!0}}},{default:()=>[n.prepend?.(p)]}):f.createElementVNode(f.Fragment,null,[n.prepend?.(p),e.prependAvatar&&f.createVNode(hl,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&f.createVNode(Ct,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]):void 0})}),ma({},o)}}),KZ=ie({fluid:Boolean,disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:st,default:"$checkboxIndeterminate"},falseIcon:st,trueIcon:st,returnObject:Boolean,activatable:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],index:Number,isLastGroup:Boolean,separateRoots:Boolean,parentIndentLines:Array,indentLinesVariant:String,path:{type:Array,default:()=>[]},...vi(jZ(),["hideActions"]),...Tr()},"VTreeviewChildren"),nT=Te()({name:"VTreeviewChildren",props:KZ(),setup(e,t){let{slots:n}=t;const r=f.reactive(new Set),a=f.ref([]),o=f.computed(()=>!e.disabled&&(e.openOnClick!=null?e.openOnClick:e.selectable&&!e.activatable));async function i(s){try{if(!e.items?.length||!e.loadChildren)return;s?.children?.length===0&&(r.add(s.value),await e.loadChildren(s.raw))}finally{r.delete(s.value)}}function l(s,u){e.selectable&&s(u)}return()=>n.default?.()??e.items?.map((s,u,c)=>{const{children:d,props:h}=s,v=r.has(s.value),p=!!c.at(u+1)?.children,m=e.path?.length??0,g=c.length-1===u,y={index:u,depth:m,isFirst:u===0,isLast:g,path:[...e.path,u],hideAction:e.hideActions},b=NTe({depth:m,isLast:g,isLastGroup:e.isLastGroup,leafLinks:!e.hideActions&&!e.fluid,separateRoots:e.separateRoots,parentIndentLines:e.parentIndentLines,variant:e.indentLinesVariant}),w={toggle:n.toggle?T=>n.toggle?.({...T,...y,item:s.raw,internalItem:s,loading:v}):void 0,prepend:T=>f.createElementVNode(f.Fragment,null,[e.selectable&&(!d||d&&!["leaf","single-leaf"].includes(e.selectStrategy))&&f.createVNode(dN,{start:!0},{default:()=>[f.createVNode(Rs,{key:s.value,modelValue:T.isSelected,disabled:e.disabled||h.disabled,loading:v,color:e.selectedColor,density:e.density,indeterminate:T.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,"onUpdate:modelValue":A=>l(T.select,A),onClick:A=>A.stopPropagation(),onKeydown:A=>{["Enter","Space"].includes(A.key)&&(A.stopPropagation(),l(T.select,T.isSelected))}},null)]}),n.prepend?.({...T,...y,item:s.raw,internalItem:s})]),append:n.append?T=>n.append?.({...T,...y,item:s.raw,internalItem:s}):void 0,title:n.title?T=>n.title?.({...T,item:s.raw,internalItem:s}):void 0,subtitle:n.subtitle?T=>n.subtitle?.({...T,item:s.raw,internalItem:s}):void 0},S=ML.filterProps(h),_=nT.filterProps({...e,...y}),x={hideActions:e.hideActions,indentLines:b.footer};return d?f.createVNode(ML,f.mergeProps(S,{value:e.returnObject?s.raw:S?.value,rawId:S?.value}),{activator:T=>{let{props:A,isOpen:E}=T;const I={...h,...A,value:h?.value,hideActions:e.hideActions,indentLines:b.node,ariaExpanded:E,onToggleExpand:[()=>i(s),A.onClick],onClick:e.disabled||h.disabled?void 0:o.value?[()=>i(s),A.onClick]:()=>l(a.value[u]?.select,!a.value[u]?.isSelected)};return s_(n.header,{props:I,item:s.raw,internalItem:s,loading:v},()=>f.createVNode(DL,f.mergeProps({ref:M=>a.value[u]=M},I,{hasCustomPrepend:!!n.prepend,value:e.returnObject?s.raw:h.value,loading:v}),w))},default:()=>f.createElementVNode(f.Fragment,null,[f.createVNode(nT,f.mergeProps(_,{items:d,indentLinesVariant:e.indentLinesVariant,parentIndentLines:b.children,isLastGroup:p,returnObject:e.returnObject}),n),n.footer?.({props:x,item:s.raw,internalItem:s,loading:v})])}):s_(n.item,{props:h,item:s.raw,internalItem:s},()=>s.type==="divider"?s_(n.divider,{props:s.raw},()=>f.createVNode(Ma,s.props,null)):s.type==="subheader"?s_(n.subheader,{props:s.raw},()=>f.createVNode(kv,s.props,null)):f.createVNode(DL,f.mergeProps(h,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,indentLines:b.leaf,value:e.returnObject?f.toRaw(s.raw):h.value}),w))})}});function XZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];for(const n of e)t.push(n),n.children&&XZ(n.children,t);return t}const rNe=ie({openAll:Boolean,indentLines:[Boolean,String],indentLinesColor:String,indentLinesOpacity:[String,Number],search:String,hideNoData:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},...Ev({filterKeys:["title"]}),...Kt(KZ(),["index","path","indentLinesVariant","parentIndentLines","isLastGroup"]),...Kt(Yj({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["nav","openStrategy"]),modelValue:Array},"VTreeview"),ZZ=Te()({name:"VTreeview",props:rNe(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n,emit:r}=t;const{t:a}=An(),{items:o}=Uj(e),i=f.toRef(()=>e.activeColor),l=f.toRef(()=>e.baseColor),s=f.toRef(()=>e.color),u=ot(e,"activated"),c=ot(e,"selected"),d=f.computed({get:()=>e.modelValue??c.value,set(S){c.value=S,r("update:modelValue",S)}}),h=f.ref(),v=f.computed(()=>e.openAll?w(o.value):e.opened),p=f.computed(()=>XZ(o.value)),m=f.toRef(()=>e.search),{filteredItems:g}=Iv(e,p,m),y=f.computed(()=>{if(!m.value)return null;const S=h.value?.getPath;return S?new Set(g.value.flatMap(_=>{const x=e.returnObject?_.raw:_.props.value;return[...S(x),...b(x)].map(f.toRaw)})):null});function b(S){const _=[],x=(h.value?.children.get(S)??[]).slice();for(;x.length;){const T=x.shift();T&&(_.push(T),x.push(...(h.value?.children.get(T)??[]).slice()))}return _}function w(S){let _=[];for(const x of S)x.children&&(_.push(e.returnObject?f.toRaw(x.raw):x.value),x.children&&(_=_.concat(w(x.children))));return _}return f.provide(YZ,{visibleIds:y}),_r({VTreeviewGroup:{activeColor:i,baseColor:l,color:s,collapseIcon:f.toRef(()=>e.collapseIcon),expandIcon:f.toRef(()=>e.expandIcon)},VTreeviewItem:{activeClass:f.toRef(()=>e.activeClass),activeColor:i,baseColor:l,color:s,density:f.toRef(()=>e.density),disabled:f.toRef(()=>e.disabled),lines:f.toRef(()=>e.lines),variant:f.toRef(()=>e.variant)}}),Ae(()=>{const S=pi.filterProps(e),_=nT.filterProps(e),x=typeof e.indentLines=="boolean"?"default":e.indentLines;return f.createVNode(pi,f.mergeProps({ref:h},S,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],role:"tree",openStrategy:"multiple",style:[{"--v-treeview-indent-line-color":e.indentLinesColor,"--v-treeview-indent-line-opacity":e.indentLinesOpacity},e.style],opened:v.value,activated:u.value,"onUpdate:activated":T=>u.value=T,selected:d.value,"onUpdate:selected":T=>d.value=T}),{default:()=>[y.value?.size===0&&!e.hideNoData&&(n["no-data"]?.()??f.createVNode(Pr,{key:"no-data",title:a(e.noDataText)},null)),f.createVNode(nT,f.mergeProps(_,{density:e.density,returnObject:e.returnObject,items:o.value,parentIndentLines:e.indentLines?[]:void 0,indentLinesVariant:x}),n)]})}),{}}}),aNe=Te()({name:"VValidation",props:gj(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=yj(e,"validation");return()=>n.default?.(r)}}),oNe=Object.freeze(Object.defineProperty({__proto__:null,VAlert:qke,VAlertTitle:uj,VApp:$Te,VAppBar:wke,VAppBarNavIcon:Xke,VAppBarTitle:Zke,VAutocomplete:ff,VAvatar:hl,VBadge:vK,VBanner:EEe,VBannerActions:pK,VBannerText:mK,VBottomNavigation:MEe,VBottomSheet:VEe,VBreadcrumbs:wK,VBreadcrumbsDivider:yK,VBreadcrumbsItem:bK,VBtn:_t,VBtnGroup:b_,VBtnToggle:kke,VCalendar:bMe,VCard:ml,VCardActions:mf,VCardItem:lX,VCardSubtitle:zN,VCardText:Au,VCardTitle:WN,VCarousel:PMe,VCarouselItem:LMe,VCheckbox:Cv,VCheckboxBtn:Rs,VChip:pl,VChipGroup:bAe,VClassIcon:XP,VCode:OMe,VCol:sL,VColorPicker:aDe,VCombobox:iDe,VComponentIcon:jP,VConfirmEdit:sDe,VContainer:WX,VCounter:I_,VDataIterator:SDe,VDataTable:LDe,VDataTableFooter:_w,VDataTableHeaders:Ov,VDataTableRow:oL,VDataTableRows:Rv,VDataTableServer:FDe,VDataTableVirtual:RDe,VDatePicker:q_,VDatePickerControls:fL,VDatePickerHeader:hL,VDatePickerMonth:vL,VDatePickerMonths:pL,VDatePickerYears:mL,VDefaultsProvider:zt,VDialog:ku,VDialogBottomTransition:rke,VDialogTopTransition:ake,VDialogTransition:g_,VDivider:Ma,VEmptyState:tVe,VExpandBothTransition:fke,VExpandTransition:y_,VExpandXTransition:HP,VExpansionPanel:nVe,VExpansionPanelText:gL,VExpansionPanelTitle:yL,VExpansionPanels:oVe,VFab:lVe,VFabTransition:nke,VFadeTransition:$1,VField:df,VFieldLabel:vw,VFileInput:dZ,VFooter:vVe,VForm:Aw,VHotkey:bVe,VHover:SVe,VIcon:Ct,VImg:Bc,VInfiniteScroll:CVe,VInput:to,VItem:kVe,VItemGroup:TVe,VKbd:bL,VLabel:Kg,VLayout:EVe,VLayoutItem:MVe,VLazy:VVe,VLigatureIcon:Ake,VList:pi,VListGroup:dw,VListImg:zAe,VListItem:Pr,VListItemAction:dN,VListItemMedia:UAe,VListItemSubtitle:Bj,VListItemTitle:Tv,VListSubheader:kv,VLocaleProvider:NVe,VMain:OVe,VMenu:Uo,VMessages:pj,VNavigationDrawer:YVe,VNoSsr:jVe,VNumberInput:wZ,VOtpInput:qVe,VOverlay:Ri,VPagination:ty,VParallax:tPe,VProgressCircular:uf,VProgressLinear:Ug,VRadio:rPe,VRadioGroup:oPe,VRangeSlider:lPe,VRating:uPe,VResponsive:zP,VRow:dL,VScaleTransition:BP,VScrollXReverseTransition:ike,VScrollXTransition:oke,VScrollYReverseTransition:ske,VScrollYTransition:lke,VSelect:Jg,VSelectionControl:cf,VSelectionControlGroup:hj,VSheet:Uc,VSkeletonLoader:hPe,VSlideGroup:cw,VSlideGroupItem:vPe,VSlideXReverseTransition:cke,VSlideXTransition:uke,VSlideYReverseTransition:dke,VSlideYTransition:FP,VSlider:XN,VSnackbar:xL,VSnackbarQueue:gPe,VSpacer:zs,VSparkline:SPe,VSpeedDial:CPe,VStepper:MPe,VStepperActions:VZ,VStepperHeader:PZ,VStepperItem:NZ,VStepperWindow:LZ,VStepperWindowItem:OZ,VSvgIcon:KP,VSwitch:VPe,VSystemBar:NPe,VTab:TL,VTable:Bv,VTabs:tT,VTabsWindow:BZ,VTabsWindowItem:FZ,VTextField:na,VTextarea:HZ,VThemeProvider:kL,VTimePicker:qPe,VTimePickerClock:AL,VTimePickerControls:IL,VTimeline:YPe,VTimelineItem:GPe,VToolbar:Fc,VToolbarItems:eNe,VToolbarTitle:NP,VTooltip:Fv,VTreeview:ZZ,VTreeviewGroup:ML,VTreeviewItem:DL,VValidation:aNe,VVirtualScroll:M_,VWindow:gf,VWindowItem:yf},Symbol.toStringTag,{value:"Module"}));function iNe(e,t){const n=t.modifiers||{},r=t.value,{once:a,immediate:o,...i}=n,l=!Object.keys(i).length,{handler:s,options:u}=typeof r=="object"?r:{handler:r,options:{attributes:i?.attr??l,characterData:i?.char??l,childList:i?.child??l,subtree:i?.sub??l}},c=new MutationObserver(function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1?arguments[1]:void 0;s?.(d,h),a&&JZ(e,t)});o&&s?.([],c),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:c},c.observe(e,u)}function JZ(e,t){e._mutate?.[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const lNe={mounted:iNe,unmounted:JZ};function QZ(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,a=typeof r=="object"&&r.options||{passive:!0},o=typeof r=="function"||"handleEvent"in r?r:r.handler,i=n?e:t.arg?document.querySelector(t.arg):window;i&&(i.addEventListener("scroll",o,a),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:o,options:a,target:n?void 0:i})}function qZ(e,t){if(!e._onScroll?.[t.instance.$.uid])return;const{handler:n,options:r,target:a=e}=e._onScroll[t.instance.$.uid];a.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function sNe(e,t){t.value!==t.oldValue&&(qZ(e,t),QZ(e,t))}const uNe={mounted:QZ,unmounted:qZ,updated:sNe};function cNe(e,t){const n=typeof e=="string"?f.resolveComponent(e):e,r=dNe(n,t);return{mounted:r,updated:r,unmounted(a){f.render(null,a)}}}function dNe(e,t){return function(n,r,a){const o=typeof t=="function"?t(r):t,i=r.value?.text??r.value??o?.text,l=dv(r.value)?r.value:{},s=()=>i??n.textContent,u=(a.ctx===r.instance.$?fNe(a,r.instance.$)?.provides:a.ctx?.provides)??r.instance.$.provides,c=f.h(e,f.mergeProps(o,l),s);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),f.render(c,n)}}function fNe(e,t){const n=new Set,r=o=>{for(const i of o){if(!i)continue;if(i===e||i.el&&e.el&&i.el===e.el)return!0;n.add(i);let l;if(i.suspense?l=r([i.ssContent]):Array.isArray(i.children)?l=r(i.children):i.component?.vnode&&(l=r([i.component?.subTree])),l)return l;n.delete(i)}return!1};if(!r([t.subTree]))return uv("Could not find original vnode, component will not inherit provides"),t;const a=Array.from(n).reverse();for(const o of a)if(o.component)return o.component;return t}const hNe=cNe(Fv,e=>({activator:(dv(e.value)?!e.value.text:["",!1,null].includes(e.value))?null:"parent",location:e.arg?.replace("-"," "),text:typeof e.value=="boolean"?void 0:e.value})),vNe=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:xN,Intersect:cl,Mutate:lNe,Resize:xw,Ripple:eo,Scroll:uNe,Tooltip:hNe,Touch:F_},Symbol.toStringTag,{value:"Module"}));function VL(e,t,n){const r=ot(e,t);return r.value=e[t]??n.value,f.watch(n,a=>{e[t]==null&&(r.value=a)}),r}function $Z(e){return e(.1).includes(",")?",":"."}function eJ(e){return t=>{const n=VL(t,"locale",e.current),r=VL(t,"fallback",e.fallback),a=VL(t,"messages",e.messages),o=e.useI18n({locale:n.value,fallbackLocale:r.value,messages:a.value,useScope:"local",legacy:!1,inheritLocale:!1});return f.watch(n,i=>{o.locale.value=i}),{name:"vue-i18n",current:n,fallback:r,messages:a,decimalSeparator:f.toRef(()=>t.decimalSeparator??$Z(o.n)),t:function(i){for(var l=arguments.length,s=new Array(l>1?l-1:0),u=1;u$Z(t.global.n)),t:function(i){for(var l=arguments.length,s=new Array(l>1?l-1:0),u=1;ut?Symbol.for(e):Symbol(e),mNe=(e,t,n)=>gNe({l:e,k:t,s:n}),gNe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ga=e=>typeof e=="number"&&isFinite(e),yNe=e=>rJ(e)==="[object Date]",Sf=e=>rJ(e)==="[object RegExp]",oT=e=>on(e)&&Object.keys(e).length===0,So=Object.assign,bNe=Object.create,ar=(e=null)=>bNe(e);let $Z;const Kc=()=>$Z||($Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ar());function eJ(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function tJ(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function wNe(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,o)=>`${a}="${tJ(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,o)=>`${a}='${tJ(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const SNe=Object.prototype.hasOwnProperty;function Gs(e,t){return SNe.call(e,t)}const Tr=Array.isArray,vr=e=>typeof e=="function",mt=e=>typeof e=="string",_n=e=>typeof e=="boolean",Hn=e=>e!==null&&typeof e=="object",xNe=e=>Hn(e)&&vr(e.then)&&vr(e.catch),nJ=Object.prototype.toString,rJ=e=>nJ.call(e),on=e=>{if(!Hn(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},CNe=e=>e==null?"":Tr(e)||on(e)&&e.toString===nJ?JSON.stringify(e,null,2):String(e);function _Ne(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}function iT(e){let t=e;return()=>++t}const lT=e=>!Hn(e)||Tr(e);function sT(e,t){if(lT(e)||lT(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Hn(r[o])&&!Hn(a[o])&&(a[o]=Array.isArray(r[o])?[]:ar()),lT(a[o])||lT(r[o])?a[o]=r[o]:n.push({src:r[o],des:a[o]}))})}}/*! + */function mNe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const rT=typeof window<"u",bf=(e,t=!1)=>t?Symbol.for(e):Symbol(e),gNe=(e,t,n)=>yNe({l:e,k:t,s:n}),yNe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ya=e=>typeof e=="number"&&isFinite(e),bNe=e=>oJ(e)==="[object Date]",wf=e=>oJ(e)==="[object RegExp]",aT=e=>an(e)&&Object.keys(e).length===0,Co=Object.assign,wNe=Object.create,ar=(e=null)=>wNe(e);let tJ;const jc=()=>tJ||(tJ=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ar());function nJ(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function rJ(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function SNe(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,o)=>`${a}="${rJ(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,o)=>`${a}='${rJ(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const xNe=Object.prototype.hasOwnProperty;function Ws(e,t){return xNe.call(e,t)}const kr=Array.isArray,pr=e=>typeof e=="function",mt=e=>typeof e=="string",_n=e=>typeof e=="boolean",Hn=e=>e!==null&&typeof e=="object",CNe=e=>Hn(e)&&pr(e.then)&&pr(e.catch),aJ=Object.prototype.toString,oJ=e=>aJ.call(e),an=e=>{if(!Hn(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},_Ne=e=>e==null?"":kr(e)||an(e)&&e.toString===aJ?JSON.stringify(e,null,2):String(e);function TNe(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}function oT(e){let t=e;return()=>++t}const iT=e=>!Hn(e)||kr(e);function lT(e,t){if(iT(e)||iT(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(Hn(r[o])&&!Hn(a[o])&&(a[o]=Array.isArray(r[o])?[]:ar()),iT(a[o])||iT(r[o])?a[o]=r[o]:n.push({src:r[o],des:a[o]}))})}}/*! * message-compiler v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. - */function TNe(e,t,n){return{line:e,column:t,offset:n}}function uT(e,t,n){return{start:e,end:t}}const kNe=/\{([0-9a-zA-Z]+)\}/g;function aJ(e,...t){return t.length===1&&ANe(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(kNe,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const oJ=Object.assign,iJ=e=>typeof e=="string",ANe=e=>e!==null&&typeof e=="object";function lJ(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const IL={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},ENe={[IL.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function INe(e,t,...n){const r=aJ(ENe[e],...n||[]),a={message:String(r),code:e};return t&&(a.location=t),a}const Jt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},MNe={[Jt.EXPECTED_TOKEN]:"Expected token: '{0}'",[Jt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Jt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Jt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Jt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Jt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Jt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Jt.EMPTY_PLACEHOLDER]:"Empty placeholder",[Jt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Jt.INVALID_LINKED_FORMAT]:"Invalid linked format",[Jt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Jt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Jt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Jt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Jt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Jt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ey(e,t,n={}){const{domain:r,messages:a,args:o}=n,i=aJ((a||MNe)[e]||"",...o||[]),l=new SyntaxError(String(i));return l.code=e,t&&(l.location=t),l.domain=r,l}function DNe(e){throw e}const Xc=" ",VNe="\r",vi=` -`,PNe="\u2028",NNe="\u2029";function LNe(e){const t=e;let n=0,r=1,a=1,o=0;const i=T=>t[T]===VNe&&t[T+1]===vi,l=T=>t[T]===vi,s=T=>t[T]===NNe,u=T=>t[T]===PNe,c=T=>i(T)||l(T)||s(T)||u(T),d=()=>n,h=()=>r,v=()=>a,p=()=>o,m=T=>i(T)||s(T)||u(T)?vi:t[T],g=()=>m(n),y=()=>m(n+o);function b(){return o=0,c(n)&&(r++,a=0),i(n)&&n++,n++,a++,t[n]}function w(){return i(n+o)&&o++,o++,t[n+o]}function S(){n=0,r=1,a=1,o=0}function _(T=0){o=T}function x(){const T=n+o;for(;T!==n;)b();o=0}return{index:d,line:h,column:v,peekOffset:p,charAt:m,currentChar:g,currentPeek:y,next:b,peek:w,reset:S,resetPeek:_,skipToPeek:x}}const xf=void 0,ONe=".",sJ="'",RNe="tokenizer";function BNe(e,t={}){const n=t.location!==!1,r=LNe(e),a=()=>r.index(),o=()=>TNe(r.line(),r.column(),r.index()),i=o(),l=a(),s={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>s,{onError:c}=t;function d(X,ee,ge,...oe){const Oe=u();if(ee.column+=ge,ee.offset+=ge,c){const je=n?uT(Oe.startLoc,ee):null,he=ey(X,je,{domain:RNe,args:oe});c(he)}}function h(X,ee,ge){X.endLoc=o(),X.currentType=ee;const oe={type:ee};return n&&(oe.loc=uT(X.startLoc,X.endLoc)),ge!=null&&(oe.value=ge),oe}const v=X=>h(X,14);function p(X,ee){return X.currentChar()===ee?(X.next(),ee):(d(Jt.EXPECTED_TOKEN,o(),0,ee),"")}function m(X){let ee="";for(;X.currentPeek()===Xc||X.currentPeek()===vi;)ee+=X.currentPeek(),X.peek();return ee}function g(X){const ee=m(X);return X.skipToPeek(),ee}function y(X){if(X===xf)return!1;const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee===95}function b(X){if(X===xf)return!1;const ee=X.charCodeAt(0);return ee>=48&&ee<=57}function w(X,ee){const{currentType:ge}=ee;if(ge!==2)return!1;m(X);const oe=y(X.currentPeek());return X.resetPeek(),oe}function S(X,ee){const{currentType:ge}=ee;if(ge!==2)return!1;m(X);const oe=X.currentPeek()==="-"?X.peek():X.currentPeek(),Oe=b(oe);return X.resetPeek(),Oe}function _(X,ee){const{currentType:ge}=ee;if(ge!==2)return!1;m(X);const oe=X.currentPeek()===sJ;return X.resetPeek(),oe}function x(X,ee){const{currentType:ge}=ee;if(ge!==8)return!1;m(X);const oe=X.currentPeek()===".";return X.resetPeek(),oe}function T(X,ee){const{currentType:ge}=ee;if(ge!==9)return!1;m(X);const oe=y(X.currentPeek());return X.resetPeek(),oe}function A(X,ee){const{currentType:ge}=ee;if(!(ge===8||ge===12))return!1;m(X);const oe=X.currentPeek()===":";return X.resetPeek(),oe}function E(X,ee){const{currentType:ge}=ee;if(ge!==10)return!1;const oe=()=>{const je=X.currentPeek();return je==="{"?y(X.peek()):je==="@"||je==="%"||je==="|"||je===":"||je==="."||je===Xc||!je?!1:je===vi?(X.peek(),oe()):N(X,!1)},Oe=oe();return X.resetPeek(),Oe}function I(X){m(X);const ee=X.currentPeek()==="|";return X.resetPeek(),ee}function M(X){const ee=m(X),ge=X.currentPeek()==="%"&&X.peek()==="{";return X.resetPeek(),{isModulo:ge,hasSpace:ee.length>0}}function N(X,ee=!0){const ge=(Oe=!1,je="",he=!1)=>{const Se=X.currentPeek();return Se==="{"?je==="%"?!1:Oe:Se==="@"||!Se?je==="%"?!0:Oe:Se==="%"?(X.peek(),ge(Oe,"%",!0)):Se==="|"?je==="%"||he?!0:!(je===Xc||je===vi):Se===Xc?(X.peek(),ge(!0,Xc,he)):Se===vi?(X.peek(),ge(!0,vi,he)):!0},oe=ge();return ee&&X.resetPeek(),oe}function D(X,ee){const ge=X.currentChar();return ge===xf?xf:ee(ge)?(X.next(),ge):null}function P(X){const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36}function O(X){return D(X,P)}function L(X){const ee=X.charCodeAt(0);return ee>=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===95||ee===36||ee===45}function R(X){return D(X,L)}function B(X){const ee=X.charCodeAt(0);return ee>=48&&ee<=57}function W(X){return D(X,B)}function H(X){const ee=X.charCodeAt(0);return ee>=48&&ee<=57||ee>=65&&ee<=70||ee>=97&&ee<=102}function z(X){return D(X,H)}function j(X){let ee="",ge="";for(;ee=W(X);)ge+=ee;return ge}function U(X){g(X);const ee=X.currentChar();return ee!=="%"&&d(Jt.EXPECTED_TOKEN,o(),0,ee),X.next(),"%"}function Y(X){let ee="";for(;;){const ge=X.currentChar();if(ge==="{"||ge==="}"||ge==="@"||ge==="|"||!ge)break;if(ge==="%")if(N(X))ee+=ge,X.next();else break;else if(ge===Xc||ge===vi)if(N(X))ee+=ge,X.next();else{if(I(X))break;ee+=ge,X.next()}else ee+=ge,X.next()}return ee}function Z(X){g(X);let ee="",ge="";for(;ee=R(X);)ge+=ee;return X.currentChar()===xf&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),ge}function te(X){g(X);let ee="";return X.currentChar()==="-"?(X.next(),ee+=`-${j(X)}`):ee+=j(X),X.currentChar()===xf&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),ee}function $(X){return X!==sJ&&X!==vi}function ae(X){g(X),p(X,"'");let ee="",ge="";for(;ee=D(X,$);)ee==="\\"?ge+=de(X):ge+=ee;const oe=X.currentChar();return oe===vi||oe===xf?(d(Jt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),oe===vi&&(X.next(),p(X,"'")),ge):(p(X,"'"),ge)}function de(X){const ee=X.currentChar();switch(ee){case"\\":case"'":return X.next(),`\\${ee}`;case"u":return me(X,ee,4);case"U":return me(X,ee,6);default:return d(Jt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,ee),""}}function me(X,ee,ge){p(X,ee);let oe="";for(let Oe=0;Oe{const oe=X.currentChar();return oe==="{"||oe==="%"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Xc?ge:(ge+=oe,X.next(),ee(ge))};return ee("")}function pe(X){g(X);const ee=p(X,"|");return g(X),ee}function Pe(X,ee){let ge=null;switch(X.currentChar()){case"{":return ee.braceNest>=1&&d(Jt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),X.next(),ge=h(ee,2,"{"),g(X),ee.braceNest++,ge;case"}":return ee.braceNest>0&&ee.currentType===2&&d(Jt.EMPTY_PLACEHOLDER,o(),0),X.next(),ge=h(ee,3,"}"),ee.braceNest--,ee.braceNest>0&&g(X),ee.inLinked&&ee.braceNest===0&&(ee.inLinked=!1),ge;case"@":return ee.braceNest>0&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),ge=ze(X,ee)||v(ee),ee.braceNest=0,ge;default:{let Oe=!0,je=!0,he=!0;if(I(X))return ee.braceNest>0&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),ge=h(ee,1,pe(X)),ee.braceNest=0,ee.inLinked=!1,ge;if(ee.braceNest>0&&(ee.currentType===5||ee.currentType===6||ee.currentType===7))return d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),ee.braceNest=0,lt(X,ee);if(Oe=w(X,ee))return ge=h(ee,5,Z(X)),g(X),ge;if(je=S(X,ee))return ge=h(ee,6,te(X)),g(X),ge;if(he=_(X,ee))return ge=h(ee,7,ae(X)),g(X),ge;if(!Oe&&!je&&!he)return ge=h(ee,13,Ee(X)),d(Jt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,ge.value),g(X),ge;break}}return ge}function ze(X,ee){const{currentType:ge}=ee;let oe=null;const Oe=X.currentChar();switch((ge===8||ge===9||ge===12||ge===10)&&(Oe===vi||Oe===Xc)&&d(Jt.INVALID_LINKED_FORMAT,o(),0),Oe){case"@":return X.next(),oe=h(ee,8,"@"),ee.inLinked=!0,oe;case".":return g(X),X.next(),h(ee,9,".");case":":return g(X),X.next(),h(ee,10,":");default:return I(X)?(oe=h(ee,1,pe(X)),ee.braceNest=0,ee.inLinked=!1,oe):x(X,ee)||A(X,ee)?(g(X),ze(X,ee)):T(X,ee)?(g(X),h(ee,12,De(X))):E(X,ee)?(g(X),Oe==="{"?Pe(X,ee)||oe:h(ee,11,ne(X))):(ge===8&&d(Jt.INVALID_LINKED_FORMAT,o(),0),ee.braceNest=0,ee.inLinked=!1,lt(X,ee))}}function lt(X,ee){let ge={type:14};if(ee.braceNest>0)return Pe(X,ee)||v(ee);if(ee.inLinked)return ze(X,ee)||v(ee);switch(X.currentChar()){case"{":return Pe(X,ee)||v(ee);case"}":return d(Jt.UNBALANCED_CLOSING_BRACE,o(),0),X.next(),h(ee,3,"}");case"@":return ze(X,ee)||v(ee);default:{if(I(X))return ge=h(ee,1,pe(X)),ee.braceNest=0,ee.inLinked=!1,ge;const{isModulo:Oe,hasSpace:je}=M(X);if(Oe)return je?h(ee,0,Y(X)):h(ee,4,U(X));if(N(X))return h(ee,0,Y(X));break}}return ge}function kt(){const{currentType:X,offset:ee,startLoc:ge,endLoc:oe}=s;return s.lastType=X,s.lastOffset=ee,s.lastStartLoc=ge,s.lastEndLoc=oe,s.offset=a(),s.startLoc=o(),r.currentChar()===xf?h(s,14):lt(r,s)}return{nextToken:kt,currentOffset:a,currentPosition:o,context:u}}const FNe="parser",HNe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function zNe(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function WNe(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function a(w,S,_,x,...T){const A=w.currentPosition();if(A.offset+=x,A.column+=x,n){const E=t?uT(_,A):null,I=ey(S,E,{domain:FNe,args:T});n(I)}}function o(w,S,_,x,...T){const A=w.currentPosition();if(A.offset+=x,A.column+=x,r){const E=t?uT(_,A):null;r(INe(S,E,T))}}function i(w,S,_){const x={type:w};return t&&(x.start=S,x.end=S,x.loc={start:_,end:_}),x}function l(w,S,_,x){t&&(w.end=S,w.loc&&(w.loc.end=_))}function s(w,S){const _=w.context(),x=i(3,_.offset,_.startLoc);return x.value=S,l(x,w.currentOffset(),w.currentPosition()),x}function u(w,S){const _=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(5,x,T);return A.index=parseInt(S,10),w.nextToken(),l(A,w.currentOffset(),w.currentPosition()),A}function c(w,S,_){const x=w.context(),{lastOffset:T,lastStartLoc:A}=x,E=i(4,T,A);return E.key=S,_===!0&&(E.modulo=!0),w.nextToken(),l(E,w.currentOffset(),w.currentPosition()),E}function d(w,S){const _=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(9,x,T);return A.value=S.replace(HNe,zNe),w.nextToken(),l(A,w.currentOffset(),w.currentPosition()),A}function h(w){const S=w.nextToken(),_=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(8,x,T);return S.type!==12?(a(w,Jt.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),A.value="",l(A,x,T),{nextConsumeToken:S,node:A}):(S.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Us(S)),A.value=S.value||"",l(A,w.currentOffset(),w.currentPosition()),{node:A})}function v(w,S){const _=w.context(),x=i(7,_.offset,_.startLoc);return x.value=S,l(x,w.currentOffset(),w.currentPosition()),x}function p(w){const S=w.context(),_=i(6,S.offset,S.startLoc);let x=w.nextToken();if(x.type===9){const T=h(w);_.modifier=T.node,x=T.nextConsumeToken||w.nextToken()}switch(x.type!==10&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(x)),x=w.nextToken(),x.type===2&&(x=w.nextToken()),x.type){case 11:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(x)),_.key=v(w,x.value||"");break;case 5:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(x)),_.key=c(w,x.value||"");break;case 6:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(x)),_.key=u(w,x.value||"");break;case 7:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(x)),_.key=d(w,x.value||"");break;default:{a(w,Jt.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=w.context(),A=i(7,T.offset,T.startLoc);return A.value="",l(A,T.offset,T.startLoc),_.key=A,l(_,T.offset,T.startLoc),{nextConsumeToken:x,node:_}}}return l(_,w.currentOffset(),w.currentPosition()),{node:_}}function m(w){const S=w.context(),_=S.currentType===1?w.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,T=i(2,_,x);T.items=[];let A=null,E=null;do{const N=A||w.nextToken();switch(A=null,N.type){case 0:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(N)),T.items.push(s(w,N.value||""));break;case 6:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(N)),T.items.push(u(w,N.value||""));break;case 4:E=!0;break;case 5:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(N)),T.items.push(c(w,N.value||"",!!E)),E&&(o(w,IL.USE_MODULO_SYNTAX,S.lastStartLoc,0,Us(N)),E=null);break;case 7:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Us(N)),T.items.push(d(w,N.value||""));break;case 8:{const D=p(w);T.items.push(D.node),A=D.nextConsumeToken||null;break}}}while(S.currentType!==14&&S.currentType!==1);const I=S.currentType===1?S.lastOffset:w.currentOffset(),M=S.currentType===1?S.lastEndLoc:w.currentPosition();return l(T,I,M),T}function g(w,S,_,x){const T=w.context();let A=x.items.length===0;const E=i(1,S,_);E.cases=[],E.cases.push(x);do{const I=m(w);A||(A=I.items.length===0),E.cases.push(I)}while(T.currentType!==14);return A&&a(w,Jt.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),l(E,w.currentOffset(),w.currentPosition()),E}function y(w){const S=w.context(),{offset:_,startLoc:x}=S,T=m(w);return S.currentType===14?T:g(w,_,x,T)}function b(w){const S=BNe(w,oJ({},e)),_=S.context(),x=i(0,_.offset,_.startLoc);return t&&x.loc&&(x.loc.source=w),x.body=y(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(w)),_.currentType!==14&&a(S,Jt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,w[_.offset]||""),l(x,S.currentOffset(),S.currentPosition()),x}return{parse:b}}function Us(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function GNe(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function uJ(e,t){for(let n=0;ncJ(n)),e}function cJ(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function s(m,g){i.code+=m}function u(m,g=!0){const y=g?r:"";s(a?y+" ".repeat(m):y)}function c(m=!0){const g=++i.indentLevel;m&&u(g)}function d(m=!0){const g=--i.indentLevel;m&&u(g)}function h(){u(i.indentLevel)}return{context:l,push:s,indent:c,deindent:d,newline:h,helper:m=>`_${m}`,needIndent:()=>i.needIndent}}function ZNe(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ny(e,t.key),t.modifier?(e.push(", "),ny(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function JNe(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let o=0;o{const n=iJ(t.mode)?t.mode:"normal",r=iJ(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=XNe(e,{filename:r,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),i.length>0&&(l.push(`const { ${lJ(i.map(c=>`${c}: _${c}`),", ")} } = ctx`),l.newline()),l.push("return "),ny(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:s,map:u}=l.context();return{ast:e,code:s,map:u?u.toJSON():void 0}};function eLe(e,t={}){const n=oJ({},t),r=!!n.jit,a=!!n.minify,o=n.optimize==null?!0:n.optimize,l=WNe(n).parse(e);return r?(o&&YNe(l),a&&ty(l),{ast:l,code:""}):(UNe(l,n),$Ne(l,n))}/*! + */function kNe(e,t,n){return{line:e,column:t,offset:n}}function sT(e,t,n){return{start:e,end:t}}const ANe=/\{([0-9a-zA-Z]+)\}/g;function iJ(e,...t){return t.length===1&&ENe(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ANe,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const lJ=Object.assign,sJ=e=>typeof e=="string",ENe=e=>e!==null&&typeof e=="object";function uJ(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const PL={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},INe={[PL.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function MNe(e,t,...n){const r=iJ(INe[e],...n||[]),a={message:String(r),code:e};return t&&(a.location=t),a}const Jt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},DNe={[Jt.EXPECTED_TOKEN]:"Expected token: '{0}'",[Jt.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Jt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Jt.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Jt.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Jt.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Jt.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Jt.EMPTY_PLACEHOLDER]:"Empty placeholder",[Jt.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Jt.INVALID_LINKED_FORMAT]:"Invalid linked format",[Jt.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Jt.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Jt.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Jt.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Jt.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Jt.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ry(e,t,n={}){const{domain:r,messages:a,args:o}=n,i=iJ((a||DNe)[e]||"",...o||[]),l=new SyntaxError(String(i));return l.code=e,t&&(l.location=t),l.domain=r,l}function VNe(e){throw e}const Kc=" ",PNe="\r",mi=` +`,NNe="\u2028",LNe="\u2029";function ONe(e){const t=e;let n=0,r=1,a=1,o=0;const i=T=>t[T]===PNe&&t[T+1]===mi,l=T=>t[T]===mi,s=T=>t[T]===LNe,u=T=>t[T]===NNe,c=T=>i(T)||l(T)||s(T)||u(T),d=()=>n,h=()=>r,v=()=>a,p=()=>o,m=T=>i(T)||s(T)||u(T)?mi:t[T],g=()=>m(n),y=()=>m(n+o);function b(){return o=0,c(n)&&(r++,a=0),i(n)&&n++,n++,a++,t[n]}function w(){return i(n+o)&&o++,o++,t[n+o]}function S(){n=0,r=1,a=1,o=0}function _(T=0){o=T}function x(){const T=n+o;for(;T!==n;)b();o=0}return{index:d,line:h,column:v,peekOffset:p,charAt:m,currentChar:g,currentPeek:y,next:b,peek:w,reset:S,resetPeek:_,skipToPeek:x}}const Sf=void 0,RNe=".",cJ="'",BNe="tokenizer";function FNe(e,t={}){const n=t.location!==!1,r=ONe(e),a=()=>r.index(),o=()=>kNe(r.line(),r.column(),r.index()),i=o(),l=a(),s={currentType:14,offset:l,startLoc:i,endLoc:i,lastType:14,lastOffset:l,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>s,{onError:c}=t;function d(X,te,pe,...oe){const Le=u();if(te.column+=pe,te.offset+=pe,c){const je=n?sT(Le.startLoc,te):null,fe=ry(X,je,{domain:BNe,args:oe});c(fe)}}function h(X,te,pe){X.endLoc=o(),X.currentType=te;const oe={type:te};return n&&(oe.loc=sT(X.startLoc,X.endLoc)),pe!=null&&(oe.value=pe),oe}const v=X=>h(X,14);function p(X,te){return X.currentChar()===te?(X.next(),te):(d(Jt.EXPECTED_TOKEN,o(),0,te),"")}function m(X){let te="";for(;X.currentPeek()===Kc||X.currentPeek()===mi;)te+=X.currentPeek(),X.peek();return te}function g(X){const te=m(X);return X.skipToPeek(),te}function y(X){if(X===Sf)return!1;const te=X.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te===95}function b(X){if(X===Sf)return!1;const te=X.charCodeAt(0);return te>=48&&te<=57}function w(X,te){const{currentType:pe}=te;if(pe!==2)return!1;m(X);const oe=y(X.currentPeek());return X.resetPeek(),oe}function S(X,te){const{currentType:pe}=te;if(pe!==2)return!1;m(X);const oe=X.currentPeek()==="-"?X.peek():X.currentPeek(),Le=b(oe);return X.resetPeek(),Le}function _(X,te){const{currentType:pe}=te;if(pe!==2)return!1;m(X);const oe=X.currentPeek()===cJ;return X.resetPeek(),oe}function x(X,te){const{currentType:pe}=te;if(pe!==8)return!1;m(X);const oe=X.currentPeek()===".";return X.resetPeek(),oe}function T(X,te){const{currentType:pe}=te;if(pe!==9)return!1;m(X);const oe=y(X.currentPeek());return X.resetPeek(),oe}function A(X,te){const{currentType:pe}=te;if(!(pe===8||pe===12))return!1;m(X);const oe=X.currentPeek()===":";return X.resetPeek(),oe}function E(X,te){const{currentType:pe}=te;if(pe!==10)return!1;const oe=()=>{const je=X.currentPeek();return je==="{"?y(X.peek()):je==="@"||je==="%"||je==="|"||je===":"||je==="."||je===Kc||!je?!1:je===mi?(X.peek(),oe()):N(X,!1)},Le=oe();return X.resetPeek(),Le}function I(X){m(X);const te=X.currentPeek()==="|";return X.resetPeek(),te}function M(X){const te=m(X),pe=X.currentPeek()==="%"&&X.peek()==="{";return X.resetPeek(),{isModulo:pe,hasSpace:te.length>0}}function N(X,te=!0){const pe=(Le=!1,je="",fe=!1)=>{const _e=X.currentPeek();return _e==="{"?je==="%"?!1:Le:_e==="@"||!_e?je==="%"?!0:Le:_e==="%"?(X.peek(),pe(Le,"%",!0)):_e==="|"?je==="%"||fe?!0:!(je===Kc||je===mi):_e===Kc?(X.peek(),pe(!0,Kc,fe)):_e===mi?(X.peek(),pe(!0,mi,fe)):!0},oe=pe();return te&&X.resetPeek(),oe}function D(X,te){const pe=X.currentChar();return pe===Sf?Sf:te(pe)?(X.next(),pe):null}function P(X){const te=X.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36}function O(X){return D(X,P)}function L(X){const te=X.charCodeAt(0);return te>=97&&te<=122||te>=65&&te<=90||te>=48&&te<=57||te===95||te===36||te===45}function R(X){return D(X,L)}function B(X){const te=X.charCodeAt(0);return te>=48&&te<=57}function z(X){return D(X,B)}function H(X){const te=X.charCodeAt(0);return te>=48&&te<=57||te>=65&&te<=70||te>=97&&te<=102}function G(X){return D(X,H)}function j(X){let te="",pe="";for(;te=z(X);)pe+=te;return pe}function U(X){g(X);const te=X.currentChar();return te!=="%"&&d(Jt.EXPECTED_TOKEN,o(),0,te),X.next(),"%"}function Y(X){let te="";for(;;){const pe=X.currentChar();if(pe==="{"||pe==="}"||pe==="@"||pe==="|"||!pe)break;if(pe==="%")if(N(X))te+=pe,X.next();else break;else if(pe===Kc||pe===mi)if(N(X))te+=pe,X.next();else{if(I(X))break;te+=pe,X.next()}else te+=pe,X.next()}return te}function Z(X){g(X);let te="",pe="";for(;te=R(X);)pe+=te;return X.currentChar()===Sf&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),pe}function ne(X){g(X);let te="";return X.currentChar()==="-"?(X.next(),te+=`-${j(X)}`):te+=j(X),X.currentChar()===Sf&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),te}function $(X){return X!==cJ&&X!==mi}function ae(X){g(X),p(X,"'");let te="",pe="";for(;te=D(X,$);)te==="\\"?pe+=de(X):pe+=te;const oe=X.currentChar();return oe===mi||oe===Sf?(d(Jt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),oe===mi&&(X.next(),p(X,"'")),pe):(p(X,"'"),pe)}function de(X){const te=X.currentChar();switch(te){case"\\":case"'":return X.next(),`\\${te}`;case"u":return ve(X,te,4);case"U":return ve(X,te,6);default:return d(Jt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,te),""}}function ve(X,te,pe){p(X,te);let oe="";for(let Le=0;Le{const oe=X.currentChar();return oe==="{"||oe==="%"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Kc?pe:(pe+=oe,X.next(),te(pe))};return te("")}function be(X){g(X);const te=p(X,"|");return g(X),te}function Ie(X,te){let pe=null;switch(X.currentChar()){case"{":return te.braceNest>=1&&d(Jt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),X.next(),pe=h(te,2,"{"),g(X),te.braceNest++,pe;case"}":return te.braceNest>0&&te.currentType===2&&d(Jt.EMPTY_PLACEHOLDER,o(),0),X.next(),pe=h(te,3,"}"),te.braceNest--,te.braceNest>0&&g(X),te.inLinked&&te.braceNest===0&&(te.inLinked=!1),pe;case"@":return te.braceNest>0&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),pe=He(X,te)||v(te),te.braceNest=0,pe;default:{let Le=!0,je=!0,fe=!0;if(I(X))return te.braceNest>0&&d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),pe=h(te,1,be(X)),te.braceNest=0,te.inLinked=!1,pe;if(te.braceNest>0&&(te.currentType===5||te.currentType===6||te.currentType===7))return d(Jt.UNTERMINATED_CLOSING_BRACE,o(),0),te.braceNest=0,yt(X,te);if(Le=w(X,te))return pe=h(te,5,Z(X)),g(X),pe;if(je=S(X,te))return pe=h(te,6,ne(X)),g(X),pe;if(fe=_(X,te))return pe=h(te,7,ae(X)),g(X),pe;if(!Le&&!je&&!fe)return pe=h(te,13,Se(X)),d(Jt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,pe.value),g(X),pe;break}}return pe}function He(X,te){const{currentType:pe}=te;let oe=null;const Le=X.currentChar();switch((pe===8||pe===9||pe===12||pe===10)&&(Le===mi||Le===Kc)&&d(Jt.INVALID_LINKED_FORMAT,o(),0),Le){case"@":return X.next(),oe=h(te,8,"@"),te.inLinked=!0,oe;case".":return g(X),X.next(),h(te,9,".");case":":return g(X),X.next(),h(te,10,":");default:return I(X)?(oe=h(te,1,be(X)),te.braceNest=0,te.inLinked=!1,oe):x(X,te)||A(X,te)?(g(X),He(X,te)):T(X,te)?(g(X),h(te,12,Re(X))):E(X,te)?(g(X),Le==="{"?Ie(X,te)||oe:h(te,11,ee(X))):(pe===8&&d(Jt.INVALID_LINKED_FORMAT,o(),0),te.braceNest=0,te.inLinked=!1,yt(X,te))}}function yt(X,te){let pe={type:14};if(te.braceNest>0)return Ie(X,te)||v(te);if(te.inLinked)return He(X,te)||v(te);switch(X.currentChar()){case"{":return Ie(X,te)||v(te);case"}":return d(Jt.UNBALANCED_CLOSING_BRACE,o(),0),X.next(),h(te,3,"}");case"@":return He(X,te)||v(te);default:{if(I(X))return pe=h(te,1,be(X)),te.braceNest=0,te.inLinked=!1,pe;const{isModulo:Le,hasSpace:je}=M(X);if(Le)return je?h(te,0,Y(X)):h(te,4,U(X));if(N(X))return h(te,0,Y(X));break}}return pe}function St(){const{currentType:X,offset:te,startLoc:pe,endLoc:oe}=s;return s.lastType=X,s.lastOffset=te,s.lastStartLoc=pe,s.lastEndLoc=oe,s.offset=a(),s.startLoc=o(),r.currentChar()===Sf?h(s,14):yt(r,s)}return{nextToken:St,currentOffset:a,currentPosition:o,context:u}}const HNe="parser",zNe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function WNe(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function GNe(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function a(w,S,_,x,...T){const A=w.currentPosition();if(A.offset+=x,A.column+=x,n){const E=t?sT(_,A):null,I=ry(S,E,{domain:HNe,args:T});n(I)}}function o(w,S,_,x,...T){const A=w.currentPosition();if(A.offset+=x,A.column+=x,r){const E=t?sT(_,A):null;r(MNe(S,E,T))}}function i(w,S,_){const x={type:w};return t&&(x.start=S,x.end=S,x.loc={start:_,end:_}),x}function l(w,S,_,x){t&&(w.end=S,w.loc&&(w.loc.end=_))}function s(w,S){const _=w.context(),x=i(3,_.offset,_.startLoc);return x.value=S,l(x,w.currentOffset(),w.currentPosition()),x}function u(w,S){const _=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(5,x,T);return A.index=parseInt(S,10),w.nextToken(),l(A,w.currentOffset(),w.currentPosition()),A}function c(w,S,_){const x=w.context(),{lastOffset:T,lastStartLoc:A}=x,E=i(4,T,A);return E.key=S,_===!0&&(E.modulo=!0),w.nextToken(),l(E,w.currentOffset(),w.currentPosition()),E}function d(w,S){const _=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(9,x,T);return A.value=S.replace(zNe,WNe),w.nextToken(),l(A,w.currentOffset(),w.currentPosition()),A}function h(w){const S=w.nextToken(),_=w.context(),{lastOffset:x,lastStartLoc:T}=_,A=i(8,x,T);return S.type!==12?(a(w,Jt.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),A.value="",l(A,x,T),{nextConsumeToken:S,node:A}):(S.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Gs(S)),A.value=S.value||"",l(A,w.currentOffset(),w.currentPosition()),{node:A})}function v(w,S){const _=w.context(),x=i(7,_.offset,_.startLoc);return x.value=S,l(x,w.currentOffset(),w.currentPosition()),x}function p(w){const S=w.context(),_=i(6,S.offset,S.startLoc);let x=w.nextToken();if(x.type===9){const T=h(w);_.modifier=T.node,x=T.nextConsumeToken||w.nextToken()}switch(x.type!==10&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(x)),x=w.nextToken(),x.type===2&&(x=w.nextToken()),x.type){case 11:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(x)),_.key=v(w,x.value||"");break;case 5:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(x)),_.key=c(w,x.value||"");break;case 6:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(x)),_.key=u(w,x.value||"");break;case 7:x.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(x)),_.key=d(w,x.value||"");break;default:{a(w,Jt.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=w.context(),A=i(7,T.offset,T.startLoc);return A.value="",l(A,T.offset,T.startLoc),_.key=A,l(_,T.offset,T.startLoc),{nextConsumeToken:x,node:_}}}return l(_,w.currentOffset(),w.currentPosition()),{node:_}}function m(w){const S=w.context(),_=S.currentType===1?w.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,T=i(2,_,x);T.items=[];let A=null,E=null;do{const N=A||w.nextToken();switch(A=null,N.type){case 0:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(N)),T.items.push(s(w,N.value||""));break;case 6:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(N)),T.items.push(u(w,N.value||""));break;case 4:E=!0;break;case 5:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(N)),T.items.push(c(w,N.value||"",!!E)),E&&(o(w,PL.USE_MODULO_SYNTAX,S.lastStartLoc,0,Gs(N)),E=null);break;case 7:N.value==null&&a(w,Jt.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Gs(N)),T.items.push(d(w,N.value||""));break;case 8:{const D=p(w);T.items.push(D.node),A=D.nextConsumeToken||null;break}}}while(S.currentType!==14&&S.currentType!==1);const I=S.currentType===1?S.lastOffset:w.currentOffset(),M=S.currentType===1?S.lastEndLoc:w.currentPosition();return l(T,I,M),T}function g(w,S,_,x){const T=w.context();let A=x.items.length===0;const E=i(1,S,_);E.cases=[],E.cases.push(x);do{const I=m(w);A||(A=I.items.length===0),E.cases.push(I)}while(T.currentType!==14);return A&&a(w,Jt.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),l(E,w.currentOffset(),w.currentPosition()),E}function y(w){const S=w.context(),{offset:_,startLoc:x}=S,T=m(w);return S.currentType===14?T:g(w,_,x,T)}function b(w){const S=FNe(w,lJ({},e)),_=S.context(),x=i(0,_.offset,_.startLoc);return t&&x.loc&&(x.loc.source=w),x.body=y(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(w)),_.currentType!==14&&a(S,Jt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,w[_.offset]||""),l(x,S.currentOffset(),S.currentPosition()),x}return{parse:b}}function Gs(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function UNe(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function dJ(e,t){for(let n=0;nfJ(n)),e}function fJ(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ni;function s(m,g){i.code+=m}function u(m,g=!0){const y=g?r:"";s(a?y+" ".repeat(m):y)}function c(m=!0){const g=++i.indentLevel;m&&u(g)}function d(m=!0){const g=--i.indentLevel;m&&u(g)}function h(){u(i.indentLevel)}return{context:l,push:s,indent:c,deindent:d,newline:h,helper:m=>`_${m}`,needIndent:()=>i.needIndent}}function JNe(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),oy(e,t.key),t.modifier?(e.push(", "),oy(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function QNe(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let o=0;o{const n=sJ(t.mode)?t.mode:"normal",r=sJ(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=ZNe(e,{filename:r,breakLineCode:a,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),i.length>0&&(l.push(`const { ${uJ(i.map(c=>`${c}: _${c}`),", ")} } = ctx`),l.newline()),l.push("return "),oy(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:s,map:u}=l.context();return{ast:e,code:s,map:u?u.toJSON():void 0}};function tLe(e,t={}){const n=lJ({},t),r=!!n.jit,a=!!n.minify,o=n.optimize==null?!0:n.optimize,l=GNe(n).parse(e);return r?(o&&jNe(l),a&&ay(l),{ast:l,code:""}):(YNe(l,n),eLe(l,n))}/*! * core-base v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. - */function tLe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kc().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Eu(e){return Hn(e)&&DL(e)===0&&(Gs(e,"b")||Gs(e,"body"))}const dJ=["b","body"];function nLe(e){return Cf(e,dJ)}const fJ=["c","cases"];function rLe(e){return Cf(e,fJ,[])}const hJ=["s","static"];function aLe(e){return Cf(e,hJ)}const vJ=["i","items"];function oLe(e){return Cf(e,vJ,[])}const pJ=["t","type"];function DL(e){return Cf(e,pJ)}const mJ=["v","value"];function cT(e,t){const n=Cf(e,mJ);if(n!=null)return n;throw Iw(t)}const gJ=["m","modifier"];function iLe(e){return Cf(e,gJ)}const yJ=["k","key"];function lLe(e){const t=Cf(e,yJ);if(t)return t;throw Iw(6)}function Cf(e,t,n){for(let r=0;r{i===void 0?i=l:i+=l},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,i===void 0||(i=fLe(i),i===!1))return!1;h[1]()}};function v(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,l="\\"+p,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&v())){if(s=dLe(o),d=_f[r],u=d[s]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(l=o,c()===!1))))return;if(r===7)return t}}const wJ=new Map;function vLe(e,t){return Hn(e)?e[t]:null}function pLe(e,t){if(!Hn(e))return null;let n=wJ.get(t);if(n||(n=hLe(t),n&&wJ.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;oe,gLe=e=>"",yLe="text",bLe=e=>e.length===0?"":_Ne(e),wLe=CNe;function SJ(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function SLe(e){const t=ga(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ga(e.named.count)||ga(e.named.n))?ga(e.named.count)?e.named.count:ga(e.named.n)?e.named.n:t:t}function xLe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function CLe(e={}){const t=e.locale,n=SLe(e),r=Hn(e.pluralRules)&&mt(t)&&vr(e.pluralRules[t])?e.pluralRules[t]:SJ,a=Hn(e.pluralRules)&&mt(t)&&vr(e.pluralRules[t])?SJ:void 0,o=y=>y[r(n,y.length,a)],i=e.list||[],l=y=>i[y],s=e.named||ar();ga(e.pluralIndex)&&xLe(n,s);const u=y=>s[y];function c(y){const b=vr(e.messages)?e.messages(y):Hn(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):gLe)}const d=y=>e.modifiers?e.modifiers[y]:mLe,h=on(e.processor)&&vr(e.processor.normalize)?e.processor.normalize:bLe,v=on(e.processor)&&vr(e.processor.interpolate)?e.processor.interpolate:wLe,p=on(e.processor)&&mt(e.processor.type)?e.processor.type:yLe,g={list:l,named:u,plural:o,linked:(y,...b)=>{const[w,S]=b;let _="text",x="";b.length===1?Hn(w)?(x=w.modifier||x,_=w.type||_):mt(w)&&(x=w||x):b.length===2&&(mt(w)&&(x=w||x),mt(S)&&(_=S||_));const T=c(y)(g),A=_==="vnode"&&Tr(T)&&x?T[0]:T;return x?d(x)(A,_):A},message:c,type:p,interpolate:v,normalize:h,values:So(ar(),i,s)};return g}let Mw=null;function _Le(e){Mw=e}function TLe(e,t,n){Mw&&Mw.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const kLe=ALe("function:translate");function ALe(e){return t=>Mw&&Mw.emit(e,t)}const ELe=IL.__EXTEND_POINT__,zv=iT(ELe),ILe={FALLBACK_TO_TRANSLATE:zv(),CANNOT_FORMAT_NUMBER:zv(),FALLBACK_TO_NUMBER_FORMAT:zv(),CANNOT_FORMAT_DATE:zv(),FALLBACK_TO_DATE_FORMAT:zv(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:zv(),__EXTEND_POINT__:zv()},xJ=Jt.__EXTEND_POINT__,Wv=iT(xJ),Ys={INVALID_ARGUMENT:xJ,INVALID_DATE_ARGUMENT:Wv(),INVALID_ISO_DATE_ARGUMENT:Wv(),NOT_SUPPORT_NON_STRING_MESSAGE:Wv(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Wv(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Wv(),NOT_SUPPORT_LOCALE_TYPE:Wv(),__EXTEND_POINT__:Wv()};function Iu(e){return ey(e,null,void 0)}function VL(e,t){return t.locale!=null?CJ(t.locale):CJ(e.locale)}let PL;function CJ(e){if(mt(e))return e;if(vr(e)){if(e.resolvedOnce&&PL!=null)return PL;if(e.constructor.name==="Function"){const t=e();if(xNe(t))throw Iu(Ys.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return PL=t}else throw Iu(Ys.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Iu(Ys.NOT_SUPPORT_LOCALE_TYPE)}function MLe(e,t,n){return[...new Set([n,...Tr(t)?t:Hn(t)?Object.keys(t):mt(t)?[t]:[n]])]}function _J(e,t,n){const r=mt(n)?n:ry,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;Tr(i);)i=TJ(o,i,t);const l=Tr(t)||!on(t)?t:t.default?t.default:null;i=mt(l)?[l]:l,Tr(i)&&TJ(o,i,!1),a.__localeChainCache.set(r,o)}return o}function TJ(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function NLe(){return{upper:(e,t)=>t==="text"&&mt(e)?e.toUpperCase():t==="vnode"&&Hn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&mt(e)?e.toLowerCase():t==="vnode"&&Hn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&mt(e)?AJ(e):t==="vnode"&&Hn(e)&&"__v_isVNode"in e?AJ(e.children):e}}let EJ;function IJ(e){EJ=e}let MJ;function LLe(e){MJ=e}let DJ;function OLe(e){DJ=e}let VJ=null;const RLe=e=>{VJ=e},BLe=()=>VJ;let PJ=null;const NJ=e=>{PJ=e},FLe=()=>PJ;let LJ=0;function HLe(e={}){const t=vr(e.onWarn)?e.onWarn:pNe,n=mt(e.version)?e.version:PLe,r=mt(e.locale)||vr(e.locale)?e.locale:ry,a=vr(r)?ry:r,o=Tr(e.fallbackLocale)||on(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=on(e.messages)?e.messages:NL(a),l=on(e.datetimeFormats)?e.datetimeFormats:NL(a),s=on(e.numberFormats)?e.numberFormats:NL(a),u=So(ar(),e.modifiers,NLe()),c=e.pluralRules||ar(),d=vr(e.missing)?e.missing:null,h=_n(e.missingWarn)||Sf(e.missingWarn)?e.missingWarn:!0,v=_n(e.fallbackWarn)||Sf(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,m=!!e.unresolving,g=vr(e.postTranslation)?e.postTranslation:null,y=on(e.processor)?e.processor:null,b=_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=vr(e.messageCompiler)?e.messageCompiler:EJ,_=vr(e.messageResolver)?e.messageResolver:MJ||vLe,x=vr(e.localeFallbacker)?e.localeFallbacker:DJ||MLe,T=Hn(e.fallbackContext)?e.fallbackContext:void 0,A=e,E=Hn(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,I=Hn(A.__numberFormatters)?A.__numberFormatters:new Map,M=Hn(A.__meta)?A.__meta:{};LJ++;const N={version:n,cid:LJ,locale:r,fallbackLocale:o,messages:i,modifiers:u,pluralRules:c,missing:d,missingWarn:h,fallbackWarn:v,fallbackFormat:p,unresolving:m,postTranslation:g,processor:y,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:_,localeFallbacker:x,fallbackContext:T,onWarn:t,__meta:M};return N.datetimeFormats=l,N.numberFormats=s,N.__datetimeFormatters=E,N.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&TLe(N,n,M),N}const NL=e=>({[e]:ar()});function LL(e,t,n,r,a){const{missing:o,onWarn:i}=e;if(o!==null){const l=o(e,n,t,a);return mt(l)?l:t}else return t}function Dw(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function zLe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function WLe(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;rGLe(n,e)}function GLe(e,t){const n=nLe(t);if(n==null)throw Iw(0);if(DL(n)===1){const o=rLe(n);return e.plural(o.reduce((i,l)=>[...i,OJ(e,l)],[]))}else return OJ(e,n)}function OJ(e,t){const n=aLe(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=oLe(t).reduce((a,o)=>[...a,RL(e,o)],[]);return e.normalize(r)}}function RL(e,t){const n=DL(t);switch(n){case 3:return cT(t,n);case 9:return cT(t,n);case 4:{const r=t;if(Gs(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Gs(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Iw(n)}case 5:{const r=t;if(Gs(r,"i")&&ga(r.i))return e.interpolate(e.list(r.i));if(Gs(r,"index")&&ga(r.index))return e.interpolate(e.list(r.index));throw Iw(n)}case 6:{const r=t,a=iLe(r),o=lLe(r);return e.linked(RL(e,o),a?RL(e,a):void 0,e.type)}case 7:return cT(t,n);case 8:return cT(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const RJ=e=>e;let ay=ar();function BJ(e,t={}){let n=!1;const r=t.onError||DNe;return t.onError=a=>{n=!0,r(a)},{...eLe(e,t),detectError:n}}const ULe=(e,t)=>{if(!mt(e))throw Iu(Ys.NOT_SUPPORT_NON_STRING_MESSAGE);{_n(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||RJ)(e),a=ay[r];if(a)return a;const{code:o,detectError:i}=BJ(e,t),l=new Function(`return ${o}`)();return i?l:ay[r]=l}};function YLe(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&mt(e)){_n(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||RJ)(e),a=ay[r];if(a)return a;const{ast:o,detectError:i}=BJ(e,{...t,location:!1,jit:!0}),l=OL(o);return i?l:ay[r]=l}else{const n=e.cacheKey;if(n){const r=ay[n];return r||(ay[n]=OL(e))}else return OL(e)}}const FJ=()=>"",jl=e=>vr(e);function HJ(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:i,messages:l}=e,[s,u]=BL(...t),c=_n(u.missingWarn)?u.missingWarn:e.missingWarn,d=_n(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=_n(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,p=mt(u.default)||_n(u.default)?_n(u.default)?o?s:()=>s:u.default:n?o?s:()=>s:"",m=n||p!=="",g=VL(e,u);h&&jLe(u);let[y,b,w]=v?[s,g,l[g]||ar()]:zJ(e,s,g,i,d,c),S=y,_=s;if(!v&&!(mt(S)||Eu(S)||jl(S))&&m&&(S=p,_=S),!v&&(!(mt(S)||Eu(S)||jl(S))||!mt(b)))return a?dT:s;let x=!1;const T=()=>{x=!0},A=jl(S)?S:WJ(e,s,b,S,_,T);if(x)return S;const E=ZLe(e,b,w,u),I=CLe(E),M=KLe(e,A,I);let N=r?r(M,s):M;if(h&&mt(N)&&(N=wNe(N)),__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:mt(s)?s:jl(S)?S.key:"",locale:b||(jl(S)?S.locale:""),format:mt(S)?S:jl(S)?S.source:"",message:N};D.meta=So({},e.__meta,BLe()||{}),kLe(D)}return N}function jLe(e){Tr(e.list)?e.list=e.list.map(t=>mt(t)?eJ(t):t):Hn(e.named)&&Object.keys(e.named).forEach(t=>{mt(e.named[t])&&(e.named[t]=eJ(e.named[t]))})}function zJ(e,t,n,r,a,o){const{messages:i,onWarn:l,messageResolver:s,localeFallbacker:u}=e,c=u(e,r,n);let d=ar(),h,v=null;const p="translate";for(let m=0;mr;return u.locale=n,u.key=t,u}const s=i(r,XLe(e,n,a,r,l,o));return s.locale=n,s.key=t,s.source=r,s}function KLe(e,t,n){return t(n)}function BL(...e){const[t,n,r]=e,a=ar();if(!mt(t)&&!ga(t)&&!jl(t)&&!Eu(t))throw Iu(Ys.INVALID_ARGUMENT);const o=ga(t)?String(t):(jl(t),t);return ga(n)?a.plural=n:mt(n)?a.default=n:on(n)&&!oT(n)?a.named=n:Tr(n)&&(a.list=n),ga(r)?a.plural=r:mt(r)?a.default=r:on(r)&&So(a,r),[o,a]}function XLe(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{throw o&&o(i),i},onCacheKey:i=>mNe(t,n,i)}}function ZLe(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:i,fallbackLocale:l,fallbackWarn:s,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:a,pluralRules:o,messages:v=>{let p=i(n,v);if(p==null&&c){const[,,m]=zJ(c,v,t,l,s,u);p=i(m,v)}if(mt(p)||Eu(p)){let m=!1;const y=WJ(e,v,t,p,v,()=>{m=!0});return m?FJ:y}else return jl(p)?p:FJ}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),ga(r.plural)&&(h.pluralIndex=r.plural),h}function GJ(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:l}=e,[s,u,c,d]=FL(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,p=VL(e,c),m=i(e,a,p);if(!mt(s)||s==="")return new Intl.DateTimeFormat(p,d).format(u);let g={},y,b=null;const w="datetime format";for(let x=0;x{UJ.includes(s)?i[s]=n[s]:o[s]=n[s]}),mt(r)?o.locale=r:on(r)&&(i=r),on(a)&&(i=a),[o.key||"",l,o,i]}function YJ(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function jJ(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:l}=e,[s,u,c,d]=HL(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,p=VL(e,c),m=i(e,a,p);if(!mt(s)||s==="")return new Intl.NumberFormat(p,d).format(u);let g={},y,b=null;const w="number format";for(let x=0;x{KJ.includes(s)?i[s]=n[s]:o[s]=n[s]}),mt(r)?o.locale=r:on(r)&&(i=r),on(a)&&(i=a),[o.key||"",l,o,i]}function XJ(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}tLe();/*! + */function nLe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(jc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(jc().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(jc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Eu(e){return Hn(e)&&LL(e)===0&&(Ws(e,"b")||Ws(e,"body"))}const hJ=["b","body"];function rLe(e){return xf(e,hJ)}const vJ=["c","cases"];function aLe(e){return xf(e,vJ,[])}const pJ=["s","static"];function oLe(e){return xf(e,pJ)}const mJ=["i","items"];function iLe(e){return xf(e,mJ,[])}const gJ=["t","type"];function LL(e){return xf(e,gJ)}const yJ=["v","value"];function uT(e,t){const n=xf(e,yJ);if(n!=null)return n;throw Mw(t)}const bJ=["m","modifier"];function lLe(e){return xf(e,bJ)}const wJ=["k","key"];function sLe(e){const t=xf(e,wJ);if(t)return t;throw Mw(6)}function xf(e,t,n){for(let r=0;r{i===void 0?i=l:i+=l},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),a++},h[3]=()=>{if(a>0)a--,r=4,h[0]();else{if(a=0,i===void 0||(i=hLe(i),i===!1))return!1;h[1]()}};function v(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,l="\\"+p,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&v())){if(s=fLe(o),d=Cf[r],u=d[s]||d.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(l=o,c()===!1))))return;if(r===7)return t}}const xJ=new Map;function pLe(e,t){return Hn(e)?e[t]:null}function mLe(e,t){if(!Hn(e))return null;let n=xJ.get(t);if(n||(n=vLe(t),n&&xJ.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;oe,yLe=e=>"",bLe="text",wLe=e=>e.length===0?"":TNe(e),SLe=_Ne;function CJ(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function xLe(e){const t=ya(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ya(e.named.count)||ya(e.named.n))?ya(e.named.count)?e.named.count:ya(e.named.n)?e.named.n:t:t}function CLe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function _Le(e={}){const t=e.locale,n=xLe(e),r=Hn(e.pluralRules)&&mt(t)&&pr(e.pluralRules[t])?e.pluralRules[t]:CJ,a=Hn(e.pluralRules)&&mt(t)&&pr(e.pluralRules[t])?CJ:void 0,o=y=>y[r(n,y.length,a)],i=e.list||[],l=y=>i[y],s=e.named||ar();ya(e.pluralIndex)&&CLe(n,s);const u=y=>s[y];function c(y){const b=pr(e.messages)?e.messages(y):Hn(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):yLe)}const d=y=>e.modifiers?e.modifiers[y]:gLe,h=an(e.processor)&&pr(e.processor.normalize)?e.processor.normalize:wLe,v=an(e.processor)&&pr(e.processor.interpolate)?e.processor.interpolate:SLe,p=an(e.processor)&&mt(e.processor.type)?e.processor.type:bLe,g={list:l,named:u,plural:o,linked:(y,...b)=>{const[w,S]=b;let _="text",x="";b.length===1?Hn(w)?(x=w.modifier||x,_=w.type||_):mt(w)&&(x=w||x):b.length===2&&(mt(w)&&(x=w||x),mt(S)&&(_=S||_));const T=c(y)(g),A=_==="vnode"&&kr(T)&&x?T[0]:T;return x?d(x)(A,_):A},message:c,type:p,interpolate:v,normalize:h,values:Co(ar(),i,s)};return g}let Dw=null;function TLe(e){Dw=e}function kLe(e,t,n){Dw&&Dw.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ALe=ELe("function:translate");function ELe(e){return t=>Dw&&Dw.emit(e,t)}const ILe=PL.__EXTEND_POINT__,Hv=oT(ILe),MLe={FALLBACK_TO_TRANSLATE:Hv(),CANNOT_FORMAT_NUMBER:Hv(),FALLBACK_TO_NUMBER_FORMAT:Hv(),CANNOT_FORMAT_DATE:Hv(),FALLBACK_TO_DATE_FORMAT:Hv(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Hv(),__EXTEND_POINT__:Hv()},_J=Jt.__EXTEND_POINT__,zv=oT(_J),Us={INVALID_ARGUMENT:_J,INVALID_DATE_ARGUMENT:zv(),INVALID_ISO_DATE_ARGUMENT:zv(),NOT_SUPPORT_NON_STRING_MESSAGE:zv(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:zv(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:zv(),NOT_SUPPORT_LOCALE_TYPE:zv(),__EXTEND_POINT__:zv()};function Iu(e){return ry(e,null,void 0)}function OL(e,t){return t.locale!=null?TJ(t.locale):TJ(e.locale)}let RL;function TJ(e){if(mt(e))return e;if(pr(e)){if(e.resolvedOnce&&RL!=null)return RL;if(e.constructor.name==="Function"){const t=e();if(CNe(t))throw Iu(Us.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return RL=t}else throw Iu(Us.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Iu(Us.NOT_SUPPORT_LOCALE_TYPE)}function DLe(e,t,n){return[...new Set([n,...kr(t)?t:Hn(t)?Object.keys(t):mt(t)?[t]:[n]])]}function kJ(e,t,n){const r=mt(n)?n:iy,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;kr(i);)i=AJ(o,i,t);const l=kr(t)||!an(t)?t:t.default?t.default:null;i=mt(l)?[l]:l,kr(i)&&AJ(o,i,!1),a.__localeChainCache.set(r,o)}return o}function AJ(e,t,n){let r=!0;for(let a=0;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function LLe(){return{upper:(e,t)=>t==="text"&&mt(e)?e.toUpperCase():t==="vnode"&&Hn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&mt(e)?e.toLowerCase():t==="vnode"&&Hn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&mt(e)?IJ(e):t==="vnode"&&Hn(e)&&"__v_isVNode"in e?IJ(e.children):e}}let MJ;function DJ(e){MJ=e}let VJ;function OLe(e){VJ=e}let PJ;function RLe(e){PJ=e}let NJ=null;const BLe=e=>{NJ=e},FLe=()=>NJ;let LJ=null;const OJ=e=>{LJ=e},HLe=()=>LJ;let RJ=0;function zLe(e={}){const t=pr(e.onWarn)?e.onWarn:mNe,n=mt(e.version)?e.version:NLe,r=mt(e.locale)||pr(e.locale)?e.locale:iy,a=pr(r)?iy:r,o=kr(e.fallbackLocale)||an(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=an(e.messages)?e.messages:BL(a),l=an(e.datetimeFormats)?e.datetimeFormats:BL(a),s=an(e.numberFormats)?e.numberFormats:BL(a),u=Co(ar(),e.modifiers,LLe()),c=e.pluralRules||ar(),d=pr(e.missing)?e.missing:null,h=_n(e.missingWarn)||wf(e.missingWarn)?e.missingWarn:!0,v=_n(e.fallbackWarn)||wf(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,m=!!e.unresolving,g=pr(e.postTranslation)?e.postTranslation:null,y=an(e.processor)?e.processor:null,b=_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=pr(e.messageCompiler)?e.messageCompiler:MJ,_=pr(e.messageResolver)?e.messageResolver:VJ||pLe,x=pr(e.localeFallbacker)?e.localeFallbacker:PJ||DLe,T=Hn(e.fallbackContext)?e.fallbackContext:void 0,A=e,E=Hn(A.__datetimeFormatters)?A.__datetimeFormatters:new Map,I=Hn(A.__numberFormatters)?A.__numberFormatters:new Map,M=Hn(A.__meta)?A.__meta:{};RJ++;const N={version:n,cid:RJ,locale:r,fallbackLocale:o,messages:i,modifiers:u,pluralRules:c,missing:d,missingWarn:h,fallbackWarn:v,fallbackFormat:p,unresolving:m,postTranslation:g,processor:y,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:_,localeFallbacker:x,fallbackContext:T,onWarn:t,__meta:M};return N.datetimeFormats=l,N.numberFormats=s,N.__datetimeFormatters=E,N.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&kLe(N,n,M),N}const BL=e=>({[e]:ar()});function FL(e,t,n,r,a){const{missing:o,onWarn:i}=e;if(o!==null){const l=o(e,n,t,a);return mt(l)?l:t}else return t}function Vw(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function WLe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function GLe(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;rULe(n,e)}function ULe(e,t){const n=rLe(t);if(n==null)throw Mw(0);if(LL(n)===1){const o=aLe(n);return e.plural(o.reduce((i,l)=>[...i,BJ(e,l)],[]))}else return BJ(e,n)}function BJ(e,t){const n=oLe(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=iLe(t).reduce((a,o)=>[...a,zL(e,o)],[]);return e.normalize(r)}}function zL(e,t){const n=LL(t);switch(n){case 3:return uT(t,n);case 9:return uT(t,n);case 4:{const r=t;if(Ws(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Ws(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Mw(n)}case 5:{const r=t;if(Ws(r,"i")&&ya(r.i))return e.interpolate(e.list(r.i));if(Ws(r,"index")&&ya(r.index))return e.interpolate(e.list(r.index));throw Mw(n)}case 6:{const r=t,a=lLe(r),o=sLe(r);return e.linked(zL(e,o),a?zL(e,a):void 0,e.type)}case 7:return uT(t,n);case 8:return uT(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const FJ=e=>e;let ly=ar();function HJ(e,t={}){let n=!1;const r=t.onError||VNe;return t.onError=a=>{n=!0,r(a)},{...tLe(e,t),detectError:n}}const YLe=(e,t)=>{if(!mt(e))throw Iu(Us.NOT_SUPPORT_NON_STRING_MESSAGE);{_n(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||FJ)(e),a=ly[r];if(a)return a;const{code:o,detectError:i}=HJ(e,t),l=new Function(`return ${o}`)();return i?l:ly[r]=l}};function jLe(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&mt(e)){_n(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||FJ)(e),a=ly[r];if(a)return a;const{ast:o,detectError:i}=HJ(e,{...t,location:!1,jit:!0}),l=HL(o);return i?l:ly[r]=l}else{const n=e.cacheKey;if(n){const r=ly[n];return r||(ly[n]=HL(e))}else return HL(e)}}const zJ=()=>"",Yl=e=>pr(e);function WJ(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:i,messages:l}=e,[s,u]=WL(...t),c=_n(u.missingWarn)?u.missingWarn:e.missingWarn,d=_n(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=_n(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,p=mt(u.default)||_n(u.default)?_n(u.default)?o?s:()=>s:u.default:n?o?s:()=>s:"",m=n||p!=="",g=OL(e,u);h&&KLe(u);let[y,b,w]=v?[s,g,l[g]||ar()]:GJ(e,s,g,i,d,c),S=y,_=s;if(!v&&!(mt(S)||Eu(S)||Yl(S))&&m&&(S=p,_=S),!v&&(!(mt(S)||Eu(S)||Yl(S))||!mt(b)))return a?cT:s;let x=!1;const T=()=>{x=!0},A=Yl(S)?S:UJ(e,s,b,S,_,T);if(x)return S;const E=JLe(e,b,w,u),I=_Le(E),M=XLe(e,A,I);let N=r?r(M,s):M;if(h&&mt(N)&&(N=SNe(N)),__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:mt(s)?s:Yl(S)?S.key:"",locale:b||(Yl(S)?S.locale:""),format:mt(S)?S:Yl(S)?S.source:"",message:N};D.meta=Co({},e.__meta,FLe()||{}),ALe(D)}return N}function KLe(e){kr(e.list)?e.list=e.list.map(t=>mt(t)?nJ(t):t):Hn(e.named)&&Object.keys(e.named).forEach(t=>{mt(e.named[t])&&(e.named[t]=nJ(e.named[t]))})}function GJ(e,t,n,r,a,o){const{messages:i,onWarn:l,messageResolver:s,localeFallbacker:u}=e,c=u(e,r,n);let d=ar(),h,v=null;const p="translate";for(let m=0;mr;return u.locale=n,u.key=t,u}const s=i(r,ZLe(e,n,a,r,l,o));return s.locale=n,s.key=t,s.source=r,s}function XLe(e,t,n){return t(n)}function WL(...e){const[t,n,r]=e,a=ar();if(!mt(t)&&!ya(t)&&!Yl(t)&&!Eu(t))throw Iu(Us.INVALID_ARGUMENT);const o=ya(t)?String(t):(Yl(t),t);return ya(n)?a.plural=n:mt(n)?a.default=n:an(n)&&!aT(n)?a.named=n:kr(n)&&(a.list=n),ya(r)?a.plural=r:mt(r)?a.default=r:an(r)&&Co(a,r),[o,a]}function ZLe(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{throw o&&o(i),i},onCacheKey:i=>gNe(t,n,i)}}function JLe(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:i,fallbackLocale:l,fallbackWarn:s,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:a,pluralRules:o,messages:v=>{let p=i(n,v);if(p==null&&c){const[,,m]=GJ(c,v,t,l,s,u);p=i(m,v)}if(mt(p)||Eu(p)){let m=!1;const y=UJ(e,v,t,p,v,()=>{m=!0});return m?zJ:y}else return Yl(p)?p:zJ}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),ya(r.plural)&&(h.pluralIndex=r.plural),h}function YJ(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:l}=e,[s,u,c,d]=GL(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,p=OL(e,c),m=i(e,a,p);if(!mt(s)||s==="")return new Intl.DateTimeFormat(p,d).format(u);let g={},y,b=null;const w="datetime format";for(let x=0;x{jJ.includes(s)?i[s]=n[s]:o[s]=n[s]}),mt(r)?o.locale=r:an(r)&&(i=r),an(a)&&(i=a),[o.key||"",l,o,i]}function KJ(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function XJ(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:l}=e,[s,u,c,d]=UL(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const v=!!c.part,p=OL(e,c),m=i(e,a,p);if(!mt(s)||s==="")return new Intl.NumberFormat(p,d).format(u);let g={},y,b=null;const w="number format";for(let x=0;x{ZJ.includes(s)?i[s]=n[s]:o[s]=n[s]}),mt(r)?o.locale=r:an(r)&&(i=r),an(a)&&(i=a),[o.key||"",l,o,i]}function JJ(e,t,n){const r=e;for(const a in n){const o=`${t}__${a}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}nLe();/*! * vue-i18n v9.14.5 * (c) 2025 kazuya kawaguchi * Released under the MIT License. - */const JLe="9.14.5";function QLe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Kc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Kc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Kc().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Kc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Kc().__INTLIFY_PROD_DEVTOOLS__=!1)}const qLe=ILe.__EXTEND_POINT__,Zc=iT(qLe);Zc(),Zc(),Zc(),Zc(),Zc(),Zc(),Zc(),Zc(),Zc();const ZJ=Ys.__EXTEND_POINT__,Fi=iT(ZJ),Wa={UNEXPECTED_RETURN_TYPE:ZJ,INVALID_ARGUMENT:Fi(),MUST_BE_CALL_SETUP_TOP:Fi(),NOT_INSTALLED:Fi(),NOT_AVAILABLE_IN_LEGACY_MODE:Fi(),REQUIRED_VALUE:Fi(),INVALID_VALUE:Fi(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fi(),NOT_INSTALLED_WITH_PROVIDE:Fi(),UNEXPECTED_ERROR:Fi(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fi(),BRIDGE_SUPPORT_VUE_2_ONLY:Fi(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fi(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fi(),__EXTEND_POINT__:Fi()};function no(e,...t){return ey(e,null,void 0)}const zL=wf("__translateVNode"),WL=wf("__datetimeParts"),GL=wf("__numberParts"),JJ=wf("__setPluralRules"),QJ=wf("__injectWithOption"),UL=wf("__dispose");function Vw(e){if(!Hn(e)||Eu(e))return e;for(const t in e)if(Gs(e,t))if(!t.includes("."))Hn(e[t])&&Vw(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:s,resource:u}=l;s?(i[s]=i[s]||ar(),sT(u,i[s])):sT(u,i)}else mt(l)&&sT(JSON.parse(l),i)}),a==null&&o)for(const l in i)Gs(i,l)&&Vw(i[l]);return i}function qJ(e){return e.type}function $J(e,t,n){let r=Hn(t.messages)?t.messages:ar();"__i18nGlobal"in n&&(r=fT(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Hn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Hn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function eQ(e){return f.createVNode(f.Text,null,e,0)}const tQ="__INTLIFY_META__",nQ=()=>[],$Le=()=>!1;let rQ=0;function aQ(e){return(t,n,r,a)=>e(n,r,f.getCurrentInstance()||void 0,a)}const e2e=()=>{const e=f.getCurrentInstance();let t=null;return e&&(t=qJ(e)[tQ])?{[tQ]:t}:null};function YL(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,o=e.flatJson,i=aT?f.ref:f.shallowRef,l=!!e.translateExistCompatible;let s=_n(e.inheritLocale)?e.inheritLocale:!0;const u=i(n&&s?n.locale.value:mt(e.locale)?e.locale:ry),c=i(n&&s?n.fallbackLocale.value:mt(e.fallbackLocale)||Tr(e.fallbackLocale)||on(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),d=i(fT(u.value,e)),h=i(on(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),v=i(on(e.numberFormats)?e.numberFormats:{[u.value]:{}});let p=n?n.missingWarn:_n(e.missingWarn)||Sf(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:_n(e.fallbackWarn)||Sf(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:_n(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,b=vr(e.missing)?e.missing:null,w=vr(e.missing)?aQ(e.missing):null,S=vr(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const T=n?n.modifiers:on(e.modifiers)?e.modifiers:{};let A=e.pluralRules||n&&n.pluralRules,E;E=(()=>{a&&NJ(null);const he={version:JLe,locale:u.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:A,missing:w===null?void 0:w,missingWarn:p,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:_,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};he.datetimeFormats=h.value,he.numberFormats=v.value,he.__datetimeFormatters=on(E)?E.__datetimeFormatters:void 0,he.__numberFormatters=on(E)?E.__numberFormatters:void 0;const Se=HLe(he);return a&&NJ(Se),Se})(),Dw(E,u.value,c.value);function M(){return[u.value,c.value,d.value,h.value,v.value]}const N=f.computed({get:()=>u.value,set:he=>{u.value=he,E.locale=u.value}}),D=f.computed({get:()=>c.value,set:he=>{c.value=he,E.fallbackLocale=c.value,Dw(E,u.value,he)}}),P=f.computed(()=>d.value),O=f.computed(()=>h.value),L=f.computed(()=>v.value);function R(){return vr(S)?S:null}function B(he){S=he,E.postTranslation=he}function W(){return b}function H(he){he!==null&&(w=aQ(he)),b=he,E.missing=w}const z=(he,Se,$e,le,ue,xe)=>{M();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=n?FLe():void 0),Ve=he(E)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=void 0)}if($e!=="translate exists"&&ga(Ve)&&Ve===dT||$e==="translate exists"&&!Ve){const[et,ye]=Se();return n&&g?le(n):ue(et)}else{if(xe(Ve))return Ve;throw no(Wa.UNEXPECTED_RETURN_TYPE)}};function j(...he){return z(Se=>Reflect.apply(HJ,null,[Se,...he]),()=>BL(...he),"translate",Se=>Reflect.apply(Se.t,Se,[...he]),Se=>Se,Se=>mt(Se))}function U(...he){const[Se,$e,le]=he;if(le&&!Hn(le))throw no(Wa.INVALID_ARGUMENT);return j(Se,$e,So({resolvedMessage:!0},le||{}))}function Y(...he){return z(Se=>Reflect.apply(GJ,null,[Se,...he]),()=>FL(...he),"datetime format",Se=>Reflect.apply(Se.d,Se,[...he]),()=>kJ,Se=>mt(Se))}function Z(...he){return z(Se=>Reflect.apply(jJ,null,[Se,...he]),()=>HL(...he),"number format",Se=>Reflect.apply(Se.n,Se,[...he]),()=>kJ,Se=>mt(Se))}function te(he){return he.map(Se=>mt(Se)||ga(Se)||_n(Se)?eQ(String(Se)):Se)}const ae={normalize:te,interpolate:he=>he,type:"vnode"};function de(...he){return z(Se=>{let $e;const le=Se;try{le.processor=ae,$e=Reflect.apply(HJ,null,[le,...he])}finally{le.processor=null}return $e},()=>BL(...he),"translate",Se=>Se[zL](...he),Se=>[eQ(Se)],Se=>Tr(Se))}function me(...he){return z(Se=>Reflect.apply(jJ,null,[Se,...he]),()=>HL(...he),"number format",Se=>Se[GL](...he),nQ,Se=>mt(Se)||Tr(Se))}function fe(...he){return z(Se=>Reflect.apply(GJ,null,[Se,...he]),()=>FL(...he),"datetime format",Se=>Se[WL](...he),nQ,Se=>mt(Se)||Tr(Se))}function Ee(he){A=he,E.pluralRules=A}function De(he,Se){return z(()=>{if(!he)return!1;const $e=mt(Se)?Se:u.value,le=Pe($e),ue=E.messageResolver(le,he);return l?ue!=null:Eu(ue)||jl(ue)||mt(ue)},()=>[he],"translate exists",$e=>Reflect.apply($e.te,$e,[he,Se]),$Le,$e=>_n($e))}function ne(he){let Se=null;const $e=_J(E,c.value,u.value);for(let le=0;le<$e.length;le++){const ue=d.value[$e[le]]||{},xe=E.messageResolver(ue,he);if(xe!=null){Se=xe;break}}return Se}function pe(he){const Se=ne(he);return Se??(n?n.tm(he)||{}:{})}function Pe(he){return d.value[he]||{}}function ze(he,Se){if(o){const $e={[he]:Se};for(const le in $e)Gs($e,le)&&Vw($e[le]);Se=$e[he]}d.value[he]=Se,E.messages=d.value}function lt(he,Se){d.value[he]=d.value[he]||{};const $e={[he]:Se};if(o)for(const le in $e)Gs($e,le)&&Vw($e[le]);Se=$e[he],sT(Se,d.value[he]),E.messages=d.value}function kt(he){return h.value[he]||{}}function X(he,Se){h.value[he]=Se,E.datetimeFormats=h.value,YJ(E,he,Se)}function ee(he,Se){h.value[he]=So(h.value[he]||{},Se),E.datetimeFormats=h.value,YJ(E,he,Se)}function ge(he){return v.value[he]||{}}function oe(he,Se){v.value[he]=Se,E.numberFormats=v.value,XJ(E,he,Se)}function Oe(he,Se){v.value[he]=So(v.value[he]||{},Se),E.numberFormats=v.value,XJ(E,he,Se)}rQ++,n&&aT&&(f.watch(n.locale,he=>{s&&(u.value=he,E.locale=he,Dw(E,u.value,c.value))}),f.watch(n.fallbackLocale,he=>{s&&(c.value=he,E.fallbackLocale=he,Dw(E,u.value,c.value))}));const je={id:rQ,locale:N,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(he){s=he,he&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,Dw(E,u.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:P,get modifiers(){return T},get pluralRules(){return A||{}},get isGlobal(){return a},get missingWarn(){return p},set missingWarn(he){p=he,E.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(he){m=he,E.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(he){g=he},get fallbackFormat(){return y},set fallbackFormat(he){y=he,E.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(he){_=he,E.warnHtmlMessage=he},get escapeParameter(){return x},set escapeParameter(he){x=he,E.escapeParameter=he},t:j,getLocaleMessage:Pe,setLocaleMessage:ze,mergeLocaleMessage:lt,getPostTranslationHandler:R,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:H,[JJ]:Ee};return je.datetimeFormats=O,je.numberFormats=L,je.rt=U,je.te=De,je.tm=pe,je.d=Y,je.n=Z,je.getDateTimeFormat=kt,je.setDateTimeFormat=X,je.mergeDateTimeFormat=ee,je.getNumberFormat=ge,je.setNumberFormat=oe,je.mergeNumberFormat=Oe,je[QJ]=r,je[zL]=de,je[WL]=fe,je[GL]=me,je}function t2e(e){const t=mt(e.locale)?e.locale:ry,n=mt(e.fallbackLocale)||Tr(e.fallbackLocale)||on(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=vr(e.missing)?e.missing:void 0,a=_n(e.silentTranslationWarn)||Sf(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=_n(e.silentFallbackWarn)||Sf(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=_n(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=on(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=vr(e.postTranslation)?e.postTranslation:void 0,d=mt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,v=_n(e.sync)?e.sync:!0;let p=e.messages;if(on(e.sharedMessages)){const x=e.sharedMessages;p=Object.keys(x).reduce((A,E)=>{const I=A[E]||(A[E]={});return So(I,x[E]),A},p||{})}const{__i18n:m,__root:g,__injectWithOption:y}=e,b=e.datetimeFormats,w=e.numberFormats,S=e.flatJson,_=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:S,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:i,fallbackFormat:l,modifiers:s,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,translateExistCompatible:_,__i18n:m,__root:g,__injectWithOption:y}}function jL(e={},t){{const n=YL(t2e(e)),{__extender:r}=e,a={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return _n(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=_n(o)?!o:o},get silentFallbackWarn(){return _n(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=_n(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,l,s]=o,u={};let c=null,d=null;if(!mt(i))throw no(Wa.INVALID_ARGUMENT);const h=i;return mt(l)?u.locale=l:Tr(l)?c=l:on(l)&&(d=l),Tr(s)?c=s:on(s)&&(d=s),Reflect.apply(n.t,n,[h,c||d||{},u])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,l,s]=o,u={plural:1};let c=null,d=null;if(!mt(i))throw no(Wa.INVALID_ARGUMENT);const h=i;return mt(l)?u.locale=l:ga(l)?u.plural=l:Tr(l)?c=l:on(l)&&(d=l),mt(s)?u.locale=s:Tr(s)?c=s:on(s)&&(d=s),Reflect.apply(n.t,n,[h,c||d||{},u])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return-1}};return a.__extender=r,a}}const KL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function n2e({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===f.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},ar())}function oQ(e){return f.Fragment}const iQ=f.defineComponent({name:"i18n-t",props:So({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ga(e)||!isNaN(e)}},KL),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||hT({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),i=ar();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=mt(e.plural)?+e.plural:e.plural);const l=n2e(t,o),s=a[zL](e.keypath,l,i),u=So(ar(),r),c=mt(e.tag)||Hn(e.tag)?e.tag:oQ();return f.h(c,u,s)}}});function r2e(e){return Tr(e)&&!mt(e[0])}function lQ(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const i={part:!0};let l=ar();e.locale&&(i.locale=e.locale),mt(e.format)?i.key=e.format:Hn(e.format)&&(mt(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((h,v)=>n.includes(v)?So(ar(),h,{[v]:e.format[v]}):h,ar()));const s=r(e.value,i,l);let u=[i.key];Tr(s)?u=s.map((h,v)=>{const p=a[h.type],m=p?p({[h.type]:h.value,index:v,parts:s}):[h.value];return r2e(m)&&(m[0].key=`${h.type}-${v}`),m}):mt(s)&&(u=[s]);const c=So(ar(),o),d=mt(e.tag)||Hn(e.tag)?e.tag:oQ();return f.h(d,c,u)}}const sQ=f.defineComponent({name:"i18n-n",props:So({value:{type:Number,required:!0},format:{type:[String,Object]}},KL),setup(e,t){const n=e.i18n||hT({useScope:e.scope,__useComponent:!0});return lQ(e,t,KJ,(...r)=>n[GL](...r))}}),uQ=f.defineComponent({name:"i18n-d",props:So({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},KL),setup(e,t){const n=e.i18n||hT({useScope:e.scope,__useComponent:!0});return lQ(e,t,UJ,(...r)=>n[WL](...r))}});function a2e(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function o2e(e){const t=i=>{const{instance:l,modifiers:s,value:u}=i;if(!l||!l.$)throw no(Wa.UNEXPECTED_ERROR);const c=a2e(e,l.$),d=cQ(u);return[Reflect.apply(c.t,c,[...dQ(d)]),c]};return{created:(i,l)=>{const[s,u]=t(l);aT&&e.global===u&&(i.__i18nWatcher=f.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=u,i.textContent=s},unmounted:i=>{aT&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const s=i.__composer,u=cQ(l);i.textContent=Reflect.apply(s.t,s,[...dQ(u)])}},getSSRProps:i=>{const[l]=t(i);return{textContent:l}}}}function cQ(e){if(mt(e))return{path:e};if(on(e)){if(!("path"in e))throw no(Wa.REQUIRED_VALUE,"path");return e}else throw no(Wa.INVALID_VALUE)}function dQ(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,i={},l=r||{};return mt(n)&&(i.locale=n),ga(a)&&(i.plural=a),ga(o)&&(i.plural=o),[t,l,i]}function i2e(e,t,...n){const r=on(n[0])?n[0]:{},a=!!r.useI18nComponentName;(_n(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":iQ.name,"I18nT"].forEach(i=>e.component(i,iQ)),[sQ.name,"I18nN"].forEach(i=>e.component(i,sQ)),[uQ.name,"I18nD"].forEach(i=>e.component(i,uQ))),e.directive("t",o2e(t))}function l2e(e,t,n){return{beforeCreate(){const r=f.getCurrentInstance();if(!r)throw no(Wa.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const o=a.i18n;if(a.__i18n&&(o.__i18n=a.__i18n),o.__root=t,this===this.$root)this.$i18n=fQ(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=jL(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=fQ(e,a);else{this.$i18n=jL({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&$J(t,a,a),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=f.getCurrentInstance();if(!r)throw no(Wa.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function fQ(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[JJ](t.pluralizationRules||e.pluralizationRules);const n=fT(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const s2e=wf("global-vue-i18n");function u2e(e={},t){const n=__VUE_I18N_LEGACY_API__&&_n(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=_n(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,l]=c2e(e,n),s=wf("");function u(h){return o.get(h)||null}function c(h,v){o.set(h,v)}function d(h){o.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(v,...p){if(v.__VUE_I18N_SYMBOL__=s,v.provide(v.__VUE_I18N_SYMBOL__,h),on(p[0])){const y=p[0];h.__composerExtend=y.__composerExtend,h.__vueI18nExtend=y.__vueI18nExtend}let m=null;!n&&r&&(m=b2e(v,h.global)),__VUE_I18N_FULL_INSTALL__&&i2e(v,h,...p),__VUE_I18N_LEGACY_API__&&n&&v.mixin(l2e(l,l.__composer,h));const g=v.unmount;v.unmount=()=>{m&&m(),h.dispose(),g()}},get global(){return l},dispose(){i.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return h}}function hT(e={}){const t=f.getCurrentInstance();if(t==null)throw no(Wa.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Wa.NOT_INSTALLED);const n=d2e(t),r=h2e(n),a=qJ(t),o=f2e(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw no(Wa.NOT_AVAILABLE_IN_LEGACY_MODE);return g2e(t,o,r,e)}if(o==="global")return $J(r,e,a),r;if(o==="parent"){let s=v2e(n,t,e.__useComponent);return s==null&&(s=r),s}const i=n;let l=i.__getInstance(t);if(l==null){const s=So({},e);"__i18n"in a&&(s.__i18n=a.__i18n),r&&(s.__root=r),l=YL(s),i.__composerExtend&&(l[UL]=i.__composerExtend(l)),m2e(i,t,l),i.__setInstance(t,l)}return l}function c2e(e,t,n){const r=f.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>jL(e)):r.run(()=>YL(e));if(a==null)throw no(Wa.UNEXPECTED_ERROR);return[r,a]}}function d2e(e){{const t=f.inject(e.isCE?s2e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Wa.NOT_INSTALLED_WITH_PROVIDE:Wa.UNEXPECTED_ERROR);return t}}function f2e(e,t){return oT(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function h2e(e){return e.mode==="composition"?e.global:e.global.__composer}function v2e(e,t,n=!1){let r=null;const a=t.root;let o=p2e(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(o);l!=null&&(r=l.__composer,n&&r&&!r[QJ]&&(r=null))}if(r!=null||a===o)break;o=o.parent}return r}function p2e(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function m2e(e,t,n){f.onMounted(()=>{},t),f.onUnmounted(()=>{const r=n;e.__deleteInstance(t);const a=r[UL];a&&(a(),delete r[UL])},t)}function g2e(e,t,n,r={}){const a=t==="local",o=f.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw no(Wa.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=_n(r.inheritLocale)?r.inheritLocale:!mt(r.locale),l=f.ref(!a||i?n.locale.value:mt(r.locale)?r.locale:ry),s=f.ref(!a||i?n.fallbackLocale.value:mt(r.fallbackLocale)||Tr(r.fallbackLocale)||on(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=f.ref(fT(l.value,r)),c=f.ref(on(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=f.ref(on(r.numberFormats)?r.numberFormats:{[l.value]:{}}),h=a?n.missingWarn:_n(r.missingWarn)||Sf(r.missingWarn)?r.missingWarn:!0,v=a?n.fallbackWarn:_n(r.fallbackWarn)||Sf(r.fallbackWarn)?r.fallbackWarn:!0,p=a?n.fallbackRoot:_n(r.fallbackRoot)?r.fallbackRoot:!0,m=!!r.fallbackFormat,g=vr(r.missing)?r.missing:null,y=vr(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:_n(r.warnHtmlMessage)?r.warnHtmlMessage:!0,w=!!r.escapeParameter,S=a?n.modifiers:on(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function x(){return[l.value,s.value,u.value,c.value,d.value]}const T=f.computed({get:()=>o.value?o.value.locale.value:l.value,set:ne=>{o.value&&(o.value.locale.value=ne),l.value=ne}}),A=f.computed({get:()=>o.value?o.value.fallbackLocale.value:s.value,set:ne=>{o.value&&(o.value.fallbackLocale.value=ne),s.value=ne}}),E=f.computed(()=>o.value?o.value.messages.value:u.value),I=f.computed(()=>c.value),M=f.computed(()=>d.value);function N(){return o.value?o.value.getPostTranslationHandler():y}function D(ne){o.value&&o.value.setPostTranslationHandler(ne)}function P(){return o.value?o.value.getMissingHandler():g}function O(ne){o.value&&o.value.setMissingHandler(ne)}function L(ne){return x(),ne()}function R(...ne){return o.value?L(()=>Reflect.apply(o.value.t,null,[...ne])):L(()=>"")}function B(...ne){return o.value?Reflect.apply(o.value.rt,null,[...ne]):""}function W(...ne){return o.value?L(()=>Reflect.apply(o.value.d,null,[...ne])):L(()=>"")}function H(...ne){return o.value?L(()=>Reflect.apply(o.value.n,null,[...ne])):L(()=>"")}function z(ne){return o.value?o.value.tm(ne):{}}function j(ne,pe){return o.value?o.value.te(ne,pe):!1}function U(ne){return o.value?o.value.getLocaleMessage(ne):{}}function Y(ne,pe){o.value&&(o.value.setLocaleMessage(ne,pe),u.value[ne]=pe)}function Z(ne,pe){o.value&&o.value.mergeLocaleMessage(ne,pe)}function te(ne){return o.value?o.value.getDateTimeFormat(ne):{}}function $(ne,pe){o.value&&(o.value.setDateTimeFormat(ne,pe),c.value[ne]=pe)}function ae(ne,pe){o.value&&o.value.mergeDateTimeFormat(ne,pe)}function de(ne){return o.value?o.value.getNumberFormat(ne):{}}function me(ne,pe){o.value&&(o.value.setNumberFormat(ne,pe),d.value[ne]=pe)}function fe(ne,pe){o.value&&o.value.mergeNumberFormat(ne,pe)}const Ee={get id(){return o.value?o.value.id:-1},locale:T,fallbackLocale:A,messages:E,datetimeFormats:I,numberFormats:M,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(ne){o.value&&(o.value.inheritLocale=ne)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:S},get pluralRules(){return o.value?o.value.pluralRules:_},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:h},set missingWarn(ne){o.value&&(o.value.missingWarn=ne)},get fallbackWarn(){return o.value?o.value.fallbackWarn:v},set fallbackWarn(ne){o.value&&(o.value.missingWarn=ne)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(ne){o.value&&(o.value.fallbackRoot=ne)},get fallbackFormat(){return o.value?o.value.fallbackFormat:m},set fallbackFormat(ne){o.value&&(o.value.fallbackFormat=ne)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:b},set warnHtmlMessage(ne){o.value&&(o.value.warnHtmlMessage=ne)},get escapeParameter(){return o.value?o.value.escapeParameter:w},set escapeParameter(ne){o.value&&(o.value.escapeParameter=ne)},t:R,getPostTranslationHandler:N,setPostTranslationHandler:D,getMissingHandler:P,setMissingHandler:O,rt:B,d:W,n:H,tm:z,te:j,getLocaleMessage:U,setLocaleMessage:Y,mergeLocaleMessage:Z,getDateTimeFormat:te,setDateTimeFormat:$,mergeDateTimeFormat:ae,getNumberFormat:de,setNumberFormat:me,mergeNumberFormat:fe};function De(ne){ne.locale.value=l.value,ne.fallbackLocale.value=s.value,Object.keys(u.value).forEach(pe=>{ne.mergeLocaleMessage(pe,u.value[pe])}),Object.keys(c.value).forEach(pe=>{ne.mergeDateTimeFormat(pe,c.value[pe])}),Object.keys(d.value).forEach(pe=>{ne.mergeNumberFormat(pe,d.value[pe])}),ne.escapeParameter=w,ne.fallbackFormat=m,ne.fallbackRoot=p,ne.fallbackWarn=v,ne.missingWarn=h,ne.warnHtmlMessage=b}return f.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw no(Wa.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ne=o.value=e.proxy.$i18n.__composer;t==="global"?(l.value=ne.locale.value,s.value=ne.fallbackLocale.value,u.value=ne.messages.value,c.value=ne.datetimeFormats.value,d.value=ne.numberFormats.value):a&&De(ne)}),Ee}const y2e=["locale","fallbackLocale","availableLocales"],hQ=["t","rt","d","n","tm","te"];function b2e(e,t){const n=Object.create(null);return y2e.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o)throw no(Wa.UNEXPECTED_ERROR);const i=f.isRef(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,hQ.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o||!o.value)throw no(Wa.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,o)}),()=>{delete e.config.globalProperties.$i18n,hQ.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(QLe(),__INTLIFY_JIT_COMPILATION__?IJ(YLe):IJ(ULe),LLe(pLe),OLe(_J),__INTLIFY_PROD_DEVTOOLS__){const e=Kc();e.__INTLIFY__=!0,_Le(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const vQ={badge:"バッジ",open:"開く",close:"閉じる",dismiss:"閉じる",confirmEdit:{ok:"OK",cancel:"キャンセル"},dataIterator:{noResultsText:"検索結果が見つかりません。",loadingText:"項目をロード中です..."},dataTable:{itemsPerPageText:"1ページあたりの行数:",ariaLabel:{sortDescending:"降順の並び替え。",sortAscending:"昇順の並び替え。",sortNone:"ソートされていません。",activateNone:"ソートを削除するには有効にしてください。",activateDescending:"降順の並び替えのためには有効にしてください。",activateAscending:"昇順のソートのためには有効にしてください。"},sortBy:"ソート方式"},dataFooter:{itemsPerPageText:"1ページあたりの件数:",itemsPerPageAll:"すべて",nextPage:"次のページ",prevPage:"前のページ",firstPage:"最初のページ",lastPage:"最後のページ",pageText:"{0}-{1} 件目 / {2}件"},dateRangeInput:{divider:"から"},datePicker:{itemsSelected:"{0} 選択済",range:{title:"日付を選択",header:"日付を入力"},title:"日付を選択",header:"日付を入力",input:{placeholder:"日付を入力"},ariaLabel:{previousMonth:"前の月",nextMonth:"次の月",selectYear:"年を選択",previousYear:"前の年",nextYear:"次の年",selectMonth:"月を選択",selectDate:"{0}",currentDate:"今日、{0}"}},noDataText:"データはありません。",carousel:{prev:"前のビジュアル",next:"次のビジュアル",ariaLabel:{delimiter:"カルーセルのスライド {0}件目 / {1}件"}},calendar:{moreEvents:"さらに{0}",today:"今日"},input:{clear:"クリア {0}",prependAction:"{0} の前に追加されたアクション",appendAction:"{0} の後に追加されたアクション",otp:"{0}番目のワンタイムパスワードを入力してください"},fileInput:{counter:"{0} ファイル",counterSize:"{0} ファイル (合計 {1})"},fileUpload:{title:"ここにファイルをドラッグ&ドロップ",divider:"または",browse:"ファイルを選択"},timePicker:{am:"午前",pm:"午後",title:"時間を選択",hour:"時",minute:"分",second:"秒",notAllowed:"値は許可されていません"},pagination:{ariaLabel:{root:"ページネーションナビゲーション",next:"次のページ",previous:"前のページ",page:"{0}ページ目に移動",currentPage:"現在のページ、ページ {0}",first:"最初のページ",last:"最後のページ"}},stepper:{next:"次へ",prev:"前へ"},rating:{ariaLabel:{item:"評価 {1} のうち {0}"}},loading:"ロード中...",infiniteScroll:{loadMore:"さらに読み込む",empty:"データがありません"},rules:{required:"このフィールドは必須です",email:"有効なメールアドレスを入力してください",number:"このフィールドには数字のみ入力できます",integer:"このフィールドには整数のみ入力できます",capital:"このフィールドには大文字のみ入力できます",maxLength:"最大{0}文字まで入力してください",minLength:"最低{0}文字以上入力してください",strictLength:"入力されたフィールドの長さが無効です",exclude:"{0}という文字は使用できません",notEmpty:"少なくとも1つの値を選んでください",pattern:"無効な形式です"},command:{search:"コマンドを入力するか検索..."},hotkey:{then:"次に",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Enter",escape:"Escape",upArrow:"上矢印",downArrow:"下矢印",leftArrow:"左矢印",rightArrow:"右矢印",backspace:"バックスペース",space:"スペース",plus:"プラス",shortcut:"キーボードショートカット: {0}",or:"または"},video:{play:"再生",pause:"一時停止",seek:"シーク",volume:"音量",showVolume:"音量コントロールを表示",mute:"ミュート",unmute:"ミュート解除",enterFullscreen:"全画面表示",exitFullscreen:"全画面表示を終了"},colorPicker:{ariaLabel:{eyedropper:"画面から色を選択",hueSlider:"色相",alphaSlider:"アルファ",redInput:"赤",greenInput:"緑",blueInput:"青",alphaInput:"アルファ",hueInput:"色相",saturationInput:"彩度",lightnessInput:"明度",hexInput:"HEX値",hexaInput:"アルファ付きHEX値",changeFormat:"カラーフォーマットを変更"}}},pQ={badge:"徽章",open:"打开",close:"关闭",dismiss:"取消",confirmEdit:{ok:"确定",cancel:"取消"},dataIterator:{noResultsText:"没有符合条件的结果",loadingText:"加载中……"},dataTable:{itemsPerPageText:"每页数目:",ariaLabel:{sortDescending:":降序排列。",sortAscending:":升序排列。",sortNone:":未排序。",activateNone:"点击以移除排序。",activateDescending:"点击以降序排列。",activateAscending:"点击以升序排列。"},sortBy:"排序方式"},dataFooter:{itemsPerPageText:"每页数目:",itemsPerPageAll:"全部",nextPage:"下一页",prevPage:"上一页",firstPage:"首页",lastPage:"尾页",pageText:"{0}-{1} 共 {2}"},dateRangeInput:{divider:"至"},datePicker:{itemsSelected:"已选择 {0} 项",range:{title:"选择日期",header:"输入日期"},title:"选择日期",header:"输入日期",input:{placeholder:"输入日期"},ariaLabel:{previousMonth:"上个月",nextMonth:"下个月",selectYear:"选择年份",previousYear:"上一年",nextYear:"下一年",selectMonth:"选择月份",selectDate:"{0}",currentDate:"今天,{0}"}},noDataText:"没有数据",carousel:{prev:"上一张",next:"下一张",ariaLabel:{delimiter:"幻灯片 {0} / {1}"}},calendar:{moreEvents:"还有 {0} 项",today:"今天"},input:{clear:"清除 {0}",prependAction:"{0} 前置操作",appendAction:"{0} 后置操作",otp:"请输入第 {0} 位 OTP"},fileInput:{counter:"{0} 个文件",counterSize:"{0} 个文件(共 {1})"},fileUpload:{title:"拖放文件到此处",divider:"或",browse:"浏览文件"},timePicker:{am:"上午",pm:"下午",title:"选择时间",hour:"小时",minute:"分钟",second:"秒",notAllowed:"值不允许"},pagination:{ariaLabel:{root:"分页导航",next:"下一页",previous:"上一页",page:"转到页面 {0}",currentPage:"当前页 {0}",first:"第一页",last:"最后一页"}},stepper:{next:"下一步",prev:"上一步"},rating:{ariaLabel:{item:"评分 {0} / {1}"}},loading:"加载中...",infiniteScroll:{loadMore:"加载更多",empty:"没有更多内容"},rules:{required:"此字段为必填项",email:"请输入有效的电子邮件地址",number:"此字段只能包含数字",integer:"此字段只能包含整数",capital:"此字段只能包含大写字母",maxLength:"您最多可以输入{0}个字符",minLength:"您必须至少输入{0}个字符",strictLength:"输入字段的长度无效",exclude:"字符{0}是不允许的",notEmpty:"请至少选择一个值",pattern:"格式无效"},command:{search:"输入命令或搜索..."},hotkey:{then:"然后",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Enter",escape:"Escape",upArrow:"上箭头",downArrow:"下箭头",leftArrow:"左箭头",rightArrow:"右箭头",backspace:"退格",space:"空格",plus:"加",shortcut:"键盘快捷键:{0}",or:"或"},video:{play:"播放",pause:"暂停",seek:"跳转",volume:"音量",showVolume:"显示音量控制",mute:"静音",unmute:"取消静音",enterFullscreen:"全屏",exitFullscreen:"退出全屏"},colorPicker:{ariaLabel:{eyedropper:"从屏幕拾取颜色",hueSlider:"色相",alphaSlider:"不透明度",redInput:"红色",greenInput:"绿色",blueInput:"蓝色",alphaInput:"不透明度",hueInput:"色相",saturationInput:"饱和度",lightnessInput:"亮度",hexInput:"HEX 值",hexaInput:"带不透明度 HEX 值",changeFormat:"更改颜色格式"}}},w2e={zhHans:{$vuetify:{...pQ,datePicker:{...pQ.datePicker,title:"",header:"选择日期",okTips:"选择日期才能保存",saveBtn:"保存"}}},en:{$vuetify:{...AP,datePicker:{...AP.datePicker,title:"",header:"Select date",okTips:"You must select a date to save",saveBtn:"Save"}}},ja:{$vuetify:{...vQ,datePicker:{...vQ.datePicker,title:"",header:"日付を選択",okTips:"日付を選択してから保存してください",saveBtn:"ほぞん"}}}},mQ=u2e({legacy:!1,locale:"en",fallbackLocale:"en",messages:w2e}),S2e={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",search:"mdi-magnify"},x2e={component:e=>f.h(UP,{...e,class:"mdi"})};function C2e(){return{svg:{component:GP},class:{component:UP}}}function _2e(e){const t=C2e(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=x2e),bo({defaultSet:n,sets:t,aliases:{...S2e,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 gQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=bo(t,n),{aliases:a={},components:o={},directives:i={}}=r,l=f.effectScope();return l.run(()=>{const s=TTe(r.defaults),u=uAe(r.display,r.ssr),c=JTe(r.theme),d=_2e(r.icons),h=FTe(r.locale),v=WIe(r.date,h),p=dAe(r.goTo,h);function m(y){for(const w in i)y.directive(w,i[w]);for(const w in o)y.component(w,o[w]);for(const w in a)y.component(w,zo({...a[w],name:w,aliasName:a[w].name}));const b=f.effectScope();if(b.run(()=>{c.install(y)}),y.onUnmount(()=>b.stop()),y.provide(Bg,s),y.provide(QP,u),y.provide(Q1,c),y.provide(zP,d),y.provide(Fg,h),y.provide(BK,v.options),y.provide(FK,v.instance),y.provide(Sj,p),Bn&&r.ssr)if(y.$nuxt)y.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:w}=y;y.mount=function(){const S=w(...arguments);return f.nextTick(()=>u.update()),y.mount=w,S}}y.mixin({computed:{$vuetify(){return f.reactive({defaults:oy.call(this,Bg),display:oy.call(this,QP),theme:oy.call(this,Q1),icons:oy.call(this,zP),locale:oy.call(this,Fg),date:oy.call(this,FK)})}}})}function g(){l.stop()}return{install:m,unmount:g,defaults:s,display:u,theme:c,icons:d,locale:h,date:v,goTo:p}})}const T2e="3.12.5";gQ.version=T2e;function oy(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}const k2e={defaultTheme:"light",themes:{light:{dark:!1,colors:{primary:"#3E63DD","on-primary":"#fff","primary-darken-1":"#3451B2","primary-darken-2":"#101D46","primary-lighten-1":"#8DA4EF","primary-lighten-2":"#E6EDFE",secondary:"#5B6471","on-secondary":"#fff","secondary-darken-1":"#444C58","secondary-darken-2":"#19212B","secondary-lighten-1":"#C2CDDC","secondary-lighten-2":"#E4ECFE",accent:"#82B1FF",info:"#0091FF","on-info":"#fff","info-darken-1":"#006ADC","info-darken-2":"#00254D","info-lighten-1":"#5EB0EF","info-lighten-2":"#E1F0FF",success:"#30A46C","on-success":"#fff","success-darken-1":"#18794E","success-darken-2":"#153226","success-lighten-1":"#5BB98C","success-lighten-2":"#DDF3E4",warning:"#F76808","on-warning":"#fff","warning-darken-1":"#BD4B00","warning-darken-2":"#451E11","warning-lighten-1":"#FA934E","warning-lighten-2":"#FFE8D7",error:"#E5484D","on-error":"#fff","error-darken-1":"#CD2B31","error-darken-2":"#381316","error-lighten-1":"#EB9091","error-lighten-2":"#FFE5E5",background:"#fff","on-background":"#212121",surface:"#fff","on-surface":"#212121",grey:"#9E9E9E","grey-lighten-1":"#BDBDBD","grey-lighten-2":"#E0E0E0","grey-lighten-3":"#EEEEEE","grey-lighten-4":"#F5F5F5","grey-lighten-5":"#FAFAFA","grey-darken-1":"#757575","grey-darken-2":"#616161","grey-darken-3":"#424242","grey-darken-4":"#212121",black:"rgba(0, 0, 0, 0.87)","black-lighten-1":"rgba(0, 0, 0, 0.6)","black-lighten-2":"rgba(0, 0, 0, 0.58)","black-lighten-3":"rgba(0, 0, 0, 0.54)","black-lighten-4":"rgba(0, 0, 0, 0.42)","black-lighten-5":"rgba(0, 0, 0, 0.38)","black-lighten-6":"rgba(0, 0, 0, 0.26)","black-lighten-7":"rgba(0, 0, 0, 0.2)","black-lighten-8":"rgba(0, 0, 0, 0.18)","black-lighten-9":"rgba(0, 0, 0, 0.12)","black-lighten-10":"rgba(0, 0, 0, 0.06)"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":1,"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":"#212121","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000","shadow-key-umbra-color":"#000000","shadow-xs-opacity":"0.16","shadow-sm-opacity":"0.18","shadow-md-opacity":"0.20","shadow-lg-opacity":"0.22","shadow-xl-opacity":"0.24"}}}},yQ=gQ({locale:{adapter:vNe({i18n:mQ,useI18n:hT})},theme:k2e,components:aNe,directives:hNe}),bQ="en",XL=200,A2e=XL-80,wQ=20,SQ=1e5,xQ=16,vT=6,pT=10,mT=2,E2e=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#000000","#333333","#666666","#999999","#CCCCCC","#D5D5D4","#E8E8E8","#EEEEEE"],ZL="Roboto",I2e=[{title:"editor.default",value:ZL,divider:!0,default:!0},{title:"Arial",value:"Arial"},{title:"Arial Black",value:"Arial Black"},{title:"Georgia",value:"Georgia"},{title:"Impact",value:"Impact"},{title:"Helvetica",value:"Helvetica"},{title:"Tahoma",value:"Tahoma"},{title:"Times New Roman",value:"Times New Roman"},{title:"Verdana",value:"Verdana"},{title:"Courier New",value:"Courier New",divider:!0},{title:"Monaco",value:"Monaco"},{title:"Monospace",value:"monospace"}],JL="default",M2e=[8,10,12,14,16,18,20,24,30,36,48,60,72],iy="default";var gT=(e=>(e[e["size-small"]=200]="size-small",e[e["size-medium"]=500]="size-medium",e["size-large"]="100%",e))(gT||{}),yT=(e=>(e[e["size-small"]=480]="size-small",e[e["size-medium"]=640]="size-medium",e["size-large"]="100%",e))(yT||{});const D2e={image:["float-left","float-none","float-right","divider","image-size-small","image-size-medium","image-size-large","divider","textAlign","divider","image","image-aspect-ratio","remove"],text:["bold","italic","underline","strike","divider","color","highlight","textAlign","divider","link"],link:["bold","italic","underline","strike","divider","color","highlight","textAlign","divider","link","unlink","link-open"],video:["video-size-small","video-size-medium","video-size-large","divider","video","remove"]},bT=f.reactive({extensions:[]});function V2e(e){bT.defaultLang=e.defaultLang,bT.defaultMarkdownTheme=e.defaultMarkdownTheme,bT.extensions=e.extensions??[]}function wT(){return{state:bT}}var CQ=typeof global=="object"&&global&&global.Object===Object&&global,P2e=typeof self=="object"&&self&&self.Object===Object&&self,Mu=CQ||P2e||Function("return this")(),Du=Mu.Symbol,_Q=Object.prototype,N2e=_Q.hasOwnProperty,L2e=_Q.toString,Pw=Du?Du.toStringTag:void 0;function O2e(e){var t=N2e.call(e,Pw),n=e[Pw];try{e[Pw]=void 0;var r=!0}catch{}var a=L2e.call(e);return r&&(t?e[Pw]=n:delete e[Pw]),a}var R2e=Object.prototype,B2e=R2e.toString;function F2e(e){return B2e.call(e)}var H2e="[object Null]",z2e="[object Undefined]",TQ=Du?Du.toStringTag:void 0;function ly(e){return e==null?e===void 0?z2e:H2e:TQ&&TQ in Object(e)?O2e(e):F2e(e)}function Gv(e){return e!=null&&typeof e=="object"}var W2e="[object Symbol]";function ST(e){return typeof e=="symbol"||Gv(e)&&ly(e)==W2e}function kQ(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=vOe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function yOe(e){return function(){return e}}var NQ=function(){try{var e=jv(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bOe=NQ?function(e,t){return NQ(e,"toString",{configurable:!0,enumerable:!1,value:yOe(t),writable:!0})}:QL,wOe=gOe(bOe);function SOe(e,t,n,r){for(var a=e.length,o=n+-1;++o-1}var kOe=9007199254740991,AOe=/^(?:0|[1-9]\d*)$/;function LQ(e,t){var n=typeof e;return t=t??kOe,!!t&&(n=="number"||n!="symbol"&&AOe.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MOe}function BQ(e){return e!=null&&e2(e.length)&&!VQ(e)}var DOe=Object.prototype;function VOe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||DOe;return e===n}function POe(e,t){for(var n=-1,r=Array(e);++n-1}function FRe(e,t){var n=this.__data__,r=xT(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Jc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,v=n&TBe?new Rw:void 0;for(o.set(e,t),o.set(t,e);++d=t||T<0||d&&A>=o}function y(){var x=c2();if(g(x))return b(x);l=setTimeout(y,m(x))}function b(x){return l=void 0,h&&r?v(x):(r=a=void 0,i)}function w(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function S(){return l===void 0?i:b(c2())}function _(){var x=c2(),T=g(x);if(r=arguments,a=this,s=x,T){if(l===void 0)return p(s);if(d)return clearTimeout(l),l=setTimeout(y,t),v(s)}return l===void 0&&(l=setTimeout(y,t)),i}return _.cancel=w,_.flush=S,_}function d2(e){return Gv(e)&&BQ(e)}var vFe=200;function pFe(e,t,n,r){var a=-1,o=TOe,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=kQ(t,UQ(n))),t.length>=vFe&&(o=s7,i=!1,t=new Rw(t));e:for(;++an?n:e}const f2=e=>typeof e=="number",Fw=e=>typeof e=="string",sy=e=>typeof e=="boolean",SFe=e=>typeof e=="function",Hw=(e,t="px")=>{if(!e)return e;const n=f2(e)?String(e):e,r=Number.parseFloat(n),a=n.match(/[a-zA-Z%]+$/),o=a?a[0]:t;return Number.isNaN(r)?e:r+o};function xFe(e,t){const{extensions:n=[]}=e.extensionManager??{};return!!n.find(r=>r.name===t)}function m7(e,t){const{state:n}=wT(),r=f.computed(()=>sy(f.unref(e))?JL:Fw(n.defaultMarkdownTheme)&&n.defaultMarkdownTheme?n.defaultMarkdownTheme:JL),a=f.computed(()=>({[`markdown-theme-${f.unref(r)}`]:!!Fw(f.unref(r))}));function o(i){!sy(f.unref(e))&&f.unref(e)!==i&&t?.(i)}return f.watch(r,i=>o(i)),f.watch(e,i=>{i&&Fw(i)&&n.defaultMarkdownTheme!==i&&(n.defaultMarkdownTheme=i)}),n.defaultMarkdownTheme&&o(n.defaultMarkdownTheme),{markdownThemeStyle:a}}function g7(e){return f.getCurrentScope()?(f.onScopeDispose(e),!0):!1}const uy=new WeakMap,CFe=(...e)=>{var t;const n=e[0],r=(t=f.getCurrentInstance())==null?void 0:t.proxy;if(r==null)throw new Error("injectLocal must be called in setup");return uy.has(r)&&n in uy.get(r)?uy.get(r)[n]:f.inject(...e)},_Fe=(e,t)=>{var n;const r=(n=f.getCurrentInstance())==null?void 0:n.proxy;if(r==null)throw new Error("provideLocal must be called in setup");uy.has(r)||uy.set(r,Object.create(null));const a=uy.get(r);a[e]=t,f.provide(e,t)};function TFe(e,t){const n=Symbol(e.name||"InjectionState"),r=void 0;return[(...a)=>{const o=e(...a);return _Fe(n,o),o},()=>CFe(n,r)]}function y7(e){return typeof e=="function"?e():f.unref(e)}const b7=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kFe=Object.prototype.toString,AFe=e=>kFe.call(e)==="[object Object]",EFe=()=>{},IFe=b7?window:void 0,MFe=b7?window.document:void 0;function h2(e){var t;const n=y7(e);return(t=n?.$el)!=null?t:n}function w7(...e){let t,n,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,a]=e,t=IFe):[t,n,r,a]=e,!t)return EFe;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(c=>c()),o.length=0},l=(c,d,h,v)=>(c.addEventListener(d,h,v),()=>c.removeEventListener(d,h,v)),s=f.watch(()=>[h2(t),y7(a)],([c,d])=>{if(i(),!c)return;const h=AFe(d)?{...d}:d;o.push(...n.flatMap(v=>r.map(p=>l(c,v,p,h))))},{immediate:!0,flush:"post"}),u=()=>{s(),i()};return g7(u),u}function DFe(){const e=f.ref(!1),t=f.getCurrentInstance();return t&&f.onMounted(()=>{e.value=!0},t),e}function VFe(e){const t=DFe();return f.computed(()=>(t.value,!!e()))}const S7=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function PFe(e,t={}){const{document:n=MFe,autoExit:r=!1}=t,a=f.computed(()=>{var y;return(y=h2(e))!=null?y:n?.querySelector("html")}),o=f.ref(!1),i=f.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||a.value&&y in a.value)),l=f.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||a.value&&y in a.value)),s=f.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||a.value&&y in a.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),c=VFe(()=>a.value&&n&&i.value!==void 0&&l.value!==void 0&&s.value!==void 0),d=()=>u?n?.[u]===a.value:!1,h=()=>{if(s.value){if(n&&n[s.value]!=null)return n[s.value];{const y=a.value;if(y?.[s.value]!=null)return!!y[s.value]}}return!1};async function v(){if(!(!c.value||!o.value)){if(l.value)if(n?.[l.value]!=null)await n[l.value]();else{const y=a.value;y?.[l.value]!=null&&await y[l.value]()}o.value=!1}}async function p(){if(!c.value||o.value)return;h()&&await v();const y=a.value;i.value&&y?.[i.value]!=null&&(await y[i.value](),o.value=!0)}async function m(){await(o.value?v():p())}const g=()=>{const y=h();(!y||y&&d())&&(o.value=y)};return w7(n,S7,g,!1),w7(()=>h2(a),S7,g,!1),r&&g7(v),{isSupported:c,isFullscreen:o,enter:p,exit:v,toggle:m}}const[NFe,v2]=TFe(()=>{const{state:e}=wT(),t=f.reactive({extensions:e.extensions??[],defaultLang:bQ,defaultMarkdownTheme:JL,isFullscreen:!1,color:void 0,highlight:void 0}),n=f.computed(()=>t.isFullscreen);function r(){t.isFullscreen=!t.isFullscreen}return f.watchEffect(()=>{t.extensions=e.extensions,t.defaultLang=e.defaultLang,t.defaultMarkdownTheme=e.defaultMarkdownTheme}),{state:t,isFullscreen:n,toggleFullscreen:r}}),x7="[vuetify-pro-tiptap]";class C7{static warn(t){console.warn(`${x7}: ${t}`)}static error(t){console.error(`${x7}: ${t}`)}}function LFe(e){return e=e||new Map,{all:e,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(a=>{a(n)}),r=e.get("*"),r&&r.slice().map(a=>{a(t,n)})}}}const OFe={"editor.remove":"Entfernen","editor.words":"WÖRTER","editor.characters":"ZEICHEN","editor.default":"Standard","editor.size.small.tooltip":"Klein","editor.size.medium.tooltip":"Mittel","editor.size.large.tooltip":"Groß","editor.bold.tooltip":"Fett","editor.italic.tooltip":"Kursiv","editor.underline.tooltip":"Unterstrichen","editor.strike.tooltip":"Durchgestrichen","editor.color.tooltip":"Farbe","editor.highlight.tooltip":"Hervorheben","editor.heading.tooltip":"Überschriften","editor.heading.h1.tooltip":"Überschrift 1","editor.heading.h2.tooltip":"Überschrift 2","editor.heading.h3.tooltip":"Überschrift 3","editor.heading.h4.tooltip":"Überschrift 4","editor.heading.h5.tooltip":"Überschrift 5","editor.heading.h6.tooltip":"Überschrift 6","editor.paragraph.tooltip":"Absatz","editor.textalign.tooltip":"Ausrichten","editor.textalign.left.tooltip":"Links","editor.textalign.center.tooltip":"Zentriert","editor.textalign.right.tooltip":"Rechts","editor.textalign.justify.tooltip":"Blocksatz","editor.fontFamily.tooltip":"Schriftart","editor.fontSize.tooltip":"Schriftgröße","editor.superscript.tooltip":"Hochgestellt","editor.subscript.tooltip":"Tiefgestellt","editor.bulletlist.tooltip":"Aufzählungsliste","editor.orderedlist.tooltip":"Nummerierte Liste","editor.tasklist.tooltip":"Aufgabenliste","editor.indent.tooltip":"Einzug","editor.outdent.tooltip":"Ausrücken","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Link entfernen","editor.link.open":"Link öffnen","editor.link.dialog.title":"Link einfügen","editor.link.dialog.link":"Link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"In neuem Tab öffnen","editor.link.dialog.button.apply":"Anwenden","editor.markdownTheme.tooltip":"Thema","editor.image.tooltip":"Bild","editor.image.float.left.tooltip":"Links ausrichten","editor.image.float.none.tooltip":"Keine Ausrichtung","editor.image.float.right.tooltip":"Rechts ausrichten","editor.image.dialog.title":"Bild einfügen","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Hochladen","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt"},RFe={"editor.remove":"Remove","editor.words":"WORDS","editor.characters":"CHARACTERS","editor.default":"default","editor.size.small.tooltip":"Small","editor.size.medium.tooltip":"Medium","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Bold","editor.italic.tooltip":"Italic","editor.underline.tooltip":"Underline","editor.strike.tooltip":"Strike","editor.color.tooltip":"Color","editor.highlight.tooltip":"Highlight","editor.heading.tooltip":"Headings","editor.heading.h1.tooltip":"Heading 1","editor.heading.h2.tooltip":"Heading 2","editor.heading.h3.tooltip":"Heading 3","editor.heading.h4.tooltip":"Heading 4","editor.heading.h5.tooltip":"Heading 5","editor.heading.h6.tooltip":"Heading 6","editor.paragraph.tooltip":"Paragraph","editor.textalign.tooltip":"Align","editor.textalign.left.tooltip":"Left","editor.textalign.center.tooltip":"Center","editor.textalign.right.tooltip":"Right","editor.textalign.justify.tooltip":"Justify","editor.fontFamily.tooltip":"Font family","editor.fontSize.tooltip":"Font size","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Bullet List","editor.orderedlist.tooltip":"Ordered List","editor.tasklist.tooltip":"Task List","editor.indent.tooltip":"Indent","editor.outdent.tooltip":"Outdent","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Unlink","editor.link.open":"Open link","editor.link.dialog.title":"Insert link","editor.link.dialog.link":"link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Open in new tab","editor.link.dialog.button.apply":"apply","editor.markdownTheme.tooltip":"Theme","editor.image.tooltip":"Image","editor.image.float.left.tooltip":"Float left","editor.image.float.none.tooltip":"Float none","editor.image.float.right.tooltip":"Float right","editor.image.dialog.title":"Insert image","editor.image.dialog.tab.url":"url","editor.image.dialog.tab.upload":"upload","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Lock original aspect ratio","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"apply","editor.video.tooltip":"Video","editor.video.dialog.title":"Insert video","editor.video.dialog.link":"link","editor.video.dialog.button.apply":"apply","editor.table.tooltip":"Table","editor.table.menu.insert_table":"Insert Table","editor.table.menu.insert_table.with_header_row":"With header row","editor.table.menu.add_column_before":"Add Column Before","editor.table.menu.add_column_after":"Add Column After","editor.table.menu.delete_column":"Delete Column","editor.table.menu.add_row_before":"Add Row Before","editor.table.menu.add_row_after":"Add Row After","editor.table.menu.delete_row":"Delete Row","editor.table.menu.merge_or_split_cells":"Merge Or Split Cells","editor.table.menu.delete_table":"Delete Table","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Horizontal Rule","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code Block","editor.htmlview.tooltip":"HTML View","editor.clear.tooltip":"Clear Format","editor.undo.tooltip":"Undo","editor.redo.tooltip":"Redo","editor.fullscreen.tooltip.fullscreen":"Fullscreen","editor.fullscreen.tooltip.exit":"Fullscreen Exit"},BFe={"editor.remove":"Rimuovi","editor.words":"Parole","editor.characters":"Caratteri","editor.default":"Predefinito","editor.size.small.tooltip":"Piccolo","editor.size.medium.tooltip":"Medio","editor.size.large.tooltip":"Grande","editor.bold.tooltip":"Grassetto","editor.italic.tooltip":"Corsivo","editor.underline.tooltip":"Sottolineato","editor.strike.tooltip":"Barrato","editor.color.tooltip":"Colore","editor.highlight.tooltip":"Evidenzia","editor.heading.tooltip":"Intestazioni","editor.heading.h1.tooltip":"Intestzione 1","editor.heading.h2.tooltip":"Intestzione 2","editor.heading.h3.tooltip":"Intestzione 3","editor.heading.h4.tooltip":"Intestazione 4","editor.heading.h5.tooltip":"Intestazione 5","editor.heading.h6.tooltip":"Intestazione 6","editor.paragraph.tooltip":"Paragrafo","editor.textalign.tooltip":"Allineamento","editor.textalign.left.tooltip":"Sinistra","editor.textalign.center.tooltip":"Centro","editor.textalign.right.tooltip":"Destra","editor.textalign.justify.tooltip":"Giustificato","editor.fontFamily.tooltip":"Tipo carattere","editor.fontSize.tooltip":"Dimensione carattere","editor.superscript.tooltip":"Apice","editor.subscript.tooltip":"Pedice","editor.bulletlist.tooltip":"Elenco puntato","editor.orderedlist.tooltip":"Elenco numerato","editor.tasklist.tooltip":"Elenco attività","editor.indent.tooltip":"Aumenta rientro","editor.outdent.tooltip":"Riduci rientro","editor.link.tooltip":"Aggiungi collegamento","editor.link.unlink.tooltip":"Rimuovi collegamento","editor.link.open":"Apri collegamento","editor.link.dialog.title":"Inserisci collegamento","editor.link.dialog.link":"Collegamento","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Apri in una nuova finestra","editor.link.dialog.button.apply":"Applica","editor.markdownTheme.tooltip":"Tema","editor.image.tooltip":"Immagine","editor.image.float.left.tooltip":"Allinea a sinistra","editor.image.float.none.tooltip":"Nessun allineamento","editor.image.float.right.tooltip":"Allinea a destra","editor.image.dialog.title":"Inserisci immagine","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Carica","editor.image.dialog.form.link":"Collegamento","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Blocca le proporzioni originali","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"Applica","editor.video.tooltip":"Video","editor.video.dialog.title":"Inserisci video","editor.video.dialog.link":"Collegamento","editor.video.dialog.button.apply":"Applica","editor.table.tooltip":"Tabella","editor.table.menu.insert_table":"Inserisci tabella","editor.table.menu.insert_table.with_header_row":"Con riga intestazione","editor.table.menu.add_column_before":"Aggiungi colonna prima","editor.table.menu.add_column_after":"Aggiungi colonna dopo","editor.table.menu.delete_column":"Elimina colonna","editor.table.menu.add_row_before":"Aggiungi riga prima","editor.table.menu.add_row_after":"Aggiungi riga dopo","editor.table.menu.delete_row":"Elimina riga","editor.table.menu.merge_or_split_cells":"Unisci o dividi celle","editor.table.menu.delete_table":"Elimina tabella","editor.blockquote.tooltip":"Citazione","editor.horizontalrule.tooltip":"Linea orizzontale","editor.code.tooltip":"Codice","editor.codeblock.tooltip":"Blocco di codice","editor.clear.tooltip":"Rimuovi formattazione","editor.undo.tooltip":"Annulla","editor.redo.tooltip":"Ripristina","editor.fullscreen.tooltip.fullscreen":"Schermo intero","editor.fullscreen.tooltip.exit":"Esci da schermo intero"},FFe={"editor.remove":"Verwijderen","editor.words":"WOORDEN","editor.characters":"KARAKTERS","editor.default":"standaard","editor.size.small.tooltip":"Klein","editor.size.medium.tooltip":"Middelmatig","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Dikgedrukt","editor.italic.tooltip":"Cursief","editor.underline.tooltip":"Onderstreept","editor.strike.tooltip":"Doorgetrokken","editor.color.tooltip":"Kleur","editor.highlight.tooltip":"Markeren","editor.heading.tooltip":"Koppen","editor.heading.h1.tooltip":"Kop 1","editor.heading.h2.tooltip":"Kop 2","editor.heading.h3.tooltip":"Kop 3","editor.heading.h4.tooltip":"Kop 4","editor.heading.h5.tooltip":"Kop 5","editor.heading.h6.tooltip":"Kop 6","editor.paragraph.tooltip":"Paragraaf","editor.textalign.tooltip":"Uitlijnen","editor.textalign.left.tooltip":"Links","editor.textalign.center.tooltip":"Midden","editor.textalign.right.tooltip":"Rechts","editor.textalign.justify.tooltip":"Justify","editor.fontFamily.tooltip":"Font familie","editor.fontSize.tooltip":"Font grootte","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Ongenummerde lijst","editor.orderedlist.tooltip":"Genummerde lijst","editor.tasklist.tooltip":"Takenlijst","editor.indent.tooltip":"Inspringing vergroten","editor.outdent.tooltip":"Inspringing verkleinen","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Link verwijderen","editor.link.open":"Link openen","editor.link.dialog.title":"Link invoegen","editor.link.dialog.link":"link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Openen in nieuw tabblad","editor.link.dialog.button.apply":"Toepassen","editor.markdownTheme.tooltip":"Thema","editor.image.tooltip":"Afbeelding","editor.image.float.left.tooltip":"Zweef links","editor.image.float.none.tooltip":"Niet zweven","editor.image.float.right.tooltip":"Zweef rechts","editor.image.dialog.title":"Afbeelding invoegen","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Upload","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Originele aspect ratio vastzetten","editor.image.dialog.form.file":"Bestand","editor.image.dialog.button.apply":"Toepassen","editor.video.tooltip":"Video","editor.video.dialog.title":"Video invoegen","editor.video.dialog.link":"link","editor.video.dialog.button.apply":"Toepassen","editor.table.tooltip":"Tabel","editor.table.menu.insert_table":"Tabel invoegen","editor.table.menu.insert_table.with_header_row":"Met kop rij","editor.table.menu.add_column_before":"Kolom ervoor invoegen","editor.table.menu.add_column_after":"Kolom erna invoegen","editor.table.menu.delete_column":"Kolom verwijderen","editor.table.menu.add_row_before":"Rij ervoor invoegen","editor.table.menu.add_row_after":"Rij erna invoegen","editor.table.menu.delete_row":"Rij verwijderen","editor.table.menu.merge_or_split_cells":"Cellen samenvoegen/splitsen","editor.table.menu.delete_table":"Tabel verwijderen","editor.blockquote.tooltip":"Citaatblok","editor.horizontalrule.tooltip":"Horizontale lijn","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code blok","editor.clear.tooltip":"Formattering verwijderen","editor.undo.tooltip":"Stap terug","editor.redo.tooltip":"Stap verder","editor.fullscreen.tooltip.fullscreen":"Volledig scherm","editor.fullscreen.tooltip.exit":"Volledig scherm verlaten"},HFe={"editor.remove":"删除","editor.words":"单词","editor.characters":"字符","editor.default":"默认","editor.size.small.tooltip":"小尺寸","editor.size.medium.tooltip":"中等尺寸","editor.size.large.tooltip":"铺满","editor.bold.tooltip":"粗体","editor.italic.tooltip":"斜体","editor.underline.tooltip":"下划线","editor.strike.tooltip":"中划线","editor.color.tooltip":"文本颜色","editor.highlight.tooltip":"文本高亮","editor.heading.tooltip":"标题","editor.heading.h1.tooltip":"标题 1","editor.heading.h2.tooltip":"标题 2","editor.heading.h3.tooltip":"标题 3","editor.heading.h4.tooltip":"标题 4","editor.heading.h5.tooltip":"标题 5","editor.heading.h6.tooltip":"标题 6","editor.paragraph.tooltip":"正文","editor.textalign.tooltip":"对齐方式","editor.textalign.left.tooltip":"左对齐","editor.textalign.center.tooltip":"居中对齐","editor.textalign.right.tooltip":"右对齐","editor.textalign.justify.tooltip":"两端对齐","editor.fontFamily.tooltip":"字体","editor.fontSize.tooltip":"字体大小","editor.superscript.tooltip":"上标","editor.subscript.tooltip":"下标","editor.bulletlist.tooltip":"无序列表","editor.orderedlist.tooltip":"有序列表","editor.tasklist.tooltip":"任务列表","editor.indent.tooltip":"增加缩进","editor.outdent.tooltip":"减少缩进","editor.link.tooltip":"网络链接","editor.link.unlink.tooltip":"取消链接","editor.link.open":"打开链接","editor.link.dialog.title":"插入链接","editor.link.dialog.link":"链接","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"在新标签页中打开","editor.link.dialog.button.apply":"应用","editor.markdownTheme.tooltip":"主题","editor.image.tooltip":"图片","editor.image.float.left.tooltip":"左浮动","editor.image.float.none.tooltip":"无浮动","editor.image.float.right.tooltip":"右浮动","editor.image.dialog.title":"插入图片","editor.image.dialog.tab.url":"网络图片","editor.image.dialog.tab.upload":"本地图片","editor.image.dialog.form.link":"链接","editor.image.dialog.form.alt":"说明","editor.image.dialog.form.aspectRatio":"锁定原有长宽比","editor.image.dialog.form.file":"文件","editor.image.dialog.button.apply":"应用","editor.video.tooltip":"视频","editor.video.dialog.title":"插入视频","editor.video.dialog.link":"网络链接","editor.video.dialog.button.apply":"应用","editor.table.tooltip":"表格","editor.table.menu.insert_table":"插入表格","editor.table.menu.insert_table.with_header_row":"带标题行","editor.table.menu.add_column_before":"向左插入一列","editor.table.menu.add_column_after":"向右插入一列","editor.table.menu.delete_column":"删除列","editor.table.menu.add_row_before":"向上插入一行","editor.table.menu.add_row_after":"向下插入一行","editor.table.menu.delete_row":"删除行","editor.table.menu.merge_or_split_cells":"合并或拆分单元格","editor.table.menu.delete_table":"删除表格","editor.blockquote.tooltip":"引用","editor.horizontalrule.tooltip":"分隔线","editor.code.tooltip":"代码","editor.codeblock.tooltip":"代码块","editor.htmlview.tooltip":"HTML视图","editor.clear.tooltip":"清除格式","editor.undo.tooltip":"撤销","editor.redo.tooltip":"重做","editor.fullscreen.tooltip.fullscreen":"全屏","editor.fullscreen.tooltip.exit":"退出全屏"},zFe={nl:FFe,zhHans:HFe,en:RFe,de:OFe,it:BFe},cy={lang:bQ,message:zFe};class WFe{emitter;constructor(){this.emitter=LFe()}get lang(){return cy.lang}set lang(t){if(!this.isLangSupported(t)){C7.warn(`Can't find the current language "${t}", Using language "${cy.lang}" by default`);return}cy.lang=t,this.emitter.emit("lang",t)}get message(){return cy.message}set message(t){cy.message=t}loadLangMessage(t){return this.message[t]}isLangSupported(t){return Object.keys(this.message).includes(t)}setLang(t){this.lang=t}registerWatchLang(t){return this.emitter.on("lang",t),{unsubscribe:()=>{this.emitter.off("lang",t)}}}setMessage(t,n){this.message[t]=n}buildI18nHandler(t){t||(t=this.lang);const n=this.loadLangMessage(t);return function(r){return n[r]||r}}}const AT=new WFe,$c=()=>{const e=f.ref(cy.lang),t=f.computed(()=>AT.buildI18nHandler(f.unref(e)));return f.watchEffect(n=>{const r=AT.registerWatchLang(a=>{e.value=a});n(()=>{r.unsubscribe()})}),{lang:e,t}};function xo(e){this.content=e}xo.prototype={constructor:xo,find:function(e){for(var t=0;t>1}},xo.from=function(e){if(e instanceof xo)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new xo(t)};function _7(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let a=e.child(r),o=t.child(r);if(a==o){n+=a.nodeSize;continue}if(!a.sameMarkup(o))return n;if(a.isText&&a.text!=o.text){for(let i=0;a.text[i]==o.text[i];i++)n++;return n}if(a.content.size||o.content.size){let i=_7(a.content,o.content,n+1);if(i!=null)return i}n+=a.nodeSize}}function T7(e,t,n,r){for(let a=e.childCount,o=t.childCount;;){if(a==0||o==0)return a==o?null:{a:n,b:r};let i=e.child(--a),l=t.child(--o),s=i.nodeSize;if(i==l){n-=s,r-=s;continue}if(!i.sameMarkup(l))return{a:n,b:r};if(i.isText&&i.text!=l.text){let u=0,c=Math.min(i.text.length,l.text.length);for(;ut&&r(s,a+l,o||null,i)!==!1&&s.content.size){let c=l+1;s.nodesBetween(Math.max(0,t-c),Math.min(s.content.size,n-c),r,a+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,a){let o="",i=!0;return this.nodesBetween(t,n,(l,s)=>{let u=l.isText?l.text.slice(Math.max(t,s)-s,n-s):l.isLeaf?a?typeof a=="function"?a(l):a:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(i?i=!1:o+=r),o+=u},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,a=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),o=1);ot)for(let o=0,i=0;it&&((in)&&(l.isText?l=l.cut(Math.max(0,t-i),Math.min(l.text.length,n-i)):l=l.cut(Math.max(0,t-i-1),Math.min(l.content.size,n-i-1))),r.push(l),a+=l.nodeSize),i=s}return new He(r,a)}cutByIndex(t,n){return t==n?He.empty:t==0&&n==this.content.length?this:new He(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let a=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return a[t]=n,new He(a,o)}addToStart(t){return new He([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new He(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let a=this.child(n),o=r+a.nodeSize;if(o>=t)return o==t?ET(n+1,o):ET(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return He.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new He(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return He.empty;let n,r=0;for(let a=0;athis.type.rank&&(n||(n=t.slice(0,a)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-a.type.rank),n}};cr.none=[];class MT extends Error{}class st{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=A7(this.content,t+this.openStart,n);return r&&new st(r,this.openStart,this.openEnd)}removeBetween(t,n){return new st(k7(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return st.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new st(He.fromJSON(t,n.content),r,a)}static maxOpen(t,n=!0){let r=0,a=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)a++;return new st(t,r,a)}}st.empty=new st(He.empty,0,0);function k7(e,t,n){let{index:r,offset:a}=e.findIndex(t),o=e.maybeChild(r),{index:i,offset:l}=e.findIndex(n);if(a==t||o.isText){if(l!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(k7(o.content,t-a-1,n-a-1)))}function A7(e,t,n,r){let{index:a,offset:o}=e.findIndex(t),i=e.maybeChild(a);if(o==t||i.isText)return r&&!r.canReplace(a,a,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=A7(i.content,t-o-1,n,i);return l&&e.replaceChild(a,i.copy(l))}function GFe(e,t,n){if(n.openStart>e.depth)throw new MT("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new MT("Inconsistent open depths");return E7(e,t,n,0)}function E7(e,t,n,r){let a=e.index(r),o=e.node(r);if(a==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function zw(e,t,n,r){let a=(t||e).node(n),o=0,i=t?t.index(n):a.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(Xv(e.nodeAfter,r),o++));for(let l=o;la&&m2(e,t,a+1),i=r.depth>a&&m2(n,r,a+1),l=[];return zw(null,e,a,l),o&&i&&t.index(a)==n.index(a)?(I7(o,i),Xv(Zv(o,M7(e,t,n,r,a+1)),l)):(o&&Xv(Zv(o,DT(e,t,a+1)),l),zw(t,n,a,l),i&&Xv(Zv(i,DT(n,r,a+1)),l)),zw(r,null,a,l),new He(l)}function DT(e,t,n){let r=[];if(zw(null,e,n,r),e.depth>n){let a=m2(e,t,n+1);Xv(Zv(a,DT(e,t,n+1)),r)}return zw(t,null,n,r),new He(r)}function UFe(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)r=t.node(a).copy(He.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class Ww{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],a=t.child(n);return r?t.child(n).cut(r):a}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new VT(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],a=0,o=n;for(let i=t;;){let{index:l,offset:s}=i.content.findIndex(o),u=o-s;if(r.push(i,l,a+s),!u||(i=i.child(l),i.isText))break;o=u-1,a+=s+1}return new Ww(n,r,o)}static resolveCached(t,n){let r=D7.get(t);if(r)for(let o=0;ot&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),V7(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=He.empty,a=0,o=r.childCount){let i=this.contentMatchAt(t).matchFragment(r,a,o),l=i&&i.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let s=a;sn.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let a=He.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,a,r);return o.type.checkAttrs(o.attrs),o}};ed.prototype.text=void 0;class PT extends ed{constructor(t,n,r,a){if(super(t,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):V7(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new PT(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new PT(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function V7(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Jv{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new XFe(t,n);if(r.next==null)return Jv.empty;let a=P7(r);r.next&&r.err("Unexpected trailing text");let o=t3e(e3e(a));return n3e(o,r),o}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let a=0;a{let o=a+(r.validEnd?"*":" ")+" ";for(let i=0;i"+t.indexOf(r.next[i].next);return o}).join(` -`)}}Jv.empty=new Jv(!0);class XFe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function P7(e){let t=[];do t.push(ZFe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function ZFe(e){let t=[];do t.push(JFe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function JFe(e){let t=$Fe(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=QFe(e,t);else break;return t}function N7(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function QFe(e,t){let n=N7(e),r=n;return e.eat(",")&&(e.next!="}"?r=N7(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function qFe(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let a=[];for(let o in n){let i=n[o];i.isInGroup(t)&&a.push(i)}return a.length==0&&e.err("No node type or group '"+t+"' found"),a}function $Fe(e){if(e.eat("(")){let t=P7(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=qFe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function e3e(e){let t=[[]];return a(o(e,0),n()),t;function n(){return t.push([])-1}function r(i,l,s){let u={term:s,to:l};return t[i].push(u),u}function a(i,l){i.forEach(s=>s.to=l)}function o(i,l){if(i.type=="choice")return i.exprs.reduce((s,u)=>s.concat(o(u,l)),[]);if(i.type=="seq")for(let s=0;;s++){let u=o(i.exprs[s],l);if(s==i.exprs.length-1)return u;a(u,l=n())}else if(i.type=="star"){let s=n();return r(l,s),a(o(i.expr,s),s),[r(s)]}else if(i.type=="plus"){let s=n();return a(o(i.expr,l),s),a(o(i.expr,s),s),[r(s)]}else{if(i.type=="opt")return[r(l)].concat(o(i.expr,l));if(i.type=="range"){let s=l;for(let u=0;u{e[i].forEach(({term:l,to:s})=>{if(!l)return;let u;for(let c=0;c{u||a.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let o=t[r.join(",")]=new Jv(r.indexOf(e.length-1)>-1);for(let i=0;i-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:B7(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new ed(this,this.computeAttrs(t),He.from(n),cr.setFrom(r))}createChecked(t=null,n,r){return n=He.from(n),this.checkContent(n),new ed(this,this.computeAttrs(t),n,cr.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=He.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let a=this.contentMatch.matchFragment(n),o=a&&a.fillBefore(He.empty,!0);return o?new ed(this,t,n.append(o),cr.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[o]=new B_e(o,n,i));let a=n.spec.topNode||"doc";if(!r[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function r3e(e,t,n){let r=n.split("|");return a=>{let o=a===null?"null":typeof a;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class a3e{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?r3e(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class NT{constructor(t,n,r,a){this.name=t,this.rank=n,this.schema=r,this.spec=a,this.attrs=H7(t,a.attrs),this.excluded=null;let o=R7(this.attrs);this.instance=o?new cr(this,o):null}create(t=null){return!t&&this.instance?this.instance:new cr(this,B7(this.attrs,t))}static compile(t,n){let r=Object.create(null),a=0;return t.forEach((o,i)=>r[o]=new NT(o,a++,n,i)),r}removeFromSet(t){for(var n=0;n-1}}class W7{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in t)n[a]=t[a];n.nodes=xo.from(t.nodes),n.marks=xo.from(t.marks||{}),this.nodes=z7.compile(this.spec.nodes,this),this.marks=NT.compile(this.spec.marks,this);let r=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let o=this.nodes[a],i=o.spec.content||"",l=o.spec.marks;if(o.contentMatch=r[i]||(r[i]=Jv.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=l=="_"?null:l?G7(this,l.split(" ")):l==""||!o.inlineContent?[]:null}for(let a in this.marks){let o=this.marks[a],i=o.spec.excludes;o.excluded=i==null?[o]:i==""?[]:G7(this,i.split(" "))}this.nodeFromJSON=a=>ed.fromJSON(this,a),this.markFromJSON=a=>cr.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,a){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof z7){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,a)}text(t,n){let r=this.nodes.text;return new PT(r,r.defaultAttrs,t,cr.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function G7(e,t){let n=[];for(let r=0;r-1)&&n.push(i=s)}if(!i)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function o3e(e){return e.tag!=null}function i3e(e){return e.style!=null}class kf{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(o3e(a))this.tags.push(a);else if(i3e(a)){let o=/[^=]*/.exec(a.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let o=t.nodes[a.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new K7(this,n,!1);return r.addAll(t,cr.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new K7(this,n,!0);return r.addAll(t,cr.none,n.from,n.to),st.maxOpen(r.finish())}matchTag(t,n,r){for(let a=r?this.tags.indexOf(r)+1:0;at.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(i.getAttrs){let s=i.getAttrs(n);if(s===!1)continue;i.attrs=s||void 0}return i}}}static schemaRules(t){let n=[];function r(a){let o=a.priority==null?50:a.priority,i=0;for(;i{r(i=X7(i)),i.mark||i.ignore||i.clearMark||(i.mark=a)})}for(let a in t.nodes){let o=t.nodes[a].spec.parseDOM;o&&o.forEach(i=>{r(i=X7(i)),i.node||i.ignore||i.mark||(i.node=a)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new kf(t,kf.schemaRules(t)))}}const U7={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},l3e={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Y7={ol:!0,ul:!0},Gw=1,g2=2,Uw=4;function j7(e,t,n){return t!=null?(t?Gw:0)|(t==="full"?g2:0):e&&e.whitespace=="pre"?Gw|g2:n&~Uw}class LT{constructor(t,n,r,a,o,i){this.type=t,this.attrs=n,this.marks=r,this.solid=a,this.options=i,this.content=[],this.activeMarks=cr.none,this.match=o||(i&Uw?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(He.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(t.type))?(this.match=r,a):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Gw)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-a[0].length))}}let n=He.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(He.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!U7.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class K7{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let a=n.topNode,o,i=j7(null,n.preserveWhitespace,0)|(r?Uw:0);a?o=new LT(a.type,a.attrs,cr.none,!0,n.topMatch||a.type.contentMatch,i):r?o=new LT(null,null,cr.none,!0,null,i):o=new LT(t.schema.topNodeType,null,cr.none,!0,null,i),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,a=this.top,o=a.options&g2?"full":this.localPreserveWS||(a.options&Gw)>0;if(o==="full"||a.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(o)o!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,` -`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let i=a.content[a.content.length-1],l=t.previousSibling;(!i||l&&l.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let a=this.localPreserveWS,o=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let i=t.nodeName.toLowerCase(),l;Y7.hasOwnProperty(i)&&this.parser.normalizeLists&&s3e(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(l=this.parser.matchTag(t,this,r));e:if(s?s.ignore:l3e.hasOwnProperty(i))this.findInside(t),this.ignoreFallback(t,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let u,c=this.needsBlock;if(U7.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),u=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=s&&s.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),u&&this.sync(o),this.needsBlock=c}else{let u=this.readStyles(t,n);u&&this.addElementByRule(t,s,u,s.consuming===!1?l:void 0)}this.localPreserveWS=a}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` -`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let a=0;a!s.clearMark(u)):n=n.concat(this.parser.schema.marks[s.mark].create(s.attrs)),s.consuming===!1)l=s;else break}}return n}addElementByRule(t,n,r,a){let o,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let s=this.enter(i,n.attrs||null,r,n.preserveWhitespace);s&&(o=!0,r=s)}else{let s=this.parser.schema.marks[n.mark];r=r.concat(s.create(n.attrs))}let l=this.top;if(i&&i.isLeaf)this.findInside(t);else if(a)this.addElement(t,r,a);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(s=>this.insertNode(s,r,!1));else{let s=t;typeof n.contentElement=="string"?s=t.querySelector(n.contentElement):typeof n.contentElement=="function"?s=n.contentElement(t):n.contentElement&&(s=n.contentElement),this.findAround(t,s,!0),this.addAll(s,r),this.findAround(t,s,!1)}o&&this.sync(l)&&this.open--}addAll(t,n,r,a){let o=r||0;for(let i=r?t.childNodes[r]:t.firstChild,l=a==null?null:t.childNodes[a];i!=l;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i,n);this.findAtPoint(t,o)}findPlace(t,n,r){let a,o;for(let i=this.open,l=0;i>=0;i--){let s=this.nodes[i],u=s.findWrapping(t);if(u&&(!a||a.length>u.length+l)&&(a=u,o=s,!u.length))break;if(s.solid){if(r)break;l+=2}}if(!a)return null;this.sync(o);for(let i=0;i(i.type?i.type.allowsMarkType(u.type):Z7(u.type,t))?(s=u.addToSet(s),!1):!0),this.nodes.push(new LT(t,n,s,a,null,l)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Gw)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let a=r.length-1;a>=0;a--)t+=r[a].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(a?0:1),i=(l,s)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;s>=o;s--)if(i(l-1,s))return!0;return!1}else{let c=s>0||s==0&&a?this.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;s--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function s3e(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&Y7.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function u3e(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function X7(e){let t={};for(let n in e)t[n]=e[n];return t}function Z7(e,t){let n=t.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(e))continue;let o=[],i=l=>{o.push(l);for(let s=0;s{if(o.length||i.marks.length){let l=0,s=0;for(;l=0;a--){let o=this.serializeMark(t.marks[a],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let a=this.marks[t.type.name];return a&&OT(y2(r),a(t,n),null,t.attrs)}static renderSpec(t,n,r=null,a){return OT(t,n,r,a)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new Af(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=J7(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return J7(t.marks)}}function J7(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function y2(e){return e.document||window.document}const Q7=new WeakMap;function c3e(e){let t=Q7.get(e);return t===void 0&&Q7.set(e,t=d3e(e)),t}function d3e(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let a=0;a-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=a.indexOf(" ");i>0&&(n=a.slice(0,i),a=a.slice(i+1));let l,s=n?e.createElementNS(n,a):e.createElement(a),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let h=d.indexOf(" ");h>0?s.setAttributeNS(d.slice(0,h),d.slice(h+1),u[d]):d=="style"&&s.style?s.style.cssText=u[d]:s.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:v,contentDOM:p}=OT(e,h,n,r);if(s.appendChild(v),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:s,contentDOM:l}}const q7=65535,$7=Math.pow(2,16);function f3e(e,t){return e+t*$7}function eq(e){return e&q7}function h3e(e){return(e-(e&q7))/$7}const tq=1,nq=2,RT=4,rq=8;class b2{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&rq)>0}get deletedBefore(){return(this.delInfo&(tq|RT))>0}get deletedAfter(){return(this.delInfo&(nq|RT))>0}get deletedAcross(){return(this.delInfo&RT)>0}}let Qv=class U1{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&U1.empty)return U1.empty}recover(t){let n=0,r=eq(t);if(!this.inverted)for(let a=0;at)break;let u=this.ranges[l+o],c=this.ranges[l+i],d=s+u;if(t<=d){let h=u?t==s?-1:t==d?1:n:n,v=s+a+(h<0?0:c);if(r)return v;let p=t==(n<0?s:d)?null:f3e(l/3,t-s),m=t==s?nq:t==d?tq:RT;return(n<0?t!=s:t!=d)&&(m|=rq),new b2(v,m,p)}a+=c-u}return r?t+a:new b2(t+a,0,null)}touches(t,n){let r=0,a=eq(n),o=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+o],c=s+u;if(t<=c&&l==a*3)return!0;r+=this.ranges[l+i]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,o=0;a=0;n--){let a=t.getMirror(n);this.appendMap(t._maps[n].invert(),a!=null&&a>n?r-a-1:void 0)}}invert(){let t=new Yw;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ro&&s!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),a),n.openStart,n.openEnd);return Ma.fromReplace(t,this.from,this.to,o)}invert(){return new Pu(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Ef(n.pos,r.pos,this.mark)}merge(t){return t instanceof Ef&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ef(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ef(n.from,n.to,t.markFromJSON(n.mark))}}Yo.jsonID("addMark",Ef);class Pu extends Yo{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new st(S2(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),t),n.openStart,n.openEnd);return Ma.fromReplace(t,this.from,this.to,r)}invert(){return new Ef(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Pu(n.pos,r.pos,this.mark)}merge(t){return t instanceof Pu&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Pu(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Pu(n.from,n.to,t.markFromJSON(n.mark))}}Yo.jsonID("removeMark",Pu);class If extends Yo{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ma.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ma.fromReplace(t,this.pos,this.pos+1,new st(He.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let a=0;ar.pos?null:new ao(n.pos,r.pos,a,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ao(n.from,n.to,n.gapFrom,n.gapTo,st.fromJSON(t,n.slice),n.insert,!!n.structure)}}Yo.jsonID("replaceAround",ao);function x2(e,t,n){let r=e.resolve(t),a=n-t,o=r.depth;for(;a>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,a--;if(a>0){let i=r.node(o).maybeChild(r.indexAfter(o));for(;a>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,a--}}return!1}function v3e(e,t,n,r){let a=[],o=[],i,l;e.doc.nodesBetween(t,n,(s,u,c)=>{if(!s.isInline)return;let d=s.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let h=Math.max(u,t),v=Math.min(u+s.nodeSize,n),p=r.addToSet(d);for(let m=0;me.step(s)),o.forEach(s=>e.step(s))}function p3e(e,t,n,r){let a=[],o=0;e.doc.nodesBetween(t,n,(i,l)=>{if(!i.isInline)return;o++;let s=null;if(r instanceof NT){let u=i.marks,c;for(;c=r.isInSet(u);)(s||(s=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(i.marks)&&(s=[r]):s=i.marks;if(s&&s.length){let u=Math.min(l+i.nodeSize,n);for(let c=0;ce.step(new Pu(i.from,i.to,i.style)))}function C2(e,t,n,r=n.contentMatch,a=!0){let o=e.doc.nodeAt(t),i=[],l=t+1;for(let s=0;s=0;s--)e.step(i[s])}function m3e(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function dy(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),a=e.$from.index(n),o=e.$to.indexAfter(n);if(nn;p--)m||r.index(p)>0?(m=!0,c=He.from(r.node(p).copy(c)),d++):s--;let h=He.empty,v=0;for(let p=o,m=!1;p>n;p--)m||a.after(p+1)=0;i--){if(r.size){let l=n[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=He.from(n[i].type.create(n[i].attrs,r))}let a=t.start,o=t.end;e.step(new ao(a,o,a,o,new st(r,0,0),n.length,!0))}function S3e(e,t,n,r,a){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(i,l)=>{let s=typeof a=="function"?a(i):a;if(i.isTextblock&&!i.hasMarkup(r,s)&&x3e(e.doc,e.mapping.slice(o).map(l),r)){let u=null;if(r.schema.linebreakReplacement){let v=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);v&&!p?u=!1:!v&&p&&(u=!0)}u===!1&&iq(e,i,l,o),C2(e,e.mapping.slice(o).map(l,1),r,void 0,u===null);let c=e.mapping.slice(o),d=c.map(l,1),h=c.map(l+i.nodeSize,1);return e.step(new ao(d,h,d+1,h-1,new st(He.from(r.create(s,null,i.marks)),0,0),1,!0)),u===!0&&oq(e,i,l,o),!1}})}function oq(e,t,n,r){t.forEach((a,o)=>{if(a.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(a.text);){let s=e.mapping.slice(r).map(n+1+o+i.index);e.replaceWith(s,s+1,t.type.schema.linebreakReplacement.create())}}})}function iq(e,t,n,r){t.forEach((a,o)=>{if(a.type==a.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text(` -`))}})}function x3e(e,t,n){let r=e.resolve(t),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}function C3e(e,t,n,r,a){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let i=n.create(r,null,a||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,i);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ao(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new st(He.from(i),0,0),1,!0))}function td(e,t,n=1,r){let a=e.resolve(t),o=a.depth-n,i=r&&r[r.length-1]||a.parent;if(o<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!i.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let u=a.depth-1,c=n-2;u>o;u--,c--){let d=a.node(u),h=a.index(u);if(d.type.spec.isolating)return!1;let v=d.content.cutByIndex(h,d.childCount),p=r&&r[c+1];p&&(v=v.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||d;if(!d.canReplace(h+1,d.childCount)||!m.type.validContent(v))return!1}let l=a.indexAfter(o),s=r&&r[0];return a.node(o).canReplaceWith(l,l,s?s.type:a.node(o+1).type)}function _3e(e,t,n=1,r){let a=e.doc.resolve(t),o=He.empty,i=He.empty;for(let l=a.depth,s=a.depth-n,u=n-1;l>s;l--,u--){o=He.from(a.node(l).copy(o));let c=r&&r[u];i=He.from(c?c.type.create(c.attrs,i):a.node(l).copy(i))}e.step(new ro(t,t,new st(o.append(i),n,n),!0))}function Mf(e,t){let n=e.resolve(t),r=n.index();return lq(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function T3e(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let a=0;a0?(o=r.node(a+1),l++,i=r.node(a).maybeChild(l)):(o=r.node(a).maybeChild(l-1),i=r.node(a+1)),o&&!o.isTextblock&&lq(o,i)&&r.node(a).canReplace(l,l+1))return t;if(a==0)break;t=n<0?r.before(a):r.after(a)}}function k3e(e,t,n){let r=null,{linebreakReplacement:a}=e.doc.type.schema,o=e.doc.resolve(t-n),i=o.node().type;if(a&&i.inlineContent){let c=i.whitespace=="pre",d=!!i.contentMatch.matchType(a);c&&!d?r=!1:!c&&d&&(r=!0)}let l=e.steps.length;if(r===!1){let c=e.doc.resolve(t+n);iq(e,c.node(),c.before(),l)}i.inlineContent&&C2(e,t+n-1,i,o.node().contentMatchAt(o.index()),r==null);let s=e.mapping.slice(l),u=s.map(t-n);if(e.step(new ro(u,s.map(t+n,-1),st.empty,!0)),r===!0){let c=e.doc.resolve(u);oq(e,c.node(),c.before(),e.steps.length)}return e}function A3e(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let a=r.depth-1;a>=0;a--){let o=r.index(a);if(r.node(a).canReplaceWith(o,o,n))return r.before(a+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let a=r.depth-1;a>=0;a--){let o=r.indexAfter(a);if(r.node(a).canReplaceWith(o,o,n))return r.after(a+1);if(o=0;i--){let l=i==r.depth?0:r.pos<=(r.start(i+1)+r.end(i+1))/2?-1:1,s=r.index(i)+(l>0?1:0),u=r.node(i),c=!1;if(o==1)c=u.canReplace(s,s,a);else{let d=u.contentMatchAt(s).findWrapping(a.firstChild.type);c=d&&u.canReplaceWith(s,s,d[0])}if(c)return l==0?r.pos:l<0?r.before(i+1):r.after(i+1)}return null}function FT(e,t,n=t,r=st.empty){if(t==n&&!r.size)return null;let a=e.resolve(t),o=e.resolve(n);return uq(a,o,r)?new ro(t,n,r):new E3e(a,o,r).fit()}function uq(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class E3e{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=He.empty;for(let a=0;a<=t.depth;a++){let o=t.node(a);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(a))})}for(let a=t.depth;a>0;a--)this.placed=He.from(t.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,a=this.close(t<0?this.$to:r.doc.resolve(t));if(!a)return null;let o=this.placed,i=r.depth,l=a.depth;for(;i&&l&&o.childCount==1;)o=o.firstChild.content,i--,l--;let s=new st(o,i,l);return t>-1?new ao(r.pos,t,this.$to.pos,this.$to.end(),s,n):s.size||r.pos!=this.$to.pos?new ro(r.pos,a.pos,s):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,a=this.unplaced.openEnd;r1&&(a=0),o.type.spec.isolating&&a<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let a,o=null;r?(o=T2(this.unplaced.content,r-1).firstChild,a=o.content):a=this.unplaced.content;let i=a.firstChild;for(let l=this.depth;l>=0;l--){let{type:s,match:u}=this.frontier[l],c,d=null;if(n==1&&(i?u.matchType(i.type)||(d=u.fillBefore(He.from(i),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:l,parent:o,inject:d};if(n==2&&i&&(c=u.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:l,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,a=T2(t,n);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new st(t,n+1,Math.max(r,a.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,a=T2(t,n);if(a.childCount<=1&&n>0){let o=t.size-n<=n+a.size;this.unplaced=new st(jw(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new st(jw(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:a,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m1||s==0||m.content.size)&&(d=g,c.push(cq(m.mark(h.allowedMarks(m.marks)),u==1?s:0,u==l.childCount?v:-1)))}let p=u==l.childCount;p||(v=-1),this.placed=Kw(this.placed,n,He.from(c)),this.frontier[n].match=d,p&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=l;m1&&a==this.$to.end(--r);)++a;return a}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:a}=this.frontier[n],o=n=0;l--){let{match:s,type:u}=this.frontier[l],c=k2(t,l,u,s,!0);if(!c||c.childCount)continue e}return{depth:n,fit:i,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Kw(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let a=t.node(r),o=a.type.contentMatch.fillBefore(a.content,!0,t.index(r));this.openFrontierNode(a.type,a.attrs,o)}return t}openFrontierNode(t,n=null,r){let a=this.frontier[this.depth];a.match=a.match.matchType(t),this.placed=Kw(this.placed,this.depth,He.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(He.empty,!0);t.childCount&&(this.placed=Kw(this.placed,this.frontier.length,t))}}function jw(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(jw(e.firstChild.content,t-1,n)))}function Kw(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Kw(e.lastChild.content,t-1,n)))}function T2(e,t){for(let n=0;n1&&(r=r.replaceChild(0,cq(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(He.empty,!0)))),e.copy(r)}function k2(e,t,n,r,a){let o=e.node(t),i=a?e.indexAfter(t):e.index(t);if(i==o.childCount&&!n.compatibleContent(o.type))return null;let l=r.fillBefore(o.content,!0,i);return l&&!I3e(n,o.content,i)?l:null}function I3e(e,t,n){for(let r=n;r0;h--,v--){let p=a.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(h)>-1?l=h:a.before(h)==v&&i.splice(1,0,-h)}let s=i.indexOf(l),u=[],c=r.openStart;for(let h=r.content,v=0;;v++){let p=h.firstChild;if(u.push(p),v==r.openStart)break;h=p.content}for(let h=c-1;h>=0;h--){let v=u[h],p=M3e(v.type);if(p&&!v.sameMarkup(a.node(Math.abs(l)-1)))c=h;else if(p||!v.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let v=(h+c+1)%(r.openStart+1),p=u[v];if(p)for(let m=0;m=0&&(e.replace(t,n,r),!(e.steps.length>d));h--){let v=i[h];v<0||(t=a.before(v),n=o.after(v))}}function dq(e,t,n,r,a){if(tr){let o=a.contentMatchAt(0),i=o.fillBefore(e).append(e);e=i.append(o.matchFragment(i).fillBefore(He.empty,!0))}return e}function V3e(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let a=A3e(e.doc,t,r.type);a!=null&&(t=n=a)}e.replaceRange(t,n,new st(He.from(r),0,0))}function P3e(e,t,n){let r=e.doc.resolve(t),a=e.doc.resolve(n),o=fq(r,a);for(let i=0;i0&&(s||r.node(l-1).canReplace(r.index(l-1),a.indexAfter(l-1))))return e.delete(r.before(l),a.after(l))}for(let i=1;i<=r.depth&&i<=a.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&a.end(i)-n!=a.depth-i&&r.start(i-1)==a.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),a.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}function fq(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let a=r;a>=0;a--){let o=e.start(a);if(ot.pos+(t.depth-a)||e.node(a).type.spec.isolating||t.node(a).type.spec.isolating)break;(o==t.start(a)||a==e.depth&&a==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&a&&t.start(a-1)==o-1)&&n.push(a)}return n}class fy extends Yo{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Ma.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let a=n.type.create(r,null,n.marks);return Ma.fromReplace(t,this.pos,this.pos+1,new st(He.from(a),0,n.isLeaf?0:1))}getMap(){return Qv.empty}invert(t){return new fy(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new fy(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new fy(n.pos,n.attr,n.value)}}Yo.jsonID("attr",fy);class Xw extends Yo{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let a in t.attrs)n[a]=t.attrs[a];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Ma.ok(r)}getMap(){return Qv.empty}invert(t){return new Xw(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Xw(n.attr,n.value)}}Yo.jsonID("docAttr",Xw);let hy=class extends Error{};hy=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},hy.prototype=Object.create(Error.prototype),hy.prototype.constructor=hy,hy.prototype.name="TransformError";class A2{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Yw}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new hy(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=st.empty){let a=FT(this.doc,t,n,r);return a&&this.step(a),this}replaceWith(t,n,r){return this.replace(t,n,new st(He.from(r),0,0))}delete(t,n){return this.replace(t,n,st.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return D3e(this,t,n,r),this}replaceRangeWith(t,n,r){return V3e(this,t,n,r),this}deleteRange(t,n){return P3e(this,t,n),this}lift(t,n){return g3e(this,t,n),this}join(t,n=1){return k3e(this,t,n),this}wrap(t,n){return w3e(this,t,n),this}setBlockType(t,n=t,r,a=null){return S3e(this,t,n,r,a),this}setNodeMarkup(t,n,r=null,a){return C3e(this,t,n,r,a),this}setNodeAttribute(t,n,r){return this.step(new fy(t,n,r)),this}setDocAttribute(t,n){return this.step(new Xw(t,n)),this}addNodeMark(t,n){return this.step(new If(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof cr)n.isInSet(r.marks)&&this.step(new qv(t,n));else{let a=r.marks,o,i=[];for(;o=n.isInSet(a);)i.push(new qv(t,o)),a=o.removeFromSet(a);for(let l=i.length-1;l>=0;l--)this.step(i[l])}return this}split(t,n=1,r){return _3e(this,t,n,r),this}addMark(t,n,r){return v3e(this,t,n,r),this}removeMark(t,n,r){return p3e(this,t,n,r),this}clearIncompatible(t,n,r){return C2(this,t,n,r),this}}const E2=Object.create(null);class Xt{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new hq(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;o--){let i=n<0?vy(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):vy(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(i)return i}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new yl(t.node(0))}static atStart(t){return vy(t,t,0,0,1)||new yl(t)}static atEnd(t){return vy(t,t,t.content.size,t.childCount,-1)||new yl(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=E2[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in E2)throw new RangeError("Duplicate use of selection JSON ID "+t);return E2[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Ot.between(this.$anchor,this.$head).getBookmark()}}Xt.prototype.visible=!0;class hq{constructor(t,n){this.$from=t,this.$to=n}}let vq=!1;function pq(e){!vq&&!e.parent.inlineContent&&(vq=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ot extends Xt{constructor(t,n=t){pq(t),pq(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Xt.near(r);let a=t.resolve(n.map(this.anchor));return new Ot(a.parent.inlineContent?a:r,r)}replace(t,n=st.empty){if(super.replace(t,n),n==st.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Ot&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new HT(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ot(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let a=t.resolve(n);return new this(a,r==n?a:t.resolve(r))}static between(t,n,r){let a=t.pos-n.pos;if((!r||a)&&(r=a>=0?1:-1),!n.parent.inlineContent){let o=Xt.findFrom(n,r,!0)||Xt.findFrom(n,-r,!0);if(o)n=o.$head;else return Xt.near(n,r)}return t.parent.inlineContent||(a==0?t=n:(t=(Xt.findFrom(t,-r,!0)||Xt.findFrom(t,r,!0)).$anchor,t.pos0?0:1);a>0?i=0;i+=a){let l=t.child(i);if(l.isAtom){if(!o&&Nt.isSelectable(l))return Nt.create(e,n-(a<0?l.nodeSize:0))}else{let s=vy(e,l,n+a,a<0?l.childCount:0,a,o);if(s)return s}n+=l.nodeSize*a}return null}function mq(e,t,n){let r=e.steps.length-1;if(r{i==null&&(i=c)}),e.setSelection(Xt.near(e.doc.resolve(i),n))}const gq=1,zT=2,yq=4;class L3e extends A2{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=zT,this}ensureMarks(t){return cr.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&zT)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~zT,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||cr.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let a=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(a.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let i=this.doc.resolve(n);o=r==n?i.marks():i.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,a.text(t,o)),this.selection.empty||this.setSelection(Xt.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=yq,this}get scrolledIntoView(){return(this.updated&yq)>0}}function bq(e,t){return!t||!e?e:e.bind(t)}class Zw{constructor(t,n,r){this.name=t,this.init=bq(n.init,r),this.apply=bq(n.apply,r)}}const O3e=[new Zw("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Zw("selection",{init(e,t){return e.selection||Xt.atStart(t.doc)},apply(e){return e.selection}}),new Zw("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Zw("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class M2{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=O3e.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Zw(r.key,r.spec.state,r))})}}class py{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=t[r],o=a.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(a,this[a.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let a=new M2(t.schema,t.plugins),o=new py(a);return a.fields.forEach(i=>{if(i.name=="doc")o.doc=ed.fromJSON(t.schema,n.doc);else if(i.name=="selection")o.selection=Xt.fromJSON(o.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let l in r){let s=r[l],u=s.spec.state;if(s.key==i.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){o[i.name]=u.fromJSON.call(s,t,n[l],o);return}}o[i.name]=i.init(t,o)}}),o}}function wq(e,t,n){for(let r in e){let a=e[r];a instanceof Function?a=a.bind(t):r=="handleDOMEvents"&&(a=wq(a,t,{})),n[r]=a}return n}class Ar{constructor(t){this.spec=t,this.props={},t.props&&wq(t.props,this,this.props),this.key=t.key?t.key.key:Sq("plugin")}getState(t){return t[this.key]}}const D2=Object.create(null);function Sq(e){return e in D2?e+"$"+ ++D2[e]:(D2[e]=0,e+"$")}class ya{constructor(t="key"){this.key=Sq(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Co=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},my=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let V2=null;const nd=function(e,t,n){let r=V2||(V2=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},R3e=function(){V2=null},$v=function(e,t,n,r){return n&&(xq(e,t,n,r,-1)||xq(e,t,n,r,1))},B3e=/^(img|br|input|textarea|hr)$/i;function xq(e,t,n,r,a){for(var o;;){if(e==n&&t==r)return!0;if(t==(a<0?0:Kl(e))){let i=e.parentNode;if(!i||i.nodeType!=1||Jw(e)||B3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=Co(e)+(a<0?0:1),e=i}else if(e.nodeType==1){let i=e.childNodes[t+(a<0?-1:0)];if(i.nodeType==1&&i.contentEditable=="false")if(!((o=i.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)t+=a;else return!1;else e=i,t=a<0?Kl(e):0}else return!1}}function Kl(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function F3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=Kl(e)}else if(e.parentNode&&!Jw(e))t=Co(e),e=e.parentNode;else return null}}function H3e(e,t){for(;;){if(e.nodeType==3&&t2),Zl=gy||(Nu?/Mac/.test(Nu.platform):!1),U3e=Nu?/Win/.test(Nu.platform):!1,rd=/Android \d/.test(Df),Qw=!!Cq&&"webkitFontSmoothing"in Cq.documentElement.style,Y3e=Qw?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function j3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function ad(e,t){return typeof e=="number"?e:e[t]}function K3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function kq(e,t,n){let r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let i=n||e.dom;i;){if(i.nodeType!=1){i=my(i);continue}let l=i,s=l==o.body,u=s?j3e(o):K3e(l),c=0,d=0;if(t.topu.bottom-ad(r,"bottom")&&(d=t.bottom-t.top>u.bottom-u.top?t.top+ad(a,"top")-u.top:t.bottom-u.bottom+ad(a,"bottom")),t.leftu.right-ad(r,"right")&&(c=t.right-u.right+ad(a,"right")),c||d)if(s)o.defaultView.scrollBy(c,d);else{let v=l.scrollLeft,p=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let m=l.scrollLeft-v,g=l.scrollTop-p;t={left:t.left-m,top:t.top-g,right:t.right-m,bottom:t.bottom-g}}let h=s?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(h))break;i=h=="absolute"?i.offsetParent:my(i)}}function X3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,a;for(let o=(t.left+t.right)/2,i=n+1;i=n-20){r=l,a=s.top;break}}return{refDOM:r,refTop:a,stack:Aq(e.dom)}}function Aq(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=my(r));return t}function Z3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Eq(n,r==0?0:r-t)}function Eq(e,t){for(let n=0;n=l){i=Math.max(p.bottom,i),l=Math.min(p.top,l);let m=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!s&&p.left<=t.left&&p.right>=t.left&&(s=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=d+1)}}return!n&&s&&(n=s,a=u,r=0),n&&n.nodeType==3?Q3e(n,a):!n||r&&n.nodeType==1?{node:e,offset:o}:Iq(n,a)}function Q3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let a=0;a=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function O2(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function q3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(i.left+i.right)/2?1:-1}return e.docView.posFromDOM(r,a,o)}function eHe(e,t,n,r){let a=-1;for(let o=t,i=!1;o!=e.dom;){let l=e.docView.nearestDesc(o,!0),s;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((s=l.dom.getBoundingClientRect()).width||s.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!i&&s.left>r.left||s.top>r.top?a=l.posBefore:(!i&&s.right-1?a:e.docView.posFromDOM(t,n,-1)}function Mq(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&a++}let u;Qw&&a&&r.nodeType==1&&(u=r.childNodes[a-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&a--,r==e.dom&&a==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(a==0||r.nodeType!=1||r.childNodes[a-1].nodeName!="BR")&&(l=eHe(e,r,a,t))}l==null&&(l=$3e(e,i,t));let s=e.docView.nearestDesc(i,!0);return{pos:l,inside:s?s.posAtStart-s.border:-1}}function Dq(e){return e.top=0&&a==r.nodeValue.length?(l--,u=1):n<0?l--:s++,qw(Pf(nd(r,l,s),u),u<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&a&&(n<0||a==Kl(r))){let l=r.childNodes[a-1];if(l.nodeType==1)return R2(l.getBoundingClientRect(),!1)}if(o==null&&a=0)}if(o==null&&a&&(n<0||a==Kl(r))){let l=r.childNodes[a-1],s=l.nodeType==3?nd(l,Kl(l)-(i?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(s)return qw(Pf(s,1),!1)}if(o==null&&a=0)}function qw(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function R2(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Pq(e,t,n){let r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}function rHe(e,t,n){let r=t.selection,a=n=="up"?r.$from:r.$to;return Pq(e,t,()=>{let{node:o}=e.docView.domFromPos(a.pos,n=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(o,!0);if(!l)break;if(l.node.isBlock){o=l.contentDOM||l.dom;break}o=l.dom.parentNode}let i=Vq(e,a.pos,1);for(let l=o.firstChild;l;l=l.nextSibling){let s;if(l.nodeType==1)s=l.getClientRects();else if(l.nodeType==3)s=nd(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?i.top-c.top>(c.bottom-i.top)*2:c.bottom-i.bottom>(i.bottom-c.top)*2))return!1}}return!0})}const aHe=/[\u0590-\u08ac]/;function oHe(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let a=r.parentOffset,o=!a,i=a==r.parent.content.size,l=e.domSelection();return l?!aHe.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?o:i:Pq(e,t,()=>{let{focusNode:s,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",n,"character");let v=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:m}=e.domSelectionRange(),g=p&&!v.contains(p.nodeType==1?p:p.parentNode)||s==p&&u==m;try{l.collapse(c,d),s&&(s!=c||u!=d)&&l.extend&&l.extend(s,u)}catch{}return h!=null&&(l.caretBidiLevel=h),g}):r.pos==r.start()||r.pos==r.end()}let Nq=null,Lq=null,Oq=!1;function iHe(e,t,n){return Nq==t&&Lq==n?Oq:(Nq=t,Lq=n,Oq=n=="up"||n=="down"?rHe(e,t,n):oHe(e,t,n))}const Jl=0,Rq=1,tp=2,Lu=3;class $w{constructor(t,n,r,a){this.parent=t,this.children=n,this.dom=r,this.contentDOM=a,this.dirty=Jl,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nCo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!1;break}if(o.previousSibling)break}if(a==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!0;break}if(o.nextSibling)break}}return a??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,a=t;a;a=a.parentNode){let o=this.getDesc(a),i;if(o&&(!n||o.node))if(r&&(i=o.nodeDOM)&&!(i.nodeType==1?i.contains(t.nodeType==1?t:t.parentNode):i==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let a=t;a;a=a.parentNode){let o=this.getDesc(a);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||i instanceof Hq){a=t-o;break}o=l}if(a)return this.children[r].domFromPos(a-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Bq&&o.side>=0;r--);if(n<=0){let o,i=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,i=!1);return o&&n&&i&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?Co(o.dom)+1:0}}else{let o,i=!0;for(;o=r=c&&n<=u-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(t,n,c);t=i;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){a=Co(h.dom)+1;break}t-=h.size}a==-1&&(a=0)}if(a>-1&&(u>n||l==this.children.length-1)){n=u;for(let c=l+1;cp&&in){let p=l;l=s,s=p}let v=document.createRange();v.setEnd(s.node,s.offset),v.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(v)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,a=0;a=r:tr){let l=r+o.border,s=i-o.border;if(t>=l&&n<=s){this.dirty=t==r||n==i?tp:Rq,t==l&&n==s&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Lu:o.markDirty(t-l,n-l);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?tp:Lu}r=i}this.dirty=tp}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?tp:Rq;n.dirty{if(!o)return a;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(i.nodeType!=1){let l=document.createElement("span");l.appendChild(i),i=l}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(t,[],i,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==Jl&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class lHe extends $w{constructor(t,n,r,a){super(t,[],n,null),this.textDOM=r,this.text=a}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class np extends $w{constructor(t,n,r,a,o){super(t,[],r,a),this.mark=n,this.spec=o}static create(t,n,r,a){let o=a.nodeViews[n.type.name],i=o&&o(n,a,r);return(!i||!i.dom)&&(i=Af.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new np(t,n,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&Lu||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Lu&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Jl){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=F2(o,0,t,r));for(let l=0;l{if(!s)return i;if(s.parent)return s.parent.posBeforeChild(s)},r,a),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=Af.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=Gq(c,r,n),u?s=new sHe(t,n,r,a,c,d||null,h,u,o,i+1):n.isText?new GT(t,n,r,a,c,h,o):new Nf(t,n,r,a,c,d||null,h,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>He.empty)}return t}matchesNode(t,n,r){return this.dirty==Jl&&t.eq(this.node)&&UT(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,a=n,o=t.composing?this.localCompositionInfo(t,n):null,i=o&&o.pos>-1?o:null,l=o&&o.pos<0,s=new cHe(this,i&&i.node,t);hHe(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?s.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!d&&s.syncToMarks(c==this.node.childCount?cr.none:this.node.child(c).marks,r,t),s.placeWidget(u,t,a)},(u,c,d,h)=>{s.syncToMarks(u.marks,r,t);let v;s.findNodeMatch(u,c,d,h)||l&&t.state.selection.from>a&&t.state.selection.to-1&&s.updateNodeAt(u,c,d,v,t)||s.updateNextNode(u,c,d,t,h,a)||s.addNode(u,c,d,t,a),a+=u.nodeSize}),s.syncToMarks([],r,t),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==tp)&&(i&&this.protectLocalComposition(t,i),zq(this.contentDOM,this.children,t),gy&&vHe(this.dom))}localCompositionInfo(t,n){let{from:r,to:a}=t.state.selection;if(!(t.state.selection instanceof Ot)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let i=o.nodeValue,l=pHe(this.node.content,i,r-n,a-n);return l<0?null:{node:o,pos:l,text:i}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:a}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new lHe(this,o,n,a);t.input.compositionNodes.push(i),this.children=F2(this.children,r,r+a.length,t,i)}update(t,n,r,a){return this.dirty==Lu||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,a),!0)}updateInner(t,n,r,a){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=Jl}updateOuterDeco(t){if(UT(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Wq(this.dom,this.nodeDOM,B2(this.outerDeco,this.node,n),B2(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Fq(e,t,n,r,a){Gq(r,t,e);let o=new Nf(void 0,e,t,n,r,r,r,a,0);return o.contentDOM&&o.updateChildren(a,0),o}class GT extends Nf{constructor(t,n,r,a,o,i,l){super(t,n,r,a,o,null,i,l,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,a){return this.dirty==Lu||this.dirty!=Jl&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Jl||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=t,this.dirty=Jl,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let a=this.node.cut(t,n),o=document.createTextNode(a.text);return new GT(this.parent,a,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Lu)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Hq extends $w{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Jl&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class sHe extends Nf{constructor(t,n,r,a,o,i,l,s,u,c){super(t,n,r,a,o,i,l,u,c),this.spec=s}update(t,n,r,a){if(this.dirty==Lu)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,a),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function zq(e,t,n){let r=e.firstChild,a=!1;for(let o=0;o>1,i=Math.min(o,t.length);for(;a-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let s=np.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,s),this.top=s,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,a){let o=-1,i;if(a>=this.preMatch.index&&(i=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&i.matchesNode(t,n,r))o=this.top.children.indexOf(i,this.index);else for(let l=this.index,s=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof np)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let s=l.node;if(s){if(s!=e.child(a-1))break;--a,o.set(l,a),i.push(l)}}return{index:a,matched:o,matches:i.reverse()}}function fHe(e,t){return e.type.side-t.type.side}function hHe(e,t,n,r){let a=t.locals(e),o=0;if(a.length==0){for(let u=0;uo;)l.push(a[i++]);let p=o+h.nodeSize;if(h.isText){let g=p;i!g.inline):l.slice();r(h,m,t.forChild(o,h),v),o=p}}function vHe(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function pHe(e,t,n,r){for(let a=0,o=0;a=n){if(o>=r&&s.slice(r-t.length-l,r-l)==t)return r-t.length;let u=l=0&&u+t.length+l>=n)return l+u;if(n==r&&s.length>=r+t.length-l&&s.slice(r-l,r-l+t.length)==t)return r}}return-1}function F2(e,t,n,r,a){let o=[];for(let i=0,l=0;i=n||c<=t?o.push(s):(un&&o.push(s.slice(n-u,s.size,r)))}return o}function H2(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let a=e.docView.nearestDesc(n.focusNode),o=a&&a.size==0,i=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let l=r.resolve(i),s,u;if(WT(n)){for(s=i;a&&!a.node;)a=a.parent;let d=a.node;if(a&&d.isAtom&&Nt.isSelectable(d)&&a.parent&&!(d.isInline&&z3e(n.focusNode,n.focusOffset,a.dom))){let h=a.posBefore;u=new Nt(i==h?l:r.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=i,h=i;for(let v=0;v{(n.anchorNode!=r||n.anchorOffset!=a)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Yq(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function gHe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,Co(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Hi&&Vf<=11&&(n.disabled=!0,n.disabled=!1)}function Zq(e,t){if(t instanceof Nt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Jq(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Jq(e)}function Jq(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function W2(e,t,n,r){return e.someProp("createSelectionBetween",a=>a(e,t,n))||Ot.between(t,n,r)}function Qq(e){return e.editable&&!e.hasFocus()?!1:qq(e)}function qq(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function yHe(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return $v(t.node,t.offset,n.anchorNode,n.anchorOffset)}function G2(e,t){let{$anchor:n,$head:r}=e.selection,a=t>0?n.max(r):n.min(r),o=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return o&&Xt.findFrom(o,t)}function Lf(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function $q(e,t,n){let r=e.state.selection;if(r instanceof Ot)if(n.indexOf("s")>-1){let{$head:a}=r,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(a.pos+o.nodeSize*(t<0?-1:1));return Lf(e,new Ot(r.$anchor,i))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let a=G2(e.state,t);return a&&a instanceof Nt?Lf(e,a):!1}else if(!(Zl&&n.indexOf("m")>-1)){let a=r.$head,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter,i;if(!o||o.isText)return!1;let l=t<0?a.pos-o.nodeSize:a.pos;return o.isAtom||(i=e.docView.descAt(l))&&!i.contentDOM?Nt.isSelectable(o)?Lf(e,new Nt(t<0?e.state.doc.resolve(a.pos-o.nodeSize):a)):Qw?Lf(e,new Ot(e.state.doc.resolve(t<0?l:l+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Nt&&r.node.isInline)return Lf(e,new Ot(t>0?r.$to:r.$from));{let a=G2(e.state,t);return a?Lf(e,a):!1}}}function YT(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function tS(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function by(e,t){return t<0?bHe(e):wHe(e)}function bHe(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a,o,i=!1;for(Xl&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(tS(l,-1))a=n,o=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(e$(n))break;{let l=n.previousSibling;for(;l&&tS(l,-1);)a=n.parentNode,o=Co(l),l=l.previousSibling;if(l)n=l,r=YT(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}i?U2(e,n,r):a&&U2(e,a,o)}function wHe(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a=YT(n),o,i;for(;;)if(r{e.state==a&&od(e)},50)}function t$(e,t){let n=e.state.doc.resolve(t);if(!(jo||U3e)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>r.top&&o1)return a.leftr.top&&o1)return a.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function n$(e,t,n){let r=e.state.selection;if(r instanceof Ot&&!r.empty||n.indexOf("s")>-1||Zl&&n.indexOf("m")>-1)return!1;let{$from:a,$to:o}=r;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let i=G2(e.state,t);if(i&&i instanceof Nt)return Lf(e,i)}if(!a.parent.inlineContent){let i=t<0?a:o,l=r instanceof yl?Xt.near(i,t):Xt.findFrom(i,t);return l?Lf(e,l):!1}return!1}function r$(e,t){if(!(e.state.selection instanceof Ot))return!0;let{$head:n,$anchor:r,empty:a}=e.state.selection;if(!n.sameParent(r))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let i=e.state.tr;return t<0?i.delete(n.pos-o.nodeSize,n.pos):i.delete(n.pos,n.pos+o.nodeSize),e.dispatch(i),!0}return!1}function a$(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function CHe(e){if(!pi||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;a$(e,r,"true"),setTimeout(()=>a$(e,r,"false"),20)}return!1}function _He(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function THe(e,t){let n=t.keyCode,r=_He(t);if(n==8||Zl&&n==72&&r=="c")return r$(e,-1)||by(e,-1);if(n==46&&!t.shiftKey||Zl&&n==68&&r=="c")return r$(e,1)||by(e,1);if(n==13||n==27)return!0;if(n==37||Zl&&n==66&&r=="c"){let a=n==37?t$(e,e.state.selection.from)=="ltr"?-1:1:-1;return $q(e,a,r)||by(e,a)}else if(n==39||Zl&&n==70&&r=="c"){let a=n==39?t$(e,e.state.selection.from)=="ltr"?1:-1:1;return $q(e,a,r)||by(e,a)}else{if(n==38||Zl&&n==80&&r=="c")return n$(e,-1,r)||by(e,-1);if(n==40||Zl&&n==78&&r=="c")return CHe(e)||n$(e,1,r)||by(e,1);if(r==(Zl?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Y2(e,t){e.someProp("transformCopied",v=>{t=v(t,e)});let n=[],{content:r,openStart:a,openEnd:o}=t;for(;a>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){a--,o--;let v=r.firstChild;n.push(v.type.name,v.attrs!=v.type.defaultAttrs?v.attrs:null),r=v.content}let i=e.someProp("clipboardSerializer")||Af.fromSchema(e.state.schema),l=f$(),s=l.createElement("div");s.appendChild(i.serializeFragment(r,{document:l}));let u=s.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=c$[u.nodeName.toLowerCase()]);){for(let v=c.length-1;v>=0;v--){let p=l.createElement(c[v]);for(;s.firstChild;)p.appendChild(s.firstChild);s.appendChild(p),d++}u=s.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${a} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",v=>v(t,e))||t.content.textBetween(0,t.content.size,` + */const QLe="9.14.5";function qLe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(jc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(jc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(jc().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(jc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(jc().__INTLIFY_PROD_DEVTOOLS__=!1)}const $Le=MLe.__EXTEND_POINT__,Xc=oT($Le);Xc(),Xc(),Xc(),Xc(),Xc(),Xc(),Xc(),Xc(),Xc();const QJ=Us.__EXTEND_POINT__,Fi=oT(QJ),Ga={UNEXPECTED_RETURN_TYPE:QJ,INVALID_ARGUMENT:Fi(),MUST_BE_CALL_SETUP_TOP:Fi(),NOT_INSTALLED:Fi(),NOT_AVAILABLE_IN_LEGACY_MODE:Fi(),REQUIRED_VALUE:Fi(),INVALID_VALUE:Fi(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Fi(),NOT_INSTALLED_WITH_PROVIDE:Fi(),UNEXPECTED_ERROR:Fi(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Fi(),BRIDGE_SUPPORT_VUE_2_ONLY:Fi(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Fi(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Fi(),__EXTEND_POINT__:Fi()};function no(e,...t){return ry(e,null,void 0)}const YL=bf("__translateVNode"),jL=bf("__datetimeParts"),KL=bf("__numberParts"),qJ=bf("__setPluralRules"),$J=bf("__injectWithOption"),XL=bf("__dispose");function Pw(e){if(!Hn(e)||Eu(e))return e;for(const t in e)if(Ws(e,t))if(!t.includes("."))Hn(e[t])&&Pw(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let i=0;i{if("locale"in l&&"resource"in l){const{locale:s,resource:u}=l;s?(i[s]=i[s]||ar(),lT(u,i[s])):lT(u,i)}else mt(l)&&lT(JSON.parse(l),i)}),a==null&&o)for(const l in i)Ws(i,l)&&Pw(i[l]);return i}function eQ(e){return e.type}function tQ(e,t,n){let r=Hn(t.messages)?t.messages:ar();"__i18nGlobal"in n&&(r=dT(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Hn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Hn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function nQ(e){return f.createVNode(f.Text,null,e,0)}const rQ="__INTLIFY_META__",aQ=()=>[],e2e=()=>!1;let oQ=0;function iQ(e){return(t,n,r,a)=>e(n,r,f.getCurrentInstance()||void 0,a)}const t2e=()=>{const e=f.getCurrentInstance();let t=null;return e&&(t=eQ(e)[rQ])?{[rQ]:t}:null};function ZL(e={},t){const{__root:n,__injectWithOption:r}=e,a=n===void 0,o=e.flatJson,i=rT?f.ref:f.shallowRef,l=!!e.translateExistCompatible;let s=_n(e.inheritLocale)?e.inheritLocale:!0;const u=i(n&&s?n.locale.value:mt(e.locale)?e.locale:iy),c=i(n&&s?n.fallbackLocale.value:mt(e.fallbackLocale)||kr(e.fallbackLocale)||an(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),d=i(dT(u.value,e)),h=i(an(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),v=i(an(e.numberFormats)?e.numberFormats:{[u.value]:{}});let p=n?n.missingWarn:_n(e.missingWarn)||wf(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:_n(e.fallbackWarn)||wf(e.fallbackWarn)?e.fallbackWarn:!0,g=n?n.fallbackRoot:_n(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,b=pr(e.missing)?e.missing:null,w=pr(e.missing)?iQ(e.missing):null,S=pr(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const T=n?n.modifiers:an(e.modifiers)?e.modifiers:{};let A=e.pluralRules||n&&n.pluralRules,E;E=(()=>{a&&OJ(null);const fe={version:QLe,locale:u.value,fallbackLocale:c.value,messages:d.value,modifiers:T,pluralRules:A,missing:w===null?void 0:w,missingWarn:p,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:_,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};fe.datetimeFormats=h.value,fe.numberFormats=v.value,fe.__datetimeFormatters=an(E)?E.__datetimeFormatters:void 0,fe.__numberFormatters=an(E)?E.__numberFormatters:void 0;const _e=zLe(fe);return a&&OJ(_e),_e})(),Vw(E,u.value,c.value);function M(){return[u.value,c.value,d.value,h.value,v.value]}const N=f.computed({get:()=>u.value,set:fe=>{u.value=fe,E.locale=u.value}}),D=f.computed({get:()=>c.value,set:fe=>{c.value=fe,E.fallbackLocale=c.value,Vw(E,u.value,fe)}}),P=f.computed(()=>d.value),O=f.computed(()=>h.value),L=f.computed(()=>v.value);function R(){return pr(S)?S:null}function B(fe){S=fe,E.postTranslation=fe}function z(){return b}function H(fe){fe!==null&&(w=iQ(fe)),b=fe,E.missing=w}const G=(fe,_e,$e,le,ue,xe)=>{M();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=n?HLe():void 0),Ve=fe(E)}finally{__INTLIFY_PROD_DEVTOOLS__,a||(E.fallbackContext=void 0)}if($e!=="translate exists"&&ya(Ve)&&Ve===cT||$e==="translate exists"&&!Ve){const[Qe,me]=_e();return n&&g?le(n):ue(Qe)}else{if(xe(Ve))return Ve;throw no(Ga.UNEXPECTED_RETURN_TYPE)}};function j(...fe){return G(_e=>Reflect.apply(WJ,null,[_e,...fe]),()=>WL(...fe),"translate",_e=>Reflect.apply(_e.t,_e,[...fe]),_e=>_e,_e=>mt(_e))}function U(...fe){const[_e,$e,le]=fe;if(le&&!Hn(le))throw no(Ga.INVALID_ARGUMENT);return j(_e,$e,Co({resolvedMessage:!0},le||{}))}function Y(...fe){return G(_e=>Reflect.apply(YJ,null,[_e,...fe]),()=>GL(...fe),"datetime format",_e=>Reflect.apply(_e.d,_e,[...fe]),()=>EJ,_e=>mt(_e))}function Z(...fe){return G(_e=>Reflect.apply(XJ,null,[_e,...fe]),()=>UL(...fe),"number format",_e=>Reflect.apply(_e.n,_e,[...fe]),()=>EJ,_e=>mt(_e))}function ne(fe){return fe.map(_e=>mt(_e)||ya(_e)||_n(_e)?nQ(String(_e)):_e)}const ae={normalize:ne,interpolate:fe=>fe,type:"vnode"};function de(...fe){return G(_e=>{let $e;const le=_e;try{le.processor=ae,$e=Reflect.apply(WJ,null,[le,...fe])}finally{le.processor=null}return $e},()=>WL(...fe),"translate",_e=>_e[YL](...fe),_e=>[nQ(_e)],_e=>kr(_e))}function ve(...fe){return G(_e=>Reflect.apply(XJ,null,[_e,...fe]),()=>UL(...fe),"number format",_e=>_e[KL](...fe),aQ,_e=>mt(_e)||kr(_e))}function ge(...fe){return G(_e=>Reflect.apply(YJ,null,[_e,...fe]),()=>GL(...fe),"datetime format",_e=>_e[jL](...fe),aQ,_e=>mt(_e)||kr(_e))}function Se(fe){A=fe,E.pluralRules=A}function Re(fe,_e){return G(()=>{if(!fe)return!1;const $e=mt(_e)?_e:u.value,le=Ie($e),ue=E.messageResolver(le,fe);return l?ue!=null:Eu(ue)||Yl(ue)||mt(ue)},()=>[fe],"translate exists",$e=>Reflect.apply($e.te,$e,[fe,_e]),e2e,$e=>_n($e))}function ee(fe){let _e=null;const $e=kJ(E,c.value,u.value);for(let le=0;le<$e.length;le++){const ue=d.value[$e[le]]||{},xe=E.messageResolver(ue,fe);if(xe!=null){_e=xe;break}}return _e}function be(fe){const _e=ee(fe);return _e??(n?n.tm(fe)||{}:{})}function Ie(fe){return d.value[fe]||{}}function He(fe,_e){if(o){const $e={[fe]:_e};for(const le in $e)Ws($e,le)&&Pw($e[le]);_e=$e[fe]}d.value[fe]=_e,E.messages=d.value}function yt(fe,_e){d.value[fe]=d.value[fe]||{};const $e={[fe]:_e};if(o)for(const le in $e)Ws($e,le)&&Pw($e[le]);_e=$e[fe],lT(_e,d.value[fe]),E.messages=d.value}function St(fe){return h.value[fe]||{}}function X(fe,_e){h.value[fe]=_e,E.datetimeFormats=h.value,KJ(E,fe,_e)}function te(fe,_e){h.value[fe]=Co(h.value[fe]||{},_e),E.datetimeFormats=h.value,KJ(E,fe,_e)}function pe(fe){return v.value[fe]||{}}function oe(fe,_e){v.value[fe]=_e,E.numberFormats=v.value,JJ(E,fe,_e)}function Le(fe,_e){v.value[fe]=Co(v.value[fe]||{},_e),E.numberFormats=v.value,JJ(E,fe,_e)}oQ++,n&&rT&&(f.watch(n.locale,fe=>{s&&(u.value=fe,E.locale=fe,Vw(E,u.value,c.value))}),f.watch(n.fallbackLocale,fe=>{s&&(c.value=fe,E.fallbackLocale=fe,Vw(E,u.value,c.value))}));const je={id:oQ,locale:N,fallbackLocale:D,get inheritLocale(){return s},set inheritLocale(fe){s=fe,fe&&n&&(u.value=n.locale.value,c.value=n.fallbackLocale.value,Vw(E,u.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:P,get modifiers(){return T},get pluralRules(){return A||{}},get isGlobal(){return a},get missingWarn(){return p},set missingWarn(fe){p=fe,E.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(fe){m=fe,E.fallbackWarn=m},get fallbackRoot(){return g},set fallbackRoot(fe){g=fe},get fallbackFormat(){return y},set fallbackFormat(fe){y=fe,E.fallbackFormat=y},get warnHtmlMessage(){return _},set warnHtmlMessage(fe){_=fe,E.warnHtmlMessage=fe},get escapeParameter(){return x},set escapeParameter(fe){x=fe,E.escapeParameter=fe},t:j,getLocaleMessage:Ie,setLocaleMessage:He,mergeLocaleMessage:yt,getPostTranslationHandler:R,setPostTranslationHandler:B,getMissingHandler:z,setMissingHandler:H,[qJ]:Se};return je.datetimeFormats=O,je.numberFormats=L,je.rt=U,je.te=Re,je.tm=be,je.d=Y,je.n=Z,je.getDateTimeFormat=St,je.setDateTimeFormat=X,je.mergeDateTimeFormat=te,je.getNumberFormat=pe,je.setNumberFormat=oe,je.mergeNumberFormat=Le,je[$J]=r,je[YL]=de,je[jL]=ge,je[KL]=ve,je}function n2e(e){const t=mt(e.locale)?e.locale:iy,n=mt(e.fallbackLocale)||kr(e.fallbackLocale)||an(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pr(e.missing)?e.missing:void 0,a=_n(e.silentTranslationWarn)||wf(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=_n(e.silentFallbackWarn)||wf(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=_n(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,s=an(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=pr(e.postTranslation)?e.postTranslation:void 0,d=mt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,v=_n(e.sync)?e.sync:!0;let p=e.messages;if(an(e.sharedMessages)){const x=e.sharedMessages;p=Object.keys(x).reduce((A,E)=>{const I=A[E]||(A[E]={});return Co(I,x[E]),A},p||{})}const{__i18n:m,__root:g,__injectWithOption:y}=e,b=e.datetimeFormats,w=e.numberFormats,S=e.flatJson,_=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:S,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:i,fallbackFormat:l,modifiers:s,pluralRules:u,postTranslation:c,warnHtmlMessage:d,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,translateExistCompatible:_,__i18n:m,__root:g,__injectWithOption:y}}function JL(e={},t){{const n=ZL(n2e(e)),{__extender:r}=e,a={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return _n(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=_n(o)?!o:o},get silentFallbackWarn(){return _n(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=_n(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[i,l,s]=o,u={};let c=null,d=null;if(!mt(i))throw no(Ga.INVALID_ARGUMENT);const h=i;return mt(l)?u.locale=l:kr(l)?c=l:an(l)&&(d=l),kr(s)?c=s:an(s)&&(d=s),Reflect.apply(n.t,n,[h,c||d||{},u])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[i,l,s]=o,u={plural:1};let c=null,d=null;if(!mt(i))throw no(Ga.INVALID_ARGUMENT);const h=i;return mt(l)?u.locale=l:ya(l)?u.plural=l:kr(l)?c=l:an(l)&&(d=l),mt(s)?u.locale=s:kr(s)?c=s:an(s)&&(d=s),Reflect.apply(n.t,n,[h,c||d||{},u])},te(o,i){return n.te(o,i)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,i){n.setLocaleMessage(o,i)},mergeLocaleMessage(o,i){n.mergeLocaleMessage(o,i)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,i){n.setDateTimeFormat(o,i)},mergeDateTimeFormat(o,i){n.mergeDateTimeFormat(o,i)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,i){n.setNumberFormat(o,i)},mergeNumberFormat(o,i){n.mergeNumberFormat(o,i)},getChoiceIndex(o,i){return-1}};return a.__extender=r,a}}const QL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function r2e({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===f.Fragment?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},ar())}function lQ(e){return f.Fragment}const sQ=f.defineComponent({name:"i18n-t",props:Co({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ya(e)||!isNaN(e)}},QL),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||fT({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),i=ar();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=mt(e.plural)?+e.plural:e.plural);const l=r2e(t,o),s=a[YL](e.keypath,l,i),u=Co(ar(),r),c=mt(e.tag)||Hn(e.tag)?e.tag:lQ();return f.h(c,u,s)}}});function a2e(e){return kr(e)&&!mt(e[0])}function uQ(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const i={part:!0};let l=ar();e.locale&&(i.locale=e.locale),mt(e.format)?i.key=e.format:Hn(e.format)&&(mt(e.format.key)&&(i.key=e.format.key),l=Object.keys(e.format).reduce((h,v)=>n.includes(v)?Co(ar(),h,{[v]:e.format[v]}):h,ar()));const s=r(e.value,i,l);let u=[i.key];kr(s)?u=s.map((h,v)=>{const p=a[h.type],m=p?p({[h.type]:h.value,index:v,parts:s}):[h.value];return a2e(m)&&(m[0].key=`${h.type}-${v}`),m}):mt(s)&&(u=[s]);const c=Co(ar(),o),d=mt(e.tag)||Hn(e.tag)?e.tag:lQ();return f.h(d,c,u)}}const cQ=f.defineComponent({name:"i18n-n",props:Co({value:{type:Number,required:!0},format:{type:[String,Object]}},QL),setup(e,t){const n=e.i18n||fT({useScope:e.scope,__useComponent:!0});return uQ(e,t,ZJ,(...r)=>n[KL](...r))}}),dQ=f.defineComponent({name:"i18n-d",props:Co({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},QL),setup(e,t){const n=e.i18n||fT({useScope:e.scope,__useComponent:!0});return uQ(e,t,jJ,(...r)=>n[jL](...r))}});function o2e(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function i2e(e){const t=i=>{const{instance:l,modifiers:s,value:u}=i;if(!l||!l.$)throw no(Ga.UNEXPECTED_ERROR);const c=o2e(e,l.$),d=fQ(u);return[Reflect.apply(c.t,c,[...hQ(d)]),c]};return{created:(i,l)=>{const[s,u]=t(l);rT&&e.global===u&&(i.__i18nWatcher=f.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),i.__composer=u,i.textContent=s},unmounted:i=>{rT&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:l})=>{if(i.__composer){const s=i.__composer,u=fQ(l);i.textContent=Reflect.apply(s.t,s,[...hQ(u)])}},getSSRProps:i=>{const[l]=t(i);return{textContent:l}}}}function fQ(e){if(mt(e))return{path:e};if(an(e)){if(!("path"in e))throw no(Ga.REQUIRED_VALUE,"path");return e}else throw no(Ga.INVALID_VALUE)}function hQ(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,i={},l=r||{};return mt(n)&&(i.locale=n),ya(a)&&(i.plural=a),ya(o)&&(i.plural=o),[t,l,i]}function l2e(e,t,...n){const r=an(n[0])?n[0]:{},a=!!r.useI18nComponentName;(_n(r.globalInstall)?r.globalInstall:!0)&&([a?"i18n":sQ.name,"I18nT"].forEach(i=>e.component(i,sQ)),[cQ.name,"I18nN"].forEach(i=>e.component(i,cQ)),[dQ.name,"I18nD"].forEach(i=>e.component(i,dQ))),e.directive("t",i2e(t))}function s2e(e,t,n){return{beforeCreate(){const r=f.getCurrentInstance();if(!r)throw no(Ga.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const o=a.i18n;if(a.__i18n&&(o.__i18n=a.__i18n),o.__root=t,this===this.$root)this.$i18n=vQ(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=JL(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=vQ(e,a);else{this.$i18n=JL({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&tQ(t,a,a),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=f.getCurrentInstance();if(!r)throw no(Ga.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(r),delete this.$i18n}}}function vQ(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[qJ](t.pluralizationRules||e.pluralizationRules);const n=dT(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const u2e=bf("global-vue-i18n");function c2e(e={},t){const n=__VUE_I18N_LEGACY_API__&&_n(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=_n(e.globalInjection)?e.globalInjection:!0,a=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[i,l]=d2e(e,n),s=bf("");function u(h){return o.get(h)||null}function c(h,v){o.set(h,v)}function d(h){o.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(v,...p){if(v.__VUE_I18N_SYMBOL__=s,v.provide(v.__VUE_I18N_SYMBOL__,h),an(p[0])){const y=p[0];h.__composerExtend=y.__composerExtend,h.__vueI18nExtend=y.__vueI18nExtend}let m=null;!n&&r&&(m=w2e(v,h.global)),__VUE_I18N_FULL_INSTALL__&&l2e(v,h,...p),__VUE_I18N_LEGACY_API__&&n&&v.mixin(s2e(l,l.__composer,h));const g=v.unmount;v.unmount=()=>{m&&m(),h.dispose(),g()}},get global(){return l},dispose(){i.stop()},__instances:o,__getInstance:u,__setInstance:c,__deleteInstance:d};return h}}function fT(e={}){const t=f.getCurrentInstance();if(t==null)throw no(Ga.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw no(Ga.NOT_INSTALLED);const n=f2e(t),r=v2e(n),a=eQ(t),o=h2e(e,a);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw no(Ga.NOT_AVAILABLE_IN_LEGACY_MODE);return y2e(t,o,r,e)}if(o==="global")return tQ(r,e,a),r;if(o==="parent"){let s=p2e(n,t,e.__useComponent);return s==null&&(s=r),s}const i=n;let l=i.__getInstance(t);if(l==null){const s=Co({},e);"__i18n"in a&&(s.__i18n=a.__i18n),r&&(s.__root=r),l=ZL(s),i.__composerExtend&&(l[XL]=i.__composerExtend(l)),g2e(i,t,l),i.__setInstance(t,l)}return l}function d2e(e,t,n){const r=f.effectScope();{const a=__VUE_I18N_LEGACY_API__&&t?r.run(()=>JL(e)):r.run(()=>ZL(e));if(a==null)throw no(Ga.UNEXPECTED_ERROR);return[r,a]}}function f2e(e){{const t=f.inject(e.isCE?u2e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw no(e.isCE?Ga.NOT_INSTALLED_WITH_PROVIDE:Ga.UNEXPECTED_ERROR);return t}}function h2e(e,t){return aT(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function v2e(e){return e.mode==="composition"?e.global:e.global.__composer}function p2e(e,t,n=!1){let r=null;const a=t.root;let o=m2e(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=i.__getInstance(o);l!=null&&(r=l.__composer,n&&r&&!r[$J]&&(r=null))}if(r!=null||a===o)break;o=o.parent}return r}function m2e(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function g2e(e,t,n){f.onMounted(()=>{},t),f.onUnmounted(()=>{const r=n;e.__deleteInstance(t);const a=r[XL];a&&(a(),delete r[XL])},t)}function y2e(e,t,n,r={}){const a=t==="local",o=f.shallowRef(null);if(a&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw no(Ga.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=_n(r.inheritLocale)?r.inheritLocale:!mt(r.locale),l=f.ref(!a||i?n.locale.value:mt(r.locale)?r.locale:iy),s=f.ref(!a||i?n.fallbackLocale.value:mt(r.fallbackLocale)||kr(r.fallbackLocale)||an(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:l.value),u=f.ref(dT(l.value,r)),c=f.ref(an(r.datetimeFormats)?r.datetimeFormats:{[l.value]:{}}),d=f.ref(an(r.numberFormats)?r.numberFormats:{[l.value]:{}}),h=a?n.missingWarn:_n(r.missingWarn)||wf(r.missingWarn)?r.missingWarn:!0,v=a?n.fallbackWarn:_n(r.fallbackWarn)||wf(r.fallbackWarn)?r.fallbackWarn:!0,p=a?n.fallbackRoot:_n(r.fallbackRoot)?r.fallbackRoot:!0,m=!!r.fallbackFormat,g=pr(r.missing)?r.missing:null,y=pr(r.postTranslation)?r.postTranslation:null,b=a?n.warnHtmlMessage:_n(r.warnHtmlMessage)?r.warnHtmlMessage:!0,w=!!r.escapeParameter,S=a?n.modifiers:an(r.modifiers)?r.modifiers:{},_=r.pluralRules||a&&n.pluralRules;function x(){return[l.value,s.value,u.value,c.value,d.value]}const T=f.computed({get:()=>o.value?o.value.locale.value:l.value,set:ee=>{o.value&&(o.value.locale.value=ee),l.value=ee}}),A=f.computed({get:()=>o.value?o.value.fallbackLocale.value:s.value,set:ee=>{o.value&&(o.value.fallbackLocale.value=ee),s.value=ee}}),E=f.computed(()=>o.value?o.value.messages.value:u.value),I=f.computed(()=>c.value),M=f.computed(()=>d.value);function N(){return o.value?o.value.getPostTranslationHandler():y}function D(ee){o.value&&o.value.setPostTranslationHandler(ee)}function P(){return o.value?o.value.getMissingHandler():g}function O(ee){o.value&&o.value.setMissingHandler(ee)}function L(ee){return x(),ee()}function R(...ee){return o.value?L(()=>Reflect.apply(o.value.t,null,[...ee])):L(()=>"")}function B(...ee){return o.value?Reflect.apply(o.value.rt,null,[...ee]):""}function z(...ee){return o.value?L(()=>Reflect.apply(o.value.d,null,[...ee])):L(()=>"")}function H(...ee){return o.value?L(()=>Reflect.apply(o.value.n,null,[...ee])):L(()=>"")}function G(ee){return o.value?o.value.tm(ee):{}}function j(ee,be){return o.value?o.value.te(ee,be):!1}function U(ee){return o.value?o.value.getLocaleMessage(ee):{}}function Y(ee,be){o.value&&(o.value.setLocaleMessage(ee,be),u.value[ee]=be)}function Z(ee,be){o.value&&o.value.mergeLocaleMessage(ee,be)}function ne(ee){return o.value?o.value.getDateTimeFormat(ee):{}}function $(ee,be){o.value&&(o.value.setDateTimeFormat(ee,be),c.value[ee]=be)}function ae(ee,be){o.value&&o.value.mergeDateTimeFormat(ee,be)}function de(ee){return o.value?o.value.getNumberFormat(ee):{}}function ve(ee,be){o.value&&(o.value.setNumberFormat(ee,be),d.value[ee]=be)}function ge(ee,be){o.value&&o.value.mergeNumberFormat(ee,be)}const Se={get id(){return o.value?o.value.id:-1},locale:T,fallbackLocale:A,messages:E,datetimeFormats:I,numberFormats:M,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(ee){o.value&&(o.value.inheritLocale=ee)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(u.value)},get modifiers(){return o.value?o.value.modifiers:S},get pluralRules(){return o.value?o.value.pluralRules:_},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:h},set missingWarn(ee){o.value&&(o.value.missingWarn=ee)},get fallbackWarn(){return o.value?o.value.fallbackWarn:v},set fallbackWarn(ee){o.value&&(o.value.missingWarn=ee)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(ee){o.value&&(o.value.fallbackRoot=ee)},get fallbackFormat(){return o.value?o.value.fallbackFormat:m},set fallbackFormat(ee){o.value&&(o.value.fallbackFormat=ee)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:b},set warnHtmlMessage(ee){o.value&&(o.value.warnHtmlMessage=ee)},get escapeParameter(){return o.value?o.value.escapeParameter:w},set escapeParameter(ee){o.value&&(o.value.escapeParameter=ee)},t:R,getPostTranslationHandler:N,setPostTranslationHandler:D,getMissingHandler:P,setMissingHandler:O,rt:B,d:z,n:H,tm:G,te:j,getLocaleMessage:U,setLocaleMessage:Y,mergeLocaleMessage:Z,getDateTimeFormat:ne,setDateTimeFormat:$,mergeDateTimeFormat:ae,getNumberFormat:de,setNumberFormat:ve,mergeNumberFormat:ge};function Re(ee){ee.locale.value=l.value,ee.fallbackLocale.value=s.value,Object.keys(u.value).forEach(be=>{ee.mergeLocaleMessage(be,u.value[be])}),Object.keys(c.value).forEach(be=>{ee.mergeDateTimeFormat(be,c.value[be])}),Object.keys(d.value).forEach(be=>{ee.mergeNumberFormat(be,d.value[be])}),ee.escapeParameter=w,ee.fallbackFormat=m,ee.fallbackRoot=p,ee.fallbackWarn=v,ee.missingWarn=h,ee.warnHtmlMessage=b}return f.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw no(Ga.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const ee=o.value=e.proxy.$i18n.__composer;t==="global"?(l.value=ee.locale.value,s.value=ee.fallbackLocale.value,u.value=ee.messages.value,c.value=ee.datetimeFormats.value,d.value=ee.numberFormats.value):a&&Re(ee)}),Se}const b2e=["locale","fallbackLocale","availableLocales"],pQ=["t","rt","d","n","tm","te"];function w2e(e,t){const n=Object.create(null);return b2e.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o)throw no(Ga.UNEXPECTED_ERROR);const i=f.isRef(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,pQ.forEach(a=>{const o=Object.getOwnPropertyDescriptor(t,a);if(!o||!o.value)throw no(Ga.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,o)}),()=>{delete e.config.globalProperties.$i18n,pQ.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}if(qLe(),__INTLIFY_JIT_COMPILATION__?DJ(jLe):DJ(YLe),OLe(mLe),RLe(kJ),__INTLIFY_PROD_DEVTOOLS__){const e=jc();e.__INTLIFY__=!0,TLe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const mQ={badge:"バッジ",open:"開く",close:"閉じる",dismiss:"閉じる",confirmEdit:{ok:"OK",cancel:"キャンセル"},dataIterator:{noResultsText:"検索結果が見つかりません。",loadingText:"項目をロード中です..."},dataTable:{itemsPerPageText:"1ページあたりの行数:",ariaLabel:{sortDescending:"降順の並び替え。",sortAscending:"昇順の並び替え。",sortNone:"ソートされていません。",activateNone:"ソートを削除するには有効にしてください。",activateDescending:"降順の並び替えのためには有効にしてください。",activateAscending:"昇順のソートのためには有効にしてください。"},sortBy:"ソート方式"},dataFooter:{itemsPerPageText:"1ページあたりの件数:",itemsPerPageAll:"すべて",nextPage:"次のページ",prevPage:"前のページ",firstPage:"最初のページ",lastPage:"最後のページ",pageText:"{0}-{1} 件目 / {2}件"},dateRangeInput:{divider:"から"},datePicker:{itemsSelected:"{0} 選択済",range:{title:"日付を選択",header:"日付を入力"},title:"日付を選択",header:"日付を入力",input:{placeholder:"日付を入力"},ariaLabel:{previousMonth:"前の月",nextMonth:"次の月",selectYear:"年を選択",previousYear:"前の年",nextYear:"次の年",selectMonth:"月を選択",selectDate:"{0}",currentDate:"今日、{0}"}},noDataText:"データはありません。",carousel:{prev:"前のビジュアル",next:"次のビジュアル",ariaLabel:{delimiter:"カルーセルのスライド {0}件目 / {1}件"}},calendar:{moreEvents:"さらに{0}",today:"今日"},input:{clear:"クリア {0}",prependAction:"{0} の前に追加されたアクション",appendAction:"{0} の後に追加されたアクション",otp:"{0}番目のワンタイムパスワードを入力してください"},fileInput:{counter:"{0} ファイル",counterSize:"{0} ファイル (合計 {1})"},fileUpload:{title:"ここにファイルをドラッグ&ドロップ",divider:"または",browse:"ファイルを選択"},timePicker:{am:"午前",pm:"午後",title:"時間を選択",hour:"時",minute:"分",second:"秒",notAllowed:"値は許可されていません"},pagination:{ariaLabel:{root:"ページネーションナビゲーション",next:"次のページ",previous:"前のページ",page:"{0}ページ目に移動",currentPage:"現在のページ、ページ {0}",first:"最初のページ",last:"最後のページ"}},stepper:{next:"次へ",prev:"前へ"},rating:{ariaLabel:{item:"評価 {1} のうち {0}"}},loading:"ロード中...",infiniteScroll:{loadMore:"さらに読み込む",empty:"データがありません"},rules:{required:"このフィールドは必須です",email:"有効なメールアドレスを入力してください",number:"このフィールドには数字のみ入力できます",integer:"このフィールドには整数のみ入力できます",capital:"このフィールドには大文字のみ入力できます",maxLength:"最大{0}文字まで入力してください",minLength:"最低{0}文字以上入力してください",strictLength:"入力されたフィールドの長さが無効です",exclude:"{0}という文字は使用できません",notEmpty:"少なくとも1つの値を選んでください",pattern:"無効な形式です"},command:{search:"コマンドを入力するか検索..."},hotkey:{then:"次に",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Enter",escape:"Escape",upArrow:"上矢印",downArrow:"下矢印",leftArrow:"左矢印",rightArrow:"右矢印",backspace:"バックスペース",space:"スペース",plus:"プラス",shortcut:"キーボードショートカット: {0}",or:"または"},video:{play:"再生",pause:"一時停止",seek:"シーク",volume:"音量",showVolume:"音量コントロールを表示",mute:"ミュート",unmute:"ミュート解除",enterFullscreen:"全画面表示",exitFullscreen:"全画面表示を終了"},colorPicker:{ariaLabel:{eyedropper:"画面から色を選択",hueSlider:"色相",alphaSlider:"アルファ",redInput:"赤",greenInput:"緑",blueInput:"青",alphaInput:"アルファ",hueInput:"色相",saturationInput:"彩度",lightnessInput:"明度",hexInput:"HEX値",hexaInput:"アルファ付きHEX値",changeFormat:"カラーフォーマットを変更"}}},gQ={badge:"徽章",open:"打开",close:"关闭",dismiss:"取消",confirmEdit:{ok:"确定",cancel:"取消"},dataIterator:{noResultsText:"没有符合条件的结果",loadingText:"加载中……"},dataTable:{itemsPerPageText:"每页数目:",ariaLabel:{sortDescending:":降序排列。",sortAscending:":升序排列。",sortNone:":未排序。",activateNone:"点击以移除排序。",activateDescending:"点击以降序排列。",activateAscending:"点击以升序排列。"},sortBy:"排序方式"},dataFooter:{itemsPerPageText:"每页数目:",itemsPerPageAll:"全部",nextPage:"下一页",prevPage:"上一页",firstPage:"首页",lastPage:"尾页",pageText:"{0}-{1} 共 {2}"},dateRangeInput:{divider:"至"},datePicker:{itemsSelected:"已选择 {0} 项",range:{title:"选择日期",header:"输入日期"},title:"选择日期",header:"输入日期",input:{placeholder:"输入日期"},ariaLabel:{previousMonth:"上个月",nextMonth:"下个月",selectYear:"选择年份",previousYear:"上一年",nextYear:"下一年",selectMonth:"选择月份",selectDate:"{0}",currentDate:"今天,{0}"}},noDataText:"没有数据",carousel:{prev:"上一张",next:"下一张",ariaLabel:{delimiter:"幻灯片 {0} / {1}"}},calendar:{moreEvents:"还有 {0} 项",today:"今天"},input:{clear:"清除 {0}",prependAction:"{0} 前置操作",appendAction:"{0} 后置操作",otp:"请输入第 {0} 位 OTP"},fileInput:{counter:"{0} 个文件",counterSize:"{0} 个文件(共 {1})"},fileUpload:{title:"拖放文件到此处",divider:"或",browse:"浏览文件"},timePicker:{am:"上午",pm:"下午",title:"选择时间",hour:"小时",minute:"分钟",second:"秒",notAllowed:"值不允许"},pagination:{ariaLabel:{root:"分页导航",next:"下一页",previous:"上一页",page:"转到页面 {0}",currentPage:"当前页 {0}",first:"第一页",last:"最后一页"}},stepper:{next:"下一步",prev:"上一步"},rating:{ariaLabel:{item:"评分 {0} / {1}"}},loading:"加载中...",infiniteScroll:{loadMore:"加载更多",empty:"没有更多内容"},rules:{required:"此字段为必填项",email:"请输入有效的电子邮件地址",number:"此字段只能包含数字",integer:"此字段只能包含整数",capital:"此字段只能包含大写字母",maxLength:"您最多可以输入{0}个字符",minLength:"您必须至少输入{0}个字符",strictLength:"输入字段的长度无效",exclude:"字符{0}是不允许的",notEmpty:"请至少选择一个值",pattern:"格式无效"},command:{search:"输入命令或搜索..."},hotkey:{then:"然后",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Enter",escape:"Escape",upArrow:"上箭头",downArrow:"下箭头",leftArrow:"左箭头",rightArrow:"右箭头",backspace:"退格",space:"空格",plus:"加",shortcut:"键盘快捷键:{0}",or:"或"},video:{play:"播放",pause:"暂停",seek:"跳转",volume:"音量",showVolume:"显示音量控制",mute:"静音",unmute:"取消静音",enterFullscreen:"全屏",exitFullscreen:"退出全屏"},colorPicker:{ariaLabel:{eyedropper:"从屏幕拾取颜色",hueSlider:"色相",alphaSlider:"不透明度",redInput:"红色",greenInput:"绿色",blueInput:"蓝色",alphaInput:"不透明度",hueInput:"色相",saturationInput:"饱和度",lightnessInput:"亮度",hexInput:"HEX 值",hexaInput:"带不透明度 HEX 值",changeFormat:"更改颜色格式"}}},S2e={zhHans:{$vuetify:{...gQ,datePicker:{...gQ.datePicker,title:"",header:"选择日期",okTips:"选择日期才能保存",saveBtn:"保存"}}},en:{$vuetify:{...DP,datePicker:{...DP.datePicker,title:"",header:"Select date",okTips:"You must select a date to save",saveBtn:"Save"}}},ja:{$vuetify:{...mQ,datePicker:{...mQ.datePicker,title:"",header:"日付を選択",okTips:"日付を選択してから保存してください",saveBtn:"ほぞん"}}}},yQ=c2e({legacy:!1,locale:"en",fallbackLocale:"en",messages:S2e}),x2e={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",search:"mdi-magnify"},C2e={component:e=>f.h(XP,{...e,class:"mdi"})};function _2e(){return{svg:{component:KP},class:{component:XP}}}function T2e(e){const t=_2e(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=C2e),So({defaultSet:n,sets:t,aliases:{...x2e,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 bQ(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...n}=e,r=So(t,n),{aliases:a={},components:o={},directives:i={}}=r,l=f.effectScope();return l.run(()=>{const s=kTe(r.defaults),u=cAe(r.display,r.ssr),c=QTe(r.theme),d=T2e(r.icons),h=HTe(r.locale),v=GIe(r.date,h),p=fAe(r.goTo,h);function m(y){for(const w in i)y.directive(w,i[w]);for(const w in o)y.component(w,o[w]);for(const w in a)y.component(w,zo({...a[w],name:w,aliasName:a[w].name}));const b=f.effectScope();if(b.run(()=>{c.install(y)}),y.onUnmount(()=>b.stop()),y.provide(zg,s),y.provide(tN,u),y.provide(q1,c),y.provide(YP,d),y.provide(Wg,h),y.provide(HK,v.options),y.provide(zK,v.instance),y.provide(Cj,p),Bn&&r.ssr)if(y.$nuxt)y.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:w}=y;y.mount=function(){const S=w(...arguments);return f.nextTick(()=>u.update()),y.mount=w,S}}y.mixin({computed:{$vuetify(){return f.reactive({defaults:sy.call(this,zg),display:sy.call(this,tN),theme:sy.call(this,q1),icons:sy.call(this,YP),locale:sy.call(this,Wg),date:sy.call(this,zK)})}}})}function g(){l.stop()}return{install:m,unmount:g,defaults:s,display:u,theme:c,icons:d,locale:h,date:v,goTo:p}})}const k2e="3.12.5";bQ.version=k2e;function sy(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}const A2e={defaultTheme:"light",themes:{light:{dark:!1,colors:{primary:"#3E63DD","on-primary":"#fff","primary-darken-1":"#3451B2","primary-darken-2":"#101D46","primary-lighten-1":"#8DA4EF","primary-lighten-2":"#E6EDFE",secondary:"#5B6471","on-secondary":"#fff","secondary-darken-1":"#444C58","secondary-darken-2":"#19212B","secondary-lighten-1":"#C2CDDC","secondary-lighten-2":"#E4ECFE",accent:"#82B1FF",info:"#0091FF","on-info":"#fff","info-darken-1":"#006ADC","info-darken-2":"#00254D","info-lighten-1":"#5EB0EF","info-lighten-2":"#E1F0FF",success:"#30A46C","on-success":"#fff","success-darken-1":"#18794E","success-darken-2":"#153226","success-lighten-1":"#5BB98C","success-lighten-2":"#DDF3E4",warning:"#F76808","on-warning":"#fff","warning-darken-1":"#BD4B00","warning-darken-2":"#451E11","warning-lighten-1":"#FA934E","warning-lighten-2":"#FFE8D7",error:"#E5484D","on-error":"#fff","error-darken-1":"#CD2B31","error-darken-2":"#381316","error-lighten-1":"#EB9091","error-lighten-2":"#FFE5E5",background:"#fff","on-background":"#212121",surface:"#fff","on-surface":"#212121",grey:"#9E9E9E","grey-lighten-1":"#BDBDBD","grey-lighten-2":"#E0E0E0","grey-lighten-3":"#EEEEEE","grey-lighten-4":"#F5F5F5","grey-lighten-5":"#FAFAFA","grey-darken-1":"#757575","grey-darken-2":"#616161","grey-darken-3":"#424242","grey-darken-4":"#212121",black:"rgba(0, 0, 0, 0.87)","black-lighten-1":"rgba(0, 0, 0, 0.6)","black-lighten-2":"rgba(0, 0, 0, 0.58)","black-lighten-3":"rgba(0, 0, 0, 0.54)","black-lighten-4":"rgba(0, 0, 0, 0.42)","black-lighten-5":"rgba(0, 0, 0, 0.38)","black-lighten-6":"rgba(0, 0, 0, 0.26)","black-lighten-7":"rgba(0, 0, 0, 0.2)","black-lighten-8":"rgba(0, 0, 0, 0.18)","black-lighten-9":"rgba(0, 0, 0, 0.12)","black-lighten-10":"rgba(0, 0, 0, 0.06)"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":1,"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":"#212121","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000","shadow-key-umbra-color":"#000000","shadow-xs-opacity":"0.16","shadow-sm-opacity":"0.18","shadow-md-opacity":"0.20","shadow-lg-opacity":"0.22","shadow-xl-opacity":"0.24"}}}},wQ=bQ({locale:{adapter:pNe({i18n:yQ,useI18n:fT})},theme:A2e,components:oNe,directives:vNe}),SQ="en",qL=200,E2e=qL-80,xQ=20,CQ=1e5,_Q=16,hT=6,vT=10,pT=2,I2e=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#000000","#333333","#666666","#999999","#CCCCCC","#D5D5D4","#E8E8E8","#EEEEEE"],$L="Roboto",M2e=[{title:"editor.default",value:$L,divider:!0,default:!0},{title:"Arial",value:"Arial"},{title:"Arial Black",value:"Arial Black"},{title:"Georgia",value:"Georgia"},{title:"Impact",value:"Impact"},{title:"Helvetica",value:"Helvetica"},{title:"Tahoma",value:"Tahoma"},{title:"Times New Roman",value:"Times New Roman"},{title:"Verdana",value:"Verdana"},{title:"Courier New",value:"Courier New",divider:!0},{title:"Monaco",value:"Monaco"},{title:"Monospace",value:"monospace"}],e2="default",D2e=[8,10,12,14,16,18,20,24,30,36,48,60,72],uy="default";var mT=(e=>(e[e["size-small"]=200]="size-small",e[e["size-medium"]=500]="size-medium",e["size-large"]="100%",e))(mT||{}),gT=(e=>(e[e["size-small"]=480]="size-small",e[e["size-medium"]=640]="size-medium",e["size-large"]="100%",e))(gT||{});const V2e={image:["float-left","float-none","float-right","divider","image-size-small","image-size-medium","image-size-large","divider","textAlign","divider","image","image-aspect-ratio","remove"],text:["bold","italic","underline","strike","divider","color","highlight","textAlign","divider","link"],link:["bold","italic","underline","strike","divider","color","highlight","textAlign","divider","link","unlink","link-open"],video:["video-size-small","video-size-medium","video-size-large","divider","video","remove"]},yT=f.reactive({extensions:[]});function P2e(e){yT.defaultLang=e.defaultLang,yT.defaultMarkdownTheme=e.defaultMarkdownTheme,yT.extensions=e.extensions??[]}function bT(){return{state:yT}}var TQ=typeof global=="object"&&global&&global.Object===Object&&global,N2e=typeof self=="object"&&self&&self.Object===Object&&self,Mu=TQ||N2e||Function("return this")(),Du=Mu.Symbol,kQ=Object.prototype,L2e=kQ.hasOwnProperty,O2e=kQ.toString,Nw=Du?Du.toStringTag:void 0;function R2e(e){var t=L2e.call(e,Nw),n=e[Nw];try{e[Nw]=void 0;var r=!0}catch{}var a=O2e.call(e);return r&&(t?e[Nw]=n:delete e[Nw]),a}var B2e=Object.prototype,F2e=B2e.toString;function H2e(e){return F2e.call(e)}var z2e="[object Null]",W2e="[object Undefined]",AQ=Du?Du.toStringTag:void 0;function cy(e){return e==null?e===void 0?W2e:z2e:AQ&&AQ in Object(e)?R2e(e):H2e(e)}function Wv(e){return e!=null&&typeof e=="object"}var G2e="[object Symbol]";function wT(e){return typeof e=="symbol"||Wv(e)&&cy(e)==G2e}function EQ(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=pOe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function bOe(e){return function(){return e}}var OQ=function(){try{var e=Yv(Object,"defineProperty");return e({},"",{}),e}catch{}}(),wOe=OQ?function(e,t){return OQ(e,"toString",{configurable:!0,enumerable:!1,value:bOe(t),writable:!0})}:t2,SOe=yOe(wOe);function xOe(e,t,n,r){for(var a=e.length,o=n+-1;++o-1}var AOe=9007199254740991,EOe=/^(?:0|[1-9]\d*)$/;function RQ(e,t){var n=typeof e;return t=t??AOe,!!t&&(n=="number"||n!="symbol"&&EOe.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=DOe}function HQ(e){return e!=null&&a2(e.length)&&!NQ(e)}var VOe=Object.prototype;function POe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||VOe;return e===n}function NOe(e,t){for(var n=-1,r=Array(e);++n-1}function HRe(e,t){var n=this.__data__,r=ST(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Zc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,v=n&kBe?new Bw:void 0;for(o.set(e,t),o.set(t,e);++d=t||T<0||d&&A>=o}function y(){var x=v2();if(g(x))return b(x);l=setTimeout(y,m(x))}function b(x){return l=void 0,h&&r?v(x):(r=a=void 0,i)}function w(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function S(){return l===void 0?i:b(v2())}function _(){var x=v2(),T=g(x);if(r=arguments,a=this,s=x,T){if(l===void 0)return p(s);if(d)return clearTimeout(l),l=setTimeout(y,t),v(s)}return l===void 0&&(l=setTimeout(y,t)),i}return _.cancel=w,_.flush=S,_}function p2(e){return Wv(e)&&HQ(e)}var pFe=200;function mFe(e,t,n,r){var a=-1,o=kOe,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=EQ(t,jQ(n))),t.length>=pFe&&(o=c7,i=!1,t=new Bw(t));e:for(;++an?n:e}const m2=e=>typeof e=="number",Hw=e=>typeof e=="string",dy=e=>typeof e=="boolean",xFe=e=>typeof e=="function",zw=(e,t="px")=>{if(!e)return e;const n=m2(e)?String(e):e,r=Number.parseFloat(n),a=n.match(/[a-zA-Z%]+$/),o=a?a[0]:t;return Number.isNaN(r)?e:r+o};function CFe(e,t){const{extensions:n=[]}=e.extensionManager??{};return!!n.find(r=>r.name===t)}function y7(e,t){const{state:n}=bT(),r=f.computed(()=>dy(f.unref(e))?e2:Hw(n.defaultMarkdownTheme)&&n.defaultMarkdownTheme?n.defaultMarkdownTheme:e2),a=f.computed(()=>({[`markdown-theme-${f.unref(r)}`]:!!Hw(f.unref(r))}));function o(i){!dy(f.unref(e))&&f.unref(e)!==i&&t?.(i)}return f.watch(r,i=>o(i)),f.watch(e,i=>{i&&Hw(i)&&n.defaultMarkdownTheme!==i&&(n.defaultMarkdownTheme=i)}),n.defaultMarkdownTheme&&o(n.defaultMarkdownTheme),{markdownThemeStyle:a}}function b7(e){return f.getCurrentScope()?(f.onScopeDispose(e),!0):!1}const fy=new WeakMap,_Fe=(...e)=>{var t;const n=e[0],r=(t=f.getCurrentInstance())==null?void 0:t.proxy;if(r==null)throw new Error("injectLocal must be called in setup");return fy.has(r)&&n in fy.get(r)?fy.get(r)[n]:f.inject(...e)},TFe=(e,t)=>{var n;const r=(n=f.getCurrentInstance())==null?void 0:n.proxy;if(r==null)throw new Error("provideLocal must be called in setup");fy.has(r)||fy.set(r,Object.create(null));const a=fy.get(r);a[e]=t,f.provide(e,t)};function kFe(e,t){const n=Symbol(e.name||"InjectionState"),r=void 0;return[(...a)=>{const o=e(...a);return TFe(n,o),o},()=>_Fe(n,r)]}function w7(e){return typeof e=="function"?e():f.unref(e)}const S7=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const AFe=Object.prototype.toString,EFe=e=>AFe.call(e)==="[object Object]",IFe=()=>{},MFe=S7?window:void 0,DFe=S7?window.document:void 0;function g2(e){var t;const n=w7(e);return(t=n?.$el)!=null?t:n}function x7(...e){let t,n,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,a]=e,t=MFe):[t,n,r,a]=e,!t)return IFe;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(c=>c()),o.length=0},l=(c,d,h,v)=>(c.addEventListener(d,h,v),()=>c.removeEventListener(d,h,v)),s=f.watch(()=>[g2(t),w7(a)],([c,d])=>{if(i(),!c)return;const h=EFe(d)?{...d}:d;o.push(...n.flatMap(v=>r.map(p=>l(c,v,p,h))))},{immediate:!0,flush:"post"}),u=()=>{s(),i()};return b7(u),u}function VFe(){const e=f.ref(!1),t=f.getCurrentInstance();return t&&f.onMounted(()=>{e.value=!0},t),e}function PFe(e){const t=VFe();return f.computed(()=>(t.value,!!e()))}const C7=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function NFe(e,t={}){const{document:n=DFe,autoExit:r=!1}=t,a=f.computed(()=>{var y;return(y=g2(e))!=null?y:n?.querySelector("html")}),o=f.ref(!1),i=f.computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(y=>n&&y in n||a.value&&y in a.value)),l=f.computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(y=>n&&y in n||a.value&&y in a.value)),s=f.computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(y=>n&&y in n||a.value&&y in a.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(y=>n&&y in n),c=PFe(()=>a.value&&n&&i.value!==void 0&&l.value!==void 0&&s.value!==void 0),d=()=>u?n?.[u]===a.value:!1,h=()=>{if(s.value){if(n&&n[s.value]!=null)return n[s.value];{const y=a.value;if(y?.[s.value]!=null)return!!y[s.value]}}return!1};async function v(){if(!(!c.value||!o.value)){if(l.value)if(n?.[l.value]!=null)await n[l.value]();else{const y=a.value;y?.[l.value]!=null&&await y[l.value]()}o.value=!1}}async function p(){if(!c.value||o.value)return;h()&&await v();const y=a.value;i.value&&y?.[i.value]!=null&&(await y[i.value](),o.value=!0)}async function m(){await(o.value?v():p())}const g=()=>{const y=h();(!y||y&&d())&&(o.value=y)};return x7(n,C7,g,!1),x7(()=>g2(a),C7,g,!1),r&&b7(v),{isSupported:c,isFullscreen:o,enter:p,exit:v,toggle:m}}const[LFe,y2]=kFe(()=>{const{state:e}=bT(),t=f.reactive({extensions:e.extensions??[],defaultLang:SQ,defaultMarkdownTheme:e2,isFullscreen:!1,color:void 0,highlight:void 0}),n=f.computed(()=>t.isFullscreen);function r(){t.isFullscreen=!t.isFullscreen}return f.watchEffect(()=>{t.extensions=e.extensions,t.defaultLang=e.defaultLang,t.defaultMarkdownTheme=e.defaultMarkdownTheme}),{state:t,isFullscreen:n,toggleFullscreen:r}}),_7="[vuetify-pro-tiptap]";class T7{static warn(t){console.warn(`${_7}: ${t}`)}static error(t){console.error(`${_7}: ${t}`)}}function OFe(e){return e=e||new Map,{all:e,on(t,n){const r=e.get(t);r?r.push(n):e.set(t,[n])},off(t,n){const r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let r=e.get(t);r&&r.slice().map(a=>{a(n)}),r=e.get("*"),r&&r.slice().map(a=>{a(t,n)})}}}const RFe={"editor.remove":"Entfernen","editor.words":"WÖRTER","editor.characters":"ZEICHEN","editor.default":"Standard","editor.size.small.tooltip":"Klein","editor.size.medium.tooltip":"Mittel","editor.size.large.tooltip":"Groß","editor.bold.tooltip":"Fett","editor.italic.tooltip":"Kursiv","editor.underline.tooltip":"Unterstrichen","editor.strike.tooltip":"Durchgestrichen","editor.color.tooltip":"Farbe","editor.highlight.tooltip":"Hervorheben","editor.heading.tooltip":"Überschriften","editor.heading.h1.tooltip":"Überschrift 1","editor.heading.h2.tooltip":"Überschrift 2","editor.heading.h3.tooltip":"Überschrift 3","editor.heading.h4.tooltip":"Überschrift 4","editor.heading.h5.tooltip":"Überschrift 5","editor.heading.h6.tooltip":"Überschrift 6","editor.paragraph.tooltip":"Absatz","editor.textalign.tooltip":"Ausrichten","editor.textalign.left.tooltip":"Links","editor.textalign.center.tooltip":"Zentriert","editor.textalign.right.tooltip":"Rechts","editor.textalign.justify.tooltip":"Blocksatz","editor.fontFamily.tooltip":"Schriftart","editor.fontSize.tooltip":"Schriftgröße","editor.superscript.tooltip":"Hochgestellt","editor.subscript.tooltip":"Tiefgestellt","editor.bulletlist.tooltip":"Aufzählungsliste","editor.orderedlist.tooltip":"Nummerierte Liste","editor.tasklist.tooltip":"Aufgabenliste","editor.indent.tooltip":"Einzug","editor.outdent.tooltip":"Ausrücken","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Link entfernen","editor.link.open":"Link öffnen","editor.link.dialog.title":"Link einfügen","editor.link.dialog.link":"Link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"In neuem Tab öffnen","editor.link.dialog.button.apply":"Anwenden","editor.markdownTheme.tooltip":"Thema","editor.image.tooltip":"Bild","editor.image.float.left.tooltip":"Links ausrichten","editor.image.float.none.tooltip":"Keine Ausrichtung","editor.image.float.right.tooltip":"Rechts ausrichten","editor.image.dialog.title":"Bild einfügen","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Hochladen","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt"},BFe={"editor.remove":"Remove","editor.words":"WORDS","editor.characters":"CHARACTERS","editor.default":"default","editor.size.small.tooltip":"Small","editor.size.medium.tooltip":"Medium","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Bold","editor.italic.tooltip":"Italic","editor.underline.tooltip":"Underline","editor.strike.tooltip":"Strike","editor.color.tooltip":"Color","editor.highlight.tooltip":"Highlight","editor.heading.tooltip":"Headings","editor.heading.h1.tooltip":"Heading 1","editor.heading.h2.tooltip":"Heading 2","editor.heading.h3.tooltip":"Heading 3","editor.heading.h4.tooltip":"Heading 4","editor.heading.h5.tooltip":"Heading 5","editor.heading.h6.tooltip":"Heading 6","editor.paragraph.tooltip":"Paragraph","editor.textalign.tooltip":"Align","editor.textalign.left.tooltip":"Left","editor.textalign.center.tooltip":"Center","editor.textalign.right.tooltip":"Right","editor.textalign.justify.tooltip":"Justify","editor.fontFamily.tooltip":"Font family","editor.fontSize.tooltip":"Font size","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Bullet List","editor.orderedlist.tooltip":"Ordered List","editor.tasklist.tooltip":"Task List","editor.indent.tooltip":"Indent","editor.outdent.tooltip":"Outdent","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Unlink","editor.link.open":"Open link","editor.link.dialog.title":"Insert link","editor.link.dialog.link":"link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Open in new tab","editor.link.dialog.button.apply":"apply","editor.markdownTheme.tooltip":"Theme","editor.image.tooltip":"Image","editor.image.float.left.tooltip":"Float left","editor.image.float.none.tooltip":"Float none","editor.image.float.right.tooltip":"Float right","editor.image.dialog.title":"Insert image","editor.image.dialog.tab.url":"url","editor.image.dialog.tab.upload":"upload","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Lock original aspect ratio","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"apply","editor.video.tooltip":"Video","editor.video.dialog.title":"Insert video","editor.video.dialog.link":"link","editor.video.dialog.button.apply":"apply","editor.table.tooltip":"Table","editor.table.menu.insert_table":"Insert Table","editor.table.menu.insert_table.with_header_row":"With header row","editor.table.menu.add_column_before":"Add Column Before","editor.table.menu.add_column_after":"Add Column After","editor.table.menu.delete_column":"Delete Column","editor.table.menu.add_row_before":"Add Row Before","editor.table.menu.add_row_after":"Add Row After","editor.table.menu.delete_row":"Delete Row","editor.table.menu.merge_or_split_cells":"Merge Or Split Cells","editor.table.menu.delete_table":"Delete Table","editor.blockquote.tooltip":"Blockquote","editor.horizontalrule.tooltip":"Horizontal Rule","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code Block","editor.htmlview.tooltip":"HTML View","editor.clear.tooltip":"Clear Format","editor.undo.tooltip":"Undo","editor.redo.tooltip":"Redo","editor.fullscreen.tooltip.fullscreen":"Fullscreen","editor.fullscreen.tooltip.exit":"Fullscreen Exit"},FFe={"editor.remove":"Rimuovi","editor.words":"Parole","editor.characters":"Caratteri","editor.default":"Predefinito","editor.size.small.tooltip":"Piccolo","editor.size.medium.tooltip":"Medio","editor.size.large.tooltip":"Grande","editor.bold.tooltip":"Grassetto","editor.italic.tooltip":"Corsivo","editor.underline.tooltip":"Sottolineato","editor.strike.tooltip":"Barrato","editor.color.tooltip":"Colore","editor.highlight.tooltip":"Evidenzia","editor.heading.tooltip":"Intestazioni","editor.heading.h1.tooltip":"Intestzione 1","editor.heading.h2.tooltip":"Intestzione 2","editor.heading.h3.tooltip":"Intestzione 3","editor.heading.h4.tooltip":"Intestazione 4","editor.heading.h5.tooltip":"Intestazione 5","editor.heading.h6.tooltip":"Intestazione 6","editor.paragraph.tooltip":"Paragrafo","editor.textalign.tooltip":"Allineamento","editor.textalign.left.tooltip":"Sinistra","editor.textalign.center.tooltip":"Centro","editor.textalign.right.tooltip":"Destra","editor.textalign.justify.tooltip":"Giustificato","editor.fontFamily.tooltip":"Tipo carattere","editor.fontSize.tooltip":"Dimensione carattere","editor.superscript.tooltip":"Apice","editor.subscript.tooltip":"Pedice","editor.bulletlist.tooltip":"Elenco puntato","editor.orderedlist.tooltip":"Elenco numerato","editor.tasklist.tooltip":"Elenco attività","editor.indent.tooltip":"Aumenta rientro","editor.outdent.tooltip":"Riduci rientro","editor.link.tooltip":"Aggiungi collegamento","editor.link.unlink.tooltip":"Rimuovi collegamento","editor.link.open":"Apri collegamento","editor.link.dialog.title":"Inserisci collegamento","editor.link.dialog.link":"Collegamento","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Apri in una nuova finestra","editor.link.dialog.button.apply":"Applica","editor.markdownTheme.tooltip":"Tema","editor.image.tooltip":"Immagine","editor.image.float.left.tooltip":"Allinea a sinistra","editor.image.float.none.tooltip":"Nessun allineamento","editor.image.float.right.tooltip":"Allinea a destra","editor.image.dialog.title":"Inserisci immagine","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Carica","editor.image.dialog.form.link":"Collegamento","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Blocca le proporzioni originali","editor.image.dialog.form.file":"File","editor.image.dialog.button.apply":"Applica","editor.video.tooltip":"Video","editor.video.dialog.title":"Inserisci video","editor.video.dialog.link":"Collegamento","editor.video.dialog.button.apply":"Applica","editor.table.tooltip":"Tabella","editor.table.menu.insert_table":"Inserisci tabella","editor.table.menu.insert_table.with_header_row":"Con riga intestazione","editor.table.menu.add_column_before":"Aggiungi colonna prima","editor.table.menu.add_column_after":"Aggiungi colonna dopo","editor.table.menu.delete_column":"Elimina colonna","editor.table.menu.add_row_before":"Aggiungi riga prima","editor.table.menu.add_row_after":"Aggiungi riga dopo","editor.table.menu.delete_row":"Elimina riga","editor.table.menu.merge_or_split_cells":"Unisci o dividi celle","editor.table.menu.delete_table":"Elimina tabella","editor.blockquote.tooltip":"Citazione","editor.horizontalrule.tooltip":"Linea orizzontale","editor.code.tooltip":"Codice","editor.codeblock.tooltip":"Blocco di codice","editor.clear.tooltip":"Rimuovi formattazione","editor.undo.tooltip":"Annulla","editor.redo.tooltip":"Ripristina","editor.fullscreen.tooltip.fullscreen":"Schermo intero","editor.fullscreen.tooltip.exit":"Esci da schermo intero"},HFe={"editor.remove":"Verwijderen","editor.words":"WOORDEN","editor.characters":"KARAKTERS","editor.default":"standaard","editor.size.small.tooltip":"Klein","editor.size.medium.tooltip":"Middelmatig","editor.size.large.tooltip":"Cover","editor.bold.tooltip":"Dikgedrukt","editor.italic.tooltip":"Cursief","editor.underline.tooltip":"Onderstreept","editor.strike.tooltip":"Doorgetrokken","editor.color.tooltip":"Kleur","editor.highlight.tooltip":"Markeren","editor.heading.tooltip":"Koppen","editor.heading.h1.tooltip":"Kop 1","editor.heading.h2.tooltip":"Kop 2","editor.heading.h3.tooltip":"Kop 3","editor.heading.h4.tooltip":"Kop 4","editor.heading.h5.tooltip":"Kop 5","editor.heading.h6.tooltip":"Kop 6","editor.paragraph.tooltip":"Paragraaf","editor.textalign.tooltip":"Uitlijnen","editor.textalign.left.tooltip":"Links","editor.textalign.center.tooltip":"Midden","editor.textalign.right.tooltip":"Rechts","editor.textalign.justify.tooltip":"Justify","editor.fontFamily.tooltip":"Font familie","editor.fontSize.tooltip":"Font grootte","editor.superscript.tooltip":"Superscript","editor.subscript.tooltip":"Subscript","editor.bulletlist.tooltip":"Ongenummerde lijst","editor.orderedlist.tooltip":"Genummerde lijst","editor.tasklist.tooltip":"Takenlijst","editor.indent.tooltip":"Inspringing vergroten","editor.outdent.tooltip":"Inspringing verkleinen","editor.link.tooltip":"Link","editor.link.unlink.tooltip":"Link verwijderen","editor.link.open":"Link openen","editor.link.dialog.title":"Link invoegen","editor.link.dialog.link":"link","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"Openen in nieuw tabblad","editor.link.dialog.button.apply":"Toepassen","editor.markdownTheme.tooltip":"Thema","editor.image.tooltip":"Afbeelding","editor.image.float.left.tooltip":"Zweef links","editor.image.float.none.tooltip":"Niet zweven","editor.image.float.right.tooltip":"Zweef rechts","editor.image.dialog.title":"Afbeelding invoegen","editor.image.dialog.tab.url":"URL","editor.image.dialog.tab.upload":"Upload","editor.image.dialog.form.link":"Link","editor.image.dialog.form.alt":"Alt","editor.image.dialog.form.aspectRatio":"Originele aspect ratio vastzetten","editor.image.dialog.form.file":"Bestand","editor.image.dialog.button.apply":"Toepassen","editor.video.tooltip":"Video","editor.video.dialog.title":"Video invoegen","editor.video.dialog.link":"link","editor.video.dialog.button.apply":"Toepassen","editor.table.tooltip":"Tabel","editor.table.menu.insert_table":"Tabel invoegen","editor.table.menu.insert_table.with_header_row":"Met kop rij","editor.table.menu.add_column_before":"Kolom ervoor invoegen","editor.table.menu.add_column_after":"Kolom erna invoegen","editor.table.menu.delete_column":"Kolom verwijderen","editor.table.menu.add_row_before":"Rij ervoor invoegen","editor.table.menu.add_row_after":"Rij erna invoegen","editor.table.menu.delete_row":"Rij verwijderen","editor.table.menu.merge_or_split_cells":"Cellen samenvoegen/splitsen","editor.table.menu.delete_table":"Tabel verwijderen","editor.blockquote.tooltip":"Citaatblok","editor.horizontalrule.tooltip":"Horizontale lijn","editor.code.tooltip":"Code","editor.codeblock.tooltip":"Code blok","editor.clear.tooltip":"Formattering verwijderen","editor.undo.tooltip":"Stap terug","editor.redo.tooltip":"Stap verder","editor.fullscreen.tooltip.fullscreen":"Volledig scherm","editor.fullscreen.tooltip.exit":"Volledig scherm verlaten"},zFe={"editor.remove":"删除","editor.words":"单词","editor.characters":"字符","editor.default":"默认","editor.size.small.tooltip":"小尺寸","editor.size.medium.tooltip":"中等尺寸","editor.size.large.tooltip":"铺满","editor.bold.tooltip":"粗体","editor.italic.tooltip":"斜体","editor.underline.tooltip":"下划线","editor.strike.tooltip":"中划线","editor.color.tooltip":"文本颜色","editor.highlight.tooltip":"文本高亮","editor.heading.tooltip":"标题","editor.heading.h1.tooltip":"标题 1","editor.heading.h2.tooltip":"标题 2","editor.heading.h3.tooltip":"标题 3","editor.heading.h4.tooltip":"标题 4","editor.heading.h5.tooltip":"标题 5","editor.heading.h6.tooltip":"标题 6","editor.paragraph.tooltip":"正文","editor.textalign.tooltip":"对齐方式","editor.textalign.left.tooltip":"左对齐","editor.textalign.center.tooltip":"居中对齐","editor.textalign.right.tooltip":"右对齐","editor.textalign.justify.tooltip":"两端对齐","editor.fontFamily.tooltip":"字体","editor.fontSize.tooltip":"字体大小","editor.superscript.tooltip":"上标","editor.subscript.tooltip":"下标","editor.bulletlist.tooltip":"无序列表","editor.orderedlist.tooltip":"有序列表","editor.tasklist.tooltip":"任务列表","editor.indent.tooltip":"增加缩进","editor.outdent.tooltip":"减少缩进","editor.link.tooltip":"网络链接","editor.link.unlink.tooltip":"取消链接","editor.link.open":"打开链接","editor.link.dialog.title":"插入链接","editor.link.dialog.link":"链接","editor.link.dialog.rel":"rel","editor.link.dialog.openInNewTab":"在新标签页中打开","editor.link.dialog.button.apply":"应用","editor.markdownTheme.tooltip":"主题","editor.image.tooltip":"图片","editor.image.float.left.tooltip":"左浮动","editor.image.float.none.tooltip":"无浮动","editor.image.float.right.tooltip":"右浮动","editor.image.dialog.title":"插入图片","editor.image.dialog.tab.url":"网络图片","editor.image.dialog.tab.upload":"本地图片","editor.image.dialog.form.link":"链接","editor.image.dialog.form.alt":"说明","editor.image.dialog.form.aspectRatio":"锁定原有长宽比","editor.image.dialog.form.file":"文件","editor.image.dialog.button.apply":"应用","editor.video.tooltip":"视频","editor.video.dialog.title":"插入视频","editor.video.dialog.link":"网络链接","editor.video.dialog.button.apply":"应用","editor.table.tooltip":"表格","editor.table.menu.insert_table":"插入表格","editor.table.menu.insert_table.with_header_row":"带标题行","editor.table.menu.add_column_before":"向左插入一列","editor.table.menu.add_column_after":"向右插入一列","editor.table.menu.delete_column":"删除列","editor.table.menu.add_row_before":"向上插入一行","editor.table.menu.add_row_after":"向下插入一行","editor.table.menu.delete_row":"删除行","editor.table.menu.merge_or_split_cells":"合并或拆分单元格","editor.table.menu.delete_table":"删除表格","editor.blockquote.tooltip":"引用","editor.horizontalrule.tooltip":"分隔线","editor.code.tooltip":"代码","editor.codeblock.tooltip":"代码块","editor.htmlview.tooltip":"HTML视图","editor.clear.tooltip":"清除格式","editor.undo.tooltip":"撤销","editor.redo.tooltip":"重做","editor.fullscreen.tooltip.fullscreen":"全屏","editor.fullscreen.tooltip.exit":"退出全屏"},WFe={nl:HFe,zhHans:zFe,en:BFe,de:RFe,it:FFe},hy={lang:SQ,message:WFe};class GFe{emitter;constructor(){this.emitter=OFe()}get lang(){return hy.lang}set lang(t){if(!this.isLangSupported(t)){T7.warn(`Can't find the current language "${t}", Using language "${hy.lang}" by default`);return}hy.lang=t,this.emitter.emit("lang",t)}get message(){return hy.message}set message(t){hy.message=t}loadLangMessage(t){return this.message[t]}isLangSupported(t){return Object.keys(this.message).includes(t)}setLang(t){this.lang=t}registerWatchLang(t){return this.emitter.on("lang",t),{unsubscribe:()=>{this.emitter.off("lang",t)}}}setMessage(t,n){this.message[t]=n}buildI18nHandler(t){t||(t=this.lang);const n=this.loadLangMessage(t);return function(r){return n[r]||r}}}const kT=new GFe,qc=()=>{const e=f.ref(hy.lang),t=f.computed(()=>kT.buildI18nHandler(f.unref(e)));return f.watchEffect(n=>{const r=kT.registerWatchLang(a=>{e.value=a});n(()=>{r.unsubscribe()})}),{lang:e,t}};function _o(e){this.content=e}_o.prototype={constructor:_o,find:function(e){for(var t=0;t>1}},_o.from=function(e){if(e instanceof _o)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new _o(t)};function k7(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let a=e.child(r),o=t.child(r);if(a==o){n+=a.nodeSize;continue}if(!a.sameMarkup(o))return n;if(a.isText&&a.text!=o.text){for(let i=0;a.text[i]==o.text[i];i++)n++;return n}if(a.content.size||o.content.size){let i=k7(a.content,o.content,n+1);if(i!=null)return i}n+=a.nodeSize}}function A7(e,t,n,r){for(let a=e.childCount,o=t.childCount;;){if(a==0||o==0)return a==o?null:{a:n,b:r};let i=e.child(--a),l=t.child(--o),s=i.nodeSize;if(i==l){n-=s,r-=s;continue}if(!i.sameMarkup(l))return{a:n,b:r};if(i.isText&&i.text!=l.text){let u=0,c=Math.min(i.text.length,l.text.length);for(;ut&&r(s,a+l,o||null,i)!==!1&&s.content.size){let c=l+1;s.nodesBetween(Math.max(0,t-c),Math.min(s.content.size,n-c),r,a+c)}l=u}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,n,r,a){let o="",i=!0;return this.nodesBetween(t,n,(l,s)=>{let u=l.isText?l.text.slice(Math.max(t,s)-s,n-s):l.isLeaf?a?typeof a=="function"?a(l):a:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(i?i=!1:o+=r),o+=u},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,a=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(a[a.length-1]=n.withText(n.text+r.text),o=1);ot)for(let o=0,i=0;it&&((in)&&(l.isText?l=l.cut(Math.max(0,t-i),Math.min(l.text.length,n-i)):l=l.cut(Math.max(0,t-i-1),Math.min(l.content.size,n-i-1))),r.push(l),a+=l.nodeSize),i=s}return new ze(r,a)}cutByIndex(t,n){return t==n?ze.empty:t==0&&n==this.content.length?this:new ze(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let a=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return a[t]=n,new ze(a,o)}addToStart(t){return new ze([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ze(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let n=0;nthis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let n=0,r=0;;n++){let a=this.child(n),o=r+a.nodeSize;if(o>=t)return o==t?AT(n+1,o):AT(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,n){if(!n)return ze.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ze(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ze.empty;let n,r=0;for(let a=0;athis.type.rank&&(n||(n=t.slice(0,a)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=t.slice()),r||n.push(this),n}removeFromSet(t){for(let n=0;nr.type.rank-a.type.rank),n}};dr.none=[];class IT extends Error{}class lt{constructor(t,n,r){this.content=t,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=I7(this.content,t+this.openStart,n);return r&&new lt(r,this.openStart,this.openEnd)}removeBetween(t,n){return new lt(E7(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,n){if(!n)return lt.empty;let r=n.openStart||0,a=n.openEnd||0;if(typeof r!="number"||typeof a!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new lt(ze.fromJSON(t,n.content),r,a)}static maxOpen(t,n=!0){let r=0,a=0;for(let o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=t.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)a++;return new lt(t,r,a)}}lt.empty=new lt(ze.empty,0,0);function E7(e,t,n){let{index:r,offset:a}=e.findIndex(t),o=e.maybeChild(r),{index:i,offset:l}=e.findIndex(n);if(a==t||o.isText){if(l!=n&&!e.child(i).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=i)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(E7(o.content,t-a-1,n-a-1)))}function I7(e,t,n,r){let{index:a,offset:o}=e.findIndex(t),i=e.maybeChild(a);if(o==t||i.isText)return r&&!r.canReplace(a,a,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=I7(i.content,t-o-1,n,i);return l&&e.replaceChild(a,i.copy(l))}function UFe(e,t,n){if(n.openStart>e.depth)throw new IT("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new IT("Inconsistent open depths");return M7(e,t,n,0)}function M7(e,t,n,r){let a=e.index(r),o=e.node(r);if(a==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ww(e,t,n,r){let a=(t||e).node(n),o=0,i=t?t.index(n):a.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(Kv(e.nodeAfter,r),o++));for(let l=o;la&&w2(e,t,a+1),i=r.depth>a&&w2(n,r,a+1),l=[];return Ww(null,e,a,l),o&&i&&t.index(a)==n.index(a)?(D7(o,i),Kv(Xv(o,V7(e,t,n,r,a+1)),l)):(o&&Kv(Xv(o,MT(e,t,a+1)),l),Ww(t,n,a,l),i&&Kv(Xv(i,MT(n,r,a+1)),l)),Ww(r,null,a,l),new ze(l)}function MT(e,t,n){let r=[];if(Ww(null,e,n,r),e.depth>n){let a=w2(e,t,n+1);Kv(Xv(a,MT(e,t,n+1)),r)}return Ww(t,null,n,r),new ze(r)}function YFe(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let a=n-1;a>=0;a--)r=t.node(a).copy(ze.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}class Gw{constructor(t,n,r){this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,n=this.index(this.depth);if(n==t.childCount)return null;let r=this.pos-this.path[this.path.length-1],a=t.child(n);return r?t.child(n).cut(r):a}get nodeBefore(){let t=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(t).cut(0,n):t==0?null:this.parent.child(t-1)}posAtIndex(t,n){n=this.resolveDepth(n);let r=this.path[n*3],a=n==0?0:this.path[n*3-1]+1;for(let o=0;o0;n--)if(this.start(n)<=t&&this.end(n)>=t)return n;return 0}blockRange(t=this,n){if(t.pos=0;r--)if(t.pos<=this.end(r)&&(!n||n(this.node(r))))return new DT(this,t,r);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&n<=t.content.size))throw new RangeError("Position "+n+" out of range");let r=[],a=0,o=n;for(let i=t;;){let{index:l,offset:s}=i.content.findIndex(o),u=o-s;if(r.push(i,l,a+s),!u||(i=i.child(l),i.isText))break;o=u-1,a+=s+1}return new Gw(n,r,o)}static resolveCached(t,n){let r=P7.get(t);if(r)for(let o=0;ot&&this.nodesBetween(t,n,o=>(r.isInSet(o.marks)&&(a=!0),!a)),a}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),N7(this.marks,t)}contentMatchAt(t){let n=this.type.contentMatch.matchFragment(this.content,0,t);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(t,n,r=ze.empty,a=0,o=r.childCount){let i=this.contentMatchAt(t).matchFragment(r,a,o),l=i&&i.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let s=a;sn.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let t={type:this.type.name};for(let n in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(n=>n.toJSON())),t}static fromJSON(t,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(t.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(n.text,r)}let a=ze.fromJSON(t,n.content),o=t.nodeType(n.type).create(n.attrs,a,r);return o.type.checkAttrs(o.attrs),o}};$c.prototype.text=void 0;class VT extends $c{constructor(t,n,r,a){if(super(t,n,null,a),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):N7(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,n){return this.text.slice(t,n)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new VT(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new VT(this.type,this.attrs,t,this.marks)}cut(t=0,n=this.text.length){return t==0&&n==this.text.length?this:this.withText(this.text.slice(t,n))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function N7(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Zv{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new ZFe(t,n);if(r.next==null)return Zv.empty;let a=L7(r);r.next&&r.err("Unexpected trailing text");let o=n3e(t3e(a));return r3e(o,r),o}matchType(t){for(let n=0;nu.createAndFill()));for(let u=0;u=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function n(r){t.push(r);for(let a=0;a{let o=a+(r.validEnd?"*":" ")+" ";for(let i=0;i"+t.indexOf(r.next[i].next);return o}).join(` +`)}}Zv.empty=new Zv(!0);class ZFe{constructor(t,n){this.string=t,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function L7(e){let t=[];do t.push(JFe(e));while(e.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function JFe(e){let t=[];do t.push(QFe(e));while(e.next&&e.next!=")"&&e.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function QFe(e){let t=e3e(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else if(e.eat("{"))t=qFe(e,t);else break;return t}function O7(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function qFe(e,t){let n=O7(e),r=n;return e.eat(",")&&(e.next!="}"?r=O7(e):r=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function $Fe(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let a=[];for(let o in n){let i=n[o];i.isInGroup(t)&&a.push(i)}return a.length==0&&e.err("No node type or group '"+t+"' found"),a}function e3e(e){if(e.eat("(")){let t=L7(e);return e.eat(")")||e.err("Missing closing paren"),t}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let t=$Fe(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function t3e(e){let t=[[]];return a(o(e,0),n()),t;function n(){return t.push([])-1}function r(i,l,s){let u={term:s,to:l};return t[i].push(u),u}function a(i,l){i.forEach(s=>s.to=l)}function o(i,l){if(i.type=="choice")return i.exprs.reduce((s,u)=>s.concat(o(u,l)),[]);if(i.type=="seq")for(let s=0;;s++){let u=o(i.exprs[s],l);if(s==i.exprs.length-1)return u;a(u,l=n())}else if(i.type=="star"){let s=n();return r(l,s),a(o(i.expr,s),s),[r(s)]}else if(i.type=="plus"){let s=n();return a(o(i.expr,l),s),a(o(i.expr,s),s),[r(s)]}else{if(i.type=="opt")return[r(l)].concat(o(i.expr,l));if(i.type=="range"){let s=l;for(let u=0;u{e[i].forEach(({term:l,to:s})=>{if(!l)return;let u;for(let c=0;c{u||a.push([l,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let o=t[r.join(",")]=new Zv(r.indexOf(e.length-1)>-1);for(let i=0;i-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let t in this.attrs)if(this.attrs[t].isRequired)return!0;return!1}compatibleContent(t){return this==t||this.contentMatch.compatible(t.contentMatch)}computeAttrs(t){return!t&&this.defaultAttrs?this.defaultAttrs:H7(this.attrs,t)}create(t=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new $c(this,this.computeAttrs(t),ze.from(n),dr.setFrom(r))}createChecked(t=null,n,r){return n=ze.from(n),this.checkContent(n),new $c(this,this.computeAttrs(t),n,dr.setFrom(r))}createAndFill(t=null,n,r){if(t=this.computeAttrs(t),n=ze.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let a=this.contentMatch.matchFragment(n),o=a&&a.fillBefore(ze.empty,!0);return o?new $c(this,t,n.append(o),dr.setFrom(r)):null}validContent(t){let n=this.contentMatch.matchFragment(t);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(t){if(this.markSet==null)return!0;for(let n=0;nr[o]=new F_e(o,n,i));let a=n.spec.topNode||"doc";if(!r[a])throw new RangeError("Schema is missing its top node type ('"+a+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function a3e(e,t,n){let r=n.split("|");return a=>{let o=a===null?"null":typeof a;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${o}`)}}class o3e{constructor(t,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?a3e(t,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class PT{constructor(t,n,r,a){this.name=t,this.rank=n,this.schema=r,this.spec=a,this.attrs=W7(t,a.attrs),this.excluded=null;let o=F7(this.attrs);this.instance=o?new dr(this,o):null}create(t=null){return!t&&this.instance?this.instance:new dr(this,H7(this.attrs,t))}static compile(t,n){let r=Object.create(null),a=0;return t.forEach((o,i)=>r[o]=new PT(o,a++,n,i)),r}removeFromSet(t){for(var n=0;n-1}}class U7{constructor(t){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let a in t)n[a]=t[a];n.nodes=_o.from(t.nodes),n.marks=_o.from(t.marks||{}),this.nodes=G7.compile(this.spec.nodes,this),this.marks=PT.compile(this.spec.marks,this);let r=Object.create(null);for(let a in this.nodes){if(a in this.marks)throw new RangeError(a+" can not be both a node and a mark");let o=this.nodes[a],i=o.spec.content||"",l=o.spec.marks;if(o.contentMatch=r[i]||(r[i]=Zv.parse(i,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=l=="_"?null:l?Y7(this,l.split(" ")):l==""||!o.inlineContent?[]:null}for(let a in this.marks){let o=this.marks[a],i=o.spec.excludes;o.excluded=i==null?[o]:i==""?[]:Y7(this,i.split(" "))}this.nodeFromJSON=a=>$c.fromJSON(this,a),this.markFromJSON=a=>dr.fromJSON(this,a),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,n=null,r,a){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof G7){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(n,r,a)}text(t,n){let r=this.nodes.text;return new VT(r,r.defaultAttrs,t,dr.setFrom(n))}mark(t,n){return typeof t=="string"&&(t=this.marks[t]),t.create(n)}nodeType(t){let n=this.nodes[t];if(!n)throw new RangeError("Unknown node type: "+t);return n}}function Y7(e,t){let n=[];for(let r=0;r-1)&&n.push(i=s)}if(!i)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}function i3e(e){return e.tag!=null}function l3e(e){return e.style!=null}class Tf{constructor(t,n){this.schema=t,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(a=>{if(i3e(a))this.tags.push(a);else if(l3e(a)){let o=/[^=]*/.exec(a.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(a)}}),this.normalizeLists=!this.tags.some(a=>{if(!/^(ul|ol)\b/.test(a.tag)||!a.node)return!1;let o=t.nodes[a.node];return o.contentMatch.matchType(o)})}parse(t,n={}){let r=new Z7(this,n,!1);return r.addAll(t,dr.none,n.from,n.to),r.finish()}parseSlice(t,n={}){let r=new Z7(this,n,!0);return r.addAll(t,dr.none,n.from,n.to),lt.maxOpen(r.finish())}matchTag(t,n,r){for(let a=r?this.tags.indexOf(r)+1:0;at.length&&(l.charCodeAt(t.length)!=61||l.slice(t.length+1)!=n))){if(i.getAttrs){let s=i.getAttrs(n);if(s===!1)continue;i.attrs=s||void 0}return i}}}static schemaRules(t){let n=[];function r(a){let o=a.priority==null?50:a.priority,i=0;for(;i{r(i=J7(i)),i.mark||i.ignore||i.clearMark||(i.mark=a)})}for(let a in t.nodes){let o=t.nodes[a].spec.parseDOM;o&&o.forEach(i=>{r(i=J7(i)),i.node||i.ignore||i.mark||(i.node=a)})}return n}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new Tf(t,Tf.schemaRules(t)))}}const j7={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},s3e={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},K7={ol:!0,ul:!0},Uw=1,S2=2,Yw=4;function X7(e,t,n){return t!=null?(t?Uw:0)|(t==="full"?S2:0):e&&e.whitespace=="pre"?Uw|S2:n&~Yw}class NT{constructor(t,n,r,a,o,i){this.type=t,this.attrs=n,this.marks=r,this.solid=a,this.options=i,this.content=[],this.activeMarks=dr.none,this.match=o||(i&Yw?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ze.from(t));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,a;return(a=r.findWrapping(t.type))?(this.match=r,a):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Uw)){let r=this.content[this.content.length-1],a;if(r&&r.isText&&(a=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==a[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-a[0].length))}}let n=ze.from(this.content);return!t&&this.match&&(n=n.append(this.match.fillBefore(ze.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(t){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:t.parentNode&&!j7.hasOwnProperty(t.parentNode.nodeName.toLowerCase())}}class Z7{constructor(t,n,r){this.parser=t,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let a=n.topNode,o,i=X7(null,n.preserveWhitespace,0)|(r?Yw:0);a?o=new NT(a.type,a.attrs,dr.none,!0,n.topMatch||a.type.contentMatch,i):r?o=new NT(null,null,dr.none,!0,null,i):o=new NT(t.schema.topNodeType,null,dr.none,!0,null,i),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(t,n){t.nodeType==3?this.addTextNode(t,n):t.nodeType==1&&this.addElement(t,n)}addTextNode(t,n){let r=t.nodeValue,a=this.top,o=a.options&S2?"full":this.localPreserveWS||(a.options&Uw)>0;if(o==="full"||a.inlineContext(t)||/[^ \t\r\n\u000c]/.test(r)){if(o)o!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,` +`);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let i=a.content[a.content.length-1],l=t.previousSibling;(!i||l&&l.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n,!/\S/.test(r)),this.findInText(t)}else this.findInside(t)}addElement(t,n,r){let a=this.localPreserveWS,o=this.top;(t.tagName=="PRE"||/pre/.test(t.style&&t.style.whiteSpace))&&(this.localPreserveWS=!0);let i=t.nodeName.toLowerCase(),l;K7.hasOwnProperty(i)&&this.parser.normalizeLists&&u3e(t);let s=this.options.ruleFromNode&&this.options.ruleFromNode(t)||(l=this.parser.matchTag(t,this,r));e:if(s?s.ignore:s3e.hasOwnProperty(i))this.findInside(t),this.ignoreFallback(t,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(t=s.skip);let u,c=this.needsBlock;if(j7.hasOwnProperty(i))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),u=!0,o.type||(this.needsBlock=!0);else if(!t.firstChild){this.leafFallback(t,n);break e}let d=s&&s.skip?n:this.readStyles(t,n);d&&this.addAll(t,d),u&&this.sync(o),this.needsBlock=c}else{let u=this.readStyles(t,n);u&&this.addElementByRule(t,s,u,s.consuming===!1?l:void 0)}this.localPreserveWS=a}leafFallback(t,n){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` +`),n)}ignoreFallback(t,n){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(t,n){let r=t.style;if(r&&r.length)for(let a=0;a!s.clearMark(u)):n=n.concat(this.parser.schema.marks[s.mark].create(s.attrs)),s.consuming===!1)l=s;else break}}return n}addElementByRule(t,n,r,a){let o,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),r,t.nodeName=="BR")||this.leafFallback(t,r);else{let s=this.enter(i,n.attrs||null,r,n.preserveWhitespace);s&&(o=!0,r=s)}else{let s=this.parser.schema.marks[n.mark];r=r.concat(s.create(n.attrs))}let l=this.top;if(i&&i.isLeaf)this.findInside(t);else if(a)this.addElement(t,r,a);else if(n.getContent)this.findInside(t),n.getContent(t,this.parser.schema).forEach(s=>this.insertNode(s,r,!1));else{let s=t;typeof n.contentElement=="string"?s=t.querySelector(n.contentElement):typeof n.contentElement=="function"?s=n.contentElement(t):n.contentElement&&(s=n.contentElement),this.findAround(t,s,!0),this.addAll(s,r),this.findAround(t,s,!1)}o&&this.sync(l)&&this.open--}addAll(t,n,r,a){let o=r||0;for(let i=r?t.childNodes[r]:t.firstChild,l=a==null?null:t.childNodes[a];i!=l;i=i.nextSibling,++o)this.findAtPoint(t,o),this.addDOM(i,n);this.findAtPoint(t,o)}findPlace(t,n,r){let a,o;for(let i=this.open,l=0;i>=0;i--){let s=this.nodes[i],u=s.findWrapping(t);if(u&&(!a||a.length>u.length+l)&&(a=u,o=s,!u.length))break;if(s.solid){if(r)break;l+=2}}if(!a)return null;this.sync(o);for(let i=0;i(i.type?i.type.allowsMarkType(u.type):Q7(u.type,t))?(s=u.addToSet(s),!1):!0),this.nodes.push(new NT(t,n,s,a,null,l)),this.open++,r}closeExtra(t=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(t){for(let n=this.open;n>=0;n--){if(this.nodes[n]==t)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Uw)}return!1}get currentPos(){this.closeExtra();let t=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let a=r.length-1;a>=0;a--)t+=r[a].nodeSize;n&&t++}return t}findAtPoint(t,n){if(this.find)for(let r=0;r-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let n=t.split("/"),r=this.options.context,a=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(a?0:1),i=(l,s)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;s>=o;s--)if(i(l-1,s))return!0;return!1}else{let c=s>0||s==0&&a?this.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!c||c.name!=u&&!c.isInGroup(u))return!1;s--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function u3e(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let r=t.nodeType==1?t.nodeName.toLowerCase():null;r&&K7.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):r=="li"?n=t:r&&(n=null)}}function c3e(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function J7(e){let t={};for(let n in e)t[n]=e[n];return t}function Q7(e,t){let n=t.schema.nodes;for(let r in n){let a=n[r];if(!a.allowsMarkType(e))continue;let o=[],i=l=>{o.push(l);for(let s=0;s{if(o.length||i.marks.length){let l=0,s=0;for(;l=0;a--){let o=this.serializeMark(t.marks[a],t.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(t,n,r={}){let a=this.marks[t.type.name];return a&<(x2(r),a(t,n),null,t.attrs)}static renderSpec(t,n,r=null,a){return LT(t,n,r,a)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new kf(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let n=q7(t.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(t){return q7(t.marks)}}function q7(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function x2(e){return e.document||window.document}const $7=new WeakMap;function d3e(e){let t=$7.get(e);return t===void 0&&$7.set(e,t=f3e(e)),t}function f3e(e){let t=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")t||(t=[]),t.push(r);else for(let a=0;a-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=a.indexOf(" ");i>0&&(n=a.slice(0,i),a=a.slice(i+1));let l,s=n?e.createElementNS(n,a):e.createElement(a),u=t[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let h=d.indexOf(" ");h>0?s.setAttributeNS(d.slice(0,h),d.slice(h+1),u[d]):d=="style"&&s.style?s.style.cssText=u[d]:s.setAttribute(d,u[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}else{let{dom:v,contentDOM:p}=LT(e,h,n,r);if(s.appendChild(v),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:s,contentDOM:l}}const eq=65535,tq=Math.pow(2,16);function h3e(e,t){return e+t*tq}function nq(e){return e&eq}function v3e(e){return(e-(e&eq))/tq}const rq=1,aq=2,OT=4,oq=8;class C2{constructor(t,n,r){this.pos=t,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&oq)>0}get deletedBefore(){return(this.delInfo&(rq|OT))>0}get deletedAfter(){return(this.delInfo&(aq|OT))>0}get deletedAcross(){return(this.delInfo&OT)>0}}let Jv=class Y1{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&Y1.empty)return Y1.empty}recover(t){let n=0,r=nq(t);if(!this.inverted)for(let a=0;at)break;let u=this.ranges[l+o],c=this.ranges[l+i],d=s+u;if(t<=d){let h=u?t==s?-1:t==d?1:n:n,v=s+a+(h<0?0:c);if(r)return v;let p=t==(n<0?s:d)?null:h3e(l/3,t-s),m=t==s?aq:t==d?rq:OT;return(n<0?t!=s:t!=d)&&(m|=oq),new C2(v,m,p)}a+=c-u}return r?t+a:new C2(t+a,0,null)}touches(t,n){let r=0,a=nq(n),o=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;lt)break;let u=this.ranges[l+o],c=s+u;if(t<=c&&l==a*3)return!0;r+=this.ranges[l+i]-u}return!1}forEach(t){let n=this.inverted?2:1,r=this.inverted?1:2;for(let a=0,o=0;a=0;n--){let a=t.getMirror(n);this.appendMap(t._maps[n].invert(),a!=null&&a>n?r-a-1:void 0)}}invert(){let t=new jw;return t.appendMappingInverted(this),t}map(t,n=1){if(this.mirror)return this._map(t,n,!0);for(let r=this.from;ro&&s!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),a),n.openStart,n.openEnd);return Da.fromReplace(t,this.from,this.to,o)}invert(){return new Pu(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Af(n.pos,r.pos,this.mark)}merge(t){return t instanceof Af&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Af(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Af(n.from,n.to,t.markFromJSON(n.mark))}}Yo.jsonID("addMark",Af);class Pu extends Yo{constructor(t,n,r){super(),this.from=t,this.to=n,this.mark=r}apply(t){let n=t.slice(this.from,this.to),r=new lt(T2(n.content,a=>a.mark(this.mark.removeFromSet(a.marks)),t),n.openStart,n.openEnd);return Da.fromReplace(t,this.from,this.to,r)}invert(){return new Af(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Pu(n.pos,r.pos,this.mark)}merge(t){return t instanceof Pu&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Pu(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Pu(n.from,n.to,t.markFromJSON(n.mark))}}Yo.jsonID("removeMark",Pu);class Ef extends Yo{constructor(t,n){super(),this.pos=t,this.mark=n}apply(t){let n=t.nodeAt(this.pos);if(!n)return Da.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Da.fromReplace(t,this.pos,this.pos+1,new lt(ze.from(r),0,n.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let a=0;ar.pos?null:new ao(n.pos,r.pos,a,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ao(n.from,n.to,n.gapFrom,n.gapTo,lt.fromJSON(t,n.slice),n.insert,!!n.structure)}}Yo.jsonID("replaceAround",ao);function k2(e,t,n){let r=e.resolve(t),a=n-t,o=r.depth;for(;a>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,a--;if(a>0){let i=r.node(o).maybeChild(r.indexAfter(o));for(;a>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,a--}}return!1}function p3e(e,t,n,r){let a=[],o=[],i,l;e.doc.nodesBetween(t,n,(s,u,c)=>{if(!s.isInline)return;let d=s.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let h=Math.max(u,t),v=Math.min(u+s.nodeSize,n),p=r.addToSet(d);for(let m=0;me.step(s)),o.forEach(s=>e.step(s))}function m3e(e,t,n,r){let a=[],o=0;e.doc.nodesBetween(t,n,(i,l)=>{if(!i.isInline)return;o++;let s=null;if(r instanceof PT){let u=i.marks,c;for(;c=r.isInSet(u);)(s||(s=[])).push(c),u=c.removeFromSet(u)}else r?r.isInSet(i.marks)&&(s=[r]):s=i.marks;if(s&&s.length){let u=Math.min(l+i.nodeSize,n);for(let c=0;ce.step(new Pu(i.from,i.to,i.style)))}function A2(e,t,n,r=n.contentMatch,a=!0){let o=e.doc.nodeAt(t),i=[],l=t+1;for(let s=0;s=0;s--)e.step(i[s])}function g3e(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function vy(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),a=e.$from.index(n),o=e.$to.indexAfter(n);if(nn;p--)m||r.index(p)>0?(m=!0,c=ze.from(r.node(p).copy(c)),d++):s--;let h=ze.empty,v=0;for(let p=o,m=!1;p>n;p--)m||a.after(p+1)=0;i--){if(r.size){let l=n[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ze.from(n[i].type.create(n[i].attrs,r))}let a=t.start,o=t.end;e.step(new ao(a,o,a,o,new lt(r,0,0),n.length,!0))}function x3e(e,t,n,r,a){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=e.steps.length;e.doc.nodesBetween(t,n,(i,l)=>{let s=typeof a=="function"?a(i):a;if(i.isTextblock&&!i.hasMarkup(r,s)&&C3e(e.doc,e.mapping.slice(o).map(l),r)){let u=null;if(r.schema.linebreakReplacement){let v=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);v&&!p?u=!1:!v&&p&&(u=!0)}u===!1&&sq(e,i,l,o),A2(e,e.mapping.slice(o).map(l,1),r,void 0,u===null);let c=e.mapping.slice(o),d=c.map(l,1),h=c.map(l+i.nodeSize,1);return e.step(new ao(d,h,d+1,h-1,new lt(ze.from(r.create(s,null,i.marks)),0,0),1,!0)),u===!0&&lq(e,i,l,o),!1}})}function lq(e,t,n,r){t.forEach((a,o)=>{if(a.isText){let i,l=/\r?\n|\r/g;for(;i=l.exec(a.text);){let s=e.mapping.slice(r).map(n+1+o+i.index);e.replaceWith(s,s+1,t.type.schema.linebreakReplacement.create())}}})}function sq(e,t,n,r){t.forEach((a,o)=>{if(a.type==a.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+o);e.replaceWith(i,i+1,t.type.schema.text(` +`))}})}function C3e(e,t,n){let r=e.resolve(t),a=r.index();return r.parent.canReplaceWith(a,a+1,n)}function _3e(e,t,n,r,a){let o=e.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let i=n.create(r,null,a||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,i);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ao(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new lt(ze.from(i),0,0),1,!0))}function ed(e,t,n=1,r){let a=e.resolve(t),o=a.depth-n,i=r&&r[r.length-1]||a.parent;if(o<0||a.parent.type.spec.isolating||!a.parent.canReplace(a.index(),a.parent.childCount)||!i.type.validContent(a.parent.content.cutByIndex(a.index(),a.parent.childCount)))return!1;for(let u=a.depth-1,c=n-2;u>o;u--,c--){let d=a.node(u),h=a.index(u);if(d.type.spec.isolating)return!1;let v=d.content.cutByIndex(h,d.childCount),p=r&&r[c+1];p&&(v=v.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[c]||d;if(!d.canReplace(h+1,d.childCount)||!m.type.validContent(v))return!1}let l=a.indexAfter(o),s=r&&r[0];return a.node(o).canReplaceWith(l,l,s?s.type:a.node(o+1).type)}function T3e(e,t,n=1,r){let a=e.doc.resolve(t),o=ze.empty,i=ze.empty;for(let l=a.depth,s=a.depth-n,u=n-1;l>s;l--,u--){o=ze.from(a.node(l).copy(o));let c=r&&r[u];i=ze.from(c?c.type.create(c.attrs,i):a.node(l).copy(i))}e.step(new ro(t,t,new lt(o.append(i),n,n),!0))}function If(e,t){let n=e.resolve(t),r=n.index();return uq(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function k3e(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let a=0;a0?(o=r.node(a+1),l++,i=r.node(a).maybeChild(l)):(o=r.node(a).maybeChild(l-1),i=r.node(a+1)),o&&!o.isTextblock&&uq(o,i)&&r.node(a).canReplace(l,l+1))return t;if(a==0)break;t=n<0?r.before(a):r.after(a)}}function A3e(e,t,n){let r=null,{linebreakReplacement:a}=e.doc.type.schema,o=e.doc.resolve(t-n),i=o.node().type;if(a&&i.inlineContent){let c=i.whitespace=="pre",d=!!i.contentMatch.matchType(a);c&&!d?r=!1:!c&&d&&(r=!0)}let l=e.steps.length;if(r===!1){let c=e.doc.resolve(t+n);sq(e,c.node(),c.before(),l)}i.inlineContent&&A2(e,t+n-1,i,o.node().contentMatchAt(o.index()),r==null);let s=e.mapping.slice(l),u=s.map(t-n);if(e.step(new ro(u,s.map(t+n,-1),lt.empty,!0)),r===!0){let c=e.doc.resolve(u);lq(e,c.node(),c.before(),e.steps.length)}return e}function E3e(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let a=r.depth-1;a>=0;a--){let o=r.index(a);if(r.node(a).canReplaceWith(o,o,n))return r.before(a+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let a=r.depth-1;a>=0;a--){let o=r.indexAfter(a);if(r.node(a).canReplaceWith(o,o,n))return r.after(a+1);if(o=0;i--){let l=i==r.depth?0:r.pos<=(r.start(i+1)+r.end(i+1))/2?-1:1,s=r.index(i)+(l>0?1:0),u=r.node(i),c=!1;if(o==1)c=u.canReplace(s,s,a);else{let d=u.contentMatchAt(s).findWrapping(a.firstChild.type);c=d&&u.canReplaceWith(s,s,d[0])}if(c)return l==0?r.pos:l<0?r.before(i+1):r.after(i+1)}return null}function BT(e,t,n=t,r=lt.empty){if(t==n&&!r.size)return null;let a=e.resolve(t),o=e.resolve(n);return dq(a,o,r)?new ro(t,n,r):new I3e(a,o,r).fit()}function dq(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}class I3e{constructor(t,n,r){this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=ze.empty;for(let a=0;a<=t.depth;a++){let o=t.node(a);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(a))})}for(let a=t.depth;a>0;a--)this.placed=ze.from(t.node(a).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,a=this.close(t<0?this.$to:r.doc.resolve(t));if(!a)return null;let o=this.placed,i=r.depth,l=a.depth;for(;i&&l&&o.childCount==1;)o=o.firstChild.content,i--,l--;let s=new lt(o,i,l);return t>-1?new ao(r.pos,t,this.$to.pos,this.$to.end(),s,n):s.size||r.pos!=this.$to.pos?new ro(r.pos,a.pos,s):null}findFittable(){let t=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,a=this.unplaced.openEnd;r1&&(a=0),o.type.spec.isolating&&a<=r){t=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?t:this.unplaced.openStart;r>=0;r--){let a,o=null;r?(o=I2(this.unplaced.content,r-1).firstChild,a=o.content):a=this.unplaced.content;let i=a.firstChild;for(let l=this.depth;l>=0;l--){let{type:s,match:u}=this.frontier[l],c,d=null;if(n==1&&(i?u.matchType(i.type)||(d=u.fillBefore(ze.from(i),!1)):o&&s.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:l,parent:o,inject:d};if(n==2&&i&&(c=u.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:l,parent:o,wrap:c};if(o&&u.matchType(o.type))break}}}openMore(){let{content:t,openStart:n,openEnd:r}=this.unplaced,a=I2(t,n);return!a.childCount||a.firstChild.isLeaf?!1:(this.unplaced=new lt(t,n+1,Math.max(r,a.size+n>=t.size-r?n+1:0)),!0)}dropNode(){let{content:t,openStart:n,openEnd:r}=this.unplaced,a=I2(t,n);if(a.childCount<=1&&n>0){let o=t.size-n<=n+a.size;this.unplaced=new lt(Kw(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new lt(Kw(t,n,1),n,r)}placeNodes({sliceDepth:t,frontierDepth:n,parent:r,inject:a,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m1||s==0||m.content.size)&&(d=g,c.push(fq(m.mark(h.allowedMarks(m.marks)),u==1?s:0,u==l.childCount?v:-1)))}let p=u==l.childCount;p||(v=-1),this.placed=Xw(this.placed,n,ze.from(c)),this.frontier[n].match=d,p&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=l;m1&&a==this.$to.end(--r);)++a;return a}findCloseLevel(t){e:for(let n=Math.min(this.depth,t.depth);n>=0;n--){let{match:r,type:a}=this.frontier[n],o=n=0;l--){let{match:s,type:u}=this.frontier[l],c=M2(t,l,u,s,!0);if(!c||c.childCount)continue e}return{depth:n,fit:i,move:o?t.doc.resolve(t.after(n+1)):t}}}}close(t){let n=this.findCloseLevel(t);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Xw(this.placed,n.depth,n.fit)),t=n.move;for(let r=n.depth+1;r<=t.depth;r++){let a=t.node(r),o=a.type.contentMatch.fillBefore(a.content,!0,t.index(r));this.openFrontierNode(a.type,a.attrs,o)}return t}openFrontierNode(t,n=null,r){let a=this.frontier[this.depth];a.match=a.match.matchType(t),this.placed=Xw(this.placed,this.depth,ze.from(t.create(n,r))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(ze.empty,!0);t.childCount&&(this.placed=Xw(this.placed,this.frontier.length,t))}}function Kw(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Kw(e.firstChild.content,t-1,n)))}function Xw(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Xw(e.lastChild.content,t-1,n)))}function I2(e,t){for(let n=0;n1&&(r=r.replaceChild(0,fq(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(ze.empty,!0)))),e.copy(r)}function M2(e,t,n,r,a){let o=e.node(t),i=a?e.indexAfter(t):e.index(t);if(i==o.childCount&&!n.compatibleContent(o.type))return null;let l=r.fillBefore(o.content,!0,i);return l&&!M3e(n,o.content,i)?l:null}function M3e(e,t,n){for(let r=n;r0;h--,v--){let p=a.node(h).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(h)>-1?l=h:a.before(h)==v&&i.splice(1,0,-h)}let s=i.indexOf(l),u=[],c=r.openStart;for(let h=r.content,v=0;;v++){let p=h.firstChild;if(u.push(p),v==r.openStart)break;h=p.content}for(let h=c-1;h>=0;h--){let v=u[h],p=D3e(v.type);if(p&&!v.sameMarkup(a.node(Math.abs(l)-1)))c=h;else if(p||!v.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let v=(h+c+1)%(r.openStart+1),p=u[v];if(p)for(let m=0;m=0&&(e.replace(t,n,r),!(e.steps.length>d));h--){let v=i[h];v<0||(t=a.before(v),n=o.after(v))}}function hq(e,t,n,r,a){if(tr){let o=a.contentMatchAt(0),i=o.fillBefore(e).append(e);e=i.append(o.matchFragment(i).fillBefore(ze.empty,!0))}return e}function P3e(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let a=E3e(e.doc,t,r.type);a!=null&&(t=n=a)}e.replaceRange(t,n,new lt(ze.from(r),0,0))}function N3e(e,t,n){let r=e.doc.resolve(t),a=e.doc.resolve(n),o=vq(r,a);for(let i=0;i0&&(s||r.node(l-1).canReplace(r.index(l-1),a.indexAfter(l-1))))return e.delete(r.before(l),a.after(l))}for(let i=1;i<=r.depth&&i<=a.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&a.end(i)-n!=a.depth-i&&r.start(i-1)==a.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),a.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}function vq(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let a=r;a>=0;a--){let o=e.start(a);if(ot.pos+(t.depth-a)||e.node(a).type.spec.isolating||t.node(a).type.spec.isolating)break;(o==t.start(a)||a==e.depth&&a==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&a&&t.start(a-1)==o-1)&&n.push(a)}return n}class py extends Yo{constructor(t,n,r){super(),this.pos=t,this.attr=n,this.value=r}apply(t){let n=t.nodeAt(this.pos);if(!n)return Da.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let a=n.type.create(r,null,n.marks);return Da.fromReplace(t,this.pos,this.pos+1,new lt(ze.from(a),0,n.isLeaf?0:1))}getMap(){return Jv.empty}invert(t){return new py(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new py(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new py(n.pos,n.attr,n.value)}}Yo.jsonID("attr",py);class Zw extends Yo{constructor(t,n){super(),this.attr=t,this.value=n}apply(t){let n=Object.create(null);for(let a in t.attrs)n[a]=t.attrs[a];n[this.attr]=this.value;let r=t.type.create(n,t.content,t.marks);return Da.ok(r)}getMap(){return Jv.empty}invert(t){return new Zw(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Zw(n.attr,n.value)}}Yo.jsonID("docAttr",Zw);let my=class extends Error{};my=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},my.prototype=Object.create(Error.prototype),my.prototype.constructor=my,my.prototype.name="TransformError";class D2{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new jw}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let n=this.maybeStep(t);if(n.failed)throw new my(n.failed);return this}maybeStep(t){let n=t.apply(this.doc);return n.failed||this.addStep(t,n.doc),n}get docChanged(){return this.steps.length>0}addStep(t,n){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=n}replace(t,n=t,r=lt.empty){let a=BT(this.doc,t,n,r);return a&&this.step(a),this}replaceWith(t,n,r){return this.replace(t,n,new lt(ze.from(r),0,0))}delete(t,n){return this.replace(t,n,lt.empty)}insert(t,n){return this.replaceWith(t,t,n)}replaceRange(t,n,r){return V3e(this,t,n,r),this}replaceRangeWith(t,n,r){return P3e(this,t,n,r),this}deleteRange(t,n){return N3e(this,t,n),this}lift(t,n){return y3e(this,t,n),this}join(t,n=1){return A3e(this,t,n),this}wrap(t,n){return S3e(this,t,n),this}setBlockType(t,n=t,r,a=null){return x3e(this,t,n,r,a),this}setNodeMarkup(t,n,r=null,a){return _3e(this,t,n,r,a),this}setNodeAttribute(t,n,r){return this.step(new py(t,n,r)),this}setDocAttribute(t,n){return this.step(new Zw(t,n)),this}addNodeMark(t,n){return this.step(new Ef(t,n)),this}removeNodeMark(t,n){let r=this.doc.nodeAt(t);if(!r)throw new RangeError("No node at position "+t);if(n instanceof dr)n.isInSet(r.marks)&&this.step(new Qv(t,n));else{let a=r.marks,o,i=[];for(;o=n.isInSet(a);)i.push(new Qv(t,o)),a=o.removeFromSet(a);for(let l=i.length-1;l>=0;l--)this.step(i[l])}return this}split(t,n=1,r){return T3e(this,t,n,r),this}addMark(t,n,r){return p3e(this,t,n,r),this}removeMark(t,n,r){return m3e(this,t,n,r),this}clearIncompatible(t,n,r){return A2(this,t,n,r),this}}const V2=Object.create(null);class Xt{constructor(t,n,r){this.$anchor=t,this.$head=n,this.ranges=r||[new pq(t.min(n),t.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let n=0;n=0;o--){let i=n<0?gy(t.node(0),t.node(o),t.before(o+1),t.index(o),n,r):gy(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,n,r);if(i)return i}return null}static near(t,n=1){return this.findFrom(t,n)||this.findFrom(t,-n)||new gl(t.node(0))}static atStart(t){return gy(t,t,0,0,1)||new gl(t)}static atEnd(t){return gy(t,t,t.content.size,t.childCount,-1)||new gl(t)}static fromJSON(t,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=V2[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(t,n)}static jsonID(t,n){if(t in V2)throw new RangeError("Duplicate use of selection JSON ID "+t);return V2[t]=n,n.prototype.jsonID=t,n}getBookmark(){return Rt.between(this.$anchor,this.$head).getBookmark()}}Xt.prototype.visible=!0;class pq{constructor(t,n){this.$from=t,this.$to=n}}let mq=!1;function gq(e){!mq&&!e.parent.inlineContent&&(mq=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Rt extends Xt{constructor(t,n=t){gq(t),gq(n),super(t,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return Xt.near(r);let a=t.resolve(n.map(this.anchor));return new Rt(a.parent.inlineContent?a:r,r)}replace(t,n=lt.empty){if(super.replace(t,n),n==lt.empty){let r=this.$from.marksAcross(this.$to);r&&t.ensureMarks(r)}}eq(t){return t instanceof Rt&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new FT(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Rt(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){let a=t.resolve(n);return new this(a,r==n?a:t.resolve(r))}static between(t,n,r){let a=t.pos-n.pos;if((!r||a)&&(r=a>=0?1:-1),!n.parent.inlineContent){let o=Xt.findFrom(n,r,!0)||Xt.findFrom(n,-r,!0);if(o)n=o.$head;else return Xt.near(n,r)}return t.parent.inlineContent||(a==0?t=n:(t=(Xt.findFrom(t,-r,!0)||Xt.findFrom(t,r,!0)).$anchor,t.pos0?0:1);a>0?i=0;i+=a){let l=t.child(i);if(l.isAtom){if(!o&&Nt.isSelectable(l))return Nt.create(e,n-(a<0?l.nodeSize:0))}else{let s=gy(e,l,n+a,a<0?l.childCount:0,a,o);if(s)return s}n+=l.nodeSize*a}return null}function yq(e,t,n){let r=e.steps.length-1;if(r{i==null&&(i=c)}),e.setSelection(Xt.near(e.doc.resolve(i),n))}const bq=1,HT=2,wq=4;class O3e extends D2{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=HT,this}ensureMarks(t){return dr.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&HT)>0}addStep(t,n){super.addStep(t,n),this.updated=this.updated&~HT,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,n=!0){let r=this.selection;return n&&(t=t.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||dr.none))),r.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,n,r){let a=this.doc.type.schema;if(n==null)return t?this.replaceSelectionWith(a.text(t),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!t)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let i=this.doc.resolve(n);o=r==n?i.marks():i.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,a.text(t,o)),this.selection.empty||this.setSelection(Xt.near(this.selection.$to)),this}}setMeta(t,n){return this.meta[typeof t=="string"?t:t.key]=n,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=wq,this}get scrolledIntoView(){return(this.updated&wq)>0}}function Sq(e,t){return!t||!e?e:e.bind(t)}class Jw{constructor(t,n,r){this.name=t,this.init=Sq(n.init,r),this.apply=Sq(n.apply,r)}}const R3e=[new Jw("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Jw("selection",{init(e,t){return e.selection||Xt.atStart(t.doc)},apply(e){return e.selection}}),new Jw("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Jw("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class N2{constructor(t,n){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=R3e.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Jw(r.key,r.spec.state,r))})}}class yy{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,n=-1){for(let r=0;rr.toJSON())),t&&typeof t=="object")for(let r in t){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let a=t[r],o=a.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(a,this[a.key]))}return n}static fromJSON(t,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let a=new N2(t.schema,t.plugins),o=new yy(a);return a.fields.forEach(i=>{if(i.name=="doc")o.doc=$c.fromJSON(t.schema,n.doc);else if(i.name=="selection")o.selection=Xt.fromJSON(o.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let l in r){let s=r[l],u=s.spec.state;if(s.key==i.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){o[i.name]=u.fromJSON.call(s,t,n[l],o);return}}o[i.name]=i.init(t,o)}}),o}}function xq(e,t,n){for(let r in e){let a=e[r];a instanceof Function?a=a.bind(t):r=="handleDOMEvents"&&(a=xq(a,t,{})),n[r]=a}return n}class Er{constructor(t){this.spec=t,this.props={},t.props&&xq(t.props,this,this.props),this.key=t.key?t.key.key:Cq("plugin")}getState(t){return t[this.key]}}const L2=Object.create(null);function Cq(e){return e in L2?e+"$"+ ++L2[e]:(L2[e]=0,e+"$")}class ba{constructor(t="key"){this.key=Cq(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const To=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},by=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t};let O2=null;const td=function(e,t,n){let r=O2||(O2=document.createRange());return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},B3e=function(){O2=null},qv=function(e,t,n,r){return n&&(_q(e,t,n,r,-1)||_q(e,t,n,r,1))},F3e=/^(img|br|input|textarea|hr)$/i;function _q(e,t,n,r,a){for(var o;;){if(e==n&&t==r)return!0;if(t==(a<0?0:jl(e))){let i=e.parentNode;if(!i||i.nodeType!=1||Qw(e)||F3e.test(e.nodeName)||e.contentEditable=="false")return!1;t=To(e)+(a<0?0:1),e=i}else if(e.nodeType==1){let i=e.childNodes[t+(a<0?-1:0)];if(i.nodeType==1&&i.contentEditable=="false")if(!((o=i.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)t+=a;else return!1;else e=i,t=a<0?jl(e):0}else return!1}}function jl(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function H3e(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable=="false")return null;e=e.childNodes[t-1],t=jl(e)}else if(e.parentNode&&!Qw(e))t=To(e),e=e.parentNode;else return null}}function z3e(e,t){for(;;){if(e.nodeType==3&&t2),Xl=wy||(Nu?/Mac/.test(Nu.platform):!1),Y3e=Nu?/Win/.test(Nu.platform):!1,nd=/Android \d/.test(Mf),qw=!!Tq&&"webkitFontSmoothing"in Tq.documentElement.style,j3e=qw?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function K3e(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function rd(e,t){return typeof e=="number"?e:e[t]}function X3e(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function Eq(e,t,n){let r=e.someProp("scrollThreshold")||0,a=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let i=n||e.dom;i;){if(i.nodeType!=1){i=by(i);continue}let l=i,s=l==o.body,u=s?K3e(o):X3e(l),c=0,d=0;if(t.topu.bottom-rd(r,"bottom")&&(d=t.bottom-t.top>u.bottom-u.top?t.top+rd(a,"top")-u.top:t.bottom-u.bottom+rd(a,"bottom")),t.leftu.right-rd(r,"right")&&(c=t.right-u.right+rd(a,"right")),c||d)if(s)o.defaultView.scrollBy(c,d);else{let v=l.scrollLeft,p=l.scrollTop;d&&(l.scrollTop+=d),c&&(l.scrollLeft+=c);let m=l.scrollLeft-v,g=l.scrollTop-p;t={left:t.left-m,top:t.top-g,right:t.right-m,bottom:t.bottom-g}}let h=s?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(h))break;i=h=="absolute"?i.offsetParent:by(i)}}function Z3e(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,a;for(let o=(t.left+t.right)/2,i=n+1;i=n-20){r=l,a=s.top;break}}return{refDOM:r,refTop:a,stack:Iq(e.dom)}}function Iq(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=by(r));return t}function J3e({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;Mq(n,r==0?0:r-t)}function Mq(e,t){for(let n=0;n=l){i=Math.max(p.bottom,i),l=Math.min(p.top,l);let m=p.left>t.left?p.left-t.left:p.right=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!s&&p.left<=t.left&&p.right>=t.left&&(s=c,u={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=d+1)}}return!n&&s&&(n=s,a=u,r=0),n&&n.nodeType==3?q3e(n,a):!n||r&&n.nodeType==1?{node:e,offset:o}:Dq(n,a)}function q3e(e,t){let n=e.nodeValue.length,r=document.createRange();for(let a=0;a=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}function H2(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function $3e(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(i.left+i.right)/2?1:-1}return e.docView.posFromDOM(r,a,o)}function tHe(e,t,n,r){let a=-1;for(let o=t,i=!1;o!=e.dom;){let l=e.docView.nearestDesc(o,!0),s;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((s=l.dom.getBoundingClientRect()).width||s.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!i&&s.left>r.left||s.top>r.top?a=l.posBefore:(!i&&s.right-1?a:e.docView.posFromDOM(t,n,-1)}function Vq(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&a++}let u;qw&&a&&r.nodeType==1&&(u=r.childNodes[a-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=t.top&&a--,r==e.dom&&a==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(a==0||r.nodeType!=1||r.childNodes[a-1].nodeName!="BR")&&(l=tHe(e,r,a,t))}l==null&&(l=eHe(e,i,t));let s=e.docView.nearestDesc(i,!0);return{pos:l,inside:s?s.posAtStart-s.border:-1}}function Pq(e){return e.top=0&&a==r.nodeValue.length?(l--,u=1):n<0?l--:s++,$w(Vf(td(r,l,s),u),u<0)}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(o==null&&a&&(n<0||a==jl(r))){let l=r.childNodes[a-1];if(l.nodeType==1)return z2(l.getBoundingClientRect(),!1)}if(o==null&&a=0)}if(o==null&&a&&(n<0||a==jl(r))){let l=r.childNodes[a-1],s=l.nodeType==3?td(l,jl(l)-(i?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(s)return $w(Vf(s,1),!1)}if(o==null&&a=0)}function $w(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function z2(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Lq(e,t,n){let r=e.state,a=e.root.activeElement;r!=t&&e.updateState(t),a!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),a!=e.dom&&a&&a.focus()}}function aHe(e,t,n){let r=t.selection,a=n=="up"?r.$from:r.$to;return Lq(e,t,()=>{let{node:o}=e.docView.domFromPos(a.pos,n=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(o,!0);if(!l)break;if(l.node.isBlock){o=l.contentDOM||l.dom;break}o=l.dom.parentNode}let i=Nq(e,a.pos,1);for(let l=o.firstChild;l;l=l.nextSibling){let s;if(l.nodeType==1)s=l.getClientRects();else if(l.nodeType==3)s=td(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;uc.top+1&&(n=="up"?i.top-c.top>(c.bottom-i.top)*2:c.bottom-i.bottom>(i.bottom-c.top)*2))return!1}}return!0})}const oHe=/[\u0590-\u08ac]/;function iHe(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let a=r.parentOffset,o=!a,i=a==r.parent.content.size,l=e.domSelection();return l?!oHe.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?o:i:Lq(e,t,()=>{let{focusNode:s,focusOffset:u,anchorNode:c,anchorOffset:d}=e.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",n,"character");let v=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:p,focusOffset:m}=e.domSelectionRange(),g=p&&!v.contains(p.nodeType==1?p:p.parentNode)||s==p&&u==m;try{l.collapse(c,d),s&&(s!=c||u!=d)&&l.extend&&l.extend(s,u)}catch{}return h!=null&&(l.caretBidiLevel=h),g}):r.pos==r.start()||r.pos==r.end()}let Oq=null,Rq=null,Bq=!1;function lHe(e,t,n){return Oq==t&&Rq==n?Bq:(Oq=t,Rq=n,Bq=n=="up"||n=="down"?aHe(e,t,n):iHe(e,t,n))}const Zl=0,Fq=1,ep=2,Lu=3;class eS{constructor(t,n,r,a){this.parent=t,this.children=n,this.dom=r,this.contentDOM=a,this.dirty=Zl,r.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,n,r){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let n=0;nTo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!1;break}if(o.previousSibling)break}if(a==null&&n==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){a=!0;break}if(o.nextSibling)break}}return a??r>0?this.posAtEnd:this.posAtStart}nearestDesc(t,n=!1){for(let r=!0,a=t;a;a=a.parentNode){let o=this.getDesc(a),i;if(o&&(!n||o.node))if(r&&(i=o.nodeDOM)&&!(i.nodeType==1?i.contains(t.nodeType==1?t:t.parentNode):i==t))r=!1;else return o}}getDesc(t){let n=t.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(t,n,r){for(let a=t;a;a=a.parentNode){let o=this.getDesc(a);if(o)return o.localPosFromDOM(t,n,r)}return-1}descAt(t){for(let n=0,r=0;nt||i instanceof Wq){a=t-o;break}o=l}if(a)return this.children[r].domFromPos(a-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Hq&&o.side>=0;r--);if(n<=0){let o,i=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,i=!1);return o&&n&&i&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?To(o.dom)+1:0}}else{let o,i=!0;for(;o=r=c&&n<=u-s.border&&s.node&&s.contentDOM&&this.contentDOM.contains(s.contentDOM))return s.parseRange(t,n,c);t=i;for(let d=l;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){a=To(h.dom)+1;break}t-=h.size}a==-1&&(a=0)}if(a>-1&&(u>n||l==this.children.length-1)){n=u;for(let c=l+1;cp&&in){let p=l;l=s,s=p}let v=document.createRange();v.setEnd(s.node,s.offset),v.setStart(l.node,l.offset),u.removeAllRanges(),u.addRange(v)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,n){for(let r=0,a=0;a=r:tr){let l=r+o.border,s=i-o.border;if(t>=l&&n<=s){this.dirty=t==r||n==i?ep:Fq,t==l&&n==s&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=Lu:o.markDirty(t-l,n-l);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?ep:Lu}r=i}this.dirty=ep}markParentsDirty(){let t=1;for(let n=this.parent;n;n=n.parent,t++){let r=t==1?ep:Fq;n.dirty{if(!o)return a;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(i.nodeType!=1){let l=document.createElement("span");l.appendChild(i),i=l}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(t,[],i,null),this.widget=n,this.widget=n,o=this}matchesWidget(t){return this.dirty==Zl&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let n=this.widget.spec.stopEvent;return n?n(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class sHe extends eS{constructor(t,n,r,a){super(t,[],n,null),this.textDOM=r,this.text=a}get size(){return this.text.length}localPosFromDOM(t,n){return t!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class tp extends eS{constructor(t,n,r,a,o){super(t,[],r,a),this.mark=n,this.spec=o}static create(t,n,r,a){let o=a.nodeViews[n.type.name],i=o&&o(n,a,r);return(!i||!i.dom)&&(i=kf.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new tp(t,n,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&Lu||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Lu&&this.mark.eq(t)}markDirty(t,n){if(super.markDirty(t,n),this.dirty!=Zl){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(o=G2(o,0,t,r));for(let l=0;l{if(!s)return i;if(s.parent)return s.parent.posBeforeChild(s)},r,a),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=kf.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let h=c;return c=Yq(c,r,n),u?s=new uHe(t,n,r,a,c,d||null,h,u,o,i+1):n.isText?new WT(t,n,r,a,c,h,o):new Pf(t,n,r,a,c,d||null,h,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){t.contentElement=r.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ze.empty)}return t}matchesNode(t,n,r){return this.dirty==Zl&&t.eq(this.node)&>(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,n){let r=this.node.inlineContent,a=n,o=t.composing?this.localCompositionInfo(t,n):null,i=o&&o.pos>-1?o:null,l=o&&o.pos<0,s=new dHe(this,i&&i.node,t);vHe(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?s.syncToMarks(u.spec.marks,r,t):u.type.side>=0&&!d&&s.syncToMarks(c==this.node.childCount?dr.none:this.node.child(c).marks,r,t),s.placeWidget(u,t,a)},(u,c,d,h)=>{s.syncToMarks(u.marks,r,t);let v;s.findNodeMatch(u,c,d,h)||l&&t.state.selection.from>a&&t.state.selection.to-1&&s.updateNodeAt(u,c,d,v,t)||s.updateNextNode(u,c,d,t,h,a)||s.addNode(u,c,d,t,a),a+=u.nodeSize}),s.syncToMarks([],r,t),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==ep)&&(i&&this.protectLocalComposition(t,i),Gq(this.contentDOM,this.children,t),wy&&pHe(this.dom))}localCompositionInfo(t,n){let{from:r,to:a}=t.state.selection;if(!(t.state.selection instanceof Rt)||rn+this.node.content.size)return null;let o=t.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let i=o.nodeValue,l=mHe(this.node.content,i,r-n,a-n);return l<0?null:{node:o,pos:l,text:i}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:n,pos:r,text:a}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let i=new sHe(this,o,n,a);t.input.compositionNodes.push(i),this.children=G2(this.children,r,r+a.length,t,i)}update(t,n,r,a){return this.dirty==Lu||!t.sameMarkup(this.node)?!1:(this.updateInner(t,n,r,a),!0)}updateInner(t,n,r,a){this.updateOuterDeco(n),this.node=t,this.innerDeco=r,this.contentDOM&&this.updateChildren(a,this.posAtStart),this.dirty=Zl}updateOuterDeco(t){if(GT(t,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Uq(this.dom,this.nodeDOM,W2(this.outerDeco,this.node,n),W2(t,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function zq(e,t,n,r,a){Yq(r,t,e);let o=new Pf(void 0,e,t,n,r,r,r,a,0);return o.contentDOM&&o.updateChildren(a,0),o}class WT extends Pf{constructor(t,n,r,a,o,i,l){super(t,n,r,a,o,null,i,l,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,n,r,a){return this.dirty==Lu||this.dirty!=Zl&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Zl||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,a.trackWrites==this.nodeDOM&&(a.trackWrites=null)),this.node=t,this.dirty=Zl,!0)}inParent(){let t=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,n,r){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(t,n,r)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,n,r){let a=this.node.cut(t,n),o=document.createTextNode(a.text);return new WT(this.parent,a,this.outerDeco,this.innerDeco,o,o,r)}markDirty(t,n){super.markDirty(t,n),this.dom!=this.nodeDOM&&(t==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Lu)}get domAtom(){return!1}isText(t){return this.node.text==t}}class Wq extends eS{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Zl&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class uHe extends Pf{constructor(t,n,r,a,o,i,l,s,u,c){super(t,n,r,a,o,i,l,u,c),this.spec=s}update(t,n,r,a){if(this.dirty==Lu)return!1;if(this.spec.update&&(this.node.type==t.type||this.spec.multiType)){let o=this.spec.update(t,n,r);return o&&this.updateInner(t,n,r,a),o}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,n,r,a)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,n,r,a){this.spec.setSelection?this.spec.setSelection(t,n,r.root):super.setSelection(t,n,r,a)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function Gq(e,t,n){let r=e.firstChild,a=!1;for(let o=0;o>1,i=Math.min(o,t.length);for(;a-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let s=tp.create(this.top,t[o],n,r);this.top.children.splice(this.index,0,s),this.top=s,this.changed=!0}this.index=0,o++}}findNodeMatch(t,n,r,a){let o=-1,i;if(a>=this.preMatch.index&&(i=this.preMatch.matches[a-this.preMatch.index]).parent==this.top&&i.matchesNode(t,n,r))o=this.top.children.indexOf(i,this.index);else for(let l=this.index,s=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(r){let u=n.children[r-1];if(u instanceof tp)n=u,r=u.children.length;else{l=u,r--;break}}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let s=l.node;if(s){if(s!=e.child(a-1))break;--a,o.set(l,a),i.push(l)}}return{index:a,matched:o,matches:i.reverse()}}function hHe(e,t){return e.type.side-t.type.side}function vHe(e,t,n,r){let a=t.locals(e),o=0;if(a.length==0){for(let u=0;uo;)l.push(a[i++]);let p=o+h.nodeSize;if(h.isText){let g=p;i!g.inline):l.slice();r(h,m,t.forChild(o,h),v),o=p}}function pHe(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function mHe(e,t,n,r){for(let a=0,o=0;a=n){if(o>=r&&s.slice(r-t.length-l,r-l)==t)return r-t.length;let u=l=0&&u+t.length+l>=n)return l+u;if(n==r&&s.length>=r+t.length-l&&s.slice(r-l,r-l+t.length)==t)return r}}return-1}function G2(e,t,n,r,a){let o=[];for(let i=0,l=0;i=n||c<=t?o.push(s):(un&&o.push(s.slice(n-u,s.size,r)))}return o}function U2(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let a=e.docView.nearestDesc(n.focusNode),o=a&&a.size==0,i=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let l=r.resolve(i),s,u;if(zT(n)){for(s=i;a&&!a.node;)a=a.parent;let d=a.node;if(a&&d.isAtom&&Nt.isSelectable(d)&&a.parent&&!(d.isInline&&W3e(n.focusNode,n.focusOffset,a.dom))){let h=a.posBefore;u=new Nt(i==h?l:r.resolve(h))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=i,h=i;for(let v=0;v{(n.anchorNode!=r||n.anchorOffset!=a)&&(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!Kq(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function yHe(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName=="IMG";r?t.collapse(n.parentNode,To(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Hi&&Df<=11&&(n.disabled=!0,n.disabled=!1)}function Qq(e,t){if(t instanceof Nt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(qq(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else qq(e)}function qq(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function j2(e,t,n,r){return e.someProp("createSelectionBetween",a=>a(e,t,n))||Rt.between(t,n,r)}function $q(e){return e.editable&&!e.hasFocus()?!1:e$(e)}function e$(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function bHe(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return qv(t.node,t.offset,n.anchorNode,n.anchorOffset)}function K2(e,t){let{$anchor:n,$head:r}=e.selection,a=t>0?n.max(r):n.min(r),o=a.parent.inlineContent?a.depth?e.doc.resolve(t>0?a.after():a.before()):null:a;return o&&Xt.findFrom(o,t)}function Nf(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function t$(e,t,n){let r=e.state.selection;if(r instanceof Rt)if(n.indexOf("s")>-1){let{$head:a}=r,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(a.pos+o.nodeSize*(t<0?-1:1));return Nf(e,new Rt(r.$anchor,i))}else if(r.empty){if(e.endOfTextblock(t>0?"forward":"backward")){let a=K2(e.state,t);return a&&a instanceof Nt?Nf(e,a):!1}else if(!(Xl&&n.indexOf("m")>-1)){let a=r.$head,o=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter,i;if(!o||o.isText)return!1;let l=t<0?a.pos-o.nodeSize:a.pos;return o.isAtom||(i=e.docView.descAt(l))&&!i.contentDOM?Nt.isSelectable(o)?Nf(e,new Nt(t<0?e.state.doc.resolve(a.pos-o.nodeSize):a)):qw?Nf(e,new Rt(e.state.doc.resolve(t<0?l:l+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Nt&&r.node.isInline)return Nf(e,new Rt(t>0?r.$to:r.$from));{let a=K2(e.state,t);return a?Nf(e,a):!1}}}function UT(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function nS(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!="BR")}function xy(e,t){return t<0?wHe(e):SHe(e)}function wHe(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a,o,i=!1;for(Kl&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let l=n.childNodes[r-1];if(nS(l,-1))a=n,o=--r;else if(l.nodeType==3)n=l,r=n.nodeValue.length;else break}}else{if(n$(n))break;{let l=n.previousSibling;for(;l&&nS(l,-1);)a=n.parentNode,o=To(l),l=l.previousSibling;if(l)n=l,r=UT(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}i?X2(e,n,r):a&&X2(e,a,o)}function SHe(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let a=UT(n),o,i;for(;;)if(r{e.state==a&&ad(e)},50)}function r$(e,t){let n=e.state.doc.resolve(t);if(!(jo||Y3e)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let a=e.coordsAtPos(t-1),o=(a.top+a.bottom)/2;if(o>r.top&&o1)return a.leftr.top&&o1)return a.left>r.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function a$(e,t,n){let r=e.state.selection;if(r instanceof Rt&&!r.empty||n.indexOf("s")>-1||Xl&&n.indexOf("m")>-1)return!1;let{$from:a,$to:o}=r;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let i=K2(e.state,t);if(i&&i instanceof Nt)return Nf(e,i)}if(!a.parent.inlineContent){let i=t<0?a:o,l=r instanceof gl?Xt.near(i,t):Xt.findFrom(i,t);return l?Nf(e,l):!1}return!1}function o$(e,t){if(!(e.state.selection instanceof Rt))return!0;let{$head:n,$anchor:r,empty:a}=e.state.selection;if(!n.sameParent(r))return!0;if(!a)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let i=e.state.tr;return t<0?i.delete(n.pos-o.nodeSize,n.pos):i.delete(n.pos,n.pos+o.nodeSize),e.dispatch(i),!0}return!1}function i$(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function _He(e){if(!gi||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let r=t.firstChild;i$(e,r,"true"),setTimeout(()=>i$(e,r,"false"),20)}return!1}function THe(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function kHe(e,t){let n=t.keyCode,r=THe(t);if(n==8||Xl&&n==72&&r=="c")return o$(e,-1)||xy(e,-1);if(n==46&&!t.shiftKey||Xl&&n==68&&r=="c")return o$(e,1)||xy(e,1);if(n==13||n==27)return!0;if(n==37||Xl&&n==66&&r=="c"){let a=n==37?r$(e,e.state.selection.from)=="ltr"?-1:1:-1;return t$(e,a,r)||xy(e,a)}else if(n==39||Xl&&n==70&&r=="c"){let a=n==39?r$(e,e.state.selection.from)=="ltr"?1:-1:1;return t$(e,a,r)||xy(e,a)}else{if(n==38||Xl&&n==80&&r=="c")return a$(e,-1,r)||xy(e,-1);if(n==40||Xl&&n==78&&r=="c")return _He(e)||a$(e,1,r)||xy(e,1);if(r==(Xl?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Z2(e,t){e.someProp("transformCopied",v=>{t=v(t,e)});let n=[],{content:r,openStart:a,openEnd:o}=t;for(;a>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){a--,o--;let v=r.firstChild;n.push(v.type.name,v.attrs!=v.type.defaultAttrs?v.attrs:null),r=v.content}let i=e.someProp("clipboardSerializer")||kf.fromSchema(e.state.schema),l=v$(),s=l.createElement("div");s.appendChild(i.serializeFragment(r,{document:l}));let u=s.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=f$[u.nodeName.toLowerCase()]);){for(let v=c.length-1;v>=0;v--){let p=l.createElement(c[v]);for(;s.firstChild;)p.appendChild(s.firstChild);s.appendChild(p),d++}u=s.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${a} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let h=e.someProp("clipboardTextSerializer",v=>v(t,e))||t.content.textBetween(0,t.content.size,` -`);return{dom:s,text:h,slice:t}}function o$(e,t,n,r,a){let o=a.parent.type.spec.code,i,l;if(!n&&!t)return null;let s=!!t&&(r||o||!n);if(s){if(e.someProp("transformPastedText",h=>{t=h(t,o||r,e)}),o)return l=new st(He.from(e.state.schema.text(t.replace(/\r\n?/g,` -`))),0,0),e.someProp("transformPasted",h=>{l=h(l,e,!0)}),l;let d=e.someProp("clipboardTextParser",h=>h(t,a,r,e));if(d)l=d;else{let h=a.marks(),{schema:v}=e.state,p=Af.fromSchema(v);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=i.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(v.text(m,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),i=IHe(n),Qw&&MHe(i);let u=i&&i.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=i.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;i=h}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||kf.fromSchema(e.state.schema)).parseSlice(i,{preserveWhitespace:!!(s||c),context:a,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!kHe.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)l=DHe(u$(l,+c[1],+c[2]),c[4]);else if(l=st.maxOpen(AHe(l.content,a),!0),l.openStart||l.openEnd){let d=0,h=0;for(let v=l.content.firstChild;d{l=d(l,e,s)}),l}const kHe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function AHe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(i=>{if(!o)return;let l=r.findWrapping(i.type),s;if(!l)return o=null;if(s=o.length&&a.length&&l$(l,a,i,o[o.length-1],0))o[o.length-1]=s;else{o.length&&(o[o.length-1]=s$(o[o.length-1],a.length));let u=i$(i,l);o.push(u),r=r.matchType(u.type),a=l}}),o)return He.from(o)}return e}function i$(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,He.from(e));return e}function l$(e,t,n,r,a){if(a1&&(o=0),a=n&&(l=t<0?i.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(He.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,i.copy(l))}function u$(e,t,n){return tn})),K2.createHTML(e)):e}function IHe(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=f$().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),a;if((a=r&&c$[r[1].toLowerCase()])&&(e=a.map(o=>"<"+o+">").join("")+e+a.map(o=>"").reverse().join("")),n.innerHTML=EHe(e),a)for(let o=0;o=0;l-=2){let s=n.nodes[r[l]];if(!s||s.hasRequiredAttrs())break;a=He.from(s.create(r[l+1],a)),o++,i++}return new st(a,o,i)}const mi={},gi={},VHe={touchstart:!0,touchmove:!0};class PHe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function NHe(e){for(let t in mi){let n=mi[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{OHe(e,r)&&!Z2(e,r)&&(e.editable||!(r.type in gi))&&n(e,r)},VHe[t]?{passive:!0}:void 0)}pi&&e.dom.addEventListener("input",()=>null),X2(e)}function Of(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function LHe(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function X2(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>Z2(e,r))})}function Z2(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function OHe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function RHe(e,t){!Z2(e,t)&&mi[t.type]&&(e.editable||!(t.type in gi))&&mi[t.type](e,t)}gi.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!v$(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(rd&&jo&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),gy&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",a=>a(e,ep(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||THe(e,n)?n.preventDefault():Of(e,"key")},gi.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},gi.keypress=(e,t)=>{let n=t;if(v$(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Zl&&n.metaKey)return;if(e.someProp("handleKeyPress",a=>a(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Ot)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode),o=()=>e.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,a,o))&&e.dispatch(o()),n.preventDefault()}};function jT(e){return{left:e.clientX,top:e.clientY}}function BHe(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function J2(e,t,n,r,a){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let i=o.depth+1;i>0;i--)if(e.someProp(t,l=>i>o.depth?l(e,n,o.nodeAfter,o.before(i),a,!0):l(e,n,o.node(i),o.before(i),a,!1)))return!0;return!1}function wy(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function FHe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Nt.isSelectable(r)?(wy(e,new Nt(n)),!0):!1}function HHe(e,t){if(t==-1)return!1;let n=e.state.selection,r,a;n instanceof Nt&&(r=n.node);let o=e.state.doc.resolve(t);for(let i=o.depth+1;i>0;i--){let l=i>o.depth?o.nodeAfter:o.node(i);if(Nt.isSelectable(l)){r&&n.$from.depth>0&&i>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?a=o.before(n.$from.depth):a=o.before(i);break}}return a!=null?(wy(e,Nt.create(e.state.doc,a)),!0):!1}function zHe(e,t,n,r,a){return J2(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(a?HHe(e,n):FHe(e,n))}function WHe(e,t,n,r){return J2(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",a=>a(e,t,r))}function GHe(e,t,n,r){return J2(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",a=>a(e,t,r))||UHe(e,n,r)}function UHe(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(wy(e,Ot.create(r,0,r.content.size)),!0):!1;let a=r.resolve(t);for(let o=a.depth+1;o>0;o--){let i=o>a.depth?a.nodeAfter:a.node(o),l=a.before(o);if(i.inlineContent)wy(e,Ot.create(r,l+1,l+1+i.content.size));else if(Nt.isSelectable(i))wy(e,Nt.create(r,l));else continue;return!0}}function Q2(e){return KT(e)}const h$=Zl?"metaKey":"ctrlKey";mi.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Q2(e),a=Date.now(),o="singleClick";a-e.input.lastClick.time<500&&BHe(n,e.input.lastClick)&&!n[h$]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:o,button:n.button};let i=e.posAtCoords(jT(n));i&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new YHe(e,i,n,!!r)):(o=="doubleClick"?WHe:GHe)(e,i.pos,i.inside,n)?n.preventDefault():Of(e,"pointer"))};class YHe{constructor(t,n,r,a){this.view=t,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[h$],this.allowDefault=r.shiftKey;let o,i;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),i=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,i=c.depth?c.before():0}const l=a?null:r.target,s=l?t.docView.nearestDesc(l,!0):null;this.target=s&&s.dom.nodeType==1?s.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Nt&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Xl&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Of(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>od(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(jT(t))),this.updateAllowDefault(t),this.allowDefault||!n?Of(this.view,"pointer"):zHe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||pi&&this.mightDrag&&!this.mightDrag.node.isAtom||jo&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(wy(this.view,Xt.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Of(this.view,"pointer")}move(t){this.updateAllowDefault(t),Of(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}mi.touchstart=e=>{e.input.lastTouch=Date.now(),Q2(e),Of(e,"pointer")},mi.touchmove=e=>{e.input.lastTouch=Date.now(),Of(e,"pointer")},mi.contextmenu=e=>Q2(e);function v$(e,t){return e.composing?!0:pi&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const jHe=rd?5e3:-1;gi.compositionstart=gi.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ot&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),KT(e,!0),e.markCursor=null;else if(KT(e,!t.selection.empty),Xl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let a=r.focusNode,o=r.focusOffset;a&&a.nodeType==1&&o!=0;){let i=o<0?a.lastChild:a.childNodes[o-1];if(!i)break;if(i.nodeType==3){let l=e.domSelection();l&&l.collapse(i,i.nodeValue.length);break}else a=i,o=-1}}e.input.composing=!0}p$(e,jHe)},gi.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,p$(e,20))};function p$(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>KT(e),t))}function m$(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=XHe());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function KHe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=F3e(t.focusNode,t.focusOffset),r=H3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let a=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!a||!a.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return r}}return n||r}function XHe(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function KT(e,t=!1){if(!(rd&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),m$(e),t||e.docView&&e.docView.dirty){let n=H2(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function ZHe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const nS=Hi&&Vf<15||gy&&Y3e<604;mi.copy=gi.cut=(e,t)=>{let n=t,r=e.state.selection,a=n.type=="cut";if(r.empty)return;let o=nS?null:n.clipboardData,i=r.content(),{dom:l,text:s}=Y2(e,i);o?(n.preventDefault(),o.clearData(),o.setData("text/html",l.innerHTML),o.setData("text/plain",s)):ZHe(e,l),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function JHe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function QHe(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?rS(e,r.value,null,a,t):rS(e,r.textContent,r.innerHTML,a,t)},50)}function rS(e,t,n,r,a){let o=o$(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",s=>s(e,a,o||st.empty)))return!0;if(!o)return!1;let i=JHe(o),l=i?e.state.tr.replaceSelectionWith(i,r):e.state.tr.replaceSelection(o);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function g$(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}gi.paste=(e,t)=>{let n=t;if(e.composing&&!rd)return;let r=nS?null:n.clipboardData,a=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&rS(e,g$(r),r.getData("text/html"),a,n)?n.preventDefault():QHe(e,n)};class y${constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const qHe=Zl?"altKey":"ctrlKey";function b$(e,t){return e.someProp("dragCopies",r=>!r(t))??!t[qHe]}mi.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(jT(n)),i;if(!(o&&o.pos>=a.from&&o.pos<=(a instanceof Nt?a.to-1:a.to))){if(r&&r.mightDrag)i=Nt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(i=Nt.create(e.state.doc,d.posBefore))}}let l=(i||e.state.selection).content(),{dom:s,text:u,slice:c}=Y2(e,l);(!n.dataTransfer.files.length||!jo||Tq>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(nS?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",nS||n.dataTransfer.setData("text/plain",u),e.dragging=new y$(c,b$(e,n),i)},mi.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},gi.dragover=gi.dragenter=(e,t)=>t.preventDefault(),gi.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let a=e.posAtCoords(jT(n));if(!a)return;let o=e.state.doc.resolve(a.pos),i=r&&r.slice;i?e.someProp("transformPasted",p=>{i=p(i,e,!1)}):i=o$(e,g$(n.dataTransfer),nS?null:n.dataTransfer.getData("text/html"),!1,o);let l=!!(r&&b$(e,n));if(e.someProp("handleDrop",p=>p(e,n,i||st.empty,l))){n.preventDefault();return}if(!i)return;n.preventDefault();let s=i?sq(e.state.doc,o.pos,i):o.pos;s==null&&(s=o.pos);let u=e.state.tr;if(l){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(s),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=u.doc;if(d?u.replaceRangeWith(c,c,i.content.firstChild):u.replaceRange(c,c,i),u.doc.eq(h))return;let v=u.doc.resolve(c);if(d&&Nt.isSelectable(i.content.firstChild)&&v.nodeAfter&&v.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new Nt(v));else{let p=u.mapping.map(s);u.mapping.maps[u.mapping.maps.length-1].forEach((m,g,y,b)=>p=b),u.setSelection(W2(e,v,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},mi.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&od(e)},20))},mi.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},mi.beforeinput=(e,t)=>{if(jo&&rd&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,ep(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in gi)mi[e]=gi[e];function aS(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class XT{constructor(t,n){this.toDOM=t,this.spec=n||ap,this.side=this.spec.side||0}map(t,n,r,a){let{pos:o,deleted:i}=t.mapResult(n.from+a,this.side<0?-1:1);return i?null:new _o(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof XT&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&aS(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Rf{constructor(t,n){this.attrs=t,this.spec=n||ap}map(t,n,r,a){let o=t.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,i=t.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new _o(o,i,this)}valid(t,n){return n.from=t&&(!o||o(l.spec))&&r.push(l.copy(l.from+a,l.to+a))}for(let i=0;it){let l=this.children[i]+1;this.children[i+2].findInner(t-l,n-l,r,a+l,o)}}map(t,n,r){return this==Ko||t.maps.length==0?this:this.mapInner(t,n,0,0,r||ap)}mapInner(t,n,r,a,o){let i;for(let l=0;l{let u=s+r,c;if(c=S$(n,l,u)){for(a||(a=this.children.slice());ol&&d.to=t){this.children[l]==t&&(r=this.children[l+2]);break}let o=t+1,i=o+n.content.size;for(let l=0;lo&&s.type instanceof Rf){let u=Math.max(o,s.from)-o,c=Math.min(i,s.to)-o;ua.map(t,n,ap));return Bf.from(r)}forChild(t,n){if(n.isLeaf)return Er.empty;let r=[];for(let a=0;an instanceof Er)?t:t.reduce((n,r)=>n.concat(r instanceof Er?r:r.members),[]))}}forEachSet(t){for(let n=0;n{let g=m-p-(v-h);for(let y=0;yb+c-d)continue;let w=l[y]+c-d;v>=w?l[y+1]=h<=w?-2:-1:h>=c&&g&&(l[y]+=g,l[y+1]+=g)}d+=g}),c=n.maps[u].map(c,-1)}let s=!1;for(let u=0;u=r.content.size){s=!0;continue}let h=n.map(e[u+1]+o,-1),v=h-a,{index:p,offset:m}=r.content.findIndex(d),g=r.maybeChild(p);if(g&&m==d&&m+g.nodeSize==v){let y=l[u+2].mapInner(n,g,c+1,e[u]+o+1,i);y!=Ko?(l[u]=d,l[u+1]=v,l[u+2]=y):(l[u+1]=-2,s=!0)}else s=!0}if(s){let u=e5e(l,e,t,n,a,o,i),c=ZT(u,r,0,i);t=c.local;for(let d=0;dn&&i.to{let u=S$(e,l,s+n);if(u){o=!0;let c=ZT(u,l,n+s+1,r);c!=Ko&&a.push(s,s+l.nodeSize,c)}});let i=w$(o?x$(e):e,-n).sort(op);for(let l=0;l0;)t++;e.splice(t,0,n)}function eO(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Ko&&t.push(r)}),e.cursorWrapper&&t.push(Er.create(e.state.doc,[e.cursorWrapper.deco])),Bf.from(t)}const t5e={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},n5e=Hi&&Vf<=11;class r5e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class a5e{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new r5e,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let a=0;aa.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),n5e&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,t5e)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Qq(this.view)){if(this.suppressingSelectionUpdates)return od(this.view);if(Hi&&Vf<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&$v(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=my(o))n.add(o);for(let o=t.anchorNode;o;o=my(o))if(n.has(o)){r=o;break}let a=r&&this.view.docView.nearestDesc(r);if(a&&a.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Qq(t)&&!this.ignoreSelectionChange(r),o=-1,i=-1,l=!1,s=[];if(t.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,h]=c;d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let h of c){let v=h.parentNode;v&&v.nodeName=="LI"&&(!d||l5e(t,d)!=v)&&h.remove()}}}let u=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||a)&&(o>-1&&(t.docView.markDirty(o,i),o5e(t)),this.handleDOMChange(o,i,l,s),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||od(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ca;g--){let y=r.childNodes[g-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){o=g;break}if(!b||b.size)break}let d=e.state.doc,h=e.someProp("domParser")||kf.fromSchema(e.state.schema),v=d.resolve(i),p=null,m=h.parse(r,{topNode:v.parent,topMatch:v.parent.contentMatchAt(v.index()),topOpen:!0,from:a,to:o,preserveWhitespace:v.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:u5e,context:v});if(u&&u[0].pos!=null){let g=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=g),p={anchor:g+i,head:y+i}}return{doc:m,sel:p,from:i,to:l}}function u5e(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(pi&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||pi&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const c5e=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function d5e(e,t,n,r,a){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,E=H2(e,A);if(E&&!e.state.selection.eq(E)){if(jo&&rd&&e.input.lastKeyCode===13&&Date.now()-100M(e,ep(13,"Enter"))))return;let I=e.state.tr.setSelection(E);A=="pointer"?I.setMeta("pointer",!0):A=="key"&&I.scrollIntoView(),o&&I.setMeta("composition",o),e.dispatch(I)}return}let i=e.state.doc.resolve(t),l=i.sharedDepth(n);t=i.before(l+1),n=e.state.doc.resolve(n).after(l+1);let s=e.state.selection,u=s5e(e,t,n),c=e.state.doc,d=c.slice(u.from,u.to),h,v;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||rd)&&a.some(A=>A.nodeType==1&&!c5e.test(A.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",A=>A(e,ep(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&s instanceof Ot&&!s.empty&&s.$head.sameParent(s.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:s.from,endA:s.to,endB:s.to};else{if(u.sel){let A=A$(e,e.state.doc,u.sel);if(A&&!A.eq(e.state.selection)){let E=e.state.tr.setSelection(A);o&&E.setMeta("composition",o),e.dispatch(E)}}return}e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),Hi&&Vf<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),y=c.resolve(p.start),b=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=p.endA,w;if((gy&&e.input.lastIOSEnter>Date.now()-225&&(!b||a.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!b&&m.posm.pos)&&e.someProp("handleKeyDown",A=>A(e,ep(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&h5e(c,p.start,p.endA,m,g)&&e.someProp("handleKeyDown",A=>A(e,ep(8,"Backspace")))){rd&&jo&&e.domObserver.suppressSelectionUpdates();return}jo&&p.endB==p.start&&(e.input.lastChromeDelete=Date.now()),rd&&!b&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,ep(13,"Enter"))})},20));let S=p.start,_=p.endA,x=A=>{let E=A||e.state.tr.replace(S,_,u.doc.slice(p.start-u.from,p.endB-u.from));if(u.sel){let I=A$(e,E.doc,u.sel);I&&!(jo&&e.composing&&I.empty&&(p.start!=p.endB||e.input.lastChromeDeleteod(e),20));let A=x(e.state.tr.delete(S,_)),E=c.resolve(p.start).marksAcross(c.resolve(p.endA));E&&A.ensureMarks(E),e.dispatch(A)}else if(p.endA==p.endB&&(T=f5e(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let A=x(e.state.tr);T.type=="add"?A.addMark(S,_,T.mark):A.removeMark(S,_,T.mark),e.dispatch(A)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let A=m.parent.textBetween(m.parentOffset,g.parentOffset),E=()=>x(e.state.tr.insertText(A,S,_));e.someProp("handleTextInput",I=>I(e,S,_,A,E))||e.dispatch(E())}}else e.dispatch(x())}function A$(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:W2(e,t.resolve(n.anchor),t.resolve(n.head))}function f5e(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,a=n,o=r,i,l,s;for(let c=0;cc.mark(l.addToSet(c.marks));else if(a.length==0&&o.length==1)l=o[0],i="remove",s=c=>c.mark(l.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||tO(i,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,a++}return a}function v5e(e,t,n,r,a){let o=e.findDiffStart(t,n);if(o==null)return null;let{a:i,b:l}=e.findDiffEnd(t,n+e.size,n+t.size);if(a=="end"){let s=Math.max(0,o-Math.min(i,l));r-=i+s-o}if(i=i?o-r:0;o-=s,o&&o=l?o-r:0;o-=s,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class I${constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new PHe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(N$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=V$(this),D$(this),this.nodeViews=P$(this),this.docView=Fq(this.state.doc,M$(this),eO(this),this.dom,this),this.domObserver=new a5e(this,(r,a,o,i)=>d5e(this,r,a,o,i)),this.domObserver.start(),NHe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&X2(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(N$),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let a=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(m$(this),i=!0),this.state=t;let l=a.plugins!=t.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let v=P$(this);m5e(v,this.nodeViews)&&(this.nodeViews=v,o=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&X2(this),this.editable=V$(this),D$(this);let s=eO(this),u=M$(this),c=a.plugins!=t.plugins&&!a.doc.eq(t.doc)?"reset":t.scrollToSelection>a.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,u,s);(d||!t.selection.eq(a.selection))&&(i=!0);let h=c=="preserve"&&i&&this.dom.style.overflowAnchor==null&&X3e(this);if(i){this.domObserver.stop();let v=d&&(Hi||jo)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&p5e(a.selection,t.selection);if(d){let p=jo?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=KHe(this)),(o||!this.docView.update(t.doc,u,s,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Fq(t.doc,u,s,this.dom,this)),p&&!this.trackWrites&&(v=!0)}v||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&yHe(this))?od(this,v):(Zq(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((r=this.dragging)===null||r===void 0)&&r.node&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&Z3e(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Nt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&kq(this,n.getBoundingClientRect(),t)}else kq(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(a=o)}this.dragging=new y$(t.slice,t.move,a<0?void 0:Nt.create(this.state.doc,a))}someProp(t,n){let r=this._props&&this._props[t],a;if(r!=null&&(a=n?n(r):r))return a;for(let i=0;in.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return tHe(this,t)}coordsAtPos(t,n=1){return Vq(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let a=this.docView.posFromDOM(t,n,r);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(t,n){return iHe(this,n||this.state,t)}pasteHTML(t,n){return rS(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return rS(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return Y2(this,t)}destroy(){this.docView&&(LHe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],eO(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,R3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return RHe(this,t)}domSelectionRange(){let t=this.domSelection();return t?pi&&this.root.nodeType===11&&W3e(this.dom.ownerDocument)==this.dom&&i5e(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}I$.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function M$(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[_o.node(0,e.state.doc.content.size,t)]}function D$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:_o.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function V$(e){return!e.someProp("editable",t=>t(e.state)===!1)}function p5e(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function P$(e){let t=Object.create(null);function n(r){for(let a in r)Object.prototype.hasOwnProperty.call(t,a)||(t[a]=r[a])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function m5e(e,t){let n=0,r=0;for(let a in e){if(e[a]!=t[a])return!0;n++}for(let a in t)r++;return n!=r}function N$(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ff={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},JT={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},g5e=typeof navigator<"u"&&/Mac/.test(navigator.platform),y5e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),To=0;To<10;To++)Ff[48+To]=Ff[96+To]=String(To);for(var To=1;To<=24;To++)Ff[To+111]="F"+To;for(var To=65;To<=90;To++)Ff[To]=String.fromCharCode(To+32),JT[To]=String.fromCharCode(To);for(var nO in Ff)JT.hasOwnProperty(nO)||(JT[nO]=Ff[nO]);function b5e(e){var t=g5e&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||y5e&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?JT:Ff)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const w5e=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),S5e=typeof navigator<"u"&&/Win/.test(navigator.platform);function x5e(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,a,o,i;for(let l=0;le.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function L$(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const O$=(e,t,n)=>{let r=L$(e,n);if(!r)return!1;let a=oO(r);if(!a){let i=r.blockRange(),l=i&&dy(i);return l==null?!1:(t&&t(e.tr.lift(i,l).scrollIntoView()),!0)}let o=a.nodeBefore;if(Y$(e,a,t,-1))return!0;if(r.parent.content.size==0&&(xy(o,"end")||Nt.isSelectable(o)))for(let i=r.depth;;i--){let l=FT(e.doc,r.before(i),r.after(i),st.empty);if(l&&l.slice.size1)break}return o.isAtom&&a.depth==r.depth-1?(t&&t(e.tr.delete(a.pos-o.nodeSize,a.pos).scrollIntoView()),!0):!1},T5e=(e,t,n)=>{let r=L$(e,n);if(!r)return!1;let a=oO(r);return a?R$(e,a,t):!1},k5e=(e,t,n)=>{let r=F$(e,n);if(!r)return!1;let a=iO(r);return a?R$(e,a,t):!1};function R$(e,t,n){let r=t.nodeBefore,a=r,o=t.pos-1;for(;!a.isTextblock;o--){if(a.type.spec.isolating)return!1;let c=a.lastChild;if(!c)return!1;a=c}let i=t.nodeAfter,l=i,s=t.pos+1;for(;!l.isTextblock;s++){if(l.type.spec.isolating)return!1;let c=l.firstChild;if(!c)return!1;l=c}let u=FT(e.doc,o,s,st.empty);if(!u||u.from!=o||u instanceof ro&&u.slice.size>=s-o)return!1;if(n){let c=e.tr.step(u);c.setSelection(Ot.create(c.doc,o)),n(c.scrollIntoView())}return!0}function xy(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const B$=(e,t,n)=>{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=oO(r)}let i=o&&o.nodeBefore;return!i||!Nt.isSelectable(i)?!1:(t&&t(e.tr.setSelection(Nt.create(e.doc,o.pos-i.nodeSize)).scrollIntoView()),!0)};function oO(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function F$(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=F$(e,n);if(!r)return!1;let a=iO(r);if(!a)return!1;let o=a.nodeAfter;if(Y$(e,a,t,1))return!0;if(r.parent.content.size==0&&(xy(o,"start")||Nt.isSelectable(o))){let i=FT(e.doc,r.before(),r.after(),st.empty);if(i&&i.slice.size{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof Nt,a;if(r){if(n.node.isTextblock||!Mf(e.doc,n.from))return!1;a=n.from}else if(a=BT(e.doc,n.from,-1),a==null)return!1;if(t){let o=e.tr.join(a);r&&o.setSelection(Nt.create(o.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},E5e=(e,t)=>{let n=e.selection,r;if(n instanceof Nt){if(n.node.isTextblock||!Mf(e.doc,n.to))return!1;r=n.to}else if(r=BT(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},I5e=(e,t)=>{let{$from:n,$to:r}=e.selection,a=n.blockRange(r),o=a&&dy(a);return o==null?!1:(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},W$=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` -`).scrollIntoView()),!0)};function lO(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),o=n.indexAfter(-1),i=lO(a.contentMatchAt(o));if(!i||!a.canReplaceWith(o,o,i))return!1;if(t){let l=n.after(),s=e.tr.replaceWith(l,l,i.createAndFill());s.setSelection(Xt.near(s.doc.resolve(l),1)),t(s.scrollIntoView())}return!0},G$=(e,t)=>{let n=e.selection,{$from:r,$to:a}=n;if(n instanceof yl||r.parent.inlineContent||a.parent.inlineContent)return!1;let o=lO(a.parent.contentMatchAt(a.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let i=(!r.parentOffset&&a.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(td(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),a=r&&dy(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)};function D5e(e){return(t,n)=>{let{$from:r,$to:a}=t.selection;if(t.selection instanceof Nt&&t.selection.node.isBlock)return!r.parentOffset||!td(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],i,l,s=!1,u=!1;for(let v=r.depth;;v--)if(r.node(v).isBlock){s=r.end(v)==r.pos+(r.depth-v),u=r.start(v)==r.pos-(r.depth-v),l=lO(r.node(v-1).contentMatchAt(r.indexAfter(v-1))),o.unshift(s&&l?{type:l}:null),i=v;break}else{if(v==1)return!1;o.unshift(null)}let c=t.tr;(t.selection instanceof Ot||t.selection instanceof yl)&&c.deleteSelection();let d=c.mapping.map(r.pos),h=td(c.doc,d,o.length,o);if(h||(o[0]=l?{type:l}:null,h=td(c.doc,d,o.length,o)),!h)return!1;if(c.split(d,o.length,o),!s&&u&&r.node(i).type!=l){let v=c.mapping.map(r.before(i)),p=c.doc.resolve(v);l&&r.node(i-1).canReplaceWith(p.index(),p.index()+1,l)&&c.setNodeMarkup(c.mapping.map(r.before(i)),l)}return n&&n(c.scrollIntoView()),!0}}const V5e=D5e(),P5e=(e,t)=>{let{$from:n,to:r}=e.selection,a,o=n.sharedDepth(r);return o==0?!1:(a=n.before(o),t&&t(e.tr.setSelection(Nt.create(e.doc,a))),!0)};function N5e(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||Mf(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function Y$(e,t,n,r){let a=t.nodeBefore,o=t.nodeAfter,i,l,s=a.type.spec.isolating||o.type.spec.isolating;if(!s&&N5e(e,t,n))return!0;let u=!s&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(i=(l=a.contentMatchAt(a.childCount)).findWrapping(o.type))&&l.matchType(i[0]||o.type).validEnd){if(n){let v=t.pos+o.nodeSize,p=He.empty;for(let y=i.length-1;y>=0;y--)p=He.from(i[y].create(null,p));p=He.from(a.copy(p));let m=e.tr.step(new ao(t.pos-1,v,t.pos,v,new st(p,1,0),i.length,!0)),g=m.doc.resolve(v+2*i.length);g.nodeAfter&&g.nodeAfter.type==a.type&&Mf(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&s?null:Xt.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),h=d&&dy(d);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(d,h).scrollIntoView()),!0;if(u&&xy(o,"start",!0)&&xy(a,"end")){let v=a,p=[];for(;p.push(v),!v.isTextblock;)v=v.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(v.canReplace(v.childCount,v.childCount,m.content)){if(n){let y=He.empty;for(let w=p.length-1;w>=0;w--)y=He.from(p[w].copy(y));let b=e.tr.step(new ao(t.pos-p.length,t.pos+o.nodeSize,t.pos+g,t.pos+o.nodeSize-g,new st(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function j$(e){return function(t,n){let r=t.selection,a=e<0?r.$from:r.$to,o=a.depth;for(;a.node(o).isInline;){if(!o)return!1;o--}return a.node(o).isTextblock?(n&&n(t.tr.setSelection(Ot.create(t.doc,e<0?a.start(o):a.end(o)))),!0):!1}}const L5e=j$(-1),O5e=j$(1);function R5e(e,t=null){return function(n,r){let{$from:a,$to:o}=n.selection,i=a.blockRange(o),l=i&&_2(i,e,t);return l?(r&&r(n.tr.wrap(i,l).scrollIntoView()),!0):!1}}function K$(e,t=null){return function(n,r){let a=!1;for(let o=0;o{if(a)return!1;if(!(!s.isTextblock||s.hasMarkup(e,t)))if(s.type==e)a=!0;else{let c=n.doc.resolve(u),d=c.index();a=c.parent.canReplaceWith(d,d+1,e)}})}if(!a)return!1;if(r){let o=n.tr;for(let i=0;i=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let s=i.resolve(t.start-2);o=new VT(s,s,t.depth),t.endIndex=0;c--)o=He.from(n[c].type.create(n[c].attrs,o));e.step(new ao(t.start-(r?2:0),t.end,t.start,t.end,new st(o,0,0),n.length,!0));let i=0;for(let c=0;ci.childCount>0&&i.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?W5e(t,n,e,o):G5e(t,n,o):!0:!1}}function W5e(e,t,n,r){let a=e.tr,o=r.end,i=r.$to.end(r.depth);om;p--)v-=a.child(p).nodeSize,r.delete(v-1,v+1);let o=r.doc.resolve(n.start),i=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,s=n.endIndex==a.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(l?0:1),c+1,i.content.append(s?He.empty:He.from(a))))return!1;let d=o.pos,h=d+i.nodeSize;return r.step(new ao(d-(l?1:0),h+(s?1:0),d+1,h-1,new st((l?He.empty:He.from(a.copy(He.empty))).append(s?He.empty:He.from(a.copy(He.empty))),l?0:1,s?0:1),l?0:1)),t(r.scrollIntoView()),!0}function U5e(e){return function(t,n){let{$from:r,$to:a}=t.selection,o=r.blockRange(a,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let l=o.parent,s=l.child(i-1);if(s.type!=e)return!1;if(n){let u=s.lastChild&&s.lastChild.type==l.type,c=He.from(u?e.create():null),d=new st(He.from(e.create(null,He.from(l.type.create(null,c)))),u?3:1,0),h=o.start,v=o.end;n(t.tr.step(new ao(h-(u?3:1),v,h,v,d,1,!0)).scrollIntoView())}return!0}}function qT(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:a}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return a},get tr(){return r=n.selection,a=n.doc,o=n.storedMarks,n}}}class $T{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:a}=n,{tr:o}=r,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([l,s])=>[l,(...u)=>{const c=s(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,l=[],s=!!t,u=t||o.tr,c=()=>(!s&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(u),l.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,v])=>[h,(...p)=>{const m=this.buildProps(u,n),g=v(...p)(m);return l.push(g),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,a=!1,o=t||r.tr,i=this.buildProps(o,a);return{...Object.fromEntries(Object.entries(n).map(([l,s])=>[l,(...u)=>s(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,a)}}buildProps(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,l={tr:t,editor:a,view:i,state:qT({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([s,u])=>[s,(...c)=>u(...c)(l)]))}};return l}}class Y5e{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(a=>a.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(a=>a!==n):delete this.callbacks[t]),this}once(t,n){const r=(...a)=>{this.off(t,r),n.apply(this,a)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}}function Et(e,t,n){return e.config[t]===void 0&&e.parent?Et(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?Et(e.parent,t,n):null}):e.config[t]}function ek(e){const t=e.filter(a=>a.type==="extension"),n=e.filter(a=>a.type==="node"),r=e.filter(a=>a.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function X$(e){const t=[],{nodeExtensions:n,markExtensions:r}=ek(e),a=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage,extensions:a},s=Et(i,"addGlobalAttributes",l);s&&s().forEach(u=>{u.types.forEach(c=>{Object.entries(u.attributes).forEach(([d,h])=>{t.push({type:c,name:d,attribute:{...o,...h}})})})})}),a.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},s=Et(i,"addAttributes",l);if(!s)return;const u=s();Object.entries(u).forEach(([c,d])=>{const h={...o,...d};typeof h?.default=="function"&&(h.default=h.default()),h?.isRequired&&h?.default===void 0&&delete h.default,t.push({type:i.name,name:c,attribute:h})})}),t}function oo(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function $n(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([a,o])=>{if(!r[a]){r[a]=o;return}if(a==="class"){const i=o?String(o).split(" "):[],l=r[a]?r[a].split(" "):[],s=i.filter(u=>!l.includes(u));r[a]=[...l,...s].join(" ")}else if(a==="style"){const i=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],l=r[a]?r[a].split(";").map(u=>u.trim()).filter(Boolean):[],s=new Map;l.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());s.set(c,d)}),i.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());s.set(c,d)}),r[a]=Array.from(s.entries()).map(([u,c])=>`${u}: ${c}`).join("; ")}else r[a]=o}),r},{})}function uO(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>$n(n,r),{})}function Z$(e){return typeof e=="function"}function gn(e,t=void 0,...n){return Z$(e)?t?e.bind(t)(...n):e(...n):e}function j5e(e={}){return Object.keys(e).length===0&&e.constructor===Object}function K5e(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function J$(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const a=t.reduce((o,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(n):K5e(n.getAttribute(i.name));return l==null?o:{...o,[i.name]:l}},{});return{...r,...a}}}}function Q$(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&j5e(n)?!1:n!=null))}function q$(e,t){var n;const r=X$(e),{nodeExtensions:a,markExtensions:o}=ek(e),i=(n=a.find(u=>Et(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(a.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((y,b)=>{const w=Et(b,"extendNodeSchema",d);return{...y,...w?w(u):{}}},{}),v=Q$({...h,content:gn(Et(u,"content",d)),marks:gn(Et(u,"marks",d)),group:gn(Et(u,"group",d)),inline:gn(Et(u,"inline",d)),atom:gn(Et(u,"atom",d)),selectable:gn(Et(u,"selectable",d)),draggable:gn(Et(u,"draggable",d)),code:gn(Et(u,"code",d)),whitespace:gn(Et(u,"whitespace",d)),linebreakReplacement:gn(Et(u,"linebreakReplacement",d)),defining:gn(Et(u,"defining",d)),isolating:gn(Et(u,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y?.attribute)===null||b===void 0?void 0:b.default}]}))}),p=gn(Et(u,"parseHTML",d));p&&(v.parseDOM=p.map(y=>J$(y,c)));const m=Et(u,"renderHTML",d);m&&(v.toDOM=y=>m({node:y,HTMLAttributes:uO(y,c)}));const g=Et(u,"renderText",d);return g&&(v.toText=g),[u.name,v]})),s=Object.fromEntries(o.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((g,y)=>{const b=Et(y,"extendMarkSchema",d);return{...g,...b?b(u):{}}},{}),v=Q$({...h,inclusive:gn(Et(u,"inclusive",d)),excludes:gn(Et(u,"excludes",d)),group:gn(Et(u,"group",d)),spanning:gn(Et(u,"spanning",d)),code:gn(Et(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),p=gn(Et(u,"parseHTML",d));p&&(v.parseDOM=p.map(g=>J$(g,c)));const m=Et(u,"renderHTML",d);return m&&(v.toDOM=g=>m({mark:g,HTMLAttributes:uO(g,c)})),[u.name,v]}));return new W7({topNode:i,nodes:l,marks:s})}function cO(e,t){return t.nodes[e]||t.marks[e]||null}function $$(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function dO(e,t){const n=Af.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const X5e=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(a,o,i,l)=>{var s,u;const c=((u=(s=a.type.spec).toText)===null||u===void 0?void 0:u.call(s,{node:a,pos:o,parent:i,index:l}))||a.textContent||"%leaf%";n+=a.isAtom&&!a.isText?c:c.slice(0,Math.max(0,r-o))}),n};function fO(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class tk{constructor(t){this.find=t.find,this.handler=t.handler}}const Z5e=(e,t)=>{if(fO(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function nk(e){var t;const{editor:n,from:r,to:a,text:o,rules:i,plugin:l}=e,{view:s}=n;if(s.composing)return!1;const u=s.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let c=!1;const d=X5e(u)+o;return i.forEach(h=>{if(c)return;const v=Z5e(d,h.find);if(!v)return;const p=s.state.tr,m=qT({state:s.state,transaction:p}),g={from:r-(v[0].length-o.length),to:a},{commands:y,chain:b,can:w}=new $T({editor:n,state:m});h.handler({state:m,range:g,match:v,commands:y,chain:b,can:w})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:a,text:o}),s.dispatch(p),c=!0)}),c}function J5e(e){const{editor:t,rules:n}=e,r=new Ar({state:{init(){return null},apply(a,o,i){const l=a.getMeta(r);if(l)return l;const s=a.getMeta("applyInputRules");return s&&setTimeout(()=>{let{text:u}=s;typeof u=="string"?u=u:u=dO(He.from(u),i.schema);const{from:c}=s,d=c+u.length;nk({editor:t,from:c,to:d,text:u,rules:n,plugin:r})}),a.selectionSet||a.docChanged?null:o}},props:{handleTextInput(a,o,i,l){return nk({editor:t,from:o,to:i,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:o}=a.state.selection;o&&nk({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(a,o){if(o.key!=="Enter")return!1;const{$cursor:i}=a.state.selection;return i?nk({editor:t,from:i.pos,to:i.pos,text:` -`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Q5e(e){return Object.prototype.toString.call(e).slice(8,-1)}function rk(e){return Q5e(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function ak(e,t){const n={...e};return rk(e)&&rk(t)&&Object.keys(t).forEach(r=>{rk(t[r])&&rk(e[r])?n[r]=ak(e[r],t[r]):n[r]=t[r]}),n}class zi{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(Et(this,"addOptions",{name:this.name}))),this.storage=gn(Et(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new zi(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>ak(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new zi(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(Et(n,"addOptions",{name:n.name})),n.storage=gn(Et(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,a=t.state.selection.$from;if(a.pos===a.end()){const o=a.marks();if(!o.find(l=>l?.type.name===n.name))return!1;const i=o.find(l=>l?.type.name===n.name);return i&&r.removeStoredMark(i),r.insertText(" ",a.pos),t.view.dispatch(r),!0}return!1}}function q5e(e){return typeof e=="number"}class $5e{constructor(t){this.find=t.find,this.handler=t.handler}}const eze=(e,t,n)=>{if(fO(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(a=>{const o=[a.text];return o.index=a.index,o.input=e,o.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(a.replaceWith)),o}):[]};function tze(e){const{editor:t,state:n,from:r,to:a,rule:o,pasteEvent:i,dropEvent:l}=e,{commands:s,chain:u,can:c}=new $T({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,a,(h,v)=>{if(!h.isTextblock||h.type.spec.code)return;const p=Math.max(r,v),m=Math.min(a,v+h.content.size),g=h.textBetween(p-v,m-v,void 0,"");eze(g,o.find,i).forEach(y=>{if(y.index===void 0)return;const b=p+y.index+1,w=b+y[0].length,S={from:n.tr.mapping.map(b),to:n.tr.mapping.map(w)},_=o.handler({state:n,range:S,match:y,commands:s,chain:u,can:c,pasteEvent:i,dropEvent:l});d.push(_)})}),d.every(h=>h!==null)}let ok=null;const nze=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function rze(e){const{editor:t,rules:n}=e;let r=null,a=!1,o=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const s=({state:u,from:c,to:d,rule:h,pasteEvt:v})=>{const p=u.tr,m=qT({state:u,transaction:p});if(!(!tze({editor:t,state:m,from:Math.max(c-1,0),to:d.b-1,rule:h,pasteEvent:v,dropEvent:l})||!p.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,p}};return n.map(u=>new Ar({view(c){const d=v=>{var p;r=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(v.target)?c.dom.parentElement:null,r&&(ok=t)},h=()=>{ok&&(ok=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(c,d)=>{if(o=r===c.dom.parentElement,l=d,!o){const h=ok;h?.isEditable&&setTimeout(()=>{const v=h.state.selection;v&&h.commands.deleteRange({from:v.from,to:v.to})},10)}return!1},paste:(c,d)=>{var h;const v=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=d,a=!!v?.includes("data-pm-slice"),!1}}},appendTransaction:(c,d,h)=>{const v=c[0],p=v.getMeta("uiEvent")==="paste"&&!a,m=v.getMeta("uiEvent")==="drop"&&!o,g=v.getMeta("applyPasteRules"),y=!!g;if(!p&&!m&&!y)return;if(y){let{text:S}=g;typeof S=="string"?S=S:S=dO(He.from(S),h.schema);const{from:_}=g,x=_+S.length,T=nze(S);return s({rule:u,state:h,from:_,to:{b:x},pasteEvt:T})}const b=d.doc.content.findDiffStart(h.doc.content),w=d.doc.content.findDiffEnd(h.doc.content);if(!(!q5e(b)||!w||b===w.b))return s({rule:u,state:h,from:b,to:w,pasteEvt:i})}}))}function aze(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class ip{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=ip.resolve(t),this.schema=q$(this.extensions,n),this.setupExtensions()}static resolve(t){const n=ip.sort(ip.flatten(t)),r=aze(n.map(a=>a.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(a=>`'${a}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},a=Et(n,"addExtensions",r);return a?[n,...this.flatten(a())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const a=Et(n,"priority")||100,o=Et(r,"priority")||100;return a>o?-1:a{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:cO(n.name,this.schema)},a=Et(n,"addCommands",r);return a?{...t,...a()}:t},{})}get plugins(){const{editor:t}=this,n=ip.sort([...this.extensions].reverse()),r=[],a=[],o=n.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:t,type:cO(i.name,this.schema)},s=[],u=Et(i,"addKeyboardShortcuts",l);let c={};if(i.type==="mark"&&Et(i,"exitable",l)&&(c.ArrowRight=()=>zi.handleExit({editor:t,mark:i})),u){const m=Object.fromEntries(Object.entries(u()).map(([g,y])=>[g,()=>y({editor:t})]));c={...c,...m}}const d=_5e(c);s.push(d);const h=Et(i,"addInputRules",l);$$(i,t.options.enableInputRules)&&h&&r.push(...h());const v=Et(i,"addPasteRules",l);$$(i,t.options.enablePasteRules)&&v&&a.push(...v());const p=Et(i,"addProseMirrorPlugins",l);if(p){const m=p();s.push(...m)}return s}).flat();return[J5e({editor:t,rules:r}),...rze({editor:t,rules:a}),...o]}get attributes(){return X$(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=ek(this.extensions);return Object.fromEntries(n.filter(r=>!!Et(r,"addNodeView")).map(r=>{const a=this.attributes.filter(s=>s.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:oo(r.name,this.schema)},i=Et(r,"addNodeView",o);if(!i)return[];const l=(s,u,c,d,h)=>{const v=uO(s,a);return i()({node:s,view:u,getPos:c,decorations:d,innerDecorations:h,editor:t,extension:r,HTMLAttributes:v})};return[r.name,l]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:cO(t.name,this.schema)};t.type==="mark"&&(!((n=gn(Et(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const a=Et(t,"onBeforeCreate",r),o=Et(t,"onCreate",r),i=Et(t,"onUpdate",r),l=Et(t,"onSelectionUpdate",r),s=Et(t,"onTransaction",r),u=Et(t,"onFocus",r),c=Et(t,"onBlur",r),d=Et(t,"onDestroy",r);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),i&&this.editor.on("update",i),l&&this.editor.on("selectionUpdate",l),s&&this.editor.on("transaction",s),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class or{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(Et(this,"addOptions",{name:this.name}))),this.storage=gn(Et(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new or(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>ak(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new or({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(Et(n,"addOptions",{name:n.name})),n.storage=gn(Et(n,"addStorage",{name:n.name,options:n.options})),n}}function eee(e,t,n){const{from:r,to:a}=t,{blockSeparator:o=` +`);return{dom:s,text:h,slice:t}}function l$(e,t,n,r,a){let o=a.parent.type.spec.code,i,l;if(!n&&!t)return null;let s=!!t&&(r||o||!n);if(s){if(e.someProp("transformPastedText",h=>{t=h(t,o||r,e)}),o)return l=new lt(ze.from(e.state.schema.text(t.replace(/\r\n?/g,` +`))),0,0),e.someProp("transformPasted",h=>{l=h(l,e,!0)}),l;let d=e.someProp("clipboardTextParser",h=>h(t,a,r,e));if(d)l=d;else{let h=a.marks(),{schema:v}=e.state,p=kf.fromSchema(v);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=i.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(v.text(m,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),i=MHe(n),qw&&DHe(i);let u=i&&i.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=i.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;i=h}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||Tf.fromSchema(e.state.schema)).parseSlice(i,{preserveWhitespace:!!(s||c),context:a,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!AHe.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)l=VHe(d$(l,+c[1],+c[2]),c[4]);else if(l=lt.maxOpen(EHe(l.content,a),!0),l.openStart||l.openEnd){let d=0,h=0;for(let v=l.content.firstChild;d{l=d(l,e,s)}),l}const AHe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function EHe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(i=>{if(!o)return;let l=r.findWrapping(i.type),s;if(!l)return o=null;if(s=o.length&&a.length&&u$(l,a,i,o[o.length-1],0))o[o.length-1]=s;else{o.length&&(o[o.length-1]=c$(o[o.length-1],a.length));let u=s$(i,l);o.push(u),r=r.matchType(u.type),a=l}}),o)return ze.from(o)}return e}function s$(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,ze.from(e));return e}function u$(e,t,n,r,a){if(a1&&(o=0),a=n&&(l=t<0?i.contentMatchAt(0).fillBefore(l,o<=a).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(ze.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,i.copy(l))}function d$(e,t,n){return tn})),Q2.createHTML(e)):e}function MHe(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=v$().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),a;if((a=r&&f$[r[1].toLowerCase()])&&(e=a.map(o=>"<"+o+">").join("")+e+a.map(o=>"").reverse().join("")),n.innerHTML=IHe(e),a)for(let o=0;o=0;l-=2){let s=n.nodes[r[l]];if(!s||s.hasRequiredAttrs())break;a=ze.from(s.create(r[l+1],a)),o++,i++}return new lt(a,o,i)}const yi={},bi={},PHe={touchstart:!0,touchmove:!0};class NHe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function LHe(e){for(let t in yi){let n=yi[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{RHe(e,r)&&!$2(e,r)&&(e.editable||!(r.type in bi))&&n(e,r)},PHe[t]?{passive:!0}:void 0)}gi&&e.dom.addEventListener("input",()=>null),q2(e)}function Lf(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function OHe(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function q2(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>$2(e,r))})}function $2(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function RHe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function BHe(e,t){!$2(e,t)&&yi[t.type]&&(e.editable||!(t.type in bi))&&yi[t.type](e,t)}bi.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!m$(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(nd&&jo&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),wy&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",a=>a(e,$v(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||kHe(e,n)?n.preventDefault():Lf(e,"key")},bi.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},bi.keypress=(e,t)=>{let n=t;if(m$(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Xl&&n.metaKey)return;if(e.someProp("handleKeyPress",a=>a(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Rt)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode),o=()=>e.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,a,o))&&e.dispatch(o()),n.preventDefault()}};function YT(e){return{left:e.clientX,top:e.clientY}}function FHe(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function eO(e,t,n,r,a){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let i=o.depth+1;i>0;i--)if(e.someProp(t,l=>i>o.depth?l(e,n,o.nodeAfter,o.before(i),a,!0):l(e,n,o.node(i),o.before(i),a,!1)))return!0;return!1}function Cy(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function HHe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Nt.isSelectable(r)?(Cy(e,new Nt(n)),!0):!1}function zHe(e,t){if(t==-1)return!1;let n=e.state.selection,r,a;n instanceof Nt&&(r=n.node);let o=e.state.doc.resolve(t);for(let i=o.depth+1;i>0;i--){let l=i>o.depth?o.nodeAfter:o.node(i);if(Nt.isSelectable(l)){r&&n.$from.depth>0&&i>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?a=o.before(n.$from.depth):a=o.before(i);break}}return a!=null?(Cy(e,Nt.create(e.state.doc,a)),!0):!1}function WHe(e,t,n,r,a){return eO(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(a?zHe(e,n):HHe(e,n))}function GHe(e,t,n,r){return eO(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",a=>a(e,t,r))}function UHe(e,t,n,r){return eO(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",a=>a(e,t,r))||YHe(e,n,r)}function YHe(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(Cy(e,Rt.create(r,0,r.content.size)),!0):!1;let a=r.resolve(t);for(let o=a.depth+1;o>0;o--){let i=o>a.depth?a.nodeAfter:a.node(o),l=a.before(o);if(i.inlineContent)Cy(e,Rt.create(r,l+1,l+1+i.content.size));else if(Nt.isSelectable(i))Cy(e,Nt.create(r,l));else continue;return!0}}function tO(e){return jT(e)}const p$=Xl?"metaKey":"ctrlKey";yi.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=tO(e),a=Date.now(),o="singleClick";a-e.input.lastClick.time<500&&FHe(n,e.input.lastClick)&&!n[p$]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:o,button:n.button};let i=e.posAtCoords(YT(n));i&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new jHe(e,i,n,!!r)):(o=="doubleClick"?GHe:UHe)(e,i.pos,i.inside,n)?n.preventDefault():Lf(e,"pointer"))};class jHe{constructor(t,n,r,a){this.view=t,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[p$],this.allowDefault=r.shiftKey;let o,i;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),i=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,i=c.depth?c.before():0}const l=a?null:r.target,s=l?t.docView.nearestDesc(l,!0):null;this.target=s&&s.dom.nodeType==1?s.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Nt&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Kl&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Lf(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ad(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(YT(t))),this.updateAllowDefault(t),this.allowDefault||!n?Lf(this.view,"pointer"):WHe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||gi&&this.mightDrag&&!this.mightDrag.node.isAtom||jo&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Cy(this.view,Xt.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):Lf(this.view,"pointer")}move(t){this.updateAllowDefault(t),Lf(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}yi.touchstart=e=>{e.input.lastTouch=Date.now(),tO(e),Lf(e,"pointer")},yi.touchmove=e=>{e.input.lastTouch=Date.now(),Lf(e,"pointer")},yi.contextmenu=e=>tO(e);function m$(e,t){return e.composing?!0:gi&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const KHe=nd?5e3:-1;bi.compositionstart=bi.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Rt&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),jT(e,!0),e.markCursor=null;else if(jT(e,!t.selection.empty),Kl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let a=r.focusNode,o=r.focusOffset;a&&a.nodeType==1&&o!=0;){let i=o<0?a.lastChild:a.childNodes[o-1];if(!i)break;if(i.nodeType==3){let l=e.domSelection();l&&l.collapse(i,i.nodeValue.length);break}else a=i,o=-1}}e.input.composing=!0}g$(e,KHe)},bi.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,g$(e,20))};function g$(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>jT(e),t))}function y$(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=ZHe());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function XHe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=H3e(t.focusNode,t.focusOffset),r=z3e(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let a=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!a||!a.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return r}}return n||r}function ZHe(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function jT(e,t=!1){if(!(nd&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),y$(e),t||e.docView&&e.docView.dirty){let n=U2(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function JHe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const rS=Hi&&Df<15||wy&&j3e<604;yi.copy=bi.cut=(e,t)=>{let n=t,r=e.state.selection,a=n.type=="cut";if(r.empty)return;let o=rS?null:n.clipboardData,i=r.content(),{dom:l,text:s}=Z2(e,i);o?(n.preventDefault(),o.clearData(),o.setData("text/html",l.innerHTML),o.setData("text/plain",s)):JHe(e,l),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function QHe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function qHe(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?aS(e,r.value,null,a,t):aS(e,r.textContent,r.innerHTML,a,t)},50)}function aS(e,t,n,r,a){let o=l$(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",s=>s(e,a,o||lt.empty)))return!0;if(!o)return!1;let i=QHe(o),l=i?e.state.tr.replaceSelectionWith(i,r):e.state.tr.replaceSelection(o);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function b$(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}bi.paste=(e,t)=>{let n=t;if(e.composing&&!nd)return;let r=rS?null:n.clipboardData,a=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&aS(e,b$(r),r.getData("text/html"),a,n)?n.preventDefault():qHe(e,n)};class w${constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const $He=Xl?"altKey":"ctrlKey";function S$(e,t){return e.someProp("dragCopies",r=>!r(t))??!t[$He]}yi.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(YT(n)),i;if(!(o&&o.pos>=a.from&&o.pos<=(a instanceof Nt?a.to-1:a.to))){if(r&&r.mightDrag)i=Nt.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(i=Nt.create(e.state.doc,d.posBefore))}}let l=(i||e.state.selection).content(),{dom:s,text:u,slice:c}=Z2(e,l);(!n.dataTransfer.files.length||!jo||Aq>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(rS?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",rS||n.dataTransfer.setData("text/plain",u),e.dragging=new w$(c,S$(e,n),i)},yi.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},bi.dragover=bi.dragenter=(e,t)=>t.preventDefault(),bi.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let a=e.posAtCoords(YT(n));if(!a)return;let o=e.state.doc.resolve(a.pos),i=r&&r.slice;i?e.someProp("transformPasted",p=>{i=p(i,e,!1)}):i=l$(e,b$(n.dataTransfer),rS?null:n.dataTransfer.getData("text/html"),!1,o);let l=!!(r&&S$(e,n));if(e.someProp("handleDrop",p=>p(e,n,i||lt.empty,l))){n.preventDefault();return}if(!i)return;n.preventDefault();let s=i?cq(e.state.doc,o.pos,i):o.pos;s==null&&(s=o.pos);let u=e.state.tr;if(l){let{node:p}=r;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(s),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=u.doc;if(d?u.replaceRangeWith(c,c,i.content.firstChild):u.replaceRange(c,c,i),u.doc.eq(h))return;let v=u.doc.resolve(c);if(d&&Nt.isSelectable(i.content.firstChild)&&v.nodeAfter&&v.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new Nt(v));else{let p=u.mapping.map(s);u.mapping.maps[u.mapping.maps.length-1].forEach((m,g,y,b)=>p=b),u.setSelection(j2(e,v,u.doc.resolve(p)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},yi.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&ad(e)},20))},yi.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},yi.beforeinput=(e,t)=>{if(jo&&nd&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,$v(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let e in bi)yi[e]=bi[e];function oS(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class KT{constructor(t,n){this.toDOM=t,this.spec=n||rp,this.side=this.spec.side||0}map(t,n,r,a){let{pos:o,deleted:i}=t.mapResult(n.from+a,this.side<0?-1:1);return i?null:new ko(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof KT&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&oS(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Of{constructor(t,n){this.attrs=t,this.spec=n||rp}map(t,n,r,a){let o=t.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,i=t.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new ko(o,i,this)}valid(t,n){return n.from=t&&(!o||o(l.spec))&&r.push(l.copy(l.from+a,l.to+a))}for(let i=0;it){let l=this.children[i]+1;this.children[i+2].findInner(t-l,n-l,r,a+l,o)}}map(t,n,r){return this==Ko||t.maps.length==0?this:this.mapInner(t,n,0,0,r||rp)}mapInner(t,n,r,a,o){let i;for(let l=0;l{let u=s+r,c;if(c=C$(n,l,u)){for(a||(a=this.children.slice());ol&&d.to=t){this.children[l]==t&&(r=this.children[l+2]);break}let o=t+1,i=o+n.content.size;for(let l=0;lo&&s.type instanceof Of){let u=Math.max(o,s.from)-o,c=Math.min(i,s.to)-o;ua.map(t,n,rp));return Rf.from(r)}forChild(t,n){if(n.isLeaf)return Ir.empty;let r=[];for(let a=0;an instanceof Ir)?t:t.reduce((n,r)=>n.concat(r instanceof Ir?r:r.members),[]))}}forEachSet(t){for(let n=0;n{let g=m-p-(v-h);for(let y=0;yb+c-d)continue;let w=l[y]+c-d;v>=w?l[y+1]=h<=w?-2:-1:h>=c&&g&&(l[y]+=g,l[y+1]+=g)}d+=g}),c=n.maps[u].map(c,-1)}let s=!1;for(let u=0;u=r.content.size){s=!0;continue}let h=n.map(e[u+1]+o,-1),v=h-a,{index:p,offset:m}=r.content.findIndex(d),g=r.maybeChild(p);if(g&&m==d&&m+g.nodeSize==v){let y=l[u+2].mapInner(n,g,c+1,e[u]+o+1,i);y!=Ko?(l[u]=d,l[u+1]=v,l[u+2]=y):(l[u+1]=-2,s=!0)}else s=!0}if(s){let u=t5e(l,e,t,n,a,o,i),c=XT(u,r,0,i);t=c.local;for(let d=0;dn&&i.to{let u=C$(e,l,s+n);if(u){o=!0;let c=XT(u,l,n+s+1,r);c!=Ko&&a.push(s,s+l.nodeSize,c)}});let i=x$(o?_$(e):e,-n).sort(ap);for(let l=0;l0;)t++;e.splice(t,0,n)}function aO(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Ko&&t.push(r)}),e.cursorWrapper&&t.push(Ir.create(e.state.doc,[e.cursorWrapper.deco])),Rf.from(t)}const n5e={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},r5e=Hi&&Df<=11;class a5e{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class o5e{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new a5e,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let a=0;aa.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),r5e&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,n5e)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if($q(this.view)){if(this.suppressingSelectionUpdates)return ad(this.view);if(Hi&&Df<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&qv(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=by(o))n.add(o);for(let o=t.anchorNode;o;o=by(o))if(n.has(o)){r=o;break}let a=r&&this.view.docView.nearestDesc(r);if(a&&a.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&$q(t)&&!this.ignoreSelectionChange(r),o=-1,i=-1,l=!1,s=[];if(t.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,h]=c;d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let h of c){let v=h.parentNode;v&&v.nodeName=="LI"&&(!d||s5e(t,d)!=v)&&h.remove()}}}let u=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||a)&&(o>-1&&(t.docView.markDirty(o,i),i5e(t)),this.handleDOMChange(o,i,l,s),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||ad(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ca;g--){let y=r.childNodes[g-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){o=g;break}if(!b||b.size)break}let d=e.state.doc,h=e.someProp("domParser")||Tf.fromSchema(e.state.schema),v=d.resolve(i),p=null,m=h.parse(r,{topNode:v.parent,topMatch:v.parent.contentMatchAt(v.index()),topOpen:!0,from:a,to:o,preserveWhitespace:v.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:c5e,context:v});if(u&&u[0].pos!=null){let g=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=g),p={anchor:g+i,head:y+i}}return{doc:m,sel:p,from:i,to:l}}function c5e(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(gi&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||gi&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const d5e=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function f5e(e,t,n,r,a){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,E=U2(e,A);if(E&&!e.state.selection.eq(E)){if(jo&&nd&&e.input.lastKeyCode===13&&Date.now()-100M(e,$v(13,"Enter"))))return;let I=e.state.tr.setSelection(E);A=="pointer"?I.setMeta("pointer",!0):A=="key"&&I.scrollIntoView(),o&&I.setMeta("composition",o),e.dispatch(I)}return}let i=e.state.doc.resolve(t),l=i.sharedDepth(n);t=i.before(l+1),n=e.state.doc.resolve(n).after(l+1);let s=e.state.selection,u=u5e(e,t,n),c=e.state.doc,d=c.slice(u.from,u.to),h,v;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||nd)&&a.some(A=>A.nodeType==1&&!d5e.test(A.nodeName))&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",A=>A(e,$v(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!p)if(r&&s instanceof Rt&&!s.empty&&s.$head.sameParent(s.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:s.from,endA:s.to,endB:s.to};else{if(u.sel){let A=I$(e,e.state.doc,u.sel);if(A&&!A.eq(e.state.selection)){let E=e.state.tr.setSelection(A);o&&E.setMeta("composition",o),e.dispatch(E)}}return}e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),Hi&&Df<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=u.doc.resolveNoCache(p.start-u.from),g=u.doc.resolveNoCache(p.endB-u.from),y=c.resolve(p.start),b=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=p.endA,w;if((wy&&e.input.lastIOSEnter>Date.now()-225&&(!b||a.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!b&&m.posm.pos)&&e.someProp("handleKeyDown",A=>A(e,$v(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>p.start&&v5e(c,p.start,p.endA,m,g)&&e.someProp("handleKeyDown",A=>A(e,$v(8,"Backspace")))){nd&&jo&&e.domObserver.suppressSelectionUpdates();return}jo&&p.endB==p.start&&(e.input.lastChromeDelete=Date.now()),nd&&!b&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,g=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,$v(13,"Enter"))})},20));let S=p.start,_=p.endA,x=A=>{let E=A||e.state.tr.replace(S,_,u.doc.slice(p.start-u.from,p.endB-u.from));if(u.sel){let I=I$(e,E.doc,u.sel);I&&!(jo&&e.composing&&I.empty&&(p.start!=p.endB||e.input.lastChromeDeletead(e),20));let A=x(e.state.tr.delete(S,_)),E=c.resolve(p.start).marksAcross(c.resolve(p.endA));E&&A.ensureMarks(E),e.dispatch(A)}else if(p.endA==p.endB&&(T=h5e(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let A=x(e.state.tr);T.type=="add"?A.addMark(S,_,T.mark):A.removeMark(S,_,T.mark),e.dispatch(A)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let A=m.parent.textBetween(m.parentOffset,g.parentOffset),E=()=>x(e.state.tr.insertText(A,S,_));e.someProp("handleTextInput",I=>I(e,S,_,A,E))||e.dispatch(E())}}else e.dispatch(x())}function I$(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:j2(e,t.resolve(n.anchor),t.resolve(n.head))}function h5e(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,a=n,o=r,i,l,s;for(let c=0;cc.mark(l.addToSet(c.marks));else if(a.length==0&&o.length==1)l=o[0],i="remove",s=c=>c.mark(l.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||oO(i,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,a++}return a}function p5e(e,t,n,r,a){let o=e.findDiffStart(t,n);if(o==null)return null;let{a:i,b:l}=e.findDiffEnd(t,n+e.size,n+t.size);if(a=="end"){let s=Math.max(0,o-Math.min(i,l));r-=i+s-o}if(i=i?o-r:0;o-=s,o&&o=l?o-r:0;o-=s,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class D${constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new NHe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(O$),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=N$(this),P$(this),this.nodeViews=L$(this),this.docView=zq(this.state.doc,V$(this),aO(this),this.dom,this),this.domObserver=new o5e(this,(r,a,o,i)=>f5e(this,r,a,o,i)),this.domObserver.start(),LHe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&q2(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(O$),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let a=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(y$(this),i=!0),this.state=t;let l=a.plugins!=t.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let v=L$(this);g5e(v,this.nodeViews)&&(this.nodeViews=v,o=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&q2(this),this.editable=N$(this),P$(this);let s=aO(this),u=V$(this),c=a.plugins!=t.plugins&&!a.doc.eq(t.doc)?"reset":t.scrollToSelection>a.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,u,s);(d||!t.selection.eq(a.selection))&&(i=!0);let h=c=="preserve"&&i&&this.dom.style.overflowAnchor==null&&Z3e(this);if(i){this.domObserver.stop();let v=d&&(Hi||jo)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&m5e(a.selection,t.selection);if(d){let p=jo?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=XHe(this)),(o||!this.docView.update(t.doc,u,s,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=zq(t.doc,u,s,this.dom,this)),p&&!this.trackWrites&&(v=!0)}v||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&bHe(this))?ad(this,v):(Qq(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((r=this.dragging)===null||r===void 0)&&r.node&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&J3e(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Nt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Eq(this,n.getBoundingClientRect(),t)}else Eq(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(a=o)}this.dragging=new w$(t.slice,t.move,a<0?void 0:Nt.create(this.state.doc,a))}someProp(t,n){let r=this._props&&this._props[t],a;if(r!=null&&(a=n?n(r):r))return a;for(let i=0;in.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return nHe(this,t)}coordsAtPos(t,n=1){return Nq(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let a=this.docView.posFromDOM(t,n,r);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(t,n){return lHe(this,n||this.state,t)}pasteHTML(t,n){return aS(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return aS(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return Z2(this,t)}destroy(){this.docView&&(OHe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],aO(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,B3e())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return BHe(this,t)}domSelectionRange(){let t=this.domSelection();return t?gi&&this.root.nodeType===11&&G3e(this.dom.ownerDocument)==this.dom&&l5e(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}D$.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function V$(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[ko.node(0,e.state.doc.content.size,t)]}function P$(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:ko.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function N$(e){return!e.someProp("editable",t=>t(e.state)===!1)}function m5e(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function L$(e){let t=Object.create(null);function n(r){for(let a in r)Object.prototype.hasOwnProperty.call(t,a)||(t[a]=r[a])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function g5e(e,t){let n=0,r=0;for(let a in e){if(e[a]!=t[a])return!0;n++}for(let a in t)r++;return n!=r}function O$(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Bf={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ZT={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},y5e=typeof navigator<"u"&&/Mac/.test(navigator.platform),b5e=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ao=0;Ao<10;Ao++)Bf[48+Ao]=Bf[96+Ao]=String(Ao);for(var Ao=1;Ao<=24;Ao++)Bf[Ao+111]="F"+Ao;for(var Ao=65;Ao<=90;Ao++)Bf[Ao]=String.fromCharCode(Ao+32),ZT[Ao]=String.fromCharCode(Ao);for(var iO in Bf)ZT.hasOwnProperty(iO)||(ZT[iO]=Bf[iO]);function w5e(e){var t=y5e&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||b5e&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?ZT:Bf)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const S5e=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),x5e=typeof navigator<"u"&&/Win/.test(navigator.platform);function C5e(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,a,o,i;for(let l=0;le.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function R$(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const B$=(e,t,n)=>{let r=R$(e,n);if(!r)return!1;let a=uO(r);if(!a){let i=r.blockRange(),l=i&&vy(i);return l==null?!1:(t&&t(e.tr.lift(i,l).scrollIntoView()),!0)}let o=a.nodeBefore;if(K$(e,a,t,-1))return!0;if(r.parent.content.size==0&&(Ty(o,"end")||Nt.isSelectable(o)))for(let i=r.depth;;i--){let l=BT(e.doc,r.before(i),r.after(i),lt.empty);if(l&&l.slice.size1)break}return o.isAtom&&a.depth==r.depth-1?(t&&t(e.tr.delete(a.pos-o.nodeSize,a.pos).scrollIntoView()),!0):!1},k5e=(e,t,n)=>{let r=R$(e,n);if(!r)return!1;let a=uO(r);return a?F$(e,a,t):!1},A5e=(e,t,n)=>{let r=z$(e,n);if(!r)return!1;let a=cO(r);return a?F$(e,a,t):!1};function F$(e,t,n){let r=t.nodeBefore,a=r,o=t.pos-1;for(;!a.isTextblock;o--){if(a.type.spec.isolating)return!1;let c=a.lastChild;if(!c)return!1;a=c}let i=t.nodeAfter,l=i,s=t.pos+1;for(;!l.isTextblock;s++){if(l.type.spec.isolating)return!1;let c=l.firstChild;if(!c)return!1;l=c}let u=BT(e.doc,o,s,lt.empty);if(!u||u.from!=o||u instanceof ro&&u.slice.size>=s-o)return!1;if(n){let c=e.tr.step(u);c.setSelection(Rt.create(c.doc,o)),n(c.scrollIntoView())}return!0}function Ty(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const H$=(e,t,n)=>{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=uO(r)}let i=o&&o.nodeBefore;return!i||!Nt.isSelectable(i)?!1:(t&&t(e.tr.setSelection(Nt.create(e.doc,o.pos-i.nodeSize)).scrollIntoView()),!0)};function uO(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function z$(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=z$(e,n);if(!r)return!1;let a=cO(r);if(!a)return!1;let o=a.nodeAfter;if(K$(e,a,t,1))return!0;if(r.parent.content.size==0&&(Ty(o,"start")||Nt.isSelectable(o))){let i=BT(e.doc,r.before(),r.after(),lt.empty);if(i&&i.slice.size{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof Nt,a;if(r){if(n.node.isTextblock||!If(e.doc,n.from))return!1;a=n.from}else if(a=RT(e.doc,n.from,-1),a==null)return!1;if(t){let o=e.tr.join(a);r&&o.setSelection(Nt.create(o.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},I5e=(e,t)=>{let n=e.selection,r;if(n instanceof Nt){if(n.node.isTextblock||!If(e.doc,n.to))return!1;r=n.to}else if(r=RT(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},M5e=(e,t)=>{let{$from:n,$to:r}=e.selection,a=n.blockRange(r),o=a&&vy(a);return o==null?!1:(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},U$=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` +`).scrollIntoView()),!0)};function dO(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),o=n.indexAfter(-1),i=dO(a.contentMatchAt(o));if(!i||!a.canReplaceWith(o,o,i))return!1;if(t){let l=n.after(),s=e.tr.replaceWith(l,l,i.createAndFill());s.setSelection(Xt.near(s.doc.resolve(l),1)),t(s.scrollIntoView())}return!0},Y$=(e,t)=>{let n=e.selection,{$from:r,$to:a}=n;if(n instanceof gl||r.parent.inlineContent||a.parent.inlineContent)return!1;let o=dO(a.parent.contentMatchAt(a.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let i=(!r.parentOffset&&a.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(ed(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),a=r&&vy(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)};function V5e(e){return(t,n)=>{let{$from:r,$to:a}=t.selection;if(t.selection instanceof Nt&&t.selection.node.isBlock)return!r.parentOffset||!ed(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],i,l,s=!1,u=!1;for(let v=r.depth;;v--)if(r.node(v).isBlock){s=r.end(v)==r.pos+(r.depth-v),u=r.start(v)==r.pos-(r.depth-v),l=dO(r.node(v-1).contentMatchAt(r.indexAfter(v-1))),o.unshift(s&&l?{type:l}:null),i=v;break}else{if(v==1)return!1;o.unshift(null)}let c=t.tr;(t.selection instanceof Rt||t.selection instanceof gl)&&c.deleteSelection();let d=c.mapping.map(r.pos),h=ed(c.doc,d,o.length,o);if(h||(o[0]=l?{type:l}:null,h=ed(c.doc,d,o.length,o)),!h)return!1;if(c.split(d,o.length,o),!s&&u&&r.node(i).type!=l){let v=c.mapping.map(r.before(i)),p=c.doc.resolve(v);l&&r.node(i-1).canReplaceWith(p.index(),p.index()+1,l)&&c.setNodeMarkup(c.mapping.map(r.before(i)),l)}return n&&n(c.scrollIntoView()),!0}}const P5e=V5e(),N5e=(e,t)=>{let{$from:n,to:r}=e.selection,a,o=n.sharedDepth(r);return o==0?!1:(a=n.before(o),t&&t(e.tr.setSelection(Nt.create(e.doc,a))),!0)};function L5e(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||If(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function K$(e,t,n,r){let a=t.nodeBefore,o=t.nodeAfter,i,l,s=a.type.spec.isolating||o.type.spec.isolating;if(!s&&L5e(e,t,n))return!0;let u=!s&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(i=(l=a.contentMatchAt(a.childCount)).findWrapping(o.type))&&l.matchType(i[0]||o.type).validEnd){if(n){let v=t.pos+o.nodeSize,p=ze.empty;for(let y=i.length-1;y>=0;y--)p=ze.from(i[y].create(null,p));p=ze.from(a.copy(p));let m=e.tr.step(new ao(t.pos-1,v,t.pos,v,new lt(p,1,0),i.length,!0)),g=m.doc.resolve(v+2*i.length);g.nodeAfter&&g.nodeAfter.type==a.type&&If(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&s?null:Xt.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),h=d&&vy(d);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(d,h).scrollIntoView()),!0;if(u&&Ty(o,"start",!0)&&Ty(a,"end")){let v=a,p=[];for(;p.push(v),!v.isTextblock;)v=v.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(v.canReplace(v.childCount,v.childCount,m.content)){if(n){let y=ze.empty;for(let w=p.length-1;w>=0;w--)y=ze.from(p[w].copy(y));let b=e.tr.step(new ao(t.pos-p.length,t.pos+o.nodeSize,t.pos+g,t.pos+o.nodeSize-g,new lt(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function X$(e){return function(t,n){let r=t.selection,a=e<0?r.$from:r.$to,o=a.depth;for(;a.node(o).isInline;){if(!o)return!1;o--}return a.node(o).isTextblock?(n&&n(t.tr.setSelection(Rt.create(t.doc,e<0?a.start(o):a.end(o)))),!0):!1}}const O5e=X$(-1),R5e=X$(1);function B5e(e,t=null){return function(n,r){let{$from:a,$to:o}=n.selection,i=a.blockRange(o),l=i&&E2(i,e,t);return l?(r&&r(n.tr.wrap(i,l).scrollIntoView()),!0):!1}}function Z$(e,t=null){return function(n,r){let a=!1;for(let o=0;o{if(a)return!1;if(!(!s.isTextblock||s.hasMarkup(e,t)))if(s.type==e)a=!0;else{let c=n.doc.resolve(u),d=c.index();a=c.parent.canReplaceWith(d,d+1,e)}})}if(!a)return!1;if(r){let o=n.tr;for(let i=0;i=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let s=i.resolve(t.start-2);o=new DT(s,s,t.depth),t.endIndex=0;c--)o=ze.from(n[c].type.create(n[c].attrs,o));e.step(new ao(t.start-(r?2:0),t.end,t.start,t.end,new lt(o,0,0),n.length,!0));let i=0;for(let c=0;ci.childCount>0&&i.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?G5e(t,n,e,o):U5e(t,n,o):!0:!1}}function G5e(e,t,n,r){let a=e.tr,o=r.end,i=r.$to.end(r.depth);om;p--)v-=a.child(p).nodeSize,r.delete(v-1,v+1);let o=r.doc.resolve(n.start),i=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,s=n.endIndex==a.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(l?0:1),c+1,i.content.append(s?ze.empty:ze.from(a))))return!1;let d=o.pos,h=d+i.nodeSize;return r.step(new ao(d-(l?1:0),h+(s?1:0),d+1,h-1,new lt((l?ze.empty:ze.from(a.copy(ze.empty))).append(s?ze.empty:ze.from(a.copy(ze.empty))),l?0:1,s?0:1),l?0:1)),t(r.scrollIntoView()),!0}function Y5e(e){return function(t,n){let{$from:r,$to:a}=t.selection,o=r.blockRange(a,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let l=o.parent,s=l.child(i-1);if(s.type!=e)return!1;if(n){let u=s.lastChild&&s.lastChild.type==l.type,c=ze.from(u?e.create():null),d=new lt(ze.from(e.create(null,ze.from(l.type.create(null,c)))),u?3:1,0),h=o.start,v=o.end;n(t.tr.step(new ao(h-(u?3:1),v,h,v,d,1,!0)).scrollIntoView())}return!0}}function QT(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:a}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return a},get tr(){return r=n.selection,a=n.doc,o=n.storedMarks,n}}}class qT{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:a}=n,{tr:o}=r,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([l,s])=>[l,(...u)=>{const c=s(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,l=[],s=!!t,u=t||o.tr,c=()=>(!s&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(u),l.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,v])=>[h,(...p)=>{const m=this.buildProps(u,n),g=v(...p)(m);return l.push(g),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,a=!1,o=t||r.tr,i=this.buildProps(o,a);return{...Object.fromEntries(Object.entries(n).map(([l,s])=>[l,(...u)=>s(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,a)}}buildProps(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,l={tr:t,editor:a,view:i,state:QT({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([s,u])=>[s,(...c)=>u(...c)(l)]))}};return l}}class j5e{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(a=>a.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(a=>a!==n):delete this.callbacks[t]),this}once(t,n){const r=(...a)=>{this.off(t,r),n.apply(this,a)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}}function At(e,t,n){return e.config[t]===void 0&&e.parent?At(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?At(e.parent,t,n):null}):e.config[t]}function $T(e){const t=e.filter(a=>a.type==="extension"),n=e.filter(a=>a.type==="node"),r=e.filter(a=>a.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function J$(e){const t=[],{nodeExtensions:n,markExtensions:r}=$T(e),a=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage,extensions:a},s=At(i,"addGlobalAttributes",l);s&&s().forEach(u=>{u.types.forEach(c=>{Object.entries(u.attributes).forEach(([d,h])=>{t.push({type:c,name:d,attribute:{...o,...h}})})})})}),a.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},s=At(i,"addAttributes",l);if(!s)return;const u=s();Object.entries(u).forEach(([c,d])=>{const h={...o,...d};typeof h?.default=="function"&&(h.default=h.default()),h?.isRequired&&h?.default===void 0&&delete h.default,t.push({type:i.name,name:c,attribute:h})})}),t}function oo(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function er(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([a,o])=>{if(!r[a]){r[a]=o;return}if(a==="class"){const i=o?String(o).split(" "):[],l=r[a]?r[a].split(" "):[],s=i.filter(u=>!l.includes(u));r[a]=[...l,...s].join(" ")}else if(a==="style"){const i=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],l=r[a]?r[a].split(";").map(u=>u.trim()).filter(Boolean):[],s=new Map;l.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());s.set(c,d)}),i.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());s.set(c,d)}),r[a]=Array.from(s.entries()).map(([u,c])=>`${u}: ${c}`).join("; ")}else r[a]=o}),r},{})}function hO(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>er(n,r),{})}function Q$(e){return typeof e=="function"}function gn(e,t=void 0,...n){return Q$(e)?t?e.bind(t)(...n):e(...n):e}function K5e(e={}){return Object.keys(e).length===0&&e.constructor===Object}function X5e(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function q$(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const a=t.reduce((o,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(n):X5e(n.getAttribute(i.name));return l==null?o:{...o,[i.name]:l}},{});return{...r,...a}}}}function $$(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&K5e(n)?!1:n!=null))}function eee(e,t){var n;const r=J$(e),{nodeExtensions:a,markExtensions:o}=$T(e),i=(n=a.find(u=>At(u,"topNode")))===null||n===void 0?void 0:n.name,l=Object.fromEntries(a.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((y,b)=>{const w=At(b,"extendNodeSchema",d);return{...y,...w?w(u):{}}},{}),v=$$({...h,content:gn(At(u,"content",d)),marks:gn(At(u,"marks",d)),group:gn(At(u,"group",d)),inline:gn(At(u,"inline",d)),atom:gn(At(u,"atom",d)),selectable:gn(At(u,"selectable",d)),draggable:gn(At(u,"draggable",d)),code:gn(At(u,"code",d)),whitespace:gn(At(u,"whitespace",d)),linebreakReplacement:gn(At(u,"linebreakReplacement",d)),defining:gn(At(u,"defining",d)),isolating:gn(At(u,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y?.attribute)===null||b===void 0?void 0:b.default}]}))}),p=gn(At(u,"parseHTML",d));p&&(v.parseDOM=p.map(y=>q$(y,c)));const m=At(u,"renderHTML",d);m&&(v.toDOM=y=>m({node:y,HTMLAttributes:hO(y,c)}));const g=At(u,"renderText",d);return g&&(v.toText=g),[u.name,v]})),s=Object.fromEntries(o.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((g,y)=>{const b=At(y,"extendMarkSchema",d);return{...g,...b?b(u):{}}},{}),v=$$({...h,inclusive:gn(At(u,"inclusive",d)),excludes:gn(At(u,"excludes",d)),group:gn(At(u,"group",d)),spanning:gn(At(u,"spanning",d)),code:gn(At(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),p=gn(At(u,"parseHTML",d));p&&(v.parseDOM=p.map(g=>q$(g,c)));const m=At(u,"renderHTML",d);return m&&(v.toDOM=g=>m({mark:g,HTMLAttributes:hO(g,c)})),[u.name,v]}));return new U7({topNode:i,nodes:l,marks:s})}function vO(e,t){return t.nodes[e]||t.marks[e]||null}function tee(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function pO(e,t){const n=kf.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const Z5e=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(a,o,i,l)=>{var s,u;const c=((u=(s=a.type.spec).toText)===null||u===void 0?void 0:u.call(s,{node:a,pos:o,parent:i,index:l}))||a.textContent||"%leaf%";n+=a.isAtom&&!a.isText?c:c.slice(0,Math.max(0,r-o))}),n};function mO(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class ek{constructor(t){this.find=t.find,this.handler=t.handler}}const J5e=(e,t)=>{if(mO(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function tk(e){var t;const{editor:n,from:r,to:a,text:o,rules:i,plugin:l}=e,{view:s}=n;if(s.composing)return!1;const u=s.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let c=!1;const d=Z5e(u)+o;return i.forEach(h=>{if(c)return;const v=J5e(d,h.find);if(!v)return;const p=s.state.tr,m=QT({state:s.state,transaction:p}),g={from:r-(v[0].length-o.length),to:a},{commands:y,chain:b,can:w}=new qT({editor:n,state:m});h.handler({state:m,range:g,match:v,commands:y,chain:b,can:w})===null||!p.steps.length||(p.setMeta(l,{transform:p,from:r,to:a,text:o}),s.dispatch(p),c=!0)}),c}function Q5e(e){const{editor:t,rules:n}=e,r=new Er({state:{init(){return null},apply(a,o,i){const l=a.getMeta(r);if(l)return l;const s=a.getMeta("applyInputRules");return s&&setTimeout(()=>{let{text:u}=s;typeof u=="string"?u=u:u=pO(ze.from(u),i.schema);const{from:c}=s,d=c+u.length;tk({editor:t,from:c,to:d,text:u,rules:n,plugin:r})}),a.selectionSet||a.docChanged?null:o}},props:{handleTextInput(a,o,i,l){return tk({editor:t,from:o,to:i,text:l,rules:n,plugin:r})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:o}=a.state.selection;o&&tk({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(a,o){if(o.key!=="Enter")return!1;const{$cursor:i}=a.state.selection;return i?tk({editor:t,from:i.pos,to:i.pos,text:` +`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function q5e(e){return Object.prototype.toString.call(e).slice(8,-1)}function nk(e){return q5e(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function rk(e,t){const n={...e};return nk(e)&&nk(t)&&Object.keys(t).forEach(r=>{nk(t[r])&&nk(e[r])?n[r]=rk(e[r],t[r]):n[r]=t[r]}),n}class zi{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(At(this,"addOptions",{name:this.name}))),this.storage=gn(At(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new zi(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>rk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new zi(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(At(n,"addOptions",{name:n.name})),n.storage=gn(At(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,a=t.state.selection.$from;if(a.pos===a.end()){const o=a.marks();if(!o.find(l=>l?.type.name===n.name))return!1;const i=o.find(l=>l?.type.name===n.name);return i&&r.removeStoredMark(i),r.insertText(" ",a.pos),t.view.dispatch(r),!0}return!1}}function $5e(e){return typeof e=="number"}class eze{constructor(t){this.find=t.find,this.handler=t.handler}}const tze=(e,t,n)=>{if(mO(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(a=>{const o=[a.text];return o.index=a.index,o.input=e,o.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(a.replaceWith)),o}):[]};function nze(e){const{editor:t,state:n,from:r,to:a,rule:o,pasteEvent:i,dropEvent:l}=e,{commands:s,chain:u,can:c}=new qT({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,a,(h,v)=>{if(!h.isTextblock||h.type.spec.code)return;const p=Math.max(r,v),m=Math.min(a,v+h.content.size),g=h.textBetween(p-v,m-v,void 0,"");tze(g,o.find,i).forEach(y=>{if(y.index===void 0)return;const b=p+y.index+1,w=b+y[0].length,S={from:n.tr.mapping.map(b),to:n.tr.mapping.map(w)},_=o.handler({state:n,range:S,match:y,commands:s,chain:u,can:c,pasteEvent:i,dropEvent:l});d.push(_)})}),d.every(h=>h!==null)}let ak=null;const rze=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function aze(e){const{editor:t,rules:n}=e;let r=null,a=!1,o=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const s=({state:u,from:c,to:d,rule:h,pasteEvt:v})=>{const p=u.tr,m=QT({state:u,transaction:p});if(!(!nze({editor:t,state:m,from:Math.max(c-1,0),to:d.b-1,rule:h,pasteEvent:v,dropEvent:l})||!p.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,p}};return n.map(u=>new Er({view(c){const d=v=>{var p;r=!((p=c.dom.parentElement)===null||p===void 0)&&p.contains(v.target)?c.dom.parentElement:null,r&&(ak=t)},h=()=>{ak&&(ak=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(c,d)=>{if(o=r===c.dom.parentElement,l=d,!o){const h=ak;h?.isEditable&&setTimeout(()=>{const v=h.state.selection;v&&h.commands.deleteRange({from:v.from,to:v.to})},10)}return!1},paste:(c,d)=>{var h;const v=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=d,a=!!v?.includes("data-pm-slice"),!1}}},appendTransaction:(c,d,h)=>{const v=c[0],p=v.getMeta("uiEvent")==="paste"&&!a,m=v.getMeta("uiEvent")==="drop"&&!o,g=v.getMeta("applyPasteRules"),y=!!g;if(!p&&!m&&!y)return;if(y){let{text:S}=g;typeof S=="string"?S=S:S=pO(ze.from(S),h.schema);const{from:_}=g,x=_+S.length,T=rze(S);return s({rule:u,state:h,from:_,to:{b:x},pasteEvt:T})}const b=d.doc.content.findDiffStart(h.doc.content),w=d.doc.content.findDiffEnd(h.doc.content);if(!(!$5e(b)||!w||b===w.b))return s({rule:u,state:h,from:b,to:w,pasteEvt:i})}}))}function oze(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class op{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=op.resolve(t),this.schema=eee(this.extensions,n),this.setupExtensions()}static resolve(t){const n=op.sort(op.flatten(t)),r=oze(n.map(a=>a.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(a=>`'${a}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},a=At(n,"addExtensions",r);return a?[n,...this.flatten(a())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const a=At(n,"priority")||100,o=At(r,"priority")||100;return a>o?-1:a{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:vO(n.name,this.schema)},a=At(n,"addCommands",r);return a?{...t,...a()}:t},{})}get plugins(){const{editor:t}=this,n=op.sort([...this.extensions].reverse()),r=[],a=[],o=n.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:t,type:vO(i.name,this.schema)},s=[],u=At(i,"addKeyboardShortcuts",l);let c={};if(i.type==="mark"&&At(i,"exitable",l)&&(c.ArrowRight=()=>zi.handleExit({editor:t,mark:i})),u){const m=Object.fromEntries(Object.entries(u()).map(([g,y])=>[g,()=>y({editor:t})]));c={...c,...m}}const d=T5e(c);s.push(d);const h=At(i,"addInputRules",l);tee(i,t.options.enableInputRules)&&h&&r.push(...h());const v=At(i,"addPasteRules",l);tee(i,t.options.enablePasteRules)&&v&&a.push(...v());const p=At(i,"addProseMirrorPlugins",l);if(p){const m=p();s.push(...m)}return s}).flat();return[Q5e({editor:t,rules:r}),...aze({editor:t,rules:a}),...o]}get attributes(){return J$(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=$T(this.extensions);return Object.fromEntries(n.filter(r=>!!At(r,"addNodeView")).map(r=>{const a=this.attributes.filter(s=>s.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:oo(r.name,this.schema)},i=At(r,"addNodeView",o);if(!i)return[];const l=(s,u,c,d,h)=>{const v=hO(s,a);return i()({node:s,view:u,getPos:c,decorations:d,innerDecorations:h,editor:t,extension:r,HTMLAttributes:v})};return[r.name,l]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:vO(t.name,this.schema)};t.type==="mark"&&(!((n=gn(At(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const a=At(t,"onBeforeCreate",r),o=At(t,"onCreate",r),i=At(t,"onUpdate",r),l=At(t,"onSelectionUpdate",r),s=At(t,"onTransaction",r),u=At(t,"onFocus",r),c=At(t,"onBlur",r),d=At(t,"onDestroy",r);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),i&&this.editor.on("update",i),l&&this.editor.on("selectionUpdate",l),s&&this.editor.on("transaction",s),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class or{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(At(this,"addOptions",{name:this.name}))),this.storage=gn(At(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new or(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>rk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new or({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(At(n,"addOptions",{name:n.name})),n.storage=gn(At(n,"addStorage",{name:n.name,options:n.options})),n}}function nee(e,t,n){const{from:r,to:a}=t,{blockSeparator:o=` -`,textSerializers:i={}}=n||{};let l="";return e.nodesBetween(r,a,(s,u,c,d)=>{var h;s.isBlock&&u>r&&(l+=o);const v=i?.[s.type.name];if(v)return c&&(l+=v({node:s,pos:u,parent:c,index:d,range:t})),!1;s.isText&&(l+=(h=s?.text)===null||h===void 0?void 0:h.slice(Math.max(r,u)-u,a-u))}),l}function hO(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const oze=or.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ar({key:new ya("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:a}=t,{ranges:o}=a,i=Math.min(...o.map(u=>u.$from.pos)),l=Math.max(...o.map(u=>u.$to.pos)),s=hO(n);return eee(r,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:s})}}})]}}),ize=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),lze=(e=!1)=>({commands:t})=>t.setContent("",e),sze=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:a}=r;return n&&a.forEach(({$from:o,$to:i})=>{e.doc.nodesBetween(o.pos,i.pos,(l,s)=>{if(l.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(s)),h=u.resolve(c.map(s+l.nodeSize)),v=d.blockRange(h);if(!v)return;const p=dy(v);if(l.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(v.start,m)}(p||p===0)&&t.lift(v,p)})}),!0},uze=e=>t=>e(t),cze=()=>({state:e,dispatch:t})=>G$(e,t),dze=(e,t)=>({editor:n,tr:r})=>{const{state:a}=n,o=a.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const i=r.mapping.map(t);return r.insert(i,o.content),r.setSelection(new Ot(r.doc.resolve(Math.max(i-1,0)))),!0},fze=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const a=e.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===r.type){if(t){const i=a.before(o),l=a.after(o);e.delete(i,l).scrollIntoView()}return!0}return!1},hze=e=>({tr:t,state:n,dispatch:r})=>{const a=oo(e,n.schema),o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===a){if(r){const l=o.before(i),s=o.after(i);t.delete(l,s).scrollIntoView()}return!0}return!1},vze=e=>({tr:t,dispatch:n})=>{const{from:r,to:a}=e;return n&&t.delete(r,a),!0},pze=()=>({state:e,dispatch:t})=>QT(e,t),mze=()=>({commands:e})=>e.keyboardShortcut("Enter"),gze=()=>({state:e,dispatch:t})=>M5e(e,t);function ik(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(a=>n.strict?t[a]===e[a]:fO(t[a])?t[a].test(e[a]):t[a]===e[a]):!0}function tee(e,t,n={}){return e.find(r=>r.type===t&&ik(Object.fromEntries(Object.keys(n).map(a=>[a,r.attrs[a]])),n))}function nee(e,t,n={}){return!!tee(e,t,n)}function lk(e,t,n){var r;if(!e||!t)return;let a=e.parent.childAfter(e.parentOffset);if((!a.node||!a.node.marks.some(u=>u.type===t))&&(a=e.parent.childBefore(e.parentOffset)),!a.node||!a.node.marks.some(u=>u.type===t)||(n=n||((r=a.node.marks[0])===null||r===void 0?void 0:r.attrs),!tee([...a.node.marks],t,n)))return;let o=a.index,i=e.start()+a.offset,l=o+1,s=i+a.node.nodeSize;for(;o>0&&nee([...e.parent.child(o-1).marks],t,n);)o-=1,i-=e.parent.child(o).nodeSize;for(;l({tr:n,state:r,dispatch:a})=>{const o=Hf(e,r.schema),{doc:i,selection:l}=n,{$from:s,from:u,to:c}=l;if(a){const d=lk(s,o,t);if(d&&d.from<=u&&d.to>=c){const h=Ot.create(i,d.from,d.to);n.setSelection(h)}}return!0},bze=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:a,dispatch:o})=>{t={scrollIntoView:!0,...t};const i=()=>{(sk()||aee())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!vO(n.state.selection))return i(),!0;const l=ree(a.doc,e)||n.state.selection,s=n.state.selection.eq(l);return o&&(s||a.setSelection(l),s&&a.storedMarks&&a.setStoredMarks(a.storedMarks),i()),!0},Sze=(e,t)=>n=>e.every((r,a)=>t(r,{...n,index:a})),xze=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),oee=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&oee(r)}return e};function uk(e){const t=`${e}`,n=new window.DOMParser().parseFromString(t,"text/html").body;return oee(n)}function oS(e,t,n){if(e instanceof ed||e instanceof He)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,a=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return He.fromArray(e.map(i=>t.nodeFromJSON(i)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),oS("",t,n)}if(a){if(n.errorOnInvalidContent){let i=!1,l="";const s=new W7({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?kf.fromSchema(s).parseSlice(uk(e),n.parseOptions):kf.fromSchema(s).parse(uk(e),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const o=kf.fromSchema(t);return n.slice?o.parseSlice(uk(e),n.parseOptions).content:o.parse(uk(e),n.parseOptions)}return oS("",t,n)}function Cze(e,t,n){const r=e.steps.length-1;if(r{i===0&&(i=c)}),e.setSelection(Xt.near(e.doc.resolve(i),n))}const _ze=e=>!("type"in e),Tze=(e,t,n)=>({tr:r,dispatch:a,editor:o})=>{var i;if(a){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l;const s=m=>{o.emit("contentError",{editor:o,error:m,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{oS(t,o.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(m){s(m)}try{l=oS(t,o.schema,{parseOptions:u,errorOnInvalidContent:(i=n.errorOnInvalidContent)!==null&&i!==void 0?i:o.options.enableContentCheck})}catch(m){return s(m),!1}let{from:c,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},h=!0,v=!0;if((_ze(l)?l:[l]).forEach(m=>{m.check(),h=h?m.isText&&m.marks.length===0:!1,v=v?m.isBlock:!1}),c===d&&v){const{parent:m}=r.doc.resolve(c);m.isTextblock&&!m.type.spec.code&&!m.childCount&&(c-=1,d+=1)}let p;if(h){if(Array.isArray(t))p=t.map(m=>m.text||"").join("");else if(t instanceof He){let m="";t.forEach(g=>{g.text&&(m+=g.text)}),p=m}else typeof t=="object"&&t&&t.text?p=t.text:p=t;r.insertText(p,c,d)}else p=l,r.replaceWith(c,d,p);n.updateSelection&&Cze(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:p})}return!0},kze=()=>({state:e,dispatch:t})=>A5e(e,t),Aze=()=>({state:e,dispatch:t})=>E5e(e,t),Eze=()=>({state:e,dispatch:t})=>O$(e,t),Ize=()=>({state:e,dispatch:t})=>H$(e,t),Mze=()=>({state:e,dispatch:t,tr:n})=>{try{const r=BT(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Dze=()=>({state:e,dispatch:t,tr:n})=>{try{const r=BT(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Vze=()=>({state:e,dispatch:t})=>T5e(e,t),Pze=()=>({state:e,dispatch:t})=>k5e(e,t);function iee(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Nze(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,a,o,i;for(let l=0;l({editor:t,view:n,tr:r,dispatch:a})=>{const o=Nze(e).split(/-(?!$)/),i=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))})?.steps.forEach(u=>{const c=u.map(r.mapping);c&&a&&r.maybeStep(c)}),!0};function iS(e,t,n={}){const{from:r,to:a,empty:o}=e.selection,i=t?oo(t,e.schema):null,l=[];e.doc.nodesBetween(r,a,(c,d)=>{if(c.isText)return;const h=Math.max(r,d),v=Math.min(a,d+c.nodeSize);l.push({node:c,from:h,to:v})});const s=a-r,u=l.filter(c=>i?i.name===c.node.type.name:!0).filter(c=>ik(c.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((c,d)=>c+d.to-d.from,0)>=s}const Oze=(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return iS(n,a,t)?I5e(n,r):!1},Rze=()=>({state:e,dispatch:t})=>U$(e,t),Bze=e=>({state:t,dispatch:n})=>{const r=oo(e,t.schema);return z5e(r)(t,n)},Fze=()=>({state:e,dispatch:t})=>W$(e,t);function ck(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function lee(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,a)=>(n.includes(a)||(r[a]=e[a]),r),{})}const Hze=(e,t)=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const l=ck(typeof e=="string"?e:e.name,r.schema);return l?(l==="node"&&(o=oo(e,r.schema)),l==="mark"&&(i=Hf(e,r.schema)),a&&n.selection.ranges.forEach(s=>{r.doc.nodesBetween(s.$from.pos,s.$to.pos,(u,c)=>{o&&o===u.type&&n.setNodeMarkup(c,void 0,lee(u.attrs,t)),i&&u.marks.length&&u.marks.forEach(d=>{i===d.type&&n.addMark(c,c+u.nodeSize,i.create(lee(d.attrs,t)))})})}),!0):!1},zze=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Wze=()=>({tr:e,dispatch:t})=>{if(t){const n=new yl(e.doc);e.setSelection(n)}return!0},Gze=()=>({state:e,dispatch:t})=>B$(e,t),Uze=()=>({state:e,dispatch:t})=>z$(e,t),Yze=()=>({state:e,dispatch:t})=>P5e(e,t),jze=()=>({state:e,dispatch:t})=>O5e(e,t),Kze=()=>({state:e,dispatch:t})=>L5e(e,t);function pO(e,t,n={},r={}){return oS(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Xze=(e,t=!1,n={},r={})=>({editor:a,tr:o,dispatch:i,commands:l})=>{var s,u;const{doc:c}=o;if(n.preserveWhitespace!=="full"){const d=pO(e,a.schema,n,{errorOnInvalidContent:(s=r.errorOnInvalidContent)!==null&&s!==void 0?s:a.options.enableContentCheck});return i&&o.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!t),!0}return i&&o.setMeta("preventUpdate",!t),l.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:a.options.enableContentCheck})};function see(e,t){const n=Hf(t,e.schema),{from:r,to:a,empty:o}=e.selection,i=[];o?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,a,s=>{i.push(...s.marks)});const l=i.find(s=>s.type.name===n.name);return l?{...l.attrs}:{}}function Zze(e,t){const n=new A2(e);return t.forEach(r=>{r.steps.forEach(a=>{n.step(a)})}),n}function Jze(e){for(let t=0;t{n(a)&&r.push({node:a,pos:o})}),r}function uee(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function mO(e){return t=>uee(t.$from,e)}function qze(e,t){const n=ip.resolve(e);return q$(n,t)}function cee(e,t){const n={from:0,to:e.content.size};return eee(e,n,t)}function $ze(e,t){const n=oo(t,e.schema),{from:r,to:a}=e.selection,o=[];e.doc.nodesBetween(r,a,l=>{o.push(l)});const i=o.reverse().find(l=>l.type.name===n.name);return i?{...i.attrs}:{}}function dee(e,t){const n=ck(typeof t=="string"?t:t.name,e.schema);return n==="node"?$ze(e,t):n==="mark"?see(e,t):{}}function e4e(e,t=JSON.stringify){const n={};return e.filter(r=>{const a=t(r);return Object.prototype.hasOwnProperty.call(n,a)?!1:n[a]=!0})}function t4e(e){const t=e4e(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,o)=>o!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function n4e(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((a,o)=>{const i=[];if(a.ranges.length)a.forEach((l,s)=>{i.push({from:l,to:s})});else{const{from:l,to:s}=n[o];if(l===void 0||s===void 0)return;i.push({from:l,to:s})}i.forEach(({from:l,to:s})=>{const u=t.slice(o).map(l,-1),c=t.slice(o).map(s),d=t.invert().map(u,-1),h=t.invert().map(c);r.push({oldRange:{from:d,to:h},newRange:{from:u,to:c}})})}),t4e(r)}function gO(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(a=>{const o=n.resolve(e),i=lk(o,a.type);i&&r.push({mark:a,...i})}):n.nodesBetween(e,t,(a,o)=>{!a||a?.nodeSize===void 0||r.push(...a.marks.map(i=>({from:o,to:o+a.nodeSize,mark:i})))}),r}function dk(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const a=e.find(o=>o.type===t&&o.name===r);return a?a.attribute.keepOnSplit:!1}))}function yO(e,t,n={}){const{empty:r,ranges:a}=e.selection,o=t?Hf(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(c=>o?o.name===c.type.name:!0).find(c=>ik(c.attrs,n,{strict:!1}));let i=0;const l=[];if(a.forEach(({$from:c,$to:d})=>{const h=c.pos,v=d.pos;e.doc.nodesBetween(h,v,(p,m)=>{if(!p.isText&&!p.marks.length)return;const g=Math.max(h,m),y=Math.min(v,m+p.nodeSize),b=y-g;i+=b,l.push(...p.marks.map(w=>({mark:w,from:g,to:y})))})}),i===0)return!1;const s=l.filter(c=>o?o.name===c.mark.type.name:!0).filter(c=>ik(c.mark.attrs,n,{strict:!1})).reduce((c,d)=>c+d.to-d.from,0),u=l.filter(c=>o?c.mark.type!==o&&c.mark.type.excludes(o):!0).reduce((c,d)=>c+d.to-d.from,0);return(s>0?s+u:s)>=i}function r4e(e,t,n={}){if(!t)return iS(e,null,n)||yO(e,null,n);const r=ck(t,e.schema);return r==="node"?iS(e,t,n):r==="mark"?yO(e,t,n):!1}function fee(e,t){const{nodeExtensions:n}=ek(t),r=n.find(i=>i.name===e);if(!r)return!1;const a={name:r.name,options:r.options,storage:r.storage},o=gn(Et(r,"group",a));return typeof o!="string"?!1:o.split(" ").includes("list")}function fk(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let a=!0;return e.content.forEach(o=>{a!==!1&&(fk(o,{ignoreWhitespace:n,checkChildren:t})||(a=!1))}),a}return!1}function hee(e){return e instanceof Nt}function vee(e,t,n){const r=e.state.doc.content.size,a=id(t,0,r),o=id(n,0,r),i=e.coordsAtPos(a),l=e.coordsAtPos(o,-1),s=Math.min(i.top,l.top),u=Math.max(i.bottom,l.bottom),c=Math.min(i.left,l.left),d=Math.max(i.right,l.right),h=d-c,v=u-s,p={top:s,bottom:u,left:c,right:d,width:h,height:v,x:c,y:s};return{...p,toJSON:()=>p}}function a4e(e,t,n){var r;const{selection:a}=t;let o=null;if(vO(a)&&(o=a.$cursor),o){const l=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(l)||!l.some(s=>s.type.excludes(n))}const{ranges:i}=a;return i.some(({$from:l,$to:s})=>{let u=l.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(l.pos,s.pos,(c,d,h)=>{if(u)return!1;if(c.isInline){const v=!h||h.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));u=v&&p}return!u}),u})}const o4e=(e,t={})=>({tr:n,state:r,dispatch:a})=>{const{selection:o}=n,{empty:i,ranges:l}=o,s=Hf(e,r.schema);if(a)if(i){const u=see(r,s);n.addStoredMark(s.create({...u,...t}))}else l.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(h,v)=>{const p=Math.max(v,c),m=Math.min(v+h.nodeSize,d);h.marks.find(g=>g.type===s)?h.marks.forEach(g=>{s===g.type&&n.addMark(p,m,s.create({...g.attrs,...t}))}):n.addMark(p,m,s.create(t))})});return a4e(r,n,s)},i4e=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),l4e=(e,t={})=>({state:n,dispatch:r,chain:a})=>{const o=oo(e,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),o.isTextblock?a().command(({commands:l})=>K$(o,{...i,...t})(n)?!0:l.clearNodes()).command(({state:l})=>K$(o,{...i,...t})(l,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},s4e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,a=id(e,0,r.content.size),o=Nt.create(r,a);t.setSelection(o)}return!0},u4e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:a,to:o}=typeof e=="number"?{from:e,to:e}:e,i=Ot.atStart(r).from,l=Ot.atEnd(r).to,s=id(a,i,l),u=id(o,i,l),c=Ot.create(r,s,u);t.setSelection(c)}return!0},c4e=e=>({state:t,dispatch:n})=>{const r=oo(e,t.schema);return U5e(r)(t,n)};function pee(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(a=>t?.includes(a.type.name));e.tr.ensureMarks(r)}}const d4e=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:a})=>{const{selection:o,doc:i}=t,{$from:l,$to:s}=o,u=a.extensionManager.attributes,c=dk(u,l.node().type.name,l.node().attrs);if(o instanceof Nt&&o.node.isBlock)return!l.parentOffset||!td(i,l.pos)?!1:(r&&(e&&pee(n,a.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const d=s.parentOffset===s.parent.content.size,h=l.depth===0?void 0:Jze(l.node(-1).contentMatchAt(l.indexAfter(-1)));let v=d&&h?[{type:h,attrs:c}]:void 0,p=td(t.doc,t.mapping.map(l.pos),1,v);if(!v&&!p&&td(t.doc,t.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(p=!0,v=h?[{type:h,attrs:c}]:void 0),r){if(p&&(o instanceof Ot&&t.deleteSelection(),t.split(t.mapping.map(l.pos),1,v),h&&!d&&!l.parentOffset&&l.parent.type!==h)){const m=t.mapping.map(l.before()),g=t.doc.resolve(m);l.node(-1).canReplaceWith(g.index(),g.index()+1,h)&&t.setNodeMarkup(t.mapping.map(l.before()),h)}e&&pee(n,a.extensionManager.splittableMarks),t.scrollIntoView()}return p},f4e=(e,t={})=>({tr:n,state:r,dispatch:a,editor:o})=>{var i;const l=oo(e,r.schema),{$from:s,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||s.depth<2||!s.sameParent(u))return!1;const d=s.node(-1);if(d.type!==l)return!1;const h=o.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==l||s.index(-2)!==s.node(-2).childCount-1)return!1;if(a){let y=He.empty;const b=s.index(-1)?1:s.index(-2)?2:3;for(let A=s.depth-b;A>=s.depth-3;A-=1)y=He.from(s.node(A).copy(y));const w=s.indexAfter(-1){if(T>-1)return!1;A.isTextblock&&A.content.size===0&&(T=E+1)}),T>-1&&n.setSelection(Ot.near(n.doc.resolve(T))),n.scrollIntoView()}return!0}const v=u.pos===s.end()?d.contentMatchAt(0).defaultType:null,p={...dk(h,d.type.name,d.attrs),...t},m={...dk(h,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,u.pos);const g=v?[{type:l,attrs:p},{type:v,attrs:m}]:[{type:l,attrs:p}];if(!td(n.doc,s.pos,2))return!1;if(a){const{selection:y,storedMarks:b}=r,{splittableMarks:w}=o.extensionManager,S=b||y.$to.parentOffset&&y.$from.marks();if(n.split(s.pos,2,g).scrollIntoView(),!S||!a)return!0;const _=S.filter(x=>w.includes(x.type.name));n.ensureMarks(_)}return!0},bO=(e,t)=>{const n=mO(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&Mf(e.doc,n.pos)&&e.join(n.pos),!0},wO=(e,t)=>{const n=mO(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&Mf(e.doc,r)&&e.join(r),!0};var h4e=Object.freeze({__proto__:null,blur:ize,clearContent:lze,clearNodes:sze,command:uze,createParagraphNear:cze,cut:dze,deleteCurrentNode:fze,deleteNode:hze,deleteRange:vze,deleteSelection:pze,enter:mze,exitCode:gze,extendMarkRange:yze,first:bze,focus:wze,forEach:Sze,insertContent:xze,insertContentAt:Tze,joinBackward:Eze,joinDown:Aze,joinForward:Ize,joinItemBackward:Mze,joinItemForward:Dze,joinTextblockBackward:Vze,joinTextblockForward:Pze,joinUp:kze,keyboardShortcut:Lze,lift:Oze,liftEmptyBlock:Rze,liftListItem:Bze,newlineInCode:Fze,resetAttributes:Hze,scrollIntoView:zze,selectAll:Wze,selectNodeBackward:Gze,selectNodeForward:Uze,selectParentNode:Yze,selectTextblockEnd:jze,selectTextblockStart:Kze,setContent:Xze,setMark:o4e,setMeta:i4e,setNode:l4e,setNodeSelection:s4e,setTextSelection:u4e,sinkListItem:c4e,splitBlock:d4e,splitListItem:f4e,toggleList:(e,t,n,r={})=>({editor:a,tr:o,state:i,dispatch:l,chain:s,commands:u,can:c})=>{const{extensions:d,splittableMarks:h}=a.extensionManager,v=oo(e,i.schema),p=oo(t,i.schema),{selection:m,storedMarks:g}=i,{$from:y,$to:b}=m,w=y.blockRange(b),S=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const _=mO(x=>fee(x.type.name,d))(m);if(w.depth>=1&&_&&w.depth-_.depth<=1){if(_.node.type===v)return u.liftListItem(p);if(fee(_.node.type.name,d)&&v.validContent(_.node.content)&&l)return s().command(()=>(o.setNodeMarkup(_.pos,v),!0)).command(()=>bO(o,v)).command(()=>wO(o,v)).run()}return!n||!S||!l?s().command(()=>c().wrapInList(v,r)?!0:u.clearNodes()).wrapInList(v,r).command(()=>bO(o,v)).command(()=>wO(o,v)).run():s().command(()=>{const x=c().wrapInList(v,r),T=S.filter(A=>h.includes(A.type.name));return o.ensureMarks(T),x?!0:u.clearNodes()}).wrapInList(v,r).command(()=>bO(o,v)).command(()=>wO(o,v)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:a})=>{const{extendEmptyMarkRange:o=!1}=n,i=Hf(e,r.schema);return yO(r,i,t)?a.unsetMark(i,{extendEmptyMarkRange:o}):a.setMark(i,t)},toggleNode:(e,t,n={})=>({state:r,commands:a})=>{const o=oo(e,r.schema),i=oo(t,r.schema),l=iS(r,o,n);let s;return r.selection.$anchor.sameParent(r.selection.$head)&&(s=r.selection.$anchor.parent.attrs),l?a.setNode(i,s):a.setNode(o,{...s,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const a=oo(e,n.schema);return iS(n,a,t)?r.lift(a):r.wrapIn(a,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;s-=1)i.step(l.steps[s].invert(l.docs[s]));if(o.text){const s=i.doc.resolve(o.from).marks();i.replaceWith(o.from,o.to,e.schema.text(o.text,s))}else i.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:a}=n;return r||t&&a.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:a})=>{var o;const{extendEmptyMarkRange:i=!1}=t,{selection:l}=n,s=Hf(e,r.schema),{$from:u,empty:c,ranges:d}=l;if(!a)return!0;if(c&&i){let{from:h,to:v}=l;const p=(o=u.marks().find(g=>g.type===s))===null||o===void 0?void 0:o.attrs,m=lk(u,s,p);m&&(h=m.from,v=m.to),n.removeMark(h,v,s)}else d.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,s)});return n.removeStoredMark(s),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const l=ck(typeof e=="string"?e:e.name,r.schema);return l?(l==="node"&&(o=oo(e,r.schema)),l==="mark"&&(i=Hf(e,r.schema)),a&&n.selection.ranges.forEach(s=>{const u=s.$from.pos,c=s.$to.pos;let d,h,v,p;n.selection.empty?r.doc.nodesBetween(u,c,(m,g)=>{o&&o===m.type&&(v=Math.max(g,u),p=Math.min(g+m.nodeSize,c),d=g,h=m)}):r.doc.nodesBetween(u,c,(m,g)=>{g=u&&g<=c&&(o&&o===m.type&&n.setNodeMarkup(g,void 0,{...m.attrs,...t}),i&&m.marks.length&&m.marks.forEach(y=>{if(i===y.type){const b=Math.max(g,u),w=Math.min(g+m.nodeSize,c);n.addMark(b,w,i.create({...y.attrs,...t}))}}))}),h&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...h.attrs,...t}),i&&h.marks.length&&h.marks.forEach(m=>{i===m.type&&n.addMark(v,p,i.create({...m.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return R5e(a,t)(n,r)},wrapInList:(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return B5e(a,t)(n,r)}});const v4e=or.create({name:"commands",addCommands(){return{...h4e}}}),p4e=or.create({name:"drop",addProseMirrorPlugins(){return[new Ar({key:new ya("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),m4e=or.create({name:"editable",addProseMirrorPlugins(){return[new Ar({key:new ya("editable"),props:{editable:()=>this.editor.options.editable}})]}}),g4e=new ya("focusEvents"),y4e=or.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Ar({key:g4e,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),b4e=or.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:i})=>{const{selection:l,doc:s}=i,{empty:u,$anchor:c}=l,{pos:d,parent:h}=c,v=c.parent.isTextblock&&d>0?i.doc.resolve(d-1):c,p=v.parent.type.spec.isolating,m=c.pos-c.parentOffset,g=p&&v.parent.childCount===1?m===c.pos:Xt.atStart(s).from===d;return!u||!h.type.isTextblock||h.textContent.length||!g||g&&c.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},a={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return sk()||iee()?a:r},addProseMirrorPlugins(){return[new Ar({key:new ya("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(v=>v.getMeta("composition")))return;const r=e.some(v=>v.docChanged)&&!t.doc.eq(n.doc),a=e.some(v=>v.getMeta("preventClearDocument"));if(!r||a)return;const{empty:o,from:i,to:l}=t.selection,s=Xt.atStart(t.doc).from,u=Xt.atEnd(t.doc).to;if(o||!(i===s&&l===u)||!fk(n.doc))return;const c=n.tr,d=qT({state:n,transaction:c}),{commands:h}=new $T({editor:this.editor,state:d});if(h.clearNodes(),!!c.steps.length)return c}})]}}),w4e=or.create({name:"paste",addProseMirrorPlugins(){return[new Ar({key:new ya("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),S4e=or.create({name:"tabindex",addProseMirrorPlugins(){return[new Ar({key:new ya("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class lp{get name(){return this.node.type.name}constructor(t,n,r=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=a}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new lp(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new lp(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new lp(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const a=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,i=this.pos+r+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(i);if(!a&&l.depth<=this.depth)return;const s=new lp(l,this.editor,a,a?n:null);a&&(s.actualDepth=this.depth+1),t.push(new lp(l,this.editor,a,a?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,a=this.parent;for(;a&&!r;){if(a.node.type.name===t)if(Object.keys(n).length>0){const o=a.node.attrs,i=Object.keys(n);for(let l=0;l{r&&a.length>0||(i.node.type.name===t&&o.every(l=>n[l]===i.node.attrs[l])&&a.push(i),!(r&&a.length>0)&&(a=a.concat(i.querySelectorAll(t,n,r))))}),a}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const x4e=`.ProseMirror { +`,textSerializers:i={}}=n||{};let l="";return e.nodesBetween(r,a,(s,u,c,d)=>{var h;s.isBlock&&u>r&&(l+=o);const v=i?.[s.type.name];if(v)return c&&(l+=v({node:s,pos:u,parent:c,index:d,range:t})),!1;s.isText&&(l+=(h=s?.text)===null||h===void 0?void 0:h.slice(Math.max(r,u)-u,a-u))}),l}function gO(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const ize=or.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Er({key:new ba("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:a}=t,{ranges:o}=a,i=Math.min(...o.map(u=>u.$from.pos)),l=Math.max(...o.map(u=>u.$to.pos)),s=gO(n);return nee(r,{from:i,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:s})}}})]}}),lze=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),sze=(e=!1)=>({commands:t})=>t.setContent("",e),uze=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:a}=r;return n&&a.forEach(({$from:o,$to:i})=>{e.doc.nodesBetween(o.pos,i.pos,(l,s)=>{if(l.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(s)),h=u.resolve(c.map(s+l.nodeSize)),v=d.blockRange(h);if(!v)return;const p=vy(v);if(l.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(v.start,m)}(p||p===0)&&t.lift(v,p)})}),!0},cze=e=>t=>e(t),dze=()=>({state:e,dispatch:t})=>Y$(e,t),fze=(e,t)=>({editor:n,tr:r})=>{const{state:a}=n,o=a.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const i=r.mapping.map(t);return r.insert(i,o.content),r.setSelection(new Rt(r.doc.resolve(Math.max(i-1,0)))),!0},hze=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const a=e.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===r.type){if(t){const i=a.before(o),l=a.after(o);e.delete(i,l).scrollIntoView()}return!0}return!1},vze=e=>({tr:t,state:n,dispatch:r})=>{const a=oo(e,n.schema),o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===a){if(r){const l=o.before(i),s=o.after(i);t.delete(l,s).scrollIntoView()}return!0}return!1},pze=e=>({tr:t,dispatch:n})=>{const{from:r,to:a}=e;return n&&t.delete(r,a),!0},mze=()=>({state:e,dispatch:t})=>JT(e,t),gze=()=>({commands:e})=>e.keyboardShortcut("Enter"),yze=()=>({state:e,dispatch:t})=>D5e(e,t);function ok(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(a=>n.strict?t[a]===e[a]:mO(t[a])?t[a].test(e[a]):t[a]===e[a]):!0}function ree(e,t,n={}){return e.find(r=>r.type===t&&ok(Object.fromEntries(Object.keys(n).map(a=>[a,r.attrs[a]])),n))}function aee(e,t,n={}){return!!ree(e,t,n)}function ik(e,t,n){var r;if(!e||!t)return;let a=e.parent.childAfter(e.parentOffset);if((!a.node||!a.node.marks.some(u=>u.type===t))&&(a=e.parent.childBefore(e.parentOffset)),!a.node||!a.node.marks.some(u=>u.type===t)||(n=n||((r=a.node.marks[0])===null||r===void 0?void 0:r.attrs),!ree([...a.node.marks],t,n)))return;let o=a.index,i=e.start()+a.offset,l=o+1,s=i+a.node.nodeSize;for(;o>0&&aee([...e.parent.child(o-1).marks],t,n);)o-=1,i-=e.parent.child(o).nodeSize;for(;l({tr:n,state:r,dispatch:a})=>{const o=Ff(e,r.schema),{doc:i,selection:l}=n,{$from:s,from:u,to:c}=l;if(a){const d=ik(s,o,t);if(d&&d.from<=u&&d.to>=c){const h=Rt.create(i,d.from,d.to);n.setSelection(h)}}return!0},wze=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:a,dispatch:o})=>{t={scrollIntoView:!0,...t};const i=()=>{(lk()||iee())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!yO(n.state.selection))return i(),!0;const l=oee(a.doc,e)||n.state.selection,s=n.state.selection.eq(l);return o&&(s||a.setSelection(l),s&&a.storedMarks&&a.setStoredMarks(a.storedMarks),i()),!0},xze=(e,t)=>n=>e.every((r,a)=>t(r,{...n,index:a})),Cze=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),lee=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&lee(r)}return e};function sk(e){const t=`${e}`,n=new window.DOMParser().parseFromString(t,"text/html").body;return lee(n)}function iS(e,t,n){if(e instanceof $c||e instanceof ze)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,a=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return ze.fromArray(e.map(i=>t.nodeFromJSON(i)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),iS("",t,n)}if(a){if(n.errorOnInvalidContent){let i=!1,l="";const s=new U7({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,l=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Tf.fromSchema(s).parseSlice(sk(e),n.parseOptions):Tf.fromSchema(s).parse(sk(e),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const o=Tf.fromSchema(t);return n.slice?o.parseSlice(sk(e),n.parseOptions).content:o.parse(sk(e),n.parseOptions)}return iS("",t,n)}function _ze(e,t,n){const r=e.steps.length-1;if(r{i===0&&(i=c)}),e.setSelection(Xt.near(e.doc.resolve(i),n))}const Tze=e=>!("type"in e),kze=(e,t,n)=>({tr:r,dispatch:a,editor:o})=>{var i;if(a){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l;const s=m=>{o.emit("contentError",{editor:o,error:m,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{iS(t,o.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(m){s(m)}try{l=iS(t,o.schema,{parseOptions:u,errorOnInvalidContent:(i=n.errorOnInvalidContent)!==null&&i!==void 0?i:o.options.enableContentCheck})}catch(m){return s(m),!1}let{from:c,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},h=!0,v=!0;if((Tze(l)?l:[l]).forEach(m=>{m.check(),h=h?m.isText&&m.marks.length===0:!1,v=v?m.isBlock:!1}),c===d&&v){const{parent:m}=r.doc.resolve(c);m.isTextblock&&!m.type.spec.code&&!m.childCount&&(c-=1,d+=1)}let p;if(h){if(Array.isArray(t))p=t.map(m=>m.text||"").join("");else if(t instanceof ze){let m="";t.forEach(g=>{g.text&&(m+=g.text)}),p=m}else typeof t=="object"&&t&&t.text?p=t.text:p=t;r.insertText(p,c,d)}else p=l,r.replaceWith(c,d,p);n.updateSelection&&_ze(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:p})}return!0},Aze=()=>({state:e,dispatch:t})=>E5e(e,t),Eze=()=>({state:e,dispatch:t})=>I5e(e,t),Ize=()=>({state:e,dispatch:t})=>B$(e,t),Mze=()=>({state:e,dispatch:t})=>W$(e,t),Dze=()=>({state:e,dispatch:t,tr:n})=>{try{const r=RT(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Vze=()=>({state:e,dispatch:t,tr:n})=>{try{const r=RT(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Pze=()=>({state:e,dispatch:t})=>k5e(e,t),Nze=()=>({state:e,dispatch:t})=>A5e(e,t);function see(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Lze(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,a,o,i;for(let l=0;l({editor:t,view:n,tr:r,dispatch:a})=>{const o=Lze(e).split(/-(?!$)/),i=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),l=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,l))})?.steps.forEach(u=>{const c=u.map(r.mapping);c&&a&&r.maybeStep(c)}),!0};function lS(e,t,n={}){const{from:r,to:a,empty:o}=e.selection,i=t?oo(t,e.schema):null,l=[];e.doc.nodesBetween(r,a,(c,d)=>{if(c.isText)return;const h=Math.max(r,d),v=Math.min(a,d+c.nodeSize);l.push({node:c,from:h,to:v})});const s=a-r,u=l.filter(c=>i?i.name===c.node.type.name:!0).filter(c=>ok(c.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((c,d)=>c+d.to-d.from,0)>=s}const Rze=(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return lS(n,a,t)?M5e(n,r):!1},Bze=()=>({state:e,dispatch:t})=>j$(e,t),Fze=e=>({state:t,dispatch:n})=>{const r=oo(e,t.schema);return W5e(r)(t,n)},Hze=()=>({state:e,dispatch:t})=>U$(e,t);function uk(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function uee(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,a)=>(n.includes(a)||(r[a]=e[a]),r),{})}const zze=(e,t)=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const l=uk(typeof e=="string"?e:e.name,r.schema);return l?(l==="node"&&(o=oo(e,r.schema)),l==="mark"&&(i=Ff(e,r.schema)),a&&n.selection.ranges.forEach(s=>{r.doc.nodesBetween(s.$from.pos,s.$to.pos,(u,c)=>{o&&o===u.type&&n.setNodeMarkup(c,void 0,uee(u.attrs,t)),i&&u.marks.length&&u.marks.forEach(d=>{i===d.type&&n.addMark(c,c+u.nodeSize,i.create(uee(d.attrs,t)))})})}),!0):!1},Wze=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Gze=()=>({tr:e,dispatch:t})=>{if(t){const n=new gl(e.doc);e.setSelection(n)}return!0},Uze=()=>({state:e,dispatch:t})=>H$(e,t),Yze=()=>({state:e,dispatch:t})=>G$(e,t),jze=()=>({state:e,dispatch:t})=>N5e(e,t),Kze=()=>({state:e,dispatch:t})=>R5e(e,t),Xze=()=>({state:e,dispatch:t})=>O5e(e,t);function bO(e,t,n={},r={}){return iS(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Zze=(e,t=!1,n={},r={})=>({editor:a,tr:o,dispatch:i,commands:l})=>{var s,u;const{doc:c}=o;if(n.preserveWhitespace!=="full"){const d=bO(e,a.schema,n,{errorOnInvalidContent:(s=r.errorOnInvalidContent)!==null&&s!==void 0?s:a.options.enableContentCheck});return i&&o.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!t),!0}return i&&o.setMeta("preventUpdate",!t),l.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:a.options.enableContentCheck})};function cee(e,t){const n=Ff(t,e.schema),{from:r,to:a,empty:o}=e.selection,i=[];o?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,a,s=>{i.push(...s.marks)});const l=i.find(s=>s.type.name===n.name);return l?{...l.attrs}:{}}function Jze(e,t){const n=new D2(e);return t.forEach(r=>{r.steps.forEach(a=>{n.step(a)})}),n}function Qze(e){for(let t=0;t{n(a)&&r.push({node:a,pos:o})}),r}function dee(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function wO(e){return t=>dee(t.$from,e)}function $ze(e,t){const n=op.resolve(e);return eee(n,t)}function fee(e,t){const n={from:0,to:e.content.size};return nee(e,n,t)}function e4e(e,t){const n=oo(t,e.schema),{from:r,to:a}=e.selection,o=[];e.doc.nodesBetween(r,a,l=>{o.push(l)});const i=o.reverse().find(l=>l.type.name===n.name);return i?{...i.attrs}:{}}function hee(e,t){const n=uk(typeof t=="string"?t:t.name,e.schema);return n==="node"?e4e(e,t):n==="mark"?cee(e,t):{}}function t4e(e,t=JSON.stringify){const n={};return e.filter(r=>{const a=t(r);return Object.prototype.hasOwnProperty.call(n,a)?!1:n[a]=!0})}function n4e(e){const t=t4e(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,o)=>o!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function r4e(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((a,o)=>{const i=[];if(a.ranges.length)a.forEach((l,s)=>{i.push({from:l,to:s})});else{const{from:l,to:s}=n[o];if(l===void 0||s===void 0)return;i.push({from:l,to:s})}i.forEach(({from:l,to:s})=>{const u=t.slice(o).map(l,-1),c=t.slice(o).map(s),d=t.invert().map(u,-1),h=t.invert().map(c);r.push({oldRange:{from:d,to:h},newRange:{from:u,to:c}})})}),n4e(r)}function SO(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(a=>{const o=n.resolve(e),i=ik(o,a.type);i&&r.push({mark:a,...i})}):n.nodesBetween(e,t,(a,o)=>{!a||a?.nodeSize===void 0||r.push(...a.marks.map(i=>({from:o,to:o+a.nodeSize,mark:i})))}),r}function ck(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const a=e.find(o=>o.type===t&&o.name===r);return a?a.attribute.keepOnSplit:!1}))}function xO(e,t,n={}){const{empty:r,ranges:a}=e.selection,o=t?Ff(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(c=>o?o.name===c.type.name:!0).find(c=>ok(c.attrs,n,{strict:!1}));let i=0;const l=[];if(a.forEach(({$from:c,$to:d})=>{const h=c.pos,v=d.pos;e.doc.nodesBetween(h,v,(p,m)=>{if(!p.isText&&!p.marks.length)return;const g=Math.max(h,m),y=Math.min(v,m+p.nodeSize),b=y-g;i+=b,l.push(...p.marks.map(w=>({mark:w,from:g,to:y})))})}),i===0)return!1;const s=l.filter(c=>o?o.name===c.mark.type.name:!0).filter(c=>ok(c.mark.attrs,n,{strict:!1})).reduce((c,d)=>c+d.to-d.from,0),u=l.filter(c=>o?c.mark.type!==o&&c.mark.type.excludes(o):!0).reduce((c,d)=>c+d.to-d.from,0);return(s>0?s+u:s)>=i}function a4e(e,t,n={}){if(!t)return lS(e,null,n)||xO(e,null,n);const r=uk(t,e.schema);return r==="node"?lS(e,t,n):r==="mark"?xO(e,t,n):!1}function vee(e,t){const{nodeExtensions:n}=$T(t),r=n.find(i=>i.name===e);if(!r)return!1;const a={name:r.name,options:r.options,storage:r.storage},o=gn(At(r,"group",a));return typeof o!="string"?!1:o.split(" ").includes("list")}function dk(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let a=!0;return e.content.forEach(o=>{a!==!1&&(dk(o,{ignoreWhitespace:n,checkChildren:t})||(a=!1))}),a}return!1}function pee(e){return e instanceof Nt}function mee(e,t,n){const r=e.state.doc.content.size,a=od(t,0,r),o=od(n,0,r),i=e.coordsAtPos(a),l=e.coordsAtPos(o,-1),s=Math.min(i.top,l.top),u=Math.max(i.bottom,l.bottom),c=Math.min(i.left,l.left),d=Math.max(i.right,l.right),h=d-c,v=u-s,p={top:s,bottom:u,left:c,right:d,width:h,height:v,x:c,y:s};return{...p,toJSON:()=>p}}function o4e(e,t,n){var r;const{selection:a}=t;let o=null;if(yO(a)&&(o=a.$cursor),o){const l=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(l)||!l.some(s=>s.type.excludes(n))}const{ranges:i}=a;return i.some(({$from:l,$to:s})=>{let u=l.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(l.pos,s.pos,(c,d,h)=>{if(u)return!1;if(c.isInline){const v=!h||h.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));u=v&&p}return!u}),u})}const i4e=(e,t={})=>({tr:n,state:r,dispatch:a})=>{const{selection:o}=n,{empty:i,ranges:l}=o,s=Ff(e,r.schema);if(a)if(i){const u=cee(r,s);n.addStoredMark(s.create({...u,...t}))}else l.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(h,v)=>{const p=Math.max(v,c),m=Math.min(v+h.nodeSize,d);h.marks.find(g=>g.type===s)?h.marks.forEach(g=>{s===g.type&&n.addMark(p,m,s.create({...g.attrs,...t}))}):n.addMark(p,m,s.create(t))})});return o4e(r,n,s)},l4e=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),s4e=(e,t={})=>({state:n,dispatch:r,chain:a})=>{const o=oo(e,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),o.isTextblock?a().command(({commands:l})=>Z$(o,{...i,...t})(n)?!0:l.clearNodes()).command(({state:l})=>Z$(o,{...i,...t})(l,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},u4e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,a=od(e,0,r.content.size),o=Nt.create(r,a);t.setSelection(o)}return!0},c4e=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:a,to:o}=typeof e=="number"?{from:e,to:e}:e,i=Rt.atStart(r).from,l=Rt.atEnd(r).to,s=od(a,i,l),u=od(o,i,l),c=Rt.create(r,s,u);t.setSelection(c)}return!0},d4e=e=>({state:t,dispatch:n})=>{const r=oo(e,t.schema);return Y5e(r)(t,n)};function gee(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(a=>t?.includes(a.type.name));e.tr.ensureMarks(r)}}const f4e=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:a})=>{const{selection:o,doc:i}=t,{$from:l,$to:s}=o,u=a.extensionManager.attributes,c=ck(u,l.node().type.name,l.node().attrs);if(o instanceof Nt&&o.node.isBlock)return!l.parentOffset||!ed(i,l.pos)?!1:(r&&(e&&gee(n,a.extensionManager.splittableMarks),t.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const d=s.parentOffset===s.parent.content.size,h=l.depth===0?void 0:Qze(l.node(-1).contentMatchAt(l.indexAfter(-1)));let v=d&&h?[{type:h,attrs:c}]:void 0,p=ed(t.doc,t.mapping.map(l.pos),1,v);if(!v&&!p&&ed(t.doc,t.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(p=!0,v=h?[{type:h,attrs:c}]:void 0),r){if(p&&(o instanceof Rt&&t.deleteSelection(),t.split(t.mapping.map(l.pos),1,v),h&&!d&&!l.parentOffset&&l.parent.type!==h)){const m=t.mapping.map(l.before()),g=t.doc.resolve(m);l.node(-1).canReplaceWith(g.index(),g.index()+1,h)&&t.setNodeMarkup(t.mapping.map(l.before()),h)}e&&gee(n,a.extensionManager.splittableMarks),t.scrollIntoView()}return p},h4e=(e,t={})=>({tr:n,state:r,dispatch:a,editor:o})=>{var i;const l=oo(e,r.schema),{$from:s,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||s.depth<2||!s.sameParent(u))return!1;const d=s.node(-1);if(d.type!==l)return!1;const h=o.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==l||s.index(-2)!==s.node(-2).childCount-1)return!1;if(a){let y=ze.empty;const b=s.index(-1)?1:s.index(-2)?2:3;for(let A=s.depth-b;A>=s.depth-3;A-=1)y=ze.from(s.node(A).copy(y));const w=s.indexAfter(-1){if(T>-1)return!1;A.isTextblock&&A.content.size===0&&(T=E+1)}),T>-1&&n.setSelection(Rt.near(n.doc.resolve(T))),n.scrollIntoView()}return!0}const v=u.pos===s.end()?d.contentMatchAt(0).defaultType:null,p={...ck(h,d.type.name,d.attrs),...t},m={...ck(h,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,u.pos);const g=v?[{type:l,attrs:p},{type:v,attrs:m}]:[{type:l,attrs:p}];if(!ed(n.doc,s.pos,2))return!1;if(a){const{selection:y,storedMarks:b}=r,{splittableMarks:w}=o.extensionManager,S=b||y.$to.parentOffset&&y.$from.marks();if(n.split(s.pos,2,g).scrollIntoView(),!S||!a)return!0;const _=S.filter(x=>w.includes(x.type.name));n.ensureMarks(_)}return!0},CO=(e,t)=>{const n=wO(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&If(e.doc,n.pos)&&e.join(n.pos),!0},_O=(e,t)=>{const n=wO(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&If(e.doc,r)&&e.join(r),!0};var v4e=Object.freeze({__proto__:null,blur:lze,clearContent:sze,clearNodes:uze,command:cze,createParagraphNear:dze,cut:fze,deleteCurrentNode:hze,deleteNode:vze,deleteRange:pze,deleteSelection:mze,enter:gze,exitCode:yze,extendMarkRange:bze,first:wze,focus:Sze,forEach:xze,insertContent:Cze,insertContentAt:kze,joinBackward:Ize,joinDown:Eze,joinForward:Mze,joinItemBackward:Dze,joinItemForward:Vze,joinTextblockBackward:Pze,joinTextblockForward:Nze,joinUp:Aze,keyboardShortcut:Oze,lift:Rze,liftEmptyBlock:Bze,liftListItem:Fze,newlineInCode:Hze,resetAttributes:zze,scrollIntoView:Wze,selectAll:Gze,selectNodeBackward:Uze,selectNodeForward:Yze,selectParentNode:jze,selectTextblockEnd:Kze,selectTextblockStart:Xze,setContent:Zze,setMark:i4e,setMeta:l4e,setNode:s4e,setNodeSelection:u4e,setTextSelection:c4e,sinkListItem:d4e,splitBlock:f4e,splitListItem:h4e,toggleList:(e,t,n,r={})=>({editor:a,tr:o,state:i,dispatch:l,chain:s,commands:u,can:c})=>{const{extensions:d,splittableMarks:h}=a.extensionManager,v=oo(e,i.schema),p=oo(t,i.schema),{selection:m,storedMarks:g}=i,{$from:y,$to:b}=m,w=y.blockRange(b),S=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const _=wO(x=>vee(x.type.name,d))(m);if(w.depth>=1&&_&&w.depth-_.depth<=1){if(_.node.type===v)return u.liftListItem(p);if(vee(_.node.type.name,d)&&v.validContent(_.node.content)&&l)return s().command(()=>(o.setNodeMarkup(_.pos,v),!0)).command(()=>CO(o,v)).command(()=>_O(o,v)).run()}return!n||!S||!l?s().command(()=>c().wrapInList(v,r)?!0:u.clearNodes()).wrapInList(v,r).command(()=>CO(o,v)).command(()=>_O(o,v)).run():s().command(()=>{const x=c().wrapInList(v,r),T=S.filter(A=>h.includes(A.type.name));return o.ensureMarks(T),x?!0:u.clearNodes()}).wrapInList(v,r).command(()=>CO(o,v)).command(()=>_O(o,v)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:a})=>{const{extendEmptyMarkRange:o=!1}=n,i=Ff(e,r.schema);return xO(r,i,t)?a.unsetMark(i,{extendEmptyMarkRange:o}):a.setMark(i,t)},toggleNode:(e,t,n={})=>({state:r,commands:a})=>{const o=oo(e,r.schema),i=oo(t,r.schema),l=lS(r,o,n);let s;return r.selection.$anchor.sameParent(r.selection.$head)&&(s=r.selection.$anchor.parent.attrs),l?a.setNode(i,s):a.setNode(o,{...s,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const a=oo(e,n.schema);return lS(n,a,t)?r.lift(a):r.wrapIn(a,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;s-=1)i.step(l.steps[s].invert(l.docs[s]));if(o.text){const s=i.doc.resolve(o.from).marks();i.replaceWith(o.from,o.to,e.schema.text(o.text,s))}else i.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:a}=n;return r||t&&a.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:a})=>{var o;const{extendEmptyMarkRange:i=!1}=t,{selection:l}=n,s=Ff(e,r.schema),{$from:u,empty:c,ranges:d}=l;if(!a)return!0;if(c&&i){let{from:h,to:v}=l;const p=(o=u.marks().find(g=>g.type===s))===null||o===void 0?void 0:o.attrs,m=ik(u,s,p);m&&(h=m.from,v=m.to),n.removeMark(h,v,s)}else d.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,s)});return n.removeStoredMark(s),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const l=uk(typeof e=="string"?e:e.name,r.schema);return l?(l==="node"&&(o=oo(e,r.schema)),l==="mark"&&(i=Ff(e,r.schema)),a&&n.selection.ranges.forEach(s=>{const u=s.$from.pos,c=s.$to.pos;let d,h,v,p;n.selection.empty?r.doc.nodesBetween(u,c,(m,g)=>{o&&o===m.type&&(v=Math.max(g,u),p=Math.min(g+m.nodeSize,c),d=g,h=m)}):r.doc.nodesBetween(u,c,(m,g)=>{g=u&&g<=c&&(o&&o===m.type&&n.setNodeMarkup(g,void 0,{...m.attrs,...t}),i&&m.marks.length&&m.marks.forEach(y=>{if(i===y.type){const b=Math.max(g,u),w=Math.min(g+m.nodeSize,c);n.addMark(b,w,i.create({...y.attrs,...t}))}}))}),h&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...h.attrs,...t}),i&&h.marks.length&&h.marks.forEach(m=>{i===m.type&&n.addMark(v,p,i.create({...m.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return B5e(a,t)(n,r)},wrapInList:(e,t={})=>({state:n,dispatch:r})=>{const a=oo(e,n.schema);return F5e(a,t)(n,r)}});const p4e=or.create({name:"commands",addCommands(){return{...v4e}}}),m4e=or.create({name:"drop",addProseMirrorPlugins(){return[new Er({key:new ba("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),g4e=or.create({name:"editable",addProseMirrorPlugins(){return[new Er({key:new ba("editable"),props:{editable:()=>this.editor.options.editable}})]}}),y4e=new ba("focusEvents"),b4e=or.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Er({key:y4e,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),w4e=or.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:i})=>{const{selection:l,doc:s}=i,{empty:u,$anchor:c}=l,{pos:d,parent:h}=c,v=c.parent.isTextblock&&d>0?i.doc.resolve(d-1):c,p=v.parent.type.spec.isolating,m=c.pos-c.parentOffset,g=p&&v.parent.childCount===1?m===c.pos:Xt.atStart(s).from===d;return!u||!h.type.isTextblock||h.textContent.length||!g||g&&c.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},a={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return lk()||see()?a:r},addProseMirrorPlugins(){return[new Er({key:new ba("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(v=>v.getMeta("composition")))return;const r=e.some(v=>v.docChanged)&&!t.doc.eq(n.doc),a=e.some(v=>v.getMeta("preventClearDocument"));if(!r||a)return;const{empty:o,from:i,to:l}=t.selection,s=Xt.atStart(t.doc).from,u=Xt.atEnd(t.doc).to;if(o||!(i===s&&l===u)||!dk(n.doc))return;const c=n.tr,d=QT({state:n,transaction:c}),{commands:h}=new qT({editor:this.editor,state:d});if(h.clearNodes(),!!c.steps.length)return c}})]}}),S4e=or.create({name:"paste",addProseMirrorPlugins(){return[new Er({key:new ba("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),x4e=or.create({name:"tabindex",addProseMirrorPlugins(){return[new Er({key:new ba("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class ip{get name(){return this.node.type.name}constructor(t,n,r=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=a}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new ip(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new ip(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new ip(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const a=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,i=this.pos+r+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(i);if(!a&&l.depth<=this.depth)return;const s=new ip(l,this.editor,a,a?n:null);a&&(s.actualDepth=this.depth+1),t.push(new ip(l,this.editor,a,a?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,a=this.parent;for(;a&&!r;){if(a.node.type.name===t)if(Object.keys(n).length>0){const o=a.node.attrs,i=Object.keys(n);for(let l=0;l{r&&a.length>0||(i.node.type.name===t&&o.every(l=>n[l]===i.node.attrs[l])&&a.push(i),!(r&&a.length>0)&&(a=a.concat(i.querySelectorAll(t,n,r))))}),a}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const C4e=`.ProseMirror { position: relative; } @@ -120,14 +120,14 @@ img.ProseMirror-separator { .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 -}`;function C4e(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.setAttribute("data-tiptap-style",""),a.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(a),a}let _4e=class extends Y5e{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:n,moved:r})=>this.options.onDrop(t,n,r)),this.on("paste",({event:t,slice:n})=>this.options.onPaste(t,n)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=C4e(x4e,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Z$(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(a=>{const o=typeof a=="string"?`${a}$`:a.key;n=n.filter(i=>!i.key.startsWith(o))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[m4e,oze.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),v4e,y4e,b4e,S4e,p4e,w4e].filter(r=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[r.name]!==!1:!0):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r?.type));this.extensionManager=new ip(n,this)}createCommandManager(){this.commandManager=new $T({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=pO(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),t=pO(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=ree(t,this.options.autofocus);this.view=new I$(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:py.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var i;return(i=this.capturedTransaction)===null||i===void 0?void 0:i.step(o)});return}const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),a=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),a&&this.emit("blur",{editor:this,event:a.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return dee(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return r4e(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return dO(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` +}`;function _4e(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.setAttribute("data-tiptap-style",""),a.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(a),a}let T4e=class extends j5e{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:n,moved:r})=>this.options.onDrop(t,n,r)),this.on("paste",({event:t,slice:n})=>this.options.onPaste(t,n)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=_4e(C4e,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=Q$(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(a=>{const o=typeof a=="string"?`${a}$`:a.key;n=n.filter(i=>!i.key.startsWith(o))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[g4e,ize.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),p4e,b4e,w4e,x4e,m4e,S4e].filter(r=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[r.name]!==!1:!0):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r?.type));this.extensionManager=new op(n,this)}createCommandManager(){this.commandManager=new qT({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=bO(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),t=bO(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=oee(t,this.options.autofocus);this.view=new D$(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:yy.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var i;return(i=this.capturedTransaction)===null||i===void 0?void 0:i.step(o)});return}const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),a=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),a&&this.emit("blur",{editor:this,event:a.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return hee(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return a4e(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return pO(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` -`,textSerializers:n={}}=e||{};return cee(this.state.doc,{blockSeparator:t,textSerializers:{...hO(this.schema),...n}})}get isEmpty(){return fk(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new lp(t,this)}get $doc(){return this.$pos(0)}};function sp(e){return new tk({find:e.find,handler:({state:t,range:n,match:r})=>{const a=gn(e.getAttributes,void 0,r);if(a===!1||a===null)return null;const{tr:o}=t,i=r[r.length-1],l=r[0];if(i){const s=l.search(/\S/),u=n.from+l.indexOf(i),c=u+i.length;if(gO(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(v=>v===e.type&&v!==h.mark.type)).filter(h=>h.to>u).length)return null;cn.from&&o.delete(n.from+s,u);const d=n.from+s+i.length;o.addMark(n.from+s,d,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function mee(e){return new tk({find:e.find,handler:({state:t,range:n,match:r})=>{const a=gn(e.getAttributes,void 0,r)||{},{tr:o}=t,i=n.from;let l=n.to;const s=e.type.create(a);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=i+u;c>l?c=l:l=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,i+r[0].length-1),o.replaceWith(c,l,s)}else if(r[0]){const u=e.type.isInline?i:i-1;o.insert(u,e.type.create(a)).delete(o.mapping.map(i),o.mapping.map(l))}o.scrollIntoView()}})}function SO(e){return new tk({find:e.find,handler:({state:t,range:n,match:r})=>{const a=t.doc.resolve(n.from),o=gn(e.getAttributes,void 0,r)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function Cy(e){return new tk({find:e.find,handler:({state:t,range:n,match:r,chain:a})=>{const o=gn(e.getAttributes,void 0,r)||{},i=t.tr.delete(n.from,n.to),l=i.doc.resolve(n.from).blockRange(),s=l&&_2(l,e.type,o);if(!s)return null;if(i.wrap(l,s),e.keepMarks&&e.editor){const{selection:c,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,v=d||c.$to.parentOffset&&c.$from.marks();if(v){const p=v.filter(m=>h.includes(m.type.name));i.ensureMarks(p)}}if(e.keepAttributes){const c=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(c,o).run()}const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&Mf(i.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&i.join(n.from-1)}})}class Kr{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(Et(this,"addOptions",{name:this.name}))),this.storage=gn(Et(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Kr(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>ak(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Kr(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(Et(n,"addOptions",{name:n.name})),n.storage=gn(Et(n,"addStorage",{name:n.name,options:n.options})),n}}class T4e{constructor(t,n,r){this.isDragging=!1,this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var n,r,a,o,i,l,s;const{view:u}=this.editor,c=t.target,d=c.nodeType===3?(n=c.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(c)||!d)return;let h=0,v=0;if(this.dom!==d){const b=this.dom.getBoundingClientRect(),w=d.getBoundingClientRect(),S=(a=t.offsetX)!==null&&a!==void 0?a:(o=t.nativeEvent)===null||o===void 0?void 0:o.offsetX,_=(i=t.offsetY)!==null&&i!==void 0?i:(l=t.nativeEvent)===null||l===void 0?void 0:l.offsetY;h=w.x-b.x+S,v=w.y-b.y+_}const p=this.dom.cloneNode(!0);(s=t.dataTransfer)===null||s===void 0||s.setDragImage(p,h,v);const m=this.getPos();if(typeof m!="number")return;const g=Nt.create(u.state.doc,m),y=u.state.tr.setSelection(g);u.dispatch(y)}stopEvent(t){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const r=t.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const a=t.type.startsWith("drag"),o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!o&&!a)return!0;const{isEditable:i}=this.editor,{isDragging:l}=this,s=!!this.node.type.spec.draggable,u=Nt.isSelectable(this.node),c=t.type==="copy",d=t.type==="paste",h=t.type==="cut",v=t.type==="mousedown";if(!s&&u&&a&&t.target===this.dom&&t.preventDefault(),s&&a&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(s&&i&&!l&&v){const p=r.closest("[data-drag-handle]");p&&(this.dom===p||this.dom.contains(p))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||c||d||h||v&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(sk()||aee())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}}function zf(e){return new $5e({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:a})=>{const o=gn(e.getAttributes,void 0,r,a);if(o===!1||o===null)return null;const{tr:i}=t,l=r[r.length-1],s=r[0];let u=n.to;if(l){const c=s.search(/\S/),d=n.from+s.indexOf(l),h=d+l.length;if(gO(n.from,n.to,t.doc).filter(v=>v.mark.type.excluded.find(p=>p===e.type&&p!==v.mark.type)).filter(v=>v.to>d).length)return null;hn.from&&i.delete(n.from+c,d),u=n.from+c+l.length,i.addMark(n.from+c,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function k4e(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof Nt){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let a=r.depth;for(;a>=0;){const o=r.index(a);if(r.node(a).contentMatchAt(o).matchType(t))return!0;a-=1}return!1}var Wi="top",Ql="bottom",ql="right",Gi="left",xO="auto",lS=[Wi,Ql,ql,Gi],_y="start",sS="end",A4e="clippingParents",gee="viewport",uS="popper",E4e="reference",yee=lS.reduce(function(e,t){return e.concat([t+"-"+_y,t+"-"+sS])},[]),bee=[].concat(lS,[xO]).reduce(function(e,t){return e.concat([t,t+"-"+_y,t+"-"+sS])},[]),I4e="beforeRead",M4e="read",D4e="afterRead",V4e="beforeMain",P4e="main",N4e="afterMain",L4e="beforeWrite",O4e="write",R4e="afterWrite",B4e=[I4e,M4e,D4e,V4e,P4e,N4e,L4e,O4e,R4e];function Ou(e){return e?(e.nodeName||"").toLowerCase():null}function bl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function up(e){var t=bl(e).Element;return e instanceof t||e instanceof Element}function $l(e){var t=bl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function CO(e){if(typeof ShadowRoot>"u")return!1;var t=bl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function F4e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!$l(o)||!Ou(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function H4e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(s,u){return s[u]="",s},{});!$l(a)||!Ou(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const wee={name:"applyStyles",enabled:!0,phase:"write",fn:F4e,effect:H4e,requires:["computeStyles"]};function Ru(e){return e.split("-")[0]}var cp=Math.max,hk=Math.min,Ty=Math.round;function _O(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function See(){return!/^((?!chrome|android).)*safari/i.test(_O())}function ky(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&$l(e)&&(a=e.offsetWidth>0&&Ty(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ty(r.height)/e.offsetHeight||1);var i=up(e)?bl(e):window,l=i.visualViewport,s=!See()&&n,u=(r.left+(s&&l?l.offsetLeft:0))/a,c=(r.top+(s&&l?l.offsetTop:0))/o,d=r.width/a,h=r.height/o;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function TO(e){var t=ky(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function xee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&CO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ld(e){return bl(e).getComputedStyle(e)}function z4e(e){return["table","td","th"].indexOf(Ou(e))>=0}function Wf(e){return((up(e)?e.ownerDocument:e.document)||window.document).documentElement}function vk(e){return Ou(e)==="html"?e:e.assignedSlot||e.parentNode||(CO(e)?e.host:null)||Wf(e)}function Cee(e){return!$l(e)||ld(e).position==="fixed"?null:e.offsetParent}function W4e(e){var t=/firefox/i.test(_O()),n=/Trident/i.test(_O());if(n&&$l(e)){var r=ld(e);if(r.position==="fixed")return null}var a=vk(e);for(CO(a)&&(a=a.host);$l(a)&&["html","body"].indexOf(Ou(a))<0;){var o=ld(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function cS(e){for(var t=bl(e),n=Cee(e);n&&z4e(n)&&ld(n).position==="static";)n=Cee(n);return n&&(Ou(n)==="html"||Ou(n)==="body"&&ld(n).position==="static")?t:n||W4e(e)||t}function kO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dS(e,t,n){return cp(e,hk(t,n))}function G4e(e,t,n){var r=dS(e,t,n);return r>n?n:r}function _ee(){return{top:0,right:0,bottom:0,left:0}}function Tee(e){return Object.assign({},_ee(),e)}function kee(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var U4e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Tee(typeof e!="number"?e:kee(e,lS))};function Y4e(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ru(n.placement),s=kO(l),u=[Gi,ql].indexOf(l)>=0,c=u?"height":"width";if(!(!o||!i)){var d=U4e(a.padding,n),h=TO(o),v=s==="y"?Wi:Gi,p=s==="y"?Ql:ql,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],y=cS(o),b=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,S=d[v],_=b-h[c]-d[p],x=b/2-h[c]/2+w,T=dS(S,x,_),A=s;n.modifiersData[r]=(t={},t[A]=T,t.centerOffset=T-x,t)}}function j4e(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||xee(t.elements.popper,a)&&(t.elements.arrow=a))}const K4e={name:"arrow",enabled:!0,phase:"main",fn:Y4e,effect:j4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ay(e){return e.split("-")[1]}var X4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z4e(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Ty(n*a)/a||0,y:Ty(r*a)/a||0}}function Aee(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=i.x,v=h===void 0?0:h,p=i.y,m=p===void 0?0:p,g=typeof c=="function"?c({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=Gi,S=Wi,_=window;if(u){var x=cS(n),T="clientHeight",A="clientWidth";if(x===bl(n)&&(x=Wf(n),ld(x).position!=="static"&&l==="absolute"&&(T="scrollHeight",A="scrollWidth")),x=x,a===Wi||(a===Gi||a===ql)&&o===sS){S=Ql;var E=d&&x===_&&_.visualViewport?_.visualViewport.height:x[T];m-=E-r.height,m*=s?1:-1}if(a===Gi||(a===Wi||a===Ql)&&o===sS){w=ql;var I=d&&x===_&&_.visualViewport?_.visualViewport.width:x[A];v-=I-r.width,v*=s?1:-1}}var M=Object.assign({position:l},u&&X4e),N=c===!0?Z4e({x:v,y:m},bl(n)):{x:v,y:m};if(v=N.x,m=N.y,s){var D;return Object.assign({},M,(D={},D[S]=b?"0":"",D[w]=y?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",D))}return Object.assign({},M,(t={},t[S]=b?m+"px":"",t[w]=y?v+"px":"",t.transform="",t))}function J4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,l=n.roundOffsets,s=l===void 0?!0:l,u={placement:Ru(t.placement),variation:Ay(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Aee(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Aee(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Q4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:J4e,data:{}};var pk={passive:!0};function q4e(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,l=i===void 0?!0:i,s=bl(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,pk)}),l&&s.addEventListener("resize",n.update,pk),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,pk)}),l&&s.removeEventListener("resize",n.update,pk)}}const $4e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:q4e,data:{}};var e6e={left:"right",right:"left",bottom:"top",top:"bottom"};function mk(e){return e.replace(/left|right|bottom|top/g,function(t){return e6e[t]})}var t6e={start:"end",end:"start"};function Eee(e){return e.replace(/start|end/g,function(t){return t6e[t]})}function AO(e){var t=bl(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function EO(e){return ky(Wf(e)).left+AO(e).scrollLeft}function n6e(e,t){var n=bl(e),r=Wf(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var u=See();(u||!u&&t==="fixed")&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+EO(e),y:s}}function r6e(e){var t,n=Wf(e),r=AO(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=cp(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=cp(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+EO(e),s=-r.scrollTop;return ld(a||n).direction==="rtl"&&(l+=cp(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function IO(e){var t=ld(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Iee(e){return["html","body","#document"].indexOf(Ou(e))>=0?e.ownerDocument.body:$l(e)&&IO(e)?e:Iee(vk(e))}function fS(e,t){var n;t===void 0&&(t=[]);var r=Iee(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=bl(r),i=a?[o].concat(o.visualViewport||[],IO(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(fS(vk(i)))}function MO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function a6e(e,t){var n=ky(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Mee(e,t,n){return t===gee?MO(n6e(e,n)):up(t)?a6e(t,n):MO(r6e(Wf(e)))}function o6e(e){var t=fS(vk(e)),n=["absolute","fixed"].indexOf(ld(e).position)>=0,r=n&&$l(e)?cS(e):e;return up(r)?t.filter(function(a){return up(a)&&xee(a,r)&&Ou(a)!=="body"}):[]}function i6e(e,t,n,r){var a=t==="clippingParents"?o6e(e):[].concat(t),o=[].concat(a,[n]),i=o[0],l=o.reduce(function(s,u){var c=Mee(e,u,r);return s.top=cp(c.top,s.top),s.right=hk(c.right,s.right),s.bottom=hk(c.bottom,s.bottom),s.left=cp(c.left,s.left),s},Mee(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Dee(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ru(r):null,o=r?Ay(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(a){case Wi:s={x:i,y:t.y-n.height};break;case Ql:s={x:i,y:t.y+t.height};break;case ql:s={x:t.x+t.width,y:l};break;case Gi:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?kO(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case _y:s[u]=s[u]-(t[c]/2-n[c]/2);break;case sS:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function hS(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,i=o===void 0?e.strategy:o,l=n.boundary,s=l===void 0?A4e:l,u=n.rootBoundary,c=u===void 0?gee:u,d=n.elementContext,h=d===void 0?uS:d,v=n.altBoundary,p=v===void 0?!1:v,m=n.padding,g=m===void 0?0:m,y=Tee(typeof g!="number"?g:kee(g,lS)),b=h===uS?E4e:uS,w=e.rects.popper,S=e.elements[p?b:h],_=i6e(up(S)?S:S.contextElement||Wf(e.elements.popper),s,c,i),x=ky(e.elements.reference),T=Dee({reference:x,element:w,placement:a}),A=MO(Object.assign({},w,T)),E=h===uS?A:x,I={top:_.top-E.top+y.top,bottom:E.bottom-_.bottom+y.bottom,left:_.left-E.left+y.left,right:E.right-_.right+y.right},M=e.modifiersData.offset;if(h===uS&&M){var N=M[a];Object.keys(I).forEach(function(D){var P=[ql,Ql].indexOf(D)>=0?1:-1,O=[Wi,Ql].indexOf(D)>=0?"y":"x";I[D]+=N[O]*P})}return I}function l6e(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?bee:s,c=Ay(r),d=c?l?yee:yee.filter(function(p){return Ay(p)===c}):lS,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var v=h.reduce(function(p,m){return p[m]=hS(e,{placement:m,boundary:a,rootBoundary:o,padding:i})[Ru(m)],p},{});return Object.keys(v).sort(function(p,m){return v[p]-v[m]})}function s6e(e){if(Ru(e)===xO)return[];var t=mk(e);return[Eee(e),t,Eee(t)]}function u6e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!0:i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,p=v===void 0?!0:v,m=n.allowedAutoPlacements,g=t.options.placement,y=Ru(g),b=y===g,w=s||(b||!p?[mk(g)]:s6e(g)),S=[g].concat(w).reduce(function(Y,Z){return Y.concat(Ru(Z)===xO?l6e(t,{placement:Z,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,x=t.rects.popper,T=new Map,A=!0,E=S[0],I=0;I=0,O=P?"width":"height",L=hS(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),R=P?D?ql:Gi:D?Ql:Wi;_[O]>x[O]&&(R=mk(R));var B=mk(R),W=[];if(o&&W.push(L[N]<=0),l&&W.push(L[R]<=0,L[B]<=0),W.every(function(Y){return Y})){E=M,A=!1;break}T.set(M,W)}if(A)for(var H=p?3:1,z=function(Y){var Z=S.find(function(te){var $=T.get(te);if($)return $.slice(0,Y).every(function(ae){return ae})});if(Z)return E=Z,"break"},j=H;j>0;j--){var U=z(j);if(U==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const c6e={name:"flip",enabled:!0,phase:"main",fn:u6e,requiresIfExists:["offset"],data:{_skip:!1}};function Vee(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pee(e){return[Wi,ql,Ql,Gi].some(function(t){return e[t]>=0})}function d6e(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=hS(t,{elementContext:"reference"}),l=hS(t,{altBoundary:!0}),s=Vee(i,r),u=Vee(l,a,o),c=Pee(s),d=Pee(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const f6e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:d6e};function h6e(e,t,n){var r=Ru(e),a=[Gi,Wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Gi,ql].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function v6e(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=bee.reduce(function(c,d){return c[d]=h6e(d,t.rects,o),c},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const p6e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:v6e};function m6e(e){var t=e.state,n=e.name;t.modifiersData[n]=Dee({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const g6e={name:"popperOffsets",enabled:!0,phase:"read",fn:m6e,data:{}};function y6e(e){return e==="x"?"y":"x"}function b6e(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!1:i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,v=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,g=hS(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=Ru(t.placement),b=Ay(t.placement),w=!b,S=kO(y),_=y6e(S),x=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(o){var D,P=S==="y"?Wi:Gi,O=S==="y"?Ql:ql,L=S==="y"?"height":"width",R=x[S],B=R+g[P],W=R-g[O],H=v?-A[L]/2:0,z=b===_y?T[L]:A[L],j=b===_y?-A[L]:-T[L],U=t.elements.arrow,Y=v&&U?TO(U):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_ee(),te=Z[P],$=Z[O],ae=dS(0,T[L],Y[L]),de=w?T[L]/2-H-ae-te-I.mainAxis:z-ae-te-I.mainAxis,me=w?-T[L]/2+H+ae+$+I.mainAxis:j+ae+$+I.mainAxis,fe=t.elements.arrow&&cS(t.elements.arrow),Ee=fe?S==="y"?fe.clientTop||0:fe.clientLeft||0:0,De=(D=M?.[S])!=null?D:0,ne=R+de-De-Ee,pe=R+me-De,Pe=dS(v?hk(B,ne):B,R,v?cp(W,pe):W);x[S]=Pe,N[S]=Pe-R}if(l){var ze,lt=S==="x"?Wi:Gi,kt=S==="x"?Ql:ql,X=x[_],ee=_==="y"?"height":"width",ge=X+g[lt],oe=X-g[kt],Oe=[Wi,Gi].indexOf(y)!==-1,je=(ze=M?.[_])!=null?ze:0,he=Oe?ge:X-T[ee]-A[ee]-je+I.altAxis,Se=Oe?X+T[ee]+A[ee]-je-I.altAxis:oe,$e=v&&Oe?G4e(he,X,Se):dS(v?he:ge,X,v?Se:oe);x[_]=$e,N[_]=$e-X}t.modifiersData[r]=N}}const w6e={name:"preventOverflow",enabled:!0,phase:"main",fn:b6e,requiresIfExists:["offset"]};function S6e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function x6e(e){return e===bl(e)||!$l(e)?AO(e):S6e(e)}function C6e(e){var t=e.getBoundingClientRect(),n=Ty(t.width)/e.offsetWidth||1,r=Ty(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _6e(e,t,n){n===void 0&&(n=!1);var r=$l(t),a=$l(t)&&C6e(t),o=Wf(t),i=ky(e,a,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Ou(t)!=="body"||IO(o))&&(l=x6e(t)),$l(t)?(s=ky(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=EO(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function T6e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&a(s)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function k6e(e){var t=T6e(e);return B4e.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function A6e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function E6e(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Nee={placement:"bottom",modifiers:[],strategy:"absolute"};function Lee(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Hee(e,t){return typeof e=="function"?e.apply(void 0,t):e}function zee(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function N6e(e){return e.split(/\s+/).filter(Boolean)}function Ey(e){return[].concat(e)}function Wee(e,t){e.indexOf(t)===-1&&e.push(t)}function L6e(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function O6e(e){return e.split("-")[0]}function gk(e){return[].slice.call(e)}function Gee(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function vS(){return document.createElement("div")}function yk(e){return["Element","Fragment"].some(function(t){return VO(e,t)})}function R6e(e){return VO(e,"NodeList")}function B6e(e){return VO(e,"MouseEvent")}function F6e(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function H6e(e){return yk(e)?[e]:R6e(e)?gk(e):Array.isArray(e)?e:gk(document.querySelectorAll(e))}function PO(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Uee(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function z6e(e){var t,n=Ey(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function W6e(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var o=a.popperRect,i=a.popperState,l=a.props,s=l.interactiveBorder,u=O6e(i.placement),c=i.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,v=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,m=o.top-r+d>s,g=r-o.bottom-h>s,y=o.left-n+v>s,b=n-o.right-p>s;return m||g||y||b})}function NO(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function Yee(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Bu={isTouch:!1},jee=0;function G6e(){Bu.isTouch||(Bu.isTouch=!0,window.performance&&document.addEventListener("mousemove",Kee))}function Kee(){var e=performance.now();e-jee<20&&(Bu.isTouch=!1,document.removeEventListener("mousemove",Kee)),jee=e}function U6e(){var e=document.activeElement;if(F6e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Y6e(){document.addEventListener("touchstart",G6e,dp),window.addEventListener("blur",U6e)}var j6e=typeof window<"u"&&typeof document<"u",K6e=j6e?!!window.msCrypto:!1,X6e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Z6e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},js=Object.assign({appendTo:Fee,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},X6e,Z6e),J6e=Object.keys(js),Q6e=function(e){var t=Object.keys(e);t.forEach(function(n){js[n]=e[n]})};function Xee(e){var t=e.plugins||[],n=t.reduce(function(r,a){var o=a.name,i=a.defaultValue;if(o){var l;r[o]=e[o]!==void 0?e[o]:(l=js[o])!=null?l:i}return r},{});return Object.assign({},e,n)}function q6e(e,t){var n=t?Object.keys(Xee(Object.assign({},js,{plugins:t}))):J6e,r=n.reduce(function(a,o){var i=(e.getAttribute("data-tippy-"+o)||"").trim();if(!i)return a;if(o==="content")a[o]=i;else try{a[o]=JSON.parse(i)}catch{a[o]=i}return a},{});return r}function Zee(e,t){var n=Object.assign({},t,{content:Hee(t.content,[e])},t.ignoreAttributes?{}:q6e(e,t.plugins));return n.aria=Object.assign({},js.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var $6e=function(){return"innerHTML"};function LO(e,t){e[$6e()]=t}function Jee(e){var t=vS();return e===!0?t.className=Ree:(t.className=Bee,yk(e)?t.appendChild(e):LO(t,e)),t}function Qee(e,t){yk(t.content)?(LO(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?LO(e,t.content):e.textContent=t.content)}function OO(e){var t=e.firstElementChild,n=gk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Oee)}),arrow:n.find(function(r){return r.classList.contains(Ree)||r.classList.contains(Bee)}),backdrop:n.find(function(r){return r.classList.contains(P6e)})}}function qee(e){var t=vS(),n=vS();n.className=V6e,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=vS();r.className=Oee,r.setAttribute("data-state","hidden"),Qee(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(o,i){var l=OO(t),s=l.box,u=l.content,c=l.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),typeof i.animation=="string"?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),(o.content!==i.content||o.allowHTML!==i.allowHTML)&&Qee(u,e.props),i.arrow?c?o.arrow!==i.arrow&&(s.removeChild(c),s.appendChild(Jee(i.arrow))):s.appendChild(Jee(i.arrow)):c&&s.removeChild(c)}return{popper:t,onUpdate:a}}qee.$$tippy=!0;var e8e=1,bk=[],RO=[];function t8e(e,t){var n=Zee(e,Object.assign({},js,Xee(Gee(t)))),r,a,o,i=!1,l=!1,s=!1,u=!1,c,d,h,v=[],p=zee(ne,n.interactiveDebounce),m,g=e8e++,y=null,b=L6e(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:g,reference:e,popper:vS(),popperInstance:y,props:n,state:w,plugins:b,clearDelayTimeouts:he,setProps:Se,setContent:$e,show:le,hide:ue,hideWithInteractivity:xe,enable:Oe,disable:je,unmount:Ve,destroy:et};if(!n.render)return S;var _=n.render(S),x=_.popper,T=_.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+S.id,S.popper=x,e._tippy=S,x._tippy=S;var A=b.map(function(ye){return ye.fn(S)}),E=e.hasAttribute("aria-expanded");return fe(),H(),R(),B("onCreate",[S]),n.showOnCreate&&ge(),x.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),S;function I(){var ye=S.props.touch;return Array.isArray(ye)?ye:[ye,0]}function M(){return I()[0]==="hold"}function N(){var ye;return!!((ye=S.props.render)!=null&&ye.$$tippy)}function D(){return m||e}function P(){var ye=D().parentNode;return ye?z6e(ye):document}function O(){return OO(x)}function L(ye){return S.state.isMounted&&!S.state.isVisible||Bu.isTouch||c&&c.type==="focus"?0:DO(S.props.delay,ye?0:1,js.delay)}function R(ye){ye===void 0&&(ye=!1),x.style.pointerEvents=S.props.interactive&&!ye?"":"none",x.style.zIndex=""+S.props.zIndex}function B(ye,Le,tt){if(tt===void 0&&(tt=!0),A.forEach(function(qe){qe[ye]&&qe[ye].apply(qe,Le)}),tt){var Pt;(Pt=S.props)[ye].apply(Pt,Le)}}function W(){var ye=S.props.aria;if(ye.content){var Le="aria-"+ye.content,tt=x.id,Pt=Ey(S.props.triggerTarget||e);Pt.forEach(function(qe){var nt=qe.getAttribute(Le);if(S.state.isVisible)qe.setAttribute(Le,nt?nt+" "+tt:tt);else{var Ct=nt&&nt.replace(tt,"").trim();Ct?qe.setAttribute(Le,Ct):qe.removeAttribute(Le)}})}}function H(){if(!(E||!S.props.aria.expanded)){var ye=Ey(S.props.triggerTarget||e);ye.forEach(function(Le){S.props.interactive?Le.setAttribute("aria-expanded",S.state.isVisible&&Le===D()?"true":"false"):Le.removeAttribute("aria-expanded")})}}function z(){P().removeEventListener("mousemove",p),bk=bk.filter(function(ye){return ye!==p})}function j(ye){if(!(Bu.isTouch&&(s||ye.type==="mousedown"))){var Le=ye.composedPath&&ye.composedPath()[0]||ye.target;if(!(S.props.interactive&&Yee(x,Le))){if(Ey(S.props.triggerTarget||e).some(function(tt){return Yee(tt,Le)})){if(Bu.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[S,ye]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),l=!0,setTimeout(function(){l=!1}),S.state.isMounted||te())}}}function U(){s=!0}function Y(){s=!1}function Z(){var ye=P();ye.addEventListener("mousedown",j,!0),ye.addEventListener("touchend",j,dp),ye.addEventListener("touchstart",Y,dp),ye.addEventListener("touchmove",U,dp)}function te(){var ye=P();ye.removeEventListener("mousedown",j,!0),ye.removeEventListener("touchend",j,dp),ye.removeEventListener("touchstart",Y,dp),ye.removeEventListener("touchmove",U,dp)}function $(ye,Le){de(ye,function(){!S.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&Le()})}function ae(ye,Le){de(ye,Le)}function de(ye,Le){var tt=O().box;function Pt(qe){qe.target===tt&&(NO(tt,"remove",Pt),Le())}if(ye===0)return Le();NO(tt,"remove",d),NO(tt,"add",Pt),d=Pt}function me(ye,Le,tt){tt===void 0&&(tt=!1);var Pt=Ey(S.props.triggerTarget||e);Pt.forEach(function(qe){qe.addEventListener(ye,Le,tt),v.push({node:qe,eventType:ye,handler:Le,options:tt})})}function fe(){M()&&(me("touchstart",De,{passive:!0}),me("touchend",pe,{passive:!0})),N6e(S.props.trigger).forEach(function(ye){if(ye!=="manual")switch(me(ye,De),ye){case"mouseenter":me("mouseleave",pe);break;case"focus":me(K6e?"focusout":"blur",Pe);break;case"focusin":me("focusout",Pe);break}})}function Ee(){v.forEach(function(ye){var Le=ye.node,tt=ye.eventType,Pt=ye.handler,qe=ye.options;Le.removeEventListener(tt,Pt,qe)}),v=[]}function De(ye){var Le,tt=!1;if(!(!S.state.isEnabled||ze(ye)||l)){var Pt=((Le=c)==null?void 0:Le.type)==="focus";c=ye,m=ye.currentTarget,H(),!S.state.isVisible&&B6e(ye)&&bk.forEach(function(qe){return qe(ye)}),ye.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||i)&&S.props.hideOnClick!==!1&&S.state.isVisible?tt=!0:ge(ye),ye.type==="click"&&(i=!tt),tt&&!Pt&&oe(ye)}}function ne(ye){var Le=ye.target,tt=D().contains(Le)||x.contains(Le);if(!(ye.type==="mousemove"&&tt)){var Pt=ee().concat(x).map(function(qe){var nt,Ct=qe._tippy,tn=(nt=Ct.popperInstance)==null?void 0:nt.state;return tn?{popperRect:qe.getBoundingClientRect(),popperState:tn,props:n}:null}).filter(Boolean);W6e(Pt,ye)&&(z(),oe(ye))}}function pe(ye){var Le=ze(ye)||S.props.trigger.indexOf("click")>=0&&i;if(!Le){if(S.props.interactive){S.hideWithInteractivity(ye);return}oe(ye)}}function Pe(ye){S.props.trigger.indexOf("focusin")<0&&ye.target!==D()||S.props.interactive&&ye.relatedTarget&&x.contains(ye.relatedTarget)||oe(ye)}function ze(ye){return Bu.isTouch?M()!==ye.type.indexOf("touch")>=0:!1}function lt(){kt();var ye=S.props,Le=ye.popperOptions,tt=ye.placement,Pt=ye.offset,qe=ye.getReferenceClientRect,nt=ye.moveTransition,Ct=N()?OO(x).arrow:null,tn=qe?{getBoundingClientRect:qe,contextElement:qe.contextElement||D()}:e,cn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Pl){var Pi=Pl.state;if(N()){var Nl=O(),ui=Nl.box;["placement","reference-hidden","escaped"].forEach(function(tl){tl==="placement"?ui.setAttribute("data-placement",Pi.placement):Pi.attributes.popper["data-popper-"+tl]?ui.setAttribute("data-"+tl,""):ui.removeAttribute("data-"+tl)}),Pi.attributes.popper={}}}},rr=[{name:"offset",options:{offset:Pt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!nt}},cn];N()&&Ct&&rr.push({name:"arrow",options:{element:Ct,padding:3}}),rr.push.apply(rr,Le?.modifiers||[]),S.popperInstance=D6e(tn,x,Object.assign({},Le,{placement:tt,onFirstUpdate:h,modifiers:rr}))}function kt(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function X(){var ye=S.props.appendTo,Le,tt=D();S.props.interactive&&ye===Fee||ye==="parent"?Le=tt.parentNode:Le=Hee(ye,[tt]),Le.contains(x)||Le.appendChild(x),S.state.isMounted=!0,lt()}function ee(){return gk(x.querySelectorAll("[data-tippy-root]"))}function ge(ye){S.clearDelayTimeouts(),ye&&B("onTrigger",[S,ye]),Z();var Le=L(!0),tt=I(),Pt=tt[0],qe=tt[1];Bu.isTouch&&Pt==="hold"&&qe&&(Le=qe),Le?r=setTimeout(function(){S.show()},Le):S.show()}function oe(ye){if(S.clearDelayTimeouts(),B("onUntrigger",[S,ye]),!S.state.isVisible){te();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ye.type)>=0&&i)){var Le=L(!1);Le?a=setTimeout(function(){S.state.isVisible&&S.hide()},Le):o=requestAnimationFrame(function(){S.hide()})}}function Oe(){S.state.isEnabled=!0}function je(){S.hide(),S.state.isEnabled=!1}function he(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(o)}function Se(ye){if(!S.state.isDestroyed){B("onBeforeUpdate",[S,ye]),Ee();var Le=S.props,tt=Zee(e,Object.assign({},Le,Gee(ye),{ignoreAttributes:!0}));S.props=tt,fe(),Le.interactiveDebounce!==tt.interactiveDebounce&&(z(),p=zee(ne,tt.interactiveDebounce)),Le.triggerTarget&&!tt.triggerTarget?Ey(Le.triggerTarget).forEach(function(Pt){Pt.removeAttribute("aria-expanded")}):tt.triggerTarget&&e.removeAttribute("aria-expanded"),H(),R(),T&&T(Le,tt),S.popperInstance&&(lt(),ee().forEach(function(Pt){requestAnimationFrame(Pt._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[S,ye])}}function $e(ye){S.setProps({content:ye})}function le(){var ye=S.state.isVisible,Le=S.state.isDestroyed,tt=!S.state.isEnabled,Pt=Bu.isTouch&&!S.props.touch,qe=DO(S.props.duration,0,js.duration);if(!(ye||Le||tt||Pt)&&!D().hasAttribute("disabled")&&(B("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,N()&&(x.style.visibility="visible"),R(),Z(),S.state.isMounted||(x.style.transition="none"),N()){var nt=O(),Ct=nt.box,tn=nt.content;PO([Ct,tn],0)}h=function(){var cn;if(!(!S.state.isVisible||u)){if(u=!0,x.offsetHeight,x.style.transition=S.props.moveTransition,N()&&S.props.animation){var rr=O(),Pl=rr.box,Pi=rr.content;PO([Pl,Pi],qe),Uee([Pl,Pi],"visible")}W(),H(),Wee(RO,S),(cn=S.popperInstance)==null||cn.forceUpdate(),B("onMount",[S]),S.props.animation&&N()&&ae(qe,function(){S.state.isShown=!0,B("onShown",[S])})}},X()}}function ue(){var ye=!S.state.isVisible,Le=S.state.isDestroyed,tt=!S.state.isEnabled,Pt=DO(S.props.duration,1,js.duration);if(!(ye||Le||tt)&&(B("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,i=!1,N()&&(x.style.visibility="hidden"),z(),te(),R(!0),N()){var qe=O(),nt=qe.box,Ct=qe.content;S.props.animation&&(PO([nt,Ct],Pt),Uee([nt,Ct],"hidden"))}W(),H(),S.props.animation?N()&&$(Pt,S.unmount):S.unmount()}}function xe(ye){P().addEventListener("mousemove",p),Wee(bk,p),p(ye)}function Ve(){S.state.isVisible&&S.hide(),S.state.isMounted&&(kt(),ee().forEach(function(ye){ye._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),RO=RO.filter(function(ye){return ye!==S}),S.state.isMounted=!1,B("onHidden",[S]))}function et(){!S.state.isDestroyed&&(S.clearDelayTimeouts(),S.unmount(),Ee(),delete e._tippy,S.state.isDestroyed=!0,B("onDestroy",[S]))}}function Iy(e,t){t===void 0&&(t={});var n=js.plugins.concat(t.plugins||[]);Y6e();var r=Object.assign({},t,{plugins:n}),a=H6e(e),o=a.reduce(function(i,l){var s=l&&t8e(l,r);return s&&i.push(s),i},[]);return yk(e)?o[0]:o}Iy.defaultProps=js,Iy.setDefaultProps=Q6e,Iy.currentInput=Bu,Object.assign({},wee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Iy.setDefaultProps({render:qee});class n8e{constructor({editor:t,element:n,view:r,tippyOptions:a={},updateDelay:o=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:l,state:s,from:u,to:c})=>{const{doc:d,selection:h}=s,{empty:v}=h,p=!d.textBetween(u,c).length&&vO(s.selection),m=this.element.contains(document.activeElement);return!(!(l.hasFocus()||m)||v||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var s;if(this.preventHide){this.preventHide=!1;return}l?.relatedTarget&&!((s=this.element.parentNode)===null||s===void 0)&&s.contains(l.relatedTarget)||l?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,s)=>{const u=!s?.selection.eq(l.state.selection),c=!s?.doc.eq(l.state.doc);!u&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,c,s)},this.updateDelay))},this.updateHandler=(l,s,u,c)=>{var d,h,v;const{state:p,composing:m}=l,{selection:g}=p;if(m||!s&&!u)return;this.createTooltip();const{ranges:y}=g,b=Math.min(...y.map(S=>S.$from.pos)),w=Math.max(...y.map(S=>S.$to.pos));if(!(!((d=this.shouldShow)===null||d===void 0)&&d.call(this,{editor:this.editor,element:this.element,view:l,state:p,oldState:c,from:b,to:w}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((v=this.tippyOptions)===null||v===void 0?void 0:v.getReferenceClientRect)||(()=>{if(hee(p.selection)){let S=l.nodeDOM(b);if(S){const _=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(_&&(S=_.firstChild),S)return S.getBoundingClientRect()}}return vee(l,b,w)})}),this.show()},this.editor=t,this.element=n,this.view=r,this.updateDelay=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=Iy(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){const{state:r}=t,a=r.selection.from!==r.selection.to;if(this.updateDelay>0&&a){this.handleDebouncedUpdate(t,n);return}const o=!n?.selection.eq(t.state.selection),i=!n?.doc.eq(t.state.doc);this.updateHandler(t,o,i,n)}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const $ee=e=>new Ar({key:typeof e.pluginKey=="string"?new ya(e.pluginKey):e.pluginKey,view:t=>new n8e({view:t,...e})});or.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$ee({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class r8e{getTextContent(t){return cee(t,{textSerializers:hO(this.editor.schema)})}constructor({editor:t,element:n,view:r,tippyOptions:a={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:i,state:l})=>{const{selection:s}=l,{$anchor:u,empty:c}=s,d=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent&&u.parent.childCount===0&&!this.getTextContent(u.parent);return!(!i.hasFocus()||!c||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:i})=>{var l;if(this.preventHide){this.preventHide=!1;return}i?.relatedTarget&&!((l=this.element.parentNode)===null||l===void 0)&&l.contains(i.relatedTarget)||i?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=i=>{this.blurHandler({event:i})},this.editor=t,this.element=n,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=Iy(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r,a,o;const{state:i}=t,{doc:l,selection:s}=i,{from:u,to:c}=s;if(!(n&&n.doc.eq(l)&&n.selection.eq(s))){if(this.createTooltip(),!(!((r=this.shouldShow)===null||r===void 0)&&r.call(this,{editor:this.editor,view:t,state:i,oldState:n}))){this.hide();return}(a=this.tippy)===null||a===void 0||a.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>vee(t,u,c))}),this.show()}}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const ete=e=>new Ar({key:typeof e.pluginKey=="string"?new ya(e.pluginKey):e.pluginKey,view:t=>new r8e({view:t,...e})});or.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[ete({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const a8e=f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:a,pluginKey:o,shouldShow:i,tippyOptions:l}=e;a.registerPlugin($ee({updateDelay:r,editor:a,element:n.value,pluginKey:o,shouldShow:i,tippyOptions:l}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}});function tte(e){return f.customRef((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class o8e extends _4e{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=tte(this.view.state),this.reactiveExtensionStorage=tte(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const r=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=r),r}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const i8e=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=f.ref(),n=f.getCurrentInstance();return f.watchEffect(()=>{const r=e.editor;r&&r.options.element&&t.value&&f.nextTick(()=>{if(!t.value||!r.options.element.firstChild)return;const a=f.unref(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:a}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return f.h("div",{ref:e=>{this.rootEl=e}})}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:a,tippyOptions:o,shouldShow:i}=e;a.registerPlugin(ete({pluginKey:r,editor:a,element:n.value,tippyOptions:o,shouldShow:i}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}}),f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const nte=f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});class l8e{constructor(t,{props:n={},editor:r}){this.editor=r,this.component=f.markRaw(t),this.el=document.createElement("div"),this.props=f.reactive(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,n,r,a;return!((n=(t=this.renderedComponent.vNode)===null||t===void 0?void 0:t.component)===null||n===void 0)&&n.exposed?this.renderedComponent.vNode.component.exposed:(a=(r=this.renderedComponent.vNode)===null||r===void 0?void 0:r.component)===null||a===void 0?void 0:a.proxy}renderComponent(){let t=f.h(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&f.render(t,this.el),{vNode:t,destroy:()=>{this.el&&f.render(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){Object.entries(t).forEach(([n,r])=>{this.props[n]=r}),this.renderComponent()}destroy(){this.renderedComponent.destroy()}}const rte={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}};class s8e extends T4e{mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(a={})=>this.updateAttributes(a),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=f.ref(this.getDecorationClasses());const r=f.defineComponent({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:a=>{var o,i;return f.provide("onDragStart",n),f.provide("decorationClasses",this.decorationClasses),(i=(o=this.component).setup)===null||i===void 0?void 0:i.call(o,a,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new l8e(r,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(t<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,n,r){const a=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,i=this.decorations,l=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:o,oldDecorations:i,newNode:t,newDecorations:n,oldInnerDecorations:l,innerDecorations:r,updateProps:()=>a({node:t,decorations:n,innerDecorations:r})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=t,this.decorations=n,this.innerDecorations=r,a({node:t,decorations:n,innerDecorations:r})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function ate(e,t){return n=>{if(!n.editor.contentComponent)return{};const r=typeof e=="function"&&"__vccOpts"in e?e.__vccOpts:e;return new s8e(r,n,t)}}const u8e=f.defineComponent({__name:"BubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=$c(),r=f.reactive({maxWidth:"auto",zIndex:20,appendTo:"parent"}),a=f.computed(()=>{const s=t.editor.state.selection,u=l(),c=s.node?.type.name==="image",d=s.node?.type.name==="video",h=s instanceof Ot;if(u)return"link";if(c)return"image";if(d)return"video";if(h)return"text"}),o=f.computed(()=>{const{extensions:s=[]}=t.editor.extensionManager,u=s.find(d=>d.name==="base-kit");if(!u)return{};const{button:c}=u.options?.bubble??{};return c?c({editor:t.editor,extension:u,t:f.unref(n)}):{}}),i=f.computed(()=>a.value?f.unref(o)?.[a.value]??[]:[]);function l(){const{schema:s}=t.editor,u=s.marks.link;return u?t.editor.isActive(u.name):!1}return(s,u)=>{const c=Ia,d=Hc,h=Au,v=gl;return f.withDirectives((f.openBlock(),f.createBlock(f.unref(a8e),{editor:s.editor,"tippy-options":r},{default:f.withCtx(()=>[f.createVNode(v,{class:"vuetify-pro-tiptap-editor__menu-bubble"},{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex pa-0"},{default:f.withCtx(()=>[f.createVNode(d,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,(p,m)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:m},[p.type==="divider"?(f.openBlock(),f.createBlock(c,{key:0,vertical:"",class:"mx-1 me-2"})):(f.openBlock(),f.createBlock(f.resolveDynamicComponent(p.component),f.mergeProps({key:1,ref_for:!0},p.componentProps,{editor:s.editor,disabled:s.disabled||p.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(p.componentSlots,(g,y,b)=>({name:`${y}`,fn:f.withCtx(w=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(g),f.mergeProps({ref_for:!0},w?.props),null,16))])}))]),1040,["editor","disabled"]))],64))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["editor","tippy-options"])),[[f.vShow,i.value.length>0]])}}}),c8e=f.defineComponent({__name:"TiptapToolbar",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=$c(),r=f.computed(()=>{const a=[...t.editor.extensionManager.extensions].sort((i,l)=>{const s=i.options.sort??-1,u=l.options.sort??-1;return s-u});let o=[];for(const i of a){const{button:l,divider:s=!1,spacer:u=!1}=i.options;if(!l||!SFe(l))continue;const c=l({editor:t.editor,extension:i,t:f.unref(n)});if(Array.isArray(c)){const d=c.map((h,v)=>({button:h,divider:v===c.length-1?s:!1,spacer:v===0?u:!1}));o=[...o,...d];continue}o.push({button:c,divider:s,spacer:u})}return o});return(a,o)=>{const i=Ws,l=Ia,s=Hc;return f.openBlock(),f.createBlock(s,f.mergeProps(a.$attrs,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"}),{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.value,(u,c)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:c},[u.spacer?(f.openBlock(),f.createBlock(i,{key:0})):f.createCommentVNode("",!0),(f.openBlock(),f.createBlock(f.resolveDynamicComponent(u.button.component),f.mergeProps({ref_for:!0},u.button.componentProps,{editor:a.editor,disabled:a.disabled||u.button.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(u.button.componentSlots,(d,h,v)=>({name:`${h}`,fn:f.withCtx(p=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(d),f.mergeProps({ref_for:!0},p?.props),null,16))])}))]),1040,["editor","disabled"])),u.divider?(f.openBlock(),f.createBlock(l,{key:1,vertical:"",class:"mx-1 me-2"})):f.createCommentVNode("",!0)],64))),128))]),_:1},16)}}}),d8e={class:"text-overline me-4"},f8e={class:"text-overline"},ote=f.defineComponent({__name:"VuetifyTiptap",props:{modelValue:{default:""},markdownTheme:{type:[String,Boolean],default:void 0},output:{default:"html"},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:void 0},hideToolbar:{type:Boolean,default:!1},disableToolbar:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},removeDefaultWrapper:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:void 0},maxHeight:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},errorMessages:{default:()=>[]}},emits:["enter","change","update:modelValue","update:markdownTheme"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=f.useAttrs(),i=wv(),{state:l,isFullscreen:s}=NFe(),{markdownThemeStyle:u}=m7(f.computed(()=>r.markdownTheme),w=>{a("update:markdownTheme",w)}),c=f.computed(()=>{const w=gFe(r.extensions,l.extensions,"name");return[...l.extensions.map((S,_)=>{const x=r.extensions.find(T=>T.name===S.name);return x?S.configure(x.options):S}),...w].map((S,_)=>S.configure({sort:_}))}),d=new o8e({content:r.modelValue,editorProps:{handleKeyDown:Bw(function(w,S){return S.key==="Enter"&&o.enter&&!S.shiftKey?(a("enter"),!0):!1},XL)},onUpdate:Bw(({editor:w})=>{const S=g(w,r.output);a("update:modelValue",S),a("change",{editor:w,output:S})},XL),extensions:f.unref(c),autofocus:!1,editable:!r.disabled,injectCSS:!0}),{t:h}=$c(),v=f.computed(()=>sy(r.dark)?r.dark:sy(i.current.value.dark)?i.current.value.dark:!1),p=f.computed(()=>[{__dark:f.unref(v),...f.unref(u)},r.editorClass]),m=f.computed(()=>{const w=Hw(r.maxWidth),S={maxWidth:w,width:w?"100%":void 0,margin:w?"0 auto":void 0,backgroundColor:f.unref(v)?"#1E1E1E":"#FFFFFF"};if(f.unref(s))return{height:"100%",overflowY:"auto",...S};const _=Hw(r.minHeight),x=Hw(r.maxHeight);return{minHeight:_,maxHeight:x,overflowY:"auto",...S}});function g(w,S){return r.removeDefaultWrapper?S==="html"?w.isEmpty?"":w.getHTML():S==="json"?w.isEmpty?{}:w.getJSON():S==="text"?w.isEmpty?"":w.getText():"":S==="html"?w.getHTML():S==="json"?w.getJSON():S==="text"?w.getText():""}const y=Bw(w=>{if(!d)return;const S=g(d,r.output);if(yFe(S,w))return;const{from:_,to:x}=d.state.selection;d.commands.setContent(w,!1),d.commands.setTextSelection({from:_,to:x})},A2e),b=w=>d?.setEditable(!w);return f.watch(()=>r.modelValue,y),f.watch(()=>r.disabled,b),f.onUnmounted(()=>d?.destroy()),t({editor:d}),(w,S)=>{const _=BN,x=Ia,T=Ws,A=Hc,E=gl,I=to,M=xL;return f.unref(d)?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["vuetify-pro-tiptap",{dense:w.dense}])},[f.createVNode(M,{theme:v.value?"dark":"light"},{default:f.withCtx(()=>[w.hideBubble?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(u8e,{key:0,editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.createVNode(I,{class:"pt-0","hide-details":"auto","error-messages":w.errorMessages},{default:f.withCtx(()=>[f.createVNode(E,f.mergeProps({flat:w.flat,outlined:w.outlined,color:v.value?"grey-darken-4":"grey-lighten-4"},w.$attrs,{style:{borderColor:w.$attrs["error-messages"]?"#ff5252":void 0,width:"100%"},class:["vuetify-pro-tiptap-editor",{"vuetify-pro-tiptap-editor--fullscreen":f.unref(s)}]}),{default:f.withCtx(()=>[w.label&&!f.unref(s)?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(_,{class:f.normalizeClass(v.value?"bg-grey-darken-3":"bg-grey-lighten-3")},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(w.label),1)]),_:1},8,["class"]),f.createVNode(x)],64)):f.createCommentVNode("",!0),w.hideToolbar?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(c8e,{key:1,class:"vuetify-pro-tiptap-editor__toolbar",editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.renderSlot(w.$slots,"editor",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d),props:{class:"vuetify-pro-tiptap-editor__content","data-testid":"value"}})),()=>[f.createVNode(f.unref(i8e),{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",p.value]),style:f.normalizeStyle(m.value),editor:f.unref(d),"data-testid":"value"},null,8,["class","style","editor"])]),f.renderSlot(w.$slots,"bottom",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d)})),()=>[f.createVNode(A,{class:"px-4",density:"compact",flat:""},{default:f.withCtx(()=>[f.createVNode(T),f.unref(xFe)(f.unref(d),"characterCount")?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("span",d8e,f.toDisplayString(f.unref(d).storage.characterCount.words())+" "+f.toDisplayString(f.unref(h)("editor.words")),1),f.createElementVNode("span",f8e,f.toDisplayString(f.unref(d).storage.characterCount.characters())+" "+f.toDisplayString(f.unref(h)("editor.characters")),1)],64)):f.createCommentVNode("",!0)]),_:1})])]),_:3},16,["flat","outlined","color","style","class"])]),_:3},8,["error-messages"])]),_:3},8,["theme"])],2)):f.createCommentVNode("",!0)}}}),h8e={a:["href","title","target"],span:["style"],blockquote:["class","style"],p:["class","style"],hr:[],pre:[],code:[],strong:[],img:["src","alt","title","width","height","style","data-display"],label:["contenteditable"],input:["type","value","checked"],div:["class","style"],iframe:["src","allowfullscreen","frameborder","width","height"],em:[],s:[],mark:[],h1:["class","style"],h2:["class","style"],h3:["class","style"],h4:["class","style"],h5:["class","style"],h6:["class","style"],ul:["class","data-type"],li:["class","data-checked","itemtypename"],ol:[],u:[],table:["class","style"],colgroup:[],col:["style"],tbody:["class","style"],tr:["class","style"],th:["class","style","colspan","rowspan"],td:["class","style","colspan","rowspan"],br:[]},v8e=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),p8e=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var BO;const m8e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),g8e=(BO=String.fromCodePoint)!==null&&BO!==void 0?BO:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function y8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=m8e.get(e))!==null&&t!==void 0?t:e}var io;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(io||(io={}));const b8e=32;var Gf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Gf||(Gf={}));function FO(e){return e>=io.ZERO&&e<=io.NINE}function w8e(e){return e>=io.UPPER_A&&e<=io.UPPER_F||e>=io.LOWER_A&&e<=io.LOWER_F}function S8e(e){return e>=io.UPPER_A&&e<=io.UPPER_Z||e>=io.LOWER_A&&e<=io.LOWER_Z||FO(e)}function x8e(e){return e===io.EQUALS||S8e(e)}var lo;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(lo||(lo={}));var Uf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Uf||(Uf={}));class C8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=lo.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Uf.Strict}startEntity(t){this.decodeMode=t,this.state=lo.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case lo.EntityStart:return t.charCodeAt(n)===io.NUM?(this.state=lo.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=lo.NamedEntity,this.stateNamedEntity(t,n));case lo.NumericStart:return this.stateNumericStart(t,n);case lo.NumericDecimal:return this.stateNumericDecimal(t,n);case lo.NumericHex:return this.stateNumericHex(t,n);case lo.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|b8e)===io.LOWER_X?(this.state=lo.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=lo.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(i===io.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Uf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Gf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Gf.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case lo.NamedEntity:return this.result!==0&&(this.decodeMode!==Uf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lo.NumericDecimal:return this.emitNumericEntity(0,2);case lo.NumericHex:return this.emitNumericEntity(0,3);case lo.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lo.EntityStart:return 0}}}function ite(e){let t="";const n=new C8e(e,r=>t+=g8e(r));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){t+=r.slice(o,i),n.startEntity(a);const s=n.write(r,i+1);if(s<0){o=i+n.end();break}o=i+s,i=s===0?o+1:o}const l=t+r.slice(o);return t="",l}}function _8e(e,t,n,r){const a=(t&Gf.BRANCH_LENGTH)>>7,o=t&Gf.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const s=r-o;return s<0||s>=a?-1:e[n+s]-1}let i=n,l=i+a-1;for(;i<=l;){const s=i+l>>>1,u=e[s];if(ur)l=s-1;else return e[s+a]}return-1}const T8e=ite(v8e);ite(p8e);function k8e(e,t=Uf.Legacy){return T8e(e,t)}var Xr;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Xr||(Xr={}));var es;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(es||(es={}));const lte=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,A8e=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,E8e=new Map([[126,es.Element],[94,es.Start],[36,es.End],[42,es.Any],[33,es.Not],[124,es.Hyphen]]),I8e=new Set(["has","not","matches","is","where","host","host-context"]);function M8e(e){switch(e.type){case Xr.Adjacent:case Xr.Child:case Xr.Descendant:case Xr.Parent:case Xr.Sibling:case Xr.ColumnCombinator:return!0;default:return!1}}const D8e=new Set(["contains","icontains"]);function V8e(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function pS(e){return e.replace(A8e,V8e)}function HO(e){return e===39||e===34}function ste(e){return e===32||e===9||e===10||e===12||e===13}function P8e(e){const t=[],n=ute(t,`${e}`,0);if(n0&&n0&&M8e(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(h){if(r.length>0&&r[r.length-1].type===Xr.Descendant){r[r.length-1].type=h;return}s(),r.push({type:h})}function c(h,v){r.push({type:Xr.Attribute,name:h,action:v,value:a(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===Xr.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(o(0),t.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var cte=e=>k8e(e);function N8e(e,t,n,r){if(typeof t=="function")return t({props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let a=!0,o;if(t?t.toLowerCase()==="fragment"?(o=e.document.createDocumentFragment(),a=!1):o=e.document.createElement(t):o=e.document.createElement("div"),n&&a){const i=o;for(let[l,s]of Object.entries(n)){l=l.toString();const u=l.toLowerCase();u==="classname"?i.className=s:u==="on"?Object.entries(s).forEach(([c,d])=>{i.setAttribute(`on${c}`,String(d))}):s!==!1&&s!=null&&(s===!0?i.setAttribute(l,l):i.setAttribute(l,s.toString()))}}if(r)for(const i of r){const l=Array.isArray(i)?[...i]:[i];for(const s of l)s&&s!==!1&&s!=null&&(typeof s!="object"?o.appendChild(e.document.createTextNode(s.toString())):o.appendChild(s))}return o}}function dte(e,t,...n){return typeof e=="object"&&(e="fragment",n=e.children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function L8e(e){return e.h=function(t,n,...r){const{tag:a,attrs:o,children:i}=dte(t,n,r);return N8e(e,a,o,i)},e.h}var fte={};function O8e(e){let t=fte[e];return t==null&&(t=P8e(e),fte[e]=t),t}function R8e(e,t,{debug:n=!1}={}){for(const r of O8e(e)){const a=(o,i)=>{let l=!1;for(const s of i){const{type:u,name:c,action:d,value:h,_ignoreCase:v=!0,data:p}=s;if(u==="attribute")d==="equals"?l=o.getAttribute(c)===h:d==="start"?l=!!o.getAttribute(c)?.startsWith(h):d==="end"?l=!!o.getAttribute(c)?.endsWith(h):d==="element"?c==="class"?l=o.classList.contains(h):l=!!o.getAttribute(c)?.includes(h):d==="exists"?l=o.hasAttribute(c):d==="any"?l=!!o.getAttribute(c)?.includes(h):console.warn("Unknown CSS selector action",d);else if(u==="tag")l=o.tagName===c.toUpperCase();else if(u==="universal")l=!0;else if(u==="pseudo"){if(c==="not"){let m=!0;p.forEach(g=>{a(o,g)||(m=!1)}),l=!m}}else console.warn("Unknown CSS selector type",u,e,i);if(!l)break}return l};if(a(t,r))return!0}return!1}var B8e=Symbol.for("nodejs.util.inspect.custom"),hte={fontWeight:"bold"},vte={fontStyle:"italic"},pte={backgroundColor:"rgb(255, 250, 165)"},mte={textDecorations:"underline"},WO={textDecorations:"line-through"},F8e={b:hte,strong:hte,em:vte,i:vte,mark:pte,u:mte,a:mte,s:WO,del:WO,ins:pte,strike:WO};function gte(e){return e.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(t,n)=>n.toUpperCase())}var sd=class oP{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(t=!1){const n=new this.constructor;return t&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(t=>t._parentNode=this)}insertBefore(t,n){if(t!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,t),this._fixChildNodesParent()}}appendChild(t){if(t!=null){if(t===this){console.warn("Cannot appendChild to self");return}if(t instanceof UO&&console.warn("No defined how to append a document to a node!",t),t instanceof GO)for(const n of[...t._childNodes])this.appendChild(n);else if(Array.isArray(t))for(const n of[...t])this.appendChild(n);else if(t instanceof oP)t.remove(),this._childNodes.push(t);else try{const n=typeof t=="string"?t:JSON.stringify(t,null,2);this._childNodes.push(new My(n))}catch(n){console.error(`The data ${t} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(t){const n=this._childNodes.indexOf(t);n>=0&&(t._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...t){this._childNodes=t.map(n=>typeof n=="string"?new My(n):n.remove()),this._fixChildNodesParent()}replaceWith(...t){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(t=t.map(a=>typeof a=="string"?new My(a):a.remove()),n._childNodes.splice(r,1,...t),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const t=this._indexInParent();return t!=null&&this.parentNode.childNodes[t+1]||null}get previousSibling(){const t=this._indexInParent();return t>0&&this.parentNode.childNodes[t-1]||null}flatten(){const t=[];this instanceof Ks&&t.push(this);for(const n of this._childNodes)t.push(...n.flatten());return t}flattenNodes(){const t=[];t.push(this);for(const n of this._childNodes)t.push(...n.flattenNodes());return t}render(){return""}get textContent(){return this._childNodes.map(t=>t.textContent).join("")}set textContent(t){this._childNodes=[],t&&this.appendChild(new My(t.toString()))}contains(t){return t===this?!0:this._childNodes.some(n=>n.contains(t))}get ownerDocument(){return this.nodeType===oP.DOCUMENT_NODE||this.nodeType===oP.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[B8e](){return`${this.constructor.name} "${this.render()}"`}};sd.ELEMENT_NODE=1,sd.TEXT_NODE=3,sd.CDATA_SECTION_NODE=4,sd.PROCESSING_INSTRUCTION_NODE=7,sd.COMMENT_NODE=8,sd.DOCUMENT_NODE=9,sd.DOCUMENT_TYPE_NODE=10,sd.DOCUMENT_FRAGMENT_NODE=11;var Yf=sd,My=class extends Yf{get nodeType(){return Yf.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(e=""){super(),this._text=e}render(){const e=this.parentNode?.tagName;return e==="SCRIPT"||e==="STYLE"?this._text:zO(this._text)}cloneNode(e=!1){const t=super.cloneNode(e);return t._text=this._text,t}},yte=class extends Yf{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return R8e(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){return this.matches(e)?this:this.parentNode==null?null:this.parentNode?.parent(e)}handle(e,t){let n=0;for(const r of this.querySelectorAll(e))t(r,n++)}},Ks=class extends yte{get nodeType(){return Yf.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{}}cloneNode(e=!1){const t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return Object.entries(this._attributes).map(([e,t])=>({name:e,value:t}))}get attributesObject(){return{...this._attributes}}_findAttributeName(e){const t=e.toLowerCase();return Object.keys(this._attributes).find(n=>t===n.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=void 0,this._dataset=void 0}getAttribute(e){const t=this._findAttributeName(e),n=t?this._attributes[t]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]!=null:!1}get style(){if(this._styles==null){const e={};let t=0;const n=this.getAttribute("style");if(n){let r;const a=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=a.exec(n);){++t;const o=r[1],i=r[2].trim();e[o]=i,e[gte(o)]=i}}this._styles={get length(){return t},getPropertyValue(r){return e[r]},...F8e[this.tagName.toLowerCase()],...e}}return this._styles}get dataset(){if(this._dataset==null){const e={};for(const[t,n]of Object.entries(this._attributes))t.startsWith("data-")&&(e[t.slice(5)]=n,e[gte(t.slice(5))]=n);this._dataset=e}return this._dataset}get tagName(){return this._nodeName}setTagName(e){this._nodeName=e.toUpperCase()}get id(){return this._attributes.id||null}set id(e){e==null?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){e==null?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();const t=this.flatten();return e!=="*"?t.filter(n=>n.tagName===e):t}setInnerHTML(e){}get innerHTML(){return this._childNodes.map(e=>e.render(wk)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(Sk)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(t=>!!t).join(" "):typeof e=="object"&&(e=Object.entries(e).filter(([t,n])=>!!n).map(([t,n])=>t).join(" ")),this._attributes.class=e}get classList(){const e=String(this.className??"").trim().split(/\s+/g)||[];return{contains(t){return e.includes(t)},add:t=>{e.includes(t)||(e.push(t),this.className=e)},remove:t=>{const n=e.indexOf(t);n>=0&&(e.splice(n,1),this.className=e)}}}render(e=Sk){return e(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(t=>t.render(e)).join(""))}},bte=class F_e extends Yf{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return F_e.DOCUMENT_TYPE_NODE}render(){return""}},GO=class H_e extends yte{get nodeType(){return Yf.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(t=Sk){return this._childNodes.map(n=>n.render(t)||[]).join("")}get innerHTML(){return this._childNodes.map(t=>t.render(wk)).join("")}createElement(t,n={}){return new Ks(t,n)}createDocumentFragment(){return new H_e}createTextNode(t){return new My(t)}},UO=class extends GO{get nodeType(){return Yf.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=Sk){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},wte=class extends UO{constructor(e=!1){if(super(),this.docType=new bte,!e){const t=new Ks("html"),n=new Ks("body"),r=new Ks("head"),a=new Ks("title");t.appendChild(r),r.appendChild(a),t.appendChild(n),this.appendChild(t)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new Ks("html"),this.appendChild(t)),e=new Ks("body"),t.appendChild(t)}return e}get title(){return this.querySelector("title")?.textContent||""}set title(e){const t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new Ks("html"),this.appendChild(t)),e=new Ks("head"),t.insertBefore(t)}return e}};function H8e(){return new UO}function z8e(){return new wte}var Ste=H8e();L8e({document:Ste});var W8e={},G8e=W8e.hasOwnProperty;function xte(e,t){return G8e.call(e,t)}var Cte=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function _te(e,t,n={},r){const a=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),o=[];if(t=t.replace(/__/g,":"),t!=="noop"&&t!==""){t!=="cdata"?o.push(`<${t}`):o.push("l[s]!=null).map(s=>{let u=l[s];return u=typeof u=="number"?`${u}px`:u,`${s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${u}`}).join(";")}"`):l!==!1&&l!=null&&o.push(` ${i}="${zO(l.toString())}"`)}if(t!=="cdata"){if(e&&!a)return o.push(" />"),o.join("");o.push(">")}if(!e&&Cte.includes(t))return o.join("")}if(a){if(typeof r=="string")o.push(r);else if(r&&r.length>0){for(let i of r)if(i!=null&&i!==!1){Array.isArray(i)||(i=[i]);for(const l of i)l.startsWith("<")&&l.endsWith(">")||t==="script"||t==="style"?o.push(l):o.push(zO(l.toString()))}}}return n.html&&o.push(n.html),t!=="noop"&&t!==""&&(t!=="cdata"?o.push(``):o.push("]]>")),o.join("")}function wk(e,t,...n){const{tag:r,attrs:a,children:o}=dte(e,t,n);return _te(!1,r,a,o)}var Sk=_te.bind(null,!1);wk.firstLine="",wk.html=!0;var U8e=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,Y8e=/^<\/([^>\s]+)[^>]*>/m,j8e=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,K8e=/\s*\/\s*>\s*$/m,X8e=class{constructor(e={}){this.attrRe=U8e,this.endTagRe=Y8e,this.startTagRe=j8e,this.defaults={ignoreWhitespaceText:!1},e.scanner&&(this.scanner=e.scanner),this.options=Object.assign({},this.defaults,e)}parse(e){let t=!1,n,r,a;for(;e.length;){if(e.substring(0,4)===""),n!==-1?(this.scanner.comment(e.substring(4,n)),e=e.substring(n+3),t=!1):t=!0;else if(e.substring(0,2)==="{const[a,o,i,l,s,u,c,d]=r;n[o]=d??u??l??!0}),n}};function Z8e(e){if(typeof e!="string")throw console.error("parseHTML requires string, found",e),new Error("parseHTML requires string");const t=e.indexOf("/g,v=/"/g,p=/"/g,m=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,S=/u\s*r\s*l\s*\(.*/gi;function _(L){return L.replace(v,""")}function x(L){return L.replace(p,'"')}function T(L){return L.replace(m,function(R,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function A(L){return L.replace(g,":").replace(y," ")}function E(L){for(var R="",B=0,W=L.length;B",W);if(H===-1)break;B=H+3}return R}function O(L){var R=L.split("");return R=R.filter(function(B){var W=B.charCodeAt(0);return W===127?!1:W<=31?W===10||W===13:!0}),R.join("")}return Pr.whiteList=r(),Pr.getDefaultWhiteList=r,Pr.onTag=o,Pr.onIgnoreTag=i,Pr.onTagAttr=l,Pr.onIgnoreTagAttr=s,Pr.safeAttrValue=c,Pr.escapeHtml=u,Pr.escapeQuote=_,Pr.unescapeQuote=x,Pr.escapeHtmlEntities=T,Pr.escapeDangerHtml5Entities=A,Pr.clearNonPrintableCharacter=E,Pr.friendlyAttrValue=I,Pr.escapeAttrValue=M,Pr.onIgnoreTagStripAll=N,Pr.StripTagBody=D,Pr.stripCommentTag=P,Pr.stripBlankChar=O,Pr.attributeWrapSign='"',Pr.cssFilter=a,Pr.getDefaultCSSWhiteList=t,Pr}var xk={},Rte;function Bte(){if(Rte)return xk;Rte=1;var e=JO();function t(d){var h=e.spaceIndex(d),v;return h===-1?v=d.slice(1,-1):v=d.slice(1,h+1),v=e.trim(v).toLowerCase(),v.slice(0,1)==="/"&&(v=v.slice(1)),v.slice(-1)==="/"&&(v=v.slice(0,-1)),v}function n(d){return d.slice(0,2)===""||b===w-1){p+=v(d.slice(m,g)),_=d.slice(g,b+1),S=t(_),p+=h(g,p.length,S,_,n(_)),m=b+1,g=!1;continue}if(x==='"'||x==="'")for(var T=1,A=d.charAt(b-T);A.trim()===""||A==="=";){if(A==="="){y=x;continue e}A=d.charAt(b-++T)}}else if(x===y){y=!1;continue}}return m0;h--){var v=d[h];if(v!==" ")return v==="="?h:-1}}function u(d){return d[0]==='"'&&d[d.length-1]==='"'||d[0]==="'"&&d[d.length-1]==="'"}function c(d){return u(d)?d.substr(1,d.length-2):d}return xk.parseTag=r,xk.parseAttr=o,xk}var QO,Fte;function tWe(){if(Fte)return QO;Fte=1;var e=ZO().FilterCSS,t=Ote(),n=Bte(),r=n.parseTag,a=n.parseAttr,o=JO();function i(d){return d==null}function l(d){var h=o.spaceIndex(d);if(h===-1)return{html:"",closing:d[d.length-2]==="/"};d=o.trim(d.slice(h+1,-1));var v=d[d.length-1]==="/";return v&&(d=o.trim(d.slice(0,-1))),{html:d,closing:v}}function s(d){var h={};for(var v in d)h[v]=d[v];return h}function u(d){var h={};for(var v in d)Array.isArray(d[v])?h[v.toLowerCase()]=d[v].map(function(p){return p.toLowerCase()}):h[v.toLowerCase()]=d[v];return h}function c(d){d=s(d||{}),d.stripIgnoreTag&&(d.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),d.onIgnoreTag=t.onIgnoreTagStripAll),d.whiteList||d.allowList?d.whiteList=u(d.whiteList||d.allowList):d.whiteList=t.whiteList,this.attributeWrapSign=d.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,d.onTag=d.onTag||t.onTag,d.onTagAttr=d.onTagAttr||t.onTagAttr,d.onIgnoreTag=d.onIgnoreTag||t.onIgnoreTag,d.onIgnoreTagAttr=d.onIgnoreTagAttr||t.onIgnoreTagAttr,d.safeAttrValue=d.safeAttrValue||t.safeAttrValue,d.escapeHtml=d.escapeHtml||t.escapeHtml,this.options=d,d.css===!1?this.cssFilter=!1:(d.css=d.css||{},this.cssFilter=new e(d.css))}return c.prototype.process=function(d){if(d=d||"",d=d.toString(),!d)return"";var h=this,v=h.options,p=v.whiteList,m=v.onTag,g=v.onIgnoreTag,y=v.onTagAttr,b=v.onIgnoreTagAttr,w=v.safeAttrValue,S=v.escapeHtml,_=h.attributeWrapSign,x=h.cssFilter;v.stripBlankChar&&(d=t.stripBlankChar(d)),v.allowCommentTag||(d=t.stripCommentTag(d));var T=!1;v.stripIgnoreTagBody&&(T=t.StripTagBody(v.stripIgnoreTagBody,g),g=T.onIgnoreTag);var A=r(d,function(E,I,M,N,D){var P={sourcePosition:E,position:I,isClosing:D,isWhite:Object.prototype.hasOwnProperty.call(p,M)},O=m(M,N,P);if(!i(O))return O;if(P.isWhite){if(P.isClosing)return"";var L=l(N),R=p[M],B=a(L.html,function(W,H){var z=o.indexOf(R,W)!==-1,j=y(M,W,H,z);return i(j)?z?(H=w(M,W,H,x),H?W+"="+_+H+_:W):(j=b(M,W,H,z),i(j)?void 0:j):j});return N="<"+M,B&&(N+=" "+B),L.closing&&(N+=" /"),N+=">",N}else return O=g(M,N,P),i(O)?S(N):O},S);return T&&(A=T.remove(A)),A},QO=c,QO}var Hte;function nWe(){return Hte||(Hte=1,function(e,t){var n=Ote(),r=Bte(),a=tWe();function o(l,s){var u=new a(s);return u.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=a,function(){for(var l in n)t[l]=n[l];for(var s in r)t[s]=r[s]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(YO,YO.exports)),YO.exports}var rWe=nWe();const aWe=q8e(rWe),oWe=["innerHTML"],iWe=f.defineComponent({__name:"VuetifyViewer",props:{value:{default:""},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},markdownTheme:{type:[String,Boolean],default:void 0},xss:{type:[Boolean,Array],default:!0},xssOptions:{default:()=>h8e},extensions:{default:()=>[]}},setup(e){const t=e,{state:n}=wT(),r=wv(),{markdownThemeStyle:a}=m7(f.computed(()=>t.markdownTheme)),o=f.computed(()=>[...n.extensions,...t.extensions]),i=f.computed(()=>sy(t.dark)?t.dark:sy(r.current.value.dark)?r.current.value.dark:!1),l=f.computed(()=>({__dark:f.unref(i),dense:t.dense,view:!0,...f.unref(a)})),s=f.computed(()=>Fw(t.value)?t.value:Q8e(t.value,f.unref(o))),u=f.computed(()=>{if(t.xss===!1)return f.unref(s);const c=f.unref(s).replace("https://youtu.be/","https://www.youtube.com/watch?v=").replace("watch?v=","embed/").replace("https://vimeo.com/","https://player.vimeo.com/video/"),d=t.xssOptions;return aWe(c,{whiteList:d,css:!1})});return(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",l.value]),style:{width:"100%"}},[f.renderSlot(c.$slots,"before"),f.createElementVNode("div",{class:"content",innerHTML:u.value},null,8,oWe),f.renderSlot(c.$slots,"after")],2))}}),lWe=or.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Ar({key:new ya("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const a=this.options.limit;if(a==null||a===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>a){const i=o-a,l=0,s=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(l,s);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||a>r&&o>r&&o<=a)return!0;if(a>r&&o>r&&o>a||!t.getMeta("paste"))return!1;const i=t.selection.$head.pos,l=o-r,s=i-l,u=i;return t.deleteRange(s,u),!(this.storage.characters({node:t.doc})>r)}})]}}),sWe=Kr.create({name:"doc",topNode:!0,content:"block+"});function uWe(e={}){return new Ar({view(t){return new cWe(t,e)}})}class cWe{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let o=i=>{this[a](i)};return t.dom.addEventListener(a,o),{name:a,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,a=this.editorView.dom,o=a.getBoundingClientRect(),i=o.width/a.offsetWidth,l=o.height/a.offsetHeight;if(n){let d=t.nodeBefore,h=t.nodeAfter;if(d||h){let v=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(v){let p=v.getBoundingClientRect(),m=d?p.bottom:p.top;d&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*l;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*i;r={left:d.left-h,right:d.left+h,top:d.top,bottom:d.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!s||s==document.body&&getComputedStyle(s).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=s.getBoundingClientRect(),h=d.width/s.offsetWidth,v=d.height/s.offsetHeight;u=d.left-s.scrollLeft*h,c=d.top-s.scrollTop*v}this.element.style.left=(r.left-u)/i+"px",this.element.style.top=(r.top-c)/l+"px",this.element.style.width=(r.right-r.left)/i+"px",this.element.style.height=(r.bottom-r.top)/l+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,o=typeof a=="function"?a(this.editorView,n,t):a;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=sq(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const dWe=or.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[uWe(this.options)]}}),fWe=or.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Ar({key:new ya("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=t,o=[];if(!n||!r)return Er.create(e,[]);let i=0;this.options.mode==="deepest"&&e.descendants((s,u)=>{if(!s.isText){if(!(a>=u&&a<=u+s.nodeSize-1))return!1;i+=1}});let l=0;return e.descendants((s,u)=>{if(s.isText||!(a>=u&&a<=u+s.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&i-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";o.push(_o.node(u,u+s.nodeSize,{class:this.options.className}))}),Er.create(e,o)}}})]}});class na extends Xt{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return na.valid(r)?new na(r):Xt.near(r)}content(){return st.empty}eq(t){return t instanceof na&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new na(t.resolve(n.pos))}getBookmark(){return new qO(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!hWe(t)||!vWe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(t.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&na.valid(t))return t;let a=t.pos,o=null;for(let i=t.depth;;i--){let l=t.node(i);if(n>0?t.indexAfter(i)0){o=l.child(n>0?t.indexAfter(i):t.index(i)-1);break}else if(i==0)return null;a+=n;let s=t.doc.resolve(a);if(na.valid(s))return s}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Nt.isSelectable(o)){t=t.doc.resolve(a+o.nodeSize*n),r=!1;continue e}break}o=i,a+=n;let l=t.doc.resolve(a);if(na.valid(l))return l}return null}}}na.prototype.visible=!1,na.findFrom=na.findGapCursorFrom,Xt.jsonID("gapcursor",na);class qO{constructor(t){this.pos=t}map(t){return new qO(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return na.valid(n)?new na(n):Xt.near(n)}}function hWe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function vWe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function pWe(){return new Ar({props:{decorations:bWe,createSelectionBetween(e,t,n){return t.pos==n.pos&&na.valid(n)?new na(n):null},handleClick:gWe,handleKeyDown:mWe,handleDOMEvents:{beforeinput:yWe}}})}const mWe=aO({ArrowLeft:Ck("horiz",-1),ArrowRight:Ck("horiz",1),ArrowUp:Ck("vert",-1),ArrowDown:Ck("vert",1)});function Ck(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,a,o){let i=r.selection,l=t>0?i.$to:i.$from,s=i.empty;if(i instanceof Ot){if(!o.endOfTextblock(n)||l.depth==0)return!1;s=!1,l=r.doc.resolve(t>0?l.after():l.before())}let u=na.findGapCursorFrom(l,t,s);return u?(a&&a(r.tr.setSelection(new na(u))),!0):!1}}function gWe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!na.valid(r))return!1;let a=e.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&Nt.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new na(r))),!0)}function yWe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof na))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let a=He.empty;for(let i=r.length-1;i>=0;i--)a=He.from(r[i].createAndFill(null,a));let o=e.state.tr.replace(n.pos,n.pos,new st(a,0,0));return o.setSelection(Ot.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function bWe(e){if(!(e.selection instanceof na))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Er.create(e.doc,[_o.widget(e.selection.head,t,{key:"gapcursor"})])}const wWe=or.create({name:"gapCursor",addProseMirrorPlugins(){return[pWe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=gn(Et(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),SWe=Kr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",$n(this.options.HTMLAttributes,e)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:a,storedMarks:o}=n;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,s=o||a.$to.parentOffset&&a.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&s&&i){const d=s.filter(h=>l.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),xWe=Kr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",$n(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),CWe=or.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ar({key:new ya("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,a=[];if(!n)return null;const o=this.editor.isEmpty;return e.descendants((i,l)=>{const s=r>=l&&r<=l+i.nodeSize,u=!i.isLeaf&&fk(i);if((s||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];o&&c.push(this.options.emptyEditorClass);const d=_o.node(l,l+i.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:l,hasAnchor:s}):this.options.placeholder});a.push(d)}return this.options.includeChildren}),Er.create(e,a)}}})]}}),_We=Kr.create({name:"text",group:"inline"}),TWe=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var r,a;const o=n.getAttribute("style"),i=(a=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||a===void 0?void 0:a.getAttribute("style");n.setAttribute("style",`${i};${o}`)})},kWe=zi.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&TWe(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(a=>a.type===this.type).some(a=>Object.values(a.attrs).some(o=>!!o))||e.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var AWe="M19,12H17V15H14V17H19V12M7,9H10V7H5V12H7V9M21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19V5A2,2 0 0,0 21,3M21,19H3V5H21V19Z",EWe="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",IWe="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",MWe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",DWe="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M11 8H9V10C9 11.1 8.1 12 7 12C8.1 12 9 12.9 9 14V16H11V18H9C7.9 18 7 17.1 7 16V15C7 13.9 6.1 13 5 13V11C6.1 11 7 10.1 7 9V8C7 6.9 7.9 6 9 6H11V8M19 13C17.9 13 17 13.9 17 15V16C17 17.1 16.1 18 15 18H13V16H15V14C15 12.9 15.9 12 17 12C15.9 12 15 11.1 15 10V8H13V6H15C16.1 6 17 6.9 17 8V9C17 10.1 17.9 11 19 11V13Z",VWe="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",PWe="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",NWe="M13.09 20H6L12 14L13.88 15.88C14.5 14.9 15.36 14.1 16.4 13.6L18 12V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V8L14 2H6C4.89 2 4 2.89 4 4V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.21 20.72 13.09 20M13 3.5L18.5 9H13V3.5M8 9C9.11 9 10 9.9 10 11S9.11 13 8 13 6 12.11 6 11 6.9 9 8 9M20 15V18H23V20H20V23H18V20H15V18H18V15H20Z",zte="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z",LWe="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z",OWe="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z",RWe="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z",BWe="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",FWe="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z",HWe="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z",zWe="M3,7H9V13H3V7M3,3H21V5H3V3M21,7V9H11V7H21M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",WWe="M3,7H9V13H3V7M3,3H21V5H3V3M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",GWe="M15,7H21V13H15V7M3,3H21V5H3V3M13,7V9H3V7H13M9,11V13H3V11H9M3,15H17V17H3V15M3,19H21V21H3V19Z",UWe="M17,8H20V20H21V21H17V20H18V17H14L12.5,20H14V21H10V20H11L17,8M18,9L14.5,16H18V9M5,3H10C11.11,3 12,3.89 12,5V16H9V11H6V16H3V5C3,3.89 3.89,3 5,3M6,5V9H9V5H6Z",YWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z",jWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z",KWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z",XWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z",ZWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z",JWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z",QWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M13,8H15.31L15.63,5H17.63L17.31,8H19.31L19.63,5H21.63L21.31,8H23V10H21.1L20.9,12H23V14H20.69L20.37,17H18.37L18.69,14H16.69L16.37,17H14.37L14.69,14H13V12H14.9L15.1,10H13V8M17.1,10L16.9,12H18.9L19.1,10H17.1Z",qWe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z",$We="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z",eGe="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z",tGe="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",nGe="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",rGe="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z",aGe="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z",oGe="M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z",iGe="M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z",lGe="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z",sGe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z",uGe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z",cGe="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z",dGe="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",fGe="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",hGe="M18 15V18H15V20H18V23H20V20H23V18H20V15H18M13.3 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V13.3C20.4 13.1 19.7 13 19 13C17.9 13 16.8 13.3 15.9 13.9L14.5 12L11 16.5L8.5 13.5L5 18H13.1C13 18.3 13 18.7 13 19C13 19.7 13.1 20.4 13.3 21Z",vGe="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z",pGe="M2,5.27L3.28,4L20,20.72L18.73,22L13.9,17.17L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L12.5,15.76L10.88,14.15C10.87,14.39 10.77,14.64 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C8.12,13.77 7.63,12.37 7.72,11L2,5.27M12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.79,8.97L9.38,7.55L12.71,4.22M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.2,10.54 16.61,12.5 16.06,14.23L14.28,12.46C14.23,11.78 13.94,11.11 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",Wte="M10.6 13.4A1 1 0 0 1 9.2 14.8A4.8 4.8 0 0 1 9.2 7.8L12.7 4.2A5.1 5.1 0 0 1 19.8 4.2A5.1 5.1 0 0 1 19.8 11.3L18.3 12.8A6.4 6.4 0 0 0 17.9 10.4L18.4 9.9A3.2 3.2 0 0 0 18.4 5.6A3.2 3.2 0 0 0 14.1 5.6L10.6 9.2A2.9 2.9 0 0 0 10.6 13.4M23 18V20H20V23H18V20H15V18H18V15H20V18M16.2 13.7A4.8 4.8 0 0 0 14.8 9.2A1 1 0 0 0 13.4 10.6A2.9 2.9 0 0 1 13.4 14.8L9.9 18.4A3.2 3.2 0 0 1 5.6 18.4A3.2 3.2 0 0 1 5.6 14.1L6.1 13.7A7.3 7.3 0 0 1 5.7 11.2L4.2 12.7A5.1 5.1 0 0 0 4.2 19.8A5.1 5.1 0 0 0 11.3 19.8L13.1 18A6 6 0 0 1 16.2 13.7Z",mGe="M19,13H5V11H19V13Z",gGe="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",yGe="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",bGe="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z",wGe="M9 7V17H15V15H11V7H9Z",SGe="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",xGe="M11 7C9.9 7 9 7.9 9 9V11C9 12.11 9.9 13 11 13H13V15H9V17H13C14.11 17 15 16.11 15 15V13C15 11.9 14.11 11 13 11H11V9H15V7H11Z",CGe="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z",_Ge="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z",TGe="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z",kGe="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z",AGe="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z",EGe="M18,14H20V17H23V19H20V22H18V19H15V17H18V14M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",IGe="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",MGe="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z",DGe="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z",VGe="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z",PGe="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z",NGe="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",LGe="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z",OGe="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z";const RGe={bold:BWe,italic:eGe,underline:cGe,strike:lGe,color:OGe,highlight:HWe,heading:QWe,textAlign:zte,fontFamily:UWe,fontSize:iGe,subscript:sGe,superscript:uGe,bulletList:tGe,orderedList:rGe,taskList:nGe,indent:$We,outdent:qWe,link:Wte,fileImagePlus:NWe,image:hGe,video:LGe,table:CGe,blockquote:oGe,horizontalRule:mGe,code:VWe,codeBlock:DWe,clear:FWe,undo:NGe,redo:bGe,markdownTheme:yGe,fullscreen:dGe,h1:YWe,h2:jWe,h3:KWe,h4:XWe,h5:ZWe,h6:JWe,p:aGe,left:OWe,center:zte,right:RWe,justify:LWe,circle:IWe,close:MWe,fullscreenExit:fGe,linkVariant:Wte,linkVariantOff:pGe,openInNew:gGe,formatFloatLeft:zWe,formatFloatNone:WWe,formatFloatRight:GWe,sizeS:xGe,sizeM:SGe,sizeL:wGe,aspectRatio:AWe,delete:PWe,text:PGe,htmlView:vGe,tablePlus:EGe,tableRemove:IGe,tableColumnPlusAfter:_Ge,tableColumnPlusBefore:TGe,tableColumnRemove:kGe,tableRowPlusAfter:MGe,tableRowPlusBefore:DGe,tableRowRemove:VGe,tableMergeCells:AGe,check:EWe};function Zr(e){if(e)return`svg:${RGe[e]}`}const zn=f.defineComponent({__name:"ActionButton",props:{icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},color:{default:void 0},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,n=f.computed(()=>Zr(t.icon));return(r,a)=>{const o=St,i=Hv,l=xt;return f.openBlock(),f.createBlock(l,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":r.isActive?.()}]),density:"comfortable",size:"small",disabled:r.disabled,color:r.color,icon:"",onClick:r.action},{default:f.withCtx(()=>[n.value?(f.openBlock(),f.createBlock(o,{key:0,icon:n.value},null,8,["icon"])):f.createCommentVNode("",!0),f.createVNode(i,{eager:!1,activator:"parent",location:"top",text:t.tooltip},null,8,["text"]),f.renderSlot(r.$slots,"default")]),_:3},8,["disabled","color","class","onClick"])}}}),BGe=e=>{const t=["float-left","float-none","float-right"],n=["formatFloatLeft","formatFloatNone","formatFloatRight"],r=["left","inline","right"];return t.map((a,o)=>({type:a,component:zn,componentProps:{tooltip:`editor.image.${a.replace("-",".")}.tooltip`,icon:n[o],action:()=>e.chain().focus().updateImage({display:r[o]}).run(),isActive:()=>e.isActive("image",{display:r[o]})}}))},FGe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`image-${r}`,component:zn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateImage({width:gT[r],height:null}).run(),isActive:()=>e.isActive("image",{width:gT[r]})}}))},HGe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`video-${r}`,component:zn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateVideo({width:yT[r]}).run(),isActive:()=>e.isActive("video",{width:yT[r]})}}))},zGe=e=>[...BGe(e),...FGe(e),...HGe(e),{type:"image-aspect-ratio",component:zn,componentProps:{tooltip:"editor.image.dialog.form.aspectRatio",icon:"aspectRatio",action:()=>{const t=e.isActive("image",{lockAspectRatio:!0});e.chain().focus().updateImage({lockAspectRatio:!t,height:t?void 0:null}).run()},isActive:()=>e.isActive("image",{lockAspectRatio:!0})}},{type:"unlink",component:zn,componentProps:{tooltip:"editor.link.unlink.tooltip",icon:"linkVariantOff",action:()=>{const{href:t}=e.getAttributes("link");e.chain().extendMarkRange("link",{href:t}).unsetLink().focus().run()}}},{type:"link-open",component:zn,componentProps:{tooltip:"editor.link.open",icon:"openInNew",action:()=>{const{href:t}=e.getAttributes("link");Fw(t)&&t&&window.open(t,"_blank")}}},{type:"remove",component:zn,componentProps:{tooltip:"editor.remove",icon:"delete",action:()=>{const{state:t,dispatch:n}=e.view;QT(t,n)}}}],WGe=(e,t,{editor:n,extension:r,t:a})=>{const{extensions:o=[]}=n.extensionManager,i={};for(const l of Object.keys(e)){const s=e[l];if(!s)continue;const u=[];for(const h of s){if(h==="divider"){if(u[u.length-1]?.type==="divider")continue;u.push({type:"divider",component:void 0,componentProps:{}});continue}const v=t.find(m=>m.type===h);if(v){u.push({...v,componentProps:{...v.componentProps,tooltip:v.componentProps.tooltip?a(v.componentProps.tooltip):void 0},componentSlots:v.componentSlots});continue}const p=o.find(m=>m.name===h);if(p){const{button:m}=p.options,g=m({editor:n,extension:p,t:a});u.push({type:h,component:g.component,componentProps:g.componentProps,componentSlots:g.componentSlots});continue}}const c=u[u.length-1],d=u[0];c?.type==="divider"&&u.pop(),d?.type==="divider"&&u.shift(),i[l]=u}return i},GGe=Kr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});class UGe{globalAttributes=["class","style","id","data-*"];isInitialized=!1;registerGlobalAttributes(t){t&&t.length>0&&(this.globalAttributes=[...t],this.isInitialized=!0,console.log("Global allowedAttributes registered:",this.globalAttributes))}getGlobalAttributes(){return[...this.globalAttributes]}isGlobalInitialized(){return this.isInitialized}reset(){this.globalAttributes=["class","style","id"],this.isInitialized=!1}}const $O=new UGe;function YGe(e){$O.registerGlobalAttributes(e)}function Gte(){return $O.getGlobalAttributes()}function jGe(){return $O.isGlobalInitialized()}function ko(e,t,n){let r;n&&n.length>0?r=n:r=Gte(),console.log(`Adding common attributes to ${t}:`,{local:n,global:Gte(),final:r,globalInitialized:jGe()});const a=e?{...e}:{};return r.forEach(o=>{a[o]||(a[o]={default:null,parseHTML:i=>i.getAttribute(o)||null,renderHTML:i=>i[o]?{[o]:i[o]}:{}})}),a}const Ute=GGe.extend({addAttributes(){return ko(this.parent?.(),"paragraph",this.options.allowedAttributes)}}),KGe=or.create({name:"base-kit",addOptions(){return{...this.parent?.(),bubble:{list:D2e,defaultBubbleList:zGe,button:({editor:e,extension:t,t:n})=>{const{list:r={},defaultBubbleList:a}=t.options?.bubble??{},o=a?.(e)??[];return WGe(r,o,{editor:e,extension:t,t:n})}}}},addExtensions(){const e=[];return this.options.placeholder!==!1&&e.push(CWe.configure({placeholder:"",...this.options.placeholder})),this.options.focus!==!1&&e.push(fWe.configure({className:"focus",...this.options.focus})),this.options.document!==!1&&e.push(sWe.configure()),this.options.text!==!1&&e.push(_We.configure()),this.options.gapcursor!==!1&&e.push(wWe.configure()),this.options.dropcursor!==!1&&e.push(dWe.configure(this.options.dropcursor)),this.options.characterCount!==!1&&e.push(lWe.configure(this.options.characterCount)),this.options.paragraph!==!1&&e.push(Ute.configure(this.options.paragraph)),this.options.hardBreak!==!1&&e.push(SWe.configure(this.options.hardBreak)),this.options.listItem!==!1&&e.push(xWe.configure(this.options.listItem)),this.options.textStyle!==!1&&e.push(kWe.configure(this.options.textStyle)),e}}),XGe=/^\s*>\s$/,ZGe=Kr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Cy({find:XGe,type:this.type})]}}),JGe=ZGe.extend({addAttributes(){return ko(this.parent?.(),"blockquote",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),HTMLAttributes:{class:"blockquote"},button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBlockquote().run(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"blockquote",tooltip:t("editor.blockquote.tooltip")}})}}}),QGe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,qGe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,$Ge=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,eUe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,tUe=zi.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[sp({find:QGe,type:this.type}),sp({find:$Ge,type:this.type})]},addPasteRules(){return[zf({find:qGe,type:this.type}),zf({find:eUe,type:this.type})]}}),nUe=tUe.extend({addAttributes(){return ko(this.parent?.(),"bold",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBold().run(),isActive:()=>e.isActive("bold")||!1,disabled:!e.can().toggleBold(),icon:"bold",tooltip:t("editor.bold.tooltip")}})}}}),rUe="listItem",Yte="textStyle",jte=/^\s*([-+*])\s$/,aUe=Kr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rUe,this.editor.getAttributes(Yte)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=Cy({find:jte,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=Cy({find:jte,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Yte),editor:this.editor})),[e]}}),oUe=aUe.extend({addAttributes(){return ko(this.parent?.(),"bulletList",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBulletList().run(),isActive:()=>e.isActive("bulletList")||!1,disabled:!e.can().toggleBulletList(),icon:"bulletList",tooltip:t("editor.bulletlist.tooltip")}})}}}),iUe=Kr.create({name:"clear",addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"clear",tooltip:t("editor.clear.tooltip")}})}}}),lUe=/(^|[^`])`([^`]+)`(?!`)/,sUe=/(^|[^`])`([^`]+)`(?!`)/g,uUe=zi.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[sp({find:lUe,type:this.type})]},addPasteRules(){return[zf({find:sUe,type:this.type})]}}),cUe=uUe.extend({addAttributes(){return ko(this.parent?.(),"code",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleCode().run(),isActive:()=>e.isActive("code")||!1,disabled:!e.can().toggleCode(),icon:"code",tooltip:t("editor.code.tooltip")}})}}}),dUe=/^```([a-z]+)?[\s\n]$/,fUe=/^~~~([a-z]+)?[\s\n]$/,hUe=Kr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",$n(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(` +`,textSerializers:n={}}=e||{};return fee(this.state.doc,{blockSeparator:t,textSerializers:{...gO(this.schema),...n}})}get isEmpty(){return dk(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new ip(t,this)}get $doc(){return this.$pos(0)}};function lp(e){return new ek({find:e.find,handler:({state:t,range:n,match:r})=>{const a=gn(e.getAttributes,void 0,r);if(a===!1||a===null)return null;const{tr:o}=t,i=r[r.length-1],l=r[0];if(i){const s=l.search(/\S/),u=n.from+l.indexOf(i),c=u+i.length;if(SO(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(v=>v===e.type&&v!==h.mark.type)).filter(h=>h.to>u).length)return null;cn.from&&o.delete(n.from+s,u);const d=n.from+s+i.length;o.addMark(n.from+s,d,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function yee(e){return new ek({find:e.find,handler:({state:t,range:n,match:r})=>{const a=gn(e.getAttributes,void 0,r)||{},{tr:o}=t,i=n.from;let l=n.to;const s=e.type.create(a);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=i+u;c>l?c=l:l=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,i+r[0].length-1),o.replaceWith(c,l,s)}else if(r[0]){const u=e.type.isInline?i:i-1;o.insert(u,e.type.create(a)).delete(o.mapping.map(i),o.mapping.map(l))}o.scrollIntoView()}})}function TO(e){return new ek({find:e.find,handler:({state:t,range:n,match:r})=>{const a=t.doc.resolve(n.from),o=gn(e.getAttributes,void 0,r)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function ky(e){return new ek({find:e.find,handler:({state:t,range:n,match:r,chain:a})=>{const o=gn(e.getAttributes,void 0,r)||{},i=t.tr.delete(n.from,n.to),l=i.doc.resolve(n.from).blockRange(),s=l&&E2(l,e.type,o);if(!s)return null;if(i.wrap(l,s),e.keepMarks&&e.editor){const{selection:c,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,v=d||c.$to.parentOffset&&c.$from.marks();if(v){const p=v.filter(m=>h.includes(m.type.name));i.ensureMarks(p)}}if(e.keepAttributes){const c=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(c,o).run()}const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&If(i.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&i.join(n.from-1)}})}class Xr{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=gn(At(this,"addOptions",{name:this.name}))),this.storage=gn(At(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Xr(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>rk(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Xr(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=gn(At(n,"addOptions",{name:n.name})),n.storage=gn(At(n,"addStorage",{name:n.name,options:n.options})),n}}class k4e{constructor(t,n,r){this.isDragging=!1,this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var n,r,a,o,i,l,s;const{view:u}=this.editor,c=t.target,d=c.nodeType===3?(n=c.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(c)||!d)return;let h=0,v=0;if(this.dom!==d){const b=this.dom.getBoundingClientRect(),w=d.getBoundingClientRect(),S=(a=t.offsetX)!==null&&a!==void 0?a:(o=t.nativeEvent)===null||o===void 0?void 0:o.offsetX,_=(i=t.offsetY)!==null&&i!==void 0?i:(l=t.nativeEvent)===null||l===void 0?void 0:l.offsetY;h=w.x-b.x+S,v=w.y-b.y+_}const p=this.dom.cloneNode(!0);(s=t.dataTransfer)===null||s===void 0||s.setDragImage(p,h,v);const m=this.getPos();if(typeof m!="number")return;const g=Nt.create(u.state.doc,m),y=u.state.tr.setSelection(g);u.dispatch(y)}stopEvent(t){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const r=t.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const a=t.type.startsWith("drag"),o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!o&&!a)return!0;const{isEditable:i}=this.editor,{isDragging:l}=this,s=!!this.node.type.spec.draggable,u=Nt.isSelectable(this.node),c=t.type==="copy",d=t.type==="paste",h=t.type==="cut",v=t.type==="mousedown";if(!s&&u&&a&&t.target===this.dom&&t.preventDefault(),s&&a&&!l&&t.target===this.dom)return t.preventDefault(),!1;if(s&&i&&!l&&v){const p=r.closest("[data-drag-handle]");p&&(this.dom===p||this.dom.contains(p))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||c||d||h||v&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(lk()||iee())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}}function Hf(e){return new eze({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:a})=>{const o=gn(e.getAttributes,void 0,r,a);if(o===!1||o===null)return null;const{tr:i}=t,l=r[r.length-1],s=r[0];let u=n.to;if(l){const c=s.search(/\S/),d=n.from+s.indexOf(l),h=d+l.length;if(SO(n.from,n.to,t.doc).filter(v=>v.mark.type.excluded.find(p=>p===e.type&&p!==v.mark.type)).filter(v=>v.to>d).length)return null;hn.from&&i.delete(n.from+c,d),u=n.from+c+l.length,i.addMark(n.from+c,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function A4e(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof Nt){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let a=r.depth;for(;a>=0;){const o=r.index(a);if(r.node(a).contentMatchAt(o).matchType(t))return!0;a-=1}return!1}var Wi="top",Jl="bottom",Ql="right",Gi="left",kO="auto",sS=[Wi,Jl,Ql,Gi],Ay="start",uS="end",E4e="clippingParents",bee="viewport",cS="popper",I4e="reference",wee=sS.reduce(function(e,t){return e.concat([t+"-"+Ay,t+"-"+uS])},[]),See=[].concat(sS,[kO]).reduce(function(e,t){return e.concat([t,t+"-"+Ay,t+"-"+uS])},[]),M4e="beforeRead",D4e="read",V4e="afterRead",P4e="beforeMain",N4e="main",L4e="afterMain",O4e="beforeWrite",R4e="write",B4e="afterWrite",F4e=[M4e,D4e,V4e,P4e,N4e,L4e,O4e,R4e,B4e];function Ou(e){return e?(e.nodeName||"").toLowerCase():null}function yl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function sp(e){var t=yl(e).Element;return e instanceof t||e instanceof Element}function ql(e){var t=yl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function AO(e){if(typeof ShadowRoot>"u")return!1;var t=yl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function H4e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!ql(o)||!Ou(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var l=a[i];l===!1?o.removeAttribute(i):o.setAttribute(i,l===!0?"":l)}))})}function z4e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(s,u){return s[u]="",s},{});!ql(a)||!Ou(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const xee={name:"applyStyles",enabled:!0,phase:"write",fn:H4e,effect:z4e,requires:["computeStyles"]};function Ru(e){return e.split("-")[0]}var up=Math.max,fk=Math.min,Ey=Math.round;function EO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Cee(){return!/^((?!chrome|android).)*safari/i.test(EO())}function Iy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&ql(e)&&(a=e.offsetWidth>0&&Ey(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Ey(r.height)/e.offsetHeight||1);var i=sp(e)?yl(e):window,l=i.visualViewport,s=!Cee()&&n,u=(r.left+(s&&l?l.offsetLeft:0))/a,c=(r.top+(s&&l?l.offsetTop:0))/o,d=r.width/a,h=r.height/o;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function IO(e){var t=Iy(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _ee(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&AO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function id(e){return yl(e).getComputedStyle(e)}function W4e(e){return["table","td","th"].indexOf(Ou(e))>=0}function zf(e){return((sp(e)?e.ownerDocument:e.document)||window.document).documentElement}function hk(e){return Ou(e)==="html"?e:e.assignedSlot||e.parentNode||(AO(e)?e.host:null)||zf(e)}function Tee(e){return!ql(e)||id(e).position==="fixed"?null:e.offsetParent}function G4e(e){var t=/firefox/i.test(EO()),n=/Trident/i.test(EO());if(n&&ql(e)){var r=id(e);if(r.position==="fixed")return null}var a=hk(e);for(AO(a)&&(a=a.host);ql(a)&&["html","body"].indexOf(Ou(a))<0;){var o=id(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function dS(e){for(var t=yl(e),n=Tee(e);n&&W4e(n)&&id(n).position==="static";)n=Tee(n);return n&&(Ou(n)==="html"||Ou(n)==="body"&&id(n).position==="static")?t:n||G4e(e)||t}function MO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fS(e,t,n){return up(e,fk(t,n))}function U4e(e,t,n){var r=fS(e,t,n);return r>n?n:r}function kee(){return{top:0,right:0,bottom:0,left:0}}function Aee(e){return Object.assign({},kee(),e)}function Eee(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Y4e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Aee(typeof e!="number"?e:Eee(e,sS))};function j4e(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ru(n.placement),s=MO(l),u=[Gi,Ql].indexOf(l)>=0,c=u?"height":"width";if(!(!o||!i)){var d=Y4e(a.padding,n),h=IO(o),v=s==="y"?Wi:Gi,p=s==="y"?Jl:Ql,m=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],g=i[s]-n.rects.reference[s],y=dS(o),b=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,S=d[v],_=b-h[c]-d[p],x=b/2-h[c]/2+w,T=fS(S,x,_),A=s;n.modifiersData[r]=(t={},t[A]=T,t.centerOffset=T-x,t)}}function K4e(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||_ee(t.elements.popper,a)&&(t.elements.arrow=a))}const X4e={name:"arrow",enabled:!0,phase:"main",fn:j4e,effect:K4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function My(e){return e.split("-")[1]}var Z4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J4e(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Ey(n*a)/a||0,y:Ey(r*a)/a||0}}function Iee(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=i.x,v=h===void 0?0:h,p=i.y,m=p===void 0?0:p,g=typeof c=="function"?c({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=Gi,S=Wi,_=window;if(u){var x=dS(n),T="clientHeight",A="clientWidth";if(x===yl(n)&&(x=zf(n),id(x).position!=="static"&&l==="absolute"&&(T="scrollHeight",A="scrollWidth")),x=x,a===Wi||(a===Gi||a===Ql)&&o===uS){S=Jl;var E=d&&x===_&&_.visualViewport?_.visualViewport.height:x[T];m-=E-r.height,m*=s?1:-1}if(a===Gi||(a===Wi||a===Jl)&&o===uS){w=Ql;var I=d&&x===_&&_.visualViewport?_.visualViewport.width:x[A];v-=I-r.width,v*=s?1:-1}}var M=Object.assign({position:l},u&&Z4e),N=c===!0?J4e({x:v,y:m},yl(n)):{x:v,y:m};if(v=N.x,m=N.y,s){var D;return Object.assign({},M,(D={},D[S]=b?"0":"",D[w]=y?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",D))}return Object.assign({},M,(t={},t[S]=b?m+"px":"",t[w]=y?v+"px":"",t.transform="",t))}function Q4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,l=n.roundOffsets,s=l===void 0?!0:l,u={placement:Ru(t.placement),variation:My(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Iee(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Iee(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q4e,data:{}};var vk={passive:!0};function $4e(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,l=i===void 0?!0:i,s=yl(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,vk)}),l&&s.addEventListener("resize",n.update,vk),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,vk)}),l&&s.removeEventListener("resize",n.update,vk)}}const e6e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$4e,data:{}};var t6e={left:"right",right:"left",bottom:"top",top:"bottom"};function pk(e){return e.replace(/left|right|bottom|top/g,function(t){return t6e[t]})}var n6e={start:"end",end:"start"};function Mee(e){return e.replace(/start|end/g,function(t){return n6e[t]})}function DO(e){var t=yl(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function VO(e){return Iy(zf(e)).left+DO(e).scrollLeft}function r6e(e,t){var n=yl(e),r=zf(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,l=0,s=0;if(a){o=a.width,i=a.height;var u=Cee();(u||!u&&t==="fixed")&&(l=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:l+VO(e),y:s}}function a6e(e){var t,n=zf(e),r=DO(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=up(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=up(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+VO(e),s=-r.scrollTop;return id(a||n).direction==="rtl"&&(l+=up(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:l,y:s}}function PO(e){var t=id(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Dee(e){return["html","body","#document"].indexOf(Ou(e))>=0?e.ownerDocument.body:ql(e)&&PO(e)?e:Dee(hk(e))}function hS(e,t){var n;t===void 0&&(t=[]);var r=Dee(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=yl(r),i=a?[o].concat(o.visualViewport||[],PO(r)?r:[]):r,l=t.concat(i);return a?l:l.concat(hS(hk(i)))}function NO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o6e(e,t){var n=Iy(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vee(e,t,n){return t===bee?NO(r6e(e,n)):sp(t)?o6e(t,n):NO(a6e(zf(e)))}function i6e(e){var t=hS(hk(e)),n=["absolute","fixed"].indexOf(id(e).position)>=0,r=n&&ql(e)?dS(e):e;return sp(r)?t.filter(function(a){return sp(a)&&_ee(a,r)&&Ou(a)!=="body"}):[]}function l6e(e,t,n,r){var a=t==="clippingParents"?i6e(e):[].concat(t),o=[].concat(a,[n]),i=o[0],l=o.reduce(function(s,u){var c=Vee(e,u,r);return s.top=up(c.top,s.top),s.right=fk(c.right,s.right),s.bottom=fk(c.bottom,s.bottom),s.left=up(c.left,s.left),s},Vee(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Pee(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ru(r):null,o=r?My(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(a){case Wi:s={x:i,y:t.y-n.height};break;case Jl:s={x:i,y:t.y+t.height};break;case Ql:s={x:t.x+t.width,y:l};break;case Gi:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?MO(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ay:s[u]=s[u]-(t[c]/2-n[c]/2);break;case uS:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function vS(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,i=o===void 0?e.strategy:o,l=n.boundary,s=l===void 0?E4e:l,u=n.rootBoundary,c=u===void 0?bee:u,d=n.elementContext,h=d===void 0?cS:d,v=n.altBoundary,p=v===void 0?!1:v,m=n.padding,g=m===void 0?0:m,y=Aee(typeof g!="number"?g:Eee(g,sS)),b=h===cS?I4e:cS,w=e.rects.popper,S=e.elements[p?b:h],_=l6e(sp(S)?S:S.contextElement||zf(e.elements.popper),s,c,i),x=Iy(e.elements.reference),T=Pee({reference:x,element:w,placement:a}),A=NO(Object.assign({},w,T)),E=h===cS?A:x,I={top:_.top-E.top+y.top,bottom:E.bottom-_.bottom+y.bottom,left:_.left-E.left+y.left,right:E.right-_.right+y.right},M=e.modifiersData.offset;if(h===cS&&M){var N=M[a];Object.keys(I).forEach(function(D){var P=[Ql,Jl].indexOf(D)>=0?1:-1,O=[Wi,Jl].indexOf(D)>=0?"y":"x";I[D]+=N[O]*P})}return I}function s6e(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?See:s,c=My(r),d=c?l?wee:wee.filter(function(p){return My(p)===c}):sS,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var v=h.reduce(function(p,m){return p[m]=vS(e,{placement:m,boundary:a,rootBoundary:o,padding:i})[Ru(m)],p},{});return Object.keys(v).sort(function(p,m){return v[p]-v[m]})}function u6e(e){if(Ru(e)===kO)return[];var t=pk(e);return[Mee(e),t,Mee(t)]}function c6e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!0:i,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,p=v===void 0?!0:v,m=n.allowedAutoPlacements,g=t.options.placement,y=Ru(g),b=y===g,w=s||(b||!p?[pk(g)]:u6e(g)),S=[g].concat(w).reduce(function(Y,Z){return Y.concat(Ru(Z)===kO?s6e(t,{placement:Z,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):Z)},[]),_=t.rects.reference,x=t.rects.popper,T=new Map,A=!0,E=S[0],I=0;I=0,O=P?"width":"height",L=vS(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),R=P?D?Ql:Gi:D?Jl:Wi;_[O]>x[O]&&(R=pk(R));var B=pk(R),z=[];if(o&&z.push(L[N]<=0),l&&z.push(L[R]<=0,L[B]<=0),z.every(function(Y){return Y})){E=M,A=!1;break}T.set(M,z)}if(A)for(var H=p?3:1,G=function(Y){var Z=S.find(function(ne){var $=T.get(ne);if($)return $.slice(0,Y).every(function(ae){return ae})});if(Z)return E=Z,"break"},j=H;j>0;j--){var U=G(j);if(U==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const d6e={name:"flip",enabled:!0,phase:"main",fn:c6e,requiresIfExists:["offset"],data:{_skip:!1}};function Nee(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Lee(e){return[Wi,Ql,Jl,Gi].some(function(t){return e[t]>=0})}function f6e(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=vS(t,{elementContext:"reference"}),l=vS(t,{altBoundary:!0}),s=Nee(i,r),u=Nee(l,a,o),c=Lee(s),d=Lee(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const h6e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:f6e};function v6e(e,t,n){var r=Ru(e),a=[Gi,Wi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],l=o[1];return i=i||0,l=(l||0)*a,[Gi,Ql].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function p6e(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=See.reduce(function(c,d){return c[d]=v6e(d,t.rects,o),c},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const m6e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:p6e};function g6e(e){var t=e.state,n=e.name;t.modifiersData[n]=Pee({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const y6e={name:"popperOffsets",enabled:!0,phase:"read",fn:g6e,data:{}};function b6e(e){return e==="x"?"y":"x"}function w6e(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,l=i===void 0?!1:i,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,v=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,g=vS(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=Ru(t.placement),b=My(t.placement),w=!b,S=MO(y),_=b6e(S),x=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(o){var D,P=S==="y"?Wi:Gi,O=S==="y"?Jl:Ql,L=S==="y"?"height":"width",R=x[S],B=R+g[P],z=R-g[O],H=v?-A[L]/2:0,G=b===Ay?T[L]:A[L],j=b===Ay?-A[L]:-T[L],U=t.elements.arrow,Y=v&&U?IO(U):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kee(),ne=Z[P],$=Z[O],ae=fS(0,T[L],Y[L]),de=w?T[L]/2-H-ae-ne-I.mainAxis:G-ae-ne-I.mainAxis,ve=w?-T[L]/2+H+ae+$+I.mainAxis:j+ae+$+I.mainAxis,ge=t.elements.arrow&&dS(t.elements.arrow),Se=ge?S==="y"?ge.clientTop||0:ge.clientLeft||0:0,Re=(D=M?.[S])!=null?D:0,ee=R+de-Re-Se,be=R+ve-Re,Ie=fS(v?fk(B,ee):B,R,v?up(z,be):z);x[S]=Ie,N[S]=Ie-R}if(l){var He,yt=S==="x"?Wi:Gi,St=S==="x"?Jl:Ql,X=x[_],te=_==="y"?"height":"width",pe=X+g[yt],oe=X-g[St],Le=[Wi,Gi].indexOf(y)!==-1,je=(He=M?.[_])!=null?He:0,fe=Le?pe:X-T[te]-A[te]-je+I.altAxis,_e=Le?X+T[te]+A[te]-je-I.altAxis:oe,$e=v&&Le?U4e(fe,X,_e):fS(v?fe:pe,X,v?_e:oe);x[_]=$e,N[_]=$e-X}t.modifiersData[r]=N}}const S6e={name:"preventOverflow",enabled:!0,phase:"main",fn:w6e,requiresIfExists:["offset"]};function x6e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function C6e(e){return e===yl(e)||!ql(e)?DO(e):x6e(e)}function _6e(e){var t=e.getBoundingClientRect(),n=Ey(t.width)/e.offsetWidth||1,r=Ey(t.height)/e.offsetHeight||1;return n!==1||r!==1}function T6e(e,t,n){n===void 0&&(n=!1);var r=ql(t),a=ql(t)&&_6e(t),o=zf(t),i=Iy(e,a,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Ou(t)!=="body"||PO(o))&&(l=C6e(t)),ql(t)?(s=Iy(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=VO(o))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function k6e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&a(s)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function A6e(e){var t=k6e(e);return F4e.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function E6e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function I6e(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Oee={placement:"bottom",modifiers:[],strategy:"absolute"};function Ree(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function Wee(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Gee(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function L6e(e){return e.split(/\s+/).filter(Boolean)}function Dy(e){return[].concat(e)}function Uee(e,t){e.indexOf(t)===-1&&e.push(t)}function O6e(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function R6e(e){return e.split("-")[0]}function mk(e){return[].slice.call(e)}function Yee(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function pS(){return document.createElement("div")}function gk(e){return["Element","Fragment"].some(function(t){return OO(e,t)})}function B6e(e){return OO(e,"NodeList")}function F6e(e){return OO(e,"MouseEvent")}function H6e(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function z6e(e){return gk(e)?[e]:B6e(e)?mk(e):Array.isArray(e)?e:mk(document.querySelectorAll(e))}function RO(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function jee(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function W6e(e){var t,n=Dy(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function G6e(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var o=a.popperRect,i=a.popperState,l=a.props,s=l.interactiveBorder,u=R6e(i.placement),c=i.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,v=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,m=o.top-r+d>s,g=r-o.bottom-h>s,y=o.left-n+v>s,b=n-o.right-p>s;return m||g||y||b})}function BO(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function Kee(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Bu={isTouch:!1},Xee=0;function U6e(){Bu.isTouch||(Bu.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zee))}function Zee(){var e=performance.now();e-Xee<20&&(Bu.isTouch=!1,document.removeEventListener("mousemove",Zee)),Xee=e}function Y6e(){var e=document.activeElement;if(H6e(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function j6e(){document.addEventListener("touchstart",U6e,cp),window.addEventListener("blur",Y6e)}var K6e=typeof window<"u"&&typeof document<"u",X6e=K6e?!!window.msCrypto:!1,Z6e={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},J6e={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ys=Object.assign({appendTo:zee,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Z6e,J6e),Q6e=Object.keys(Ys),q6e=function(e){var t=Object.keys(e);t.forEach(function(n){Ys[n]=e[n]})};function Jee(e){var t=e.plugins||[],n=t.reduce(function(r,a){var o=a.name,i=a.defaultValue;if(o){var l;r[o]=e[o]!==void 0?e[o]:(l=Ys[o])!=null?l:i}return r},{});return Object.assign({},e,n)}function $6e(e,t){var n=t?Object.keys(Jee(Object.assign({},Ys,{plugins:t}))):Q6e,r=n.reduce(function(a,o){var i=(e.getAttribute("data-tippy-"+o)||"").trim();if(!i)return a;if(o==="content")a[o]=i;else try{a[o]=JSON.parse(i)}catch{a[o]=i}return a},{});return r}function Qee(e,t){var n=Object.assign({},t,{content:Wee(t.content,[e])},t.ignoreAttributes?{}:$6e(e,t.plugins));return n.aria=Object.assign({},Ys.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var e8e=function(){return"innerHTML"};function FO(e,t){e[e8e()]=t}function qee(e){var t=pS();return e===!0?t.className=Fee:(t.className=Hee,gk(e)?t.appendChild(e):FO(t,e)),t}function $ee(e,t){gk(t.content)?(FO(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?FO(e,t.content):e.textContent=t.content)}function HO(e){var t=e.firstElementChild,n=mk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Bee)}),arrow:n.find(function(r){return r.classList.contains(Fee)||r.classList.contains(Hee)}),backdrop:n.find(function(r){return r.classList.contains(N6e)})}}function ete(e){var t=pS(),n=pS();n.className=P6e,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pS();r.className=Bee,r.setAttribute("data-state","hidden"),$ee(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(o,i){var l=HO(t),s=l.box,u=l.content,c=l.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),typeof i.animation=="string"?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),(o.content!==i.content||o.allowHTML!==i.allowHTML)&&$ee(u,e.props),i.arrow?c?o.arrow!==i.arrow&&(s.removeChild(c),s.appendChild(qee(i.arrow))):s.appendChild(qee(i.arrow)):c&&s.removeChild(c)}return{popper:t,onUpdate:a}}ete.$$tippy=!0;var t8e=1,yk=[],zO=[];function n8e(e,t){var n=Qee(e,Object.assign({},Ys,Jee(Yee(t)))),r,a,o,i=!1,l=!1,s=!1,u=!1,c,d,h,v=[],p=Gee(ee,n.interactiveDebounce),m,g=t8e++,y=null,b=O6e(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:g,reference:e,popper:pS(),popperInstance:y,props:n,state:w,plugins:b,clearDelayTimeouts:fe,setProps:_e,setContent:$e,show:le,hide:ue,hideWithInteractivity:xe,enable:Le,disable:je,unmount:Ve,destroy:Qe};if(!n.render)return S;var _=n.render(S),x=_.popper,T=_.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+S.id,S.popper=x,e._tippy=S,x._tippy=S;var A=b.map(function(me){return me.fn(S)}),E=e.hasAttribute("aria-expanded");return ge(),H(),R(),B("onCreate",[S]),n.showOnCreate&&pe(),x.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",p)}),S;function I(){var me=S.props.touch;return Array.isArray(me)?me:[me,0]}function M(){return I()[0]==="hold"}function N(){var me;return!!((me=S.props.render)!=null&&me.$$tippy)}function D(){return m||e}function P(){var me=D().parentNode;return me?W6e(me):document}function O(){return HO(x)}function L(me){return S.state.isMounted&&!S.state.isVisible||Bu.isTouch||c&&c.type==="focus"?0:LO(S.props.delay,me?0:1,Ys.delay)}function R(me){me===void 0&&(me=!1),x.style.pointerEvents=S.props.interactive&&!me?"":"none",x.style.zIndex=""+S.props.zIndex}function B(me,Ne,rt){if(rt===void 0&&(rt=!0),A.forEach(function(tt){tt[me]&&tt[me].apply(tt,Ne)}),rt){var Pt;(Pt=S.props)[me].apply(Pt,Ne)}}function z(){var me=S.props.aria;if(me.content){var Ne="aria-"+me.content,rt=x.id,Pt=Dy(S.props.triggerTarget||e);Pt.forEach(function(tt){var at=tt.getAttribute(Ne);if(S.state.isVisible)tt.setAttribute(Ne,at?at+" "+rt:rt);else{var ft=at&&at.replace(rt,"").trim();ft?tt.setAttribute(Ne,ft):tt.removeAttribute(Ne)}})}}function H(){if(!(E||!S.props.aria.expanded)){var me=Dy(S.props.triggerTarget||e);me.forEach(function(Ne){S.props.interactive?Ne.setAttribute("aria-expanded",S.state.isVisible&&Ne===D()?"true":"false"):Ne.removeAttribute("aria-expanded")})}}function G(){P().removeEventListener("mousemove",p),yk=yk.filter(function(me){return me!==p})}function j(me){if(!(Bu.isTouch&&(s||me.type==="mousedown"))){var Ne=me.composedPath&&me.composedPath()[0]||me.target;if(!(S.props.interactive&&Kee(x,Ne))){if(Dy(S.props.triggerTarget||e).some(function(rt){return Kee(rt,Ne)})){if(Bu.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[S,me]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),l=!0,setTimeout(function(){l=!1}),S.state.isMounted||ne())}}}function U(){s=!0}function Y(){s=!1}function Z(){var me=P();me.addEventListener("mousedown",j,!0),me.addEventListener("touchend",j,cp),me.addEventListener("touchstart",Y,cp),me.addEventListener("touchmove",U,cp)}function ne(){var me=P();me.removeEventListener("mousedown",j,!0),me.removeEventListener("touchend",j,cp),me.removeEventListener("touchstart",Y,cp),me.removeEventListener("touchmove",U,cp)}function $(me,Ne){de(me,function(){!S.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&Ne()})}function ae(me,Ne){de(me,Ne)}function de(me,Ne){var rt=O().box;function Pt(tt){tt.target===rt&&(BO(rt,"remove",Pt),Ne())}if(me===0)return Ne();BO(rt,"remove",d),BO(rt,"add",Pt),d=Pt}function ve(me,Ne,rt){rt===void 0&&(rt=!1);var Pt=Dy(S.props.triggerTarget||e);Pt.forEach(function(tt){tt.addEventListener(me,Ne,rt),v.push({node:tt,eventType:me,handler:Ne,options:rt})})}function ge(){M()&&(ve("touchstart",Re,{passive:!0}),ve("touchend",be,{passive:!0})),L6e(S.props.trigger).forEach(function(me){if(me!=="manual")switch(ve(me,Re),me){case"mouseenter":ve("mouseleave",be);break;case"focus":ve(X6e?"focusout":"blur",Ie);break;case"focusin":ve("focusout",Ie);break}})}function Se(){v.forEach(function(me){var Ne=me.node,rt=me.eventType,Pt=me.handler,tt=me.options;Ne.removeEventListener(rt,Pt,tt)}),v=[]}function Re(me){var Ne,rt=!1;if(!(!S.state.isEnabled||He(me)||l)){var Pt=((Ne=c)==null?void 0:Ne.type)==="focus";c=me,m=me.currentTarget,H(),!S.state.isVisible&&F6e(me)&&yk.forEach(function(tt){return tt(me)}),me.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||i)&&S.props.hideOnClick!==!1&&S.state.isVisible?rt=!0:pe(me),me.type==="click"&&(i=!rt),rt&&!Pt&&oe(me)}}function ee(me){var Ne=me.target,rt=D().contains(Ne)||x.contains(Ne);if(!(me.type==="mousemove"&&rt)){var Pt=te().concat(x).map(function(tt){var at,ft=tt._tippy,$t=(at=ft.popperInstance)==null?void 0:at.state;return $t?{popperRect:tt.getBoundingClientRect(),popperState:$t,props:n}:null}).filter(Boolean);G6e(Pt,me)&&(G(),oe(me))}}function be(me){var Ne=He(me)||S.props.trigger.indexOf("click")>=0&&i;if(!Ne){if(S.props.interactive){S.hideWithInteractivity(me);return}oe(me)}}function Ie(me){S.props.trigger.indexOf("focusin")<0&&me.target!==D()||S.props.interactive&&me.relatedTarget&&x.contains(me.relatedTarget)||oe(me)}function He(me){return Bu.isTouch?M()!==me.type.indexOf("touch")>=0:!1}function yt(){St();var me=S.props,Ne=me.popperOptions,rt=me.placement,Pt=me.offset,tt=me.getReferenceClientRect,at=me.moveTransition,ft=N()?HO(x).arrow:null,$t=tt?{getBoundingClientRect:tt,contextElement:tt.contextElement||D()}:e,cn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(tl){var Vl=tl.state;if(N()){var Pl=O(),Mc=Pl.box;["placement","reference-hidden","escaped"].forEach(function(yo){yo==="placement"?Mc.setAttribute("data-placement",Vl.placement):Vl.attributes.popper["data-popper-"+yo]?Mc.setAttribute("data-"+yo,""):Mc.removeAttribute("data-"+yo)}),Vl.attributes.popper={}}}},ur=[{name:"offset",options:{offset:Pt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!at}},cn];N()&&ft&&ur.push({name:"arrow",options:{element:ft,padding:3}}),ur.push.apply(ur,Ne?.modifiers||[]),S.popperInstance=V6e($t,x,Object.assign({},Ne,{placement:rt,onFirstUpdate:h,modifiers:ur}))}function St(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function X(){var me=S.props.appendTo,Ne,rt=D();S.props.interactive&&me===zee||me==="parent"?Ne=rt.parentNode:Ne=Wee(me,[rt]),Ne.contains(x)||Ne.appendChild(x),S.state.isMounted=!0,yt()}function te(){return mk(x.querySelectorAll("[data-tippy-root]"))}function pe(me){S.clearDelayTimeouts(),me&&B("onTrigger",[S,me]),Z();var Ne=L(!0),rt=I(),Pt=rt[0],tt=rt[1];Bu.isTouch&&Pt==="hold"&&tt&&(Ne=tt),Ne?r=setTimeout(function(){S.show()},Ne):S.show()}function oe(me){if(S.clearDelayTimeouts(),B("onUntrigger",[S,me]),!S.state.isVisible){ne();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(me.type)>=0&&i)){var Ne=L(!1);Ne?a=setTimeout(function(){S.state.isVisible&&S.hide()},Ne):o=requestAnimationFrame(function(){S.hide()})}}function Le(){S.state.isEnabled=!0}function je(){S.hide(),S.state.isEnabled=!1}function fe(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(o)}function _e(me){if(!S.state.isDestroyed){B("onBeforeUpdate",[S,me]),Se();var Ne=S.props,rt=Qee(e,Object.assign({},Ne,Yee(me),{ignoreAttributes:!0}));S.props=rt,ge(),Ne.interactiveDebounce!==rt.interactiveDebounce&&(G(),p=Gee(ee,rt.interactiveDebounce)),Ne.triggerTarget&&!rt.triggerTarget?Dy(Ne.triggerTarget).forEach(function(Pt){Pt.removeAttribute("aria-expanded")}):rt.triggerTarget&&e.removeAttribute("aria-expanded"),H(),R(),T&&T(Ne,rt),S.popperInstance&&(yt(),te().forEach(function(Pt){requestAnimationFrame(Pt._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[S,me])}}function $e(me){S.setProps({content:me})}function le(){var me=S.state.isVisible,Ne=S.state.isDestroyed,rt=!S.state.isEnabled,Pt=Bu.isTouch&&!S.props.touch,tt=LO(S.props.duration,0,Ys.duration);if(!(me||Ne||rt||Pt)&&!D().hasAttribute("disabled")&&(B("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,N()&&(x.style.visibility="visible"),R(),Z(),S.state.isMounted||(x.style.transition="none"),N()){var at=O(),ft=at.box,$t=at.content;RO([ft,$t],0)}h=function(){var cn;if(!(!S.state.isVisible||u)){if(u=!0,x.offsetHeight,x.style.transition=S.props.moveTransition,N()&&S.props.animation){var ur=O(),tl=ur.box,Vl=ur.content;RO([tl,Vl],tt),jee([tl,Vl],"visible")}z(),H(),Uee(zO,S),(cn=S.popperInstance)==null||cn.forceUpdate(),B("onMount",[S]),S.props.animation&&N()&&ae(tt,function(){S.state.isShown=!0,B("onShown",[S])})}},X()}}function ue(){var me=!S.state.isVisible,Ne=S.state.isDestroyed,rt=!S.state.isEnabled,Pt=LO(S.props.duration,1,Ys.duration);if(!(me||Ne||rt)&&(B("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,i=!1,N()&&(x.style.visibility="hidden"),G(),ne(),R(!0),N()){var tt=O(),at=tt.box,ft=tt.content;S.props.animation&&(RO([at,ft],Pt),jee([at,ft],"hidden"))}z(),H(),S.props.animation?N()&&$(Pt,S.unmount):S.unmount()}}function xe(me){P().addEventListener("mousemove",p),Uee(yk,p),p(me)}function Ve(){S.state.isVisible&&S.hide(),S.state.isMounted&&(St(),te().forEach(function(me){me._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),zO=zO.filter(function(me){return me!==S}),S.state.isMounted=!1,B("onHidden",[S]))}function Qe(){!S.state.isDestroyed&&(S.clearDelayTimeouts(),S.unmount(),Se(),delete e._tippy,S.state.isDestroyed=!0,B("onDestroy",[S]))}}function Vy(e,t){t===void 0&&(t={});var n=Ys.plugins.concat(t.plugins||[]);j6e();var r=Object.assign({},t,{plugins:n}),a=z6e(e),o=a.reduce(function(i,l){var s=l&&n8e(l,r);return s&&i.push(s),i},[]);return gk(e)?o[0]:o}Vy.defaultProps=Ys,Vy.setDefaultProps=q6e,Vy.currentInput=Bu,Object.assign({},xee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Vy.setDefaultProps({render:ete});class r8e{constructor({editor:t,element:n,view:r,tippyOptions:a={},updateDelay:o=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:l,state:s,from:u,to:c})=>{const{doc:d,selection:h}=s,{empty:v}=h,p=!d.textBetween(u,c).length&&yO(s.selection),m=this.element.contains(document.activeElement);return!(!(l.hasFocus()||m)||v||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var s;if(this.preventHide){this.preventHide=!1;return}l?.relatedTarget&&!((s=this.element.parentNode)===null||s===void 0)&&s.contains(l.relatedTarget)||l?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,s)=>{const u=!s?.selection.eq(l.state.selection),c=!s?.doc.eq(l.state.doc);!u&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,u,c,s)},this.updateDelay))},this.updateHandler=(l,s,u,c)=>{var d,h,v;const{state:p,composing:m}=l,{selection:g}=p;if(m||!s&&!u)return;this.createTooltip();const{ranges:y}=g,b=Math.min(...y.map(S=>S.$from.pos)),w=Math.max(...y.map(S=>S.$to.pos));if(!(!((d=this.shouldShow)===null||d===void 0)&&d.call(this,{editor:this.editor,element:this.element,view:l,state:p,oldState:c,from:b,to:w}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((v=this.tippyOptions)===null||v===void 0?void 0:v.getReferenceClientRect)||(()=>{if(pee(p.selection)){let S=l.nodeDOM(b);if(S){const _=S.dataset.nodeViewWrapper?S:S.querySelector("[data-node-view-wrapper]");if(_&&(S=_.firstChild),S)return S.getBoundingClientRect()}}return mee(l,b,w)})}),this.show()},this.editor=t,this.element=n,this.view=r,this.updateDelay=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=Vy(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){const{state:r}=t,a=r.selection.from!==r.selection.to;if(this.updateDelay>0&&a){this.handleDebouncedUpdate(t,n);return}const o=!n?.selection.eq(t.state.selection),i=!n?.doc.eq(t.state.doc);this.updateHandler(t,o,i,n)}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const tte=e=>new Er({key:typeof e.pluginKey=="string"?new ba(e.pluginKey):e.pluginKey,view:t=>new r8e({view:t,...e})});or.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[tte({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class a8e{getTextContent(t){return fee(t,{textSerializers:gO(this.editor.schema)})}constructor({editor:t,element:n,view:r,tippyOptions:a={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:i,state:l})=>{const{selection:s}=l,{$anchor:u,empty:c}=s,d=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent&&u.parent.childCount===0&&!this.getTextContent(u.parent);return!(!i.hasFocus()||!c||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:i})=>{var l;if(this.preventHide){this.preventHide=!1;return}i?.relatedTarget&&!((l=this.element.parentNode)===null||l===void 0)&&l.contains(i.relatedTarget)||i?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=i=>{this.blurHandler({event:i})},this.editor=t,this.element=n,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=Vy(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r,a,o;const{state:i}=t,{doc:l,selection:s}=i,{from:u,to:c}=s;if(!(n&&n.doc.eq(l)&&n.selection.eq(s))){if(this.createTooltip(),!(!((r=this.shouldShow)===null||r===void 0)&&r.call(this,{editor:this.editor,view:t,state:i,oldState:n}))){this.hide();return}(a=this.tippy)===null||a===void 0||a.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>mee(t,u,c))}),this.show()}}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const nte=e=>new Er({key:typeof e.pluginKey=="string"?new ba(e.pluginKey):e.pluginKey,view:t=>new a8e({view:t,...e})});or.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[nte({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const o8e=f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:a,pluginKey:o,shouldShow:i,tippyOptions:l}=e;a.registerPlugin(tte({updateDelay:r,editor:a,element:n.value,pluginKey:o,shouldShow:i,tippyOptions:l}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}});function rte(e){return f.customRef((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class i8e extends T4e{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=rte(this.view.state),this.reactiveExtensionStorage=rte(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const r=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=r),r}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const l8e=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=f.ref(),n=f.getCurrentInstance();return f.watchEffect(()=>{const r=e.editor;r&&r.options.element&&t.value&&f.nextTick(()=>{if(!t.value||!r.options.element.firstChild)return;const a=f.unref(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:a}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return f.h("div",{ref:e=>{this.rootEl=e}})}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:a,tippyOptions:o,shouldShow:i}=e;a.registerPlugin(nte({pluginKey:r,editor:a,element:n.value,tippyOptions:o,shouldShow:i}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}}),f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const ate=f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});class s8e{constructor(t,{props:n={},editor:r}){this.editor=r,this.component=f.markRaw(t),this.el=document.createElement("div"),this.props=f.reactive(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,n,r,a;return!((n=(t=this.renderedComponent.vNode)===null||t===void 0?void 0:t.component)===null||n===void 0)&&n.exposed?this.renderedComponent.vNode.component.exposed:(a=(r=this.renderedComponent.vNode)===null||r===void 0?void 0:r.component)===null||a===void 0?void 0:a.proxy}renderComponent(){let t=f.h(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&f.render(t,this.el),{vNode:t,destroy:()=>{this.el&&f.render(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){Object.entries(t).forEach(([n,r])=>{this.props[n]=r}),this.renderComponent()}destroy(){this.renderedComponent.destroy()}}const ote={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}};class u8e extends k4e{mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(a={})=>this.updateAttributes(a),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=f.ref(this.getDecorationClasses());const r=f.defineComponent({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:a=>{var o,i;return f.provide("onDragStart",n),f.provide("decorationClasses",this.decorationClasses),(i=(o=this.component).setup)===null||i===void 0?void 0:i.call(o,a,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new s8e(r,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(t<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,n,r){const a=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,i=this.decorations,l=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:o,oldDecorations:i,newNode:t,newDecorations:n,oldInnerDecorations:l,innerDecorations:r,updateProps:()=>a({node:t,decorations:n,innerDecorations:r})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=t,this.decorations=n,this.innerDecorations=r,a({node:t,decorations:n,innerDecorations:r})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function ite(e,t){return n=>{if(!n.editor.contentComponent)return{};const r=typeof e=="function"&&"__vccOpts"in e?e.__vccOpts:e;return new u8e(r,n,t)}}const c8e=f.defineComponent({__name:"BubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=qc(),r=f.reactive({maxWidth:"auto",zIndex:20,appendTo:"parent"}),a=f.computed(()=>{const s=t.editor.state.selection,u=l(),c=s.node?.type.name==="image",d=s.node?.type.name==="video",h=s instanceof Rt;if(u)return"link";if(c)return"image";if(d)return"video";if(h)return"text"}),o=f.computed(()=>{const{extensions:s=[]}=t.editor.extensionManager,u=s.find(d=>d.name==="base-kit");if(!u)return{};const{button:c}=u.options?.bubble??{};return c?c({editor:t.editor,extension:u,t:f.unref(n)}):{}}),i=f.computed(()=>a.value?f.unref(o)?.[a.value]??[]:[]);function l(){const{schema:s}=t.editor,u=s.marks.link;return u?t.editor.isActive(u.name):!1}return(s,u)=>{const c=Ma,d=Fc,h=Au,v=ml;return f.withDirectives((f.openBlock(),f.createBlock(f.unref(o8e),{editor:s.editor,"tippy-options":r},{default:f.withCtx(()=>[f.createVNode(v,{class:"vuetify-pro-tiptap-editor__menu-bubble"},{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex pa-0"},{default:f.withCtx(()=>[f.createVNode(d,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,(p,m)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:m},[p.type==="divider"?(f.openBlock(),f.createBlock(c,{key:0,vertical:"",class:"mx-1 me-2"})):(f.openBlock(),f.createBlock(f.resolveDynamicComponent(p.component),f.mergeProps({key:1,ref_for:!0},p.componentProps,{editor:s.editor,disabled:s.disabled||p.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(p.componentSlots,(g,y,b)=>({name:`${y}`,fn:f.withCtx(w=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(g),f.mergeProps({ref_for:!0},w?.props),null,16))])}))]),1040,["editor","disabled"]))],64))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["editor","tippy-options"])),[[f.vShow,i.value.length>0]])}}}),d8e=f.defineComponent({__name:"TiptapToolbar",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=qc(),r=f.computed(()=>{const a=[...t.editor.extensionManager.extensions].sort((i,l)=>{const s=i.options.sort??-1,u=l.options.sort??-1;return s-u});let o=[];for(const i of a){const{button:l,divider:s=!1,spacer:u=!1}=i.options;if(!l||!xFe(l))continue;const c=l({editor:t.editor,extension:i,t:f.unref(n)});if(Array.isArray(c)){const d=c.map((h,v)=>({button:h,divider:v===c.length-1?s:!1,spacer:v===0?u:!1}));o=[...o,...d];continue}o.push({button:c,divider:s,spacer:u})}return o});return(a,o)=>{const i=zs,l=Ma,s=Fc;return f.openBlock(),f.createBlock(s,f.mergeProps(a.$attrs,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"}),{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.value,(u,c)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:c},[u.spacer?(f.openBlock(),f.createBlock(i,{key:0})):f.createCommentVNode("",!0),(f.openBlock(),f.createBlock(f.resolveDynamicComponent(u.button.component),f.mergeProps({ref_for:!0},u.button.componentProps,{editor:a.editor,disabled:a.disabled||u.button.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(u.button.componentSlots,(d,h,v)=>({name:`${h}`,fn:f.withCtx(p=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(d),f.mergeProps({ref_for:!0},p?.props),null,16))])}))]),1040,["editor","disabled"])),u.divider?(f.openBlock(),f.createBlock(l,{key:1,vertical:"",class:"mx-1 me-2"})):f.createCommentVNode("",!0)],64))),128))]),_:1},16)}}}),f8e={class:"text-overline me-4"},h8e={class:"text-overline"},lte=f.defineComponent({__name:"VuetifyTiptap",props:{modelValue:{default:""},markdownTheme:{type:[String,Boolean],default:void 0},output:{default:"html"},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:void 0},hideToolbar:{type:Boolean,default:!1},disableToolbar:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},removeDefaultWrapper:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:void 0},maxHeight:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},errorMessages:{default:()=>[]}},emits:["enter","change","update:modelValue","update:markdownTheme"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=f.useAttrs(),i=bv(),{state:l,isFullscreen:s}=LFe(),{markdownThemeStyle:u}=y7(f.computed(()=>r.markdownTheme),w=>{a("update:markdownTheme",w)}),c=f.computed(()=>{const w=yFe(r.extensions,l.extensions,"name");return[...l.extensions.map((S,_)=>{const x=r.extensions.find(T=>T.name===S.name);return x?S.configure(x.options):S}),...w].map((S,_)=>S.configure({sort:_}))}),d=new i8e({content:r.modelValue,editorProps:{handleKeyDown:Fw(function(w,S){return S.key==="Enter"&&o.enter&&!S.shiftKey?(a("enter"),!0):!1},qL)},onUpdate:Fw(({editor:w})=>{const S=g(w,r.output);a("update:modelValue",S),a("change",{editor:w,output:S})},qL),extensions:f.unref(c),autofocus:!1,editable:!r.disabled,injectCSS:!0}),{t:h}=qc(),v=f.computed(()=>dy(r.dark)?r.dark:dy(i.current.value.dark)?i.current.value.dark:!1),p=f.computed(()=>[{__dark:f.unref(v),...f.unref(u)},r.editorClass]),m=f.computed(()=>{const w=zw(r.maxWidth),S={maxWidth:w,width:w?"100%":void 0,margin:w?"0 auto":void 0,backgroundColor:f.unref(v)?"#1E1E1E":"#FFFFFF"};if(f.unref(s))return{height:"100%",overflowY:"auto",...S};const _=zw(r.minHeight),x=zw(r.maxHeight);return{minHeight:_,maxHeight:x,overflowY:"auto",...S}});function g(w,S){return r.removeDefaultWrapper?S==="html"?w.isEmpty?"":w.getHTML():S==="json"?w.isEmpty?{}:w.getJSON():S==="text"?w.isEmpty?"":w.getText():"":S==="html"?w.getHTML():S==="json"?w.getJSON():S==="text"?w.getText():""}const y=Fw(w=>{if(!d)return;const S=g(d,r.output);if(bFe(S,w))return;const{from:_,to:x}=d.state.selection;d.commands.setContent(w,!1),d.commands.setTextSelection({from:_,to:x})},E2e),b=w=>d?.setEditable(!w);return f.watch(()=>r.modelValue,y),f.watch(()=>r.disabled,b),f.onUnmounted(()=>d?.destroy()),t({editor:d}),(w,S)=>{const _=WN,x=Ma,T=zs,A=Fc,E=ml,I=to,M=kL;return f.unref(d)?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["vuetify-pro-tiptap",{dense:w.dense}])},[f.createVNode(M,{theme:v.value?"dark":"light"},{default:f.withCtx(()=>[w.hideBubble?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(c8e,{key:0,editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.createVNode(I,{class:"pt-0","hide-details":"auto","error-messages":w.errorMessages},{default:f.withCtx(()=>[f.createVNode(E,f.mergeProps({flat:w.flat,outlined:w.outlined,color:v.value?"grey-darken-4":"grey-lighten-4"},w.$attrs,{style:{borderColor:w.$attrs["error-messages"]?"#ff5252":void 0,width:"100%"},class:["vuetify-pro-tiptap-editor",{"vuetify-pro-tiptap-editor--fullscreen":f.unref(s)}]}),{default:f.withCtx(()=>[w.label&&!f.unref(s)?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(_,{class:f.normalizeClass(v.value?"bg-grey-darken-3":"bg-grey-lighten-3")},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(w.label),1)]),_:1},8,["class"]),f.createVNode(x)],64)):f.createCommentVNode("",!0),w.hideToolbar?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(d8e,{key:1,class:"vuetify-pro-tiptap-editor__toolbar",editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.renderSlot(w.$slots,"editor",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d),props:{class:"vuetify-pro-tiptap-editor__content","data-testid":"value"}})),()=>[f.createVNode(f.unref(l8e),{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",p.value]),style:f.normalizeStyle(m.value),editor:f.unref(d),"data-testid":"value"},null,8,["class","style","editor"])]),f.renderSlot(w.$slots,"bottom",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d)})),()=>[f.createVNode(A,{class:"px-4",density:"compact",flat:""},{default:f.withCtx(()=>[f.createVNode(T),f.unref(CFe)(f.unref(d),"characterCount")?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("span",f8e,f.toDisplayString(f.unref(d).storage.characterCount.words())+" "+f.toDisplayString(f.unref(h)("editor.words")),1),f.createElementVNode("span",h8e,f.toDisplayString(f.unref(d).storage.characterCount.characters())+" "+f.toDisplayString(f.unref(h)("editor.characters")),1)],64)):f.createCommentVNode("",!0)]),_:1})])]),_:3},16,["flat","outlined","color","style","class"])]),_:3},8,["error-messages"])]),_:3},8,["theme"])],2)):f.createCommentVNode("",!0)}}}),v8e={a:["href","title","target"],span:["style"],blockquote:["class","style"],p:["class","style"],hr:[],pre:[],code:[],strong:[],img:["src","alt","title","width","height","style","data-display"],label:["contenteditable"],input:["type","value","checked"],div:["class","style"],iframe:["src","allowfullscreen","frameborder","width","height"],em:[],s:[],mark:[],h1:["class","style"],h2:["class","style"],h3:["class","style"],h4:["class","style"],h5:["class","style"],h6:["class","style"],ul:["class","data-type"],li:["class","data-checked","itemtypename"],ol:[],u:[],table:["class","style"],colgroup:[],col:["style"],tbody:["class","style"],tr:["class","style"],th:["class","style","colspan","rowspan"],td:["class","style","colspan","rowspan"],br:[]},p8e=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),m8e=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var WO;const g8e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),y8e=(WO=String.fromCodePoint)!==null&&WO!==void 0?WO:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function b8e(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=g8e.get(e))!==null&&t!==void 0?t:e}var io;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(io||(io={}));const w8e=32;var Wf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Wf||(Wf={}));function GO(e){return e>=io.ZERO&&e<=io.NINE}function S8e(e){return e>=io.UPPER_A&&e<=io.UPPER_F||e>=io.LOWER_A&&e<=io.LOWER_F}function x8e(e){return e>=io.UPPER_A&&e<=io.UPPER_Z||e>=io.LOWER_A&&e<=io.LOWER_Z||GO(e)}function C8e(e){return e===io.EQUALS||x8e(e)}var lo;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(lo||(lo={}));var Gf;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Gf||(Gf={}));class _8e{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=lo.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Gf.Strict}startEntity(t){this.decodeMode=t,this.state=lo.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case lo.EntityStart:return t.charCodeAt(n)===io.NUM?(this.state=lo.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=lo.NamedEntity,this.stateNamedEntity(t,n));case lo.NumericStart:return this.stateNumericStart(t,n);case lo.NumericDecimal:return this.stateNumericDecimal(t,n);case lo.NumericHex:return this.stateNumericHex(t,n);case lo.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|w8e)===io.LOWER_X?(this.state=lo.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=lo.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(i===io.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Gf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Wf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Wf.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case lo.NamedEntity:return this.result!==0&&(this.decodeMode!==Gf.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lo.NumericDecimal:return this.emitNumericEntity(0,2);case lo.NumericHex:return this.emitNumericEntity(0,3);case lo.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lo.EntityStart:return 0}}}function ste(e){let t="";const n=new _8e(e,r=>t+=y8e(r));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){t+=r.slice(o,i),n.startEntity(a);const s=n.write(r,i+1);if(s<0){o=i+n.end();break}o=i+s,i=s===0?o+1:o}const l=t+r.slice(o);return t="",l}}function T8e(e,t,n,r){const a=(t&Wf.BRANCH_LENGTH)>>7,o=t&Wf.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const s=r-o;return s<0||s>=a?-1:e[n+s]-1}let i=n,l=i+a-1;for(;i<=l;){const s=i+l>>>1,u=e[s];if(ur)l=s-1;else return e[s+a]}return-1}const k8e=ste(p8e);ste(m8e);function A8e(e,t=Gf.Legacy){return k8e(e,t)}var Zr;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Zr||(Zr={}));var $l;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})($l||($l={}));const ute=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,E8e=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,I8e=new Map([[126,$l.Element],[94,$l.Start],[36,$l.End],[42,$l.Any],[33,$l.Not],[124,$l.Hyphen]]),M8e=new Set(["has","not","matches","is","where","host","host-context"]);function D8e(e){switch(e.type){case Zr.Adjacent:case Zr.Child:case Zr.Descendant:case Zr.Parent:case Zr.Sibling:case Zr.ColumnCombinator:return!0;default:return!1}}const V8e=new Set(["contains","icontains"]);function P8e(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function mS(e){return e.replace(E8e,P8e)}function UO(e){return e===39||e===34}function cte(e){return e===32||e===9||e===10||e===12||e===13}function N8e(e){const t=[],n=dte(t,`${e}`,0);if(n0&&n0&&D8e(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(h){if(r.length>0&&r[r.length-1].type===Zr.Descendant){r[r.length-1].type=h;return}s(),r.push({type:h})}function c(h,v){r.push({type:Zr.Attribute,name:h,action:v,value:a(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===Zr.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(o(0),t.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var fte=e=>A8e(e);function L8e(e,t,n,r){if(typeof t=="function")return t({props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let a=!0,o;if(t?t.toLowerCase()==="fragment"?(o=e.document.createDocumentFragment(),a=!1):o=e.document.createElement(t):o=e.document.createElement("div"),n&&a){const i=o;for(let[l,s]of Object.entries(n)){l=l.toString();const u=l.toLowerCase();u==="classname"?i.className=s:u==="on"?Object.entries(s).forEach(([c,d])=>{i.setAttribute(`on${c}`,String(d))}):s!==!1&&s!=null&&(s===!0?i.setAttribute(l,l):i.setAttribute(l,s.toString()))}}if(r)for(const i of r){const l=Array.isArray(i)?[...i]:[i];for(const s of l)s&&s!==!1&&s!=null&&(typeof s!="object"?o.appendChild(e.document.createTextNode(s.toString())):o.appendChild(s))}return o}}function hte(e,t,...n){return typeof e=="object"&&(e="fragment",n=e.children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function O8e(e){return e.h=function(t,n,...r){const{tag:a,attrs:o,children:i}=hte(t,n,r);return L8e(e,a,o,i)},e.h}var vte={};function R8e(e){let t=vte[e];return t==null&&(t=N8e(e),vte[e]=t),t}function B8e(e,t,{debug:n=!1}={}){for(const r of R8e(e)){const a=(o,i)=>{let l=!1;for(const s of i){const{type:u,name:c,action:d,value:h,_ignoreCase:v=!0,data:p}=s;if(u==="attribute")d==="equals"?l=o.getAttribute(c)===h:d==="start"?l=!!o.getAttribute(c)?.startsWith(h):d==="end"?l=!!o.getAttribute(c)?.endsWith(h):d==="element"?c==="class"?l=o.classList.contains(h):l=!!o.getAttribute(c)?.includes(h):d==="exists"?l=o.hasAttribute(c):d==="any"?l=!!o.getAttribute(c)?.includes(h):console.warn("Unknown CSS selector action",d);else if(u==="tag")l=o.tagName===c.toUpperCase();else if(u==="universal")l=!0;else if(u==="pseudo"){if(c==="not"){let m=!0;p.forEach(g=>{a(o,g)||(m=!1)}),l=!m}}else console.warn("Unknown CSS selector type",u,e,i);if(!l)break}return l};if(a(t,r))return!0}return!1}var F8e=Symbol.for("nodejs.util.inspect.custom"),pte={fontWeight:"bold"},mte={fontStyle:"italic"},gte={backgroundColor:"rgb(255, 250, 165)"},yte={textDecorations:"underline"},jO={textDecorations:"line-through"},H8e={b:pte,strong:pte,em:mte,i:mte,mark:gte,u:yte,a:yte,s:jO,del:jO,ins:gte,strike:jO};function bte(e){return e.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(t,n)=>n.toUpperCase())}var ld=class uP{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(t=!1){const n=new this.constructor;return t&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(t=>t._parentNode=this)}insertBefore(t,n){if(t!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,t),this._fixChildNodesParent()}}appendChild(t){if(t!=null){if(t===this){console.warn("Cannot appendChild to self");return}if(t instanceof XO&&console.warn("No defined how to append a document to a node!",t),t instanceof KO)for(const n of[...t._childNodes])this.appendChild(n);else if(Array.isArray(t))for(const n of[...t])this.appendChild(n);else if(t instanceof uP)t.remove(),this._childNodes.push(t);else try{const n=typeof t=="string"?t:JSON.stringify(t,null,2);this._childNodes.push(new Py(n))}catch(n){console.error(`The data ${t} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(t){const n=this._childNodes.indexOf(t);n>=0&&(t._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...t){this._childNodes=t.map(n=>typeof n=="string"?new Py(n):n.remove()),this._fixChildNodesParent()}replaceWith(...t){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(t=t.map(a=>typeof a=="string"?new Py(a):a.remove()),n._childNodes.splice(r,1,...t),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const t=this._indexInParent();return t!=null&&this.parentNode.childNodes[t+1]||null}get previousSibling(){const t=this._indexInParent();return t>0&&this.parentNode.childNodes[t-1]||null}flatten(){const t=[];this instanceof js&&t.push(this);for(const n of this._childNodes)t.push(...n.flatten());return t}flattenNodes(){const t=[];t.push(this);for(const n of this._childNodes)t.push(...n.flattenNodes());return t}render(){return""}get textContent(){return this._childNodes.map(t=>t.textContent).join("")}set textContent(t){this._childNodes=[],t&&this.appendChild(new Py(t.toString()))}contains(t){return t===this?!0:this._childNodes.some(n=>n.contains(t))}get ownerDocument(){return this.nodeType===uP.DOCUMENT_NODE||this.nodeType===uP.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[F8e](){return`${this.constructor.name} "${this.render()}"`}};ld.ELEMENT_NODE=1,ld.TEXT_NODE=3,ld.CDATA_SECTION_NODE=4,ld.PROCESSING_INSTRUCTION_NODE=7,ld.COMMENT_NODE=8,ld.DOCUMENT_NODE=9,ld.DOCUMENT_TYPE_NODE=10,ld.DOCUMENT_FRAGMENT_NODE=11;var Uf=ld,Py=class extends Uf{get nodeType(){return Uf.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(e=""){super(),this._text=e}render(){const e=this.parentNode?.tagName;return e==="SCRIPT"||e==="STYLE"?this._text:YO(this._text)}cloneNode(e=!1){const t=super.cloneNode(e);return t._text=this._text,t}},wte=class extends Uf{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return B8e(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){return this.matches(e)?this:this.parentNode==null?null:this.parentNode?.parent(e)}handle(e,t){let n=0;for(const r of this.querySelectorAll(e))t(r,n++)}},js=class extends wte{get nodeType(){return Uf.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{}}cloneNode(e=!1){const t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return Object.entries(this._attributes).map(([e,t])=>({name:e,value:t}))}get attributesObject(){return{...this._attributes}}_findAttributeName(e){const t=e.toLowerCase();return Object.keys(this._attributes).find(n=>t===n.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=void 0,this._dataset=void 0}getAttribute(e){const t=this._findAttributeName(e),n=t?this._attributes[t]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]!=null:!1}get style(){if(this._styles==null){const e={};let t=0;const n=this.getAttribute("style");if(n){let r;const a=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=a.exec(n);){++t;const o=r[1],i=r[2].trim();e[o]=i,e[bte(o)]=i}}this._styles={get length(){return t},getPropertyValue(r){return e[r]},...H8e[this.tagName.toLowerCase()],...e}}return this._styles}get dataset(){if(this._dataset==null){const e={};for(const[t,n]of Object.entries(this._attributes))t.startsWith("data-")&&(e[t.slice(5)]=n,e[bte(t.slice(5))]=n);this._dataset=e}return this._dataset}get tagName(){return this._nodeName}setTagName(e){this._nodeName=e.toUpperCase()}get id(){return this._attributes.id||null}set id(e){e==null?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){e==null?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();const t=this.flatten();return e!=="*"?t.filter(n=>n.tagName===e):t}setInnerHTML(e){}get innerHTML(){return this._childNodes.map(e=>e.render(bk)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(wk)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(t=>!!t).join(" "):typeof e=="object"&&(e=Object.entries(e).filter(([t,n])=>!!n).map(([t,n])=>t).join(" ")),this._attributes.class=e}get classList(){const e=String(this.className??"").trim().split(/\s+/g)||[];return{contains(t){return e.includes(t)},add:t=>{e.includes(t)||(e.push(t),this.className=e)},remove:t=>{const n=e.indexOf(t);n>=0&&(e.splice(n,1),this.className=e)}}}render(e=wk){return e(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(t=>t.render(e)).join(""))}},Ste=class H_e extends Uf{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return H_e.DOCUMENT_TYPE_NODE}render(){return""}},KO=class z_e extends wte{get nodeType(){return Uf.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(t=wk){return this._childNodes.map(n=>n.render(t)||[]).join("")}get innerHTML(){return this._childNodes.map(t=>t.render(bk)).join("")}createElement(t,n={}){return new js(t,n)}createDocumentFragment(){return new z_e}createTextNode(t){return new Py(t)}},XO=class extends KO{get nodeType(){return Uf.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=wk){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},xte=class extends XO{constructor(e=!1){if(super(),this.docType=new Ste,!e){const t=new js("html"),n=new js("body"),r=new js("head"),a=new js("title");t.appendChild(r),r.appendChild(a),t.appendChild(n),this.appendChild(t)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new js("html"),this.appendChild(t)),e=new js("body"),t.appendChild(t)}return e}get title(){return this.querySelector("title")?.textContent||""}set title(e){const t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new js("html"),this.appendChild(t)),e=new js("head"),t.insertBefore(t)}return e}};function z8e(){return new XO}function W8e(){return new xte}var Cte=z8e();O8e({document:Cte});var G8e={},U8e=G8e.hasOwnProperty;function _te(e,t){return U8e.call(e,t)}var Tte=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function kte(e,t,n={},r){const a=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),o=[];if(t=t.replace(/__/g,":"),t!=="noop"&&t!==""){t!=="cdata"?o.push(`<${t}`):o.push("l[s]!=null).map(s=>{let u=l[s];return u=typeof u=="number"?`${u}px`:u,`${s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${u}`}).join(";")}"`):l!==!1&&l!=null&&o.push(` ${i}="${YO(l.toString())}"`)}if(t!=="cdata"){if(e&&!a)return o.push(" />"),o.join("");o.push(">")}if(!e&&Tte.includes(t))return o.join("")}if(a){if(typeof r=="string")o.push(r);else if(r&&r.length>0){for(let i of r)if(i!=null&&i!==!1){Array.isArray(i)||(i=[i]);for(const l of i)l.startsWith("<")&&l.endsWith(">")||t==="script"||t==="style"?o.push(l):o.push(YO(l.toString()))}}}return n.html&&o.push(n.html),t!=="noop"&&t!==""&&(t!=="cdata"?o.push(``):o.push("]]>")),o.join("")}function bk(e,t,...n){const{tag:r,attrs:a,children:o}=hte(e,t,n);return kte(!1,r,a,o)}var wk=kte.bind(null,!1);bk.firstLine="",bk.html=!0;var Y8e=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,j8e=/^<\/([^>\s]+)[^>]*>/m,K8e=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,X8e=/\s*\/\s*>\s*$/m,Z8e=class{constructor(e={}){this.attrRe=Y8e,this.endTagRe=j8e,this.startTagRe=K8e,this.defaults={ignoreWhitespaceText:!1},e.scanner&&(this.scanner=e.scanner),this.options=Object.assign({},this.defaults,e)}parse(e){let t=!1,n,r,a;for(;e.length;){if(e.substring(0,4)===""),n!==-1?(this.scanner.comment(e.substring(4,n)),e=e.substring(n+3),t=!1):t=!0;else if(e.substring(0,2)==="{const[a,o,i,l,s,u,c,d]=r;n[o]=d??u??l??!0}),n}};function J8e(e){if(typeof e!="string")throw console.error("parseHTML requires string, found",e),new Error("parseHTML requires string");const t=e.indexOf("/g,v=/"/g,p=/"/g,m=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,S=/u\s*r\s*l\s*\(.*/gi;function _(L){return L.replace(v,""")}function x(L){return L.replace(p,'"')}function T(L){return L.replace(m,function(R,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function A(L){return L.replace(g,":").replace(y," ")}function E(L){for(var R="",B=0,z=L.length;B",z);if(H===-1)break;B=H+3}return R}function O(L){var R=L.split("");return R=R.filter(function(B){var z=B.charCodeAt(0);return z===127?!1:z<=31?z===10||z===13:!0}),R.join("")}return Nr.whiteList=r(),Nr.getDefaultWhiteList=r,Nr.onTag=o,Nr.onIgnoreTag=i,Nr.onTagAttr=l,Nr.onIgnoreTagAttr=s,Nr.safeAttrValue=c,Nr.escapeHtml=u,Nr.escapeQuote=_,Nr.unescapeQuote=x,Nr.escapeHtmlEntities=T,Nr.escapeDangerHtml5Entities=A,Nr.clearNonPrintableCharacter=E,Nr.friendlyAttrValue=I,Nr.escapeAttrValue=M,Nr.onIgnoreTagStripAll=N,Nr.StripTagBody=D,Nr.stripCommentTag=P,Nr.stripBlankChar=O,Nr.attributeWrapSign='"',Nr.cssFilter=a,Nr.getDefaultCSSWhiteList=t,Nr}var Sk={},Fte;function Hte(){if(Fte)return Sk;Fte=1;var e=eR();function t(d){var h=e.spaceIndex(d),v;return h===-1?v=d.slice(1,-1):v=d.slice(1,h+1),v=e.trim(v).toLowerCase(),v.slice(0,1)==="/"&&(v=v.slice(1)),v.slice(-1)==="/"&&(v=v.slice(0,-1)),v}function n(d){return d.slice(0,2)===""||b===w-1){p+=v(d.slice(m,g)),_=d.slice(g,b+1),S=t(_),p+=h(g,p.length,S,_,n(_)),m=b+1,g=!1;continue}if(x==='"'||x==="'")for(var T=1,A=d.charAt(b-T);A.trim()===""||A==="=";){if(A==="="){y=x;continue e}A=d.charAt(b-++T)}}else if(x===y){y=!1;continue}}return m0;h--){var v=d[h];if(v!==" ")return v==="="?h:-1}}function u(d){return d[0]==='"'&&d[d.length-1]==='"'||d[0]==="'"&&d[d.length-1]==="'"}function c(d){return u(d)?d.substr(1,d.length-2):d}return Sk.parseTag=r,Sk.parseAttr=o,Sk}var tR,zte;function nWe(){if(zte)return tR;zte=1;var e=$O().FilterCSS,t=Bte(),n=Hte(),r=n.parseTag,a=n.parseAttr,o=eR();function i(d){return d==null}function l(d){var h=o.spaceIndex(d);if(h===-1)return{html:"",closing:d[d.length-2]==="/"};d=o.trim(d.slice(h+1,-1));var v=d[d.length-1]==="/";return v&&(d=o.trim(d.slice(0,-1))),{html:d,closing:v}}function s(d){var h={};for(var v in d)h[v]=d[v];return h}function u(d){var h={};for(var v in d)Array.isArray(d[v])?h[v.toLowerCase()]=d[v].map(function(p){return p.toLowerCase()}):h[v.toLowerCase()]=d[v];return h}function c(d){d=s(d||{}),d.stripIgnoreTag&&(d.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),d.onIgnoreTag=t.onIgnoreTagStripAll),d.whiteList||d.allowList?d.whiteList=u(d.whiteList||d.allowList):d.whiteList=t.whiteList,this.attributeWrapSign=d.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,d.onTag=d.onTag||t.onTag,d.onTagAttr=d.onTagAttr||t.onTagAttr,d.onIgnoreTag=d.onIgnoreTag||t.onIgnoreTag,d.onIgnoreTagAttr=d.onIgnoreTagAttr||t.onIgnoreTagAttr,d.safeAttrValue=d.safeAttrValue||t.safeAttrValue,d.escapeHtml=d.escapeHtml||t.escapeHtml,this.options=d,d.css===!1?this.cssFilter=!1:(d.css=d.css||{},this.cssFilter=new e(d.css))}return c.prototype.process=function(d){if(d=d||"",d=d.toString(),!d)return"";var h=this,v=h.options,p=v.whiteList,m=v.onTag,g=v.onIgnoreTag,y=v.onTagAttr,b=v.onIgnoreTagAttr,w=v.safeAttrValue,S=v.escapeHtml,_=h.attributeWrapSign,x=h.cssFilter;v.stripBlankChar&&(d=t.stripBlankChar(d)),v.allowCommentTag||(d=t.stripCommentTag(d));var T=!1;v.stripIgnoreTagBody&&(T=t.StripTagBody(v.stripIgnoreTagBody,g),g=T.onIgnoreTag);var A=r(d,function(E,I,M,N,D){var P={sourcePosition:E,position:I,isClosing:D,isWhite:Object.prototype.hasOwnProperty.call(p,M)},O=m(M,N,P);if(!i(O))return O;if(P.isWhite){if(P.isClosing)return"";var L=l(N),R=p[M],B=a(L.html,function(z,H){var G=o.indexOf(R,z)!==-1,j=y(M,z,H,G);return i(j)?G?(H=w(M,z,H,x),H?z+"="+_+H+_:z):(j=b(M,z,H,G),i(j)?void 0:j):j});return N="<"+M,B&&(N+=" "+B),L.closing&&(N+=" /"),N+=">",N}else return O=g(M,N,P),i(O)?S(N):O},S);return T&&(A=T.remove(A)),A},tR=c,tR}var Wte;function rWe(){return Wte||(Wte=1,function(e,t){var n=Bte(),r=Hte(),a=nWe();function o(l,s){var u=new a(s);return u.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=a,function(){for(var l in n)t[l]=n[l];for(var s in r)t[s]=r[s]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(ZO,ZO.exports)),ZO.exports}var aWe=rWe();const oWe=$8e(aWe),iWe=["innerHTML"],lWe=f.defineComponent({__name:"VuetifyViewer",props:{value:{default:""},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},markdownTheme:{type:[String,Boolean],default:void 0},xss:{type:[Boolean,Array],default:!0},xssOptions:{default:()=>v8e},extensions:{default:()=>[]}},setup(e){const t=e,{state:n}=bT(),r=bv(),{markdownThemeStyle:a}=y7(f.computed(()=>t.markdownTheme)),o=f.computed(()=>[...n.extensions,...t.extensions]),i=f.computed(()=>dy(t.dark)?t.dark:dy(r.current.value.dark)?r.current.value.dark:!1),l=f.computed(()=>({__dark:f.unref(i),dense:t.dense,view:!0,...f.unref(a)})),s=f.computed(()=>Hw(t.value)?t.value:q8e(t.value,f.unref(o))),u=f.computed(()=>{if(t.xss===!1)return f.unref(s);const c=f.unref(s).replace("https://youtu.be/","https://www.youtube.com/watch?v=").replace("watch?v=","embed/").replace("https://vimeo.com/","https://player.vimeo.com/video/"),d=t.xssOptions;return oWe(c,{whiteList:d,css:!1})});return(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",l.value]),style:{width:"100%"}},[f.renderSlot(c.$slots,"before"),f.createElementVNode("div",{class:"content",innerHTML:u.value},null,8,iWe),f.renderSlot(c.$slots,"after")],2))}}),sWe=or.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Er({key:new ba("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const a=this.options.limit;if(a==null||a===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>a){const i=o-a,l=0,s=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(l,s);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||a>r&&o>r&&o<=a)return!0;if(a>r&&o>r&&o>a||!t.getMeta("paste"))return!1;const i=t.selection.$head.pos,l=o-r,s=i-l,u=i;return t.deleteRange(s,u),!(this.storage.characters({node:t.doc})>r)}})]}}),uWe=Xr.create({name:"doc",topNode:!0,content:"block+"});function cWe(e={}){return new Er({view(t){return new dWe(t,e)}})}class dWe{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let o=i=>{this[a](i)};return t.dom.addEventListener(a,o),{name:a,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,a=this.editorView.dom,o=a.getBoundingClientRect(),i=o.width/a.offsetWidth,l=o.height/a.offsetHeight;if(n){let d=t.nodeBefore,h=t.nodeAfter;if(d||h){let v=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(v){let p=v.getBoundingClientRect(),m=d?p.bottom:p.top;d&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*l;r={left:p.left,right:p.right,top:m-g,bottom:m+g}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*i;r={left:d.left-h,right:d.left+h,top:d.top,bottom:d.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!s||s==document.body&&getComputedStyle(s).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=s.getBoundingClientRect(),h=d.width/s.offsetWidth,v=d.height/s.offsetHeight;u=d.left-s.scrollLeft*h,c=d.top-s.scrollTop*v}this.element.style.left=(r.left-u)/i+"px",this.element.style.top=(r.top-c)/l+"px",this.element.style.width=(r.right-r.left)/i+"px",this.element.style.height=(r.bottom-r.top)/l+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,o=typeof a=="function"?a(this.editorView,n,t):a;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=cq(this.editorView.state.doc,i,this.editorView.dragging.slice);l!=null&&(i=l)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const fWe=or.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[cWe(this.options)]}}),hWe=or.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new Er({key:new ba("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=t,o=[];if(!n||!r)return Ir.create(e,[]);let i=0;this.options.mode==="deepest"&&e.descendants((s,u)=>{if(!s.isText){if(!(a>=u&&a<=u+s.nodeSize-1))return!1;i+=1}});let l=0;return e.descendants((s,u)=>{if(s.isText||!(a>=u&&a<=u+s.nodeSize-1))return!1;if(l+=1,this.options.mode==="deepest"&&i-l>0||this.options.mode==="shallowest"&&l>1)return this.options.mode==="deepest";o.push(ko.node(u,u+s.nodeSize,{class:this.options.className}))}),Ir.create(e,o)}}})]}});class ra extends Xt{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return ra.valid(r)?new ra(r):Xt.near(r)}content(){return lt.empty}eq(t){return t instanceof ra&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ra(t.resolve(n.pos))}getBookmark(){return new nR(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!vWe(t)||!pWe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(t.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&ra.valid(t))return t;let a=t.pos,o=null;for(let i=t.depth;;i--){let l=t.node(i);if(n>0?t.indexAfter(i)0){o=l.child(n>0?t.indexAfter(i):t.index(i)-1);break}else if(i==0)return null;a+=n;let s=t.doc.resolve(a);if(ra.valid(s))return s}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Nt.isSelectable(o)){t=t.doc.resolve(a+o.nodeSize*n),r=!1;continue e}break}o=i,a+=n;let l=t.doc.resolve(a);if(ra.valid(l))return l}return null}}}ra.prototype.visible=!1,ra.findFrom=ra.findGapCursorFrom,Xt.jsonID("gapcursor",ra);class nR{constructor(t){this.pos=t}map(t){return new nR(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return ra.valid(n)?new ra(n):Xt.near(n)}}function vWe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function pWe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function mWe(){return new Er({props:{decorations:wWe,createSelectionBetween(e,t,n){return t.pos==n.pos&&ra.valid(n)?new ra(n):null},handleClick:yWe,handleKeyDown:gWe,handleDOMEvents:{beforeinput:bWe}}})}const gWe=sO({ArrowLeft:xk("horiz",-1),ArrowRight:xk("horiz",1),ArrowUp:xk("vert",-1),ArrowDown:xk("vert",1)});function xk(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,a,o){let i=r.selection,l=t>0?i.$to:i.$from,s=i.empty;if(i instanceof Rt){if(!o.endOfTextblock(n)||l.depth==0)return!1;s=!1,l=r.doc.resolve(t>0?l.after():l.before())}let u=ra.findGapCursorFrom(l,t,s);return u?(a&&a(r.tr.setSelection(new ra(u))),!0):!1}}function yWe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!ra.valid(r))return!1;let a=e.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&Nt.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new ra(r))),!0)}function bWe(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof ra))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let a=ze.empty;for(let i=r.length-1;i>=0;i--)a=ze.from(r[i].createAndFill(null,a));let o=e.state.tr.replace(n.pos,n.pos,new lt(a,0,0));return o.setSelection(Rt.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function wWe(e){if(!(e.selection instanceof ra))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ir.create(e.doc,[ko.widget(e.selection.head,t,{key:"gapcursor"})])}const SWe=or.create({name:"gapCursor",addProseMirrorPlugins(){return[mWe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=gn(At(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),xWe=Xr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",er(this.options.HTMLAttributes,e)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:a,storedMarks:o}=n;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,s=o||a.$to.parentOffset&&a.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&s&&i){const d=s.filter(h=>l.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),CWe=Xr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",er(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),_We=or.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Er({key:new ba("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,a=[];if(!n)return null;const o=this.editor.isEmpty;return e.descendants((i,l)=>{const s=r>=l&&r<=l+i.nodeSize,u=!i.isLeaf&&dk(i);if((s||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];o&&c.push(this.options.emptyEditorClass);const d=ko.node(l,l+i.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:l,hasAnchor:s}):this.options.placeholder});a.push(d)}return this.options.includeChildren}),Ir.create(e,a)}}})]}}),TWe=Xr.create({name:"text",group:"inline"}),kWe=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var r,a;const o=n.getAttribute("style"),i=(a=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||a===void 0?void 0:a.getAttribute("style");n.setAttribute("style",`${i};${o}`)})},AWe=zi.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&kWe(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",er(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(a=>a.type===this.type).some(a=>Object.values(a.attrs).some(o=>!!o))||e.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var EWe="M19,12H17V15H14V17H19V12M7,9H10V7H5V12H7V9M21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19V5A2,2 0 0,0 21,3M21,19H3V5H21V19Z",IWe="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",MWe="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",DWe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",VWe="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M11 8H9V10C9 11.1 8.1 12 7 12C8.1 12 9 12.9 9 14V16H11V18H9C7.9 18 7 17.1 7 16V15C7 13.9 6.1 13 5 13V11C6.1 11 7 10.1 7 9V8C7 6.9 7.9 6 9 6H11V8M19 13C17.9 13 17 13.9 17 15V16C17 17.1 16.1 18 15 18H13V16H15V14C15 12.9 15.9 12 17 12C15.9 12 15 11.1 15 10V8H13V6H15C16.1 6 17 6.9 17 8V9C17 10.1 17.9 11 19 11V13Z",PWe="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",NWe="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",LWe="M13.09 20H6L12 14L13.88 15.88C14.5 14.9 15.36 14.1 16.4 13.6L18 12V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V8L14 2H6C4.89 2 4 2.89 4 4V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.21 20.72 13.09 20M13 3.5L18.5 9H13V3.5M8 9C9.11 9 10 9.9 10 11S9.11 13 8 13 6 12.11 6 11 6.9 9 8 9M20 15V18H23V20H20V23H18V20H15V18H18V15H20Z",Gte="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z",OWe="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z",RWe="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z",BWe="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z",FWe="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",HWe="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z",zWe="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z",WWe="M3,7H9V13H3V7M3,3H21V5H3V3M21,7V9H11V7H21M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",GWe="M3,7H9V13H3V7M3,3H21V5H3V3M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",UWe="M15,7H21V13H15V7M3,3H21V5H3V3M13,7V9H3V7H13M9,11V13H3V11H9M3,15H17V17H3V15M3,19H21V21H3V19Z",YWe="M17,8H20V20H21V21H17V20H18V17H14L12.5,20H14V21H10V20H11L17,8M18,9L14.5,16H18V9M5,3H10C11.11,3 12,3.89 12,5V16H9V11H6V16H3V5C3,3.89 3.89,3 5,3M6,5V9H9V5H6Z",jWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z",KWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z",XWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z",ZWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z",JWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z",QWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z",qWe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M13,8H15.31L15.63,5H17.63L17.31,8H19.31L19.63,5H21.63L21.31,8H23V10H21.1L20.9,12H23V14H20.69L20.37,17H18.37L18.69,14H16.69L16.37,17H14.37L14.69,14H13V12H14.9L15.1,10H13V8M17.1,10L16.9,12H18.9L19.1,10H17.1Z",$We="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z",eGe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z",tGe="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z",nGe="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",rGe="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",aGe="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z",oGe="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z",iGe="M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z",lGe="M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z",sGe="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z",uGe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z",cGe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z",dGe="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z",fGe="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",hGe="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",vGe="M18 15V18H15V20H18V23H20V20H23V18H20V15H18M13.3 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V13.3C20.4 13.1 19.7 13 19 13C17.9 13 16.8 13.3 15.9 13.9L14.5 12L11 16.5L8.5 13.5L5 18H13.1C13 18.3 13 18.7 13 19C13 19.7 13.1 20.4 13.3 21Z",pGe="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z",mGe="M2,5.27L3.28,4L20,20.72L18.73,22L13.9,17.17L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L12.5,15.76L10.88,14.15C10.87,14.39 10.77,14.64 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C8.12,13.77 7.63,12.37 7.72,11L2,5.27M12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.79,8.97L9.38,7.55L12.71,4.22M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.2,10.54 16.61,12.5 16.06,14.23L14.28,12.46C14.23,11.78 13.94,11.11 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",Ute="M10.6 13.4A1 1 0 0 1 9.2 14.8A4.8 4.8 0 0 1 9.2 7.8L12.7 4.2A5.1 5.1 0 0 1 19.8 4.2A5.1 5.1 0 0 1 19.8 11.3L18.3 12.8A6.4 6.4 0 0 0 17.9 10.4L18.4 9.9A3.2 3.2 0 0 0 18.4 5.6A3.2 3.2 0 0 0 14.1 5.6L10.6 9.2A2.9 2.9 0 0 0 10.6 13.4M23 18V20H20V23H18V20H15V18H18V15H20V18M16.2 13.7A4.8 4.8 0 0 0 14.8 9.2A1 1 0 0 0 13.4 10.6A2.9 2.9 0 0 1 13.4 14.8L9.9 18.4A3.2 3.2 0 0 1 5.6 18.4A3.2 3.2 0 0 1 5.6 14.1L6.1 13.7A7.3 7.3 0 0 1 5.7 11.2L4.2 12.7A5.1 5.1 0 0 0 4.2 19.8A5.1 5.1 0 0 0 11.3 19.8L13.1 18A6 6 0 0 1 16.2 13.7Z",gGe="M19,13H5V11H19V13Z",yGe="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",bGe="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",wGe="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z",SGe="M9 7V17H15V15H11V7H9Z",xGe="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",CGe="M11 7C9.9 7 9 7.9 9 9V11C9 12.11 9.9 13 11 13H13V15H9V17H13C14.11 17 15 16.11 15 15V13C15 11.9 14.11 11 13 11H11V9H15V7H11Z",_Ge="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z",TGe="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z",kGe="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z",AGe="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z",EGe="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z",IGe="M18,14H20V17H23V19H20V22H18V19H15V17H18V14M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",MGe="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",DGe="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z",VGe="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z",PGe="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z",NGe="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z",LGe="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",OGe="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z",RGe="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z";const BGe={bold:FWe,italic:tGe,underline:dGe,strike:sGe,color:RGe,highlight:zWe,heading:qWe,textAlign:Gte,fontFamily:YWe,fontSize:lGe,subscript:uGe,superscript:cGe,bulletList:nGe,orderedList:aGe,taskList:rGe,indent:eGe,outdent:$We,link:Ute,fileImagePlus:LWe,image:vGe,video:OGe,table:_Ge,blockquote:iGe,horizontalRule:gGe,code:PWe,codeBlock:VWe,clear:HWe,undo:LGe,redo:wGe,markdownTheme:bGe,fullscreen:fGe,h1:jWe,h2:KWe,h3:XWe,h4:ZWe,h5:JWe,h6:QWe,p:oGe,left:RWe,center:Gte,right:BWe,justify:OWe,circle:MWe,close:DWe,fullscreenExit:hGe,linkVariant:Ute,linkVariantOff:mGe,openInNew:yGe,formatFloatLeft:WWe,formatFloatNone:GWe,formatFloatRight:UWe,sizeS:CGe,sizeM:xGe,sizeL:SGe,aspectRatio:EWe,delete:NWe,text:NGe,htmlView:pGe,tablePlus:IGe,tableRemove:MGe,tableColumnPlusAfter:TGe,tableColumnPlusBefore:kGe,tableColumnRemove:AGe,tableRowPlusAfter:DGe,tableRowPlusBefore:VGe,tableRowRemove:PGe,tableMergeCells:EGe,check:IWe};function Jr(e){if(e)return`svg:${BGe[e]}`}const zn=f.defineComponent({__name:"ActionButton",props:{icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},color:{default:void 0},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,n=f.computed(()=>Jr(t.icon));return(r,a)=>{const o=Ct,i=Fv,l=_t;return f.openBlock(),f.createBlock(l,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":r.isActive?.()}]),density:"comfortable",size:"small",disabled:r.disabled,color:r.color,icon:"",onClick:r.action},{default:f.withCtx(()=>[n.value?(f.openBlock(),f.createBlock(o,{key:0,icon:n.value},null,8,["icon"])):f.createCommentVNode("",!0),f.createVNode(i,{eager:!1,activator:"parent",location:"top",text:t.tooltip},null,8,["text"]),f.renderSlot(r.$slots,"default")]),_:3},8,["disabled","color","class","onClick"])}}}),FGe=e=>{const t=["float-left","float-none","float-right"],n=["formatFloatLeft","formatFloatNone","formatFloatRight"],r=["left","inline","right"];return t.map((a,o)=>({type:a,component:zn,componentProps:{tooltip:`editor.image.${a.replace("-",".")}.tooltip`,icon:n[o],action:()=>e.chain().focus().updateImage({display:r[o]}).run(),isActive:()=>e.isActive("image",{display:r[o]})}}))},HGe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`image-${r}`,component:zn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateImage({width:mT[r],height:null}).run(),isActive:()=>e.isActive("image",{width:mT[r]})}}))},zGe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`video-${r}`,component:zn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateVideo({width:gT[r]}).run(),isActive:()=>e.isActive("video",{width:gT[r]})}}))},WGe=e=>[...FGe(e),...HGe(e),...zGe(e),{type:"image-aspect-ratio",component:zn,componentProps:{tooltip:"editor.image.dialog.form.aspectRatio",icon:"aspectRatio",action:()=>{const t=e.isActive("image",{lockAspectRatio:!0});e.chain().focus().updateImage({lockAspectRatio:!t,height:t?void 0:null}).run()},isActive:()=>e.isActive("image",{lockAspectRatio:!0})}},{type:"unlink",component:zn,componentProps:{tooltip:"editor.link.unlink.tooltip",icon:"linkVariantOff",action:()=>{const{href:t}=e.getAttributes("link");e.chain().extendMarkRange("link",{href:t}).unsetLink().focus().run()}}},{type:"link-open",component:zn,componentProps:{tooltip:"editor.link.open",icon:"openInNew",action:()=>{const{href:t}=e.getAttributes("link");Hw(t)&&t&&window.open(t,"_blank")}}},{type:"remove",component:zn,componentProps:{tooltip:"editor.remove",icon:"delete",action:()=>{const{state:t,dispatch:n}=e.view;JT(t,n)}}}],GGe=(e,t,{editor:n,extension:r,t:a})=>{const{extensions:o=[]}=n.extensionManager,i={};for(const l of Object.keys(e)){const s=e[l];if(!s)continue;const u=[];for(const h of s){if(h==="divider"){if(u[u.length-1]?.type==="divider")continue;u.push({type:"divider",component:void 0,componentProps:{}});continue}const v=t.find(m=>m.type===h);if(v){u.push({...v,componentProps:{...v.componentProps,tooltip:v.componentProps.tooltip?a(v.componentProps.tooltip):void 0},componentSlots:v.componentSlots});continue}const p=o.find(m=>m.name===h);if(p){const{button:m}=p.options,g=m({editor:n,extension:p,t:a});u.push({type:h,component:g.component,componentProps:g.componentProps,componentSlots:g.componentSlots});continue}}const c=u[u.length-1],d=u[0];c?.type==="divider"&&u.pop(),d?.type==="divider"&&u.shift(),i[l]=u}return i},UGe=Xr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",er(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});class YGe{globalAttributes=["class","style","id","data-*"];isInitialized=!1;registerGlobalAttributes(t){t&&t.length>0&&(this.globalAttributes=[...t],this.isInitialized=!0,console.log("Global allowedAttributes registered:",this.globalAttributes))}getGlobalAttributes(){return[...this.globalAttributes]}isGlobalInitialized(){return this.isInitialized}reset(){this.globalAttributes=["class","style","id"],this.isInitialized=!1}}const rR=new YGe;function jGe(e){rR.registerGlobalAttributes(e)}function Yte(){return rR.getGlobalAttributes()}function KGe(){return rR.isGlobalInitialized()}function Eo(e,t,n){let r;n&&n.length>0?r=n:r=Yte(),console.log(`Adding common attributes to ${t}:`,{local:n,global:Yte(),final:r,globalInitialized:KGe()});const a=e?{...e}:{};return r.forEach(o=>{a[o]||(a[o]={default:null,parseHTML:i=>i.getAttribute(o)||null,renderHTML:i=>i[o]?{[o]:i[o]}:{}})}),a}const jte=UGe.extend({addAttributes(){return Eo(this.parent?.(),"paragraph",this.options.allowedAttributes)}}),XGe=or.create({name:"base-kit",addOptions(){return{...this.parent?.(),bubble:{list:V2e,defaultBubbleList:WGe,button:({editor:e,extension:t,t:n})=>{const{list:r={},defaultBubbleList:a}=t.options?.bubble??{},o=a?.(e)??[];return GGe(r,o,{editor:e,extension:t,t:n})}}}},addExtensions(){const e=[];return this.options.placeholder!==!1&&e.push(_We.configure({placeholder:"",...this.options.placeholder})),this.options.focus!==!1&&e.push(hWe.configure({className:"focus",...this.options.focus})),this.options.document!==!1&&e.push(uWe.configure()),this.options.text!==!1&&e.push(TWe.configure()),this.options.gapcursor!==!1&&e.push(SWe.configure()),this.options.dropcursor!==!1&&e.push(fWe.configure(this.options.dropcursor)),this.options.characterCount!==!1&&e.push(sWe.configure(this.options.characterCount)),this.options.paragraph!==!1&&e.push(jte.configure(this.options.paragraph)),this.options.hardBreak!==!1&&e.push(xWe.configure(this.options.hardBreak)),this.options.listItem!==!1&&e.push(CWe.configure(this.options.listItem)),this.options.textStyle!==!1&&e.push(AWe.configure(this.options.textStyle)),e}}),ZGe=/^\s*>\s$/,JGe=Xr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",er(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[ky({find:ZGe,type:this.type})]}}),QGe=JGe.extend({addAttributes(){return Eo(this.parent?.(),"blockquote",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),HTMLAttributes:{class:"blockquote"},button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBlockquote().run(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"blockquote",tooltip:t("editor.blockquote.tooltip")}})}}}),qGe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,$Ge=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,eUe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,tUe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,nUe=zi.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",er(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[lp({find:qGe,type:this.type}),lp({find:eUe,type:this.type})]},addPasteRules(){return[Hf({find:$Ge,type:this.type}),Hf({find:tUe,type:this.type})]}}),rUe=nUe.extend({addAttributes(){return Eo(this.parent?.(),"bold",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBold().run(),isActive:()=>e.isActive("bold")||!1,disabled:!e.can().toggleBold(),icon:"bold",tooltip:t("editor.bold.tooltip")}})}}}),aUe="listItem",Kte="textStyle",Xte=/^\s*([-+*])\s$/,oUe=Xr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",er(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(aUe,this.editor.getAttributes(Kte)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=ky({find:Xte,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=ky({find:Xte,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Kte),editor:this.editor})),[e]}}),iUe=oUe.extend({addAttributes(){return Eo(this.parent?.(),"bulletList",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleBulletList().run(),isActive:()=>e.isActive("bulletList")||!1,disabled:!e.can().toggleBulletList(),icon:"bulletList",tooltip:t("editor.bulletlist.tooltip")}})}}}),lUe=Xr.create({name:"clear",addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"clear",tooltip:t("editor.clear.tooltip")}})}}}),sUe=/(^|[^`])`([^`]+)`(?!`)/,uUe=/(^|[^`])`([^`]+)`(?!`)/g,cUe=zi.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",er(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[lp({find:sUe,type:this.type})]},addPasteRules(){return[Hf({find:uUe,type:this.type})]}}),dUe=cUe.extend({addAttributes(){return Eo(this.parent?.(),"code",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleCode().run(),isActive:()=>e.isActive("code")||!1,disabled:!e.can().toggleCode(),icon:"code",tooltip:t("editor.code.tooltip")}})}}}),fUe=/^```([a-z]+)?[\s\n]$/,hUe=/^~~~([a-z]+)?[\s\n]$/,vUe=Xr.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",er(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(` -`);return!o||!i?!1:e.chain().command(({tr:l})=>(l.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:a,empty:o}=n;if(!o||a.parent.type!==this.type||a.parentOffset!==a.parent.nodeSize-2)return!1;const i=a.after();return i===void 0?!1:r.nodeAt(i)?e.commands.command(({tr:l})=>(l.setSelection(Xt.near(r.resolve(i))),!0)):e.commands.exitCode()}}},addInputRules(){return[SO({find:dUe,type:this.type,getAttributes:e=>({language:e[1]})}),SO({find:fUe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Ar({key:new ya("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),a=r?JSON.parse(r):void 0,o=a?.mode;if(!n||!o)return!1;const{tr:i,schema:l}=e.state,s=l.text(n.replace(/\r\n?/g,` -`));return i.replaceSelectionWith(this.type.create({language:o},s)),i.selection.$from.parent.type!==this.type&&i.setSelection(Ot.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),e.dispatch(i),!0}}})]}}),vUe=hUe.extend({addAttributes(){return ko(this.parent?.(),"codeBlock",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().toggleCodeBlock().run(),isActive:()=>e.isActive("codeBlock")||!1,disabled:!e.can().toggleCodeBlock(),icon:"codeBlock",tooltip:t("editor.codeblock.tooltip")}})}}}),pUe=or.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),Kte=f.defineComponent({__name:"ColorPicker",props:{modelValue:{default:""},nudgeLeft:{default:0},nudgeTop:{default:0},more:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,r=t,a=f.ref(""),o=f.ref(!1);f.watch(o,l=>{a.value=n.modelValue});function i(l){r("update:modelValue",l),r("change",l),a.value=l,o.value=!1}return(l,s)=>{const u=St,c=xt,d=ta,h=Yc,v=hi,p=Uo;return f.openBlock(),f.createBlock(p,{modelValue:o.value,"onUpdate:modelValue":s[2]||(s[2]=m=>o.value=m),"nudge-left":l.nudgeLeft||255,"nudge-top":l.nudgeTop||42,"close-on-content-click":!1,transition:"scale-transition",origin:l.nudgeLeft?"top left":"top right",activator:"parent"},{default:f.withCtx(()=>[f.createVNode(v,null,{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex flex-wrap justify-between ma-1",fluid:"","max-width":230},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(E2e),m=>(f.openBlock(),f.createBlock(c,{key:m,flat:"",icon:"",density:"compact",onClick:g=>i(m)},{default:f.withCtx(()=>[f.createVNode(u,{icon:f.unref(Zr)("circle"),color:m},null,8,["icon","color"])]),_:2},1032,["onClick"]))),128)),f.createVNode(d,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=m=>a.value=m),class:"mt-2 mx-1","append-inner-icon":f.unref(Zr)("check"),density:"compact",label:"HEX",variant:"outlined",flat:"","hide-details":"","single-line":"",clearable:"","onClick:appendInner":s[1]||(s[1]=m=>i(a.value))},f.createSlots({_:2},[a.value?{name:"prepend-inner",fn:f.withCtx(()=>[f.createVNode(u,{class:"opacity-100",icon:f.unref(Zr)("circle"),color:a.value},null,8,["icon","color"])]),key:"0"}:void 0]),1032,["modelValue","append-inner-icon"])]),_:1})]),_:1})]),_:1},8,["modelValue","nudge-left","nudge-top","origin"])}}}),mUe=f.defineComponent({__name:"ColorActionButton",props:{editor:{},icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,{state:n}=v2();function r(a){t.action?.(a)}return f.watchEffect(()=>{const{color:a}=t.editor.getAttributes("textStyle");n.color=a}),(a,o)=>(f.openBlock(),f.createBlock(zn,{icon:a.icon,tooltip:a.tooltip,disabled:a.disabled,color:f.unref(n).color,"is-active":a.isActive},{default:f.withCtx(()=>[f.createVNode(Kte,{modelValue:f.unref(n).color,"onUpdate:modelValue":o[0]||(o[0]=i=>f.unref(n).color=i),activator:"parent","nudge-top":-4,"nudge-left":8,onChange:r},null,8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"]))}}),gUe=pUe.extend({addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:mUe,componentProps:{action:n=>{typeof n=="string"&&e.chain().focus().setColor(n).run()},isActive:()=>{const{color:n}=e.getAttributes("textStyle");return n&&e.isActive({color:n})||!1},disabled:!e.can().setColor(""),icon:"color",tooltip:t("editor.color.tooltip")}})}}}),yUe=or.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>e.style.fontFamily,renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),_k=f.defineComponent({__name:"ActionMenuButton",props:{editor:{},disabled:{type:Boolean,default:!1},color:{default:void 0},maxHeight:{default:void 0},icon:{default:void 0},tooltip:{default:""},items:{default:()=>[]}},setup(e){const t=e,n=f.ref(!1),r=f.computed(()=>{const a=t.items.find(o=>o.isActive());return a&&!a.default?{...a,icon:a.icon?a.icon:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}});return(a,o)=>{const i=St,l=kv,s=Vr,u=Ia,c=hi,d=Uo;return f.openBlock(),f.createBlock(zn,{icon:r.value.icon,tooltip:r.value.title,disabled:a.disabled,color:a.color,"is-active":r.value.isActive},{default:f.withCtx(()=>[f.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=h=>n.value=h),activator:"parent"},{default:f.withCtx(()=>[f.createVNode(c,{density:"compact","max-height":a.maxHeight},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.items,(h,v)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:v},[f.createVNode(s,{active:h.isActive(),disabled:h.disabled,onClick:h.action},{prepend:f.withCtx(()=>[h.icon?(f.openBlock(),f.createBlock(i,{key:0,icon:f.unref(Zr)(h.icon)},null,8,["icon"])):f.createCommentVNode("",!0)]),default:f.withCtx(()=>[f.createVNode(l,{style:f.normalizeStyle(h.style)},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(h.title),1)]),_:2},1032,["style"])]),_:2},1032,["active","disabled","onClick"]),h.divider?(f.openBlock(),f.createBlock(u,{key:0})):f.createCommentVNode("",!0)],64))),128))]),_:1},8,["max-height"])]),_:1},8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"])}}}),bUe=yUe.extend({addOptions(){return{...this.parent?.(),fontFamilies:I2e,button:({editor:e,extension:t,t:n})=>{const r=(t.options?.fontFamilies||[]).map(o=>({title:n(o.title),isActive:()=>{const{fontFamily:i}=e.getAttributes("textStyle");return o.value===ZL&&i===void 0?!0:e.isActive({fontFamily:o.value})||!1},action:()=>{if(o.value===ZL){e.chain().focus().unsetFontFamily().run();return}e.chain().focus().setFontFamily(o.value).run()},disabled:!e.can().setFontFamily(o.value),style:{fontFamily:o.value},divider:o.divider??!1,default:o.default??!1})),a=r.filter(o=>o.disabled).length===r.length;return{component:_k,componentProps:{icon:"fontFamily",tooltip:n("editor.fontFamily.tooltip"),disabled:a,items:r,maxHeight:280}}}}}}),wUe=or.create({name:"fontSize",addOptions(){return{...this.parent?.(),types:["textStyle"],fontSizes:[...M2e],button:({editor:e,extension:t,t:n})=>{const r=t.options?.fontSizes||[],a=[iy,...r].map(i=>({title:i===iy?n("editor.default"):String(i),isActive:()=>{const{fontSize:l}=e.getAttributes("textStyle");return i===iy&&l===void 0?!0:e.isActive({fontSize:String(i)})||!1},action:()=>{if(i===iy){e.chain().focus().unsetFontSize().run();return}e.chain().focus().setFontSize(String(i)).run()},disabled:!e.can().setFontSize(String(i)),divider:i===iy,default:i===iy})),o=a.filter(i=>i.disabled).length===a.length;return{component:_k,componentProps:{icon:"fontSize",tooltip:n("editor.fontSize.tooltip"),disabled:o,items:a,maxHeight:280}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>e.style.fontSize||"",renderHTML:e=>e.fontSize?{style:`font-size: ${Hw(e.fontSize)}`}:{}}}}]},addCommands(){return{setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),SUe=f.defineComponent({__name:"FullscreenActionButton",props:{disabled:{type:Boolean,default:!1},color:{default:void 0},isActive:{type:Function,default:void 0},useWindow:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=$c(),{state:r,toggleFullscreen:a}=v2(),{isFullscreen:o,enter:i,exit:l}=PFe();f.watch(o,d=>{!d&&r.isFullscreen&&t.useWindow&&c()});const s=f.computed(()=>{const d=r.isFullscreen?"editor.fullscreen.tooltip.exit":"editor.fullscreen.tooltip.fullscreen";return f.unref(n)(d)}),u=f.computed(()=>{const d=r.isFullscreen?"fullscreenExit":"fullscreen";return Zr(d)});function c(d=!1){a(),r.isFullscreen?(document.documentElement.classList.add("overflow-y-hidden"),d&&i()):(document.documentElement.classList.remove("overflow-y-hidden"),d&&l())}return(d,h)=>{const v=St,p=Hv,m=xt;return f.openBlock(),f.createBlock(m,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":d.isActive?.()}]),density:"comfortable",size:"small",disabled:d.disabled,color:d.color,icon:"",onClick:h[0]||(h[0]=g=>c(d.useWindow))},{default:f.withCtx(()=>[f.createVNode(v,{icon:u.value},null,8,["icon"]),f.createVNode(p,{eager:!1,activator:"parent",location:"top",text:s.value},null,8,["text"]),f.renderSlot(d.$slots,"default")]),_:3},8,["disabled","color","class"])}}}),xUe=or.create({name:"fullscreen",addOptions(){return{...this.parent?.(),useWindow:!1,button:({editor:e,extension:t,t:n})=>({component:SUe,componentProps:{useWindow:t.options.useWindow??!1}})}}}),CUe=Kr.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,$n(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>SO({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),_Ue=CUe.extend({addAttributes(){return ko(this.parent?.(),"heading",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),levels:[1,2,3,4,5,6],button:({editor:e,extension:t,t:n})=>{const{extensions:r=[]}=e.extensionManager??[],a=t.options?.levels||[],o=r.find(s=>s.name==="base-kit"),i=a.map(s=>({action:()=>e.chain().focus().toggleHeading({level:s}).run(),isActive:()=>e.isActive("heading",{level:s})||!1,disabled:!e.can().toggleHeading({level:s}),icon:`h${s}`,title:n(`editor.heading.h${s}.tooltip`)}));o&&o.options.paragraph!==!1&&i.unshift({action:()=>e.chain().focus().setParagraph().run(),isActive:()=>e.isActive("paragraph")||!1,disabled:!e.can().setParagraph(),icon:"p",title:n("editor.paragraph.tooltip"),divider:!0});const l=i.filter(s=>s.disabled).length===i.length;return{component:_k,componentProps:{icon:"heading",tooltip:n("editor.heading.tooltip"),disabled:l,items:i}}}}}}),TUe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,kUe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,AUe=zi.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",$n(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[sp({find:TUe,type:this.type})]},addPasteRules(){return[zf({find:kUe,type:this.type})]}}),EUe=f.defineComponent({__name:"HighlightActionButton",props:{editor:{},icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,{state:n}=v2();function r(a){t.action?.(a)}return f.watchEffect(()=>{const{color:a}=t.editor.getAttributes("highlight");n.highlight=a}),(a,o)=>(f.openBlock(),f.createBlock(zn,{icon:a.icon,tooltip:a.tooltip,disabled:a.disabled,color:f.unref(n).highlight,"is-active":a.isActive},{default:f.withCtx(()=>[f.createVNode(Kte,{modelValue:f.unref(n).highlight,"onUpdate:modelValue":o[0]||(o[0]=i=>f.unref(n).highlight=i),activator:"parent","nudge-top":-4,"nudge-left":8,onChange:r},null,8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"]))}}),IUe=AUe.extend({addAttributes(){return ko(this.parent?.(),"highlight",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),multicolor:!0,button:({editor:e,t})=>({component:EUe,componentProps:{action:n=>{typeof n=="string"&&e.chain().focus().setHighlight({color:n}).run()},isActive:()=>e.isActive("highlight")||!1,disabled:!e.can().setHighlight(),icon:"highlight",tooltip:t("editor.highlight.tooltip")}})}}});var Tk=200,so=function(){};so.prototype.append=function(e){return e.length?(e=so.from(e),!this.length&&e||e.length=t?so.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},so.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},so.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},so.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(a,o){return r.push(e(a,o))},t,n),r},so.from=function(e){return e instanceof so?e:e&&e.length?new Xte(e):so.empty};var Xte=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,a){return r==0&&a==this.length?this:new t(this.values.slice(r,a))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,a,o,i){for(var l=a;l=o;l--)if(r(this.values[l],i+l)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=Tk)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=Tk)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(so);so.empty=new Xte([]);var MUe=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(n){return ni&&this.right.forEachInner(n,Math.max(r-i,0),Math.min(this.length,a)-i,o+i)===!1)return!1},t.prototype.forEachInvertedInner=function(n,r,a,o){var i=this.left.length;if(r>i&&this.right.forEachInvertedInner(n,r-i,Math.max(a,i)-i,o+i)===!1||a=a?this.right.slice(n-a,r-a):this.left.slice(n,a).append(this.right.slice(0,r-a))},t.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new t(r,this.right)},t.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new t(this.left,new t(this.right,n)):new t(this,n)},t}(so);const DUe=500;class Xs{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,o;n&&(a=this.remapping(r,this.items.length),o=a.maps.length);let i=t.tr,l,s,u=[],c=[];return this.items.forEach((d,h)=>{if(!d.step){a||(a=this.remapping(r,h+1),o=a.maps.length),o--,c.push(d);return}if(a){c.push(new Fu(d.map));let v=d.step.map(a.slice(o)),p;v&&i.maybeStep(v).doc&&(p=i.mapping.maps[i.mapping.maps.length-1],u.push(new Fu(p,void 0,void 0,u.length+c.length))),o--,p&&a.appendMap(p,o)}else i.maybeStep(d.step);if(d.selection)return l=a?d.selection.map(a.slice(o)):d.selection,s=new Xs(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:s,transform:i,selection:l}}addTransform(t,n,r,a){let o=[],i=this.eventCount,l=this.items,s=!a&&l.length?l.get(l.length-1):null;for(let c=0;cPUe&&(l=VUe(l,u),i-=u),new Xs(l.append(o),i)}remapping(t,n){let r=new Yw;return this.items.forEach((a,o)=>{let i=a.mirrorOffset!=null&&o-a.mirrorOffset>=t?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,i)},t,n),r}addMaps(t){return this.eventCount==0?this:new Xs(this.items.append(t.map(n=>new Fu(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),o=t.mapping,i=t.steps.length,l=this.eventCount;this.items.forEach(h=>{h.selection&&l--},a);let s=n;this.items.forEach(h=>{let v=o.getMirror(--s);if(v==null)return;i=Math.min(i,v);let p=o.maps[v];if(h.step){let m=t.steps[v].invert(t.docs[v]),g=h.selection&&h.selection.map(o.slice(s+1,v));g&&l++,r.push(new Fu(p,m,g))}else r.push(new Fu(p))},a);let u=[];for(let h=n;hDUe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,a=[],o=0;return this.items.forEach((i,l)=>{if(l>=t)a.push(i),i.selection&&o++;else if(i.step){let s=i.step.map(n.slice(r)),u=s&&s.getMap();if(r--,u&&n.appendMap(u,r),s){let c=i.selection&&i.selection.map(n.slice(r));c&&o++;let d=new Fu(u.invert(),s,c),h,v=a.length-1;(h=a.length&&a[v].merge(d))?a[v]=h:a.push(d)}}else i.map&&r--},this.items.length,0),new Xs(so.from(a.reverse()),o)}}Xs.empty=new Xs(so.empty,0);function VUe(e,t){let n;return e.forEach((r,a)=>{if(r.selection&&t--==0)return n=a,!1}),e.slice(n)}class Fu{constructor(t,n,r,a){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=a}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Fu(n.getMap().invert(),n,this.selection)}}}class jf{constructor(t,n,r,a,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=o}}const PUe=20;function NUe(e,t,n,r){let a=n.getMeta(hp),o;if(a)return a.historyState;n.getMeta(RUe)&&(e=new jf(e.done,e.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(i&&i.getMeta(hp))return i.getMeta(hp).redo?new jf(e.done.addTransform(n,void 0,r,kk(t)),e.undone,Zte(n.mapping.maps),e.prevTime,e.prevComposition):new jf(e.done,e.undone.addTransform(n,void 0,r,kk(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let l=n.getMeta("composition"),s=e.prevTime==0||!i&&e.prevComposition!=l&&(e.prevTime<(n.time||0)-r.newGroupDelay||!LUe(n,e.prevRanges)),u=i?eR(e.prevRanges,n.mapping):Zte(n.mapping.maps);return new jf(e.done.addTransform(n,s?t.selection.getBookmark():void 0,r,kk(t)),Xs.empty,u,n.time,l??e.prevComposition)}else return(o=n.getMeta("rebased"))?new jf(e.done.rebased(n,o),e.undone.rebased(n,o),eR(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new jf(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),eR(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function LUe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,a)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function Zte(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,a,o,i)=>t.push(o,i));return t}function eR(e,t){if(!e)return null;let n=[];for(let r=0;r{let a=hp.getState(n);if(!a||(e?a.undone:a.done).eventCount==0)return!1;if(r){let o=OUe(a,n,e);o&&r(o.scrollIntoView())}return!0}}const qte=Qte(!1),$te=Qte(!0),FUe=or.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>qte(e,t),redo:()=>({state:e,dispatch:t})=>$te(e,t)}},addProseMirrorPlugins(){return[BUe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),HUe=FUe.extend({addOptions(){return{...this.parent?.(),depth:10,button:({editor:e,t})=>["undo","redo"].map(n=>({component:zn,componentProps:{action:()=>{n==="undo"&&e.chain().focus().undo().run(),n==="redo"&&e.chain().focus().redo().run()},disabled:!e.can()[n](),icon:n,tooltip:t(`editor.${n}.tooltip`)}}))}}}),zUe=Kr.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",$n(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!k4e(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$from:r,$to:a}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:a.pos},{type:this.name}):hee(n)?o.insertContentAt(a.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:i,dispatch:l})=>{var s;if(l){const{$to:u}=i.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?i.setSelection(Ot.create(i.doc,u.pos+1)):u.nodeAfter.isBlock?i.setSelection(Nt.create(i.doc,u.pos)):i.setSelection(Ot.create(i.doc,u.pos));else{const d=(s=u.parent.type.contentMatch.defaultType)===null||s===void 0?void 0:s.create();d&&(i.insert(c,d),i.setSelection(Ot.create(i.doc,c+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[mee({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),WUe=zUe.extend({addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:zn,componentProps:{action:()=>e.chain().focus().setHorizontalRule().run(),disabled:!e.can().setHorizontalRule(),icon:"horizontalRule",tooltip:t("editor.horizontalrule.tooltip")}})}}});function GUe(e){const t=e.view.dom,n=t.parentElement;if(!n)return null;window.pageYOffset||document.documentElement.scrollTop,window.pageXOffset||document.documentElement.scrollLeft;const r=document.createElement("div");r.className="tiptap-html-overlay",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%",r.style.backgroundColor="#f8f9fa",r.style.zIndex="10",r.style.display="flex",r.style.flexDirection="column",r.style.boxSizing="border-box",r.style.border="1px solid #ddd";const a=document.createElement("textarea");a.className="tiptap-html-editor",a.style.width="100%",a.style.height="100%",a.style.padding="12px",a.style.border="none",a.style.resize="none",a.style.fontFamily="monospace",a.style.fontSize="14px",a.style.backgroundColor="transparent",a.style.flex="1",a.style.outline="none",a.style.color="#333";const o=e.getHTML();e.storage.htmlView.editorContent=o;const i=UUe(o);a.value=i,e.storage.htmlView.htmlContent=i,r.appendChild(a),n.style.position="relative";const l=t.offsetWidth,s=t.offsetHeight;return r.style.width=`${l}px`,r.style.height=`${s}px`,r.style.minHeight=`${s}px`,r.style.transition="none",n.appendChild(r),setTimeout(()=>{a.focus({preventScroll:!0}),console.log("Switched to HTML view mode")},10),a.addEventListener("input",()=>{e.storage.htmlView.htmlContent=a.value;try{e.storage.htmlView.isUpdatingFromHTML=!0;const u=ene(a.value);e.commands.setContent(u,!1);const c=e.state.tr;c.setMeta("preventUpdate",!1),c.setMeta("addToHistory",!1),e.view.dispatch(c),e.options.onUpdate&&e.options.onUpdate({editor:e,transaction:c})}catch(u){console.error("Error syncing HTML to editor:",u)}finally{requestAnimationFrame(()=>{e.storage.htmlView.isUpdatingFromHTML=!1})}}),r}function UUe(e){return e.replace(/
]*>[\s\S]*?<\/div>/gi,"").replace(/