@admin-core/design 0.1.0 → 0.2.0
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/README.md +212 -302
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2351 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/composables.d.ts +89 -0
- package/dist/theme/composables.d.ts.map +1 -0
- package/dist/theme/constants.d.ts +51 -0
- package/dist/theme/constants.d.ts.map +1 -0
- package/dist/theme/index.d.ts +50 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/types.d.ts +135 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/theme/utils.d.ts +230 -0
- package/dist/theme/utils.d.ts.map +1 -0
- package/package.json +23 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe="light",pe="default",B={MODE:"theme-mode",VARIANT:"theme-variant"},X={DARK:"dark",LIGHT:"light"},he={THEME:"data-theme",MODE:"data-mode"},Ve=300,ee=[{id:"default",name:"经典蓝",icon:"🔵",description:"经典的蓝色主题,适合大多数场景",primaryColor:"hsl(212, 100%, 48%)",category:"colorful",isDefault:!0},{id:"slate",name:"石板灰",icon:"🔘",description:"石板色主题,沉稳内敛",primaryColor:"hsl(215, 20%, 40%)",category:"neutral"},{id:"burnished-lilac",name:"烟熏薰衣草",icon:"🪻",description:"2026流行色 - 优雅的薰衣草紫,展现高贵气质",primaryColor:"hsl(280, 35%, 65%)",category:"colorful"},{id:"teaberry",name:"茶莓红",icon:"🌹",description:"2026流行色 - 浪漫的茶莓色,充满活力",primaryColor:"hsl(345, 75%, 55%)",category:"colorful"},{id:"amaranth",name:"苋菜紫",icon:"💜",description:"2026流行色 - 神秘的苋菜紫,时尚前卫",primaryColor:"hsl(310, 60%, 45%)",category:"colorful"},{id:"pulse-blue",name:"脉冲蓝",icon:"💙",description:"2026流行色 - 充满活力的脉冲蓝,现代时尚",primaryColor:"hsl(200, 85%, 50%)",category:"colorful"},{id:"deep-teal",name:"深邃青",icon:"🩵",description:"2026流行色 - 深邃的青色,沉稳大气",primaryColor:"hsl(180, 65%, 35%)",category:"colorful"},{id:"mermaid-aqua",name:"美人鱼蓝",icon:"🧜♀️",description:"2026流行色 - 梦幻的美人鱼蓝,清新可爱",primaryColor:"hsl(185, 70%, 55%)",category:"colorful"},{id:"pearl-purple",name:"珍珠紫",icon:"🔮",description:"2026流行色 - 柔和的珍珠紫,优雅迷人",primaryColor:"hsl(270, 45%, 70%)",category:"colorful"},{id:"burgundy",name:"勃艮第",icon:"🍷",description:"2026流行色 - 高端奢华的勃艮第红,尊贵典雅",primaryColor:"hsl(345, 65%, 40%)",category:"colorful"},{id:"burnt-sienna",name:"焦赭石",icon:"🍂",description:"2026流行色 - 温暖的焦赭石色,自然大地",primaryColor:"hsl(15, 60%, 50%)",category:"colorful"},{id:"olive-sage",name:"橄榄绿",icon:"🫒",description:"2026流行色 - 沉稳的橄榄绿,自然和谐",primaryColor:"hsl(80, 30%, 45%)",category:"colorful"},{id:"champagne-gold",name:"香槟金",icon:"🥂",description:"2026流行色 - 奢华的香槟金,高贵优雅",primaryColor:"hsl(45, 55%, 60%)",category:"colorful"},{id:"dusty-rose",name:"灰玫瑰",icon:"🌸",description:"2026流行色 - 柔和的灰玫瑰色,温柔可爱",primaryColor:"hsl(350, 40%, 65%)",category:"colorful"},{id:"citrus-green",name:"柑橘绿",icon:"🍋",description:"2026流行色 - 清新的柑橘绿,充满生机",primaryColor:"hsl(75, 70%, 50%)",category:"colorful"}],Mn={colorful:ee.filter(e=>e.category==="colorful"),neutral:ee.filter(e=>e.category==="neutral"),monochrome:ee.filter(e=>e.category==="monochrome")},Fe=new Map(ee.map(e=>[e.id,e]));function $(){return document.documentElement}function Ot(){if(typeof window>"u")return null;const e=localStorage.getItem(B.MODE);return e==="dark"||e==="light"?e:null}function Dt(){if(typeof window>"u")return null;const e=localStorage.getItem(B.VARIANT);return Fe.has(e)?e:null}function $t(e){typeof window>"u"||localStorage.setItem(B.MODE,e)}function Ct(e){typeof window>"u"||localStorage.setItem(B.VARIANT,e)}function On(){typeof window>"u"||(localStorage.removeItem(B.MODE),localStorage.removeItem(B.VARIANT))}function Vt(e){const t=$();e==="dark"?(t.classList.add(X.DARK),t.classList.remove(X.LIGHT)):(t.classList.remove(X.DARK),t.classList.add(X.LIGHT)),t.setAttribute(he.MODE,e);const n=localStorage.getItem("custom-theme-primary"),r=localStorage.getItem("custom-theme-active")==="true";n&&r&&setTimeout(()=>{const o=it(n,e);Le(o,!1)},0)}function xt(e){const t=$();e==="default"||e===pe?t.removeAttribute(he.THEME):t.setAttribute(he.THEME,e),localStorage.getItem("custom-theme-primary")&&(localStorage.setItem("custom-theme-active","false"),["primary","primary-foreground","secondary","secondary-foreground","accent","accent-foreground","muted","muted-foreground","background","background-deep","foreground","card","card-foreground","border","input","ring","sidebar","sidebar-deep","header","menu"].forEach(o=>{t.style.removeProperty(`--${o}`)}))}function st(){return typeof window>"u"?Pe:$().classList.contains(X.DARK)?"dark":"light"}function Dn(){return typeof window>"u"?pe:$().getAttribute(he.THEME)||pe}function te(e,t={}){const{mode:n,variant:r,persist:o=!0}=e,{transition:s=!0}=t;s&&It(),n&&(Vt(n),o&&$t(n)),r&&(xt(r),o&&Ct(r)),s&&setTimeout(()=>{Rt()},Ve)}function It(){$().style.setProperty("transition",`background-color ${Ve}ms ease, color ${Ve}ms ease`)}function Rt(){$().style.removeProperty("transition")}function At(e={}){const n=st()==="dark"?"light":"dark";return te({mode:n},e),n}function Ht(){const e=Ot(),t=Dt(),n={mode:e||Pe,variant:t||pe,persist:!0,enableTransition:!1};return te(n,{transition:!1}),n}function $n(){return typeof window>"u"?Pe:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function kt(e){if(typeof window>"u")return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=r=>{e(r.matches?"dark":"light")};return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}}function Pt(){return ee}function Ft(e){return Fe.get(e)}function Qe(e){const n=e.replace(/hsl\(|\)|%/g,"").trim().split(/[\s,]+/).map(Number);if(n.length<3||n[0]===void 0||n[1]===void 0||n[2]===void 0)return null;const r={h:n[0],s:n[1],l:n[2]};return n[3]!==void 0&&(r.a=n[3]),r}function Cn(e){const{h:t,s:n,l:r,a:o}=e;return o!==void 0&&o!==1?`hsla(${t}, ${n}%, ${r}%, ${o})`:`hsl(${t}, ${n}%, ${r}%)`}function Lt(e){if(typeof window>"u")return"";const t=$();return getComputedStyle(t).getPropertyValue(`--${e}`).trim()}function Vn(e,t){if(typeof window>"u")return;$().style.setProperty(`--${e}`,t)}function xn(e){const t=Lt(e);return t&&!t.startsWith("hsl")?`hsl(${t})`:t}function In(e){return Fe.has(e)}function Rn(e){return e==="light"||e==="dark"}function Le(e,t=!1){if(typeof window>"u")return;const n=$(),r=o=>o.replace(/hsl\(|\)|%/g,"").trim();Object.entries(e).forEach(([o,s])=>{if(s){const i=o.replace(/([A-Z])/g,"-$1").toLowerCase(),a=r(s);n.style.setProperty(`--${i}`,a)}}),t&&localStorage.setItem("custom-theme-colors",JSON.stringify(e))}function Kt(){if(typeof window>"u")return null;const e=localStorage.getItem("custom-theme-colors");if(!e)return null;try{return JSON.parse(e)}catch{return null}}function An(){if(typeof window>"u")return;const e=$();["primary","primaryForeground","secondary","secondaryForeground","accent","accentForeground","muted","mutedForeground","background","backgroundDeep","foreground","card","cardForeground","border","input","ring","sidebar","sidebarDeep","header","menu"].forEach(n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e.style.removeProperty(`--${r}`)}),localStorage.removeItem("custom-theme-colors"),localStorage.removeItem("custom-theme-primary"),localStorage.removeItem("custom-theme-active")}function Hn(){const e=Kt();return e?(Le(e,!1),!0):!1}function Wt(e){e=e.replace("#","");const t=Number.parseInt(e.substring(0,2),16)/255,n=Number.parseInt(e.substring(2,4),16)/255,r=Number.parseInt(e.substring(4,6),16)/255,o=Math.max(t,n,r),s=Math.min(t,n,r);let i=0,a=0;const l=(o+s)/2;if(o!==s){const d=o-s;switch(a=l>.5?d/(2-o-s):d/(o+s),o){case t:i=((n-r)/d+(n<r?6:0))/6;break;case n:i=((r-t)/d+2)/6;break;case r:i=((t-n)/d+4)/6;break}}i=Math.round(i*360),a=Math.round(a*100);const u=Math.round(l*100);return`${i} ${a}% ${u}%`}function kn(e,t,n){e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n);let s=0,i=0;const a=(r+o)/2;if(r!==o){const u=r-o;switch(i=a>.5?u/(2-r-o):u/(r+o),r){case e:s=((t-n)/u+(t<n?6:0))/6;break;case t:s=((n-e)/u+2)/6;break;case n:s=((e-t)/u+4)/6;break}}s=Math.round(s*360),i=Math.round(i*100);const l=Math.round(a*100);return`${s} ${i}% ${l}%`}function it(e,t="light"){let n;if(e.startsWith("#"))n=Wt(e);else if(e.startsWith("hsl")){const o=Qe(e);n=o?`${o.h} ${o.s}% ${o.l}%`:e}else n=e;const r=Qe(n);if(!r)throw new Error("Invalid color format");return t==="light"?{primary:n,primaryForeground:r.l>50?"0 0% 10%":"0 0% 98%",secondary:`${r.h} ${Math.max(5,r.s-30)}% ${Math.min(96,r.l+40)}%`,secondaryForeground:`${r.h} ${Math.min(100,r.s+20)}% ${Math.max(10,r.l-40)}%`,accent:`${r.h} ${Math.max(5,r.s-25)}% ${Math.min(96,r.l+35)}%`,accentForeground:`${r.h} ${Math.min(100,r.s+15)}% ${Math.max(10,r.l-35)}%`,muted:`${r.h} ${Math.max(5,r.s-40)}% 96%`,mutedForeground:`${r.h} ${Math.max(5,r.s-35)}% 46%`,background:"0 0% 100%",backgroundDeep:`${r.h} ${Math.max(5,r.s-45)}% 95%`,foreground:`${r.h} ${Math.max(5,r.s-40)}% 15%`,card:"0 0% 100%",cardForeground:`${r.h} ${Math.max(5,r.s-40)}% 15%`,border:`${r.h} ${Math.max(5,r.s-40)}% 90%`,input:`${r.h} ${Math.max(5,r.s-40)}% 90%`,ring:n,sidebar:"0 0% 100%",sidebarDeep:"0 0% 100%",header:"0 0% 100%",menu:"0 0% 100%"}:{primary:`${r.h} ${r.s}% ${Math.min(65,r.l+10)}%`,primaryForeground:"0 0% 98%",secondary:`${r.h} ${Math.max(5,r.s-30)}% 17%`,secondaryForeground:"0 0% 98%",accent:`${r.h} ${Math.max(5,r.s-25)}% 19%`,accentForeground:"0 0% 98%",muted:`${r.h} ${Math.max(5,r.s-35)}% 16%`,mutedForeground:`${r.h} ${Math.max(5,r.s-30)}% 65%`,background:`${r.h} ${Math.max(5,r.s-30)}% 12%`,backgroundDeep:`${r.h} ${Math.max(5,r.s-35)}% 9%`,foreground:"0 0% 95%",card:`${r.h} ${Math.max(5,r.s-30)}% 12%`,cardForeground:"0 0% 95%",border:`${r.h} ${Math.max(5,r.s-35)}% 22%`,input:`${r.h} ${Math.max(5,r.s-35)}% 22%`,ring:`${r.h} ${r.s}% ${Math.min(65,r.l+10)}%`,sidebar:`${r.h} ${Math.max(5,r.s-30)}% 12%`,sidebarDeep:`${r.h} ${Math.max(5,r.s-35)}% 9%`,header:`${r.h} ${Math.max(5,r.s-30)}% 12%`,menu:`${r.h} ${Math.max(5,r.s-30)}% 12%`}}function Pn(e,t,n=!1){const r=t||st(),o=it(e,r);Le(o,n),localStorage.setItem("custom-theme-primary",e),localStorage.setItem("custom-theme-active","true")}function Fn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const me=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const ne=()=>{},Ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),W=Object.assign,Kn=Object.prototype.hasOwnProperty,Ze=(e,t)=>Kn.call(e,t),y=Array.isArray,re=e=>Ke(e)==="[object Map]",Wn=e=>Ke(e)==="[object Set]",S=e=>typeof e=="function",A=e=>typeof e=="string",be=e=>typeof e=="symbol",w=e=>e!==null&&typeof e=="object",jn=e=>(w(e)||S(e))&&S(e.then)&&S(e.catch),Un=Object.prototype.toString,Ke=e=>Un.call(e),jt=e=>Ke(e).slice(8,-1),zn=e=>Ke(e)==="[object Object]",at=e=>A(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ut=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},zt=Ut(e=>e.charAt(0).toUpperCase()+e.slice(1)),Yn=Ut(e=>e?`on${zt(e)}`:""),K=(e,t)=>!Object.is(e,t);let St;const We=()=>St||(St=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ct(e){if(y(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=A(r)?qn(r):ct(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(A(e)||w(e))return e}const Bn=/;(?![^(]*\))/g,Jn=/:([^]+)/,Gn=/\/\*[^]*?\*\//g;function qn(e){const t={};return e.replace(Gn,"").split(Bn).forEach(n=>{if(n){const r=n.split(Jn);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function lt(e){let t="";if(A(e))t=e;else if(y(e))for(let n=0;n<e.length;n++){const r=lt(e[n]);r&&(t+=r+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function V(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let g;const ze=new WeakSet;class Qn{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}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ze.has(this)&&(ze.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Bt(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,bt(this),Jt(this);const t=g,n=D;g=this,D=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&g!==this&&V("Active effect was not restored correctly - this is likely a Vue internal bug."),Gt(this),g=t,D=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)dt(t);this.deps=this.depsTail=void 0,bt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ze.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xe(this)&&this.run()}get dirty(){return Xe(this)}}let Yt=0,fe,de;function Bt(e,t=!1){if(e.flags|=8,t){e.next=de,de=e;return}e.next=fe,fe=e}function ut(){Yt++}function ft(){if(--Yt>0)return;if(de){let t=de;for(de=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fe;){let t=fe;for(fe=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 Jt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Gt(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),dt(r),Zn(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Xe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(qt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function qt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ge)||(e.globalVersion=ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xe(e))))return;e.flags|=2;const t=e.dep,n=g,r=D;g=e,D=!0;try{Jt(e);const o=e.fn(e._value);(t.version===0||K(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{g=n,D=r,Gt(e),e.flags&=-3}}function dt(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),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=o),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)dt(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Zn(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let D=!0;const Qt=[];function ie(){Qt.push(D),D=!1}function ae(){const e=Qt.pop();D=e===void 0?!0:e}function bt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=g;g=void 0;try{t()}finally{g=n}}}let ge=0;class Xn{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 pt{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,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!g||!D||g===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==g)n=this.activeLink=new Xn(g,this),g.deps?(n.prevDep=g.depsTail,g.depsTail.nextDep=n,g.depsTail=n):g.deps=g.depsTail=n,Zt(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=g.depsTail,n.nextDep=void 0,g.depsTail.nextDep=n,g.depsTail=n,g.deps===n&&(g.deps=r)}return process.env.NODE_ENV!=="production"&&g.onTrack&&g.onTrack(W({effect:g},t)),n}trigger(t){this.version++,ge++,this.notify(t)}notify(t){ut();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(W({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ft()}}}function Zt(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)Zt(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const et=new WeakMap,z=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),tt=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),_e=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function b(e,t,n){if(D&&g){let r=et.get(e);r||et.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new pt),o.map=r,o.key=n),process.env.NODE_ENV!=="production"?o.track({target:e,type:t,key:n}):o.track()}}function F(e,t,n,r,o,s){const i=et.get(e);if(!i){ge++;return}const a=l=>{l&&(process.env.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:s}):l.trigger())};if(ut(),t==="clear")i.forEach(a);else{const l=y(e),u=l&&at(n);if(l&&n==="length"){const d=Number(r);i.forEach((c,f)=>{(f==="length"||f===_e||!be(f)&&f>=d)&&a(c)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(_e)),t){case"add":l?u&&a(i.get("length")):(a(i.get(z)),re(e)&&a(i.get(tt)));break;case"delete":l||(a(i.get(z)),re(e)&&a(i.get(tt)));break;case"set":re(e)&&a(i.get(z));break}}ft()}function G(e){const t=h(e);return t===e?t:(b(t,"iterate",_e),T(e)?t:t.map(H))}function ht(e){return b(e=h(e),"iterate",_e),e}function k(e,t){return x(e)?oe(e)?ye(H(t)):ye(t):H(t)}const er={__proto__:null,[Symbol.iterator](){return Ye(this,Symbol.iterator,e=>k(this,e))},concat(...e){return G(this).concat(...e.map(t=>y(t)?G(t):t))},entries(){return Ye(this,"entries",e=>(e[1]=k(this,e[1]),e))},every(e,t){return I(this,"every",e,t,void 0,arguments)},filter(e,t){return I(this,"filter",e,t,n=>n.map(r=>k(this,r)),arguments)},find(e,t){return I(this,"find",e,t,n=>k(this,n),arguments)},findIndex(e,t){return I(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return I(this,"findLast",e,t,n=>k(this,n),arguments)},findLastIndex(e,t){return I(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return I(this,"forEach",e,t,void 0,arguments)},includes(...e){return Be(this,"includes",e)},indexOf(...e){return Be(this,"indexOf",e)},join(e){return G(this).join(e)},lastIndexOf(...e){return Be(this,"lastIndexOf",e)},map(e,t){return I(this,"map",e,t,void 0,arguments)},pop(){return ue(this,"pop")},push(...e){return ue(this,"push",e)},reduce(e,...t){return wt(this,"reduce",e,t)},reduceRight(e,...t){return wt(this,"reduceRight",e,t)},shift(){return ue(this,"shift")},some(e,t){return I(this,"some",e,t,void 0,arguments)},splice(...e){return ue(this,"splice",e)},toReversed(){return G(this).toReversed()},toSorted(e){return G(this).toSorted(e)},toSpliced(...e){return G(this).toSpliced(...e)},unshift(...e){return ue(this,"unshift",e)},values(){return Ye(this,"values",e=>k(this,e))}};function Ye(e,t,n){const r=ht(e),o=r[t]();return r!==e&&!T(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const tr=Array.prototype;function I(e,t,n,r,o,s){const i=ht(e),a=i!==e&&!T(e),l=i[t];if(l!==tr[t]){const c=l.apply(e,s);return a?H(c):c}let u=n;i!==e&&(a?u=function(c,f){return n.call(this,k(e,c),f,e)}:n.length>2&&(u=function(c,f){return n.call(this,c,f,e)}));const d=l.call(i,u,r);return a&&o?o(d):d}function wt(e,t,n,r){const o=ht(e);let s=n;return o!==e&&(T(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,k(e,a),l,e)}),o[t](s,...r)}function Be(e,t,n){const r=h(e);b(r,"iterate",_e);const o=r[t](...n);return(o===-1||o===!1)&&Ie(n[0])?(n[0]=h(n[0]),r[t](...n)):o}function ue(e,t,n=[]){ie(),ut();const r=h(e)[t].apply(e,n);return ft(),ae(),r}const nr=Fn("__proto__,__v_isRef,__isVue"),Xt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(be));function rr(e){be(e)||(e=String(e));const t=h(this);return b(t,"has",e),t.hasOwnProperty(e)}class en{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,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?pr:rn:s?dr:nn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=y(t);if(!o){let l;if(i&&(l=er[n]))return l;if(n==="hasOwnProperty")return rr}const a=Reflect.get(t,n,O(t)?t:r);if((be(n)?Xt.has(n):nr(n))||(o||b(t,"get",n),s))return a;if(O(a)){const l=i&&at(n)?a:a.value;return o&&w(l)?xe(l):l}return w(a)?o?xe(a):on(a):a}}class or extends en{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];const i=y(t)&&at(n);if(!this._isShallow){const u=x(s);if(!T(r)&&!x(r)&&(s=h(s),r=h(r)),!i&&O(s)&&!O(r))return u?(process.env.NODE_ENV!=="production"&&V(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(s.value=r,!0)}const a=i?Number(n)<t.length:Ze(t,n),l=Reflect.set(t,n,r,O(t)?t:o);return t===h(o)&&(a?K(r,s)&&F(t,"set",n,r,s):F(t,"add",n,r)),l}deleteProperty(t,n){const r=Ze(t,n),o=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&F(t,"delete",n,void 0,o),s}has(t,n){const r=Reflect.has(t,n);return(!be(n)||!Xt.has(n))&&b(t,"has",n),r}ownKeys(t){return b(t,"iterate",y(t)?"length":z),Reflect.ownKeys(t)}}class sr extends en{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&V(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&V(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const ir=new or,ar=new sr,nt=e=>e,Ne=e=>Reflect.getPrototypeOf(e);function cr(e,t,n){return function(...r){const o=this.__v_raw,s=h(o),i=re(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),d=n?nt:t?ye:H;return!t&&b(s,"iterate",l?tt:z),{next(){const{value:c,done:f}=u.next();return f?{value:c,done:f}:{value:a?[d(c[0]),d(c[1])]:d(c),done:f}},[Symbol.iterator](){return this}}}}function Me(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";V(`${zt(e)} operation ${n}failed: target is readonly.`,h(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function lr(e,t){const n={get(o){const s=this.__v_raw,i=h(s),a=h(o);e||(K(o,a)&&b(i,"get",o),b(i,"get",a));const{has:l}=Ne(i),u=t?nt:e?ye:H;if(l.call(i,o))return u(s.get(o));if(l.call(i,a))return u(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&b(h(o),"iterate",z),o.size},has(o){const s=this.__v_raw,i=h(s),a=h(o);return e||(K(o,a)&&b(i,"has",o),b(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=h(a),u=t?nt:e?ye:H;return!e&&b(l,"iterate",z),a.forEach((d,c)=>o.call(s,u(d),u(c),i))}};return W(n,e?{add:Me("add"),set:Me("set"),delete:Me("delete"),clear:Me("clear")}:{add(o){!t&&!T(o)&&!x(o)&&(o=h(o));const s=h(this);return Ne(s).has.call(s,o)||(s.add(o),F(s,"add",o,o)),this},set(o,s){!t&&!T(s)&&!x(s)&&(s=h(s));const i=h(this),{has:a,get:l}=Ne(i);let u=a.call(i,o);u?process.env.NODE_ENV!=="production"&&Tt(i,a,o):(o=h(o),u=a.call(i,o));const d=l.call(i,o);return i.set(o,s),u?K(s,d)&&F(i,"set",o,s,d):F(i,"add",o,s),this},delete(o){const s=h(this),{has:i,get:a}=Ne(s);let l=i.call(s,o);l?process.env.NODE_ENV!=="production"&&Tt(s,i,o):(o=h(o),l=i.call(s,o));const u=a?a.call(s,o):void 0,d=s.delete(o);return l&&F(s,"delete",o,void 0,u),d},clear(){const o=h(this),s=o.size!==0,i=process.env.NODE_ENV!=="production"?re(o)?new Map(o):new Set(o):void 0,a=o.clear();return s&&F(o,"clear",void 0,void 0,i),a}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=cr(o,e,t)}),n}function tn(e,t){const n=lr(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Ze(n,o)&&o in r?n:r,o,s)}const ur={get:tn(!1,!1)},fr={get:tn(!0,!1)};function Tt(e,t,n){const r=h(n);if(r!==n&&t.call(e,r)){const o=jt(e);V(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const nn=new WeakMap,dr=new WeakMap,rn=new WeakMap,pr=new WeakMap;function hr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mr(e){return e.__v_skip||!Object.isExtensible(e)?0:hr(jt(e))}function on(e){return x(e)?e:sn(e,!1,ir,ur,nn)}function xe(e){return sn(e,!0,ar,fr,rn)}function sn(e,t,n,r,o){if(!w(e))return process.env.NODE_ENV!=="production"&&V(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=mr(e);if(s===0)return e;const i=o.get(e);if(i)return i;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function oe(e){return x(e)?oe(e.__v_raw):!!(e&&e.__v_isReactive)}function x(e){return!!(e&&e.__v_isReadonly)}function T(e){return!!(e&&e.__v_isShallow)}function Ie(e){return e?!!e.__v_raw:!1}function h(e){const t=e&&e.__v_raw;return t?h(t):e}const H=e=>w(e)?on(e):e,ye=e=>w(e)?xe(e):e;function O(e){return e?e.__v_isRef===!0:!1}function mt(e){return gr(e,!1)}function gr(e,t){return O(e)?e:new _r(e,t)}class _r{constructor(t,n){this.dep=new pt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:h(t),this._value=n?t:H(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||T(t)||x(t);t=r?t:h(t),K(t,n)&&(this._rawValue=t,this._value=r?t:H(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}class yr{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new pt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&g!==this)return Bt(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return qt(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&V("Write operation failed: computed value is readonly")}}function vr(e,t,n=!1){let r,o;S(e)?r=e:(r=e.get,o=e.set);const s=new yr(r,o,n);return process.env.NODE_ENV,s}const Oe={},Re=new WeakMap;let U;function Er(e,t=!1,n=U){if(n){let r=Re.get(n);r||Re.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&V("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Sr(e,t,n=me){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,u=m=>{(n.onWarn||V)("Invalid watch source: ",m,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=m=>o?m:T(m)||o===!1||o===0?L(m,1):L(m);let c,f,p,_,N=!1,we=!1;if(O(e)?(f=()=>e.value,N=T(e)):oe(e)?(f=()=>d(e),N=!0):y(e)?(we=!0,N=e.some(m=>oe(m)||T(m)),f=()=>e.map(m=>{if(O(m))return m.value;if(oe(m))return d(m);if(S(m))return l?l(m,2):m();process.env.NODE_ENV!=="production"&&u(m)})):S(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){ie();try{p()}finally{ae()}}const m=U;U=c;try{return l?l(e,3,[_]):e(_)}finally{U=m}}:(f=ne,process.env.NODE_ENV!=="production"&&u(e)),t&&o){const m=f,C=o===!0?1/0:o;f=()=>L(m(),C)}const J=()=>{c.stop()};if(s&&t){const m=t;t=(...C)=>{m(...C),J()}}let j=we?new Array(e.length).fill(Oe):Oe;const le=m=>{if(!(!(c.flags&1)||!c.dirty&&!m))if(t){const C=c.run();if(o||N||(we?C.some((Ue,Te)=>K(Ue,j[Te])):K(C,j))){p&&p();const Ue=U;U=c;try{const Te=[C,j===Oe?void 0:we&&j[0]===Oe?[]:j,_];j=C,l?l(t,3,Te):t(...Te)}finally{U=Ue}}}else c.run()};return a&&a(le),c=new Qn(f),c.scheduler=i?()=>i(le,!1):le,_=m=>Er(m,!1,c),p=c.onStop=()=>{const m=Re.get(c);if(m){if(l)l(m,4);else for(const C of m)C();Re.delete(c)}},process.env.NODE_ENV!=="production"&&(c.onTrack=n.onTrack,c.onTrigger=n.onTrigger),t?r?le(!0):j=c.run():i?i(le.bind(null,!0),!0):c.run(),J.pause=c.pause.bind(c),J.resume=c.resume.bind(c),J.stop=J,J}function L(e,t=1/0,n){if(t<=0||!w(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,O(e))L(e.value,t,n);else if(y(e))for(let r=0;r<e.length;r++)L(e[r],t,n);else if(Wn(e)||re(e))e.forEach(r=>{L(r,t,n)});else if(zn(e)){for(const r in e)L(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&L(e[r],t,n)}return e}const Y=[];function br(e){Y.push(e)}function wr(){Y.pop()}let Je=!1;function E(e,...t){if(Je)return;Je=!0,ie();const n=Y.length?Y[Y.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=Tr();if(r)je(r,n,11,[e+t.map(s=>{var i,a;return(a=(i=s.toString)==null?void 0:i.call(s))!=null?a:JSON.stringify(s)}).join(""),n&&n.proxy,o.map(({vnode:s})=>`at <${Tn(n,s.type)}>`).join(`
|
|
2
|
+
`),o]);else{const s=[`[Vue warn]: ${e}`,...t];o.length&&s.push(`
|
|
3
|
+
`,...Nr(o)),console.warn(...s)}ae(),Je=!1}function Tr(){let e=Y[Y.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Nr(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
4
|
+
`],...Mr(n))}),t}function Mr({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,o=` at <${Tn(e.component,e.type,r)}`,s=">"+n;return e.props?[o,...Or(e.props),s]:[o+s]}function Or(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...an(r,e[r]))}),n.length>3&&t.push(" ..."),t}function an(e,t,n){return A(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:O(t)?(t=an(e,h(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):S(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=h(t),n?t:[`${e}=`,t])}const gt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function je(e,t,n,r){try{return r?e(...r):e()}catch(o){yt(o,t,n)}}function _t(e,t,n,r){if(S(e)){const o=je(e,t,n,r);return o&&jn(o)&&o.catch(s=>{yt(s,t,n)}),o}if(y(e)){const o=[];for(let s=0;s<e.length;s++)o.push(_t(e[s],t,n,r));return o}else process.env.NODE_ENV!=="production"&&E(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function yt(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||me;if(t){let a=t.parent;const l=t.proxy,u=process.env.NODE_ENV!=="production"?gt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const d=a.ec;if(d){for(let c=0;c<d.length;c++)if(d[c](e,l,u)===!1)return}a=a.parent}if(s){ie(),je(s,null,10,[e,l,u]),ae();return}}Dr(e,n,o,r,i)}function Dr(e,t,n,r=!0,o=!1){if(process.env.NODE_ENV!=="production"){const s=gt[t];if(n&&br(n),E(`Unhandled error${s?` during execution of ${s}`:""}`),n&&wr(),r)throw e;console.error(e)}else{if(o)throw e;console.error(e)}}const M=[];let R=-1;const se=[];let P=null,Q=0;const $r=Promise.resolve();let rt=null;const Cr=100;function Vr(e){let t=R+1,n=M.length;for(;t<n;){const r=t+n>>>1,o=M[r],s=ve(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function cn(e){if(!(e.flags&1)){const t=ve(e),n=M[M.length-1];!n||!(e.flags&2)&&t>=ve(n)?M.push(e):M.splice(Vr(t),0,e),e.flags|=1,ln()}}function ln(){rt||(rt=$r.then(fn))}function un(e){y(e)?se.push(...e):P&&e.id===-1?P.splice(Q+1,0,e):e.flags&1||(se.push(e),e.flags|=1),ln()}function xr(e){if(se.length){const t=[...new Set(se)].sort((n,r)=>ve(n)-ve(r));if(se.length=0,P){P.push(...t);return}for(P=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Q=0;Q<P.length;Q++){const n=P[Q];process.env.NODE_ENV!=="production"&&dn(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}P=null,Q=0}}const ve=e=>e.id==null?e.flags&2?-1:1/0:e.id;function fn(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>dn(e,n):ne;try{for(R=0;R<M.length;R++){const n=M[R];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),je(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;R<M.length;R++){const n=M[R];n&&(n.flags&=-2)}R=-1,M.length=0,xr(e),rt=null,(M.length||se.length)&&fn(e)}}function dn(e,t){const n=e.get(t)||0;if(n>Cr){const r=t.i,o=r&&wn(r.type);return yt(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Ge=new Map;process.env.NODE_ENV!=="production"&&(We().__VUE_HMR_RUNTIME__={createRecord:qe(Ir),rerender:qe(Rr),reload:qe(Ar)});const Ae=new Map;function Ir(e,t){return Ae.has(e)?!1:(Ae.set(e,{initialDef:He(t),instances:new Set}),!0)}function He(e){return Nn(e)?e.__vccOpts:e}function Rr(e,t){const n=Ae.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,He(r.type).render=t),r.renderCache=[],r.job.flags&8||r.update()}))}function Ar(e,t){const n=Ae.get(e);if(!n)return;t=He(t),Nt(n.initialDef,t);const r=[...n.instances];for(let o=0;o<r.length;o++){const s=r[o],i=He(s.type);let a=Ge.get(i);a||(i!==n.initialDef&&Nt(i,t),Ge.set(i,a=new Set)),a.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(a.add(s),s.ceReload(t.styles),a.delete(s)):s.parent?cn(()=>{s.job.flags&8||(s.parent.update(),a.delete(s))}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(i)}un(()=>{Ge.clear()})}function Nt(e,t){W(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function qe(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Z,De=[];function pn(e,t){var n,r;Z=e,Z?(Z.enabled=!0,De.forEach(({event:o,args:s})=>Z.emit(o,...s)),De=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{pn(s,t)}),setTimeout(()=>{Z||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,De=[])},3e3)):De=[]}let Ee=null,Hr=null;function kr(e,t,n=!1){const r=bn();if(r||Br){let o=r?r.parent==null||r.ce?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&&S(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&E(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&E("inject() can only be used inside setup() or functional components.")}const Pr=Symbol.for("v-scx"),Fr=()=>{{const e=kr(Pr);return e||process.env.NODE_ENV!=="production"&&E("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Lr(e,t,n){return process.env.NODE_ENV!=="production"&&!S(t)&&E("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Kr(e,t,n)}function Kr(e,t,n=me){const{immediate:r,deep:o,flush:s,once:i}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&E('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&E('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&E('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=W({},n);process.env.NODE_ENV!=="production"&&(a.onWarn=E);const l=t&&r||!t&&s!=="post";let u;if(Se){if(s==="sync"){const p=Fr();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=ne,p.resume=ne,p.pause=ne,p}}const d=ce;a.call=(p,_,N)=>_t(p,d,_,N);let c=!1;s==="post"?a.scheduler=p=>{Gr(p,d&&d.suspense)}:s!=="sync"&&(c=!0,a.scheduler=(p,_)=>{_?p():cn(p)}),a.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const f=Sr(e,t,a);return Se&&(u?u.push(f):l&&f()),f}const Wr=e=>e.__isTeleport;function hn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}We().requestIdleCallback;We().cancelIdleCallback;function jr(e,t,n=ce,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{ie();const a=ao(n),l=_t(t,n,e,i);return a(),ae(),l});return r?o.unshift(s):o.push(s),s}else if(process.env.NODE_ENV!=="production"){const o=Yn(gt[e].replace(/ hook$/,""));E(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const mn=e=>(t,n=ce)=>{(!Se||e==="sp")&&jr(e,(...r)=>t(...r),n)},Ur=mn("m"),gn=mn("um"),zr=Symbol.for("v-ndc"),Yr={};process.env.NODE_ENV!=="production"&&(Yr.ownKeys=e=>(E("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Br=null;const Jr={},_n=e=>Object.getPrototypeOf(e)===Jr,Gr=Qr,qr=e=>e.__isSuspense;function Qr(e,t){t&&t.pendingBranch?y(e)?t.effects.push(...e):t.effects.push(e):un(e)}const yn=Symbol.for("v-fgt"),Zr=Symbol.for("v-txt"),Xr=Symbol.for("v-cmt");function eo(e){return e?e.__v_isVNode===!0:!1}const to=(...e)=>En(...e),vn=({key:e})=>e??null,Ce=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?A(e)||O(e)||S(e)?{i:Ee,r:e,k:t,f:!!n}:e:null);function no(e,t=null,n=null,r=0,o=null,s=e===yn?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vn(t),ref:t&&Ce(t),scopeId:Hr,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ee};return a?(vt(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=A(n)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&E("VNode created with invalid key (NaN). VNode type:",l.type),l}const ro=process.env.NODE_ENV!=="production"?to:En;function En(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===zr)&&(process.env.NODE_ENV!=="production"&&!e&&E(`Invalid vnode type when creating vnode: ${e}.`),e=Xr),eo(e)){const a=ke(e,t,!0);return n&&vt(a,n),a.patchFlag=-2,a}if(Nn(e)&&(e=e.__vccOpts),t){t=oo(t);let{class:a,style:l}=t;a&&!A(a)&&(t.class=lt(a)),w(l)&&(Ie(l)&&!y(l)&&(l=W({},l)),t.style=ct(l))}const i=A(e)?1:qr(e)?128:Wr(e)?64:w(e)?4:S(e)?2:0;return process.env.NODE_ENV!=="production"&&i&4&&Ie(e)&&(e=h(e),E("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
5
|
+
Component that was made reactive: `,e)),no(e,t,n,r,o,i,s,!0)}function oo(e){return e?Ie(e)||_n(e)?W({},e):e:null}function ke(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?io(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&vn(u),ref:t&&t.ref?n&&s?y(s)?s.concat(Ce(t)):[s,Ce(t)]:Ce(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&i===-1&&y(a)?a.map(Sn):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yn?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ke(e.ssContent),ssFallback:e.ssFallback&&ke(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&hn(d,l.clone(d)),d}function Sn(e){const t=ke(e);return y(e.children)&&(t.children=e.children.map(Sn)),t}function so(e=" ",t=0){return ro(Zr,null,e,t)}function vt(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(y(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),vt(e,o()),o._c&&(o._d=!0));return}else n=32,!t._&&!_n(t)&&(t._ctx=Ee);else S(t)?(t={default:t,_ctx:Ee},n=32):(t=String(t),r&64?(n=16,t=[so(t)]):n=8);e.children=t,e.shapeFlag|=n}function io(...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=lt([t.class,r.class]));else if(o==="style")t.style=ct([t.style,r.style]);else if(Ln(o)){const s=t[o],i=r[o];i&&s!==i&&!(y(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}let ce=null;const bn=()=>ce||Ee;let ot;{const e=We(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};ot=t("__VUE_INSTANCE_SETTERS__",n=>ce=n),t("__VUE_SSR_SETTERS__",n=>Se=n)}const ao=e=>{const t=ce;return ot(e),e.scope.on(),()=>{e.scope.off(),ot(t)}};let Se=!1;process.env.NODE_ENV;const co=/(?:^|[-_])\w/g,lo=e=>e.replace(co,t=>t.toUpperCase()).replace(/[-_]/g,"");function wn(e,t=!0){return S(e)?e.displayName||e.name:e.name||t&&e.__name}function Tn(e,t,n=!1){let r=wn(t);if(!r&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(r=o[1])}if(!r&&e){const o=s=>{for(const i in s)if(s[i]===t)return i};r=o(e.components)||e.parent&&o(e.parent.type.components)||o(e.appContext.components)}return r?lo(r):n?"App":"Anonymous"}function Nn(e){return S(e)&&"__vccOpts"in e}const $e=(e,t)=>{const n=vr(e,t,Se);if(process.env.NODE_ENV!=="production"){const r=bn();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function uo(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},o={__vue_custom_formatter:!0,header(c){if(!w(c))return null;if(c.__isVue)return["div",e,"VueInstance"];if(O(c)){ie();const f=c.value;return ae(),["div",{},["span",e,d(c)],"<",a(f),">"]}else{if(oe(c))return["div",{},["span",e,T(c)?"ShallowReactive":"Reactive"],"<",a(c),`>${x(c)?" (readonly)":""}`];if(x(c))return["div",{},["span",e,T(c)?"ShallowReadonly":"Readonly"],"<",a(c),">"]}return null},hasBody(c){return c&&c.__isVue},body(c){if(c&&c.__isVue)return["div",{},...s(c.$)]}};function s(c){const f=[];c.type.props&&c.props&&f.push(i("props",h(c.props))),c.setupState!==me&&f.push(i("setup",c.setupState)),c.data!==me&&f.push(i("data",h(c.data)));const p=l(c,"computed");p&&f.push(i("computed",p));const _=l(c,"inject");return _&&f.push(i("injected",_)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:c}]]),f}function i(c,f){return f=W({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},c],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(p=>["div",{},["span",r,p+": "],a(f[p],!1)])]]:["span",{}]}function a(c,f=!0){return typeof c=="number"?["span",t,c]:typeof c=="string"?["span",n,JSON.stringify(c)]:typeof c=="boolean"?["span",r,c]:w(c)?["object",{object:f?h(c):c}]:["span",n,String(c)]}function l(c,f){const p=c.type;if(S(p))return;const _={};for(const N in c.ctx)u(p,N,f)&&(_[N]=c.ctx[N]);return _}function u(c,f,p){const _=c[p];if(y(_)&&_.includes(f)||w(_)&&f in _||c.extends&&u(c.extends,f,p)||c.mixins&&c.mixins.some(N=>u(N,f,p)))return!0}function d(c){return T(c)?"ShallowRef":c.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;function fo(){uo()}process.env.NODE_ENV!=="production"&&fo();const v=mt({mode:"light",variant:"default",isChanging:!1});let Mt=!1,q=null;function Et(){if(!Mt&&typeof window<"u"){const u=Ht();v.value={mode:u.mode,variant:u.variant,isChanging:!1},Mt=!0}const e=$e(()=>v.value.mode),t=$e(()=>v.value.variant),n=$e(()=>v.value.mode==="dark"),r=$e(()=>v.value.isChanging),o=(u,d={})=>{v.value.isChanging=!0,te({mode:u},d),v.value.mode=u,setTimeout(()=>{v.value.isChanging=!1},300)},s=(u,d={})=>{v.value.isChanging=!0,te({variant:u},d),v.value.variant=u,setTimeout(()=>{v.value.isChanging=!1},300)},i=(u={})=>{const d=At(u);v.value.mode=d},a=(u,d={})=>{v.value.isChanging=!0,te(u,d),u.mode&&(v.value.mode=u.mode),u.variant&&(v.value.variant=u.variant),setTimeout(()=>{v.value.isChanging=!1},300)},l=()=>Ft(v.value.variant);return{theme:v.value,mode:e.value,variant:t.value,isDark:n.value,isChanging:r.value,setMode:o,setVariant:s,toggleDarkMode:i,setTheme:a,getAvailableThemes:Pt,getCurrentThemeMetadata:l}}function po(e=mt(!0)){const{setMode:t}=Et(),n=()=>{q&&q(),q=kt(o=>{e.value&&t(o,{transition:!0,persist:!1})})},r=()=>{q&&(q(),q=null)};Lr(e,o=>{o?n():r()},{immediate:!0}),gn(()=>{r()})}function ho(e){const t=mt(""),n=()=>{if(typeof window>"u")return;const r=document.documentElement,o=getComputedStyle(r).getPropertyValue(`--${e}`).trim();o&&!o.startsWith("hsl")?t.value=`hsl(${o})`:t.value=o};return Ur(()=>{n();const r=new MutationObserver(()=>{n()});r.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),gn(()=>{r.disconnect()})}),xe(t)}function mo(){const{isChanging:e}=Et();return{isTransitioning:e}}exports.CSS_CLASSES=X;exports.DEFAULT_THEME_MODE=Pe;exports.DEFAULT_THEME_VARIANT=pe;exports.HTML_ATTRIBUTES=he;exports.STORAGE_KEYS=B;exports.THEMES_BY_CATEGORY=Mn;exports.THEME_MAP=Fe;exports.THEME_METADATA=ee;exports.THEME_TRANSITION_DURATION=Ve;exports.applyCustomTheme=Le;exports.applyMode=Vt;exports.applyTheme=te;exports.applyThemeFromPrimary=Pn;exports.applyVariant=xt;exports.clearCustomTheme=An;exports.clearStoredTheme=On;exports.detectSystemTheme=$n;exports.disableTransition=Rt;exports.enableTransition=It;exports.generateThemeFromPrimary=it;exports.getAvailableThemes=Pt;exports.getCSSVariable=Lt;exports.getCurrentMode=st;exports.getCurrentVariant=Dn;exports.getHtmlElement=$;exports.getStoredCustomTheme=Kt;exports.getStoredMode=Ot;exports.getStoredVariant=Dt;exports.getThemeColor=xn;exports.getThemeMetadata=Ft;exports.hexToHSL=Wt;exports.initTheme=Ht;exports.isValidMode=Rn;exports.isValidVariant=In;exports.parseHSL=Qe;exports.restoreCustomTheme=Hn;exports.rgbToHSL=kn;exports.setCSSVariable=Vn;exports.storeMode=$t;exports.storeVariant=Ct;exports.toHSLString=Cn;exports.toggleDarkMode=At;exports.useSystemTheme=po;exports.useTheme=Et;exports.useThemeColor=ho;exports.useThemeTransition=mo;exports.watchSystemTheme=kt;
|
|
2
6
|
//# sourceMappingURL=index.cjs.map
|