@gkd-kit/inspect 0.0.1739247283442 → 0.0.1739797164641
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DnEAPPSg.js +25 -0
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DnEAPPSg.js.map +1 -0
- package/dist/assets/DevicePage-1a8hCnhz.js +49 -0
- package/dist/assets/{DevicePage-D3tJmf8m.js.map → DevicePage-1a8hCnhz.js.map} +1 -1
- package/dist/assets/{HomePage-DSquujyR.js → HomePage-TX9O4tIZ.js} +10 -10
- package/dist/assets/HomePage-TX9O4tIZ.js.map +1 -0
- package/dist/assets/ImportPage-mbP-35gy.js +2 -0
- package/dist/assets/{ImportPage-BR8bCWWa.js.map → ImportPage-mbP-35gy.js.map} +1 -1
- package/dist/assets/{Input-ISG1avIj.js → Input-C9JOs12B.js} +15 -15
- package/dist/assets/Input-C9JOs12B.js.map +1 -0
- package/dist/assets/SelectorPage-je5Qz2w4.js +2 -0
- package/dist/assets/{SelectorPage-DBOkSm75.js.map → SelectorPage-je5Qz2w4.js.map} +1 -1
- package/dist/assets/SnapshotPage-lxQB4IQ_.js +279 -0
- package/dist/assets/SnapshotPage-lxQB4IQ_.js.map +1 -0
- package/dist/assets/_404Page-BoM3jslx.js +2 -0
- package/dist/assets/{_404Page--M_IFpqD.js.map → _404Page-BoM3jslx.js.map} +1 -1
- package/dist/assets/chunk-GYYaAHNj.js +3 -0
- package/dist/assets/{chunk-BCnrTYpw.js.map → chunk-GYYaAHNj.js.map} +1 -1
- package/dist/assets/dayjs.min-DDNAEN-U.js +371 -0
- package/dist/assets/dayjs.min-DDNAEN-U.js.map +1 -0
- package/dist/assets/{error-C22X2wZs.js → error-b7oN5LCm.js} +5 -5
- package/dist/assets/{error-C22X2wZs.js.map → error-b7oN5LCm.js.map} +1 -1
- package/dist/assets/{import-BURUsfCJ.js → import-CiW06Qx6.js} +2 -2
- package/dist/assets/{import-BURUsfCJ.js.map → import-CiW06Qx6.js.map} +1 -1
- package/dist/assets/index-3JMZnLI9.js +919 -0
- package/dist/assets/index-3JMZnLI9.js.map +1 -0
- package/dist/assets/index-CraOnBYA.css +1 -0
- package/dist/assets/{jszip.min-DR9wgyrS.js → jszip.min-Y3_VJRop.js} +4 -4
- package/dist/assets/jszip.min-Y3_VJRop.js.map +1 -0
- package/dist/assets/polyfills-BSODfzVe.js +2 -0
- package/dist/assets/polyfills-BSODfzVe.js.map +1 -0
- package/dist/assets/{snapshot-BmF2lT6l.js → snapshot-B0Hf20Ny.js} +3 -3
- package/dist/assets/snapshot-B0Hf20Ny.js.map +1 -0
- package/dist/assets/{table-BO6I0KkX.js → table-Cfwy3PUY.js} +11 -11
- package/dist/assets/table-Cfwy3PUY.js.map +1 -0
- package/dist/index.html +3 -3
- package/package.json +26 -23
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-BUQxdkDu.js +0 -25
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-BUQxdkDu.js.map +0 -1
- package/dist/assets/DevicePage-D3tJmf8m.js +0 -49
- package/dist/assets/HomePage-DSquujyR.js.map +0 -1
- package/dist/assets/ImportPage-BR8bCWWa.js +0 -2
- package/dist/assets/Input-ISG1avIj.js.map +0 -1
- package/dist/assets/SelectorPage-DBOkSm75.js +0 -2
- package/dist/assets/SnapshotPage-DDp4nWkb.js +0 -277
- package/dist/assets/SnapshotPage-DDp4nWkb.js.map +0 -1
- package/dist/assets/TrackGraph-G0bjCAz-.js +0 -670
- package/dist/assets/TrackGraph-G0bjCAz-.js.map +0 -1
- package/dist/assets/_404Page--M_IFpqD.js +0 -2
- package/dist/assets/chunk-BCnrTYpw.js +0 -3
- package/dist/assets/dayjs.min-BdrexUn5.js +0 -371
- package/dist/assets/dayjs.min-BdrexUn5.js.map +0 -1
- package/dist/assets/index-DSz0dnVv.css +0 -1
- package/dist/assets/index-H3SmzK8u.js +0 -904
- package/dist/assets/index-H3SmzK8u.js.map +0 -1
- package/dist/assets/jszip.min-DR9wgyrS.js.map +0 -1
- package/dist/assets/polyfills-CKx2Tz-c.js +0 -2
- package/dist/assets/polyfills-CKx2Tz-c.js.map +0 -1
- package/dist/assets/snapshot-BmF2lT6l.js.map +0 -1
- package/dist/assets/table-BO6I0KkX.js.map +0 -1
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/HomePage-TX9O4tIZ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-DnEAPPSg.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/Input-C9JOs12B.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/snapshot-B0Hf20Ny.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/chunk-GYYaAHNj.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/dayjs.min-DDNAEN-U.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/import-CiW06Qx6.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/table-Cfwy3PUY.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/SnapshotPage-lxQB4IQ_.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/error-b7oN5LCm.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/ImportPage-mbP-35gy.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/DevicePage-1a8hCnhz.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1739797164641/files/dist/assets/SelectorPage-je5Qz2w4.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function yp(e){let t=".",n="__",r="--",o;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(n=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){o=p.c;const m=p.context;m.bem={},m.bem.b=null,m.bem.els=null}};function s(p){let m,C;return{before(w){m=w.bem.b,C=w.bem.els,w.bem.els=null},after(w){w.bem.b=m,w.bem.els=C},$({context:w,props:E}){return p=typeof p=="string"?p:p({context:w,props:E}),w.bem.b=p,`${(E==null?void 0:E.bPrefix)||t}${w.bem.b}`}}}function a(p){let m;return{before(C){m=C.bem.els},after(C){C.bem.els=m},$({context:C,props:w}){return p=typeof p=="string"?p:p({context:C,props:w}),C.bem.els=p.split(",").map(E=>E.trim()),C.bem.els.map(E=>`${(w==null?void 0:w.bPrefix)||t}${C.bem.b}${n}${E}`).join(", ")}}}function l(p){return{$({context:m,props:C}){p=typeof p=="string"?p:p({context:m,props:C});const w=p.split(",").map(k=>k.trim());function E(k){return w.map(_=>`&${(C==null?void 0:C.bPrefix)||t}${m.bem.b}${k!==void 0?`${n}${k}`:""}${r}${_}`).join(", ")}const B=m.bem.els;return B!==null?E(B[0]):E()}}}function c(p){return{$({context:m,props:C}){p=typeof p=="string"?p:p({context:m,props:C});const w=m.bem.els;return`&:not(${(C==null?void 0:C.bPrefix)||t}${m.bem.b}${w!==null&&w.length>0?`${n}${w[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:(...p)=>o(s(p[0]),p[1],p[2]),cE:(...p)=>o(a(p[0]),p[1],p[2]),cM:(...p)=>o(l(p[0]),p[1],p[2]),cNotM:(...p)=>o(c(p[0]),p[1],p[2])}),i}function xp(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Gu=/\s*,(?![^(]*\))\s*/g,wp=/\s+/g;function Cp(e,t){const n=[];return t.split(Gu).forEach(r=>{let o=xp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(a=>{e.forEach(l=>{s.push(a.replace("&",l))})}),i=s}i.forEach(s=>n.push(s))}),n}function Sp(e,t){const n=[];return t.split(Gu).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function _p(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=Cp(t,n):t=Sp(t,n))}),t.join(", ").replace(wp," ")}function Il(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Bi(e,t){return(t!=null?t:document.head).querySelector(`style[cssr-id="${e}"]`)}function Ep(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Go(e){return e?/^\s*@(s|m)/.test(e):!1}const Rp=/[A-Z]/g;function Yu(e){return e.replace(Rp,t=>"-"+t.toLowerCase())}function Tp(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
3
|
+
`+Object.entries(e).map(n=>t+` ${Yu(n[0])}: ${n[1]};`).join(`
|
|
4
|
+
`)+`
|
|
5
|
+
`+t+"}":`: ${e};`}function Pp(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Al(e,t,n,r){if(!t)return"";const o=Pp(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} {
|
|
6
|
+
${o}
|
|
7
|
+
}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` {
|
|
8
|
+
}`:"";const s=e?[e+" {"]:[];return i.forEach(a=>{const l=o[a];if(a==="raw"){s.push(`
|
|
9
|
+
`+l+`
|
|
10
|
+
`);return}a=Yu(a),l!=null&&s.push(` ${a}${Tp(l)}`)}),e&&s.push("}"),s.join(`
|
|
11
|
+
`)}function ia(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))ia(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?ia(o,t,n):o&&n(o)}else r&&n(r)})}function qu(e,t,n,r,o){const i=e.$;let s="";if(!i||typeof i=="string")Go(i)?s=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:o});Go(c)?s=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")Go(i.$)?s=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:o});Go(c)?s=c:t.push(c)}const a=_p(t),l=Al(a,e.props,r,o);s?n.push(`${s} {`):l.length&&n.push(l),e.children&&ia(e.children,{context:r.context,props:o},c=>{if(typeof c=="string"){const u=Al(a,{raw:c},r,o);n.push(u)}else qu(c,t,n,r,o)}),t.pop(),s&&n.push("}"),i&&i.after&&i.after(r.context)}function $p(e,t,n){const r=[];return qu(e,[],r,t,n),r.join(`
|
|
12
|
+
|
|
13
|
+
`)}function xo(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 Op(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(Il),t.els=[];else{const i=Bi(n,r);i&&o.includes(i)&&(Il(i),t.els=o.filter(s=>s!==i))}}function zl(e,t){e.push(t)}function kp(e,t,n,r,o,i,s,a,l){let c;if(n===void 0&&(c=t.render(r),n=xo(c)),l){l.adapter(n,c!=null?c:t.render(r));return}a===void 0&&(a=document.head);const u=Bi(n,a);if(u!==null&&!i)return u;const f=u!=null?u:Ep(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(s){const d=a.querySelector(`meta[name="${s}"]`);if(d)return a.insertBefore(f,d),zl(t.els,f),f}return o?a.insertBefore(f,a.querySelector("style, link")):a.appendChild(f),zl(t.els,f),f}function Ip(e){return $p(this,this.instance,e)}function Ap(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:s,parent:a}=e;return kp(this.instance,this,t,r,o,i,s,a,n)}function zp(e={}){const{id:t,parent:n}=e;Op(this.instance,this,t,n)}const Yo=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:Ip,mount:Ap,unmount:zp}},Mp=function(e,t,n,r){return Array.isArray(t)?Yo(e,{$:null},null,t):Array.isArray(n)?Yo(e,t,null,n):Array.isArray(r)?Yo(e,t,n,r):Yo(e,t,n,null)};function Bp(e={}){const t={c:(...n)=>Mp(t,...n),use:(n,...r)=>n.install(t,...r),find:Bi,context:{},config:e};return t}function Lp(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Bi(e)!==null}const Dp="n",wo=`.${Dp}-`,Fp="__",Hp="--",Xu=Bp(),Zu=yp({blockPrefix:wo,elementPrefix:Fp,modifierPrefix:Hp});Xu.use(Zu);const{c:K,find:c_}=Xu,{cB:se,cE:le,cM:ue,cNotM:sa}=Zu;function za(e){return K(({props:{bPrefix:t}})=>`${t||wo}modal, ${t||wo}drawer`,[e])}function Qu(e){return K(({props:{bPrefix:t}})=>`${t||wo}popover`,[e])}function Ju(e){return K(({props:{bPrefix:t}})=>`&${t||wo}modal`,e)}const u_=(...e)=>K(">",[se(...e)]);function we(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}function Ma(e){return e.composedPath()[0]||null}function Ml(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function f_(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function Bn(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function d_(e,t){const[n,r]=e.split(" ");return{row:n,col:r||n}}const Bl={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"},Mr="^\\s*",Br="\\s*$",qn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Xn="([0-9A-Fa-f])",Zn="([0-9A-Fa-f]{2})",jp=new RegExp(`${Mr}rgb\\s*\\(${qn},${qn},${qn}\\)${Br}`),Np=new RegExp(`${Mr}rgba\\s*\\(${qn},${qn},${qn},${qn}\\)${Br}`),Wp=new RegExp(`${Mr}#${Xn}${Xn}${Xn}${Br}`),Vp=new RegExp(`${Mr}#${Zn}${Zn}${Zn}${Br}`),Up=new RegExp(`${Mr}#${Xn}${Xn}${Xn}${Xn}${Br}`),Kp=new RegExp(`${Mr}#${Zn}${Zn}${Zn}${Zn}${Br}`);function At(e){return parseInt(e,16)}function nr(e){try{let t;if(t=Vp.exec(e))return[At(t[1]),At(t[2]),At(t[3]),1];if(t=jp.exec(e))return[Ct(t[1]),Ct(t[5]),Ct(t[9]),1];if(t=Np.exec(e))return[Ct(t[1]),Ct(t[5]),Ct(t[9]),so(t[13])];if(t=Wp.exec(e))return[At(t[1]+t[1]),At(t[2]+t[2]),At(t[3]+t[3]),1];if(t=Kp.exec(e))return[At(t[1]),At(t[2]),At(t[3]),so(At(t[4])/255)];if(t=Up.exec(e))return[At(t[1]+t[1]),At(t[2]+t[2]),At(t[3]+t[3]),so(At(t[4]+t[4])/255)];if(e in Bl)return nr(Bl[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Gp(e){return e>1?1:e<0?0:e}function aa(e,t,n,r){return`rgba(${Ct(e)}, ${Ct(t)}, ${Ct(n)}, ${Gp(r)})`}function Is(e,t,n,r,o){return Ct((e*t*(1-r)+n*r)/o)}function Ba(e,t){Array.isArray(e)||(e=nr(e)),Array.isArray(t)||(t=nr(t));const n=e[3],r=t[3],o=so(n+r-n*r);return aa(Is(e[0],n,t[0],r,o),Is(e[1],n,t[1],r,o),Is(e[2],n,t[2],r,o),o)}function to(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:nr(e);return t.alpha?aa(n,r,o,t.alpha):aa(n,r,o,i)}function qo(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:nr(e),{lightness:s=1,alpha:a=1}=t;return Yp([n*s,r*s,o*s,i*a])}function so(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ct(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Yp(e){const[t,n,r]=e;return 3 in e?`rgba(${Ct(t)}, ${Ct(n)}, ${Ct(r)}, ${so(e[3])})`:`rgba(${Ct(t)}, ${Ct(n)}, ${Ct(r)}, 1)`}function Lr(e=8){return Math.random().toString(16).slice(2,2+e)}function h_(e,t){const n=[];for(let r=0;r<e;++r)n.push(t);return n}/**
|
|
14
|
+
* @vue/shared v3.5.13
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**//*! #__NO_SIDE_EFFECTS__ */function La(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ue={},Sr=[],fn=()=>{},qp=()=>!1,Li=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Da=e=>e.startsWith("onUpdate:"),dt=Object.assign,Fa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xp=Object.prototype.hasOwnProperty,He=(e,t)=>Xp.call(e,t),Ce=Array.isArray,_r=e=>Di(e)==="[object Map]",ef=e=>Di(e)==="[object Set]",Ee=e=>typeof e=="function",nt=e=>typeof e=="string",Cn=e=>typeof e=="symbol",qe=e=>e!==null&&typeof e=="object",tf=e=>(qe(e)||Ee(e))&&Ee(e.then)&&Ee(e.catch),nf=Object.prototype.toString,Di=e=>nf.call(e),Zp=e=>Di(e).slice(8,-1),rf=e=>Di(e)==="[object Object]",Ha=e=>nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ao=La(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qp=/-(\w)/g,Gt=Fi(e=>e.replace(Qp,(t,n)=>n?n.toUpperCase():"")),Jp=/\B([A-Z])/g,Hn=Fi(e=>e.replace(Jp,"-$1").toLowerCase()),Hi=Fi(e=>e.charAt(0).toUpperCase()+e.slice(1)),As=Fi(e=>e?`on${Hi(e)}`:""),Ln=(e,t)=>!Object.is(e,t),zs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},of=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ev=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tv=e=>{const t=nt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ll;const ji=()=>Ll||(Ll=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Co(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=nt(r)?iv(r):Co(r);if(o)for(const i in o)t[i]=o[i]}return t}else if(nt(e)||qe(e))return e}const nv=/;(?![^(]*\))/g,rv=/:([^]+)/,ov=/\/\*[^]*?\*\//g;function iv(e){const t={};return e.replace(ov,"").split(nv).forEach(n=>{if(n){const r=n.split(rv);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Dn(e){let t="";if(nt(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const r=Dn(e[n]);r&&(t+=r+" ")}else if(qe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sv="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",av=La(sv);function sf(e){return!!e||e===""}const af=e=>!!(e&&e.__v_isRef===!0),lv=e=>nt(e)?e:e==null?"":Ce(e)||qe(e)&&(e.toString===nf||!Ee(e.toString))?af(e)?lv(e.value):JSON.stringify(e,lf,2):String(e),lf=(e,t)=>af(t)?lf(e,t.value):_r(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],i)=>(n[Ms(r,i)+" =>"]=o,n),{})}:ef(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ms(n))}:Cn(t)?Ms(t):qe(t)&&!Ce(t)&&!rf(t)?String(t):t,Ms=(e,t="")=>{var n;return Cn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
18
|
+
* @vue/reactivity v3.5.13
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/let $t;class cf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$t,!t&&$t&&(this.index=($t.scopes||($t.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$t;try{return $t=this,t()}finally{$t=n}}}on(){$t=this}off(){$t=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function uf(e){return new cf(e)}function ja(){return $t}function ff(e,t=!1){$t&&$t.cleanups.push(e)}let Ge;const Bs=new WeakSet;class df{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$t&&$t.active&&$t.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Bs.has(this)&&(Bs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||pf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Dl(this),vf(this);const t=Ge,n=Jt;Ge=this,Jt=!0;try{return this.fn()}finally{gf(this),Ge=t,Jt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Va(t);this.deps=this.depsTail=void 0,Dl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Bs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){la(this)&&this.run()}get dirty(){return la(this)}}let hf=0,lo,co;function pf(e,t=!1){if(e.flags|=8,t){e.next=co,co=e;return}e.next=lo,lo=e}function Na(){hf++}function Wa(){if(--hf>0)return;if(co){let t=co;for(co=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;lo;){let t=lo;for(lo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function vf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function gf(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Va(r),cv(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function la(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===So))return;e.globalVersion=So;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!la(e)){e.flags&=-3;return}const n=Ge,r=Jt;Ge=e,Jt=!0;try{vf(e);const o=e.fn(e._value);(t.version===0||Ln(o,e._value))&&(e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ge=n,Jt=r,gf(e),e.flags&=-3}}function Va(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Va(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function cv(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Jt=!0;const bf=[];function jn(){bf.push(Jt),Jt=!1}function Nn(){const e=bf.pop();Jt=e===void 0?!0:e}function Dl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ge;Ge=void 0;try{t()}finally{Ge=n}}}let So=0;class uv{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ni{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ge||!Jt||Ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ge)n=this.activeLink=new uv(Ge,this),Ge.deps?(n.prevDep=Ge.depsTail,Ge.depsTail.nextDep=n,Ge.depsTail=n):Ge.deps=Ge.depsTail=n,yf(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ge.depsTail,n.nextDep=void 0,Ge.depsTail.nextDep=n,Ge.depsTail=n,Ge.deps===n&&(Ge.deps=r)}return n}trigger(t){this.version++,So++,this.notify(t)}notify(t){Na();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Wa()}}}function yf(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)yf(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yi=new WeakMap,Qn=Symbol(""),ca=Symbol(""),_o=Symbol("");function St(e,t,n){if(Jt&&Ge){let r=yi.get(e);r||yi.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Ni),o.map=r,o.key=n),o.track()}}function mn(e,t,n,r,o,i){const s=yi.get(e);if(!s){So++;return}const a=l=>{l&&l.trigger()};if(Na(),t==="clear")s.forEach(a);else{const l=Ce(e),c=l&&Ha(n);if(l&&n==="length"){const u=Number(r);s.forEach((f,d)=>{(d==="length"||d===_o||!Cn(d)&&d>=u)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(_o)),t){case"add":l?c&&a(s.get("length")):(a(s.get(Qn)),_r(e)&&a(s.get(ca)));break;case"delete":l||(a(s.get(Qn)),_r(e)&&a(s.get(ca)));break;case"set":_r(e)&&a(s.get(Qn));break}}Wa()}function fv(e,t){const n=yi.get(e);return n&&n.get(t)}function hr(e){const t=Ae(e);return t===e?t:(St(t,"iterate",_o),Kt(e)?t:t.map(_t))}function Wi(e){return St(e=Ae(e),"iterate",_o),e}const dv={__proto__:null,[Symbol.iterator](){return Ls(this,Symbol.iterator,_t)},concat(...e){return hr(this).concat(...e.map(t=>Ce(t)?hr(t):t))},entries(){return Ls(this,"entries",e=>(e[1]=_t(e[1]),e))},every(e,t){return pn(this,"every",e,t,void 0,arguments)},filter(e,t){return pn(this,"filter",e,t,n=>n.map(_t),arguments)},find(e,t){return pn(this,"find",e,t,_t,arguments)},findIndex(e,t){return pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pn(this,"findLast",e,t,_t,arguments)},findLastIndex(e,t){return pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return hr(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return pn(this,"map",e,t,void 0,arguments)},pop(){return Kr(this,"pop")},push(...e){return Kr(this,"push",e)},reduce(e,...t){return Fl(this,"reduce",e,t)},reduceRight(e,...t){return Fl(this,"reduceRight",e,t)},shift(){return Kr(this,"shift")},some(e,t){return pn(this,"some",e,t,void 0,arguments)},splice(...e){return Kr(this,"splice",e)},toReversed(){return hr(this).toReversed()},toSorted(e){return hr(this).toSorted(e)},toSpliced(...e){return hr(this).toSpliced(...e)},unshift(...e){return Kr(this,"unshift",e)},values(){return Ls(this,"values",_t)}};function Ls(e,t,n){const r=Wi(e),o=r[t]();return r!==e&&!Kt(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=n(i.value)),i}),o}const hv=Array.prototype;function pn(e,t,n,r,o,i){const s=Wi(e),a=s!==e&&!Kt(e),l=s[t];if(l!==hv[t]){const f=l.apply(e,i);return a?_t(f):f}let c=n;s!==e&&(a?c=function(f,d){return n.call(this,_t(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(s,c,r);return a&&o?o(u):u}function Fl(e,t,n,r){const o=Wi(e);let i=n;return o!==e&&(Kt(e)?n.length>3&&(i=function(s,a,l){return n.call(this,s,a,l,e)}):i=function(s,a,l){return n.call(this,s,_t(a),l,e)}),o[t](i,...r)}function Ds(e,t,n){const r=Ae(e);St(r,"iterate",_o);const o=r[t](...n);return(o===-1||o===!1)&&Ga(n[0])?(n[0]=Ae(n[0]),r[t](...n)):o}function Kr(e,t,n=[]){jn(),Na();const r=Ae(e)[t].apply(e,n);return Wa(),Nn(),r}const pv=La("__proto__,__v_isRef,__isVue"),xf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Cn));function vv(e){Cn(e)||(e=String(e));const t=Ae(this);return St(t,"has",e),t.hasOwnProperty(e)}class wf{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(o?i?Ev:Ef:i?_f:Sf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Ce(t);if(!o){let l;if(s&&(l=dv[n]))return l;if(n==="hasOwnProperty")return vv}const a=Reflect.get(t,n,Ze(t)?t:r);return(Cn(n)?xf.has(n):pv(n))||(o||St(t,"get",n),i)?a:Ze(a)?s&&Ha(n)?a:a.value:qe(a)?o?dn(a):Yt(a):a}}class Cf extends wf{constructor(t=!1){super(!1,t)}set(t,n,r,o){let i=t[n];if(!this._isShallow){const l=rr(i);if(!Kt(r)&&!rr(r)&&(i=Ae(i),r=Ae(r)),!Ce(t)&&Ze(i)&&!Ze(r))return l?!1:(i.value=r,!0)}const s=Ce(t)&&Ha(n)?Number(n)<t.length:He(t,n),a=Reflect.set(t,n,r,Ze(t)?t:o);return t===Ae(o)&&(s?Ln(r,i)&&mn(t,"set",n,r):mn(t,"add",n,r)),a}deleteProperty(t,n){const r=He(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&mn(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!Cn(n)||!xf.has(n))&&St(t,"has",n),r}ownKeys(t){return St(t,"iterate",Ce(t)?"length":Qn),Reflect.ownKeys(t)}}class gv extends wf{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mv=new Cf,bv=new gv,yv=new Cf(!0);const ua=e=>e,Xo=e=>Reflect.getPrototypeOf(e);function xv(e,t,n){return function(...r){const o=this.__v_raw,i=Ae(o),s=_r(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,c=o[e](...r),u=n?ua:t?fa:_t;return!t&&St(i,"iterate",l?ca:Qn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function wv(e,t){const n={get(o){const i=this.__v_raw,s=Ae(i),a=Ae(o);e||(Ln(o,a)&&St(s,"get",o),St(s,"get",a));const{has:l}=Xo(s),c=t?ua:e?fa:_t;if(l.call(s,o))return c(i.get(o));if(l.call(s,a))return c(i.get(a));i!==s&&i.get(o)},get size(){const o=this.__v_raw;return!e&&St(Ae(o),"iterate",Qn),Reflect.get(o,"size",o)},has(o){const i=this.__v_raw,s=Ae(i),a=Ae(o);return e||(Ln(o,a)&&St(s,"has",o),St(s,"has",a)),o===a?i.has(o):i.has(o)||i.has(a)},forEach(o,i){const s=this,a=s.__v_raw,l=Ae(a),c=t?ua:e?fa:_t;return!e&&St(l,"iterate",Qn),a.forEach((u,f)=>o.call(i,c(u),c(f),s))}};return dt(n,e?{add:Zo("add"),set:Zo("set"),delete:Zo("delete"),clear:Zo("clear")}:{add(o){!t&&!Kt(o)&&!rr(o)&&(o=Ae(o));const i=Ae(this);return Xo(i).has.call(i,o)||(i.add(o),mn(i,"add",o,o)),this},set(o,i){!t&&!Kt(i)&&!rr(i)&&(i=Ae(i));const s=Ae(this),{has:a,get:l}=Xo(s);let c=a.call(s,o);c||(o=Ae(o),c=a.call(s,o));const u=l.call(s,o);return s.set(o,i),c?Ln(i,u)&&mn(s,"set",o,i):mn(s,"add",o,i),this},delete(o){const i=Ae(this),{has:s,get:a}=Xo(i);let l=s.call(i,o);l||(o=Ae(o),l=s.call(i,o)),a&&a.call(i,o);const c=i.delete(o);return l&&mn(i,"delete",o,void 0),c},clear(){const o=Ae(this),i=o.size!==0,s=o.clear();return i&&mn(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=xv(o,e,t)}),n}function Ua(e,t){const n=wv(e,t);return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(He(n,o)&&o in r?n:r,o,i)}const Cv={get:Ua(!1,!1)},Sv={get:Ua(!1,!0)},_v={get:Ua(!0,!1)};const Sf=new WeakMap,_f=new WeakMap,Ef=new WeakMap,Ev=new WeakMap;function Rv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tv(e){return e.__v_skip||!Object.isExtensible(e)?0:Rv(Zp(e))}function Yt(e){return rr(e)?e:Ka(e,!1,mv,Cv,Sf)}function Rf(e){return Ka(e,!1,yv,Sv,_f)}function dn(e){return Ka(e,!0,bv,_v,Ef)}function Ka(e,t,n,r,o){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=Tv(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function yn(e){return rr(e)?yn(e.__v_raw):!!(e&&e.__v_isReactive)}function rr(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function Ga(e){return e?!!e.__v_raw:!1}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function Eo(e){return!He(e,"__v_skip")&&Object.isExtensible(e)&&of(e,"__v_skip",!0),e}const _t=e=>qe(e)?Yt(e):e,fa=e=>qe(e)?dn(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function te(e){return Tf(e,!1)}function Ut(e){return Tf(e,!0)}function Tf(e,t){return Ze(e)?e:new Pv(e,t)}class Pv{constructor(t,n){this.dep=new Ni,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ae(t),this._value=n?t:_t(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Kt(t)||rr(t);t=r?t:Ae(t),Ln(t,n)&&(this._rawValue=t,this._value=r?t:_t(t),this.dep.trigger())}}function We(e){return Ze(e)?e.value:e}function ut(e){return Ee(e)?e():We(e)}const $v={get:(e,t,n)=>t==="__v_raw"?e:We(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ze(o)&&!Ze(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Pf(e){return yn(e)?e:new Proxy(e,$v)}class Ov{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ni,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function p_(e){return new Ov(e)}function $f(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=Of(e,n);return t}class kv{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fv(Ae(this._object),this._key)}}class Iv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Mt(e,t,n){return Ze(e)?e:Ee(e)?new Iv(e):qe(e)&&arguments.length>1?Of(e,t,n):te(e)}function Of(e,t,n){const r=e[t];return Ze(r)?r:new kv(e,t,n)}class Av{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ni(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=So-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ge!==this)return pf(this,!0),!0}get value(){const t=this.dep.track();return mf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function zv(e,t,n=!1){let r,o;return Ee(e)?r=e:(r=e.get,o=e.set),new Av(r,o,n)}const Qo={},xi=new WeakMap;let Gn;function Mv(e,t=!1,n=Gn){if(n){let r=xi.get(n);r||xi.set(n,r=[]),r.push(e)}}function Bv(e,t,n=Ue){const{immediate:r,deep:o,once:i,scheduler:s,augmentJob:a,call:l}=n,c=k=>o?k:Kt(k)||o===!1||o===0?bn(k,1):bn(k);let u,f,d,h,p=!1,m=!1;if(Ze(e)?(f=()=>e.value,p=Kt(e)):yn(e)?(f=()=>c(e),p=!0):Ce(e)?(m=!0,p=e.some(k=>yn(k)||Kt(k)),f=()=>e.map(k=>{if(Ze(k))return k.value;if(yn(k))return c(k);if(Ee(k))return l?l(k,2):k()})):Ee(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){jn();try{d()}finally{Nn()}}const k=Gn;Gn=u;try{return l?l(e,3,[h]):e(h)}finally{Gn=k}}:f=fn,t&&o){const k=f,_=o===!0?1/0:o;f=()=>bn(k(),_)}const C=ja(),w=()=>{u.stop(),C&&C.active&&Fa(C.effects,u)};if(i&&t){const k=t;t=(..._)=>{k(..._),w()}}let E=m?new Array(e.length).fill(Qo):Qo;const B=k=>{if(!(!(u.flags&1)||!u.dirty&&!k))if(t){const _=u.run();if(o||p||(m?_.some((R,v)=>Ln(R,E[v])):Ln(_,E))){d&&d();const R=Gn;Gn=u;try{const v=[_,E===Qo?void 0:m&&E[0]===Qo?[]:E,h];l?l(t,3,v):t(...v),E=_}finally{Gn=R}}}else u.run()};return a&&a(B),u=new df(f),u.scheduler=s?()=>s(B,!1):B,h=k=>Mv(k,!1,u),d=u.onStop=()=>{const k=xi.get(u);if(k){if(l)l(k,4);else for(const _ of k)_();xi.delete(u)}},t?r?B(!0):E=u.run():s?s(B.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function bn(e,t=1/0,n){if(t<=0||!qe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ze(e))bn(e.value,t,n);else if(Ce(e))for(let r=0;r<e.length;r++)bn(e[r],t,n);else if(ef(e)||_r(e))e.forEach(r=>{bn(r,t,n)});else if(rf(e)){for(const r in e)bn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&bn(e[r],t,n)}return e}/**
|
|
22
|
+
* @vue/runtime-core v3.5.13
|
|
23
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
24
|
+
* @license MIT
|
|
25
|
+
**/function Do(e,t,n,r){try{return r?e(...r):e()}catch(o){Vi(o,t,n)}}function en(e,t,n,r){if(Ee(e)){const o=Do(e,t,n,r);return o&&tf(o)&&o.catch(i=>{Vi(i,t,n)}),o}if(Ce(e)){const o=[];for(let i=0;i<e.length;i++)o.push(en(e[i],t,n,r));return o}}function Vi(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Ue;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(i){jn(),Do(i,null,10,[e,l,c]),Nn();return}}Lv(e,n,o,r,s)}function Lv(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const Ot=[];let cn=-1;const Er=[];let In=null,xr=0;const kf=Promise.resolve();let wi=null;function Rt(e){const t=wi||kf;return e?t.then(this?e.bind(this):e):t}function Dv(e){let t=cn+1,n=Ot.length;for(;t<n;){const r=t+n>>>1,o=Ot[r],i=Ro(o);i<e||i===e&&o.flags&2?t=r+1:n=r}return t}function Ya(e){if(!(e.flags&1)){const t=Ro(e),n=Ot[Ot.length-1];!n||!(e.flags&2)&&t>=Ro(n)?Ot.push(e):Ot.splice(Dv(t),0,e),e.flags|=1,If()}}function If(){wi||(wi=kf.then(zf))}function Fv(e){Ce(e)?Er.push(...e):In&&e.id===-1?In.splice(xr+1,0,e):e.flags&1||(Er.push(e),e.flags|=1),If()}function Hl(e,t,n=cn+1){for(;n<Ot.length;n++){const r=Ot[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ot.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Af(e){if(Er.length){const t=[...new Set(Er)].sort((n,r)=>Ro(n)-Ro(r));if(Er.length=0,In){In.push(...t);return}for(In=t,xr=0;xr<In.length;xr++){const n=In[xr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}In=null,xr=0}}const Ro=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zf(e){try{for(cn=0;cn<Ot.length;cn++){const t=Ot[cn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Do(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;cn<Ot.length;cn++){const t=Ot[cn];t&&(t.flags&=-2)}cn=-1,Ot.length=0,Af(),wi=null,(Ot.length||Er.length)&&zf()}}let ft=null,Mf=null;function Ci(e){const t=ft;return ft=e,Mf=e&&e.type.__scopeId||null,t}function Cr(e,t=ft,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ec(-1);const i=Ci(t);let s;try{s=e(...o)}finally{Ci(i),r._d&&ec(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function To(e,t){if(ft===null)return e;const n=Xi(ft),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,s,a,l=Ue]=t[o];i&&(Ee(i)&&(i={mounted:i,updated:i}),i.deep&&bn(s),r.push({dir:i,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return e}function Wn(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[r];l&&(jn(),en(l,n,8,[e.el,a,e,t]),Nn())}}const Bf=Symbol("_vte"),Lf=e=>e.__isTeleport,uo=e=>e&&(e.disabled||e.disabled===""),jl=e=>e&&(e.defer||e.defer===""),Nl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,da=(e,t)=>{const n=e&&e.to;return nt(n)?t?t(n):null:n},Df={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:C}}=c,w=uo(t.props);let{shapeFlag:E,children:B,dynamicChildren:k}=t;if(e==null){const _=t.el=m(""),R=t.anchor=m("");h(_,n,r),h(R,n,r);const v=(T,L)=>{E&16&&(o&&o.isCE&&(o.ce._teleportTarget=T),u(B,T,L,o,i,s,a,l))},y=()=>{const T=t.target=da(t.props,p),L=Ff(T,t,m,h);T&&(s!=="svg"&&Nl(T)?s="svg":s!=="mathml"&&Wl(T)&&(s="mathml"),w||(v(T,L),pi(t,!1)))};w&&(v(n,R),pi(t,!0)),jl(t.props)?Pt(()=>{y(),t.el.__isMounted=!0},i):y()}else{if(jl(t.props)&&!e.el.__isMounted){Pt(()=>{Df.process(e,t,n,r,o,i,s,a,l,c),delete e.el.__isMounted},i);return}t.el=e.el,t.targetStart=e.targetStart;const _=t.anchor=e.anchor,R=t.target=e.target,v=t.targetAnchor=e.targetAnchor,y=uo(e.props),T=y?n:R,L=y?_:v;if(s==="svg"||Nl(R)?s="svg":(s==="mathml"||Wl(R))&&(s="mathml"),k?(d(e.dynamicChildren,k,T,o,i,s,a),Qa(e,t,!0)):l||f(e,t,T,L,o,i,s,a,!1),w)y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Jo(t,n,_,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=da(t.props,p);D&&Jo(t,D,null,c,0)}else y&&Jo(t,R,v,c,1);pi(t,w)}},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(o(c),o(u)),i&&o(l),s&16){const h=i||!uo(d);for(let p=0;p<a.length;p++){const m=a[p];r(m,t,n,h,!!m.dynamicChildren)}}},move:Jo,hydrate:Hv};function Jo(e,t,n,{o:{insert:r},m:o},i=2){i===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:u}=e,f=i===2;if(f&&r(s,t,n),(!f||uo(u))&&l&16)for(let d=0;d<c.length;d++)o(c[d],t,n,2);f&&r(a,t,n)}function Hv(e,t,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l,insert:c,createText:u}},f){const d=t.target=da(t.props,l);if(d){const h=uo(t.props),p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(s(e),t,a(e),n,r,o,i),t.targetStart=p,t.targetAnchor=p&&s(p);else{t.anchor=s(e);let m=p;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&s(t.targetAnchor);break}}m=s(m)}t.targetAnchor||Ff(d,t,u,c),f(p&&s(p),t,d,n,r,o,i)}pi(t,h)}return t.anchor&&s(t.anchor)}const Fo=Df;function pi(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Ff(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[Bf]=i,e&&(r(o,e),r(i,e)),i}const An=Symbol("_leaveCb"),ei=Symbol("_enterCb");function Hf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qt(()=>{e.isMounted=!0}),nn(()=>{e.isUnmounting=!0}),e}const Nt=[Function,Array],jf={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nt,onEnter:Nt,onAfterEnter:Nt,onEnterCancelled:Nt,onBeforeLeave:Nt,onLeave:Nt,onAfterLeave:Nt,onLeaveCancelled:Nt,onBeforeAppear:Nt,onAppear:Nt,onAfterAppear:Nt,onAppearCancelled:Nt},Nf=e=>{const t=e.subTree;return t.component?Nf(t.component):t},jv={name:"BaseTransition",props:jf,setup(e,{slots:t}){const n=lr(),r=Hf();return()=>{const o=t.default&&qa(t.default(),!0);if(!o||!o.length)return;const i=Wf(o),s=Ae(e),{mode:a}=s;if(r.isLeaving)return Fs(i);const l=Vl(i);if(!l)return Fs(i);let c=Po(l,s,r,n,f=>c=f);l.type!==pt&&or(l,c);let u=n.subTree&&Vl(n.subTree);if(u&&u.type!==pt&&!Yn(l,u)&&Nf(n).type!==pt){let f=Po(u,s,r,n);if(or(u,f),a==="out-in"&&l.type!==pt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},Fs(i);a==="in-out"&&l.type!==pt?f.delayLeave=(d,h,p)=>{const m=Vf(r,u);m[String(u.key)]=u,d[An]=()=>{h(),d[An]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function Wf(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pt){t=n;break}}return t}const Nv=jv;function Vf(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Po(e,t,n,r,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:C,onAppear:w,onAfterAppear:E,onAppearCancelled:B}=t,k=String(e.key),_=Vf(n,e),R=(T,L)=>{T&&en(T,r,9,L)},v=(T,L)=>{const D=L[1];R(T,L),Ce(T)?T.every(M=>M.length<=1)&&D():T.length<=1&&D()},y={mode:s,persisted:a,beforeEnter(T){let L=l;if(!n.isMounted)if(i)L=C||l;else return;T[An]&&T[An](!0);const D=_[k];D&&Yn(e,D)&&D.el[An]&&D.el[An](),R(L,[T])},enter(T){let L=c,D=u,M=f;if(!n.isMounted)if(i)L=w||c,D=E||u,M=B||f;else return;let Y=!1;const ce=T[ei]=ye=>{Y||(Y=!0,ye?R(M,[T]):R(D,[T]),y.delayedLeave&&y.delayedLeave(),T[ei]=void 0)};L?v(L,[T,ce]):ce()},leave(T,L){const D=String(e.key);if(T[ei]&&T[ei](!0),n.isUnmounting)return L();R(d,[T]);let M=!1;const Y=T[An]=ce=>{M||(M=!0,L(),ce?R(m,[T]):R(p,[T]),T[An]=void 0,_[D]===e&&delete _[D])};_[D]=e,h?v(h,[T,Y]):Y()},clone(T){const L=Po(T,t,n,r,o);return o&&o(L),L}};return y}function Fs(e){if(Ui(e))return e=xn(e),e.children=null,e}function Vl(e){if(!Ui(e))return Lf(e.type)&&e.children?Wf(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ee(n.default))return n.default()}}function or(e,t){e.shapeFlag&6&&e.component?(e.transition=t,or(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qa(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:i);s.type===Ye?(s.patchFlag&128&&o++,r=r.concat(qa(s.children,t,a))):(t||s.type!==pt)&&r.push(a!=null?xn(s,{key:a}):s)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Re(e,t){return Ee(e)?dt({name:e.name},t,{setup:e}):e}function Uf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Si(e,t,n,r,o=!1){if(Ce(e)){e.forEach((p,m)=>Si(p,t&&(Ce(t)?t[m]:t),n,r,o));return}if(Rr(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Si(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Xi(r.component):r.el,s=o?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ue?a.refs={}:a.refs,f=a.setupState,d=Ae(f),h=f===Ue?()=>!1:p=>He(d,p);if(c!=null&&c!==l&&(nt(c)?(u[c]=null,h(c)&&(f[c]=null)):Ze(c)&&(c.value=null)),Ee(l))Do(l,a,12,[s,u]);else{const p=nt(l),m=Ze(l);if(p||m){const C=()=>{if(e.f){const w=p?h(l)?f[l]:u[l]:l.value;o?Ce(w)&&Fa(w,i):Ce(w)?w.includes(i)||w.push(i):p?(u[l]=[i],h(l)&&(f[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else p?(u[l]=s,h(l)&&(f[l]=s)):m&&(l.value=s,e.k&&(u[e.k]=s))};s?(C.id=-1,Pt(C,n)):C()}}}ji().requestIdleCallback;ji().cancelIdleCallback;const Rr=e=>!!e.type.__asyncLoader,Ui=e=>e.type.__isKeepAlive;function Kf(e,t){Yf(e,"a",t)}function Gf(e,t){Yf(e,"da",t)}function Yf(e,t,n=vt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ki(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ui(o.parent.vnode)&&Wv(r,t,n,o),o=o.parent}}function Wv(e,t,n,r){const o=Ki(t,e,r,!0);Gi(()=>{Fa(r[t],o)},n)}function Ki(e,t,n=vt,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{jn();const a=jo(n),l=en(t,n,e,s);return a(),Nn(),l});return r?o.unshift(i):o.push(i),i}}const Sn=e=>(t,n=vt)=>{(!Oo||e==="sp")&&Ki(e,(...r)=>t(...r),n)},ar=Sn("bm"),qt=Sn("m"),Vv=Sn("bu"),qf=Sn("u"),nn=Sn("bum"),Gi=Sn("um"),Uv=Sn("sp"),Kv=Sn("rtg"),Gv=Sn("rtc");function Yv(e,t=vt){Ki("ec",e,t)}const qv="components";function v_(e,t){return Zv(qv,e,!0,t)||e}const Xv=Symbol.for("v-ndc");function Zv(e,t,n=!0,r=!1){const o=ft||vt;if(o){const i=o.type;{const a=Dg(i,!1);if(a&&(a===t||a===Gt(t)||a===Hi(Gt(t))))return i}const s=Ul(o[e]||i[e],t)||Ul(o.appContext[e],t);return!s&&r?i:s}}function Ul(e,t){return e&&(e[t]||e[Gt(t)]||e[Hi(Gt(t))])}function g_(e,t,n,r){let o;const i=n,s=Ce(e);if(s||nt(e)){const a=s&&yn(e);let l=!1;a&&(l=!Kt(e),e=Wi(e)),o=new Array(e.length);for(let c=0,u=e.length;c<u;c++)o[c]=t(l?_t(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,i)}else if(qe(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];o[l]=t(e[u],u,l,i)}}else o=[];return o}function Qv(e,t,n={},r,o){if(ft.ce||ft.parent&&Rr(ft.parent)&&ft.parent.ce)return ir(),ma(Ye,null,[Qe("slot",n,r)],64);let i=e[t];i&&i._c&&(i._d=!1),ir();const s=i&&Xf(i(n)),a=n.key||s&&s.key,l=ma(Ye,{key:(a&&!Cn(a)?a:`_${t}`)+""},s||[],s&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Xf(e){return e.some(t=>Pr(t)?!(t.type===pt||t.type===Ye&&!Xf(t.children)):!0)?e:null}const ha=e=>e?vd(e)?Xi(e):ha(e.parent):null,fo=dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ha(e.parent),$root:e=>ha(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Qf(e),$forceUpdate:e=>e.f||(e.f=()=>{Ya(e.update)}),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>yg.bind(e)}),Hs=(e,t)=>e!==Ue&&!e.__isScriptSetup&&He(e,t),Jv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Hs(r,t))return s[t]=1,r[t];if(o!==Ue&&He(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&He(c,t))return s[t]=3,i[t];if(n!==Ue&&He(n,t))return s[t]=4,n[t];pa&&(s[t]=0)}}const u=fo[t];let f,d;if(u)return t==="$attrs"&&St(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Ue&&He(n,t))return s[t]=4,n[t];if(d=l.config.globalProperties,He(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return Hs(o,t)?(o[t]=n,!0):r!==Ue&&He(r,t)?(r[t]=n,!0):He(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==Ue&&He(e,s)||Hs(t,s)||(a=i[0])&&He(a,s)||He(r,s)||He(fo,s)||He(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:He(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kl(e){return Ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let pa=!0;function eg(e){const t=Qf(e),n=e.proxy,r=e.ctx;pa=!1,t.beforeCreate&&Gl(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:C,beforeDestroy:w,beforeUnmount:E,destroyed:B,unmounted:k,render:_,renderTracked:R,renderTriggered:v,errorCaptured:y,serverPrefetch:T,expose:L,inheritAttrs:D,components:M,directives:Y,filters:ce}=t;if(c&&tg(c,r,null),s)for(const q in s){const pe=s[q];Ee(pe)&&(r[q]=pe.bind(n))}if(o){const q=o.call(n,n);qe(q)&&(e.data=Yt(q))}if(pa=!0,i)for(const q in i){const pe=i[q],ke=Ee(pe)?pe.bind(n,n):Ee(pe.get)?pe.get.bind(n,n):fn,Me=!Ee(pe)&&Ee(pe.set)?pe.set.bind(n):fn,Pe=Q({get:ke,set:Me});Object.defineProperty(r,q,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:Be=>Pe.value=Be})}if(a)for(const q in a)Zf(a[q],r,n,q);if(l){const q=Ee(l)?l.call(n):l;Reflect.ownKeys(q).forEach(pe=>{Je(pe,q[pe])})}u&&Gl(u,e,"c");function fe(q,pe){Ce(pe)?pe.forEach(ke=>q(ke.bind(n))):pe&&q(pe.bind(n))}if(fe(ar,f),fe(qt,d),fe(Vv,h),fe(qf,p),fe(Kf,m),fe(Gf,C),fe(Yv,y),fe(Gv,R),fe(Kv,v),fe(nn,E),fe(Gi,k),fe(Uv,T),Ce(L))if(L.length){const q=e.exposed||(e.exposed={});L.forEach(pe=>{Object.defineProperty(q,pe,{get:()=>n[pe],set:ke=>n[pe]=ke})})}else e.exposed||(e.exposed={});_&&e.render===fn&&(e.render=_),D!=null&&(e.inheritAttrs=D),M&&(e.components=M),Y&&(e.directives=Y),T&&Uf(e)}function tg(e,t,n=fn){Ce(e)&&(e=va(e));for(const r in e){const o=e[r];let i;qe(o)?"default"in o?i=Oe(o.from||r,o.default,!0):i=Oe(o.from||r):i=Oe(o),Ze(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function Gl(e,t,n){en(Ce(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Zf(e,t,n,r){let o=r.includes(".")?ud(n,r):()=>n[r];if(nt(e)){const i=t[e];Ee(i)&&et(o,i)}else if(Ee(e))et(o,e.bind(n));else if(qe(e))if(Ce(e))e.forEach(i=>Zf(i,t,n,r));else{const i=Ee(e.handler)?e.handler.bind(n):t[e.handler];Ee(i)&&et(o,i,e)}}function Qf(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>_i(l,c,s,!0)),_i(l,t,s)),qe(t)&&i.set(t,l),l}function _i(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&_i(e,i,n,!0),o&&o.forEach(s=>_i(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=ng[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const ng={data:Yl,props:ql,emits:ql,methods:no,computed:no,beforeCreate:Tt,created:Tt,beforeMount:Tt,mounted:Tt,beforeUpdate:Tt,updated:Tt,beforeDestroy:Tt,beforeUnmount:Tt,destroyed:Tt,unmounted:Tt,activated:Tt,deactivated:Tt,errorCaptured:Tt,serverPrefetch:Tt,components:no,directives:no,watch:og,provide:Yl,inject:rg};function Yl(e,t){return t?e?function(){return dt(Ee(e)?e.call(this,this):e,Ee(t)?t.call(this,this):t)}:t:e}function rg(e,t){return no(va(e),va(t))}function va(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Tt(e,t){return e?[...new Set([].concat(e,t))]:t}function no(e,t){return e?dt(Object.create(null),e,t):t}function ql(e,t){return e?Ce(e)&&Ce(t)?[...new Set([...e,...t])]:dt(Object.create(null),Kl(e),Kl(t!=null?t:{})):t}function og(e,t){if(!e)return t;if(!t)return e;const n=dt(Object.create(null),e);for(const r in t)n[r]=Tt(e[r],t[r]);return n}function Jf(){return{app:null,config:{isNativeTag:qp,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ig=0;function sg(e,t){return function(r,o=null){Ee(r)||(r=dt({},r)),o!=null&&!qe(o)&&(o=null);const i=Jf(),s=new WeakSet,a=[];let l=!1;const c=i.app={_uid:ig++,_component:r,_props:o,_container:null,_context:i,_instance:null,version:Hg,get config(){return i.config},set config(u){},use(u,...f){return s.has(u)||(u&&Ee(u.install)?(s.add(u),u.install(c,...f)):Ee(u)&&(s.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||Qe(r,o);return h.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(h,u,d),l=!0,c._container=u,u.__vue_app__=c,Xi(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(en(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Jn;Jn=c;try{return u()}finally{Jn=f}}};return c}}let Jn=null;function Je(e,t){if(vt){let n=vt.provides;const r=vt.parent&&vt.parent.provides;r===n&&(n=vt.provides=Object.create(r)),n[e]=t}}function Oe(e,t,n=!1){const r=vt||ft;if(r||Jn){const o=Jn?Jn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ee(t)?t.call(r&&r.proxy):t}}function Xa(){return!!(vt||ft||Jn)}const ed={},td=()=>Object.create(ed),nd=e=>Object.getPrototypeOf(e)===ed;function ag(e,t,n,r=!1){const o={},i=td();e.propsDefaults=Object.create(null),rd(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:Rf(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function lg(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=Ae(o),[l]=e.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Yi(e.emitsOptions,d))continue;const h=t[d];if(l)if(He(i,d))h!==i[d]&&(i[d]=h,c=!0);else{const p=Gt(d);o[p]=ga(l,a,p,h,e,!1)}else h!==i[d]&&(i[d]=h,c=!0)}}}else{rd(e,t,o,i)&&(c=!0);let u;for(const f in a)(!t||!He(t,f)&&((u=Hn(f))===f||!He(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(o[f]=ga(l,a,f,void 0,e,!0)):delete o[f]);if(i!==a)for(const f in i)(!t||!He(t,f))&&(delete i[f],c=!0)}c&&mn(e.attrs,"set","")}function rd(e,t,n,r){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(ao(l))continue;const c=t[l];let u;o&&He(o,u=Gt(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Yi(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,s=!0)}if(i){const l=Ae(n),c=a||Ue;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ga(o,l,f,c[f],e,!He(c,f))}}return s}function ga(e,t,n,r,o,i){const s=e[n];if(s!=null){const a=He(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&Ee(l)){const{propsDefaults:c}=o;if(n in c)r=c[n];else{const u=jo(o);r=c[n]=l.call(null,t),u()}}else r=l;o.ce&&o.ce._setProp(n,r)}s[0]&&(i&&!a?r=!1:s[1]&&(r===""||r===Hn(n))&&(r=!0))}return r}const cg=new WeakMap;function od(e,t,n=!1){const r=n?cg:t.propsCache,o=r.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!Ee(e)){const u=f=>{l=!0;const[d,h]=od(f,t,!0);dt(s,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return qe(e)&&r.set(e,Sr),Sr;if(Ce(i))for(let u=0;u<i.length;u++){const f=Gt(i[u]);Xl(f)&&(s[f]=Ue)}else if(i)for(const u in i){const f=Gt(u);if(Xl(f)){const d=i[u],h=s[f]=Ce(d)||Ee(d)?{type:d}:dt({},d),p=h.type;let m=!1,C=!0;if(Ce(p))for(let w=0;w<p.length;++w){const E=p[w],B=Ee(E)&&E.name;if(B==="Boolean"){m=!0;break}else B==="String"&&(C=!1)}else m=Ee(p)&&p.name==="Boolean";h[0]=m,h[1]=C,(m||He(h,"default"))&&a.push(f)}}const c=[s,a];return qe(e)&&r.set(e,c),c}function Xl(e){return e[0]!=="$"&&!ao(e)}const id=e=>e[0]==="_"||e==="$stable",Za=e=>Ce(e)?e.map(un):[un(e)],ug=(e,t,n)=>{if(t._n)return t;const r=Cr((...o)=>Za(t(...o)),n);return r._c=!1,r},sd=(e,t,n)=>{const r=e._ctx;for(const o in e){if(id(o))continue;const i=e[o];if(Ee(i))t[o]=ug(o,i,r);else if(i!=null){const s=Za(i);t[o]=()=>s}}},ad=(e,t)=>{const n=Za(t);e.slots.default=()=>n},ld=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},fg=(e,t,n)=>{const r=e.slots=td();if(e.vnode.shapeFlag&32){const o=t._;o?(ld(r,t,n),n&&of(r,"_",o,!0)):sd(t,r)}else t&&ad(e,t)},dg=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=Ue;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:ld(o,t,n):(i=!t.$stable,sd(t,o)),s=t}else t&&(ad(e,t),s={default:1});if(i)for(const a in o)!id(a)&&s[a]==null&&delete o[a]},Pt=Rg;function hg(e){return pg(e)}function pg(e,t){const n=ji();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=fn,insertStaticContent:p}=e,m=(x,S,z,F=null,V=null,j=null,oe=void 0,ne=null,G=!!S.dynamicChildren)=>{if(x===S)return;x&&!Yn(x,S)&&(F=H(x),Be(x,V,j,!0),x=null),S.patchFlag===-2&&(G=!1,S.dynamicChildren=null);const{type:W,ref:ve,shapeFlag:ae}=S;switch(W){case qi:C(x,S,z,F);break;case pt:w(x,S,z,F);break;case Ns:x==null&&E(S,z,F,oe);break;case Ye:M(x,S,z,F,V,j,oe,ne,G);break;default:ae&1?_(x,S,z,F,V,j,oe,ne,G):ae&6?Y(x,S,z,F,V,j,oe,ne,G):(ae&64||ae&128)&&W.process(x,S,z,F,V,j,oe,ne,G,de)}ve!=null&&V&&Si(ve,x&&x.ref,j,S||x,!S)},C=(x,S,z,F)=>{if(x==null)r(S.el=a(S.children),z,F);else{const V=S.el=x.el;S.children!==x.children&&c(V,S.children)}},w=(x,S,z,F)=>{x==null?r(S.el=l(S.children||""),z,F):S.el=x.el},E=(x,S,z,F)=>{[x.el,x.anchor]=p(x.children,S,z,F,x.el,x.anchor)},B=({el:x,anchor:S},z,F)=>{let V;for(;x&&x!==S;)V=d(x),r(x,z,F),x=V;r(S,z,F)},k=({el:x,anchor:S})=>{let z;for(;x&&x!==S;)z=d(x),o(x),x=z;o(S)},_=(x,S,z,F,V,j,oe,ne,G)=>{S.type==="svg"?oe="svg":S.type==="math"&&(oe="mathml"),x==null?R(S,z,F,V,j,oe,ne,G):T(x,S,V,j,oe,ne,G)},R=(x,S,z,F,V,j,oe,ne)=>{let G,W;const{props:ve,shapeFlag:ae,transition:me,dirs:be}=x;if(G=x.el=s(x.type,j,ve&&ve.is,ve),ae&8?u(G,x.children):ae&16&&y(x.children,G,null,F,V,js(x,j),oe,ne),be&&Wn(x,null,F,"created"),v(G,x,x.scopeId,oe,F),ve){for(const Le in ve)Le!=="value"&&!ao(Le)&&i(G,Le,null,ve[Le],j,F);"value"in ve&&i(G,"value",null,ve.value,j),(W=ve.onVnodeBeforeMount)&&on(W,F,x)}be&&Wn(x,null,F,"beforeMount");const Te=vg(V,me);Te&&me.beforeEnter(G),r(G,S,z),((W=ve&&ve.onVnodeMounted)||Te||be)&&Pt(()=>{W&&on(W,F,x),Te&&me.enter(G),be&&Wn(x,null,F,"mounted")},V)},v=(x,S,z,F,V)=>{if(z&&h(x,z),F)for(let j=0;j<F.length;j++)h(x,F[j]);if(V){let j=V.subTree;if(S===j||dd(j.type)&&(j.ssContent===S||j.ssFallback===S)){const oe=V.vnode;v(x,oe,oe.scopeId,oe.slotScopeIds,V.parent)}}},y=(x,S,z,F,V,j,oe,ne,G=0)=>{for(let W=G;W<x.length;W++){const ve=x[W]=ne?zn(x[W]):un(x[W]);m(null,ve,S,z,F,V,j,oe,ne)}},T=(x,S,z,F,V,j,oe)=>{const ne=S.el=x.el;let{patchFlag:G,dynamicChildren:W,dirs:ve}=S;G|=x.patchFlag&16;const ae=x.props||Ue,me=S.props||Ue;let be;if(z&&Vn(z,!1),(be=me.onVnodeBeforeUpdate)&&on(be,z,S,x),ve&&Wn(S,x,z,"beforeUpdate"),z&&Vn(z,!0),(ae.innerHTML&&me.innerHTML==null||ae.textContent&&me.textContent==null)&&u(ne,""),W?L(x.dynamicChildren,W,ne,z,F,js(S,V),j):oe||pe(x,S,ne,null,z,F,js(S,V),j,!1),G>0){if(G&16)D(ne,ae,me,z,V);else if(G&2&&ae.class!==me.class&&i(ne,"class",null,me.class,V),G&4&&i(ne,"style",ae.style,me.style,V),G&8){const Te=S.dynamicProps;for(let Le=0;Le<Te.length;Le++){const ze=Te[Le],at=ae[ze],lt=me[ze];(lt!==at||ze==="value")&&i(ne,ze,at,lt,V,z)}}G&1&&x.children!==S.children&&u(ne,S.children)}else!oe&&W==null&&D(ne,ae,me,z,V);((be=me.onVnodeUpdated)||ve)&&Pt(()=>{be&&on(be,z,S,x),ve&&Wn(S,x,z,"updated")},F)},L=(x,S,z,F,V,j,oe)=>{for(let ne=0;ne<S.length;ne++){const G=x[ne],W=S[ne],ve=G.el&&(G.type===Ye||!Yn(G,W)||G.shapeFlag&70)?f(G.el):z;m(G,W,ve,null,F,V,j,oe,!0)}},D=(x,S,z,F,V)=>{if(S!==z){if(S!==Ue)for(const j in S)!ao(j)&&!(j in z)&&i(x,j,S[j],null,V,F);for(const j in z){if(ao(j))continue;const oe=z[j],ne=S[j];oe!==ne&&j!=="value"&&i(x,j,ne,oe,V,F)}"value"in z&&i(x,"value",S.value,z.value,V)}},M=(x,S,z,F,V,j,oe,ne,G)=>{const W=S.el=x?x.el:a(""),ve=S.anchor=x?x.anchor:a("");let{patchFlag:ae,dynamicChildren:me,slotScopeIds:be}=S;be&&(ne=ne?ne.concat(be):be),x==null?(r(W,z,F),r(ve,z,F),y(S.children||[],z,ve,V,j,oe,ne,G)):ae>0&&ae&64&&me&&x.dynamicChildren?(L(x.dynamicChildren,me,z,V,j,oe,ne),(S.key!=null||V&&S===V.subTree)&&Qa(x,S,!0)):pe(x,S,z,ve,V,j,oe,ne,G)},Y=(x,S,z,F,V,j,oe,ne,G)=>{S.slotScopeIds=ne,x==null?S.shapeFlag&512?V.ctx.activate(S,z,F,oe,G):ce(S,z,F,V,j,oe,G):ye(x,S,G)},ce=(x,S,z,F,V,j,oe)=>{const ne=x.component=Ag(x,F,V);if(Ui(x)&&(ne.ctx.renderer=de),zg(ne,!1,oe),ne.asyncDep){if(V&&V.registerDep(ne,fe,oe),!x.el){const G=ne.subTree=Qe(pt);w(null,G,S,z)}}else fe(ne,x,S,z,V,j,oe)},ye=(x,S,z)=>{const F=S.component=x.component;if(_g(x,S,z))if(F.asyncDep&&!F.asyncResolved){q(F,S,z);return}else F.next=S,F.update();else S.el=x.el,F.vnode=S},fe=(x,S,z,F,V,j,oe)=>{const ne=()=>{if(x.isMounted){let{next:ae,bu:me,u:be,parent:Te,vnode:Le}=x;{const bt=cd(x);if(bt){ae&&(ae.el=Le.el,q(x,ae,oe)),bt.asyncDep.then(()=>{x.isUnmounted||ne()});return}}let ze=ae,at;Vn(x,!1),ae?(ae.el=Le.el,q(x,ae,oe)):ae=Le,me&&zs(me),(at=ae.props&&ae.props.onVnodeBeforeUpdate)&&on(at,Te,ae,Le),Vn(x,!0);const lt=Ql(x),mt=x.subTree;x.subTree=lt,m(mt,lt,f(mt.el),H(mt),x,V,j),ae.el=lt.el,ze===null&&Eg(x,lt.el),be&&Pt(be,V),(at=ae.props&&ae.props.onVnodeUpdated)&&Pt(()=>on(at,Te,ae,Le),V)}else{let ae;const{el:me,props:be}=S,{bm:Te,m:Le,parent:ze,root:at,type:lt}=x,mt=Rr(S);Vn(x,!1),Te&&zs(Te),!mt&&(ae=be&&be.onVnodeBeforeMount)&&on(ae,ze,S),Vn(x,!0);{at.ce&&at.ce._injectChildStyle(lt);const bt=x.subTree=Ql(x);m(null,bt,z,F,x,V,j),S.el=bt.el}if(Le&&Pt(Le,V),!mt&&(ae=be&&be.onVnodeMounted)){const bt=S;Pt(()=>on(ae,ze,bt),V)}(S.shapeFlag&256||ze&&Rr(ze.vnode)&&ze.vnode.shapeFlag&256)&&x.a&&Pt(x.a,V),x.isMounted=!0,S=z=F=null}};x.scope.on();const G=x.effect=new df(ne);x.scope.off();const W=x.update=G.run.bind(G),ve=x.job=G.runIfDirty.bind(G);ve.i=x,ve.id=x.uid,G.scheduler=()=>Ya(ve),Vn(x,!0),W()},q=(x,S,z)=>{S.component=x;const F=x.vnode.props;x.vnode=S,x.next=null,lg(x,S.props,F,z),dg(x,S.children,z),jn(),Hl(x),Nn()},pe=(x,S,z,F,V,j,oe,ne,G=!1)=>{const W=x&&x.children,ve=x?x.shapeFlag:0,ae=S.children,{patchFlag:me,shapeFlag:be}=S;if(me>0){if(me&128){Me(W,ae,z,F,V,j,oe,ne,G);return}else if(me&256){ke(W,ae,z,F,V,j,oe,ne,G);return}}be&8?(ve&16&&_e(W,V,j),ae!==W&&u(z,ae)):ve&16?be&16?Me(W,ae,z,F,V,j,oe,ne,G):_e(W,V,j,!0):(ve&8&&u(z,""),be&16&&y(ae,z,F,V,j,oe,ne,G))},ke=(x,S,z,F,V,j,oe,ne,G)=>{x=x||Sr,S=S||Sr;const W=x.length,ve=S.length,ae=Math.min(W,ve);let me;for(me=0;me<ae;me++){const be=S[me]=G?zn(S[me]):un(S[me]);m(x[me],be,z,null,V,j,oe,ne,G)}W>ve?_e(x,V,j,!0,!1,ae):y(S,z,F,V,j,oe,ne,G,ae)},Me=(x,S,z,F,V,j,oe,ne,G)=>{let W=0;const ve=S.length;let ae=x.length-1,me=ve-1;for(;W<=ae&&W<=me;){const be=x[W],Te=S[W]=G?zn(S[W]):un(S[W]);if(Yn(be,Te))m(be,Te,z,null,V,j,oe,ne,G);else break;W++}for(;W<=ae&&W<=me;){const be=x[ae],Te=S[me]=G?zn(S[me]):un(S[me]);if(Yn(be,Te))m(be,Te,z,null,V,j,oe,ne,G);else break;ae--,me--}if(W>ae){if(W<=me){const be=me+1,Te=be<ve?S[be].el:F;for(;W<=me;)m(null,S[W]=G?zn(S[W]):un(S[W]),z,Te,V,j,oe,ne,G),W++}}else if(W>me)for(;W<=ae;)Be(x[W],V,j,!0),W++;else{const be=W,Te=W,Le=new Map;for(W=Te;W<=me;W++){const yt=S[W]=G?zn(S[W]):un(S[W]);yt.key!=null&&Le.set(yt.key,W)}let ze,at=0;const lt=me-Te+1;let mt=!1,bt=0;const Xt=new Array(lt);for(W=0;W<lt;W++)Xt[W]=0;for(W=be;W<=ae;W++){const yt=x[W];if(at>=lt){Be(yt,V,j,!0);continue}let X;if(yt.key!=null)X=Le.get(yt.key);else for(ze=Te;ze<=me;ze++)if(Xt[ze-Te]===0&&Yn(yt,S[ze])){X=ze;break}X===void 0?Be(yt,V,j,!0):(Xt[X-Te]=W+1,X>=bt?bt=X:mt=!0,m(yt,S[X],z,null,V,j,oe,ne,G),at++)}const Bt=mt?gg(Xt):Sr;for(ze=Bt.length-1,W=lt-1;W>=0;W--){const yt=Te+W,X=S[yt],he=yt+1<ve?S[yt+1].el:F;Xt[W]===0?m(null,X,z,he,V,j,oe,ne,G):mt&&(ze<0||W!==Bt[ze]?Pe(X,z,he,2):ze--)}}},Pe=(x,S,z,F,V=null)=>{const{el:j,type:oe,transition:ne,children:G,shapeFlag:W}=x;if(W&6){Pe(x.component.subTree,S,z,F);return}if(W&128){x.suspense.move(S,z,F);return}if(W&64){oe.move(x,S,z,de);return}if(oe===Ye){r(j,S,z);for(let ae=0;ae<G.length;ae++)Pe(G[ae],S,z,F);r(x.anchor,S,z);return}if(oe===Ns){B(x,S,z);return}if(F!==2&&W&1&&ne)if(F===0)ne.beforeEnter(j),r(j,S,z),Pt(()=>ne.enter(j),V);else{const{leave:ae,delayLeave:me,afterLeave:be}=ne,Te=()=>r(j,S,z),Le=()=>{ae(j,()=>{Te(),be&&be()})};me?me(j,Te,Le):Le()}else r(j,S,z)},Be=(x,S,z,F=!1,V=!1)=>{const{type:j,props:oe,ref:ne,children:G,dynamicChildren:W,shapeFlag:ve,patchFlag:ae,dirs:me,cacheIndex:be}=x;if(ae===-2&&(V=!1),ne!=null&&Si(ne,null,z,x,!0),be!=null&&(S.renderCache[be]=void 0),ve&256){S.ctx.deactivate(x);return}const Te=ve&1&&me,Le=!Rr(x);let ze;if(Le&&(ze=oe&&oe.onVnodeBeforeUnmount)&&on(ze,S,x),ve&6)kt(x.component,z,F);else{if(ve&128){x.suspense.unmount(z,F);return}Te&&Wn(x,null,S,"beforeUnmount"),ve&64?x.type.remove(x,S,z,de,F):W&&!W.hasOnce&&(j!==Ye||ae>0&&ae&64)?_e(W,S,z,!1,!0):(j===Ye&&ae&384||!V&&ve&16)&&_e(G,S,z),F&&rt(x)}(Le&&(ze=oe&&oe.onVnodeUnmounted)||Te)&&Pt(()=>{ze&&on(ze,S,x),Te&&Wn(x,null,S,"unmounted")},z)},rt=x=>{const{type:S,el:z,anchor:F,transition:V}=x;if(S===Ye){ot(z,F);return}if(S===Ns){k(x);return}const j=()=>{o(z),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(x.shapeFlag&1&&V&&!V.persisted){const{leave:oe,delayLeave:ne}=V,G=()=>oe(z,j);ne?ne(x.el,j,G):G()}else j()},ot=(x,S)=>{let z;for(;x!==S;)z=d(x),o(x),x=z;o(S)},kt=(x,S,z)=>{const{bum:F,scope:V,job:j,subTree:oe,um:ne,m:G,a:W}=x;Zl(G),Zl(W),F&&zs(F),V.stop(),j&&(j.flags|=8,Be(oe,x,S,z)),ne&&Pt(ne,S),Pt(()=>{x.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},_e=(x,S,z,F=!1,V=!1,j=0)=>{for(let oe=j;oe<x.length;oe++)Be(x[oe],S,z,F,V)},H=x=>{if(x.shapeFlag&6)return H(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const S=d(x.anchor||x.el),z=S&&S[Bf];return z?d(z):S};let ie=!1;const U=(x,S,z)=>{x==null?S._vnode&&Be(S._vnode,null,null,!0):m(S._vnode||null,x,S,null,null,null,z),S._vnode=x,ie||(ie=!0,Hl(),Af(),ie=!1)},de={p:m,um:Be,m:Pe,r:rt,mt:ce,mc:y,pc:pe,pbc:L,n:H,o:e};return{render:U,hydrate:void 0,createApp:sg(U)}}function js({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Qa(e,t,n=!1){const r=e.children,o=t.children;if(Ce(r)&&Ce(o))for(let i=0;i<r.length;i++){const s=r[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=zn(o[i]),a.el=s.el),!n&&a.patchFlag!==-2&&Qa(s,a)),a.type===qi&&(a.el=s.el)}}function gg(e){const t=e.slice(),n=[0];let r,o,i,s,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(o=n[n.length-1],e[o]<c){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<c?i=a+1:s=a;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}function cd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cd(t)}function Zl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const mg=Symbol.for("v-scx"),bg=()=>Oe(mg);function Ho(e,t){return Ja(e,null,t)}function et(e,t,n){return Ja(e,t,n)}function Ja(e,t,n=Ue){const{immediate:r,deep:o,flush:i,once:s}=n,a=dt({},n),l=t&&r||!t&&i!=="post";let c;if(Oo){if(i==="sync"){const h=bg();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=fn,h.resume=fn,h.pause=fn,h}}const u=vt;a.call=(h,p,m)=>en(h,u,p,m);let f=!1;i==="post"?a.scheduler=h=>{Pt(h,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Ya(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=Bv(e,t,a);return Oo&&(c?c.push(d):l&&d()),d}function yg(e,t,n){const r=this.proxy,o=nt(e)?e.includes(".")?ud(r,e):()=>r[e]:e.bind(r,r);let i;Ee(t)?i=t:(i=t.handler,n=t);const s=jo(this),a=Ja(o,i.bind(r),n);return s(),a}function ud(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const xg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gt(t)}Modifiers`]||e[`${Hn(t)}Modifiers`];function wg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ue;let o=n;const i=t.startsWith("update:"),s=i&&xg(r,t.slice(7));s&&(s.trim&&(o=n.map(u=>nt(u)?u.trim():u)),s.number&&(o=n.map(ev)));let a,l=r[a=As(t)]||r[a=As(Gt(t))];!l&&i&&(l=r[a=As(Hn(t))]),l&&en(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,en(c,e,6,o)}}function fd(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!Ee(e)){const l=c=>{const u=fd(c,t,!0);u&&(a=!0,dt(s,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(qe(e)&&r.set(e,null),null):(Ce(i)?i.forEach(l=>s[l]=null):dt(s,i),qe(e)&&r.set(e,s),s)}function Yi(e,t){return!e||!Li(t)?!1:(t=t.slice(2).replace(/Once$/,""),He(e,t[0].toLowerCase()+t.slice(1))||He(e,Hn(t))||He(e,t))}function Ql(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=e,C=Ci(e);let w,E;try{if(n.shapeFlag&4){const k=o||r,_=k;w=un(c.call(_,k,u,f,h,d,p)),E=a}else{const k=t;w=un(k.length>1?k(f,{attrs:a,slots:s,emit:l}):k(f,null)),E=t.props?a:Cg(a)}}catch(k){ho.length=0,Vi(k,e,1),w=Qe(pt)}let B=w;if(E&&m!==!1){const k=Object.keys(E),{shapeFlag:_}=B;k.length&&_&7&&(i&&k.some(Da)&&(E=Sg(E,i)),B=xn(B,E,!1,!0))}return n.dirs&&(B=xn(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(n.dirs):n.dirs),n.transition&&or(B,n.transition),w=B,Ci(C),w}const Cg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Li(n))&&((t||(t={}))[n]=e[n]);return t},Sg=(e,t)=>{const n={};for(const r in e)(!Da(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _g(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Jl(r,s,c):!!s;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==r[d]&&!Yi(c,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?Jl(r,s,c):!0:!!s;return!1}function Jl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!Yi(n,i))return!0}return!1}function Eg({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const dd=e=>e.__isSuspense;function Rg(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):Fv(e)}const Ye=Symbol.for("v-fgt"),qi=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),ho=[];let Ft=null;function ir(e=!1){ho.push(Ft=e?null:[])}function Tg(){ho.pop(),Ft=ho[ho.length-1]||null}let $o=1;function ec(e,t=!1){$o+=e,e<0&&Ft&&t&&(Ft.hasOnce=!0)}function hd(e){return e.dynamicChildren=$o>0?Ft||Sr:null,Tg(),$o>0&&Ft&&Ft.push(e),e}function Ei(e,t,n,r,o,i){return hd(ct(e,t,n,r,o,i,!0))}function ma(e,t,n,r,o){return hd(Qe(e,t,n,r,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function Yn(e,t){return e.type===t.type&&e.key===t.key}const pd=({key:e})=>e!=null?e:null,vi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?nt(e)||Ze(e)||Ee(e)?{i:ft,r:e,k:t,f:!!n}:e:null);function ct(e,t=null,n=null,r=0,o=null,i=e===Ye?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pd(t),ref:t&&vi(t),scopeId:Mf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ft};return a?(el(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=nt(n)?8:16),$o>0&&!s&&Ft&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ft.push(l),l}const Qe=Pg;function Pg(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===Xv)&&(e=pt),Pr(e)){const a=xn(e,t,!0);return n&&el(a,n),$o>0&&!i&&Ft&&(a.shapeFlag&6?Ft[Ft.indexOf(e)]=a:Ft.push(a)),a.patchFlag=-2,a}if(Fg(e)&&(e=e.__vccOpts),t){t=$g(t);let{class:a,style:l}=t;a&&!nt(a)&&(t.class=Dn(a)),qe(l)&&(Ga(l)&&!Ce(l)&&(l=dt({},l)),t.style=Co(l))}const s=nt(e)?1:dd(e)?128:Lf(e)?64:qe(e)?4:Ee(e)?2:0;return ct(e,t,n,r,o,s,i,!0)}function $g(e){return e?Ga(e)||nd(e)?dt({},e):e:null}function xn(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:s,children:a,transition:l}=e,c=t?tl(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&pd(c),ref:t&&t.ref?n&&i?Ce(i)?i.concat(vi(t)):[i,vi(t)]:vi(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xn(e.ssContent),ssFallback:e.ssFallback&&xn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&or(u,l.clone(u)),u}function Zt(e=" ",t=0){return Qe(qi,null,e,t)}function Og(e="",t=!1){return t?(ir(),ma(pt,null,e)):Qe(pt,null,e)}function un(e){return e==null||typeof e=="boolean"?Qe(pt):Ce(e)?Qe(Ye,null,e.slice()):Pr(e)?zn(e):Qe(qi,null,String(e))}function zn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xn(e)}function el(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),el(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!nd(t)?t._ctx=ft:o===3&&ft&&(ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ee(t)?(t={default:t,_ctx:ft},n=32):(t=String(t),r&64?(n=16,t=[Zt(t)]):n=8);e.children=t,e.shapeFlag|=n}function tl(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Dn([t.class,r.class]));else if(o==="style")t.style=Co([t.style,r.style]);else if(Li(o)){const i=t[o],s=r[o];s&&i!==s&&!(Ce(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=r[o])}return t}function on(e,t,n,r=null){en(e,t,7,[n,r])}const kg=Jf();let Ig=0;function Ag(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kg,i={uid:Ig++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new cf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:od(r,o),emitsOptions:fd(r,o),emit:null,emitted:null,propsDefaults:Ue,inheritAttrs:r.inheritAttrs,ctx:Ue,data:Ue,props:Ue,attrs:Ue,slots:Ue,refs:Ue,setupState:Ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=wg.bind(null,i),e.ce&&e.ce(i),i}let vt=null;const lr=()=>vt||ft;let Ri,ba;{const e=ji(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),i=>{o.length>1?o.forEach(s=>s(i)):o[0](i)}};Ri=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),ba=t("__VUE_SSR_SETTERS__",n=>Oo=n)}const jo=e=>{const t=vt;return Ri(e),e.scope.on(),()=>{e.scope.off(),Ri(t)}},tc=()=>{vt&&vt.scope.off(),Ri(null)};function vd(e){return e.vnode.shapeFlag&4}let Oo=!1;function zg(e,t=!1,n=!1){t&&ba(t);const{props:r,children:o}=e.vnode,i=vd(e);ag(e,r,i,t),fg(e,o,n);const s=i?Mg(e,t):void 0;return t&&ba(!1),s}function Mg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jv);const{setup:r}=n;if(r){jn();const o=e.setupContext=r.length>1?Lg(e):null,i=jo(e),s=Do(r,e,0,[e.props,o]),a=tf(s);if(Nn(),i(),(a||e.sp)&&!Rr(e)&&Uf(e),a){if(s.then(tc,tc),t)return s.then(l=>{nc(e,l)}).catch(l=>{Vi(l,e,0)});e.asyncDep=s}else nc(e,s)}else gd(e)}function nc(e,t,n){Ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=Pf(t)),gd(e)}function gd(e,t,n){const r=e.type;e.render||(e.render=r.render||fn);{const o=jo(e);jn();try{eg(e)}finally{Nn(),o()}}}const Bg={get(e,t){return St(e,"get",""),e[t]}};function Lg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Bg),slots:e.slots,emit:e.emit,expose:t}}function Xi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pf(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fo)return fo[n](e)},has(t,n){return n in t||n in fo}})):e.proxy}function Dg(e,t=!0){return Ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Fg(e){return Ee(e)&&"__vccOpts"in e}const Q=(e,t)=>zv(e,t,Oo);function I(e,t,n){const r=arguments.length;return r===2?qe(t)&&!Ce(t)?Pr(t)?Qe(e,null,[t]):Qe(e,t):Qe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Pr(n)&&(n=[n]),Qe(e,t,n))}const Hg="3.5.13";/**
|
|
26
|
+
* @vue/runtime-dom v3.5.13
|
|
27
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
28
|
+
* @license MIT
|
|
29
|
+
**/let ya;const rc=typeof window<"u"&&window.trustedTypes;if(rc)try{ya=rc.createPolicy("vue",{createHTML:e=>e})}catch{}const md=ya?e=>ya.createHTML(e):e=>e,jg="http://www.w3.org/2000/svg",Ng="http://www.w3.org/1998/Math/MathML",gn=typeof document<"u"?document:null,oc=gn&&gn.createElement("template"),Wg={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?gn.createElementNS(jg,e):t==="mathml"?gn.createElementNS(Ng,e):n?gn.createElement(e,{is:n}):gn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>gn.createTextNode(e),createComment:e=>gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{oc.innerHTML=md(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=oc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tn="transition",Gr="animation",$r=Symbol("_vtc"),bd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},yd=dt({},jf,bd),Vg=e=>(e.displayName="Transition",e.props=yd,e),Fn=Vg((e,{slots:t})=>I(Nv,xd(e),t)),Un=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},ic=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function xd(e){const t={};for(const M in e)M in bd||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=Ug(o),m=p&&p[0],C=p&&p[1],{onBeforeEnter:w,onEnter:E,onEnterCancelled:B,onLeave:k,onLeaveCancelled:_,onBeforeAppear:R=w,onAppear:v=E,onAppearCancelled:y=B}=t,T=(M,Y,ce,ye)=>{M._enterCancelled=ye,On(M,Y?u:a),On(M,Y?c:s),ce&&ce()},L=(M,Y)=>{M._isLeaving=!1,On(M,f),On(M,h),On(M,d),Y&&Y()},D=M=>(Y,ce)=>{const ye=M?v:E,fe=()=>T(Y,M,ce);Un(ye,[Y,fe]),sc(()=>{On(Y,M?l:i),ln(Y,M?u:a),ic(ye)||ac(Y,r,m,fe)})};return dt(t,{onBeforeEnter(M){Un(w,[M]),ln(M,i),ln(M,s)},onBeforeAppear(M){Un(R,[M]),ln(M,l),ln(M,c)},onEnter:D(!1),onAppear:D(!0),onLeave(M,Y){M._isLeaving=!0;const ce=()=>L(M,Y);ln(M,f),M._enterCancelled?(ln(M,d),xa()):(xa(),ln(M,d)),sc(()=>{M._isLeaving&&(On(M,f),ln(M,h),ic(k)||ac(M,r,C,ce))}),Un(k,[M,ce])},onEnterCancelled(M){T(M,!1,void 0,!0),Un(B,[M])},onAppearCancelled(M){T(M,!0,void 0,!0),Un(y,[M])},onLeaveCancelled(M){L(M),Un(_,[M])}})}function Ug(e){if(e==null)return null;if(qe(e))return[Ws(e.enter),Ws(e.leave)];{const t=Ws(e);return[t,t]}}function Ws(e){return tv(e)}function ln(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$r]||(e[$r]=new Set)).add(t)}function On(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[$r];n&&(n.delete(t),n.size||(e[$r]=void 0))}function sc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kg=0;function ac(e,t,n,r){const o=e._endId=++Kg,i=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=wd(e,t);if(!s)return r();const c=s+"end";let u=0;const f=()=>{e.removeEventListener(c,d),i()},d=h=>{h.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,d)}function wd(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${Tn}Delay`),i=r(`${Tn}Duration`),s=lc(o,i),a=r(`${Gr}Delay`),l=r(`${Gr}Duration`),c=lc(a,l);let u=null,f=0,d=0;t===Tn?s>0&&(u=Tn,f=s,d=i.length):t===Gr?c>0&&(u=Gr,f=c,d=l.length):(f=Math.max(s,c),u=f>0?s>c?Tn:Gr:null,d=u?u===Tn?i.length:l.length:0);const h=u===Tn&&/\b(transform|all)(,|$)/.test(r(`${Tn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function lc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>cc(n)+cc(e[r])))}function cc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xa(){return document.body.offsetHeight}function Gg(e,t,n){const r=e[$r];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ti=Symbol("_vod"),Cd=Symbol("_vsh"),Pi={beforeMount(e,{value:t},{transition:n}){e[Ti]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Yr(e,!0),r.enter(e)):r.leave(e,()=>{Yr(e,!1)}):Yr(e,t))},beforeUnmount(e,{value:t}){Yr(e,t)}};function Yr(e,t){e.style.display=t?e[Ti]:"none",e[Cd]=!t}const Yg=Symbol(""),qg=/(^|;)\s*display\s*:/;function Xg(e,t,n){const r=e.style,o=nt(n);let i=!1;if(n&&!o){if(t)if(nt(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&gi(r,a,"")}else for(const s in t)n[s]==null&&gi(r,s,"");for(const s in n)s==="display"&&(i=!0),gi(r,s,n[s])}else if(o){if(t!==n){const s=r[Yg];s&&(n+=";"+s),r.cssText=n,i=qg.test(n)}}else t&&e.removeAttribute("style");Ti in e&&(e[Ti]=i?r.display:"",e[Cd]&&(r.display="none"))}const uc=/\s*!important$/;function gi(e,t,n){if(Ce(n))n.forEach(r=>gi(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Zg(e,t);uc.test(n)?e.setProperty(Hn(r),n.replace(uc,""),"important"):e[r]=n}}const fc=["Webkit","Moz","ms"],Vs={};function Zg(e,t){const n=Vs[t];if(n)return n;let r=Gt(t);if(r!=="filter"&&r in e)return Vs[t]=r;r=Hi(r);for(let o=0;o<fc.length;o++){const i=fc[o]+r;if(i in e)return Vs[t]=i}return t}const dc="http://www.w3.org/1999/xlink";function hc(e,t,n,r,o,i=av(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(dc,t.slice(6,t.length)):e.setAttributeNS(dc,t,n):n==null||i&&!sf(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Cn(n)?String(n):n)}function pc(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?md(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=sf(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(o||t)}function Qg(e,t,n,r){e.addEventListener(t,n,r)}function Jg(e,t,n,r){e.removeEventListener(t,n,r)}const vc=Symbol("_vei");function em(e,t,n,r,o=null){const i=e[vc]||(e[vc]={}),s=i[t];if(r&&s)s.value=r;else{const[a,l]=tm(t);if(r){const c=i[t]=om(r,o);Qg(e,a,c,l)}else s&&(Jg(e,a,s,l),i[t]=void 0)}}const gc=/(?:Once|Passive|Capture)$/;function tm(e){let t;if(gc.test(e)){t={};let r;for(;r=e.match(gc);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Hn(e.slice(2)),t]}let Us=0;const nm=Promise.resolve(),rm=()=>Us||(nm.then(()=>Us=0),Us=Date.now());function om(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;en(im(r,n.value),t,5,[r])};return n.value=e,n.attached=rm(),n}function im(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const mc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,sm=(e,t,n,r,o,i)=>{const s=o==="svg";t==="class"?Gg(e,r,s):t==="style"?Xg(e,n,r):Li(t)?Da(t)||em(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):am(e,t,r,s))?(pc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hc(e,t,r,s,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!nt(r))?pc(e,Gt(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),hc(e,t,r,s))};function am(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&mc(t)&&Ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return mc(t)&&nt(n)?!1:t in e}const Sd=new WeakMap,_d=new WeakMap,$i=Symbol("_moveCb"),bc=Symbol("_enterCb"),lm=e=>(delete e.props.mode,e),cm=lm({name:"TransitionGroup",props:dt({},yd,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=lr(),r=Hf();let o,i;return qf(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!pm(o[0].el,n.vnode.el,s))return;o.forEach(fm),o.forEach(dm);const a=o.filter(hm);xa(),a.forEach(l=>{const c=l.el,u=c.style;ln(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[$i]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[$i]=null,On(c,s))};c.addEventListener("transitionend",f)})}),()=>{const s=Ae(e),a=xd(s);let l=s.tag||Ye;if(o=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(o.push(u),or(u,Po(u,a,r,n)),Sd.set(u,u.el.getBoundingClientRect()))}i=t.default?qa(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&or(u,Po(u,a,r,n))}return Qe(l,null,i)}}}),um=cm;function fm(e){const t=e.el;t[$i]&&t[$i](),t[bc]&&t[bc]()}function dm(e){_d.set(e,e.el.getBoundingClientRect())}function hm(e){const t=Sd.get(e),n=_d.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${o}px)`,i.transitionDuration="0s",e}}function pm(e,t,n){const r=e.cloneNode(),o=e[$r];o&&o.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=wd(r);return i.removeChild(r),s}const vm=["ctrl","shift","alt","meta"],gm={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vm.some(n=>e[`${n}Key`]&&!t.includes(n))},yc=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...i)=>{for(let s=0;s<t.length;s++){const a=gm[t[s]];if(a&&a(o,t))return}return e(o,...i)})},mm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},m_=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const i=Hn(o.key);if(t.some(s=>s===i||mm[s]===i))return e(o)})},bm=dt({patchProp:sm},Wg);let xc;function ym(){return xc||(xc=hg(bm))}const Ed=(...e)=>{const t=ym().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=wm(r);if(!o)return;const i=t._component;!Ee(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,xm(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function xm(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wm(e){return nt(e)?document.querySelector(e):e}function mi(e){return e.composedPath()[0]}const Cm={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Sm(e,t,n){if(e==="mousemoveoutside"){const r=o=>{t.contains(mi(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=s=>{r=!t.contains(mi(s))},i=s=>{r&&(t.contains(mi(s))||n(s))};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 Rd(e,t,n){const r=Cm[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=Sm(e,t,n)),i}function _m(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Rd(e,t,n);return Object.keys(o).forEach(i=>{gt(i,document,o[i],r)}),!0}return!1}function Em(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Rd(e,t,n);return Object.keys(o).forEach(i=>{Et(i,document,o[i],r)}),!0}return!1}function Rm(){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,y,T){const L=v[y];return v[y]=function(){return T.apply(v,arguments),L.apply(v,arguments)},v}function i(v,y){v[y]=Event.prototype[y]}const s=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var v;return(v=s.get(this))!==null&&v!==void 0?v:null}function c(v,y){a!==void 0&&Object.defineProperty(v,"currentTarget",{configurable:!0,enumerable:!0,get:y!=null?y:a.get})}const u={bubble:{},capture:{}},f={};function d(){const v=function(y){const{type:T,eventPhase:L,bubbles:D}=y,M=mi(y);if(L===2)return;const Y=L===1?"capture":"bubble";let ce=M;const ye=[];for(;ce===null&&(ce=window),ye.push(ce),ce!==window;)ce=ce.parentNode||null;const fe=u.capture[T],q=u.bubble[T];if(o(y,"stopPropagation",n),o(y,"stopImmediatePropagation",r),c(y,l),Y==="capture"){if(fe===void 0)return;for(let pe=ye.length-1;pe>=0&&!e.has(y);--pe){const ke=ye[pe],Me=fe.get(ke);if(Me!==void 0){s.set(y,ke);for(const Pe of Me){if(t.has(y))break;Pe(y)}}if(pe===0&&!D&&q!==void 0){const Pe=q.get(ke);if(Pe!==void 0)for(const Be of Pe){if(t.has(y))break;Be(y)}}}}else if(Y==="bubble"){if(q===void 0)return;for(let pe=0;pe<ye.length&&!e.has(y);++pe){const ke=ye[pe],Me=q.get(ke);if(Me!==void 0){s.set(y,ke);for(const Pe of Me){if(t.has(y))break;Pe(y)}}}}i(y,"stopPropagation"),i(y,"stopImmediatePropagation"),c(y)};return v.displayName="evtdUnifiedHandler",v}function h(){const v=function(y){const{type:T,eventPhase:L}=y;if(L!==2)return;const D=f[T];D!==void 0&&D.forEach(M=>M(y))};return v.displayName="evtdUnifiedWindowEventHandler",v}const p=d(),m=h();function C(v,y){const T=u[v];return T[y]===void 0&&(T[y]=new Map,window.addEventListener(y,p,v==="capture")),T[y]}function w(v){return f[v]===void 0&&(f[v]=new Set,window.addEventListener(v,m)),f[v]}function E(v,y){let T=v.get(y);return T===void 0&&v.set(y,T=new Set),T}function B(v,y,T,L){const D=u[y][T];if(D!==void 0){const M=D.get(v);if(M!==void 0&&M.has(L))return!0}return!1}function k(v,y){const T=f[v];return!!(T!==void 0&&T.has(y))}function _(v,y,T,L){let D;if(typeof L=="object"&&L.once===!0?D=fe=>{R(v,y,D,L),T(fe)}:D=T,_m(v,y,D,L))return;const Y=L===!0||typeof L=="object"&&L.capture===!0?"capture":"bubble",ce=C(Y,v),ye=E(ce,y);if(ye.has(D)||ye.add(D),y===window){const fe=w(v);fe.has(D)||fe.add(D)}}function R(v,y,T,L){if(Em(v,y,T,L))return;const M=L===!0||typeof L=="object"&&L.capture===!0,Y=M?"capture":"bubble",ce=C(Y,v),ye=E(ce,y);if(y===window&&!B(y,M?"bubble":"capture",v,T)&&k(v,T)){const q=f[v];q.delete(T),q.size===0&&(window.removeEventListener(v,m),f[v]=void 0)}ye.has(T)&&ye.delete(T),ye.size===0&&ce.delete(y),ce.size===0&&(window.removeEventListener(v,p,Y==="capture"),u[Y][v]=void 0)}return{on:_,off:R}}const{on:gt,off:Et}=Rm();function Tm(e){const t=te(!!e.value);if(t.value)return dn(t);const n=et(e,r=>{r&&(t.value=!0,n())});return dn(t)}function Oi(e){const t=Q(e),n=te(t.value);return et(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function Td(){return lr()!==null}const Pd=typeof window<"u",ro=te(null);function wc(e){if(e.clientX>0||e.clientY>0)ro.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?ro.value={x:n+o/2,y:r+i/2}:ro.value={x:0,y:0}}else ro.value=null}}let ti=0,Cc=!0;function nl(){if(!Pd)return dn(te(null));ti===0&>("click",document,wc,!0);const e=()=>{ti+=1};return Cc&&(Cc=Td())?(ar(e),nn(()=>{ti-=1,ti===0&&Et("click",document,wc,!0)})):e(),dn(ro)}const Pm=te(void 0);let ni=0;function Sc(){Pm.value=Date.now()}let _c=!0;function rl(e){if(!Pd)return dn(te(!1));const t=te(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}ni===0&>("click",window,Sc,!0);const i=()=>{ni+=1,gt("click",window,o,!0)};return _c&&(_c=Td())?(ar(i),nn(()=>{ni-=1,ni===0&&Et("click",window,Sc,!0),Et("click",window,o,!0),r()})):i(),dn(t)}function $d(e,t){return et(e,n=>{n!==void 0&&(t.value=n)}),Q(()=>e.value===void 0?t.value:e.value)}function ol(){const e=te(!1);return qt(()=>{e.value=!0}),dn(e)}const $m=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Om(){return $m}function b_(e){return e}const km="n-drawer-body",Im="n-modal-body",Am="n-modal-provider",Od="n-modal",zm="n-popover-body",Dr=typeof document<"u"&&typeof window<"u",il=te(!1);function Ec(){il.value=!0}function Rc(){il.value=!1}let qr=0;function Mm(){return Dr&&(ar(()=>{qr||(window.addEventListener("compositionstart",Ec),window.addEventListener("compositionend",Rc)),qr++}),nn(()=>{qr<=1?(window.removeEventListener("compositionstart",Ec),window.removeEventListener("compositionend",Rc),qr=0):qr--})),il}let pr=0,Tc="",Pc="",$c="",Oc="";const kc=te("0px");function Bm(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Tc,t.style.overflow=Pc,t.style.overflowX=$c,t.style.overflowY=Oc,kc.value="0px"};qt(()=>{n=et(e,i=>{if(i){if(!pr){const s=window.innerWidth-t.offsetWidth;s>0&&(Tc=t.style.marginRight,t.style.marginRight=`${s}px`,kc.value=`${s}px`),Pc=t.style.overflow,$c=t.style.overflowX,Oc=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,pr++}else pr--,pr||o(),r=!1},{immediate:!0})}),nn(()=>{n==null||n(),r&&(pr--,pr||o(),r=!1)})}function Lm(e){const t={isDeactivated:!1};let n=!1;return Kf(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),Gf(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Ic(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function wa(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Zt(String(r)));return}if(Array.isArray(r)){wa(r,t,n);return}if(r.type===Ye){if(r.children===null)return;Array.isArray(r.children)&&wa(r.children,t,n)}else r.type!==pt&&n.push(r)}}),n}function y_(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=wa(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}const vr="@@coContext",Dm={mounted(e,{value:t,modifiers:n}){e[vr]={handler:void 0},typeof t=="function"&&(e[vr].handler=t,gt("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[vr];typeof t=="function"?r.handler?r.handler!==t&&(Et("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,gt("clickoutside",e,t,{capture:n.capture})):(e[vr].handler=t,gt("clickoutside",e,t,{capture:n.capture})):r.handler&&(Et("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[vr];n&&Et("clickoutside",e,n,{capture:t.capture}),e[vr].handler=void 0}};function Fm(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Hm{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&&Fm("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 Ks=new Hm,gr="@@ziContext",jm={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[gr]={enabled:!!o,initialized:!1},o&&(Ks.ensureZIndex(e,r),e[gr].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[gr].enabled;o&&!i&&(Ks.ensureZIndex(e,r),e[gr].initialized=!0),e[gr].enabled=!!o},unmounted(e,t){if(!e[gr].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Ks.unregister(e,r)}},Nm="@css-render/vue3-ssr";function Wm(e,t){return`<style cssr-id="${e}">
|
|
30
|
+
${t}
|
|
31
|
+
</style>`}function Vm(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(Wm(e,t)))}const Um=typeof document<"u";function Zi(){if(Um)return;const e=Oe(Nm,null);if(e!==null)return{adapter:(t,n)=>Vm(t,n,e),context:e}}function Ac(e,t){console.error(`[vueuc/${e}]: ${t}`)}function zc(e){return typeof e=="string"?document.querySelector(e):e()}const Km=Re({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Tm(Mt(e,"show")),mergedTo:Q(()=>{const{to:t}=e;return t!=null?t:"body"})}},render(){return this.showTeleport?this.disabled?Ic("lazy-teleport",this.$slots):I(Fo,{disabled:this.disabled,to:this.mergedTo},Ic("lazy-teleport",this.$slots)):null}});var er=[],Gm=function(){return er.some(function(e){return e.activeTargets.length>0})},Ym=function(){return er.some(function(e){return e.skippedTargets.length>0})},Mc="ResizeObserver loop completed with undelivered notifications.",qm=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Mc}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Mc),window.dispatchEvent(e)},ko;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ko||(ko={}));var tr=function(e){return Object.freeze(e)},Xm=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,tr(this)}return e}(),kd=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,tr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,s=t.bottom,a=t.left,l=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:s,left:a,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),sl=function(e){return e instanceof SVGElement&&"getBBox"in e},Id=function(e){if(sl(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Bc=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)},Zm=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},po=typeof window<"u"?window:{},ri=new WeakMap,Lc=/auto|scroll/,Qm=/^tb|vertical/,Jm=/msie|trident/i.test(po.navigator&&po.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},Tr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Xm((n?t:e)||0,(n?e:t)||0)},Dc=tr({devicePixelContentBoxSize:Tr(),borderBoxSize:Tr(),contentBoxSize:Tr(),contentRect:new kd(0,0,0,0)}),Ad=function(e,t){if(t===void 0&&(t=!1),ri.has(e)&&!t)return ri.get(e);if(Id(e))return ri.set(e,Dc),Dc;var n=getComputedStyle(e),r=sl(e)&&e.ownerSVGElement&&e.getBBox(),o=!Jm&&n.boxSizing==="border-box",i=Qm.test(n.writingMode||""),s=!r&&Lc.test(n.overflowY||""),a=!r&&Lc.test(n.overflowX||""),l=r?0:sn(n.paddingTop),c=r?0:sn(n.paddingRight),u=r?0:sn(n.paddingBottom),f=r?0:sn(n.paddingLeft),d=r?0:sn(n.borderTopWidth),h=r?0:sn(n.borderRightWidth),p=r?0:sn(n.borderBottomWidth),m=r?0:sn(n.borderLeftWidth),C=f+c,w=l+u,E=m+h,B=d+p,k=a?e.offsetHeight-B-e.clientHeight:0,_=s?e.offsetWidth-E-e.clientWidth:0,R=o?C+E:0,v=o?w+B:0,y=r?r.width:sn(n.width)-R-_,T=r?r.height:sn(n.height)-v-k,L=y+C+_+E,D=T+w+k+B,M=tr({devicePixelContentBoxSize:Tr(Math.round(y*devicePixelRatio),Math.round(T*devicePixelRatio),i),borderBoxSize:Tr(L,D,i),contentBoxSize:Tr(y,T,i),contentRect:new kd(f,l,y,T)});return ri.set(e,M),M},zd=function(e,t,n){var r=Ad(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case ko.DEVICE_PIXEL_CONTENT_BOX:return s;case ko.BORDER_BOX:return o;default:return i}},eb=function(){function e(t){var n=Ad(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=tr([n.borderBoxSize]),this.contentBoxSize=tr([n.contentBoxSize]),this.devicePixelContentBoxSize=tr([n.devicePixelContentBoxSize])}return e}(),Md=function(e){if(Id(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},tb=function(){var e=1/0,t=[];er.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var u=new eb(c.target),f=Md(c.target);a.push(u),c.lastReportedSize=zd(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Fc=function(e){er.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Md(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},nb=function(){var e=0;for(Fc(e);Gm();)e=tb(),Fc(e);return Ym()&&qm(),e>0},Gs,Bd=[],rb=function(){return Bd.splice(0).forEach(function(e){return e()})},ob=function(e){if(!Gs){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return rb()}).observe(n,r),Gs=function(){n.textContent="".concat(t?t--:t++)}}Bd.push(e),Gs()},ib=function(e){ob(function(){requestAnimationFrame(e)})},bi=0,sb=function(){return!!bi},ab=250,lb={attributes:!0,characterData:!0,childList:!0,subtree:!0},Hc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],jc=function(e){return e===void 0&&(e=0),Date.now()+e},Ys=!1,cb=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=ab),!Ys){Ys=!0;var r=jc(t);ib(function(){var o=!1;try{o=nb()}finally{if(Ys=!1,t=r-jc(),!sb())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,lb)};document.body?n():po.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Hc.forEach(function(n){return po.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Hc.forEach(function(n){return po.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ca=new cb,Nc=function(e){!bi&&e>0&&Ca.start(),bi+=e,!bi&&Ca.stop()},ub=function(e){return!sl(e)&&!Zm(e)&&getComputedStyle(e).display==="inline"},fb=function(){function e(t,n){this.target=t,this.observedBox=n||ko.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=zd(this.target,this.observedBox,!0);return ub(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),db=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),oi=new WeakMap,Wc=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ii=function(){function e(){}return e.connect=function(t,n){var r=new db(t,n);oi.set(t,r)},e.observe=function(t,n,r){var o=oi.get(t),i=o.observationTargets.length===0;Wc(o.observationTargets,n)<0&&(i&&er.push(o),o.observationTargets.push(new fb(n,r&&r.box)),Nc(1),Ca.schedule())},e.unobserve=function(t,n){var r=oi.get(t),o=Wc(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&er.splice(er.indexOf(r),1),r.observationTargets.splice(o,1),Nc(-1))},e.disconnect=function(t){var n=this,r=oi.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),hb=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.");ii.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(!Bc(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ii.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(!Bc(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ii.unobserve(this,t)},e.prototype.disconnect=function(){ii.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class pb{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||hb)(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 Vc=new pb,Uc=Re({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=lr().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}qt(()=>{const o=n.$el;if(o===void 0){Ac("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Ac("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Vc.registerHandler(o.nextElementSibling,r),t=!0)}),nn(()=>{t&&Vc.unregisterHandler(n.$el.nextElementSibling)})},render(){return Qv(this.$slots,"default")}});function Ld(e){return e instanceof HTMLElement}function Dd(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(Ld(n)&&(Hd(n)||Dd(n)))return!0}return!1}function Fd(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(Ld(n)&&(Hd(n)||Fd(n)))return!0}return!1}function Hd(e){if(!vb(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function vb(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 Xr=[];const gb=Re({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=Lr(),n=te(null),r=te(null);let o=!1,i=!1;const s=typeof document>"u"?null:document.activeElement;function a(){return Xr[Xr.length-1]===t}function l(C){var w;C.code==="Escape"&&a()&&((w=e.onEsc)===null||w===void 0||w.call(e,C))}qt(()=>{et(()=>e.active,C=>{C?(f(),gt("keydown",document,l)):(Et("keydown",document,l),o&&d())},{immediate:!0})}),nn(()=>{Et("keydown",document,l),o&&d()});function c(C){if(!i&&a()){const w=u();if(w===null||w.contains(Ma(C)))return;h("first")}}function u(){const C=n.value;if(C===null)return null;let w=C;for(;w=w.nextSibling,!(w===null||w instanceof Element&&w.tagName==="DIV"););return w}function f(){var C;if(!e.disabled){if(Xr.push(t),e.autoFocus){const{initialFocusTo:w}=e;w===void 0?h("first"):(C=zc(w))===null||C===void 0||C.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function d(){var C;if(e.disabled||(document.removeEventListener("focus",c,!0),Xr=Xr.filter(E=>E!==t),a()))return;const{finalFocusTo:w}=e;w!==void 0?(C=zc(w))===null||C===void 0||C.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&s instanceof HTMLElement&&(i=!0,s.focus({preventScroll:!0}),i=!1)}function h(C){if(a()&&e.active){const w=n.value,E=r.value;if(w!==null&&E!==null){const B=u();if(B==null||B===E){i=!0,w.focus({preventScroll:!0}),i=!1;return}i=!0;const k=C==="first"?Dd(B):Fd(B);i=!1,k||(i=!0,w.focus({preventScroll:!0}),i=!1)}}}function p(C){if(i)return;const w=u();w!==null&&(C.relatedTarget!==null&&w.contains(C.relatedTarget)?h("last"):h("first"))}function m(C){i||(C.relatedTarget!==null&&C.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:m}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return I(Ye,null,[I("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),I("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Kc(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function Gc(e){const{left:t,right:n,top:r,bottom:o}=Bn(e);return`${r} ${t} ${o} ${n}`}const jd=new WeakSet;function x_(e){jd.add(e)}function mb(e){return!jd.has(e)}function Or(e,t){console.error(`[naive/${e}]: ${t}`)}function Fr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function tt(e,...t){if(Array.isArray(e))e.forEach(n=>tt(n,...t));else return e(...t)}function ki(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(Zt(String(r)));return}if(Array.isArray(r)){ki(r,t,n);return}if(r.type===Ye){if(r.children===null)return;Array.isArray(r.children)&&ki(r.children,t,n)}else{if(r.type===pt&&t)return;n.push(r)}}}),n}function w_(e,t="default",n=void 0){const r=e[t];if(!r)return Or("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=ki(r(n));return o.length===1?o[0]:(Or("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function bb(e,t,n){if(!t)return null;const r=ki(t(n));return r.length===1?r[0]:(Or("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Io(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function Qi(e){return Object.keys(e)}function Ji(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Dt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?Zt(e):typeof e=="number"?Zt(String(e)):null}function Wt(e){return e.some(t=>Pr(t)?!(t.type===pt||t.type===Ye&&!Wt(t.children)):!0)?e:null}function Yc(e,t){return e&&Wt(e())||t()}function C_(e,t,n){return e&&Wt(e(t))||n(t)}function Vt(e,t){const n=e&&Wt(e());return t(n||null)}function S_(e,t,n){const r=e&&Wt(e(t));return n(r||null)}function yb(e){return!(e&&Wt(e()))}const qc=Re({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),wn="n-config-provider",Ii="n";function Ht(e={},t={defaultBordered:!0}){const n=Oe(wn,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:Q(()=>{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:n?n.mergedClsPrefixRef:Ut(Ii),namespaceRef:Q(()=>n==null?void 0:n.mergedNamespaceRef.value)}}function __(){const e=Oe(wn,null);return e?e.mergedClsPrefixRef:Ut(Ii)}function _n(e,t,n,r){n||Fr("useThemeClass","cssVarsRef is not passed");const o=Oe(wn,null),i=o==null?void 0:o.mergedThemeHashRef,s=o==null?void 0:o.styleMountTarget,a=te(""),l=Zi();let c;const u=`__${e}`,f=()=>{let d=u;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(d+=`-${p}`),h&&(d+=`-${h}`);const{themeOverrides:m,builtinThemeOverrides:C}=r;m&&(d+=`-${xo(JSON.stringify(m))}`),C&&(d+=`-${xo(JSON.stringify(C))}`),a.value=d,c=()=>{const w=n.value;let E="";for(const B in w)E+=`${B}: ${w[B]};`;K(`.${d}`,E).mount({id:d,ssr:l,parent:s}),c=void 0}};return Ho(()=>{f()}),{themeClass:a,onRender:()=>{c==null||c()}}}const Xc="n-form-item";function al(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Oe(Xc,null);Je(Xc,null);const i=Q(n?()=>n(o):()=>{const{size:l}=e;if(l)return l;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),s=Q(r?()=>r(o):()=>{const{disabled:l}=e;return l!==void 0?l:o?o.disabled.value:!1}),a=Q(()=>{const{status:l}=e;return l||(o==null?void 0:o.mergedValidationStatus.value)});return nn(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:s,mergedStatusRef:a,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}const xb={name:"zh-CN",global:{undo:"撤销",redo:"重做",confirm:"确认",clear:"清除"},Popconfirm:{positiveText:"确认",negativeText:"取消"},Cascader:{placeholder:"请选择",loading:"加载中",loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy年",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w周",clear:"清除",now:"此刻",confirm:"确认",selectTime:"选择时间",selectDate:"选择日期",datePlaceholder:"选择日期",datetimePlaceholder:"选择日期时间",monthPlaceholder:"选择月份",yearPlaceholder:"选择年份",quarterPlaceholder:"选择季度",weekPlaceholder:"选择周",startDatePlaceholder:"开始日期",endDatePlaceholder:"结束日期",startDatetimePlaceholder:"开始日期时间",endDatetimePlaceholder:"结束日期时间",startMonthPlaceholder:"开始月份",endMonthPlaceholder:"结束月份",monthBeforeYear:!1,firstDayOfWeek:0,today:"今天"},DataTable:{checkTableAll:"选择全部表格数据",uncheckTableAll:"取消选择全部表格数据",confirm:"确认",clear:"重置"},LegacyTransfer:{sourceTitle:"源项",targetTitle:"目标项"},Transfer:{selectAll:"全选",clearAll:"清除",unselectAll:"取消全选",total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:"无数据"},Select:{placeholder:"请选择"},TimePicker:{placeholder:"请选择时间",positiveText:"确认",negativeText:"取消",now:"此刻",clear:"清除"},Pagination:{goto:"跳至",selectionSuffix:"页"},DynamicTags:{add:"添加"},Log:{loading:"加载中"},Input:{placeholder:"请输入"},InputNumber:{placeholder:"请输入"},DynamicInput:{create:"添加"},ThemeEditor:{title:"主题编辑器",clearAllVars:"清除全部变量",clearSearch:"清除搜索",filterCompName:"过滤组件名",filterVarName:"过滤变量名",import:"导入",export:"导出",restore:"恢复默认"},Image:{tipPrevious:"上一张(←)",tipNext:"下一张(→)",tipCounterclockwise:"向左旋转",tipClockwise:"向右旋转",tipZoomOut:"缩小",tipZoomIn:"放大",tipDownload:"下载",tipClose:"关闭(Esc)",tipOriginalSize:"缩放到原始尺寸"}};function qs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Zr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{const s=e.defaultWidth,a=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[a]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function Qr(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Cb(a,f=>f.test(s)):wb(a,f=>f.test(s));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(s.length);return{value:c,rest:u}}}function wb(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Cb(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Sb(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const a=t.slice(o.length);return{value:s,rest:a}}}function _b(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}let Eb={};function Rb(){return Eb}function Zc(e,t){var a,l,c,u,f,d,h,p;const n=Rb(),r=(p=(h=(u=(c=t==null?void 0:t.weekStartsOn)!=null?c:(l=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:l.weekStartsOn)!=null?u:n.weekStartsOn)!=null?h:(d=(f=n.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)!=null?p:0,o=_b(e),i=o.getDay(),s=(i<r?7:0)+i-r;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function Tb(e,t,n){const r=Zc(e,n),o=Zc(t,n);return+r==+o}const Pb={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},$b=(e,t,n)=>{let r;const o=Pb[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},Ob={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},kb={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Ib={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Ab={date:qs({formats:Ob,defaultWidth:"full"}),time:qs({formats:kb,defaultWidth:"full"}),dateTime:qs({formats:Ib,defaultWidth:"full"})};function Qc(e,t,n){const r="eeee p";return Tb(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const zb={lastWeek:Qc,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Qc,other:"PP p"},Mb=(e,t,n,r)=>{const o=zb[e];return typeof o=="function"?o(t,n,r):o},Bb={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Lb={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Db={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Fb={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Hb={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},jb={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Nb=(e,t)=>{const n=Number(e);switch(t==null?void 0:t.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},Wb={ordinalNumber:Nb,era:Zr({values:Bb,defaultWidth:"wide"}),quarter:Zr({values:Lb,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Zr({values:Db,defaultWidth:"wide"}),day:Zr({values:Fb,defaultWidth:"wide"}),dayPeriod:Zr({values:Hb,defaultWidth:"wide",formattingValues:jb,defaultFormattingWidth:"wide"})},Vb=/^(第\s*)?\d+(日|时|分|秒)?/i,Ub=/\d+/i,Kb={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Gb={any:[/^(前)/i,/^(公元)/i]},Yb={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},qb={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Xb={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Zb={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Qb={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Jb={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},e0={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},t0={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},n0={ordinalNumber:Sb({matchPattern:Vb,parsePattern:Ub,valueCallback:e=>parseInt(e,10)}),era:Qr({matchPatterns:Kb,defaultMatchWidth:"wide",parsePatterns:Gb,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:Yb,defaultMatchWidth:"wide",parsePatterns:qb,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qr({matchPatterns:Xb,defaultMatchWidth:"wide",parsePatterns:Zb,defaultParseWidth:"any"}),day:Qr({matchPatterns:Qb,defaultMatchWidth:"wide",parsePatterns:Jb,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:e0,defaultMatchWidth:"any",parsePatterns:t0,defaultParseWidth:"any"})},r0={code:"zh-CN",formatDistance:$b,formatLong:Ab,formatRelative:Mb,localize:Wb,match:n0,options:{weekStartsOn:1,firstWeekContainsDate:4}},o0={name:"zh-CN",locale:r0};var Nd=typeof global=="object"&&global&&global.Object===Object&&global,i0=typeof self=="object"&&self&&self.Object===Object&&self,Hr=Nd||i0||Function("return this")(),kr=Hr.Symbol,Wd=Object.prototype,s0=Wd.hasOwnProperty,a0=Wd.toString,Jr=kr?kr.toStringTag:void 0;function l0(e){var t=s0.call(e,Jr),n=e[Jr];try{e[Jr]=void 0;var r=!0}catch{}var o=a0.call(e);return r&&(t?e[Jr]=n:delete e[Jr]),o}var c0=Object.prototype,u0=c0.toString;function f0(e){return u0.call(e)}var d0="[object Null]",h0="[object Undefined]",Jc=kr?kr.toStringTag:void 0;function No(e){return e==null?e===void 0?h0:d0:Jc&&Jc in Object(e)?l0(e):f0(e)}function jr(e){return e!=null&&typeof e=="object"}var p0="[object Symbol]";function v0(e){return typeof e=="symbol"||jr(e)&&No(e)==p0}function g0(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 Ai=Array.isArray,eu=kr?kr.prototype:void 0,tu=eu?eu.toString:void 0;function Vd(e){if(typeof e=="string")return e;if(Ai(e))return g0(e,Vd)+"";if(v0(e))return tu?tu.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ud(e){return e}var m0="[object AsyncFunction]",b0="[object Function]",y0="[object GeneratorFunction]",x0="[object Proxy]";function ll(e){if(!cr(e))return!1;var t=No(e);return t==b0||t==y0||t==m0||t==x0}var Xs=Hr["__core-js_shared__"],nu=function(){var e=/[^.]+$/.exec(Xs&&Xs.keys&&Xs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function w0(e){return!!nu&&nu in e}var C0=Function.prototype,S0=C0.toString;function _0(e){if(e!=null){try{return S0.call(e)}catch{}try{return e+""}catch{}}return""}var E0=/[\\^$.*+?()[\]{}|]/g,R0=/^\[object .+?Constructor\]$/,T0=Function.prototype,P0=Object.prototype,$0=T0.toString,O0=P0.hasOwnProperty,k0=RegExp("^"+$0.call(O0).replace(E0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I0(e){if(!cr(e)||w0(e))return!1;var t=ll(e)?k0:R0;return t.test(_0(e))}function A0(e,t){return e==null?void 0:e[t]}function cl(e,t){var n=A0(e,t);return I0(n)?n:void 0}var ru=Object.create,z0=function(){function e(){}return function(t){if(!cr(t))return{};if(ru)return ru(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function M0(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 B0(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var L0=800,D0=16,F0=Date.now;function H0(e){var t=0,n=0;return function(){var r=F0(),o=D0-(r-n);if(n=r,o>0){if(++t>=L0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function j0(e){return function(){return e}}var zi=function(){try{var e=cl(Object,"defineProperty");return e({},"",{}),e}catch{}}(),N0=zi?function(e,t){return zi(e,"toString",{configurable:!0,enumerable:!1,value:j0(t),writable:!0})}:Ud,W0=H0(N0),V0=9007199254740991,U0=/^(?:0|[1-9]\d*)$/;function Kd(e,t){var n=typeof e;return t=t==null?V0:t,!!t&&(n=="number"||n!="symbol"&&U0.test(e))&&e>-1&&e%1==0&&e<t}function ul(e,t,n){t=="__proto__"&&zi?zi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function es(e,t){return e===t||e!==e&&t!==t}var K0=Object.prototype,G0=K0.hasOwnProperty;function Y0(e,t,n){var r=e[t];(!(G0.call(e,t)&&es(r,n))||n===void 0&&!(t in e))&&ul(e,t,n)}function q0(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),o?ul(n,a,l):Y0(n,a,l)}return n}var ou=Math.max;function X0(e,t,n){return t=ou(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ou(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(s),M0(e,this,a)}}function Z0(e,t){return W0(X0(e,t,Ud),e+"")}var Q0=9007199254740991;function Gd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q0}function fl(e){return e!=null&&Gd(e.length)&&!ll(e)}function J0(e,t,n){if(!cr(n))return!1;var r=typeof t;return(r=="number"?fl(n)&&Kd(t,n.length):r=="string"&&t in n)?es(n[t],e):!1}function ey(e){return Z0(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,s&&J0(n[0],n[1],s)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var a=n[r];a&&e(t,a,r,i)}return t})}var ty=Object.prototype;function Yd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ty;return e===n}function ny(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ry="[object Arguments]";function iu(e){return jr(e)&&No(e)==ry}var qd=Object.prototype,oy=qd.hasOwnProperty,iy=qd.propertyIsEnumerable,Sa=iu(function(){return arguments}())?iu:function(e){return jr(e)&&oy.call(e,"callee")&&!iy.call(e,"callee")};function sy(){return!1}var Xd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,su=Xd&&typeof module=="object"&&module&&!module.nodeType&&module,ay=su&&su.exports===Xd,au=ay?Hr.Buffer:void 0,ly=au?au.isBuffer:void 0,Zd=ly||sy,cy="[object Arguments]",uy="[object Array]",fy="[object Boolean]",dy="[object Date]",hy="[object Error]",py="[object Function]",vy="[object Map]",gy="[object Number]",my="[object Object]",by="[object RegExp]",yy="[object Set]",xy="[object String]",wy="[object WeakMap]",Cy="[object ArrayBuffer]",Sy="[object DataView]",_y="[object Float32Array]",Ey="[object Float64Array]",Ry="[object Int8Array]",Ty="[object Int16Array]",Py="[object Int32Array]",$y="[object Uint8Array]",Oy="[object Uint8ClampedArray]",ky="[object Uint16Array]",Iy="[object Uint32Array]",Xe={};Xe[_y]=Xe[Ey]=Xe[Ry]=Xe[Ty]=Xe[Py]=Xe[$y]=Xe[Oy]=Xe[ky]=Xe[Iy]=!0;Xe[cy]=Xe[uy]=Xe[Cy]=Xe[fy]=Xe[Sy]=Xe[dy]=Xe[hy]=Xe[py]=Xe[vy]=Xe[gy]=Xe[my]=Xe[by]=Xe[yy]=Xe[xy]=Xe[wy]=!1;function Ay(e){return jr(e)&&Gd(e.length)&&!!Xe[No(e)]}function zy(e){return function(t){return e(t)}}var Qd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vo=Qd&&typeof module=="object"&&module&&!module.nodeType&&module,My=vo&&vo.exports===Qd,Zs=My&&Nd.process,lu=function(){try{var e=vo&&vo.require&&vo.require("util").types;return e||Zs&&Zs.binding&&Zs.binding("util")}catch{}}(),cu=lu&&lu.isTypedArray,Jd=cu?zy(cu):Ay,By=Object.prototype,Ly=By.hasOwnProperty;function Dy(e,t){var n=Ai(e),r=!n&&Sa(e),o=!n&&!r&&Zd(e),i=!n&&!r&&!o&&Jd(e),s=n||r||o||i,a=s?ny(e.length,String):[],l=a.length;for(var c in e)(t||Ly.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Kd(c,l)))&&a.push(c);return a}function Fy(e,t){return function(n){return e(t(n))}}function Hy(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var jy=Object.prototype,Ny=jy.hasOwnProperty;function Wy(e){if(!cr(e))return Hy(e);var t=Yd(e),n=[];for(var r in e)r=="constructor"&&(t||!Ny.call(e,r))||n.push(r);return n}function eh(e){return fl(e)?Dy(e,!0):Wy(e)}var Ao=cl(Object,"create");function Vy(){this.__data__=Ao?Ao(null):{},this.size=0}function Uy(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ky="__lodash_hash_undefined__",Gy=Object.prototype,Yy=Gy.hasOwnProperty;function qy(e){var t=this.__data__;if(Ao){var n=t[e];return n===Ky?void 0:n}return Yy.call(t,e)?t[e]:void 0}var Xy=Object.prototype,Zy=Xy.hasOwnProperty;function Qy(e){var t=this.__data__;return Ao?t[e]!==void 0:Zy.call(t,e)}var Jy="__lodash_hash_undefined__";function ex(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ao&&t===void 0?Jy:t,this}function sr(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])}}sr.prototype.clear=Vy;sr.prototype.delete=Uy;sr.prototype.get=qy;sr.prototype.has=Qy;sr.prototype.set=ex;function tx(){this.__data__=[],this.size=0}function ts(e,t){for(var n=e.length;n--;)if(es(e[n][0],t))return n;return-1}var nx=Array.prototype,rx=nx.splice;function ox(e){var t=this.__data__,n=ts(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rx.call(t,n,1),--this.size,!0}function ix(e){var t=this.__data__,n=ts(t,e);return n<0?void 0:t[n][1]}function sx(e){return ts(this.__data__,e)>-1}function ax(e,t){var n=this.__data__,r=ts(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function En(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])}}En.prototype.clear=tx;En.prototype.delete=ox;En.prototype.get=ix;En.prototype.has=sx;En.prototype.set=ax;var th=cl(Hr,"Map");function lx(){this.size=0,this.__data__={hash:new sr,map:new(th||En),string:new sr}}function cx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ns(e,t){var n=e.__data__;return cx(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ux(e){var t=ns(this,e).delete(e);return this.size-=t?1:0,t}function fx(e){return ns(this,e).get(e)}function dx(e){return ns(this,e).has(e)}function hx(e,t){var n=ns(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Nr(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])}}Nr.prototype.clear=lx;Nr.prototype.delete=ux;Nr.prototype.get=fx;Nr.prototype.has=dx;Nr.prototype.set=hx;function px(e){return e==null?"":Vd(e)}var nh=Fy(Object.getPrototypeOf,Object),vx="[object Object]",gx=Function.prototype,mx=Object.prototype,rh=gx.toString,bx=mx.hasOwnProperty,yx=rh.call(Object);function xx(e){if(!jr(e)||No(e)!=vx)return!1;var t=nh(e);if(t===null)return!0;var n=bx.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rh.call(n)==yx}function wx(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 Cx(e,t,n){var r=e.length;return n=n===void 0?r:n,wx(e,t,n)}var Sx="\\ud800-\\udfff",_x="\\u0300-\\u036f",Ex="\\ufe20-\\ufe2f",Rx="\\u20d0-\\u20ff",Tx=_x+Ex+Rx,Px="\\ufe0e\\ufe0f",$x="\\u200d",Ox=RegExp("["+$x+Sx+Tx+Px+"]");function oh(e){return Ox.test(e)}function kx(e){return e.split("")}var ih="\\ud800-\\udfff",Ix="\\u0300-\\u036f",Ax="\\ufe20-\\ufe2f",zx="\\u20d0-\\u20ff",Mx=Ix+Ax+zx,Bx="\\ufe0e\\ufe0f",Lx="["+ih+"]",_a="["+Mx+"]",Ea="\\ud83c[\\udffb-\\udfff]",Dx="(?:"+_a+"|"+Ea+")",sh="[^"+ih+"]",ah="(?:\\ud83c[\\udde6-\\uddff]){2}",lh="[\\ud800-\\udbff][\\udc00-\\udfff]",Fx="\\u200d",ch=Dx+"?",uh="["+Bx+"]?",Hx="(?:"+Fx+"(?:"+[sh,ah,lh].join("|")+")"+uh+ch+")*",jx=uh+ch+Hx,Nx="(?:"+[sh+_a+"?",_a,ah,lh,Lx].join("|")+")",Wx=RegExp(Ea+"(?="+Ea+")|"+Nx+jx,"g");function Vx(e){return e.match(Wx)||[]}function Ux(e){return oh(e)?Vx(e):kx(e)}function Kx(e){return function(t){t=px(t);var n=oh(t)?Ux(t):void 0,r=n?n[0]:t.charAt(0),o=n?Cx(n,1).join(""):t.slice(1);return r[e]()+o}}var Gx=Kx("toUpperCase");function Yx(){this.__data__=new En,this.size=0}function qx(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Xx(e){return this.__data__.get(e)}function Zx(e){return this.__data__.has(e)}var Qx=200;function Jx(e,t){var n=this.__data__;if(n instanceof En){var r=n.__data__;if(!th||r.length<Qx-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nr(r)}return n.set(e,t),this.size=n.size,this}function Wr(e){var t=this.__data__=new En(e);this.size=t.size}Wr.prototype.clear=Yx;Wr.prototype.delete=qx;Wr.prototype.get=Xx;Wr.prototype.has=Zx;Wr.prototype.set=Jx;var fh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,uu=fh&&typeof module=="object"&&module&&!module.nodeType&&module,ew=uu&&uu.exports===fh,fu=ew?Hr.Buffer:void 0;fu&&fu.allocUnsafe;function tw(e,t){return e.slice()}var du=Hr.Uint8Array;function nw(e){var t=new e.constructor(e.byteLength);return new du(t).set(new du(e)),t}function rw(e,t){var n=nw(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}function ow(e){return typeof e.constructor=="function"&&!Yd(e)?z0(nh(e)):{}}function iw(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[++o];if(n(i[l],l,i)===!1)break}return t}}var sw=iw();function Ra(e,t,n){(n!==void 0&&!es(e[t],n)||n===void 0&&!(t in e))&&ul(e,t,n)}function aw(e){return jr(e)&&fl(e)}function Ta(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function lw(e){return q0(e,eh(e))}function cw(e,t,n,r,o,i,s){var a=Ta(e,n),l=Ta(t,n),c=s.get(l);if(c){Ra(e,n,c);return}var u=i?i(a,l,n+"",e,t,s):void 0,f=u===void 0;if(f){var d=Ai(l),h=!d&&Zd(l),p=!d&&!h&&Jd(l);u=l,d||h||p?Ai(a)?u=a:aw(a)?u=B0(a):h?(f=!1,u=tw(l)):p?(f=!1,u=rw(l)):u=[]:xx(l)||Sa(l)?(u=a,Sa(a)?u=lw(a):(!cr(a)||ll(a))&&(u=ow(l))):f=!1}f&&(s.set(l,u),o(u,l,r,i,s),s.delete(l)),Ra(e,n,u)}function dh(e,t,n,r,o){e!==t&&sw(t,function(i,s){if(o||(o=new Wr),cr(i))cw(e,t,s,n,dh,r,o);else{var a=r?r(Ta(e,s),i,s+"",e,t,o):void 0;a===void 0&&(a=i),Ra(e,s,a)}},eh)}var oo=ey(function(e,t,n){dh(e,t,n)});const zo="naive-ui-style";function ur(e,t,n){if(!t)return;const r=Zi(),o=Q(()=>{const{value:a}=t;if(!a)return;const l=a[e];if(l)return l}),i=Oe(wn,null),s=()=>{Ho(()=>{const{value:a}=n,l=`${a}${e}Rtl`;if(Lp(l,r))return;const{value:c}=o;c&&c.style.mount({id:l,head:!0,anchorMetaName:zo,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i==null?void 0:i.styleMountTarget})})};return r?s():ar(s),o}const fr={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:uw,fontFamily:fw,lineHeight:dw}=fr,hh=K("body",`
|
|
32
|
+
margin: 0;
|
|
33
|
+
font-size: ${uw};
|
|
34
|
+
font-family: ${fw};
|
|
35
|
+
line-height: ${dw};
|
|
36
|
+
-webkit-text-size-adjust: 100%;
|
|
37
|
+
-webkit-tap-highlight-color: transparent;
|
|
38
|
+
`,[K("input",`
|
|
39
|
+
font-family: inherit;
|
|
40
|
+
font-size: inherit;
|
|
41
|
+
`)]);function rs(e,t,n){if(!t)return;const r=Zi(),o=Oe(wn,null),i=()=>{const s=n.value;t.mount({id:s===void 0?e:s+e,head:!0,anchorMetaName:zo,props:{bPrefix:s?`.${s}-`:void 0},ssr:r,parent:o==null?void 0:o.styleMountTarget}),o!=null&&o.preflightStyleDisabled||hh.mount({id:"n-global",head:!0,anchorMetaName:zo,ssr:r,parent:o==null?void 0:o.styleMountTarget})};r?i():ar(i)}function E_(e){return e}function ht(e,t,n,r,o,i){const s=Zi(),a=Oe(wn,null);if(n){const c=()=>{const u=i==null?void 0:i.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:zo,ssr:s,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||hh.mount({id:"n-global",head:!0,anchorMetaName:zo,ssr:s,parent:a==null?void 0:a.styleMountTarget})};s?c():ar(c)}return Q(()=>{var c;const{theme:{common:u,self:f,peers:d={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=o,{common:m,peers:C}=h,{common:w=void 0,[e]:{common:E=void 0,self:B=void 0,peers:k={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:_=void 0,[e]:R={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:v,peers:y={}}=R,T=oo({},u||E||w||r.common,_,v,m),L=oo((c=f||B||r.self)===null||c===void 0?void 0:c(T),p,R,h);return{common:T,self:L,peers:oo({},r.peers,k,d),peerOverrides:oo({},p.peers,y,C)}})}ht.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const hw=se("base-icon",`
|
|
42
|
+
height: 1em;
|
|
43
|
+
width: 1em;
|
|
44
|
+
line-height: 1em;
|
|
45
|
+
text-align: center;
|
|
46
|
+
display: inline-block;
|
|
47
|
+
position: relative;
|
|
48
|
+
fill: currentColor;
|
|
49
|
+
transform: translateZ(0);
|
|
50
|
+
`,[K("svg",`
|
|
51
|
+
height: 1em;
|
|
52
|
+
width: 1em;
|
|
53
|
+
`)]),os=Re({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){rs("-base-icon",hw,Mt(e,"clsPrefix"))},render(){return I("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)}}),is=Re({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=ol();return()=>I(Fn,{name:"icon-switch-transition",appear:n.value},t)}});function Wo(e,t){const n=Re({render(){return t()}});return Re({name:Gx(e),setup(){var r;const o=(r=Oe(wn,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const s=(i=o==null?void 0:o.value)===null||i===void 0?void 0:i[e];return s?s():I(n,null)}}})}const pw=Wo("close",()=>I("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},I("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},I("g",{fill:"currentColor","fill-rule":"nonzero"},I("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),dl=Wo("error",()=>I("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},I("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},I("g",{"fill-rule":"nonzero"},I("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Mi=Wo("info",()=>I("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},I("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},I("g",{"fill-rule":"nonzero"},I("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),hl=Wo("success",()=>I("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},I("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},I("g",{"fill-rule":"nonzero"},I("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),pl=Wo("warning",()=>I("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},I("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},I("g",{"fill-rule":"nonzero"},I("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),{cubicBezierEaseInOut:vw}=fr;function Mo({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${vw} !important`}={}){return[K("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),K("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),K("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const gw=se("base-close",`
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
color: var(--n-close-icon-color);
|
|
60
|
+
border-radius: var(--n-close-border-radius);
|
|
61
|
+
height: var(--n-close-size);
|
|
62
|
+
width: var(--n-close-size);
|
|
63
|
+
font-size: var(--n-close-icon-size);
|
|
64
|
+
outline: none;
|
|
65
|
+
border: none;
|
|
66
|
+
position: relative;
|
|
67
|
+
padding: 0;
|
|
68
|
+
`,[ue("absolute",`
|
|
69
|
+
height: var(--n-close-icon-size);
|
|
70
|
+
width: var(--n-close-icon-size);
|
|
71
|
+
`),K("&::before",`
|
|
72
|
+
content: "";
|
|
73
|
+
position: absolute;
|
|
74
|
+
width: var(--n-close-size);
|
|
75
|
+
height: var(--n-close-size);
|
|
76
|
+
left: 50%;
|
|
77
|
+
top: 50%;
|
|
78
|
+
transform: translateY(-50%) translateX(-50%);
|
|
79
|
+
transition: inherit;
|
|
80
|
+
border-radius: inherit;
|
|
81
|
+
`),sa("disabled",[K("&:hover",`
|
|
82
|
+
color: var(--n-close-icon-color-hover);
|
|
83
|
+
`),K("&:hover::before",`
|
|
84
|
+
background-color: var(--n-close-color-hover);
|
|
85
|
+
`),K("&:focus::before",`
|
|
86
|
+
background-color: var(--n-close-color-hover);
|
|
87
|
+
`),K("&:active",`
|
|
88
|
+
color: var(--n-close-icon-color-pressed);
|
|
89
|
+
`),K("&:active::before",`
|
|
90
|
+
background-color: var(--n-close-color-pressed);
|
|
91
|
+
`)]),ue("disabled",`
|
|
92
|
+
cursor: not-allowed;
|
|
93
|
+
color: var(--n-close-icon-color-disabled);
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
`),ue("round",[K("&::before",`
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
`)])]),ss=Re({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return rs("-base-close",gw,Mt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return I(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},I(os,{clsPrefix:t},{default:()=>I(pw,null)}))}}}),ph=Re({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function r(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:l}=e;l&&l()}function o(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:l}=e;l&&l()}function i(a){if(a.style.transition="none",e.width){const l=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${l}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const l=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${l}px`}a.offsetWidth}function s(a){var l;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(l=e.onAfterEnter)===null||l===void 0||l.call(e)}return()=>{const{group:a,width:l,appear:c,mode:u}=e,f=a?um:Fn,d={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return a||(d.mode=u),I(f,d,t)}}}),mw=K([K("@keyframes rotator",`
|
|
98
|
+
0% {
|
|
99
|
+
-webkit-transform: rotate(0deg);
|
|
100
|
+
transform: rotate(0deg);
|
|
101
|
+
}
|
|
102
|
+
100% {
|
|
103
|
+
-webkit-transform: rotate(360deg);
|
|
104
|
+
transform: rotate(360deg);
|
|
105
|
+
}`),se("base-loading",`
|
|
106
|
+
position: relative;
|
|
107
|
+
line-height: 0;
|
|
108
|
+
width: 1em;
|
|
109
|
+
height: 1em;
|
|
110
|
+
`,[le("transition-wrapper",`
|
|
111
|
+
position: absolute;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
`,[Mo()]),le("placeholder",`
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 50%;
|
|
117
|
+
top: 50%;
|
|
118
|
+
transform: translateX(-50%) translateY(-50%);
|
|
119
|
+
`,[Mo({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),le("container",`
|
|
120
|
+
animation: rotator 3s linear infinite both;
|
|
121
|
+
`,[le("icon",`
|
|
122
|
+
height: 1em;
|
|
123
|
+
width: 1em;
|
|
124
|
+
`)])])]),Qs="1.6s",bw={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},vh=Re({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},bw),setup(e){rs("-base-loading",mw,Mt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return I("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},I(is,null,{default:()=>this.show?I("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},I("div",{class:`${e}-base-loading__container`},I("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},I("g",null,I("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:Qs,fill:"freeze",repeatCount:"indefinite"}),I("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},I("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:Qs,fill:"freeze",repeatCount:"indefinite"}),I("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Qs,fill:"freeze",repeatCount:"indefinite"})))))):I("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:hu}=fr;function vl({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=hu,leaveCubicBezier:o=hu}={}){return[K(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),K(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),K(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),K(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const xe={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",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",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"},yw=nr(xe.neutralBase),gh=nr(xe.neutralInvertBase),xw=`rgba(${gh.slice(0,3).join(", ")}, `;function pu(e){return`${xw+String(e)})`}function wt(e){const t=Array.from(gh);return t[3]=Number(e),Ba(yw,t)}const Rn=Object.assign(Object.assign({name:"common"},fr),{baseColor:xe.neutralBase,primaryColor:xe.primaryDefault,primaryColorHover:xe.primaryHover,primaryColorPressed:xe.primaryActive,primaryColorSuppl:xe.primarySuppl,infoColor:xe.infoDefault,infoColorHover:xe.infoHover,infoColorPressed:xe.infoActive,infoColorSuppl:xe.infoSuppl,successColor:xe.successDefault,successColorHover:xe.successHover,successColorPressed:xe.successActive,successColorSuppl:xe.successSuppl,warningColor:xe.warningDefault,warningColorHover:xe.warningHover,warningColorPressed:xe.warningActive,warningColorSuppl:xe.warningSuppl,errorColor:xe.errorDefault,errorColorHover:xe.errorHover,errorColorPressed:xe.errorActive,errorColorSuppl:xe.errorSuppl,textColorBase:xe.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:wt(xe.alpha4),placeholderColor:wt(xe.alpha4),placeholderColorDisabled:wt(xe.alpha5),iconColor:wt(xe.alpha4),iconColorHover:qo(wt(xe.alpha4),{lightness:.75}),iconColorPressed:qo(wt(xe.alpha4),{lightness:.9}),iconColorDisabled:wt(xe.alpha5),opacity1:xe.alpha1,opacity2:xe.alpha2,opacity3:xe.alpha3,opacity4:xe.alpha4,opacity5:xe.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:wt(Number(xe.alphaClose)),closeIconColorHover:wt(Number(xe.alphaClose)),closeIconColorPressed:wt(Number(xe.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:wt(xe.alpha4),clearColorHover:qo(wt(xe.alpha4),{lightness:.75}),clearColorPressed:qo(wt(xe.alpha4),{lightness:.9}),scrollbarColor:pu(xe.alphaScrollbar),scrollbarColorHover:pu(xe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:wt(xe.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:xe.neutralPopover,tableColor:xe.neutralCard,cardColor:xe.neutralCard,modalColor:xe.neutralModal,bodyColor:xe.neutralBody,tagColor:"#eee",avatarColor:wt(xe.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:wt(xe.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:xe.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)"}),ww={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Cw(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},ww),{height:r,width:o,borderRadius:i,color:t,colorHover:n})}const gl={name:"Scrollbar",common:Rn,self:Cw},Sw=se("scrollbar",`
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
position: relative;
|
|
127
|
+
z-index: auto;
|
|
128
|
+
height: 100%;
|
|
129
|
+
width: 100%;
|
|
130
|
+
`,[K(">",[se("scrollbar-container",`
|
|
131
|
+
width: 100%;
|
|
132
|
+
overflow: scroll;
|
|
133
|
+
height: 100%;
|
|
134
|
+
min-height: inherit;
|
|
135
|
+
max-height: inherit;
|
|
136
|
+
scrollbar-width: none;
|
|
137
|
+
`,[K("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
138
|
+
width: 0;
|
|
139
|
+
height: 0;
|
|
140
|
+
display: none;
|
|
141
|
+
`),K(">",[se("scrollbar-content",`
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
min-width: 100%;
|
|
144
|
+
`)])])]),K(">, +",[se("scrollbar-rail",`
|
|
145
|
+
position: absolute;
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
user-select: none;
|
|
148
|
+
background: var(--n-scrollbar-rail-color);
|
|
149
|
+
-webkit-user-select: none;
|
|
150
|
+
`,[ue("horizontal",`
|
|
151
|
+
height: var(--n-scrollbar-height);
|
|
152
|
+
`,[K(">",[le("scrollbar",`
|
|
153
|
+
height: var(--n-scrollbar-height);
|
|
154
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
155
|
+
right: 0;
|
|
156
|
+
`)])]),ue("horizontal--top",`
|
|
157
|
+
top: var(--n-scrollbar-rail-top-horizontal-top);
|
|
158
|
+
right: var(--n-scrollbar-rail-right-horizontal-top);
|
|
159
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
|
|
160
|
+
left: var(--n-scrollbar-rail-left-horizontal-top);
|
|
161
|
+
`),ue("horizontal--bottom",`
|
|
162
|
+
top: var(--n-scrollbar-rail-top-horizontal-bottom);
|
|
163
|
+
right: var(--n-scrollbar-rail-right-horizontal-bottom);
|
|
164
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
|
|
165
|
+
left: var(--n-scrollbar-rail-left-horizontal-bottom);
|
|
166
|
+
`),ue("vertical",`
|
|
167
|
+
width: var(--n-scrollbar-width);
|
|
168
|
+
`,[K(">",[le("scrollbar",`
|
|
169
|
+
width: var(--n-scrollbar-width);
|
|
170
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
171
|
+
bottom: 0;
|
|
172
|
+
`)])]),ue("vertical--left",`
|
|
173
|
+
top: var(--n-scrollbar-rail-top-vertical-left);
|
|
174
|
+
right: var(--n-scrollbar-rail-right-vertical-left);
|
|
175
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
|
|
176
|
+
left: var(--n-scrollbar-rail-left-vertical-left);
|
|
177
|
+
`),ue("vertical--right",`
|
|
178
|
+
top: var(--n-scrollbar-rail-top-vertical-right);
|
|
179
|
+
right: var(--n-scrollbar-rail-right-vertical-right);
|
|
180
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
|
|
181
|
+
left: var(--n-scrollbar-rail-left-vertical-right);
|
|
182
|
+
`),ue("disabled",[K(">",[le("scrollbar","pointer-events: none;")])]),K(">",[le("scrollbar",`
|
|
183
|
+
z-index: 1;
|
|
184
|
+
position: absolute;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
pointer-events: all;
|
|
187
|
+
background-color: var(--n-scrollbar-color);
|
|
188
|
+
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
189
|
+
`,[vl(),K("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),_w=Object.assign(Object.assign({},ht.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),ml=Re({name:"Scrollbar",props:_w,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ht(e),o=ur("Scrollbar",r,t),i=te(null),s=te(null),a=te(null),l=te(null),c=te(null),u=te(null),f=te(null),d=te(null),h=te(null),p=te(null),m=te(null),C=te(0),w=te(0),E=te(!1),B=te(!1);let k=!1,_=!1,R,v,y=0,T=0,L=0,D=0;const M=Om(),Y=ht("Scrollbar","-scrollbar",Sw,gl,e,t),ce=Q(()=>{const{value:X}=d,{value:he}=u,{value:Se}=p;return X===null||he===null||Se===null?0:Math.min(X,Se*X/he+Ml(Y.value.self.width)*1.5)}),ye=Q(()=>`${ce.value}px`),fe=Q(()=>{const{value:X}=h,{value:he}=f,{value:Se}=m;return X===null||he===null||Se===null?0:Se*X/he+Ml(Y.value.self.height)*1.5}),q=Q(()=>`${fe.value}px`),pe=Q(()=>{const{value:X}=d,{value:he}=C,{value:Se}=u,{value:Ve}=p;if(X===null||Se===null||Ve===null)return 0;{const Ne=Se-X;return Ne?he/Ne*(Ve-ce.value):0}}),ke=Q(()=>`${pe.value}px`),Me=Q(()=>{const{value:X}=h,{value:he}=w,{value:Se}=f,{value:Ve}=m;if(X===null||Se===null||Ve===null)return 0;{const Ne=Se-X;return Ne?he/Ne*(Ve-fe.value):0}}),Pe=Q(()=>`${Me.value}px`),Be=Q(()=>{const{value:X}=d,{value:he}=u;return X!==null&&he!==null&&he>X}),rt=Q(()=>{const{value:X}=h,{value:he}=f;return X!==null&&he!==null&&he>X}),ot=Q(()=>{const{trigger:X}=e;return X==="none"||E.value}),kt=Q(()=>{const{trigger:X}=e;return X==="none"||B.value}),_e=Q(()=>{const{container:X}=e;return X?X():s.value}),H=Q(()=>{const{content:X}=e;return X?X():a.value}),ie=(X,he)=>{if(!e.scrollable)return;if(typeof X=="number"){S(X,he!=null?he:0,0,!1,"auto");return}const{left:Se,top:Ve,index:Ne,elSize:xt,position:Lt,behavior:Ke,el:It,debounce:rn=!0}=X;(Se!==void 0||Ve!==void 0)&&S(Se!=null?Se:0,Ve!=null?Ve:0,0,!1,Ke),It!==void 0?S(0,It.offsetTop,It.offsetHeight,rn,Ke):Ne!==void 0&&xt!==void 0?S(0,Ne*xt,xt,rn,Ke):Lt==="bottom"?S(0,Number.MAX_SAFE_INTEGER,0,!1,Ke):Lt==="top"&&S(0,0,0,!1,Ke)},U=Lm(()=>{e.container||ie({top:C.value,left:w.value})}),de=()=>{U.isDeactivated||be()},Ie=X=>{if(U.isDeactivated)return;const{onResize:he}=e;he&&he(X),be()},x=(X,he)=>{if(!e.scrollable)return;const{value:Se}=_e;Se&&(typeof X=="object"?Se.scrollBy(X):Se.scrollBy(X,he||0))};function S(X,he,Se,Ve,Ne){const{value:xt}=_e;if(xt){if(Ve){const{scrollTop:Lt,offsetHeight:Ke}=xt;if(he>Lt){he+Se<=Lt+Ke||xt.scrollTo({left:X,top:he+Se-Ke,behavior:Ne});return}}xt.scrollTo({left:X,top:he,behavior:Ne})}}function z(){ne(),G(),be()}function F(){V()}function V(){j(),oe()}function j(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{B.value=!1},e.duration)}function oe(){R!==void 0&&window.clearTimeout(R),R=window.setTimeout(()=>{E.value=!1},e.duration)}function ne(){R!==void 0&&window.clearTimeout(R),E.value=!0}function G(){v!==void 0&&window.clearTimeout(v),B.value=!0}function W(X){const{onScroll:he}=e;he&&he(X),ve()}function ve(){const{value:X}=_e;X&&(C.value=X.scrollTop,w.value=X.scrollLeft*(o!=null&&o.value?-1:1))}function ae(){const{value:X}=H;X&&(u.value=X.offsetHeight,f.value=X.offsetWidth);const{value:he}=_e;he&&(d.value=he.offsetHeight,h.value=he.offsetWidth);const{value:Se}=c,{value:Ve}=l;Se&&(m.value=Se.offsetWidth),Ve&&(p.value=Ve.offsetHeight)}function me(){const{value:X}=_e;X&&(C.value=X.scrollTop,w.value=X.scrollLeft*(o!=null&&o.value?-1:1),d.value=X.offsetHeight,h.value=X.offsetWidth,u.value=X.scrollHeight,f.value=X.scrollWidth);const{value:he}=c,{value:Se}=l;he&&(m.value=he.offsetWidth),Se&&(p.value=Se.offsetHeight)}function be(){e.scrollable&&(e.useUnifiedContainer?me():(ae(),ve()))}function Te(X){var he;return!(!((he=i.value)===null||he===void 0)&&he.contains(Ma(X)))}function Le(X){X.preventDefault(),X.stopPropagation(),_=!0,gt("mousemove",window,ze,!0),gt("mouseup",window,at,!0),T=w.value,L=o!=null&&o.value?window.innerWidth-X.clientX:X.clientX}function ze(X){if(!_)return;R!==void 0&&window.clearTimeout(R),v!==void 0&&window.clearTimeout(v);const{value:he}=h,{value:Se}=f,{value:Ve}=fe;if(he===null||Se===null)return;const xt=(o!=null&&o.value?window.innerWidth-X.clientX-L:X.clientX-L)*(Se-he)/(he-Ve),Lt=Se-he;let Ke=T+xt;Ke=Math.min(Lt,Ke),Ke=Math.max(Ke,0);const{value:It}=_e;if(It){It.scrollLeft=Ke*(o!=null&&o.value?-1:1);const{internalOnUpdateScrollLeft:rn}=e;rn&&rn(Ke)}}function at(X){X.preventDefault(),X.stopPropagation(),Et("mousemove",window,ze,!0),Et("mouseup",window,at,!0),_=!1,be(),Te(X)&&V()}function lt(X){X.preventDefault(),X.stopPropagation(),k=!0,gt("mousemove",window,mt,!0),gt("mouseup",window,bt,!0),y=C.value,D=X.clientY}function mt(X){if(!k)return;R!==void 0&&window.clearTimeout(R),v!==void 0&&window.clearTimeout(v);const{value:he}=d,{value:Se}=u,{value:Ve}=ce;if(he===null||Se===null)return;const xt=(X.clientY-D)*(Se-he)/(he-Ve),Lt=Se-he;let Ke=y+xt;Ke=Math.min(Lt,Ke),Ke=Math.max(Ke,0);const{value:It}=_e;It&&(It.scrollTop=Ke)}function bt(X){X.preventDefault(),X.stopPropagation(),Et("mousemove",window,mt,!0),Et("mouseup",window,bt,!0),k=!1,be(),Te(X)&&V()}Ho(()=>{const{value:X}=rt,{value:he}=Be,{value:Se}=t,{value:Ve}=c,{value:Ne}=l;Ve&&(X?Ve.classList.remove(`${Se}-scrollbar-rail--disabled`):Ve.classList.add(`${Se}-scrollbar-rail--disabled`)),Ne&&(he?Ne.classList.remove(`${Se}-scrollbar-rail--disabled`):Ne.classList.add(`${Se}-scrollbar-rail--disabled`))}),qt(()=>{e.container||be()}),nn(()=>{R!==void 0&&window.clearTimeout(R),v!==void 0&&window.clearTimeout(v),Et("mousemove",window,mt,!0),Et("mouseup",window,bt,!0)});const Xt=Q(()=>{const{common:{cubicBezierEaseInOut:X},self:{color:he,colorHover:Se,height:Ve,width:Ne,borderRadius:xt,railInsetHorizontalTop:Lt,railInsetHorizontalBottom:Ke,railInsetVerticalRight:It,railInsetVerticalLeft:rn,railColor:ds}}=Y.value,{top:hs,right:ps,bottom:vs,left:gs}=Bn(Lt),{top:ms,right:bs,bottom:ys,left:Uo}=Bn(Ke),{top:xs,right:ws,bottom:Cs,left:Ss}=Bn(o!=null&&o.value?Gc(It):It),{top:_s,right:Es,bottom:Rs,left:Ts}=Bn(o!=null&&o.value?Gc(rn):rn);return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":he,"--n-scrollbar-color-hover":Se,"--n-scrollbar-border-radius":xt,"--n-scrollbar-width":Ne,"--n-scrollbar-height":Ve,"--n-scrollbar-rail-top-horizontal-top":hs,"--n-scrollbar-rail-right-horizontal-top":ps,"--n-scrollbar-rail-bottom-horizontal-top":vs,"--n-scrollbar-rail-left-horizontal-top":gs,"--n-scrollbar-rail-top-horizontal-bottom":ms,"--n-scrollbar-rail-right-horizontal-bottom":bs,"--n-scrollbar-rail-bottom-horizontal-bottom":ys,"--n-scrollbar-rail-left-horizontal-bottom":Uo,"--n-scrollbar-rail-top-vertical-right":xs,"--n-scrollbar-rail-right-vertical-right":ws,"--n-scrollbar-rail-bottom-vertical-right":Cs,"--n-scrollbar-rail-left-vertical-right":Ss,"--n-scrollbar-rail-top-vertical-left":_s,"--n-scrollbar-rail-right-vertical-left":Es,"--n-scrollbar-rail-bottom-vertical-left":Rs,"--n-scrollbar-rail-left-vertical-left":Ts,"--n-scrollbar-rail-color":ds}}),Bt=n?_n("scrollbar",void 0,Xt,e):void 0;return Object.assign(Object.assign({},{scrollTo:ie,scrollBy:x,sync:be,syncUnifiedContainer:me,handleMouseEnterWrapper:z,handleMouseLeaveWrapper:F}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:C,wrapperRef:i,containerRef:s,contentRef:a,yRailRef:l,xRailRef:c,needYBar:Be,needXBar:rt,yBarSizePx:ye,xBarSizePx:q,yBarTopPx:ke,xBarLeftPx:Pe,isShowXBar:ot,isShowYBar:kt,isIos:M,handleScroll:W,handleContentResize:de,handleContainerResize:Ie,handleYScrollMouseDown:lt,handleXScrollMouseDown:Le,cssVars:n?void 0:Xt,themeClass:Bt==null?void 0:Bt.themeClass,onRender:Bt==null?void 0:Bt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i,yPlacement:s,xPlacement:a,xScrollable:l}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(h,p)=>I("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${s}`,h],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},I(c?qc:Fn,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?I("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var h,p;return(h=this.onRender)===null||h===void 0||h.call(this),I("div",tl(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?(p=t.default)===null||p===void 0?void 0:p.call(t):I("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},I(Uc,{onResize:this.handleContentResize},{default:()=>I("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),l&&I("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${a}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},I(c?qc:Fn,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?I("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}))])},d=this.container?f():I(Uc,{onResize:this.handleContainerResize},{default:f});return i?I(Ye,null,d,u(this.themeClass,this.cssVars)):d}}),R_=ml,{cubicBezierEaseIn:vu,cubicBezierEaseOut:gu}=fr;function Ew({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[K("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${vu}, transform ${t} ${vu} ${o&&`,${o}`}`}),K("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${gu}, transform ${t} ${gu} ${o&&`,${o}`}`}),K("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),K("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const{cubicBezierEaseInOut:Pn}=fr;function Rw({duration:e=".2s",delay:t=".1s"}={}){return[K("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),K("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
|
|
190
|
+
opacity: 0!important;
|
|
191
|
+
margin-left: 0!important;
|
|
192
|
+
margin-right: 0!important;
|
|
193
|
+
`),K("&.fade-in-width-expand-transition-leave-active",`
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
transition:
|
|
196
|
+
opacity ${e} ${Pn},
|
|
197
|
+
max-width ${e} ${Pn} ${t},
|
|
198
|
+
margin-left ${e} ${Pn} ${t},
|
|
199
|
+
margin-right ${e} ${Pn} ${t};
|
|
200
|
+
`),K("&.fade-in-width-expand-transition-enter-active",`
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
transition:
|
|
203
|
+
opacity ${e} ${Pn} ${t},
|
|
204
|
+
max-width ${e} ${Pn},
|
|
205
|
+
margin-left ${e} ${Pn},
|
|
206
|
+
margin-right ${e} ${Pn};
|
|
207
|
+
`)]}const Tw=se("base-wave",`
|
|
208
|
+
position: absolute;
|
|
209
|
+
left: 0;
|
|
210
|
+
right: 0;
|
|
211
|
+
top: 0;
|
|
212
|
+
bottom: 0;
|
|
213
|
+
border-radius: inherit;
|
|
214
|
+
`),Pw=Re({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){rs("-base-wave",Tw,Mt(e,"clsPrefix"));const t=te(null),n=te(!1);let r=null;return nn(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Rt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return I("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:an,cubicBezierEaseOut:$w,cubicBezierEaseIn:Ow}=fr;function kw({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:s=void 0,reverse:a=!1}={}){const l=a?"leave":"enter",c=a?"enter":"leave";return[K(`&.fade-in-height-expand-transition-${c}-from,
|
|
215
|
+
&.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),K(`&.fade-in-height-expand-transition-${c}-to,
|
|
216
|
+
&.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),K(`&.fade-in-height-expand-transition-${c}-active`,`
|
|
217
|
+
overflow: ${e};
|
|
218
|
+
transition:
|
|
219
|
+
max-height ${t} ${an} ${r},
|
|
220
|
+
opacity ${t} ${$w} ${r},
|
|
221
|
+
margin-top ${t} ${an} ${r},
|
|
222
|
+
margin-bottom ${t} ${an} ${r},
|
|
223
|
+
padding-top ${t} ${an} ${r},
|
|
224
|
+
padding-bottom ${t} ${an} ${r}
|
|
225
|
+
${n?`,${n}`:""}
|
|
226
|
+
`),K(`&.fade-in-height-expand-transition-${l}-active`,`
|
|
227
|
+
overflow: ${e};
|
|
228
|
+
transition:
|
|
229
|
+
max-height ${t} ${an},
|
|
230
|
+
opacity ${t} ${Ow},
|
|
231
|
+
margin-top ${t} ${an},
|
|
232
|
+
margin-bottom ${t} ${an},
|
|
233
|
+
padding-top ${t} ${an},
|
|
234
|
+
padding-bottom ${t} ${an}
|
|
235
|
+
${n?`,${n}`:""}
|
|
236
|
+
`)]}const Iw=Dr&&"chrome"in window;Dr&&navigator.userAgent.includes("Firefox");const Aw=Dr&&navigator.userAgent.includes("Safari")&&!Iw;function Kn(e){return Ba(e,[255,255,255,.16])}function si(e){return Ba(e,[0,0,0,.12])}const zw="n-button-group",Mw={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function Bw(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:d,primaryColorHover:h,primaryColorPressed:p,borderColor:m,primaryColor:C,baseColor:w,infoColor:E,infoColorHover:B,infoColorPressed:k,successColor:_,successColorHover:R,successColorPressed:v,warningColor:y,warningColorHover:T,warningColorPressed:L,errorColor:D,errorColorHover:M,errorColorPressed:Y,fontWeight:ce,buttonColor2:ye,buttonColor2Hover:fe,buttonColor2Pressed:q,fontWeightStrong:pe}=e;return Object.assign(Object.assign({},Mw),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:ye,colorSecondaryHover:fe,colorSecondaryPressed:q,colorTertiary:ye,colorTertiaryHover:fe,colorTertiaryPressed:q,colorQuaternary:"#0000",colorQuaternaryHover:fe,colorQuaternaryPressed:q,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:d,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:f,textColorText:f,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:f,border:`1px solid ${m}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${m}`,rippleColor:C,colorPrimary:C,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:C,textColorPrimary:w,textColorHoverPrimary:w,textColorPressedPrimary:w,textColorFocusPrimary:w,textColorDisabledPrimary:w,textColorTextPrimary:C,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:f,textColorGhostPrimary:C,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:C,borderPrimary:`1px solid ${C}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${C}`,rippleColorPrimary:C,colorInfo:E,colorHoverInfo:B,colorPressedInfo:k,colorFocusInfo:B,colorDisabledInfo:E,textColorInfo:w,textColorHoverInfo:w,textColorPressedInfo:w,textColorFocusInfo:w,textColorDisabledInfo:w,textColorTextInfo:E,textColorTextHoverInfo:B,textColorTextPressedInfo:k,textColorTextFocusInfo:B,textColorTextDisabledInfo:f,textColorGhostInfo:E,textColorGhostHoverInfo:B,textColorGhostPressedInfo:k,textColorGhostFocusInfo:B,textColorGhostDisabledInfo:E,borderInfo:`1px solid ${E}`,borderHoverInfo:`1px solid ${B}`,borderPressedInfo:`1px solid ${k}`,borderFocusInfo:`1px solid ${B}`,borderDisabledInfo:`1px solid ${E}`,rippleColorInfo:E,colorSuccess:_,colorHoverSuccess:R,colorPressedSuccess:v,colorFocusSuccess:R,colorDisabledSuccess:_,textColorSuccess:w,textColorHoverSuccess:w,textColorPressedSuccess:w,textColorFocusSuccess:w,textColorDisabledSuccess:w,textColorTextSuccess:_,textColorTextHoverSuccess:R,textColorTextPressedSuccess:v,textColorTextFocusSuccess:R,textColorTextDisabledSuccess:f,textColorGhostSuccess:_,textColorGhostHoverSuccess:R,textColorGhostPressedSuccess:v,textColorGhostFocusSuccess:R,textColorGhostDisabledSuccess:_,borderSuccess:`1px solid ${_}`,borderHoverSuccess:`1px solid ${R}`,borderPressedSuccess:`1px solid ${v}`,borderFocusSuccess:`1px solid ${R}`,borderDisabledSuccess:`1px solid ${_}`,rippleColorSuccess:_,colorWarning:y,colorHoverWarning:T,colorPressedWarning:L,colorFocusWarning:T,colorDisabledWarning:y,textColorWarning:w,textColorHoverWarning:w,textColorPressedWarning:w,textColorFocusWarning:w,textColorDisabledWarning:w,textColorTextWarning:y,textColorTextHoverWarning:T,textColorTextPressedWarning:L,textColorTextFocusWarning:T,textColorTextDisabledWarning:f,textColorGhostWarning:y,textColorGhostHoverWarning:T,textColorGhostPressedWarning:L,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:y,borderWarning:`1px solid ${y}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${L}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${y}`,rippleColorWarning:y,colorError:D,colorHoverError:M,colorPressedError:Y,colorFocusError:M,colorDisabledError:D,textColorError:w,textColorHoverError:w,textColorPressedError:w,textColorFocusError:w,textColorDisabledError:w,textColorTextError:D,textColorTextHoverError:M,textColorTextPressedError:Y,textColorTextFocusError:M,textColorTextDisabledError:f,textColorGhostError:D,textColorGhostHoverError:M,textColorGhostPressedError:Y,textColorGhostFocusError:M,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${M}`,borderPressedError:`1px solid ${Y}`,borderFocusError:`1px solid ${M}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:ce,fontWeightStrong:pe})}const mh={name:"Button",common:Rn,self:Bw},Lw=K([se("button",`
|
|
237
|
+
margin: 0;
|
|
238
|
+
font-weight: var(--n-font-weight);
|
|
239
|
+
line-height: 1;
|
|
240
|
+
font-family: inherit;
|
|
241
|
+
padding: var(--n-padding);
|
|
242
|
+
height: var(--n-height);
|
|
243
|
+
font-size: var(--n-font-size);
|
|
244
|
+
border-radius: var(--n-border-radius);
|
|
245
|
+
color: var(--n-text-color);
|
|
246
|
+
background-color: var(--n-color);
|
|
247
|
+
width: var(--n-width);
|
|
248
|
+
white-space: nowrap;
|
|
249
|
+
outline: none;
|
|
250
|
+
position: relative;
|
|
251
|
+
z-index: auto;
|
|
252
|
+
border: none;
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
flex-wrap: nowrap;
|
|
255
|
+
flex-shrink: 0;
|
|
256
|
+
align-items: center;
|
|
257
|
+
justify-content: center;
|
|
258
|
+
user-select: none;
|
|
259
|
+
-webkit-user-select: none;
|
|
260
|
+
text-align: center;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
text-decoration: none;
|
|
263
|
+
transition:
|
|
264
|
+
color .3s var(--n-bezier),
|
|
265
|
+
background-color .3s var(--n-bezier),
|
|
266
|
+
opacity .3s var(--n-bezier),
|
|
267
|
+
border-color .3s var(--n-bezier);
|
|
268
|
+
`,[ue("color",[le("border",{borderColor:"var(--n-border-color)"}),ue("disabled",[le("border",{borderColor:"var(--n-border-color-disabled)"})]),sa("disabled",[K("&:focus",[le("state-border",{borderColor:"var(--n-border-color-focus)"})]),K("&:hover",[le("state-border",{borderColor:"var(--n-border-color-hover)"})]),K("&:active",[le("state-border",{borderColor:"var(--n-border-color-pressed)"})]),ue("pressed",[le("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),ue("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[le("border",{border:"var(--n-border-disabled)"})]),sa("disabled",[K("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[le("state-border",{border:"var(--n-border-focus)"})]),K("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[le("state-border",{border:"var(--n-border-hover)"})]),K("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[le("state-border",{border:"var(--n-border-pressed)"})]),ue("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[le("state-border",{border:"var(--n-border-pressed)"})])]),ue("loading","cursor: wait;"),se("base-wave",`
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
top: 0;
|
|
271
|
+
right: 0;
|
|
272
|
+
bottom: 0;
|
|
273
|
+
left: 0;
|
|
274
|
+
animation-iteration-count: 1;
|
|
275
|
+
animation-duration: var(--n-ripple-duration);
|
|
276
|
+
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
|
277
|
+
`,[ue("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Dr&&"MozBoxSizing"in document.createElement("div").style?K("&::moz-focus-inner",{border:0}):null,le("border, state-border",`
|
|
278
|
+
position: absolute;
|
|
279
|
+
left: 0;
|
|
280
|
+
top: 0;
|
|
281
|
+
right: 0;
|
|
282
|
+
bottom: 0;
|
|
283
|
+
border-radius: inherit;
|
|
284
|
+
transition: border-color .3s var(--n-bezier);
|
|
285
|
+
pointer-events: none;
|
|
286
|
+
`),le("border",{border:"var(--n-border)"}),le("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),le("icon",`
|
|
287
|
+
margin: var(--n-icon-margin);
|
|
288
|
+
margin-left: 0;
|
|
289
|
+
height: var(--n-icon-size);
|
|
290
|
+
width: var(--n-icon-size);
|
|
291
|
+
max-width: var(--n-icon-size);
|
|
292
|
+
font-size: var(--n-icon-size);
|
|
293
|
+
position: relative;
|
|
294
|
+
flex-shrink: 0;
|
|
295
|
+
`,[se("icon-slot",`
|
|
296
|
+
height: var(--n-icon-size);
|
|
297
|
+
width: var(--n-icon-size);
|
|
298
|
+
position: absolute;
|
|
299
|
+
left: 0;
|
|
300
|
+
top: 50%;
|
|
301
|
+
transform: translateY(-50%);
|
|
302
|
+
display: flex;
|
|
303
|
+
align-items: center;
|
|
304
|
+
justify-content: center;
|
|
305
|
+
`,[Mo({top:"50%",originalTransform:"translateY(-50%)"})]),Rw()]),le("content",`
|
|
306
|
+
display: flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
flex-wrap: nowrap;
|
|
309
|
+
min-width: 0;
|
|
310
|
+
`,[K("~",[le("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),ue("block",`
|
|
311
|
+
display: flex;
|
|
312
|
+
width: 100%;
|
|
313
|
+
`),ue("dashed",[le("border, state-border",{borderStyle:"dashed !important"})]),ue("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),K("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),K("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Dw=Object.assign(Object.assign({},ht.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Aw}}),mu=Re({name:"Button",props:Dw,slots:Object,setup(e){const t=te(null),n=te(null),r=te(!1),o=Oi(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Oe(zw,{}),{mergedSizeRef:s}=al({},{defaultSize:"medium",mergedSize:k=>{const{size:_}=e;if(_)return _;const{size:R}=i;if(R)return R;const{mergedSize:v}=k||{};return v?v.value:"medium"}}),a=Q(()=>e.focusable&&!e.disabled),l=k=>{var _;a.value||k.preventDefault(),!e.nativeFocusBehavior&&(k.preventDefault(),!e.disabled&&a.value&&((_=t.value)===null||_===void 0||_.focus({preventScroll:!0})))},c=k=>{var _;if(!e.disabled&&!e.loading){const{onClick:R}=e;R&&tt(R,k),e.text||(_=n.value)===null||_===void 0||_.play()}},u=k=>{switch(k.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=k=>{switch(k.key){case"Enter":if(!e.keyboard||e.loading){k.preventDefault();return}r.value=!0}},d=()=>{r.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:m}=Ht(e),C=ht("Button","-button",Lw,mh,e,p),w=ur("Button",m,p),E=Q(()=>{const k=C.value,{common:{cubicBezierEaseInOut:_,cubicBezierEaseOut:R},self:v}=k,{rippleDuration:y,opacityDisabled:T,fontWeight:L,fontWeightStrong:D}=v,M=s.value,{dashed:Y,type:ce,ghost:ye,text:fe,color:q,round:pe,circle:ke,textColor:Me,secondary:Pe,tertiary:Be,quaternary:rt,strong:ot}=e,kt={"--n-font-weight":ot?D:L};let _e={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const H=ce==="tertiary",ie=ce==="default",U=H?"default":ce;if(fe){const G=Me||q;_e={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":G||v[we("textColorText",U)],"--n-text-color-hover":G?Kn(G):v[we("textColorTextHover",U)],"--n-text-color-pressed":G?si(G):v[we("textColorTextPressed",U)],"--n-text-color-focus":G?Kn(G):v[we("textColorTextHover",U)],"--n-text-color-disabled":G||v[we("textColorTextDisabled",U)]}}else if(ye||Y){const G=Me||q;_e={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":q||v[we("rippleColor",U)],"--n-text-color":G||v[we("textColorGhost",U)],"--n-text-color-hover":G?Kn(G):v[we("textColorGhostHover",U)],"--n-text-color-pressed":G?si(G):v[we("textColorGhostPressed",U)],"--n-text-color-focus":G?Kn(G):v[we("textColorGhostHover",U)],"--n-text-color-disabled":G||v[we("textColorGhostDisabled",U)]}}else if(Pe){const G=ie?v.textColor:H?v.textColorTertiary:v[we("color",U)],W=q||G,ve=ce!=="default"&&ce!=="tertiary";_e={"--n-color":ve?to(W,{alpha:Number(v.colorOpacitySecondary)}):v.colorSecondary,"--n-color-hover":ve?to(W,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-pressed":ve?to(W,{alpha:Number(v.colorOpacitySecondaryPressed)}):v.colorSecondaryPressed,"--n-color-focus":ve?to(W,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-disabled":v.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":W,"--n-text-color-hover":W,"--n-text-color-pressed":W,"--n-text-color-focus":W,"--n-text-color-disabled":W}}else if(Be||rt){const G=ie?v.textColor:H?v.textColorTertiary:v[we("color",U)],W=q||G;Be?(_e["--n-color"]=v.colorTertiary,_e["--n-color-hover"]=v.colorTertiaryHover,_e["--n-color-pressed"]=v.colorTertiaryPressed,_e["--n-color-focus"]=v.colorSecondaryHover,_e["--n-color-disabled"]=v.colorTertiary):(_e["--n-color"]=v.colorQuaternary,_e["--n-color-hover"]=v.colorQuaternaryHover,_e["--n-color-pressed"]=v.colorQuaternaryPressed,_e["--n-color-focus"]=v.colorQuaternaryHover,_e["--n-color-disabled"]=v.colorQuaternary),_e["--n-ripple-color"]="#0000",_e["--n-text-color"]=W,_e["--n-text-color-hover"]=W,_e["--n-text-color-pressed"]=W,_e["--n-text-color-focus"]=W,_e["--n-text-color-disabled"]=W}else _e={"--n-color":q||v[we("color",U)],"--n-color-hover":q?Kn(q):v[we("colorHover",U)],"--n-color-pressed":q?si(q):v[we("colorPressed",U)],"--n-color-focus":q?Kn(q):v[we("colorFocus",U)],"--n-color-disabled":q||v[we("colorDisabled",U)],"--n-ripple-color":q||v[we("rippleColor",U)],"--n-text-color":Me||(q?v.textColorPrimary:H?v.textColorTertiary:v[we("textColor",U)]),"--n-text-color-hover":Me||(q?v.textColorHoverPrimary:v[we("textColorHover",U)]),"--n-text-color-pressed":Me||(q?v.textColorPressedPrimary:v[we("textColorPressed",U)]),"--n-text-color-focus":Me||(q?v.textColorFocusPrimary:v[we("textColorFocus",U)]),"--n-text-color-disabled":Me||(q?v.textColorDisabledPrimary:v[we("textColorDisabled",U)])};let de={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};fe?de={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:de={"--n-border":v[we("border",U)],"--n-border-hover":v[we("borderHover",U)],"--n-border-pressed":v[we("borderPressed",U)],"--n-border-focus":v[we("borderFocus",U)],"--n-border-disabled":v[we("borderDisabled",U)]};const{[we("height",M)]:Ie,[we("fontSize",M)]:x,[we("padding",M)]:S,[we("paddingRound",M)]:z,[we("iconSize",M)]:F,[we("borderRadius",M)]:V,[we("iconMargin",M)]:j,waveOpacity:oe}=v,ne={"--n-width":ke&&!fe?Ie:"initial","--n-height":fe?"initial":Ie,"--n-font-size":x,"--n-padding":ke||fe?"initial":pe?z:S,"--n-icon-size":F,"--n-icon-margin":j,"--n-border-radius":fe?"initial":ke||pe?Ie:V};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":_,"--n-bezier-ease-out":R,"--n-ripple-duration":y,"--n-opacity-disabled":T,"--n-wave-opacity":oe},kt),_e),de),ne)}),B=h?_n("button",Q(()=>{let k="";const{dashed:_,type:R,ghost:v,text:y,color:T,round:L,circle:D,textColor:M,secondary:Y,tertiary:ce,quaternary:ye,strong:fe}=e;_&&(k+="a"),v&&(k+="b"),y&&(k+="c"),L&&(k+="d"),D&&(k+="e"),Y&&(k+="f"),ce&&(k+="g"),ye&&(k+="h"),fe&&(k+="i"),T&&(k+=`j${Kc(T)}`),M&&(k+=`k${Kc(M)}`);const{value:q}=s;return k+=`l${q[0]}`,k+=`m${R[0]}`,k}),E,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:p,mergedFocusable:a,mergedSize:s,showBorder:o,enterPressed:r,rtlEnabled:w,handleMousedown:l,handleKeydown:f,handleBlur:d,handleKeyup:u,handleClick:c,customColorCssVars:Q(()=>{const{color:k}=e;if(!k)return null;const _=Kn(k);return{"--n-border-color":k,"--n-border-color-hover":_,"--n-border-color-pressed":si(k),"--n-border-color-focus":_,"--n-border-color-disabled":k}}),cssVars:h?void 0:E,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n==null||n();const r=Vt(this.$slots.default,o=>o&&I("span",{class:`${e}-button__content`},o));return I(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,I(ph,{width:!0},{default:()=>Vt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&I("span",{class:`${e}-button__icon`,style:{margin:yb(this.$slots.default)?"0":""}},I(is,null,{default:()=>this.loading?I(vh,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):I("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:I(Pw,{ref:"waveElRef",clsPrefix:e}),this.showBorder?I("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?I("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),Fw={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Hw(e){const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:s,textColor1:a,dividerColor:l,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,closeColorHover:h,closeColorPressed:p,modalColor:m,boxShadow1:C,popoverColor:w,actionColor:E}=e;return Object.assign(Object.assign({},Fw),{lineHeight:r,color:i,colorModal:m,colorPopover:w,colorTarget:t,colorEmbedded:E,colorEmbeddedModal:E,colorEmbeddedPopover:E,textColor:s,titleTextColor:a,borderColor:l,actionColor:E,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:d,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:C,borderRadius:n})}const bh={name:"Card",common:Rn,self:Hw},jw=K([se("card",`
|
|
314
|
+
font-size: var(--n-font-size);
|
|
315
|
+
line-height: var(--n-line-height);
|
|
316
|
+
display: flex;
|
|
317
|
+
flex-direction: column;
|
|
318
|
+
width: 100%;
|
|
319
|
+
box-sizing: border-box;
|
|
320
|
+
position: relative;
|
|
321
|
+
border-radius: var(--n-border-radius);
|
|
322
|
+
background-color: var(--n-color);
|
|
323
|
+
color: var(--n-text-color);
|
|
324
|
+
word-break: break-word;
|
|
325
|
+
transition:
|
|
326
|
+
color .3s var(--n-bezier),
|
|
327
|
+
background-color .3s var(--n-bezier),
|
|
328
|
+
box-shadow .3s var(--n-bezier),
|
|
329
|
+
border-color .3s var(--n-bezier);
|
|
330
|
+
`,[Ju({background:"var(--n-color-modal)"}),ue("hoverable",[K("&:hover","box-shadow: var(--n-box-shadow);")]),ue("content-segmented",[K(">",[le("content",{paddingTop:"var(--n-padding-bottom)"})])]),ue("content-soft-segmented",[K(">",[le("content",`
|
|
331
|
+
margin: 0 var(--n-padding-left);
|
|
332
|
+
padding: var(--n-padding-bottom) 0;
|
|
333
|
+
`)])]),ue("footer-segmented",[K(">",[le("footer",{paddingTop:"var(--n-padding-bottom)"})])]),ue("footer-soft-segmented",[K(">",[le("footer",`
|
|
334
|
+
padding: var(--n-padding-bottom) 0;
|
|
335
|
+
margin: 0 var(--n-padding-left);
|
|
336
|
+
`)])]),K(">",[se("card-header",`
|
|
337
|
+
box-sizing: border-box;
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
font-size: var(--n-title-font-size);
|
|
341
|
+
padding:
|
|
342
|
+
var(--n-padding-top)
|
|
343
|
+
var(--n-padding-left)
|
|
344
|
+
var(--n-padding-bottom)
|
|
345
|
+
var(--n-padding-left);
|
|
346
|
+
`,[le("main",`
|
|
347
|
+
font-weight: var(--n-title-font-weight);
|
|
348
|
+
transition: color .3s var(--n-bezier);
|
|
349
|
+
flex: 1;
|
|
350
|
+
min-width: 0;
|
|
351
|
+
color: var(--n-title-text-color);
|
|
352
|
+
`),le("extra",`
|
|
353
|
+
display: flex;
|
|
354
|
+
align-items: center;
|
|
355
|
+
font-size: var(--n-font-size);
|
|
356
|
+
font-weight: 400;
|
|
357
|
+
transition: color .3s var(--n-bezier);
|
|
358
|
+
color: var(--n-text-color);
|
|
359
|
+
`),le("close",`
|
|
360
|
+
margin: 0 0 0 8px;
|
|
361
|
+
transition:
|
|
362
|
+
background-color .3s var(--n-bezier),
|
|
363
|
+
color .3s var(--n-bezier);
|
|
364
|
+
`)]),le("action",`
|
|
365
|
+
box-sizing: border-box;
|
|
366
|
+
transition:
|
|
367
|
+
background-color .3s var(--n-bezier),
|
|
368
|
+
border-color .3s var(--n-bezier);
|
|
369
|
+
background-clip: padding-box;
|
|
370
|
+
background-color: var(--n-action-color);
|
|
371
|
+
`),le("content","flex: 1; min-width: 0;"),le("content, footer",`
|
|
372
|
+
box-sizing: border-box;
|
|
373
|
+
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
|
374
|
+
font-size: var(--n-font-size);
|
|
375
|
+
`,[K("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),le("action",`
|
|
376
|
+
background-color: var(--n-action-color);
|
|
377
|
+
padding: var(--n-padding-bottom) var(--n-padding-left);
|
|
378
|
+
border-bottom-left-radius: var(--n-border-radius);
|
|
379
|
+
border-bottom-right-radius: var(--n-border-radius);
|
|
380
|
+
`)]),se("card-cover",`
|
|
381
|
+
overflow: hidden;
|
|
382
|
+
width: 100%;
|
|
383
|
+
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
384
|
+
`,[K("img",`
|
|
385
|
+
display: block;
|
|
386
|
+
width: 100%;
|
|
387
|
+
`)]),ue("bordered",`
|
|
388
|
+
border: 1px solid var(--n-border-color);
|
|
389
|
+
`,[K("&:target","border-color: var(--n-color-target);")]),ue("action-segmented",[K(">",[le("action",[K("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("content-segmented, content-soft-segmented",[K(">",[le("content",{transition:"border-color 0.3s var(--n-bezier)"},[K("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("footer-segmented, footer-soft-segmented",[K(">",[le("footer",{transition:"border-color 0.3s var(--n-bezier)"},[K("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),ue("embedded",`
|
|
390
|
+
background-color: var(--n-color-embedded);
|
|
391
|
+
`)]),za(se("card",`
|
|
392
|
+
background: var(--n-color-modal);
|
|
393
|
+
`,[ue("embedded",`
|
|
394
|
+
background-color: var(--n-color-embedded-modal);
|
|
395
|
+
`)])),Qu(se("card",`
|
|
396
|
+
background: var(--n-color-popover);
|
|
397
|
+
`,[ue("embedded",`
|
|
398
|
+
background-color: var(--n-color-embedded-popover);
|
|
399
|
+
`)]))]),bl={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},Nw=Qi(bl),Ww=Object.assign(Object.assign({},ht.props),bl),Vw=Re({name:"Card",props:Ww,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&tt(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=Ht(e),i=ht("Card","-card",jw,bh,e,r),s=ur("Card",o,r),a=Q(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:d,textColor:h,titleTextColor:p,titleFontWeight:m,borderColor:C,actionColor:w,borderRadius:E,lineHeight:B,closeIconColor:k,closeIconColorHover:_,closeIconColorPressed:R,closeColorHover:v,closeColorPressed:y,closeBorderRadius:T,closeIconSize:L,closeSize:D,boxShadow:M,colorPopover:Y,colorEmbedded:ce,colorEmbeddedModal:ye,colorEmbeddedPopover:fe,[we("padding",c)]:q,[we("fontSize",c)]:pe,[we("titleFontSize",c)]:ke},common:{cubicBezierEaseInOut:Me}}=i.value,{top:Pe,left:Be,bottom:rt}=Bn(q);return{"--n-bezier":Me,"--n-border-radius":E,"--n-color":u,"--n-color-modal":f,"--n-color-popover":Y,"--n-color-embedded":ce,"--n-color-embedded-modal":ye,"--n-color-embedded-popover":fe,"--n-color-target":d,"--n-text-color":h,"--n-line-height":B,"--n-action-color":w,"--n-title-text-color":p,"--n-title-font-weight":m,"--n-close-icon-color":k,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":R,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-border-color":C,"--n-box-shadow":M,"--n-padding-top":Pe,"--n-padding-bottom":rt,"--n-padding-left":Be,"--n-font-size":pe,"--n-title-font-size":ke,"--n-close-size":D,"--n-close-icon-size":L,"--n-close-border-radius":T}}),l=n?_n("card",Q(()=>e.size[0]),a,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:s,tag:a,$slots:l}=this;return i==null||i(),I(a,{class:[`${r}-card`,this.themeClass,s&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},Vt(l.cover,c=>{const u=this.cover?Wt([this.cover()]):c;return u&&I("div",{class:`${r}-card-cover`,role:"none"},u)}),Vt(l.header,c=>{const{title:u}=this,f=u?Wt(typeof u=="function"?[u()]:[u]):c;return f||this.closable?I("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},I("div",{class:`${r}-card-header__main`,role:"heading"},f),Vt(l["header-extra"],d=>{const h=this.headerExtra?Wt([this.headerExtra()]):d;return h&&I("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&I(ss,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),Vt(l.default,c=>{const{content:u}=this,f=u?Wt(typeof u=="function"?[u()]:[u]):c;return f&&I("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),Vt(l.footer,c=>{const u=this.footer?Wt([this.footer()]):c;return u&&I("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),Vt(l.action,c=>{const u=this.action?Wt([this.action()]):c;return u&&I("div",{class:`${r}-card__action`,role:"none"},u)}))}}),Uw={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function Kw(e){const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:s,borderColor:a,primaryColor:l,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},Uw),{labelLineHeight:p,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:d,borderRadius:h,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${to(l,{alpha:.3})}`,textColor:c,textColorDisabled:s})}const Gw={name:"Checkbox",common:Rn,self:Kw},yh="n-checkbox-group",Yw={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},T_=Re({name:"CheckboxGroup",props:Yw,setup(e){const{mergedClsPrefixRef:t}=Ht(e),n=al(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=te(e.defaultValue),s=Q(()=>e.value),a=$d(s,i),l=Q(()=>{var f;return((f=a.value)===null||f===void 0?void 0:f.length)||0}),c=Q(()=>Array.isArray(a.value)?new Set(a.value):new Set);function u(f,d){const{nTriggerFormInput:h,nTriggerFormChange:p}=n,{onChange:m,"onUpdate:value":C,onUpdateValue:w}=e;if(Array.isArray(a.value)){const E=Array.from(a.value),B=E.findIndex(k=>k===d);f?~B||(E.push(d),w&&tt(w,E,{actionType:"check",value:d}),C&&tt(C,E,{actionType:"check",value:d}),h(),p(),i.value=E,m&&tt(m,E)):~B&&(E.splice(B,1),w&&tt(w,E,{actionType:"uncheck",value:d}),C&&tt(C,E,{actionType:"uncheck",value:d}),m&&tt(m,E),i.value=E,h(),p())}else f?(w&&tt(w,[d],{actionType:"check",value:d}),C&&tt(C,[d],{actionType:"check",value:d}),m&&tt(m,[d]),i.value=[d],h(),p()):(w&&tt(w,[],{actionType:"uncheck",value:d}),C&&tt(C,[],{actionType:"uncheck",value:d}),m&&tt(m,[]),i.value=[],h(),p())}return Je(yh,{checkedCountRef:l,maxRef:Mt(e,"max"),minRef:Mt(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return I("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),qw=()=>I("svg",{viewBox:"0 0 64 64",class:"check-icon"},I("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Xw=()=>I("svg",{viewBox:"0 0 100 100",class:"line-icon"},I("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),Zw=K([se("checkbox",`
|
|
400
|
+
font-size: var(--n-font-size);
|
|
401
|
+
outline: none;
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
display: inline-flex;
|
|
404
|
+
flex-wrap: nowrap;
|
|
405
|
+
align-items: flex-start;
|
|
406
|
+
word-break: break-word;
|
|
407
|
+
line-height: var(--n-size);
|
|
408
|
+
--n-merged-color-table: var(--n-color-table);
|
|
409
|
+
`,[ue("show-label","line-height: var(--n-label-line-height);"),K("&:hover",[se("checkbox-box",[le("border","border: var(--n-border-checked);")])]),K("&:focus:not(:active)",[se("checkbox-box",[le("border",`
|
|
410
|
+
border: var(--n-border-focus);
|
|
411
|
+
box-shadow: var(--n-box-shadow-focus);
|
|
412
|
+
`)])]),ue("inside-table",[se("checkbox-box",`
|
|
413
|
+
background-color: var(--n-merged-color-table);
|
|
414
|
+
`)]),ue("checked",[se("checkbox-box",`
|
|
415
|
+
background-color: var(--n-color-checked);
|
|
416
|
+
`,[se("checkbox-icon",[K(".check-icon",`
|
|
417
|
+
opacity: 1;
|
|
418
|
+
transform: scale(1);
|
|
419
|
+
`)])])]),ue("indeterminate",[se("checkbox-box",[se("checkbox-icon",[K(".check-icon",`
|
|
420
|
+
opacity: 0;
|
|
421
|
+
transform: scale(.5);
|
|
422
|
+
`),K(".line-icon",`
|
|
423
|
+
opacity: 1;
|
|
424
|
+
transform: scale(1);
|
|
425
|
+
`)])])]),ue("checked, indeterminate",[K("&:focus:not(:active)",[se("checkbox-box",[le("border",`
|
|
426
|
+
border: var(--n-border-checked);
|
|
427
|
+
box-shadow: var(--n-box-shadow-focus);
|
|
428
|
+
`)])]),se("checkbox-box",`
|
|
429
|
+
background-color: var(--n-color-checked);
|
|
430
|
+
border-left: 0;
|
|
431
|
+
border-top: 0;
|
|
432
|
+
`,[le("border",{border:"var(--n-border-checked)"})])]),ue("disabled",{cursor:"not-allowed"},[ue("checked",[se("checkbox-box",`
|
|
433
|
+
background-color: var(--n-color-disabled-checked);
|
|
434
|
+
`,[le("border",{border:"var(--n-border-disabled-checked)"}),se("checkbox-icon",[K(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),se("checkbox-box",`
|
|
435
|
+
background-color: var(--n-color-disabled);
|
|
436
|
+
`,[le("border",`
|
|
437
|
+
border: var(--n-border-disabled);
|
|
438
|
+
`),se("checkbox-icon",[K(".check-icon, .line-icon",`
|
|
439
|
+
fill: var(--n-check-mark-color-disabled);
|
|
440
|
+
`)])]),le("label",`
|
|
441
|
+
color: var(--n-text-color-disabled);
|
|
442
|
+
`)]),se("checkbox-box-wrapper",`
|
|
443
|
+
position: relative;
|
|
444
|
+
width: var(--n-size);
|
|
445
|
+
flex-shrink: 0;
|
|
446
|
+
flex-grow: 0;
|
|
447
|
+
user-select: none;
|
|
448
|
+
-webkit-user-select: none;
|
|
449
|
+
`),se("checkbox-box",`
|
|
450
|
+
position: absolute;
|
|
451
|
+
left: 0;
|
|
452
|
+
top: 50%;
|
|
453
|
+
transform: translateY(-50%);
|
|
454
|
+
height: var(--n-size);
|
|
455
|
+
width: var(--n-size);
|
|
456
|
+
display: inline-block;
|
|
457
|
+
box-sizing: border-box;
|
|
458
|
+
border-radius: var(--n-border-radius);
|
|
459
|
+
background-color: var(--n-color);
|
|
460
|
+
transition: background-color 0.3s var(--n-bezier);
|
|
461
|
+
`,[le("border",`
|
|
462
|
+
transition:
|
|
463
|
+
border-color .3s var(--n-bezier),
|
|
464
|
+
box-shadow .3s var(--n-bezier);
|
|
465
|
+
border-radius: inherit;
|
|
466
|
+
position: absolute;
|
|
467
|
+
left: 0;
|
|
468
|
+
right: 0;
|
|
469
|
+
top: 0;
|
|
470
|
+
bottom: 0;
|
|
471
|
+
border: var(--n-border);
|
|
472
|
+
`),se("checkbox-icon",`
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
475
|
+
justify-content: center;
|
|
476
|
+
position: absolute;
|
|
477
|
+
left: 1px;
|
|
478
|
+
right: 1px;
|
|
479
|
+
top: 1px;
|
|
480
|
+
bottom: 1px;
|
|
481
|
+
`,[K(".check-icon, .line-icon",`
|
|
482
|
+
width: 100%;
|
|
483
|
+
fill: var(--n-check-mark-color);
|
|
484
|
+
opacity: 0;
|
|
485
|
+
transform: scale(0.5);
|
|
486
|
+
transform-origin: center;
|
|
487
|
+
transition:
|
|
488
|
+
fill 0.3s var(--n-bezier),
|
|
489
|
+
transform 0.3s var(--n-bezier),
|
|
490
|
+
opacity 0.3s var(--n-bezier),
|
|
491
|
+
border-color 0.3s var(--n-bezier);
|
|
492
|
+
`),Mo({left:"1px",top:"1px"})])]),le("label",`
|
|
493
|
+
color: var(--n-text-color);
|
|
494
|
+
transition: color .3s var(--n-bezier);
|
|
495
|
+
user-select: none;
|
|
496
|
+
-webkit-user-select: none;
|
|
497
|
+
padding: var(--n-label-padding);
|
|
498
|
+
font-weight: var(--n-label-font-weight);
|
|
499
|
+
`,[K("&:empty",{display:"none"})])]),za(se("checkbox",`
|
|
500
|
+
--n-merged-color-table: var(--n-color-table-modal);
|
|
501
|
+
`)),Qu(se("checkbox",`
|
|
502
|
+
--n-merged-color-table: var(--n-color-table-popover);
|
|
503
|
+
`))]),Qw=Object.assign(Object.assign({},ht.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Jw=Re({name:"Checkbox",props:Qw,setup(e){const t=Oe(yh,null),n=te(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Ht(e),s=te(e.defaultChecked),a=Mt(e,"checked"),l=$d(a,s),c=Oi(()=>{if(t){const R=t.valueSetRef.value;return R&&e.value!==void 0?R.has(e.value):!1}else return l.value===e.checkedValue}),u=al(e,{mergedSize(R){const{size:v}=e;if(v!==void 0)return v;if(t){const{value:y}=t.mergedSizeRef;if(y!==void 0)return y}if(R){const{mergedSize:y}=R;if(y!==void 0)return y.value}return"medium"},mergedDisabled(R){const{disabled:v}=e;if(v!==void 0)return v;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:y},checkedCountRef:T}=t;if(y!==void 0&&T.value>=y&&!c.value)return!0;const{minRef:{value:L}}=t;if(L!==void 0&&T.value<=L&&c.value)return!0}return R?R.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:d}=u,h=ht("Checkbox","-checkbox",Zw,Gw,e,r);function p(R){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:v,"onUpdate:checked":y,onUpdateChecked:T}=e,{nTriggerFormInput:L,nTriggerFormChange:D}=u,M=c.value?e.uncheckedValue:e.checkedValue;y&&tt(y,M,R),T&&tt(T,M,R),v&&tt(v,M,R),L(),D(),s.value=M}}function m(R){f.value||p(R)}function C(R){if(!f.value)switch(R.key){case" ":case"Enter":p(R)}}function w(R){switch(R.key){case" ":R.preventDefault()}}const E={focus:()=>{var R;(R=n.value)===null||R===void 0||R.focus()},blur:()=>{var R;(R=n.value)===null||R===void 0||R.blur()}},B=ur("Checkbox",i,r),k=Q(()=>{const{value:R}=d,{common:{cubicBezierEaseInOut:v},self:{borderRadius:y,color:T,colorChecked:L,colorDisabled:D,colorTableHeader:M,colorTableHeaderModal:Y,colorTableHeaderPopover:ce,checkMarkColor:ye,checkMarkColorDisabled:fe,border:q,borderFocus:pe,borderDisabled:ke,borderChecked:Me,boxShadowFocus:Pe,textColor:Be,textColorDisabled:rt,checkMarkColorDisabledChecked:ot,colorDisabledChecked:kt,borderDisabledChecked:_e,labelPadding:H,labelLineHeight:ie,labelFontWeight:U,[we("fontSize",R)]:de,[we("size",R)]:Ie}}=h.value;return{"--n-label-line-height":ie,"--n-label-font-weight":U,"--n-size":Ie,"--n-bezier":v,"--n-border-radius":y,"--n-border":q,"--n-border-checked":Me,"--n-border-focus":pe,"--n-border-disabled":ke,"--n-border-disabled-checked":_e,"--n-box-shadow-focus":Pe,"--n-color":T,"--n-color-checked":L,"--n-color-table":M,"--n-color-table-modal":Y,"--n-color-table-popover":ce,"--n-color-disabled":D,"--n-color-disabled-checked":kt,"--n-text-color":Be,"--n-text-color-disabled":rt,"--n-check-mark-color":ye,"--n-check-mark-color-disabled":fe,"--n-check-mark-color-disabled-checked":ot,"--n-font-size":de,"--n-label-padding":H}}),_=o?_n("checkbox",Q(()=>d.value[0]),k,e):void 0;return Object.assign(u,E,{rtlEnabled:B,selfRef:n,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:c,mergedTheme:h,labelId:Lr(),handleClick:m,handleKeyUp:C,handleKeyDown:w,cssVars:o?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:s,labelId:a,label:l,mergedClsPrefix:c,focusable:u,handleKeyUp:f,handleKeyDown:d,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=Vt(t.default,m=>l||m?I("span",{class:`${c}-checkbox__label`,id:a},l||m):null);return I("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":a,style:s,onKeyup:f,onKeydown:d,onClick:h,onMousedown:()=>{gt("selectstart",window,m=>{m.preventDefault()},{once:!0})}},I("div",{class:`${c}-checkbox-box-wrapper`}," ",I("div",{class:`${c}-checkbox-box`},I(is,null,{default:()=>this.indeterminate?I("div",{key:"indeterminate",class:`${c}-checkbox-icon`},Xw()):I("div",{key:"check",class:`${c}-checkbox-icon`},qw())}),I("div",{class:`${c}-checkbox-box__border`}))),p)}}),eC={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Or("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},xh=Re({name:"ConfigProvider",alias:["App"],props:eC,setup(e){const t=Oe(wn,null),n=Q(()=>{const{theme:m}=e;if(m===null)return;const C=t==null?void 0:t.mergedThemeRef.value;return m===void 0?C:C===void 0?m:Object.assign({},C,m)}),r=Q(()=>{const{themeOverrides:m}=e;if(m!==null){if(m===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const C=t==null?void 0:t.mergedThemeOverridesRef.value;return C===void 0?m:oo({},C,m)}}}),o=Oi(()=>{const{namespace:m}=e;return m===void 0?t==null?void 0:t.mergedNamespaceRef.value:m}),i=Oi(()=>{const{bordered:m}=e;return m===void 0?t==null?void 0:t.mergedBorderedRef.value:m}),s=Q(()=>{const{icons:m}=e;return m===void 0?t==null?void 0:t.mergedIconsRef.value:m}),a=Q(()=>{const{componentOptions:m}=e;return m!==void 0?m:t==null?void 0:t.mergedComponentPropsRef.value}),l=Q(()=>{const{clsPrefix:m}=e;return m!==void 0?m:t?t.mergedClsPrefixRef.value:Ii}),c=Q(()=>{var m;const{rtl:C}=e;if(C===void 0)return t==null?void 0:t.mergedRtlRef.value;const w={};for(const E of C)w[E.name]=Eo(E),(m=E.peers)===null||m===void 0||m.forEach(B=>{B.name in w||(w[B.name]=Eo(B))});return w}),u=Q(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),f=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),d=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),h=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=Q(()=>{const{value:m}=n,{value:C}=r,w=C&&Object.keys(C).length!==0,E=m==null?void 0:m.name;return E?w?`${E}-${xo(JSON.stringify(r.value))}`:E:w?xo(JSON.stringify(r.value)):""});return Je(wn,{mergedThemeHashRef:p,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:l,mergedLocaleRef:Q(()=>{const{locale:m}=e;if(m!==null)return m===void 0?t==null?void 0:t.mergedLocaleRef.value:m}),mergedDateLocaleRef:Q(()=>{const{dateLocale:m}=e;if(m!==null)return m===void 0?t==null?void 0:t.mergedDateLocaleRef.value:m}),mergedHljsRef:Q(()=>{const{hljs:m}=e;return m===void 0?t==null?void 0:t.mergedHljsRef.value:m}),mergedKatexRef:Q(()=>{const{katex:m}=e;return m===void 0?t==null?void 0:t.mergedKatexRef.value:m}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:d||!1,styleMountTarget:h}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):I(this.as||this.tag,{class:`${this.mergedClsPrefix||Ii}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),wh="n-dialog-provider",Ch="n-dialog-api",tC="n-dialog-reactive-list";function nC(){const e=Oe(Ch,null);return e===null&&Fr("use-dialog","No outer <n-dialog-provider /> founded."),e}const rC={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function oC(e){const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeColorHover:a,closeColorPressed:l,infoColor:c,successColor:u,warningColor:f,errorColor:d,primaryColor:h,dividerColor:p,borderRadius:m,fontWeightStrong:C,lineHeight:w,fontSize:E}=e;return Object.assign(Object.assign({},rC),{fontSize:E,lineHeight:w,border:`1px solid ${p}`,titleTextColor:t,textColor:n,color:r,closeColorHover:a,closeColorPressed:l,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:s,closeBorderRadius:m,iconColor:h,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:d,borderRadius:m,titleFontWeight:C})}const Sh={name:"Dialog",common:Rn,peers:{Button:mh},self:oC},as={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},_h=Qi(as),iC=K([se("dialog",`
|
|
504
|
+
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
|
|
505
|
+
word-break: break-word;
|
|
506
|
+
line-height: var(--n-line-height);
|
|
507
|
+
position: relative;
|
|
508
|
+
background: var(--n-color);
|
|
509
|
+
color: var(--n-text-color);
|
|
510
|
+
box-sizing: border-box;
|
|
511
|
+
margin: auto;
|
|
512
|
+
border-radius: var(--n-border-radius);
|
|
513
|
+
padding: var(--n-padding);
|
|
514
|
+
transition:
|
|
515
|
+
border-color .3s var(--n-bezier),
|
|
516
|
+
background-color .3s var(--n-bezier),
|
|
517
|
+
color .3s var(--n-bezier);
|
|
518
|
+
`,[le("icon",{color:"var(--n-icon-color)"}),ue("bordered",{border:"var(--n-border)"}),ue("icon-top",[le("close",{margin:"var(--n-close-margin)"}),le("icon",{margin:"var(--n-icon-margin)"}),le("content",{textAlign:"center"}),le("title",{justifyContent:"center"}),le("action",{justifyContent:"center"})]),ue("icon-left",[le("icon",{margin:"var(--n-icon-margin)"}),ue("closable",[le("title",`
|
|
519
|
+
padding-right: calc(var(--n-close-size) + 6px);
|
|
520
|
+
`)])]),le("close",`
|
|
521
|
+
position: absolute;
|
|
522
|
+
right: 0;
|
|
523
|
+
top: 0;
|
|
524
|
+
margin: var(--n-close-margin);
|
|
525
|
+
transition:
|
|
526
|
+
background-color .3s var(--n-bezier),
|
|
527
|
+
color .3s var(--n-bezier);
|
|
528
|
+
z-index: 1;
|
|
529
|
+
`),le("content",`
|
|
530
|
+
font-size: var(--n-font-size);
|
|
531
|
+
margin: var(--n-content-margin);
|
|
532
|
+
position: relative;
|
|
533
|
+
word-break: break-word;
|
|
534
|
+
`,[ue("last","margin-bottom: 0;")]),le("action",`
|
|
535
|
+
display: flex;
|
|
536
|
+
justify-content: flex-end;
|
|
537
|
+
`,[K("> *:not(:last-child)",`
|
|
538
|
+
margin-right: var(--n-action-space);
|
|
539
|
+
`)]),le("icon",`
|
|
540
|
+
font-size: var(--n-icon-size);
|
|
541
|
+
transition: color .3s var(--n-bezier);
|
|
542
|
+
`),le("title",`
|
|
543
|
+
transition: color .3s var(--n-bezier);
|
|
544
|
+
display: flex;
|
|
545
|
+
align-items: center;
|
|
546
|
+
font-size: var(--n-title-font-size);
|
|
547
|
+
font-weight: var(--n-title-font-weight);
|
|
548
|
+
color: var(--n-title-text-color);
|
|
549
|
+
`),se("dialog-icon-container",`
|
|
550
|
+
display: flex;
|
|
551
|
+
justify-content: center;
|
|
552
|
+
`)]),za(se("dialog",`
|
|
553
|
+
width: 446px;
|
|
554
|
+
max-width: calc(100vw - 32px);
|
|
555
|
+
`)),se("dialog",[Ju(`
|
|
556
|
+
width: 446px;
|
|
557
|
+
max-width: calc(100vw - 32px);
|
|
558
|
+
`)])]),sC={default:()=>I(Mi,null),info:()=>I(Mi,null),success:()=>I(hl,null),warning:()=>I(pl,null),error:()=>I(dl,null)},Eh=Re({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ht.props),as),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ht(e),i=ur("Dialog",o,n),s=Q(()=>{var h,p;const{iconPlacement:m}=e;return m||((p=(h=t==null?void 0:t.value)===null||h===void 0?void 0:h.Dialog)===null||p===void 0?void 0:p.iconPlacement)||"left"});function a(h){const{onPositiveClick:p}=e;p&&p(h)}function l(h){const{onNegativeClick:p}=e;p&&p(h)}function c(){const{onClose:h}=e;h&&h()}const u=ht("Dialog","-dialog",iC,Sh,e,n),f=Q(()=>{const{type:h}=e,p=s.value,{common:{cubicBezierEaseInOut:m},self:{fontSize:C,lineHeight:w,border:E,titleTextColor:B,textColor:k,color:_,closeBorderRadius:R,closeColorHover:v,closeColorPressed:y,closeIconColor:T,closeIconColorHover:L,closeIconColorPressed:D,closeIconSize:M,borderRadius:Y,titleFontWeight:ce,titleFontSize:ye,padding:fe,iconSize:q,actionSpace:pe,contentMargin:ke,closeSize:Me,[p==="top"?"iconMarginIconTop":"iconMargin"]:Pe,[p==="top"?"closeMarginIconTop":"closeMargin"]:Be,[we("iconColor",h)]:rt}}=u.value,ot=Bn(Pe);return{"--n-font-size":C,"--n-icon-color":rt,"--n-bezier":m,"--n-close-margin":Be,"--n-icon-margin-top":ot.top,"--n-icon-margin-right":ot.right,"--n-icon-margin-bottom":ot.bottom,"--n-icon-margin-left":ot.left,"--n-icon-size":q,"--n-close-size":Me,"--n-close-icon-size":M,"--n-close-border-radius":R,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-close-icon-color":T,"--n-close-icon-color-hover":L,"--n-close-icon-color-pressed":D,"--n-color":_,"--n-text-color":k,"--n-border-radius":Y,"--n-padding":fe,"--n-line-height":w,"--n-border":E,"--n-content-margin":ke,"--n-title-font-size":ye,"--n-title-font-weight":ce,"--n-title-text-color":B,"--n-action-space":pe}}),d=r?_n("dialog",Q(()=>`${e.type[0]}${s.value[0]}`),f,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:s,mergedTheme:u,handlePositiveClick:a,handleNegativeClick:l,handleCloseClick:c,cssVars:r?void 0:f,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:s,content:a,action:l,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:d,handlePositiveClick:h,handleNegativeClick:p,mergedTheme:m,loading:C,type:w,mergedClsPrefix:E}=this;(e=this.onRender)===null||e===void 0||e.call(this);const B=i?I(os,{clsPrefix:E,class:`${E}-dialog__icon`},{default:()=>Vt(this.$slots.icon,_=>_||(this.icon?Dt(this.icon):sC[this.type]()))}):null,k=Vt(this.$slots.action,_=>_||u||c||l?I("div",{class:[`${E}-dialog__action`,this.actionClass],style:this.actionStyle},_||(l?[Dt(l)]:[this.negativeText&&I(mu,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,ghost:!0,size:"small",onClick:p},d),{default:()=>Dt(this.negativeText)}),this.positiveText&&I(mu,Object.assign({theme:m.peers.Button,themeOverrides:m.peerOverrides.Button,size:"small",type:w==="default"?"primary":w,disabled:C,loading:C,onClick:h},f),{default:()=>Dt(this.positiveText)})])):null);return I("div",{class:[`${E}-dialog`,this.themeClass,this.closable&&`${E}-dialog--closable`,`${E}-dialog--icon-${n}`,t&&`${E}-dialog--bordered`,this.rtlEnabled&&`${E}-dialog--rtl`],style:r,role:"dialog"},o?Vt(this.$slots.close,_=>{const R=[`${E}-dialog__close`,this.rtlEnabled&&`${E}-dialog--rtl`];return _?I("div",{class:R},_):I(ss,{clsPrefix:E,class:R,onClick:this.handleCloseClick})}):null,i&&n==="top"?I("div",{class:`${E}-dialog-icon-container`},B):null,I("div",{class:[`${E}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?B:null,Yc(this.$slots.header,()=>[Dt(s)])),I("div",{class:[`${E}-dialog__content`,k?"":`${E}-dialog__content--last`,this.contentClass],style:this.contentStyle},Yc(this.$slots.default,()=>[Dt(a)])),k)}});function aC(e){const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}const lC={name:"Modal",common:Rn,peers:{Scrollbar:gl,Dialog:Sh,Card:bh},self:aC},cC="n-modal-provider",Rh="n-modal-api",uC="n-modal-reactive-list";function fC(){const e=Oe(Rh,null);return e===null&&Fr("use-modal","No outer <n-modal-provider /> founded."),e}const Pa="n-draggable";function dC(e,t){let n;const r=Q(()=>e.value!==!1),o=Q(()=>r.value?Pa:""),i=Q(()=>{const l=e.value;return l===!0||l===!1?!0:l?l.bounds!=="none":!0});function s(l){const c=l.querySelector(`.${Pa}`);if(!c||!o.value)return;let u=0,f=0,d=0,h=0,p=0,m=0,C;function w(k){k.preventDefault(),C=k;const{x:_,y:R,right:v,bottom:y}=l.getBoundingClientRect();f=_,h=R,u=window.innerWidth-v,d=window.innerHeight-y;const{left:T,top:L}=l.style;p=+L.slice(0,-2),m=+T.slice(0,-2)}function E(k){if(!C)return;const{clientX:_,clientY:R}=C;let v=k.clientX-_,y=k.clientY-R;i.value&&(v>u?v=u:-v>f&&(v=-f),y>d?y=d:-y>h&&(y=-h));const T=v+m,L=y+p;l.style.top=`${L}px`,l.style.left=`${T}px`}function B(){C=void 0,t.onEnd(l)}gt("mousedown",c,w),gt("mousemove",window,E),gt("mouseup",window,B),n=()=>{Et("mousedown",c,w),gt("mousemove",window,E),gt("mouseup",window,B)}}function a(){n&&(n(),n=void 0)}return Gi(a),{stopDrag:a,startDrag:s,draggableRef:r,draggableClassRef:o}}const yl=Object.assign(Object.assign({},bl),as),hC=Qi(yl),pC=Re({name:"ModalBody",inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1}},yl),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=te(null),n=te(null),r=te(e.show),o=te(null),i=te(null),s=Oe(Od);let a=null;et(Mt(e,"show"),y=>{y&&(a=s.getMousePosition())},{immediate:!0});const{stopDrag:l,startDrag:c,draggableRef:u,draggableClassRef:f}=dC(Mt(e,"draggable"),{onEnd:y=>{m(y)}}),d=Q(()=>Dn([e.titleClass,f.value])),h=Q(()=>Dn([e.headerClass,f.value]));et(Mt(e,"show"),y=>{y&&(r.value=!0)}),Bm(Q(()=>e.blockScroll&&r.value));function p(){if(s.transformOriginRef.value==="center")return"";const{value:y}=o,{value:T}=i;if(y===null||T===null)return"";if(n.value){const L=n.value.containerScrollTop;return`${y}px ${T+L}px`}return""}function m(y){if(s.transformOriginRef.value==="center"||!a||!n.value)return;const T=n.value.containerScrollTop,{offsetLeft:L,offsetTop:D}=y,M=a.y,Y=a.x;o.value=-(L-Y),i.value=-(D-M-T),y.style.transformOrigin=p()}function C(y){Rt(()=>{m(y)})}function w(y){y.style.transformOrigin=p(),e.onBeforeLeave()}function E(y){const T=y;u.value&&c(T),e.onAfterEnter&&e.onAfterEnter(T)}function B(){r.value=!1,o.value=null,i.value=null,l(),e.onAfterLeave()}function k(){const{onClose:y}=e;y&&y()}function _(){e.onNegativeClick()}function R(){e.onPositiveClick()}const v=te(null);return et(v,y=>{y&&Rt(()=>{const T=y.el;T&&t.value!==T&&(t.value=T)})}),Je(Im,t),Je(km,null),Je(zm,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:f,displayed:r,childNodeRef:v,cardHeaderClass:h,dialogTitleClass:d,handlePositiveClick:R,handleNegativeClick:_,handleCloseClick:k,handleAfterEnter:E,handleAfterLeave:B,handleBeforeLeave:w,handleEnter:C}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:r,handleAfterLeave:o,handleBeforeLeave:i,preset:s,mergedClsPrefix:a}=this;let l=null;if(!s){if(l=bb("default",e.default,{draggableClass:this.draggableClass}),!l){Or("modal","default slot is empty");return}l=xn(l),l.props=tl({class:`${a}-modal`},t,l.props||{})}return this.displayDirective==="show"||this.displayed||this.show?To(I("div",{role:"none",class:`${a}-modal-body-wrapper`},I(ml,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var c;return[(c=this.renderMask)===null||c===void 0?void 0:c.call(this),I(gb,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return I(Fn,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:n,onAfterEnter:r,onAfterLeave:o,onBeforeLeave:i},{default:()=>{const f=[[Pi,this.show]],{onClickoutside:d}=this;return d&&f.push([Dm,this.onClickoutside,void 0,{capture:!0}]),To(this.preset==="confirm"||this.preset==="dialog"?I(Eh,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Io(this.$props,_h),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?I(Vw,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Io(this.$props,Nw),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=l,f)}})}})]}})),[[Pi,this.displayDirective==="if"||this.displayed||this.show]]):null}}),vC=K([se("modal-container",`
|
|
559
|
+
position: fixed;
|
|
560
|
+
left: 0;
|
|
561
|
+
top: 0;
|
|
562
|
+
height: 0;
|
|
563
|
+
width: 0;
|
|
564
|
+
display: flex;
|
|
565
|
+
`),se("modal-mask",`
|
|
566
|
+
position: fixed;
|
|
567
|
+
left: 0;
|
|
568
|
+
right: 0;
|
|
569
|
+
top: 0;
|
|
570
|
+
bottom: 0;
|
|
571
|
+
background-color: rgba(0, 0, 0, .4);
|
|
572
|
+
`,[vl({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),se("modal-body-wrapper",`
|
|
573
|
+
position: fixed;
|
|
574
|
+
left: 0;
|
|
575
|
+
right: 0;
|
|
576
|
+
top: 0;
|
|
577
|
+
bottom: 0;
|
|
578
|
+
overflow: visible;
|
|
579
|
+
`,[se("modal-scroll-content",`
|
|
580
|
+
min-height: 100%;
|
|
581
|
+
display: flex;
|
|
582
|
+
position: relative;
|
|
583
|
+
`)]),se("modal",`
|
|
584
|
+
position: relative;
|
|
585
|
+
align-self: center;
|
|
586
|
+
color: var(--n-text-color);
|
|
587
|
+
margin: auto;
|
|
588
|
+
box-shadow: var(--n-box-shadow);
|
|
589
|
+
`,[Ew({duration:".25s",enterScale:".5"}),K(`.${Pa}`,`
|
|
590
|
+
cursor: move;
|
|
591
|
+
user-select: none;
|
|
592
|
+
`)])]),Th=Object.assign(Object.assign(Object.assign(Object.assign({},ht.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),yl),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),xl=Re({name:"Modal",inheritAttrs:!1,props:Th,slots:Object,setup(e){const t=te(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Ht(e),i=ht("Modal","-modal",vC,lC,e,n),s=rl(64),a=nl(),l=ol(),c=e.internalDialog?Oe(wh,null):null,u=e.internalModal?Oe(Am,null):null,f=Mm();function d(R){const{onUpdateShow:v,"onUpdate:show":y,onHide:T}=e;v&&tt(v,R),y&&tt(y,R),T&&!R&&T(R)}function h(){const{onClose:R}=e;R?Promise.resolve(R()).then(v=>{v!==!1&&d(!1)}):d(!1)}function p(){const{onPositiveClick:R}=e;R?Promise.resolve(R()).then(v=>{v!==!1&&d(!1)}):d(!1)}function m(){const{onNegativeClick:R}=e;R?Promise.resolve(R()).then(v=>{v!==!1&&d(!1)}):d(!1)}function C(){const{onBeforeLeave:R,onBeforeHide:v}=e;R&&tt(R),v&&v()}function w(){const{onAfterLeave:R,onAfterHide:v}=e;R&&tt(R),v&&v()}function E(R){var v;const{onMaskClick:y}=e;y&&y(R),e.maskClosable&&!((v=t.value)===null||v===void 0)&&v.contains(Ma(R))&&d(!1)}function B(R){var v;(v=e.onEsc)===null||v===void 0||v.call(e),e.show&&e.closeOnEsc&&mb(R)&&(f.value||d(!1))}Je(Od,{getMousePosition:()=>{const R=c||u;if(R){const{clickedRef:v,clickedPositionRef:y}=R;if(v.value&&y.value)return y.value}return s.value?a.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:l,appearRef:Mt(e,"internalAppear"),transformOriginRef:Mt(e,"transformOrigin")});const k=Q(()=>{const{common:{cubicBezierEaseOut:R},self:{boxShadow:v,color:y,textColor:T}}=i.value;return{"--n-bezier-ease-out":R,"--n-box-shadow":v,"--n-color":y,"--n-text-color":T}}),_=o?_n("theme-class",void 0,k,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:l,containerRef:t,presetProps:Q(()=>Io(e,hC)),handleEsc:B,handleAfterLeave:w,handleClickoutside:E,handleBeforeLeave:C,doUpdateShow:d,handleNegativeClick:m,handlePositiveClick:p,handleCloseClick:h,cssVars:o?void 0:k,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){const{mergedClsPrefix:e}=this;return I(Km,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return To(I("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},I(pC,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return I(Fn,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?I("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[jm,{zIndex:this.zIndex,enabled:this.show}]])}})}}),gC=Object.assign(Object.assign({},as),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),mC=Re({name:"DialogEnvironment",props:Object.assign(Object.assign({},gC),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=te(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&l()}):l()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(d=>{d!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&l()}):l()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&l())}function a(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:a}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:s,to:a,maskClosable:l,show:c}=this;return I(xl,{show:c,onUpdateShow:t,onMaskClick:i,onEsc:s,to:a,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:u})=>I(Eh,Object.assign({},Io(this.$props,_h),{titleClass:Dn([this.titleClass,u]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),bC={injectionKey:String,to:[String,Object]},yC=Re({name:"DialogProvider",props:bC,setup(){const e=te([]),t={};function n(a={}){const l=Lr(),c=Yt(Object.assign(Object.assign({},a),{key:l,destroy:()=>{var u;(u=t[`n-dialog-${l}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(a=>l=>n(Object.assign(Object.assign({},l),{type:a})));function o(a){const{value:l}=e;l.splice(l.findIndex(c=>c.key===a),1)}function i(){Object.values(t).forEach(a=>{a==null||a.hide()})}const s={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return Je(Ch,s),Je(wh,{clickedRef:rl(64),clickedPositionRef:nl()}),Je(tC,e),Object.assign(Object.assign({},s),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return I(Ye,null,[this.dialogList.map(n=>I(mC,Ji(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),Ph="n-loading-bar",$h="n-loading-bar-api";function xC(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const wC={common:Rn,self:xC},CC=se("loading-bar-container",`
|
|
593
|
+
z-index: 5999;
|
|
594
|
+
position: fixed;
|
|
595
|
+
top: 0;
|
|
596
|
+
left: 0;
|
|
597
|
+
right: 0;
|
|
598
|
+
height: 2px;
|
|
599
|
+
`,[vl({enterDuration:"0.3s",leaveDuration:"0.8s"}),se("loading-bar",`
|
|
600
|
+
width: 100%;
|
|
601
|
+
transition:
|
|
602
|
+
max-width 4s linear,
|
|
603
|
+
background .2s linear;
|
|
604
|
+
height: var(--n-height);
|
|
605
|
+
`,[ue("starting",`
|
|
606
|
+
background: var(--n-color-loading);
|
|
607
|
+
`),ue("finishing",`
|
|
608
|
+
background: var(--n-color-loading);
|
|
609
|
+
transition:
|
|
610
|
+
max-width .2s linear,
|
|
611
|
+
background .2s linear;
|
|
612
|
+
`),ue("error",`
|
|
613
|
+
background: var(--n-color-error);
|
|
614
|
+
transition:
|
|
615
|
+
max-width .2s linear,
|
|
616
|
+
background .2s linear;
|
|
617
|
+
`)])]);var ai=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(f){s(f)}}function l(u){try{c(r.throw(u))}catch(f){s(f)}}function c(u){u.done?i(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};function li(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const SC=Re({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Ht(),{props:t,mergedClsPrefixRef:n}=Oe(Ph),r=te(null),o=te(!1),i=te(!1),s=te(!1),a=te(!1);let l=!1;const c=te(!1),u=Q(()=>{const{loadingBarStyle:_}=t;return _?_[c.value?"error":"loading"]:""});function f(){return ai(this,void 0,void 0,function*(){o.value=!1,s.value=!1,l=!1,c.value=!1,a.value=!0,yield Rt(),a.value=!1})}function d(){return ai(this,arguments,void 0,function*(_=0,R=80,v="starting"){if(i.value=!0,yield f(),l)return;s.value=!0,yield Rt();const y=r.value;y&&(y.style.maxWidth=`${_}%`,y.style.transition="none",y.offsetWidth,y.className=li(v,n.value),y.style.transition="",y.style.maxWidth=`${R}%`)})}function h(){return ai(this,void 0,void 0,function*(){if(l||c.value)return;i.value&&(yield Rt()),l=!0;const _=r.value;_&&(_.className=li("finishing",n.value),_.style.maxWidth="100%",_.offsetWidth,s.value=!1)})}function p(){if(!(l||c.value))if(!s.value)d(100,100,"error").then(()=>{c.value=!0;const _=r.value;_&&(_.className=li("error",n.value),_.offsetWidth,s.value=!1)});else{c.value=!0;const _=r.value;if(!_)return;_.className=li("error",n.value),_.style.maxWidth="100%",_.offsetWidth,s.value=!1}}function m(){o.value=!0}function C(){o.value=!1}function w(){return ai(this,void 0,void 0,function*(){yield f()})}const E=ht("LoadingBar","-loading-bar",CC,wC,t,n),B=Q(()=>{const{self:{height:_,colorError:R,colorLoading:v}}=E.value;return{"--n-height":_,"--n-color-loading":v,"--n-color-error":R}}),k=e?_n("loading-bar",void 0,B,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:s,entering:o,transitionDisabled:a,start:d,error:p,finish:h,handleEnter:m,handleAfterEnter:C,handleAfterLeave:w,mergedLoadingBarStyle:u,cssVars:e?void 0:B,themeClass:k==null?void 0:k.themeClass,onRender:k==null?void 0:k.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return I(Fn,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),To(I("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},I("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[Pi,this.loading||!this.loading&&this.entering]])}})}}),_C=Object.assign(Object.assign({},ht.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),EC=Re({name:"LoadingBarProvider",props:_C,setup(e){const t=ol(),n=te(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():Rt(()=>{var s;(s=n.value)===null||s===void 0||s.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():Rt(()=>{var s;(s=n.value)===null||s===void 0||s.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():Rt(()=>{var s;(s=n.value)===null||s===void 0||s.finish()})}},{mergedClsPrefixRef:o}=Ht(e);return Je($h,r),Je(Ph,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return I(Ye,null,I(Fo,{disabled:this.to===!1,to:this.to||"body"},I(SC,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function RC(){const e=Oe($h,null);return e===null&&Fr("use-loading-bar","No outer <n-loading-bar-provider /> founded."),e}const Oh="n-message-api",kh="n-message-provider",TC={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function PC(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:s,errorColor:a,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:d,borderRadius:h,closeColorHover:p,closeColorPressed:m}=e;return Object.assign(Object.assign({},TC),{closeBorderRadius:h,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:l,iconColorError:a,iconColorLoading:f,closeColorHover:p,closeColorPressed:m,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:p,closeColorPressedInfo:m,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:p,closeColorPressedSuccess:m,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:p,closeColorPressedError:m,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:p,closeColorPressedWarning:m,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:p,closeColorPressedLoading:m,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:d,borderRadius:h})}const $C={common:Rn,self:PC},Ih={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},OC=K([se("message-wrapper",`
|
|
618
|
+
margin: var(--n-margin);
|
|
619
|
+
z-index: 0;
|
|
620
|
+
transform-origin: top center;
|
|
621
|
+
display: flex;
|
|
622
|
+
`,[kw({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),se("message",`
|
|
623
|
+
box-sizing: border-box;
|
|
624
|
+
display: flex;
|
|
625
|
+
align-items: center;
|
|
626
|
+
transition:
|
|
627
|
+
color .3s var(--n-bezier),
|
|
628
|
+
box-shadow .3s var(--n-bezier),
|
|
629
|
+
background-color .3s var(--n-bezier),
|
|
630
|
+
opacity .3s var(--n-bezier),
|
|
631
|
+
transform .3s var(--n-bezier),
|
|
632
|
+
margin-bottom .3s var(--n-bezier);
|
|
633
|
+
padding: var(--n-padding);
|
|
634
|
+
border-radius: var(--n-border-radius);
|
|
635
|
+
flex-wrap: nowrap;
|
|
636
|
+
overflow: hidden;
|
|
637
|
+
max-width: var(--n-max-width);
|
|
638
|
+
color: var(--n-text-color);
|
|
639
|
+
background-color: var(--n-color);
|
|
640
|
+
box-shadow: var(--n-box-shadow);
|
|
641
|
+
`,[le("content",`
|
|
642
|
+
display: inline-block;
|
|
643
|
+
line-height: var(--n-line-height);
|
|
644
|
+
font-size: var(--n-font-size);
|
|
645
|
+
`),le("icon",`
|
|
646
|
+
position: relative;
|
|
647
|
+
margin: var(--n-icon-margin);
|
|
648
|
+
height: var(--n-icon-size);
|
|
649
|
+
width: var(--n-icon-size);
|
|
650
|
+
font-size: var(--n-icon-size);
|
|
651
|
+
flex-shrink: 0;
|
|
652
|
+
`,[["default","info","success","warning","error","loading"].map(e=>ue(`${e}-type`,[K("> *",`
|
|
653
|
+
color: var(--n-icon-color-${e});
|
|
654
|
+
transition: color .3s var(--n-bezier);
|
|
655
|
+
`)])),K("> *",`
|
|
656
|
+
position: absolute;
|
|
657
|
+
left: 0;
|
|
658
|
+
top: 0;
|
|
659
|
+
right: 0;
|
|
660
|
+
bottom: 0;
|
|
661
|
+
`,[Mo()])]),le("close",`
|
|
662
|
+
margin: var(--n-close-margin);
|
|
663
|
+
transition:
|
|
664
|
+
background-color .3s var(--n-bezier),
|
|
665
|
+
color .3s var(--n-bezier);
|
|
666
|
+
flex-shrink: 0;
|
|
667
|
+
`,[K("&:hover",`
|
|
668
|
+
color: var(--n-close-icon-color-hover);
|
|
669
|
+
`),K("&:active",`
|
|
670
|
+
color: var(--n-close-icon-color-pressed);
|
|
671
|
+
`)])]),se("message-container",`
|
|
672
|
+
z-index: 6000;
|
|
673
|
+
position: fixed;
|
|
674
|
+
height: 0;
|
|
675
|
+
overflow: visible;
|
|
676
|
+
display: flex;
|
|
677
|
+
flex-direction: column;
|
|
678
|
+
align-items: center;
|
|
679
|
+
`,[ue("top",`
|
|
680
|
+
top: 12px;
|
|
681
|
+
left: 0;
|
|
682
|
+
right: 0;
|
|
683
|
+
`),ue("top-left",`
|
|
684
|
+
top: 12px;
|
|
685
|
+
left: 12px;
|
|
686
|
+
right: 0;
|
|
687
|
+
align-items: flex-start;
|
|
688
|
+
`),ue("top-right",`
|
|
689
|
+
top: 12px;
|
|
690
|
+
left: 0;
|
|
691
|
+
right: 12px;
|
|
692
|
+
align-items: flex-end;
|
|
693
|
+
`),ue("bottom",`
|
|
694
|
+
bottom: 4px;
|
|
695
|
+
left: 0;
|
|
696
|
+
right: 0;
|
|
697
|
+
justify-content: flex-end;
|
|
698
|
+
`),ue("bottom-left",`
|
|
699
|
+
bottom: 4px;
|
|
700
|
+
left: 12px;
|
|
701
|
+
right: 0;
|
|
702
|
+
justify-content: flex-end;
|
|
703
|
+
align-items: flex-start;
|
|
704
|
+
`),ue("bottom-right",`
|
|
705
|
+
bottom: 4px;
|
|
706
|
+
left: 0;
|
|
707
|
+
right: 12px;
|
|
708
|
+
justify-content: flex-end;
|
|
709
|
+
align-items: flex-end;
|
|
710
|
+
`)])]),kC={info:()=>I(Mi,null),success:()=>I(hl,null),warning:()=>I(pl,null),error:()=>I(dl,null),default:()=>null},IC=Re({name:"Message",props:Object.assign(Object.assign({},Ih),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=Ht(e),{props:r,mergedClsPrefixRef:o}=Oe(kh),i=ur("Message",n,o),s=ht("Message","-message",OC,$C,r,o),a=Q(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:d,maxWidth:h,iconMargin:p,closeMargin:m,closeSize:C,iconSize:w,fontSize:E,lineHeight:B,borderRadius:k,iconColorInfo:_,iconColorSuccess:R,iconColorWarning:v,iconColorError:y,iconColorLoading:T,closeIconSize:L,closeBorderRadius:D,[we("textColor",c)]:M,[we("boxShadow",c)]:Y,[we("color",c)]:ce,[we("closeColorHover",c)]:ye,[we("closeColorPressed",c)]:fe,[we("closeIconColor",c)]:q,[we("closeIconColorPressed",c)]:pe,[we("closeIconColorHover",c)]:ke}}=s.value;return{"--n-bezier":u,"--n-margin":d,"--n-padding":f,"--n-max-width":h,"--n-font-size":E,"--n-icon-margin":p,"--n-icon-size":w,"--n-close-icon-size":L,"--n-close-border-radius":D,"--n-close-size":C,"--n-close-margin":m,"--n-text-color":M,"--n-color":ce,"--n-box-shadow":Y,"--n-icon-color-info":_,"--n-icon-color-success":R,"--n-icon-color-warning":v,"--n-icon-color-error":y,"--n-icon-color-loading":T,"--n-close-color-hover":ye,"--n-close-color-pressed":fe,"--n-close-icon-color":q,"--n-close-icon-color-pressed":pe,"--n-close-icon-color-hover":ke,"--n-line-height":B,"--n-border-radius":k}}),l=t?_n("message",Q(()=>e.type[0]),a,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:s,onRender:a,icon:l,handleClose:c,showIcon:u}=this;a==null||a();let f;return I("div",{class:[`${o}-message-wrapper`,s],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):I("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=AC(l,t,o))&&u?I("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},I(is,null,{default:()=>f})):null,I("div",{class:`${o}-message__content`},Dt(r)),n?I(ss,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function AC(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?I(vh,{clsPrefix:n,strokeWidth:24,scale:.85}):kC[t]();return r?I(os,{clsPrefix:n,key:t},{default:()=>r}):null}}const zC=Re({name:"MessageEnvironment",props:Object.assign(Object.assign({},Ih),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=te(!0);qt(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(s,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function s(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function a(){const{onClose:u}=e;u&&u(),s()}function l(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:d,internalKey:h}=e;u&&u(),f&&f(h),d&&d()}function c(){s()}return{show:n,hide:s,handleClose:a,handleAfterLeave:l,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return I(ph,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?I(IC,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),MC=Object.assign(Object.assign({},ht.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),BC=Re({name:"MessageProvider",props:MC,setup(e){const{mergedClsPrefixRef:t}=Ht(e),n=te([]),r=te({}),o={create(l,c){return i(l,Object.assign({type:"default"},c))},info(l,c){return i(l,Object.assign(Object.assign({},c),{type:"info"}))},success(l,c){return i(l,Object.assign(Object.assign({},c),{type:"success"}))},warning(l,c){return i(l,Object.assign(Object.assign({},c),{type:"warning"}))},error(l,c){return i(l,Object.assign(Object.assign({},c),{type:"error"}))},loading(l,c){return i(l,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:a};Je(kh,{props:e,mergedClsPrefixRef:t}),Je(Oh,o);function i(l,c){const u=Lr(),f=Yt(Object.assign(Object.assign({},c),{content:l,key:u,destroy:()=>{var h;(h=r.value[u])===null||h===void 0||h.hide()}})),{max:d}=e;return d&&n.value.length>=d&&n.value.shift(),n.value.push(f),f}function s(l){n.value.splice(n.value.findIndex(c=>c.key===l),1),delete r.value[l]}function a(){Object.values(r.value).forEach(l=>{l.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},o)},render(){var e,t,n;return I(Ye,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?I(Fo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},I("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>I(zC,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Ji(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function LC(){const e=Oe(Oh,null);return e===null&&Fr("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const DC=Re({name:"ModalEnvironment",props:Object.assign(Object.assign({},Th),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=te(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:d}=e;u&&u(f),d&&d()}function r(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&l()}):l()}function o(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&l()}):l()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&l()}):l()}function s(u){const{onMaskClick:f,maskClosable:d}=e;f&&(f(u),d&&l())}function a(){const{onEsc:u}=e;u&&u()}function l(){t.value=!1}function c(u){t.value=u}return{show:t,hide:l,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:s,handleEsc:a}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:r,show:o}=this;return I(xl,Object.assign({},this.$props,{show:o,onUpdateShow:e,onMaskClick:n,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}))}}),FC={to:[String,Object]},HC=Re({name:"ModalProvider",props:FC,setup(){const e=te([]),t={};function n(s={}){const a=Lr(),l=Yt(Object.assign(Object.assign({},s),{key:a,destroy:()=>{var c;(c=t[`n-modal-${a}`])===null||c===void 0||c.hide()}}));return e.value.push(l),l}function r(s){const{value:a}=e;a.splice(a.findIndex(l=>l.key===s),1)}function o(){Object.values(t).forEach(s=>{s==null||s.hide()})}const i={create:n,destroyAll:o};return Je(Rh,i),Je(cC,{clickedRef:rl(64),clickedPositionRef:nl()}),Je(uC,e),Object.assign(Object.assign({},i),{modalList:e,modalInstRefs:t,handleAfterLeave:r})},render(){var e,t;return I(Ye,null,[this.modalList.map(n=>{var r;return I(DC,Ji(n,["destroy"],{to:(r=n.to)!==null&&r!==void 0?r:this.to,ref:o=>{o===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),jC={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function NC(e){const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:s,closeIconColor:a,closeIconColorHover:l,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:d,textColor3:h,borderRadius:p,fontWeightStrong:m,boxShadow2:C,lineHeight:w,fontSize:E}=e;return Object.assign(Object.assign({},jC),{borderRadius:p,lineHeight:w,fontSize:E,headerFontWeight:m,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:s,textColor:t,closeIconColor:a,closeIconColorHover:l,closeIconColorPressed:c,closeBorderRadius:p,closeColorHover:u,closeColorPressed:f,headerTextColor:d,descriptionTextColor:h,actionTextColor:t,boxShadow:C})}const WC={name:"Notification",common:Rn,peers:{Scrollbar:gl},self:NC},ls="n-notification-provider",VC=Re({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Oe(ls),r=te(null);return Ho(()=>{var o,i;n.value>0?(o=r==null?void 0:r.value)===null||o===void 0||o.classList.add("transitioning"):(i=r==null?void 0:r.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return I("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?I(ml,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),UC={info:()=>I(Mi,null),success:()=>I(hl,null),warning:()=>I(pl,null),error:()=>I(dl,null),default:()=>null},wl={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},KC=Qi(wl),GC=Re({name:"Notification",props:wl,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Oe(ls),{inlineThemeDisabled:o,mergedRtlRef:i}=Ht(),s=ur("Notification",i,t),a=Q(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:d,closeIconColorHover:h,closeIconColorPressed:p,headerTextColor:m,descriptionTextColor:C,actionTextColor:w,borderRadius:E,headerFontWeight:B,boxShadow:k,lineHeight:_,fontSize:R,closeMargin:v,closeSize:y,width:T,padding:L,closeIconSize:D,closeBorderRadius:M,closeColorHover:Y,closeColorPressed:ce,titleFontSize:ye,metaFontSize:fe,descriptionFontSize:q,[we("iconColor",c)]:pe},common:{cubicBezierEaseOut:ke,cubicBezierEaseIn:Me,cubicBezierEaseInOut:Pe}}=n.value,{left:Be,right:rt,top:ot,bottom:kt}=Bn(L);return{"--n-color":u,"--n-font-size":R,"--n-text-color":f,"--n-description-text-color":C,"--n-action-text-color":w,"--n-title-text-color":m,"--n-title-font-weight":B,"--n-bezier":Pe,"--n-bezier-ease-out":ke,"--n-bezier-ease-in":Me,"--n-border-radius":E,"--n-box-shadow":k,"--n-close-border-radius":M,"--n-close-color-hover":Y,"--n-close-color-pressed":ce,"--n-close-icon-color":d,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":p,"--n-line-height":_,"--n-icon-color":pe,"--n-close-margin":v,"--n-close-size":y,"--n-close-icon-size":D,"--n-width":T,"--n-padding-left":Be,"--n-padding-right":rt,"--n-padding-top":ot,"--n-padding-bottom":kt,"--n-title-font-size":ye,"--n-meta-font-size":fe,"--n-description-font-size":q}}),l=o?_n("notification",Q(()=>e.type[0]),a,r):void 0;return{mergedClsPrefix:t,showAvatar:Q(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:s,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),I("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},I("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?I("div",{class:`${t}-notification__avatar`},this.avatar?Dt(this.avatar):this.type!=="default"?I(os,{clsPrefix:t},{default:()=>UC[this.type]()}):null):null,this.closable?I(ss,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,I("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?I("div",{class:`${t}-notification-main__header`},Dt(this.title)):null,this.description?I("div",{class:`${t}-notification-main__description`},Dt(this.description)):null,this.content?I("pre",{class:`${t}-notification-main__content`},Dt(this.content)):null,this.meta||this.action?I("div",{class:`${t}-notification-main-footer`},this.meta?I("div",{class:`${t}-notification-main-footer__meta`},Dt(this.meta)):null,this.action?I("div",{class:`${t}-notification-main-footer__action`},Dt(this.action)):null):null)))}}),YC=Object.assign(Object.assign({},wl),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),qC=Re({name:"NotificationEnvironment",props:Object.assign(Object.assign({},YC),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Oe(ls),n=te(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(p){t.value++,Rt(()=>{p.style.height=`${p.offsetHeight}px`,p.style.maxHeight="0",p.style.transition="none",p.offsetHeight,p.style.transition="",p.style.maxHeight=p.style.height})}function s(p){t.value--,p.style.height="",p.style.maxHeight="";const{onAfterEnter:m,onAfterShow:C}=e;m&&m(),C&&C()}function a(p){t.value++,p.style.maxHeight=`${p.offsetHeight}px`,p.style.height=`${p.offsetHeight}px`,p.offsetHeight}function l(p){const{onHide:m}=e;m&&m(),p.style.maxHeight="0",p.offsetHeight}function c(){t.value--;const{onAfterLeave:p,onInternalAfterLeave:m,onAfterHide:C,internalKey:w}=e;p&&p(),m(w),C&&C()}function u(){const{duration:p}=e;p&&(r=window.setTimeout(o,p))}function f(p){p.currentTarget===p.target&&r!==null&&(window.clearTimeout(r),r=null)}function d(p){p.currentTarget===p.target&&u()}function h(){const{onClose:p}=e;p?Promise.resolve(p()).then(m=>{m!==!1&&o()}):o()}return qt(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:h,handleAfterLeave:c,handleLeave:l,handleBeforeLeave:a,handleAfterEnter:s,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:d}},render(){return I(Fn,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?I(GC,Object.assign({},Io(this.$props,KC),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),XC=K([se("notification-container",`
|
|
711
|
+
z-index: 4000;
|
|
712
|
+
position: fixed;
|
|
713
|
+
overflow: visible;
|
|
714
|
+
display: flex;
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
align-items: flex-end;
|
|
717
|
+
`,[K(">",[se("scrollbar",`
|
|
718
|
+
width: initial;
|
|
719
|
+
overflow: visible;
|
|
720
|
+
height: -moz-fit-content !important;
|
|
721
|
+
height: fit-content !important;
|
|
722
|
+
max-height: 100vh !important;
|
|
723
|
+
`,[K(">",[se("scrollbar-container",`
|
|
724
|
+
height: -moz-fit-content !important;
|
|
725
|
+
height: fit-content !important;
|
|
726
|
+
max-height: 100vh !important;
|
|
727
|
+
`,[se("scrollbar-content",`
|
|
728
|
+
padding-top: 12px;
|
|
729
|
+
padding-bottom: 33px;
|
|
730
|
+
`)])])])]),ue("top, top-right, top-left",`
|
|
731
|
+
top: 12px;
|
|
732
|
+
`,[K("&.transitioning >",[se("scrollbar",[K(">",[se("scrollbar-container",`
|
|
733
|
+
min-height: 100vh !important;
|
|
734
|
+
`)])])])]),ue("bottom, bottom-right, bottom-left",`
|
|
735
|
+
bottom: 12px;
|
|
736
|
+
`,[K(">",[se("scrollbar",[K(">",[se("scrollbar-container",[se("scrollbar-content",`
|
|
737
|
+
padding-bottom: 12px;
|
|
738
|
+
`)])])])]),se("notification-wrapper",`
|
|
739
|
+
display: flex;
|
|
740
|
+
align-items: flex-end;
|
|
741
|
+
margin-bottom: 0;
|
|
742
|
+
margin-top: 12px;
|
|
743
|
+
`)]),ue("top, bottom",`
|
|
744
|
+
left: 50%;
|
|
745
|
+
transform: translateX(-50%);
|
|
746
|
+
`,[se("notification-wrapper",[K("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
747
|
+
transform: scale(0.85);
|
|
748
|
+
`),K("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
749
|
+
transform: scale(1);
|
|
750
|
+
`)])]),ue("top",[se("notification-wrapper",`
|
|
751
|
+
transform-origin: top center;
|
|
752
|
+
`)]),ue("bottom",[se("notification-wrapper",`
|
|
753
|
+
transform-origin: bottom center;
|
|
754
|
+
`)]),ue("top-right, bottom-right",[se("notification",`
|
|
755
|
+
margin-left: 28px;
|
|
756
|
+
margin-right: 16px;
|
|
757
|
+
`)]),ue("top-left, bottom-left",[se("notification",`
|
|
758
|
+
margin-left: 16px;
|
|
759
|
+
margin-right: 28px;
|
|
760
|
+
`)]),ue("top-right",`
|
|
761
|
+
right: 0;
|
|
762
|
+
`,[ci("top-right")]),ue("top-left",`
|
|
763
|
+
left: 0;
|
|
764
|
+
`,[ci("top-left")]),ue("bottom-right",`
|
|
765
|
+
right: 0;
|
|
766
|
+
`,[ci("bottom-right")]),ue("bottom-left",`
|
|
767
|
+
left: 0;
|
|
768
|
+
`,[ci("bottom-left")]),ue("scrollable",[ue("top-right",`
|
|
769
|
+
top: 0;
|
|
770
|
+
`),ue("top-left",`
|
|
771
|
+
top: 0;
|
|
772
|
+
`),ue("bottom-right",`
|
|
773
|
+
bottom: 0;
|
|
774
|
+
`),ue("bottom-left",`
|
|
775
|
+
bottom: 0;
|
|
776
|
+
`)]),se("notification-wrapper",`
|
|
777
|
+
margin-bottom: 12px;
|
|
778
|
+
`,[K("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
779
|
+
opacity: 0;
|
|
780
|
+
margin-top: 0 !important;
|
|
781
|
+
margin-bottom: 0 !important;
|
|
782
|
+
`),K("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
783
|
+
opacity: 1;
|
|
784
|
+
`),K("&.notification-transition-leave-active",`
|
|
785
|
+
transition:
|
|
786
|
+
background-color .3s var(--n-bezier),
|
|
787
|
+
color .3s var(--n-bezier),
|
|
788
|
+
opacity .3s var(--n-bezier),
|
|
789
|
+
transform .3s var(--n-bezier-ease-in),
|
|
790
|
+
max-height .3s var(--n-bezier),
|
|
791
|
+
margin-top .3s linear,
|
|
792
|
+
margin-bottom .3s linear,
|
|
793
|
+
box-shadow .3s var(--n-bezier);
|
|
794
|
+
`),K("&.notification-transition-enter-active",`
|
|
795
|
+
transition:
|
|
796
|
+
background-color .3s var(--n-bezier),
|
|
797
|
+
color .3s var(--n-bezier),
|
|
798
|
+
opacity .3s var(--n-bezier),
|
|
799
|
+
transform .3s var(--n-bezier-ease-out),
|
|
800
|
+
max-height .3s var(--n-bezier),
|
|
801
|
+
margin-top .3s linear,
|
|
802
|
+
margin-bottom .3s linear,
|
|
803
|
+
box-shadow .3s var(--n-bezier);
|
|
804
|
+
`)]),se("notification",`
|
|
805
|
+
background-color: var(--n-color);
|
|
806
|
+
color: var(--n-text-color);
|
|
807
|
+
transition:
|
|
808
|
+
background-color .3s var(--n-bezier),
|
|
809
|
+
color .3s var(--n-bezier),
|
|
810
|
+
opacity .3s var(--n-bezier),
|
|
811
|
+
box-shadow .3s var(--n-bezier);
|
|
812
|
+
font-family: inherit;
|
|
813
|
+
font-size: var(--n-font-size);
|
|
814
|
+
font-weight: 400;
|
|
815
|
+
position: relative;
|
|
816
|
+
display: flex;
|
|
817
|
+
overflow: hidden;
|
|
818
|
+
flex-shrink: 0;
|
|
819
|
+
padding-left: var(--n-padding-left);
|
|
820
|
+
padding-right: var(--n-padding-right);
|
|
821
|
+
width: var(--n-width);
|
|
822
|
+
max-width: calc(100vw - 16px - 16px);
|
|
823
|
+
border-radius: var(--n-border-radius);
|
|
824
|
+
box-shadow: var(--n-box-shadow);
|
|
825
|
+
box-sizing: border-box;
|
|
826
|
+
opacity: 1;
|
|
827
|
+
`,[le("avatar",[se("icon",`
|
|
828
|
+
color: var(--n-icon-color);
|
|
829
|
+
`),se("base-icon",`
|
|
830
|
+
color: var(--n-icon-color);
|
|
831
|
+
`)]),ue("show-avatar",[se("notification-main",`
|
|
832
|
+
margin-left: 40px;
|
|
833
|
+
width: calc(100% - 40px);
|
|
834
|
+
`)]),ue("closable",[se("notification-main",[K("> *:first-child",`
|
|
835
|
+
padding-right: 20px;
|
|
836
|
+
`)]),le("close",`
|
|
837
|
+
position: absolute;
|
|
838
|
+
top: 0;
|
|
839
|
+
right: 0;
|
|
840
|
+
margin: var(--n-close-margin);
|
|
841
|
+
transition:
|
|
842
|
+
background-color .3s var(--n-bezier),
|
|
843
|
+
color .3s var(--n-bezier);
|
|
844
|
+
`)]),le("avatar",`
|
|
845
|
+
position: absolute;
|
|
846
|
+
top: var(--n-padding-top);
|
|
847
|
+
left: var(--n-padding-left);
|
|
848
|
+
width: 28px;
|
|
849
|
+
height: 28px;
|
|
850
|
+
font-size: 28px;
|
|
851
|
+
display: flex;
|
|
852
|
+
align-items: center;
|
|
853
|
+
justify-content: center;
|
|
854
|
+
`,[se("icon","transition: color .3s var(--n-bezier);")]),se("notification-main",`
|
|
855
|
+
padding-top: var(--n-padding-top);
|
|
856
|
+
padding-bottom: var(--n-padding-bottom);
|
|
857
|
+
box-sizing: border-box;
|
|
858
|
+
display: flex;
|
|
859
|
+
flex-direction: column;
|
|
860
|
+
margin-left: 8px;
|
|
861
|
+
width: calc(100% - 8px);
|
|
862
|
+
`,[se("notification-main-footer",`
|
|
863
|
+
display: flex;
|
|
864
|
+
align-items: center;
|
|
865
|
+
justify-content: space-between;
|
|
866
|
+
margin-top: 12px;
|
|
867
|
+
`,[le("meta",`
|
|
868
|
+
font-size: var(--n-meta-font-size);
|
|
869
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
870
|
+
color: var(--n-description-text-color);
|
|
871
|
+
`),le("action",`
|
|
872
|
+
cursor: pointer;
|
|
873
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
874
|
+
color: var(--n-action-text-color);
|
|
875
|
+
`)]),le("header",`
|
|
876
|
+
font-weight: var(--n-title-font-weight);
|
|
877
|
+
font-size: var(--n-title-font-size);
|
|
878
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
879
|
+
color: var(--n-title-text-color);
|
|
880
|
+
`),le("description",`
|
|
881
|
+
margin-top: 8px;
|
|
882
|
+
font-size: var(--n-description-font-size);
|
|
883
|
+
white-space: pre-wrap;
|
|
884
|
+
word-wrap: break-word;
|
|
885
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
886
|
+
color: var(--n-description-text-color);
|
|
887
|
+
`),le("content",`
|
|
888
|
+
line-height: var(--n-line-height);
|
|
889
|
+
margin: 12px 0 0 0;
|
|
890
|
+
font-family: inherit;
|
|
891
|
+
white-space: pre-wrap;
|
|
892
|
+
word-wrap: break-word;
|
|
893
|
+
transition: color .3s var(--n-bezier-ease-out);
|
|
894
|
+
color: var(--n-text-color);
|
|
895
|
+
`,[K("&:first-child","margin: 0;")])])])])]);function ci(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return se("notification-wrapper",[K("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
896
|
+
transform: translate(${n}, 0);
|
|
897
|
+
`),K("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
898
|
+
transform: translate(0, 0);
|
|
899
|
+
`)])}const Ah="n-notification-api",ZC=Object.assign(Object.assign({},ht.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),QC=Re({name:"NotificationProvider",props:ZC,setup(e){const{mergedClsPrefixRef:t}=Ht(e),n=te([]),r={},o=new Set;function i(h){const p=Lr(),m=()=>{o.add(p),r[p]&&r[p].hide()},C=Yt(Object.assign(Object.assign({},h),{key:p,destroy:m,hide:m,deactivate:m})),{max:w}=e;if(w&&n.value.length-o.size>=w){let E=!1,B=0;for(const k of n.value){if(!o.has(k.key)){r[k.key]&&(k.destroy(),E=!0);break}B++}E||n.value.splice(B,1)}return n.value.push(C),C}const s=["info","success","warning","error"].map(h=>p=>i(Object.assign(Object.assign({},p),{type:h})));function a(h){o.delete(h),n.value.splice(n.value.findIndex(p=>p.key===h),1)}const l=ht("Notification","-notification",XC,WC,e,t),c={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:d},u=te(0);Je(Ah,c),Je(ls,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:u});function f(h){return i(h)}function d(){Object.values(n.value).forEach(h=>{h.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:a},c)},render(){var e,t,n;const{placement:r}=this;return I(Ye,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?I(Fo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},I(VC,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>I(qC,Object.assign({ref:i=>{const s=o.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},Ji(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function JC(){const e=Oe(Ah,null);return e===null&&Fr("use-notification","No outer `n-notification-provider` found."),e}const e1=Re({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),t1={message:LC,notification:JC,loadingBar:RC,dialog:nC,modal:fC};function n1({providersAndProps:e,configProviderProps:t}){let n=Ed(o);const r={app:n};function o(){return I(xh,We(t),{default:()=>e.map(({type:a,Provider:l,props:c})=>I(l,We(c),{default:()=>I(e1,{onSetup:()=>r[a]=t1[a]()})}))})}let i;return Dr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){Or("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},r)}function r1(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(c=>{switch(c){case"message":a.push({type:c,Provider:BC,props:n});break;case"notification":a.push({type:c,Provider:QC,props:o});break;case"dialog":a.push({type:c,Provider:yC,props:r});break;case"loadingBar":a.push({type:c,Provider:EC,props:i});break;case"modal":a.push({type:c,Provider:HC,props:s})}}),n1({providersAndProps:a,configProviderProps:t})}/*!
|
|
900
|
+
* vue-router v4.5.0
|
|
901
|
+
* (c) 2024 Eduardo San Martin Morote
|
|
902
|
+
* @license MIT
|
|
903
|
+
*/const wr=typeof document<"u";function zh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function o1(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zh(e.default)}const Fe=Object.assign;function Js(e,t){const n={};for(const r in t){const o=t[r];n[r]=tn(o)?o.map(e):e(o)}return n}const go=()=>{},tn=Array.isArray,Mh=/#/g,i1=/&/g,s1=/\//g,a1=/=/g,l1=/\?/g,Bh=/\+/g,c1=/%5B/g,u1=/%5D/g,Lh=/%5E/g,f1=/%60/g,Dh=/%7B/g,d1=/%7C/g,Fh=/%7D/g,h1=/%20/g;function Cl(e){return encodeURI(""+e).replace(d1,"|").replace(c1,"[").replace(u1,"]")}function p1(e){return Cl(e).replace(Dh,"{").replace(Fh,"}").replace(Lh,"^")}function $a(e){return Cl(e).replace(Bh,"%2B").replace(h1,"+").replace(Mh,"%23").replace(i1,"%26").replace(f1,"`").replace(Dh,"{").replace(Fh,"}").replace(Lh,"^")}function v1(e){return $a(e).replace(a1,"%3D")}function g1(e){return Cl(e).replace(Mh,"%23").replace(l1,"%3F")}function m1(e){return e==null?"":g1(e).replace(s1,"%2F")}function Bo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const b1=/\/$/,y1=e=>e.replace(b1,"");function ea(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=S1(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:Bo(s)}}function x1(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function w1(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ir(t.matched[r],n.matched[o])&&Hh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ir(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!C1(e[n],t[n]))return!1;return!0}function C1(e,t){return tn(e)?yu(e,t):tn(t)?yu(t,e):e===t}function yu(e,t){return tn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function S1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const $n={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Lo;(function(e){e.pop="pop",e.push="push"})(Lo||(Lo={}));var mo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mo||(mo={}));function _1(e){if(!e)if(wr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),y1(e)}const E1=/^[^#]+#/;function R1(e,t){return e.replace(E1,"#")+t}function T1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const cs=()=>({left:window.scrollX,top:window.scrollY});function P1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=T1(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function xu(e,t){return(history.state?history.state.position-t:-1)+e}const Oa=new Map;function $1(e,t){Oa.set(e,t)}function O1(e){const t=Oa.get(e);return Oa.delete(e),t}let k1=()=>location.protocol+"//"+location.host;function jh(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),bu(l,"")}return bu(n,e)+r+o}function I1(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const h=jh(e,location),p=n.value,m=t.value;let C=0;if(d){if(n.value=h,t.value=d,s&&s===p){s=null;return}C=m?d.position-m.position:0}else r(h);o.forEach(w=>{w(n.value,p,{delta:C,type:Lo.pop,direction:C?C>0?mo.forward:mo.back:mo.unknown})})};function l(){s=n.value}function c(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(Fe({},d.state,{scroll:cs()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function wu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?cs():null}}function A1(e){const{history:t,location:n}=window,r={value:jh(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:k1()+e+l;try{t[u?"replaceState":"pushState"](c,"",d),o.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function s(l,c){const u=Fe({},t.state,wu(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=Fe({},o.value,t.state,{forward:l,scroll:cs()});i(u.current,u,!0);const f=Fe({},wu(r.value,l,null),{position:u.position+1},c);i(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function z1(e){e=_1(e);const t=A1(e),n=I1(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=Fe({location:"",base:e,go:r,createHref:R1.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function M1(e){return typeof e=="string"||e&&typeof e=="object"}function Nh(e){return typeof e=="string"||typeof e=="symbol"}const Wh=Symbol("");var Cu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Cu||(Cu={}));function Ar(e,t){return Fe(new Error,{type:e,[Wh]:!0},t)}function vn(e,t){return e instanceof Error&&Wh in e&&(t==null||!!(e.type&t))}const Su="[^/]+?",B1={sensitive:!1,strict:!1,start:!0,end:!0},L1=/[.+*?^${}()[\]/\\]/g;function D1(e,t){const n=Fe({},B1,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;f<c.length;f++){const d=c[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(L1,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:m,optional:C,regexp:w}=d;i.push({name:p,repeatable:m,optional:C});const E=w||Su;if(E!==Su){h+=10;try{new RegExp(`(${E})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${p}" (${E}): `+k.message)}}let B=m?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(B=C&&c.length<2?`(?:/${B})`:"/"+B),C&&(B+="?"),o+=B,h+=20,C&&(h+=-8),m&&(h+=-20),E===".*"&&(h+=-50)}u.push(h)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(c){const u=c.match(s),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",p=i[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(c){let u="",f=!1;for(const d of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:m,optional:C}=h,w=p in c?c[p]:"";if(tn(w)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const E=tn(w)?w.join("/"):w;if(!E)if(C)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=E}}return u||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function F1(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vh(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=F1(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(_u(r))return 1;if(_u(o))return-1}return o.length-r.length}function _u(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const H1={type:0,value:""},j1=/[a-zA-Z0-9_]/;function N1(e){if(!e)return[[]];if(e==="/")return[[H1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(c&&f(),s()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:j1.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),s(),o}function W1(e,t,n){const r=D1(N1(e.path),n),o=Fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function V1(e,t){const n=[],r=new Map;t=Pu({strict:!1,end:!0,sensitive:!1},t);function o(f){return r.get(f)}function i(f,d,h){const p=!h,m=Ru(f);m.aliasOf=h&&h.record;const C=Pu(t,f),w=[m];if("alias"in f){const k=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of k)w.push(Ru(Fe({},m,{components:h?h.record.components:m.components,path:_,aliasOf:h?h.record:m})))}let E,B;for(const k of w){const{path:_}=k;if(d&&_[0]!=="/"){const R=d.record.path,v=R[R.length-1]==="/"?"":"/";k.path=d.record.path+(_&&v+_)}if(E=W1(k,d,C),h?h.alias.push(E):(B=B||E,B!==E&&B.alias.push(E),p&&f.name&&!Tu(E)&&s(f.name)),Uh(E)&&l(E),m.children){const R=m.children;for(let v=0;v<R.length;v++)i(R[v],E,h&&h.children[v])}h=h||E}return B?()=>{s(B)}:go}function s(f){if(Nh(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=G1(f,n);n.splice(d,0,f),f.record.name&&!Tu(f)&&r.set(f.record.name,f)}function c(f,d){let h,p={},m,C;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ar(1,{location:f});C=h.record.name,p=Fe(Eu(d.params,h.keys.filter(B=>!B.optional).concat(h.parent?h.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),f.params&&Eu(f.params,h.keys.map(B=>B.name))),m=h.stringify(p)}else if(f.path!=null)m=f.path,h=n.find(B=>B.re.test(m)),h&&(p=h.parse(m),C=h.record.name);else{if(h=d.name?r.get(d.name):n.find(B=>B.re.test(d.path)),!h)throw Ar(1,{location:f,currentLocation:d});C=h.record.name,p=Fe({},d.params,f.params),m=h.stringify(p)}const w=[];let E=h;for(;E;)w.unshift(E.record),E=E.parent;return{name:C,path:m,params:p,matched:w,meta:K1(w)}}e.forEach(f=>i(f));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:s,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function Eu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ru(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:U1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function U1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Tu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function K1(e){return e.reduce((t,n)=>Fe(t,n.meta),{})}function Pu(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function G1(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Vh(e,t[i])<0?r=i:n=i+1}const o=Y1(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Y1(e){let t=e;for(;t=t.parent;)if(Uh(t)&&Vh(e,t)===0)return t}function Uh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function q1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Bh," "),s=i.indexOf("="),a=Bo(s<0?i:i.slice(0,s)),l=s<0?null:Bo(i.slice(s+1));if(a in t){let c=t[a];tn(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function $u(e){let t="";for(let n in e){const r=e[n];if(n=v1(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(tn(r)?r.map(i=>i&&$a(i)):[r&&$a(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function X1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=tn(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Z1=Symbol(""),Ou=Symbol(""),us=Symbol(""),Sl=Symbol(""),ka=Symbol("");function eo(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Mn(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const c=d=>{d===!1?l(Ar(4,{from:n,to:t})):d instanceof Error?l(d):M1(d)?l(Ar(2,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},u=i(()=>e.call(r&&r.instances[o],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function ta(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(zh(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Mn(u,n,r,s,a,o))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=o1(u)?u.default:u;s.mods[a]=u,s.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Mn(h,n,r,s,a,o)()}))}}return i}function ku(e){const t=Oe(us),n=Oe(Sl),r=Q(()=>{const l=We(e.to);return t.resolve(l)}),o=Q(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Ir.bind(null,u));if(d>-1)return d;const h=Iu(l[c-2]);return c>1&&Iu(u)===h&&f[f.length-1].path!==h?f.findIndex(Ir.bind(null,l[c-2])):d}),i=Q(()=>o.value>-1&&nS(n.params,r.value.params)),s=Q(()=>o.value>-1&&o.value===n.matched.length-1&&Hh(n.params,r.value.params));function a(l={}){if(tS(l)){const c=t[We(e.replace)?"replace":"push"](We(e.to)).catch(go);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:Q(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function Q1(e){return e.length===1?e[0]:e}const J1=Re({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ku,setup(e,{slots:t}){const n=Yt(ku(e)),{options:r}=Oe(us),o=Q(()=>({[Au(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Au(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Q1(t.default(n));return e.custom?i:I("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),eS=J1;function tS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function nS(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!tn(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function Iu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Au=(e,t,n)=>e!=null?e:t!=null?t:n,rS=Re({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Oe(ka),o=Q(()=>e.route||r.value),i=Oe(Ou,0),s=Q(()=>{let c=We(i);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Q(()=>o.value.matched[s.value]);Je(Ou,Q(()=>s.value+1)),Je(Z1,a),Je(ka,o);const l=te();return et(()=>[l.value,a.value,e.name],([c,u,f],[d,h,p])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ir(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,d=f&&f.components[u];if(!d)return zu(n.default,{Component:d,route:c});const h=f.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,C=I(d,Fe({},p,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return zu(n.default,{Component:C,route:c})||C}}});function zu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kh=rS;function oS(e){const t=V1(e.routes,e),n=e.parseQuery||q1,r=e.stringifyQuery||$u,o=e.history,i=eo(),s=eo(),a=eo(),l=Ut($n);let c=$n;wr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Js.bind(null,H=>""+H),f=Js.bind(null,m1),d=Js.bind(null,Bo);function h(H,ie){let U,de;return Nh(H)?(U=t.getRecordMatcher(H),de=ie):de=H,t.addRoute(de,U)}function p(H){const ie=t.getRecordMatcher(H);ie&&t.removeRoute(ie)}function m(){return t.getRoutes().map(H=>H.record)}function C(H){return!!t.getRecordMatcher(H)}function w(H,ie){if(ie=Fe({},ie||l.value),typeof H=="string"){const z=ea(n,H,ie.path),F=t.resolve({path:z.path},ie),V=o.createHref(z.fullPath);return Fe(z,F,{params:d(F.params),hash:Bo(z.hash),redirectedFrom:void 0,href:V})}let U;if(H.path!=null)U=Fe({},H,{path:ea(n,H.path,ie.path).path});else{const z=Fe({},H.params);for(const F in z)z[F]==null&&delete z[F];U=Fe({},H,{params:f(z)}),ie.params=f(ie.params)}const de=t.resolve(U,ie),Ie=H.hash||"";de.params=u(d(de.params));const x=x1(r,Fe({},H,{hash:p1(Ie),path:de.path})),S=o.createHref(x);return Fe({fullPath:x,hash:Ie,query:r===$u?X1(H.query):H.query||{}},de,{redirectedFrom:void 0,href:S})}function E(H){return typeof H=="string"?ea(n,H,l.value.path):Fe({},H)}function B(H,ie){if(c!==H)return Ar(8,{from:ie,to:H})}function k(H){return v(H)}function _(H){return k(Fe(E(H),{replace:!0}))}function R(H){const ie=H.matched[H.matched.length-1];if(ie&&ie.redirect){const{redirect:U}=ie;let de=typeof U=="function"?U(H):U;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=E(de):{path:de},de.params={}),Fe({query:H.query,hash:H.hash,params:de.path!=null?{}:H.params},de)}}function v(H,ie){const U=c=w(H),de=l.value,Ie=H.state,x=H.force,S=H.replace===!0,z=R(U);if(z)return v(Fe(E(z),{state:typeof z=="object"?Fe({},Ie,z.state):Ie,force:x,replace:S}),ie||U);const F=U;F.redirectedFrom=ie;let V;return!x&&w1(r,de,U)&&(V=Ar(16,{to:F,from:de}),Pe(de,de,!0,!1)),(V?Promise.resolve(V):L(F,de)).catch(j=>vn(j)?vn(j,2)?j:Me(j):pe(j,F,de)).then(j=>{if(j){if(vn(j,2))return v(Fe({replace:S},E(j.to),{state:typeof j.to=="object"?Fe({},Ie,j.to.state):Ie,force:x}),ie||F)}else j=M(F,de,!0,S,Ie);return D(F,de,j),j})}function y(H,ie){const U=B(H,ie);return U?Promise.reject(U):Promise.resolve()}function T(H){const ie=ot.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(H):H()}function L(H,ie){let U;const[de,Ie,x]=iS(H,ie);U=ta(de.reverse(),"beforeRouteLeave",H,ie);for(const z of de)z.leaveGuards.forEach(F=>{U.push(Mn(F,H,ie))});const S=y.bind(null,H,ie);return U.push(S),_e(U).then(()=>{U=[];for(const z of i.list())U.push(Mn(z,H,ie));return U.push(S),_e(U)}).then(()=>{U=ta(Ie,"beforeRouteUpdate",H,ie);for(const z of Ie)z.updateGuards.forEach(F=>{U.push(Mn(F,H,ie))});return U.push(S),_e(U)}).then(()=>{U=[];for(const z of x)if(z.beforeEnter)if(tn(z.beforeEnter))for(const F of z.beforeEnter)U.push(Mn(F,H,ie));else U.push(Mn(z.beforeEnter,H,ie));return U.push(S),_e(U)}).then(()=>(H.matched.forEach(z=>z.enterCallbacks={}),U=ta(x,"beforeRouteEnter",H,ie,T),U.push(S),_e(U))).then(()=>{U=[];for(const z of s.list())U.push(Mn(z,H,ie));return U.push(S),_e(U)}).catch(z=>vn(z,8)?z:Promise.reject(z))}function D(H,ie,U){a.list().forEach(de=>T(()=>de(H,ie,U)))}function M(H,ie,U,de,Ie){const x=B(H,ie);if(x)return x;const S=ie===$n,z=wr?history.state:{};U&&(de||S?o.replace(H.fullPath,Fe({scroll:S&&z&&z.scroll},Ie)):o.push(H.fullPath,Ie)),l.value=H,Pe(H,ie,U,S),Me()}let Y;function ce(){Y||(Y=o.listen((H,ie,U)=>{if(!kt.listening)return;const de=w(H),Ie=R(de);if(Ie){v(Fe(Ie,{replace:!0,force:!0}),de).catch(go);return}c=de;const x=l.value;wr&&$1(xu(x.fullPath,U.delta),cs()),L(de,x).catch(S=>vn(S,12)?S:vn(S,2)?(v(Fe(E(S.to),{force:!0}),de).then(z=>{vn(z,20)&&!U.delta&&U.type===Lo.pop&&o.go(-1,!1)}).catch(go),Promise.reject()):(U.delta&&o.go(-U.delta,!1),pe(S,de,x))).then(S=>{S=S||M(de,x,!1),S&&(U.delta&&!vn(S,8)?o.go(-U.delta,!1):U.type===Lo.pop&&vn(S,20)&&o.go(-1,!1)),D(de,x,S)}).catch(go)}))}let ye=eo(),fe=eo(),q;function pe(H,ie,U){Me(H);const de=fe.list();return de.length?de.forEach(Ie=>Ie(H,ie,U)):console.error(H),Promise.reject(H)}function ke(){return q&&l.value!==$n?Promise.resolve():new Promise((H,ie)=>{ye.add([H,ie])})}function Me(H){return q||(q=!H,ce(),ye.list().forEach(([ie,U])=>H?U(H):ie()),ye.reset()),H}function Pe(H,ie,U,de){const{scrollBehavior:Ie}=e;if(!wr||!Ie)return Promise.resolve();const x=!U&&O1(xu(H.fullPath,0))||(de||!U)&&history.state&&history.state.scroll||null;return Rt().then(()=>Ie(H,ie,x)).then(S=>S&&P1(S)).catch(S=>pe(S,H,ie))}const Be=H=>o.go(H);let rt;const ot=new Set,kt={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:m,resolve:w,options:e,push:k,replace:_,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:fe.add,isReady:ke,install(H){const ie=this;H.component("RouterLink",eS),H.component("RouterView",Kh),H.config.globalProperties.$router=ie,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>We(l)}),wr&&!rt&&l.value===$n&&(rt=!0,k(o.location).catch(Ie=>{}));const U={};for(const Ie in $n)Object.defineProperty(U,Ie,{get:()=>l.value[Ie],enumerable:!0});H.provide(us,ie),H.provide(Sl,Rf(U)),H.provide(ka,l);const de=H.unmount;ot.add(H),H.unmount=function(){ot.delete(H),ot.size<1&&(c=$n,Y&&Y(),Y=null,l.value=$n,rt=!1,q=!1),de()}}};function _e(H){return H.reduce((ie,U)=>ie.then(()=>T(U)),Promise.resolve())}return kt}function iS(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(c=>Ir(c,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(c=>Ir(c,l))||o.push(l))}return[n,r,o]}function P_(){return Oe(us)}function $_(e){return Oe(Sl)}/*!
|
|
904
|
+
* pinia v3.0.1
|
|
905
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
906
|
+
* @license MIT
|
|
907
|
+
*/let Gh;const fs=e=>Gh=e,Yh=Symbol();function Ia(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bo||(bo={}));function sS(){const e=uf(!0),t=e.run(()=>te({}));let n=[],r=[];const o=Eo({install(i){fs(o),o._a=i,i.provide(Yh,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return this._a?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const qh=()=>{};function Mu(e,t,n,r=qh){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&ja()&&ff(o),o}function mr(e,...t){e.slice().forEach(n=>{n(...t)})}const aS=e=>e(),Bu=Symbol(),na=Symbol();function Aa(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ia(o)&&Ia(r)&&e.hasOwnProperty(n)&&!Ze(r)&&!yn(r)?e[n]=Aa(o,r):e[n]=r}return e}const lS=Symbol();function cS(e){return!Ia(e)||!e.hasOwnProperty(lS)}const{assign:kn}=Object;function uS(e){return!!(Ze(e)&&e.effect)}function fS(e,t,n,r){const{state:o,actions:i,getters:s}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=o?o():{});const u=$f(n.state.value[e]);return kn(u,i,Object.keys(s||{}).reduce((f,d)=>(f[d]=Eo(Q(()=>{fs(n);const h=n._s.get(e);return s[d].call(h,h)})),f),{}))}return l=Xh(e,c,t,n,r,!0),l}function Xh(e,t,n={},r,o,i){let s;const a=kn({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),te({});let m;function C(y){let T;c=u=!1,typeof y=="function"?(y(r.state.value[e]),T={type:bo.patchFunction,storeId:e,events:h}):(Aa(r.state.value[e],y),T={type:bo.patchObject,payload:y,storeId:e,events:h});const L=m=Symbol();Rt().then(()=>{m===L&&(c=!0)}),u=!0,mr(f,T,r.state.value[e])}const w=i?function(){const{state:T}=n,L=T?T():{};this.$patch(D=>{kn(D,L)})}:qh;function E(){s.stop(),f=[],d=[],r._s.delete(e)}const B=(y,T="")=>{if(Bu in y)return y[na]=T,y;const L=function(){fs(r);const D=Array.from(arguments),M=[],Y=[];function ce(q){M.push(q)}function ye(q){Y.push(q)}mr(d,{args:D,name:L[na],store:_,after:ce,onError:ye});let fe;try{fe=y.apply(this&&this.$id===e?this:_,D)}catch(q){throw mr(Y,q),q}return fe instanceof Promise?fe.then(q=>(mr(M,q),q)).catch(q=>(mr(Y,q),Promise.reject(q))):(mr(M,fe),fe)};return L[Bu]=!0,L[na]=T,L},k={_p:r,$id:e,$onAction:Mu.bind(null,d),$patch:C,$reset:w,$subscribe(y,T={}){const L=Mu(f,y,T.detached,()=>D()),D=s.run(()=>et(()=>r.state.value[e],M=>{(T.flush==="sync"?u:c)&&y({storeId:e,type:bo.direct,events:h},M)},kn({},l,T)));return L},$dispose:E},_=Yt(k);r._s.set(e,_);const v=(r._a&&r._a.runWithContext||aS)(()=>r._e.run(()=>(s=uf()).run(()=>t({action:B}))));for(const y in v){const T=v[y];if(Ze(T)&&!uS(T)||yn(T))i||(p&&cS(T)&&(Ze(T)?T.value=p[y]:Aa(T,p[y])),r.state.value[e][y]=T);else if(typeof T=="function"){const L=B(T,y);v[y]=L,a.actions[y]=T}}return kn(_,v),kn(Ae(_),v),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:y=>{C(T=>{kn(T,y)})}}),r._p.forEach(y=>{kn(_,s.run(()=>y({store:_,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(_.$state,p),c=!0,u=!0,_}/*! #__NO_SIDE_EFFECTS__ */function _l(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function i(s,a){const l=Xa();return s=s||(l?Oe(Yh,null):null),s&&fs(s),s=Gh,s._s.has(e)||(o?Xh(e,t,r,s):fS(e,r,s)),s._s.get(e)}return i.$id=e,i}function O_(e){const t=Ae(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=Q({get:()=>e[r],set(i){e[r]=i}}):(Ze(o)||yn(o))&&(n[r]=Mt(e,r))}return n}const dS=_l("global",()=>{const e=Ut(!1),t=Ut(!1),n=Ut(!1),r=Ut();return{networkErrorDlgVisible:e,githubErrorDlgVisible:t,wasmErrorDlgVisible:n,wasmSupported:r}}),{message:Lu,dialog:k_,loadingBar:I_}=r1(["message","dialog","loadingBar"]),Zh=document.querySelector("#app");function El(e){return ja()?(ff(e),!0):!1}const ra=new WeakMap,hS=(...e)=>{var t;const n=e[0],r=(t=lr())==null?void 0:t.proxy;if(r==null&&!Xa())throw new Error("injectLocal must be called in setup");return r&&ra.has(r)&&n in ra.get(r)?ra.get(r)[n]:Oe(...e)},pS=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vS=e=>e!=null,gS=Object.prototype.toString,mS=e=>gS.call(e)==="[object Object]",zr=()=>{};function Rl(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const Qh=e=>e();function bS(e,t={}){let n,r,o=zr;const i=l=>{clearTimeout(l),o(),o=zr};let s;return l=>{const c=ut(e),u=ut(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,f(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,f(l())},c)})}}function yS(...e){let t=0,n,r=!0,o=zr,i,s,a,l,c;!Ze(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[s,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,o(),o=zr)};return d=>{const h=ut(s),p=Date.now()-t,m=()=>i=d();return u(),h<=0?(t=Date.now(),m()):(p>h&&(l||!r)?(t=Date.now(),m()):a&&(i=new Promise((C,w)=>{o=c?w:C,n=setTimeout(()=>{t=Date.now(),r=!0,C(m()),u()},Math.max(0,h-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,h)),r=!1,i)}}function xS(e=Qh){const t=te(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...i)=>{t.value&&e(...i)};return{isActive:dn(t),pause:n,resume:r,eventFilter:o}}function Du(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wS(e){return lr()}function yo(e){return Array.isArray(e)?e:[e]}function Jh(e,t=200,n={}){return Rl(bS(t,n),e)}function A_(e,t=200,n={}){const r=te(e.value),o=Jh(()=>{r.value=e.value},t,n);return et(e,()=>o()),r}function CS(e,t=200,n=!1,r=!0,o=!1){return Rl(yS(t,n,r,o),e)}function SS(e,t,n={}){const{eventFilter:r=Qh,...o}=n;return et(e,Rl(r,t),o)}function _S(e,t,n={}){const{eventFilter:r,...o}=n,{eventFilter:i,pause:s,resume:a,isActive:l}=xS(r);return{stop:SS(e,t,{...o,eventFilter:i}),pause:s,resume:a,isActive:l}}function Vo(e,t=!0,n){wS()?qt(e,n):t?e():Rt(e)}function ES(e,t,n){return et(e,t,{...n,immediate:!0})}const hn=pS?window:void 0;function Qt(e){var t;const n=ut(e);return(t=n==null?void 0:n.$el)!=null?t:n}function zt(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),o=Q(()=>{const a=yo(ut(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),i=ES(()=>{var a,l;return[(l=(a=o.value)==null?void 0:a.map(c=>Qt(c)))!=null?l:[hn].filter(c=>c!=null),yo(ut(o.value?e[1]:e[0])),yo(We(o.value?e[2]:e[1])),ut(o.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const f=mS(u)?{...u}:u;t.push(...a.flatMap(d=>l.flatMap(h=>c.map(p=>r(d,h,p,f)))))},{flush:"post"}),s=()=>{i(),n()};return El(n),s}function RS(){const e=te(!1),t=lr();return t&&qt(()=>{e.value=!0},t),e}function Tl(e){const t=RS();return Q(()=>(t.value,!!e()))}function TS(e,t,n={}){const{window:r=hn,...o}=n;let i;const s=Tl(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Q(()=>{const d=ut(e),h=yo(d).map(Qt).filter(vS);return new Set(h)}),c=et(()=>l.value,d=>{a(),s.value&&d.size&&(i=new MutationObserver(t),d.forEach(h=>i.observe(h,o)))},{immediate:!0,flush:"post"}),u=()=>i==null?void 0:i.takeRecords(),f=()=>{c(),a()};return El(f),{isSupported:s,stop:f,takeRecords:u}}const PS=Symbol("vueuse-ssr-width");function $S(){const e=Xa()?hS(PS,null):null;return typeof e=="number"?e:void 0}function OS(e,t={}){const{window:n=hn,ssrWidth:r=$S()}=t,o=Tl(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=te(typeof r=="number"),s=Ut(),a=te(!1),l=c=>{a.value=c.matches};return Ho(()=>{if(i.value){i.value=!o.value;const c=ut(e).split(",");a.value=c.some(u=>{const f=u.includes("not all"),d=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(d||h);return d&&p&&(p=r>=Du(d[1])),h&&p&&(p=r<=Du(h[1])),f?!p:p});return}o.value&&(s.value=n.matchMedia(ut(e)),a.value=s.value.matches)}),zt(s,"change",l,{passive:!0}),Q(()=>a.value)}const ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fi="__vueuse_ssr_handlers__",kS=IS();function IS(){return fi in ui||(ui[fi]=ui[fi]||{}),ui[fi]}function AS(e,t){return kS[e]||t}function zS(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const MS={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Fu="vueuse-storage";function z_(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=hn,eventFilter:d,onError:h=D=>{console.error(D)},initOnMounted:p}=r,m=(u?Ut:te)(typeof t=="function"?t():t),C=Q(()=>ut(e));if(!n)try{n=AS("getDefaultStorage",()=>{var D;return(D=hn)==null?void 0:D.localStorage})()}catch(D){h(D)}if(!n)return m;const w=ut(t),E=zS(w),B=(o=r.serializer)!=null?o:MS[E],{pause:k,resume:_}=_S(m,()=>v(m.value),{flush:i,deep:s,eventFilter:d});et(C,()=>T(),{flush:i}),f&&a&&Vo(()=>{n instanceof Storage?zt(f,"storage",T,{passive:!0}):zt(f,Fu,L),p&&T()}),p||T();function R(D,M){if(f){const Y={key:C.value,oldValue:D,newValue:M,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",Y):new CustomEvent(Fu,{detail:Y}))}}function v(D){try{const M=n.getItem(C.value);if(D==null)R(M,null),n.removeItem(C.value);else{const Y=B.write(D);M!==Y&&(n.setItem(C.value,Y),R(M,Y))}}catch(M){h(M)}}function y(D){const M=D?D.newValue:n.getItem(C.value);if(M==null)return l&&w!=null&&n.setItem(C.value,B.write(w)),w;if(!D&&c){const Y=B.read(M);return typeof c=="function"?c(Y,w):E==="object"&&!Array.isArray(Y)?{...w,...Y}:Y}else return typeof M!="string"?M:B.read(M)}function T(D){if(!(D&&D.storageArea!==n)){if(D&&D.key==null){m.value=w;return}if(!(D&&D.key!==C.value)){k();try{(D==null?void 0:D.newValue)!==B.write(m.value)&&(m.value=y(D))}catch(M){h(M)}finally{D?Rt(_):_()}}}}function L(D){T(D.detail)}return m}function ep(e,t,n={}){const{window:r=hn,...o}=n;let i;const s=Tl(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Q(()=>{const f=ut(e);return Array.isArray(f)?f.map(d=>Qt(d)):[Qt(f)]}),c=et(l,f=>{if(a(),s.value&&r){i=new ResizeObserver(t);for(const d of f)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return El(u),{isSupported:s,stop:u}}function BS(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0,updateTiming:s="sync"}=t,a=te(0),l=te(0),c=te(0),u=te(0),f=te(0),d=te(0),h=te(0),p=te(0);function m(){const w=Qt(e);if(!w){n&&(a.value=0,l.value=0,c.value=0,u.value=0,f.value=0,d.value=0,h.value=0,p.value=0);return}const E=w.getBoundingClientRect();a.value=E.height,l.value=E.bottom,c.value=E.left,u.value=E.right,f.value=E.top,d.value=E.width,h.value=E.x,p.value=E.y}function C(){s==="sync"?m():s==="next-frame"&&requestAnimationFrame(()=>m())}return ep(e,C),et(()=>Qt(e),w=>!w&&C()),TS(e,C,{attributeFilter:["style","class"]}),o&&zt("scroll",C,{capture:!0,passive:!0}),r&&zt("resize",C,{passive:!0}),Vo(()=>{i&&C()}),{height:a,bottom:l,left:c,right:u,top:f,width:d,x:h,y:p,update:C}}function M_(e,t={width:0,height:0},n={}){const{window:r=hn,box:o="content-box"}=n,i=Q(()=>{var f,d;return(d=(f=Qt(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),s=te(t.width),a=te(t.height),{stop:l}=ep(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const h=Qt(e);if(h){const p=h.getBoundingClientRect();s.value=p.width,a.value=p.height}}else if(d){const h=yo(d);s.value=h.reduce((p,{inlineSize:m})=>p+m,0),a.value=h.reduce((p,{blockSize:m})=>p+m,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Vo(()=>{const f=Qt(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=et(()=>Qt(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function u(){l(),c()}return{width:s,height:a,stop:u}}const Hu=1;function LS(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=zr,onScroll:i=zr,offset:s={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=hn,onError:u=v=>{console.error(v)}}=t,f=te(0),d=te(0),h=Q({get(){return f.value},set(v){m(v,void 0)}}),p=Q({get(){return d.value},set(v){m(void 0,v)}});function m(v,y){var T,L,D,M;if(!c)return;const Y=ut(e);if(!Y)return;(D=Y instanceof Document?c.document.body:Y)==null||D.scrollTo({top:(T=ut(y))!=null?T:p.value,left:(L=ut(v))!=null?L:h.value,behavior:ut(l)});const ce=((M=Y==null?void 0:Y.document)==null?void 0:M.documentElement)||(Y==null?void 0:Y.documentElement)||Y;h!=null&&(f.value=ce.scrollLeft),p!=null&&(d.value=ce.scrollTop)}const C=te(!1),w=Yt({left:!0,right:!1,top:!0,bottom:!1}),E=Yt({left:!1,right:!1,top:!1,bottom:!1}),B=v=>{C.value&&(C.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,o(v))},k=Jh(B,n+r),_=v=>{var y;if(!c)return;const T=((y=v==null?void 0:v.document)==null?void 0:y.documentElement)||(v==null?void 0:v.documentElement)||Qt(v),{display:L,flexDirection:D,direction:M}=getComputedStyle(T),Y=M==="rtl"?-1:1,ce=T.scrollLeft;E.left=ce<f.value,E.right=ce>f.value;const ye=ce*Y<=(s.left||0),fe=ce*Y+T.clientWidth>=T.scrollWidth-(s.right||0)-Hu;L==="flex"&&D==="row-reverse"?(w.left=fe,w.right=ye):(w.left=ye,w.right=fe),f.value=ce;let q=T.scrollTop;v===c.document&&!q&&(q=c.document.body.scrollTop),E.top=q<d.value,E.bottom=q>d.value;const pe=q<=(s.top||0),ke=q+T.clientHeight>=T.scrollHeight-(s.bottom||0)-Hu;L==="flex"&&D==="column-reverse"?(w.top=ke,w.bottom=pe):(w.top=pe,w.bottom=ke),d.value=q},R=v=>{var y;if(!c)return;const T=(y=v.target.documentElement)!=null?y:v.target;_(T),C.value=!0,k(v),i(v)};return zt(e,"scroll",n?CS(R,n,!0,!1):R,a),Vo(()=>{try{const v=ut(e);if(!v)return;_(v)}catch(v){u(v)}}),zt(e,"scrollend",B,a),{x:h,y:p,isScrolling:C,arrivedState:w,directions:E,measure(){const v=ut(e);c&&v&&_(v)}}}function DS(e={}){const{window:t=hn,...n}=e;return LS(t,n)}function FS(e={}){const{window:t=hn,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=te(n),l=te(r),c=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:d,scale:h}=t.visualViewport;a.value=Math.round(f*h),l.value=Math.round(d*h)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};c(),Vo(c);const u={passive:!0};if(zt("resize",c,u),t&&s==="visual"&&t.visualViewport&&zt(t.visualViewport,"resize",c,u),o){const f=OS("(orientation: portrait)");et(f,()=>c())}return{width:a,height:l}}const HS={fixed:"","z-2000":"",class:"BodyScrollbar"},jS=Re({__name:"BodyScrollbar",setup(e){const{y:t,x:n}=DS(),{height:r,width:o}=FS(),i=BS(document.body),s=Q(()=>i.height.value>r.value),a=Q(()=>{const v=i.height.value;return r.value/v*r.value}),l=Q(()=>{const R=i.height.value,v=a.value;return t.value/(R-r.value)*(r.value-v)}),c=Q(()=>s.value?{transform:`translateY(${l.value}px)`,height:`${a.value}px`}:{}),u=async R=>{const v=a.value*.9*(R.clientY<a.value+l.value?-1:1),y=i.height.value,T=y,L=r.value/T*r.value;t.value+=v/(r.value-L)*(y-r.value)},f=Ut(!1);let d;const h=R=>{d=R,f.value=!0};zt("pointermove",R=>{if(!d)return;const v=R.clientY-d.clientY;d=R;const y=i.height.value,T=y,L=r.value/T*r.value;t.value+=v/(r.value-L)*(y-r.value)}),zt("pointerup",()=>{d=void 0,f.value=!1});const p=Q(()=>Math.floor(i.width.value)>o.value),m=Q(()=>{const v=i.width.value;return o.value/v*o.value}),C=Q(()=>{const R=i.width.value,v=m.value;return n.value/(R-o.value)*(o.value-v)}),w=Q(()=>p.value?{transform:`translateX(${C.value}px)`,width:`${m.value}px`}:{}),E=R=>{const v=m.value*.9*(R.clientX<m.value+C.value?-1:1),y=i.width.value,T=y,L=o.value/T*o.value,D=n.value+v/(o.value-L)*(y-o.value);n.value=D},B=Ut(!1);let k;const _=R=>{k=R,B.value=!0};return zt("pointermove",R=>{if(!k)return;const v=R.clientX-k.clientX;k=R;const y=i.width.value,T=y,L=o.value/T*o.value;n.value+=v/(o.value-L)*(y-o.value)}),zt("pointerup",()=>{k=void 0,B.value=!1}),zt("selectstart",R=>{(k||d)&&R.preventDefault()}),(R,v)=>(ir(),Ei("div",HS,[To(ct("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:h,onClick:u},[ct("div",{onClick:v[0]||(v[0]=yc(()=>{},["stop"])),"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Co(We(c)),class:Dn({"opacity-50":We(f)})},null,6)],544),[[Pi,We(s)]]),We(p)?(ir(),Ei("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:_,onClick:E},[ct("div",{onClick:v[1]||(v[1]=yc(()=>{},["stop"])),"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:Co(We(w)),class:Dn({"opacity-50":We(B)})},null,6)],32)):Og("",!0)]))}});function B_(...e){const t=new URLSearchParams;return e.forEach(n=>{for(const r in n){const o=n[r];o!==void 0&&t.append(r,String(o))}}),t}const L_=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},NS=async(e=0)=>new Promise(t=>{setTimeout(t,e)}),D_=(()=>{let e;return async t=>{if(t&&e!==t){e=t,NS(1e4).then(()=>{e=void 0});try{await navigator.clipboard.writeText(t),Lu.success("复制成功")}catch{Lu.error("复制失败")}}}})(),tp=(e,t)=>{e.classList.add(t),qt(()=>{e.classList.add(t)}),Gi(()=>{e.classList.remove(t)})},F_=()=>{tp(Zh,"app-auto-h")},H_=()=>{tp(document.body,"body-auto-w")},WS=()=>{},j_=()=>WS,N_=(e,t)=>{const n={};return t.forEach(r=>{const o=e[r];o!==void 0&&(n[r]=o)}),n},ju=e=>typeof e=="number"?!0:typeof e=="string"&&Array.prototype.every.call(e,t=>"0"<=t&&t<="9"),W_=e=>{if(typeof e=="number"&&Number.isSafeInteger(e))return e;if(typeof e=="string"&&e.length>0){const t=Number(e);if(Number.isSafeInteger(t))return t}},VS=Re(()=>{const e=Ut(!1),t="ontouchstart"in document.documentElement;return e.value=!t,t&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile")),()=>e.value?I(Fo,{to:document.body},I(jS)):void 0}),V_=e=>{try{return new URL(e)}catch{}},US=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com","https://detect.gkd.li"]),U_=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:US.has(e.origin)),KS=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],Nu=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of KS){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},GS=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/[0-9]+\/([0-9a-z-]+)$/,YS=/^https:\/\/github\.com\/user-attachments\/assets\/([0-9a-z-]+)$/,qS=e=>{var t,n;return((t=e.match(GS))==null?void 0:t[1])||((n=e.match(YS))==null?void 0:n[1])},K_=e=>location.origin+`/i/${e}`,G_=e=>`https://e.gkd.li/${e}`,XS=e=>`https://github.com/user-attachments/files/${e}/file.zip`;var di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ZS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var oa={exports:{}};/*!
|
|
908
|
+
localForage -- Offline Storage, Improved
|
|
909
|
+
Version 1.10.0
|
|
910
|
+
https://localforage.github.io/localForage
|
|
911
|
+
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
912
|
+
*/var Wu;function QS(){return Wu||(Wu=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(c,u){if(!o[c]){if(!r[c]){var f=typeof hi=="function"&&hi;if(!u&&f)return f(c,!0);if(a)return a(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var h=o[c]={exports:{}};r[c][0].call(h.exports,function(p){var m=r[c][1][p];return s(m||p)},h,h.exports,n,r,o,i)}return o[c].exports}for(var a=typeof hi=="function"&&hi,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,c=new s(p),u=i.document.createTextNode("");c.observe(u,{characterData:!0}),a=function(){u.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var f=new i.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var C=i.document.createElement("script");C.onreadystatechange=function(){p(),C.onreadystatechange=null,C.parentNode.removeChild(C),C=null},i.document.documentElement.appendChild(C)}:a=function(){setTimeout(p,0)};var d,h=[];function p(){d=!0;for(var C,w,E=h.length;E;){for(w=h,h=[],C=-1;++C<E;)w[C]();E=h.length}d=!1}r.exports=m;function m(C){h.push(C)===1&&!d&&a()}}).call(this,typeof di<"u"?di:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];r.exports=f;function f(_){if(typeof _!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,_!==s&&m(this,_)}f.prototype.catch=function(_){return this.then(null,_)},f.prototype.then=function(_,R){if(typeof _!="function"&&this.state===c||typeof R!="function"&&this.state===l)return this;var v=new this.constructor(s);if(this.state!==u){var y=this.state===c?_:R;h(v,y,this.outcome)}else this.queue.push(new d(v,_,R));return v};function d(_,R,v){this.promise=_,typeof R=="function"&&(this.onFulfilled=R,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(_){a.resolve(this.promise,_)},d.prototype.otherCallFulfilled=function(_){h(this.promise,this.onFulfilled,_)},d.prototype.callRejected=function(_){a.reject(this.promise,_)},d.prototype.otherCallRejected=function(_){h(this.promise,this.onRejected,_)};function h(_,R,v){i(function(){var y;try{y=R(v)}catch(T){return a.reject(_,T)}y===_?a.reject(_,new TypeError("Cannot resolve promise with itself")):a.resolve(_,y)})}a.resolve=function(_,R){var v=C(p,R);if(v.status==="error")return a.reject(_,v.value);var y=v.value;if(y)m(_,y);else{_.state=c,_.outcome=R;for(var T=-1,L=_.queue.length;++T<L;)_.queue[T].callFulfilled(R)}return _},a.reject=function(_,R){_.state=l,_.outcome=R;for(var v=-1,y=_.queue.length;++v<y;)_.queue[v].callRejected(R);return _};function p(_){var R=_&&_.then;if(_&&(typeof _=="object"||typeof _=="function")&&typeof R=="function")return function(){R.apply(_,arguments)}}function m(_,R){var v=!1;function y(M){v||(v=!0,a.reject(_,M))}function T(M){v||(v=!0,a.resolve(_,M))}function L(){R(T,y)}var D=C(L);D.status==="error"&&y(D.value)}function C(_,R){var v={};try{v.value=_(R),v.status="success"}catch(y){v.status="error",v.value=y}return v}f.resolve=w;function w(_){return _ instanceof this?_:a.resolve(new this(s),_)}f.reject=E;function E(_){var R=new this(s);return a.reject(R,_)}f.all=B;function B(_){var R=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=_.length,y=!1;if(!v)return this.resolve([]);for(var T=new Array(v),L=0,D=-1,M=new this(s);++D<v;)Y(_[D],D);return M;function Y(ce,ye){R.resolve(ce).then(fe,function(q){y||(y=!0,a.reject(M,q))});function fe(q){T[ye]=q,++L===v&&!y&&(y=!0,a.resolve(M,T))}}}f.race=k;function k(_){var R=this;if(Object.prototype.toString.call(_)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=_.length,y=!1;if(!v)return this.resolve([]);for(var T=-1,L=new this(s);++T<v;)D(_[T]);return L;function D(M){R.resolve(M).then(function(Y){y||(y=!0,a.resolve(L,Y))},function(Y){y||(y=!0,a.reject(L,Y))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof di<"u"?di:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};function s(g,P){if(!(g instanceof P))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function c(){try{if(!l||!l.open)return!1;var g=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),P=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||P)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function u(g,P){g=g||[],P=P||{};try{return new Blob(g,P)}catch($){if($.name!=="TypeError")throw $;for(var b=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,O=new b,A=0;A<g.length;A+=1)O.append(g[A]);return O.getBlob(P.type)}}typeof Promise>"u"&&n(3);var f=Promise;function d(g,P){P&&g.then(function(b){P(null,b)},function(b){P(b)})}function h(g,P,b){typeof P=="function"&&g.then(P),typeof b=="function"&&g.catch(b)}function p(g){return typeof g!="string"&&(console.warn(g+" used as a key, but it is not a string."),g=String(g)),g}function m(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var C="local-forage-detect-blob-support",w=void 0,E={},B=Object.prototype.toString,k="readonly",_="readwrite";function R(g){for(var P=g.length,b=new ArrayBuffer(P),O=new Uint8Array(b),A=0;A<P;A++)O[A]=g.charCodeAt(A);return b}function v(g){return new f(function(P){var b=g.transaction(C,_),O=u([""]);b.objectStore(C).put(O,"key"),b.onabort=function(A){A.preventDefault(),A.stopPropagation(),P(!1)},b.oncomplete=function(){var A=navigator.userAgent.match(/Chrome\/(\d+)/),$=navigator.userAgent.match(/Edge\//);P($||!A||parseInt(A[1],10)>=43)}}).catch(function(){return!1})}function y(g){return typeof w=="boolean"?f.resolve(w):v(g).then(function(P){return w=P,w})}function T(g){var P=E[g.name],b={};b.promise=new f(function(O,A){b.resolve=O,b.reject=A}),P.deferredOperations.push(b),P.dbReady?P.dbReady=P.dbReady.then(function(){return b.promise}):P.dbReady=b.promise}function L(g){var P=E[g.name],b=P.deferredOperations.pop();if(b)return b.resolve(),b.promise}function D(g,P){var b=E[g.name],O=b.deferredOperations.pop();if(O)return O.reject(P),O.promise}function M(g,P){return new f(function(b,O){if(E[g.name]=E[g.name]||Be(),g.db)if(P)T(g),g.db.close();else return b(g.db);var A=[g.name];P&&A.push(g.version);var $=l.open.apply(l,A);P&&($.onupgradeneeded=function(N){var Z=$.result;try{Z.createObjectStore(g.storeName),N.oldVersion<=1&&Z.createObjectStore(C)}catch(J){if(J.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+N.oldVersion+" to version "+N.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw J}}),$.onerror=function(N){N.preventDefault(),O($.error)},$.onsuccess=function(){var N=$.result;N.onversionchange=function(Z){Z.target.close()},b(N),L(g)}})}function Y(g){return M(g,!1)}function ce(g){return M(g,!0)}function ye(g,P){if(!g.db)return!0;var b=!g.db.objectStoreNames.contains(g.storeName),O=g.version<g.db.version,A=g.version>g.db.version;if(O&&(g.version!==P&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),A||b){if(b){var $=g.db.version+1;$>g.version&&(g.version=$)}return!0}return!1}function fe(g){return new f(function(P,b){var O=new FileReader;O.onerror=b,O.onloadend=function(A){var $=btoa(A.target.result||"");P({__local_forage_encoded_blob:!0,data:$,type:g.type})},O.readAsBinaryString(g)})}function q(g){var P=R(atob(g.data));return u([P],{type:g.type})}function pe(g){return g&&g.__local_forage_encoded_blob}function ke(g){var P=this,b=P._initReady().then(function(){var O=E[P._dbInfo.name];if(O&&O.dbReady)return O.dbReady});return h(b,g,g),b}function Me(g){T(g);for(var P=E[g.name],b=P.forages,O=0;O<b.length;O++){var A=b[O];A._dbInfo.db&&(A._dbInfo.db.close(),A._dbInfo.db=null)}return g.db=null,Y(g).then(function($){return g.db=$,ye(g)?ce(g):$}).then(function($){g.db=P.db=$;for(var N=0;N<b.length;N++)b[N]._dbInfo.db=$}).catch(function($){throw D(g,$),$})}function Pe(g,P,b,O){O===void 0&&(O=1);try{var A=g.db.transaction(g.storeName,P);b(null,A)}catch($){if(O>0&&(!g.db||$.name==="InvalidStateError"||$.name==="NotFoundError"))return f.resolve().then(function(){if(!g.db||$.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),ce(g)}).then(function(){return Me(g).then(function(){Pe(g,P,b,O-1)})}).catch(b);b($)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function rt(g){var P=this,b={db:null};if(g)for(var O in g)b[O]=g[O];var A=E[b.name];A||(A=Be(),E[b.name]=A),A.forages.push(P),P._initReady||(P._initReady=P.ready,P.ready=ke);var $=[];function N(){return f.resolve()}for(var Z=0;Z<A.forages.length;Z++){var J=A.forages[Z];J!==P&&$.push(J._initReady().catch(N))}var ee=A.forages.slice(0);return f.all($).then(function(){return b.db=A.db,Y(b)}).then(function(re){return b.db=re,ye(b,P._defaultConfig.version)?ce(b):re}).then(function(re){b.db=A.db=re,P._dbInfo=b;for(var ge=0;ge<ee.length;ge++){var $e=ee[ge];$e!==P&&($e._dbInfo.db=b.db,$e._dbInfo.version=b.version)}})}function ot(g,P){var b=this;g=p(g);var O=new f(function(A,$){b.ready().then(function(){Pe(b._dbInfo,k,function(N,Z){if(N)return $(N);try{var J=Z.objectStore(b._dbInfo.storeName),ee=J.get(g);ee.onsuccess=function(){var re=ee.result;re===void 0&&(re=null),pe(re)&&(re=q(re)),A(re)},ee.onerror=function(){$(ee.error)}}catch(re){$(re)}})}).catch($)});return d(O,P),O}function kt(g,P){var b=this,O=new f(function(A,$){b.ready().then(function(){Pe(b._dbInfo,k,function(N,Z){if(N)return $(N);try{var J=Z.objectStore(b._dbInfo.storeName),ee=J.openCursor(),re=1;ee.onsuccess=function(){var ge=ee.result;if(ge){var $e=ge.value;pe($e)&&($e=q($e));var De=g($e,ge.key,re++);De!==void 0?A(De):ge.continue()}else A()},ee.onerror=function(){$(ee.error)}}catch(ge){$(ge)}})}).catch($)});return d(O,P),O}function _e(g,P,b){var O=this;g=p(g);var A=new f(function($,N){var Z;O.ready().then(function(){return Z=O._dbInfo,B.call(P)==="[object Blob]"?y(Z.db).then(function(J){return J?P:fe(P)}):P}).then(function(J){Pe(O._dbInfo,_,function(ee,re){if(ee)return N(ee);try{var ge=re.objectStore(O._dbInfo.storeName);J===null&&(J=void 0);var $e=ge.put(J,g);re.oncomplete=function(){J===void 0&&(J=null),$(J)},re.onabort=re.onerror=function(){var De=$e.error?$e.error:$e.transaction.error;N(De)}}catch(De){N(De)}})}).catch(N)});return d(A,b),A}function H(g,P){var b=this;g=p(g);var O=new f(function(A,$){b.ready().then(function(){Pe(b._dbInfo,_,function(N,Z){if(N)return $(N);try{var J=Z.objectStore(b._dbInfo.storeName),ee=J.delete(g);Z.oncomplete=function(){A()},Z.onerror=function(){$(ee.error)},Z.onabort=function(){var re=ee.error?ee.error:ee.transaction.error;$(re)}}catch(re){$(re)}})}).catch($)});return d(O,P),O}function ie(g){var P=this,b=new f(function(O,A){P.ready().then(function(){Pe(P._dbInfo,_,function($,N){if($)return A($);try{var Z=N.objectStore(P._dbInfo.storeName),J=Z.clear();N.oncomplete=function(){O()},N.onabort=N.onerror=function(){var ee=J.error?J.error:J.transaction.error;A(ee)}}catch(ee){A(ee)}})}).catch(A)});return d(b,g),b}function U(g){var P=this,b=new f(function(O,A){P.ready().then(function(){Pe(P._dbInfo,k,function($,N){if($)return A($);try{var Z=N.objectStore(P._dbInfo.storeName),J=Z.count();J.onsuccess=function(){O(J.result)},J.onerror=function(){A(J.error)}}catch(ee){A(ee)}})}).catch(A)});return d(b,g),b}function de(g,P){var b=this,O=new f(function(A,$){if(g<0){A(null);return}b.ready().then(function(){Pe(b._dbInfo,k,function(N,Z){if(N)return $(N);try{var J=Z.objectStore(b._dbInfo.storeName),ee=!1,re=J.openKeyCursor();re.onsuccess=function(){var ge=re.result;if(!ge){A(null);return}g===0||ee?A(ge.key):(ee=!0,ge.advance(g))},re.onerror=function(){$(re.error)}}catch(ge){$(ge)}})}).catch($)});return d(O,P),O}function Ie(g){var P=this,b=new f(function(O,A){P.ready().then(function(){Pe(P._dbInfo,k,function($,N){if($)return A($);try{var Z=N.objectStore(P._dbInfo.storeName),J=Z.openKeyCursor(),ee=[];J.onsuccess=function(){var re=J.result;if(!re){O(ee);return}ee.push(re.key),re.continue()},J.onerror=function(){A(J.error)}}catch(re){A(re)}})}).catch(A)});return d(b,g),b}function x(g,P){P=m.apply(this,arguments);var b=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||b.name,g.storeName=g.storeName||b.storeName);var O=this,A;if(!g.name)A=f.reject("Invalid arguments");else{var $=g.name===b.name&&O._dbInfo.db,N=$?f.resolve(O._dbInfo.db):Y(g).then(function(Z){var J=E[g.name],ee=J.forages;J.db=Z;for(var re=0;re<ee.length;re++)ee[re]._dbInfo.db=Z;return Z});g.storeName?A=N.then(function(Z){if(Z.objectStoreNames.contains(g.storeName)){var J=Z.version+1;T(g);var ee=E[g.name],re=ee.forages;Z.close();for(var ge=0;ge<re.length;ge++){var $e=re[ge];$e._dbInfo.db=null,$e._dbInfo.version=J}var De=new f(function(je,st){var it=l.open(g.name,J);it.onerror=function(jt){var Ur=it.result;Ur.close(),st(jt)},it.onupgradeneeded=function(){var jt=it.result;jt.deleteObjectStore(g.storeName)},it.onsuccess=function(){var jt=it.result;jt.close(),je(jt)}});return De.then(function(je){ee.db=je;for(var st=0;st<re.length;st++){var it=re[st];it._dbInfo.db=je,L(it._dbInfo)}}).catch(function(je){throw(D(g,je)||f.resolve()).catch(function(){}),je})}}):A=N.then(function(Z){T(g);var J=E[g.name],ee=J.forages;Z.close();for(var re=0;re<ee.length;re++){var ge=ee[re];ge._dbInfo.db=null}var $e=new f(function(De,je){var st=l.deleteDatabase(g.name);st.onerror=function(){var it=st.result;it&&it.close(),je(st.error)},st.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},st.onsuccess=function(){var it=st.result;it&&it.close(),De(it)}});return $e.then(function(De){J.db=De;for(var je=0;je<ee.length;je++){var st=ee[je];L(st._dbInfo)}}).catch(function(De){throw(D(g,De)||f.resolve()).catch(function(){}),De})})}return d(A,P),A}var S={_driver:"asyncStorage",_initStorage:rt,_support:c(),iterate:kt,getItem:ot,setItem:_e,removeItem:H,clear:ie,length:U,key:de,keys:Ie,dropInstance:x};function z(){return typeof openDatabase=="function"}var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="~~local_forage_type~",j=/^~~local_forage_type~([^~]+)~/,oe="__lfsc__:",ne=oe.length,G="arbf",W="blob",ve="si08",ae="ui08",me="uic8",be="si16",Te="si32",Le="ur16",ze="ui32",at="fl32",lt="fl64",mt=ne+G.length,bt=Object.prototype.toString;function Xt(g){var P=g.length*.75,b=g.length,O,A=0,$,N,Z,J;g[g.length-1]==="="&&(P--,g[g.length-2]==="="&&P--);var ee=new ArrayBuffer(P),re=new Uint8Array(ee);for(O=0;O<b;O+=4)$=F.indexOf(g[O]),N=F.indexOf(g[O+1]),Z=F.indexOf(g[O+2]),J=F.indexOf(g[O+3]),re[A++]=$<<2|N>>4,re[A++]=(N&15)<<4|Z>>2,re[A++]=(Z&3)<<6|J&63;return ee}function Bt(g){var P=new Uint8Array(g),b="",O;for(O=0;O<P.length;O+=3)b+=F[P[O]>>2],b+=F[(P[O]&3)<<4|P[O+1]>>4],b+=F[(P[O+1]&15)<<2|P[O+2]>>6],b+=F[P[O+2]&63];return P.length%3===2?b=b.substring(0,b.length-1)+"=":P.length%3===1&&(b=b.substring(0,b.length-2)+"=="),b}function yt(g,P){var b="";if(g&&(b=bt.call(g)),g&&(b==="[object ArrayBuffer]"||g.buffer&&bt.call(g.buffer)==="[object ArrayBuffer]")){var O,A=oe;g instanceof ArrayBuffer?(O=g,A+=G):(O=g.buffer,b==="[object Int8Array]"?A+=ve:b==="[object Uint8Array]"?A+=ae:b==="[object Uint8ClampedArray]"?A+=me:b==="[object Int16Array]"?A+=be:b==="[object Uint16Array]"?A+=Le:b==="[object Int32Array]"?A+=Te:b==="[object Uint32Array]"?A+=ze:b==="[object Float32Array]"?A+=at:b==="[object Float64Array]"?A+=lt:P(new Error("Failed to get type for BinaryArray"))),P(A+Bt(O))}else if(b==="[object Blob]"){var $=new FileReader;$.onload=function(){var N=V+g.type+"~"+Bt(this.result);P(oe+W+N)},$.readAsArrayBuffer(g)}else try{P(JSON.stringify(g))}catch(N){console.error("Couldn't convert value into a JSON string: ",g),P(null,N)}}function X(g){if(g.substring(0,ne)!==oe)return JSON.parse(g);var P=g.substring(mt),b=g.substring(ne,mt),O;if(b===W&&j.test(P)){var A=P.match(j);O=A[1],P=P.substring(A[0].length)}var $=Xt(P);switch(b){case G:return $;case W:return u([$],{type:O});case ve:return new Int8Array($);case ae:return new Uint8Array($);case me:return new Uint8ClampedArray($);case be:return new Int16Array($);case Le:return new Uint16Array($);case Te:return new Int32Array($);case ze:return new Uint32Array($);case at:return new Float32Array($);case lt:return new Float64Array($);default:throw new Error("Unkown type: "+b)}}var he={serialize:yt,deserialize:X,stringToBuffer:Xt,bufferToString:Bt};function Se(g,P,b,O){g.executeSql("CREATE TABLE IF NOT EXISTS "+P.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],b,O)}function Ve(g){var P=this,b={db:null};if(g)for(var O in g)b[O]=typeof g[O]!="string"?g[O].toString():g[O];var A=new f(function($,N){try{b.db=openDatabase(b.name,String(b.version),b.description,b.size)}catch(Z){return N(Z)}b.db.transaction(function(Z){Se(Z,b,function(){P._dbInfo=b,$()},function(J,ee){N(ee)})},N)});return b.serializer=he,A}function Ne(g,P,b,O,A,$){g.executeSql(b,O,A,function(N,Z){Z.code===Z.SYNTAX_ERR?N.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[P.storeName],function(J,ee){ee.rows.length?$(J,Z):Se(J,P,function(){J.executeSql(b,O,A,$)},$)},$):$(N,Z)},$)}function xt(g,P){var b=this;g=p(g);var O=new f(function(A,$){b.ready().then(function(){var N=b._dbInfo;N.db.transaction(function(Z){Ne(Z,N,"SELECT * FROM "+N.storeName+" WHERE key = ? LIMIT 1",[g],function(J,ee){var re=ee.rows.length?ee.rows.item(0).value:null;re&&(re=N.serializer.deserialize(re)),A(re)},function(J,ee){$(ee)})})}).catch($)});return d(O,P),O}function Lt(g,P){var b=this,O=new f(function(A,$){b.ready().then(function(){var N=b._dbInfo;N.db.transaction(function(Z){Ne(Z,N,"SELECT * FROM "+N.storeName,[],function(J,ee){for(var re=ee.rows,ge=re.length,$e=0;$e<ge;$e++){var De=re.item($e),je=De.value;if(je&&(je=N.serializer.deserialize(je)),je=g(je,De.key,$e+1),je!==void 0){A(je);return}}A()},function(J,ee){$(ee)})})}).catch($)});return d(O,P),O}function Ke(g,P,b,O){var A=this;g=p(g);var $=new f(function(N,Z){A.ready().then(function(){P===void 0&&(P=null);var J=P,ee=A._dbInfo;ee.serializer.serialize(P,function(re,ge){ge?Z(ge):ee.db.transaction(function($e){Ne($e,ee,"INSERT OR REPLACE INTO "+ee.storeName+" (key, value) VALUES (?, ?)",[g,re],function(){N(J)},function(De,je){Z(je)})},function($e){if($e.code===$e.QUOTA_ERR){if(O>0){N(Ke.apply(A,[g,J,b,O-1]));return}Z($e)}})})}).catch(Z)});return d($,b),$}function It(g,P,b){return Ke.apply(this,[g,P,b,1])}function rn(g,P){var b=this;g=p(g);var O=new f(function(A,$){b.ready().then(function(){var N=b._dbInfo;N.db.transaction(function(Z){Ne(Z,N,"DELETE FROM "+N.storeName+" WHERE key = ?",[g],function(){A()},function(J,ee){$(ee)})})}).catch($)});return d(O,P),O}function ds(g){var P=this,b=new f(function(O,A){P.ready().then(function(){var $=P._dbInfo;$.db.transaction(function(N){Ne(N,$,"DELETE FROM "+$.storeName,[],function(){O()},function(Z,J){A(J)})})}).catch(A)});return d(b,g),b}function hs(g){var P=this,b=new f(function(O,A){P.ready().then(function(){var $=P._dbInfo;$.db.transaction(function(N){Ne(N,$,"SELECT COUNT(key) as c FROM "+$.storeName,[],function(Z,J){var ee=J.rows.item(0).c;O(ee)},function(Z,J){A(J)})})}).catch(A)});return d(b,g),b}function ps(g,P){var b=this,O=new f(function(A,$){b.ready().then(function(){var N=b._dbInfo;N.db.transaction(function(Z){Ne(Z,N,"SELECT key FROM "+N.storeName+" WHERE id = ? LIMIT 1",[g+1],function(J,ee){var re=ee.rows.length?ee.rows.item(0).key:null;A(re)},function(J,ee){$(ee)})})}).catch($)});return d(O,P),O}function vs(g){var P=this,b=new f(function(O,A){P.ready().then(function(){var $=P._dbInfo;$.db.transaction(function(N){Ne(N,$,"SELECT key FROM "+$.storeName,[],function(Z,J){for(var ee=[],re=0;re<J.rows.length;re++)ee.push(J.rows.item(re).key);O(ee)},function(Z,J){A(J)})})}).catch(A)});return d(b,g),b}function gs(g){return new f(function(P,b){g.transaction(function(O){O.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(A,$){for(var N=[],Z=0;Z<$.rows.length;Z++)N.push($.rows.item(Z).name);P({db:g,storeNames:N})},function(A,$){b($)})},function(O){b(O)})})}function ms(g,P){P=m.apply(this,arguments);var b=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||b.name,g.storeName=g.storeName||b.storeName);var O=this,A;return g.name?A=new f(function($){var N;g.name===b.name?N=O._dbInfo.db:N=openDatabase(g.name,"","",0),g.storeName?$({db:N,storeNames:[g.storeName]}):$(gs(N))}).then(function($){return new f(function(N,Z){$.db.transaction(function(J){function ee(De){return new f(function(je,st){J.executeSql("DROP TABLE IF EXISTS "+De,[],function(){je()},function(it,jt){st(jt)})})}for(var re=[],ge=0,$e=$.storeNames.length;ge<$e;ge++)re.push(ee($.storeNames[ge]));f.all(re).then(function(){N()}).catch(function(De){Z(De)})},function(J){Z(J)})})}):A=f.reject("Invalid arguments"),d(A,P),A}var bs={_driver:"webSQLStorage",_initStorage:Ve,_support:z(),iterate:Lt,getItem:xt,setItem:It,removeItem:rn,clear:ds,length:hs,key:ps,keys:vs,dropInstance:ms};function ys(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Uo(g,P){var b=g.name+"/";return g.storeName!==P.storeName&&(b+=g.storeName+"/"),b}function xs(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function ws(){return!xs()||localStorage.length>0}function Cs(g){var P=this,b={};if(g)for(var O in g)b[O]=g[O];return b.keyPrefix=Uo(g,P._defaultConfig),ws()?(P._dbInfo=b,b.serializer=he,f.resolve()):f.reject()}function Ss(g){var P=this,b=P.ready().then(function(){for(var O=P._dbInfo.keyPrefix,A=localStorage.length-1;A>=0;A--){var $=localStorage.key(A);$.indexOf(O)===0&&localStorage.removeItem($)}});return d(b,g),b}function _s(g,P){var b=this;g=p(g);var O=b.ready().then(function(){var A=b._dbInfo,$=localStorage.getItem(A.keyPrefix+g);return $&&($=A.serializer.deserialize($)),$});return d(O,P),O}function Es(g,P){var b=this,O=b.ready().then(function(){for(var A=b._dbInfo,$=A.keyPrefix,N=$.length,Z=localStorage.length,J=1,ee=0;ee<Z;ee++){var re=localStorage.key(ee);if(re.indexOf($)===0){var ge=localStorage.getItem(re);if(ge&&(ge=A.serializer.deserialize(ge)),ge=g(ge,re.substring(N),J++),ge!==void 0)return ge}}});return d(O,P),O}function Rs(g,P){var b=this,O=b.ready().then(function(){var A=b._dbInfo,$;try{$=localStorage.key(g)}catch{$=null}return $&&($=$.substring(A.keyPrefix.length)),$});return d(O,P),O}function Ts(g){var P=this,b=P.ready().then(function(){for(var O=P._dbInfo,A=localStorage.length,$=[],N=0;N<A;N++){var Z=localStorage.key(N);Z.indexOf(O.keyPrefix)===0&&$.push(Z.substring(O.keyPrefix.length))}return $});return d(b,g),b}function op(g){var P=this,b=P.keys().then(function(O){return O.length});return d(b,g),b}function ip(g,P){var b=this;g=p(g);var O=b.ready().then(function(){var A=b._dbInfo;localStorage.removeItem(A.keyPrefix+g)});return d(O,P),O}function sp(g,P,b){var O=this;g=p(g);var A=O.ready().then(function(){P===void 0&&(P=null);var $=P;return new f(function(N,Z){var J=O._dbInfo;J.serializer.serialize(P,function(ee,re){if(re)Z(re);else try{localStorage.setItem(J.keyPrefix+g,ee),N($)}catch(ge){(ge.name==="QuotaExceededError"||ge.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Z(ge),Z(ge)}})})});return d(A,b),A}function ap(g,P){if(P=m.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var b=this.config();g.name=g.name||b.name,g.storeName=g.storeName||b.storeName}var O=this,A;return g.name?A=new f(function($){g.storeName?$(Uo(g,O._defaultConfig)):$(g.name+"/")}).then(function($){for(var N=localStorage.length-1;N>=0;N--){var Z=localStorage.key(N);Z.indexOf($)===0&&localStorage.removeItem(Z)}}):A=f.reject("Invalid arguments"),d(A,P),A}var lp={_driver:"localStorageWrapper",_initStorage:Cs,_support:ys(),iterate:Es,getItem:_s,setItem:sp,removeItem:ip,clear:Ss,length:op,key:Rs,keys:Ts,dropInstance:ap},cp=function(P,b){return P===b||typeof P=="number"&&typeof b=="number"&&isNaN(P)&&isNaN(b)},up=function(P,b){for(var O=P.length,A=0;A<O;){if(cp(P[A],b))return!0;A++}return!1},$l=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},Vr={},Ol={},dr={INDEXEDDB:S,WEBSQL:bs,LOCALSTORAGE:lp},fp=[dr.INDEXEDDB._driver,dr.WEBSQL._driver,dr.LOCALSTORAGE._driver],Ko=["dropInstance"],Ps=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Ko),dp={description:"",driver:fp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function hp(g,P){g[P]=function(){var b=arguments;return g.ready().then(function(){return g[P].apply(g,b)})}}function $s(){for(var g=1;g<arguments.length;g++){var P=arguments[g];if(P)for(var b in P)P.hasOwnProperty(b)&&($l(P[b])?arguments[0][b]=P[b].slice():arguments[0][b]=P[b])}return arguments[0]}var pp=function(){function g(P){s(this,g);for(var b in dr)if(dr.hasOwnProperty(b)){var O=dr[b],A=O._driver;this[b]=A,Vr[A]||this.defineDriver(O)}this._defaultConfig=$s({},dp),this._config=$s({},this._defaultConfig,P),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(b){if((typeof b>"u"?"undefined":i(b))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var O in b){if(O==="storeName"&&(b[O]=b[O].replace(/\W/g,"_")),O==="version"&&typeof b[O]!="number")return new Error("Database version must be a number.");this._config[O]=b[O]}return"driver"in b&&b.driver?this.setDriver(this._config.driver):!0}else return typeof b=="string"?this._config[b]:this._config},g.prototype.defineDriver=function(b,O,A){var $=new f(function(N,Z){try{var J=b._driver,ee=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!b._driver){Z(ee);return}for(var re=Ps.concat("_initStorage"),ge=0,$e=re.length;ge<$e;ge++){var De=re[ge],je=!up(Ko,De);if((je||b[De])&&typeof b[De]!="function"){Z(ee);return}}var st=function(){for(var Ur=function(mp){return function(){var bp=new Error("Method "+mp+" is not implemented by the current driver"),kl=f.reject(bp);return d(kl,arguments[arguments.length-1]),kl}},Os=0,gp=Ko.length;Os<gp;Os++){var ks=Ko[Os];b[ks]||(b[ks]=Ur(ks))}};st();var it=function(Ur){Vr[J]&&console.info("Redefining LocalForage driver: "+J),Vr[J]=b,Ol[J]=Ur,N()};"_support"in b?b._support&&typeof b._support=="function"?b._support().then(it,Z):it(!!b._support):it(!0)}catch(jt){Z(jt)}});return h($,O,A),$},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(b,O,A){var $=Vr[b]?f.resolve(Vr[b]):f.reject(new Error("Driver not found."));return h($,O,A),$},g.prototype.getSerializer=function(b){var O=f.resolve(he);return h(O,b),O},g.prototype.ready=function(b){var O=this,A=O._driverSet.then(function(){return O._ready===null&&(O._ready=O._initDriver()),O._ready});return h(A,b,b),A},g.prototype.setDriver=function(b,O,A){var $=this;$l(b)||(b=[b]);var N=this._getSupportedDrivers(b);function Z(){$._config.driver=$.driver()}function J(ge){return $._extend(ge),Z(),$._ready=$._initStorage($._config),$._ready}function ee(ge){return function(){var $e=0;function De(){for(;$e<ge.length;){var je=ge[$e];return $e++,$._dbInfo=null,$._ready=null,$.getDriver(je).then(J).catch(De)}Z();var st=new Error("No available storage method found.");return $._driverSet=f.reject(st),$._driverSet}return De()}}var re=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=re.then(function(){var ge=N[0];return $._dbInfo=null,$._ready=null,$.getDriver(ge).then(function($e){$._driver=$e._driver,Z(),$._wrapLibraryMethodsWithReady(),$._initDriver=ee(N)})}).catch(function(){Z();var ge=new Error("No available storage method found.");return $._driverSet=f.reject(ge),$._driverSet}),h(this._driverSet,O,A),this._driverSet},g.prototype.supports=function(b){return!!Ol[b]},g.prototype._extend=function(b){$s(this,b)},g.prototype._getSupportedDrivers=function(b){for(var O=[],A=0,$=b.length;A<$;A++){var N=b[A];this.supports(N)&&O.push(N)}return O},g.prototype._wrapLibraryMethodsWithReady=function(){for(var b=0,O=Ps.length;b<O;b++)hp(this,Ps[b])},g.prototype.createInstance=function(b){return new g(b)},g}(),vp=new pp;r.exports=vp},{3:3}]},{},[4])(4)})}(oa)),oa.exports}var JS=QS();const Vu=ZS(JS),io=(e,t,n)=>{const r=Yt(t()),o=te(!1);et(r,async()=>{o.value&&await Vu.setItem(e,Ae(r))});const i=Vu.getItem(e).then(async l=>{l&&typeof l=="object"&&(n&&(l=n(l)),Object.assign(r,l),await Rt()),o.value=!0});return{data:r,init:{waitInit:async()=>(o.value||await i,r),inited:o}}},e_=_l("settings",()=>{const{data:e,init:t}=io("settings",()=>({autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1,maxShowNodeSize:2e3}));return{...$f(e),...t}}),Y_=_l("storage",()=>{const e=io("importTime",()=>({})),t=io("githubJpg",()=>({}),l=>(Object.keys(l).forEach(c=>{const u=l[c];if(u.startsWith("https://")){delete l[c];const f=qS(u);f&&(l[c]=f)}}),l)),n=io("githubZip",()=>({}),l=>(Object.keys(l).forEach(c=>{const u=l[c];if(ju(u))return;const f=Nu(u);f?l[c]=f:delete l[c]}),l)),r=io("url",()=>({}),l=>(Object.keys(l).forEach(c=>{if(ju(c))return;const u=Nu(c);u&&(l[u]=l[c]),delete l[c]}),l)),o={snapshotImportTime:e,snapshotImageId:t,snapshotImportId:n,importSnapshotId:r},i=Q(()=>Object.values(o).every(l=>l.init.inited.value)),s=async()=>{i.value||await Promise.all(Object.values(o).map(l=>l.init.waitInit()))},a=Object.fromEntries(Object.entries(o).map(([l,c])=>[l,c.data]));return{inited:i,waitInit:s,...a}}),t_=Re({__name:"ErrorDlg",setup(e){const t=dS(),n=e_();return(r,o)=>{const i=xl,s=Jw;return ir(),Ei(Ye,null,[Qe(i,{show:We(t).githubErrorDlgVisible,"onUpdate:show":o[0]||(o[0]=a=>We(t).githubErrorDlgVisible=a),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:Cr(()=>o[4]||(o[4]=[ct("div",null,"生成分享链接需要以下条件",-1),ct("div",null,[Zt(" 在当前浏览器登录 "),ct("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Qe(i,{show:We(t).networkErrorDlgVisible,"onUpdate:show":o[1]||(o[1]=a=>We(t).networkErrorDlgVisible=a),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:Cr(()=>o[5]||(o[5]=[ct("div",null,"访问其它域名资源需要以下条件",-1),ct("div",null,[Zt(" 1. 安装脚本管理器, 如 "),ct("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),ct("div",null,[Zt(" 2. 安装油猴脚本 "),ct("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),ct("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),ct("div",null,[Zt(" 4. 如果是分享链接则需要在当前浏览器登录 "),ct("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),Qe(i,{show:We(t).wasmErrorDlgVisible,"onUpdate:show":o[3]||(o[3]=a=>We(t).wasmErrorDlgVisible=a),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:Cr(()=>[o[7]||(o[7]=ct("div",null,[Zt(" 选择器的正则表达式一致性需要使用 "),ct("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),o[8]||(o[8]=ct("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Qe(s,{class:"mt-10px",checked:We(n).ignoreWasmWarn,"onUpdate:checked":o[2]||(o[2]=a=>We(n).ignoreWasmWarn=a)},{default:Cr(()=>o[6]||(o[6]=[Zt(" 不关注一致性, 不再提醒 ")])),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),n_=Re({__name:"App",setup(e){const t={common:{lineHeight:"20px"}};return(n,r)=>{const o=xh;return ir(),Ei(Ye,null,[Qe(o,{abstract:"",locale:We(xb),"date-locale":We(o0),"theme-overrides":t},{default:Cr(()=>[Qe(t_),Qe(We(Kh))]),_:1},8,["locale","date-locale"]),Qe(We(VS))],64)}}}),r_="modulepreload",o_=function(e,t){return new URL(e,t).href},Uu={},br=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=o_(c,r),c in Uu)return;Uu[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const m=s[p];if(m.href===c&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":r_,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},i_=(e,t)=>{try{return new URL(e,t)}catch{}},np=new Set,yr=e=>(np.add(e),e),Ku=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:XS(t)}}:{path:"/404"}},rp=oS({history:z1("/"),routes:[{path:"/",component:yr(()=>br(()=>import("./HomePage-TX9O4tIZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),meta:{title:"首页"}},{path:"/snapshot/:snapshotId",name:"snapshot",component:yr(()=>br(()=>import("./SnapshotPage-lxQB4IQ_.js"),__vite__mapDeps([8,5,2,1,3,4,9]),import.meta.url)),meta:{title:"快照"}},{path:"/i",component:yr(()=>br(()=>import("./ImportPage-mbP-35gy.js"),__vite__mapDeps([10,3,6,4]),import.meta.url)),meta:{title:"导入快照"}},{path:"/i/:github_asset_id",redirect:Ku},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Ku},{path:"/device",component:yr(()=>br(()=>import("./DevicePage-1a8hCnhz.js"),__vite__mapDeps([11,3,9,7,5,2]),import.meta.url)),beforeEnter(e,t,n){const r=i_(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()},meta:{title:"连接设备"}},{path:"/selector",component:yr(()=>br(()=>import("./SelectorPage-je5Qz2w4.js"),__vite__mapDeps([12,2]),import.meta.url)),meta:{title:"选择器"}},{path:"/:pathMatch(.*)*",component:yr(()=>br(()=>import("./_404Page-BoM3jslx.js"),[],import.meta.url))}]});rp.beforeEach(e=>{document.title=String(e.meta.title||"GKD")});setTimeout(()=>{np.forEach(e=>e())},3e3);const s_=`GIT commit
|
|
913
|
+
hash: 5a8e2879231c5a0316b473ad69984ca7591fe128
|
|
914
|
+
date: 2025-02-17T20:58:48+08:00
|
|
915
|
+
message: feat: new selector
|
|
916
|
+
refs: grafted, HEAD -> main, origin/main
|
|
917
|
+
author_name: 二刺螈
|
|
918
|
+
author_email: i@songe.li`,a_=sS(),Pl=Ed(n_);Pl.use(a_);Pl.use(rp);Pl.mount(Zh);console.log(s_);export{ur as $,Ut as A,qt as B,Rf as C,Ho as D,Yt as E,Qe as F,et as G,v_ as H,Ei as I,ir as J,ct as K,Cr as L,Og as M,is as N,We as O,m_ as P,mu as Q,Ye as R,Zt as S,lv as T,Ze as U,Jw as V,G_ as W,k_ as X,i_ as Y,rs as Z,xl as _,se as a,qS as a$,Je as a0,zw as a1,kw as a2,b_ as a3,ph as a4,To as a5,Pi as a6,Tm as a7,C_ as a8,S_ as a9,$_ as aA,P_ as aB,Y_ as aC,ES as aD,W_ as aE,j_ as aF,O_ as aG,g_ as aH,D_ as aI,Vw as aJ,dS as aK,FS as aL,A_ as aM,BS as aN,M_ as aO,yc as aP,Lu as aQ,K_ as aR,NS as aS,z_ as aT,I_ as aU,mh as aV,Qi as aW,pl as aX,Ji as aY,Io as aZ,di as a_,Lr as aa,Oi as ab,Oe as ac,Fr as ad,os as ae,Ba as af,E_ as ag,gl as ah,Gw as ai,ml as aj,za as ak,Qu as al,Dt as am,Dr as an,h_ as ao,Bn as ap,R_ as aq,Yc as ar,Rt as as,Gi as at,ma as au,Fo as av,Co as aw,Dn as ax,Qv as ay,_l as az,le as b,Gd as b$,B_ as b0,Nu as b1,V_ as b2,XS as b3,N_ as b4,br as b5,Td as b6,ar as b7,nn as b8,Et as b9,y_ as bA,Bp as bB,Km as bC,jm as bD,Kf as bE,Gf as bF,cl as bG,Hr as bH,Fy as bI,Yd as bJ,Dy as bK,fl as bL,Ai as bM,v0 as bN,Nr as bO,px as bP,No as bQ,_0 as bR,th as bS,kr as bT,es as bU,du as bV,Zd as bW,Wr as bX,Jd as bY,jr as bZ,cr as b_,dn as ba,gt as bb,Zi as bc,Vc as bd,Fn as be,Ew as bf,ss as bg,Kc as bh,qc as bi,Dm as bj,ol as bk,Ma as bl,x_ as bm,tl as bn,__ as bo,T_ as bp,zm as bq,Or as br,Im as bs,km as bt,Uc as bu,wn as bv,zo as bw,Pd as bx,Ic as by,lr as bz,to as c,Kd as c0,Sa as c1,Ud as c2,sw as c3,g0 as c4,u_ as c5,gb as c6,w_ as c7,xn as c8,qi as c9,ki as ca,pt as cb,d_ as cc,p_ as cd,Ae as ce,ZS as cf,L_ as cg,U_ as ch,Vu as ci,F_ as cj,H_ as ck,Zr as cl,Qr as cm,Sb as cn,qs as co,Wo as cp,Aw as cq,hi as cr,Rn as d,K as e,ue as f,sa as g,Re as h,Mo as i,yb as j,I as k,vh as l,ht as m,al as n,te as o,$d as p,Q as q,Vt as r,we as s,Mt as t,Ht as u,f_ as v,Ml as w,_n as x,tt as y,e_ as z};
|
|
919
|
+
//# sourceMappingURL=index-3JMZnLI9.js.map
|