93 lines
1.1 MiB
JavaScript
93 lines
1.1 MiB
JavaScript
|
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-BYmT0Q_F.js","assets/auth-DmITJcle.js","assets/index-ChNUjLLo.js","assets/agent-WRYR5BAs.js","assets/conversation-C4tqOoff.js","assets/Login-CxkRgTYS.css","assets/Bind-B0_s49-s.js","assets/Bind-qSFyrdvX.css","assets/Workspace-BJmfmfpm.js","assets/AiAssistantPanel-31-Ys6Rc.js","assets/AiAssistantPanel-q9xrG9jP.css","assets/Workspace-CDdUOJUV.css","assets/AgentPreviewView-BFdiVg6e.js","assets/AgentPreviewView-B79RJoCv.css","assets/MfaBind-CCREh_DU.js","assets/MfaBind-DAafe6c7.css","assets/SessionWorkbench-Caqy0KdE.js","assets/SessionWorkbench-D3TciAda.css","assets/ApprovalQueue-0zcV_0-8.js","assets/ApprovalQueue-BKzG2UdI.css","assets/Settings-0Zjw48iD.js","assets/Settings-CefBf3Qq.css"])))=>i.map(i=>d[i]);
|
|||
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();/**
|
|||
|
|
* @vue/shared v3.5.35
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function rp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pn={},ns=[],dt=()=>{},w3=()=>!1,gd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),yd=e=>e.startsWith("onUpdate:"),zn=Object.assign,sp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zx=Object.prototype.hasOwnProperty,Rt=(e,t)=>zx.call(e,t),_e=Array.isArray,as=e=>du(e)==="[object Map]",bd=e=>du(e)==="[object Set]",jo=e=>du(e)==="[object Date]",Ke=e=>typeof e=="function",Le=e=>typeof e=="string",Ra=e=>typeof e=="symbol",rt=e=>e!==null&&typeof e=="object",qo=e=>(rt(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),C3=Object.prototype.toString,du=e=>C3.call(e),Dx=e=>du(e).slice(8,-1),Ri=e=>du(e)==="[object Object]",wd=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gi=rp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hx=/-\w/g,Un=Cd(e=>e.replace(Hx,t=>t.slice(1).toUpperCase())),Fx=/\B([A-Z])/g,ho=Cd(e=>e.replace(Fx,"-$1").toLowerCase()),fu=Cd(e=>e.charAt(0).toUpperCase()+e.slice(1)),gr=Cd(e=>e?`on${fu(e)}`:""),El=(e,t)=>!Object.is(e,t),vc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},_3=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},ip=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kx=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let O1;const _d=()=>O1||(O1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(_e(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],l=Le(a)?Ux(a):We(a);if(l)for(const o in l)t[o]=l[o]}return t}else if(Le(e)||rt(e))return e}const Wx=/;(?![^(]*\))/g,jx=/:([^]+)/,qx=/\/\*[^]*?\*\//g;function Ux(e){const t={};return e.replace(qx,"").split(Wx).forEach(n=>{if(n){const a=n.split(jx);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function A(e){let t="";if(Le(e))t=e;else if(_e(e))for(let n=0;n<e.length;n++){const a=A(e[n]);a&&(t+=a+" ")}else if(rt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function eo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=A(t)),n&&(e.style=We(n)),e}const Yx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gx=rp(Yx);function S3(e){return!!e||e===""}function Xx(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=xr(e[a],t[a]);return n}function xr(e,t){if(e===t)return!0;let n=jo(e),a=jo(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Ra(e),a=Ra(t),n||a)return e===t;if(n=_e(e),a=_e(t),n||a)return n&&a?Xx(e,t):!1;if(n=rt(e),a=rt(t),n||a){if(!n||!a)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!xr(e[r],t[r]))return!1}}return String(e)===String(t)}function x3(e,t){return e.findIndex(n=>xr(n,t))}const k3=e=>!!(e&&e.__v_isRef===!0),xe=e=>Le(e)?e:e==null?"":_e(e)||rt(e)&&(e.toString===C3||!Ke(e.toString))?k3(e)?xe(e.value):JSON.stringify(e,E3,2):String(e),E3=(e,t)=>k3(t)?E3(e,t.value):as(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,l],o)=>(n[Of(a,o)+" =>"]=l,n),{})}:bd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Of(n))}:Ra(t)?Of(t):rt(t)&&!_e(t)&&!Ri(t)?String(t):t,Of=(e,t="")=>{var n;return Ra(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.35
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let Fn;class M3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Fn&&(Fn.active?(this.parent=Fn,this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Fn;try{return Fn=this,t()}finally{Fn=n}}}on(){++this._on===1&&(this.prevScope=Fn,Fn=this)}off(){if(this._on>0&&--this._on===0){if(Fn===this)Fn=this.prevScope;else{let t=Fn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function up(e){return new M3(e)}function Sd(){return Fn}function cp(e,t=!1){Fn&&Fn.cleanups.push(e)}let bn;const Nf=new WeakSet;class T3{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Fn&&(Fn.active?Fn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Nf.has(this)&&(Nf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||O3(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,N1(this),N3(this);const t=bn,n=tl;bn=this,tl=!0;try{return this.fn()}finally{A3(this),bn=t,tl=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)pp(t);this.deps=this.depsTail=void 0,N1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Nf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){k0(this)&&this.run()}get dirty(){return k0(this)}}let $3=0,yi,bi;function O3(e,t=!1){if(e.flags|=8,t){e.next=bi,bi=e;return}e.next=yi,yi=e}function dp(){$3++}function fp(){if(--$3>0)return;if(bi){let t=bi;for(bi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;yi;){let t=yi;for(yi=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function N3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function A3(e){let t,n=e.depsTail,a=n;for(;a;){const l=a.prevDep;a.version===-1?(a===n&&(n=l),pp(a),Zx(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=l}e.deps=t,e.depsTail=n}function k0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(P3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function P3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ii)||(e.globalVersion=Ii,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!k0(e))))return;e.flags|=2;const t=e.dep,n=bn,a=tl;bn=e,tl=!0;try{N3(e);const l=e.fn(e._value);(t.version===0||El(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{bn=n,tl=a,A3(e),e.flags&=-3}}function pp(e,t=!1){const{dep:n,prevSub:a,nextSub:l}=e;if(a&&(a.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)pp(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zx(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let tl=!0;const R3=[];func
|
|||
|
|
* @vue/runtime-core v3.5.35
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function pu(e,t,n,a){try{return a?e(...a):e()}catch(l){$d(l,t,n)}}function Wa(e,t,n,a){if(Ke(e)){const l=pu(e,t,n,a);return l&&qo(l)&&l.catch(o=>{$d(o,t,n)}),l}if(_e(e)){const l=[];for(let o=0;o<e.length;o++)l.push(Wa(e[o],t,n,a));return l}}function $d(e,t,n,a=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||pn;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(o){oo(),pu(o,null,10,[e,u,c]),ro();return}}S7(e,n,l,a,r)}function S7(e,t,n,a=!0,l=!1){if(l)throw e;console.error(e)}const fa=[];let Sl=-1;const ls=[];let Ro=null,Xr=0;const U3=Promise.resolve();let Vc=null;function Ie(e){const t=Vc||U3;return e?t.then(this?e.bind(this):e):t}function x7(e){let t=Sl+1,n=fa.length;for(;t<n;){const a=t+n>>>1,l=fa[a],o=Li(l);o<e||o===e&&l.flags&2?t=a+1:n=a}return t}function hp(e){if(!(e.flags&1)){const t=Li(e),n=fa[fa.length-1];!n||!(e.flags&2)&&t>=Li(n)?fa.push(e):fa.splice(x7(t),0,e),e.flags|=1,Y3()}}function Y3(){Vc||(Vc=U3.then(X3))}function k7(e){_e(e)?ls.push(...e):Ro&&e.id===-1?Ro.splice(Xr+1,0,e):e.flags&1||(ls.push(e),e.flags|=1),Y3()}function P1(e,t,n=Sl+1){for(;n<fa.length;n++){const a=fa[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;fa.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function G3(e){if(ls.length){const t=[...new Set(ls)].sort((n,a)=>Li(n)-Li(a));if(ls.length=0,Ro){Ro.push(...t);return}for(Ro=t,Xr=0;Xr<Ro.length;Xr++){const n=Ro[Xr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ro=null,Xr=0}}const Li=e=>e.id==null?e.flags&2?-1:1/0:e.id;function X3(e){try{for(Sl=0;Sl<fa.length;Sl++){const t=fa[Sl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Sl<fa.length;Sl++){const t=fa[Sl];t&&(t.flags&=-2)}Sl=-1,fa.length=0,G3(),Vc=null,(fa.length||ls.length)&&X3()}}let Zn=null,Z3=null;function Lc(e){const t=Zn;return Zn=e,Z3=e&&e.type.__scopeId||null,t}function ae(e,t=Zn,n){if(!t||e._n)return e;const a=(...l)=>{a._d&&Dc(-1);const o=Lc(t);let r;try{r=e(...l)}finally{Lc(o),a._d&&Dc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function pt(e,t){if(Zn===null)return e;const n=Rd(Zn),a=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,s,u=pn]=t[l];o&&(Ke(o)&&(o={mounted:o,updated:o}),o.deep&&Zl(r),a.push({dir:o,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function er(e,t,n,a){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const s=l[r];o&&(s.oldValue=o[r].value);let u=s.dir[a];u&&(oo(),Wa(u,n,8,[e.el,s,e,t]),ro())}}function Ct(e,t){if(la){let n=la.provides;const a=la.parent&&la.parent.provides;a===n&&(n=la.provides=Object.create(a)),n[e]=t}}function Ve(e,t,n=!1){const a=ht();if(a||br){let l=br?br._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&Ke(t)?t.call(a&&a.proxy):t}}function mp(){return!!(ht()||br)}const E7=Symbol.for("v-scx"),M7=()=>Ve(E7);function sa(e,t){return gp(e,null,t)}function fe(e,t,n){return gp(e,t,n)}function gp(e,t,n=pn){const{immediate:a,deep:l,flush:o,once:r}=n,s=zn({},n),u=t&&a||!t&&o!=="post";let c;if(Di){if(o==="sync"){const g=M7();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=dt,g.resume=dt,g.pause=dt,g}}const d=la;s.call=(g,v,m)=>Wa(g,d,v,m);let f=!1;o==="post"?s.scheduler=g=>{ca(g,d&&d.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(g,v)=>{v?g():hp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const p=_7(e,t,s);return Di&&(c?c.push(p):u&&p()),p}function T7(e,t,n){const a=this.proxy,l=Le(e)?e.includes(".")?J3(a,e):()=>a[e]:e.bind(a,a);let o;Ke(t)?o=t:(o=t.handler,n=t);const r=hu(this),s=gp(l,o.bind(a),n);return r(),s}function J3(e,t){const n=t.split(".");return()=>{let a=e;for(let l=0;l<n.length&&a;l++)a=a[n[l]];return a}}const To=new WeakMap,Q3=Symbol("_vte"),e6=e=>e.__isTeleport,sr=e=>e&&(e.disabled||e.disabled
|
|||
|
|
* @vue/runtime-dom v3.5.35
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let I0;const X1=typeof window<"u"&&window.trustedTypes;if(X1)try{I0=X1.createPolicy("vue",{createHTML:e=>e})}catch{}const P6=I0?e=>I0.createHTML(e):e=>e,kk="http://www.w3.org/2000/svg",Ek="http://www.w3.org/1998/Math/MathML",Ul=typeof document<"u"?document:null,Z1=Ul&&Ul.createElement("template"),Mk={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const l=t==="svg"?Ul.createElementNS(kk,e):t==="mathml"?Ul.createElementNS(Ek,e):n?Ul.createElement(e,{is:n}):Ul.createElement(e);return e==="select"&&a&&a.multiple!=null&&l.setAttribute("multiple",a.multiple),l},createText:e=>Ul.createTextNode(e),createComment:e=>Ul.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ul.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{Z1.innerHTML=P6(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=Z1.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ko="transition",ei="animation",ps=Symbol("_vtc"),R6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},I6=zn({},n6,R6),Tk=e=>(e.displayName="Transition",e.props=I6,e),Yn=Tk((e,{slots:t})=>Ye(P7,V6(e),t)),nr=(e,t=[])=>{_e(e)?e.forEach(n=>n(...t)):e&&e(...t)},J1=e=>e?_e(e)?e.some(t=>t.length>1):e.length>1:!1;function V6(e){const t={};for(const R in e)R in R6||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:a,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=$k(l),m=v&&v[0],h=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:T=C}=t,N=(R,B,q,W)=>{R._enterCancelled=W,$o(R,B?d:s),$o(R,B?c:r),q&&q()},$=(R,B)=>{R._isLeaving=!1,$o(R,f),$o(R,g),$o(R,p),B&&B()},P=R=>(B,q)=>{const W=R?E:b,H=()=>N(B,R,q);nr(W,[B,H]),Q1(()=>{$o(B,R?u:o),_l(B,R?d:s),J1(W)||em(B,a,m,H)})};return zn(t,{onBeforeEnter(R){nr(y,[R]),_l(R,o),_l(R,r)},onBeforeAppear(R){nr(k,[R]),_l(R,u),_l(R,c)},onEnter:P(!1),onAppear:P(!0),onLeave(R,B){R._isLeaving=!0;const q=()=>$(R,B);_l(R,f),R._enterCancelled?(_l(R,p),V0(R)):(V0(R),_l(R,p)),Q1(()=>{R._isLeaving&&($o(R,f),_l(R,g),J1(_)||em(R,a,h,q))}),nr(_,[R,q])},onEnterCancelled(R){N(R,!1,void 0,!0),nr(C,[R])},onAppearCancelled(R){N(R,!0,void 0,!0),nr(T,[R])},onLeaveCancelled(R){$(R),nr(x,[R])}})}function $k(e){if(e==null)return null;if(rt(e))return[Lf(e.enter),Lf(e.leave)];{const t=Lf(e);return[t,t]}}function Lf(e){return Kx(e)}function _l(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ps]||(e[ps]=new Set)).add(t)}function $o(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[ps];n&&(n.delete(t),n.size||(e[ps]=void 0))}function Q1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ok=0;function em(e,t,n,a){const l=e._endId=++Ok,o=()=>{l===e._endId&&a()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:s,propCount:u}=L6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function L6(e,t){const n=window.getComputedStyle(e),a=v=>(n[v]||"").split(", "),l=a(`${ko}Delay`),o=a(`${ko}Duration`),r=tm(l,o),s=a(`${ei}Delay`),u=a(`${ei}Duratio
|
|||
|
|
* vue-router v4.6.4
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/const Zr=typeof document<"u";function X6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&X6(e.default)}const ln=Object.assign;function Df(e,t){const n={};for(const a in t){const l=t[a];n[a]=sl(l)?l.map(e):e(l)}return n}const xi=()=>{},sl=Array.isArray;function gm(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const Z6=/#/g,pE=/&/g,vE=/\//g,hE=/=/g,mE=/\?/g,J6=/\+/g,gE=/%5B/g,yE=/%5D/g,Q6=/%5E/g,bE=/%60/g,e8=/%7B/g,wE=/%7C/g,t8=/%7D/g,CE=/%20/g;function Mp(e){return e==null?"":encodeURI(""+e).replace(wE,"|").replace(gE,"[").replace(yE,"]")}function _E(e){return Mp(e).replace(e8,"{").replace(t8,"}").replace(Q6,"^")}function L0(e){return Mp(e).replace(J6,"%2B").replace(CE,"+").replace(Z6,"%23").replace(pE,"%26").replace(bE,"`").replace(e8,"{").replace(t8,"}").replace(Q6,"^")}function SE(e){return L0(e).replace(hE,"%3D")}function xE(e){return Mp(e).replace(Z6,"%23").replace(mE,"%3F")}function kE(e){return xE(e).replace(vE,"%2F")}function Hi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const EE=/\/$/,ME=e=>e.replace(EE,"");function Hf(e,t,n="/"){let a,l={},o="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),o=t.slice(u,s>0?s:t.length),l=e(o.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=NE(a??t,n),{fullPath:a+o+r,path:a,query:l,hash:Hi(r)}}function TE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ym(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $E(e,t,n){const a=t.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&hs(t.matched[a],n.matched[l])&&n8(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function hs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function n8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!OE(e[n],t[n]))return!1;return!0}function OE(e,t){return sl(e)?bm(e,t):sl(t)?bm(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function bm(e,t){return sl(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function NE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let o=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r).join("/")}const Mo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let B0=function(e){return e.pop="pop",e.push="push",e}({}),Ff=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function AE(e){if(!e)if(Zr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const PE=/^[^#]+#/;function RE(e,t){return e.replace(PE,"#")+t}function IE(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Id=()=>({left:window.scrollX,top:window.scrollY});function VE(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=IE(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function wm(e,t){return(history.state?history.state.position-t:-1)+e}const z0=new Map;function LE(e,t){z0.set(e,t)}function BE(e){const t=z0.get(e);return z0.delete(e),t}function zE(e){return typeof e=="string"||e&&typeof e=="object"}function a8(e){return typeof e=="string"||typeof e=="symbol"}let An=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="
|
|||
|
|
* vue-router v4.6.4
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let qE=()=>location.protocol+"//"+location.host;function o8(e,t){const{pathname:n,search:a,hash:l}=t,o=e.indexOf("#");if(o>-1){let r=l.includes(e.slice(o))?e.slice(o).length:1,s=l.slice(r);return s[0]!=="/"&&(s="/"+s),ym(s,"")}return ym(n,e)+a+l}function UE(e,t,n,a){let l=[],o=[],r=null;const s=({state:p})=>{const g=o8(e,location),v=n.value,m=t.value;let h=0;if(p){if(n.value=g,t.value=p,r&&r===v){r=null;return}h=m?p.position-m.position:0}else a(g);l.forEach(y=>{y(n.value,v,{delta:h,type:B0.pop,direction:h?h>0?Ff.forward:Ff.back:Ff.unknown})})};function u(){r=n.value}function c(p){l.push(p);const g=()=>{const v=l.indexOf(p);v>-1&&l.splice(v,1)};return o.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(ln({},p.state,{scroll:Id()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Sm(e,t,n,a=!1,l=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:l?Id():null}}function YE(e){const{history:t,location:n}=window,a={value:o8(e,n)},l={value:t.state};l.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:qE()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),l.value=c}catch(g){console.error(g),n[d?"replace":"assign"](p)}}function r(u,c){o(u,ln({},t.state,Sm(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),a.value=u}function s(u,c){const d=ln({},l.value,t.state,{forward:u,scroll:Id()});o(d.current,d,!0),o(u,ln({},Sm(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:l,push:s,replace:r}}function GE(e){e=AE(e);const t=YE(e),n=UE(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const l=ln({location:"",base:e,go:a,createHref:RE.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}let pr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Hn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Hn||{});const XE={type:pr.Static,value:""},ZE=/[a-zA-Z0-9_]/;function JE(e){if(!e)return[[]];if(e==="/")return[[XE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Hn.Static,a=n;const l=[];let o;function r(){o&&l.push(o),o=[]}let s=0,u,c="",d="";function f(){c&&(n===Hn.Static?o.push({type:pr.Static,value:c}):n===Hn.Param||n===Hn.ParamRegExp||n===Hn.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:pr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Hn.ParamRegExp){a=n,n=Hn.EscapeNext;continue}switch(n){case Hn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Hn.Param):p();break;case Hn.EscapeNext:p(),n=a;break;case Hn.Param:u==="("?n=Hn.ParamRegExp:ZE.test(u)?p():(f(),n=Hn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Hn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Hn.ParamRegExpEnd:d+=u;break;case Hn.ParamRegExpEnd:f(),n=Hn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Hn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),l}const xm="[^/]+?",QE={sensitive:!1,strict:!1,start:!0,end:!0};var da=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=
|
|||
|
|
* pinia v2.3.1
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let i8;const Ld=e=>i8=e,u8=Symbol();function H0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ki;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ki||(ki={}));function bM(){const e=up(!0),t=e.run(()=>L({}));let n=[],a=[];const l=Fa({install(o){Ld(l),l._a=o,o.provide(u8,l),o.config.globalProperties.$pinia=l,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const c8=()=>{};function Pm(e,t,n,a=c8){e.push(t);const l=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&Sd()&&cp(l),l}function Kr(e,...t){e.slice().forEach(n=>{n(...t)})}const wM=e=>e(),Rm=Symbol(),Wf=Symbol();function F0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],l=e[n];H0(l)&&H0(a)&&e.hasOwnProperty(n)&&!Gt(a)&&!to(a)?e[n]=F0(l,a):e[n]=a}return e}const CM=Symbol();function _M(e){return!H0(e)||!e.hasOwnProperty(CM)}const{assign:Oo}=Object;function SM(e){return!!(Gt(e)&&e.effect)}function xM(e,t,n,a){const{state:l,actions:o,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=l?l():{});const d=Rn(n.state.value[e]);return Oo(d,o,Object.keys(r||{}).reduce((f,p)=>(f[p]=Fa(S(()=>{Ld(n);const g=n._s.get(e);return r[p].call(g,g)})),f),{}))}return u=d8(e,c,t,n,a,!0),u}function d8(e,t,n={},a,l,o){let r;const s=Oo({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],g;const v=a.state.value[e];!o&&!v&&(a.state.value[e]={});let m;function h(T){let N;c=d=!1,typeof T=="function"?(T(a.state.value[e]),N={type:ki.patchFunction,storeId:e,events:g}):(F0(a.state.value[e],T),N={type:ki.patchObject,payload:T,storeId:e,events:g});const $=m=Symbol();Ie().then(()=>{m===$&&(c=!0)}),d=!0,Kr(f,N,a.state.value[e])}const y=o?function(){const{state:N}=n,$=N?N():{};this.$patch(P=>{Oo(P,$)})}:c8;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const C=(T,N="")=>{if(Rm in T)return T[Wf]=N,T;const $=function(){Ld(a);const P=Array.from(arguments),R=[],B=[];function q(V){R.push(V)}function W(V){B.push(V)}Kr(p,{args:P,name:$[Wf],store:x,after:q,onError:W});let H;try{H=T.apply(this&&this.$id===e?this:x,P)}catch(V){throw Kr(B,V),V}return H instanceof Promise?H.then(V=>(Kr(R,V),V)).catch(V=>(Kr(B,V),Promise.reject(V))):(Kr(R,H),H)};return $[Rm]=!0,$[Wf]=N,$},_={_p:a,$id:e,$onAction:Pm.bind(null,p),$patch:h,$reset:y,$subscribe(T,N={}){const $=Pm(f,T,N.detached,()=>P()),P=r.run(()=>fe(()=>a.state.value[e],R=>{(N.flush==="sync"?d:c)&&T({storeId:e,type:ki.direct,events:g},R)},Oo({},u,N)));return $},$dispose:b},x=It(_);a._s.set(e,x);const E=(a._a&&a._a.runWithContext||wM)(()=>a._e.run(()=>(r=up()).run(()=>t({action:C}))));for(const T in E){const N=E[T];if(Gt(N)&&!SM(N)||to(N))o||(v&&_M(N)&&(Gt(N)?N.value=v[T]:F0(N,v[T])),a.state.value[e][T]=N);else if(typeof N=="function"){const $=C(N,T);E[T]=$,s.actions[T]=N}}return Oo(x,E),Oo(Yt(x),E),Object.defineProperty(x,"$state",{get:()=>a.state.value[e],set:T=>{h(N=>{Oo(N,T)})}}),a._p.forEach(T=>{Oo(x,r.run(()=>T({store:x,app:a._a,pinia:a,options:s})))}),v&&o&&n.hydrate&&n.hydrate(x.$state,v),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function $ie(e,t,n){let a,l;const o=typeof t=="function";typeof e=="string"?(a=e,l=o?n:t):(l=e,a=e.id);function r(s,u){const c=mp();return s=s||(c?Ve(u8,null):null),s&&Ld(s),s=i8,s._s.has(a)||(o?d8(a,t,l,s):xM(a,l,s)),s._s.get(a)}return r.$id=a,r}const Se={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},f8=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],yc=["sun","mon","tue","wed","thu","fri","sat"],lt="update:modelValue",yt="change",En="input",K0=Symbol("INSTALLED_KEY"),Xa=["","default","small","large"],W0=["left","center
|
|||
|
|
For more detail, please visit: ${l}
|
|||
|
|
`)},{immediate:!0})},xP='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',uy=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,vg=e=>typeof Element>"u"?!1:e instanceof Element,kP=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,hg=e=>Array.from(e.querySelectorAll(xP)).filter(t=>$r(t)&&kP(t)),$r=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},bc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},cy=e=>!e.getAttribute("aria-owns"),dy=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n);return l[Array.prototype.indexOf.call(l,e)+t]||null},ku=(e,t)=>{if(!e||!e.focus)return;let n=!1;vg(e)&&!$r(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),vg(e)&&n&&e.removeAttribute("tabindex")},is=e=>{e&&(ku(e),!cy(e)&&e.click())},Gd=()=>Pt&&/firefox/i.test(window.navigator.userAgent),fy=()=>Pt&&/android/i.test(window.navigator.userAgent),Yp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Zf=e=>fu(e),EP="utils/dom/style",py=(e="")=>e.split(" ").filter(t=>!!t.trim()),$l=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Da=(e,t)=>{!e||!t.trim()||e.classList.add(...py(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...py(t))},Jl=(e,t)=>{var a;if(!Pt||!e||!t||uy(e))return"";let n=Un(t);n==="float"&&(n="cssFloat");try{const l=e.style[n];if(l)return l;const o=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},vy=(e,t,n)=>{if(!(!e||!t))if(rt(t))Q8(t).forEach(([a,l])=>vy(e,a,l));else{const a=Un(t);e.style[a]=n}};function dn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||YA(e))return`${e}${t}`;if(Le(e))return e;jt(EP,"binding value must be a string or number")}const Gp=(e,t,n,a)=>{const l={offsetX:0,offsetY:0},o=L(!1),r=(p,g)=>{if(e.value){const{offsetX:v,offsetY:m}=l,h=e.value.getBoundingClientRect(),y=Math.max(h.left,0),b=Math.max(h.top,0),C=h.width,_=h.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+v,T=-b+m,N=x-y-C+v,$=k-b-(_<k?_:0)+m;a!=null&&a.value||(p=Ca(p,E,N),g=Ca(g,T,$)),l.offsetX=p,l.offsetY=g,e.value.style.transform=`translate(${dn(p)}, ${dn(g)})`}},s=p=>{const g=p.clientX,v=p.clientY,{offsetX:m,offsetY:h}=l,y=C=>{o.value||(o.value=!0),r(m+C.clientX-g,h+C.clientY-v)},b=()=>{o.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{l.offsetX=0,l.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:g}=l;r(p,g)};return mt(()=>{sa(()=>{n.value?u():c()})}),Bt(()=>{c()}),{isDragging:o,resetPosition:d,updatePosition:f}};var MP={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",pre
|
|||
|
|
usage: app.provide(ID_INJECTION_KEY, {
|
|||
|
|
prefix: number,
|
|||
|
|
current: number,
|
|||
|
|
})`);const n=Xd();return ay(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Jr=[];const Tg=e=>{Ut(e)===Se.esc&&Jr.forEach(t=>t(e))},Vy=e=>{mt(()=>{Jr.length===0&&document.addEventListener("keydown",Tg),Pt&&Jr.push(e)}),Bt(()=>{Jr=Jr.filter(t=>t!==e),Jr.length===0&&Pt&&document.removeEventListener("keydown",Tg)})},uv=()=>{const e=Xd(),t=Qd(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},LR=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Ly=()=>{const{id:e,selector:t}=uv();return Ad(()=>{Pt&&(document.body.querySelector(t.value)||LR(e.value))}),{id:e,selector:t}},By=ke({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),zy=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=e2(),{registerTimeout:r,cancelTimeout:s}=e2();return{onOpen:(d,f=i(e))=>{o(()=>{a(d);const p=i(n);He(p)&&p>0&&r(()=>{l(d)},p)},f)},onClose:(d,f=i(t))=>{s(),o(()=>{l(d)},f)}}},cv=Symbol("elForwardRef"),Dy=e=>{Ct(cv,{setForwardRef:n=>{e.value=n}})},Hy=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),$g={current:0},Og=L(0),dv=2e3,n2=Symbol("elZIndexContextKey"),fv=Symbol("zIndexContextKey"),Hs=e=>{const t=ht()?Ve(n2,$g):$g,n=e||(ht()?Ve(fv,void 0):void 0),a=S(()=>{const r=i(n);return He(r)?r:dv}),l=S(()=>a.value+Og.value),o=()=>(t.current++,Og.value=t.current,l.value);return!Pt&&!Ve(n2)&&jt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|||
|
|
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:l,nextZIndex:o}},xs=Math.min,Cr=Math.max,Yc=Math.round,Qu=Math.floor,Nl=e=>({x:e,y:e}),BR={left:"right",right:"left",bottom:"top",top:"bottom"};function a2(e,t,n){return Cr(e,xs(t,n))}function $u(e,t){return typeof e=="function"?e(t):e}function Nr(e){return e.split("-")[0]}function Ou(e){return e.split("-")[1]}function Fy(e){return e==="x"?"y":"x"}function pv(e){return e==="y"?"height":"width"}function zo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function vv(e){return Fy(zo(e))}function zR(e,t,n){n===void 0&&(n=!1);const a=Ou(e),l=vv(e),o=pv(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=Gc(r)),[r,Gc(r)]}function DR(e){const t=Gc(e);return[l2(e),t,l2(t)]}function l2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ng=["left","right"],Ag=["right","left"],HR=["top","bottom"],FR=["bottom","top"];function KR(e,t,n){switch(e){case"top":case"bottom":return n?t?Ag:Ng:t?Ng:Ag;case"left":case"right":return t?HR:FR;default:return[]}}function WR(e,t,n,a){const l=Ou(e);let o=KR(Nr(e),n==="start",a);return l&&(o=o.map(r=>r+"-"+l),t&&(o=o.concat(o.map(l2)))),o}function Gc(e){const t=Nr(e);return BR[t]+e.slice(t.length)}function jR(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ky(e){return typeof e!="number"?jR(e):{top:e,right:e,bottom:e,left:e}}function Xc(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function Pg(e,t,n){let{reference:a,floating:l}=e;const o=zo(t),r=vv(t),s=pv(r),u=Nr(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[s]/2-l[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-l.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-l.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Ou(t)){case"start":g[r]-=p*(n&&c?-1:1);break;case"end":g[r]+=p*(n&&c?-1:1);break}return g}async function Wy(e,t){var n;t===void 0&&(t={});const{x:a,y:l,platform:o,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:g=0}=$u(t,e),v=Ky(g),h=s[p?f==="floating"?"reference":"floating":f],y=Xc(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(h)))==null||n?h:h.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),_=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Xc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-x.top+v.top)/_.y,bottom:(x.bottom-y.bottom+v.bottom)/_.y,left:(y.left-x.left+v.left)/_.x,right:(x.right-y.right+v.right)/_.x}}const qR=50,UR=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:Wy},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=Pg(c,a,u),p=a,g=0;const v={};for(let m=0;m<o.length;m++){const h=o[m];if(!h)continue;const{name:y,fn:b}=h,{x:C,y:_,data:x,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:l,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=_??f,v[y]={...v[y],...x},k&&g<qR&&(g++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:l}):k.rects),{x:d,y:f}=Pg(c,p,u)),m=-1)}return{x:d,y:f,placement:p,strategy:l,middlewareData:v}},YR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:r,elements:s,middlewareData:u}=t,{element:c,
|
|||
|
|
(?:
|
|||
|
|
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|||
|
|
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|||
|
|
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|||
|
|
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|||
|
|
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|||
|
|
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|||
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|||
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+l+"$"),u=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+l+t(_)+")","g")};u.v4=function(C){return C&&C.exact?r:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+l+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+g+v+m+")"+h+y;return tc=new RegExp("(?:^"+b+"$)","i"),tc},qg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pi={integer:function(t){return pi.number(t)&&parseInt(t,10)===t},float:function(t){return pi.number(t)&&!pi.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!pi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sq())},hex:function(t){return typeof t=="string"&&!!t.match(qg.hex)}},iq=function(t,n,a,l,o){if(t.required&&n===void 0){jb(t,n,a,l,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?pi[s](n)||l.push(Na(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&l.push(Na(o.messages.types[s],t.fullField,t.type))},uq=function(t,n,a,l,o){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(p?f="number":g?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&l.push(Na(o.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?l.push(Na(o.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?l.push(Na(o.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&l.push(Na(o.messages[f].range,t.fullField,t.min,t.max))},jr="enum",cq=function(t,n,a,l,o){t[jr]=Array.isArray(t[jr])?t[jr]:[],t[jr].indexOf(n)===-1&&l.push(Na(o.messages[jr],t.fullField,t[jr].join(", ")))},dq=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||l.push(Na(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Zt={required:jb,whitespace:rq,type:iq,range:uq,enum:cq,pattern:dq},fq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n,"string")&&!t.required)return a();Zt.required(t,n,l,r,o,"string"),jn(n,"string")||(Zt.type(t,n,l,r,o),Zt.range(t,n,l,r,o),Zt.pattern(t,n,l,r,o),t.whitespace===!0&&Zt.whitespace(t,n,l,r,o))}a(r)},pq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n)&&!t.required)return a();Zt.required(t,n,l,r,o),n!==void 0&&Zt.type(t,n,l,r,o)}a(r)},vq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),jn(n)&&!t.required)return a();Zt.required(t,n,l,r,o),n!==void 0&&(Zt.type(t,n,l,r,o),Zt.range(t,n,l,r,o))}a(r)},hq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n)&&!t.requir
|
|||
|
|
* Checks if an event is supported in the current execution environment.
|
|||
|
|
*
|
|||
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|||
|
|
* `reset`, `load`, `error`, and `select`.
|
|||
|
|
*
|
|||
|
|
* Borrows from Modernizr.
|
|||
|
|
*
|
|||
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|||
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
|||
|
|
* @return {boolean} True if the event is supported.
|
|||
|
|
* @internal
|
|||
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|||
|
|
*/const $2="_Mousewheel",g4=function(e,t){if(e&&e.addEventListener){Uw(e);const n=function(a){const l=mY(a);t&&Reflect.apply(t,this,[a,l])};e[$2]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},Uw=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[$2].wheelHandler),e[$2]=null)},O2={beforeMount(e,t){g4(e,t.value)},unmounted(e){Uw(e)},updated(e,t){t.value!==t.oldValue&&g4(e,t.value)}},gY=ke({...Vw,datetimeRole:String,parsedValue:{type:J(Object)}}),Yw=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let g;const v=d[p];switch(p){case"minute":g=v(f.hour(),s,c);break;case"second":g=v(f.hour(),f.minute(),s,c);break;default:g=v(s,c);break}if(g!=null&&g.length&&!g.includes(f[p]())){const m=u?0:g.length-1;f=f[p](g[m])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([r,s])=>{l[r]=s}}},s0=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},Gw=(e,t,n)=>({getHoursList:(r,s)=>Sc(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>Sc(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>Sc(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),Xw=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=Gw(e,t,n);return{getAvailableHours:(c,d)=>s0(a(c,d)),getAvailableMinutes:(c,d,f)=>s0(l(c,d,f)),getAvailableSeconds:(c,d,f,p)=>s0(o(c,d,f,p))}},Zw=(e,t)=>{const n=L(e.parsedValue);return fe(()=>e.visible,a=>{const l=kn(t.modelValue),o=kn(t.valueOnClear);if(a&&l===o){n.value=o;return}a||(n.value=e.parsedValue)}),n},yY=ke({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Uv}),bY=["onClick"],wY=["onMouseenter"];var CY=D({__name:"basic-time-spinner",props:yY,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:l,saveOnBlur:o}=Ve(yl).props,r=t,s=be("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=Gw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},g=L(),v={hours:L(),minutes:L(),seconds:L()},m=S(()=>n.showSeconds?h2:h2.slice(0,2)),h=S(()=>{const{spinnerDate:j}=n;return{hours:j.hour(),minutes:j.minute(),seconds:j.second()}}),y=S(()=>{const{hours:j,minutes:Y}=i(h),{role:ee,spinnerDate:le}=n,ne=a?void 0:le;return{hours:u(ee,ne),minutes:c(j,ee,ne),seconds:d(j,Y,ee,ne)}}),b=S(()=>{const{hours:j,minutes:Y,seconds:ee}=i(h);return{hours:_c(j,23),minutes:_c(Y,59),seconds:_c(ee,59)}}),C=Vl(j=>{f=!1,k(j)},200),_=j=>{if(!n.amPmMode)return"";const Y=n.amPmMode==="A";let ee=j<12?" am":" pm";return Y&&(ee=ee.toUpperCase()),ee},x=j=>{let Y=[0,0];const ee=l||"HH:mm:ss",le=ee.indexOf("HH"),ne=ee.indexOf("mm"),se=ee.indexOf("ss");switch(j){case"hours":le!==-1&&(Y=[le,le+2]);break;case"minutes":ne!==-1&&(Y=[ne,ne+2]);break;case"seconds":se!==-1&&(Y=[se,se+2]);break}const[Z,de]=Y;r("select-range",Z,de),g.value=j},k=j=>{N(j,i(h)[j])},E=()=>{k("hours"),k("minutes"),k("seconds")},T=j=>j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),N=(j,Y)=>{if(n.arrowControl)return;const ee=i(v[j]);ee&&ee.$el&&(o||(p[j]=!0,ka(()=>{p[j]=!1})),T(ee.$el).scrollTop=Math.max(0,Y*$(j)))},$=j=>{var ee;const Y=(ee=i(v[j]))==null?void 0:ee.$el.querySelector("li");return Y&&Number.parseFloat(Jl(Y,"height"))||0},P=()=>{B(1)},R=()=>{B(-1)},B=j=>{g.value||x("hours");const Y=g.value,ee=i(h)[Y],le=q(Y,ee,j,g.value==="hours"?24:60);W(Y,le),N(Y,le),Ie(()=>x(Y))},q=(j,Y,ee,le)=>{let ne=(Y+ee+le)%le;const se=i(y)[j];for(;se[ne]&&ne!==Y;)ne=(ne+ee+le)%le;return ne},W=(j,Y)=>{if(i(y)[j][Y])return;const{hours:ee,minutes:le,seconds:ne}=i(h);let se;switch(j){case"hours":se=n.spinnerDate.hour(Y).minute(le).second(ne);break;case"minutes":se=n.spinnerDate.hour(ee).minute(Y).second(ne);break;case"seconds":se=n.spinnerDate.hour(ee).minute(le).second(Y);break}r(yt,se)},H=(j,{value:Y,disabled:ee})=>{ee||(W(j,Y),x(j),N(j,Y))},V=j=>{if(!o&&p[j])return;const Y=i(v[j]);
|
|||
|
|
You should set
|
|||
|
|
width/height
|
|||
|
|
to number when your layout is
|
|||
|
|
horizontal/vertical
|
|||
|
|
`);const c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(r==="smart"&&(s>=f-u&&s<=d+u?r=Ha:r=Tl),r){case au:return d;case"end":return f;case Tl:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Ha:default:return s>=f&&s<=d?s:s<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,r)=>{const s=o*n,u=ou(a)?l:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),zG="ElDynamicSizeList",es=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const s=l[o];r=s.offset+s.size}for(let s=o+1;s<=t;s++){const u=a(s);l[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return l[t]},DG=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?k5(e,t,0,l,n):HG(e,t,Math.max(0,l),n)},k5=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=es(e,o,t).offset;if(r===l)return o;r<l?n=o+1:r>l&&(a=o-1)}return Math.max(0,n-1)},HG=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n<l&&es(e,n,t).offset<a;)n+=o,o*=2;return k5(e,t,Math.floor(n/2),Math.min(n,l-1),a)},E4=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let l=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},E5=x5({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>es(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:E4,getOffset:(e,t,n,a,l)=>{const{height:o,layout:r,width:s}=e,u=ou(r)?s:o,c=es(e,t,l),d=E4(e,l),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=Ha:n=Tl),n){case au:return f;case"end":return p;case Tl:return Math.round(p+(f-p)/2);case Ha:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>DG(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:r,width:s}=e,u=ou(r)?s:l,c=es(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<o-1&&f<d;)p++,f+=es(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,l=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&on(zG,`
|
|||
|
|
itemSize is required as function, but the given value was ${typeof e}
|
|||
|
|
`)}}),FG=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return p||g};return{hasReachedEdge:u,onWheel:d=>{il(o);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),o=ka(()=>{l(r,s),r=0,s=0})}}},KG=(e,t,n,a,l,o,r)=>{const s=L(0),u=L(0);let c,d=0,f=0;const p=v=>{il(c),s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,d=0,f=0},g=v=>{v.preventDefault(),il(c),d+=s.value-v.touches[0].clientX,f+=u.value-v.touches[0].clientY,s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,c=ka(()=>{const m=a.value-i(o),h=l.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,m),scrollTop:Math.min(t.value.scrollTop+f,h)}),d=0,f=0})};return Vt(e,"touchstart",p,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:g}},M5=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:g,validateProps:v})=>D({name:e??"ElVirtualList",props:Wo,emits:[td,nd],setup(m,{emit:h,expose:y,slots:b}){const C=be("vl");v(m);const _=ht(),x=L(p(m,_));g==null||g(_,x);const k=L(),E=L(),T=L(),N=L(),$=L({isScrolling:!1,scrollLeft:He(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:He(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ad,yAxisScrollDir:ad}),P=_5(),R=S(()=>Number.parseInt(`${m.height}`,10)),B=S(()=>Number.parseInt(`${m.width}`,10)),q=S(()=>{const{totalColumn:we,totalRow:Me,columnCache:Ce}=m,{isScrolling:Ae,xAxisScrollDir:De,scrollLeft:Xe}=i($);if(we===0||Me===0)return[0,0,0,0];const Qe=a(m,Xe,i(x)),at=l(m,Qe,Xe,i(x)),nt=!Ae||De==="backward"?Math.max(1,Ce):1,gt=!Ae||De==="forward"?Math.max(1,Ce):1;return[Math.max(0,Qe-nt),Math.max(0,Math.min(we-1,at+gt)),Qe,at]}),W=S(()=>{const{totalColumn:we,totalRow:Me,rowCache:Ce}=m,{isScrolling:Ae,yAxisScrollDir:De,scrollTop:Xe}=i($);if(we===0||Me===0)return[0,0,0,0];const Qe=d(m,Xe,i(x)),at=f(m,Qe,Xe,i(x)),nt=!Ae||De==="backward"?Math.max(1,Ce):1,gt=!Ae||De==="forward"?Math.max(1,Ce):1;return[Math.max(0,Qe-nt),Math.max(0,Math.min(Me-1,at+gt)),Qe,at]}),H=S(()=>o(m,i(x))),V=S(()=>r(m,i(x))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:He(m.height)?`${m.height}px`:m.height,width:He(m.width)?`${m.width}px`:m.width},m.style??{}]),F=S(()=>{const we=`${i(V)}px`;return{height:`${i(H)}px`,pointerEvents:i($).isScrolling?"none":void 0,width:we,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:we,totalRow:Me}=m;if(we>0&&Me>0){const[at,nt,gt,Lt]=i(q),[Dt,Ue,ft,me]=i(W);h(td,{columnCacheStart:at,columnCacheEnd:nt,rowCacheStart:Dt,rowCacheEnd:Ue,columnVisibleStart:gt,columnVisibleEnd:Lt,rowVisibleStart:ft,rowVisibleEnd:me})}const{scrollLeft:Ce,scrollTop:Ae,updateRequested:De,xAxisScrollDir:Xe,yAxisScrollDir:Qe}=i($);h(nd,{xAxisScrollDir:Xe,scrollLeft:Ce,yAxisScrollDir:Qe,scrollTop:Ae,updateRequested:De})},j=we=>{const{clientHeight:Me,clientWidth:Ce,scrollHeight:Ae,scrollLeft:De,scrollTop:Xe,scrollWidth:Qe}=we.currentTarget,at=i($);if(at.scrollTop===Xe&&at.scrollLeft===De)return;let nt=De;if(x4(m.direction))switch(od()){case lu:nt=-De;break;case ah:nt=Qe-Ce-De;break}$.value={...at,isScrolling:!0,scrollLeft:nt,scrollTop:Math.max(0,Math.min(Xe,Ae-Me)),updateRequested:!0,xAxisScrollDir:vi(at.scrollLeft,nt),yAxisScrollDir:vi(at.scrollTop,Xe)},Ie(()=>z()),G(),K()},Y=(we,Me)=>{const Ce=i(R),Ae=(H.value-Ce)/Me*we;ne({scrollTop:Math.min(H.value-Ce,Ae)})},ee=(we,Me)=>{const Ce=i(B),Ae=(V.value-Ce)/Me*we;ne({scrollLeft:Math.min(V.value-Ce,Ae)})},{onWheel:le}=FG({atXStartEdge:S(()=>$.value.scrollLeft<=0),atXEndEdge:S(()=>$.value.scrollLeft>=V.value-i(B)),atYStartEdge:S(()=>$.value.scrol
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),He(t)||on(M4,`
|
|||
|
|
"columnWidth" must be passed as number,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),{max:rd,min:$5,floor:O5}=Math,T4="ElDynamicSizeGrid",WG={column:"columnWidth",row:"rowHeight"},z2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Gl=(e,t,n,a)=>{const[l,o,r]=[n[a],e[WG[a]],n[z2[a]]];if(t>r){let s=0;if(r>=0){const u=l[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=o(u);l[u]={offset:s,size:c},s+=c}n[z2[a]]=t}return l[t]},N5=(e,t,n,a,l,o)=>{for(;n<=a;){const r=n+O5((a-n)/2),s=Gl(e,r,t,o).offset;if(s===l)return r;s<l?n=r+1:a=r-1}return rd(0,n-1)},jG=(e,t,n,a,l)=>{const o=l==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&Gl(e,n,t,l).offset<a;)n+=r,r*=2;return N5(e,t,O5(n/2),$5(n,o-1),a,l)},$4=(e,t,n,a)=>{const[l,o]=[t[a],t[z2[a]]];return(o>0?l[o].offset:0)>=n?N5(e,t,0,o,n,a):jG(e,t,rd(0,o),n,a)},A5=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];l=r.offset+r.size}const o=(e-n-1)*t;return l+o},P5=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},qG={column:P5,row:A5},O4=(e,t,n,a,l,o,r)=>{const[s,u]=[o==="row"?e.height:e.width,qG[o]],c=Gl(e,t,l,o),d=rd(0,$5(u(e,l)-s,c.offset)),f=rd(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=Ha:n=Tl),n){case au:return d;case"end":return f;case Tl:return Math.round(f+(d-f)/2);case Ha:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},R5=M5({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=Gl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Gl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>O4(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>O4(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>$4(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=Gl(e,t,a,"column"),o=n+e.width;let r=l.offset+l.size,s=t;for(;s<e.totalColumn-1&&r<o;)s++,r+=Gl(e,t,a,"column").size;return s},getEstimatedTotalHeight:A5,getEstimatedTotalWidth:P5,getRowStartIndexForOffset:(e,t,n)=>$4(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,r=Gl(e,t,a,"row"),s=n+o;let u=r.size+r.offset,c=t;for(;c<l-1&&u<s;)c++,u+=Gl(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},s)=>{var u,c;s=$t(s)?!0:s,He(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},l=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{Ke(e)||on(T4,`
|
|||
|
|
"columnWidth" must be passed as function,
|
|||
|
|
instead ${typeof e} was given.
|
|||
|
|
`),Ke(t)||on(T4,`
|
|||
|
|
"rowHeight" must be passed as function,
|
|||
|
|
instead ${typeof t} was given.
|
|||
|
|
`)}}),sh={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Nn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ea(["ariaControls"])},ih={[lt]:e=>Le(e)||He(e)||Wt(e),change:e=>Le(e)||He(e)||Wt(e)},Dr=Symbol("checkboxGroupContextKey"),I5=ke({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Nn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>uh},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ea(["ariaLabel"])}),V5={[lt]:e=>_e(e),change:e=>_e(e)},uh={label:"label",value:"value",disabled:"disabled"},UG=({model:e,isChecked:t})=>{const n=Ve(Dr,void 0),a=Ve(Jo,void 0),l=S(()=>{var s,u;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!$t(o)&&e.value.length>=o&&!t.value||!$t(r)&&e.value.length<=r&&t.value});return{isDisabled:an(S(()=>{var o;return n===void 0?(a==null?void 0:a.disabled)??l.value:((o=n.disabled)==null?void 0:o.value)||l.value})),isLimitDisabled:l}},YG=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const r=Ve(Dr,void 0),{formItem:s}=In(),{emit:u}=ht();function c(v){return[!0,e.trueValue,e.trueLabel].includes(v)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(v,m){u(yt,c(v),m)}function f(v){if(n.value)return;const m=v.target;u(yt,c(m.checked),v)}async function p(v){n.value||!a.value&&!l.value&&o.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ie(),d(t.value,v)))}const g=S(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(dt))}),{handleChange:f,onClickRoot:p}},GG=e=>{const t=L(!1),{emit:n,vnode:a}=ht(),l=Ve(Dr,void 0),o=S(()=>$t(l)===!1),r=L(!1),s=S(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=S({get(){var c;return o.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;o.value&&_e(c)?(r.value=((d=l==null?void 0:l.max)==null?void 0:d.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>u.value.length,r.value===!1&&((f=l==null?void 0:l.changeEvent)==null||f.call(l,c))):(n(lt,c),t.value=c)}});return{model:u,isGroup:o,isLimitExceeded:r}},XG=(e,t,{model:n})=>{const a=Ve(Dr,void 0),l=L(!1),o=S(()=>$a(e.value)?e.label:e.value),r=S(()=>{const s=n.value;return Wt(s)?s:_e(s)?rt(o.value)?s.map(Yt).some(u=>un(u,o.value)):s.map(Yt).includes(o.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:Tn(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:Tn(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:S(()=>!!t.default||!$a(o.value)),actualValue:o}},L5=(e,t)=>{const{formItem:n}=In(),{model:a,isGroup:l,isLimitExceeded:o}=GG(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=XG(e,t,{model:a}),{isDisabled:p}=UG({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:v}=ga(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:h}=YG(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return(()=>{function b(){_e(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),al({from:"label act as v
|
|||
|
|
Add an empty element to avoid render label,
|
|||
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
|||
|
|
`),$[2]||($[2]=M("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(w(),ue(i(ze),{key:2,class:A(i(o).e("prefix"))},{default:ae(()=>[Q(i(Pr))]),_:1},8,["class"])):oe("v-if",!0),oe(" content "),Q(i(uX),{node:e.node},null,8,["node"]),oe(" postfix "),p.value?oe("v-if",!0):(w(),O(Fe,{key:3},[e.node.loading?(w(),ue(i(ze),{key:0,class:A([i(o).is("loading"),i(o).e("postfix")])},{default:ae(()=>[Q(i(Ya))]),_:1},8,["class"])):(w(),ue(i(ze),{key:1,class:A(["arrow-right",i(o).e("postfix")])},{default:ae(()=>[Q(i(Jn))]),_:1},8,["class"]))],64))],42,cX))}}),N4=dX,fX=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=ht(),l=be("cascader-menu"),{t:o}=kt(),r=Wn();let s,u;const c=Ve(zu),d=L(),f=L(),p=S(()=>!n.nodes.length),g=S(()=>!c.initialLoaded),v=S(()=>`${r.value}-${n.index}`),m=()=>{var T,N,$,P;let E;if(c.expandingNode){const{level:R,pathNodes:B}=c.expandingNode;n.index<R?E=(T=B[n.index])==null?void 0:T.uid:n.index===R&&c.checkedNodes.length>0&&(E=($=(N=c.checkedNodes[0])==null?void 0:N.pathNodes[n.index])==null?void 0:$.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(P=c.checkedNodes[0].pathNodes[n.index])==null?void 0:P.uid);return E!==void 0?n.nodes.findIndex(R=>R.uid===E):-1},h=E=>E?n.nodes.findIndex(T=>`${v.value}-${T.uid}`===E):-1,y=E=>{var N;const T=Ca(E,0,n.nodes.length-1);(N=f.value)==null||N.scrollToItem(T)},b=E=>{if(!n.nodes.length)return;const T=Ca(E,0,n.nodes.length-1);y(T),Ie(()=>{var $;const N=($=a.vnode.el)==null?void 0:$.querySelector(`#${v.value}-${n.nodes[T].uid}`);N&&is(N)})},C=E=>{s=E.target},_=E=>{var T,N,$;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){x();const P=a.vnode.el,{left:R}=P.getBoundingClientRect(),{offsetWidth:B,offsetHeight:q}=P,W=E.clientX-R,H=s.offsetTop,V=H+s.offsetHeight,I=n.virtualScroll?((N=(T=f.value)==null?void 0:T.states)==null?void 0:N.scrollOffset)||0:(($=P.querySelector(`.${l.e("wrap")}`))==null?void 0:$.scrollTop)||0;d.value.innerHTML=`
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${H} L${B} ${I} V${H} Z" />
|
|||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${V} L${B} ${q+I} V${V} Z" />
|
|||
|
|
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},x=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",x())};return t({getActiveNodeIndex:m,getNodeIndexById:h,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,T)=>{var N;return e.virtualScroll?(w(),O("div",{key:v.value,class:A(i(l).b()),onMousemove:_,onMouseleave:k},[Q(i(Bu),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(l).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(l).is("empty",p.value)}},{default:ae(({data:$,index:P,style:R})=>[(w(),ue(N4,{key:$[P].uid,node:$[P],"menu-id":v.value,style:We(R),onExpand:C},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),g.value?(w(),O("div",{key:0,class:A(i(l).e("empty-text"))},[Q(i(ze),{size:14,class:A(i(l).is("loading"))},{default:ae(()=>[Q(i(Ya))]),_:1},8,["class"]),wt(" "+xe(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),O("div",{key:1,class:A(i(l).e("empty-text"))},[re(E.$slots,"empty",{},()=>[wt(xe(i(o)("el.cascader.noData")),1)])],2)):(N=i(c))!=null&&N.isHoverMenu?(w(),O(Fe,{key:2},[oe(" eslint-disable vue/html-self-closing "),(w(),O("svg",{ref_key:"hoverZone",ref:d,class:A(i(l).e("hover-zone"))},null,2))],2112)):oe("v-if",!0),oe(" eslint-enable vue/html-self-closing ")],34)):(w(),ue(i(Ga),{key:v.value,tag:"ul",role:"menu",class:A(i(l).b()),"wrap-class":i(l).e("wrap"),"view-class":[i(l).e("list"),i(l).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var $;return[(w(!0),O(Fe,null,xt(e.nodes,P=>(w(),ue(N4,{key:P.uid,node:P,"menu-id":v.value,onExpand:C},null,8,["node","menu-id"]))),128)),g.value?(w(),O("div",{key:0,class:A(i(l).e("empty-text"))},[Q(i(ze),{size:14,class:A(i(l).is("loading"))},{default:ae(()=>[Q(i(Ya))]),_:1},8,["class"]),wt(" "+xe(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),O("div",{key:1,class:A(i(l).e("empty-text"))},[re(E.$slots,"empty",{},()=>[wt(xe(i(o)("el.cascader.noData")),1)])],2)):($=i(c))!=null&&$.isHoverMenu?(w(),O(Fe,{key:2},[oe(" eslint-disable vue/html-self-closing "),(w(),O("svg",{ref_key:"hoverZone",ref:d,class:A(i(l).e("hover-zone"))},null,2))],2112)):oe("v-if",!0),oe(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),pX=fX;let vX=0;const hX=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var D2=class H2{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=vX++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:s}=n,u=t[s],c=hX(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new H2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!pa(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(Ke(l)?l(t,this):!!t[l])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:r}=n,s=Ke(r)?r(t,this):t[r];return $t(s)?o&&!l?!1:!(_e(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new H2(t,this.config,this);return _e(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>l+(o.checked?1:o.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled
|
|||
|
|
M 50 50
|
|||
|
|
m 0 ${_?"":"-"}${C}
|
|||
|
|
a ${C} ${C} 0 1 1 0 ${_?"-":""}${C*2}
|
|||
|
|
a ${C} ${C} 0 1 1 0 ${_?"":"-"}${C*2}
|
|||
|
|
`}),u=S(()=>2*Math.PI*r.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),v=S(()=>n.status==="warning"?Ru:n.type==="line"?n.status==="success"?lf:gl:n.status==="success"?Pr:Va),m=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),h=S(()=>n.format(n.percentage));function y(C){const _=100/C.length;return C.map((x,k)=>Le(x)?{color:x,percentage:(k+1)*_}:x).sort((x,k)=>x.percentage-k.percentage)}const b=C=>{var x;const{color:_}=n;if(Ke(_))return _(C);if(Le(_))return _;{const k=y(_);for(const E of k)if(E.percentage>C)return E.color;return(x=k[k.length-1])==null?void 0:x.color}};return(C,_)=>(w(),O("div",{class:A([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(w(),O("div",{key:0,class:A(i(a).b("bar"))},[M("div",{class:A(i(a).be("bar","outer")),style:We({height:`${e.strokeWidth}px`})},[M("div",{class:A([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:We(l.value)},[(e.showText||C.$slots.default)&&e.textInside?(w(),O("div",{key:0,class:A(i(a).be("bar","innerText"))},[re(C.$slots,"default",{percentage:e.percentage},()=>[M("span",null,xe(h.value),1)])],2)):oe("v-if",!0)],6)],6)],2)):(w(),O("div",{key:1,class:A(i(a).b("circle")),style:We({height:`${e.width}px`,width:`${e.width}px`})},[(w(),O("svg",one,[M("path",{class:A(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:We(f.value)},null,14,rne),M("path",{class:A(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:We(p.value)},null,14,sne)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(w(),O("div",{key:2,class:A(i(a).e("text")),style:We({fontSize:`${m.value}px`})},[re(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(w(),ue(i(ze),{key:1},{default:ae(()=>[(w(),ue(ct(v.value)))]),_:1})):(w(),O("span",ine,xe(h.value),1))])],6)):oe("v-if",!0)],10,lne))}}),cne=une;const Uh=st(cne),t_=ke({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>cn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[fi,fi,fi]},voidIcon:{type:qt,default:()=>kb},disabledVoidIcon:{type:qt,default:()=>fi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>cn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Nn,clearable:Boolean,...ea(["ariaLabel"])}),n_={[yt]:e=>He(e),[lt]:e=>He(e)},dne=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],fne=["onMousemove","onClick"];var pne=D({name:"ElRate",__name:"rate",props:t_,emits:n_,setup(e,{expose:t,emit:n}){function a(I,F){const K=Y=>rt(Y),j=F[Object.keys(F).map(Y=>+Y).filter(Y=>{const ee=F[Y];return K(ee)&&ee.excluded?I<Y:I<=Y}).sort((Y,ee)=>Y-ee)[0]];return K(j)&&j.value||j}const l=e,o=n,r=Ve(dl,void 0),s=Tn(),u=be("rate"),{inputId:c,isLabeledByFormItem:d}=ga(l,{formItemContext:r}),f=L(Ca(l.modelValue,0,l.max)),p=L(-1),g=L(!0),v=L([]),m=S(
|
|||
|
|
`||c==="\r")){r=u;continue}if(o.includes(c)){const d=r===-1?a:r;s={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},ise=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const p=document.querySelector("#input-textarea-caret-position-mirror-div");p!=null&&p.parentNode&&p.parentNode.removeChild(p)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),v=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),m=v+Number.parseInt(u.lineHeight);g>m?s.lineHeight=`${g-v}px`:g===m?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Gd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,l)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},ux=ke({...df,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Le(e)?e.length===1:e.every(t=>Le(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>rse,validator:e=>e===!1?!0:Ke(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>b1}}),cx={[lt]:e=>Le(e),"whole-remove":(e,t)=>Le(e)&&Le(t),input:e=>Le(e),search:(e,t)=>Le(e)&&Le(t),select:(e,t)=>rt(e)&&Le(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},b1={value:"value",label:"label",disabled:"disabled"},use=ke({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),cse={select:e=>Le(e.value)},dse=["id","aria-disabled","aria-selected","onMousemove","onClick"];var fse=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:use,emits:cse,setup(e,{expose:t,emit:n}){const a=e,l=n,o=be("mention"),{t:r}=kt(),s=L(-1),u=L(),c=L(),d=L(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",s.value===x),o.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||l("select",_)},g=_=>{s.value=_},v=S(()=>a.disabled||a.options.every(_=>_.disabled)),m=S(()=>a.options[s.value]),h=()=>{!m.value||m.value.disabled||a.disabled||l("select",m.value)},y=_=>{const{options:x}=a;if(x.length===0||v.value)return;_==="next"?(s.value++,s.value===x.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=x.length-1));const k=x[s.value];if(k.disabled){y(_);return}Ie(()=>b(k))},b=_=>{var T,N,$,P;const{opti
|