You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
16 KiB

import{k as W,bg as ge,f as be}from"./index-f4658ae7.js";import{m as xe,c as ve}from"./use-config-816d55a6.js";import{m as D}from"./merge-15067256.js";const V={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"},w="^\\s*",E="\\s*$",H="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",y="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",M="([0-9A-Fa-f])",B="([0-9A-Fa-f]{2})",Ce=new RegExp(`${w}hsl\\s*\\(${y},${H},${H}\\)${E}`),ye=new RegExp(`${w}hsv\\s*\\(${y},${H},${H}\\)${E}`),Se=new RegExp(`${w}hsla\\s*\\(${y},${H},${H},${y}\\)${E}`),we=new RegExp(`${w}hsva\\s*\\(${y},${H},${H},${y}\\)${E}`),Ee=new RegExp(`${w}rgb\\s*\\(${y},${y},${y}\\)${E}`),Ae=new RegExp(`${w}rgba\\s*\\(${y},${y},${y},${y}\\)${E}`),K=new RegExp(`${w}#${M}${M}${M}${E}`),Z=new RegExp(`${w}#${B}${B}${B}${E}`),G=new RegExp(`${w}#${M}${M}${M}${M}${E}`),J=new RegExp(`${w}#${B}${B}${B}${B}${E}`);function v(r){return parseInt(r,16)}function dr(r){try{let e;if(e=Se.exec(r))return[S(e[1]),h(e[5]),h(e[9]),A(e[13])];if(e=Ce.exec(r))return[S(e[1]),h(e[5]),h(e[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${r}.`)}catch(e){throw e}}function mr(r){try{let e;if(e=we.exec(r))return[S(e[1]),h(e[5]),h(e[9]),A(e[13])];if(e=ye.exec(r))return[S(e[1]),h(e[5]),h(e[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${r}.`)}catch(e){throw e}}function P(r){try{let e;if(e=Z.exec(r))return[v(e[1]),v(e[2]),v(e[3]),1];if(e=Ee.exec(r))return[m(e[1]),m(e[5]),m(e[9]),1];if(e=Ae.exec(r))return[m(e[1]),m(e[5]),m(e[9]),A(e[13])];if(e=K.exec(r))return[v(e[1]+e[1]),v(e[2]+e[2]),v(e[3]+e[3]),1];if(e=J.exec(r))return[v(e[1]),v(e[2]),v(e[3]),A(v(e[4])/255)];if(e=G.exec(r))return[v(e[1]+e[1]),v(e[2]+e[2]),v(e[3]+e[3]),A(v(e[4]+e[4])/255)];if(r in V)return P(V[r]);throw new Error(`[seemly/rgba]: Invalid color value ${r}.`)}catch(e){throw e}}function Re(r){return r>1?1:r<0?0:r}function He(r,e,t){return`rgb(${m(r)}, ${m(e)}, ${m(t)})`}function U(r,e,t,n){return`rgba(${m(r)}, ${m(e)}, ${m(t)}, ${Re(n)})`}function q(r,e,t,n,o){return m((r*e*(1-n)+t*n)/o)}function Pe(r,e){Array.isArray(r)||(r=P(r)),Array.isArray(e)||(e=P(e));const t=r[3],n=e[3],o=A(t+n-t*n);return U(q(r[0],t,e[0],n,o),q(r[1],t,e[1],n,o),q(r[2],t,e[2],n,o),o)}function hr(r,e){const[t,n,o,u=1]=Array.isArray(r)?r:P(r);return e.alpha?U(t,n,o,e.alpha):U(t,n,o,u)}function I(r,e){const[t,n,o,u=1]=Array.isArray(r)?r:P(r),{lightness:s=1,alpha:a=1}=e;return Me([t*s,n*s,o*s,u*a])}function A(r){const e=Math.round(Number(r)*100)/100;return e>1?1:e<0?0:e}function S(r){const e=Math.round(Number(r));return e>=360||e<0?0:e}function m(r){const e=Math.round(Number(r));return e>255?255:e<0?0:e}function h(r){const e=Math.round(Number(r));return e>100?100:e<0?0:e}function $r(r){const[e,t,n]=Array.isArray(r)?r:P(r);return He(e,t,n)}function Me(r){const[e,t,n]=r;return 3 in r?`rgba(${m(e)}, ${m(t)}, ${m(n)}, ${A(r[3])})`:`rgba(${m(e)}, ${m(t)}, ${m(n)}, 1)`}function gr(r){return`hsv(${S(r[0])}, ${h(r[1])}%, ${h(r[2])}%)`}function br(r){const[e,t,n]=r;return 3 in r?`hsva(${S(e)}, ${h(t)}%, ${h(n)}%, ${A(r[3])})`:`hsva(${S(e)}, ${h(t)}%, ${h(n)}%, 1)`}function xr(r){return`hsl(${S(r[0])}, ${h(r[1])}%, ${h(r[2])}%)`}function vr(r){const[e,t,n]=r;return 3 in r?`hsla(${S(e)}, ${h(t)}%, ${h(n)}%, ${A(r[3])})`:`hsla(${S(e)}, ${h(t)}%, ${h(n)}%, 1)`}function Cr(r){if(typeof r=="string"){let n;if(n=Z.exec(r))return`${n[0]}FF`;if(n=J.exec(r))return n[0];if(n=K.exec(r))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}FF`;if(n=G.exec(r))return`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}${n[4]}${n[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${r}.`)}const e=`#${r.slice(0,3).map(n=>m(n).toString(16).toUpperCase().padStart(2,"0")).join("")}`,t=r.length===3?"FF":m(r[3]*255).toString(16).padStart(2,"0").toUpperCase();return e+t}function yr(r){if(typeof r=="string"){let e;if(e=Z.exec(r))return e[0];if(e=J.exec(r))return e[0].slice(0,7);if(e=K.exec(r)||G.exec(r))return`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${r}.`)}return`#${r.slice(0,3).map(e=>m(e).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Be(r){let e=0;for(let t=0;t<r.length;++t)r[t]==="&"&&++e;return e}const ie=/\s*,(?![^(]*\))\s*/g,Fe=/\s+/g;function Oe(r,e){const t=[];return e.split(ie).forEach(n=>{let o=Be(n);if(o){if(o===1){r.forEach(s=>{t.push(n.replace("&",s))});return}}else{r.forEach(s=>{t.push((s&&s+" ")+n)});return}let u=[n];for(;o--;){const s=[];u.forEach(a=>{r.forEach(g=>{s.push(a.replace("&",g))})}),u=s}u.forEach(s=>t.push(s))}),t}function je(r,e){const t=[];return e.split(ie).forEach(n=>{r.forEach(o=>{t.push((o&&o+" ")+n)})}),t}function ze(r){let e=[""];return r.forEach(t=>{t=t&&t.trim(),t&&(t.includes("&")?e=Oe(e,t):e=je(e,t))}),e.join(", ").replace(Fe," ")}function ee(r){if(!r)return;const e=r.parentElement;e&&e.removeChild(r)}function Q(r){return document.querySelector(`style[cssr-id="${r}"]`)}function De(r){const e=document.createElement("style");return e.setAttribute("cssr-id",r),e}function _(r){return r?/^\s*@(s|m)/.test(r):!1}const Ie=/[A-Z]/g;function le(r){return r.replace(Ie,e=>"-"+e.toLowerCase())}function _e(r,e=" "){return typeof r=="object"&&r!==null?` {
`+Object.entries(r).map(t=>e+` ${le(t[0])}: ${t[1]};`).join(`
`)+`
`+e+"}":`: ${r};`}function Te(r,e,t){return typeof r=="function"?r({context:e.context,props:t}):r}function re(r,e,t,n){if(!e)return"";const o=Te(e,t,n);if(!o)return"";if(typeof o=="string")return`${r} {
${o}
}`;const u=Object.keys(o);if(u.length===0)return t.config.keepEmptyBlock?r+` {
}`:"";const s=r?[r+" {"]:[];return u.forEach(a=>{const g=o[a];if(a==="raw"){s.push(`
`+g+`
`);return}a=le(a),g!=null&&s.push(` ${a}${_e(g)}`)}),r&&s.push("}"),s.join(`
`)}function L(r,e,t){r&&r.forEach(n=>{if(Array.isArray(n))L(n,e,t);else if(typeof n=="function"){const o=n(e);Array.isArray(o)?L(o,e,t):o&&t(o)}else n&&t(n)})}function se(r,e,t,n,o,u){const s=r.$;let a="";if(!s||typeof s=="string")_(s)?a=s:e.push(s);else if(typeof s=="function"){const c=s({context:n.context,props:o});_(c)?a=c:e.push(c)}else if(s.before&&s.before(n.context),!s.$||typeof s.$=="string")_(s.$)?a=s.$:e.push(s.$);else if(s.$){const c=s.$({context:n.context,props:o});_(c)?a=c:e.push(c)}const g=ze(e),f=re(g,r.props,n,o);a?(t.push(`${a} {`),u&&f&&u.insertRule(`${a} {
${f}
}
`)):(u&&f&&u.insertRule(f),!u&&f.length&&t.push(f)),r.children&&L(r.children,{context:n.context,props:o},c=>{if(typeof c=="string"){const x=re(g,{raw:c},n,o);u?u.insertRule(x):t.push(x)}else se(c,e,t,n,o,u)}),e.pop(),a&&t.push("}"),s&&s.after&&s.after(n.context)}function ae(r,e,t,n=!1){const o=[];return se(r,[],o,e,t,n?r.instance.__styleSheet:void 0),n?"":o.join(`
`)}typeof window!="undefined"&&(window.__cssrContext={});function Ne(r,e,t){const{els:n}=e;if(t===void 0)n.forEach(ee),e.els=[];else{const o=Q(t);o&&n.includes(o)&&(ee(o),e.els=n.filter(u=>u!==o))}}function ne(r,e){r.push(e)}function ke(r,e,t,n,o,u,s,a,g){if(u&&!g){if(t===void 0)return;const R=window.__cssrContext;R[t]||(R[t]=!0,ae(e,r,n,u));return}let f;if(t===void 0&&(f=e.render(n),t=xe(f)),g){g.adapter(t,f!=null?f:e.render(n));return}const c=Q(t);if(c!==null&&!s)return c;const x=c!=null?c:De(t);if(f===void 0&&(f=e.render(n)),x.textContent=f,c!==null)return c;if(a){const R=document.head.querySelector(`meta[name="${a}"]`);if(R)return document.head.insertBefore(x,R),ne(e.els,x),x}return o?document.head.insertBefore(x,document.head.querySelector("style, link")):document.head.appendChild(x),ne(e.els,x),x}function qe(r){return ae(this,this.instance,r)}function Ue(r={}){const{id:e,ssr:t,props:n,head:o=!1,silent:u=!1,force:s=!1,anchorMetaName:a}=r;return ke(this.instance,this,e,n,o,u,s,a,t)}function Le(r={}){const{id:e}=r;Ne(this.instance,this,e)}const T=function(r,e,t,n){return{instance:r,$:e,props:t,children:n,els:[],render:qe,mount:Ue,unmount:Le}},We=function(r,e,t,n){return Array.isArray(e)?T(r,{$:null},null,e):Array.isArray(t)?T(r,e,null,t):Array.isArray(n)?T(r,e,t,n):T(r,e,t,null)};function Ke(r={}){let e=null;const t={c:(...n)=>We(t,...n),use:(n,...o)=>n.install(t,...o),find:Q,context:{},config:r,get __styleSheet(){if(!e){const n=document.createElement("style");return document.head.appendChild(n),e=document.styleSheets[document.styleSheets.length-1],e}return e}};return t}function Ze(r){let e=".",t="__",n="--",o;if(r){let i=r.blockPrefix;i&&(e=i),i=r.elementPrefix,i&&(t=i),i=r.modifierPrefix,i&&(n=i)}const u={install(i){o=i.c;const $=i.context;$.bem={},$.bem.b=null,$.bem.els=null}};function s(i){let $,p;return{before(d){$=d.bem.b,p=d.bem.els,d.bem.els=null},after(d){d.bem.b=$,d.bem.els=p},$({context:d,props:C}){return i=typeof i=="string"?i:i({context:d,props:C}),d.bem.b=i,`${(C==null?void 0:C.bPrefix)||e}${d.bem.b}`}}}function a(i){let $;return{before(p){$=p.bem.els},after(p){p.bem.els=$},$({context:p,props:d}){return i=typeof i=="string"?i:i({context:p,props:d}),p.bem.els=i.split(",").map(C=>C.trim()),p.bem.els.map(C=>`${(d==null?void 0:d.bPrefix)||e}${p.bem.b}${t}${C}`).join(", ")}}}function g(i){return{$({context:$,props:p}){i=typeof i=="string"?i:i({context:$,props:p});const d=i.split(",").map(F=>F.trim());function C(F){return d.map(k=>`&${(p==null?void 0:p.bPrefix)||e}${$.bem.b}${F!==void 0?`${t}${F}`:""}${n}${k}`).join(", ")}const z=$.bem.els;return z!==null?C(z[0]):C()}}}function f(i){return{$({context:$,props:p}){i=typeof i=="string"?i:i({context:$,props:p});const d=$.bem.els;return`&:not(${(p==null?void 0:p.bPrefix)||e}${$.bem.b}${d!==null&&d.length>0?`${t}${d[0]}`:""}${n}${i})`}}}return Object.assign(u,{cB:(...i)=>o(s(i[0]),i[1],i[2]),cE:(...i)=>o(a(i[0]),i[1],i[2]),cM:(...i)=>o(g(i[0]),i[1],i[2]),cNotM:(...i)=>o(f(i[0]),i[1],i[2])}),u}const Ge="n",j=`.${Ge}-`,Je="__",Qe="--",ue=Ke(),ce=Ze({blockPrefix:j,elementPrefix:Je,modifierPrefix:Qe});ue.use(ce);const{c:O,find:Sr}=ue,{cB:Xe,cE:wr,cM:Er,cNotM:Ar}=ce;function Rr(r){return O(({props:{bPrefix:e}})=>`${e||j}modal, ${e||j}drawer`,[r])}function Hr(r){return O(({props:{bPrefix:e}})=>`${e||j}popover`,[r])}function Pr(r){return O(({props:{bPrefix:e}})=>`&${e||j}modal`,r)}const Mr=(...r)=>O(">",[Xe(...r)]),fe=Symbol("@css-render/vue3-ssr");function Ye(r,e){return`<style cssr-id="${r}">
${e}
</style>`}function Ve(r,e){const t=W(fe,null);if(t===null)return;const{styles:n,ids:o}=t;o.has(r)||n!==null&&(o.add(r),n.push(Ye(r,e)))}const er=typeof document!="undefined";function rr(){if(er)return;const r=W(fe,null);if(r!==null)return{adapter:Ve,context:r}}const pe={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:nr,fontFamily:tr,lineHeight:or}=pe,ir=O("body",`
margin: 0;
font-size: ${nr};
font-family: ${tr};
line-height: ${or};
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
`,[O("input",`
font-family: inherit;
font-size: inherit;
`)]),te="naive-ui-style";function Br(r){return r}function lr(r,e,t,n,o,u){const s=rr(),a=W(ve,null);if(t){const f=()=>{const c=u==null?void 0:u.value;t.mount({id:c===void 0?e:c+e,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:te,ssr:s}),a!=null&&a.preflightStyleDisabled||ir.mount({id:"n-global",head:!0,anchorMetaName:te,ssr:s})};s?f():ge(f)}return be(()=>{var f;const{theme:{common:c,self:x,peers:R={}}={},themeOverrides:N={},builtinThemeOverrides:i={}}=o,{common:$,peers:p}=N,{common:d=void 0,[r]:{common:C=void 0,self:z=void 0,peers:F={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:k=void 0,[r]:X={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:me,peers:he={}}=X,Y=D({},c||C||d||n.common,k,me,$),$e=D((f=x||z||n.self)===null||f===void 0?void 0:f(Y),i,X,N);return{common:Y,self:$e,peers:D({},n.peers,F,R),peerOverrides:D({},i.peers,he,p)}})}lr.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const l={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaDisabledInput:"0.02",alphaPending:"0.05",alphaTablePending:"0.02",alphaPressed:"0.07",alphaAvatar:"0.2",alphaRail:"0.14",alphaProgressRail:".08",alphaBorder:"0.12",alphaDivider:"0.06",alphaInput:"0",alphaAction:"0.02",alphaTab:"0.04",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",alphaCode:"0.05",alphaTag:"0.02",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},sr=P(l.neutralBase),de=P(l.neutralInvertBase),ar="rgba("+de.slice(0,3).join(", ")+", ";function oe(r){return ar+String(r)+")"}function b(r){const e=Array.from(de);return e[3]=Number(r),Pe(sr,e)}const ur=Object.assign(Object.assign({name:"common"},pe),{baseColor:l.neutralBase,primaryColor:l.primaryDefault,primaryColorHover:l.primaryHover,primaryColorPressed:l.primaryActive,primaryColorSuppl:l.primarySuppl,infoColor:l.infoDefault,infoColorHover:l.infoHover,infoColorPressed:l.infoActive,infoColorSuppl:l.infoSuppl,successColor:l.successDefault,successColorHover:l.successHover,successColorPressed:l.successActive,successColorSuppl:l.successSuppl,warningColor:l.warningDefault,warningColorHover:l.warningHover,warningColorPressed:l.warningActive,warningColorSuppl:l.warningSuppl,errorColor:l.errorDefault,errorColorHover:l.errorHover,errorColorPressed:l.errorActive,errorColorSuppl:l.errorSuppl,textColorBase:l.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:b(l.alpha4),placeholderColor:b(l.alpha4),placeholderColorDisabled:b(l.alpha5),iconColor:b(l.alpha4),iconColorHover:I(b(l.alpha4),{lightness:.75}),iconColorPressed:I(b(l.alpha4),{lightness:.9}),iconColorDisabled:b(l.alpha5),opacity1:l.alpha1,opacity2:l.alpha2,opacity3:l.alpha3,opacity4:l.alpha4,opacity5:l.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:b(Number(l.alphaClose)),closeIconColorHover:b(Number(l.alphaClose)),closeIconColorPressed:b(Number(l.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:b(l.alpha4),clearColorHover:I(b(l.alpha4),{lightness:.75}),clearColorPressed:I(b(l.alpha4),{lightness:.9}),scrollbarColor:oe(l.alphaScrollbar),scrollbarColorHover:oe(l.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:b(l.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:l.neutralPopover,tableColor:l.neutralCard,cardColor:l.neutralCard,modalColor:l.neutralModal,bodyColor:l.neutralBody,tagColor:"#eee",avatarColor:b(l.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:b(l.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:l.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)"}),Fr=ur;export{xr as A,$r as B,Ke as C,gr as D,Pr as E,pe as a,lr as b,O as c,te as d,Xe as e,Er as f,wr as g,Ar as h,ir as i,Br as j,Fr as k,Pe as l,Rr as m,Hr as n,hr as o,Mr as p,Q as q,P as r,vr as s,Cr as t,rr as u,br as v,Me as w,dr as x,mr as y,yr as z};