@data-fair/app-calendar 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Calendar-DYZE2Zow.js +2 -0
- package/dist/assets/{EventEdit-DzXB6mDC.js → EventEdit-DNojdl-3.js} +3 -3
- package/dist/assets/{SnackBar-t9PbBI9K.js → SnackBar-vIHt8hf_.js} +1 -1
- package/dist/assets/{easymde-D4aqp79O.js → easymde-d5EWT2tD.js} +1 -1
- package/dist/assets/{forwardRefs-D1okihIl.js → forwardRefs-Bc9m8m6d.js} +1 -1
- package/dist/assets/{index-2Fyqrkpe.js → index-ua6G9zQ2.js} +2 -2
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/Calendar-uwl_bPeP.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/easymde-
|
|
2
|
-
var mp=Object.defineProperty;var pp=(e,t,n)=>t in e?mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ze=(e,t,n)=>pp(e,typeof t!="symbol"?t+"":t,n);import{B as se,m as Fe,a6 as wa,g as me,an as bn,a7 as $a,L as ue,M as g,b1 as ad,b2 as xa,b3 as hp,b4 as Xo,h as De,r as J,ad as Y,aB as Ae,af as W,a8 as ht,u as N,ai as zn,at as Sa,b5 as Ft,b6 as Re,aO as Qo,q as E,ae as ie,ah as Ve,aX as rd,s as xe,Q as qt,b7 as vp,w as ye,au as Jt,ag as Ie,aj as nt,F as ce,aD as Qe,b0 as sr,aw as or,ar as gn,E as kn,as as Ct,C as sd,R as Oe,$ as ot,D as ts,G as Ca,H as ns,O as _n,az as Vt,K as be,a1 as wn,_ as Be,X as ne,aR as gp,b8 as od,V as Ge,P as ir,b9 as id,N as ld,ba as yp,o as cd,f as $n,aP as yo,n as it,bb as ud,bc as dd,bd as Yn,aa as Jn,be as bp,bf as ei,a as kp,U as ti,j as ni,J as lr,a$ as Ja,ac as et,d as gt,bg as ai,bh as en,bi as tn,p as Bn,bj as _p,aW as Bt,I as ma,bk as Xl,bl as Pa,bm as wp,bn as $p,bo as fd,bp as Ql,bq as on,br as xp,t as Sp,a4 as Cp,av as cr,bs as Pp,bt as md,bu as vr,bv as pd,bw as hd,bx as ri,by as Vp,bz as vd,bA as gd,bB as ec,bC as yd,bD as bd,bE as Ep,bF as Ap,aC as kd,ao as si,bG as Op,bH as oi,bI as Nr,ay as bo,bJ as _d,bK as Ip,am as Dp,aU as Tp,bL as jp,bM as Mp,bN as tc,aM as qp,v as Rp,aJ as zp,bO as Lp,z as Np}from"./index-2Fyqrkpe.js";import{g as Fp,a as nc,i as ac,V as wd,b as Bp,c as Ee,d as ia,e as Rt,u as Up,f as $d,h as Ue,m as Hp,j as xd,L as Sd,k as Kp,l as ii,n as li,R as as,o as _t,p as Cd,q as Gp,r as rs,s as ss,t as Xn,v as Ln,w as Pd,x as Wp,y as Zp,z as Yp,A as Jp,B as ci,C as ui,D as di,E as Xp,F as Qp,G as rc,H as fi,I as eh,J as th,K as mi,M as Xa,N as os,O as is,P as za,Q as nh,S as Vd,T as pi,U as ah,W as rh,X as Ed,Y as sc,Z as sh,_ as Ad,$ as Od}from"./Calendar-uwl_bPeP.js";import{m as Qn,l as vt,x as oh,r as Id,t as Dd,q as xn,b as ih,c as lh,g as ch,h as uh,z as Td,A as jd,o as dh,B as fh,k as mh}from"./forwardRefs-D1okihIl.js";function ph(e){return!(typeof e!="object"||e===null||!e.from||!ac(e.from)||e.to&&!ac(e.to))}function hh(e){return e.to?"".concat(e.from,"-").concat(e.to):"".concat(e.from,"+")}function vh(e){if(typeof e>"u"||e===null)throw new Error("openingHoursArray is required");return e.length?e.map(function(t){var n=t.from,r=t.to,s=r===void 0?n:r,a=t.hours;if(!n||!a)return null;var o=n===s?n:"".concat(n,"-").concat(s);if(!a.length)return"".concat(o," off");var i=a.filter(ph),l=i.map(hh),c=l.join(","),u=Fp(nc(n),nc(s));return u===6&&c==="00:00-24:00"?"24/7":c?"".concat(o," ").concat(c):o}).filter(Boolean).join("; "):""}const gh=se({fluid:{type:Boolean,default:!1},...Fe(),...wa(),...Qn()},"VContainer"),ur=me()({name:"VContainer",props:gh(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=bn(),{dimensionStyles:s}=$a(e);return ue(()=>g(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:[s.value,e.style]},n)),{}}}),yh=se({start:Boolean,end:Boolean,...Fe(),...Qn()},"VListItemAction"),gr=me()({name:"VListItemAction",props:yh(),setup(e,t){let{slots:n}=t;return ue(()=>g(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),bh=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:s}=e,a=.5,o=16;e.offsetX=n-t,e.offsetY=s-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-o&&e.left(e),e.right&&n>t+o&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&s<r-o&&e.up(e),e.down&&s>r+o&&e.down(e))};function kh(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function _h(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),bh(t)}function wh(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function $h(){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=>kh(n,t),touchend:n=>_h(n,t),touchmove:n=>wh(n,t)}}function xh(e,t){var i;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,s=(n==null?void 0:n.options)??{passive:!0},a=(i=t.instance)==null?void 0:i.$.uid;if(!r||!a)return;const o=$h(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[a]=o,ad(o).forEach(l=>{r.addEventListener(l,o[l],s)})}function Sh(e,t){var a,o;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const s=n._touchHandlers[r];ad(s).forEach(i=>{n.removeEventListener(i,s[i])}),delete n._touchHandlers[r]}const Md={mounted:xh,unmounted:Sh},Ch=Md;var ko={exports:{}},hi={},wt={},pa={},Va={},we={},ha={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(h){if(super(),!e.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((S,w)=>(w instanceof n&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=r,e.nil=new r("");function s(p,...h){const S=[p[0]];let w=0;for(;w<h.length;)i(S,h[w]),S.push(p[++w]);return new r(S)}e._=s;const a=new r("+");function o(p,...h){const S=[f(p[0])];let w=0;for(;w<h.length;)S.push(a),i(S,h[w]),S.push(a,f(p[++w]));return l(S),new r(S)}e.str=o;function i(p,h){h instanceof r?p.push(...h._items):h instanceof n?p.push(h):p.push(d(h))}e.addCodeArg=i;function l(p){let h=1;for(;h<p.length-1;){if(p[h]===a){const S=c(p[h-1],p[h+1]);if(S!==void 0){p.splice(h-1,3,S);continue}p[h++]="+"}h++}}function c(p,h){if(h==='""')return p;if(p==='""')return h;if(typeof p=="string")return h instanceof n||p[p.length-1]!=='"'?void 0:typeof h!="string"?`${p.slice(0,-1)}${h}"`:h[0]==='"'?p.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(p instanceof n))return`"${p}${h.slice(1)}`}function u(p,h){return h.emptyStr()?p:p.emptyStr()?h:o`${p}${h}`}e.strConcat=u;function d(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:f(Array.isArray(p)?p.join(","):p)}function m(p){return new r(f(p))}e.stringify=m;function f(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=f;function v(p){return typeof p=="string"&&e.IDENTIFIER.test(p)?new r(`.${p}`):s`[${p}]`}e.getProperty=v;function y(p){if(typeof p=="string"&&e.IDENTIFIER.test(p))return new r(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}e.getEsmExportName=y;function b(p){return new r(p.toString())}e.regexpCode=b})(ha);var _o={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ha;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=s;class a extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=a;const o=(0,t._)`\n`;class i extends s{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new a(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(c),{prefix:f}=m,v=(d=u.key)!==null&&d!==void 0?d:u.ref;let y=this._values[f];if(y){const h=y.get(v);if(h)return h}else y=this._values[f]=new Map;y.set(v,m);const b=this._scope[f]||(this._scope[f]=[]),p=b.length;return b[p]=u.ref,m.setValue(u,{property:f,itemIndex:p}),m}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,d)}_reduceValues(c,u,d={},m){let f=t.nil;for(const v in c){const y=c[v];if(!y)continue;const b=d[v]=d[v]||new Map;y.forEach(p=>{if(b.has(p))return;b.set(p,r.Started);let h=u(p);if(h){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;f=(0,t._)`${f}${S} ${p} = ${h};${this.opts._n}`}else if(h=m==null?void 0:m(p))f=(0,t._)`${f}${h}${this.opts._n}`;else throw new n(p);b.set(p,r.Completed)})}return f}}e.ValueScope=i})(_o);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ha,n=_o;var r=ha;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var s=_o;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(k,C){return this}}class o extends a{constructor(k,C,T){super(),this.varKind=k,this.name=C,this.rhs=T}render({es5:k,_n:C}){const T=k?n.varKinds.var:this.varKind,B=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${B};`+C}optimizeNames(k,C){if(k[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,k,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor(k,C,T){super(),this.lhs=k,this.rhs=C,this.sideEffects=T}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,C){if(!(this.lhs instanceof t.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=j(this.rhs,k,C),this}get names(){const k=this.lhs instanceof t.Name?{}:{...this.lhs.names};return H(k,this.rhs)}}class l extends i{constructor(k,C,T,B){super(k,T,B),this.op=C}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class c extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends a{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class m extends a{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,C){return this.code=j(this.code,k,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends a{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((C,T)=>C+T.render(k),"")}optimizeNodes(){const{nodes:k}=this;let C=k.length;for(;C--;){const T=k[C].optimizeNodes();Array.isArray(T)?k.splice(C,1,...T):T?k[C]=T:k.splice(C,1)}return k.length>0?this:void 0}optimizeNames(k,C){const{nodes:T}=this;let B=T.length;for(;B--;){const U=T[B];U.optimizeNames(k,C)||(M(k,U.names),T.splice(B,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((k,C)=>R(k,C.names),{})}}class v extends f{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class y extends f{}class b extends v{}b.kind="else";class p extends v{constructor(k,C){super(C),this.condition=k}render(k){let C=`if(${this.condition})`+super.render(k);return this.else&&(C+="else "+this.else.render(k)),C}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let C=this.else;if(C){const T=C.optimizeNodes();C=this.else=Array.isArray(T)?new b(T):T}if(C)return k===!1?C instanceof p?C:C.nodes:this.nodes.length?this:new p(z(k),C instanceof p?[C]:C.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,C){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(k,C),!!(super.optimizeNames(k,C)||this.else))return this.condition=j(this.condition,k,C),this}get names(){const k=super.names;return H(k,this.condition),this.else&&R(k,this.else.names),k}}p.kind="if";class h extends v{}h.kind="for";class S extends h{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,C){if(super.optimizeNames(k,C))return this.iteration=j(this.iteration,k,C),this}get names(){return R(super.names,this.iteration.names)}}class w extends h{constructor(k,C,T,B){super(),this.varKind=k,this.name=C,this.from=T,this.to=B}render(k){const C=k.es5?n.varKinds.var:this.varKind,{name:T,from:B,to:U}=this;return`for(${C} ${T}=${B}; ${T}<${U}; ${T}++)`+super.render(k)}get names(){const k=H(super.names,this.from);return H(k,this.to)}}class x extends h{constructor(k,C,T,B){super(),this.loop=k,this.varKind=C,this.name=T,this.iterable=B}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,C){if(super.optimizeNames(k,C))return this.iterable=j(this.iterable,k,C),this}get names(){return R(super.names,this.iterable.names)}}class $ extends v{constructor(k,C,T){super(),this.name=k,this.args=C,this.async=T}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}$.kind="func";class I extends f{render(k){return"return "+super.render(k)}}I.kind="return";class F extends v{render(k){let C="try"+super.render(k);return this.catch&&(C+=this.catch.render(k)),this.finally&&(C+=this.finally.render(k)),C}optimizeNodes(){var k,C;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(k,C){var T,B;return super.optimizeNames(k,C),(T=this.catch)===null||T===void 0||T.optimizeNames(k,C),(B=this.finally)===null||B===void 0||B.optimizeNames(k,C),this}get names(){const k=super.names;return this.catch&&R(k,this.catch.names),this.finally&&R(k,this.finally.names),k}}class V extends v{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}V.kind="catch";class D extends v{render(k){return"finally"+super.render(k)}}D.kind="finally";class q{constructor(k,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/easymde-d5EWT2tD.js","assets/index-ua6G9zQ2.js","assets/index-CJongqRm.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var mp=Object.defineProperty;var pp=(e,t,n)=>t in e?mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ze=(e,t,n)=>pp(e,typeof t!="symbol"?t+"":t,n);import{B as se,m as Fe,a6 as wa,g as me,an as bn,a7 as $a,L as ue,M as g,b1 as ad,b2 as xa,b3 as hp,b4 as Xo,h as De,r as J,ad as Y,aB as Ae,af as W,a8 as ht,u as N,ai as zn,at as Sa,b5 as Ft,b6 as Re,aO as Qo,q as E,ae as ie,ah as Ve,aX as rd,s as xe,Q as qt,b7 as vp,w as ye,au as Jt,ag as Ie,aj as nt,F as ce,aD as Qe,b0 as sr,aw as or,ar as gn,E as kn,as as Ct,C as sd,R as Oe,$ as ot,D as ts,G as Ca,H as ns,O as _n,az as Vt,K as be,a1 as wn,_ as Be,X as ne,aR as gp,b8 as od,V as Ge,P as ir,b9 as id,N as ld,ba as yp,o as cd,f as $n,aP as yo,n as it,bb as ud,bc as dd,bd as Yn,aa as Jn,be as bp,bf as ei,a as kp,U as ti,j as ni,J as lr,a$ as Ja,ac as et,d as gt,bg as ai,bh as en,bi as tn,p as Bn,bj as _p,aW as Bt,I as ma,bk as Xl,bl as Pa,bm as wp,bn as $p,bo as fd,bp as Ql,bq as on,br as xp,t as Sp,a4 as Cp,av as cr,bs as Pp,bt as md,bu as vr,bv as pd,bw as hd,bx as ri,by as Vp,bz as vd,bA as gd,bB as ec,bC as yd,bD as bd,bE as Ep,bF as Ap,aC as kd,ao as si,bG as Op,bH as oi,bI as Nr,ay as bo,bJ as _d,bK as Ip,am as Dp,aU as Tp,bL as jp,bM as Mp,bN as tc,aM as qp,v as Rp,aJ as zp,bO as Lp,z as Np}from"./index-ua6G9zQ2.js";import{g as Fp,a as nc,i as ac,V as wd,b as Bp,c as Ee,d as ia,e as Rt,u as Up,f as $d,h as Ue,m as Hp,j as xd,L as Sd,k as Kp,l as ii,n as li,R as as,o as _t,p as Cd,q as Gp,r as rs,s as ss,t as Xn,v as Ln,w as Pd,x as Wp,y as Zp,z as Yp,A as Jp,B as ci,C as ui,D as di,E as Xp,F as Qp,G as rc,H as fi,I as eh,J as th,K as mi,M as Xa,N as os,O as is,P as za,Q as nh,S as Vd,T as pi,U as ah,W as rh,X as Ed,Y as sc,Z as sh,_ as Ad,$ as Od}from"./Calendar-DYZE2Zow.js";import{m as Qn,l as vt,x as oh,r as Id,t as Dd,q as xn,b as ih,c as lh,g as ch,h as uh,z as Td,A as jd,o as dh,B as fh,k as mh}from"./forwardRefs-Bc9m8m6d.js";function ph(e){return!(typeof e!="object"||e===null||!e.from||!ac(e.from)||e.to&&!ac(e.to))}function hh(e){return e.to?"".concat(e.from,"-").concat(e.to):"".concat(e.from,"+")}function vh(e){if(typeof e>"u"||e===null)throw new Error("openingHoursArray is required");return e.length?e.map(function(t){var n=t.from,r=t.to,s=r===void 0?n:r,a=t.hours;if(!n||!a)return null;var o=n===s?n:"".concat(n,"-").concat(s);if(!a.length)return"".concat(o," off");var i=a.filter(ph),l=i.map(hh),c=l.join(","),u=Fp(nc(n),nc(s));return u===6&&c==="00:00-24:00"?"24/7":c?"".concat(o," ").concat(c):o}).filter(Boolean).join("; "):""}const gh=se({fluid:{type:Boolean,default:!1},...Fe(),...wa(),...Qn()},"VContainer"),ur=me()({name:"VContainer",props:gh(),setup(e,t){let{slots:n}=t;const{rtlClasses:r}=bn(),{dimensionStyles:s}=$a(e);return ue(()=>g(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},r.value,e.class],style:[s.value,e.style]},n)),{}}}),yh=se({start:Boolean,end:Boolean,...Fe(),...Qn()},"VListItemAction"),gr=me()({name:"VListItemAction",props:yh(),setup(e,t){let{slots:n}=t;return ue(()=>g(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}}),bh=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:s}=e,a=.5,o=16;e.offsetX=n-t,e.offsetY=s-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-o&&e.left(e),e.right&&n>t+o&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&s<r-o&&e.up(e),e.down&&s>r+o&&e.down(e))};function kh(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function _h(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),bh(t)}function wh(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function $h(){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=>kh(n,t),touchend:n=>_h(n,t),touchmove:n=>wh(n,t)}}function xh(e,t){var i;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,s=(n==null?void 0:n.options)??{passive:!0},a=(i=t.instance)==null?void 0:i.$.uid;if(!r||!a)return;const o=$h(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[a]=o,ad(o).forEach(l=>{r.addEventListener(l,o[l],s)})}function Sh(e,t){var a,o;const n=(a=t.value)!=null&&a.parent?e.parentElement:e,r=(o=t.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const s=n._touchHandlers[r];ad(s).forEach(i=>{n.removeEventListener(i,s[i])}),delete n._touchHandlers[r]}const Md={mounted:xh,unmounted:Sh},Ch=Md;var ko={exports:{}},hi={},wt={},pa={},Va={},we={},ha={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(h){if(super(),!e.IDENTIFIER.test(h))throw new Error("CodeGen: name must be a valid identifier");this.str=h}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(h){super(),this._items=typeof h=="string"?[h]:h}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const h=this._items[0];return h===""||h==='""'}get str(){var h;return(h=this._str)!==null&&h!==void 0?h:this._str=this._items.reduce((S,w)=>`${S}${w}`,"")}get names(){var h;return(h=this._names)!==null&&h!==void 0?h:this._names=this._items.reduce((S,w)=>(w instanceof n&&(S[w.str]=(S[w.str]||0)+1),S),{})}}e._Code=r,e.nil=new r("");function s(p,...h){const S=[p[0]];let w=0;for(;w<h.length;)i(S,h[w]),S.push(p[++w]);return new r(S)}e._=s;const a=new r("+");function o(p,...h){const S=[f(p[0])];let w=0;for(;w<h.length;)S.push(a),i(S,h[w]),S.push(a,f(p[++w]));return l(S),new r(S)}e.str=o;function i(p,h){h instanceof r?p.push(...h._items):h instanceof n?p.push(h):p.push(d(h))}e.addCodeArg=i;function l(p){let h=1;for(;h<p.length-1;){if(p[h]===a){const S=c(p[h-1],p[h+1]);if(S!==void 0){p.splice(h-1,3,S);continue}p[h++]="+"}h++}}function c(p,h){if(h==='""')return p;if(p==='""')return h;if(typeof p=="string")return h instanceof n||p[p.length-1]!=='"'?void 0:typeof h!="string"?`${p.slice(0,-1)}${h}"`:h[0]==='"'?p.slice(0,-1)+h.slice(1):void 0;if(typeof h=="string"&&h[0]==='"'&&!(p instanceof n))return`"${p}${h.slice(1)}`}function u(p,h){return h.emptyStr()?p:p.emptyStr()?h:o`${p}${h}`}e.strConcat=u;function d(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:f(Array.isArray(p)?p.join(","):p)}function m(p){return new r(f(p))}e.stringify=m;function f(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=f;function v(p){return typeof p=="string"&&e.IDENTIFIER.test(p)?new r(`.${p}`):s`[${p}]`}e.getProperty=v;function y(p){if(typeof p=="string"&&e.IDENTIFIER.test(p))return new r(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}e.getEsmExportName=y;function b(p){return new r(p.toString())}e.regexpCode=b})(ha);var _o={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ha;class n extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}}var r;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class s{constructor({prefixes:c,parent:u}={}){this._names={},this._prefixes=c,this._parent=u}toName(c){return c instanceof t.Name?c:this.name(c)}name(c){return new t.Name(this._newName(c))}_newName(c){const u=this._names[c]||this._nameGroup(c);return`${c}${u.index++}`}_nameGroup(c){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}}e.Scope=s;class a extends t.Name{constructor(c,u){super(u),this.prefix=c}setValue(c,{property:u,itemIndex:d}){this.value=c,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=a;const o=(0,t._)`\n`;class i extends s{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?o:t.nil}}get(){return this._scope}name(c){return new a(c,this._newName(c))}value(c,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(c),{prefix:f}=m,v=(d=u.key)!==null&&d!==void 0?d:u.ref;let y=this._values[f];if(y){const h=y.get(v);if(h)return h}else y=this._values[f]=new Map;y.set(v,m);const b=this._scope[f]||(this._scope[f]=[]),p=b.length;return b[p]=u.ref,m.setValue(u,{property:f,itemIndex:p}),m}getValue(c,u){const d=this._values[c];if(d)return d.get(u)}scopeRefs(c,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${c}${d.scopePath}`})}scopeCode(c=this._values,u,d){return this._reduceValues(c,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,d)}_reduceValues(c,u,d={},m){let f=t.nil;for(const v in c){const y=c[v];if(!y)continue;const b=d[v]=d[v]||new Map;y.forEach(p=>{if(b.has(p))return;b.set(p,r.Started);let h=u(p);if(h){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;f=(0,t._)`${f}${S} ${p} = ${h};${this.opts._n}`}else if(h=m==null?void 0:m(p))f=(0,t._)`${f}${h}${this.opts._n}`;else throw new n(p);b.set(p,r.Completed)})}return f}}e.ValueScope=i})(_o);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ha,n=_o;var r=ha;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var s=_o;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(k,C){return this}}class o extends a{constructor(k,C,T){super(),this.varKind=k,this.name=C,this.rhs=T}render({es5:k,_n:C}){const T=k?n.varKinds.var:this.varKind,B=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${B};`+C}optimizeNames(k,C){if(k[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,k,C)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor(k,C,T){super(),this.lhs=k,this.rhs=C,this.sideEffects=T}render({_n:k}){return`${this.lhs} = ${this.rhs};`+k}optimizeNames(k,C){if(!(this.lhs instanceof t.Name&&!k[this.lhs.str]&&!this.sideEffects))return this.rhs=j(this.rhs,k,C),this}get names(){const k=this.lhs instanceof t.Name?{}:{...this.lhs.names};return H(k,this.rhs)}}class l extends i{constructor(k,C,T,B){super(k,T,B),this.op=C}render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k}}class c extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`${this.label}:`+k}}class u extends a{constructor(k){super(),this.label=k,this.names={}}render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k}}class d extends a{constructor(k){super(),this.error=k}render({_n:k}){return`throw ${this.error};`+k}get names(){return this.error.names}}class m extends a{constructor(k){super(),this.code=k}render({_n:k}){return`${this.code};`+k}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(k,C){return this.code=j(this.code,k,C),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends a{constructor(k=[]){super(),this.nodes=k}render(k){return this.nodes.reduce((C,T)=>C+T.render(k),"")}optimizeNodes(){const{nodes:k}=this;let C=k.length;for(;C--;){const T=k[C].optimizeNodes();Array.isArray(T)?k.splice(C,1,...T):T?k[C]=T:k.splice(C,1)}return k.length>0?this:void 0}optimizeNames(k,C){const{nodes:T}=this;let B=T.length;for(;B--;){const U=T[B];U.optimizeNames(k,C)||(M(k,U.names),T.splice(B,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((k,C)=>R(k,C.names),{})}}class v extends f{render(k){return"{"+k._n+super.render(k)+"}"+k._n}}class y extends f{}class b extends v{}b.kind="else";class p extends v{constructor(k,C){super(C),this.condition=k}render(k){let C=`if(${this.condition})`+super.render(k);return this.else&&(C+="else "+this.else.render(k)),C}optimizeNodes(){super.optimizeNodes();const k=this.condition;if(k===!0)return this.nodes;let C=this.else;if(C){const T=C.optimizeNodes();C=this.else=Array.isArray(T)?new b(T):T}if(C)return k===!1?C instanceof p?C:C.nodes:this.nodes.length?this:new p(z(k),C instanceof p?[C]:C.nodes);if(!(k===!1||!this.nodes.length))return this}optimizeNames(k,C){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(k,C),!!(super.optimizeNames(k,C)||this.else))return this.condition=j(this.condition,k,C),this}get names(){const k=super.names;return H(k,this.condition),this.else&&R(k,this.else.names),k}}p.kind="if";class h extends v{}h.kind="for";class S extends h{constructor(k){super(),this.iteration=k}render(k){return`for(${this.iteration})`+super.render(k)}optimizeNames(k,C){if(super.optimizeNames(k,C))return this.iteration=j(this.iteration,k,C),this}get names(){return R(super.names,this.iteration.names)}}class w extends h{constructor(k,C,T,B){super(),this.varKind=k,this.name=C,this.from=T,this.to=B}render(k){const C=k.es5?n.varKinds.var:this.varKind,{name:T,from:B,to:U}=this;return`for(${C} ${T}=${B}; ${T}<${U}; ${T}++)`+super.render(k)}get names(){const k=H(super.names,this.from);return H(k,this.to)}}class x extends h{constructor(k,C,T,B){super(),this.loop=k,this.varKind=C,this.name=T,this.iterable=B}render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(k)}optimizeNames(k,C){if(super.optimizeNames(k,C))return this.iterable=j(this.iterable,k,C),this}get names(){return R(super.names,this.iterable.names)}}class $ extends v{constructor(k,C,T){super(),this.name=k,this.args=C,this.async=T}render(k){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(k)}}$.kind="func";class I extends f{render(k){return"return "+super.render(k)}}I.kind="return";class F extends v{render(k){let C="try"+super.render(k);return this.catch&&(C+=this.catch.render(k)),this.finally&&(C+=this.finally.render(k)),C}optimizeNodes(){var k,C;return super.optimizeNodes(),(k=this.catch)===null||k===void 0||k.optimizeNodes(),(C=this.finally)===null||C===void 0||C.optimizeNodes(),this}optimizeNames(k,C){var T,B;return super.optimizeNames(k,C),(T=this.catch)===null||T===void 0||T.optimizeNames(k,C),(B=this.finally)===null||B===void 0||B.optimizeNames(k,C),this}get names(){const k=super.names;return this.catch&&R(k,this.catch.names),this.finally&&R(k,this.finally.names),k}}class V extends v{constructor(k){super(),this.error=k}render(k){return`catch(${this.error})`+super.render(k)}}V.kind="catch";class D extends v{render(k){return"finally"+super.render(k)}}D.kind="finally";class q{constructor(k,C={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...C,_n:C.lines?`
|
|
3
3
|
`:""},this._extScope=k,this._scope=new n.Scope({parent:k}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(k){return this._scope.name(k)}scopeName(k){return this._extScope.name(k)}scopeValue(k,C){const T=this._extScope.value(k,C);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(k,C){return this._extScope.getValue(k,C)}scopeRefs(k){return this._extScope.scopeRefs(k,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(k,C,T,B){const U=this._scope.toName(C);return T!==void 0&&B&&(this._constants[U.str]=T),this._leafNode(new o(k,U,T)),U}const(k,C,T){return this._def(n.varKinds.const,k,C,T)}let(k,C,T){return this._def(n.varKinds.let,k,C,T)}var(k,C,T){return this._def(n.varKinds.var,k,C,T)}assign(k,C,T){return this._leafNode(new i(k,C,T))}add(k,C){return this._leafNode(new l(k,e.operators.ADD,C))}code(k){return typeof k=="function"?k():k!==t.nil&&this._leafNode(new m(k)),this}object(...k){const C=["{"];for(const[T,B]of k)C.length>1&&C.push(","),C.push(T),(T!==B||this.opts.es5)&&(C.push(":"),(0,t.addCodeArg)(C,B));return C.push("}"),new t._Code(C)}if(k,C,T){if(this._blockNode(new p(k)),C&&T)this.code(C).else().code(T).endIf();else if(C)this.code(C).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(k){return this._elseNode(new p(k))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(p,b)}_for(k,C){return this._blockNode(k),C&&this.code(C).endFor(),this}for(k,C){return this._for(new S(k),C)}forRange(k,C,T,B,U=this.opts.es5?n.varKinds.var:n.varKinds.let){const ee=this._scope.toName(k);return this._for(new w(U,ee,C,T),()=>B(ee))}forOf(k,C,T,B=n.varKinds.const){const U=this._scope.toName(k);if(this.opts.es5){const ee=C instanceof t.Name?C:this.var("_arr",C);return this.forRange("_i",0,(0,t._)`${ee}.length`,te=>{this.var(U,(0,t._)`${ee}[${te}]`),T(U)})}return this._for(new x("of",B,U,C),()=>T(U))}forIn(k,C,T,B=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(k,(0,t._)`Object.keys(${C})`,T);const U=this._scope.toName(k);return this._for(new x("in",B,U,C),()=>T(U))}endFor(){return this._endBlockNode(h)}label(k){return this._leafNode(new c(k))}break(k){return this._leafNode(new u(k))}return(k){const C=new I;if(this._blockNode(C),this.code(k),C.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(I)}try(k,C,T){if(!C&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const B=new F;if(this._blockNode(B),this.code(k),C){const U=this.name("e");this._currNode=B.catch=new V(U),C(U)}return T&&(this._currNode=B.finally=new D,this.code(T)),this._endBlockNode(V,D)}throw(k){return this._leafNode(new d(k))}block(k,C){return this._blockStarts.push(this._nodes.length),k&&this.code(k).endBlock(C),this}endBlock(k){const C=this._blockStarts.pop();if(C===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-C;if(T<0||k!==void 0&&T!==k)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${k} expected`);return this._nodes.length=C,this}func(k,C=t.nil,T,B){return this._blockNode(new $(k,C,T)),B&&this.code(B).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(k){return this._currNode.nodes.push(k),this}_blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)}_endBlockNode(k,C){const T=this._currNode;if(T instanceof k||C&&T instanceof C)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${C?`${k.kind}/${C.kind}`:k.kind}"`)}_elseNode(k){const C=this._currNode;if(!(C instanceof p))throw new Error('CodeGen: "else" without "if"');return this._currNode=C.else=k,this}get _root(){return this._nodes[0]}get _currNode(){const k=this._nodes;return k[k.length-1]}set _currNode(k){const C=this._nodes;C[C.length-1]=k}}e.CodeGen=q;function R(A,k){for(const C in k)A[C]=(A[C]||0)+(k[C]||0);return A}function H(A,k){return k instanceof t._CodeOrName?R(A,k.names):A}function j(A,k,C){if(A instanceof t.Name)return T(A);if(!B(A))return A;return new t._Code(A._items.reduce((U,ee)=>(ee instanceof t.Name&&(ee=T(ee)),ee instanceof t._Code?U.push(...ee._items):U.push(ee),U),[]));function T(U){const ee=C[U.str];return ee===void 0||k[U.str]!==1?U:(delete k[U.str],ee)}function B(U){return U instanceof t._Code&&U._items.some(ee=>ee instanceof t.Name&&k[ee.str]===1&&C[ee.str]!==void 0)}}function M(A,k){for(const C in k)A[C]=(A[C]||0)-(k[C]||0)}function z(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,t._)`!${O(A)}`}e.not=z;const ae=P(e.operators.AND);function K(...A){return A.reduce(ae)}e.and=K;const L=P(e.operators.OR);function _(...A){return A.reduce(L)}e.or=_;function P(A){return(k,C)=>k===t.nil?C:C===t.nil?k:(0,t._)`${O(k)} ${A} ${O(C)}`}function O(A){return A instanceof t.Name?A:(0,t._)`(${A})`}})(we);var re={};Object.defineProperty(re,"__esModule",{value:!0});re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const Me=we,Ph=ha;function Vh(e){const t={};for(const n of e)t[n]=!0;return t}re.toHash=Vh;function Eh(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(qd(e,t),!Rd(t,e.self.RULES.all))}re.alwaysValidSchema=Eh;function qd(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema||typeof t=="boolean")return;const s=r.RULES.keywords;for(const a in t)s[a]||Nd(e,`unknown keyword: "${a}"`)}re.checkUnknownRules=qd;function Rd(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(t[n])return!0;return!1}re.schemaHasRules=Rd;function Ah(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}re.schemaHasRulesButRef=Ah;function Oh({topSchemaRef:e,schemaPath:t},n,r,s){if(!s){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Me._)`${n}`}return(0,Me._)`${e}${t}${(0,Me.getProperty)(r)}`}re.schemaRefOrVal=Oh;function Ih(e){return zd(decodeURIComponent(e))}re.unescapeFragment=Ih;function Dh(e){return encodeURIComponent(vi(e))}re.escapeFragment=Dh;function vi(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=vi;function zd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=zd;function Th(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}re.eachItem=Th;function oc({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(s,a,o,i)=>{const l=o===void 0?a:o instanceof Me.Name?(a instanceof Me.Name?e(s,a,o):t(s,a,o),o):a instanceof Me.Name?(t(s,o,a),a):n(a,o);return i===Me.Name&&!(l instanceof Me.Name)?r(s,l):l}}re.mergeEvaluated={props:oc({mergeNames:(e,t,n)=>e.if((0,Me._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,Me._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,Me._)`${n} || {}`).code((0,Me._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,Me._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,Me._)`${n} || {}`),gi(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Ld}),items:oc({mergeNames:(e,t,n)=>e.if((0,Me._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,Me._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,Me._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,Me._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Ld(e,t){if(t===!0)return e.var("props",!0);const n=e.var("props",(0,Me._)`{}`);return t!==void 0&&gi(e,n,t),n}re.evaluatedPropsToName=Ld;function gi(e,t,n){Object.keys(n).forEach(r=>e.assign((0,Me._)`${t}${(0,Me.getProperty)(r)}`,!0))}re.setEvaluated=gi;const ic={};function jh(e,t){return e.scopeValue("func",{ref:t,code:ic[t.code]||(ic[t.code]=new Ph._Code(t.code))})}re.useFunc=jh;var wo;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(wo||(re.Type=wo={}));function Mh(e,t,n){if(e instanceof Me.Name){const r=t===wo.Num;return n?r?(0,Me._)`"[" + ${e} + "]"`:(0,Me._)`"['" + ${e} + "']"`:r?(0,Me._)`"/" + ${e}`:(0,Me._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Me.getProperty)(e).toString():"/"+vi(e)}re.getErrorPath=Mh;function Nd(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}re.checkStrictMode=Nd;var yt={};Object.defineProperty(yt,"__esModule",{value:!0});const rt=we,qh={data:new rt.Name("data"),valCxt:new rt.Name("valCxt"),instancePath:new rt.Name("instancePath"),parentData:new rt.Name("parentData"),parentDataProperty:new rt.Name("parentDataProperty"),rootData:new rt.Name("rootData"),dynamicAnchors:new rt.Name("dynamicAnchors"),vErrors:new rt.Name("vErrors"),errors:new rt.Name("errors"),this:new rt.Name("this"),self:new rt.Name("self"),scope:new rt.Name("scope"),json:new rt.Name("json"),jsonPos:new rt.Name("jsonPos"),jsonLen:new rt.Name("jsonLen"),jsonPart:new rt.Name("jsonPart")};yt.default=qh;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=we,n=re,r=yt;e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:p})=>p?(0,t.str)`"${b}" keyword must be ${p} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function s(b,p=e.keywordError,h,S){const{it:w}=b,{gen:x,compositeRule:$,allErrors:I}=w,F=d(b,p,h);S??($||I)?l(x,F):c(w,(0,t._)`[${F}]`)}e.reportError=s;function a(b,p=e.keywordError,h){const{it:S}=b,{gen:w,compositeRule:x,allErrors:$}=S,I=d(b,p,h);l(w,I),x||$||c(S,r.default.vErrors)}e.reportExtraError=a;function o(b,p){b.assign(r.default.errors,p),b.if((0,t._)`${r.default.vErrors} !== null`,()=>b.if(p,()=>b.assign((0,t._)`${r.default.vErrors}.length`,p),()=>b.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function i({gen:b,keyword:p,schemaValue:h,data:S,errsCount:w,it:x}){if(w===void 0)throw new Error("ajv implementation error");const $=b.name("err");b.forRange("i",w,r.default.errors,I=>{b.const($,(0,t._)`${r.default.vErrors}[${I}]`),b.if((0,t._)`${$}.instancePath === undefined`,()=>b.assign((0,t._)`${$}.instancePath`,(0,t.strConcat)(r.default.instancePath,x.errorPath))),b.assign((0,t._)`${$}.schemaPath`,(0,t.str)`${x.errSchemaPath}/${p}`),x.opts.verbose&&(b.assign((0,t._)`${$}.schema`,h),b.assign((0,t._)`${$}.data`,S))})}e.extendErrors=i;function l(b,p){const h=b.const("err",p);b.if((0,t._)`${r.default.vErrors} === null`,()=>b.assign(r.default.vErrors,(0,t._)`[${h}]`),(0,t._)`${r.default.vErrors}.push(${h})`),b.code((0,t._)`${r.default.errors}++`)}function c(b,p){const{gen:h,validateName:S,schemaEnv:w}=b;w.$async?h.throw((0,t._)`new ${b.ValidationError}(${p})`):(h.assign((0,t._)`${S}.errors`,p),h.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(b,p,h){const{createErrors:S}=b.it;return S===!1?(0,t._)`{}`:m(b,p,h)}function m(b,p,h={}){const{gen:S,it:w}=b,x=[f(w,h),v(b,h)];return y(b,p,x),S.object(...x)}function f({errorPath:b},{instancePath:p}){const h=p?(0,t.str)`${b}${(0,n.getErrorPath)(p,n.Type.Str)}`:b;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,h)]}function v({keyword:b,it:{errSchemaPath:p}},{schemaPath:h,parentSchema:S}){let w=S?p:(0,t.str)`${p}/${b}`;return h&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(h,n.Type.Str)}`),[u.schemaPath,w]}function y(b,{params:p,message:h},S){const{keyword:w,data:x,schemaValue:$,it:I}=b,{opts:F,propertyName:V,topSchemaRef:D,schemaPath:q}=I;S.push([u.keyword,w],[u.params,typeof p=="function"?p(b):p||(0,t._)`{}`]),F.messages&&S.push([u.message,typeof h=="function"?h(b):h]),F.verbose&&S.push([u.schema,$],[u.parentSchema,(0,t._)`${D}${q}`],[r.default.data,x]),V&&S.push([u.propertyName,V])}})(Va);Object.defineProperty(pa,"__esModule",{value:!0});pa.boolOrEmptySchema=pa.topBoolOrEmptySchema=void 0;const Rh=Va,zh=we,Lh=yt,Nh={message:"boolean schema is false"};function Fh(e){const{gen:t,schema:n,validateName:r}=e;n===!1?Fd(e,!1):typeof n=="object"&&n.$async===!0?t.return(Lh.default.data):(t.assign((0,zh._)`${r}.errors`,null),t.return(!0))}pa.topBoolOrEmptySchema=Fh;function Bh(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),Fd(e)):n.var(t,!0)}pa.boolOrEmptySchema=Bh;function Fd(e,t){const{gen:n,data:r}=e,s={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Rh.reportError)(s,Nh,void 0,t)}var Je={},Un={};Object.defineProperty(Un,"__esModule",{value:!0});Un.getRules=Un.isJSONType=void 0;const Uh=["string","number","integer","boolean","null","object","array"],Hh=new Set(Uh);function Kh(e){return typeof e=="string"&&Hh.has(e)}Un.isJSONType=Kh;function Gh(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Un.getRules=Gh;var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.shouldUseRule=Xt.shouldUseGroup=Xt.schemaHasRulesForType=void 0;function Wh({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&Bd(e,r)}Xt.schemaHasRulesForType=Wh;function Bd(e,t){return t.rules.some(n=>Ud(e,n))}Xt.shouldUseGroup=Bd;function Ud(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}Xt.shouldUseRule=Ud;Object.defineProperty(Je,"__esModule",{value:!0});Je.reportTypeError=Je.checkDataTypes=Je.checkDataType=Je.coerceAndCheckDataType=Je.getJSONTypes=Je.getSchemaTypes=Je.DataType=void 0;const Zh=Un,Yh=Xt,Jh=Va,Se=we,Hd=re;var ua;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ua||(Je.DataType=ua={}));function Xh(e){const t=Kd(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}Je.getSchemaTypes=Xh;function Kd(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Zh.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Je.getJSONTypes=Kd;function Qh(e,t){const{gen:n,data:r,opts:s}=e,a=ev(t,s.coerceTypes),o=t.length>0&&!(a.length===0&&t.length===1&&(0,Yh.schemaHasRulesForType)(e,t[0]));if(o){const i=yi(t,r,s.strictNumbers,ua.Wrong);n.if(i,()=>{a.length?tv(e,t,a):bi(e)})}return o}Je.coerceAndCheckDataType=Qh;const Gd=new Set(["string","number","integer","boolean","null"]);function ev(e,t){return t?e.filter(n=>Gd.has(n)||t==="array"&&n==="array"):[]}function tv(e,t,n){const{gen:r,data:s,opts:a}=e,o=r.let("dataType",(0,Se._)`typeof ${s}`),i=r.let("coerced",(0,Se._)`undefined`);a.coerceTypes==="array"&&r.if((0,Se._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>r.assign(s,(0,Se._)`${s}[0]`).assign(o,(0,Se._)`typeof ${s}`).if(yi(t,s,a.strictNumbers),()=>r.assign(i,s))),r.if((0,Se._)`${i} !== undefined`);for(const c of n)(Gd.has(c)||c==="array"&&a.coerceTypes==="array")&&l(c);r.else(),bi(e),r.endIf(),r.if((0,Se._)`${i} !== undefined`,()=>{r.assign(s,i),nv(e,i)});function l(c){switch(c){case"string":r.elseIf((0,Se._)`${o} == "number" || ${o} == "boolean"`).assign(i,(0,Se._)`"" + ${s}`).elseIf((0,Se._)`${s} === null`).assign(i,(0,Se._)`""`);return;case"number":r.elseIf((0,Se._)`${o} == "boolean" || ${s} === null
|
|
4
4
|
|| (${o} == "string" && ${s} && ${s} == +${s})`).assign(i,(0,Se._)`+${s}`);return;case"integer":r.elseIf((0,Se._)`${o} === "boolean" || ${s} === null
|
|
5
5
|
|| (${o} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(i,(0,Se._)`+${s}`);return;case"boolean":r.elseIf((0,Se._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(i,!1).elseIf((0,Se._)`${s} === "true" || ${s} === 1`).assign(i,!0);return;case"null":r.elseIf((0,Se._)`${s} === "" || ${s} === 0 || ${s} === false`),r.assign(i,null);return;case"array":r.elseIf((0,Se._)`${o} === "string" || ${o} === "number"
|
|
@@ -85,7 +85,7 @@ ${t}</tr>
|
|
|
85
85
|
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
|
|
86
86
|
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){if(t=Zu(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let s='<a href="'+t+'"';return n&&(s+=' title="'+n+'"'),s+=">"+r+"</a>",s}image(t,n,r){if(t=Zu(this.options.sanitize,this.options.baseUrl,t),t===null)return r;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=this.options.xhtml?"/>":">",s}text(t){return t}}class Yl{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class Jl{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,n){let r=t,s=0;if(this.seen.hasOwnProperty(r)){s=this.seen[t];do s++,r=t+"-"+s;while(this.seen.hasOwnProperty(r))}return n||(this.seen[t]=s,this.seen[r]=0),r}slug(t,n={}){const r=this.serialize(t);return this.getNextSafeSlug(r,n.dryrun)}}class sn{constructor(t){this.options=t||Pn,this.options.renderer=this.options.renderer||new Ns,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Yl,this.slugger=new Jl}static parse(t,n){return new sn(n).parse(t)}static parseInline(t,n){return new sn(n).parseInline(t)}parse(t,n=!0){let r="",s,a,o,i,l,c,u,d,m,f,v,y,b,p,h,S,w,x,$;const I=t.length;for(s=0;s<I;s++){if(f=t[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[f.type]&&($=this.options.extensions.renderers[f.type].call({parser:this},f),$!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(f.type))){r+=$||"";continue}switch(f.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(f.tokens),f.depth,cp(this.parseInline(f.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(f.text,f.lang,f.escaped);continue}case"table":{for(d="",u="",i=f.header.length,a=0;a<i;a++)u+=this.renderer.tablecell(this.parseInline(f.header[a].tokens),{header:!0,align:f.align[a]});for(d+=this.renderer.tablerow(u),m="",i=f.rows.length,a=0;a<i;a++){for(c=f.rows[a],u="",l=c.length,o=0;o<l;o++)u+=this.renderer.tablecell(this.parseInline(c[o].tokens),{header:!1,align:f.align[o]});m+=this.renderer.tablerow(u)}r+=this.renderer.table(d,m);continue}case"blockquote":{m=this.parse(f.tokens),r+=this.renderer.blockquote(m);continue}case"list":{for(v=f.ordered,y=f.start,b=f.loose,i=f.items.length,m="",a=0;a<i;a++)h=f.items[a],S=h.checked,w=h.task,p="",h.task&&(x=this.renderer.checkbox(S),b?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=x+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=x+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:x}):p+=x),p+=this.parse(h.tokens,b),m+=this.renderer.listitem(p,w,S);r+=this.renderer.list(m,v,y);continue}case"html":{r+=this.renderer.html(f.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(f.tokens));continue}case"text":{for(m=f.tokens?this.parseInline(f.tokens):f.text;s+1<I&&t[s+1].type==="text";)f=t[++s],m+=`
|
|
87
87
|
`+(f.tokens?this.parseInline(f.tokens):f.text);r+=n?this.renderer.paragraph(m):m;continue}default:{const F='Token with "'+f.type+'" type was not found.';if(this.options.silent){console.error(F);return}else throw new Error(F)}}}return r}parseInline(t,n){n=n||this.renderer;let r="",s,a,o;const i=t.length;for(s=0;s<i;s++){if(a=t[s],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]&&(o=this.options.extensions.renderers[a.type].call({parser:this},a),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type))){r+=o||"";continue}switch(a.type){case"escape":{r+=n.text(a.text);break}case"html":{r+=n.html(a.text);break}case"link":{r+=n.link(a.href,a.title,this.parseInline(a.tokens,n));break}case"image":{r+=n.image(a.href,a.title,a.text);break}case"strong":{r+=n.strong(this.parseInline(a.tokens,n));break}case"em":{r+=n.em(this.parseInline(a.tokens,n));break}case"codespan":{r+=n.codespan(a.text);break}case"br":{r+=n.br();break}case"del":{r+=n.del(this.parseInline(a.tokens,n));break}case"text":{r+=n.text(a.text);break}default:{const l='Token with "'+a.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return r}}class rr{constructor(t){this.options=t||Pn}preprocess(t){return t}postprocess(t){return t}}Ze(rr,"passThroughHooks",new Set(["preprocess","postprocess"]));function vse(e,t,n){return r=>{if(r.message+=`
|
|
88
|
-
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+st(r.message+"",!0)+"</pre>";if(t)return Promise.resolve(s);if(n){n(null,s);return}return s}if(t)return Promise.reject(r);if(n){n(r);return}throw r}}function up(e,t){return(n,r,s)=>{typeof r=="function"&&(s=r,r=null);const a={...r};r={...he.defaults,...a};const o=vse(r.silent,r.async,s);if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(mse(r),r.hooks&&(r.hooks.options=r),s){const i=r.highlight;let l;try{r.hooks&&(n=r.hooks.preprocess(n)),l=e(n,r)}catch(d){return o(d)}const c=function(d){let m;if(!d)try{r.walkTokens&&he.walkTokens(l,r.walkTokens),m=t(l,r),r.hooks&&(m=r.hooks.postprocess(m))}catch(f){d=f}return r.highlight=i,d?o(d):s(null,m)};if(!i||i.length<3||(delete r.highlight,!l.length))return c();let u=0;he.walkTokens(l,function(d){d.type==="code"&&(u++,setTimeout(()=>{i(d.text,d.lang,function(m,f){if(m)return c(m);f!=null&&f!==d.text&&(d.text=f,d.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(i=>e(i,r)).then(i=>r.walkTokens?Promise.all(he.walkTokens(i,r.walkTokens)).then(()=>i):i).then(i=>t(i,r)).then(i=>r.hooks?r.hooks.postprocess(i):i).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));const i=e(n,r);r.walkTokens&&he.walkTokens(i,r.walkTokens);let l=t(i,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(i){return o(i)}}}function he(e,t,n){return up(rn.lex,sn.parse)(e,t,n)}he.options=he.setOptions=function(e){return he.defaults={...he.defaults,...e},ese(he.defaults),he};he.getDefaults=Zl;he.defaults=Pn;he.use=function(...e){const t=he.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(n=>{const r={...n};if(r.async=he.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const a=t.renderers[s.name];a?t.renderers[s.name]=function(...o){let i=s.renderer.apply(this,o);return i===!1&&(i=a.apply(this,o)),i}:t.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[s.level]?t[s.level].unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){const s=he.defaults.renderer||new Ns;for(const a in n.renderer){const o=s[a];s[a]=(...i)=>{let l=n.renderer[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.renderer=s}if(n.tokenizer){const s=he.defaults.tokenizer||new Ls;for(const a in n.tokenizer){const o=s[a];s[a]=(...i)=>{let l=n.tokenizer[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.tokenizer=s}if(n.hooks){const s=he.defaults.hooks||new rr;for(const a in n.hooks){const o=s[a];rr.passThroughHooks.has(a)?s[a]=i=>{if(he.defaults.async)return Promise.resolve(n.hooks[a].call(s,i)).then(c=>o.call(s,c));const l=n.hooks[a].call(s,i);return o.call(s,l)}:s[a]=(...i)=>{let l=n.hooks[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.hooks=s}if(n.walkTokens){const s=he.defaults.walkTokens;r.walkTokens=function(a){let o=[];return o.push(n.walkTokens.call(this,a)),s&&(o=o.concat(s.call(this,a))),o}}he.setOptions(r)})};he.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(he,r)),r.type){case"table":{for(const s of r.header)n=n.concat(he.walkTokens(s.tokens,t));for(const s of r.rows)for(const a of s)n=n.concat(he.walkTokens(a.tokens,t));break}case"list":{n=n.concat(he.walkTokens(r.items,t));break}default:he.defaults.extensions&&he.defaults.extensions.childTokens&&he.defaults.extensions.childTokens[r.type]?he.defaults.extensions.childTokens[r.type].forEach(function(s){n=n.concat(he.walkTokens(r[s],t))}):r.tokens&&(n=n.concat(he.walkTokens(r.tokens,t)))}return n};he.parseInline=up(rn.lexInline,sn.parseInline);he.Parser=sn;he.parser=sn.parse;he.Renderer=Ns;he.TextRenderer=Yl;he.Lexer=rn;he.lexer=rn.lex;he.Tokenizer=Ls;he.Slugger=Jl;he.Hooks=rr;he.parse=he;const gse=he.options,yse=he.setOptions,bse=he.use,kse=he.walkTokens,_se=he.parseInline,wse=he,$se=sn.parse,xse=rn.lex,zse=Object.freeze(Object.defineProperty({__proto__:null,Hooks:rr,Lexer:rn,Parser:sn,Renderer:Ns,Slugger:Jl,TextRenderer:Yl,Tokenizer:Ls,get defaults(){return Pn},getDefaults:Zl,lexer:xse,marked:he,options:gse,parse:wse,parseInline:_se,parser:$se,setOptions:yse,use:bse,walkTokens:kse},Symbol.toStringTag,{value:"Module"})),dp=gt({props:{modelValue:{type:Object,required:!0},statefulLayout:{type:Object,required:!0}},setup(e,{expose:t}){const n=J(null),r=E(()=>e.modelValue.data&&he.parse(e.modelValue.data)),s=E(()=>mt(e.modelValue,e.statefulLayout)),a=E(()=>{const d=Yt(e.modelValue,e.statefulLayout);return d.default=()=>{const m=[De(Ra,{text:s.value.label}),De("textarea",{ref:n})];return e.modelValue.options.summary&&m.push(De("div",{innerHTML:r.value})),De("div",{class:"vjsf-node-markdown-content"},m)},d});let o=null,i=null;const l=async()=>{if(e.modelValue.options.readOnly)return;if(!n.value)throw new Error("component was not mounted for markdown editor");const d=(await qp(async()=>{const{default:b}=await import("./easymde-
|
|
88
|
+
Please report this to https://github.com/markedjs/marked.`,e){const s="<p>An error occurred:</p><pre>"+st(r.message+"",!0)+"</pre>";if(t)return Promise.resolve(s);if(n){n(null,s);return}return s}if(t)return Promise.reject(r);if(n){n(r);return}throw r}}function up(e,t){return(n,r,s)=>{typeof r=="function"&&(s=r,r=null);const a={...r};r={...he.defaults,...a};const o=vse(r.silent,r.async,s);if(typeof n>"u"||n===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(mse(r),r.hooks&&(r.hooks.options=r),s){const i=r.highlight;let l;try{r.hooks&&(n=r.hooks.preprocess(n)),l=e(n,r)}catch(d){return o(d)}const c=function(d){let m;if(!d)try{r.walkTokens&&he.walkTokens(l,r.walkTokens),m=t(l,r),r.hooks&&(m=r.hooks.postprocess(m))}catch(f){d=f}return r.highlight=i,d?o(d):s(null,m)};if(!i||i.length<3||(delete r.highlight,!l.length))return c();let u=0;he.walkTokens(l,function(d){d.type==="code"&&(u++,setTimeout(()=>{i(d.text,d.lang,function(m,f){if(m)return c(m);f!=null&&f!==d.text&&(d.text=f,d.escaped=!0),u--,u===0&&c()})},0))}),u===0&&c();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(i=>e(i,r)).then(i=>r.walkTokens?Promise.all(he.walkTokens(i,r.walkTokens)).then(()=>i):i).then(i=>t(i,r)).then(i=>r.hooks?r.hooks.postprocess(i):i).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));const i=e(n,r);r.walkTokens&&he.walkTokens(i,r.walkTokens);let l=t(i,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(i){return o(i)}}}function he(e,t,n){return up(rn.lex,sn.parse)(e,t,n)}he.options=he.setOptions=function(e){return he.defaults={...he.defaults,...e},ese(he.defaults),he};he.getDefaults=Zl;he.defaults=Pn;he.use=function(...e){const t=he.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(n=>{const r={...n};if(r.async=he.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if(s.renderer){const a=t.renderers[s.name];a?t.renderers[s.name]=function(...o){let i=s.renderer.apply(this,o);return i===!1&&(i=a.apply(this,o)),i}:t.renderers[s.name]=s.renderer}if(s.tokenizer){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[s.level]?t[s.level].unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){const s=he.defaults.renderer||new Ns;for(const a in n.renderer){const o=s[a];s[a]=(...i)=>{let l=n.renderer[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.renderer=s}if(n.tokenizer){const s=he.defaults.tokenizer||new Ls;for(const a in n.tokenizer){const o=s[a];s[a]=(...i)=>{let l=n.tokenizer[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.tokenizer=s}if(n.hooks){const s=he.defaults.hooks||new rr;for(const a in n.hooks){const o=s[a];rr.passThroughHooks.has(a)?s[a]=i=>{if(he.defaults.async)return Promise.resolve(n.hooks[a].call(s,i)).then(c=>o.call(s,c));const l=n.hooks[a].call(s,i);return o.call(s,l)}:s[a]=(...i)=>{let l=n.hooks[a].apply(s,i);return l===!1&&(l=o.apply(s,i)),l}}r.hooks=s}if(n.walkTokens){const s=he.defaults.walkTokens;r.walkTokens=function(a){let o=[];return o.push(n.walkTokens.call(this,a)),s&&(o=o.concat(s.call(this,a))),o}}he.setOptions(r)})};he.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(he,r)),r.type){case"table":{for(const s of r.header)n=n.concat(he.walkTokens(s.tokens,t));for(const s of r.rows)for(const a of s)n=n.concat(he.walkTokens(a.tokens,t));break}case"list":{n=n.concat(he.walkTokens(r.items,t));break}default:he.defaults.extensions&&he.defaults.extensions.childTokens&&he.defaults.extensions.childTokens[r.type]?he.defaults.extensions.childTokens[r.type].forEach(function(s){n=n.concat(he.walkTokens(r[s],t))}):r.tokens&&(n=n.concat(he.walkTokens(r.tokens,t)))}return n};he.parseInline=up(rn.lexInline,sn.parseInline);he.Parser=sn;he.parser=sn.parse;he.Renderer=Ns;he.TextRenderer=Yl;he.Lexer=rn;he.lexer=rn.lex;he.Tokenizer=Ls;he.Slugger=Jl;he.Hooks=rr;he.parse=he;const gse=he.options,yse=he.setOptions,bse=he.use,kse=he.walkTokens,_se=he.parseInline,wse=he,$se=sn.parse,xse=rn.lex,zse=Object.freeze(Object.defineProperty({__proto__:null,Hooks:rr,Lexer:rn,Parser:sn,Renderer:Ns,Slugger:Jl,TextRenderer:Yl,Tokenizer:Ls,get defaults(){return Pn},getDefaults:Zl,lexer:xse,marked:he,options:gse,parse:wse,parseInline:_se,parser:$se,setOptions:yse,use:bse,walkTokens:kse},Symbol.toStringTag,{value:"Module"})),dp=gt({props:{modelValue:{type:Object,required:!0},statefulLayout:{type:Object,required:!0}},setup(e,{expose:t}){const n=J(null),r=E(()=>e.modelValue.data&&he.parse(e.modelValue.data)),s=E(()=>mt(e.modelValue,e.statefulLayout)),a=E(()=>{const d=Yt(e.modelValue,e.statefulLayout);return d.default=()=>{const m=[De(Ra,{text:s.value.label}),De("textarea",{ref:n})];return e.modelValue.options.summary&&m.push(De("div",{innerHTML:r.value})),De("div",{class:"vjsf-node-markdown-content"},m)},d});let o=null,i=null;const l=async()=>{if(e.modelValue.options.readOnly)return;if(!n.value)throw new Error("component was not mounted for markdown editor");const d=(await qp(async()=>{const{default:b}=await import("./easymde-d5EWT2tD.js").then(p=>p.e);return{default:b}},__vite__mapDeps([0,1,2]))).default,m=e.modelValue.messages,f=e.modelValue.options.pluginsOptions.markdown,v={element:n.value,initialValue:e.modelValue.data??"",renderingConfig:{},status:!1,autoDownloadFontAwesome:!1,spellChecker:!1,minHeight:"300px",insertTexts:{link:[m.mdeLink1,m.mdeLink2],image:[m.mdeImg1,m.mdeImg2],table:[m.mdeTable1,m.mdeTable2],horizontalRule:["",`
|
|
89
89
|
|
|
90
90
|
-----
|
|
91
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as q,c as F,a as G,n as H,h as Q,o as U,j as K,p as x,k as X,V as $,l as z,q as J,e as W,d as S}from"./forwardRefs-
|
|
1
|
+
import{b as q,c as F,a as G,n as H,h as Q,o as U,j as K,p as x,k as X,V as $,l as z,q as J,e as W,d as S}from"./forwardRefs-Bc9m8m6d.js";import{Q as D,B as Z,D as ee,E as te,ac as ae,g as ne,R as oe,G as se,H as re,r as w,s as P,aP as le,w as L,f as ie,aQ as ue,q as ce,L as me,M as s,X as R,j as ve,p as fe,n as de,ad as ye,ae as ke,af as be,ai as Ve,aj as Se,u as B,l as we}from"./index-ua6G9zQ2.js";const I=Symbol.for("vuetify:layout");function Pe(){const e=D(I);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function ge(e){const o=P(e());let t=-1;function a(){clearInterval(t)}function f(){a(),de(()=>o.value=e())}function d(l){const y=l?getComputedStyle(l):{transitionDuration:.2},i=parseFloat(y.transitionDuration)*1e3||200;if(a(),o.value<=0)return;const k=performance.now();t=window.setInterval(()=>{const b=performance.now()-k+i;o.value=Math.max(e()-b,0),o.value<=0&&a()},i)}return ve(a),{clear:a,time:o,start:d,reset:f}}const he=Z({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...q({location:"bottom"}),...F(),...ee(),...G(),...te(),...ae(H({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),Te=ne()({name:"VSnackbar",props:he(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:t}=o;const a=oe(e,"modelValue"),{positionClasses:f}=Q(e),{scopeId:d}=U(),{themeClasses:l}=se(e),{colorClasses:y,colorStyles:i,variantClasses:k}=K(e),{roundedClasses:b}=re(e),u=ge(()=>Number(e.timeout)),g=w(),h=w(),c=P(!1),T=P(0),_=w(),M=D(I,void 0);le(()=>!!M,()=>{const n=Pe();fe(()=>{_.value=n.mainStyles.value})}),L(a,m),L(()=>e.timeout,m),ie(()=>{a.value&&m()});let V=-1;function m(){u.reset(),window.clearTimeout(V);const n=Number(e.timeout);if(!a.value||n===-1)return;const r=ue(h.value);u.start(r),V=window.setTimeout(()=>{a.value=!1},n)}function j(){u.reset(),window.clearTimeout(V)}function A(){c.value=!0,j()}function C(){c.value=!1,m()}function E(n){T.value=n.touches[0].clientY}function N(n){Math.abs(T.value-n.changedTouches[0].clientY)>50&&(a.value=!1)}function O(){c.value&&C()}const Y=ce(()=>e.location.split(" ").reduce((n,r)=>(n[`v-snackbar--${r}`]=!0,n),{}));return me(()=>{const n=x.filterProps(e),r=!!(t.default||t.text||e.text);return s(x,R({ref:g,class:["v-snackbar",{"v-snackbar--active":a.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},Y.value,f.value,e.class],style:[_.value,e.style]},n,{modelValue:a.value,"onUpdate:modelValue":v=>a.value=v,contentProps:R({class:["v-snackbar__wrapper",l.value,y.value,b.value,k.value],style:[i.value],onPointerenter:A,onPointerleave:C},n.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:E,onTouchend:N,onAfterLeave:O},d),{default:()=>{var v,p;return[X(!1,"v-snackbar"),e.timer&&!c.value&&s("div",{key:"timer",class:"v-snackbar__timer"},[s($,{ref:h,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":u.time.value},null)]),r&&s("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((v=t.text)==null?void 0:v.call(t))??e.text,(p=t.default)==null?void 0:p.call(t)]),t.actions&&s(z,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[s("div",{class:"v-snackbar__actions"},[t.actions({isActive:a})])]})]},activator:t.activator})}),J({},g)}}),pe={__name:"SnackBar",setup(e){return(o,t)=>(ye(),ke(Te,{modelValue:B(S),"onUpdate:modelValue":t[0]||(t[0]=a=>we(S)?S.value=a:null),timeout:"5000",color:"red"},{default:be(()=>[Ve("div",null,Se(B(W)),1)]),_:1},8,["modelValue"]))}};export{pe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bP as vf,b3 as Kl,b2 as mf}from"./index-2Fyqrkpe.js";import{m as yf}from"./EventEdit-DzXB6mDC.js";var Xl={exports:{}};(function(f,x){(function(c,m){f.exports=m()})(vf,function(){var c=navigator.userAgent,m=navigator.platform,p=/gecko\/\d/i.test(c),S=/MSIE \d/.test(c),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(c),v=/Edge\/(\d+)/.exec(c),g=S||d||v,k=g&&(S?document.documentMode||6:+(v||d)[1]),E=!v&&/WebKit\//.test(c),N=E&&/Qt\/\d+\.\d+/.test(c),M=!v&&/Chrome\/(\d+)/.exec(c),O=M&&+M[1],I=/Opera\//.test(c),Z=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(c),j=/PhantomJS/.test(c),D=Z&&(/Mobile\/\w+/.test(c)||navigator.maxTouchPoints>2),A=/Android/.test(c),H=D||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(c),z=D||/Mac/.test(m),G=/\bCrOS\b/.test(c),B=/win/i.test(m),Q=I&&c.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(I=!1,E=!0);var re=z&&(N||I&&(Q==null||Q<12.11)),we=p||g&&k>=9;function K(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var fe=function(e,t){var i=e.className,r=K(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function ce(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function le(e,t){return ce(e).appendChild(t)}function L(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)n.appendChild(t[a]);return n}function q(e,t,i,r){var n=L(e,t,i,r);return n.setAttribute("role","presentation"),n}var R;document.createRange?R=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:R=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function ee(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ge(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function qe(e,t){var i=e.className;K(t).test(i)||(e.className+=(i?" ":"")+t)}function Nt(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!K(i[r]).test(t)&&(t+=" "+i[r]);return t}var w=function(e){e.select()};D?w=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:g&&(w=function(e){try{e.select()}catch{}});function h(e){return e.display.wrapper.ownerDocument}function te(e){return ve(e.display.wrapper)}function ve(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function he(e){return h(e).defaultView}function Je(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ot(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function Oe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=n||0;;){var l=e.indexOf(" ",a);if(l<0||l>=t)return o+(t-a);o+=l-a,o+=i-o%i,a=l+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};Xe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Xe.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ke(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Me=50,Ie={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},Nr={origin:"*mouse"},mt={origin:"+move"};function yt(e,t,i){for(var r=0,n=0;;){var a=e.indexOf(" ",r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=a-r,n+=i-n%i,r=a+1,n>=t)return r}}var ct=[""];function Ht(e){for(;ct.length<=e;)ct.push(pe(ct)+" ");return ct[e]}function pe(e){return e[e.length-1]}function ht(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Ot(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function di(){}function Ha(e,t){var i;return Object.create?i=Object.create(e):(di.prototype=e,i=new di),t&&ot(t,i),i}var is=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function vn(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||is.test(e))}function pi(e,t){return t?t.source.indexOf("\\w")>-1&&vn(e)?!0:t.test(e):vn(e)}function Oa(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ns=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mn(e){return e.charCodeAt(0)>=768&&ns.test(e)}function Ia(e,t,i){for(;(i<0?t>0:t<e.length)&&mn(e.charAt(t));)t+=i;return t}function Hr(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,a=r<0?Math.ceil(n):Math.floor(n);if(a==t)return e(a)?t:i;e(a)?i=a:t=a+r}}function as(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,a=0;a<e.length;++a){var o=e[a];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",a),n=!0)}n||r(t,i,"ltr")}var Or=null;function Ir(e,t,i){var r;Or=null;for(var n=0;n<e.length;++n){var a=e[n];if(a.from<t&&a.to>t)return n;a.to==t&&(a.from!=a.to&&i=="before"?r=n:Or=n),a.from==t&&(a.from!=a.to&&i!="before"?r=n:Or=n)}return r??Or}var os=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function s(u,y,b){this.level=u,this.from=y,this.to=b}return function(u,y){var b=y=="ltr"?"L":"R";if(u.length==0||y=="ltr"&&!r.test(u))return!1;for(var T=u.length,C=[],F=0;F<T;++F)C.push(i(u.charCodeAt(F)));for(var P=0,U=b;P<T;++P){var X=C[P];X=="m"?C[P]=U:U=X}for(var J=0,Y=b;J<T;++J){var $=C[J];$=="1"&&Y=="r"?C[J]="n":a.test($)&&(Y=$,$=="r"&&(C[J]="R"))}for(var ae=1,ne=C[0];ae<T-1;++ae){var de=C[ae];de=="+"&&ne=="1"&&C[ae+1]=="1"?C[ae]="1":de==","&&ne==C[ae+1]&&(ne=="1"||ne=="n")&&(C[ae]=ne),ne=de}for(var be=0;be<T;++be){var _e=C[be];if(_e==",")C[be]="N";else if(_e=="%"){var Te=void 0;for(Te=be+1;Te<T&&C[Te]=="%";++Te);for(var at=be&&C[be-1]=="!"||Te<T&&C[Te]=="1"?"1":"N",tt=be;tt<Te;++tt)C[tt]=at;be=Te-1}}for(var Ne=0,rt=b;Ne<T;++Ne){var Ge=C[Ne];rt=="L"&&Ge=="1"?C[Ne]="L":a.test(Ge)&&(rt=Ge)}for(var Pe=0;Pe<T;++Pe)if(n.test(C[Pe])){var He=void 0;for(He=Pe+1;He<T&&n.test(C[He]);++He);for(var De=(Pe?C[Pe-1]:b)=="L",it=(He<T?C[He]:b)=="L",Dr=De==it?De?"L":"R":b,qt=Pe;qt<He;++qt)C[qt]=Dr;Pe=He-1}for(var Ke=[],kt,Ue=0;Ue<T;)if(o.test(C[Ue])){var ka=Ue;for(++Ue;Ue<T&&o.test(C[Ue]);++Ue);Ke.push(new s(0,ka,Ue))}else{var Et=Ue,ir=Ke.length,nr=y=="rtl"?1:0;for(++Ue;Ue<T&&C[Ue]!="L";++Ue);for(var Ze=Et;Ze<Ue;)if(l.test(C[Ze])){Et<Ze&&(Ke.splice(ir,0,new s(1,Et,Ze)),ir+=nr);var Fr=Ze;for(++Ze;Ze<Ue&&l.test(C[Ze]);++Ze);Ke.splice(ir,0,new s(2,Fr,Ze)),ir+=nr,Et=Ze}else++Ze;Et<Ue&&Ke.splice(ir,0,new s(1,Et,Ue))}return y=="ltr"&&(Ke[0].level==1&&(kt=u.match(/^\s+/))&&(Ke[0].from=kt[0].length,Ke.unshift(new s(0,0,kt[0].length))),pe(Ke).level==1&&(kt=u.match(/\s+$/))&&(pe(Ke).to-=kt[0].length,Ke.push(new s(0,T-kt[0].length,T)))),y=="rtl"?Ke.reverse():Ke}}();function Ct(e,t){var i=e.order;return i==null&&(i=e.order=os(e.text,t)),i}var Pa=[],oe=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pa).concat(i)}};function yn(e,t){return e._handlers&&e._handlers[t]||Pa}function lt(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var a=ke(n,i);a>-1&&(r[t]=n.slice(0,a).concat(n.slice(a+1)))}}}function Ee(e,t){var i=yn(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function Be(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ee(e,i||t.type,e,t),xn(t)||t.codemirrorIgnore}function Ba(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ke(i,t[r])==-1&&i.push(t[r])}function ft(e,t){return yn(e,t).length>0}function sr(e){e.prototype.on=function(t,i){oe(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function Ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ra(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Pr(e){Ve(e),Ra(e)}function bn(e){return e.target||e.srcElement}function Wa(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),z&&e.ctrlKey&&t==1&&(t=3),t}var ls=function(){if(g&&k<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}(),Sn;function ss(e){if(Sn==null){var t=L("span","");le(e,L("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Sn=t.offsetWidth<=1&&t.offsetHeight>2&&!(g&&k<8))}var i=Sn?L("span",""):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var wn;function us(e){if(wn!=null)return wn;var t=le(e,document.createTextNode("AخA")),i=R(t,0,1).getBoundingClientRect(),r=R(t,1,2).getBoundingClientRect();return ce(e),!i||i.left==i.right?!1:wn=r.right-i.right<3}var kn=`
|
|
1
|
+
import{bP as vf,b3 as Kl,b2 as mf}from"./index-ua6G9zQ2.js";import{m as yf}from"./EventEdit-DNojdl-3.js";var Xl={exports:{}};(function(f,x){(function(c,m){f.exports=m()})(vf,function(){var c=navigator.userAgent,m=navigator.platform,p=/gecko\/\d/i.test(c),S=/MSIE \d/.test(c),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(c),v=/Edge\/(\d+)/.exec(c),g=S||d||v,k=g&&(S?document.documentMode||6:+(v||d)[1]),E=!v&&/WebKit\//.test(c),N=E&&/Qt\/\d+\.\d+/.test(c),M=!v&&/Chrome\/(\d+)/.exec(c),O=M&&+M[1],I=/Opera\//.test(c),Z=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(c),j=/PhantomJS/.test(c),D=Z&&(/Mobile\/\w+/.test(c)||navigator.maxTouchPoints>2),A=/Android/.test(c),H=D||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(c),z=D||/Mac/.test(m),G=/\bCrOS\b/.test(c),B=/win/i.test(m),Q=I&&c.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(I=!1,E=!0);var re=z&&(N||I&&(Q==null||Q<12.11)),we=p||g&&k>=9;function K(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var fe=function(e,t){var i=e.className,r=K(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function ce(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function le(e,t){return ce(e).appendChild(t)}function L(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var a=0;a<t.length;++a)n.appendChild(t[a]);return n}function q(e,t,i,r){var n=L(e,t,i,r);return n.setAttribute("role","presentation"),n}var R;document.createRange?R=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:R=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function ee(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ge(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function qe(e,t){var i=e.className;K(t).test(i)||(e.className+=(i?" ":"")+t)}function Nt(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!K(i[r]).test(t)&&(t+=" "+i[r]);return t}var w=function(e){e.select()};D?w=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:g&&(w=function(e){try{e.select()}catch{}});function h(e){return e.display.wrapper.ownerDocument}function te(e){return ve(e.display.wrapper)}function ve(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function he(e){return h(e).defaultView}function Je(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ot(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function Oe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var a=r||0,o=n||0;;){var l=e.indexOf(" ",a);if(l<0||l>=t)return o+(t-a);o+=l-a,o+=i-o%i,a=l+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};Xe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Xe.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ke(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Me=50,Ie={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},Nr={origin:"*mouse"},mt={origin:"+move"};function yt(e,t,i){for(var r=0,n=0;;){var a=e.indexOf(" ",r);a==-1&&(a=e.length);var o=a-r;if(a==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=a-r,n+=i-n%i,r=a+1,n>=t)return r}}var ct=[""];function Ht(e){for(;ct.length<=e;)ct.push(pe(ct)+" ");return ct[e]}function pe(e){return e[e.length-1]}function ht(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Ot(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function di(){}function Ha(e,t){var i;return Object.create?i=Object.create(e):(di.prototype=e,i=new di),t&&ot(t,i),i}var is=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function vn(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||is.test(e))}function pi(e,t){return t?t.source.indexOf("\\w")>-1&&vn(e)?!0:t.test(e):vn(e)}function Oa(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ns=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mn(e){return e.charCodeAt(0)>=768&&ns.test(e)}function Ia(e,t,i){for(;(i<0?t>0:t<e.length)&&mn(e.charAt(t));)t+=i;return t}function Hr(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,a=r<0?Math.ceil(n):Math.floor(n);if(a==t)return e(a)?t:i;e(a)?i=a:t=a+r}}function as(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,a=0;a<e.length;++a){var o=e[a];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",a),n=!0)}n||r(t,i,"ltr")}var Or=null;function Ir(e,t,i){var r;Or=null;for(var n=0;n<e.length;++n){var a=e[n];if(a.from<t&&a.to>t)return n;a.to==t&&(a.from!=a.to&&i=="before"?r=n:Or=n),a.from==t&&(a.from!=a.to&&i!="before"?r=n:Or=n)}return r??Or}var os=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,l=/[1n]/;function s(u,y,b){this.level=u,this.from=y,this.to=b}return function(u,y){var b=y=="ltr"?"L":"R";if(u.length==0||y=="ltr"&&!r.test(u))return!1;for(var T=u.length,C=[],F=0;F<T;++F)C.push(i(u.charCodeAt(F)));for(var P=0,U=b;P<T;++P){var X=C[P];X=="m"?C[P]=U:U=X}for(var J=0,Y=b;J<T;++J){var $=C[J];$=="1"&&Y=="r"?C[J]="n":a.test($)&&(Y=$,$=="r"&&(C[J]="R"))}for(var ae=1,ne=C[0];ae<T-1;++ae){var de=C[ae];de=="+"&&ne=="1"&&C[ae+1]=="1"?C[ae]="1":de==","&&ne==C[ae+1]&&(ne=="1"||ne=="n")&&(C[ae]=ne),ne=de}for(var be=0;be<T;++be){var _e=C[be];if(_e==",")C[be]="N";else if(_e=="%"){var Te=void 0;for(Te=be+1;Te<T&&C[Te]=="%";++Te);for(var at=be&&C[be-1]=="!"||Te<T&&C[Te]=="1"?"1":"N",tt=be;tt<Te;++tt)C[tt]=at;be=Te-1}}for(var Ne=0,rt=b;Ne<T;++Ne){var Ge=C[Ne];rt=="L"&&Ge=="1"?C[Ne]="L":a.test(Ge)&&(rt=Ge)}for(var Pe=0;Pe<T;++Pe)if(n.test(C[Pe])){var He=void 0;for(He=Pe+1;He<T&&n.test(C[He]);++He);for(var De=(Pe?C[Pe-1]:b)=="L",it=(He<T?C[He]:b)=="L",Dr=De==it?De?"L":"R":b,qt=Pe;qt<He;++qt)C[qt]=Dr;Pe=He-1}for(var Ke=[],kt,Ue=0;Ue<T;)if(o.test(C[Ue])){var ka=Ue;for(++Ue;Ue<T&&o.test(C[Ue]);++Ue);Ke.push(new s(0,ka,Ue))}else{var Et=Ue,ir=Ke.length,nr=y=="rtl"?1:0;for(++Ue;Ue<T&&C[Ue]!="L";++Ue);for(var Ze=Et;Ze<Ue;)if(l.test(C[Ze])){Et<Ze&&(Ke.splice(ir,0,new s(1,Et,Ze)),ir+=nr);var Fr=Ze;for(++Ze;Ze<Ue&&l.test(C[Ze]);++Ze);Ke.splice(ir,0,new s(2,Fr,Ze)),ir+=nr,Et=Ze}else++Ze;Et<Ue&&Ke.splice(ir,0,new s(1,Et,Ue))}return y=="ltr"&&(Ke[0].level==1&&(kt=u.match(/^\s+/))&&(Ke[0].from=kt[0].length,Ke.unshift(new s(0,0,kt[0].length))),pe(Ke).level==1&&(kt=u.match(/\s+$/))&&(pe(Ke).to-=kt[0].length,Ke.push(new s(0,T-kt[0].length,T)))),y=="rtl"?Ke.reverse():Ke}}();function Ct(e,t){var i=e.order;return i==null&&(i=e.order=os(e.text,t)),i}var Pa=[],oe=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pa).concat(i)}};function yn(e,t){return e._handlers&&e._handlers[t]||Pa}function lt(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var a=ke(n,i);a>-1&&(r[t]=n.slice(0,a).concat(n.slice(a+1)))}}}function Ee(e,t){var i=yn(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function Be(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ee(e,i||t.type,e,t),xn(t)||t.codemirrorIgnore}function Ba(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ke(i,t[r])==-1&&i.push(t[r])}function ft(e,t){return yn(e,t).length>0}function sr(e){e.prototype.on=function(t,i){oe(this,t,i)},e.prototype.off=function(t,i){lt(this,t,i)}}function Ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ra(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Pr(e){Ve(e),Ra(e)}function bn(e){return e.target||e.srcElement}function Wa(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),z&&e.ctrlKey&&t==1&&(t=3),t}var ls=function(){if(g&&k<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}(),Sn;function ss(e){if(Sn==null){var t=L("span","");le(e,L("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Sn=t.offsetWidth<=1&&t.offsetHeight>2&&!(g&&k<8))}var i=Sn?L("span",""):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var wn;function us(e){if(wn!=null)return wn;var t=le(e,document.createTextNode("AخA")),i=R(t,0,1).getBoundingClientRect(),r=R(t,1,2).getBoundingClientRect();return ce(e),!i||i.left==i.right?!1:wn=r.right-i.right<3}var kn=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
|
|
4
4
|
`,t);n==-1&&(n=e.length);var a=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=a.indexOf("\r");o!=-1?(i.push(a.slice(0,o)),t+=o+1):(i.push(a),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},fs=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},cs=function(){var e=L("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Cn=null;function hs(e){if(Cn!=null)return Cn;var t=le(e,L("span","x")),i=t.getBoundingClientRect(),r=R(t,0,1).getBoundingClientRect();return Cn=Math.abs(i.left-r.left)>1}var Ln={},ur={};function ds(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ln[e]=t}function ps(e,t){ur[e]=t}function gi(e){if(typeof e=="string"&&ur.hasOwnProperty(e))e=ur[e];else if(e&&typeof e.name=="string"&&ur.hasOwnProperty(e.name)){var t=ur[e.name];typeof t=="string"&&(t={name:t}),e=Ha(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return gi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return gi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Tn(e,t){t=gi(t);var i=Ln[t.name];if(!i)return Tn(e,"text/plain");var r=i(e,t);if(fr.hasOwnProperty(t.name)){var n=fr[t.name];for(var a in n)n.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=n[a])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var fr={};function gs(e,t){var i=fr.hasOwnProperty(e)?fr[e]:fr[e]={};ot(t,i)}function Kt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Mn(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function za(e,t,i){return e.startState?e.startState(t,i):!0}var Ae=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Ae.prototype.eol=function(){return this.pos>=this.string.length},Ae.prototype.sol=function(){return this.pos==this.lineStart},Ae.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ae.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ae.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},Ae.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ae.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ae.prototype.skipToEnd=function(){this.pos=this.string.length},Ae.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ae.prototype.backUp=function(e){this.pos-=e},Ae.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Oe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Oe(this.string,this.lineStart,this.tabSize):0)},Ae.prototype.indentation=function(){return Oe(this.string,null,this.tabSize)-(this.lineStart?Oe(this.string,this.lineStart,this.tabSize):0)},Ae.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(o){return i?o.toLowerCase():o},n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var a=this.string.slice(this.pos).match(e);return a&&a.index>0?null:(a&&t!==!1&&(this.pos+=a[0].length),a)}},Ae.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ae.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ae.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ae.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ie(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],a=n.chunkSize();if(t<a){i=n;break}t-=a}return i.lines[t]}function Xt(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(a){var o=a.text;n==i.line&&(o=o.slice(0,i.ch)),n==t.line&&(o=o.slice(t.ch)),r.push(o),++n}),r}function Dn(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}function xt(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function ye(e){if(e.parent==null)return null;for(var t=e.parent,i=ke(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}function Yt(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],a=n.height;if(t<a){e=n;continue e}t-=a,i+=n.chunkSize()}return i}while(!e.lines);for(var o=0;o<e.lines.length;++o){var l=e.lines[o],s=l.height;if(t<s)break;t-=s}return i+o}function Br(e,t){return t>=e.first&&t<e.first+e.size}function Fn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function W(e,t,i){if(i===void 0&&(i=null),!(this instanceof W))return new W(e,t,i);this.line=e,this.ch=t,this.sticky=i}function se(e,t){return e.line-t.line||e.ch-t.ch}function En(e,t){return e.sticky==t.sticky&&se(e,t)==0}function An(e){return W(e.line,e.ch)}function vi(e,t){return se(e,t)<0?t:e}function mi(e,t){return se(e,t)<0?e:t}function _a(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ue(e,t){if(t.line<e.first)return W(e.first,0);var i=e.first+e.size-1;return t.line>i?W(i,ie(e,i).text.length):vs(t,ie(e,t.line).text.length)}function vs(e,t){var i=e.ch;return i==null||i>t?W(e.line,t):i<0?W(e.line,0):e}function Ua(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=ue(e,t[r]);return i}var yi=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,i){return t instanceof yi?new bt(e,Kt(e.mode,t.state),i,t.lookAhead):new bt(e,Kt(e.mode,t),i)},bt.prototype.save=function(e){var t=e!==!1?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(t,this.maxLookAhead):t};function qa(e,t,i,r){var n=[e.state.modeGen],a={};Za(e,t.text,e.doc.mode,i,function(u,y){return n.push(u,y)},a,r);for(var o=i.state,l=function(u){i.baseTokens=n;var y=e.state.overlays[u],b=1,T=0;i.state=!0,Za(e,t.text,y.mode,i,function(C,F){for(var P=b;T<C;){var U=n[b];U>C&&n.splice(b,1,C,n[b+1],U),b+=2,T=Math.min(C,U)}if(F)if(y.opaque)n.splice(P,b-P,C,"overlay "+F),b=P+2;else for(;P<b;P+=2){var X=n[P+1];n[P+1]=(X?X+" ":"")+"overlay "+F}},a),i.state=o,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:n,classes:a.bgClass||a.textClass?a:null}}function Ga(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Rr(e,ye(t)),n=t.text.length>e.options.maxHighlightLength&&Kt(e.doc.mode,r.state),a=qa(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=a.styles,a.classes?t.styleClasses=a.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Rr(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new bt(r,!0,t);var a=ms(e,t,i),o=a>r.first&&ie(r,a-1).stateAfter,l=o?bt.fromSaved(r,o,a):new bt(r,za(r.mode),a);return r.iter(a,t,function(s){Nn(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&u<n.viewTo?l.save():null,l.nextLine()}),i&&(r.modeFrontier=l.line),l}function Nn(e,t,i,r){var n=e.doc.mode,a=new Ae(t,e.options.tabSize,i);for(a.start=a.pos=r||0,t==""&&ja(n,i.state);!a.eol();)Hn(n,a,i.state),a.start=a.pos}function ja(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Mn(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Hn(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=Mn(e,i).mode);var a=e.token(t,i);if(t.pos>t.start)return a}throw new Error("Mode "+e.name+" failed to advance stream.")}var Ka=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Xa(e,t,i,r){var n=e.doc,a=n.mode,o;t=ue(n,t);var l=ie(n,t.line),s=Rr(e,t.line,i),u=new Ae(l.text,e.options.tabSize,s),y;for(r&&(y=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=Hn(a,u,s.state),r&&y.push(new Ka(u,o,Kt(n.mode,s.state)));return r?y:new Ka(u,o,s.state)}function Ya(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Za(e,t,i,r,n,a,o){var l=i.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,u=null,y=new Ae(t,e.options.tabSize,r),b,T=e.options.addModeClass&&[null];for(t==""&&Ya(ja(i,r.state),a);!y.eol();){if(y.pos>e.options.maxHighlightLength?(l=!1,o&&Nn(e,t,r,y.pos),y.pos=t.length,b=null):b=Ya(Hn(i,y,r.state,T),a),T){var C=T[0].name;C&&(b="m-"+(b?C+" "+b:C))}if(!l||u!=b){for(;s<y.start;)s=Math.min(y.start,s+5e3),n(s,u);u=b}y.start=y.pos}for(;s<y.pos;){var F=Math.min(y.pos,s+5e3);n(F,u),s=F}}function ms(e,t,i){for(var r,n,a=e.doc,o=i?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>o;--l){if(l<=a.first)return a.first;var s=ie(a,l-1),u=s.stateAfter;if(u&&(!i||l+(u instanceof yi?u.lookAhead:0)<=a.modeFrontier))return l;var y=Oe(s.text,null,e.options.tabSize);(n==null||r>y)&&(n=l-1,r=y)}return n}function ys(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=ie(e,r).stateAfter;if(n&&(!(n instanceof yi)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Ja=!1,Lt=!1;function xs(){Ja=!0}function bs(){Lt=!0}function xi(e,t,i){this.marker=e,this.from=t,this.to=i}function Wr(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function Ss(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function ws(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function ks(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var a=e[n],o=a.marker,l=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);if(l||a.from==t&&o.type=="bookmark"&&(!i||!a.marker.insertLeft)){var s=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);(r||(r=[])).push(new xi(o,a.from,s?null:a.to))}}return r}function Cs(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var a=e[n],o=a.marker,l=a.to==null||(o.inclusiveRight?a.to>=t:a.to>t);if(l||a.from==t&&o.type=="bookmark"&&(!i||a.marker.insertLeft)){var s=a.from==null||(o.inclusiveLeft?a.from<=t:a.from<t);(r||(r=[])).push(new xi(o,s?null:a.from-t,a.to==null?null:a.to-t))}}return r}function On(e,t){if(t.full)return null;var i=Br(e,t.from.line)&&ie(e,t.from.line).markedSpans,r=Br(e,t.to.line)&&ie(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,a=t.to.ch,o=se(t.from,t.to)==0,l=ks(i,n,o),s=Cs(r,a,o),u=t.text.length==1,y=pe(t.text).length+(u?n:0);if(l)for(var b=0;b<l.length;++b){var T=l[b];if(T.to==null){var C=Wr(s,T.marker);C?u&&(T.to=C.to==null?null:C.to+y):T.to=n}}if(s)for(var F=0;F<s.length;++F){var P=s[F];if(P.to!=null&&(P.to+=y),P.from==null){var U=Wr(l,P.marker);U||(P.from=y,u&&(l||(l=[])).push(P))}else P.from+=y,u&&(l||(l=[])).push(P)}l&&(l=Qa(l)),s&&s!=l&&(s=Qa(s));var X=[l];if(!u){var J=t.text.length-2,Y;if(J>0&&l)for(var $=0;$<l.length;++$)l[$].to==null&&(Y||(Y=[])).push(new xi(l[$].marker,null,null));for(var ae=0;ae<J;++ae)X.push(Y);X.push(s)}return X}function Qa(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Ls(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(C){if(C.markedSpans)for(var F=0;F<C.markedSpans.length;++F){var P=C.markedSpans[F].marker;P.readOnly&&(!r||ke(r,P)==-1)&&(r||(r=[])).push(P)}}),!r)return null;for(var n=[{from:t,to:i}],a=0;a<r.length;++a)for(var o=r[a],l=o.find(0),s=0;s<n.length;++s){var u=n[s];if(!(se(u.to,l.from)<0||se(u.from,l.to)>0)){var y=[s,1],b=se(u.from,l.from),T=se(u.to,l.to);(b<0||!o.inclusiveLeft&&!b)&&y.push({from:u.from,to:l.from}),(T>0||!o.inclusiveRight&&!T)&&y.push({from:l.to,to:u.to}),n.splice.apply(n,y),s+=y.length-3}}return n}function Va(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function $a(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function bi(e){return e.inclusiveLeft?-1:0}function Si(e){return e.inclusiveRight?1:0}function In(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),a=se(r.from,n.from)||bi(e)-bi(t);if(a)return-a;var o=se(r.to,n.to)||Si(e)-Si(t);return o||t.id-e.id}function eo(e,t){var i=Lt&&e.markedSpans,r;if(i)for(var n=void 0,a=0;a<i.length;++a)n=i[a],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||In(r,n.marker)<0)&&(r=n.marker);return r}function to(e){return eo(e,!0)}function wi(e){return eo(e,!1)}function Ts(e,t){var i=Lt&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var a=i[n];a.marker.collapsed&&(a.from==null||a.from<t)&&(a.to==null||a.to>t)&&(!r||In(r,a.marker)<0)&&(r=a.marker)}return r}function ro(e,t,i,r,n){var a=ie(e,t),o=Lt&&a.markedSpans;if(o)for(var l=0;l<o.length;++l){var s=o[l];if(s.marker.collapsed){var u=s.marker.find(0),y=se(u.from,i)||bi(s.marker)-bi(n),b=se(u.to,r)||Si(s.marker)-Si(n);if(!(y>=0&&b<=0||y<=0&&b>=0)&&(y<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?se(u.to,i)>=0:se(u.to,i)>0)||y>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?se(u.from,r)<=0:se(u.from,r)<0)))return!0}}}function dt(e){for(var t;t=to(e);)e=t.find(-1,!0).line;return e}function Ms(e){for(var t;t=wi(e);)e=t.find(1,!0).line;return e}function Ds(e){for(var t,i;t=wi(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Pn(e,t){var i=ie(e,t),r=dt(i);return i==r?t:ye(r)}function io(e,t){if(t>e.lastLine())return t;var i=ie(e,t),r;if(!It(e,i))return t;for(;r=wi(i);)i=r.find(1,!0).line;return ye(i)+1}function It(e,t){var i=Lt&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Bn(e,t,r))return!0}}}function Bn(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Bn(e,r.line,Wr(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,a=0;a<t.markedSpans.length;++a)if(n=t.markedSpans[a],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Bn(e,t,n))return!0}function Tt(e){e=dt(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var a=i.parent;a;i=a,a=i.parent)for(var o=0;o<a.children.length;++o){var l=a.children[o];if(l==i)break;t+=l.height}return t}function ki(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=to(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=wi(r);){var a=i.find(0,!0);t-=r.text.length-a.from.ch,r=a.to.line,t+=r.text.length-a.to.ch}return t}function Rn(e){var t=e.display,i=e.doc;t.maxLine=ie(i,i.first),t.maxLineLength=ki(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=ki(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var cr=function(e,t,i){this.text=e,$a(this,t),this.height=i?i(this):1};cr.prototype.lineNo=function(){return ye(this)},sr(cr);function Fs(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Va(e),$a(e,i);var n=r?r(e):1;n!=e.height&&xt(e,n)}function Es(e){e.parent=null,Va(e)}var As={},Ns={};function no(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Ns:As;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function ao(e,t){var i=q("span",null,null,E?"padding-right: .1px":null),r={pre:q("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var a=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Os,us(e.display.measure)&&(o=Ct(a,e.doc.direction))&&(r.addToken=Ps(r.addToken,o)),r.map=[];var l=t!=e.display.externalMeasured&&ye(a);Bs(a,r,Ga(e,a,l)),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=Nt(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=Nt(a.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ss(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(E){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ee(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Nt(r.pre.className,r.textClass||"")),r}function Hs(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Os(e,t,i,r,n,a,o){if(t){var l=e.splitSpaces?Is(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,y;if(!s.test(t))e.col+=t.length,y=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,y),g&&k<9&&(u=!0),e.pos+=t.length;else{y=document.createDocumentFragment();for(var b=0;;){s.lastIndex=b;var T=s.exec(t),C=T?T.index-b:t.length-b;if(C){var F=document.createTextNode(l.slice(b,b+C));g&&k<9?y.appendChild(L("span",[F])):y.appendChild(F),e.map.push(e.pos,e.pos+C,F),e.col+=C,e.pos+=C}if(!T)break;b+=C+1;var P=void 0;if(T[0]==" "){var U=e.cm.options.tabSize,X=U-e.col%U;P=y.appendChild(L("span",Ht(X),"cm-tab")),P.setAttribute("role","presentation"),P.setAttribute("cm-text"," "),e.col+=X}else T[0]=="\r"||T[0]==`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as me,aR as We,aS as He,r as $,B as V,M as p,F as ze,C as je,q as v,u as Re,aT as ct,g as Se,aU as ft,J as dt,s as q,aV as vt,o as qe,w as N,an as xe,m as Ye,D as gt,E as Xe,R as Ue,G as Ge,a1 as mt,az as te,H as ht,aW as ae,I as H,L as Ze,_ as R,al as Ke,N as Z,aX as yt,aY as Ae,K as he,U as bt,n as se,j as W,aP as Ee,Y as wt,p as Ce,aZ as Je,a_ as St,Q as Qe,t as Te,X as j,a$ as xt,ao as Et,f as Ct,e as et,P as Ot,au as Pt,b as pt,a6 as kt,b0 as Rt,a7 as At,T as Tt,aw as Bt,a8 as Lt,at as _t,aa as Ft}from"./index-2Fyqrkpe.js";const tt=["top","bottom"],Mt=["start","end","left","right"];function ye(e,t){let[n,o]=e.split(" ");return o||(o=me(tt,n)?"start":me(Mt,n)?"top":"center"),{side:Be(n,t),align:Be(o,t)}}function Be(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function le(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ue(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Le(e){return{side:e.align,align:e.side}}function _e(e){return me(tt,e.side)?"y":"x"}class Y{constructor(t){let{x:n,y:o,width:r,height:a}=t;this.x=n,this.y=o,this.width=r,this.height=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 Fe(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 Nt(e){return Array.isArray(e)?new Y({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Vt(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),o=n.transform;if(o){let r,a,s,i,l;if(o.startsWith("matrix3d("))r=o.slice(9,-1).split(/, /),a=+r[0],s=+r[5],i=+r[12],l=+r[13];else if(o.startsWith("matrix("))r=o.slice(7,-1).split(/, /),a=+r[0],s=+r[3],i=+r[4],l=+r[5];else return new Y(t);const f=n.transformOrigin,u=t.x-i-(1-a)*parseFloat(f),g=t.y-l-(1-s)*parseFloat(f.slice(f.indexOf(" ")+1)),w=a?t.width/a:e.offsetWidth+1,b=s?t.height/s:e.offsetHeight+1;return new Y({x:u,y:g,width:w,height:b})}else return new Y(t)}function It(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(r=>{o.onfinish=()=>{r(o)}})),o}const ne=new WeakMap;function Dt(e,t){Object.keys(t).forEach(n=>{if(We(n)){const o=He(n),r=ne.get(e);if(t[n]==null)r==null||r.forEach(a=>{const[s,i]=a;s===o&&(e.removeEventListener(o,i),r.delete(a))});else if(!r||![...r].some(a=>a[0]===o&&a[1]===t[n])){e.addEventListener(o,t[n]);const a=r||new Set;a.add([o,t[n]]),ne.has(e)||ne.set(e,a)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function $t(e,t){Object.keys(t).forEach(n=>{if(We(n)){const o=He(n),r=ne.get(e);r==null||r.forEach(a=>{const[s,i]=a;s===o&&(e.removeEventListener(o,i),r.delete(a))})}else e.removeAttribute(n)})}function nt(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 Wt="cubic-bezier(0.4, 0, 0.2, 1)",_n="cubic-bezier(0.0, 0, 0.2, 1)",Fn="cubic-bezier(0.4, 0, 1, 1)";function Ht(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?zt(e):Oe(e))return e;e=e.parentElement}return document.scrollingElement}function re(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Oe(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Oe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function zt(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function jt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}const Mn=$(!1),Nn=$(""),qt=V({tag:{type:String,default:"div"}},"tag"),Yt=["elevated","flat","tonal","outlined","text","plain"];function Vn(e,t){return p(ze,null,[e&&p("span",{key:"overlay",class:`${t}__overlay`},null),p("span",{key:"underlay",class:`${t}__underlay`},null)])}const In=V({color:String,variant:{type:String,default:"elevated",validator:e=>Yt.includes(e)}},"variant");function Dn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je();const n=v(()=>{const{variant:a}=Re(e);return`${t}--variant-${a}`}),{colorClasses:o,colorStyles:r}=ct(v(()=>{const{variant:a,color:s}=Re(e);return{[["elevated","flat"].includes(a)?"background":"text"]:s}}));return{colorClasses:o,colorStyles:r,variantClasses:n}}const Xt=V({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),$n=Se(!1)({name:"VDefaultsProvider",props:Xt(),setup(e,t){let{slots:n}=t;const{defaults:o,disabled:r,reset:a,root:s,scoped:i}=ft(e);return dt(o,{reset:a,root:s,scoped:i,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});function Ut(e,t){const n=$(),o=q(!1);if(vt){const r=new IntersectionObserver(a=>{o.value=!!a.find(s=>s.isIntersecting)},t);qe(()=>{r.disconnect()}),N(n,(a,s)=>{s&&(r.unobserve(s),o.value=!1),a&&r.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:o}}const Me={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Gt=V({location:String},"location");function Zt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:o}=xe();return{locationStyles:v(()=>{if(!e.location)return{};const{side:a,align:s}=ye(e.location.split(" ").length>1?e.location:`${e.location} center`,o.value);function i(f){return n?n(f):0}const l={};return a!=="center"&&(t?l[Me[a]]=`calc(100% - ${i(a)}px)`:l[a]=0),s!=="center"?t?l[Me[s]]=`calc(100% - ${i(s)}px)`:l[s]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const Kt=V({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,...Ye(),...Gt({location:"top"}),...gt(),...qt(),...Xe()},"VProgressLinear"),Wn=Se()({name:"VProgressLinear",props:Kt(),emits:{"update:modelValue":e=>!0},setup(e,t){var P;let{slots:n}=t;const o=Ue(e,"modelValue"),{isRtl:r,rtlClasses:a}=xe(),{themeClasses:s}=Ge(e),{locationStyles:i}=Zt(e),{textColorClasses:l,textColorStyles:f}=mt(e,"color"),{backgroundColorClasses:u,backgroundColorStyles:g}=te(v(()=>e.bgColor||e.color)),{backgroundColorClasses:w,backgroundColorStyles:b}=te(v(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:d}=te(e,"color"),{roundedClasses:B}=ht(e),{intersectionRef:A,isIntersecting:k}=Ut(),E=v(()=>parseFloat(e.max)),C=v(()=>parseFloat(e.height)),L=v(()=>ae(parseFloat(e.bufferValue)/E.value*100,0,100)),_=v(()=>ae(parseFloat(o.value)/E.value*100,0,100)),O=v(()=>r.value!==e.reverse),c=v(()=>e.indeterminate?"fade-transition":"slide-x-transition"),T=H&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function K(y){if(!A.value)return;const{left:h,right:S,width:F}=A.value.getBoundingClientRect(),I=O.value?F-y.clientX+(S-F):y.clientX-h;o.value=Math.round(I/F*E.value)}return Ze(()=>p(e.tag,{ref:A,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&k.value,"v-progress-linear--reverse":O.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},B.value,s.value,a.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?R(C.value):0,"--v-progress-linear-height":R(C.value),...e.absolute?i.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:_.value,onClick:e.clickable&&K},{default:()=>[e.stream&&p("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...f.value,[O.value?"left":"right"]:R(-C.value),borderTop:`${R(C.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${R(C.value/4)})`,width:R(100-L.value,"%"),"--v-progress-linear-stream-to":R(C.value*(O.value?1:-1))}},null),p("div",{class:["v-progress-linear__background",T?void 0:u.value],style:[g.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),p("div",{class:["v-progress-linear__buffer",T?void 0:w.value],style:[b.value,{opacity:parseFloat(e.bufferOpacity),width:R(L.value,"%")}]},null),p(Ke,{name:c.value},{default:()=>[e.indeterminate?p("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(y=>p("div",{key:y,class:["v-progress-linear__indeterminate",y,T?void 0:m.value],style:d.value},null))]):p("div",{class:["v-progress-linear__determinate",T?void 0:m.value],style:[d.value,{width:R(_.value,"%")}]},null)]}),n.default&&p("div",{class:"v-progress-linear__content"},[n.default({value:_.value,buffer:L.value})])]})),{}}}),Jt=["static","relative","fixed","absolute","sticky"],Hn=V({position:{type:String,validator:e=>Jt.includes(e)}},"position");function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je();return{positionClasses:v(()=>e.position?`${t}--${e.position}`:void 0)}}function Qt(){const e=Z("useRoute");return v(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function en(){var e,t;return(t=(e=Z("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function jn(e,t){var f,u;const n=yt("RouterLink"),o=v(()=>!!(e.href||e.to)),r=v(()=>(o==null?void 0:o.value)||Ae(t,"click")||Ae(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:o,isClickable:r,href:he(e,"href")};const a=v(()=>({...e,to:he(()=>e.to||"")})),s=n.useLink(a.value),i=v(()=>e.to?s:void 0),l=Qt();return{isLink:o,isClickable:r,route:(f=i.value)==null?void 0:f.route,navigate:(u=i.value)==null?void 0:u.navigate,isActive:v(()=>{var g,w,b;return i.value?e.exact?l.value?((b=i.value.isExactActive)==null?void 0:b.value)&&bt(i.value.route.value.query,l.value.query):((w=i.value.isExactActive)==null?void 0:w.value)??!1:((g=i.value.isActive)==null?void 0:g.value)??!1:!1}),href:v(()=>{var g;return e.to?(g=i.value)==null?void 0:g.route.value.href:e.href})}}const qn=V({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ce=!1;function tn(e,t){let n=!1,o,r;H&&(se(()=>{window.addEventListener("popstate",a),o=e==null?void 0:e.beforeEach((s,i,l)=>{ce?n?t(l):l():setTimeout(()=>n?t(l):l()),ce=!0}),r=e==null?void 0:e.afterEach(()=>{ce=!1})}),W(()=>{window.removeEventListener("popstate",a),o==null||o(),r==null||r()}));function a(s){var i;(i=s.state)!=null&&i.replaced||(n=!0,setTimeout(()=>n=!1))}}function fe(e,t){return{x:e.x+t.x,y:e.y+t.y}}function nn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ne(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,r=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,a=n==="top"?0:n==="bottom"?t.height:n;return fe({x:r,y:a},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,r=n==="left"?0:n==="right"?t.width:n,a=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return fe({x:r,y:a},t)}return fe({x:t.width/2,y:t.height/2},t)}const ot={static:rn,connected:ln},on=V({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in ot},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function an(e,t){const n=$({}),o=$();H&&Ee(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var s,i;N(()=>e.locationStrategy,a),W(()=>{window.removeEventListener("resize",r),o.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(t,e,n))==null?void 0:s.updateLocation:o.value=(i=ot[e.locationStrategy](t,e,n))==null?void 0:i.updateLocation});function r(a){var s;(s=o.value)==null||s.call(o,a)}return{contentStyles:n,updateLocation:o}}function rn(){}function sn(e,t){const n=Vt(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 ln(e,t,n){(Array.isArray(e.target.value)||jt(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:a}=wt(()=>{const m=ye(t.location,e.isRtl.value),d=t.origin==="overlap"?m:t.origin==="auto"?le(m):ye(t.origin,e.isRtl.value);return m.side===d.side&&m.align===ue(d).align?{preferredAnchor:Le(m),preferredOrigin:Le(d)}:{preferredAnchor:m,preferredOrigin:d}}),[s,i,l,f]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>v(()=>{const d=parseFloat(t[m]);return isNaN(d)?1/0:d})),u=v(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const m=t.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let g=!1;const w=new ResizeObserver(()=>{g&&b()});N([e.target,e.contentEl],(m,d)=>{let[B,A]=m,[k,E]=d;k&&!Array.isArray(k)&&w.unobserve(k),B&&!Array.isArray(B)&&w.observe(B),E&&w.unobserve(E),A&&w.observe(A)},{immediate:!0}),W(()=>{w.disconnect()});function b(){if(g=!1,requestAnimationFrame(()=>g=!0),!e.target.value||!e.contentEl.value)return;const m=Nt(e.target.value),d=sn(e.contentEl.value,e.isRtl.value),B=re(e.contentEl.value),A=12;B.length||(B.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const k=B.reduce((P,y)=>{const h=y.getBoundingClientRect(),S=new Y({x:y===document.documentElement?0:h.x,y:y===document.documentElement?0:h.y,width:y.clientWidth,height:y.clientHeight});return P?new Y({x:Math.max(P.left,S.left),y:Math.max(P.top,S.top),width:Math.min(P.right,S.right)-Math.max(P.left,S.left),height:Math.min(P.bottom,S.bottom)-Math.max(P.top,S.top)}):S},void 0);k.x+=A,k.y+=A,k.width-=A*2,k.height-=A*2;let E={anchor:r.value,origin:a.value};function C(P){const y=new Y(d),h=Ne(P.anchor,m),S=Ne(P.origin,y);let{x:F,y:I}=nn(h,S);switch(P.anchor.side){case"top":I-=u.value[0];break;case"bottom":I+=u.value[0];break;case"left":F-=u.value[0];break;case"right":F+=u.value[0];break}switch(P.anchor.align){case"top":I-=u.value[1];break;case"bottom":I+=u.value[1];break;case"left":F-=u.value[1];break;case"right":F+=u.value[1];break}return y.x+=F,y.y+=I,y.width=Math.min(y.width,l.value),y.height=Math.min(y.height,f.value),{overflows:Fe(y,k),x:F,y:I}}let L=0,_=0;const O={x:0,y:0},c={x:!1,y:!1};let T=-1;for(;!(T++>10);){const{x:P,y,overflows:h}=C(E);L+=P,_+=y,d.x+=P,d.y+=y;{const S=_e(E.anchor),F=h.x.before||h.x.after,I=h.y.before||h.y.after;let X=!1;if(["x","y"].forEach(M=>{if(M==="x"&&F&&!c.x||M==="y"&&I&&!c.y){const z={anchor:{...E.anchor},origin:{...E.origin}},U=M==="x"?S==="y"?ue:le:S==="y"?le:ue;z.anchor=U(z.anchor),z.origin=U(z.origin);const{overflows:G}=C(z);(G[M].before<=h[M].before&&G[M].after<=h[M].after||G[M].before+G[M].after<(h[M].before+h[M].after)/2)&&(E=z,X=c[M]=!0)}}),X)continue}h.x.before&&(L+=h.x.before,d.x+=h.x.before),h.x.after&&(L-=h.x.after,d.x-=h.x.after),h.y.before&&(_+=h.y.before,d.y+=h.y.before),h.y.after&&(_-=h.y.after,d.y-=h.y.after);{const S=Fe(d,k);O.x=k.width-S.x.before-S.x.after,O.y=k.height-S.y.before-S.y.after,L+=S.x.before,d.x+=S.x.before,_+=S.y.before,d.y+=S.y.before}break}const K=_e(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:R(de(_)),left:e.isRtl.value?void 0:R(de(L)),right:e.isRtl.value?R(de(-L)):void 0,minWidth:R(K==="y"?Math.min(s.value,m.width):s.value),maxWidth:R(Ve(ae(O.x,s.value===1/0?0:s.value,l.value))),maxHeight:R(Ve(ae(O.y,i.value===1/0?0:i.value,f.value)))}),{available:O,contentBox:d}}return N(()=>[r.value,a.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>b()),se(()=>{const m=b();if(!m)return;const{available:d,contentBox:B}=m;B.height>d.y&&requestAnimationFrame(()=>{b(),requestAnimationFrame(()=>{b()})})}),{updateLocation:b}}function de(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ve(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let be=!0;const ie=[];function un(e){!be||ie.length?(ie.push(e),we()):(be=!1,e(),we())}let Ie=-1;function we(){cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>{const e=ie.shift();e&&e(),ie.length?we():be=!0})}const oe={none:null,close:dn,block:vn,reposition:gn},cn=V({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in oe}},"VOverlay-scroll-strategies");function fn(e,t){if(!H)return;let n;Ce(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Je(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(o=oe[e.scrollStrategy])==null||o.call(oe,t,e,n)}))}),W(()=>{n==null||n.stop()})}function dn(e){function t(n){e.isActive.value=!1}at(e.targetEl.value??e.contentEl.value,t)}function vn(e,t){var s;const n=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...re(e.targetEl.value,t.contained?n:void 0),...re(e.contentEl.value,t.contained?n:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,a=(i=>Oe(i)&&i)(n||document.documentElement);a&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,l)=>{i.style.setProperty("--v-body-scroll-x",R(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",R(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",R(r)),i.classList.add("v-overlay-scroll-blocked")}),W(()=>{o.forEach((i,l)=>{const f=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(i.style.getPropertyValue("--v-body-scroll-y")),g=i.style.scrollBehavior;i.style.scrollBehavior="auto",i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-f,i.scrollTop=-u,i.style.scrollBehavior=g}),a&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function gn(e,t,n){let o=!1,r=-1,a=-1;function s(i){un(()=>{var u,g;const l=performance.now();(g=(u=e.updateLocation).value)==null||g.call(u,i),o=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{n.run(()=>{at(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),W(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(r)})}function at(e,t){const n=[document,...re(e)];n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),W(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const mn=Symbol.for("vuetify:v-menu"),hn=V({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function yn(e,t){let n=()=>{};function o(s){n==null||n();const i=Number(s?e.openDelay:e.closeDelay);return new Promise(l=>{n=St(i,()=>{t==null||t(s),l(s)})})}function r(){return o(!0)}function a(){return o(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:a}}const bn=V({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,...hn()},"VOverlay-activator");function wn(e,t){let{isActive:n,isTop:o,contentEl:r}=t;const a=Z("useActivator"),s=$();let i=!1,l=!1,f=!0;const u=v(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),g=v(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:w,runCloseDelay:b}=yn(e,c=>{c===(e.openOnHover&&i||u.value&&l)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==c&&(f=!0),n.value=c)}),m=$(),d={onClick:c=>{c.stopPropagation(),s.value=c.currentTarget||c.target,n.value||(m.value=[c.clientX,c.clientY]),n.value=!n.value},onMouseenter:c=>{var T;(T=c.sourceCapabilities)!=null&&T.firesTouchEvents||(i=!0,s.value=c.currentTarget||c.target,w())},onMouseleave:c=>{i=!1,b()},onFocus:c=>{xt(c.target,":focus-visible")!==!1&&(l=!0,c.stopPropagation(),s.value=c.currentTarget||c.target,w())},onBlur:c=>{l=!1,c.stopPropagation(),b()}},B=v(()=>{const c={};return g.value&&(c.onClick=d.onClick),e.openOnHover&&(c.onMouseenter=d.onMouseenter,c.onMouseleave=d.onMouseleave),u.value&&(c.onFocus=d.onFocus,c.onBlur=d.onBlur),c}),A=v(()=>{const c={};if(e.openOnHover&&(c.onMouseenter=()=>{i=!0,w()},c.onMouseleave=()=>{i=!1,b()}),u.value&&(c.onFocusin=()=>{l=!0,w()},c.onFocusout=()=>{l=!1,b()}),e.closeOnContentClick){const T=Qe(mn,null);c.onClick=()=>{n.value=!1,T==null||T.closeParents()}}return c}),k=v(()=>{const c={};return e.openOnHover&&(c.onMouseenter=()=>{f&&(i=!0,f=!1,w())},c.onMouseleave=()=>{i=!1,b()}),c});N(o,c=>{var T;c&&(e.openOnHover&&!i&&(!u.value||!l)||u.value&&!l&&(!e.openOnHover||!i))&&!((T=r.value)!=null&&T.contains(document.activeElement))&&(n.value=!1)}),N(n,c=>{c||setTimeout(()=>{m.value=void 0})},{flush:"post"});const E=Te();Ce(()=>{E.value&&se(()=>{s.value=E.el})});const C=Te(),L=v(()=>e.target==="cursor"&&m.value?m.value:C.value?C.el:rt(e.target,a)||s.value),_=v(()=>Array.isArray(L.value)?void 0:L.value);let O;return N(()=>!!e.activator,c=>{c&&H?(O=Je(),O.run(()=>{Sn(e,a,{activatorEl:s,activatorEvents:B})})):O&&O.stop()},{flush:"post",immediate:!0}),W(()=>{O==null||O.stop()}),{activatorEl:s,activatorRef:E,target:L,targetEl:_,targetRef:C,activatorEvents:B,contentEvents:A,scrimEvents:k}}function Sn(e,t,n){let{activatorEl:o,activatorEvents:r}=n;N(()=>e.activator,(l,f)=>{if(f&&l!==f){const u=i(f);u&&s(u)}l&&se(()=>a())},{immediate:!0}),N(()=>e.activatorProps,()=>{a()}),W(()=>{s()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Dt(l,j(r.value,f))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&$t(l,j(r.value,f))}function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const f=rt(l,t);return o.value=(f==null?void 0:f.nodeType)===Node.ELEMENT_NODE?f:void 0,o.value}}function rt(e,t){var o,r;if(!e)return;let n;if(e==="parent"){let a=(r=(o=t==null?void 0:t.proxy)==null?void 0:o.$el)==null?void 0:r.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;n=a}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function xn(){if(!H)return q(!1);const{ssr:e}=Et();if(e){const t=q(!1);return Ct(()=>{t.value=!0}),t}else return q(!0)}const En=V({eager:Boolean},"lazy");function Cn(e,t){const n=q(!1),o=v(()=>n.value||e.eager||t.value);N(t,()=>n.value=!0);function r(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:o,onAfterLeave:r}}function On(){const t=Z("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const De=Symbol.for("vuetify:stack"),Q=et([]);function Pn(e,t,n){const o=Z("useStack"),r=!n,a=Qe(De,void 0),s=et({activeChildren:new Set});Ot(De,s);const i=q(+t.value);Ee(e,()=>{var g;const u=(g=Q.at(-1))==null?void 0:g[1];i.value=u?u+10:+t.value,r&&Q.push([o.uid,i.value]),a==null||a.activeChildren.add(o.uid),W(()=>{if(r){const w=Pt(Q).findIndex(b=>b[0]===o.uid);Q.splice(w,1)}a==null||a.activeChildren.delete(o.uid)})});const l=q(!0);r&&Ce(()=>{var g;const u=((g=Q.at(-1))==null?void 0:g[0])===o.uid;setTimeout(()=>l.value=u)});const f=v(()=>!s.activeChildren.size);return{globalTop:pt(l),localTop:f,stackStyles:v(()=>({zIndex:i.value}))}}function pn(e){return{teleportTarget:v(()=>{const n=e();if(n===!0||!H)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let r=[...o.children].find(a=>a.matches(".v-overlay-container"));return r||(r=document.createElement("div"),r.className="v-overlay-container",o.appendChild(r)),r})}}function kn(){return!0}function it(e,t,n){if(!e||st(e,n)===!1)return!1;const o=nt(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(t),!r.some(a=>a==null?void 0:a.contains(e.target))}function st(e,t){return(typeof t.value=="object"&&t.value.closeConditional||kn)(e)}function Rn(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&it(e,t,n)&&setTimeout(()=>{st(e,n)&&o&&o(e)},0)}function $e(e,t){const n=nt(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const An={mounted(e,t){const n=r=>Rn(r,e,t),o=r=>{e._clickOutside.lastMousedownWasOutside=it(r,e,t)};$e(e,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},beforeUnmount(e,t){e._clickOutside&&($e(e,n=>{var a;if(!n||!((a=e._clickOutside)!=null&&a[t.instance.$.uid]))return;const{onClick:o,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Tn(e){const{modelValue:t,color:n,...o}=e;return p(Ke,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&p("div",j({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const Bn=V({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},...bn(),...Ye(),...kt(),...En(),...on(),...cn(),...Xe(),...Rt()},"VOverlay"),Yn=Se()({name:"VOverlay",directives:{ClickOutside:An},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Bn()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:r}=t;const a=Z("VOverlay"),s=$(),i=$(),l=$(),f=Ue(e,"modelValue"),u=v({get:()=>f.value,set:x=>{x&&e.disabled||(f.value=x)}}),{themeClasses:g}=Ge(e),{rtlClasses:w,isRtl:b}=xe(),{hasContent:m,onAfterLeave:d}=Cn(e,u),B=te(v(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:A,localTop:k,stackStyles:E}=Pn(u,he(e,"zIndex"),e._disableGlobalStack),{activatorEl:C,activatorRef:L,target:_,targetEl:O,targetRef:c,activatorEvents:T,contentEvents:K,scrimEvents:P}=wn(e,{isActive:u,isTop:k,contentEl:l}),{teleportTarget:y}=pn(()=>{var J,pe,ke;const x=e.attach||e.contained;if(x)return x;const D=((J=C==null?void 0:C.value)==null?void 0:J.getRootNode())||((ke=(pe=a.proxy)==null?void 0:pe.$el)==null?void 0:ke.getRootNode());return D instanceof ShadowRoot?D:!1}),{dimensionStyles:h}=At(e),S=xn(),{scopeId:F}=On();N(()=>e.disabled,x=>{x&&(u.value=!1)});const{contentStyles:I,updateLocation:X}=an(e,{isRtl:b,contentEl:l,target:_,isActive:u});fn(e,{root:s,contentEl:l,targetEl:O,isActive:u,updateLocation:X});function M(x){r("click:outside",x),e.persistent?ee():u.value=!1}function z(x){return u.value&&A.value&&(!e.scrim||x.target===i.value||x instanceof MouseEvent&&x.shadowTarget===i.value)}H&&N(u,x=>{x?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),qe(()=>{H&&window.removeEventListener("keydown",U)});function U(x){var D,J;x.key==="Escape"&&A.value&&(e.persistent?ee():(u.value=!1,(D=l.value)!=null&&D.contains(document.activeElement)&&((J=C.value)==null||J.focus())))}const G=en();Ee(()=>e.closeOnBack,()=>{tn(G,x=>{A.value&&u.value?(x(!1),e.persistent?ee():u.value=!1):x()})});const Pe=$();N(()=>u.value&&(e.absolute||e.contained)&&y.value==null,x=>{if(x){const D=Ht(s.value);D&&D!==document.scrollingElement&&(Pe.value=D.scrollTop)}});function ee(){e.noClickAnimation||l.value&&It(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Wt})}function lt(){r("afterEnter")}function ut(){d(),r("afterLeave")}return Ze(()=>{var x;return p(ze,null,[(x=n.activator)==null?void 0:x.call(n,{isActive:u.value,targetRef:c,props:j({ref:L},T.value,e.activatorProps)}),S.value&&m.value&&p(Tt,{disabled:!y.value,to:y.value},{default:()=>[p("div",j({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":u.value,"v-overlay--contained":e.contained},g.value,w.value,e.class],style:[E.value,{"--v-overlay-opacity":e.opacity,top:R(Pe.value)},e.style],ref:s},F,o),[p(Tn,j({color:B,modelValue:u.value&&!!e.scrim,ref:i},P.value),null),p(Bt,{appear:!0,persisted:!0,transition:e.transition,target:_.value,onAfterEnter:lt,onAfterLeave:ut},{default:()=>{var D;return[Lt(p("div",j({ref:l,class:["v-overlay__content",e.contentClass],style:[h.value,I.value]},K.value,e.contentProps),[(D=n.default)==null?void 0:D.call(n,{isActive:u})]),[[_t,u.value],[Ft("click-outside"),{handler:M,closeConditional:z,include:()=>[C.value]}]])]}})])]})])}),{activatorEl:C,scrimEl:i,target:_,animateClick:ee,contentEl:l,globalTop:A,localTop:k,updateLocation:X}}}),ve=Symbol("Forwarded refs");function ge(e,t){let n=e;for(;n;){const o=Reflect.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function Xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e[ve]=n,new Proxy(e,{get(r,a){if(Reflect.has(r,a))return Reflect.get(r,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,a)){const i=Reflect.get(s.value,a);return typeof i=="function"?i.bind(s.value):i}}},has(r,a){if(Reflect.has(r,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return!0;return!1},set(r,a,s){if(Reflect.has(r,a))return Reflect.set(r,a,s);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,a))return Reflect.set(i.value,a,s);return!1},getOwnPropertyDescriptor(r,a){var i;const s=Reflect.getOwnPropertyDescriptor(r,a);if(s)return s;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const l of n){if(!l.value)continue;const f=ge(l.value,a)??("_"in l.value?ge((i=l.value._)==null?void 0:i.setupState,a):void 0);if(f)return f}for(const l of n){const f=l.value&&l.value[ve];if(!f)continue;const u=f.slice();for(;u.length;){const g=u.shift(),w=ge(g.value,a);if(w)return w;const b=g.value&&g.value[ve];b&&u.push(...b)}}}}})}export{Cn as A,Ht as B,Wn as V,In as a,Gt as b,Hn as c,Mn as d,Nn as e,qn as f,Zt as g,zn as h,jn as i,Dn as j,Vn as k,$n as l,qt as m,Bn as n,On as o,Yn as p,Xn as q,It as r,_n as s,Wt as t,Ut as u,Fn as v,Nt as w,Vt as x,mn as y,En as z};
|
|
1
|
+
import{Z as me,aR as We,aS as He,r as $,B as V,M as p,F as ze,C as je,q as v,u as Re,aT as ct,g as Se,aU as ft,J as dt,s as q,aV as vt,o as qe,w as N,an as xe,m as Ye,D as gt,E as Xe,R as Ue,G as Ge,a1 as mt,az as te,H as ht,aW as ae,I as H,L as Ze,_ as R,al as Ke,N as Z,aX as yt,aY as Ae,K as he,U as bt,n as se,j as W,aP as Ee,Y as wt,p as Ce,aZ as Je,a_ as St,Q as Qe,t as Te,X as j,a$ as xt,ao as Et,f as Ct,e as et,P as Ot,au as Pt,b as pt,a6 as kt,b0 as Rt,a7 as At,T as Tt,aw as Bt,a8 as Lt,at as _t,aa as Ft}from"./index-ua6G9zQ2.js";const tt=["top","bottom"],Mt=["start","end","left","right"];function ye(e,t){let[n,o]=e.split(" ");return o||(o=me(tt,n)?"start":me(Mt,n)?"top":"center"),{side:Be(n,t),align:Be(o,t)}}function Be(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function le(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ue(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Le(e){return{side:e.align,align:e.side}}function _e(e){return me(tt,e.side)?"y":"x"}class Y{constructor(t){let{x:n,y:o,width:r,height:a}=t;this.x=n,this.y=o,this.width=r,this.height=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 Fe(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 Nt(e){return Array.isArray(e)?new Y({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Vt(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),o=n.transform;if(o){let r,a,s,i,l;if(o.startsWith("matrix3d("))r=o.slice(9,-1).split(/, /),a=+r[0],s=+r[5],i=+r[12],l=+r[13];else if(o.startsWith("matrix("))r=o.slice(7,-1).split(/, /),a=+r[0],s=+r[3],i=+r[4],l=+r[5];else return new Y(t);const f=n.transformOrigin,u=t.x-i-(1-a)*parseFloat(f),g=t.y-l-(1-s)*parseFloat(f.slice(f.indexOf(" ")+1)),w=a?t.width/a:e.offsetWidth+1,b=s?t.height/s:e.offsetHeight+1;return new Y({x:u,y:g,width:w,height:b})}else return new Y(t)}function It(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let o;try{o=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof o.finished>"u"&&(o.finished=new Promise(r=>{o.onfinish=()=>{r(o)}})),o}const ne=new WeakMap;function Dt(e,t){Object.keys(t).forEach(n=>{if(We(n)){const o=He(n),r=ne.get(e);if(t[n]==null)r==null||r.forEach(a=>{const[s,i]=a;s===o&&(e.removeEventListener(o,i),r.delete(a))});else if(!r||![...r].some(a=>a[0]===o&&a[1]===t[n])){e.addEventListener(o,t[n]);const a=r||new Set;a.add([o,t[n]]),ne.has(e)||ne.set(e,a)}}else t[n]==null?e.removeAttribute(n):e.setAttribute(n,t[n])})}function $t(e,t){Object.keys(t).forEach(n=>{if(We(n)){const o=He(n),r=ne.get(e);r==null||r.forEach(a=>{const[s,i]=a;s===o&&(e.removeEventListener(o,i),r.delete(a))})}else e.removeAttribute(n)})}function nt(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 Wt="cubic-bezier(0.4, 0, 0.2, 1)",_n="cubic-bezier(0.0, 0, 0.2, 1)",Fn="cubic-bezier(0.4, 0, 1, 1)";function Ht(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(t?zt(e):Oe(e))return e;e=e.parentElement}return document.scrollingElement}function re(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(Oe(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function Oe(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function zt(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}function jt(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}const Mn=$(!1),Nn=$(""),qt=V({tag:{type:String,default:"div"}},"tag"),Yt=["elevated","flat","tonal","outlined","text","plain"];function Vn(e,t){return p(ze,null,[e&&p("span",{key:"overlay",class:`${t}__overlay`},null),p("span",{key:"underlay",class:`${t}__underlay`},null)])}const In=V({color:String,variant:{type:String,default:"elevated",validator:e=>Yt.includes(e)}},"variant");function Dn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je();const n=v(()=>{const{variant:a}=Re(e);return`${t}--variant-${a}`}),{colorClasses:o,colorStyles:r}=ct(v(()=>{const{variant:a,color:s}=Re(e);return{[["elevated","flat"].includes(a)?"background":"text"]:s}}));return{colorClasses:o,colorStyles:r,variantClasses:n}}const Xt=V({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),$n=Se(!1)({name:"VDefaultsProvider",props:Xt(),setup(e,t){let{slots:n}=t;const{defaults:o,disabled:r,reset:a,root:s,scoped:i}=ft(e);return dt(o,{reset:a,root:s,scoped:i,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}});function Ut(e,t){const n=$(),o=q(!1);if(vt){const r=new IntersectionObserver(a=>{o.value=!!a.find(s=>s.isIntersecting)},t);qe(()=>{r.disconnect()}),N(n,(a,s)=>{s&&(r.unobserve(s),o.value=!1),a&&r.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:o}}const Me={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Gt=V({location:String},"location");function Zt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:o}=xe();return{locationStyles:v(()=>{if(!e.location)return{};const{side:a,align:s}=ye(e.location.split(" ").length>1?e.location:`${e.location} center`,o.value);function i(f){return n?n(f):0}const l={};return a!=="center"&&(t?l[Me[a]]=`calc(100% - ${i(a)}px)`:l[a]=0),s!=="center"?t?l[Me[s]]=`calc(100% - ${i(s)}px)`:l[s]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const Kt=V({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,...Ye(),...Gt({location:"top"}),...gt(),...qt(),...Xe()},"VProgressLinear"),Wn=Se()({name:"VProgressLinear",props:Kt(),emits:{"update:modelValue":e=>!0},setup(e,t){var P;let{slots:n}=t;const o=Ue(e,"modelValue"),{isRtl:r,rtlClasses:a}=xe(),{themeClasses:s}=Ge(e),{locationStyles:i}=Zt(e),{textColorClasses:l,textColorStyles:f}=mt(e,"color"),{backgroundColorClasses:u,backgroundColorStyles:g}=te(v(()=>e.bgColor||e.color)),{backgroundColorClasses:w,backgroundColorStyles:b}=te(v(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:d}=te(e,"color"),{roundedClasses:B}=ht(e),{intersectionRef:A,isIntersecting:k}=Ut(),E=v(()=>parseFloat(e.max)),C=v(()=>parseFloat(e.height)),L=v(()=>ae(parseFloat(e.bufferValue)/E.value*100,0,100)),_=v(()=>ae(parseFloat(o.value)/E.value*100,0,100)),O=v(()=>r.value!==e.reverse),c=v(()=>e.indeterminate?"fade-transition":"slide-x-transition"),T=H&&((P=window.matchMedia)==null?void 0:P.call(window,"(forced-colors: active)").matches);function K(y){if(!A.value)return;const{left:h,right:S,width:F}=A.value.getBoundingClientRect(),I=O.value?F-y.clientX+(S-F):y.clientX-h;o.value=Math.round(I/F*E.value)}return Ze(()=>p(e.tag,{ref:A,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&k.value,"v-progress-linear--reverse":O.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},B.value,s.value,a.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?R(C.value):0,"--v-progress-linear-height":R(C.value),...e.absolute?i.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:_.value,onClick:e.clickable&&K},{default:()=>[e.stream&&p("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...f.value,[O.value?"left":"right"]:R(-C.value),borderTop:`${R(C.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${R(C.value/4)})`,width:R(100-L.value,"%"),"--v-progress-linear-stream-to":R(C.value*(O.value?1:-1))}},null),p("div",{class:["v-progress-linear__background",T?void 0:u.value],style:[g.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),p("div",{class:["v-progress-linear__buffer",T?void 0:w.value],style:[b.value,{opacity:parseFloat(e.bufferOpacity),width:R(L.value,"%")}]},null),p(Ke,{name:c.value},{default:()=>[e.indeterminate?p("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(y=>p("div",{key:y,class:["v-progress-linear__indeterminate",y,T?void 0:m.value],style:d.value},null))]):p("div",{class:["v-progress-linear__determinate",T?void 0:m.value],style:[d.value,{width:R(_.value,"%")}]},null)]}),n.default&&p("div",{class:"v-progress-linear__content"},[n.default({value:_.value,buffer:L.value})])]})),{}}}),Jt=["static","relative","fixed","absolute","sticky"],Hn=V({position:{type:String,validator:e=>Jt.includes(e)}},"position");function zn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:je();return{positionClasses:v(()=>e.position?`${t}--${e.position}`:void 0)}}function Qt(){const e=Z("useRoute");return v(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function en(){var e,t;return(t=(e=Z("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function jn(e,t){var f,u;const n=yt("RouterLink"),o=v(()=>!!(e.href||e.to)),r=v(()=>(o==null?void 0:o.value)||Ae(t,"click")||Ae(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:o,isClickable:r,href:he(e,"href")};const a=v(()=>({...e,to:he(()=>e.to||"")})),s=n.useLink(a.value),i=v(()=>e.to?s:void 0),l=Qt();return{isLink:o,isClickable:r,route:(f=i.value)==null?void 0:f.route,navigate:(u=i.value)==null?void 0:u.navigate,isActive:v(()=>{var g,w,b;return i.value?e.exact?l.value?((b=i.value.isExactActive)==null?void 0:b.value)&&bt(i.value.route.value.query,l.value.query):((w=i.value.isExactActive)==null?void 0:w.value)??!1:((g=i.value.isActive)==null?void 0:g.value)??!1:!1}),href:v(()=>{var g;return e.to?(g=i.value)==null?void 0:g.route.value.href:e.href})}}const qn=V({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ce=!1;function tn(e,t){let n=!1,o,r;H&&(se(()=>{window.addEventListener("popstate",a),o=e==null?void 0:e.beforeEach((s,i,l)=>{ce?n?t(l):l():setTimeout(()=>n?t(l):l()),ce=!0}),r=e==null?void 0:e.afterEach(()=>{ce=!1})}),W(()=>{window.removeEventListener("popstate",a),o==null||o(),r==null||r()}));function a(s){var i;(i=s.state)!=null&&i.replaced||(n=!0,setTimeout(()=>n=!1))}}function fe(e,t){return{x:e.x+t.x,y:e.y+t.y}}function nn(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ne(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:o}=e,r=o==="left"?0:o==="center"?t.width/2:o==="right"?t.width:o,a=n==="top"?0:n==="bottom"?t.height:n;return fe({x:r,y:a},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:o}=e,r=n==="left"?0:n==="right"?t.width:n,a=o==="top"?0:o==="center"?t.height/2:o==="bottom"?t.height:o;return fe({x:r,y:a},t)}return fe({x:t.width/2,y:t.height/2},t)}const ot={static:rn,connected:ln},on=V({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in ot},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function an(e,t){const n=$({}),o=$();H&&Ee(()=>!!(t.isActive.value&&e.locationStrategy),a=>{var s,i;N(()=>e.locationStrategy,a),W(()=>{window.removeEventListener("resize",r),o.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof e.locationStrategy=="function"?o.value=(s=e.locationStrategy(t,e,n))==null?void 0:s.updateLocation:o.value=(i=ot[e.locationStrategy](t,e,n))==null?void 0:i.updateLocation});function r(a){var s;(s=o.value)==null||s.call(o,a)}return{contentStyles:n,updateLocation:o}}function rn(){}function sn(e,t){const n=Vt(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 ln(e,t,n){(Array.isArray(e.target.value)||jt(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:a}=wt(()=>{const m=ye(t.location,e.isRtl.value),d=t.origin==="overlap"?m:t.origin==="auto"?le(m):ye(t.origin,e.isRtl.value);return m.side===d.side&&m.align===ue(d).align?{preferredAnchor:Le(m),preferredOrigin:Le(d)}:{preferredAnchor:m,preferredOrigin:d}}),[s,i,l,f]=["minWidth","minHeight","maxWidth","maxHeight"].map(m=>v(()=>{const d=parseFloat(t[m]);return isNaN(d)?1/0:d})),u=v(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const m=t.offset.split(" ").map(parseFloat);return m.length<2&&m.push(0),m}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let g=!1;const w=new ResizeObserver(()=>{g&&b()});N([e.target,e.contentEl],(m,d)=>{let[B,A]=m,[k,E]=d;k&&!Array.isArray(k)&&w.unobserve(k),B&&!Array.isArray(B)&&w.observe(B),E&&w.unobserve(E),A&&w.observe(A)},{immediate:!0}),W(()=>{w.disconnect()});function b(){if(g=!1,requestAnimationFrame(()=>g=!0),!e.target.value||!e.contentEl.value)return;const m=Nt(e.target.value),d=sn(e.contentEl.value,e.isRtl.value),B=re(e.contentEl.value),A=12;B.length||(B.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const k=B.reduce((P,y)=>{const h=y.getBoundingClientRect(),S=new Y({x:y===document.documentElement?0:h.x,y:y===document.documentElement?0:h.y,width:y.clientWidth,height:y.clientHeight});return P?new Y({x:Math.max(P.left,S.left),y:Math.max(P.top,S.top),width:Math.min(P.right,S.right)-Math.max(P.left,S.left),height:Math.min(P.bottom,S.bottom)-Math.max(P.top,S.top)}):S},void 0);k.x+=A,k.y+=A,k.width-=A*2,k.height-=A*2;let E={anchor:r.value,origin:a.value};function C(P){const y=new Y(d),h=Ne(P.anchor,m),S=Ne(P.origin,y);let{x:F,y:I}=nn(h,S);switch(P.anchor.side){case"top":I-=u.value[0];break;case"bottom":I+=u.value[0];break;case"left":F-=u.value[0];break;case"right":F+=u.value[0];break}switch(P.anchor.align){case"top":I-=u.value[1];break;case"bottom":I+=u.value[1];break;case"left":F-=u.value[1];break;case"right":F+=u.value[1];break}return y.x+=F,y.y+=I,y.width=Math.min(y.width,l.value),y.height=Math.min(y.height,f.value),{overflows:Fe(y,k),x:F,y:I}}let L=0,_=0;const O={x:0,y:0},c={x:!1,y:!1};let T=-1;for(;!(T++>10);){const{x:P,y,overflows:h}=C(E);L+=P,_+=y,d.x+=P,d.y+=y;{const S=_e(E.anchor),F=h.x.before||h.x.after,I=h.y.before||h.y.after;let X=!1;if(["x","y"].forEach(M=>{if(M==="x"&&F&&!c.x||M==="y"&&I&&!c.y){const z={anchor:{...E.anchor},origin:{...E.origin}},U=M==="x"?S==="y"?ue:le:S==="y"?le:ue;z.anchor=U(z.anchor),z.origin=U(z.origin);const{overflows:G}=C(z);(G[M].before<=h[M].before&&G[M].after<=h[M].after||G[M].before+G[M].after<(h[M].before+h[M].after)/2)&&(E=z,X=c[M]=!0)}}),X)continue}h.x.before&&(L+=h.x.before,d.x+=h.x.before),h.x.after&&(L-=h.x.after,d.x-=h.x.after),h.y.before&&(_+=h.y.before,d.y+=h.y.before),h.y.after&&(_-=h.y.after,d.y-=h.y.after);{const S=Fe(d,k);O.x=k.width-S.x.before-S.x.after,O.y=k.height-S.y.before-S.y.after,L+=S.x.before,d.x+=S.x.before,_+=S.y.before,d.y+=S.y.before}break}const K=_e(E.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${E.anchor.side} ${E.anchor.align}`,transformOrigin:`${E.origin.side} ${E.origin.align}`,top:R(de(_)),left:e.isRtl.value?void 0:R(de(L)),right:e.isRtl.value?R(de(-L)):void 0,minWidth:R(K==="y"?Math.min(s.value,m.width):s.value),maxWidth:R(Ve(ae(O.x,s.value===1/0?0:s.value,l.value))),maxHeight:R(Ve(ae(O.y,i.value===1/0?0:i.value,f.value)))}),{available:O,contentBox:d}}return N(()=>[r.value,a.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>b()),se(()=>{const m=b();if(!m)return;const{available:d,contentBox:B}=m;B.height>d.y&&requestAnimationFrame(()=>{b(),requestAnimationFrame(()=>{b()})})}),{updateLocation:b}}function de(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Ve(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let be=!0;const ie=[];function un(e){!be||ie.length?(ie.push(e),we()):(be=!1,e(),we())}let Ie=-1;function we(){cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>{const e=ie.shift();e&&e(),ie.length?we():be=!0})}const oe={none:null,close:dn,block:vn,reposition:gn},cn=V({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in oe}},"VOverlay-scroll-strategies");function fn(e,t){if(!H)return;let n;Ce(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=Je(),await new Promise(o=>setTimeout(o)),n.active&&n.run(()=>{var o;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(o=oe[e.scrollStrategy])==null||o.call(oe,t,e,n)}))}),W(()=>{n==null||n.stop()})}function dn(e){function t(n){e.isActive.value=!1}at(e.targetEl.value??e.contentEl.value,t)}function vn(e,t){var s;const n=(s=e.root.value)==null?void 0:s.offsetParent,o=[...new Set([...re(e.targetEl.value,t.contained?n:void 0),...re(e.contentEl.value,t.contained?n:void 0)])].filter(i=>!i.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,a=(i=>Oe(i)&&i)(n||document.documentElement);a&&e.root.value.classList.add("v-overlay--scroll-blocked"),o.forEach((i,l)=>{i.style.setProperty("--v-body-scroll-x",R(-i.scrollLeft)),i.style.setProperty("--v-body-scroll-y",R(-i.scrollTop)),i!==document.documentElement&&i.style.setProperty("--v-scrollbar-offset",R(r)),i.classList.add("v-overlay-scroll-blocked")}),W(()=>{o.forEach((i,l)=>{const f=parseFloat(i.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(i.style.getPropertyValue("--v-body-scroll-y")),g=i.style.scrollBehavior;i.style.scrollBehavior="auto",i.style.removeProperty("--v-body-scroll-x"),i.style.removeProperty("--v-body-scroll-y"),i.style.removeProperty("--v-scrollbar-offset"),i.classList.remove("v-overlay-scroll-blocked"),i.scrollLeft=-f,i.scrollTop=-u,i.style.scrollBehavior=g}),a&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function gn(e,t,n){let o=!1,r=-1,a=-1;function s(i){un(()=>{var u,g;const l=performance.now();(g=(u=e.updateLocation).value)==null||g.call(u,i),o=(performance.now()-l)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?i=>i():requestIdleCallback)(()=>{n.run(()=>{at(e.targetEl.value??e.contentEl.value,i=>{o?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{s(i)})})):s(i)})})}),W(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(r)})}function at(e,t){const n=[document,...re(e)];n.forEach(o=>{o.addEventListener("scroll",t,{passive:!0})}),W(()=>{n.forEach(o=>{o.removeEventListener("scroll",t)})})}const mn=Symbol.for("vuetify:v-menu"),hn=V({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function yn(e,t){let n=()=>{};function o(s){n==null||n();const i=Number(s?e.openDelay:e.closeDelay);return new Promise(l=>{n=St(i,()=>{t==null||t(s),l(s)})})}function r(){return o(!0)}function a(){return o(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:a}}const bn=V({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,...hn()},"VOverlay-activator");function wn(e,t){let{isActive:n,isTop:o,contentEl:r}=t;const a=Z("useActivator"),s=$();let i=!1,l=!1,f=!0;const u=v(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),g=v(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!u.value),{runOpenDelay:w,runCloseDelay:b}=yn(e,c=>{c===(e.openOnHover&&i||u.value&&l)&&!(e.openOnHover&&n.value&&!o.value)&&(n.value!==c&&(f=!0),n.value=c)}),m=$(),d={onClick:c=>{c.stopPropagation(),s.value=c.currentTarget||c.target,n.value||(m.value=[c.clientX,c.clientY]),n.value=!n.value},onMouseenter:c=>{var T;(T=c.sourceCapabilities)!=null&&T.firesTouchEvents||(i=!0,s.value=c.currentTarget||c.target,w())},onMouseleave:c=>{i=!1,b()},onFocus:c=>{xt(c.target,":focus-visible")!==!1&&(l=!0,c.stopPropagation(),s.value=c.currentTarget||c.target,w())},onBlur:c=>{l=!1,c.stopPropagation(),b()}},B=v(()=>{const c={};return g.value&&(c.onClick=d.onClick),e.openOnHover&&(c.onMouseenter=d.onMouseenter,c.onMouseleave=d.onMouseleave),u.value&&(c.onFocus=d.onFocus,c.onBlur=d.onBlur),c}),A=v(()=>{const c={};if(e.openOnHover&&(c.onMouseenter=()=>{i=!0,w()},c.onMouseleave=()=>{i=!1,b()}),u.value&&(c.onFocusin=()=>{l=!0,w()},c.onFocusout=()=>{l=!1,b()}),e.closeOnContentClick){const T=Qe(mn,null);c.onClick=()=>{n.value=!1,T==null||T.closeParents()}}return c}),k=v(()=>{const c={};return e.openOnHover&&(c.onMouseenter=()=>{f&&(i=!0,f=!1,w())},c.onMouseleave=()=>{i=!1,b()}),c});N(o,c=>{var T;c&&(e.openOnHover&&!i&&(!u.value||!l)||u.value&&!l&&(!e.openOnHover||!i))&&!((T=r.value)!=null&&T.contains(document.activeElement))&&(n.value=!1)}),N(n,c=>{c||setTimeout(()=>{m.value=void 0})},{flush:"post"});const E=Te();Ce(()=>{E.value&&se(()=>{s.value=E.el})});const C=Te(),L=v(()=>e.target==="cursor"&&m.value?m.value:C.value?C.el:rt(e.target,a)||s.value),_=v(()=>Array.isArray(L.value)?void 0:L.value);let O;return N(()=>!!e.activator,c=>{c&&H?(O=Je(),O.run(()=>{Sn(e,a,{activatorEl:s,activatorEvents:B})})):O&&O.stop()},{flush:"post",immediate:!0}),W(()=>{O==null||O.stop()}),{activatorEl:s,activatorRef:E,target:L,targetEl:_,targetRef:C,activatorEvents:B,contentEvents:A,scrimEvents:k}}function Sn(e,t,n){let{activatorEl:o,activatorEvents:r}=n;N(()=>e.activator,(l,f)=>{if(f&&l!==f){const u=i(f);u&&s(u)}l&&se(()=>a())},{immediate:!0}),N(()=>e.activatorProps,()=>{a()}),W(()=>{s()});function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&Dt(l,j(r.value,f))}function s(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i(),f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;l&&$t(l,j(r.value,f))}function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const f=rt(l,t);return o.value=(f==null?void 0:f.nodeType)===Node.ELEMENT_NODE?f:void 0,o.value}}function rt(e,t){var o,r;if(!e)return;let n;if(e==="parent"){let a=(r=(o=t==null?void 0:t.proxy)==null?void 0:o.$el)==null?void 0:r.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;n=a}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function xn(){if(!H)return q(!1);const{ssr:e}=Et();if(e){const t=q(!1);return Ct(()=>{t.value=!0}),t}else return q(!0)}const En=V({eager:Boolean},"lazy");function Cn(e,t){const n=q(!1),o=v(()=>n.value||e.eager||t.value);N(t,()=>n.value=!0);function r(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:o,onAfterLeave:r}}function On(){const t=Z("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const De=Symbol.for("vuetify:stack"),Q=et([]);function Pn(e,t,n){const o=Z("useStack"),r=!n,a=Qe(De,void 0),s=et({activeChildren:new Set});Ot(De,s);const i=q(+t.value);Ee(e,()=>{var g;const u=(g=Q.at(-1))==null?void 0:g[1];i.value=u?u+10:+t.value,r&&Q.push([o.uid,i.value]),a==null||a.activeChildren.add(o.uid),W(()=>{if(r){const w=Pt(Q).findIndex(b=>b[0]===o.uid);Q.splice(w,1)}a==null||a.activeChildren.delete(o.uid)})});const l=q(!0);r&&Ce(()=>{var g;const u=((g=Q.at(-1))==null?void 0:g[0])===o.uid;setTimeout(()=>l.value=u)});const f=v(()=>!s.activeChildren.size);return{globalTop:pt(l),localTop:f,stackStyles:v(()=>({zIndex:i.value}))}}function pn(e){return{teleportTarget:v(()=>{const n=e();if(n===!0||!H)return;const o=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(o==null)return;let r=[...o.children].find(a=>a.matches(".v-overlay-container"));return r||(r=document.createElement("div"),r.className="v-overlay-container",o.appendChild(r)),r})}}function kn(){return!0}function it(e,t,n){if(!e||st(e,n)===!1)return!1;const o=nt(t);if(typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&o.host===e.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(t),!r.some(a=>a==null?void 0:a.contains(e.target))}function st(e,t){return(typeof t.value=="object"&&t.value.closeConditional||kn)(e)}function Rn(e,t,n){const o=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&it(e,t,n)&&setTimeout(()=>{st(e,n)&&o&&o(e)},0)}function $e(e,t){const n=nt(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const An={mounted(e,t){const n=r=>Rn(r,e,t),o=r=>{e._clickOutside.lastMousedownWasOutside=it(r,e,t)};$e(e,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",o,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:o}},beforeUnmount(e,t){e._clickOutside&&($e(e,n=>{var a;if(!n||!((a=e._clickOutside)!=null&&a[t.instance.$.uid]))return;const{onClick:o,onMousedown:r}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",o,!0),n.removeEventListener("mousedown",r,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Tn(e){const{modelValue:t,color:n,...o}=e;return p(Ke,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&p("div",j({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},o),null)]})}const Bn=V({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},...bn(),...Ye(),...kt(),...En(),...on(),...cn(),...Xe(),...Rt()},"VOverlay"),Yn=Se()({name:"VOverlay",directives:{ClickOutside:An},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Bn()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:o,emit:r}=t;const a=Z("VOverlay"),s=$(),i=$(),l=$(),f=Ue(e,"modelValue"),u=v({get:()=>f.value,set:x=>{x&&e.disabled||(f.value=x)}}),{themeClasses:g}=Ge(e),{rtlClasses:w,isRtl:b}=xe(),{hasContent:m,onAfterLeave:d}=Cn(e,u),B=te(v(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:A,localTop:k,stackStyles:E}=Pn(u,he(e,"zIndex"),e._disableGlobalStack),{activatorEl:C,activatorRef:L,target:_,targetEl:O,targetRef:c,activatorEvents:T,contentEvents:K,scrimEvents:P}=wn(e,{isActive:u,isTop:k,contentEl:l}),{teleportTarget:y}=pn(()=>{var J,pe,ke;const x=e.attach||e.contained;if(x)return x;const D=((J=C==null?void 0:C.value)==null?void 0:J.getRootNode())||((ke=(pe=a.proxy)==null?void 0:pe.$el)==null?void 0:ke.getRootNode());return D instanceof ShadowRoot?D:!1}),{dimensionStyles:h}=At(e),S=xn(),{scopeId:F}=On();N(()=>e.disabled,x=>{x&&(u.value=!1)});const{contentStyles:I,updateLocation:X}=an(e,{isRtl:b,contentEl:l,target:_,isActive:u});fn(e,{root:s,contentEl:l,targetEl:O,isActive:u,updateLocation:X});function M(x){r("click:outside",x),e.persistent?ee():u.value=!1}function z(x){return u.value&&A.value&&(!e.scrim||x.target===i.value||x instanceof MouseEvent&&x.shadowTarget===i.value)}H&&N(u,x=>{x?window.addEventListener("keydown",U):window.removeEventListener("keydown",U)},{immediate:!0}),qe(()=>{H&&window.removeEventListener("keydown",U)});function U(x){var D,J;x.key==="Escape"&&A.value&&(e.persistent?ee():(u.value=!1,(D=l.value)!=null&&D.contains(document.activeElement)&&((J=C.value)==null||J.focus())))}const G=en();Ee(()=>e.closeOnBack,()=>{tn(G,x=>{A.value&&u.value?(x(!1),e.persistent?ee():u.value=!1):x()})});const Pe=$();N(()=>u.value&&(e.absolute||e.contained)&&y.value==null,x=>{if(x){const D=Ht(s.value);D&&D!==document.scrollingElement&&(Pe.value=D.scrollTop)}});function ee(){e.noClickAnimation||l.value&&It(l.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Wt})}function lt(){r("afterEnter")}function ut(){d(),r("afterLeave")}return Ze(()=>{var x;return p(ze,null,[(x=n.activator)==null?void 0:x.call(n,{isActive:u.value,targetRef:c,props:j({ref:L},T.value,e.activatorProps)}),S.value&&m.value&&p(Tt,{disabled:!y.value,to:y.value},{default:()=>[p("div",j({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":u.value,"v-overlay--contained":e.contained},g.value,w.value,e.class],style:[E.value,{"--v-overlay-opacity":e.opacity,top:R(Pe.value)},e.style],ref:s},F,o),[p(Tn,j({color:B,modelValue:u.value&&!!e.scrim,ref:i},P.value),null),p(Bt,{appear:!0,persisted:!0,transition:e.transition,target:_.value,onAfterEnter:lt,onAfterLeave:ut},{default:()=>{var D;return[Lt(p("div",j({ref:l,class:["v-overlay__content",e.contentClass],style:[h.value,I.value]},K.value,e.contentProps),[(D=n.default)==null?void 0:D.call(n,{isActive:u})]),[[_t,u.value],[Ft("click-outside"),{handler:M,closeConditional:z,include:()=>[C.value]}]])]}})])]})])}),{activatorEl:C,scrimEl:i,target:_,animateClick:ee,contentEl:l,globalTop:A,localTop:k,updateLocation:X}}}),ve=Symbol("Forwarded refs");function ge(e,t){let n=e;for(;n;){const o=Reflect.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function Xn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e[ve]=n,new Proxy(e,{get(r,a){if(Reflect.has(r,a))return Reflect.get(r,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const s of n)if(s.value&&Reflect.has(s.value,a)){const i=Reflect.get(s.value,a);return typeof i=="function"?i.bind(s.value):i}}},has(r,a){if(Reflect.has(r,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const s of n)if(s.value&&Reflect.has(s.value,a))return!0;return!1},set(r,a,s){if(Reflect.has(r,a))return Reflect.set(r,a,s);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,a))return Reflect.set(i.value,a,s);return!1},getOwnPropertyDescriptor(r,a){var i;const s=Reflect.getOwnPropertyDescriptor(r,a);if(s)return s;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const l of n){if(!l.value)continue;const f=ge(l.value,a)??("_"in l.value?ge((i=l.value._)==null?void 0:i.setupState,a):void 0);if(f)return f}for(const l of n){const f=l.value&&l.value[ve];if(!f)continue;const u=f.slice();for(;u.length;){const g=u.shift(),w=ge(g.value,a);if(w)return w;const b=g.value&&g.value[ve];b&&u.push(...b)}}}}})}export{Cn as A,Ht as B,Wn as V,In as a,Gt as b,Hn as c,Mn as d,Nn as e,qn as f,Zt as g,zn as h,jn as i,Dn as j,Vn as k,$n as l,qt as m,Bn as n,On as o,Yn as p,Xn as q,It as r,_n as s,Wt as t,Ut as u,Fn as v,Nt as w,Vt as x,mn as y,En as z};
|