hermes-web-ui 0.3.1 → 0.3.3
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/client/assets/{Add-cXqy3eJz.js → Add-CIZmky1Q.js} +1 -1
- package/dist/client/assets/{Button-BeWnBoDR.js → Button-Cpfqx5bj.js} +1 -1
- package/dist/client/assets/{ChannelsView-Do43S3tP.css → ChannelsView-CSo2o-P4.css} +1 -1
- package/dist/client/assets/ChannelsView-CqgEMY6f.js +1 -0
- package/dist/client/assets/{ChatView-CqA3Wo54.js → ChatView-o_KHRYai.js} +1 -1
- package/dist/client/assets/{Close-ySsuLJTC.js → Close-Dx71Ggz9.js} +1 -1
- package/dist/client/assets/{FormItem-EcbFnIOF.js → FormItem-D0pABOgK.js} +1 -1
- package/dist/client/assets/{Input-DP5LDvGa.js → Input-DmGT4Mu3.js} +1 -1
- package/dist/client/assets/{InputNumber-CU7XKbbt.js → InputNumber-CQVOZP6a.js} +1 -1
- package/dist/client/assets/JobsView-BwxWBXo3.js +2 -0
- package/dist/client/assets/{JobsView-CvuV9mZY.css → JobsView-CVx2Yv-y.css} +1 -1
- package/dist/client/assets/{LoginView-CDJXoOEZ.js → LoginView-C4Id2mSY.js} +1 -1
- package/dist/client/assets/{LogsView-DS_E9xkh.js → LogsView-H_gfkSSN.js} +1 -1
- package/dist/client/assets/{MarkdownRenderer-BntkPd0f.js → MarkdownRenderer-DJK1b6T2.js} +1 -1
- package/dist/client/assets/{MemoryView-CCCXW1tv.js → MemoryView-DO4Y2le5.js} +1 -1
- package/dist/client/assets/{Modal-D_vF9k8c.js → Modal-fhZL63EZ.js} +1 -1
- package/dist/client/assets/ModelsView-9CSt8tCa.js +1 -0
- package/dist/client/assets/{ModelsView-BhNEZwC0.css → ModelsView-D1p_2trx.css} +1 -1
- package/dist/client/assets/{Popconfirm-IKYJxM7n.js → Popconfirm-CLvbZW3I.js} +1 -1
- package/dist/client/assets/{Popover-BLBLYanQ.js → Popover-Dwi5NArH.js} +1 -1
- package/dist/client/assets/{ProfilesView-qt3NXito.js → ProfilesView-R_u1mtsl.js} +1 -1
- package/dist/client/assets/{Scrollbar-DZGif2x4.js → Scrollbar-zYdleApO.js} +1 -1
- package/dist/client/assets/{Select-3KS3TLPL.js → Select-0jFWg4Lf.js} +1 -1
- package/dist/client/assets/{SettingRow-D26AUezg.js → SettingRow-LTP_cMLl.js} +1 -1
- package/dist/client/assets/{SettingsView-30x1265A.js → SettingsView-5o2GfsQf.js} +2 -2
- package/dist/client/assets/{SettingsView-C78xbLXK.css → SettingsView-BIEQOPzq.css} +1 -1
- package/dist/client/assets/{SkillsView-qq8Oz7fo.js → SkillsView-Cez6jHIn.js} +1 -1
- package/dist/client/assets/{Spin-C9izy3tZ.js → Spin-CfKqXT5a.js} +1 -1
- package/dist/client/assets/{Suffix-CIX5CF-j.js → Suffix-jKQO068E.js} +1 -1
- package/dist/client/assets/{Switch-D9x35tOv.js → Switch-tk7Pkw6L.js} +1 -1
- package/dist/client/assets/{TerminalView-zaRNn2aX.js → TerminalView-C-oFmyFh.js} +1 -1
- package/dist/client/assets/{Tooltip-A5--U35v.js → Tooltip-Dc4tc92D.js} +1 -1
- package/dist/client/assets/{UsageView-DQ3t8CHE.js → UsageView-SSxSWAFO.js} +1 -1
- package/dist/client/assets/{Warning-BZfjWCrB.js → Warning-BPlnDrmx.js} +1 -1
- package/dist/client/assets/{_plugin-vue_export-helper-B4hqCVU_.js → _plugin-vue_export-helper-CcX4e_Is.js} +1 -1
- package/dist/client/assets/{app-DG_zFxqi.js → app-CcLe99Xa.js} +1 -1
- package/dist/client/assets/app-ML9hRyDO.js +1 -0
- package/dist/client/assets/{browser-BanYmQkE.js → browser-BfJIjfY3.js} +1 -1
- package/dist/client/assets/{chat-C6pq-bYQ.js → chat-CuVG21Hv.js} +2 -2
- package/dist/client/assets/composables-BTIEu8ZB.js +1 -0
- package/dist/client/assets/{fade-in-scale-up.cssr-B100njI2.js → fade-in-scale-up.cssr-e30I2JjN.js} +1 -1
- package/dist/client/assets/index-XufFb2mL.js +284 -0
- package/dist/client/assets/{jobs-DK_GVjqW.js → jobs-LBrAH2Mz.js} +1 -1
- package/dist/client/assets/{light-B8HxMQKs.js → light-BF--Dz10.js} +1 -1
- package/dist/client/assets/{light-BT2gqEar.js → light-BJ4xZyd0.js} +1 -1
- package/dist/client/assets/{light-CDN7aXQb.js → light-BLbGAFtS.js} +1 -1
- package/dist/client/assets/{light-Dav3NshO.js → light-CCZMDqco.js} +1 -1
- package/dist/client/assets/{light-BfPLur6t.js → light-CDuRPTUd.js} +1 -1
- package/dist/client/assets/{light-CeMZM90j.js → light-DTBcb4qq.js} +1 -1
- package/dist/client/assets/{pinia-DEKB7D30.js → pinia-D2g49IcO.js} +1 -1
- package/dist/client/assets/{profiles-BSAOLUpt.js → profiles-DbCu_blp.js} +1 -1
- package/dist/client/assets/{router-Zpu1Tghg.js → router-0X4x3p8e.js} +2 -2
- package/dist/client/assets/{sessions-1rFjfO8M.js → sessions-SzjWXR9A.js} +1 -1
- package/dist/client/assets/{skills-Bu5JdqX-.js → skills-CsjvGVsY.js} +1 -1
- package/dist/client/assets/use-compitable-DY4l-k3U.js +1 -0
- package/dist/client/assets/{use-message-CFWjMwGX.js → use-message-4kASja7X.js} +1 -1
- package/dist/client/assets/{useTheme-CHkzsMnk.js → useTheme-Dh7NTo_V.js} +1 -1
- package/dist/client/index.html +27 -27
- package/dist/server/index.js +2 -2
- package/dist/server/routes/hermes/codex-auth.d.ts +2 -0
- package/dist/server/routes/hermes/codex-auth.js +302 -0
- package/dist/server/routes/hermes/config.js +15 -3
- package/dist/server/routes/hermes/filesystem.js +92 -18
- package/dist/server/routes/hermes/index.js +2 -0
- package/dist/server/routes/hermes/logs.js +1 -1
- package/dist/server/routes/hermes/profiles.js +1 -1
- package/dist/server/routes/hermes/sessions.js +1 -1
- package/dist/server/routes/hermes/weixin.js +2 -2
- package/dist/server/routes/webhook.js +1 -1
- package/dist/server/services/hermes/hermes-cli.d.ts +125 -0
- package/dist/server/services/hermes/hermes-cli.js +488 -0
- package/dist/server/services/hermes/hermes-profile.d.ts +22 -0
- package/dist/server/services/hermes/hermes-profile.js +60 -0
- package/dist/server/services/hermes/hermes.d.ts +40 -0
- package/dist/server/services/hermes/hermes.js +118 -0
- package/dist/server/shared/providers.js +64 -20
- package/package.json +4 -1
- package/dist/client/assets/ChannelsView-tUAkDoSF.js +0 -1
- package/dist/client/assets/JobsView-g3zcs8_m.js +0 -2
- package/dist/client/assets/ModelsView-C8rPRq6p.js +0 -1
- package/dist/client/assets/app-DVQEsGHs.js +0 -1
- package/dist/client/assets/composables-xsQwqT-T.js +0 -1
- package/dist/client/assets/index-DtDTIaVj.js +0 -284
- package/dist/client/assets/use-compitable-Dl0AqAGv.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,K as r,L as i,M as a,N as o,R as s,S as c,U as l,V as u,X as d,Z as f,b as p,ct as m,d as h,dt as g,h as _,j as v,k as y,st as b,v as x,x as S,y as C}from"./router-Zpu1Tghg.js";import{$ as w,A as T,B as ee,C as E,D as te,E as D,F as O,I as k,K as A,M as j,N as M,O as N,P as ne,S as re,T as ie,U as ae,X as oe,Z as se,_ as ce,b as le,c as ue,ct as P,d as de,dt as fe,et as pe,ft as me,g as he,gt as ge,h as _e,j as ve,k as F,lt as ye,m as be,n as xe,p as Se,q as I,s as Ce,st as L,tt as R,ut as we,v as Te,w as Ee,x as De,y as Oe,z as ke}from"./browser-BanYmQkE.js";import{_ as z,d as Ae,g as B,h as je,l as Me,n as Ne,r as Pe,u as Fe,x as Ie}from"./Scrollbar-DZGif2x4.js";import{t as Le}from"./use-compitable-Dl0AqAGv.js";var V=[],Re=new WeakMap;function ze(){V.forEach(e=>e(...Re.get(e))),V=[]}function Be(e,...t){Re.set(e,t),!V.includes(e)&&V.push(e)===1&&requestAnimationFrame(ze)}function Ve(e=8){return Math.random().toString(16).slice(2,2+e)}function He(e){let t=m(!!e.value);if(t.value)return b(t);let n=d(e,e=>{e&&(t.value=!0,n())});return b(t)}function Ue(){return a()!==null}var We=typeof window<`u`,Ge=We?document?.fonts?.ready:void 0,Ke=!1;Ge===void 0?Ke=!0:Ge.then(()=>{Ke=!0});function qe(e){if(Ke)return;let t=!1;l(()=>{Ke||Ge?.then(()=>{t||e()})}),u(()=>{t=!0})}var Je=w(`n-internal-select-menu`),Ye=w(`n-internal-select-menu-body`),Xe=w(`n-drawer-body`);w(`n-drawer`);var Ze=w(`n-modal-body`),Qe=w(`n-modal-provider`),$e=w(`n-modal`),et=w(`n-popover-body`),tt=`__disabled__`;function H(e){let t=n(Ze,null),r=n(Xe,null),i=n(et,null),a=n(Ye,null),o=m();if(typeof document<`u`){o.value=document.fullscreenElement;let e=()=>{o.value=document.fullscreenElement};l(()=>{z(`fullscreenchange`,document,e)}),u(()=>{B(`fullscreenchange`,document,e)})}return R(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:r?.value?r.value:i?.value?i.value:a?.value?a.value:n??(o.value||`body`):n===!1?tt:n===!0?o.value||`body`:n})}H.tdkey=tt,H.propTo={type:[String,Object,Boolean],default:void 0};function nt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function rt(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){rt(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&rt(e.children,t,n)}else e.type!==x&&n.push(e)}}),n}function it(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=rt(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var U=null;function at(){if(U===null&&(U=document.getElementById(`v-binder-view-measurer`),U===null)){U=document.createElement(`div`),U.id=`v-binder-view-measurer`;let{style:e}=U;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(U)}return U.getBoundingClientRect()}function ot(e,t){let n=at();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function st(e){let t=e.getBoundingClientRect(),n=at();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function ct(e){return e.nodeType===9?null:e.parentNode}function lt(e){if(e===null)return null;let t=ct(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return lt(t)}var ut=v({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){r(`VBinder`,a()?.proxy);let t=n(`VBinder`,null),i=m(null),o=n=>{i.value=n,t&&e.syncTargetWithParent&&t.setTargetRef(n)},s=[],c=()=>{let e=i.value;for(;e=lt(e),e!==null;)s.push(e);for(let e of s)z(`scroll`,e,h,!0)},l=()=>{for(let e of s)B(`scroll`,e,h,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},p=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},h=()=>{Be(g)},g=()=>{d.forEach(e=>e())},_=new Set,v=e=>{_.size===0&&z(`resize`,window,b),_.has(e)||_.add(e)},y=e=>{_.has(e)&&_.delete(e),_.size===0&&B(`resize`,window,b)},b=()=>{_.forEach(e=>e())};return u(()=>{B(`resize`,window,b),l()}),{targetRef:i,setTargetRef:o,addScrollListener:f,removeScrollListener:p,addResizeListener:v,removeResizeListener:y}},render(){return nt(`binder`,this.$slots)}}),dt=v({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=n(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:t,setTargetDirective:n}=this;return t?e(it(`follower`,this.$slots),[[n]]):it(`follower`,this.$slots)}}),W=`@@mmoContext`,ft={mounted(e,{value:t}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[W];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[W].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[W];t&&B(`mousemoveoutside`,e,t),e[W].handler=void 0}},G=`@@coContext`,pt={mounted(e,{value:t,modifiers:n}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[G];typeof t==`function`?r.handler?r.handler!==t&&(B(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,z(`clickoutside`,e,t,{capture:n.capture})):(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(B(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[G];n&&B(`clickoutside`,e,n,{capture:t.capture}),e[G].handler=void 0}};function mt(e,t){console.error(`[vdirs/${e}]: ${t}`)}var ht=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&mt(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},K=`@@ziContext`,gt={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[K]={enabled:!!i,initialized:!1},i&&(ht.ensureZIndex(e,r),e[K].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[K].enabled;i&&!a&&(ht.ensureZIndex(e,r),e[K].initialized=!0),e[K].enabled=!!i},unmounted(e,t){if(!e[K].initialized)return;let{value:n={}}=t,{zIndex:r}=n;ht.unregister(e,r)}},{c:q}=ge(),_t=`vueuc-style`;function vt(e){return typeof e==`string`?document.querySelector(e):e()||null}var yt=v({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:He(g(e,`show`)),mergedTo:t(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?nt(`lazy-teleport`,this.$slots):o(p,{disabled:this.disabled,to:this.mergedTo},nt(`lazy-teleport`,this.$slots)):null}}),bt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},xt={start:`end`,center:`center`,end:`start`},St={top:`height`,bottom:`height`,left:`width`,right:`width`},Ct={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},wt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Tt={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Et={top:!0,bottom:!1,left:!0,right:!1},Dt={top:`end`,bottom:`start`,left:`end`,right:`start`};function Ot(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Et[i]?c:-c:o=Et[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Tt[e],i=bt[r],a=St[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=xt[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=xt[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=bt[e],i=St[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Dt[e],l=u(i,e,d)):(c=Dt[r],l=u(i,r,d)))}let f=o;return t[o]<n[St[o]]&&t[o]<t[bt[o]]&&(f=bt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function kt(e,t){return t?wt[e]:Ct[e]}function At(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var jt=q([q(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),q(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[q(`> *`,{pointerEvents:`all`})])]),Mt=v({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=n(`VBinder`),r=R(()=>e.enabled===void 0?e.show:e.enabled),i=m(null),a=m(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(p),n.includes(`resize`)&&t.addResizeListener(p)},c=()=>{t.removeScrollListener(p),t.removeResizeListener(p)};l(()=>{r.value&&(p(),o())});let f=se();jt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:_t,ssr:f}),u(()=>{c()}),qe(()=>{r.value&&p()});let p=()=>{if(!r.value)return;let n=i.value;if(n===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?ot(s,c):st(o);n.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),n.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;n.setAttribute(`v-placement`,p),l?n.setAttribute(`v-overlap`,``):n.removeAttribute(`v-overlap`);let{style:g}=n;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=st(n),v=st(a.value),{left:y,top:b,placement:x}=Ot(p,u,_,m,h,l),S=kt(x,l),{left:C,top:w,transform:T}=At(x,v,u,b,y,l);n.setAttribute(`v-placement`,x),n.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),n.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),n.style.transform=`translateX(${C}) translateY(${w}) ${T}`,n.style.setProperty(`--v-transform-origin`,S),n.style.transformOrigin=S};d(r,e=>{e?(o(),h()):c()});let h=()=>{s().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{d(g(e,t),p)}),[`teleportDisabled`].forEach(t=>{d(g(e,t),h)}),d(g(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(p):t.removeResizeListener(p),e.includes(`scroll`)?t.addScrollListener(p):t.removeScrollListener(p)});let _=pe();return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:i,mergedTo:R(()=>{let{to:t}=e;if(t!==void 0)return t;_.value}),syncPosition:p}},render(){return o(yt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t;let n=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(t=this.$slots).default?.call(t))]);return this.zindexable?e(n,[[gt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});function Nt(e){return e instanceof HTMLElement}function Pt(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Nt(n)&&(It(n)||Pt(n)))return!0}return!1}function Ft(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Nt(n)&&(It(n)||Ft(n)))return!0}return!1}function It(e){if(!Lt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Lt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var J=[],Rt=v({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=Ve(),n=m(null),r=m(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return J[J.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}l(()=>{d(()=>e.active,e=>{e?(h(),z(`keydown`,document,c)):(B(`keydown`,document,c),i&&g())},{immediate:!0})}),u(()=>{B(`keydown`,document,c),i&&g()});function f(e){if(!a&&s()){let t=p();if(t===null||t.contains(Ie(e)))return;_(`first`)}}function p(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function h(){var n;if(!e.disabled){if(J.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?_(`first`):(n=vt(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,f,!0)}}function g(){var n;if(e.disabled||(document.removeEventListener(`focus`,f,!0),J=J.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=vt(r))==null||n.focus({preventScroll:!0})}function _(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=p();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Pt(n):Ft(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function v(e){if(a)return;let t=p();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?_(`last`):_(`first`))}function y(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?_(`last`):_(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:v,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return o(C,null,[o(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),o(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),zt=/^(\d|\.)+$/,Bt=/(\d|\.)+/;function Vt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(zt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Bt.exec(e);return r?e.replace(Bt,String((Number(r[0])+n)*t)):e}return e}var Ht;function Ut(){return Ht===void 0&&(Ht=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ht}function Y(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){Y(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&Y(e.children,t,n)}else{if(e.type===x&&t)return;n.push(e)}}}),n}function Wt(e,t=`default`,n=void 0){let r=e[t];if(!r)return oe(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=Y(r(n));return i.length===1?i[0]:(oe(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Gt(e,t,n){if(!t)return null;let r=Y(t(n));return r.length===1?r[0]:(oe(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function Kt(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}var qt=N(k,`WeakMap`),Jt=Te(Object.keys,Object),Yt=Object.prototype.hasOwnProperty;function Xt(e){if(!E(e))return Jt(e);var t=[];for(var n in Object(e))Yt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Zt(e){return Ee(e)?Oe(e):Xt(e)}var Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/;function en(e,t){if(j(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ae(e)?!0:$t.test(e)||!Qt.test(e)||t!=null&&e in Object(t)}var tn=`Expected a function`;function nn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(tn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(nn.Cache||he),n}nn.Cache=he;var rn=500;function an(e){var t=nn(e,function(e){return n.size===rn&&n.clear(),e}),n=t.cache;return t}var on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/\\(\\)?/g,cn=an(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(on,function(e,n,r,i){t.push(r?i.replace(sn,`$1`):n||e)}),t});function ln(e,t){return j(e)?e:en(e,t)?[e]:cn(Me(e))}var un=1/0;function dn(e){if(typeof e==`string`||Ae(e))return e;var t=e+``;return t==`0`&&1/e==-un?`-0`:t}function fn(e,t){t=ln(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[dn(t[n++])];return n&&n==r?e:void 0}function pn(e,t,n){var r=e==null?void 0:fn(e,t);return r===void 0?n:r}function mn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function hn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function gn(){return[]}var _n=Object.prototype.propertyIsEnumerable,vn=Object.getOwnPropertySymbols,yn=vn?function(e){return e==null?[]:(e=Object(e),hn(vn(e),function(t){return _n.call(e,t)}))}:gn;function bn(e,t,n){var r=t(e);return j(e)?r:mn(r,n(e))}function xn(e){return bn(e,Zt,yn)}var Sn=N(k,`DataView`),Cn=N(k,`Promise`),wn=N(k,`Set`),Tn=`[object Map]`,En=`[object Object]`,Dn=`[object Promise]`,On=`[object Set]`,kn=`[object WeakMap]`,An=`[object DataView]`,jn=F(Sn),Mn=F(ce),Nn=F(Cn),Pn=F(wn),Fn=F(qt),X=ne;(Sn&&X(new Sn(new ArrayBuffer(1)))!=An||ce&&X(new ce)!=Tn||Cn&&X(Cn.resolve())!=Dn||wn&&X(new wn)!=On||qt&&X(new qt)!=kn)&&(X=function(e){var t=ne(e),n=t==En?e.constructor:void 0,r=n?F(n):``;if(r)switch(r){case jn:return An;case Mn:return Tn;case Nn:return Dn;case Pn:return On;case Fn:return kn}return t});var In=X,Ln=`__lodash_hash_undefined__`;function Rn(e){return this.__data__.set(e,Ln),this}function zn(e){return this.__data__.has(e)}function Bn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}Bn.prototype.add=Bn.prototype.push=Rn,Bn.prototype.has=zn;function Vn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Hn(e,t){return e.has(t)}var Un=1,Wn=2;function Gn(e,t,n,r,i,a){var o=n&Un,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Wn?new Bn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Vn(t,function(e,t){if(!Hn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Jn=1,Yn=2,Xn=`[object Boolean]`,Zn=`[object Date]`,Qn=`[object Error]`,$n=`[object Map]`,er=`[object Number]`,tr=`[object RegExp]`,nr=`[object Set]`,rr=`[object String]`,ir=`[object Symbol]`,ar=`[object ArrayBuffer]`,or=`[object DataView]`,sr=O?O.prototype:void 0,cr=sr?sr.valueOf:void 0;function lr(e,t,n,r,i,a,o){switch(n){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ar:return!(e.byteLength!=t.byteLength||!a(new be(e),new be(t)));case Xn:case Zn:case er:return D(+e,+t);case Qn:return e.name==t.name&&e.message==t.message;case tr:case rr:return e==t+``;case $n:var s=Kn;case nr:var c=r&Jn;if(s||=qn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Yn,o.set(e,t);var u=Gn(s(e),s(t),r,i,a,o);return o.delete(e),u;case ir:if(cr)return cr.call(e)==cr.call(t)}return!1}var ur=1,dr=Object.prototype.hasOwnProperty;function fr(e,t,n,r,i,a){var o=n&ur,s=xn(e),c=s.length;if(c!=xn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:dr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var pr=1,mr=`[object Arguments]`,hr=`[object Array]`,gr=`[object Object]`,_r=Object.prototype.hasOwnProperty;function vr(e,t,n,r,i,a){var o=j(e),s=j(t),c=o?hr:In(e),l=s?hr:In(t);c=c==mr?gr:c,l=l==mr?gr:l;var u=c==gr,d=l==gr,f=c==l;if(f&&De(e)){if(!De(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new _e,o||le(e)?Gn(e,t,n,r,i,a):lr(e,t,c,n,r,i,a);if(!(n&pr)){var p=u&&_r.call(e,`__wrapped__`),m=d&&_r.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new _e,i(h,g,n,r,a)}}return f?(a||=new _e,fr(e,t,n,r,i,a)):!1}function yr(e,t,n,r,i){return e===t?!0:e==null||t==null||!M(e)&&!M(t)?e!==e&&t!==t:vr(e,t,n,r,yr,i)}var br=1,xr=2;function Sr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new _e;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yr(u,l,br|xr,r,d):f))return!1}}return!0}function Cr(e){return e===e&&!ve(e)}function wr(e){for(var t=Zt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cr(i)]}return t}function Tr(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Er(e){var t=wr(e);return t.length==1&&t[0][2]?Tr(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function Dr(e,t){return e!=null&&t in Object(e)}function Or(e,t,n){t=ln(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=dn(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ie(i)&&te(o,i)&&(j(e)||re(e)))}function kr(e,t){return e!=null&&Or(e,t,Dr)}var Ar=1,jr=2;function Mr(e,t){return en(e)&&Cr(t)?Tr(dn(e),t):function(n){var r=pn(n,e);return r===void 0&&r===t?kr(n,e):yr(t,r,Ar|jr)}}function Nr(e){return function(t){return t?.[e]}}function Pr(e){return function(t){return fn(t,e)}}function Fr(e){return en(e)?Nr(dn(e)):Pr(e)}function Ir(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?j(e)?Mr(e[0],e[1]):Er(e):Fr(e)}function Lr(e,t){return e&&Se(e,t,Zt)}function Rr(e,t){return function(n,r){if(n==null)return n;if(!Ee(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var zr=Rr(Lr);function Br(e,t){var n=-1,r=Ee(e)?Array(e.length):[];return zr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Vr(e,t){return(j(e)?Fe:Br)(e,Ir(t,3))}var Hr={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Ur(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Hr),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Wr=Ce({name:`Popover`,common:xe,peers:{Scrollbar:Pe},self:Ur}),Gr={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,Kr=L([P(`popover`,`
|
|
1
|
+
import{$ as e,C as t,F as n,K as r,L as i,M as a,N as o,R as s,S as c,U as l,V as u,X as d,Z as f,b as p,ct as m,d as h,dt as g,h as _,j as v,k as y,st as b,v as x,x as S,y as C}from"./router-0X4x3p8e.js";import{$ as w,A as T,B as ee,C as E,D as te,E as D,F as O,I as k,K as A,M as j,N as M,O as N,P as ne,S as re,T as ie,U as ae,X as oe,Z as se,_ as ce,b as le,c as ue,ct as P,d as de,dt as fe,et as pe,ft as me,g as he,gt as ge,h as _e,j as ve,k as F,lt as ye,m as be,n as xe,p as Se,q as I,s as Ce,st as L,tt as R,ut as we,v as Te,w as Ee,x as De,y as Oe,z as ke}from"./browser-BfJIjfY3.js";import{_ as z,d as Ae,g as B,h as je,l as Me,n as Ne,r as Pe,u as Fe,x as Ie}from"./Scrollbar-zYdleApO.js";import{t as Le}from"./use-compitable-DY4l-k3U.js";var V=[],Re=new WeakMap;function ze(){V.forEach(e=>e(...Re.get(e))),V=[]}function Be(e,...t){Re.set(e,t),!V.includes(e)&&V.push(e)===1&&requestAnimationFrame(ze)}function Ve(e=8){return Math.random().toString(16).slice(2,2+e)}function He(e){let t=m(!!e.value);if(t.value)return b(t);let n=d(e,e=>{e&&(t.value=!0,n())});return b(t)}function Ue(){return a()!==null}var We=typeof window<`u`,Ge=We?document?.fonts?.ready:void 0,Ke=!1;Ge===void 0?Ke=!0:Ge.then(()=>{Ke=!0});function qe(e){if(Ke)return;let t=!1;l(()=>{Ke||Ge?.then(()=>{t||e()})}),u(()=>{t=!0})}var Je=w(`n-internal-select-menu`),Ye=w(`n-internal-select-menu-body`),Xe=w(`n-drawer-body`);w(`n-drawer`);var Ze=w(`n-modal-body`),Qe=w(`n-modal-provider`),$e=w(`n-modal`),et=w(`n-popover-body`),tt=`__disabled__`;function H(e){let t=n(Ze,null),r=n(Xe,null),i=n(et,null),a=n(Ye,null),o=m();if(typeof document<`u`){o.value=document.fullscreenElement;let e=()=>{o.value=document.fullscreenElement};l(()=>{z(`fullscreenchange`,document,e)}),u(()=>{B(`fullscreenchange`,document,e)})}return R(()=>{let{to:n}=e;return n===void 0?t?.value?t.value.$el??t.value:r?.value?r.value:i?.value?i.value:a?.value?a.value:n??(o.value||`body`):n===!1?tt:n===!0?o.value||`body`:n})}H.tdkey=tt,H.propTo={type:[String,Object,Boolean],default:void 0};function nt(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function rt(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){rt(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&rt(e.children,t,n)}else e.type!==x&&n.push(e)}}),n}function it(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=rt(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var U=null;function at(){if(U===null&&(U=document.getElementById(`v-binder-view-measurer`),U===null)){U=document.createElement(`div`),U.id=`v-binder-view-measurer`;let{style:e}=U;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(U)}return U.getBoundingClientRect()}function ot(e,t){let n=at();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function st(e){let t=e.getBoundingClientRect(),n=at();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function ct(e){return e.nodeType===9?null:e.parentNode}function lt(e){if(e===null)return null;let t=ct(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return lt(t)}var ut=v({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){r(`VBinder`,a()?.proxy);let t=n(`VBinder`,null),i=m(null),o=n=>{i.value=n,t&&e.syncTargetWithParent&&t.setTargetRef(n)},s=[],c=()=>{let e=i.value;for(;e=lt(e),e!==null;)s.push(e);for(let e of s)z(`scroll`,e,h,!0)},l=()=>{for(let e of s)B(`scroll`,e,h,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},p=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},h=()=>{Be(g)},g=()=>{d.forEach(e=>e())},_=new Set,v=e=>{_.size===0&&z(`resize`,window,b),_.has(e)||_.add(e)},y=e=>{_.has(e)&&_.delete(e),_.size===0&&B(`resize`,window,b)},b=()=>{_.forEach(e=>e())};return u(()=>{B(`resize`,window,b),l()}),{targetRef:i,setTargetRef:o,addScrollListener:f,removeScrollListener:p,addResizeListener:v,removeResizeListener:y}},render(){return nt(`binder`,this.$slots)}}),dt=v({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=n(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:t,setTargetDirective:n}=this;return t?e(it(`follower`,this.$slots),[[n]]):it(`follower`,this.$slots)}}),W=`@@mmoContext`,ft={mounted(e,{value:t}){e[W]={handler:void 0},typeof t==`function`&&(e[W].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[W];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[W].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[W];t&&B(`mousemoveoutside`,e,t),e[W].handler=void 0}},G=`@@coContext`,pt={mounted(e,{value:t,modifiers:n}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[G];typeof t==`function`?r.handler?r.handler!==t&&(B(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,z(`clickoutside`,e,t,{capture:n.capture})):(e[G].handler=t,z(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(B(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[G];n&&B(`clickoutside`,e,n,{capture:t.capture}),e[G].handler=void 0}};function mt(e,t){console.error(`[vdirs/${e}]: ${t}`)}var ht=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&mt(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},K=`@@ziContext`,gt={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[K]={enabled:!!i,initialized:!1},i&&(ht.ensureZIndex(e,r),e[K].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[K].enabled;i&&!a&&(ht.ensureZIndex(e,r),e[K].initialized=!0),e[K].enabled=!!i},unmounted(e,t){if(!e[K].initialized)return;let{value:n={}}=t,{zIndex:r}=n;ht.unregister(e,r)}},{c:q}=ge(),_t=`vueuc-style`;function vt(e){return typeof e==`string`?document.querySelector(e):e()||null}var yt=v({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:He(g(e,`show`)),mergedTo:t(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?nt(`lazy-teleport`,this.$slots):o(p,{disabled:this.disabled,to:this.mergedTo},nt(`lazy-teleport`,this.$slots)):null}}),bt={top:`bottom`,bottom:`top`,left:`right`,right:`left`},xt={start:`end`,center:`center`,end:`start`},St={top:`height`,bottom:`height`,left:`width`,right:`width`},Ct={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},wt={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Tt={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Et={top:!0,bottom:!1,left:!0,right:!1},Dt={top:`end`,bottom:`start`,left:`end`,right:`start`};function Ot(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Et[i]?c:-c:o=Et[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Tt[e],i=bt[r],a=St[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=xt[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=xt[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=bt[e],i=St[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=Dt[e],l=u(i,e,d)):(c=Dt[r],l=u(i,r,d)))}let f=o;return t[o]<n[St[o]]&&t[o]<t[bt[o]]&&(f=bt[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function kt(e,t){return t?wt[e]:Ct[e]}function At(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var jt=q([q(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),q(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[q(`> *`,{pointerEvents:`all`})])]),Mt=v({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=n(`VBinder`),r=R(()=>e.enabled===void 0?e.show:e.enabled),i=m(null),a=m(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(p),n.includes(`resize`)&&t.addResizeListener(p)},c=()=>{t.removeScrollListener(p),t.removeResizeListener(p)};l(()=>{r.value&&(p(),o())});let f=se();jt.mount({id:`vueuc/binder`,head:!0,anchorMetaName:_t,ssr:f}),u(()=>{c()}),qe(()=>{r.value&&p()});let p=()=>{if(!r.value)return;let n=i.value;if(n===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?ot(s,c):st(o);n.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),n.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;n.setAttribute(`v-placement`,p),l?n.setAttribute(`v-overlap`,``):n.removeAttribute(`v-overlap`);let{style:g}=n;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=st(n),v=st(a.value),{left:y,top:b,placement:x}=Ot(p,u,_,m,h,l),S=kt(x,l),{left:C,top:w,transform:T}=At(x,v,u,b,y,l);n.setAttribute(`v-placement`,x),n.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),n.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),n.style.transform=`translateX(${C}) translateY(${w}) ${T}`,n.style.setProperty(`--v-transform-origin`,S),n.style.transformOrigin=S};d(r,e=>{e?(o(),h()):c()});let h=()=>{s().then(p).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{d(g(e,t),p)}),[`teleportDisabled`].forEach(t=>{d(g(e,t),h)}),d(g(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(p):t.removeResizeListener(p),e.includes(`scroll`)?t.addScrollListener(p):t.removeScrollListener(p)});let _=pe();return{VBinder:t,mergedEnabled:r,offsetContainerRef:a,followerRef:i,mergedTo:R(()=>{let{to:t}=e;if(t!==void 0)return t;_.value}),syncPosition:p}},render(){return o(yt,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t;let n=o(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[o(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(t=this.$slots).default?.call(t))]);return this.zindexable?e(n,[[gt,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});function Nt(e){return e instanceof HTMLElement}function Pt(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Nt(n)&&(It(n)||Pt(n)))return!0}return!1}function Ft(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Nt(n)&&(It(n)||Ft(n)))return!0}return!1}function It(e){if(!Lt(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Lt(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var J=[],Rt=v({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=Ve(),n=m(null),r=m(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return J[J.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}l(()=>{d(()=>e.active,e=>{e?(h(),z(`keydown`,document,c)):(B(`keydown`,document,c),i&&g())},{immediate:!0})}),u(()=>{B(`keydown`,document,c),i&&g()});function f(e){if(!a&&s()){let t=p();if(t===null||t.contains(Ie(e)))return;_(`first`)}}function p(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function h(){var n;if(!e.disabled){if(J.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?_(`first`):(n=vt(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,f,!0)}}function g(){var n;if(e.disabled||(document.removeEventListener(`focus`,f,!0),J=J.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=vt(r))==null||n.focus({preventScroll:!0})}function _(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=p();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Pt(n):Ft(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function v(e){if(a)return;let t=p();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?_(`last`):_(`first`))}function y(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?_(`last`):_(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:v,handleEndFocus:y}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return o(C,null,[o(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),o(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),zt=/^(\d|\.)+$/,Bt=/(\d|\.)+/;function Vt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(zt.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=Bt.exec(e);return r?e.replace(Bt,String((Number(r[0])+n)*t)):e}return e}var Ht;function Ut(){return Ht===void 0&&(Ht=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ht}function Y(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(y(String(e)));return}if(Array.isArray(e)){Y(e,t,n);return}if(e.type===C){if(e.children===null)return;Array.isArray(e.children)&&Y(e.children,t,n)}else{if(e.type===x&&t)return;n.push(e)}}}),n}function Wt(e,t=`default`,n=void 0){let r=e[t];if(!r)return oe(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=Y(r(n));return i.length===1?i[0]:(oe(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function Gt(e,t,n){if(!t)return null;let r=Y(t(n));return r.length===1?r[0]:(oe(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function Kt(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}var qt=N(k,`WeakMap`),Jt=Te(Object.keys,Object),Yt=Object.prototype.hasOwnProperty;function Xt(e){if(!E(e))return Jt(e);var t=[];for(var n in Object(e))Yt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Zt(e){return Ee(e)?Oe(e):Xt(e)}var Qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$t=/^\w*$/;function en(e,t){if(j(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Ae(e)?!0:$t.test(e)||!Qt.test(e)||t!=null&&e in Object(t)}var tn=`Expected a function`;function nn(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(tn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(nn.Cache||he),n}nn.Cache=he;var rn=500;function an(e){var t=nn(e,function(e){return n.size===rn&&n.clear(),e}),n=t.cache;return t}var on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/\\(\\)?/g,cn=an(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(on,function(e,n,r,i){t.push(r?i.replace(sn,`$1`):n||e)}),t});function ln(e,t){return j(e)?e:en(e,t)?[e]:cn(Me(e))}var un=1/0;function dn(e){if(typeof e==`string`||Ae(e))return e;var t=e+``;return t==`0`&&1/e==-un?`-0`:t}function fn(e,t){t=ln(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[dn(t[n++])];return n&&n==r?e:void 0}function pn(e,t,n){var r=e==null?void 0:fn(e,t);return r===void 0?n:r}function mn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function hn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function gn(){return[]}var _n=Object.prototype.propertyIsEnumerable,vn=Object.getOwnPropertySymbols,yn=vn?function(e){return e==null?[]:(e=Object(e),hn(vn(e),function(t){return _n.call(e,t)}))}:gn;function bn(e,t,n){var r=t(e);return j(e)?r:mn(r,n(e))}function xn(e){return bn(e,Zt,yn)}var Sn=N(k,`DataView`),Cn=N(k,`Promise`),wn=N(k,`Set`),Tn=`[object Map]`,En=`[object Object]`,Dn=`[object Promise]`,On=`[object Set]`,kn=`[object WeakMap]`,An=`[object DataView]`,jn=F(Sn),Mn=F(ce),Nn=F(Cn),Pn=F(wn),Fn=F(qt),X=ne;(Sn&&X(new Sn(new ArrayBuffer(1)))!=An||ce&&X(new ce)!=Tn||Cn&&X(Cn.resolve())!=Dn||wn&&X(new wn)!=On||qt&&X(new qt)!=kn)&&(X=function(e){var t=ne(e),n=t==En?e.constructor:void 0,r=n?F(n):``;if(r)switch(r){case jn:return An;case Mn:return Tn;case Nn:return Dn;case Pn:return On;case Fn:return kn}return t});var In=X,Ln=`__lodash_hash_undefined__`;function Rn(e){return this.__data__.set(e,Ln),this}function zn(e){return this.__data__.has(e)}function Bn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}Bn.prototype.add=Bn.prototype.push=Rn,Bn.prototype.has=zn;function Vn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Hn(e,t){return e.has(t)}var Un=1,Wn=2;function Gn(e,t,n,r,i,a){var o=n&Un,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Wn?new Bn:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Vn(t,function(e,t){if(!Hn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function qn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Jn=1,Yn=2,Xn=`[object Boolean]`,Zn=`[object Date]`,Qn=`[object Error]`,$n=`[object Map]`,er=`[object Number]`,tr=`[object RegExp]`,nr=`[object Set]`,rr=`[object String]`,ir=`[object Symbol]`,ar=`[object ArrayBuffer]`,or=`[object DataView]`,sr=O?O.prototype:void 0,cr=sr?sr.valueOf:void 0;function lr(e,t,n,r,i,a,o){switch(n){case or:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ar:return!(e.byteLength!=t.byteLength||!a(new be(e),new be(t)));case Xn:case Zn:case er:return D(+e,+t);case Qn:return e.name==t.name&&e.message==t.message;case tr:case rr:return e==t+``;case $n:var s=Kn;case nr:var c=r&Jn;if(s||=qn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Yn,o.set(e,t);var u=Gn(s(e),s(t),r,i,a,o);return o.delete(e),u;case ir:if(cr)return cr.call(e)==cr.call(t)}return!1}var ur=1,dr=Object.prototype.hasOwnProperty;function fr(e,t,n,r,i,a){var o=n&ur,s=xn(e),c=s.length;if(c!=xn(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:dr.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var pr=1,mr=`[object Arguments]`,hr=`[object Array]`,gr=`[object Object]`,_r=Object.prototype.hasOwnProperty;function vr(e,t,n,r,i,a){var o=j(e),s=j(t),c=o?hr:In(e),l=s?hr:In(t);c=c==mr?gr:c,l=l==mr?gr:l;var u=c==gr,d=l==gr,f=c==l;if(f&&De(e)){if(!De(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new _e,o||le(e)?Gn(e,t,n,r,i,a):lr(e,t,c,n,r,i,a);if(!(n&pr)){var p=u&&_r.call(e,`__wrapped__`),m=d&&_r.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new _e,i(h,g,n,r,a)}}return f?(a||=new _e,fr(e,t,n,r,i,a)):!1}function yr(e,t,n,r,i){return e===t?!0:e==null||t==null||!M(e)&&!M(t)?e!==e&&t!==t:vr(e,t,n,r,yr,i)}var br=1,xr=2;function Sr(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new _e;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?yr(u,l,br|xr,r,d):f))return!1}}return!0}function Cr(e){return e===e&&!ve(e)}function wr(e){for(var t=Zt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cr(i)]}return t}function Tr(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Er(e){var t=wr(e);return t.length==1&&t[0][2]?Tr(t[0][0],t[0][1]):function(n){return n===e||Sr(n,e,t)}}function Dr(e,t){return e!=null&&t in Object(e)}function Or(e,t,n){t=ln(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=dn(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ie(i)&&te(o,i)&&(j(e)||re(e)))}function kr(e,t){return e!=null&&Or(e,t,Dr)}var Ar=1,jr=2;function Mr(e,t){return en(e)&&Cr(t)?Tr(dn(e),t):function(n){var r=pn(n,e);return r===void 0&&r===t?kr(n,e):yr(t,r,Ar|jr)}}function Nr(e){return function(t){return t?.[e]}}function Pr(e){return function(t){return fn(t,e)}}function Fr(e){return en(e)?Nr(dn(e)):Pr(e)}function Ir(e){return typeof e==`function`?e:e==null?T:typeof e==`object`?j(e)?Mr(e[0],e[1]):Er(e):Fr(e)}function Lr(e,t){return e&&Se(e,t,Zt)}function Rr(e,t){return function(n,r){if(n==null)return n;if(!Ee(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var zr=Rr(Lr);function Br(e,t){var n=-1,r=Ee(e)?Array(e.length):[];return zr(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Vr(e,t){return(j(e)?Fe:Br)(e,Ir(t,3))}var Hr={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function Ur(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},Hr),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var Wr=Ce({name:`Popover`,common:xe,peers:{Scrollbar:Pe},self:Ur}),Gr={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Z=`var(--n-arrow-height) * 1.414`,Kr=L([P(`popover`,`
|
|
2
2
|
transition:
|
|
3
3
|
box-shadow .3s var(--n-bezier),
|
|
4
4
|
background-color .3s var(--n-bezier),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-Zpu1Tghg.js";import{r as M,t as N}from"./_plugin-vue_export-helper-B4hqCVU_.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as L,X as R,Y as z,_t as B,a as ne,c as V,ct as H,d as re,dt as U,et as ie,ft as ae,n as oe,o as se,pt as ce,q as W,s as le,st as G,tt as ue,ut as K,z as de}from"./browser-BanYmQkE.js";import{M as fe,g as pe,j as me,p as he,u as q}from"./Popover-BLBLYanQ.js";import{_ as ge,a as _e,c as ve,g as ye,h as be,l as xe,o as J,s as Y}from"./Scrollbar-DZGif2x4.js";import{d as Se,f as Ce,p as we,t as Te}from"./Modal-D_vF9k8c.js";import{n as Ee,t as De}from"./FormItem-EcbFnIOF.js";import{a as Oe,t as X}from"./Button-BeWnBoDR.js";import{t as ke}from"./fade-in-scale-up.cssr-B100njI2.js";import{t as Ae}from"./Warning-BZfjWCrB.js";import{t as je}from"./Add-cXqy3eJz.js";import{n as Me,t as Ne}from"./Input-DP5LDvGa.js";import{r as Pe}from"./light-B8HxMQKs.js";import{i as Fe,o as Ie,r as Le,t as Z}from"./profiles-BSAOLUpt.js";import{t as Re}from"./light-BT2gqEar.js";import{t as ze}from"./Tooltip-A5--U35v.js";import{t as Be}from"./composables-xsQwqT-T.js";import{t as Ve}from"./use-message-CFWjMwGX.js";import{t as He}from"./Switch-D9x35tOv.js";import{t as Ue}from"./Spin-C9izy3tZ.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=le({name:`Image`,common:oe,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},V.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=G([G(`body >`,[H(`image-container`,`position: fixed;`)]),H(`image-preview-container`,`
|
|
1
|
+
import{$ as e,A as t,C as n,D as r,E as i,F as a,G as o,K as s,N as c,Q as l,R as u,T as d,U as f,V as p,X as m,Z as h,b as g,ct as _,d as v,dt as y,ft as b,g as x,gt as S,h as C,ht as w,j as T,k as E,mt as D,pt as O,q as k,w as A,y as j}from"./router-0X4x3p8e.js";import{r as M,t as N}from"./_plugin-vue_export-helper-CcX4e_Is.js";import{$ as P,B as F,J as ee,Q as I,R as te,W as L,X as R,Y as z,_t as B,a as ne,c as V,ct as H,d as re,dt as U,et as ie,ft as ae,n as oe,o as se,pt as ce,q as W,s as le,st as G,tt as ue,ut as K,z as de}from"./browser-BfJIjfY3.js";import{M as fe,g as pe,j as me,p as he,u as q}from"./Popover-Dwi5NArH.js";import{_ as ge,a as _e,c as ve,g as ye,h as be,l as xe,o as J,s as Y}from"./Scrollbar-zYdleApO.js";import{d as Se,f as Ce,p as we,t as Te}from"./Modal-fhZL63EZ.js";import{n as Ee,t as De}from"./FormItem-D0pABOgK.js";import{a as Oe,t as X}from"./Button-Cpfqx5bj.js";import{t as ke}from"./fade-in-scale-up.cssr-e30I2JjN.js";import{t as Ae}from"./Warning-BPlnDrmx.js";import{t as je}from"./Add-CIZmky1Q.js";import{n as Me,t as Ne}from"./Input-DmGT4Mu3.js";import{r as Pe}from"./light-BF--Dz10.js";import{i as Fe,o as Ie,r as Le,t as Z}from"./profiles-DbCu_blp.js";import{t as Re}from"./light-BJ4xZyd0.js";import{t as ze}from"./Tooltip-Dc4tc92D.js";import{t as Be}from"./composables-BTIEu8ZB.js";import{t as Ve}from"./use-message-4kASja7X.js";import{t as He}from"./Switch-tk7Pkw6L.js";import{t as Ue}from"./Spin-CfKqXT5a.js";function We(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Ge(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Ke(e){return function(t){return e?.[t]}}var qe=Ke({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ye=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function Xe(e){return e=xe(e),e&&e.replace(Je,qe).replace(Ye,``)}var Ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Qe(e){return e.match(Ze)||[]}var $e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function et(e){return $e.test(e)}var tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,at=`\\xac\\xb1\\xd7\\xf7`,ot=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,st=`\\u2000-\\u206f`,ct=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,lt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,ut=`\\ufe0e\\ufe0f`,dt=at+ot+st+ct,ft=`['’]`,pt=`[`+dt+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+dt+ht+rt+it+lt+`]`,yt=`(?:`+mt+`|\\ud83c[\\udffb-\\udfff])`,bt=`[^`+tt+`]`,xt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,St=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q=`[`+lt+`]`,Ct=`\\u200d`,wt=`(?:`+_t+`|`+vt+`)`,Tt=`(?:`+Q+`|`+vt+`)`,Et=`(?:`+ft+`(?:d|ll|m|re|s|t|ve))?`,Dt=`(?:`+ft+`(?:D|LL|M|RE|S|T|VE))?`,Ot=yt+`?`,kt=`[`+ut+`]?`,At=`(?:`+Ct+`(?:`+[bt,xt,St].join(`|`)+`)`+kt+Ot+`)*`,jt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Mt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Nt=kt+Ot+At,Pt=`(?:`+[gt,xt,St].join(`|`)+`)`+Nt,Ft=RegExp([Q+`?`+_t+`+`+Et+`(?=`+[pt,Q,`$`].join(`|`)+`)`,Tt+`+`+Dt+`(?=`+[pt,Q+wt,`$`].join(`|`)+`)`,Q+`?`+wt+`+`+Et,Q+`+`+Dt,Mt,jt,ht,Pt].join(`|`),`g`);function It(e){return e.match(Ft)||[]}function Lt(e,t,n){return e=xe(e),t=n?void 0:t,t===void 0?et(e)?It(e):Qe(e):e.match(t)||[]}var Rt=RegExp(`['’]`,`g`);function zt(e){return function(t){return Ge(Lt(Xe(t).replace(Rt,``)),e,``)}}var Bt=zt(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Vt=J(`attach`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),Ht=J(`cancel`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),Ut=J(`download`,()=>c(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),Wt=T({name:`ResizeSmall`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),Gt=J(`retry`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),c(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Kt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),qt=J(`rotateClockwise`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),c(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Jt=J(`trash`,()=>c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},c(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),c(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Yt=J(`zoomIn`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),c(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Xt=J(`zoomOut`,()=>c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),c(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Zt=I&&`loading`in document.createElement(`img`);function Qt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var $t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=(e,t,n)=>{if(!e)return()=>{};let r=Qt(t),{root:i}=r.options,a,o=$t.get(i);o?a=o:(a=new Map,$t.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=en.get(e.target),n=tn.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(en.delete(e),tn.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||$t.delete(i))};return en.set(e,u),tn.set(e,n),u};function rn(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var an=le({name:`Image`,common:oe,peers:{Tooltip:Re},self:rn});function on(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function sn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function cn(){return c(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},c(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var ln=Object.assign(Object.assign({},V.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),un=P(`n-image`),dn=G([G(`body >`,[H(`image-container`,`position: fixed;`)]),H(`image-preview-container`,`
|
|
2
2
|
position: fixed;
|
|
3
3
|
left: 0;
|
|
4
4
|
right: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-Zpu1Tghg.js";import{B as _,F as v,M as y,N as b,P as x,V as S,c as ee,ct as C,d as w,dt as T,l as E,n as D,st as O,u as k,ut as A,z as te}from"./browser-BanYmQkE.js";function ne(e){return e.composedPath()[0]||null}function re(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function ie(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function j(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 M(e){return e.composedPath()[0]}var N={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ae(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(M(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(M(n))},i=r=>{e&&(t.contains(M(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 oe(e,t,n){let r=N[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=ae(e,t,n)),a}function P(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{I(e,document,i[e],r)}),!0}return!1}function F(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function se(){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=M(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,P(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(F(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:I,off:L}=se();function R(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ce=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function le(){return ce}function ue(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function de(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],fe=function(){return z.some(function(e){return e.activeTargets.length>0})},pe=function(){return z.some(function(e){return e.skippedTargets.length>0})},B=`ResizeObserver loop completed with undelivered notifications.`,me=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)},U=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,H(this)}return e}(),he=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}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},G=function(e){if(W(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)},ge=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},_e=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},K=typeof window<`u`?window:{},q=new WeakMap,ve=/auto|scroll/,ye=/^tb|vertical/,be=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),J=function(e){return parseFloat(e||`0`)},Y=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new U((n?t:e)||0,(n?e:t)||0)},xe=H({devicePixelContentBoxSize:Y(),borderBoxSize:Y(),contentBoxSize:Y(),contentRect:new he(0,0,0,0)}),Se=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(G(e))return q.set(e,xe),xe;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!be&&n.boxSizing===`border-box`,a=ye.test(n.writingMode||``),o=!r&&ve.test(n.overflowY||``),s=!r&&ve.test(n.overflowX||``),c=r?0:J(n.paddingTop),l=r?0:J(n.paddingRight),u=r?0:J(n.paddingBottom),d=r?0:J(n.paddingLeft),f=r?0:J(n.borderTopWidth),p=r?0:J(n.borderRightWidth),m=r?0:J(n.borderBottomWidth),h=r?0:J(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,ee=i?_+y:0,C=r?r.width:J(n.width)-S-x,w=r?r.height:J(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=H({devicePixelContentBoxSize:Y(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:Y(T,E,a),contentBoxSize:Y(C,w,a),contentRect:new he(d,c,C,w)});return q.set(e,D),D},Ce=function(e,t,n){var r=Se(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}},we=function(){function e(e){var t=Se(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}(),Te=function(e){if(G(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ee=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 we(t.target),i=Te(t.target);r.push(n),t.lastReportedSize=Ce(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},X=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()&&(Te(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},De=function(){var e=0;for(X(e);fe();)e=Ee(),X(e);return pe()&&me(),e>0},Oe,ke=[],Ae=function(){return ke.splice(0).forEach(function(e){return e()})},je=function(e){if(!Oe){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ae()}).observe(n,{characterData:!0}),Oe=function(){n.textContent=`${t?t--:t++}`}}ke.push(e),Oe()},Me=function(e){je(function(){requestAnimationFrame(e)})},Z=0,Ne=function(){return!!Z},Pe=250,Fe={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ie=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Le=function(e){return e===void 0&&(e=0),Date.now()+e},Re=!1,ze=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=Pe),!Re){Re=!0;var n=Le(e);Me(function(){var r=!1;try{r=De()}finally{if(Re=!1,e=n-Le(),!Ne())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,Fe)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ie.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ie.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Be=function(e){!Z&&e>0&&ze.start(),Z+=e,!Z&&ze.stop()},Ve=function(e){return!W(e)&&!_e(e)&&getComputedStyle(e).display===`inline`},He=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=Ce(this.target,this.observedBox,!0);return Ve(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ue=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),We=new WeakMap,Ge=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ke=function(){function e(){}return e.connect=function(e,t){var n=new Ue(e,t);We.set(e,n)},e.observe=function(e,t,n){var r=We.get(e),i=r.observationTargets.length===0;Ge(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new He(t,n&&n.box)),Be(1),ze.schedule())},e.unobserve=function(e,t){var n=We.get(e),r=Ge(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),Be(-1))},e.disconnect=function(e){var t=this,n=We.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),qe=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.`);Ke.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(!ge(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.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(!ge(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.unobserve(this,e)},e.prototype.disconnect=function(){Ke.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Je=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||qe)(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))}},Ye=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){de(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){de(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Je.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Je.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Xe(e){let{left:t,right:n,top:r,bottom:i}=j(e);return`${r} ${t} ${i} ${n}`}var Ze=m({render(){var e;return(e=this.$slots).default?.call(e)}}),Qe={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 $e(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)?tt(s,e=>e.test(o)):et(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 et(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function tt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function nt(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 rt={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`}},it=(e,t,n)=>{let r,i=rt[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},at={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ot=(e,t,n,r)=>at[e],st={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`})},ct={ordinalNumber:nt({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`})},lt={name:`en-US`,locale:{code:`en-US`,formatDistance:it,formatLong:{date:$e({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:$e({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:$e({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ot,localize:st,match:ct,options:{weekStartsOn:0,firstWeekContainsDate:1}}},ut=`[object Symbol]`;function dt(e){return typeof e==`symbol`||b(e)&&x(e)==ut}function ft(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 pt=1/0,mt=v?v.prototype:void 0,ht=mt?mt.toString:void 0;function gt(e){if(typeof e==`string`)return e;if(y(e))return ft(e,gt)+``;if(dt(e))return ht?ht.call(e):``;var t=e+``;return t==`0`&&1/e==-pt?`-0`:t}function _t(e){return e==null?``:gt(e)}function vt(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 yt(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:vt(e,t,n)}var bt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function xt(e){return bt.test(e)}function St(e){return e.split(``)}var Ct=`\\ud800-\\udfff`,wt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Tt=`\\ufe0e\\ufe0f`,Et=`[`+Ct+`]`,Dt=`[`+wt+`]`,Ot=`\\ud83c[\\udffb-\\udfff]`,kt=`(?:`+Dt+`|`+Ot+`)`,At=`[^`+Ct+`]`,jt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Mt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Nt=`\\u200d`,Pt=kt+`?`,Ft=`[`+Tt+`]?`,It=`(?:`+Nt+`(?:`+[At,jt,Mt].join(`|`)+`)`+Ft+Pt+`)*`,Lt=Ft+Pt+It,Rt=`(?:`+[At+Dt+`?`,Dt,jt,Mt,Et].join(`|`)+`)`,zt=RegExp(Ot+`(?=`+Ot+`)|`+Rt+Lt,`g`);function Bt(e){return e.match(zt)||[]}function Vt(e){return xt(e)?Bt(e):St(e)}function Ht(e){return function(t){t=_t(t);var n=xt(t)?Vt(t):void 0,r=n?n[0]:t.charAt(0),i=n?yt(n,1).join(``):t.slice(1);return r[e]()+i}}var Ut=Ht(`toUpperCase`);function Wt(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(S,null)||{},a=e(()=>r?.value?.[n]??Qe[n]);return{dateLocaleRef:e(()=>i?.value??lt),localeRef:a}}var Gt=C(`base-icon`,`
|
|
1
|
+
import{C as e,F as t,H as n,J as r,L as i,M as a,N as o,U as s,V as c,X as l,Z as u,ct as d,d as f,dt as p,j as m,y as h,z as g}from"./router-0X4x3p8e.js";import{B as _,F as v,M as y,N as b,P as x,V as S,c as ee,ct as C,d as w,dt as T,l as E,n as D,st as O,u as k,ut as A,z as te}from"./browser-BfJIjfY3.js";function ne(e){return e.composedPath()[0]||null}function re(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function ie(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function j(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 M(e){return e.composedPath()[0]}var N={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function ae(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(M(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(M(n))},i=r=>{e&&(t.contains(M(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 oe(e,t,n){let r=N[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=ae(e,t,n)),a}function P(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{I(e,document,i[e],r)}),!0}return!1}function F(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=oe(e,t,n);return Object.keys(i).forEach(e=>{L(e,document,i[e],r)}),!0}return!1}function se(){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=M(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,P(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(F(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:I,off:L}=se();function R(t,n){return l(t,e=>{e!==void 0&&(n.value=e)}),e(()=>t.value===void 0?n.value:t.value)}var ce=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function le(){return ce}function ue(e){let t={isDeactivated:!1},r=!1;return g(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function de(e,t){console.error(`[vueuc/${e}]: ${t}`)}var z=[],fe=function(){return z.some(function(e){return e.activeTargets.length>0})},pe=function(){return z.some(function(e){return e.skippedTargets.length>0})},B=`ResizeObserver loop completed with undelivered notifications.`,me=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)},U=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,H(this)}return e}(),he=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}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},G=function(e){if(W(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)},ge=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},_e=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},K=typeof window<`u`?window:{},q=new WeakMap,ve=/auto|scroll/,ye=/^tb|vertical/,be=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),J=function(e){return parseFloat(e||`0`)},Y=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new U((n?t:e)||0,(n?e:t)||0)},xe=H({devicePixelContentBoxSize:Y(),borderBoxSize:Y(),contentBoxSize:Y(),contentRect:new he(0,0,0,0)}),Se=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(G(e))return q.set(e,xe),xe;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!be&&n.boxSizing===`border-box`,a=ye.test(n.writingMode||``),o=!r&&ve.test(n.overflowY||``),s=!r&&ve.test(n.overflowX||``),c=r?0:J(n.paddingTop),l=r?0:J(n.paddingRight),u=r?0:J(n.paddingBottom),d=r?0:J(n.paddingLeft),f=r?0:J(n.borderTopWidth),p=r?0:J(n.borderRightWidth),m=r?0:J(n.borderBottomWidth),h=r?0:J(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,ee=i?_+y:0,C=r?r.width:J(n.width)-S-x,w=r?r.height:J(n.height)-ee-b,T=C+g+x+v,E=w+_+b+y,D=H({devicePixelContentBoxSize:Y(Math.round(C*devicePixelRatio),Math.round(w*devicePixelRatio),a),borderBoxSize:Y(T,E,a),contentBoxSize:Y(C,w,a),contentRect:new he(d,c,C,w)});return q.set(e,D),D},Ce=function(e,t,n){var r=Se(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}},we=function(){function e(e){var t=Se(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}(),Te=function(e){if(G(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ee=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 we(t.target),i=Te(t.target);r.push(n),t.lastReportedSize=Ce(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},X=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()&&(Te(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},De=function(){var e=0;for(X(e);fe();)e=Ee(),X(e);return pe()&&me(),e>0},Oe,ke=[],Ae=function(){return ke.splice(0).forEach(function(e){return e()})},je=function(e){if(!Oe){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Ae()}).observe(n,{characterData:!0}),Oe=function(){n.textContent=`${t?t--:t++}`}}ke.push(e),Oe()},Me=function(e){je(function(){requestAnimationFrame(e)})},Z=0,Ne=function(){return!!Z},Pe=250,Fe={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ie=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Le=function(e){return e===void 0&&(e=0),Date.now()+e},Re=!1,ze=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=Pe),!Re){Re=!0;var n=Le(e);Me(function(){var r=!1;try{r=De()}finally{if(Re=!1,e=n-Le(),!Ne())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,Fe)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ie.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ie.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Be=function(e){!Z&&e>0&&ze.start(),Z+=e,!Z&&ze.stop()},Ve=function(e){return!W(e)&&!_e(e)&&getComputedStyle(e).display===`inline`},He=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=Ce(this.target,this.observedBox,!0);return Ve(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ue=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),We=new WeakMap,Ge=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ke=function(){function e(){}return e.connect=function(e,t){var n=new Ue(e,t);We.set(e,n)},e.observe=function(e,t,n){var r=We.get(e),i=r.observationTargets.length===0;Ge(r.observationTargets,t)<0&&(i&&z.push(r),r.observationTargets.push(new He(t,n&&n.box)),Be(1),ze.schedule())},e.unobserve=function(e,t){var n=We.get(e),r=Ge(n.observationTargets,t),i=n.observationTargets.length===1;r>=0&&(i&&z.splice(z.indexOf(n),1),n.observationTargets.splice(r,1),Be(-1))},e.disconnect=function(e){var t=this,n=We.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),qe=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.`);Ke.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(!ge(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.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(!ge(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ke.unobserve(this,e)},e.prototype.disconnect=function(){Ke.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Je=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||qe)(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))}},Ye=m({name:`ResizeObserver`,props:{onResize:Function},setup(e){let t=!1,n=a().proxy;function r(t){let{onResize:n}=e;n!==void 0&&n(t)}s(()=>{let e=n.$el;if(e===void 0){de(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){de(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Je.registerHandler(e.nextElementSibling,r),t=!0)}),c(()=>{t&&Je.unregisterHandler(n.$el.nextElementSibling)})},render(){return r(this.$slots,`default`)}});function Xe(e){let{left:t,right:n,top:r,bottom:i}=j(e);return`${r} ${t} ${i} ${n}`}var Ze=m({render(){var e;return(e=this.$slots).default?.call(e)}}),Qe={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 $e(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)?tt(s,e=>e.test(o)):et(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 et(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function tt(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function nt(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 rt={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`}},it=(e,t,n)=>{let r,i=rt[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},at={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ot=(e,t,n,r)=>at[e],st={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`})},ct={ordinalNumber:nt({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`})},lt={name:`en-US`,locale:{code:`en-US`,formatDistance:it,formatLong:{date:$e({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:$e({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:$e({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:ot,localize:st,match:ct,options:{weekStartsOn:0,firstWeekContainsDate:1}}},ut=`[object Symbol]`;function dt(e){return typeof e==`symbol`||b(e)&&x(e)==ut}function ft(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 pt=1/0,mt=v?v.prototype:void 0,ht=mt?mt.toString:void 0;function gt(e){if(typeof e==`string`)return e;if(y(e))return ft(e,gt)+``;if(dt(e))return ht?ht.call(e):``;var t=e+``;return t==`0`&&1/e==-pt?`-0`:t}function _t(e){return e==null?``:gt(e)}function vt(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 yt(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:vt(e,t,n)}var bt=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function xt(e){return bt.test(e)}function St(e){return e.split(``)}var Ct=`\\ud800-\\udfff`,wt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Tt=`\\ufe0e\\ufe0f`,Et=`[`+Ct+`]`,Dt=`[`+wt+`]`,Ot=`\\ud83c[\\udffb-\\udfff]`,kt=`(?:`+Dt+`|`+Ot+`)`,At=`[^`+Ct+`]`,jt=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Mt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Nt=`\\u200d`,Pt=kt+`?`,Ft=`[`+Tt+`]?`,It=`(?:`+Nt+`(?:`+[At,jt,Mt].join(`|`)+`)`+Ft+Pt+`)*`,Lt=Ft+Pt+It,Rt=`(?:`+[At+Dt+`?`,Dt,jt,Mt,Et].join(`|`)+`)`,zt=RegExp(Ot+`(?=`+Ot+`)|`+Rt+Lt,`g`);function Bt(e){return e.match(zt)||[]}function Vt(e){return xt(e)?Bt(e):St(e)}function Ht(e){return function(t){t=_t(t);var n=xt(t)?Vt(t):void 0,r=n?n[0]:t.charAt(0),i=n?yt(n,1).join(``):t.slice(1);return r[e]()+i}}var Ut=Ht(`toUpperCase`);function Wt(n){let{mergedLocaleRef:r,mergedDateLocaleRef:i}=t(S,null)||{},a=e(()=>r?.value?.[n]??Qe[n]);return{dateLocaleRef:e(()=>i?.value??lt),localeRef:a}}var Gt=C(`base-icon`,`
|
|
2
2
|
height: 1em;
|
|
3
3
|
width: 1em;
|
|
4
4
|
line-height: 1em;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-Zpu1Tghg.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-BanYmQkE.js";import{D as z,E as B,M as ne,_ as V,b as re,f as ie,h as H,i as U,m as W,t as G,v as K,y as ae}from"./Popover-BLBLYanQ.js";import{n as oe,r as se,t as ce}from"./create-5zWq3BEB.js";import{b as q,c as le,f as J,h as ue,m as Y,p as de,r as fe,s as pe,t as me,v as X,x as he,y as Z}from"./Scrollbar-DZGif2x4.js";import{t as ge}from"./use-compitable-Dl0AqAGv.js";import{i as _e,n as Q,t as ve}from"./fade-in-scale-up.cssr-B100njI2.js";import{t as ye}from"./Suffix-CIX5CF-j.js";import{r as be}from"./light-B8HxMQKs.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=W(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[W(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[W(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:H,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-X(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+X(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,ne(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:q(e.paddingTop),paddingBottom:q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(de,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(de,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=W(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:H,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&Y.registerHandler(n,t)}),d(e,(e,t)=>{t&&Y.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&Y.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
|
|
1
|
+
import{$ as e,C as t,F as n,H as r,J as i,K as a,L as o,N as s,R as c,U as l,V as u,X as d,Z as f,ct as p,d as m,dt as h,h as g,j as _,y as v,z as y}from"./router-0X4x3p8e.js";import{B as b,K as x,R as S,W as C,Z as w,c as T,ct as E,d as D,dt as O,et as ee,ft as k,n as A,nt as j,pt as M,q as N,r as P,s as F,st as I,tt as L,ut as R,z as te}from"./browser-BfJIjfY3.js";import{D as z,E as B,M as ne,_ as V,b as re,f as ie,h as H,i as U,m as W,t as G,v as K,y as ae}from"./Popover-Dwi5NArH.js";import{n as oe,r as se,t as ce}from"./create-5zWq3BEB.js";import{b as q,c as le,f as J,h as ue,m as Y,p as de,r as fe,s as pe,t as me,v as X,x as he,y as Z}from"./Scrollbar-zYdleApO.js";import{t as ge}from"./use-compitable-DY4l-k3U.js";import{i as _e,n as Q,t as ve}from"./fade-in-scale-up.cssr-e30I2JjN.js";import{t as ye}from"./Suffix-jKQO068E.js";import{r as be}from"./light-BF--Dz10.js";function xe(e){return e&-e}var Se=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=xe(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=xe(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}},Ce;function we(){return typeof document>`u`?!1:(Ce===void 0&&(Ce=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),Ce)}var Te;function Ee(){return typeof document>`u`?1:(Te===void 0&&(Te=`chrome`in window?window.devicePixelRatio:1),Te)}var De=`VVirtualListXScroll`;function Oe({columnsRef:e,renderColRef:n,renderItemWithColsRef:r}){let i=p(0),o=p(0),s=t(()=>{let t=e.value;if(t.length===0)return null;let n=new Se(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return a(De,{startIndexRef:L(()=>{let e=s.value;return e===null?0:Math.max(e.getBound(o.value)-1,0)}),endIndexRef:L(()=>{let t=s.value;return t===null?0:Math.min(t.getBound(o.value+i.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:n,renderItemWithColsRef:r,getLeft:e=>{let t=s.value;return t===null?0:t.sum(e)}}),{listWidthRef:i,scrollLeftRef:o}}var ke=_({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:r,getLeft:i,renderColRef:a,renderItemWithColsRef:o}=n(De);return{startIndex:e,endIndex:t,columns:r,renderCol:a,renderItemWithCols:o,getLeft:i}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),Ae=W(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[W(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[W(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),je=_({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let n=w();Ae.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:H,ssr:n}),l(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;y(()=>{if(i=!1,!a){a=!0;return}S({top:v.value,left:c.value})}),r(()=>{i=!0,a||=!0});let o=L(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),s=t(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:c,listWidthRef:u}=Oe({columnsRef:h(e,`columns`),renderColRef:h(e,`renderCol`),renderItemWithColsRef:h(e,`renderItemWithCols`)}),d=p(null),f=p(void 0),m=new Map,g=t(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new Se(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=m.get(n);a!==void 0&&i.add(t,a)}),i}),_=p(0),v=p(0),b=L(()=>Math.max(g.value.getBound(v.value-X(e.paddingTop))-1,0)),x=t(()=>{let{value:t}=f;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),S=(e,t)=>{if(typeof e==`number`){D(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)D(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?D(0,2**53-1,c):o===`top`&&D(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=g,a=i.sum(t)+X(e.paddingTop);if(!r)d.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=d.value;if(a>e){let o=i.get(t);a+o<=e+r||d.value.scrollTo({left:0,top:a+o-r,behavior:n})}else d.value.scrollTo({left:0,top:a,behavior:n})}}function D(e,t,n){d.value.scrollTo({left:e,top:t,behavior:n})}function O(t,n){if(i||e.ignoreItemResize||P(n.target))return;let{value:r}=g,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?m.delete(t):m.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=d.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else (a<C||a===C&&c+r.sum(a)>u.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);N()}_.value++}let ee=!we(),k=!1;function A(t){var n;(n=e.onScroll)==null||n.call(e,t),(!ee||!k)&&N()}function j(t){var n;if((n=e.onWheel)==null||n.call(e,t),ee){let e=d.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/Ee(),e.scrollLeft+=t.deltaX/Ee(),N(),k=!0,ne(()=>{k=!1})}}}function M(t){if(i||P(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===f.value)return}else if(t.contentRect.height===f.value&&t.contentRect.width===u.value)return;f.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function N(){let{value:e}=d;e!=null&&(v.value=e.scrollTop,c.value=e.scrollLeft)}function P(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:f,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:t(()=>{let{itemResizable:t}=e,n=q(g.value.sum());return _.value,[e.itemsStyle,{boxSizing:`content-box`,width:q(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:q(e.paddingTop),paddingBottom:q(e.paddingBottom)}]}),visibleItemsStyle:t(()=>(_.value,{transform:`translateY(${q(g.value.sum(b.value))})`})),viewportItems:x,listElRef:d,itemsElRef:p(null),scrollTo:S,handleListResize:M,handleListScroll:A,handleListWheel:j,handleItemResize:O}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(de,{onResize:this.handleListResize},{default:()=>{var i;return s(`div`,o(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):s(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[s(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],c=n.get(o),l=r==null?void 0:s(ke,{index:c,item:a}),u=i==null?void 0:s(ke,{index:c,item:a}),d=this.$slots.default({item:a,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?s(de,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>d}):(d.key=o,d)})}})])])}})}}),$=`v-hidden`,Me=W(`[v-hidden]`,{display:`none!important`}),Ne=_({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=p(null),r=p(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute($)&&c.removeAttribute($);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute($)&&e.removeAttribute($);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute($)||n.setAttribute($,``);continue}else n.hasAttribute($)&&n.removeAttribute($);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute($,``))}let a=w();return Me.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:H,ssr:a}),l(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return c(()=>this.sync({showAllItemsBeforeCalculate:!1})),s(`div`,{class:`v-overflow`,ref:`selfRef`},[i(e,`default`),e.counter?e.counter():s(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Pe(e,t){t&&(l(()=>{let{value:n}=e;n&&Y.registerHandler(n,t)}),d(e,(e,t)=>{t&&Y.unregisterHandler(t)},{deep:!1}),u(()=>{let{value:t}=e;t&&Y.unregisterHandler(t)}))}function Fe(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function Ie(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var Le=_({name:`Checkmark`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},s(`g`,{fill:`none`},s(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),Re=_({name:`Empty`,render(){return s(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},s(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),s(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),ze=_({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),Be={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function Ve(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},Be),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var He={name:`Empty`,common:A,self:Ve},Ue=E(`empty`,`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-
|
|
1
|
+
import{D as e,E as t,G as n,J as r,ct as i,gt as a,j as o,o as s,w as c}from"./router-0X4x3p8e.js";import{n as l}from"./pinia-D2g49IcO.js";import{t as u}from"./_plugin-vue_export-helper-CcX4e_Is.js";async function d(e){return s(`/api/hermes/config${e?`?sections=${e.join(`,`)}`:``}`)}async function f(e,t){await s(`/api/hermes/config`,{method:`PUT`,body:JSON.stringify({section:e,values:t})})}async function p(e,t){await s(`/api/hermes/config/credentials`,{method:`PUT`,body:JSON.stringify({platform:e,values:t})})}async function m(){return s(`/api/hermes/weixin/qrcode`)}async function h(e){return s(`/api/hermes/weixin/qrcode/status?qrcode=${encodeURIComponent(e)}`)}async function g(e){await s(`/api/hermes/weixin/save`,{method:`POST`,body:JSON.stringify(e)})}var _=l(`settings`,()=>{let e=i(!1),t=i(!1),n=i({}),r=i({}),a=i({}),o=i({}),s=i({}),c=i({}),l=i({}),u=i({}),p=i({}),m=i({}),h=i({}),g=i({}),_=i({}),v=i({}),y=i({});async function b(){e.value=!0;try{let e=await d();n.value=e.display||{},r.value=e.agent||{},a.value=e.memory||{},o.value=e.session_reset||{},s.value=e.privacy||{},c.value=e.telegram||{},l.value=e.discord||{},u.value=e.slack||{},p.value=e.whatsapp||{},m.value=e.matrix||{},h.value=e.wecom||{},g.value=e.feishu||{},_.value=e.dingtalk||{},v.value=e.weixin||{},y.value=e.platforms||{}}catch(e){console.error(`Failed to fetch settings:`,e)}finally{e.value=!1}}async function x(e,i){t.value=!0;try{switch(await f(e,i),e){case`display`:n.value={...n.value,...i};break;case`agent`:r.value={...r.value,...i};break;case`memory`:a.value={...a.value,...i};break;case`session_reset`:o.value={...o.value,...i};break;case`privacy`:s.value={...s.value,...i};break;case`telegram`:c.value={...c.value,...i};break;case`discord`:l.value={...l.value,...i};break;case`slack`:u.value={...u.value,...i};break;case`whatsapp`:p.value={...p.value,...i};break;case`matrix`:m.value={...m.value,...i};break;case`wechat`:case`wecom`:h.value={...h.value,...i};break;case`feishu`:g.value={...g.value,...i};break;case`dingtalk`:_.value={..._.value,...i};break;case`weixin`:v.value={...v.value,...i};break;case`platforms`:for(let[e,t]of Object.entries(i))y.value={...y.value,[e]:{...y.value[e]||{},...t}};break}}finally{t.value=!1}}return{loading:e,saving:t,display:n,agent:r,memory:a,sessionReset:o,privacy:s,telegram:c,discord:l,slack:u,whatsapp:p,matrix:m,wecom:h,feishu:g,dingtalk:_,weixin:v,platforms:y,fetchSettings:b,saveSection:x}}),v={class:`setting-row`},y={class:`setting-info`},b={class:`setting-label`},x={key:0,class:`setting-hint`},S={class:`setting-control`},C=u(o({__name:`SettingRow`,props:{label:{},hint:{}},setup(i){return(o,s)=>(n(),e(`div`,v,[c(`div`,y,[c(`label`,b,a(i.label),1),i.hint?(n(),e(`p`,x,a(i.hint),1)):t(``,!0)]),c(`div`,S,[r(o.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-b81640b4`]]);export{p as a,h as i,_ as n,g as o,m as r,C as t};
|