create-bc-app 1.0.8 → 1.1.1
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/index.mjs +9 -9
- package/package.json +3 -1
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js +259 -0
- package/template-docs-vitepress/.vitepress/cache/deps/@theme_index.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/_metadata.json +40 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js +9172 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-2MKPR7PC.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js +11482 -0
- package/template-docs-vitepress/.vitepress/cache/deps/chunk-ZXJI2PUM.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/package.json +3 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +4347 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js +567 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js +323 -0
- package/template-docs-vitepress/.vitepress/cache/deps/vue.js.map +7 -0
- package/template-docs-vitepress/.vitepress/config.mts +28 -0
- package/template-docs-vitepress/api-examples.md +49 -0
- package/template-docs-vitepress/index.md +25 -0
- package/template-docs-vitepress/markdown-examples.md +85 -0
- package/template-docs-vitepress/package-lock.json +1742 -0
- package/template-docs-vitepress/package.json +10 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js +11 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vue_devtools-api.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js +136 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/@vuepress_shared.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/_metadata.json +40 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js +11482 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-5K23BRP6.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js +164 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/chunk-UKCZNIRO.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/package.json +3 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js +2744 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue-router.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js +323 -0
- package/template-docs-vuepress/docs/.vuepress/.cache/deps/vue.js.map +7 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/clientConfigs.js +19 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/routes.js +24 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/siteData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/internal/themeData.js +14 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/404.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/get-started.html.vue +23 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.js +16 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/pages/index.html.vue +4 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/prismjs/config.js +3 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/index.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/styles/palette.scss +0 -0
- package/template-docs-vuepress/docs/.vuepress/.temp/vite-root/index.html +13 -0
- package/template-docs-vuepress/docs/.vuepress/config.js +18 -0
- package/template-docs-vuepress/docs/README.md +33 -0
- package/template-docs-vuepress/docs/get-started.md +46 -0
- package/template-docs-vuepress/package-lock.json +3380 -0
- package/template-docs-vuepress/package.json +19 -0
- package/template-vue-js/package.json +2 -1
- package/template-vue-ts/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import y from"fs";import O from"path";import{fileURLToPath as re}from"url";import ne from"readline";import oe from"events";function
|
|
1
|
+
import y from"fs";import O from"path";import{fileURLToPath as re}from"url";import ne from"readline";import oe from"events";function vt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var bt={};const{FORCE_COLOR:le,NODE_DISABLE_COLORS:he,TERM:ae}=process.env,d={enabled:!he&&ae!=="dumb"&&le!=="0",reset:m(0,0),bold:m(1,22),dim:m(2,22),italic:m(3,23),underline:m(4,24),inverse:m(7,27),hidden:m(8,28),strikethrough:m(9,29),black:m(30,39),red:m(31,39),green:m(32,39),yellow:m(33,39),blue:m(34,39),magenta:m(35,39),cyan:m(36,39),white:m(37,39),gray:m(90,39),grey:m(90,39),bgBlack:m(40,49),bgRed:m(41,49),bgGreen:m(42,49),bgYellow:m(43,49),bgBlue:m(44,49),bgMagenta:m(45,49),bgCyan:m(46,49),bgWhite:m(47,49)};function wt(s,t){let e=0,i,n="",o="";for(;e<s.length;e++)i=s[e],n+=i.open,o+=i.close,t.includes(i.close)&&(t=t.replace(i.rgx,i.close+i.open));return n+t+o}function ue(s,t){let e={has:s,keys:t};return e.reset=d.reset.bind(e),e.bold=d.bold.bind(e),e.dim=d.dim.bind(e),e.italic=d.italic.bind(e),e.underline=d.underline.bind(e),e.inverse=d.inverse.bind(e),e.hidden=d.hidden.bind(e),e.strikethrough=d.strikethrough.bind(e),e.black=d.black.bind(e),e.red=d.red.bind(e),e.green=d.green.bind(e),e.yellow=d.yellow.bind(e),e.blue=d.blue.bind(e),e.magenta=d.magenta.bind(e),e.cyan=d.cyan.bind(e),e.white=d.white.bind(e),e.gray=d.gray.bind(e),e.grey=d.grey.bind(e),e.bgBlack=d.bgBlack.bind(e),e.bgRed=d.bgRed.bind(e),e.bgGreen=d.bgGreen.bind(e),e.bgYellow=d.bgYellow.bind(e),e.bgBlue=d.bgBlue.bind(e),e.bgMagenta=d.bgMagenta.bind(e),e.bgCyan=d.bgCyan.bind(e),e.bgWhite=d.bgWhite.bind(e),e}function m(s,t){let e={open:`\x1B[${s}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(i){return this!==void 0&&this.has!==void 0?(this.has.includes(s)||(this.has.push(s),this.keys.push(e)),i===void 0?this:d.enabled?wt(this.keys,i+""):i+""):i===void 0?ue([s],[e]):d.enabled?wt([e],i+""):i+""}}var M=d,ce=(s,t)=>{if(!(s.meta&&s.name!=="escape")){if(s.ctrl){if(s.name==="a")return"first";if(s.name==="c"||s.name==="d")return"abort";if(s.name==="e")return"last";if(s.name==="g")return"reset"}if(t){if(s.name==="j")return"down";if(s.name==="k")return"up"}return s.name==="return"||s.name==="enter"?"submit":s.name==="backspace"?"delete":s.name==="delete"?"deleteForward":s.name==="abort"?"abort":s.name==="escape"?"exit":s.name==="tab"?"next":s.name==="pagedown"?"nextPage":s.name==="pageup"?"prevPage":s.name==="home"?"home":s.name==="end"?"end":s.name==="up"?"up":s.name==="down"?"down":s.name==="right"?"right":s.name==="left"?"left":!1}},it=s=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),e=new RegExp(t,"g");return typeof s=="string"?s.replace(e,""):s};const rt="\x1B",b=`${rt}[`,de="\x07",nt={to(s,t){return t?`${b}${t+1};${s+1}H`:`${b}${s+1}G`},move(s,t){let e="";return s<0?e+=`${b}${-s}D`:s>0&&(e+=`${b}${s}C`),t<0?e+=`${b}${-t}A`:t>0&&(e+=`${b}${t}B`),e},up:(s=1)=>`${b}${s}A`,down:(s=1)=>`${b}${s}B`,forward:(s=1)=>`${b}${s}C`,backward:(s=1)=>`${b}${s}D`,nextLine:(s=1)=>`${b}E`.repeat(s),prevLine:(s=1)=>`${b}F`.repeat(s),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${rt}7`,restore:`${rt}8`},fe={up:(s=1)=>`${b}S`.repeat(s),down:(s=1)=>`${b}T`.repeat(s)},pe={screen:`${b}2J`,up:(s=1)=>`${b}1J`.repeat(s),down:(s=1)=>`${b}J`.repeat(s),line:`${b}2K`,lineEnd:`${b}K`,lineStart:`${b}1K`,lines(s){let t="";for(let e=0;e<s;e++)t+=this.line+(e<s-1?nt.up():"");return s&&(t+=nt.left),t}};var P={cursor:nt,scroll:fe,erase:pe,beep:de};const me=it,{erase:$t,cursor:ge}=P,ve=s=>[...me(s)].length;var be=function(s,t){if(!t)return $t.line+ge.to(0);let e=0;const i=s.split(/\r?\n/);for(let n of i)e+=1+Math.floor(Math.max(ve(n)-1,0)/t);return $t.lines(e)};const J={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},we={arrowUp:J.arrowUp,arrowDown:J.arrowDown,arrowLeft:J.arrowLeft,arrowRight:J.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},$e=process.platform==="win32"?we:J;var yt=$e;const H=M,Y=yt,ot=Object.freeze({password:{scale:1,render:s=>"*".repeat(s.length)},emoji:{scale:2,render:s=>"\u{1F603}".repeat(s.length)},invisible:{scale:0,render:s=>""},default:{scale:1,render:s=>`${s}`}}),ye=s=>ot[s]||ot.default,k=Object.freeze({aborted:H.red(Y.cross),done:H.green(Y.tick),exited:H.yellow(Y.cross),default:H.cyan("?")}),xe=(s,t,e)=>t?k.aborted:e?k.exited:s?k.done:k.default,Se=s=>H.gray(s?Y.ellipsis:Y.pointerSmall),Oe=(s,t)=>H.gray(s?t?Y.pointerSmall:"+":Y.line);var Me={styles:ot,render:ye,symbols:k,symbol:xe,delimiter:Se,item:Oe};const Pe=it;var Te=function(s,t){let e=String(Pe(s)||"").split(/\r?\n/);return t?e.map(i=>Math.ceil(i.length/t)).reduce((i,n)=>i+n):e.length},Ce=(s,t={})=>{const e=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"",i=t.width;return(s||"").split(/\r?\n/g).map(n=>n.split(/\s+/g).reduce((o,r)=>(r.length+e.length>=i||o[o.length-1].length+r.length+1<i?o[o.length-1]+=` ${r}`:o.push(`${e}${r}`),o),[e]).join(`
|
|
2
2
|
`)).join(`
|
|
3
|
-
`)},De=(s,t,e)=>{e=e||t;let i=Math.min(t-e,s-Math.floor(e/2));i<0&&(i=0);let n=Math.min(i+e,t);return{startIndex:i,endIndex:n}},D={action:ce,clear:
|
|
3
|
+
`)},De=(s,t,e)=>{e=e||t;let i=Math.min(t-e,s-Math.floor(e/2));i<0&&(i=0);let n=Math.min(i+e,t);return{startIndex:i,endIndex:n}},D={action:ce,clear:be,style:Me,strip:it,figures:yt,lines:Te,wrap:Ce,entriesToDisplay:De};const xt=ne,{action:Ee}=D,Ie=oe,{beep:_e,cursor:Re}=P,Ae=M;let je=class extends Ie{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=xt.createInterface({input:this.in,escapeCodeTimeout:50});xt.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(o,r)=>{let l=Ee(r,i);l===!1?this._&&this._(o,r):typeof this[l]=="function"?this[l](r):this.bell()};this.close=()=>{this.out.write(Re.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(_e)}render(){this.onRender(Ae),this.firstRender&&(this.firstRender=!1)}};var F=je;const q=M,Fe=F,{erase:Le,cursor:G}=P,{style:lt,clear:ht,lines:Ne,figures:Ye}=D;class Ve extends Fe{constructor(t={}){super(t),this.transform=lt.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=ht("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=q.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
4
4
|
`),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
5
5
|
`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let i=this.value.slice(0,this.cursor),n=this.value.slice(this.cursor);this.value=`${i}${t}${n}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(G.down(Ne(this.outputError,this.out.columns)-1)+ht(this.outputError,this.out.columns)),this.out.write(ht(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[lt.symbol(this.done,this.aborted),q.bold(this.msg),lt.delimiter(this.done),this.red?q.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
6
6
|
`).reduce((t,e,i)=>t+`
|
|
7
|
-
${i?" ":Ye.pointerSmall} ${q.red().italic(e)}`,"")),this.out.write(Le.line+G.to(0)+this.outputText+G.save+this.outputError+G.restore+G.move(this.cursorOffset,0)))}}var Ve
|
|
7
|
+
${i?" ":Ye.pointerSmall} ${q.red().italic(e)}`,"")),this.out.write(Le.line+G.to(0)+this.outputText+G.save+this.outputError+G.restore+G.move(this.cursorOffset,0)))}}var He=Ve;const R=M,Be=F,{style:St,clear:Ot,figures:X,wrap:Ue,entriesToDisplay:ze}=D,{cursor:Je}=P;class ke extends Be{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map((e,i)=>(typeof e=="string"&&(e={title:e,value:i}),{title:e&&(e.title||e.value||e),value:e&&(e.value===void 0?i:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled})),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=Ot("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
8
8
|
`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
9
9
|
`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(t,e){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Je.hide):this.out.write(Ot(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=ze(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[St.symbol(this.done,this.aborted),R.bold(this.msg),St.delimiter(!1),this.done?this.selection.title:this.selection.disabled?R.yellow(this.warn):R.gray(this.hint)].join(" "),!this.done){this.outputText+=`
|
|
10
10
|
`;for(let i=t;i<e;i++){let n,o,r="",l=this.choices[i];i===t&&t>0?o=X.arrowUp:i===e-1&&e<this.choices.length?o=X.arrowDown:o=" ",l.disabled?(n=this.cursor===i?R.gray().underline(l.title):R.strikethrough().gray(l.title),o=(this.cursor===i?R.bold().gray(X.pointer)+" ":" ")+o):(n=this.cursor===i?R.cyan().underline(l.title):l.title,o=(this.cursor===i?R.cyan(X.pointer)+" ":" ")+o,l.description&&this.cursor===i&&(r=` - ${l.description}`,(o.length+n.length+r.length>=this.out.columns||l.description.split(/\r?\n/).length>1)&&(r=`
|
|
11
11
|
`+Ue(l.description,{margin:3,width:this.out.columns})))),this.outputText+=`${o} ${n}${R.gray(r)}
|
|
12
12
|
`}}this.out.write(this.outputText)}}var Ge=ke;const Q=M,Ke=F,{style:Mt,clear:We}=D,{cursor:Pt,erase:Ze}=P;class qe extends Ke{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
13
13
|
`),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
14
|
-
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(t===" ")this.value=!this.value;else if(t==="1")this.value=!0;else if(t==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Pt.hide):this.out.write(We(this.outputText,this.out.columns)),super.render(),this.outputText=[Mt.symbol(this.done,this.aborted),Q.bold(this.msg),Mt.delimiter(this.done),this.value?this.inactive:Q.cyan().underline(this.inactive),Q.gray("/"),this.value?Q.cyan().underline(this.active):this.active].join(" "),this.out.write(Ze.line+Pt.to(0)+this.outputText))}}var Xe=qe;let Qe=class gt{constructor({token:t,date:e,parts:i,locales:n}){this.token=t,this.date=e||new Date,this.parts=i||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find((e,i)=>i>t&&e instanceof gt)}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const e=t.indexOf(this);return t.find((i,n)=>n>e&&i instanceof gt)}toString(){return String(this.date)}};var A=Qe;const ts=A;let es=class extends ts{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}};var ss=es;const is=A,rs=s=>(s=s%10,s===1?"st":s===2?"nd":s===3?"rd":"th");let ns=class extends is{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+rs(t):this.token==="d"?e+1:this.token==="ddd"?this.locales.weekdaysShort[e]:this.token==="dddd"?this.locales.weekdays[e]:t}};var os=ns;const ls=A;let hs=class extends ls{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}};var as=hs;const us=A;let cs=class extends us{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};var ds=cs;const fs=A;let ps=class extends fs{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}};var ms=ps;const gs=A;let
|
|
14
|
+
`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(t,e){if(t===" ")this.value=!this.value;else if(t==="1")this.value=!0;else if(t==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Pt.hide):this.out.write(We(this.outputText,this.out.columns)),super.render(),this.outputText=[Mt.symbol(this.done,this.aborted),Q.bold(this.msg),Mt.delimiter(this.done),this.value?this.inactive:Q.cyan().underline(this.inactive),Q.gray("/"),this.value?Q.cyan().underline(this.active):this.active].join(" "),this.out.write(Ze.line+Pt.to(0)+this.outputText))}}var Xe=qe;let Qe=class gt{constructor({token:t,date:e,parts:i,locales:n}){this.token=t,this.date=e||new Date,this.parts=i||[this],this.locales=n||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find((e,i)=>i>t&&e instanceof gt)}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const e=t.indexOf(this);return t.find((i,n)=>n>e&&i instanceof gt)}toString(){return String(this.date)}};var A=Qe;const ts=A;let es=class extends ts{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}};var ss=es;const is=A,rs=s=>(s=s%10,s===1?"st":s===2?"nd":s===3?"rd":"th");let ns=class extends is{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+rs(t):this.token==="d"?e+1:this.token==="ddd"?this.locales.weekdaysShort[e]:this.token==="dddd"?this.locales.weekdays[e]:t}};var os=ns;const ls=A;let hs=class extends ls{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}};var as=hs;const us=A;let cs=class extends us{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};var ds=cs;const fs=A;let ps=class extends fs{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}};var ms=ps;const gs=A;let vs=class extends gs{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return e===2?String(t+1).padStart(2,"0"):e===3?this.locales.monthsShort[t]:e===4?this.locales.months[t]:String(t+1)}};var bs=vs;const ws=A;let $s=class extends ws{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}};var ys=$s;const xs=A;let Ss=class extends xs{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}};var Os=Ss,Ms={DatePart:A,Meridiem:ss,Day:os,Hours:as,Milliseconds:ds,Minutes:ms,Month:bs,Seconds:ys,Year:Os};const at=M,Ps=F,{style:Tt,clear:Ct,figures:Ts}=D,{erase:Cs,cursor:Dt}=P,{DatePart:Et,Meridiem:Ds,Day:Es,Hours:Is,Milliseconds:_s,Minutes:Rs,Month:As,Seconds:js,Year:Fs}=Ms,Ls=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,It={1:({token:s})=>s.replace(/\\(.)/g,"$1"),2:s=>new Es(s),3:s=>new As(s),4:s=>new Fs(s),5:s=>new Ds(s),6:s=>new Is(s),7:s=>new Rs(s),8:s=>new js(s),9:s=>new _s(s)},Ns={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class Ys extends Ps{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(Ns,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Ct("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=Ls.exec(t);){let n=e.shift(),o=e.findIndex(r=>r!=null);this.parts.push(o in It?It[o]({token:e[o]||n,date:this.date,parts:this.parts,locales:this.locales}):e[o]||n)}let i=this.parts.reduce((n,o)=>(typeof o=="string"&&typeof n[n.length-1]=="string"?n[n.length-1]+=o:n.push(o),n),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex(t=>t instanceof Et)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
15
15
|
`),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
16
16
|
`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex(e=>e instanceof Et)),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(Dt.hide):this.out.write(Ct(this.outputText,this.out.columns)),super.render(),this.outputText=[Tt.symbol(this.done,this.aborted),at.bold(this.msg),Tt.delimiter(!1),this.parts.reduce((t,e,i)=>t.concat(i===this.cursor&&!this.done?at.cyan().underline(e.toString()):e),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(`
|
|
17
17
|
`).reduce((t,e,i)=>t+`
|
|
18
|
-
${i?" ":Ts.pointerSmall} ${at.red().italic(e)}`,"")),this.out.write(Cs.line+Dt.to(0)+this.outputText))}}var
|
|
18
|
+
${i?" ":Ts.pointerSmall} ${at.red().italic(e)}`,"")),this.out.write(Cs.line+Dt.to(0)+this.outputText))}}var Vs=Ys;const tt=M,Hs=F,{cursor:et,erase:Bs}=P,{style:ut,figures:Us,clear:_t,lines:zs}=D,Js=/[0-9]/,ct=s=>s!==void 0,Rt=(s,t)=>{let e=Math.pow(10,t);return Math.round(s*e)/e};class ks extends Hs{constructor(t={}){super(t),this.transform=ut.render(t.style),this.msg=t.message,this.initial=ct(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=ct(t.min)?t.min:-1/0,this.max=ct(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){!t&&t!==0?(this.placeholder=!0,this.rendered=tt.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Rt(t,this.round)}`),this._value=Rt(t,this.round)),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t==="-"||t==="."&&this.float||Js.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==""?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
19
19
|
`),this.close()}async validate(){let t=await this.validator(this.value);typeof t=="string"&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let t=this.value;this.value=t!==""?t:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(`
|
|
20
20
|
`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||"",this.value!==""&&this.value<this.min&&(this.value=this.min),this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(t,e){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=i,this.color="cyan",t===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.value<this.min&&(this.value=this.min),this.fire(),this.render()}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(et.down(zs(this.outputError,this.out.columns)-1)+_t(this.outputError,this.out.columns)),this.out.write(_t(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[ut.symbol(this.done,this.aborted),tt.bold(this.msg),ut.delimiter(this.done),!this.done||!this.done&&!this.placeholder?tt[this.color]().underline(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(`
|
|
21
21
|
`).reduce((t,e,i)=>t+`
|
|
@@ -35,7 +35,7 @@ Instructions:
|
|
|
35
35
|
`),this.close()}_(t,e){let i=this.input.slice(0,this.cursor),n=this.input.slice(this.cursor);this.input=`${i}${t}${n}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(t,e,i,n){let o,r=i?ft.arrowUp:n?ft.arrowDown:" ",l=e?K.cyan().underline(t.title):t.title;return r=(e?K.cyan(ft.pointer)+" ":" ")+r,t.description&&(o=` - ${t.description}`,(r.length+l.length+o.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(o=`
|
|
36
36
|
`+ei(t.description,{margin:3,width:this.out.columns}))),r+" "+l+K.gray(o||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Lt.hide):this.out.write(Nt(this.outputText,this.out.columns)),super.render();let{startIndex:t,endIndex:e}=si(this.select,this.choices.length,this.limit);if(this.outputText=[dt.symbol(this.done,this.aborted,this.exited),K.bold(this.msg),dt.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const i=this.suggestions.slice(t,e).map((n,o)=>this.renderOption(n,this.select===o+t,o===0&&t>0,o+t===e-1&&e<this.choices.length)).join(`
|
|
37
37
|
`);this.outputText+=`
|
|
38
|
-
`+(i||K.gray(this.fallback.title))}this.out.write(ti.line+Lt.to(0)+this.outputText)}}var oi=ni;const j=M,{cursor:li}=P,hi=Ft,{clear:
|
|
38
|
+
`+(i||K.gray(this.fallback.title))}this.out.write(ti.line+Lt.to(0)+this.outputText)}}var oi=ni;const j=M,{cursor:li}=P,hi=Ft,{clear:Vt,style:Ht,figures:B}=D;class ai extends hi{constructor(t={}){t.overrideRender=!0,super(t),this.inputValue="",this.clear=Vt("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(t=>t.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);const e=this.filteredOptions.findIndex(i=>i===t);this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){t===" "?this.handleSpaceToggle():this.handleInputChange(t)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:`
|
|
39
39
|
Instructions:
|
|
40
40
|
${B.arrowUp}/${B.arrowDown}: Highlight option
|
|
41
41
|
${B.arrowLeft}/${B.arrowRight}/[space]: Toggle selection
|
|
@@ -43,7 +43,7 @@ Instructions:
|
|
|
43
43
|
enter/return: Complete answer
|
|
44
44
|
`:""}renderCurrentInput(){return`
|
|
45
45
|
Filtered results for: ${this.inputValue?this.inputValue:j.gray("Enter something to filter")}
|
|
46
|
-
`}renderOption(t,e,i){let n;return e.disabled?n=t===i?j.gray().underline(e.title):j.strikethrough().gray(e.title):n=t===i?j.cyan().underline(e.title):e.title,(e.selected?j.green(B.radioOn):B.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(e=>e.selected).map(e=>e.title).join(", ");const t=[j.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(j.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(li.hide),super.render();let t=[
|
|
46
|
+
`}renderOption(t,e,i){let n;return e.disabled?n=t===i?j.gray().underline(e.title):j.strikethrough().gray(e.title):n=t===i?j.cyan().underline(e.title):e.title,(e.selected?j.green(B.radioOn):B.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done)return this.value.filter(e=>e.selected).map(e=>e.title).join(", ");const t=[j.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(j.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(li.hide),super.render();let t=[Ht.symbol(this.done,this.aborted),j.bold(this.msg),Ht.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=j.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=Vt(t,this.out.columns)}}var ui=ai;const Bt=M,ci=F,{style:Ut,clear:di}=D,{erase:fi,cursor:zt}=P;class pi extends ci{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(`
|
|
47
47
|
`),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(`
|
|
48
|
-
`),this.close()}_(t,e){return t.toLowerCase()==="y"?(this.value=!0,this.submit()):t.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(zt.hide):this.out.write(di(this.outputText,this.out.columns)),super.render(),this.outputText=[Ut.symbol(this.done,this.aborted),Bt.bold(this.msg),Ut.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Bt.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(fi.line+zt.to(0)+this.outputText))}}var mi=pi,gi={TextPrompt:
|
|
49
|
-
`);const a=O.relative(mt,l);console.log("Done. Now run:"),l!==mt&&console.log(` cd ${a.includes(" ")?`"${a}"`:a}`),console.log(" npm install"),console.log(" npm run dev")}function ee(s,t){y.statSync(s).isDirectory()?Ti(s,t):y.copyFileSync(s,t)}function Ti(s,t){y.mkdirSync(t,{recursive:!0});for(const e of y.readdirSync(s)){const i=O.resolve(s,e),n=O.resolve(t,e);ee(i,n)}}function Ci(s){const t=y.readdirSync(s);return t.length===0||t.length===1&&t[0]===".git"}function se(s){return s?.trim().replace(/\/+$/g,"")}function ie(s){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(s)}function Di(s){return s.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function Ei(s){if(y.existsSync(s))for(const t of y.readdirSync(s))t!==".git"&&y.rmSync(O.resolve(s,t),{recursive:!0,force:!0})}Pi().catch(console.error);
|
|
48
|
+
`),this.close()}_(t,e){return t.toLowerCase()==="y"?(this.value=!0,this.submit()):t.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(zt.hide):this.out.write(di(this.outputText,this.out.columns)),super.render(),this.outputText=[Ut.symbol(this.done,this.aborted),Bt.bold(this.msg),Ut.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Bt.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(fi.line+zt.to(0)+this.outputText))}}var mi=pi,gi={TextPrompt:He,SelectPrompt:Ge,TogglePrompt:Xe,DatePrompt:Vs,NumberPrompt:Gs,MultiselectPrompt:Ft,AutocompletePrompt:oi,AutocompleteMultiselectPrompt:ui,ConfirmPrompt:mi};(function(s){const t=s,e=gi,i=r=>r;function n(r,l,g={}){return new Promise((u,T)=>{const p=new e[r](l),a=g.onAbort||i,h=g.onSubmit||i,v=g.onExit||i;p.on("state",l.onState||i),p.on("submit",x=>u(h(x))),p.on("exit",x=>u(v(x))),p.on("abort",x=>T(a(x)))})}t.text=r=>n("TextPrompt",r),t.password=r=>(r.style="password",t.text(r)),t.invisible=r=>(r.style="invisible",t.text(r)),t.number=r=>n("NumberPrompt",r),t.date=r=>n("DatePrompt",r),t.confirm=r=>n("ConfirmPrompt",r),t.list=r=>{const l=r.separator||",";return n("TextPrompt",r,{onSubmit:g=>g.split(l).map(u=>u.trim())})},t.toggle=r=>n("TogglePrompt",r),t.select=r=>n("SelectPrompt",r),t.multiselect=r=>{r.choices=[].concat(r.choices||[]);const l=g=>g.filter(u=>u.selected).map(u=>u.value);return n("MultiselectPrompt",r,{onAbort:l,onSubmit:l})},t.autocompleteMultiselect=r=>{r.choices=[].concat(r.choices||[]);const l=g=>g.filter(u=>u.selected).map(u=>u.value);return n("AutocompleteMultiselectPrompt",r,{onAbort:l,onSubmit:l})};const o=(r,l)=>Promise.resolve(l.filter(g=>g.title.slice(0,r.length).toLowerCase()===r.toLowerCase()));t.autocomplete=r=>(r.suggest=r.suggest||o,r.choices=[].concat(r.choices||[]),n("AutocompletePrompt",r))})(bt);const pt=bt,vi=["suggest","format","onState","validate","onRender","type"],Jt=()=>{};async function N(s=[],{onSubmit:t=Jt,onCancel:e=Jt}={}){const i={},n=N._override||{};s=[].concat(s);let o,r,l,g,u,T;const p=async(a,h,v=!1)=>{if(!(!v&&a.validate&&a.validate(h)!==!0))return a.format?await a.format(h,i):h};for(r of s)if({name:g,type:u}=r,typeof u=="function"&&(u=await u(o,{...i},r),r.type=u),!!u){for(let a in r){if(vi.includes(a))continue;let h=r[a];r[a]=typeof h=="function"?await h(o,{...i},T):h}if(T=r,typeof r.message!="string")throw new Error("prompt message is required");if({name:g,type:u}=r,pt[u]===void 0)throw new Error(`prompt type (${u}) is not defined`);if(n[r.name]!==void 0&&(o=await p(r,n[r.name]),o!==void 0)){i[g]=o;continue}try{o=N._injected?bi(N._injected,r.initial):await pt[u](r),i[g]=o=await p(r,o,!0),l=await t(r,o,i)}catch{l=!await e(r,i)}if(l)return i}return i}function bi(s,t){const e=s.shift();if(e instanceof Error)throw e;return e===void 0?t:e}function wi(s){N._injected=(N._injected||[]).concat(s)}function $i(s){N._override=Object.assign({},s)}var yi=Object.assign(N,{prompt:N,prompts:pt,inject:wi,override:$i});const kt=vt(yi);function xi(s,t){var e=s;t.slice(0,-1).forEach(function(n){e=e[n]||{}});var i=t[t.length-1];return i in e}function Gt(s){return typeof s=="number"||/^0x[0-9a-f]+$/i.test(s)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(s)}function Kt(s,t){return t==="constructor"&&typeof s[t]=="function"||t==="__proto__"}var Si=function(s,t){t||(t={});var e={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(e.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?e.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(c){e.bools[c]=!0});var i={};function n(c){return i[c].some(function(w){return e.bools[w]})}Object.keys(t.alias||{}).forEach(function(c){i[c]=[].concat(t.alias[c]),i[c].forEach(function(w){i[w]=[c].concat(i[c].filter(function(I){return w!==I}))})}),[].concat(t.string).filter(Boolean).forEach(function(c){e.strings[c]=!0,i[c]&&[].concat(i[c]).forEach(function(w){e.strings[w]=!0})});var o=t.default||{},r={_:[]};function l(c,w){return e.allBools&&/^--[^=]+$/.test(w)||e.strings[c]||e.bools[c]||i[c]}function g(c,w,I){for(var f=c,z=0;z<w.length-1;z++){var C=w[z];if(Kt(f,C))return;f[C]===void 0&&(f[C]={}),(f[C]===Object.prototype||f[C]===Number.prototype||f[C]===String.prototype)&&(f[C]={}),f[C]===Array.prototype&&(f[C]=[]),f=f[C]}var _=w[w.length-1];Kt(f,_)||((f===Object.prototype||f===Number.prototype||f===String.prototype)&&(f={}),f===Array.prototype&&(f=[]),f[_]===void 0||e.bools[_]||typeof f[_]=="boolean"?f[_]=I:Array.isArray(f[_])?f[_].push(I):f[_]=[f[_],I])}function u(c,w,I){if(!(I&&e.unknownFn&&!l(c,I)&&e.unknownFn(I)===!1)){var f=!e.strings[c]&&Gt(w)?Number(w):w;g(r,c.split("."),f),(i[c]||[]).forEach(function(z){g(r,z.split("."),f)})}}Object.keys(e.bools).forEach(function(c){u(c,o[c]===void 0?!1:o[c])});var T=[];s.indexOf("--")!==-1&&(T=s.slice(s.indexOf("--")+1),s=s.slice(0,s.indexOf("--")));for(var p=0;p<s.length;p++){var a=s[p],h,v;if(/^--.+=/.test(a)){var x=a.match(/^--([^=]+)=([\s\S]*)$/);h=x[1];var st=x[2];e.bools[h]&&(st=st!=="false"),u(h,st,a)}else if(/^--no-.+/.test(a))h=a.match(/^--no-(.+)/)[1],u(h,!1,a);else if(/^--.+/.test(a))h=a.match(/^--(.+)/)[1],v=s[p+1],v!==void 0&&!/^(-|--)[^-]/.test(v)&&!e.bools[h]&&!e.allBools&&(!i[h]||!n(h))?(u(h,v,a),p+=1):/^(true|false)$/.test(v)?(u(h,v==="true",a),p+=1):u(h,e.strings[h]?"":!0,a);else if(/^-[^-]+/.test(a)){for(var S=a.slice(1,-1).split(""),Z=!1,$=0;$<S.length;$++){if(v=a.slice($+2),v==="-"){u(S[$],v,a);continue}if(/[A-Za-z]/.test(S[$])&&v[0]==="="){u(S[$],v.slice(1),a),Z=!0;break}if(/[A-Za-z]/.test(S[$])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(v)){u(S[$],v,a),Z=!0;break}if(S[$+1]&&S[$+1].match(/\W/)){u(S[$],a.slice($+2),a),Z=!0;break}else u(S[$],e.strings[S[$]]?"":!0,a)}h=a.slice(-1)[0],!Z&&h!=="-"&&(s[p+1]&&!/^(-|--)[^-]/.test(s[p+1])&&!e.bools[h]&&(!i[h]||!n(h))?(u(h,s[p+1],a),p+=1):s[p+1]&&/^(true|false)$/.test(s[p+1])?(u(h,s[p+1]==="true",a),p+=1):u(h,e.strings[h]?"":!0,a))}else if((!e.unknownFn||e.unknownFn(a)!==!1)&&r._.push(e.strings._||!Gt(a)?a:Number(a)),t.stopEarly){r._.push.apply(r._,s.slice(p+1));break}}return Object.keys(o).forEach(function(c){xi(r,c.split("."))||(g(r,c.split("."),o[c]),(i[c]||[]).forEach(function(w){g(r,w.split("."),o[c])}))}),t["--"]?r["--"]=T.slice():T.forEach(function(c){r._.push(c)}),r};const Oi=vt(Si);let V=!0;const U=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let W=0;if(U.process&&U.process.env&&U.process.stdout){const{FORCE_COLOR:s,NODE_DISABLE_COLORS:t,NO_COLOR:e,TERM:i,COLORTERM:n}=U.process.env;t||e||s==="0"?V=!1:s==="1"||s==="2"||s==="3"?V=!0:i==="dumb"?V=!1:"CI"in U.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in U.process.env)?V=!0:V=process.stdout.isTTY,V&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?W=3:i&&(i.endsWith("-256color")||i.endsWith("256"))?W=2:W=1)}let Wt={enabled:V,supportLevel:W};function Zt(s,t,e=1){const i=`\x1B[${s}m`,n=`\x1B[${t}m`,o=new RegExp(`\\x1b\\[${t}m`,"g");return r=>Wt.enabled&&Wt.supportLevel>=e?i+(""+r).replace(o,i)+n:""+r}const qt=Zt(0,0),Xt=Zt(31,39),mt=process.cwd(),Qt=Oi(process.argv.slice(2),{default:{help:!1},alias:{h:"help",t:"template"},string:["_"]}),Mi={_gitignore:".gitignore"},te="fsapp-project";async function Pi(){let s=se(Qt._[0])||te;const t=()=>s==="."?O.basename(O.resolve()):s;let e;kt.override({overwrite:Qt.overwrite});try{e=await kt([{type:"text",name:"projectName",message:qt("Project name:"),onState:h=>{s=se(h.value)||te}},{type:()=>!y.existsSync(s)||Ci(s)?null:"select",name:"overwrite",message:()=>(s==="."?"Current directory":`Target directory ${s}`)+"is not empty. Please choose how to proceed:",initial:0,choices:[{title:"Remove existing files and continue",value:"yes"},{title:"Cancel operation",value:"no"},{title:"Ignore files and continue",value:"ignore"}]},{type:(h,{overwrite:v})=>{if(v==="no")throw new Error(Xt("\u2716")+" Operation cancelled");return null},name:"overwriteChecker"},{type:()=>ie(t())?null:"text",name:"packageName",message:qt("Package name:"),initial:()=>Di(t()),validate:h=>ie(h)||"Invalid package.json name"},{type:"select",name:"template",message:"Select a template",choices:[{title:"Vue",value:"vue"},{title:"Docs",value:"docs"}]},{type:"select",name:"variant",message:"Select a templateUse arrow-keys. Return to submit.",choices:h=>h==="vue"?[{title:"TypeScript",value:"ts"},{title:"JavaScript",value:"js"}]:h==="docs"?[{title:"VitePress",value:"vitepress"},{title:"VuePress",value:"vuepress"}]:[]}],{onCancel:()=>{throw new Error(Xt("\u2716")+" Operation cancelled")}})}catch(h){console.log(h.message);return}const{overwrite:i,template:n,packageName:o,variant:r}=e,l=O.join(mt,s);i==="yes"?Ei(l):y.existsSync(l)||y.mkdirSync(l,{recursive:!0});const g=O.resolve(re(import.meta.url),"../..",`template-${n}-${r}`),u=(h,v)=>{const x=O.join(l,Mi[h]??h);v?y.writeFileSync(x,v):ee(O.join(g,h),x)},T=y.readdirSync(g);for(const h of T.filter(v=>v!=="package.json"))u(h);const p=JSON.parse(y.readFileSync(O.join(g,"package.json"),"utf-8"));p.name=o||t(),u("package.json",JSON.stringify(p,null,2)+`
|
|
49
|
+
`);const a=O.relative(mt,l);console.log("Done. Now run:"),l!==mt&&console.log(` cd ${a.includes(" ")?`"${a}"`:a}`),n==="vue"&&(console.log(" npm install"),console.log(" npm run dev")),n==="docs"&&(console.log(" npm install"),console.log(" npm run docs:dev"))}function ee(s,t){y.statSync(s).isDirectory()?Ti(s,t):y.copyFileSync(s,t)}function Ti(s,t){y.mkdirSync(t,{recursive:!0});for(const e of y.readdirSync(s)){const i=O.resolve(s,e),n=O.resolve(t,e);ee(i,n)}}function Ci(s){const t=y.readdirSync(s);return t.length===0||t.length===1&&t[0]===".git"}function se(s){return s?.trim().replace(/\/+$/g,"")}function ie(s){return/^(?:@[a-z\d\-*~][a-z\d\-*._~]*\/)?[a-z\d\-~][a-z\d\-._~]*$/.test(s)}function Di(s){return s.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z\d\-~]+/g,"-")}function Ei(s){if(y.existsSync(s))for(const t of y.readdirSync(s))t!==".git"&&y.rmSync(O.resolve(s,t),{recursive:!0,force:!0})}Pi().catch(console.error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bc-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"bin": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"template-vue-js/.gitignore",
|
|
26
26
|
"template-vue-js/",
|
|
27
27
|
"template-vue-ts/",
|
|
28
|
+
"template-docs-vitepress/",
|
|
29
|
+
"template-docs-vuepress/",
|
|
28
30
|
"template-vue-ts/.gitignore",
|
|
29
31
|
"dist/",
|
|
30
32
|
"index.js"
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useMediaQuery
|
|
3
|
+
} from "./chunk-2MKPR7PC.js";
|
|
4
|
+
import {
|
|
5
|
+
computed,
|
|
6
|
+
ref,
|
|
7
|
+
shallowRef,
|
|
8
|
+
watch
|
|
9
|
+
} from "./chunk-ZXJI2PUM.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/vitepress/dist/client/theme-default/index.js
|
|
12
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/fonts.css";
|
|
13
|
+
|
|
14
|
+
// node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
|
15
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/vars.css";
|
|
16
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/base.css";
|
|
17
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/icons.css";
|
|
18
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/utils.css";
|
|
19
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/components/custom-block.css";
|
|
20
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code.css";
|
|
21
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/components/vp-code-group.css";
|
|
22
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/components/vp-doc.css";
|
|
23
|
+
import "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/styles/components/vp-sponsor.css";
|
|
24
|
+
import VPBadge from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
|
25
|
+
import Layout from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/Layout.vue";
|
|
26
|
+
import { default as default2 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPBadge.vue";
|
|
27
|
+
import { default as default3 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPImage.vue";
|
|
28
|
+
import { default as default4 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPButton.vue";
|
|
29
|
+
import { default as default5 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPHomeContent.vue";
|
|
30
|
+
import { default as default6 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPHomeHero.vue";
|
|
31
|
+
import { default as default7 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPHomeFeatures.vue";
|
|
32
|
+
import { default as default8 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPHomeSponsors.vue";
|
|
33
|
+
import { default as default9 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue";
|
|
34
|
+
import { default as default10 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPSponsors.vue";
|
|
35
|
+
import { default as default11 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPTeamPage.vue";
|
|
36
|
+
import { default as default12 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue";
|
|
37
|
+
import { default as default13 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPTeamPageSection.vue";
|
|
38
|
+
import { default as default14 } from "D:/code/npm/create-fsapp/template-docs-vitepress/node_modules/vitepress/dist/client/theme-default/components/VPTeamMembers.vue";
|
|
39
|
+
|
|
40
|
+
// node_modules/vitepress/dist/client/theme-default/support/utils.js
|
|
41
|
+
import { withBase } from "vitepress";
|
|
42
|
+
|
|
43
|
+
// node_modules/vitepress/dist/client/theme-default/composables/data.js
|
|
44
|
+
import { useData as useData$ } from "vitepress";
|
|
45
|
+
var useData = useData$;
|
|
46
|
+
|
|
47
|
+
// node_modules/vitepress/dist/client/theme-default/support/utils.js
|
|
48
|
+
function ensureStartingSlash(path) {
|
|
49
|
+
return /^\//.test(path) ? path : `/${path}`;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// node_modules/vitepress/dist/client/theme-default/support/sidebar.js
|
|
53
|
+
function getSidebar(_sidebar, path) {
|
|
54
|
+
if (Array.isArray(_sidebar))
|
|
55
|
+
return addBase(_sidebar);
|
|
56
|
+
if (_sidebar == null)
|
|
57
|
+
return [];
|
|
58
|
+
path = ensureStartingSlash(path);
|
|
59
|
+
const dir = Object.keys(_sidebar).sort((a, b) => {
|
|
60
|
+
return b.split("/").length - a.split("/").length;
|
|
61
|
+
}).find((dir2) => {
|
|
62
|
+
return path.startsWith(ensureStartingSlash(dir2));
|
|
63
|
+
});
|
|
64
|
+
const sidebar = dir ? _sidebar[dir] : [];
|
|
65
|
+
return Array.isArray(sidebar) ? addBase(sidebar) : addBase(sidebar.items, sidebar.base);
|
|
66
|
+
}
|
|
67
|
+
function getSidebarGroups(sidebar) {
|
|
68
|
+
const groups = [];
|
|
69
|
+
let lastGroupIndex = 0;
|
|
70
|
+
for (const index in sidebar) {
|
|
71
|
+
const item = sidebar[index];
|
|
72
|
+
if (item.items) {
|
|
73
|
+
lastGroupIndex = groups.push(item);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (!groups[lastGroupIndex]) {
|
|
77
|
+
groups.push({ items: [] });
|
|
78
|
+
}
|
|
79
|
+
groups[lastGroupIndex].items.push(item);
|
|
80
|
+
}
|
|
81
|
+
return groups;
|
|
82
|
+
}
|
|
83
|
+
function addBase(items, _base) {
|
|
84
|
+
return [...items].map((_item) => {
|
|
85
|
+
const item = { ..._item };
|
|
86
|
+
const base = item.base || _base;
|
|
87
|
+
if (base && item.link)
|
|
88
|
+
item.link = base + item.link;
|
|
89
|
+
if (item.items)
|
|
90
|
+
item.items = addBase(item.items, base);
|
|
91
|
+
return item;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// node_modules/vitepress/dist/client/theme-default/composables/sidebar.js
|
|
96
|
+
function useSidebar() {
|
|
97
|
+
const { frontmatter, page, theme: theme2 } = useData();
|
|
98
|
+
const is960 = useMediaQuery("(min-width: 960px)");
|
|
99
|
+
const isOpen = ref(false);
|
|
100
|
+
const _sidebar = computed(() => {
|
|
101
|
+
const sidebarConfig = theme2.value.sidebar;
|
|
102
|
+
const relativePath = page.value.relativePath;
|
|
103
|
+
return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : [];
|
|
104
|
+
});
|
|
105
|
+
const sidebar = ref(_sidebar.value);
|
|
106
|
+
watch(_sidebar, (next, prev) => {
|
|
107
|
+
if (JSON.stringify(next) !== JSON.stringify(prev))
|
|
108
|
+
sidebar.value = _sidebar.value;
|
|
109
|
+
});
|
|
110
|
+
const hasSidebar = computed(() => {
|
|
111
|
+
return frontmatter.value.sidebar !== false && sidebar.value.length > 0 && frontmatter.value.layout !== "home";
|
|
112
|
+
});
|
|
113
|
+
const leftAside = computed(() => {
|
|
114
|
+
if (hasAside)
|
|
115
|
+
return frontmatter.value.aside == null ? theme2.value.aside === "left" : frontmatter.value.aside === "left";
|
|
116
|
+
return false;
|
|
117
|
+
});
|
|
118
|
+
const hasAside = computed(() => {
|
|
119
|
+
if (frontmatter.value.layout === "home")
|
|
120
|
+
return false;
|
|
121
|
+
if (frontmatter.value.aside != null)
|
|
122
|
+
return !!frontmatter.value.aside;
|
|
123
|
+
return theme2.value.aside !== false;
|
|
124
|
+
});
|
|
125
|
+
const isSidebarEnabled = computed(() => hasSidebar.value && is960.value);
|
|
126
|
+
const sidebarGroups = computed(() => {
|
|
127
|
+
return hasSidebar.value ? getSidebarGroups(sidebar.value) : [];
|
|
128
|
+
});
|
|
129
|
+
function open() {
|
|
130
|
+
isOpen.value = true;
|
|
131
|
+
}
|
|
132
|
+
function close() {
|
|
133
|
+
isOpen.value = false;
|
|
134
|
+
}
|
|
135
|
+
function toggle() {
|
|
136
|
+
isOpen.value ? close() : open();
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
isOpen,
|
|
140
|
+
sidebar,
|
|
141
|
+
sidebarGroups,
|
|
142
|
+
hasSidebar,
|
|
143
|
+
hasAside,
|
|
144
|
+
leftAside,
|
|
145
|
+
isSidebarEnabled,
|
|
146
|
+
open,
|
|
147
|
+
close,
|
|
148
|
+
toggle
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
|
153
|
+
import { onContentUpdated } from "vitepress";
|
|
154
|
+
|
|
155
|
+
// node_modules/vitepress/dist/client/theme-default/composables/outline.js
|
|
156
|
+
import { getScrollOffset } from "vitepress";
|
|
157
|
+
var resolvedHeaders = [];
|
|
158
|
+
function getHeaders(range) {
|
|
159
|
+
const headers = [
|
|
160
|
+
...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")
|
|
161
|
+
].filter((el) => el.id && el.hasChildNodes()).map((el) => {
|
|
162
|
+
const level = Number(el.tagName[1]);
|
|
163
|
+
return {
|
|
164
|
+
element: el,
|
|
165
|
+
title: serializeHeader(el),
|
|
166
|
+
link: "#" + el.id,
|
|
167
|
+
level
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
return resolveHeaders(headers, range);
|
|
171
|
+
}
|
|
172
|
+
function serializeHeader(h) {
|
|
173
|
+
let ret = "";
|
|
174
|
+
for (const node of h.childNodes) {
|
|
175
|
+
if (node.nodeType === 1) {
|
|
176
|
+
if (node.classList.contains("VPBadge") || node.classList.contains("header-anchor") || node.classList.contains("ignore-header")) {
|
|
177
|
+
continue;
|
|
178
|
+
}
|
|
179
|
+
ret += node.textContent;
|
|
180
|
+
} else if (node.nodeType === 3) {
|
|
181
|
+
ret += node.textContent;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return ret.trim();
|
|
185
|
+
}
|
|
186
|
+
function resolveHeaders(headers, range) {
|
|
187
|
+
if (range === false) {
|
|
188
|
+
return [];
|
|
189
|
+
}
|
|
190
|
+
const levelsRange = (typeof range === "object" && !Array.isArray(range) ? range.level : range) || 2;
|
|
191
|
+
const [high, low] = typeof levelsRange === "number" ? [levelsRange, levelsRange] : levelsRange === "deep" ? [2, 6] : levelsRange;
|
|
192
|
+
headers = headers.filter((h) => h.level >= high && h.level <= low);
|
|
193
|
+
resolvedHeaders.length = 0;
|
|
194
|
+
for (const { element, link } of headers) {
|
|
195
|
+
resolvedHeaders.push({ element, link });
|
|
196
|
+
}
|
|
197
|
+
const ret = [];
|
|
198
|
+
outer: for (let i = 0; i < headers.length; i++) {
|
|
199
|
+
const cur = headers[i];
|
|
200
|
+
if (i === 0) {
|
|
201
|
+
ret.push(cur);
|
|
202
|
+
} else {
|
|
203
|
+
for (let j = i - 1; j >= 0; j--) {
|
|
204
|
+
const prev = headers[j];
|
|
205
|
+
if (prev.level < cur.level) {
|
|
206
|
+
;
|
|
207
|
+
(prev.children || (prev.children = [])).push(cur);
|
|
208
|
+
continue outer;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
ret.push(cur);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return ret;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// node_modules/vitepress/dist/client/theme-default/composables/local-nav.js
|
|
218
|
+
function useLocalNav() {
|
|
219
|
+
const { theme: theme2, frontmatter } = useData();
|
|
220
|
+
const headers = shallowRef([]);
|
|
221
|
+
const hasLocalNav = computed(() => {
|
|
222
|
+
return headers.value.length > 0;
|
|
223
|
+
});
|
|
224
|
+
onContentUpdated(() => {
|
|
225
|
+
headers.value = getHeaders(frontmatter.value.outline ?? theme2.value.outline);
|
|
226
|
+
});
|
|
227
|
+
return {
|
|
228
|
+
headers,
|
|
229
|
+
hasLocalNav
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
// node_modules/vitepress/dist/client/theme-default/without-fonts.js
|
|
234
|
+
var theme = {
|
|
235
|
+
Layout,
|
|
236
|
+
enhanceApp: ({ app }) => {
|
|
237
|
+
app.component("Badge", VPBadge);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
var without_fonts_default = theme;
|
|
241
|
+
export {
|
|
242
|
+
default2 as VPBadge,
|
|
243
|
+
default4 as VPButton,
|
|
244
|
+
default9 as VPDocAsideSponsors,
|
|
245
|
+
default5 as VPHomeContent,
|
|
246
|
+
default7 as VPHomeFeatures,
|
|
247
|
+
default6 as VPHomeHero,
|
|
248
|
+
default8 as VPHomeSponsors,
|
|
249
|
+
default3 as VPImage,
|
|
250
|
+
default10 as VPSponsors,
|
|
251
|
+
default14 as VPTeamMembers,
|
|
252
|
+
default11 as VPTeamPage,
|
|
253
|
+
default13 as VPTeamPageSection,
|
|
254
|
+
default12 as VPTeamPageTitle,
|
|
255
|
+
without_fonts_default as default,
|
|
256
|
+
useLocalNav,
|
|
257
|
+
useSidebar
|
|
258
|
+
};
|
|
259
|
+
//# sourceMappingURL=@theme_index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../node_modules/vitepress/dist/client/theme-default/index.js", "../../../node_modules/vitepress/dist/client/theme-default/without-fonts.js", "../../../node_modules/vitepress/dist/client/theme-default/support/utils.js", "../../../node_modules/vitepress/dist/client/theme-default/composables/data.js", "../../../node_modules/vitepress/dist/client/theme-default/support/sidebar.js", "../../../node_modules/vitepress/dist/client/theme-default/composables/sidebar.js", "../../../node_modules/vitepress/dist/client/theme-default/composables/local-nav.js", "../../../node_modules/vitepress/dist/client/theme-default/composables/outline.js"],
|
|
4
|
+
"sourcesContent": ["import './styles/fonts.css';\nexport * from './without-fonts';\nexport { default as default } from './without-fonts';\n", "import './styles/vars.css';\nimport './styles/base.css';\nimport './styles/icons.css';\nimport './styles/utils.css';\nimport './styles/components/custom-block.css';\nimport './styles/components/vp-code.css';\nimport './styles/components/vp-code-group.css';\nimport './styles/components/vp-doc.css';\nimport './styles/components/vp-sponsor.css';\nimport VPBadge from './components/VPBadge.vue';\nimport Layout from './Layout.vue';\nexport { default as VPBadge } from './components/VPBadge.vue';\nexport { default as VPImage } from './components/VPImage.vue';\nexport { default as VPButton } from './components/VPButton.vue';\nexport { default as VPHomeContent } from './components/VPHomeContent.vue';\nexport { default as VPHomeHero } from './components/VPHomeHero.vue';\nexport { default as VPHomeFeatures } from './components/VPHomeFeatures.vue';\nexport { default as VPHomeSponsors } from './components/VPHomeSponsors.vue';\nexport { default as VPDocAsideSponsors } from './components/VPDocAsideSponsors.vue';\nexport { default as VPSponsors } from './components/VPSponsors.vue';\nexport { default as VPTeamPage } from './components/VPTeamPage.vue';\nexport { default as VPTeamPageTitle } from './components/VPTeamPageTitle.vue';\nexport { default as VPTeamPageSection } from './components/VPTeamPageSection.vue';\nexport { default as VPTeamMembers } from './components/VPTeamMembers.vue';\nexport { useSidebar } from './composables/sidebar';\nexport { useLocalNav } from './composables/local-nav';\nconst theme = {\n Layout,\n enhanceApp: ({ app }) => {\n app.component('Badge', VPBadge);\n }\n};\nexport default theme;\n", "import { withBase } from 'vitepress';\nimport { useData } from '../composables/data';\nimport { isExternal, treatAsHtml } from '../../shared';\nexport function throttleAndDebounce(fn, delay) {\n let timeoutId;\n let called = false;\n return () => {\n if (timeoutId)\n clearTimeout(timeoutId);\n if (!called) {\n fn();\n (called = true) && setTimeout(() => (called = false), delay);\n }\n else\n timeoutId = setTimeout(fn, delay);\n };\n}\nexport function ensureStartingSlash(path) {\n return /^\\//.test(path) ? path : `/${path}`;\n}\nexport function normalizeLink(url) {\n const { pathname, search, hash, protocol } = new URL(url, 'http://a.com');\n if (isExternal(url) ||\n url.startsWith('#') ||\n !protocol.startsWith('http') ||\n !treatAsHtml(pathname))\n return url;\n const { site } = useData();\n const normalizedPath = pathname.endsWith('/') || pathname.endsWith('.html')\n ? url\n : url.replace(/(?:(^\\.+)\\/)?.*$/, `$1${pathname.replace(/(\\.md)?$/, site.value.cleanUrls ? '' : '.html')}${search}${hash}`);\n return withBase(normalizedPath);\n}\n", "import { useData as useData$ } from 'vitepress';\nexport const useData = useData$;\n", "import { ensureStartingSlash } from './utils';\nimport { isActive } from '../../shared';\n/**\n * Get the `Sidebar` from sidebar option. This method will ensure to get correct\n * sidebar config from `MultiSideBarConfig` with various path combinations such\n * as matching `guide/` and `/guide/`. If no matching config was found, it will\n * return empty array.\n */\nexport function getSidebar(_sidebar, path) {\n if (Array.isArray(_sidebar))\n return addBase(_sidebar);\n if (_sidebar == null)\n return [];\n path = ensureStartingSlash(path);\n const dir = Object.keys(_sidebar)\n .sort((a, b) => {\n return b.split('/').length - a.split('/').length;\n })\n .find((dir) => {\n // make sure the multi sidebar key starts with slash too\n return path.startsWith(ensureStartingSlash(dir));\n });\n const sidebar = dir ? _sidebar[dir] : [];\n return Array.isArray(sidebar)\n ? addBase(sidebar)\n : addBase(sidebar.items, sidebar.base);\n}\n/**\n * Get or generate sidebar group from the given sidebar items.\n */\nexport function getSidebarGroups(sidebar) {\n const groups = [];\n let lastGroupIndex = 0;\n for (const index in sidebar) {\n const item = sidebar[index];\n if (item.items) {\n lastGroupIndex = groups.push(item);\n continue;\n }\n if (!groups[lastGroupIndex]) {\n groups.push({ items: [] });\n }\n groups[lastGroupIndex].items.push(item);\n }\n return groups;\n}\nexport function getFlatSideBarLinks(sidebar) {\n const links = [];\n function recursivelyExtractLinks(items) {\n for (const item of items) {\n if (item.text && item.link) {\n links.push({\n text: item.text,\n link: item.link,\n docFooterText: item.docFooterText\n });\n }\n if (item.items) {\n recursivelyExtractLinks(item.items);\n }\n }\n }\n recursivelyExtractLinks(sidebar);\n return links;\n}\n/**\n * Check if the given sidebar item contains any active link.\n */\nexport function hasActiveLink(path, items) {\n if (Array.isArray(items)) {\n return items.some((item) => hasActiveLink(path, item));\n }\n return isActive(path, items.link)\n ? true\n : items.items\n ? hasActiveLink(path, items.items)\n : false;\n}\nfunction addBase(items, _base) {\n return [...items].map((_item) => {\n const item = { ..._item };\n const base = item.base || _base;\n if (base && item.link)\n item.link = base + item.link;\n if (item.items)\n item.items = addBase(item.items, base);\n return item;\n });\n}\n", "import { useMediaQuery } from '@vueuse/core';\nimport { computed, onMounted, onUnmounted, ref, watch, watchEffect, watchPostEffect } from 'vue';\nimport { isActive } from '../../shared';\nimport { hasActiveLink as containsActiveLink, getSidebar, getSidebarGroups } from '../support/sidebar';\nimport { useData } from './data';\nexport function useSidebar() {\n const { frontmatter, page, theme } = useData();\n const is960 = useMediaQuery('(min-width: 960px)');\n const isOpen = ref(false);\n const _sidebar = computed(() => {\n const sidebarConfig = theme.value.sidebar;\n const relativePath = page.value.relativePath;\n return sidebarConfig ? getSidebar(sidebarConfig, relativePath) : [];\n });\n const sidebar = ref(_sidebar.value);\n watch(_sidebar, (next, prev) => {\n if (JSON.stringify(next) !== JSON.stringify(prev))\n sidebar.value = _sidebar.value;\n });\n const hasSidebar = computed(() => {\n return (frontmatter.value.sidebar !== false &&\n sidebar.value.length > 0 &&\n frontmatter.value.layout !== 'home');\n });\n const leftAside = computed(() => {\n if (hasAside)\n return frontmatter.value.aside == null\n ? theme.value.aside === 'left'\n : frontmatter.value.aside === 'left';\n return false;\n });\n const hasAside = computed(() => {\n if (frontmatter.value.layout === 'home')\n return false;\n if (frontmatter.value.aside != null)\n return !!frontmatter.value.aside;\n return theme.value.aside !== false;\n });\n const isSidebarEnabled = computed(() => hasSidebar.value && is960.value);\n const sidebarGroups = computed(() => {\n return hasSidebar.value ? getSidebarGroups(sidebar.value) : [];\n });\n function open() {\n isOpen.value = true;\n }\n function close() {\n isOpen.value = false;\n }\n function toggle() {\n isOpen.value ? close() : open();\n }\n return {\n isOpen,\n sidebar,\n sidebarGroups,\n hasSidebar,\n hasAside,\n leftAside,\n isSidebarEnabled,\n open,\n close,\n toggle\n };\n}\n/**\n * a11y: cache the element that opened the Sidebar (the menu button) then\n * focus that button again when Menu is closed with Escape key.\n */\nexport function useCloseSidebarOnEscape(isOpen, close) {\n let triggerElement;\n watchEffect(() => {\n triggerElement = isOpen.value\n ? document.activeElement\n : undefined;\n });\n onMounted(() => {\n window.addEventListener('keyup', onEscape);\n });\n onUnmounted(() => {\n window.removeEventListener('keyup', onEscape);\n });\n function onEscape(e) {\n if (e.key === 'Escape' && isOpen.value) {\n close();\n triggerElement?.focus();\n }\n }\n}\nexport function useSidebarControl(item) {\n const { page, hash } = useData();\n const collapsed = ref(false);\n const collapsible = computed(() => {\n return item.value.collapsed != null;\n });\n const isLink = computed(() => {\n return !!item.value.link;\n });\n const isActiveLink = ref(false);\n const updateIsActiveLink = () => {\n isActiveLink.value = isActive(page.value.relativePath, item.value.link);\n };\n watch([page, item, hash], updateIsActiveLink);\n onMounted(updateIsActiveLink);\n const hasActiveLink = computed(() => {\n if (isActiveLink.value) {\n return true;\n }\n return item.value.items\n ? containsActiveLink(page.value.relativePath, item.value.items)\n : false;\n });\n const hasChildren = computed(() => {\n return !!(item.value.items && item.value.items.length);\n });\n watchEffect(() => {\n collapsed.value = !!(collapsible.value && item.value.collapsed);\n });\n watchPostEffect(() => {\n ;\n (isActiveLink.value || hasActiveLink.value) && (collapsed.value = false);\n });\n function toggle() {\n if (collapsible.value) {\n collapsed.value = !collapsed.value;\n }\n }\n return {\n collapsed,\n collapsible,\n isLink,\n isActiveLink,\n hasActiveLink,\n hasChildren,\n toggle\n };\n}\n", "import { onContentUpdated } from 'vitepress';\nimport { computed, shallowRef } from 'vue';\nimport { getHeaders } from '../composables/outline';\nimport { useData } from './data';\nexport function useLocalNav() {\n const { theme, frontmatter } = useData();\n const headers = shallowRef([]);\n const hasLocalNav = computed(() => {\n return headers.value.length > 0;\n });\n onContentUpdated(() => {\n headers.value = getHeaders(frontmatter.value.outline ?? theme.value.outline);\n });\n return {\n headers,\n hasLocalNav\n };\n}\n", "import { getScrollOffset } from 'vitepress';\nimport { onMounted, onUnmounted, onUpdated } from 'vue';\nimport { throttleAndDebounce } from '../support/utils';\nimport { useAside } from './aside';\n// cached list of anchor elements from resolveHeaders\nconst resolvedHeaders = [];\nexport function resolveTitle(theme) {\n return ((typeof theme.outline === 'object' &&\n !Array.isArray(theme.outline) &&\n theme.outline.label) ||\n theme.outlineTitle ||\n 'On this page');\n}\nexport function getHeaders(range) {\n const headers = [\n ...document.querySelectorAll('.VPDoc :where(h1,h2,h3,h4,h5,h6)')\n ]\n .filter((el) => el.id && el.hasChildNodes())\n .map((el) => {\n const level = Number(el.tagName[1]);\n return {\n element: el,\n title: serializeHeader(el),\n link: '#' + el.id,\n level\n };\n });\n return resolveHeaders(headers, range);\n}\nfunction serializeHeader(h) {\n let ret = '';\n for (const node of h.childNodes) {\n if (node.nodeType === 1) {\n if (node.classList.contains('VPBadge') ||\n node.classList.contains('header-anchor') ||\n node.classList.contains('ignore-header')) {\n continue;\n }\n ret += node.textContent;\n }\n else if (node.nodeType === 3) {\n ret += node.textContent;\n }\n }\n return ret.trim();\n}\nexport function resolveHeaders(headers, range) {\n if (range === false) {\n return [];\n }\n const levelsRange = (typeof range === 'object' && !Array.isArray(range)\n ? range.level\n : range) || 2;\n const [high, low] = typeof levelsRange === 'number'\n ? [levelsRange, levelsRange]\n : levelsRange === 'deep'\n ? [2, 6]\n : levelsRange;\n headers = headers.filter((h) => h.level >= high && h.level <= low);\n // clear previous caches\n resolvedHeaders.length = 0;\n // update global header list for active link rendering\n for (const { element, link } of headers) {\n resolvedHeaders.push({ element, link });\n }\n const ret = [];\n outer: for (let i = 0; i < headers.length; i++) {\n const cur = headers[i];\n if (i === 0) {\n ret.push(cur);\n }\n else {\n for (let j = i - 1; j >= 0; j--) {\n const prev = headers[j];\n if (prev.level < cur.level) {\n ;\n (prev.children || (prev.children = [])).push(cur);\n continue outer;\n }\n }\n ret.push(cur);\n }\n }\n return ret;\n}\nexport function useActiveAnchor(container, marker) {\n const { isAsideEnabled } = useAside();\n const onScroll = throttleAndDebounce(setActiveLink, 100);\n let prevActiveLink = null;\n onMounted(() => {\n requestAnimationFrame(setActiveLink);\n window.addEventListener('scroll', onScroll);\n });\n onUpdated(() => {\n // sidebar update means a route change\n activateLink(location.hash);\n });\n onUnmounted(() => {\n window.removeEventListener('scroll', onScroll);\n });\n function setActiveLink() {\n if (!isAsideEnabled.value) {\n return;\n }\n const scrollY = window.scrollY;\n const innerHeight = window.innerHeight;\n const offsetHeight = document.body.offsetHeight;\n const isBottom = Math.abs(scrollY + innerHeight - offsetHeight) < 1;\n // resolvedHeaders may be repositioned, hidden or fix positioned\n const headers = resolvedHeaders\n .map(({ element, link }) => ({\n link,\n top: getAbsoluteTop(element)\n }))\n .filter(({ top }) => !Number.isNaN(top))\n .sort((a, b) => a.top - b.top);\n // no headers available for active link\n if (!headers.length) {\n activateLink(null);\n return;\n }\n // page top\n if (scrollY < 1) {\n activateLink(null);\n return;\n }\n // page bottom - highlight last link\n if (isBottom) {\n activateLink(headers[headers.length - 1].link);\n return;\n }\n // find the last header above the top of viewport\n let activeLink = null;\n for (const { link, top } of headers) {\n if (top > scrollY + getScrollOffset() + 4) {\n break;\n }\n activeLink = link;\n }\n activateLink(activeLink);\n }\n function activateLink(hash) {\n if (prevActiveLink) {\n prevActiveLink.classList.remove('active');\n }\n if (hash == null) {\n prevActiveLink = null;\n }\n else {\n prevActiveLink = container.value.querySelector(`a[href=\"${decodeURIComponent(hash)}\"]`);\n }\n const activeLink = prevActiveLink;\n if (activeLink) {\n activeLink.classList.add('active');\n marker.value.style.top = activeLink.offsetTop + 39 + 'px';\n marker.value.style.opacity = '1';\n }\n else {\n marker.value.style.top = '33px';\n marker.value.style.opacity = '0';\n }\n }\n}\nfunction getAbsoluteTop(element) {\n let offsetTop = 0;\n while (element !== document.body) {\n if (element === null) {\n // child element is:\n // - not attached to the DOM (display: none)\n // - set to fixed position (not scrollable)\n // - body or html element (null offsetParent)\n return NaN;\n }\n offsetTop += element.offsetTop;\n element = element.offsetParent;\n }\n return offsetTop;\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["default", "dir", "theme", "theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hash": "760570d2",
|
|
3
|
+
"configHash": "0e7bfa51",
|
|
4
|
+
"lockfileHash": "e2c9b282",
|
|
5
|
+
"browserHash": "4689e08d",
|
|
6
|
+
"optimized": {
|
|
7
|
+
"vue": {
|
|
8
|
+
"src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
|
|
9
|
+
"file": "vue.js",
|
|
10
|
+
"fileHash": "b15fbc31",
|
|
11
|
+
"needsInterop": false
|
|
12
|
+
},
|
|
13
|
+
"vitepress > @vue/devtools-api": {
|
|
14
|
+
"src": "../../../node_modules/@vue/devtools-api/dist/index.js",
|
|
15
|
+
"file": "vitepress___@vue_devtools-api.js",
|
|
16
|
+
"fileHash": "d7562438",
|
|
17
|
+
"needsInterop": false
|
|
18
|
+
},
|
|
19
|
+
"vitepress > @vueuse/core": {
|
|
20
|
+
"src": "../../../node_modules/@vueuse/core/index.mjs",
|
|
21
|
+
"file": "vitepress___@vueuse_core.js",
|
|
22
|
+
"fileHash": "77321e81",
|
|
23
|
+
"needsInterop": false
|
|
24
|
+
},
|
|
25
|
+
"@theme/index": {
|
|
26
|
+
"src": "../../../node_modules/vitepress/dist/client/theme-default/index.js",
|
|
27
|
+
"file": "@theme_index.js",
|
|
28
|
+
"fileHash": "cd718441",
|
|
29
|
+
"needsInterop": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"chunks": {
|
|
33
|
+
"chunk-2MKPR7PC": {
|
|
34
|
+
"file": "chunk-2MKPR7PC.js"
|
|
35
|
+
},
|
|
36
|
+
"chunk-ZXJI2PUM": {
|
|
37
|
+
"file": "chunk-ZXJI2PUM.js"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|