hermes-web-ui 0.1.4 → 0.1.6
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/ChatView-DmXZ5Q3Z.js +18 -0
- package/dist/assets/ChatView-cCVO1N9F.css +1 -0
- package/dist/assets/Dropdown-8pId5Qsj.js +125 -0
- package/dist/assets/Input-BZKSQ403.js +234 -0
- package/dist/assets/JobsView-CQf4Y7Mw.js +123 -0
- package/dist/assets/{LogsView-BSNn4Rmi.js → LogsView-CKyL3UT5.js} +1 -1
- package/dist/assets/{MemoryView-BsGBmN7h.js → MemoryView-BBwqM3vf.js} +1 -1
- package/dist/assets/{Modal-CSHJclVU.js → Modal-BtRuxNI4.js} +9 -9
- package/dist/assets/Popover-C2CJscsj.js +161 -0
- package/dist/assets/Select-CithN5ti.js +410 -0
- package/dist/assets/SettingsView-D1hOGA0Z.js +1005 -0
- package/dist/assets/{SkillsView-CciuH5wp.js → SkillsView-BfnrX5TQ.js} +1 -1
- package/dist/assets/{Spin-DWreY5m0.js → Spin-7g8GCzi5.js} +3 -3
- package/dist/assets/Suffix-DI9irQ4f.js +101 -0
- package/dist/assets/{Tooltip-BCHslENT.js → Tooltip-BdrvORgU.js} +1 -1
- package/dist/assets/_plugin-vue_export-helper-BrYOyDjU.js +47 -0
- package/dist/assets/{app-4gFjNUoo.js → app-JRkV5-Ft.js} +1 -1
- package/dist/assets/chat-Cgdof9SF.js +6 -0
- package/dist/assets/{context-B74FvHiJ.js → context-DW8F1iIn.js} +1 -1
- package/dist/assets/{index-Cx8mFF2D.js → index-DP1JeABS.js} +5 -5
- package/dist/assets/{jobs-DVxci1LY.js → jobs-DJ8ETzok.js} +1 -1
- package/dist/assets/{skills-DgbQAgoB.js → skills-CkDtgKB5.js} +1 -1
- package/dist/assets/{use-message-Dz_GbH5h.js → use-message-Btr-O4Ih.js} +1 -1
- package/dist/index.html +11 -13
- package/dist/server/routes/sessions.js +16 -0
- package/dist/server/services/hermes-cli.d.ts +4 -0
- package/dist/server/services/hermes-cli.js +25 -1
- package/package.json +1 -1
- package/dist/assets/ChatView-BCcUaLWg.css +0 -1
- package/dist/assets/ChatView-gu2Y-jpZ.js +0 -16
- package/dist/assets/Input-yD_s5hp8.js +0 -234
- package/dist/assets/JobsView-C1YU-sgU.js +0 -123
- package/dist/assets/Popover-blRIsd-8.js +0 -117
- package/dist/assets/Scrollbar-CYtpM7mc.js +0 -77
- package/dist/assets/Select-DTG-wtu5.js +0 -454
- package/dist/assets/SettingsView-CppuSCZA.js +0 -1129
- package/dist/assets/Suffix-B828Aenx.js +0 -25
- package/dist/assets/Warning-Ba-wYRRB.js +0 -1
- package/dist/assets/_plugin-vue_export-helper-CV9qMihF.js +0 -47
- package/dist/assets/chat-P2QaPvpZ.js +0 -6
- /package/dist/assets/{client-BKiVmpru.js → client-kwQ0ijpp.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./MarkdownRenderer-DNP-kPA8.js";import{Ct as t,F as n,L as r,M as i,U as a,_ as o,d as s,f as c,g as l,i as u,l as d,p as f,st as p,tt as m,u as h,v as g,wt as _}from"./runtime-core.esm-bundler-yNW65ghW.js";import{t as v}from"./_plugin-vue_export-helper-
|
|
1
|
+
import{t as e}from"./MarkdownRenderer-DNP-kPA8.js";import{Ct as t,F as n,L as r,M as i,U as a,_ as o,d as s,f as c,g as l,i as u,l as d,p as f,st as p,tt as m,u as h,v as g,wt as _}from"./runtime-core.esm-bundler-yNW65ghW.js";import{t as v}from"./_plugin-vue_export-helper-BrYOyDjU.js";import{t as y}from"./Input-BZKSQ403.js";import{i as b,n as x,r as S}from"./skills-CkDtgKB5.js";var C={class:`skill-list`},w={key:0,class:`skill-empty`},T=[`onClick`],E={class:`category-name`},D={class:`category-count`},O={key:0,class:`category-skills`},k=[`onClick`],A={class:`skill-name`},j={key:0,class:`skill-desc`},M=v(g({__name:`SkillList`,props:{categories:{},selectedSkill:{},searchQuery:{}},emits:[`select`],setup(e,{emit:i}){let a=e,o=i,s=m(new Set),l=d(()=>{if(!a.searchQuery)return a.categories;let e=a.searchQuery.toLowerCase();return a.categories.map(t=>({...t,skills:t.skills.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})).filter(t=>t.skills.length>0||t.name.toLowerCase().includes(e))});function p(e){s.value.has(e)?s.value.delete(e):s.value.add(e)}function g(e,t){o(`select`,e,t)}return(i,a)=>(n(),f(`div`,C,[l.value.length===0?(n(),f(`div`,w,_(e.searchQuery?`No skills match your search`:`No skills found`),1)):c(``,!0),(n(!0),f(u,null,r(l.value,i=>(n(),f(`div`,{key:i.name,class:`skill-category`},[h(`button`,{class:`category-header`,onClick:e=>p(i.name)},[(n(),f(`svg`,{width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,class:t([`category-arrow`,{collapsed:s.value.has(i.name)}])},[...a[0]||=[h(`polyline`,{points:`6 9 12 15 18 9`},null,-1)]],2)),h(`span`,E,_(i.name),1),h(`span`,D,_(i.skills.length),1)],8,T),s.value.has(i.name)?c(``,!0):(n(),f(`div`,O,[(n(!0),f(u,null,r(i.skills,r=>(n(),f(`button`,{key:r.name,class:t([`skill-item`,{active:e.selectedSkill===`${i.name}/${r.name}`}]),onClick:e=>g(i.name,r.name)},[h(`span`,A,_(r.name),1),r.description?(n(),f(`span`,j,_(r.description),1)):c(``,!0)],10,k))),128))]))]))),128))]))}}),[[`__scopeId`,`data-v-dc3800b6`]]),N={class:`skill-detail`},P={class:`detail-title`},F={class:`detail-category`},I={class:`detail-name`},L={key:0,class:`detail-loading`},R={key:0,class:`detail-breadcrumb`},z={class:`breadcrumb-path`},B={class:`detail-content`},V={key:1,class:`detail-files`},H={class:`files-list`},U=[`onClick`],W=v(g({__name:`SkillDetail`,props:{category:{},skill:{}},setup(t){let i=t,o=m(``),d=m([]),p=m(!1),g=m(``),v=m(null),y=m(!1);async function b(){p.value=!0,v.value=null,g.value=``,d.value=[],o.value=``;try{let e=`${i.category}/${i.skill}/SKILL.md`,[t,n]=await Promise.all([x(e),S(i.category,i.skill)]);o.value=t,d.value=n.filter(e=>!e.isDir&&e.path!==`SKILL.md`)}catch(e){o.value=`Failed to load skill: ${e.message}`}finally{p.value=!1}}async function C(e){y.value=!0,v.value=e;try{let t=`${i.category}/${i.skill}/`,n=e;if(e.startsWith(`/`)){let t=e.split(`/.hermes/skills/`)[1];t&&(n=t.split(`/`).slice(2).join(`/`))}g.value=await x(`${t}${n}`)}catch(e){g.value=`Failed to load file: ${e.message}`}finally{y.value=!1}}function w(){v.value=null,g.value=``}return a(()=>`${i.category}/${i.skill}`,b,{immediate:!0}),(i,a)=>(n(),f(`div`,N,[h(`div`,P,[h(`span`,F,_(t.category),1),a[0]||=h(`span`,{class:`detail-separator`},`/`,-1),h(`span`,I,_(t.skill),1)]),p.value&&!o.value?(n(),f(`div`,L,`Loading...`)):(n(),f(u,{key:1},[v.value?(n(),f(`div`,R,[h(`button`,{class:`back-btn`,onClick:w},[a[1]||=h(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`},[h(`polyline`,{points:`15 18 9 12 15 6`})],-1),l(` Back to `+_(t.skill),1)]),h(`span`,z,_(v.value),1)])):c(``,!0),h(`div`,B,[v.value?(n(),s(e,{key:0,content:g.value},null,8,[`content`])):(n(),s(e,{key:1,content:o.value},null,8,[`content`]))]),!v.value&&d.value.length>0?(n(),f(`div`,V,[a[3]||=h(`div`,{class:`files-header`},`Attached Files`,-1),h(`div`,H,[(n(!0),f(u,null,r(d.value,e=>(n(),f(`button`,{key:e.path,class:`file-item`,onClick:t=>C(e.path)},[a[2]||=h(`svg`,{width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[h(`path`,{d:`M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z`}),h(`polyline`,{points:`14 2 14 8 20 8`})],-1),h(`span`,null,_(e.path),1)],8,U))),128))])])):c(``,!0)],64))]))}}),[[`__scopeId`,`data-v-37deab73`]]),G={class:`skills-view`},K={class:`skills-header`},q={class:`skills-content`},J={key:0,class:`skills-loading`},Y={key:1,class:`skills-layout`},X={class:`skills-sidebar`},Z={class:`skills-main`},Q={key:1,class:`empty-detail`},$=v(g({__name:`SkillsView`,setup(e){let t=m([]),r=m(!1),a=m(``),c=m(``),l=m(``);i(u);async function u(){r.value=!0;try{t.value=await b()}catch(e){console.error(`Failed to load skills:`,e)}finally{r.value=!1}}function d(e,t){a.value=e,c.value=t}return(e,i)=>(n(),f(`div`,G,[h(`header`,K,[i[1]||=h(`h2`,{class:`header-title`},`Skills`,-1),o(p(y),{value:l.value,"onUpdate:value":i[0]||=e=>l.value=e,placeholder:`Search skills...`,size:`small`,clearable:``,class:`search-input`},null,8,[`value`])]),h(`div`,q,[r.value&&t.value.length===0?(n(),f(`div`,J,`Loading...`)):(n(),f(`div`,Y,[h(`div`,X,[o(M,{categories:t.value,"selected-skill":a.value&&c.value?`${a.value}/${c.value}`:null,"search-query":l.value,onSelect:d},null,8,[`categories`,`selected-skill`,`search-query`])]),h(`div`,Z,[a.value&&c.value?(n(),s(W,{key:0,category:a.value,skill:c.value},null,8,[`category`,`skill`])):(n(),f(`div`,Q,[...i[2]||=[h(`svg`,{width:`48`,height:`48`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,opacity:`0.2`},[h(`polygon`,{points:`12 2 2 7 12 12 22 7 12 2`}),h(`polyline`,{points:`2 17 12 22 22 17`}),h(`polyline`,{points:`2 12 12 17 22 12`})],-1),h(`span`,null,`Select a skill from the list`,-1)]]))])]))])]))}}),[[`__scopeId`,`data-v-2820a27f`]]);export{$ as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{W as e,l as t,tt as n,v as r,x as i}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as a,V as o,a as s,ct as c,ft as l,i as u,l as d,lt as f,mt as p,r as m,yt as h}from"./_plugin-vue_export-helper-
|
|
1
|
+
import{W as e,l as t,tt as n,v as r,x as i}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as a,V as o,a as s,ct as c,ft as l,i as u,l as d,lt as f,mt as p,r as m,yt as h}from"./_plugin-vue_export-helper-BrYOyDjU.js";import{P as g}from"./Popover-C2CJscsj.js";import{S as _,a as v}from"./Suffix-DI9irQ4f.js";function y(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var b={name:`Spin`,common:m,self:y},x=c([c(`@keyframes spin-rotate`,`
|
|
2
2
|
from {
|
|
3
3
|
transform: rotate(0);
|
|
4
4
|
}
|
|
@@ -12,7 +12,7 @@ import{W as e,l as t,tt as n,v as r,x as i}from"./runtime-core.esm-bundler-yNW65
|
|
|
12
12
|
top: 50%;
|
|
13
13
|
left: 50%;
|
|
14
14
|
transform: translateX(-50%) translateY(-50%);
|
|
15
|
-
`,[
|
|
15
|
+
`,[v()])]),f(`spin-body`,`
|
|
16
16
|
display: inline-flex;
|
|
17
17
|
align-items: center;
|
|
18
18
|
justify-content: center;
|
|
@@ -40,4 +40,4 @@ import{W as e,l as t,tt as n,v as r,x as i}from"./runtime-core.esm-bundler-yNW65
|
|
|
40
40
|
-webkit-user-select: none;
|
|
41
41
|
pointer-events: none;
|
|
42
42
|
opacity: var(--n-opacity-spinning);
|
|
43
|
-
`)])]),S={small:20,medium:18,large:16},C=r({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},d.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),s),slots:Object,setup(r){let{mergedClsPrefixRef:i,inlineThemeDisabled:s}=a(r),c=d(`Spin`,`-spin`,x,b,r,i),l=t(()=>{let{size:e}=r,{common:{cubicBezierEaseInOut:t},self:n}=c.value,{opacitySpinning:i,color:a,textColor:o}=n;return{"--n-bezier":t,"--n-opacity-spinning":i,"--n-size":typeof e==`number`?
|
|
43
|
+
`)])]),S={small:20,medium:18,large:16},C=r({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},d.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),s),slots:Object,setup(r){let{mergedClsPrefixRef:i,inlineThemeDisabled:s}=a(r),c=d(`Spin`,`-spin`,x,b,r,i),l=t(()=>{let{size:e}=r,{common:{cubicBezierEaseInOut:t},self:n}=c.value,{opacitySpinning:i,color:a,textColor:o}=n;return{"--n-bezier":t,"--n-opacity-spinning":i,"--n-size":typeof e==`number`?_(e):n[p(`size`,e)],"--n-color":a,"--n-text-color":o}}),u=s?o(`spin`,t(()=>{let{size:e}=r;return typeof e==`number`?String(e):e[0]}),l,r):void 0,f=g(r,[`spinning`,`show`]),m=n(!1);return e(e=>{let t;if(f.value){let{delay:n}=r;if(n){t=window.setTimeout(()=>{m.value=!0},n),e(()=>{clearTimeout(t)});return}}m.value=f.value}),{mergedClsPrefix:i,active:m,mergedStrokeWidth:t(()=>{let{strokeWidth:e}=r;if(e!==void 0)return e;let{size:t}=r;return S[typeof t==`number`?`medium`:t]}),cssVars:s?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){var e;let{$slots:t,mergedClsPrefix:n,description:r}=this,a=t.icon&&this.rotate,o=(r||t.description)&&i(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(`div`,{class:[`${n}-spin`,a&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(u,{clsPrefix:n,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${n}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?i(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},i(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),i(h,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}});export{C as t};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import{C as e,D as t,M as n,R as r,T as i,U as a,W as o,at as s,i as c,j as l,k as u,l as d,tt as f,v as p,x as m,y as h}from"./runtime-core.esm-bundler-yNW65ghW.js";import{F as g,H as _,I as v,L as y,P as b,V as x,W as S,ct as C,d as w,dt as T,f as ee,ft as E,i as D,l as te,lt as O,o as k,q as A,r as ne,s as re,u as j,yt as M}from"./_plugin-vue_export-helper-BrYOyDjU.js";function ie(e){return e.composedPath()[0]||null}function ae(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function oe(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function N(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function P(e){return e.composedPath()[0]}var F={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function se(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(P(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(P(n))},i=r=>{e&&(t.contains(P(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function I(e,t,n){let r=F[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=se(e,t,n)),a}function ce(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function le(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=I(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function ue(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,`currentTarget`,{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=P(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,ce(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(le(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:L,off:R}=ue();function de(e,t){return a(e,e=>{e!==void 0&&(t.value=e)}),d(()=>e.value===void 0?t.value:e.value)}var fe=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function pe(){return fe}function me(e){let n={isDeactivated:!1},r=!1;return t(()=>{if(n.isDeactivated=!1,!r){r=!0;return}e()}),l(()=>{n.isDeactivated=!0,r||=!0}),n}function he(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],ge=function(){return z.some(function(e){return e.activeTargets.length>0})},_e=function(){return z.some(function(e){return e.skippedTargets.length>0})},B=`ResizeObserver loop completed with undelivered notifications.`,ve=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:B}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=B),window.dispatchEvent(e)},V;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(V||={});var H=function(e){return Object.freeze(e)},ye=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,H(this)}return e}(),be=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,H(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),U=function(e){return e instanceof SVGElement&&`getBBox`in e},W=function(e){if(U(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},xe=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},Se=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},G=typeof window<`u`?window:{},K=new WeakMap,Ce=/auto|scroll/,we=/^tb|vertical/,Te=/msie|trident/i.test(G.navigator&&G.navigator.userAgent),q=function(e){return parseFloat(e||`0`)},J=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ye((n?t:e)||0,(n?e:t)||0)},Ee=H({devicePixelContentBoxSize:J(),borderBoxSize:J(),contentBoxSize:J(),contentRect:new be(0,0,0,0)}),De=function(e,t){if(t===void 0&&(t=!1),K.has(e)&&!t)return K.get(e);if(W(e))return K.set(e,Ee),Ee;var n=getComputedStyle(e),r=U(e)&&e.ownerSVGElement&&e.getBBox(),i=!Te&&n.boxSizing===`border-box`,a=we.test(n.writingMode||``),o=!r&&Ce.test(n.overflowY||``),s=!r&&Ce.test(n.overflowX||``),c=r?0:q(n.paddingTop),l=r?0:q(n.paddingRight),u=r?0:q(n.paddingBottom),d=r?0:q(n.paddingLeft),f=r?0:q(n.borderTopWidth),p=r?0:q(n.borderRightWidth),m=r?0:q(n.borderBottomWidth),h=r?0:q(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:q(n.width)-S-x,T=r?r.height:q(n.height)-C-b,ee=w+g+x+v,E=T+_+b+y,D=H({devicePixelContentBoxSize:J(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:J(ee,E,a),contentBoxSize:J(w,T,a),contentRect:new be(d,c,w,T)});return K.set(e,D),D},Y=function(e,t,n){var r=De(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case V.DEVICE_PIXEL_CONTENT_BOX:return o;case V.BORDER_BOX:return i;default:return a}},Oe=function(){function e(e){var t=De(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=H([t.borderBoxSize]),this.contentBoxSize=H([t.contentBoxSize]),this.devicePixelContentBoxSize=H([t.devicePixelContentBoxSize])}return e}(),ke=function(e){if(W(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ae=function(){var e=1/0,t=[];z.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Oe(t.target),i=ke(t.target);r.push(n),t.lastReportedSize=Y(t.target,t.observedBox),i<e&&(e=i)}),t.push(function(){n.callback.call(n.observer,r,n.observer)}),n.activeTargets.splice(0,n.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},je=function(e){z.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(ke(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Me=function(){var e=0;for(je(e);ge();)e=Ae(),je(e);return _e()&&ve(),e>0},X,Z=[],Ne=function(){return Z.splice(0).forEach(function(e){return e()})},Pe=function(e){if(!X){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ne()}).observe(n,{characterData:!0}),X=function(){n.textContent=`${t?t--:t++}`}}Z.push(e),X()},Fe=function(e){Pe(function(){requestAnimationFrame(e)})},Ie=0,Le=function(){return!!Ie},Re=250,ze={attributes:!0,characterData:!0,childList:!0,subtree:!0},Be=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Ve=function(e){return e===void 0&&(e=0),Date.now()+e},He=!1,Ue=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=Re),!He){He=!0;var n=Ve(e);Fe(function(){var r=!1;try{r=Me()}finally{if(He=!1,e=n-Ve(),!Le())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ze)};document.body?t():G.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Be.forEach(function(t){return G.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Be.forEach(function(t){return G.removeEventListener(t,e.listener,!0)}),!0)},e}()),We=function(e){!Ie&&e>0&&Ue.start(),Ie+=e,!Ie&&Ue.stop()},Ge=function(e){return!U(e)&&!Se(e)&&getComputedStyle(e).display===`inline`},Ke=function(){function e(e,t){this.target=e,this.observedBox=t||V.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Y(this.target,this.observedBox,!0);return Ge(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qe=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Je=new WeakMap,Ye=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xe=function(){function e(){}return e.connect=function(e,t){var n=new qe(e,t);Je.set(e,n)},e.observe=function(e,t,n){var r=Je.get(e),i=r.observationTargets.length===0;Ye(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new Ke(t,n&&n.box)),We(1),Ue.schedule())},e.unobserve=function(e,t){var n=Je.get(e),r=Ye(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),We(-1))},e.disconnect=function(e){var t=this,n=Je.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ze=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Xe.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!xe(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!xe(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Xe.unobserve(this,e)},e.prototype.disconnect=function(){Xe.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Qe=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||Ze)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},$e=p({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,r=h().proxy;function i(t){let{onResize:n}=e;n!==void 0&&n(t)}n(()=>{let e=r.$el;if(e===void 0){he(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){he(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Qe.registerHandler(e.nextElementSibling,i),t=!0)}),u(()=>{t&&Qe.unregisterHandler(r.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function et(e){let{left:t,right:n,top:r,bottom:i}=N(e);return`${r} ${t} ${i} ${n}`}var tt=p({render(){var e;return(e=this.$slots).default?.call(e)}}),nt={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function rt(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Q(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function $(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?at(s,e=>e.test(o)):it(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function it(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function at(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ot(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var st={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ct=(e,t,n)=>{let r,i=st[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},lt={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ut=(e,t,n,r)=>lt[e],dt={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:Q({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Q({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Q({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:Q({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:Q({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},ft={ordinalNumber:ot({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:$({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:$({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:$({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:$({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:$({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},pt={name:`en-US`,locale:{code:`en-US`,formatDistance:ct,formatLong:{date:rt({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:rt({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:rt({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ut,localize:dt,match:ft,options:{weekStartsOn:0,firstWeekContainsDate:1}}},mt=`[object Symbol]`;function ht(e){return typeof e==`symbol`||g(e)&&v(e)==mt}function gt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _t=1/0,vt=y?y.prototype:void 0,yt=vt?vt.toString:void 0;function bt(e){if(typeof e==`string`)return e;if(b(e))return gt(e,bt)+``;if(ht(e))return yt?yt.call(e):``;var t=e+``;return t==`0`&&1/e==-_t?`-0`:t}function xt(e){return e==null?``:bt(e)}function St(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function Ct(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:St(e,t,n)}var wt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Tt(e){return wt.test(e)}function Et(e){return e.split(``)}var Dt=`\\ud800-\\udfff`,Ot=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,kt=`\\ufe0e\\ufe0f`,At=`[`+Dt+`]`,jt=`[`+Ot+`]`,Mt=`\\ud83c[\\udffb-\\udfff]`,Nt=`(?:`+jt+`|`+Mt+`)`,Pt=`[^`+Dt+`]`,Ft=`(?:\\ud83c[\\udde6-\\uddff]){2}`,It=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Lt=`\\u200d`,Rt=Nt+`?`,zt=`[`+kt+`]?`,Bt=`(?:`+Lt+`(?:`+[Pt,Ft,It].join(`|`)+`)`+zt+Rt+`)*`,Vt=zt+Rt+Bt,Ht=`(?:`+[Pt+jt+`?`,jt,Ft,It,At].join(`|`)+`)`,Ut=RegExp(Mt+`(?=`+Mt+`)|`+Ht+Vt,`g`);function Wt(e){return e.match(Ut)||[]}function Gt(e){return Tt(e)?Wt(e):Et(e)}function Kt(e){return function(t){t=xt(t);var n=Tt(t)?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?Ct(n,1).join(``):t.slice(1);return r[e]()+i}}var qt=Kt(`toUpperCase`);function Jt(t){let{mergedLocaleRef:n,mergedDateLocaleRef:r}=e(S,null)||{},i=d(()=>n?.value?.[t]??nt[t]);return{dateLocaleRef:d(()=>r?.value??pt),localeRef:i}}var Yt=O(`base-icon`,`
|
|
2
|
+
height: 1em;
|
|
3
|
+
width: 1em;
|
|
4
|
+
line-height: 1em;
|
|
5
|
+
text-align: center;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
position: relative;
|
|
8
|
+
fill: currentColor;
|
|
9
|
+
`,[C(`svg`,`
|
|
10
|
+
height: 1em;
|
|
11
|
+
width: 1em;
|
|
12
|
+
`)]),Xt=p({name:`BaseIcon`,props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){j(`-base-icon`,Yt,s(e,`clsPrefix`))},render(){return m(`i`,{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}});function Zt(t,n){let r=p({render(){return n()}});return p({name:qt(t),setup(){let n=e(S,null)?.mergedIconsRef;return()=>{let e=n?.value?.[t];return e?e():m(r,null)}}})}var Qt=p({name:`ChevronDown`,render(){return m(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},m(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),$t=Zt(`clear`,()=>m(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},m(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},m(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},m(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),en=O(`base-clear`,`
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
height: 1em;
|
|
15
|
+
width: 1em;
|
|
16
|
+
position: relative;
|
|
17
|
+
`,[C(`>`,[T(`clear`,`
|
|
18
|
+
font-size: var(--n-clear-size);
|
|
19
|
+
height: 1em;
|
|
20
|
+
width: 1em;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
color: var(--n-clear-color);
|
|
23
|
+
transition: color .3s var(--n-bezier);
|
|
24
|
+
display: flex;
|
|
25
|
+
`,[C(`&:hover`,`
|
|
26
|
+
color: var(--n-clear-color-hover)!important;
|
|
27
|
+
`),C(`&:active`,`
|
|
28
|
+
color: var(--n-clear-color-pressed)!important;
|
|
29
|
+
`)]),T(`placeholder`,`
|
|
30
|
+
display: flex;
|
|
31
|
+
`),T(`clear, placeholder`,`
|
|
32
|
+
position: absolute;
|
|
33
|
+
left: 50%;
|
|
34
|
+
top: 50%;
|
|
35
|
+
transform: translateX(-50%) translateY(-50%);
|
|
36
|
+
`,[k({originalTransform:`translateX(-50%) translateY(-50%)`,left:`50%`,top:`50%`})])])]),tn=p({name:`BaseClear`,props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return j(`-base-clear`,en,s(e,`clsPrefix`)),{handleMouseDown(e){e.preventDefault()}}},render(){let{clsPrefix:e}=this;return m(`div`,{class:`${e}-base-clear`},m(re,null,{default:()=>{var t;return this.show?m(`div`,{key:`dismiss`,class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},A(this.$slots.icon,()=>[m(Xt,{clsPrefix:e},{default:()=>m($t,null)})])):m(`div`,{key:`icon`,class:`${e}-base-clear__placeholder`},(t=this.$slots).placeholder?.call(t))}}))}}),{cubicBezierEaseInOut:nn}=w;function rn({name:e=`fade-in`,enterDuration:t=`0.2s`,leaveDuration:n=`0.2s`,enterCubicBezier:r=nn,leaveCubicBezier:i=nn}={}){return[C(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),C(`&.${e}-transition-leave-active`,{transition:`all ${n} ${i}!important`}),C(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),C(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var an={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function on(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:i,scrollbarBorderRadius:a}=e;return Object.assign(Object.assign({},an),{height:r,width:i,borderRadius:a,color:t,colorHover:n})}var sn={name:`Scrollbar`,common:ne,self:on},cn=O(`scrollbar`,`
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
position: relative;
|
|
39
|
+
z-index: auto;
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 100%;
|
|
42
|
+
`,[C(`>`,[O(`scrollbar-container`,`
|
|
43
|
+
width: 100%;
|
|
44
|
+
overflow: scroll;
|
|
45
|
+
height: 100%;
|
|
46
|
+
min-height: inherit;
|
|
47
|
+
max-height: inherit;
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
`,[C(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
|
|
50
|
+
width: 0;
|
|
51
|
+
height: 0;
|
|
52
|
+
display: none;
|
|
53
|
+
`),C(`>`,[O(`scrollbar-content`,`
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
min-width: 100%;
|
|
56
|
+
`)])])]),C(`>, +`,[O(`scrollbar-rail`,`
|
|
57
|
+
position: absolute;
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
user-select: none;
|
|
60
|
+
background: var(--n-scrollbar-rail-color);
|
|
61
|
+
-webkit-user-select: none;
|
|
62
|
+
`,[E(`horizontal`,`
|
|
63
|
+
height: var(--n-scrollbar-height);
|
|
64
|
+
`,[C(`>`,[T(`scrollbar`,`
|
|
65
|
+
height: var(--n-scrollbar-height);
|
|
66
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
67
|
+
right: 0;
|
|
68
|
+
`)])]),E(`horizontal--top`,`
|
|
69
|
+
top: var(--n-scrollbar-rail-top-horizontal-top);
|
|
70
|
+
right: var(--n-scrollbar-rail-right-horizontal-top);
|
|
71
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
|
|
72
|
+
left: var(--n-scrollbar-rail-left-horizontal-top);
|
|
73
|
+
`),E(`horizontal--bottom`,`
|
|
74
|
+
top: var(--n-scrollbar-rail-top-horizontal-bottom);
|
|
75
|
+
right: var(--n-scrollbar-rail-right-horizontal-bottom);
|
|
76
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
|
|
77
|
+
left: var(--n-scrollbar-rail-left-horizontal-bottom);
|
|
78
|
+
`),E(`vertical`,`
|
|
79
|
+
width: var(--n-scrollbar-width);
|
|
80
|
+
`,[C(`>`,[T(`scrollbar`,`
|
|
81
|
+
width: var(--n-scrollbar-width);
|
|
82
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
83
|
+
bottom: 0;
|
|
84
|
+
`)])]),E(`vertical--left`,`
|
|
85
|
+
top: var(--n-scrollbar-rail-top-vertical-left);
|
|
86
|
+
right: var(--n-scrollbar-rail-right-vertical-left);
|
|
87
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
|
|
88
|
+
left: var(--n-scrollbar-rail-left-vertical-left);
|
|
89
|
+
`),E(`vertical--right`,`
|
|
90
|
+
top: var(--n-scrollbar-rail-top-vertical-right);
|
|
91
|
+
right: var(--n-scrollbar-rail-right-vertical-right);
|
|
92
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
|
|
93
|
+
left: var(--n-scrollbar-rail-left-vertical-right);
|
|
94
|
+
`),E(`disabled`,[C(`>`,[T(`scrollbar`,`pointer-events: none;`)])]),C(`>`,[T(`scrollbar`,`
|
|
95
|
+
z-index: 1;
|
|
96
|
+
position: absolute;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
pointer-events: all;
|
|
99
|
+
background-color: var(--n-scrollbar-color);
|
|
100
|
+
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
101
|
+
`,[rn(),C(`&:hover`,`background-color: var(--n-scrollbar-color-hover);`)])])])])]),ln=p({name:`Scrollbar`,props:Object.assign(Object.assign({},te.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:`hover`},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,internalExposeWidthCssVar:Boolean,yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}}),inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:i}=_(e),a=ee(`Scrollbar`,i,t),s=f(null),c=f(null),l=f(null),p=f(null),m=f(null),h=f(null),g=f(null),v=f(null),y=f(null),b=f(null),S=f(null),C=f(0),w=f(0),T=f(!1),E=f(!1),D=!1,O=!1,k,A,ne=0,re=0,j=0,M=0,oe=pe(),P=te(`Scrollbar`,`-scrollbar`,cn,sn,e,t),F=d(()=>{let{value:e}=v,{value:t}=h,{value:n}=b;return e===null||t===null||n===null?0:Math.min(e,n*e/t+ae(P.value.self.width)*1.5)}),se=d(()=>`${F.value}px`),I=d(()=>{let{value:e}=y,{value:t}=g,{value:n}=S;return e===null||t===null||n===null?0:n*e/t+ae(P.value.self.height)*1.5}),ce=d(()=>`${I.value}px`),le=d(()=>{let{value:e}=v,{value:t}=C,{value:n}=h,{value:r}=b;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-F.value):0}}),ue=d(()=>`${le.value}px`),de=d(()=>{let{value:e}=y,{value:t}=w,{value:n}=g,{value:r}=S;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-I.value):0}}),fe=d(()=>`${de.value}px`),he=d(()=>{let{value:e}=v,{value:t}=h;return e!==null&&t!==null&&t>e}),z=d(()=>{let{value:e}=y,{value:t}=g;return e!==null&&t!==null&&t>e}),ge=d(()=>{let{trigger:t}=e;return t===`none`||T.value}),_e=d(()=>{let{trigger:t}=e;return t===`none`||E.value}),B=d(()=>{let{container:t}=e;return t?t():c.value}),ve=d(()=>{let{content:t}=e;return t?t():l.value}),V=(t,n)=>{if(!e.scrollable)return;if(typeof t==`number`){W(t,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=t;(r!==void 0||i!==void 0)&&W(r??0,i??0,0,!1,c),l===void 0?a!==void 0&&o!==void 0?W(0,a*o,o,u,c):s===`bottom`?W(0,2**53-1,0,!1,c):s===`top`&&W(0,0,0,!1,c):W(0,l.offsetTop,l.offsetHeight,u,c)},H=me(()=>{e.container||V({top:C.value,left:w.value})}),ye=()=>{H.isDeactivated||Y()},be=t=>{if(H.isDeactivated)return;let{onResize:n}=e;n&&n(t),Y()},U=(t,n)=>{if(!e.scrollable)return;let{value:r}=B;r&&(typeof t==`object`?r.scrollBy(t):r.scrollBy(t,n||0))};function W(e,t,n,r,i){let{value:a}=B;if(a){if(r){let{scrollTop:r,offsetHeight:o}=a;if(t>r){t+n<=r+o||a.scrollTo({left:e,top:t+n-o,behavior:i});return}}a.scrollTo({left:e,top:t,behavior:i})}}function xe(){we(),Te(),Y()}function Se(){G()}function G(){K(),Ce()}function K(){A!==void 0&&window.clearTimeout(A),A=window.setTimeout(()=>{E.value=!1},e.duration)}function Ce(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{T.value=!1},e.duration)}function we(){k!==void 0&&window.clearTimeout(k),T.value=!0}function Te(){A!==void 0&&window.clearTimeout(A),E.value=!0}function q(t){let{onScroll:n}=e;n&&n(t),J()}function J(){let{value:e}=B;e&&(C.value=e.scrollTop,w.value=e.scrollLeft*(a?.value?-1:1))}function Ee(){let{value:e}=ve;e&&(h.value=e.offsetHeight,g.value=e.offsetWidth);let{value:t}=B;t&&(v.value=t.offsetHeight,y.value=t.offsetWidth);let{value:n}=m,{value:r}=p;n&&(S.value=n.offsetWidth),r&&(b.value=r.offsetHeight)}function De(){let{value:e}=B;e&&(C.value=e.scrollTop,w.value=e.scrollLeft*(a?.value?-1:1),v.value=e.offsetHeight,y.value=e.offsetWidth,h.value=e.scrollHeight,g.value=e.scrollWidth);let{value:t}=m,{value:n}=p;t&&(S.value=t.offsetWidth),n&&(b.value=n.offsetHeight)}function Y(){e.scrollable&&(e.useUnifiedContainer?De():(Ee(),J()))}function Oe(e){return!s.value?.contains(ie(e))}function ke(e){e.preventDefault(),e.stopPropagation(),O=!0,L(`mousemove`,window,Ae,!0),L(`mouseup`,window,je,!0),re=w.value,j=a?.value?window.innerWidth-e.clientX:e.clientX}function Ae(t){if(!O)return;k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A);let{value:n}=y,{value:r}=g,{value:i}=I;if(n===null||r===null)return;let o=(a?.value?window.innerWidth-t.clientX-j:t.clientX-j)*(r-n)/(n-i),s=r-n,c=re+o;c=Math.min(s,c),c=Math.max(c,0);let{value:l}=B;if(l){l.scrollLeft=c*(a?.value?-1:1);let{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function je(e){e.preventDefault(),e.stopPropagation(),R(`mousemove`,window,Ae,!0),R(`mouseup`,window,je,!0),O=!1,Y(),Oe(e)&&G()}function Me(e){e.preventDefault(),e.stopPropagation(),D=!0,L(`mousemove`,window,X,!0),L(`mouseup`,window,Z,!0),ne=C.value,M=e.clientY}function X(e){if(!D)return;k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A);let{value:t}=v,{value:n}=h,{value:r}=F;if(t===null||n===null)return;let i=(e.clientY-M)*(n-t)/(t-r),a=n-t,o=ne+i;o=Math.min(a,o),o=Math.max(o,0);let{value:s}=B;s&&(s.scrollTop=o)}function Z(e){e.preventDefault(),e.stopPropagation(),R(`mousemove`,window,X,!0),R(`mouseup`,window,Z,!0),D=!1,Y(),Oe(e)&&G()}o(()=>{let{value:e}=z,{value:n}=he,{value:r}=t,{value:i}=m,{value:a}=p;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(n?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),n(()=>{e.container||Y()}),u(()=>{k!==void 0&&window.clearTimeout(k),A!==void 0&&window.clearTimeout(A),R(`mousemove`,window,X,!0),R(`mouseup`,window,Z,!0)});let Ne=d(()=>{let{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:n,height:r,width:i,borderRadius:o,railInsetHorizontalTop:s,railInsetHorizontalBottom:c,railInsetVerticalRight:l,railInsetVerticalLeft:u,railColor:d}}=P.value,{top:f,right:p,bottom:m,left:h}=N(s),{top:g,right:_,bottom:v,left:y}=N(c),{top:b,right:x,bottom:S,left:C}=N(a?.value?et(l):l),{top:w,right:T,bottom:ee,left:E}=N(a?.value?et(u):u);return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":n,"--n-scrollbar-border-radius":o,"--n-scrollbar-width":i,"--n-scrollbar-height":r,"--n-scrollbar-rail-top-horizontal-top":f,"--n-scrollbar-rail-right-horizontal-top":p,"--n-scrollbar-rail-bottom-horizontal-top":m,"--n-scrollbar-rail-left-horizontal-top":h,"--n-scrollbar-rail-top-horizontal-bottom":g,"--n-scrollbar-rail-right-horizontal-bottom":_,"--n-scrollbar-rail-bottom-horizontal-bottom":v,"--n-scrollbar-rail-left-horizontal-bottom":y,"--n-scrollbar-rail-top-vertical-right":b,"--n-scrollbar-rail-right-vertical-right":x,"--n-scrollbar-rail-bottom-vertical-right":S,"--n-scrollbar-rail-left-vertical-right":C,"--n-scrollbar-rail-top-vertical-left":w,"--n-scrollbar-rail-right-vertical-left":T,"--n-scrollbar-rail-bottom-vertical-left":ee,"--n-scrollbar-rail-left-vertical-left":E,"--n-scrollbar-rail-color":d}}),Pe=r?x(`scrollbar`,void 0,Ne,e):void 0;return Object.assign(Object.assign({},{scrollTo:V,scrollBy:U,sync:Y,syncUnifiedContainer:De,handleMouseEnterWrapper:xe,handleMouseLeaveWrapper:Se}),{mergedClsPrefix:t,rtlEnabled:a,containerScrollTop:C,wrapperRef:s,containerRef:c,contentRef:l,yRailRef:p,xRailRef:m,needYBar:he,needXBar:z,yBarSizePx:se,xBarSizePx:ce,yBarTopPx:ue,xBarLeftPx:fe,isShowXBar:ge,isShowYBar:_e,isIos:oe,handleScroll:q,handleContentResize:ye,handleContainerResize:be,handleYScrollMouseDown:Me,handleXScrollMouseDown:ke,containerWidth:y,cssVars:r?void 0:Ne,themeClass:Pe?.themeClass,onRender:Pe?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:a,yPlacement:o,xPlacement:s,xScrollable:l}=this;if(!this.scrollable)return e.default?.call(e);let u=this.trigger===`none`,d=(e,n)=>m(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${o}`,e],"data-scrollbar-rail":!0,style:[n||``,this.verticalRailStyle],"aria-hidden":!0},m(u?tt:M,u?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var o;return(o=this.onRender)==null||o.call(this),m(`div`,i(this.$attrs,{role:`none`,ref:`wrapperRef`,class:[`${t}-scrollbar`,this.themeClass,r&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.call(e):m(`div`,{role:`none`,ref:`containerRef`,class:[`${t}-scrollbar-container`,this.containerClass],style:[this.containerStyle,this.internalExposeWidthCssVar?{"--n-scrollbar-current-width":oe(this.containerWidth)}:void 0],onScroll:this.handleScroll,onWheel:this.onWheel},m($e,{onResize:this.handleContentResize},{default:()=>m(`div`,{ref:`contentRef`,role:`none`,style:[{width:this.xScrollable?`fit-content`:null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),a?null:d(void 0,void 0),l&&m(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${s}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(u?tt:M,u?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},p=this.container?f():m($e,{onResize:this.handleContainerResize},{default:f});return a?m(c,null,p,d(this.themeClass,this.cssVars)):p}}),un=ln,dn=p({name:`InternalSelectionSuffix`,props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{let{clsPrefix:n}=e;return m(D,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(tn,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(Xt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>A(t.default,()=>[m(Qt,null)])})}):null})}}});export{ie as C,oe as S,de as _,rn as a,ae as b,Zt as c,xt as d,gt as f,Qe as g,$e as h,sn as i,Xt as l,tt as m,ln as n,tn as o,ht as p,un as r,Qt as s,dn as t,Jt as u,R as v,N as x,L as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,tt as t,v as n,x as r}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as i,at as a,c as o,l as s,r as c}from"./_plugin-vue_export-helper-
|
|
1
|
+
import{l as e,tt as t,v as n,x as r}from"./runtime-core.esm-bundler-yNW65ghW.js";import{H as i,at as a,c as o,l as s,r as c}from"./_plugin-vue_export-helper-BrYOyDjU.js";import{i as l,n as u,t as d}from"./Popover-C2CJscsj.js";var f={padding:`8px 14px`};function p(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},f),{borderRadius:t,boxShadow:n,color:a(r,`rgba(0, 0, 0, .85)`),textColor:r})}var m=o({name:`Tooltip`,common:c,peers:{Popover:l},self:p}),h=n({name:`Tooltip`,props:Object.assign(Object.assign({},u),s.props),slots:Object,__popover__:!0,setup(n){let{mergedClsPrefixRef:r}=i(n),a=s(`Tooltip`,`-tooltip`,void 0,m,n,r),o=t(null);return Object.assign(Object.assign({},{syncPosition(){o.value.syncPosition()},setShow(e){o.value.setShow(e)}}),{popoverRef:o,mergedTheme:a,popoverThemeOverrides:e(()=>a.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return r(d,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});export{m as n,h as t};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import{B as e,C as t,H as n,I as r,M as i,O as a,P as o,St as s,Tt as c,U as l,V as u,W as d,_ as f,_t as p,at as m,b as ee,bt as h,ct as g,dt as _,et as v,ft as te,gt as ne,ht as re,i as ie,it as ae,k as oe,l as y,lt as se,m as ce,mt as b,n as le,pt as ue,r as de,rt as fe,s as pe,t as me,tt as he,ut as ge,v as _e,vt as ve,w as ye,x,xt as be,y as xe,yt as Se}from"./runtime-core.esm-bundler-yNW65ghW.js";var Ce=void 0,we=typeof window<`u`&&window.trustedTypes;if(we)try{Ce=we.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Te=Ce?e=>Ce.createHTML(e):e=>e,Ee=`http://www.w3.org/2000/svg`,De=`http://www.w3.org/1998/Math/MathML`,S=typeof document<`u`?document:null,Oe=S&&S.createElement(`template`),ke={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?S.createElementNS(Ee,e):t===`mathml`?S.createElementNS(De,e):n?S.createElement(e,{is:n}):S.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>S.createTextNode(e),createComment:e=>S.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>S.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Oe.innerHTML=Te(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Oe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},C=`transition`,Ae=`animation`,w=Symbol(`_vtc`),je={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},Me=ge({},le,je),Ne=(e=>(e.displayName=`Transition`,e.props=Me,e))((e,{slots:t})=>x(me,Fe(e),t)),T=(e,t=[])=>{b(e)?e.forEach(e=>e(...t)):e&&e(...t)},Pe=e=>e?b(e)?e.some(e=>e.length>1):e.length>1:!1;function Fe(e){let t={};for(let n in e)n in je||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ie(i),ee=m&&m[0],h=m&&m[1],{onBeforeEnter:g,onEnter:_,onEnterCancelled:v,onLeave:te,onLeaveCancelled:ne,onBeforeAppear:re=g,onAppear:ie=_,onAppearCancelled:ae=v}=t,oe=(e,t,n,r)=>{e._enterCancelled=r,D(e,t?u:s),D(e,t?l:o),n&&n()},y=(e,t)=>{e._isLeaving=!1,D(e,d),D(e,p),D(e,f),t&&t()},se=e=>(t,n)=>{let i=e?ie:_,o=()=>oe(t,e,n);T(i,[t,o]),Re(()=>{D(t,e?c:a),E(t,e?u:s),Pe(i)||Be(t,r,ee,o)})};return ge(t,{onBeforeEnter(e){T(g,[e]),E(e,a),E(e,o)},onBeforeAppear(e){T(re,[e]),E(e,c),E(e,l)},onEnter:se(!1),onAppear:se(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>y(e,t);E(e,d),e._enterCancelled?(E(e,f),We(e)):(We(e),E(e,f)),Re(()=>{e._isLeaving&&(D(e,d),E(e,p),Pe(te)||Be(e,r,h,n))}),T(te,[e,n])},onEnterCancelled(e){oe(e,!1,void 0,!0),T(v,[e])},onAppearCancelled(e){oe(e,!0,void 0,!0),T(ae,[e])},onLeaveCancelled(e){y(e),T(ne,[e])}})}function Ie(e){if(e==null)return null;if(p(e))return[Le(e.enter),Le(e.leave)];{let t=Le(e);return[t,t]}}function Le(e){return c(e)}function E(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[w]||(e[w]=new Set)).add(t)}function D(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[w];n&&(n.delete(t),n.size||(e[w]=void 0))}function Re(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ze=0;function Be(e,t,n,r){let i=e._endId=++ze,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Ve(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Ve(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${C}Delay`),a=r(`${C}Duration`),o=He(i,a),s=r(`${Ae}Delay`),c=r(`${Ae}Duration`),l=He(s,c),u=null,d=0,f=0;t===C?o>0&&(u=C,d=o,f=a.length):t===Ae?l>0&&(u=Ae,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?C:Ae:null,f=u?u===C?a.length:c.length:0);let p=u===C&&/\b(?:transform|all)(?:,|$)/.test(r(`${C}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function He(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Ue(t)+Ue(e[n])))}function Ue(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function We(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ge(e,t,n){let r=e[w];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ke=Symbol(`_vod`),qe=Symbol(`_vsh`),Je={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ke]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ye(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ye(e,!0),r.enter(e)):r.leave(e,()=>{Ye(e,!1)}):Ye(e,t))},beforeUnmount(e,{value:t}){Ye(e,t)}};function Ye(e,t){e.style.display=t?e[Ke]:`none`,e[qe]=!t}var Xe=Symbol(``),Ze=/(?:^|;)\s*display\s*:/;function Qe(e,t,n){let r=e.style,i=h(n),a=!1;if(n&&!i){if(t)if(h(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??et(r,t,``)}else for(let e in t)n[e]??et(r,e,``);for(let e in n)e===`display`&&(a=!0),et(r,e,n[e])}else if(i){if(t!==n){let e=r[Xe];e&&(n+=`;`+e),r.cssText=n,a=Ze.test(n)}}else t&&e.removeAttribute(`style`);Ke in e&&(e[Ke]=a?r.display:``,e[qe]&&(r.display=`none`))}var $e=/\s*!important$/;function et(e,t,n){if(b(n))n.forEach(n=>et(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=rt(e,t);$e.test(n)?e.setProperty(_(r),n.replace($e,``),`important`):e[r]=n}}var tt=[`Webkit`,`Moz`,`ms`],nt={};function rt(e,t){let n=nt[t];if(n)return n;let r=g(t);if(r!==`filter`&&r in e)return nt[t]=r;r=se(r);for(let n=0;n<tt.length;n++){let i=tt[n]+r;if(i in e)return nt[t]=i}return t}var it=`http://www.w3.org/1999/xlink`;function at(e,t,n,r,i,a=Se(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(it,t.slice(6,t.length)):e.setAttributeNS(it,t,n):n==null||a&&!te(n)?e.removeAttribute(t):e.setAttribute(t,a?``:be(n)?String(n):n)}function ot(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Te(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=te(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function O(e,t,n,r){e.addEventListener(t,n,r)}function st(e,t,n,r){e.removeEventListener(t,n,r)}var ct=Symbol(`_vei`);function lt(e,t,n,r,i=null){let a=e[ct]||(e[ct]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=dt(t);r?O(e,n,a[t]=ht(r,i),s):o&&(st(e,n,o,s),a[t]=void 0)}}var ut=/(?:Once|Passive|Capture)$/;function dt(e){let t;if(ut.test(e)){t={};let n;for(;n=e.match(ut);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):_(e.slice(2)),t]}var ft=0,pt=Promise.resolve(),mt=()=>ft||=(pt.then(()=>ft=0),Date.now());function ht(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;pe(gt(e,n.value),t,5,[e])};return n.value=e,n.attached=mt(),n}function gt(e,t){if(b(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var _t=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vt=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ge(e,r,o):t===`style`?Qe(e,n,r):ve(t)?ne(t)||lt(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):yt(e,t,r,o))?(ot(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&at(e,t,r,o,a,t!==`value`)):e._isVueCE&&(bt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!h(r)))?ot(e,g(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),at(e,t,r,o))};function yt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&_t(t)&&re(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return _t(t)&&h(n)?!1:t in e}function bt(e,t){let n=e._def.props;if(!n)return!1;let r=g(t);return Array.isArray(n)?n.some(e=>g(e)===r):Object.keys(n).some(e=>g(e)===r)}var xt=new WeakMap,St=new WeakMap,Ct=Symbol(`_moveCb`),wt=Symbol(`_enterCb`),Tt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:ge({},Me,{tag:String,moveClass:String}),setup(t,{slots:r}){let i=xe(),a=n(),s,c;return o(()=>{if(!s.length)return;let e=t.moveClass||`${t.name||`v`}-move`;if(!At(s[0].el,i.vnode.el,e)){s=[];return}s.forEach(Et),s.forEach(Dt);let n=s.filter(Ot);We(i.vnode.el),n.forEach(t=>{let n=t.el,r=n.style;E(n,e),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ct]=t=>{t&&t.target!==n||(!t||t.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ct]=null,D(n,e))};n.addEventListener(`transitionend`,i)}),s=[]}),()=>{let n=ae(t),o=Fe(n),l=n.tag||ie;if(s=[],c)for(let t=0;t<c.length;t++){let n=c[t];n.el&&n.el instanceof Element&&(s.push(n),u(n,e(n,o,a,i)),xt.set(n,kt(n.el)))}c=r.default?ee(r.default()):[];for(let t=0;t<c.length;t++){let n=c[t];n.key!=null&&u(n,e(n,o,a,i))}return f(l,null,c)}}});function Et(e){let t=e.el;t[Ct]&&t[Ct](),t[wt]&&t[wt]()}function Dt(e){St.set(e,kt(e.el))}function Ot(e){let t=xt.get(e),n=St.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function kt(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function At(e,t,n){let r=e.cloneNode(),i=e[w];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Ve(r);return a.removeChild(r),o}var jt=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return b(t)?e=>ue(t,e):t};function Mt(e){e.target.composing=!0}function Nt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Pt=Symbol(`_assign`);function Ft(e,t,n){return t&&(e=e.trim()),n&&(e=s(e)),e}var It={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Pt]=jt(i);let a=r||i.props&&i.props.type===`number`;O(e,t?`change`:`input`,t=>{t.target.composing||e[Pt](Ft(e.value,n,a))}),(n||a)&&O(e,`change`,()=>{e.value=Ft(e.value,n,a)}),t||(O(e,`compositionstart`,Mt),O(e,`compositionend`,Nt),O(e,`change`,Nt))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Pt]=jt(o),e.composing)return;let c=(a||e.type===`number`)&&!/^0\d/.test(e.value)?s(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},Lt=[`ctrl`,`shift`,`alt`,`meta`],Rt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Lt.some(n=>e[`${n}Key`]&&!t.includes(n))},zt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Rt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Bt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Vt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=_(n.key);if(t.some(e=>e===r||Bt[e]===r))return e(n)}))},Ht=ge({patchProp:vt},ke),Ut;function Wt(){return Ut||=ce(Ht)}var Gt=((...e)=>{let t=Wt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=qt(e);if(!r)return;let i=t._component;!re(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Kt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Kt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function qt(e){return h(e)?document.querySelector(e):e}function Jt(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function Yt(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var Xt=/\s*,(?![^(]*\))\s*/g,Zt=/\s+/g;function Qt(e,t){let n=[];return t.split(Xt).forEach(t=>{let r=Yt(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function $t(e,t){let n=[];return t.split(Xt).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function en(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?Qt(t,e):$t(t,e))}),t.join(`, `).replace(Zt,` `)}function tn(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function nn(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function rn(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function an(e){return e?/^\s*@(s|m)/.test(e):!1}var on=/[A-Z]/g;function sn(e){return e.replace(on,e=>`-`+e.toLowerCase())}function cn(e,t=` `){return typeof e==`object`&&e?` {
|
|
2
|
+
`+Object.entries(e).map(e=>t+` ${sn(e[0])}: ${e[1]};`).join(`
|
|
3
|
+
`)+`
|
|
4
|
+
`+t+`}`:`: ${e};`}function ln(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function un(e,t,n,r){if(!t)return``;let i=ln(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
|
5
|
+
}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(`
|
|
6
|
+
`+t+`
|
|
7
|
+
`);return}e=sn(e),t!=null&&o.push(` ${e}${cn(t)}`)}),e&&o.push(`}`),o.join(`
|
|
8
|
+
`)}function dn(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))dn(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?dn(r,t,n):r&&n(r)}else e&&n(e)})}function fn(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)an(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});an(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)an(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});an(e)?o=e:t.push(e)}let s=en(t),c=un(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&dn(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=un(s,{raw:e},r,i);n.push(t)}else fn(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function pn(e,t,n){let r=[];return fn(e,[],r,t,n),r.join(`
|
|
9
|
+
|
|
10
|
+
`)}function mn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<`u`&&(window.__cssrContext={});function hn(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(tn),t.els=[];else{let e=nn(n,r);e&&i.includes(e)&&(tn(e),t.els=i.filter(t=>t!==e))}}function gn(e,t){e.push(t)}function _n(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=mn(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=nn(n,s);if(u!==null&&!a)return u;let d=u??rn(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),gn(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),gn(t.els,d),d}function vn(e){return pn(this,this.instance,e)}function yn(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return _n(this.instance,this,t,r,i,a,o,s,n)}function bn(e={}){let{id:t,parent:n}=e;hn(this.instance,this,t,n)}var xn=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:vn,mount:yn,unmount:bn}},Sn=function(e,t,n,r){return Array.isArray(t)?xn(e,{$:null},null,t):Array.isArray(n)?xn(e,t,null,n):Array.isArray(r)?xn(e,t,n,r):xn(e,t,n,null)};function Cn(e={}){let t={c:((...e)=>Sn(t,...e)),use:(e,...n)=>e.install(t,...n),find:nn,context:{},config:e};return t}function wn(e,t){if(e===void 0)return!1;if(t){let{context:{ids:n}}=t;return n.has(e)}return nn(e)!==null}var Tn=`.n-`,En=`__`,Dn=`--`,On=Cn(),kn=Jt({blockPrefix:Tn,elementPrefix:En,modifierPrefix:Dn});On.use(kn);var{c:k,find:An}=On,{cB:jn,cE:Mn,cM:Nn,cNotM:Pn}=kn;function Fn(e){return k(({props:{bPrefix:e}})=>`${e||Tn}modal, ${e||Tn}drawer`,[e])}function In(e){return k(({props:{bPrefix:e}})=>`${e||Tn}popover`,[e])}function Ln(e){return k(({props:{bPrefix:e}})=>`&${e||Tn}modal`,e)}var Rn=(...e)=>k(`>`,[jn(...e)]);function zn(e,t){return e+(t===`default`?``:t.replace(/^[a-z]/,e=>e.toUpperCase()))}var Bn={aliceblue:`#F0F8FF`,antiquewhite:`#FAEBD7`,aqua:`#0FF`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,black:`#000`,blanchedalmond:`#FFEBCD`,blue:`#00F`,blueviolet:`#8A2BE2`,brown:`#A52A2A`,burlywood:`#DEB887`,cadetblue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerblue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,cyan:`#0FF`,darkblue:`#00008B`,darkcyan:`#008B8B`,darkgoldenrod:`#B8860B`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,darkgreen:`#006400`,darkkhaki:`#BDB76B`,darkmagenta:`#8B008B`,darkolivegreen:`#556B2F`,darkorange:`#FF8C00`,darkorchid:`#9932CC`,darkred:`#8B0000`,darksalmon:`#E9967A`,darkseagreen:`#8FBC8F`,darkslateblue:`#483D8B`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,darkturquoise:`#00CED1`,darkviolet:`#9400D3`,deeppink:`#FF1493`,deepskyblue:`#00BFFF`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1E90FF`,firebrick:`#B22222`,floralwhite:`#FFFAF0`,forestgreen:`#228B22`,fuchsia:`#F0F`,gainsboro:`#DCDCDC`,ghostwhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,gray:`#808080`,grey:`#808080`,green:`#008000`,greenyellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotpink:`#FF69B4`,indianred:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderblush:`#FFF0F5`,lawngreen:`#7CFC00`,lemonchiffon:`#FFFACD`,lightblue:`#ADD8E6`,lightcoral:`#F08080`,lightcyan:`#E0FFFF`,lightgoldenrodyellow:`#FAFAD2`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,lightgreen:`#90EE90`,lightpink:`#FFB6C1`,lightsalmon:`#FFA07A`,lightseagreen:`#20B2AA`,lightskyblue:`#87CEFA`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#B0C4DE`,lightyellow:`#FFFFE0`,lime:`#0F0`,limegreen:`#32CD32`,linen:`#FAF0E6`,magenta:`#F0F`,maroon:`#800000`,mediumaquamarine:`#66CDAA`,mediumblue:`#0000CD`,mediumorchid:`#BA55D3`,mediumpurple:`#9370DB`,mediumseagreen:`#3CB371`,mediumslateblue:`#7B68EE`,mediumspringgreen:`#00FA9A`,mediumturquoise:`#48D1CC`,mediumvioletred:`#C71585`,midnightblue:`#191970`,mintcream:`#F5FFFA`,mistyrose:`#FFE4E1`,moccasin:`#FFE4B5`,navajowhite:`#FFDEAD`,navy:`#000080`,oldlace:`#FDF5E6`,olive:`#808000`,olivedrab:`#6B8E23`,orange:`#FFA500`,orangered:`#FF4500`,orchid:`#DA70D6`,palegoldenrod:`#EEE8AA`,palegreen:`#98FB98`,paleturquoise:`#AFEEEE`,palevioletred:`#DB7093`,papayawhip:`#FFEFD5`,peachpuff:`#FFDAB9`,peru:`#CD853F`,pink:`#FFC0CB`,plum:`#DDA0DD`,powderblue:`#B0E0E6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#F00`,rosybrown:`#BC8F8F`,royalblue:`#4169E1`,saddlebrown:`#8B4513`,salmon:`#FA8072`,sandybrown:`#F4A460`,seagreen:`#2E8B57`,seashell:`#FFF5EE`,sienna:`#A0522D`,silver:`#C0C0C0`,skyblue:`#87CEEB`,slateblue:`#6A5ACD`,slategray:`#708090`,slategrey:`#708090`,snow:`#FFFAFA`,springgreen:`#00FF7F`,steelblue:`#4682B4`,tan:`#D2B48C`,teal:`#008080`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,white:`#FFF`,whitesmoke:`#F5F5F5`,yellow:`#FF0`,yellowgreen:`#9ACD32`,transparent:`#0000`};function Vn(e,t,n){t/=100,n/=100;let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function Hn(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}var A=`^\\s*`,j=`\\s*$`,M=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*`,N=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*`,P=`([0-9A-Fa-f])`,F=`([0-9A-Fa-f]{2})`,Un=RegExp(`${A}hsl\\s*\\(${N},${M},${M}\\)${j}`),Wn=RegExp(`${A}hsv\\s*\\(${N},${M},${M}\\)${j}`),Gn=RegExp(`${A}hsla\\s*\\(${N},${M},${M},${N}\\)${j}`),Kn=RegExp(`${A}hsva\\s*\\(${N},${M},${M},${N}\\)${j}`),qn=RegExp(`${A}rgb\\s*\\(${N},${N},${N}\\)${j}`),Jn=RegExp(`${A}rgba\\s*\\(${N},${N},${N},${N}\\)${j}`),Yn=RegExp(`${A}#${P}${P}${P}${j}`),Xn=RegExp(`${A}#${F}${F}${F}${j}`),Zn=RegExp(`${A}#${P}${P}${P}${P}${j}`),Qn=RegExp(`${A}#${F}${F}${F}${F}${j}`);function I(e){return parseInt(e,16)}function $n(e){try{let t;if(t=Gn.exec(e))return[sr(t[1]),B(t[5]),B(t[9]),R(t[13])];if(t=Un.exec(e))return[sr(t[1]),B(t[5]),B(t[9]),1];throw Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(e){throw e}}function er(e){try{let t;if(t=Kn.exec(e))return[sr(t[1]),B(t[5]),B(t[9]),R(t[13])];if(t=Wn.exec(e))return[sr(t[1]),B(t[5]),B(t[9]),1];throw Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(e){throw e}}function L(e){try{let t;if(t=Xn.exec(e))return[I(t[1]),I(t[2]),I(t[3]),1];if(t=qn.exec(e))return[z(t[1]),z(t[5]),z(t[9]),1];if(t=Jn.exec(e))return[z(t[1]),z(t[5]),z(t[9]),R(t[13])];if(t=Yn.exec(e))return[I(t[1]+t[1]),I(t[2]+t[2]),I(t[3]+t[3]),1];if(t=Qn.exec(e))return[I(t[1]),I(t[2]),I(t[3]),R(I(t[4])/255)];if(t=Zn.exec(e))return[I(t[1]+t[1]),I(t[2]+t[2]),I(t[3]+t[3]),R(I(t[4]+t[4])/255)];if(e in Bn)return L(Bn[e]);if(Un.test(e)||Gn.test(e)){let[t,n,r,i]=$n(e);return[...Hn(t,n,r),i]}else if(Wn.test(e)||Kn.test(e)){let[t,n,r,i]=er(e);return[...Vn(t,n,r),i]}throw Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(e){throw e}}function tr(e){return e>1?1:e<0?0:e}function nr(e,t,n,r){return`rgba(${z(e)}, ${z(t)}, ${z(n)}, ${tr(r)})`}function rr(e,t,n,r,i){return z((e*t*(1-r)+n*r)/i)}function ir(e,t){Array.isArray(e)||(e=L(e)),Array.isArray(t)||(t=L(t));let n=e[3],r=t[3],i=R(n+r-n*r);return nr(rr(e[0],n,t[0],r,i),rr(e[1],n,t[1],r,i),rr(e[2],n,t[2],r,i),i)}function ar(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:L(e);return typeof t.alpha==`number`?nr(n,r,i,t.alpha):nr(n,r,i,a)}function or(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:L(e),{lightness:o=1,alpha:s=1}=t;return cr([n*o,r*o,i*o,a*s])}function R(e){let t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function sr(e){let t=Math.round(Number(e));return t>=360||t<0?0:t}function z(e){let t=Math.round(Number(e));return t>255?255:t<0?0:t}function B(e){let t=Math.round(Number(e));return t>100?100:t<0?0:t}function cr(e){let[t,n,r]=e;return 3 in e?`rgba(${z(t)}, ${z(n)}, ${z(r)}, ${R(e[3])})`:`rgba(${z(t)}, ${z(n)}, ${z(r)}, 1)`}function lr(e){let t=y(e),n=he(t.value);return l(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function ur(){let e=he(!1);return i(()=>{e.value=!0}),v(e)}function dr(e){return e}var fr=typeof document<`u`&&typeof window<`u`,pr=`@css-render/vue3-ssr`;function mr(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}function hr(e,t,n){let{styles:r,ids:i}=n;i.has(e)||r!==null&&(i.add(e),r.push(mr(e,t)))}var gr=typeof document<`u`;function _r(){if(gr)return;let e=t(pr,null);if(e!==null)return{adapter:(t,n)=>hr(t,n,e),context:e}}function vr(e,t){console.error(`[naive/${e}]: ${t}`)}function yr(e,t){throw Error(`[naive/${e}]: ${t}`)}function br(e,...t){if(Array.isArray(e))e.forEach(e=>br(e,...t));else return e(...t)}function V(e){return e.some(e=>ye(e)?!(e.type===de||e.type===ie&&!V(e.children)):!0)?e:null}function xr(e,t){return e&&V(e())||t()}function Sr(e,t,n){return e&&V(e(t))||n(t)}function Cr(e,t){return t(e&&V(e())||null)}function wr(e){return!(e&&V(e()))}var H=dr(`n-config-provider`);function Tr(e={},n={defaultBordered:!0}){let r=t(H,null);return{inlineThemeDisabled:r?.inlineThemeDisabled,mergedRtlRef:r?.mergedRtlRef,mergedComponentPropsRef:r?.mergedComponentPropsRef,mergedBreakpointsRef:r?.mergedBreakpointsRef,mergedBorderedRef:y(()=>{let{bordered:t}=e;return t===void 0?r?.mergedBorderedRef.value??n.defaultBordered??!0:t}),mergedClsPrefixRef:r?r.mergedClsPrefixRef:fe(`n`),namespaceRef:y(()=>r?.mergedNamespaceRef.value)}}function Er(){let e=t(H,null);return e?e.mergedClsPrefixRef:fe(`n`)}function Dr(e,n,r,i){r||yr(`useThemeClass`,`cssVarsRef is not passed`);let a=t(H,null),o=a?.mergedThemeHashRef,s=a?.styleMountTarget,c=he(``),l=_r(),u,f=`__${e}`,p=()=>{let e=f,t=n?n.value:void 0,a=o?.value;a&&(e+=`-${a}`),t&&(e+=`-${t}`);let{themeOverrides:d,builtinThemeOverrides:p}=i;d&&(e+=`-${mn(JSON.stringify(d))}`),p&&(e+=`-${mn(JSON.stringify(p))}`),c.value=e,u=()=>{let t=r.value,n=``;for(let e in t)n+=`${e}: ${t[e]};`;k(`.${e}`,n).mount({id:e,ssr:l,parent:s}),u=void 0}};return d(()=>{p()}),{themeClass:c,onRender:()=>{u?.()}}}var Or=dr(`n-form-item`);function kr(e,{defaultSize:n=`medium`,mergedSize:i,mergedDisabled:a}={}){let o=t(Or,null);r(Or,null);let s=y(i?()=>i(o):()=>{let{size:t}=e;if(t)return t;if(o){let{mergedSize:e}=o;if(e.value!==void 0)return e.value}return n}),c=y(a?()=>a(o):()=>{let{disabled:t}=e;return t===void 0?o?o.disabled.value:!1:t}),l=y(()=>{let{status:t}=e;return t||o?.mergedValidationStatus.value});return oe(()=>{o&&o.restoreValidation()}),{mergedSizeRef:s,mergedDisabledRef:c,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}var Ar=typeof global==`object`&&global&&global.Object===Object&&global,jr=typeof self==`object`&&self&&self.Object===Object&&self,U=Ar||jr||Function(`return this`)(),Mr=U.Symbol,Nr=Object.prototype,Pr=Nr.hasOwnProperty,Fr=Nr.toString,Ir=Mr?Mr.toStringTag:void 0;function Lr(e){var t=Pr.call(e,Ir),n=e[Ir];try{e[Ir]=void 0;var r=!0}catch{}var i=Fr.call(e);return r&&(t?e[Ir]=n:delete e[Ir]),i}var Rr=Object.prototype.toString;function zr(e){return Rr.call(e)}var Br=`[object Null]`,Vr=`[object Undefined]`,Hr=Mr?Mr.toStringTag:void 0;function Ur(e){return e==null?e===void 0?Vr:Br:Hr&&Hr in Object(e)?Lr(e):zr(e)}function W(e){return typeof e==`object`&&!!e}var Wr=Array.isArray;function G(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function Gr(e){return e}var Kr=`[object AsyncFunction]`,qr=`[object Function]`,Jr=`[object GeneratorFunction]`,Yr=`[object Proxy]`;function Xr(e){if(!G(e))return!1;var t=Ur(e);return t==qr||t==Jr||t==Kr||t==Yr}var Zr=U[`__core-js_shared__`],Qr=function(){var e=/[^.]+$/.exec(Zr&&Zr.keys&&Zr.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function $r(e){return!!Qr&&Qr in e}var ei=Function.prototype.toString;function ti(e){if(e!=null){try{return ei.call(e)}catch{}try{return e+``}catch{}}return``}var ni=/[\\^$.*+?()[\]{}|]/g,ri=/^\[object .+?Constructor\]$/,ii=Function.prototype,ai=Object.prototype,oi=ii.toString,si=ai.hasOwnProperty,ci=RegExp(`^`+oi.call(si).replace(ni,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function li(e){return!G(e)||$r(e)?!1:(Xr(e)?ci:ri).test(ti(e))}function ui(e,t){return e?.[t]}function di(e,t){var n=ui(e,t);return li(n)?n:void 0}var fi=Object.create,pi=function(){function e(){}return function(t){if(!G(t))return{};if(fi)return fi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function mi(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function hi(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var gi=800,_i=16,vi=Date.now;function yi(e){var t=0,n=0;return function(){var r=vi(),i=_i-(r-n);if(n=r,i>0){if(++t>=gi)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function bi(e){return function(){return e}}var xi=function(){try{var e=di(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Si=yi(xi?function(e,t){return xi(e,`toString`,{configurable:!0,enumerable:!1,value:bi(t),writable:!0})}:Gr),Ci=9007199254740991,wi=/^(?:0|[1-9]\d*)$/;function Ti(e,t){var n=typeof e;return t??=Ci,!!t&&(n==`number`||n!=`symbol`&&wi.test(e))&&e>-1&&e%1==0&&e<t}function Ei(e,t,n){t==`__proto__`&&xi?xi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Di(e,t){return e===t||e!==e&&t!==t}var Oi=Object.prototype.hasOwnProperty;function ki(e,t,n){var r=e[t];(!(Oi.call(e,t)&&Di(r,n))||n===void 0&&!(t in e))&&Ei(e,t,n)}function Ai(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Ei(n,s,c):ki(n,s,c)}return n}var ji=Math.max;function Mi(e,t,n){return t=ji(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=ji(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),mi(e,this,s)}}function Ni(e,t){return Si(Mi(e,t,Gr),e+``)}var Pi=9007199254740991;function Fi(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Pi}function Ii(e){return e!=null&&Fi(e.length)&&!Xr(e)}function Li(e,t,n){if(!G(n))return!1;var r=typeof t;return(r==`number`?Ii(n)&&Ti(t,n.length):r==`string`&&t in n)?Di(n[t],e):!1}function Ri(e){return Ni(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Li(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var zi=Object.prototype;function Bi(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||zi)}function Vi(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Hi=`[object Arguments]`;function Ui(e){return W(e)&&Ur(e)==Hi}var Wi=Object.prototype,Gi=Wi.hasOwnProperty,Ki=Wi.propertyIsEnumerable,qi=Ui(function(){return arguments}())?Ui:function(e){return W(e)&&Gi.call(e,`callee`)&&!Ki.call(e,`callee`)};function Ji(){return!1}var Yi=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Xi=Yi&&typeof module==`object`&&module&&!module.nodeType&&module,Zi=Xi&&Xi.exports===Yi?U.Buffer:void 0,Qi=(Zi?Zi.isBuffer:void 0)||Ji,$i=`[object Arguments]`,ea=`[object Array]`,ta=`[object Boolean]`,na=`[object Date]`,ra=`[object Error]`,ia=`[object Function]`,aa=`[object Map]`,oa=`[object Number]`,sa=`[object Object]`,ca=`[object RegExp]`,la=`[object Set]`,ua=`[object String]`,da=`[object WeakMap]`,fa=`[object ArrayBuffer]`,pa=`[object DataView]`,ma=`[object Float32Array]`,ha=`[object Float64Array]`,ga=`[object Int8Array]`,_a=`[object Int16Array]`,va=`[object Int32Array]`,ya=`[object Uint8Array]`,ba=`[object Uint8ClampedArray]`,xa=`[object Uint16Array]`,Sa=`[object Uint32Array]`,K={};K[ma]=K[ha]=K[ga]=K[_a]=K[va]=K[ya]=K[ba]=K[xa]=K[Sa]=!0,K[$i]=K[ea]=K[fa]=K[ta]=K[pa]=K[na]=K[ra]=K[ia]=K[aa]=K[oa]=K[sa]=K[ca]=K[la]=K[ua]=K[da]=!1;function Ca(e){return W(e)&&Fi(e.length)&&!!K[Ur(e)]}function wa(e){return function(t){return e(t)}}var Ta=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ea=Ta&&typeof module==`object`&&module&&!module.nodeType&&module,Da=Ea&&Ea.exports===Ta&&Ar.process,Oa=function(){try{return Ea&&Ea.require&&Ea.require(`util`).types||Da&&Da.binding&&Da.binding(`util`)}catch{}}(),ka=Oa&&Oa.isTypedArray,Aa=ka?wa(ka):Ca,ja=Object.prototype.hasOwnProperty;function Ma(e,t){var n=Wr(e),r=!n&&qi(e),i=!n&&!r&&Qi(e),a=!n&&!r&&!i&&Aa(e),o=n||r||i||a,s=o?Vi(e.length,String):[],c=s.length;for(var l in e)(t||ja.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ti(l,c)))&&s.push(l);return s}function Na(e,t){return function(n){return e(t(n))}}function Pa(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Fa=Object.prototype.hasOwnProperty;function Ia(e){if(!G(e))return Pa(e);var t=Bi(e),n=[];for(var r in e)r==`constructor`&&(t||!Fa.call(e,r))||n.push(r);return n}function La(e){return Ii(e)?Ma(e,!0):Ia(e)}var Ra=di(Object,`create`);function za(){this.__data__=Ra?Ra(null):{},this.size=0}function Ba(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var Va=`__lodash_hash_undefined__`,Ha=Object.prototype.hasOwnProperty;function Ua(e){var t=this.__data__;if(Ra){var n=t[e];return n===Va?void 0:n}return Ha.call(t,e)?t[e]:void 0}var Wa=Object.prototype.hasOwnProperty;function Ga(e){var t=this.__data__;return Ra?t[e]!==void 0:Wa.call(t,e)}var Ka=`__lodash_hash_undefined__`;function qa(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Ra&&t===void 0?Ka:t,this}function q(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}q.prototype.clear=za,q.prototype.delete=Ba,q.prototype.get=Ua,q.prototype.has=Ga,q.prototype.set=qa;function Ja(){this.__data__=[],this.size=0}function Ya(e,t){for(var n=e.length;n--;)if(Di(e[n][0],t))return n;return-1}var Xa=Array.prototype.splice;function Za(e){var t=this.__data__,n=Ya(t,e);return n<0?!1:(n==t.length-1?t.pop():Xa.call(t,n,1),--this.size,!0)}function Qa(e){var t=this.__data__,n=Ya(t,e);return n<0?void 0:t[n][1]}function $a(e){return Ya(this.__data__,e)>-1}function eo(e,t){var n=this.__data__,r=Ya(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function J(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}J.prototype.clear=Ja,J.prototype.delete=Za,J.prototype.get=Qa,J.prototype.has=$a,J.prototype.set=eo;var to=di(U,`Map`);function no(){this.size=0,this.__data__={hash:new q,map:new(to||J),string:new q}}function ro(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function io(e,t){var n=e.__data__;return ro(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function ao(e){var t=io(this,e).delete(e);return this.size-=+!!t,t}function oo(e){return io(this,e).get(e)}function so(e){return io(this,e).has(e)}function co(e,t){var n=io(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Y(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Y.prototype.clear=no,Y.prototype.delete=ao,Y.prototype.get=oo,Y.prototype.has=so,Y.prototype.set=co;var lo=Na(Object.getPrototypeOf,Object),uo=`[object Object]`,fo=Function.prototype,po=Object.prototype,mo=fo.toString,ho=po.hasOwnProperty,go=mo.call(Object);function _o(e){if(!W(e)||Ur(e)!=uo)return!1;var t=lo(e);if(t===null)return!0;var n=ho.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&mo.call(n)==go}function vo(){this.__data__=new J,this.size=0}function yo(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function bo(e){return this.__data__.get(e)}function xo(e){return this.__data__.has(e)}var So=200;function Co(e,t){var n=this.__data__;if(n instanceof J){var r=n.__data__;if(!to||r.length<So-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Y(r)}return n.set(e,t),this.size=n.size,this}function X(e){this.size=(this.__data__=new J(e)).size}X.prototype.clear=vo,X.prototype.delete=yo,X.prototype.get=bo,X.prototype.has=xo,X.prototype.set=Co;var wo=typeof exports==`object`&&exports&&!exports.nodeType&&exports,To=wo&&typeof module==`object`&&module&&!module.nodeType&&module,Eo=To&&To.exports===wo?U.Buffer:void 0,Do=Eo?Eo.allocUnsafe:void 0;function Oo(e,t){if(t)return e.slice();var n=e.length,r=Do?Do(n):new e.constructor(n);return e.copy(r),r}var ko=U.Uint8Array;function Ao(e){var t=new e.constructor(e.byteLength);return new ko(t).set(new ko(e)),t}function jo(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mo(e){return typeof e.constructor==`function`&&!Bi(e)?pi(lo(e)):{}}function No(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Po=No();function Fo(e,t,n){(n!==void 0&&!Di(e[t],n)||n===void 0&&!(t in e))&&Ei(e,t,n)}function Io(e){return W(e)&&Ii(e)}function Lo(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}function Ro(e){return Ai(e,La(e))}function zo(e,t,n,r,i,a,o){var s=Lo(e,n),c=Lo(t,n),l=o.get(c);if(l){Fo(e,n,l);return}var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=Wr(c),p=!f&&Qi(c),m=!f&&!p&&Aa(c);u=c,f||p||m?Wr(s)?u=s:Io(s)?u=hi(s):p?(d=!1,u=Oo(c,!0)):m?(d=!1,u=jo(c,!0)):u=[]:_o(c)||qi(c)?(u=s,qi(s)?u=Ro(s):(!G(s)||Xr(s))&&(u=Mo(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Fo(e,n,u)}function Bo(e,t,n,r,i){e!==t&&Po(t,function(a,o){if(i||=new X,G(a))zo(e,t,o,n,Bo,r,i);else{var s=r?r(Lo(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Fo(e,o,s)}},La)}var Vo=Ri(function(e,t,n){Bo(e,t,n)}),Z=`naive-ui-style`;function Ho(e,n,r){if(!n)return;let i=_r(),o=y(()=>{let{value:t}=n;if(!t)return;let r=t[e];if(r)return r}),s=t(H,null),c=()=>{d(()=>{let{value:t}=r,n=`${t}${e}Rtl`;if(wn(n,i))return;let{value:a}=o;a&&a.style.mount({id:n,head:!0,anchorMetaName:Z,props:{bPrefix:t?`.${t}-`:void 0},ssr:i,parent:s?.styleMountTarget})})};return i?c():a(c),o}var Uo={fontFamily:`v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMono:`v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace`,fontWeight:`400`,fontWeightStrong:`500`,cubicBezierEaseInOut:`cubic-bezier(.4, 0, .2, 1)`,cubicBezierEaseOut:`cubic-bezier(0, 0, .2, 1)`,cubicBezierEaseIn:`cubic-bezier(.4, 0, 1, 1)`,borderRadius:`3px`,borderRadiusSmall:`2px`,fontSize:`14px`,fontSizeMini:`12px`,fontSizeTiny:`12px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,lineHeight:`1.6`,heightMini:`16px`,heightTiny:`22px`,heightSmall:`28px`,heightMedium:`34px`,heightLarge:`40px`,heightHuge:`46px`},{fontSize:Wo,fontFamily:Go,lineHeight:Ko}=Uo,qo=k(`body`,`
|
|
11
|
+
margin: 0;
|
|
12
|
+
font-size: ${Wo};
|
|
13
|
+
font-family: ${Go};
|
|
14
|
+
line-height: ${Ko};
|
|
15
|
+
-webkit-text-size-adjust: 100%;
|
|
16
|
+
-webkit-tap-highlight-color: transparent;
|
|
17
|
+
`,[k(`input`,`
|
|
18
|
+
font-family: inherit;
|
|
19
|
+
font-size: inherit;
|
|
20
|
+
`)]);function Jo(e,n,r){if(!n)return;let i=_r(),o=t(H,null),s=()=>{let t=r.value;n.mount({id:t===void 0?e:t+e,head:!0,anchorMetaName:Z,props:{bPrefix:t?`.${t}-`:void 0},ssr:i,parent:o?.styleMountTarget}),o?.preflightStyleDisabled||qo.mount({id:`n-global`,head:!0,anchorMetaName:Z,ssr:i,parent:o?.styleMountTarget})};i?s():a(s)}function Yo(e){return e}function Xo(e,n,r,i,o,s){let c=_r(),l=t(H,null);if(r){let e=()=>{let e=s?.value;r.mount({id:e===void 0?n:e+n,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:Z,ssr:c,parent:l?.styleMountTarget}),l?.preflightStyleDisabled||qo.mount({id:`n-global`,head:!0,anchorMetaName:Z,ssr:c,parent:l?.styleMountTarget})};c?e():a(e)}return y(()=>{let{theme:{common:t,self:n,peers:r={}}={},themeOverrides:a={},builtinThemeOverrides:s={}}=o,{common:c,peers:u}=a,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=l?.mergedThemeRef.value||{},{common:ee=void 0,[e]:h={}}=l?.mergedThemeOverridesRef.value||{},{common:g,peers:_={}}=h,v=Vo({},t||f||d||i.common,ee,g,c);return{common:v,self:Vo((n||p||i.self)?.(v),s,h,a),peers:Vo({},i.peers,m,r),peerOverrides:Vo({},s.peers,_,u)}})}Xo.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Zo=_e({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=ur();return()=>x(Ne,{name:`icon-switch-transition`,appear:n.value},t)}}),{cubicBezierEaseInOut:Qo}=Uo;function $o({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${Qo} !important`}={}){return[k(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),k(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),k(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var es=k([k(`@keyframes rotator`,`
|
|
21
|
+
0% {
|
|
22
|
+
-webkit-transform: rotate(0deg);
|
|
23
|
+
transform: rotate(0deg);
|
|
24
|
+
}
|
|
25
|
+
100% {
|
|
26
|
+
-webkit-transform: rotate(360deg);
|
|
27
|
+
transform: rotate(360deg);
|
|
28
|
+
}`),jn(`base-loading`,`
|
|
29
|
+
position: relative;
|
|
30
|
+
line-height: 0;
|
|
31
|
+
width: 1em;
|
|
32
|
+
height: 1em;
|
|
33
|
+
`,[Mn(`transition-wrapper`,`
|
|
34
|
+
position: absolute;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
`,[$o()]),Mn(`placeholder`,`
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: 50%;
|
|
40
|
+
top: 50%;
|
|
41
|
+
transform: translateX(-50%) translateY(-50%);
|
|
42
|
+
`,[$o({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),Mn(`container`,`
|
|
43
|
+
animation: rotator 3s linear infinite both;
|
|
44
|
+
`,[Mn(`icon`,`
|
|
45
|
+
height: 1em;
|
|
46
|
+
width: 1em;
|
|
47
|
+
`)])])]),ts=`1.6s`,ns={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}},rs=_e({name:`BaseLoading`,props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0}},ns),setup(e){Jo(`-base-loading`,es,m(e,`clsPrefix`))},render(){let{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:i}=this,a=t/i;return x(`div`,{class:`${e}-base-loading`,role:`img`,"aria-label":`loading`},x(Zo,null,{default:()=>this.show?x(`div`,{key:`icon`,class:`${e}-base-loading__transition-wrapper`},x(`div`,{class:`${e}-base-loading__container`},x(`svg`,{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r}},x(`g`,null,x(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};270 ${a} ${a}`,begin:`0s`,dur:ts,fill:`freeze`,repeatCount:`indefinite`}),x(`circle`,{class:`${e}-base-loading__icon`,fill:`none`,stroke:`currentColor`,"stroke-width":n,"stroke-linecap":`round`,cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},x(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:`0s`,dur:ts,fill:`freeze`,repeatCount:`indefinite`}),x(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*t};${1.42*t};${5.67*t}`,begin:`0s`,dur:ts,fill:`freeze`,repeatCount:`indefinite`})))))):x(`div`,{key:`placeholder`,class:`${e}-base-loading__placeholder`},this.$slots)}))}}),Q={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},is=L(Q.neutralBase),as=L(Q.neutralInvertBase),os=`rgba(${as.slice(0,3).join(`, `)}, `;function ss(e){return`${os+String(e)})`}function $(e){let t=Array.from(as);return t[3]=Number(e),ir(is,t)}var cs=Object.assign(Object.assign({name:`common`},Uo),{baseColor:Q.neutralBase,primaryColor:Q.primaryDefault,primaryColorHover:Q.primaryHover,primaryColorPressed:Q.primaryActive,primaryColorSuppl:Q.primarySuppl,infoColor:Q.infoDefault,infoColorHover:Q.infoHover,infoColorPressed:Q.infoActive,infoColorSuppl:Q.infoSuppl,successColor:Q.successDefault,successColorHover:Q.successHover,successColorPressed:Q.successActive,successColorSuppl:Q.successSuppl,warningColor:Q.warningDefault,warningColorHover:Q.warningHover,warningColorPressed:Q.warningActive,warningColorSuppl:Q.warningSuppl,errorColor:Q.errorDefault,errorColorHover:Q.errorHover,errorColorPressed:Q.errorActive,errorColorSuppl:Q.errorSuppl,textColorBase:Q.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:$(Q.alpha4),placeholderColor:$(Q.alpha4),placeholderColorDisabled:$(Q.alpha5),iconColor:$(Q.alpha4),iconColorHover:or($(Q.alpha4),{lightness:.75}),iconColorPressed:or($(Q.alpha4),{lightness:.9}),iconColorDisabled:$(Q.alpha5),opacity1:Q.alpha1,opacity2:Q.alpha2,opacity3:Q.alpha3,opacity4:Q.alpha4,opacity5:Q.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:$(Number(Q.alphaClose)),closeIconColorHover:$(Number(Q.alphaClose)),closeIconColorPressed:$(Number(Q.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:$(Q.alpha4),clearColorHover:or($(Q.alpha4),{lightness:.75}),clearColorPressed:or($(Q.alpha4),{lightness:.9}),scrollbarColor:ss(Q.alphaScrollbar),scrollbarColorHover:ss(Q.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:$(Q.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Q.neutralPopover,tableColor:Q.neutralCard,cardColor:Q.neutralCard,modalColor:Q.neutralModal,bodyColor:Q.neutralBody,tagColor:`#eee`,avatarColor:$(Q.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:$(Q.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:Q.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),ls=fr&&`chrome`in window;fr&&navigator.userAgent.includes(`Firefox`);var us=fr&&navigator.userAgent.includes(`Safari`)&&!ls,ds=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{_r as $,di as A,kr as B,Qi as C,Je as Ct,Fi as D,Ii as E,W as F,V as G,Tr as H,Ur as I,Sr as J,wr as K,Mr as L,Gr as M,G as N,Di as O,Wr as P,vr as Q,U as R,Aa as S,It as St,Bi as T,zt as Tt,Er as U,Dr as V,H as W,br as X,Cr as Y,yr as Z,X as _,Cn as _t,ns as a,ir as at,Na as b,Tt as bt,Yo as c,k as ct,Uo as d,Mn as dt,fr as et,Ho as f,Nn as ft,ko as g,In as gt,Po as h,Fn as ht,rs as i,ar as it,ti as j,Ti as k,Xo as l,jn as lt,Vo as m,zn as mt,us as n,ur as nt,$o as o,L as ot,Z as p,Pn as pt,xr as q,cs as r,lr as rt,Zo as s,Ln as st,ds as t,dr as tt,Jo as u,Rn as ut,Y as v,mn as vt,qi as w,Vt as wt,Ma as x,Gt as xt,to as y,Ne as yt,Or as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./MarkdownRenderer-DNP-kPA8.js";import{tt as t}from"./runtime-core.esm-bundler-yNW65ghW.js";import{n}from"./pinia-tE0RcsDr.js";import{n as r}from"./client-
|
|
1
|
+
import{n as e}from"./MarkdownRenderer-DNP-kPA8.js";import{tt as t}from"./runtime-core.esm-bundler-yNW65ghW.js";import{n}from"./pinia-tE0RcsDr.js";import{n as r}from"./client-kwQ0ijpp.js";async function i(){return r(`/health`)}async function a(){return r(`/api/available-models`)}async function o(e){await r(`/api/config/model`,{method:`PUT`,body:JSON.stringify(e)})}var s=e({useAppStore:()=>c}),c=n(`app`,()=>{let e=t(!1),n=t(``),r=t([]),s=t(``),c=t(),l=t(!0),u=t(!0),d=t(4096);async function f(){try{let t=await i();e.value=!0,t.version&&(n.value=t.version)}catch{e.value=!1}}async function p(){try{let e=await a();r.value=e.groups,s.value=e.default}catch{}}async function m(e,t){try{let n=r.value.find(t=>t.models.includes(e));await o({default:e,provider:t||n?.provider||``}),s.value=e}catch(e){console.error(`Failed to switch model:`,e)}}function h(e=3e4){g(),f(),c.value=setInterval(f,e)}function g(){c.value&&=(clearInterval(c.value),void 0)}return{connected:e,serverVersion:n,modelGroups:r,selectedModel:s,streamEnabled:l,sessionPersistence:u,maxTokens:d,checkConnection:f,loadModels:p,switchModel:m,startHealthPolling:h,stopHealthPolling:g}});export{c as n,s as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-JRkV5-Ft.js","assets/MarkdownRenderer-DNP-kPA8.js","assets/runtime-core.esm-bundler-yNW65ghW.js","assets/MarkdownRenderer-CrMwC_5d.css","assets/pinia-tE0RcsDr.js","assets/client-kwQ0ijpp.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{tt as e}from"./runtime-core.esm-bundler-yNW65ghW.js";import{n as t}from"./pinia-tE0RcsDr.js";import{m as n}from"./Modal-BtRuxNI4.js";import{n as r,t as i}from"./client-kwQ0ijpp.js";import{n as a}from"./app-JRkV5-Ft.js";var o=`/assets/logo-BAarh-tH.png`;async function s(e){return r(`/v1/runs`,{method:`POST`,body:JSON.stringify(e)})}function c(e,t,n,r){let a=`${i()}/v1/runs/${e}/events`,o=!1,s=new EventSource(a);return s.onmessage=e=>{if(!o)try{let r=JSON.parse(e.data);t(r),(r.event===`run.completed`||r.event===`run.failed`)&&(o=!0,s.close(),n())}catch{t({event:`message`,delta:e.data})}},s.onerror=()=>{o||(o=!0,s.close(),r(Error(`SSE connection error`)))},{abort:()=>{o||(o=!0,s.close())}}}async function l(e,t){let n=new URLSearchParams;e&&n.set(`source`,e),t&&n.set(`limit`,String(t));let i=n.toString();return(await r(`/api/sessions${i?`?${i}`:``}`)).sessions}async function u(e){try{return(await r(`/api/sessions/${e}`)).session}catch{return null}}async function d(e){try{return await r(`/api/sessions/${e}`,{method:`DELETE`}),!0}catch{return!1}}async function f(e,t){try{return await r(`/api/sessions/${e}/rename`,{method:`POST`,body:JSON.stringify({title:t})}),!0}catch{return!1}}function p(){return Date.now().toString(36)+Math.random().toString(36).slice(2,8)}async function m(e){if(e.length===0)return[];let t=new FormData;for(let n of e)n.file&&t.append(`file`,n.file,n.name);let n=await fetch(`/upload`,{method:`POST`,body:t});if(!n.ok)throw Error(`Upload failed: ${n.status}`);return(await n.json()).files}function h(e){let t=new Map,n=new Map;for(let r of e)if(r.role===`assistant`&&r.tool_calls)for(let e of r.tool_calls)e.id&&(e.function?.name&&t.set(e.id,e.function.name),e.function?.arguments&&n.set(e.id,e.function.arguments));let r=[];for(let i of e){if(i.role===`assistant`&&i.tool_calls?.length&&!i.content?.trim()){for(let e of i.tool_calls)r.push({id:String(i.id)+`_`+e.id,role:`tool`,content:``,timestamp:Math.round(i.timestamp*1e3),toolName:e.function?.name||`Tool`,toolArgs:e.function?.arguments||void 0,toolStatus:`done`});continue}if(i.role===`tool`){let e=i.tool_call_id||``,a=i.tool_name||t.get(e)||`Tool`,o=n.get(e)||void 0,s=``;if(i.content)try{let e=JSON.parse(i.content);s=e.url||e.title||e.preview||e.summary||``}catch{s=i.content.slice(0,80)}let c=r.findIndex(t=>t.role===`tool`&&t.toolName===a&&!t.toolResult&&t.id.includes(`_`+e));c!==-1&&r.splice(c,1),r.push({id:String(i.id),role:`tool`,content:``,timestamp:Math.round(i.timestamp*1e3),toolName:a,toolArgs:o,toolPreview:typeof s==`string`&&s.slice(0,100)||void 0,toolResult:i.content||void 0,toolStatus:`done`});continue}r.push({id:String(i.id),role:i.role,content:i.content||``,timestamp:Math.round(i.timestamp*1e3)})}return r}function g(e){return{id:e.id,title:e.title||`New Chat`,source:e.source||void 0,messages:[],createdAt:Math.round(e.started_at*1e3),updatedAt:Math.round((e.ended_at||e.started_at)*1e3),model:e.model,provider:e.billing_provider||``,messageCount:e.message_count}}var _=t(`chat`,()=>{let t=e([]),r=e(null),i=e(!1),o=e(null),f=e(!1),_=e(!1),v=e(null),y=e([]);async function b(){f.value=!0;try{t.value=(await l()).map(g),!r.value&&t.value.length>0&&await S(t.value[0].id)}catch(e){console.error(`Failed to load sessions:`,e)}finally{f.value=!1}}function x(){let e={id:p(),title:`New Chat`,source:`api_server`,messages:[],createdAt:Date.now(),updatedAt:Date.now()};return t.value.unshift(e),e}async function S(e){if(r.value=e,v.value=t.value.find(t=>t.id===e)||null,v.value&&v.value.messages.length===0){_.value=!0;try{let t=await u(e);if(t&&t.messages){let e=h(t.messages);if(v.value.messages=e,t.title)v.value.title=t.title;else{let t=e.find(e=>e.role===`user`);if(t){let e=t.content.slice(0,40);v.value.title=e+(t.content.length>40?`...`:``)}}}}catch(e){console.error(`Failed to load session messages:`,e)}finally{_.value=!1}}y.value=v.value?[...v.value.messages]:[]}function C(){if(i.value)return;let e=x();e.model=a().selectedModel||void 0,S(e.id)}async function w(e,t){if(v.value&&(v.value.model=e,v.value.provider=t||``,t)){let{useAppStore:r}=await n(async()=>{let{useAppStore:e}=await import(`./app-JRkV5-Ft.js`).then(e=>e.t);return{useAppStore:e}},__vite__mapDeps([0,1,2,3,4,5]));await r().switchModel(e,t)}}async function T(e){await d(e),t.value=t.value.filter(t=>t.id!==e),r.value===e&&(t.value.length>0?await S(t.value[0].id):S(x().id))}function E(e){y.value.push(e)}function D(e,t){let n=y.value.findIndex(t=>t.id===e);n!==-1&&(y.value[n]={...y.value[n],...t})}function O(){if(v.value){if(v.value.title===`New Chat`){let e=y.value.find(e=>e.role===`user`);if(e){let t=e.attachments?.length?e.attachments.map(e=>e.name).join(`, `):e.content;v.value.title=t.slice(0,40)+(t.length>40?`...`:``)}}v.value.updatedAt=Date.now()}}async function k(e,t){if(!(!e.trim()&&!(t&&t.length>0)||i.value)){v.value||S(x().id),E({id:p(),role:`user`,content:e.trim(),timestamp:Date.now(),attachments:t&&t.length>0?t:void 0}),O(),i.value=!0;try{let n=y.value.filter(e=>(e.role===`user`||e.role===`assistant`)&&e.content.trim()).map(e=>({role:e.role,content:e.content})),r=e.trim();if(t&&t.length>0){let e=(await m(t)).map(e=>`[File: ${e.name}](${e.path})`);r=r?r+`
|
|
3
|
+
|
|
4
|
+
`+e.join(`
|
|
5
|
+
`):e.join(`
|
|
6
|
+
`)}let l=a(),u=v.value?.model||l.selectedModel,d=await s({input:r,conversation_history:n,session_id:v.value?.id,model:u||void 0}),f=d.run_id||d.id;if(!f){E({id:p(),role:`system`,content:`Error: startRun returned no run ID. Response: ${JSON.stringify(d)}`,timestamp:Date.now()}),i.value=!1;return}o.value=c(f,e=>{switch(e.event){case`run.started`:break;case`message.delta`:{let t=y.value[y.value.length-1];t?.role===`assistant`&&t.isStreaming?t.content+=e.delta||``:E({id:p(),role:`assistant`,content:e.delta||``,timestamp:Date.now(),isStreaming:!0});break}case`tool.started`:{let t=y.value[y.value.length-1];t?.isStreaming&&D(t.id,{isStreaming:!1}),E({id:p(),role:`tool`,content:``,timestamp:Date.now(),toolName:e.tool||e.name,toolPreview:e.preview,toolStatus:`running`});break}case`tool.completed`:{let e=y.value.filter(e=>e.role===`tool`&&e.toolStatus===`running`);if(e.length>0){let t=e[e.length-1];D(t.id,{toolStatus:`done`})}break}case`run.completed`:let t=y.value[y.value.length-1];t?.isStreaming&&D(t.id,{isStreaming:!1}),i.value=!1,o.value=null,O();break;case`run.failed`:let n=y.value[y.value.length-1];n?.isStreaming?D(n.id,{isStreaming:!1,content:e.error?`Error: ${e.error}`:`Run failed`,role:`system`}):E({id:p(),role:`system`,content:e.error?`Error: ${e.error}`:`Run failed`,timestamp:Date.now()}),y.value.forEach((e,t)=>{e.role===`tool`&&e.toolStatus===`running`&&(y.value[t]={...e,toolStatus:`error`})}),i.value=!1,o.value=null;break}},()=>{let e=y.value[y.value.length-1];e?.isStreaming&&D(e.id,{isStreaming:!1}),i.value=!1,o.value=null,O()},e=>{let t=y.value[y.value.length-1];t?.isStreaming?D(t.id,{isStreaming:!1,content:`Error: ${e.message}`,role:`system`}):E({id:p(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,o.value=null})}catch(e){E({id:p(),role:`system`,content:`Error: ${e.message}`,timestamp:Date.now()}),i.value=!1,o.value=null}}}function A(){o.value?.abort(),i.value=!1;let e=y.value[y.value.length-1];e?.isStreaming&&D(e.id,{isStreaming:!1}),o.value=null}return b(),{sessions:t,activeSessionId:r,activeSession:v,messages:y,isStreaming:i,isLoadingSessions:f,isLoadingMessages:_,newChat:C,switchSession:S,switchSessionModel:w,deleteSession:T,sendMessage:k,stopStreaming:A,loadSessions:b}});export{f as n,o as r,_ as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-core.esm-bundler-yNW65ghW.js";import{B as c,H as l,K as u,V as d,X as f,Y as p,at as m,bt as h,ct as g,d as _,dt as v,et as y,f as b,ft as x,i as S,it as C,l as w,lt as T,mt as E,n as D,o as O,pt as k,r as A,rt as j,s as M,tt as N,u as P,yt as F}from"./_plugin-vue_export-helper-
|
|
1
|
+
import{C as e,E as t,at as n,k as r,l as i,tt as a,v as o,x as s}from"./runtime-core.esm-bundler-yNW65ghW.js";import{B as c,H as l,K as u,V as d,X as f,Y as p,at as m,bt as h,ct as g,d as _,dt as v,et as y,f as b,ft as x,i as S,it as C,l as w,lt as T,mt as E,n as D,o as O,pt as k,r as A,rt as j,s as M,tt as N,u as P,yt as F}from"./_plugin-vue_export-helper-BrYOyDjU.js";function I(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}var L=o({name:`FadeInExpandTransition`,props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function o(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:c,width:l,appear:u,mode:d}=e,f=c?h:F,p={name:l?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:u,onEnter:a,onAfterEnter:o,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return c||(p.mode=d),s(f,p,t)}}}),{cubicBezierEaseInOut:R}=_;function z({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
|
2
2
|
opacity: 0!important;
|
|
3
3
|
margin-left: 0!important;
|
|
4
4
|
margin-right: 0!important;
|