| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- import{A as _o,F as Ie,av as Qn,a9 as la,d as se,r as z,bK as Hn,w as xe,e as F,y as Ee,bv as Se,bh as ne,bG as it,b7 as zo,g as ut,S as me,bb as y,j as ua,z as ca,bO as da,bu as fa,bx as ha,af as er,co as Ze,T as at,h as Ro,v as Bo,aJ as va,aB as pa,bt as ga}from"./index-6a0185e1.js";let Kt=[];const Io=new WeakMap;function ma(){Kt.forEach(e=>e(...Io.get(e))),Kt=[]}function Do(e,...t){Io.set(e,t),!Kt.includes(e)&&Kt.push(e)===1&&requestAnimationFrame(ma)}function Jt(e){return e.composedPath()[0]||null}const Sr={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},ft="^\\s*",ht="\\s*$",ke="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",We="([0-9A-Fa-f])",Ne="([0-9A-Fa-f]{2})",ba=new RegExp(`${ft}rgb\\s*\\(${ke},${ke},${ke}\\)${ht}`),wa=new RegExp(`${ft}rgba\\s*\\(${ke},${ke},${ke},${ke}\\)${ht}`),ya=new RegExp(`${ft}#${We}${We}${We}${ht}`),xa=new RegExp(`${ft}#${Ne}${Ne}${Ne}${ht}`),Ca=new RegExp(`${ft}#${We}${We}${We}${We}${ht}`),Sa=new RegExp(`${ft}#${Ne}${Ne}${Ne}${Ne}${ht}`);function de(e){return parseInt(e,16)}function ct(e){try{let t;if(t=xa.exec(e))return[de(t[1]),de(t[2]),de(t[3]),1];if(t=ba.exec(e))return[ae(t[1]),ae(t[5]),ae(t[9]),1];if(t=wa.exec(e))return[ae(t[1]),ae(t[5]),ae(t[9]),St(t[13])];if(t=ya.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),1];if(t=Sa.exec(e))return[de(t[1]),de(t[2]),de(t[3]),St(de(t[4])/255)];if(t=Ca.exec(e))return[de(t[1]+t[1]),de(t[2]+t[2]),de(t[3]+t[3]),St(de(t[4]+t[4])/255)];if(e in Sr)return ct(Sr[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function $a(e){return e>1?1:e<0?0:e}function Ta(e,t,n,r){return`rgba(${ae(e)}, ${ae(t)}, ${ae(n)}, ${$a(r)})`}function yn(e,t,n,r,o){return ae((e*t*(1-r)+n*r)/o)}function Ho(e,t){Array.isArray(e)||(e=ct(e)),Array.isArray(t)||(t=ct(t));const n=e[3],r=t[3],o=St(n+r-n*r);return Ta(yn(e[0],n,t[0],r,o),yn(e[1],n,t[1],r,o),yn(e[2],n,t[2],r,o),o)}function Ht(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:ct(e),{lightness:a=1,alpha:s=1}=t;return Oa([n*a,r*a,o*a,i*s])}function St(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function ae(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Oa(e){const[t,n,r]=e;return 3 in e?`rgba(${ae(t)}, ${ae(n)}, ${ae(r)}, ${St(e[3])})`:`rgba(${ae(t)}, ${ae(n)}, ${ae(r)}, 1)`}function Ma(e=8){return Math.random().toString(16).slice(2,2+e)}function Pa(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Ln(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_o(String(r)));return}if(Array.isArray(r)){Ln(r,t,n);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&Ln(r.children,t,n)}else r.type!==Qn&&n.push(r)}}),n}function Ct(e,...t){if(Array.isArray(e))e.forEach(n=>Ct(n,...t));else return e(...t)}function $r(e,t){console.error(`[naive/${e}]: ${t}`)}function Ea(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Tr(e,t="default",n=void 0){const r=e[t];if(!r)return $r("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Ln(r(n));return o.length===1?o[0]:($r("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function jp(e){return e}function an(e){return e.some(t=>la(t)?!(t.type===Qn||t.type===Ie&&!an(t.children)):!0)?e:null}function kp(e,t){return e&&an(e())||t()}function xn(e,t){const n=e&&an(e());return t(n||null)}function Or(e){return!(e&&an(e()))}const Mr=se({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Aa=/^(\d|\.)+$/,Pr=/(\d|\.)+/;function Cn(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(Aa.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=Pr.exec(e);return o?e.replace(Pr,String((Number(o[0])+n)*t)):e}return e}function _a(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Lo=/\s*,(?![^(]*\))\s*/g,za=/\s+/g;function Ra(e,t){const n=[];return t.split(Lo).forEach(r=>{let o=_a(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(s=>{e.forEach(l=>{a.push(s.replace("&",l))})}),i=a}i.forEach(a=>n.push(a))}),n}function Ba(e,t){const n=[];return t.split(Lo).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Ia(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Ra(t,n):t=Ba(t,n))}),t.join(", ").replace(za," ")}function Er(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function sn(e){return document.querySelector(`style[cssr-id="${e}"]`)}function Da(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Lt(e){return e?/^\s*@(s|m)/.test(e):!1}const Ha=/[A-Z]/g;function Fo(e){return e.replace(Ha,t=>"-"+t.toLowerCase())}function La(e,t=" "){return typeof e=="object"&&e!==null?` {
- `+Object.entries(e).map(n=>t+` ${Fo(n[0])}: ${n[1]};`).join(`
- `)+`
- `+t+"}":`: ${e};`}function Fa(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ar(e,t,n,r){if(!t)return"";const o=Fa(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
- ${o}
- }`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
- }`:"";const a=e?[e+" {"]:[];return i.forEach(s=>{const l=o[s];if(s==="raw"){a.push(`
- `+l+`
- `);return}s=Fo(s),l!=null&&a.push(` ${s}${La(l)}`)}),e&&a.push("}"),a.join(`
- `)}function Fn(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))Fn(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?Fn(o,t,n):o&&n(o)}else r&&n(r)})}function jo(e,t,n,r,o,i){const a=e.$;let s="";if(!a||typeof a=="string")Lt(a)?s=a:t.push(a);else if(typeof a=="function"){const c=a({context:r.context,props:o});Lt(c)?s=c:t.push(c)}else if(a.before&&a.before(r.context),!a.$||typeof a.$=="string")Lt(a.$)?s=a.$:t.push(a.$);else if(a.$){const c=a.$({context:r.context,props:o});Lt(c)?s=c:t.push(c)}const l=Ia(t),u=Ar(l,e.props,r,o);s?(n.push(`${s} {`),i&&u&&i.insertRule(`${s} {
- ${u}
- }
- `)):(i&&u&&i.insertRule(u),!i&&u.length&&n.push(u)),e.children&&Fn(e.children,{context:r.context,props:o},c=>{if(typeof c=="string"){const h=Ar(l,{raw:c},r,o);i?i.insertRule(h):n.push(h)}else jo(c,t,n,r,o,i)}),t.pop(),s&&n.push("}"),a&&a.after&&a.after(r.context)}function ko(e,t,n,r=!1){const o=[];return jo(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join(`
- `)}function jn(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function ja(e,t,n){const{els:r}=t;if(n===void 0)r.forEach(Er),t.els=[];else{const o=sn(n);o&&r.includes(o)&&(Er(o),t.els=r.filter(i=>i!==o))}}function _r(e,t){e.push(t)}function ka(e,t,n,r,o,i,a,s,l){if(i&&!l){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const p=window.__cssrContext;p[n]||(p[n]=!0,ko(t,e,r,i));return}let u;if(n===void 0&&(u=t.render(r),n=jn(u)),l){l.adapter(n,u!=null?u:t.render(r));return}const c=sn(n);if(c!==null&&!a)return c;const h=c!=null?c:Da(n);if(u===void 0&&(u=t.render(r)),h.textContent=u,c!==null)return c;if(s){const p=document.head.querySelector(`meta[name="${s}"]`);if(p)return document.head.insertBefore(h,p),_r(t.els,h),h}return o?document.head.insertBefore(h,document.head.querySelector("style, link")):document.head.appendChild(h),_r(t.els,h),h}function Wa(e){return ko(this,this.instance,e)}function Na(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return ka(this.instance,this,t,r,o,i,a,s,n)}function Ua(e={}){const{id:t}=e;ja(this.instance,this,t)}const Ft=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Wa,mount:Na,unmount:Ua}},Xa=function(e,t,n,r){return Array.isArray(t)?Ft(e,{$:null},null,t):Array.isArray(n)?Ft(e,t,null,n):Array.isArray(r)?Ft(e,t,n,r):Ft(e,t,n,null)};function Wo(e={}){let t=null;const n={c:(...r)=>Xa(n,...r),use:(r,...o)=>r.install(n,...o),find:sn,context:{},config:e,get __styleSheet(){if(!t){const r=document.createElement("style");return document.head.appendChild(r),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function Va(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return sn(e)!==null}function Ya(e){let t=".",n="__",r="--",o;if(e){let d=e.blockPrefix;d&&(t=d),d=e.elementPrefix,d&&(n=d),d=e.modifierPrefix,d&&(r=d)}const i={install(d){o=d.c;const b=d.context;b.bem={},b.bem.b=null,b.bem.els=null}};function a(d){let b,g;return{before(f){b=f.bem.b,g=f.bem.els,f.bem.els=null},after(f){f.bem.b=b,f.bem.els=g},$({context:f,props:$}){return d=typeof d=="string"?d:d({context:f,props:$}),f.bem.b=d,`${($==null?void 0:$.bPrefix)||t}${f.bem.b}`}}}function s(d){let b;return{before(g){b=g.bem.els},after(g){g.bem.els=b},$({context:g,props:f}){return d=typeof d=="string"?d:d({context:g,props:f}),g.bem.els=d.split(",").map($=>$.trim()),g.bem.els.map($=>`${(f==null?void 0:f.bPrefix)||t}${g.bem.b}${n}${$}`).join(", ")}}}function l(d){return{$({context:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=d.split(",").map(L=>L.trim());function $(L){return f.map(N=>`&${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${L!==void 0?`${n}${L}`:""}${r}${N}`).join(", ")}const H=b.bem.els;return H!==null?$(H[0]):$()}}}function u(d){return{$({context:b,props:g}){d=typeof d=="string"?d:d({context:b,props:g});const f=b.bem.els;return`&:not(${(g==null?void 0:g.bPrefix)||t}${b.bem.b}${f!==null&&f.length>0?`${n}${f[0]}`:""}${r}${d})`}}}return Object.assign(i,{cB:(...d)=>o(a(d[0]),d[1],d[2]),cE:(...d)=>o(s(d[0]),d[1],d[2]),cM:(...d)=>o(l(d[0]),d[1],d[2]),cNotM:(...d)=>o(u(d[0]),d[1],d[2])}),i}const Za="n",Qt=`.${Za}-`,qa="__",Ga="--",No=Wo(),Uo=Ya({blockPrefix:Qt,elementPrefix:qa,modifierPrefix:Ga});No.use(Uo);const{c:D,find:Wp}=No,{cB:Z,cE:Ue,cM:Xe,cNotM:Zt}=Uo;function Np(e){return D(({props:{bPrefix:t}})=>`${t||Qt}modal, ${t||Qt}drawer`,[e])}function Up(e){return D(({props:{bPrefix:t}})=>`${t||Qt}popover`,[e])}const Ka=(...e)=>D(">",[Z(...e)]);let Sn;function Ja(){return Sn===void 0&&(Sn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Sn}const Qa=typeof document<"u"&&typeof window<"u";function es(e){const t=z(!!e.value);if(t.value)return Hn(t);const n=xe(e,r=>{r&&(t.value=!0,n())});return Hn(t)}function Mt(e){const t=F(e),n=z(t.value);return xe(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}const ts=typeof window<"u";let st,$t;const ns=()=>{var e,t;st=ts?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,$t=!1,st!==void 0?st.then(()=>{$t=!0}):$t=!0};ns();function rs(e){if($t)return;let t=!1;Ee(()=>{$t||st==null||st.then(()=>{t||e()})}),Se(()=>{t=!0})}function qt(e){return e.composedPath()[0]}const os={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function is(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(qt(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(qt(a))},i=a=>{r&&(t.contains(qt(a))||n(a))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Xo(e,t,n){const r=os[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=is(e,t,n)),i}function as(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Xo(e,t,n);return Object.keys(o).forEach(i=>{re(i,document,o[i],r)}),!0}return!1}function ss(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Xo(e,t,n);return Object.keys(o).forEach(i=>{q(i,document,o[i],r)}),!0}return!1}function ls(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(v,m,O){const T=v[m];return v[m]=function(){return O.apply(v,arguments),T.apply(v,arguments)},v}function i(v,m){v[m]=Event.prototype[m]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var v;return(v=a.get(this))!==null&&v!==void 0?v:null}function u(v,m){s!==void 0&&Object.defineProperty(v,"currentTarget",{configurable:!0,enumerable:!0,get:m!=null?m:s.get})}const c={bubble:{},capture:{}},h={};function p(){const v=function(m){const{type:O,eventPhase:T,bubbles:I}=m,j=qt(m);if(T===2)return;const B=T===1?"capture":"bubble";let C=j;const R=[];for(;C===null&&(C=window),R.push(C),C!==window;)C=C.parentNode||null;const W=c.capture[O],te=c.bubble[O];if(o(m,"stopPropagation",n),o(m,"stopImmediatePropagation",r),u(m,l),B==="capture"){if(W===void 0)return;for(let J=R.length-1;J>=0&&!e.has(m);--J){const K=R[J],ge=W.get(K);if(ge!==void 0){a.set(m,K);for(const le of ge){if(t.has(m))break;le(m)}}if(J===0&&!I&&te!==void 0){const le=te.get(K);if(le!==void 0)for(const Qe of le){if(t.has(m))break;Qe(m)}}}}else if(B==="bubble"){if(te===void 0)return;for(let J=0;J<R.length&&!e.has(m);++J){const K=R[J],ge=te.get(K);if(ge!==void 0){a.set(m,K);for(const le of ge){if(t.has(m))break;le(m)}}}}i(m,"stopPropagation"),i(m,"stopImmediatePropagation"),u(m)};return v.displayName="evtdUnifiedHandler",v}function x(){const v=function(m){const{type:O,eventPhase:T}=m;if(T!==2)return;const I=h[O];I!==void 0&&I.forEach(j=>j(m))};return v.displayName="evtdUnifiedWindowEventHandler",v}const d=p(),b=x();function g(v,m){const O=c[v];return O[m]===void 0&&(O[m]=new Map,window.addEventListener(m,d,v==="capture")),O[m]}function f(v){return h[v]===void 0&&(h[v]=new Set,window.addEventListener(v,b)),h[v]}function $(v,m){let O=v.get(m);return O===void 0&&v.set(m,O=new Set),O}function H(v,m,O,T){const I=c[m][O];if(I!==void 0){const j=I.get(v);if(j!==void 0&&j.has(T))return!0}return!1}function L(v,m){const O=h[v];return!!(O!==void 0&&O.has(m))}function N(v,m,O,T){let I;if(typeof T=="object"&&T.once===!0?I=W=>{k(v,m,I,T),O(W)}:I=O,as(v,m,I,T))return;const B=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",C=g(B,v),R=$(C,m);if(R.has(I)||R.add(I),m===window){const W=f(v);W.has(I)||W.add(I)}}function k(v,m,O,T){if(ss(v,m,O,T))return;const j=T===!0||typeof T=="object"&&T.capture===!0,B=j?"capture":"bubble",C=g(B,v),R=$(C,m);if(m===window&&!H(m,j?"bubble":"capture",v,O)&&L(v,O)){const te=h[v];te.delete(O),te.size===0&&(window.removeEventListener(v,b),h[v]=void 0)}R.has(O)&&R.delete(O),R.size===0&&C.delete(m),C.size===0&&(window.removeEventListener(v,d,B==="capture"),c[B][v]=void 0)}return{on:N,off:k}}const{on:re,off:q}=ls();function us(e,t){return xe(e,n=>{n!==void 0&&(t.value=n)}),F(()=>e.value===void 0?t.value:e.value)}function tr(){const e=z(!1);return Ee(()=>{e.value=!0}),Hn(e)}function cs(e,t){return F(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const ds=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function fs(){return ds}const hs="n-internal-select-menu-body",Vo="n-modal-body",Yo="n-drawer-body",Zo="n-popover-body",qo="__disabled__";function dt(e){const t=ne(Vo,null),n=ne(Yo,null),r=ne(Zo,null),o=ne(hs,null),i=z();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Ee(()=>{re("fullscreenchange",document,a)}),Se(()=>{q("fullscreenchange",document,a)})}return Mt(()=>{var a;const{to:s}=e;return s!==void 0?s===!1?qo:s===!0?i.value||"body":s:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:o!=null&&o.value?o.value:s!=null?s:i.value||"body"})}dt.tdkey=qo;dt.propTo={type:[String,Object,Boolean],default:void 0};function kn(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Wn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(_o(String(r)));return}if(Array.isArray(r)){Wn(r,t,n);return}if(r.type===Ie){if(r.children===null)return;Array.isArray(r.children)&&Wn(r.children,t,n)}else r.type!==Qn&&n.push(r)}}),n}function zr(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Wn(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let Re=null;function Go(){if(Re===null&&(Re=document.getElementById("v-binder-view-measurer"),Re===null)){Re=document.createElement("div"),Re.id="v-binder-view-measurer";const{style:e}=Re;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Re)}return Re.getBoundingClientRect()}function vs(e,t){const n=Go();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function $n(e){const t=e.getBoundingClientRect(),n=Go();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 ps(e){return e.nodeType===9?null:e.parentNode}function Ko(e){if(e===null)return null;const t=ps(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Ko(t)}const gs=se({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;it("VBinder",(t=zo())===null||t===void 0?void 0:t.proxy);const n=ne("VBinder",null),r=z(null),o=f=>{r.value=f,n&&e.syncTargetWithParent&&n.setTargetRef(f)};let i=[];const a=()=>{let f=r.value;for(;f=Ko(f),f!==null;)i.push(f);for(const $ of i)re("scroll",$,h,!0)},s=()=>{for(const f of i)q("scroll",f,h,!0);i=[]},l=new Set,u=f=>{l.size===0&&a(),l.has(f)||l.add(f)},c=f=>{l.has(f)&&l.delete(f),l.size===0&&s()},h=()=>{Do(p)},p=()=>{l.forEach(f=>f())},x=new Set,d=f=>{x.size===0&&re("resize",window,g),x.has(f)||x.add(f)},b=f=>{x.has(f)&&x.delete(f),x.size===0&&q("resize",window,g)},g=()=>{x.forEach(f=>f())};return Se(()=>{q("resize",window,g),s()}),{targetRef:r,setTargetRef:o,addScrollListener:u,removeScrollListener:c,addResizeListener:d,removeResizeListener:b}},render(){return kn("binder",this.$slots)}}),ms=gs,bs=se({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=ne("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?ut(zr("follower",this.$slots),[[t]]):zr("follower",this.$slots)}}),tt="@@mmoContext",ws={mounted(e,{value:t}){e[tt]={handler:void 0},typeof t=="function"&&(e[tt].handler=t,re("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[tt];typeof t=="function"?n.handler?n.handler!==t&&(q("mousemoveoutside",e,n.handler),n.handler=t,re("mousemoveoutside",e,t)):(e[tt].handler=t,re("mousemoveoutside",e,t)):n.handler&&(q("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[tt];t&&q("mousemoveoutside",e,t),e[tt].handler=void 0}},ys=ws,nt="@@coContext",xs={mounted(e,{value:t,modifiers:n}){e[nt]={handler:void 0},typeof t=="function"&&(e[nt].handler=t,re("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[nt];typeof t=="function"?r.handler?r.handler!==t&&(q("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,re("clickoutside",e,t,{capture:n.capture})):(e[nt].handler=t,re("clickoutside",e,t,{capture:n.capture})):r.handler&&(q("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[nt];n&&q("clickoutside",e,n,{capture:t.capture}),e[nt].handler=void 0}},Rr=xs;function Cs(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Ss{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&Cs("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const Tn=new Ss,rt="@@ziContext",$s={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[rt]={enabled:!!o,initialized:!1},o&&(Tn.ensureZIndex(e,r),e[rt].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[rt].enabled;o&&!i&&(Tn.ensureZIndex(e,r),e[rt].initialized=!0),e[rt].enabled=!!o},unmounted(e,t){if(!e[rt].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Tn.unregister(e,r)}},nr=$s,Jo=Symbol("@css-render/vue3-ssr");function Ts(e,t){return`<style cssr-id="${e}">
- ${t}
- </style>`}function Os(e,t){const n=ne(Jo,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(Ts(e,t)))}const Ms=typeof document<"u";function zt(){if(Ms)return;const e=ne(Jo,null);if(e!==null)return{adapter:Os,context:e}}function Br(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:jt}=Wo(),Ps="vueuc-style";function Ir(e){return typeof e=="string"?document.querySelector(e):e()}const Qo=se({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:es(me(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?kn("lazy-teleport",this.$slots):y(ua,{disabled:this.disabled,to:this.mergedTo},kn("lazy-teleport",this.$slots)):null}}),kt={top:"bottom",bottom:"top",left:"right",right:"left"},Dr={start:"end",center:"center",end:"start"},On={top:"height",bottom:"height",left:"width",right:"width"},Es={"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"},As={"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"},_s={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Hr={top:!0,bottom:!1,left:!0,right:!1},Lr={top:"end",bottom:"start",left:"end",right:"start"};function zs(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=s!=null?s:"center",u={top:0,left:0};const c=(x,d,b)=>{let g=0,f=0;const $=n[x]-t[d]-t[x];return $>0&&r&&(b?f=Hr[d]?$:-$:g=Hr[d]?$:-$),{left:g,top:f}},h=a==="left"||a==="right";if(l!=="center"){const x=_s[e],d=kt[x],b=On[x];if(n[b]>t[b]){if(t[x]+t[b]<n[b]){const g=(n[b]-t[b])/2;t[x]<g||t[d]<g?t[x]<t[d]?(l=Dr[s],u=c(b,d,h)):u=c(b,x,h):l="center"}}else n[b]<t[b]&&t[d]<0&&t[x]>t[d]&&(l=Dr[s])}else{const x=a==="bottom"||a==="top"?"left":"top",d=kt[x],b=On[x],g=(n[b]-t[b])/2;(t[x]<g||t[d]<g)&&(t[x]>t[d]?(l=Lr[x],u=c(b,x,h)):(l=Lr[d],u=c(b,d,h)))}let p=a;return t[a]<n[On[a]]&&t[a]<t[kt[a]]&&(p=kt[a]),{placement:l!=="center"?`${p}-${l}`:p,left:u.left,top:u.top}}function Rs(e,t){return t?As[e]:Es[e]}function Bs(e,t,n,r,o,i){if(i)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%)"};case"bottom":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+o)}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+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}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+o)}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+o)}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+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}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+o)}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+o)}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+o)}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+o)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}const Is=jt([jt(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),jt(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[jt("> *",{pointerEvents:"all"})])]),Ds=se({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){const t=ne("VBinder"),n=Mt(()=>e.enabled!==void 0?e.enabled:e.show),r=z(null),o=z(null),i=()=>{const{syncTrigger:p}=e;p.includes("scroll")&&t.addScrollListener(l),p.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Ee(()=>{n.value&&(l(),i())});const s=zt();Is.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ps,ssr:s}),Se(()=>{a()}),rs(()=>{n.value&&l()});const l=()=>{if(!n.value)return;const p=r.value;if(p===null)return;const x=t.targetRef,{x:d,y:b,overlap:g}=e,f=d!==void 0&&b!==void 0?vs(d,b):$n(x);p.style.setProperty("--v-target-width",`${Math.round(f.width)}px`),p.style.setProperty("--v-target-height",`${Math.round(f.height)}px`);const{width:$,minWidth:H,placement:L,internalShift:N,flip:k}=e;p.setAttribute("v-placement",L),g?p.setAttribute("v-overlap",""):p.removeAttribute("v-overlap");const{style:v}=p;$==="target"?v.width=`${f.width}px`:$!==void 0?v.width=$:v.width="",H==="target"?v.minWidth=`${f.width}px`:H!==void 0?v.minWidth=H:v.minWidth="";const m=$n(p),O=$n(o.value),{left:T,top:I,placement:j}=zs(L,f,m,N,k,g),B=Rs(j,g),{left:C,top:R,transform:W}=Bs(j,O,f,I,T,g);p.setAttribute("v-placement",j),p.style.setProperty("--v-offset-left",`${Math.round(T)}px`),p.style.setProperty("--v-offset-top",`${Math.round(I)}px`),p.style.transform=`translateX(${C}) translateY(${R}) ${W}`,p.style.setProperty("--v-transform-origin",B),p.style.transformOrigin=B};xe(n,p=>{p?(i(),u()):a()});const u=()=>{ca().then(l).catch(p=>console.error(p))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(p=>{xe(me(e,p),l)}),["teleportDisabled"].forEach(p=>{xe(me(e,p),u)}),xe(me(e,"syncTrigger"),p=>{p.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),p.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)});const c=tr(),h=Mt(()=>{const{to:p}=e;if(p!==void 0)return p;c.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:h,syncPosition:l}},render(){return y(Qo,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=y("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[y("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?ut(n,[[nr,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Ve=[],Hs=function(){return Ve.some(function(e){return e.activeTargets.length>0})},Ls=function(){return Ve.some(function(e){return e.skippedTargets.length>0})},Fr="ResizeObserver loop completed with undelivered notifications.",Fs=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Fr}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Fr),window.dispatchEvent(e)},Pt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pt||(Pt={}));var Ye=function(e){return Object.freeze(e)},js=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ye(this)}return e}(),ei=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ye(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,l=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:l,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),rr=function(e){return e instanceof SVGElement&&"getBBox"in e},ti=function(e){if(rr(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},jr=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ks=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},Tt=typeof window<"u"?window:{},Wt=new WeakMap,kr=/auto|scroll/,Ws=/^tb|vertical/,Ns=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),ye=function(e){return parseFloat(e||"0")},lt=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new js((n?t:e)||0,(n?e:t)||0)},Wr=Ye({devicePixelContentBoxSize:lt(),borderBoxSize:lt(),contentBoxSize:lt(),contentRect:new ei(0,0,0,0)}),ni=function(e,t){if(t===void 0&&(t=!1),Wt.has(e)&&!t)return Wt.get(e);if(ti(e))return Wt.set(e,Wr),Wr;var n=getComputedStyle(e),r=rr(e)&&e.ownerSVGElement&&e.getBBox(),o=!Ns&&n.boxSizing==="border-box",i=Ws.test(n.writingMode||""),a=!r&&kr.test(n.overflowY||""),s=!r&&kr.test(n.overflowX||""),l=r?0:ye(n.paddingTop),u=r?0:ye(n.paddingRight),c=r?0:ye(n.paddingBottom),h=r?0:ye(n.paddingLeft),p=r?0:ye(n.borderTopWidth),x=r?0:ye(n.borderRightWidth),d=r?0:ye(n.borderBottomWidth),b=r?0:ye(n.borderLeftWidth),g=h+u,f=l+c,$=b+x,H=p+d,L=s?e.offsetHeight-H-e.clientHeight:0,N=a?e.offsetWidth-$-e.clientWidth:0,k=o?g+$:0,v=o?f+H:0,m=r?r.width:ye(n.width)-k-N,O=r?r.height:ye(n.height)-v-L,T=m+g+N+$,I=O+f+L+H,j=Ye({devicePixelContentBoxSize:lt(Math.round(m*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:lt(T,I,i),contentBoxSize:lt(m,O,i),contentRect:new ei(h,l,m,O)});return Wt.set(e,j),j},ri=function(e,t,n){var r=ni(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Pt.DEVICE_PIXEL_CONTENT_BOX:return a;case Pt.BORDER_BOX:return o;default:return i}},Us=function(){function e(t){var n=ni(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ye([n.borderBoxSize]),this.contentBoxSize=Ye([n.contentBoxSize]),this.devicePixelContentBoxSize=Ye([n.devicePixelContentBoxSize])}return e}(),oi=function(e){if(ti(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Xs=function(){var e=1/0,t=[];Ve.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var c=new Us(u.target),h=oi(u.target);s.push(c),u.lastReportedSize=ri(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Nr=function(e){Ve.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(oi(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Vs=function(){var e=0;for(Nr(e);Hs();)e=Xs(),Nr(e);return Ls()&&Fs(),e>0},Mn,ii=[],Ys=function(){return ii.splice(0).forEach(function(e){return e()})},Zs=function(e){if(!Mn){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Ys()}).observe(n,r),Mn=function(){n.textContent="".concat(t?t--:t++)}}ii.push(e),Mn()},qs=function(e){Zs(function(){requestAnimationFrame(e)})},Gt=0,Gs=function(){return!!Gt},Ks=250,Js={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ur=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Xr=function(e){return e===void 0&&(e=0),Date.now()+e},Pn=!1,Qs=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Ks),!Pn){Pn=!0;var r=Xr(t);qs(function(){var o=!1;try{o=Vs()}finally{if(Pn=!1,t=r-Xr(),!Gs())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Js)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ur.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ur.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Nn=new Qs,Vr=function(e){!Gt&&e>0&&Nn.start(),Gt+=e,!Gt&&Nn.stop()},el=function(e){return!rr(e)&&!ks(e)&&getComputedStyle(e).display==="inline"},tl=function(){function e(t,n){this.target=t,this.observedBox=n||Pt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ri(this.target,this.observedBox,!0);return el(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),nl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Nt=new WeakMap,Yr=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ut=function(){function e(){}return e.connect=function(t,n){var r=new nl(t,n);Nt.set(t,r)},e.observe=function(t,n,r){var o=Nt.get(t),i=o.observationTargets.length===0;Yr(o.observationTargets,n)<0&&(i&&Ve.push(o),o.observationTargets.push(new tl(n,r&&r.box)),Vr(1),Nn.schedule())},e.unobserve=function(t,n){var r=Nt.get(t),o=Yr(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Ve.splice(Ve.indexOf(r),1),r.observationTargets.splice(o,1),Vr(-1))},e.disconnect=function(t){var n=this,r=Nt.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),rl=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ut.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!jr(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ut.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!jr(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ut.unobserve(this,t)},e.prototype.disconnect=function(){Ut.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class ol{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||rl)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Zr=new ol,qr=se({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=zo().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}Ee(()=>{const o=n.$el;if(o===void 0){Br("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Br("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Zr.registerHandler(o.nextElementSibling,r),t=!0)}),Se(()=>{t&&Zr.unregisterHandler(n.$el.nextElementSibling)})},render(){return da(this.$slots,"default")}});function ai(e){return e instanceof HTMLElement}function si(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(ai(n)&&(ui(n)||si(n)))return!0}return!1}function li(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(ai(n)&&(ui(n)||li(n)))return!0}return!1}function ui(e){if(!il(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}function il(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"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let bt=[];const al=se({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Ma(),n=z(null),r=z(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function s(){return bt[bt.length-1]===t}function l(g){var f;g.code==="Escape"&&s()&&((f=e.onEsc)===null||f===void 0||f.call(e,g))}Ee(()=>{xe(()=>e.active,g=>{g?(h(),re("keydown",document,l)):(q("keydown",document,l),o&&p())},{immediate:!0})}),Se(()=>{q("keydown",document,l),o&&p()});function u(g){if(!i&&s()){const f=c();if(f===null||f.contains(Jt(g)))return;x("first")}}function c(){const g=n.value;if(g===null)return null;let f=g;for(;f=f.nextSibling,!(f===null||f instanceof Element&&f.tagName==="DIV"););return f}function h(){var g;if(!e.disabled){if(bt.push(t),e.autoFocus){const{initialFocusTo:f}=e;f===void 0?x("first"):(g=Ir(f))===null||g===void 0||g.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}}function p(){var g;if(e.disabled||(document.removeEventListener("focus",u,!0),bt=bt.filter($=>$!==t),s()))return;const{finalFocusTo:f}=e;f!==void 0?(g=Ir(f))===null||g===void 0||g.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function x(g){if(s()&&e.active){const f=n.value,$=r.value;if(f!==null&&$!==null){const H=c();if(H==null||H===$){i=!0,f.focus({preventScroll:!0}),i=!1;return}i=!0;const L=g==="first"?si(H):li(H);i=!1,L||(i=!0,f.focus({preventScroll:!0}),i=!1)}}}function d(g){if(i)return;const f=c();f!==null&&(g.relatedTarget!==null&&f.contains(g.relatedTarget)?x("last"):x("first"))}function b(g){i||(g.relatedTarget!==null&&g.relatedTarget===n.value?x("last"):x("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:d,handleEndFocus:b}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return y(Ie,null,[y("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),y("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function sl(e){const t={isDeactivated:!1};let n=!1;return fa(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),ha(()=>{t.isDeactivated=!0,n||(n=!0)}),t}var ll=typeof global=="object"&&global&&global.Object===Object&&global;const ci=ll;var ul=typeof self=="object"&&self&&self.Object===Object&&self,cl=ci||ul||Function("return this")();const $e=cl;var dl=$e.Symbol;const De=dl;var di=Object.prototype,fl=di.hasOwnProperty,hl=di.toString,wt=De?De.toStringTag:void 0;function vl(e){var t=fl.call(e,wt),n=e[wt];try{e[wt]=void 0;var r=!0}catch(i){}var o=hl.call(e);return r&&(t?e[wt]=n:delete e[wt]),o}var pl=Object.prototype,gl=pl.toString;function ml(e){return gl.call(e)}var bl="[object Null]",wl="[object Undefined]",Gr=De?De.toStringTag:void 0;function Ge(e){return e==null?e===void 0?wl:bl:Gr&&Gr in Object(e)?vl(e):ml(e)}function He(e){return e!=null&&typeof e=="object"}var yl="[object Symbol]";function or(e){return typeof e=="symbol"||He(e)&&Ge(e)==yl}function fi(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var xl=Array.isArray;const pe=xl;var Cl=1/0,Kr=De?De.prototype:void 0,Jr=Kr?Kr.toString:void 0;function hi(e){if(typeof e=="string")return e;if(pe(e))return fi(e,hi)+"";if(or(e))return Jr?Jr.call(e):"";var t=e+"";return t=="0"&&1/e==-Cl?"-0":t}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ir(e){return e}var Sl="[object AsyncFunction]",$l="[object Function]",Tl="[object GeneratorFunction]",Ol="[object Proxy]";function ar(e){if(!Le(e))return!1;var t=Ge(e);return t==$l||t==Tl||t==Sl||t==Ol}var Ml=$e["__core-js_shared__"];const En=Ml;var Qr=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pl(e){return!!Qr&&Qr in e}var El=Function.prototype,Al=El.toString;function Ke(e){if(e!=null){try{return Al.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _l=/[\\^$.*+?()[\]{}|]/g,zl=/^\[object .+?Constructor\]$/,Rl=Function.prototype,Bl=Object.prototype,Il=Rl.toString,Dl=Bl.hasOwnProperty,Hl=RegExp("^"+Il.call(Dl).replace(_l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ll(e){if(!Le(e)||Pl(e))return!1;var t=ar(e)?Hl:zl;return t.test(Ke(e))}function Fl(e,t){return e==null?void 0:e[t]}function Je(e,t){var n=Fl(e,t);return Ll(n)?n:void 0}var jl=Je($e,"WeakMap");const Un=jl;var eo=Object.create,kl=function(){function e(){}return function(t){if(!Le(t))return{};if(eo)return eo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Wl=kl;function Nl(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ul(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Xl=800,Vl=16,Yl=Date.now;function Zl(e){var t=0,n=0;return function(){var r=Yl(),o=Vl-(r-n);if(n=r,o>0){if(++t>=Xl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ql(e){return function(){return e}}var Gl=function(){try{var e=Je(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const en=Gl;var Kl=en?function(e,t){return en(e,"toString",{configurable:!0,enumerable:!1,value:ql(t),writable:!0})}:ir;const Jl=Kl;var Ql=Zl(Jl);const eu=Ql;var tu=9007199254740991,nu=/^(?:0|[1-9]\d*)$/;function sr(e,t){var n=typeof e;return t=t==null?tu:t,!!t&&(n=="number"||n!="symbol"&&nu.test(e))&&e>-1&&e%1==0&&e<t}function lr(e,t,n){t=="__proto__"&&en?en(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Rt(e,t){return e===t||e!==e&&t!==t}var ru=Object.prototype,ou=ru.hasOwnProperty;function iu(e,t,n){var r=e[t];(!(ou.call(e,t)&&Rt(r,n))||n===void 0&&!(t in e))&&lr(e,t,n)}function au(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),o?lr(n,s,l):iu(n,s,l)}return n}var to=Math.max;function su(e,t,n){return t=to(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=to(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),Nl(e,this,s)}}function lu(e,t){return eu(su(e,t,ir),e+"")}var uu=9007199254740991;function ur(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uu}function vt(e){return e!=null&&ur(e.length)&&!ar(e)}function cu(e,t,n){if(!Le(n))return!1;var r=typeof t;return(r=="number"?vt(n)&&sr(t,n.length):r=="string"&&t in n)?Rt(n[t],e):!1}function du(e){return lu(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&cu(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var fu=Object.prototype;function cr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fu;return e===n}function hu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var vu="[object Arguments]";function no(e){return He(e)&&Ge(e)==vu}var vi=Object.prototype,pu=vi.hasOwnProperty,gu=vi.propertyIsEnumerable,mu=no(function(){return arguments}())?no:function(e){return He(e)&&pu.call(e,"callee")&&!gu.call(e,"callee")};const tn=mu;function bu(){return!1}var pi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ro=pi&&typeof module=="object"&&module&&!module.nodeType&&module,wu=ro&&ro.exports===pi,oo=wu?$e.Buffer:void 0,yu=oo?oo.isBuffer:void 0,xu=yu||bu;const nn=xu;var Cu="[object Arguments]",Su="[object Array]",$u="[object Boolean]",Tu="[object Date]",Ou="[object Error]",Mu="[object Function]",Pu="[object Map]",Eu="[object Number]",Au="[object Object]",_u="[object RegExp]",zu="[object Set]",Ru="[object String]",Bu="[object WeakMap]",Iu="[object ArrayBuffer]",Du="[object DataView]",Hu="[object Float32Array]",Lu="[object Float64Array]",Fu="[object Int8Array]",ju="[object Int16Array]",ku="[object Int32Array]",Wu="[object Uint8Array]",Nu="[object Uint8ClampedArray]",Uu="[object Uint16Array]",Xu="[object Uint32Array]",Y={};Y[Hu]=Y[Lu]=Y[Fu]=Y[ju]=Y[ku]=Y[Wu]=Y[Nu]=Y[Uu]=Y[Xu]=!0;Y[Cu]=Y[Su]=Y[Iu]=Y[$u]=Y[Du]=Y[Tu]=Y[Ou]=Y[Mu]=Y[Pu]=Y[Eu]=Y[Au]=Y[_u]=Y[zu]=Y[Ru]=Y[Bu]=!1;function Vu(e){return He(e)&&ur(e.length)&&!!Y[Ge(e)]}function Yu(e){return function(t){return e(t)}}var gi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ot=gi&&typeof module=="object"&&module&&!module.nodeType&&module,Zu=Ot&&Ot.exports===gi,An=Zu&&ci.process,qu=function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||An&&An.binding&&An.binding("util")}catch(t){}}();const io=qu;var ao=io&&io.isTypedArray,Gu=ao?Yu(ao):Vu;const dr=Gu;var Ku=Object.prototype,Ju=Ku.hasOwnProperty;function mi(e,t){var n=pe(e),r=!n&&tn(e),o=!n&&!r&&nn(e),i=!n&&!r&&!o&&dr(e),a=n||r||o||i,s=a?hu(e.length,String):[],l=s.length;for(var u in e)(t||Ju.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||sr(u,l)))&&s.push(u);return s}function bi(e,t){return function(n){return e(t(n))}}var Qu=bi(Object.keys,Object);const ec=Qu;var tc=Object.prototype,nc=tc.hasOwnProperty;function rc(e){if(!cr(e))return ec(e);var t=[];for(var n in Object(e))nc.call(e,n)&&n!="constructor"&&t.push(n);return t}function fr(e){return vt(e)?mi(e):rc(e)}function oc(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ic=Object.prototype,ac=ic.hasOwnProperty;function sc(e){if(!Le(e))return oc(e);var t=cr(e),n=[];for(var r in e)r=="constructor"&&(t||!ac.call(e,r))||n.push(r);return n}function wi(e){return vt(e)?mi(e,!0):sc(e)}var lc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uc=/^\w*$/;function hr(e,t){if(pe(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||or(e)?!0:uc.test(e)||!lc.test(e)||t!=null&&e in Object(t)}var cc=Je(Object,"create");const Et=cc;function dc(){this.__data__=Et?Et(null):{},this.size=0}function fc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hc="__lodash_hash_undefined__",vc=Object.prototype,pc=vc.hasOwnProperty;function gc(e){var t=this.__data__;if(Et){var n=t[e];return n===hc?void 0:n}return pc.call(t,e)?t[e]:void 0}var mc=Object.prototype,bc=mc.hasOwnProperty;function wc(e){var t=this.__data__;return Et?t[e]!==void 0:bc.call(t,e)}var yc="__lodash_hash_undefined__";function xc(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Et&&t===void 0?yc:t,this}function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=dc;qe.prototype.delete=fc;qe.prototype.get=gc;qe.prototype.has=wc;qe.prototype.set=xc;function Cc(){this.__data__=[],this.size=0}function ln(e,t){for(var n=e.length;n--;)if(Rt(e[n][0],t))return n;return-1}var Sc=Array.prototype,$c=Sc.splice;function Tc(e){var t=this.__data__,n=ln(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$c.call(t,n,1),--this.size,!0}function Oc(e){var t=this.__data__,n=ln(t,e);return n<0?void 0:t[n][1]}function Mc(e){return ln(this.__data__,e)>-1}function Pc(e,t){var n=this.__data__,r=ln(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ae(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ae.prototype.clear=Cc;Ae.prototype.delete=Tc;Ae.prototype.get=Oc;Ae.prototype.has=Mc;Ae.prototype.set=Pc;var Ec=Je($e,"Map");const At=Ec;function Ac(){this.size=0,this.__data__={hash:new qe,map:new(At||Ae),string:new qe}}function _c(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function un(e,t){var n=e.__data__;return _c(t)?n[typeof t=="string"?"string":"hash"]:n.map}function zc(e){var t=un(this,e).delete(e);return this.size-=t?1:0,t}function Rc(e){return un(this,e).get(e)}function Bc(e){return un(this,e).has(e)}function Ic(e,t){var n=un(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function _e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_e.prototype.clear=Ac;_e.prototype.delete=zc;_e.prototype.get=Rc;_e.prototype.has=Bc;_e.prototype.set=Ic;var Dc="Expected a function";function vr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Dc);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(vr.Cache||_e),n}vr.Cache=_e;var Hc=500;function Lc(e){var t=vr(e,function(r){return n.size===Hc&&n.clear(),r}),n=t.cache;return t}var Fc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jc=/\\(\\)?/g,kc=Lc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fc,function(n,r,o,i){t.push(o?i.replace(jc,"$1"):r||n)}),t});const Wc=kc;function cn(e){return e==null?"":hi(e)}function yi(e,t){return pe(e)?e:hr(e,t)?[e]:Wc(cn(e))}var Nc=1/0;function dn(e){if(typeof e=="string"||or(e))return e;var t=e+"";return t=="0"&&1/e==-Nc?"-0":t}function xi(e,t){t=yi(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 Uc(e,t,n){var r=e==null?void 0:xi(e,t);return r===void 0?n:r}function Xc(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Vc=bi(Object.getPrototypeOf,Object);const Ci=Vc;var Yc="[object Object]",Zc=Function.prototype,qc=Object.prototype,Si=Zc.toString,Gc=qc.hasOwnProperty,Kc=Si.call(Object);function Jc(e){if(!He(e)||Ge(e)!=Yc)return!1;var t=Ci(e);if(t===null)return!0;var n=Gc.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Si.call(n)==Kc}function Qc(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function ed(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Qc(e,t,n)}var td="\\ud800-\\udfff",nd="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",od="\\u20d0-\\u20ff",id=nd+rd+od,ad="\\ufe0e\\ufe0f",sd="\\u200d",ld=RegExp("["+sd+td+id+ad+"]");function $i(e){return ld.test(e)}function ud(e){return e.split("")}var Ti="\\ud800-\\udfff",cd="\\u0300-\\u036f",dd="\\ufe20-\\ufe2f",fd="\\u20d0-\\u20ff",hd=cd+dd+fd,vd="\\ufe0e\\ufe0f",pd="["+Ti+"]",Xn="["+hd+"]",Vn="\\ud83c[\\udffb-\\udfff]",gd="(?:"+Xn+"|"+Vn+")",Oi="[^"+Ti+"]",Mi="(?:\\ud83c[\\udde6-\\uddff]){2}",Pi="[\\ud800-\\udbff][\\udc00-\\udfff]",md="\\u200d",Ei=gd+"?",Ai="["+vd+"]?",bd="(?:"+md+"(?:"+[Oi,Mi,Pi].join("|")+")"+Ai+Ei+")*",wd=Ai+Ei+bd,yd="(?:"+[Oi+Xn+"?",Xn,Mi,Pi,pd].join("|")+")",xd=RegExp(Vn+"(?="+Vn+")|"+yd+wd,"g");function Cd(e){return e.match(xd)||[]}function Sd(e){return $i(e)?Cd(e):ud(e)}function $d(e){return function(t){t=cn(t);var n=$i(t)?Sd(t):void 0,r=n?n[0]:t.charAt(0),o=n?ed(n,1).join(""):t.slice(1);return r[e]()+o}}var Td=$d("toUpperCase");const Od=Td;function Md(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pd(e){return function(t){return e==null?void 0:e[t]}}var Ed={À:"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"},Ad=Pd(Ed);const _d=Ad;var zd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",Id="\\u20d0-\\u20ff",Dd=Rd+Bd+Id,Hd="["+Dd+"]",Ld=RegExp(Hd,"g");function Fd(e){return e=cn(e),e&&e.replace(zd,_d).replace(Ld,"")}var jd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function kd(e){return e.match(jd)||[]}var Wd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Nd(e){return Wd.test(e)}var _i="\\ud800-\\udfff",Ud="\\u0300-\\u036f",Xd="\\ufe20-\\ufe2f",Vd="\\u20d0-\\u20ff",Yd=Ud+Xd+Vd,zi="\\u2700-\\u27bf",Ri="a-z\\xdf-\\xf6\\xf8-\\xff",Zd="\\xac\\xb1\\xd7\\xf7",qd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Gd="\\u2000-\\u206f",Kd=" \\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",Bi="A-Z\\xc0-\\xd6\\xd8-\\xde",Jd="\\ufe0e\\ufe0f",Ii=Zd+qd+Gd+Kd,Di="['’]",so="["+Ii+"]",Qd="["+Yd+"]",Hi="\\d+",ef="["+zi+"]",Li="["+Ri+"]",Fi="[^"+_i+Ii+Hi+zi+Ri+Bi+"]",tf="\\ud83c[\\udffb-\\udfff]",nf="(?:"+Qd+"|"+tf+")",rf="[^"+_i+"]",ji="(?:\\ud83c[\\udde6-\\uddff]){2}",ki="[\\ud800-\\udbff][\\udc00-\\udfff]",ot="["+Bi+"]",of="\\u200d",lo="(?:"+Li+"|"+Fi+")",af="(?:"+ot+"|"+Fi+")",uo="(?:"+Di+"(?:d|ll|m|re|s|t|ve))?",co="(?:"+Di+"(?:D|LL|M|RE|S|T|VE))?",Wi=nf+"?",Ni="["+Jd+"]?",sf="(?:"+of+"(?:"+[rf,ji,ki].join("|")+")"+Ni+Wi+")*",lf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cf=Ni+Wi+sf,df="(?:"+[ef,ji,ki].join("|")+")"+cf,ff=RegExp([ot+"?"+Li+"+"+uo+"(?="+[so,ot,"$"].join("|")+")",af+"+"+co+"(?="+[so,ot+lo,"$"].join("|")+")",ot+"?"+lo+"+"+uo,ot+"+"+co,uf,lf,Hi,df].join("|"),"g");function hf(e){return e.match(ff)||[]}function vf(e,t,n){return e=cn(e),t=n?void 0:t,t===void 0?Nd(e)?hf(e):kd(e):e.match(t)||[]}var pf="['’]",gf=RegExp(pf,"g");function mf(e){return function(t){return Md(vf(Fd(t).replace(gf,"")),e,"")}}function bf(){this.__data__=new Ae,this.size=0}function wf(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yf(e){return this.__data__.get(e)}function xf(e){return this.__data__.has(e)}var Cf=200;function Sf(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!At||r.length<Cf-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _e(r)}return n.set(e,t),this.size=n.size,this}function Ce(e){var t=this.__data__=new Ae(e);this.size=t.size}Ce.prototype.clear=bf;Ce.prototype.delete=wf;Ce.prototype.get=yf;Ce.prototype.has=xf;Ce.prototype.set=Sf;var Ui=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fo=Ui&&typeof module=="object"&&module&&!module.nodeType&&module,$f=fo&&fo.exports===Ui,ho=$f?$e.Buffer:void 0,vo=ho?ho.allocUnsafe:void 0;function Tf(e,t){if(t)return e.slice();var n=e.length,r=vo?vo(n):new e.constructor(n);return e.copy(r),r}function Of(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mf(){return[]}var Pf=Object.prototype,Ef=Pf.propertyIsEnumerable,po=Object.getOwnPropertySymbols,Af=po?function(e){return e==null?[]:(e=Object(e),Of(po(e),function(t){return Ef.call(e,t)}))}:Mf;const _f=Af;function zf(e,t,n){var r=t(e);return pe(e)?r:Xc(r,n(e))}function go(e){return zf(e,fr,_f)}var Rf=Je($e,"DataView");const Yn=Rf;var Bf=Je($e,"Promise");const Zn=Bf;var If=Je($e,"Set");const qn=If;var mo="[object Map]",Df="[object Object]",bo="[object Promise]",wo="[object Set]",yo="[object WeakMap]",xo="[object DataView]",Hf=Ke(Yn),Lf=Ke(At),Ff=Ke(Zn),jf=Ke(qn),kf=Ke(Un),je=Ge;(Yn&&je(new Yn(new ArrayBuffer(1)))!=xo||At&&je(new At)!=mo||Zn&&je(Zn.resolve())!=bo||qn&&je(new qn)!=wo||Un&&je(new Un)!=yo)&&(je=function(e){var t=Ge(e),n=t==Df?e.constructor:void 0,r=n?Ke(n):"";if(r)switch(r){case Hf:return xo;case Lf:return mo;case Ff:return bo;case jf:return wo;case kf:return yo}return t});const Co=je;var Wf=$e.Uint8Array;const rn=Wf;function Nf(e){var t=new e.constructor(e.byteLength);return new rn(t).set(new rn(e)),t}function Uf(e,t){var n=t?Nf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Xf(e){return typeof e.constructor=="function"&&!cr(e)?Wl(Ci(e)):{}}var Vf="__lodash_hash_undefined__";function Yf(e){return this.__data__.set(e,Vf),this}function Zf(e){return this.__data__.has(e)}function on(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new _e;++t<n;)this.add(e[t])}on.prototype.add=on.prototype.push=Yf;on.prototype.has=Zf;function qf(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 Gf(e,t){return e.has(t)}var Kf=1,Jf=2;function Xi(e,t,n,r,o,i){var a=n&Kf,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var h=-1,p=!0,x=n&Jf?new on:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var d=e[h],b=t[h];if(r)var g=a?r(b,d,h,t,e,i):r(d,b,h,e,t,i);if(g!==void 0){if(g)continue;p=!1;break}if(x){if(!qf(t,function(f,$){if(!Gf(x,$)&&(d===f||o(d,f,n,r,i)))return x.push($)})){p=!1;break}}else if(!(d===b||o(d,b,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}function Qf(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function eh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var th=1,nh=2,rh="[object Boolean]",oh="[object Date]",ih="[object Error]",ah="[object Map]",sh="[object Number]",lh="[object RegExp]",uh="[object Set]",ch="[object String]",dh="[object Symbol]",fh="[object ArrayBuffer]",hh="[object DataView]",So=De?De.prototype:void 0,_n=So?So.valueOf:void 0;function vh(e,t,n,r,o,i,a){switch(n){case hh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fh:return!(e.byteLength!=t.byteLength||!i(new rn(e),new rn(t)));case rh:case oh:case sh:return Rt(+e,+t);case ih:return e.name==t.name&&e.message==t.message;case lh:case ch:return e==t+"";case ah:var s=Qf;case uh:var l=r&th;if(s||(s=eh),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=nh,a.set(e,t);var c=Xi(s(e),s(t),r,o,i,a);return a.delete(e),c;case dh:if(_n)return _n.call(e)==_n.call(t)}return!1}var ph=1,gh=Object.prototype,mh=gh.hasOwnProperty;function bh(e,t,n,r,o,i){var a=n&ph,s=go(e),l=s.length,u=go(t),c=u.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var p=s[h];if(!(a?p in t:mh.call(t,p)))return!1}var x=i.get(e),d=i.get(t);if(x&&d)return x==t&&d==e;var b=!0;i.set(e,t),i.set(t,e);for(var g=a;++h<l;){p=s[h];var f=e[p],$=t[p];if(r)var H=a?r($,f,p,t,e,i):r(f,$,p,e,t,i);if(!(H===void 0?f===$||o(f,$,n,r,i):H)){b=!1;break}g||(g=p=="constructor")}if(b&&!g){var L=e.constructor,N=t.constructor;L!=N&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof N=="function"&&N instanceof N)&&(b=!1)}return i.delete(e),i.delete(t),b}var wh=1,$o="[object Arguments]",To="[object Array]",Xt="[object Object]",yh=Object.prototype,Oo=yh.hasOwnProperty;function xh(e,t,n,r,o,i){var a=pe(e),s=pe(t),l=a?To:Co(e),u=s?To:Co(t);l=l==$o?Xt:l,u=u==$o?Xt:u;var c=l==Xt,h=u==Xt,p=l==u;if(p&&nn(e)){if(!nn(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new Ce),a||dr(e)?Xi(e,t,n,r,o,i):vh(e,t,l,n,r,o,i);if(!(n&wh)){var x=c&&Oo.call(e,"__wrapped__"),d=h&&Oo.call(t,"__wrapped__");if(x||d){var b=x?e.value():e,g=d?t.value():t;return i||(i=new Ce),o(b,g,n,r,i)}}return p?(i||(i=new Ce),bh(e,t,n,r,o,i)):!1}function pr(e,t,n,r,o){return e===t?!0:e==null||t==null||!He(e)&&!He(t)?e!==e&&t!==t:xh(e,t,n,r,pr,o)}var Ch=1,Sh=2;function $h(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var h=new Ce;if(r)var p=r(u,c,l,e,t,h);if(!(p===void 0?pr(c,u,Ch|Sh,r,h):p))return!1}}return!0}function Vi(e){return e===e&&!Le(e)}function Th(e){for(var t=fr(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Vi(o)]}return t}function Yi(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Oh(e){var t=Th(e);return t.length==1&&t[0][2]?Yi(t[0][0],t[0][1]):function(n){return n===e||$h(n,e,t)}}function Mh(e,t){return e!=null&&t in Object(e)}function Ph(e,t,n){t=yi(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=dn(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&ur(o)&&sr(a,o)&&(pe(e)||tn(e)))}function Eh(e,t){return e!=null&&Ph(e,t,Mh)}var Ah=1,_h=2;function zh(e,t){return hr(e)&&Vi(t)?Yi(dn(e),t):function(n){var r=Uc(n,e);return r===void 0&&r===t?Eh(n,e):pr(t,r,Ah|_h)}}function Rh(e){return function(t){return t==null?void 0:t[e]}}function Bh(e){return function(t){return xi(t,e)}}function Ih(e){return hr(e)?Rh(dn(e)):Bh(e)}function Dh(e){return typeof e=="function"?e:e==null?ir:typeof e=="object"?pe(e)?zh(e[0],e[1]):Oh(e):Ih(e)}function Hh(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(n(i[l],l,i)===!1)break}return t}}var Lh=Hh();const Zi=Lh;function Fh(e,t){return e&&Zi(e,t,fr)}function jh(e,t){return function(n,r){if(n==null)return n;if(!vt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var kh=jh(Fh);const Wh=kh;function Gn(e,t,n){(n!==void 0&&!Rt(e[t],n)||n===void 0&&!(t in e))&&lr(e,t,n)}function Nh(e){return He(e)&&vt(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Uh(e){return au(e,wi(e))}function Xh(e,t,n,r,o,i,a){var s=Kn(e,n),l=Kn(t,n),u=a.get(l);if(u){Gn(e,n,u);return}var c=i?i(s,l,n+"",e,t,a):void 0,h=c===void 0;if(h){var p=pe(l),x=!p&&nn(l),d=!p&&!x&&dr(l);c=l,p||x||d?pe(s)?c=s:Nh(s)?c=Ul(s):x?(h=!1,c=Tf(l,!0)):d?(h=!1,c=Uf(l,!0)):c=[]:Jc(l)||tn(l)?(c=s,tn(s)?c=Uh(s):(!Le(s)||ar(s))&&(c=Xf(l))):h=!1}h&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),Gn(e,n,c)}function qi(e,t,n,r,o){e!==t&&Zi(t,function(i,a){if(o||(o=new Ce),Le(i))Xh(e,t,a,n,qi,r,o);else{var s=r?r(Kn(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),Gn(e,a,s)}},wi)}function Vh(e,t){var n=-1,r=vt(e)?Array(e.length):[];return Wh(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function Yh(e,t){var n=pe(e)?fi:Vh;return n(e,Dh(t))}var Zh=mf(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const qh=Zh;var Gh=du(function(e,t,n){qi(e,t,n)});const Vt=Gh,fn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:Kh,fontFamily:Jh,lineHeight:Qh}=fn,Gi=D("body",`
- margin: 0;
- font-size: ${Kh};
- font-family: ${Jh};
- line-height: ${Qh};
- -webkit-text-size-adjust: 100%;
- -webkit-tap-highlight-color: transparent;
- `,[D("input",`
- font-family: inherit;
- font-size: inherit;
- `)]),pt="n-config-provider",_t="naive-ui-style";function Te(e,t,n,r,o,i){const a=zt(),s=ne(pt,null);if(n){const u=()=>{const c=i==null?void 0:i.value;n.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:_t,ssr:a}),s!=null&&s.preflightStyleDisabled||Gi.mount({id:"n-global",head:!0,anchorMetaName:_t,ssr:a})};a?u():er(u)}return F(()=>{var u;const{theme:{common:c,self:h,peers:p={}}={},themeOverrides:x={},builtinThemeOverrides:d={}}=o,{common:b,peers:g}=x,{common:f=void 0,[e]:{common:$=void 0,self:H=void 0,peers:L={}}={}}=(s==null?void 0:s.mergedThemeRef.value)||{},{common:N=void 0,[e]:k={}}=(s==null?void 0:s.mergedThemeOverridesRef.value)||{},{common:v,peers:m={}}=k,O=Vt({},c||$||f||r.common,N,v,b),T=Vt((u=h||H||r.self)===null||u===void 0?void 0:u(O),d,k,x);return{common:O,self:T,peers:Vt({},r.peers,L,p),peerOverrides:Vt({},d.peers,m,g)}})}Te.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const ev="n";function Bt(e={},t={defaultBordered:!0}){const n=ne(pt,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:F(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n==null?void 0:n.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:F(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||ev),namespaceRef:F(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const tv={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",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",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"},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",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},nv=tv;function zn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function yt(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}function xt(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?ov(s,function(h){return h.test(a)}):rv(s,function(h){return h.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function rv(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ov(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function iv(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}}var av={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"}},sv=function(t,n,r){var o,i=av[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};const lv=sv;var uv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fv={date:zn({formats:uv,defaultWidth:"full"}),time:zn({formats:cv,defaultWidth:"full"}),dateTime:zn({formats:dv,defaultWidth:"full"})};const hv=fv;var vv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pv=function(t,n,r,o){return vv[t]};const gv=pv;var mv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},wv={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"]},yv={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"]},xv={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"}},Cv={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"}},Sv=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$v={ordinalNumber:Sv,era:yt({values:mv,defaultWidth:"wide"}),quarter:yt({values:bv,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yt({values:wv,defaultWidth:"wide"}),day:yt({values:yv,defaultWidth:"wide"}),dayPeriod:yt({values:xv,defaultWidth:"wide",formattingValues:Cv,defaultFormattingWidth:"wide"})};const Tv=$v;var Ov=/^(\d+)(th|st|nd|rd)?/i,Mv=/\d+/i,Pv={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},Ev={any:[/^b/i,/^(a|c)/i]},Av={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_v={any:[/1/i,/2/i,/3/i,/4/i]},zv={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},Rv={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]},Bv={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},Iv={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]},Dv={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},Hv={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}},Lv={ordinalNumber:iv({matchPattern:Ov,parsePattern:Mv,valueCallback:function(t){return parseInt(t,10)}}),era:xt({matchPatterns:Pv,defaultMatchWidth:"wide",parsePatterns:Ev,defaultParseWidth:"any"}),quarter:xt({matchPatterns:Av,defaultMatchWidth:"wide",parsePatterns:_v,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:xt({matchPatterns:zv,defaultMatchWidth:"wide",parsePatterns:Rv,defaultParseWidth:"any"}),day:xt({matchPatterns:Bv,defaultMatchWidth:"wide",parsePatterns:Iv,defaultParseWidth:"any"}),dayPeriod:xt({matchPatterns:Dv,defaultMatchWidth:"any",parsePatterns:Hv,defaultParseWidth:"any"})};const Fv=Lv;var jv={code:"en-US",formatDistance:lv,formatLong:hv,formatRelative:gv,localize:Tv,match:Fv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const kv=jv,Wv={name:"en-US",locale:kv},Nv=Wv;function Uv(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=ne(pt,null)||{},r=F(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:nv[e]});return{dateLocaleRef:F(()=>{var i;return(i=n==null?void 0:n.value)!==null&&i!==void 0?i:Nv}),localeRef:r}}function Xv(e,t,n){if(!t)return;const r=zt(),o=ne(pt,null),i=()=>{const a=n==null?void 0:n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:_t,props:{bPrefix:a?`.${a}-`:void 0},ssr:r}),o!=null&&o.preflightStyleDisabled||Gi.mount({id:"n-global",head:!0,anchorMetaName:_t,ssr:r})};r?i():er(i)}function gr(e,t,n,r){var o;n||Ea("useThemeClass","cssVarsRef is not passed");const i=(o=ne(pt,null))===null||o===void 0?void 0:o.mergedThemeHashRef,a=z(""),s=zt();let l;const u=`__${e}`,c=()=>{let h=u;const p=t?t.value:void 0,x=i==null?void 0:i.value;x&&(h+="-"+x),p&&(h+="-"+p);const{themeOverrides:d,builtinThemeOverrides:b}=r;d&&(h+="-"+jn(JSON.stringify(d))),b&&(h+="-"+jn(JSON.stringify(b))),a.value=h,l=()=>{const g=n.value;let f="";for(const $ in g)f+=`${$}: ${g[$]};`;D(`.${h}`,f).mount({id:h,ssr:s}),l=void 0}};return Ze(()=>{c()}),{themeClass:a,onRender:()=>{l==null||l()}}}function Vv(e,t,n){if(!t)return;const r=zt(),o=F(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=()=>{Ze(()=>{const{value:a}=n,s=`${a}${e}Rtl`;if(Va(s,r))return;const{value:l}=o;l&&l.style.mount({id:s,head:!0,anchorMetaName:_t,props:{bPrefix:a?`.${a}-`:void 0},ssr:r})})};return r?i():er(i),o}function hn(e,t){return se({name:Od(e),setup(){var n;const r=(n=ne(pt,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var o;const i=(o=r==null?void 0:r.value)===null||o===void 0?void 0:o[e];return i?i():t}}})}const Yv=hn("rotateClockwise",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"}),y("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"}))),Zv=hn("rotateClockwise",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"}),y("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"}))),qv=hn("zoomIn",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"}),y("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"}))),Gv=hn("zoomOut",y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"}),y("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"}))),Kv=se({name:"ResizeSmall",render(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},y("g",{fill:"none"},y("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"})))}}),Jv=Z("base-icon",`
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,[D("svg",`
- height: 1em;
- width: 1em;
- `)]),Be=se({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Xv("-base-icon",Jv,me(e,"clsPrefix"))},render(){return y("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),E={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},Qv=ct(E.neutralBase),Ki=ct(E.neutralInvertBase),ep="rgba("+Ki.slice(0,3).join(", ")+", ";function Mo(e){return ep+String(e)+")"}function ie(e){const t=Array.from(Ki);return t[3]=Number(e),Ho(Qv,t)}const tp=Object.assign(Object.assign({name:"common"},fn),{baseColor:E.neutralBase,primaryColor:E.primaryDefault,primaryColorHover:E.primaryHover,primaryColorPressed:E.primaryActive,primaryColorSuppl:E.primarySuppl,infoColor:E.infoDefault,infoColorHover:E.infoHover,infoColorPressed:E.infoActive,infoColorSuppl:E.infoSuppl,successColor:E.successDefault,successColorHover:E.successHover,successColorPressed:E.successActive,successColorSuppl:E.successSuppl,warningColor:E.warningDefault,warningColorHover:E.warningHover,warningColorPressed:E.warningActive,warningColorSuppl:E.warningSuppl,errorColor:E.errorDefault,errorColorHover:E.errorHover,errorColorPressed:E.errorActive,errorColorSuppl:E.errorSuppl,textColorBase:E.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:ie(E.alpha4),placeholderColor:ie(E.alpha4),placeholderColorDisabled:ie(E.alpha5),iconColor:ie(E.alpha4),iconColorHover:Ht(ie(E.alpha4),{lightness:.75}),iconColorPressed:Ht(ie(E.alpha4),{lightness:.9}),iconColorDisabled:ie(E.alpha5),opacity1:E.alpha1,opacity2:E.alpha2,opacity3:E.alpha3,opacity4:E.alpha4,opacity5:E.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:ie(Number(E.alphaClose)),closeIconColorHover:ie(Number(E.alphaClose)),closeIconColorPressed:ie(Number(E.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:ie(E.alpha4),clearColorHover:Ht(ie(E.alpha4),{lightness:.75}),clearColorPressed:Ht(ie(E.alpha4),{lightness:.9}),scrollbarColor:Mo(E.alphaScrollbar),scrollbarColorHover:Mo(E.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:ie(E.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:E.neutralPopover,tableColor:E.neutralCard,cardColor:E.neutralCard,modalColor:E.neutralModal,bodyColor:E.neutralBody,tagColor:"#eee",avatarColor:ie(E.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:ie(E.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:E.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),vn=tp,np=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}},rp={name:"Scrollbar",common:vn,self:np},op=rp,{cubicBezierEaseInOut:Po}=fn;function Jn({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=Po,leaveCubicBezier:o=Po}={}){return[D(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),D(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),D(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),D(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const ip=Z("scrollbar",`
- overflow: hidden;
- position: relative;
- z-index: auto;
- height: 100%;
- width: 100%;
- `,[D(">",[Z("scrollbar-container",`
- width: 100%;
- overflow: scroll;
- height: 100%;
- max-height: inherit;
- scrollbar-width: none;
- `,[D("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
- width: 0;
- height: 0;
- display: none;
- `),D(">",[Z("scrollbar-content",`
- box-sizing: border-box;
- min-width: 100%;
- `)])])]),D(">, +",[Z("scrollbar-rail",`
- position: absolute;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- `,[Xe("horizontal",`
- left: 2px;
- right: 2px;
- bottom: 4px;
- height: var(--n-scrollbar-height);
- `,[D(">",[Ue("scrollbar",`
- height: var(--n-scrollbar-height);
- border-radius: var(--n-scrollbar-border-radius);
- right: 0;
- `)])]),Xe("vertical",`
- right: 4px;
- top: 2px;
- bottom: 2px;
- width: var(--n-scrollbar-width);
- `,[D(">",[Ue("scrollbar",`
- width: var(--n-scrollbar-width);
- border-radius: var(--n-scrollbar-border-radius);
- bottom: 0;
- `)])]),Xe("disabled",[D(">",[Ue("scrollbar",{pointerEvents:"none"})])]),D(">",[Ue("scrollbar",`
- position: absolute;
- cursor: pointer;
- pointer-events: all;
- background-color: var(--n-scrollbar-color);
- transition: background-color .2s var(--n-scrollbar-bezier);
- `,[Jn(),D("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),ap=Object.assign(Object.assign({},Te.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),sp=se({name:"Scrollbar",props:ap,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Bt(e),o=Vv("Scrollbar",r,t),i=z(null),a=z(null),s=z(null),l=z(null),u=z(null),c=z(null),h=z(null),p=z(null),x=z(null),d=z(null),b=z(null),g=z(0),f=z(0),$=z(!1),H=z(!1);let L=!1,N=!1,k,v,m=0,O=0,T=0,I=0;const j=fs(),B=F(()=>{const{value:w}=p,{value:P}=c,{value:_}=d;return w===null||P===null||_===null?0:Math.min(w,_*w/P+e.size*1.5)}),C=F(()=>`${B.value}px`),R=F(()=>{const{value:w}=x,{value:P}=h,{value:_}=b;return w===null||P===null||_===null?0:_*w/P+e.size*1.5}),W=F(()=>`${R.value}px`),te=F(()=>{const{value:w}=p,{value:P}=g,{value:_}=c,{value:V}=d;if(w===null||_===null||V===null)return 0;{const Q=_-w;return Q?P/Q*(V-B.value):0}}),J=F(()=>`${te.value}px`),K=F(()=>{const{value:w}=x,{value:P}=f,{value:_}=h,{value:V}=b;if(w===null||_===null||V===null)return 0;{const Q=_-w;return Q?P/Q*(V-R.value):0}}),ge=F(()=>`${K.value}px`),le=F(()=>{const{value:w}=p,{value:P}=c;return w!==null&&P!==null&&P>w}),Qe=F(()=>{const{value:w}=x,{value:P}=h;return w!==null&&P!==null&&P>w}),pn=F(()=>{const{trigger:w}=e;return w==="none"||$.value}),fe=F(()=>{const{trigger:w}=e;return w==="none"||H.value}),be=F(()=>{const{container:w}=e;return w?w():a.value}),gn=F(()=>{const{content:w}=e;return w?w():s.value}),It=sl(()=>{e.container||gt({top:g.value,left:f.value})}),mn=()=>{It.isDeactivated||Fe()},Dt=w=>{if(It.isDeactivated)return;const{onResize:P}=e;P&&P(w),Fe()},gt=(w,P)=>{if(!e.scrollable)return;if(typeof w=="number"){S(P!=null?P:0,w,0,!1,"auto");return}const{left:_,top:V,index:Q,elSize:ce,position:Oe,behavior:G,el:Me,debounce:mt=!0}=w;(_!==void 0||V!==void 0)&&S(_!=null?_:0,V!=null?V:0,0,!1,G),Me!==void 0?S(0,Me.offsetTop,Me.offsetHeight,mt,G):Q!==void 0&&ce!==void 0?S(0,Q*ce,ce,mt,G):Oe==="bottom"?S(0,Number.MAX_SAFE_INTEGER,0,!1,G):Oe==="top"&&S(0,0,0,!1,G)},ze=(w,P)=>{if(!e.scrollable)return;const{value:_}=be;_&&(typeof w=="object"?_.scrollBy(w):_.scrollBy(w,P||0))};function S(w,P,_,V,Q){const{value:ce}=be;if(ce){if(V){const{scrollTop:Oe,offsetHeight:G}=ce;if(P>Oe){P+_<=Oe+G||ce.scrollTo({left:w,top:P+_-G,behavior:Q});return}}ce.scrollTo({left:w,top:P,behavior:Q})}}function A(){ue(),he(),Fe()}function M(){U()}function U(){X(),oe()}function X(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{H.value=!1},e.duration)}function oe(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{$.value=!1},e.duration)}function ue(){k!==void 0&&window.clearTimeout(k),$.value=!0}function he(){v!==void 0&&window.clearTimeout(v),H.value=!0}function we(w){const{onScroll:P}=e;P&&P(w),mr()}function mr(){const{value:w}=be;w&&(g.value=w.scrollTop,f.value=w.scrollLeft*(o!=null&&o.value?-1:1))}function oa(){const{value:w}=gn;w&&(c.value=w.offsetHeight,h.value=w.offsetWidth);const{value:P}=be;P&&(p.value=P.offsetHeight,x.value=P.offsetWidth);const{value:_}=u,{value:V}=l;_&&(b.value=_.offsetWidth),V&&(d.value=V.offsetHeight)}function br(){const{value:w}=be;w&&(g.value=w.scrollTop,f.value=w.scrollLeft*(o!=null&&o.value?-1:1),p.value=w.offsetHeight,x.value=w.offsetWidth,c.value=w.scrollHeight,h.value=w.scrollWidth);const{value:P}=u,{value:_}=l;P&&(b.value=P.offsetWidth),_&&(d.value=_.offsetHeight)}function Fe(){e.scrollable&&(e.useUnifiedContainer?br():(oa(),mr()))}function wr(w){var P;return!(!((P=i.value)===null||P===void 0)&&P.contains(Jt(w)))}function ia(w){w.preventDefault(),w.stopPropagation(),N=!0,re("mousemove",window,yr,!0),re("mouseup",window,xr,!0),O=f.value,T=o!=null&&o.value?window.innerWidth-w.clientX:w.clientX}function yr(w){if(!N)return;k!==void 0&&window.clearTimeout(k),v!==void 0&&window.clearTimeout(v);const{value:P}=x,{value:_}=h,{value:V}=R;if(P===null||_===null)return;const ce=(o!=null&&o.value?window.innerWidth-w.clientX-T:w.clientX-T)*(_-P)/(P-V),Oe=_-P;let G=O+ce;G=Math.min(Oe,G),G=Math.max(G,0);const{value:Me}=be;if(Me){Me.scrollLeft=G*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:mt}=e;mt&&mt(G)}}function xr(w){w.preventDefault(),w.stopPropagation(),q("mousemove",window,yr,!0),q("mouseup",window,xr,!0),N=!1,Fe(),wr(w)&&U()}function aa(w){w.preventDefault(),w.stopPropagation(),L=!0,re("mousemove",window,bn,!0),re("mouseup",window,wn,!0),m=g.value,I=w.clientY}function bn(w){if(!L)return;k!==void 0&&window.clearTimeout(k),v!==void 0&&window.clearTimeout(v);const{value:P}=p,{value:_}=c,{value:V}=B;if(P===null||_===null)return;const ce=(w.clientY-I)*(_-P)/(P-V),Oe=_-P;let G=m+ce;G=Math.min(Oe,G),G=Math.max(G,0);const{value:Me}=be;Me&&(Me.scrollTop=G)}function wn(w){w.preventDefault(),w.stopPropagation(),q("mousemove",window,bn,!0),q("mouseup",window,wn,!0),L=!1,Fe(),wr(w)&&U()}Ze(()=>{const{value:w}=Qe,{value:P}=le,{value:_}=t,{value:V}=u,{value:Q}=l;V&&(w?V.classList.remove(`${_}-scrollbar-rail--disabled`):V.classList.add(`${_}-scrollbar-rail--disabled`)),Q&&(P?Q.classList.remove(`${_}-scrollbar-rail--disabled`):Q.classList.add(`${_}-scrollbar-rail--disabled`))}),Ee(()=>{e.container||Fe()}),Se(()=>{k!==void 0&&window.clearTimeout(k),v!==void 0&&window.clearTimeout(v),q("mousemove",window,bn,!0),q("mouseup",window,wn,!0)});const sa=Te("Scrollbar","-scrollbar",ip,op,e,t),Cr=F(()=>{const{common:{cubicBezierEaseInOut:w,scrollbarBorderRadius:P,scrollbarHeight:_,scrollbarWidth:V},self:{color:Q,colorHover:ce}}=sa.value;return{"--n-scrollbar-bezier":w,"--n-scrollbar-color":Q,"--n-scrollbar-color-hover":ce,"--n-scrollbar-border-radius":P,"--n-scrollbar-width":V,"--n-scrollbar-height":_}}),et=n?gr("scrollbar",void 0,Cr,e):void 0;return Object.assign(Object.assign({},{scrollTo:gt,scrollBy:ze,sync:Fe,syncUnifiedContainer:br,handleMouseEnterWrapper:A,handleMouseLeaveWrapper:M}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:g,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:u,needYBar:le,needXBar:Qe,yBarSizePx:C,xBarSizePx:W,yBarTopPx:J,xBarLeftPx:ge,isShowXBar:pn,isShowYBar:fe,isIos:j,handleScroll:we,handleContentResize:mn,handleContainerResize:Dt,handleYScrollMouseDown:aa,handleXScrollMouseDown:ia,cssVars:n?void 0:Cr,themeClass:et==null?void 0:et.themeClass,onRender:et==null?void 0:et.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const a=this.trigger==="none",s=()=>y("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},y(a?Mr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?y("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var c,h;return(c=this.onRender)===null||c===void 0||c.call(this),y("div",Ro(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):y("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},y(qr,{onResize:this.handleContentResize},{default:()=>y("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(),this.xScrollable&&y("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},y(a?Mr:at,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?y("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},u=this.container?l():y(qr,{onResize:this.handleContainerResize},{default:l});return i?y(Ie,null,u,s()):u}}),lp=sp,{cubicBezierEaseIn:Eo,cubicBezierEaseOut:Ao}=fn;function up({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[D("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Eo}, transform ${t} ${Eo} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${Ao}, transform ${t} ${Ao} ${o&&","+o}`}),D("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),D("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const cp={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},dp=e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},cp),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})},fp={name:"Popover",common:vn,self:dp},Ji=fp,Rn={top:"bottom",bottom:"top",left:"right",right:"left"},ee="var(--n-arrow-height) * 1.414",hp=D([Z("popover",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- position: relative;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- box-shadow: var(--n-box-shadow);
- word-break: break-word;
- `,[D(">",[Z("scrollbar",`
- height: inherit;
- max-height: inherit;
- `)]),Zt("raw",`
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- `,[Zt("scrollable",[Zt("show-header-or-footer","padding: var(--n-padding);")])]),Ue("header",`
- padding: var(--n-padding);
- border-bottom: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),Ue("footer",`
- padding: var(--n-padding);
- border-top: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),Xe("scrollable, show-header-or-footer",[Ue("content",`
- padding: var(--n-padding);
- `)])]),Z("popover-shared",`
- transform-origin: inherit;
- `,[Z("popover-arrow-wrapper",`
- position: absolute;
- overflow: hidden;
- pointer-events: none;
- `,[Z("popover-arrow",`
- transition: background-color .3s var(--n-bezier);
- position: absolute;
- display: block;
- width: calc(${ee});
- height: calc(${ee});
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
- transform: rotate(45deg);
- background-color: var(--n-color);
- pointer-events: all;
- `)]),D("&.popover-transition-enter-from, &.popover-transition-leave-to",`
- opacity: 0;
- transform: scale(.85);
- `),D("&.popover-transition-enter-to, &.popover-transition-leave-from",`
- transform: scale(1);
- opacity: 1;
- `),D("&.popover-transition-enter-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-out),
- transform .15s var(--n-bezier-ease-out);
- `),D("&.popover-transition-leave-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-in),
- transform .15s var(--n-bezier-ease-in);
- `)]),ve("top-start",`
- top: calc(${ee} / -2);
- left: calc(${Pe("top-start")} - var(--v-offset-left));
- `),ve("top",`
- top: calc(${ee} / -2);
- transform: translateX(calc(${ee} / -2)) rotate(45deg);
- left: 50%;
- `),ve("top-end",`
- top: calc(${ee} / -2);
- right: calc(${Pe("top-end")} + var(--v-offset-left));
- `),ve("bottom-start",`
- bottom: calc(${ee} / -2);
- left: calc(${Pe("bottom-start")} - var(--v-offset-left));
- `),ve("bottom",`
- bottom: calc(${ee} / -2);
- transform: translateX(calc(${ee} / -2)) rotate(45deg);
- left: 50%;
- `),ve("bottom-end",`
- bottom: calc(${ee} / -2);
- right: calc(${Pe("bottom-end")} + var(--v-offset-left));
- `),ve("left-start",`
- left: calc(${ee} / -2);
- top: calc(${Pe("left-start")} - var(--v-offset-top));
- `),ve("left",`
- left: calc(${ee} / -2);
- transform: translateY(calc(${ee} / -2)) rotate(45deg);
- top: 50%;
- `),ve("left-end",`
- left: calc(${ee} / -2);
- bottom: calc(${Pe("left-end")} + var(--v-offset-top));
- `),ve("right-start",`
- right: calc(${ee} / -2);
- top: calc(${Pe("right-start")} - var(--v-offset-top));
- `),ve("right",`
- right: calc(${ee} / -2);
- transform: translateY(calc(${ee} / -2)) rotate(45deg);
- top: 50%;
- `),ve("right-end",`
- right: calc(${ee} / -2);
- bottom: calc(${Pe("right-end")} + var(--v-offset-top));
- `),...Yh({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",s=`calc((${`var(--v-target-${r}, 0px)`} - ${ee}) / 2)`,l=Pe(o);return D(`[v-placement="${o}"] >`,[Z("popover-shared",[Xe("center-arrow",[Z("popover-arrow",`${t}: calc(max(${s}, ${l}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Pe(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function ve(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return D(`[v-placement="${e}"] >`,[Z("popover-shared",`
- margin-${Rn[n]}: var(--n-space);
- `,[Xe("show-arrow",`
- margin-${Rn[n]}: var(--n-space-arrow);
- `),Xe("overlap",`
- margin: 0;
- `),Ka("popover-arrow-wrapper",`
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- ${n}: 100%;
- ${Rn[n]}: auto;
- ${r}
- `,[Z("popover-arrow",t)])])])}const Qi=Object.assign(Object.assign({},Te.props),{to:dt.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),vp=({arrowStyle:e,clsPrefix:t})=>y("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},y("div",{class:`${t}-popover-arrow`,style:e})),pp=se({name:"PopoverBody",inheritAttrs:!1,props:Qi,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=Bt(e),a=Te("Popover","-popover",hp,Ji,e,o),s=z(null),l=ne("NPopover"),u=z(null),c=z(e.show),h=z(!1);Ze(()=>{const{show:v}=e;v&&!Ja()&&!e.internalDeactivateImmediately&&(h.value=!0)});const p=F(()=>{const{trigger:v,onClickoutside:m}=e,O=[],{positionManuallyRef:{value:T}}=l;return T||(v==="click"&&!m&&O.push([Rr,L,void 0,{capture:!0}]),v==="hover"&&O.push([ys,H])),m&&O.push([Rr,L,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&h.value)&&O.push([Bo,e.show]),O}),x=F(()=>{const v=e.width==="trigger"?void 0:Cn(e.width),m=[];v&&m.push({width:v});const{maxWidth:O,minWidth:T}=e;return O&&m.push({maxWidth:Cn(O)}),T&&m.push({maxWidth:Cn(T)}),i||m.push(d.value),m}),d=F(()=>{const{common:{cubicBezierEaseInOut:v,cubicBezierEaseIn:m,cubicBezierEaseOut:O},self:{space:T,spaceArrow:I,padding:j,fontSize:B,textColor:C,dividerColor:R,color:W,boxShadow:te,borderRadius:J,arrowHeight:K,arrowOffset:ge,arrowOffsetVertical:le}}=a.value;return{"--n-box-shadow":te,"--n-bezier":v,"--n-bezier-ease-in":m,"--n-bezier-ease-out":O,"--n-font-size":B,"--n-text-color":C,"--n-color":W,"--n-divider-color":R,"--n-border-radius":J,"--n-arrow-height":K,"--n-arrow-offset":ge,"--n-arrow-offset-vertical":le,"--n-padding":j,"--n-space":T,"--n-space-arrow":I}}),b=i?gr("popover",void 0,d,e):void 0;l.setBodyInstance({syncPosition:g}),Se(()=>{l.setBodyInstance(null)}),xe(me(e,"show"),v=>{e.animated||(v?c.value=!0:c.value=!1)});function g(){var v;(v=s.value)===null||v===void 0||v.syncPosition()}function f(v){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(v)}function $(v){e.trigger==="hover"&&e.keepAliveOnHover&&l.handleMouseLeave(v)}function H(v){e.trigger==="hover"&&!N().contains(Jt(v))&&l.handleMouseMoveOutside(v)}function L(v){(e.trigger==="click"&&!N().contains(Jt(v))||e.onClickoutside)&&l.handleClickOutside(v)}function N(){return l.getTriggerElement()}it(Zo,u),it(Yo,null),it(Vo,null);function k(){if(b==null||b.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&h.value))return null;let m;const O=l.internalRenderBodyRef.value,{value:T}=o;if(O)m=O([`${T}-popover-shared`,b==null?void 0:b.themeClass.value,e.overlap&&`${T}-popover-shared--overlap`,e.showArrow&&`${T}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${T}-popover-shared--center-arrow`],u,x.value,f,$);else{const{value:I}=l.extraClassRef,{internalTrapFocus:j}=e,B=!Or(t.header)||!Or(t.footer),C=()=>{var R;const W=B?y(Ie,null,xn(t.header,K=>K?y("div",{class:`${T}-popover__header`,style:e.headerStyle},K):null),xn(t.default,K=>K?y("div",{class:`${T}-popover__content`,style:e.contentStyle},t):null),xn(t.footer,K=>K?y("div",{class:`${T}-popover__footer`,style:e.footerStyle},K):null)):e.scrollable?(R=t.default)===null||R===void 0?void 0:R.call(t):y("div",{class:`${T}-popover__content`,style:e.contentStyle},t),te=e.scrollable?y(lp,{contentClass:B?void 0:`${T}-popover__content`,contentStyle:B?void 0:e.contentStyle},{default:()=>W}):W,J=e.showArrow?vp({arrowStyle:e.arrowStyle,clsPrefix:T}):null;return[te,J]};m=y("div",Ro({class:[`${T}-popover`,`${T}-popover-shared`,b==null?void 0:b.themeClass.value,I.map(R=>`${T}-${R}`),{[`${T}-popover--scrollable`]:e.scrollable,[`${T}-popover--show-header-or-footer`]:B,[`${T}-popover--raw`]:e.raw,[`${T}-popover-shared--overlap`]:e.overlap,[`${T}-popover-shared--show-arrow`]:e.showArrow,[`${T}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:x.value,onKeydown:l.handleKeydown,onMouseenter:f,onMouseleave:$},n),j?y(al,{active:e.show,autoFocus:!0},{default:C}):C())}return ut(m,p.value)}return{displayed:h,namespace:r,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:dt(e),followerEnabled:c,renderContentNode:k}},render(){return y(Ds,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===dt.tdkey},{default:()=>this.animated?y(at,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),gp=Object.keys(Qi),mp={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function bp(e,t,n){mp[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const ea={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:dt.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},wp=Object.assign(Object.assign(Object.assign({},Te.props),ea),{internalOnAfterLeave:Function,internalRenderBody:Function}),yp=se({name:"Popover",inheritAttrs:!1,props:wp,__popover__:!0,setup(e){const t=tr(),n=z(null),r=F(()=>e.show),o=z(e.defaultShow),i=us(r,o),a=Mt(()=>e.disabled?!1:i.value),s=()=>{if(e.disabled)return!0;const{getDisabled:C}=e;return!!(C!=null&&C())},l=()=>s()?!1:i.value,u=cs(e,["arrow","showArrow"]),c=F(()=>e.overlap?!1:u.value);let h=null;const p=z(null),x=z(null),d=Mt(()=>e.x!==void 0&&e.y!==void 0);function b(C){const{"onUpdate:show":R,onUpdateShow:W,onShow:te,onHide:J}=e;o.value=C,R&&Ct(R,C),W&&Ct(W,C),C&&te&&Ct(te,!0),C&&J&&Ct(J,!1)}function g(){h&&h.syncPosition()}function f(){const{value:C}=p;C&&(window.clearTimeout(C),p.value=null)}function $(){const{value:C}=x;C&&(window.clearTimeout(C),x.value=null)}function H(){const C=s();if(e.trigger==="focus"&&!C){if(l())return;b(!0)}}function L(){const C=s();if(e.trigger==="focus"&&!C){if(!l())return;b(!1)}}function N(){const C=s();if(e.trigger==="hover"&&!C){if($(),p.value!==null||l())return;const R=()=>{b(!0),p.value=null},{delay:W}=e;W===0?R():p.value=window.setTimeout(R,W)}}function k(){const C=s();if(e.trigger==="hover"&&!C){if(f(),x.value!==null||!l())return;const R=()=>{b(!1),x.value=null},{duration:W}=e;W===0?R():x.value=window.setTimeout(R,W)}}function v(){k()}function m(C){var R;l()&&(e.trigger==="click"&&(f(),$(),b(!1)),(R=e.onClickoutside)===null||R===void 0||R.call(e,C))}function O(){if(e.trigger==="click"&&!s()){f(),$();const C=!l();b(C)}}function T(C){e.internalTrapFocus&&C.key==="Escape"&&(f(),$(),b(!1))}function I(C){o.value=C}function j(){var C;return(C=n.value)===null||C===void 0?void 0:C.targetRef}function B(C){h=C}return it("NPopover",{getTriggerElement:j,handleKeydown:T,handleMouseEnter:N,handleMouseLeave:k,handleClickOutside:m,handleMouseMoveOutside:v,setBodyInstance:B,positionManuallyRef:d,isMountedRef:t,zIndexRef:me(e,"zIndex"),extraClassRef:me(e,"internalExtraClass"),internalRenderBodyRef:me(e,"internalRenderBody")}),Ze(()=>{i.value&&s()&&b(!1)}),{binderInstRef:n,positionManually:d,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:c,getMergedShow:l,setShow:I,handleClick:O,handleMouseEnter:N,handleMouseLeave:k,handleFocus:H,handleBlur:L,syncPosition:g}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(n.activator?r=Tr(n,"activator"):r=Tr(n,"trigger"),r)){r=va(r),r=r.type===pa?y("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,s=[i,...a],l={onBlur:u=>{s.forEach(c=>{c.onBlur(u)})},onFocus:u=>{s.forEach(c=>{c.onFocus(u)})},onClick:u=>{s.forEach(c=>{c.onClick(u)})},onMouseenter:u=>{s.forEach(c=>{c.onMouseenter(u)})},onMouseleave:u=>{s.forEach(c=>{c.onMouseleave(u)})}};bp(r,a?"nested":t?"manual":this.trigger,l)}}return y(ms,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?ut(y("div",{style:{position:"fixed",inset:0}}),[[nr,{enabled:i,zIndex:this.zIndex}]]):null,t?null:y(bs,null,{default:()=>r}),y(pp,Pa(this.$props,gp,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,s;return(s=(a=this.$slots).default)===null||s===void 0?void 0:s.call(a)},header:()=>{var a,s;return(s=(a=this.$slots).header)===null||s===void 0?void 0:s.call(a)},footer:()=>{var a,s;return(s=(a=this.$slots).footer)===null||s===void 0?void 0:s.call(a)}})]}})}}),xp=Qa&&"loading"in document.createElement("img"),Cp=(e={})=>{var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},Bn=new WeakMap,In=new WeakMap,Dn=new WeakMap,Sp=(e,t,n)=>{if(!e)return()=>{};const r=Cp(t),{root:o}=r.options;let i;const a=Bn.get(o);a?i=a:(i=new Map,Bn.set(o,i));let s,l;i.has(r.hash)?(l=i.get(r.hash),l[1].has(e)||(s=l[0],l[1].add(e),s.observe(e))):(s=new IntersectionObserver(h=>{h.forEach(p=>{if(p.isIntersecting){const x=In.get(p.target),d=Dn.get(p.target);x&&x(),d&&(d.value=!0)}})},r.options),s.observe(e),l=[s,new Set([e])],i.set(r.hash,l));let u=!1;const c=()=>{u||(In.delete(e),Dn.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&i.delete(r.hash),i.size||Bn.delete(o))};return In.set(e,c),Dn.set(e,n),c},$p={padding:"8px 14px"},Tp=e=>{const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},$p),{borderRadius:t,boxShadow:n,color:Ho(r,"rgba(0, 0, 0, .85)"),textColor:r})},Op={name:"Tooltip",common:vn,peers:{Popover:Ji},self:Tp},ta=Op,Mp=Object.assign(Object.assign({},ea),Te.props),Pp=se({name:"Tooltip",props:Mp,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Bt(e),n=Te("Tooltip","-tooltip",void 0,ta,e,t),r=z(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:F(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return y(yp,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),na=Object.assign(Object.assign({},Te.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ra="n-image";function Ep(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const Ap={name:"Image",common:vn,peers:{Tooltip:ta},self:Ep},_p=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"})),zp=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"})),Rp=y("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("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"})),Bp=D([D("body >",[Z("image-container","position: fixed;")]),Z("image-preview-container",`
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- `),Z("image-preview-overlay",`
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background: rgba(0, 0, 0, .3);
- `,[Jn()]),Z("image-preview-toolbar",`
- z-index: 1;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- border-radius: var(--n-toolbar-border-radius);
- height: 48px;
- bottom: 40px;
- padding: 0 12px;
- background: var(--n-toolbar-color);
- box-shadow: var(--n-toolbar-box-shadow);
- color: var(--n-toolbar-icon-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,[Z("base-icon",`
- padding: 0 8px;
- font-size: 28px;
- cursor: pointer;
- `),Jn()]),Z("image-preview-wrapper",`
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- pointer-events: none;
- `,[up()]),Z("image-preview",`
- user-select: none;
- -webkit-user-select: none;
- pointer-events: all;
- margin: auto;
- max-height: calc(100vh - 32px);
- max-width: calc(100vw - 32px);
- transition: transform .3s var(--n-bezier);
- `),Z("image",`
- display: inline-flex;
- max-height: 100%;
- max-width: 100%;
- `,[Zt("preview-disabled",`
- cursor: pointer;
- `),D("img",`
- border-radius: inherit;
- `)])]),Yt=32,Ip=se({name:"ImagePreview",props:Object.assign(Object.assign({},na),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=Te("Image","-image",Bp,Ap,e,me(e,"clsPrefix"));let n=null;const r=z(null),o=z(null),i=z(void 0),a=z(!1),s=z(!1),{localeRef:l}=Uv("Image");function u(){const{value:S}=o;if(!n||!S)return;const{style:A}=S,M=n.getBoundingClientRect(),U=M.left+M.width/2,X=M.top+M.height/2;A.transformOrigin=`${U}px ${X}px`}function c(S){var A,M;switch(S.key){case" ":S.preventDefault();break;case"ArrowLeft":(A=e.onPrev)===null||A===void 0||A.call(e);break;case"ArrowRight":(M=e.onNext)===null||M===void 0||M.call(e);break;case"Escape":be();break}}xe(a,S=>{S?re("keydown",document,c):q("keydown",document,c)}),Se(()=>{q("keydown",document,c)});let h=0,p=0,x=0,d=0,b=0,g=0,f=0,$=0,H=!1;function L(S){const{clientX:A,clientY:M}=S;x=A-h,d=M-p,Do(fe)}function N(S){const{mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:U,mouseDownClientY:X}=S,oe=U-A,ue=X-M,he=`vertical${ue>0?"Top":"Bottom"}`,we=`horizontal${oe>0?"Left":"Right"}`;return{moveVerticalDirection:he,moveHorizontalDirection:we,deltaHorizontal:oe,deltaVertical:ue}}function k(S){const{value:A}=r;if(!A)return{offsetX:0,offsetY:0};const M=A.getBoundingClientRect(),{moveVerticalDirection:U,moveHorizontalDirection:X,deltaHorizontal:oe,deltaVertical:ue}=S||{};let he=0,we=0;return M.width<=window.innerWidth?he=0:M.left>0?he=(M.width-window.innerWidth)/2:M.right<window.innerWidth?he=-(M.width-window.innerWidth)/2:X==="horizontalRight"?he=Math.min((M.width-window.innerWidth)/2,b-(oe!=null?oe:0)):he=Math.max(-((M.width-window.innerWidth)/2),b-(oe!=null?oe:0)),M.height<=window.innerHeight?we=0:M.top>0?we=(M.height-window.innerHeight)/2:M.bottom<window.innerHeight?we=-(M.height-window.innerHeight)/2:U==="verticalBottom"?we=Math.min((M.height-window.innerHeight)/2,g-(ue!=null?ue:0)):we=Math.max(-((M.height-window.innerHeight)/2),g-(ue!=null?ue:0)),{offsetX:he,offsetY:we}}function v(S){q("mousemove",document,L),q("mouseup",document,v);const{clientX:A,clientY:M}=S;H=!1;const U=N({mouseUpClientX:A,mouseUpClientY:M,mouseDownClientX:f,mouseDownClientY:$}),X=k(U);x=X.offsetX,d=X.offsetY,fe()}const m=ne(ra,null);function O(S){var A,M;if((M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onMousedown)===null||M===void 0||M.call(A,S),S.button!==0)return;const{clientX:U,clientY:X}=S;H=!0,h=U-x,p=X-d,b=x,g=d,f=U,$=X,fe(),re("mousemove",document,L),re("mouseup",document,v)}function T(S){var A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDblclick)===null||M===void 0||M.call(A,S);const U=le();B=B===U?1:U,fe()}const I=1.5;let j=0,B=1,C=0;function R(){B=1,j=0}function W(){var S;R(),C=0,(S=e.onPrev)===null||S===void 0||S.call(e)}function te(){var S;R(),C=0,(S=e.onNext)===null||S===void 0||S.call(e)}function J(){C-=90,fe()}function K(){C+=90,fe()}function ge(){const{value:S}=r;if(!S)return 1;const{innerWidth:A,innerHeight:M}=window,U=Math.max(1,S.naturalHeight/(M-Yt)),X=Math.max(1,S.naturalWidth/(A-Yt));return Math.max(3,U*2,X*2)}function le(){const{value:S}=r;if(!S)return 1;const{innerWidth:A,innerHeight:M}=window,U=S.naturalHeight/(M-Yt),X=S.naturalWidth/(A-Yt);return U<1&&X<1?1:Math.max(U,X)}function Qe(){const S=ge();B<S&&(j+=1,B=Math.min(S,Math.pow(I,j)),fe())}function pn(){if(B>.5){const S=B;j-=1,B=Math.max(.5,Math.pow(I,j));const A=S-B;fe(!1);const M=k();B+=A,fe(!1),B-=A,x=M.offsetX,d=M.offsetY,fe()}}function fe(S=!0){var A;const{value:M}=r;if(!M)return;const{style:U}=M,X=ga((A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.style);let oe="";if(typeof X=="string")oe=X+";";else for(const he in X)oe+=`${qh(he)}: ${X[he]};`;const ue=`transform-origin: center; transform: translateX(${x}px) translateY(${d}px) rotate(${C}deg) scale(${B});`;H?U.cssText=oe+"cursor: grabbing; transition: none;"+ue:U.cssText=oe+"cursor: grab;"+ue+(S?"":"transition: none;"),S||M.offsetHeight}function be(){a.value=!a.value,s.value=!0}function gn(){B=le(),j=Math.ceil(Math.log(B)/Math.log(I)),x=0,d=0,fe()}const It={setPreviewSrc:S=>{i.value=S},setThumbnailEl:S=>{n=S},toggleShow:be};function mn(S,A){if(e.showToolbarTooltip){const{value:M}=t;return y(Pp,{to:!1,theme:M.peers.Tooltip,themeOverrides:M.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>l.value[A],trigger:()=>S})}else return S}const Dt=F(()=>{const{common:{cubicBezierEaseInOut:S},self:{toolbarIconColor:A,toolbarBorderRadius:M,toolbarBoxShadow:U,toolbarColor:X}}=t.value;return{"--n-bezier":S,"--n-toolbar-icon-color":A,"--n-toolbar-color":X,"--n-toolbar-border-radius":M,"--n-toolbar-box-shadow":U}}),{inlineThemeDisabled:gt}=Bt(),ze=gt?gr("image-preview",void 0,Dt,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:tr(),displayed:s,previewedImgProps:m==null?void 0:m.previewedImgPropsRef,handleWheel(S){S.preventDefault()},handlePreviewMousedown:O,handlePreviewDblclick:T,syncTransformOrigin:u,handleAfterLeave:()=>{R(),C=0,s.value=!1},handleDragStart:S=>{var A,M;(M=(A=m==null?void 0:m.previewedImgPropsRef.value)===null||A===void 0?void 0:A.onDragstart)===null||M===void 0||M.call(A,S),S.preventDefault()},zoomIn:Qe,zoomOut:pn,rotateCounterclockwise:J,rotateClockwise:K,handleSwitchPrev:W,handleSwitchNext:te,withTooltip:mn,resizeToOrignalImageSize:gn,cssVars:gt?void 0:Dt,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender},It)},render(){var e,t;const{clsPrefix:n}=this;return y(Ie,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),y(Qo,{show:this.show},{default:()=>{var r;return this.show||this.displayed?((r=this.onRender)===null||r===void 0||r.call(this),ut(y("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},y(at,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?y("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?y(at,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:o}=this;return y("div",{class:`${n}-image-preview-toolbar`},this.onPrev?y(Ie,null,o(y(Be,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>_p}),"tipPrevious"),o(y(Be,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>zp}),"tipNext")):null,o(y(Be,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>y(Zv,null)}),"tipCounterclockwise"),o(y(Be,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>y(Yv,null)}),"tipClockwise"),o(y(Be,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>y(Kv,null)}),"tipOriginalSize"),o(y(Be,{clsPrefix:n,onClick:this.zoomOut},{default:()=>y(Gv,null)}),"tipZoomOut"),o(y(Be,{clsPrefix:n,onClick:this.zoomIn},{default:()=>y(qv,null)}),"tipZoomIn"),o(y(Be,{clsPrefix:n,onClick:this.toggleShow},{default:()=>Rp}),"tipClose"))}}):null,y(at,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:o={}}=this;return ut(y("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},y("img",Object.assign({},o,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,o.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[Bo,this.show]])}})),[[nr,{enabled:this.show}]])):null}}))}}),Dp="n-image-group",Hp=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},na),Xp=se({name:"Image",props:Hp,inheritAttrs:!1,setup(e){const t=z(null),n=z(!1),r=z(null),o=ne(Dp,null),{mergedClsPrefixRef:i}=o||Bt(e),a={click:()=>{if(e.previewDisabled||n.value)return;const u=e.previewSrc||e.src;if(o){o.setPreviewSrc(u),o.setThumbnailEl(t.value),o.toggleShow();return}const{value:c}=r;c&&(c.setPreviewSrc(u),c.setThumbnailEl(t.value),c.toggleShow())}},s=z(!e.lazy);Ee(()=>{var u;(u=t.value)===null||u===void 0||u.setAttribute("data-group-id",(o==null?void 0:o.groupId)||"")}),Ee(()=>{if(e.lazy&&e.intersectionObserverOptions){let u;const c=Ze(()=>{u==null||u(),u=void 0,u=Sp(t.value,e.intersectionObserverOptions,s)});Se(()=>{c(),u==null||u()})}}),Ze(()=>{var u;e.src,(u=e.imgProps)===null||u===void 0||u.src,n.value=!1});const l=z(!1);return it(ra,{previewedImgPropsRef:me(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o==null?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:l,mergedOnClick:u=>{var c,h;a.click(),(h=(c=e.imgProps)===null||c===void 0?void 0:c.onClick)===null||h===void 0||h.call(c,u)},mergedOnError:u=>{if(!s.value)return;n.value=!0;const{onError:c,imgProps:{onError:h}={}}=e;c==null||c(u),h==null||h(u)},mergedOnLoad:u=>{const{onLoad:c,imgProps:{onLoad:h}={}}=e;c==null||c(u),h==null||h(u),l.value=!0}},a)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,s=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),l=this.src||r.src,u=y("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?l:void 0:l,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:xp&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",s&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return y("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?u:y(Ip,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>u}),!o&&s)}});export{Xp as N,ms as V,vn as a,D as b,jp as c,Z as d,Xe as e,Ue as f,up as g,Up as h,Np as i,Te as j,us as k,gr as l,tr as m,dt as n,bs as o,Ds as p,re as q,kp as r,q as s,Ct as t,Bt as u};
|