@stacksjs/buddy 0.70.6 → 0.70.7

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.
Files changed (45) hide show
  1. package/dist/{chunk-pnr51281.js → chunk-0pkrjycw.js} +1 -1
  2. package/dist/chunk-0wzn5tma.js +2 -0
  3. package/dist/chunk-15sp93dn.js +2 -0
  4. package/dist/{chunk-8acb2bq0.js → chunk-18byef1w.js} +1 -1
  5. package/dist/{chunk-tx5yb9wb.js → chunk-1j4se9g6.js} +1 -1
  6. package/dist/chunk-2az51wff.js +2 -0
  7. package/dist/chunk-2hfepv08.js +2 -0
  8. package/dist/chunk-2m003k45.js +3 -0
  9. package/dist/{chunk-ks9kq37e.js → chunk-2mzt8mks.js} +1 -1
  10. package/dist/{chunk-yv49ttdw.js → chunk-38x86x4z.js} +1 -1
  11. package/dist/chunk-3n3ay1vc.js +3 -0
  12. package/dist/chunk-4snfzgcp.js +2 -0
  13. package/dist/chunk-4z8d4zkm.js +2 -0
  14. package/dist/{chunk-w06e63eh.js → chunk-5femxmbf.js} +97 -97
  15. package/dist/{chunk-2pj0cr49.js → chunk-6wnzdvc6.js} +1 -1
  16. package/dist/{chunk-bgqy98qw.js → chunk-atc0z327.js} +2 -2
  17. package/dist/chunk-enfggzq6.js +2 -0
  18. package/dist/{chunk-5eh2tfep.js → chunk-fbbvmxn3.js} +1 -1
  19. package/dist/chunk-gpr2zmbm.js +6 -0
  20. package/dist/chunk-gt8zekyh.js +3 -0
  21. package/dist/chunk-hrr9f8tw.js +25 -0
  22. package/dist/chunk-jm49r4wr.js +2 -0
  23. package/dist/{chunk-ww48v0ap.js → chunk-jx6tpg9f.js} +1 -1
  24. package/dist/{chunk-5x7y4ng3.js → chunk-mwdfdvqk.js} +1 -1
  25. package/dist/chunk-p4sjnjkt.js +2 -0
  26. package/dist/{chunk-7mjm5rg8.js → chunk-rkh5r5e6.js} +2 -2
  27. package/dist/chunk-x6d1t8r7.js +5 -0
  28. package/dist/cli.js +1 -1
  29. package/dist/index.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunk-1vaz8fbz.js +0 -6
  32. package/dist/chunk-1zz448cs.js +0 -2
  33. package/dist/chunk-2xrqj8ap.js +0 -2
  34. package/dist/chunk-5vhayxpk.js +0 -25
  35. package/dist/chunk-5yawz4bx.js +0 -2
  36. package/dist/chunk-9gzvq5jq.js +0 -2
  37. package/dist/chunk-afqas5yf.js +0 -5
  38. package/dist/chunk-e1kefb68.js +0 -2
  39. package/dist/chunk-j3bhtk0d.js +0 -3
  40. package/dist/chunk-mzgfvbmm.js +0 -2
  41. package/dist/chunk-r0recaya.js +0 -1
  42. package/dist/chunk-v3a5yzn6.js +0 -3
  43. package/dist/chunk-vrd8j1ky.js +0 -3
  44. package/dist/chunk-yatzvt36.js +0 -2
  45. package/dist/chunk-z80nypa9.js +0 -1
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-5x7y4ng3.js";import{Ca as l8}from"./chunk-ks9kq37e.js";import{Rc as _1,Tc as E,Wc as R}from"./chunk-2pj0cr49.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("os"),Ay=R("path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
2
+ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J as d6,K as x6,L as F0,M as M0,N as q0,O as Ly,a as Nf,b as Cf,c as zf,d as hy,e as Of,f as $y,g as S0,h as jy,j as Cy,k as Fy,l as Sy,m as Vy,n as By,o as Yy,p as y0,q as Zy,r as uy,s as $0,t as j0,u as f1,v as C0,w as V0,x as I,y as l6,z as B0}from"./chunk-mwdfdvqk.js";import{Ca as l8}from"./chunk-2mzt8mks.js";import{Mc as _1,Oc as E,Rc as R}from"./chunk-6wnzdvc6.js";var N0=E((K0)=>{Object.defineProperty(K0,"__esModule",{value:!0});K0.splitWhen=K0.flatten=void 0;function ry(f){return f.reduce((_,w)=>[].concat(_,w),[])}K0.flatten=ry;function Ty(f,_){let w=[[]],h=0;for(let S of f)if(_(S))h++,w[h]=[];else w[h].push(S);return w}K0.splitWhen=Ty});var T0=E((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.isEnoentCodeError=void 0;function Iy(f){return f.code==="ENOENT"}U0.isEnoentCodeError=Iy});var G0=E((I0)=>{Object.defineProperty(I0,"__esModule",{value:!0});I0.createDirentFromStats=void 0;class D0{constructor(f,_){this.name=f,this.isBlockDevice=_.isBlockDevice.bind(_),this.isCharacterDevice=_.isCharacterDevice.bind(_),this.isDirectory=_.isDirectory.bind(_),this.isFIFO=_.isFIFO.bind(_),this.isFile=_.isFile.bind(_),this.isSocket=_.isSocket.bind(_),this.isSymbolicLink=_.isSymbolicLink.bind(_)}}function cy(f,_){return new D0(f,_)}I0.createDirentFromStats=cy});var R0=E((l0)=>{Object.defineProperty(l0,"__esModule",{value:!0});l0.convertPosixPathToPattern=l0.convertWindowsPathToPattern=l0.convertPathToPattern=l0.escapePosixPath=l0.escapeWindowsPath=l0.escape=l0.removeLeadingDotSegment=l0.makeAbsolute=l0.unixify=void 0;var Gy=R("os"),Ay=R("path"),A0=Gy.platform()==="win32",Hy=2,ky=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ly=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Py=/^\\\\([.?])/,Ry=/\\(?![!()+@[\]{}])/g;function dy(f){return f.replace(/\\/g,"/")}l0.unixify=dy;function xy(f,_){return Ay.resolve(f,_)}l0.makeAbsolute=xy;function by(f){if(f.charAt(0)==="."){let _=f.charAt(1);if(_==="/"||_==="\\")return f.slice(Hy)}return f}l0.removeLeadingDotSegment=by;l0.escape=A0?y1:F1;function y1(f){return f.replace(ly,"\\$2")}l0.escapeWindowsPath=y1;function F1(f){return f.replace(ky,"\\$2")}l0.escapePosixPath=F1;l0.convertPathToPattern=A0?H0:k0;function H0(f){return y1(f).replace(Py,"//$1").replace(Ry,"/")}l0.convertWindowsPathToPattern=H0;function k0(f){return F1(f)}l0.convertPosixPathToPattern=k0});var x0=E((n6,d0)=>{/*!
3
3
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
4
4
  *
5
5
  * Copyright (c) 2014-2016, Jon Schlinkert.
@@ -31,5 +31,5 @@ import{A as Y0,B as Z0,C as P6,D as u0,E as L0,F as R6,G as w1,H as W0,I as Q0,J
31
31
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
32
32
  `+" ".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`
33
33
  `+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>"\r"+"\t".repeat(_)),new Array(Lf).fill(0).map((f,_)=>`\r
34
- `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"module";import J9,{dirname as E9,win32 as H8,join as z9}from"path";import _0 from"process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-tx5yb9wb.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
34
+ `+"\t".repeat(_));var tf;(function(f){f.DEFAULT={allowTrailingComma:!1}})(tf||(tf={}));function O8(f,_=[],w=tf.DEFAULT){let h=null,S=[],y=[];function F(q){Array.isArray(S)?S.push(q):h!==null&&(S[h]=q)}return K8(f,{onObjectBegin:()=>{let q={};F(q),y.push(S),S=q,h=null},onObjectProperty:(q)=>{h=q},onObjectEnd:()=>{S=y.pop()},onArrayBegin:()=>{let q=[];F(q),y.push(S),S=q,h=null},onArrayEnd:()=>{S=y.pop()},onLiteralValue:F,onError:(q,$,C)=>{_.push({error:q,offset:$,length:C})}},w),S[0]}function K8(f,_,w=tf.DEFAULT){let h=z8(f,!1),S=[],y=0;function F(r){return r?()=>y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function q(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter()):()=>!0}function $(r){return r?(Y)=>y===0&&r(Y,h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice()):()=>!0}function C(r){return r?()=>{y>0?y++:r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter(),()=>S.slice())===!1&&(y=1)}:()=>!0}function j(r){return r?()=>{y>0&&y--,y===0&&r(h.getTokenOffset(),h.getTokenLength(),h.getTokenStartLine(),h.getTokenStartCharacter())}:()=>!0}let V=C(_.onObjectBegin),B=$(_.onObjectProperty),W=j(_.onObjectEnd),L=C(_.onArrayBegin),Q=j(_.onArrayEnd),O=$(_.onLiteralValue),U=q(_.onSeparator),b=F(_.onComment),J=q(_.onError),A=w&&w.disallowComments,K=w&&w.allowTrailingComma;function g(){for(;;){let r=h.scan();switch(h.getTokenError()){case 4:X(14);break;case 5:X(15);break;case 3:X(13);break;case 1:A||X(11);break;case 2:X(12);break;case 6:X(16);break}switch(r){case 12:case 13:A?X(10):b();break;case 16:X(1);break;case 15:case 14:break;default:return r}}}function X(r,Y=[],Z=[]){if(J(r),Y.length+Z.length>0){let i=h.getToken();for(;i!==17;){if(Y.indexOf(i)!==-1){g();break}else if(Z.indexOf(i)!==-1)break;i=g()}}}function N(r){let Y=h.getTokenValue();return r?O(Y):(B(Y),S.push(Y)),g(),!0}function G(){switch(h.getToken()){case 11:let r=h.getTokenValue(),Y=Number(r);isNaN(Y)&&(X(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return g(),!0}function v(){return h.getToken()!==10?(X(3,[],[2,5]),!1):(N(!1),h.getToken()===6?(U(":"),g(),H()||X(4,[],[2,5])):X(5,[],[2,5]),S.pop(),!0)}function u(){V(),g();let r=!1;for(;h.getToken()!==2&&h.getToken()!==17;){if(h.getToken()===5){if(r||X(4,[],[]),U(","),g(),h.getToken()===2&&K)break}else r&&X(6,[],[]);v()||X(4,[],[2,5]),r=!0}return W(),h.getToken()!==2?X(7,[2],[]):g(),!0}function k(){L(),g();let r=!0,Y=!1;for(;h.getToken()!==4&&h.getToken()!==17;){if(h.getToken()===5){if(Y||X(4,[],[]),U(","),g(),h.getToken()===4&&K)break}else Y&&X(6,[],[]);r?(S.push(0),r=!1):S[S.length-1]++,H()||X(4,[],[4,5]),Y=!0}return Q(),r||S.pop(),h.getToken()!==4?X(8,[4],[]):g(),!0}function H(){switch(h.getToken()){case 3:return k();case 1:return u();case 10:return N(!0);default:return G()}}return g(),h.getToken()===17?w.allowEmptyContent?!0:(X(4,[],[]),!1):H()?(h.getToken()!==17&&X(9,[],[]),!0):(X(4,[],[]),!1)}var fy;(function(f){f[f.None=0]="None",f[f.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=2]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",f[f.InvalidUnicode=4]="InvalidUnicode",f[f.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",f[f.InvalidCharacter=6]="InvalidCharacter"})(fy||(fy={}));var _y;(function(f){f[f.OpenBraceToken=1]="OpenBraceToken",f[f.CloseBraceToken=2]="CloseBraceToken",f[f.OpenBracketToken=3]="OpenBracketToken",f[f.CloseBracketToken=4]="CloseBracketToken",f[f.CommaToken=5]="CommaToken",f[f.ColonToken=6]="ColonToken",f[f.NullKeyword=7]="NullKeyword",f[f.TrueKeyword=8]="TrueKeyword",f[f.FalseKeyword=9]="FalseKeyword",f[f.StringLiteral=10]="StringLiteral",f[f.NumericLiteral=11]="NumericLiteral",f[f.LineCommentTrivia=12]="LineCommentTrivia",f[f.BlockCommentTrivia=13]="BlockCommentTrivia",f[f.LineBreakTrivia=14]="LineBreakTrivia",f[f.Trivia=15]="Trivia",f[f.Unknown=16]="Unknown",f[f.EOF=17]="EOF"})(_y||(_y={}));var g8=O8,wy;(function(f){f[f.InvalidSymbol=1]="InvalidSymbol",f[f.InvalidNumberFormat=2]="InvalidNumberFormat",f[f.PropertyNameExpected=3]="PropertyNameExpected",f[f.ValueExpected=4]="ValueExpected",f[f.ColonExpected=5]="ColonExpected",f[f.CommaExpected=6]="CommaExpected",f[f.CloseBraceExpected=7]="CloseBraceExpected",f[f.CloseBracketExpected=8]="CloseBracketExpected",f[f.EndOfFileExpected=9]="EndOfFileExpected",f[f.InvalidCommentToken=10]="InvalidCommentToken",f[f.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",f[f.UnexpectedEndOfString=12]="UnexpectedEndOfString",f[f.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",f[f.InvalidUnicode=14]="InvalidUnicode",f[f.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",f[f.InvalidCharacter=16]="InvalidCharacter"})(wy||(wy={}));function t1(f,_){let w=JSON.parse(f,_?.reviver);return s1(f,w,_),w}function p1(f,_){let w=g8(f,_?.errors,_);return s1(f,w,_),w}var D8={startingFrom:".",rootPattern:/^node_modules$/,reverse:!1,test:(f)=>{try{if(r8(f).isFile())return!0}catch{}}};async function I8(f,_={}){let w=Array.isArray(f)?f:[f],h={...D8,..._},S=zf(h.startingFrom),y=S[0]==="/",F=S.split("/").filter(Boolean);if(y)F[0]="/"+F[0];let q=F.findIndex(($)=>$.match(h.rootPattern));if(q===-1)q=0;if(h.reverse)for(let $=q+1;$<=F.length;$++)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}else for(let $=F.length;$>q;$--)for(let C of w){let j=Cf(...F.slice(0,$),C);if(await h.test(j))return j}throw new Error(`Cannot find matching ${f} in ${h.startingFrom} or parent directories`)}function c8(f,_={}){return I8(f,_)}var G8=new Map;async function yy(f,_={}){let w=await f0(f,_),h=_.cache&&typeof _.cache!=="boolean"?_.cache:G8;if(_.cache&&h.has(w))return h.get(w);let S=await T8.readFile(w,"utf8"),y;try{y=t1(S)}catch{y=p1(S)}return h.set(w,y),y}async function f0(f=process.cwd(),_={}){let w=hy(f)?f:await Sy(f,_);return c8("package.json",{startingFrom:w,..._})}import{createRequire as A8}from"module";import J9,{dirname as E9,win32 as H8,join as z9}from"path";import _0 from"process";function k8(f,_={}){if(_.platform==="auto"||!_.platform)_.platform=_0.platform==="win32"?"win32":"posix";if(_0.versions.pnp){let h=_.paths||[];if(h.length===0)h.push(_0.cwd());let S=A8(import.meta.url);try{return S.resolve(f,{paths:h})}catch{}}let w=Fy(f,{url:_.paths});if(_.platform==="win32")return H8.normalize(w);return w}function Kf(f,_={}){try{return k8(f,_)}catch{return}}var E0="3.14.6";function v8(f){let _=[];if(Array.isArray(f.addons))_.push(...f.addons);else{let w=new Map;if(f.addons?.addons?.length){let h=0;for(let S of f.addons.addons)w.set(S.name||`external:custom-${h++}`,S)}if(f.addons?.vueTemplate){if(!w.has(F0))w.set(F0,M0())}if(f.addons?.vueDirectives){if(!w.has(q0))w.set(q0,Ly(typeof f.addons.vueDirectives==="object"?f.addons.vueDirectives:void 0))}_.push(...w.values())}return _}async function m8(f,_,w){let h=w1(f),S=h.original,y=V0(S,w?.transformVirtualImports!==!1&&_.options.virtualImports?.length?{filter:(B)=>!_.options.virtualImports.includes(B),fillChar:"-"}:void 0),F=uy(y),q=F.hasCJS&&!F.hasESM,$=[],C=new Map,j=await _.getImportMap();if(w?.autoImport!==!1){Array.from(y.matchAll(C0)).forEach((W)=>{if(W[1]===".")return null;let L=y[W.index+W[0].length],Q=y[W.index-1];if(L===":"&&!["?","case"].includes(W[1].trim())&&Q!==":")return null;let O=W[2],U=W.index+W[1].length;if(C.get(O)||Number.POSITIVE_INFINITY>U)C.set(O,U)});for(let W of $0)for(let L of y.matchAll(W)){let Q=[...L[1]?.split(f1)||[],...L[2]?.split(f1)||[]];for(let O of Q){let U=O.replace(j0,"").trim();C.delete(U)}}let B=new Set(C.keys());$=Array.from(B).map((W)=>{let L=j.get(W);if(L&&!L.disabled)return L;return C.delete(W),null}).filter(Boolean);for(let W of _.addons)$=await W.matchImports?.call(_,B,$)||$}if(w?.transformVirtualImports!==!1&&_.options.virtualImports?.length){let B=n8(y,j,_.options.virtualImports);B.ranges.forEach(([W,L])=>{h.remove(W,L)}),$.push(...B.imports)}let V=Math.min(...Array.from(C.entries()).map((B)=>B[1]));return{s:h,strippedCode:y,isCJSContext:q,matchedImports:$,firstOccurrence:V}}function n8(f,_,w){let h=[],S=[];if(w?.length)Vy(f).filter((y)=>w.includes(y.specifier)).map((y)=>By(y)).forEach((y)=>{S.push([y.start,y.end]),Object.entries(y.namedImports||{}).forEach(([F,q])=>{let $=_.get(F);if(!$)throw new Error(`[unimport] failed to find "${F}" imported from "${y.specifier}"`);h.push({from:$.from,name:$.name,as:q})})});return{imports:h,ranges:S}}async function Qy(f,_,w){if(w?.parser==="acorn")return import("./chunk-1j4se9g6.js").then((h)=>h.detectImportsAcorn(f,_,w));return m8(f,_,w)}var My=["mts","cts","ts","tsx","mjs","cjs","js","jsx"],e8=`*.{${My.join(",")}}`;function a8(f,_){return`${f.startsWith("!")?"!":""}${zf(_,f.replace(/^!/,""))}`}function s8(f,_){return Cf($y(f)==="*"?Of(f):f,_)}function Xy(f,_){let w=_?.types??!0,h=_?.cwd??X0.cwd(),S=_?.filePatterns||[e8];return f.map((y)=>{let F=typeof y==="string",q=a8(F?y:y.glob,h),$=F?w:y.types??w;if(q.match(/\.\w+$/))return{glob:q,types:$};let C=S.map((j)=>({glob:s8(q,j),types:$}));return[{glob:q,types:$},...C]}).flat()}async function Jy(f,_){let w=(Array.isArray(f)?f:[f]).map((q)=>q.glob),h=(await Wy.default(w,{absolute:!0,cwd:_?.cwd||X0.cwd(),onlyFiles:!0,followSymbolicLinks:!0,unique:!0})).map((q)=>Nf(q)),S=_?.fileFilter||(()=>!0),y=(q)=>w.findIndex(($)=>J0.default.isMatch(q,$));return h.reduce((q,$)=>{let C=y($);if(q[C])q[C].push(Nf($));else q[C]=[Nf($)];return q},[]).map((q)=>q.sort()).flat().filter(S)}async function Ey(f,_){let w=Xy(f,_),h=await Jy(w,_),S=w.filter(($)=>!$.glob.startsWith("!")&&$.types),y=($)=>S.some((C)=>J0.default.isMatch($,C.glob)),F=(await Promise.all(h.map(($)=>h1($,y($))))).flat();return zy(F)}function zy(f){return f.filter((_)=>{if(!_.type)return!0;if(_.declarationType==="enum"||_.declarationType==="class")return!0;return!f.find((w)=>w.as===_.as&&w.name===_.name&&!w.type)})}async function h1(f,_,w=new Set){if(w.has(f))return console.warn(`[unimport] "${f}" is already scanned, skipping`),[];w.add(f);let h=[],S=await x8(f,"utf-8"),y=Yy(S);if(y.find((C)=>C.type==="default")){let C=S0(f).name;if(C==="index")C=S0(f.split("/").slice(0,-1).join("/")).name;let j=/[-_.]/.test(C)?jy(C):C;h.push({name:"default",as:j,from:f})}async function q(C,j){for(let V of C)if(V.type==="named")for(let B of V.names)h.push({name:B,as:B,from:f,...j});else if(V.type==="declaration"){if(V.name){if(h.push({name:V.name,as:V.name,from:f,...j}),V.declarationType==="enum"||V.declarationType==="class")h.push({name:V.name,as:V.name,from:f,type:!0,declarationType:V.declarationType,...j})}}else if(V.type==="star"&&V.specifier)if(V.name)h.push({name:V.name,as:V.name,from:f,...j});else{let B=V.specifier,W=zf(Of(f),B),L=!1;for(let O of My)if(gf(`${W}.${O}`)){W=`${W}.${O}`;break}else if(gf(`${W}/index.${O}`)){W=`${W}/index.${O}`;break}if(gf(W))L=!0;else try{if(W=await Cy(V.specifier),W=Nf(b8(W)),gf(W))L=!0}catch{}if(!L){console.warn(`[unimport] failed to resolve "${W}", skip scanning`);continue}let Q=await h1(W,_,w);h.push(...j?Q.map((O)=>({...O,...j})):Q)}}if(f.match(/\.d\.[mc]?ts$/)){if(_)await q(y,{type:!0}),await q(y0(S),{type:!0})}else if(await q(y),_)await q(y0(S),{type:!0});return h}var qy=Cf(i8.tmpdir(),"unimport"),pf;async function o8(f){return(await t8(f.package,f.url,f.cache)).filter((h)=>{for(let S of f.ignore||[]){if(typeof S==="string"&&S===h)return!1;if(S instanceof RegExp&&S.test(h))return!1;if(typeof S==="function"&&S(h)===!1)return!1}return!0}).map((h)=>({from:f.package,name:h}))}async function t8(f,_,w=!0){let h=await f0(f,{url:_}),y=(await yy(h)).version,F=Cf(qy,`${f}@${y}`,"exports.json");if(w&&pf===void 0)try{pf=p8(qy)}catch{pf=!1}let q=w&&y&&pf;if(q&&gf(F))return JSON.parse(await w0.readFile(F,"utf-8"));let $=await Zy(f,{url:_});if(q)await w0.mkdir(Of(F),{recursive:!0}),await w0.writeFile(F,JSON.stringify($),"utf-8");return $}function p8(f){try{return P8(f,R8.W_OK),!0}catch{return!1}}var f6=I({from:"date-fns",imports:["add","addBusinessDays","addDays","addHours","addISOWeekYears","addMilliseconds","addMinutes","addMonths","addQuarters","addSeconds","addWeeks","addYears","areIntervalsOverlapping","clamp","closestIndexTo","closestTo","compareAsc","compareDesc","constants","daysToWeeks","differenceInBusinessDays","differenceInCalendarDays","differenceInCalendarISOWeekYears","differenceInCalendarISOWeeks","differenceInCalendarMonths","differenceInCalendarQuarters","differenceInCalendarWeeks","differenceInCalendarYears","differenceInDays","differenceInHours","differenceInISOWeekYears","differenceInMilliseconds","differenceInMinutes","differenceInMonths","differenceInQuarters","differenceInSeconds","differenceInWeeks","differenceInYears","eachDayOfInterval","eachHourOfInterval","eachMinuteOfInterval","eachMonthOfInterval","eachQuarterOfInterval","eachWeekOfInterval","eachWeekendOfInterval","eachWeekendOfMonth","eachWeekendOfYear","eachYearOfInterval","endOfDay","endOfDecade","endOfHour","endOfISOWeek","endOfISOWeekYear","endOfMinute","endOfMonth","endOfQuarter","endOfSecond","endOfToday","endOfTomorrow","endOfWeek","endOfYear","endOfYesterday","format","formatDistance","formatDistanceStrict","formatDistanceToNow","formatDistanceToNowStrict","formatDuration","formatISO","formatISO9075","formatISODuration","formatRFC3339","formatRFC7231","formatRelative","fromUnixTime","getDate","getDay","getDayOfYear","getDaysInMonth","getDaysInYear","getDecade","getDefaultOptions","getHours","getISODay","getISOWeek","getISOWeekYear","getISOWeeksInYear","getMilliseconds","getMinutes","getMonth","getOverlappingDaysInIntervals","getQuarter","getSeconds","getTime","getUnixTime","getWeek","getWeekOfMonth","getWeekYear","getWeeksInMonth","getYear","hoursToMilliseconds","hoursToMinutes","hoursToSeconds","intervalToDuration","intlFormat","intlFormatDistance","isAfter","isBefore","isDate","isEqual","isExists","isFirstDayOfMonth","isFriday","isFuture","isLastDayOfMonth","isLeapYear","isMatch","isMonday","isPast","isSameDay","isSameHour","isSameISOWeek","isSameISOWeekYear","isSameMinute","isSameMonth","isSameQuarter","isSameSecond","isSameWeek","isSameYear","isSaturday","isSunday","isThisHour","isThisISOWeek","isThisMinute","isThisMonth","isThisQuarter","isThisSecond","isThisWeek","isThisYear","isThursday","isToday","isTomorrow","isTuesday","isValid","isWednesday","isWeekend","isWithinInterval","isYesterday","lastDayOfDecade","lastDayOfISOWeek","lastDayOfISOWeekYear","lastDayOfMonth","lastDayOfQuarter","lastDayOfWeek","lastDayOfYear","lightFormat","max","milliseconds","millisecondsToHours","millisecondsToMinutes","millisecondsToSeconds","min","minutesToHours","minutesToMilliseconds","minutesToSeconds","monthsToQuarters","monthsToYears","nextDay","nextFriday","nextMonday","nextSaturday","nextSunday","nextThursday","nextTuesday","nextWednesday","parse","parseISO","parseJSON","previousDay","previousFriday","previousMonday","previousSaturday","previousSunday","previousThursday","previousTuesday","previousWednesday","quartersToMonths","quartersToYears","roundToNearestMinutes","secondsToHours","secondsToMilliseconds","secondsToMinutes","set","setDate","setDay","setDayOfYear","setDefaultOptions","setHours","setISODay","setISOWeek","setISOWeekYear","setMilliseconds","setMinutes","setMonth","setQuarter","setSeconds","setWeek","setWeekYear","setYear","startOfDay","startOfDecade","startOfHour","startOfISOWeek","startOfISOWeekYear","startOfMinute","startOfMonth","startOfQuarter","startOfSecond","startOfToday","startOfTomorrow","startOfWeek","startOfWeekYear","startOfYear","startOfYesterday","sub","subBusinessDays","subDays","subHours","subISOWeekYears","subMilliseconds","subMinutes","subMonths","subQuarters","subSeconds","subWeeks","subYears","toDate","weeksToDays","yearsToMonths","yearsToQuarters"]}),_6=I({from:"pinia",imports:["acceptHMRUpdate","createPinia","defineStore","getActivePinia","mapActions","mapGetters","mapState","mapStores","mapWritableState","setActivePinia","setMapStoreSuffix","storeToRefs"]}),w6=I({from:"preact",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),h6=I({from:"quasar",imports:["useQuasar","useDialogPluginComponent","useFormChild","useMeta"]}),S6=I({from:"react",imports:["useState","useCallback","useMemo","useEffect","useRef","useContext","useReducer"]}),Oy=["useOutletContext","useHref","useInRouterContext","useLocation","useNavigationType","useNavigate","useOutlet","useParams","useResolvedPath","useRoutes"],y6=I({from:"react-router",imports:[...Oy]}),F6=I({from:"react-router-dom",imports:[...Oy,"useLinkClickHandler","useSearchParams","Link","NavLink","Navigate","Outlet","Route","Routes"]}),q6=I({from:"rxjs",imports:["of","from","map","tap","filter","forkJoin","throwError","catchError","Observable","mergeMap","switchMap","merge","zip","take","takeUntil","first","lastValueFrom","skip","skipUntil","distinct","distinctUntilChanged","throttle","throttleTime","retry","retryWhen","timeout","delay","debounce","debounceTime","find","every"]}),$6=I({from:"solid-js",imports:["createSignal","createEffect","createMemo","createResource","onMount","onCleanup","onError","untrack","batch","on","createRoot","mergeProps","splitProps","useTransition","observable","mapArray","indexArray","createContext","useContext","children","lazy","createDeferred","createRenderEffect","createSelector","For","Show","Switch","Match","Index","ErrorBoundary","Suspense","SuspenseList"]}),j6=I({from:"solid-js/store",imports:["createStore","produce","reconcile","createMutable"]}),C6=I({from:"solid-js/web",imports:["Dynamic","hydrate","render","renderToString","renderToStringAsync","renderToStream","isServer","Portal"]}),V6=I({from:"solid-js",imports:[$6,j6,C6]}),B6=I({from:"solid-app-router",imports:["Link","NavLink","Navigate","Outlet","Route","Router","Routes","_mergeSearchString","createIntegration","hashIntegration","normalizeIntegration","pathIntegration","staticIntegration","useHref","useIsRouting","useLocation","useMatch","useNavigate","useParams","useResolvedPath","useRouteData","useRoutes","useSearchParams"]}),Y6=I({from:"svelte/animate",imports:["flip"]}),Z6=I({from:"svelte/easing",imports:["back","bounce","circ","cubic","elastic","expo","quad","quart","quint","sine"].reduce((f,_)=>{return f.push(`${_}In`,`${_}Out`,`${_}InOut`),f},["linear"])}),u6=I({from:"svelte/store",imports:["writable","readable","derived","get"]}),L6=I({from:"svelte/motion",imports:["tweened","spring"]}),W6=I({from:"svelte/transition",imports:["fade","blur","fly","slide","scale","draw","crossfade"]}),Q6=I({from:"svelte",imports:["onMount","beforeUpdate","afterUpdate","onDestroy","tick","setContext","getContext","hasContext","getAllContexts","createEventDispatcher"]}),M6=I({from:"@dcloudio/uni-app",imports:["onAddToFavorites","onBackPress","onError","onHide","onLaunch","onLoad","onNavigationBarButtonTap","onNavigationBarSearchInputChanged","onNavigationBarSearchInputClicked","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged","onPageNotFound","onPageScroll","onPullDownRefresh","onReachBottom","onReady","onResize","onShareAppMessage","onShareTimeline","onShow","onTabItemTap","onThemeChange","onUnhandledRejection","onUnload"]}),X6=I({from:"vee-validate",imports:["validate","defineRule","configure","useField","useForm","useFieldArray","useResetForm","useIsFieldDirty","useIsFieldTouched","useIsFieldValid","useIsSubmitting","useValidateField","useIsFormDirty","useIsFormTouched","useIsFormValid","useValidateForm","useSubmitCount","useFieldValue","useFormValues","useFormErrors","useFieldError","useSubmitForm","FormContextKey","FieldContextKey"]}),J6=I({from:"vitepress",imports:["useData","useRoute","useRouter","withBase"]}),E6=I({from:"vitest",imports:["suite","test","describe","it","chai","expect","assert","vitest","vi","beforeAll","afterAll","beforeEach","afterEach"]}),z0=["onActivated","onBeforeMount","onBeforeUnmount","onBeforeUpdate","onErrorCaptured","onDeactivated","onMounted","onServerPrefetch","onUnmounted","onUpdated","useAttrs","useSlots","computed","customRef","isReadonly","isRef","isProxy","isReactive","markRaw","reactive","readonly","ref","shallowReactive","shallowReadonly","shallowRef","triggerRef","toRaw","toRef","toRefs","toValue","unref","watch","watchEffect","watchPostEffect","watchSyncEffect","defineComponent","defineAsyncComponent","getCurrentInstance","h","inject","nextTick","provide","useCssModule","createApp","effectScope","EffectScope","getCurrentScope","onScopeDispose",...["Component","ComponentPublicInstance","ComputedRef","DirectiveBinding","ExtractDefaultPropTypes","ExtractPropTypes","ExtractPublicPropTypes","InjectionKey","PropType","Ref","MaybeRef","MaybeRefOrGetter","VNode","WritableComputedRef"].map((f)=>({name:f,type:!0}))],z6=I({from:"vue",imports:[...z0,"onRenderTracked","onRenderTriggered","resolveComponent","useCssVars","useModel","onWatcherCleanup","useId","useTemplateRef"]}),O6=I({from:"@vue/composition-api",imports:z0}),K6=I({from:"vue-demi",imports:z0}),g6=I({from:"vue-i18n",imports:["useI18n"]}),N6=I({from:"vue/macros",imports:["$","$$","$ref","$shallowRef","$toRef","$customRef","$computed"]}),U6=I({from:"vue-router",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),r6=I({from:"vue-router/composables",imports:["useRouter","useRoute","useLink","onBeforeRouteLeave","onBeforeRouteUpdate"]}),h0,T6=()=>{let f=["toRefs","utils"];if(!h0)try{let _=Kf("@vueuse/core")||X0.cwd(),w=Kf("@vueuse/core/indexes.json")||Kf("@vueuse/metadata/index.json")||Kf("@vueuse/metadata/index.json",{paths:[_]}),h=JSON.parse(d8(w,"utf-8"));h0=I({from:"@vueuse/core",imports:h.functions.filter((S)=>["core","shared"].includes(S.package)).map((S)=>S.name).filter((S)=>S&&S.length>=4&&!f.includes(S))})}catch(_){throw console.error(_),new Error("[auto-import] failed to load @vueuse/core, have you installed it?")}return h0},D6=I({from:"@vueuse/head",imports:["useHead"]}),I6=I({from:"vuex",imports:["createStore","createLogger","mapState","mapGetters","mapActions","mapMutations","createNamespacedHelpers","useStore"]}),Ky={"@vue/composition-api":O6,"@vueuse/core":T6,"@vueuse/head":D6,pinia:_6,preact:w6,quasar:h6,react:S6,"react-router":y6,"react-router-dom":F6,svelte:Q6,"svelte/animate":Y6,"svelte/easing":Z6,"svelte/motion":L6,"svelte/store":u6,"svelte/transition":W6,"vee-validate":X6,vitepress:J6,"vue-demi":K6,"vue-i18n":g6,"vue-router":U6,"vue-router-composables":r6,vue:z6,"vue/macros":N6,vuex:I6,vitest:E6,"uni-app":M6,"solid-js":V6,"solid-app-router":B6,rxjs:q6,"date-fns":f6},c6=["from","priority","disabled","dtsDisabled","meta","type"];async function O0(f){let _=[];if("package"in f)return await o8(f);let w={};c6.forEach((h)=>{if(h in f)w[h]=f[h]});for(let h of f.imports)if(typeof h==="string")_.push({...w,name:h,as:h});else if(Array.isArray(h))_.push({...w,name:h[0],as:h[1]||h[0],from:h[2]||f.from});else if(h.imports)_.push(...await O0(h));else _.push({...w,...h});return _}async function gy(f){return(await Promise.all(f.map(async(w)=>{let h=typeof w==="string"?Ky[w]:w;if(typeof h==="function")h=h();return await O0(h)}))).flat()}function G6(f){let _=A6(f);async function w(q){let $={resolvePath:(W)=>Z0(W.typeFrom||W.from),...q},{typeReExports:C=!0}=$,j=await _.getImports(),V=u0(j.filter((W)=>!W.type&&!W.dtsDisabled),$),B=j.filter((W)=>W.type);if(C&&B.length)V+=`
35
35
  ${L0(B,$)}`;for(let W of _.addons)V=await W.declaration?.call(_,V,$)??V;return V}async function h(q,$=!0){let C=await h1(q,$);return await _.modifyDynamicImports((j)=>j.filter((V)=>V.from!==q).concat(C)),C}async function S(q=_.options.dirs||[],$=_.options.dirsScanOptions){let C=await Ey(q,$),j=new Set(C.map((V)=>V.from));return await _.modifyDynamicImports((V)=>V.filter((B)=>!j.has(B.from)).concat(C)),C}async function y(q,$,C){let j=await H6(q,$,_,{...f,...C}),V=_.getMetadata();if(V)j.imports.forEach((B)=>{if(V.injectionUsage[B.name]=V.injectionUsage[B.name]||{import:B,count:0,moduleIds:[]},V.injectionUsage[B.name].count++,$&&!V.injectionUsage[B.name].moduleIds.includes($))V.injectionUsage[B.name].moduleIds.push($)});return j}async function F(){if(_.options.dirs?.length)await S()}return{version:E0,init:F,clearDynamicImports:()=>_.clearDynamicImports(),modifyDynamicImports:(q)=>_.modifyDynamicImports(q),scanImportsFromDir:S,scanImportsFromFile:h,getImports:()=>_.getImports(),getImportMap:()=>_.getImportMap(),detectImports:(q)=>Qy(q,_),injectImports:y,generateTypeDeclarations:(q)=>w(q),getMetadata:()=>_.getMetadata(),getInternalContext:()=>_,toExports:async(q,$=!1)=>Y0(await _.getImports(),q,$)}}function A6(f){let _,w=new Map,h=v8(f);f.addons=h,f.commentsDisable=f.commentsDisable??["@unimport-disable","@imports-disable"],f.commentsDebug=f.commentsDebug??["@unimport-debug","@imports-debug"];let S;if(f.collectMeta)S={injectionUsage:{}};let y,F={version:E0,options:f,addons:h,staticImports:[...f.imports||[]].filter(Boolean),dynamicImports:[],modifyDynamicImports:$,clearDynamicImports:C,async getImports(){return await y,q()},async replaceImports(j){return F.staticImports=[...j||[]].filter(Boolean),F.invalidate(),await y,q()},async getImportMap(){return await F.getImports(),w},getMetadata(){return S},invalidate(){_=void 0},resolveId:(j,V)=>f.resolveId?.(j,V)};y=gy(f.presets||[]).then((j)=>{F.staticImports.unshift(...j),_=void 0,q()});function q(){if(!_){let j=Q0(B0([...F.staticImports,...F.dynamicImports],f.warn||console.warn));for(let V of F.addons)if(V.extendImports)j=V.extendImports.call(F,j)??j;j=j.filter((V)=>!V.disabled),w.clear();for(let V of j)if(!V.type)w.set(V.as??V.name,V);_=j}return _}async function $(j){let V=await j(F.dynamicImports);if(Array.isArray(V))F.dynamicImports=V;F.invalidate()}function C(){F.dynamicImports.length=0,F.invalidate()}return F}async function H6(f,_,w,h){let S=w1(f);if(w.options.commentsDisable?.some((C)=>S.original.includes(C)))return{s:S,get code(){return S.toString()},imports:[]};for(let C of w.addons)await C.transform?.call(w,S,_);let{isCJSContext:y,matchedImports:F,firstOccurrence:q}=await Qy(S,w,h),$=await k6(w,F,_);if(w.options.commentsDebug?.some((C)=>S.original.includes(C)))(w.options.debugLog||console.log)(`[unimport] ${$.length} imports detected in "${_}"${$.length?`: ${$.map((j)=>j.name).join(", ")}`:""}`);return{...W0(S,$,y,h?.mergeExisting,h?.injectAtEnd,q,(C)=>{for(let j of w.addons)C=j.injectImportsResolved?.call(w,C,S,_)??C;return C},(C,j)=>{for(let V of w.addons)C=V.injectImportsStringified?.call(w,C,j,S,_)??C;return C}),imports:$}}async function k6(f,_,w){let h=new Map;return(await Promise.all(_.map(async(y)=>{if(!h.has(y.from))h.set(y.from,await f.resolveId(y.from,w)||y.from);let F=h.get(y.from);if(y.from===w||!F||F==="."||F===w)return;return{...y,from:F}}))).filter(Boolean)}var P9=_1(a1(),1);async function R9(f,_={}){let{globalObject:w=globalThis,overrides:h=!1}=_;return f=Array.isArray(f)?f:await f.getImports(),await Promise.all(f.map(async(S)=>{if(S.disabled||S.type)return;let y=S.as||S.name;if(h||!(y in w)){let F=await import(S.from);w[y]=F[S.name]}})),w}export{M0 as vueTemplateAddon,E0 as version,L0 as toTypeReExports,P6 as toTypeDeclarationItems,u0 as toTypeDeclarationFile,x6 as toImports,Y0 as toExports,Z0 as stripFileExtension,V0 as stripCommentsAndStrings,l6 as stringifyImports,f1 as separatorRE,Jy as scanFilesFromDir,h1 as scanExports,Ey as scanDirExports,O0 as resolvePreset,d6 as resolveIdAbsolute,gy as resolveBuiltinPresets,Xy as normalizeScanDirs,Q0 as normalizeImports,C0 as matchRE,R9 as installGlobalAutoImports,j0 as importAsRE,R6 as getString,w1 as getMagicString,$0 as excludeRE,I as defineUnimportPreset,B0 as dedupeImports,zy as dedupeDtsExports,G6 as createUnimport,Ky as builtinPresets,W0 as addImportToCode};
@@ -0,0 +1,5 @@
1
+ import{tc as Ze,xc as O}from"./chunk-jx6tpg9f.js";import{Gc as P}from"./chunk-fbbvmxn3.js";import{Mc as C}from"./chunk-6wnzdvc6.js";var b=(e,t)=>{let r=[];if(e)r.push(e);if(t)for(let n of t)r.push(n);return r},S=(e,t)=>{return`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`},M=()=>{let e=[],t=[],r=!1,n=new Set,o=(a)=>a.sort((f,d)=>q[d.step]-q[f.step]||V[d.priority||"normal"]-V[f.priority||"normal"]),s=(a)=>{let f=!1,d=(m)=>{let g=b(m.name,m.aliases);if(g.includes(a)){f=!0;for(let l of g)n.delete(l);return!1}return!0};return e=e.filter(d),t=t.filter(d),f},i=(a)=>{let f=!1,d=(m)=>{if(m.middleware===a){f=!0;for(let g of b(m.name,m.aliases))n.delete(g);return!1}return!0};return e=e.filter(d),t=t.filter(d),f},c=(a)=>{return e.forEach((f)=>{a.add(f.middleware,{...f})}),t.forEach((f)=>{a.addRelativeTo(f.middleware,{...f})}),a.identifyOnResolve?.(E.identifyOnResolve()),a},p=(a)=>{let f=[];return a.before.forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...p(d))}),f.push(a),a.after.reverse().forEach((d)=>{if(d.before.length===0&&d.after.length===0)f.push(d);else f.push(...p(d))}),f},x=(a=!1)=>{let f=[],d=[],m={};return e.forEach((l)=>{let h={...l,before:[],after:[]};for(let u of b(h.name,h.aliases))m[u]=h;f.push(h)}),t.forEach((l)=>{let h={...l,before:[],after:[]};for(let u of b(h.name,h.aliases))m[u]=h;d.push(h)}),d.forEach((l)=>{if(l.toMiddleware){let h=m[l.toMiddleware];if(h===void 0){if(a)return;throw new Error(`${l.toMiddleware} is not found when adding ${S(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")h.after.push(l);if(l.relation==="before")h.before.push(l)}}),o(f).map(p).reduce((l,h)=>{return l.push(...h),l},[])},E={add:(a,f={})=>{let{name:d,override:m,aliases:g}=f,l={step:"initialize",priority:"normal",middleware:a,...f},h=b(d,g);if(h.length>0){if(h.some((u)=>n.has(u))){if(!m)throw new Error(`Duplicate middleware name '${S(d,g)}'`);for(let u of h){let y=e.findIndex((I)=>I.name===u||I.aliases?.some((F)=>F===u));if(y===-1)continue;let T=e[y];if(T.step!==l.step||l.priority!==T.priority)throw new Error(`"${S(T.name,T.aliases)}" middleware with ${T.priority} priority in ${T.step} step cannot be overridden by "${S(d,g)}" middleware with ${l.priority} priority in ${l.step} step.`);e.splice(y,1)}}for(let u of h)n.add(u)}e.push(l)},addRelativeTo:(a,f)=>{let{name:d,override:m,aliases:g}=f,l={middleware:a,...f},h=b(d,g);if(h.length>0){if(h.some((u)=>n.has(u))){if(!m)throw new Error(`Duplicate middleware name '${S(d,g)}'`);for(let u of h){let y=t.findIndex((I)=>I.name===u||I.aliases?.some((F)=>F===u));if(y===-1)continue;let T=t[y];if(T.toMiddleware!==l.toMiddleware||T.relation!==l.relation)throw new Error(`"${S(T.name,T.aliases)}" middleware ${T.relation} "${T.toMiddleware}" middleware cannot be overridden by "${S(d,g)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);t.splice(y,1)}}for(let u of h)n.add(u)}t.push(l)},clone:()=>c(M()),use:(a)=>{a.applyToStack(E)},remove:(a)=>{if(typeof a==="string")return s(a);else return i(a)},removeByTag:(a)=>{let f=!1,d=(m)=>{let{tags:g,name:l,aliases:h}=m;if(g&&g.includes(a)){let u=b(l,h);for(let y of u)n.delete(y);return f=!0,!1}return!0};return e=e.filter(d),t=t.filter(d),f},concat:(a)=>{let f=c(M());return f.use(a),f.identifyOnResolve(r||f.identifyOnResolve()||(a.identifyOnResolve?.()??!1)),f},applyToStack:c,identify:()=>{return x(!0).map((a)=>{let f=a.step??a.relation+" "+a.toMiddleware;return S(a.name,a.aliases)+" - "+f})},identifyOnResolve(a){if(typeof a==="boolean")r=a;return r},resolve:(a,f)=>{for(let d of x().map((m)=>m.middleware).reverse())a=d(a,f);if(r)console.log(E.identify());return a}};return E},q={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},V={high:3,normal:2,low:1};class Ce{constructor(e){this.config=e,this.middlewareStack=M()}send(e,t,r){let n=typeof t!=="function"?t:void 0,o=typeof t==="function"?t:r,s=n===void 0&&this.config.cacheMiddleware===!0,i;if(s){if(!this.handlers)this.handlers=new WeakMap;let c=this.handlers;if(c.has(e.constructor))i=c.get(e.constructor);else i=e.resolveMiddleware(this.middlewareStack,this.config,n),c.set(e.constructor,i)}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,n);if(o)i(e).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return i(e).then((c)=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var Q=C(P(),1);class G{constructor(){this.middlewareStack=M()}static classBuilder(){return new Z}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:i,outputFilterSensitiveLog:c,smithyContext:p,additionalContext:x,CommandCtor:E}){for(let g of n.bind(this)(E,e,t,r))this.middlewareStack.use(g);let a=e.concat(this.middlewareStack),{logger:f}=t,d={logger:f,clientName:o,commandName:s,inputFilterSensitiveLog:i,outputFilterSensitiveLog:c,[Q.SMITHY_CONTEXT_KEY]:{commandInstance:this,...p},...x},{requestHandler:m}=t;return a.resolve((g)=>m.handle(g.request,r||{}),d)}}class Z{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(e)=>e,this._outputFilterSensitiveLog=(e)=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=(r)=>r,t=(r)=>r){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){let e=this,t;return t=class extends G{static getEndpointParameterInstructions(){return e._ep}constructor(...[r]){super();this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=r??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}var $e=C(O(),1);var mt="***SensitiveInformation***";var Me=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string"){let t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e))oe.warn(ne(`Expected number but observed string: ${e}`));return t}}if(typeof e==="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)},Ae=Math.ceil(340282346638528860000000000000000000000),X=(e)=>{let t=Me(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0){if(Math.abs(t)>Ae)throw new TypeError(`Expected 32-bit float, got ${e}`)}return t},Ie=(e)=>{if(e===null||e===void 0)return;if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};var K=(e)=>D(e,32),v=(e)=>D(e,16),ee=(e)=>D(e,8),D=(e,t)=>{let r=Ie(e);if(r!==void 0&&Ne(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Ne=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},yt=(e,t)=>{if(e===null||e===void 0){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},wt=(e)=>{if(e===null||e===void 0)return;if(typeof e==="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},xt=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string")return e;if(["boolean","number","bigint"].includes(typeof e))return oe.warn(ne(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};var te=(e)=>{if(typeof e=="string")return X(_(e));return X(e)},_e=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,_=(e)=>{let t=e.match(_e);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var Et=(e)=>{if(typeof e==="string")return K(_(e));return K(e)},U=(e)=>{if(typeof e==="string")return v(_(e));return v(e)},re=(e)=>{if(typeof e==="string")return ee(_(e));return ee(e)},ne=(e)=>{return String(new TypeError(e).stack||e).split(`
2
+ `).slice(0,5).filter((t)=>!t.includes("stackTraceWarning")).join(`
3
+ `)},oe={warn:console.warn};var ke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var Re=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ct=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Re.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,c,p,x]=t,E=U(L(n)),a=$(o,"month",1,12),f=$(s,"day",1,31);return se(E,a,f,{hours:i,minutes:c,seconds:p,fractionalMilliseconds:x})},Fe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),$t=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Fe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,c,p,x,E]=t,a=U(L(n)),f=$(o,"month",1,12),d=$(s,"day",1,31),m=se(a,f,d,{hours:i,minutes:c,seconds:p,fractionalMilliseconds:x});if(E.toUpperCase()!="Z")m.setTime(m.getTime()-Le(E));return m},Mt=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),At=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),It=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);var se=(e,t,r,n)=>{let o=t-1;return Oe(e,o,r),new Date(Date.UTC(e,o,r,$(n.hours,"hour",0,23),$(n.minutes,"minute",0,59),$(n.seconds,"seconds",0,60),Ue(n.fractionalMilliseconds)))};var Pe=[31,28,31,30,31,30,31,31,30,31,30,31],Oe=(e,t,r)=>{let n=Pe[t];if(t===1&&De(e))n=29;if(r>n)throw new TypeError(`Invalid day for ${ke[t]} in ${e}: ${r}`)},De=(e)=>{return e%4===0&&(e%100!==0||e%400===0)},$=(e,t,r,n)=>{let o=re(L(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},Ue=(e)=>{if(e===null||e===void 0)return 0;return te("0."+e)*1000},Le=(e)=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1000},L=(e)=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0")t++;if(t===0)return e;return e.slice(t)};class N extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let t=e;return N.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let t=e;if(this===N)return N.isInstance(e);if(N.isInstance(e)){if(t.name&&this.name)return this.prototype.isPrototypeOf(e)||t.name===this.name;return this.prototype.isPrototypeOf(e)}return!1}}var ie=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(e[n]==null||e[n]==="")e[n]=o});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};var ze=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{let o=He(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:t?.code||t?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw ie(i,t)},Rt=(e)=>{return({output:t,parsedBody:r,errorCode:n})=>{ze({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})}},He=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var Pt=(e)=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var ce=!1,Dt=(e)=>{if(e&&!ce&&parseInt(e.substring(1,e.indexOf(".")))<16)ce=!0};var Be=C(O(),1);var z=C(P(),1);var ae=(e)=>{let t=[];for(let r in z.AlgorithmId){let n=z.AlgorithmId[r];if(e[n]===void 0)continue;t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},fe=(e)=>{let t={};return e.checksumAlgorithms().forEach((r)=>{t[r.algorithmId()]=r.checksumConstructor()}),t};var de=(e)=>{let t=e.retryStrategy;return{setRetryStrategy(r){t=r},retryStrategy(){return t}}},ue=(e)=>{let t={};return t.retryStrategy=e.retryStrategy(),t};var Jt=(e)=>{return{...ae(e),...de(e)}};var jt=(e)=>{return{...fe(e),...ue(e)}};var Qt=(e)=>Array.isArray(e)?e:[e];var Xt=(e)=>{return e!=null};var A=function e(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};A.from=(e)=>{if(e&&typeof e==="object"&&(e instanceof A||("deserializeJSON"in e)))return e;else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype)return A(String(e));return A(JSON.stringify(e))};A.fromObject=A.from;class We{trace(){}debug(){}info(){}warn(){}error(){}}function Je(e,t,r){let n,o,s;if(typeof t==="undefined"&&typeof r==="undefined")n={},s=e;else if(n=e,typeof t==="function")return o=t,s=r,je(n,o,s);else s=t;for(let i of Object.keys(s)){if(!Array.isArray(s[i])){n[i]=s[i];continue}le(n,null,s,i)}return n}var tr=(e,t)=>{let r={};for(let n in t)le(r,e,t,n);return r},je=(e,t,r)=>{return Je(e,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[t,s()];else n[o]=[t,s];return n},{}))},le=(e,t,r,n)=>{if(t!==null){let i=r[n];if(typeof i==="function")i=[,i];let[c=Ye,p=qe,x=n]=i;if(typeof c==="function"&&c(t[x])||typeof c!=="function"&&!!c)e[n]=p(t[x]);return}let[o,s]=r[n];if(typeof s==="function"){let i,c=o===void 0&&(i=s())!=null,p=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(c)e[n]=i;else if(p)e[n]=s()}else{let i=o===void 0&&s!=null,c=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(i||c)e[n]=s}},Ye=(e)=>e!=null,qe=(e)=>e;var Ve=C(O(),1);var he=(e)=>{if(e==null)return{};if(Array.isArray(e))return e.filter((t)=>t!=null).map(he);if(typeof e==="object"){let t={};for(let r of Object.keys(e)){if(e[r]==null)continue;t[r]=he(e[r])}return t}return e};var Or=(e)=>{let t=e.httpHandler;return{setHttpHandler(r){t=r},httpHandler(){return t},updateHttpClientConfig(r,n){t.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},Dr=(e)=>{return{httpHandler:e.httpHandler()}};var Qe=C(P(),1);class H{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let t=new H({...e,headers:{...e.headers}});if(t.query)t.query=Ge(t.query);return t}static isInstance(e){if(!e)return!1;let t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return H.clone(this)}}function Ge(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}class k{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}var R=C(Ze(),1);function B(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=R.escapeUri(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)t.push(`${r}=${R.escapeUri(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${R.escapeUri(n)}`;t.push(o)}}return t.join("&")}import{Agent as Se,request as et}from"http";import{Agent as be,request as tt}from"https";var me=["ECONNRESET","EPIPE","ETIMEDOUT"];var W=(e)=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};var w={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)};var pe=1000,ge=(e,t,r=0)=>{if(!r)return-1;let n=(o)=>{let s=w.setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r-o),i=(c)=>{if(c?.connecting)c.on("connect",()=>{w.clearTimeout(s)});else w.clearTimeout(s)};if(e.socket)i(e.socket);else e.on("socket",i)};if(r<2000)return n(0),0;return w.setTimeout(n.bind(null,pe),pe)};var Xe=3000,ye=(e,{keepAlive:t,keepAliveMsecs:r},n=Xe)=>{if(t!==!0)return-1;let o=()=>{if(e.socket)e.socket.setKeepAlive(t,r||0);else e.on("socket",(s)=>{s.setKeepAlive(t,r||0)})};if(n===0)return o(),0;return w.setTimeout(o,n)};var we=3000,xe=(e,t,r=Ee)=>{let n=(o)=>{let s=r-o,i=()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(s,i),e.on("close",()=>e.socket?.removeListener("timeout",i));else e.setTimeout(s,i)};if(0<r&&r<6000)return n(0),0;return w.setTimeout(n.bind(null,r===0?0:we),we)};import{Readable as Ke}from"stream";var Te=6000;async function J(e,t,r=Te){let n=t.headers??{},o=n.Expect||n.expect,s=-1,i=!0;if(o==="100-continue")i=await Promise.race([new Promise((c)=>{s=Number(w.setTimeout(()=>c(!0),Math.max(Te,r)))}),new Promise((c)=>{e.on("continue",()=>{w.clearTimeout(s),c(!0)}),e.on("response",()=>{w.clearTimeout(s),c(!1)}),e.on("error",()=>{w.clearTimeout(s),c(!1)})})]);if(i)ve(e,t.body)}function ve(e,t){if(t instanceof Ke){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){e.end(t);return}let r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()}var Ee=0;class j{static create(e){if(typeof e?.handle==="function")return e;return new j(e)}static checkSocketUsage(e,t,r=console){let{sockets:n,requests:o,maxSockets:s}=e;if(typeof s!=="number"||s===1/0)return t;let i=15000;if(Date.now()-i<t)return t;if(n&&o)for(let c in n){let p=n[c]?.length??0,x=o[c]?.length??0;if(p>=s&&x>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${p} and ${x} additional requests are enqueued.
4
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
5
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{if(typeof e==="function")e().then((n)=>{t(this.resolveDefaultConfig(n))}).catch(r);else t(this.resolveDefaultConfig(e))})}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:r,socketTimeout:n,socketAcquisitionWarningTimeout:o,httpAgent:s,httpsAgent:i}=e||{},c=!0,p=50;return{connectionTimeout:r,requestTimeout:t??n,socketAcquisitionWarningTimeout:o,httpAgent:(()=>{if(s instanceof Se||typeof s?.destroy==="function")return s;return new Se({keepAlive:!0,maxSockets:50,...s})})(),httpsAgent:(()=>{if(i instanceof be||typeof i?.destroy==="function")return i;return new be({keepAlive:!0,maxSockets:50,...i})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config)this.config=await this.configProvider;return new Promise((r,n)=>{let o=void 0,s=[],i=async(u)=>{await o,s.forEach(w.clearTimeout),r(u)},c=async(u)=>{await o,s.forEach(w.clearTimeout),n(u)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){let u=new Error("Request aborted");u.name="AbortError",c(u);return}let p=e.protocol==="https:",x=p?this.config.httpsAgent:this.config.httpAgent;s.push(w.setTimeout(()=>{this.socketWarningTimestamp=j.checkSocketUsage(x,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000)));let E=B(e.query||{}),a=void 0;if(e.username!=null||e.password!=null){let u=e.username??"",y=e.password??"";a=`${u}:${y}`}let f=e.path;if(E)f+=`?${E}`;if(e.fragment)f+=`#${e.fragment}`;let d=e.hostname??"";if(d[0]==="["&&d.endsWith("]"))d=e.hostname.slice(1,-1);else d=e.hostname;let m={headers:e.headers,host:d,method:e.method,path:f,port:e.port,agent:x,auth:a},l=(p?tt:et)(m,(u)=>{let y=new k({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:W(u.headers),body:u});i({response:y})});if(l.on("error",(u)=>{if(me.includes(u.code))c(Object.assign(u,{name:"TimeoutError"}));else c(u)}),t){let u=()=>{l.destroy();let y=new Error("Request aborted");y.name="AbortError",c(y)};if(typeof t.addEventListener==="function"){let y=t;y.addEventListener("abort",u,{once:!0}),l.once("close",()=>y.removeEventListener("abort",u))}else t.onabort=u}s.push(ge(l,c,this.config.connectionTimeout)),s.push(xe(l,c,this.config.requestTimeout));let h=m.agent;if(typeof h==="object"&&"keepAlive"in h)s.push(ye(l,{keepAlive:h.keepAlive,keepAliveMsecs:h.keepAliveMsecs}));o=J(l,e,this.config.requestTimeout).catch((u)=>{return s.forEach(w.clearTimeout),n(u)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as rt}from"stream";class Y extends rt{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,r){this.bufferedBytes.push(e),r()}}var Bn=(e)=>{if(nt(e))return ot(e);return new Promise((t,r)=>{let n=new Y;e.pipe(n),e.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=new Uint8Array(Buffer.concat(this.bufferedBytes));t(o)})})},nt=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function ot(e){let t=[],r=e.getReader(),n=!1,o=0;while(!n){let{done:c,value:p}=await r.read();if(p)t.push(p),o+=p.length;n=c}let s=new Uint8Array(o),i=0;for(let c of t)s.set(c,i),i+=c.length;return s}export{Or as Hb,Dr as Ib,H as Jb,k as Kb,Ce as Lb,G as Mb,mt as Nb,yt as Ob,wt as Pb,xt as Qb,Et as Rb,Ct as Sb,$t as Tb,N as Ub,ie as Vb,Rt as Wb,Pt as Xb,Dt as Yb,Jt as Zb,jt as _b,Qt as $b,Xt as ac,We as bc,Je as cc,tr as dc,he as ec,j as fc,Bn as gc};
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as X,Aa as i,Ba as c,P as M,Q as N,R as O,S as Q,T as R,U as S,W as T,X as U,Z as V,_ as W,aa as Y,ba as Z,ca as _,da as $,ea as x,fa as z,ga as C,ha as F,ia as P,ja as h,ka as A,la as D,ma as k,na as f,oa as j,pa as I,qa as g,ra as p,sa as a,ta as m,ua as J,xa as n,ya as l}from"./chunk-w06e63eh.js";import"./chunk-yv49ttdw.js";import"./chunk-ks9kq37e.js";import"./chunk-r0recaya.js";import"./chunk-e1kefb68.js";import"./chunk-afqas5yf.js";import"./chunk-5vhayxpk.js";import"./chunk-ww48v0ap.js";import"./chunk-8acb2bq0.js";import"./chunk-5eh2tfep.js";import"./chunk-2xrqj8ap.js";import"./chunk-z80nypa9.js";import"./chunk-bgqy98qw.js";import"./chunk-2pj0cr49.js";import w from"process";import{runAction as t}from"@stacksjs/actions";import{cli as e,log as v}from"@stacksjs/cli";import{Action as o}from"@stacksjs/enums";import{path as L}from"@stacksjs/path";import{fs as r}from"@stacksjs/storage";import{ensureProjectIsInitialized as b}from"@stacksjs/utils";w.on("uncaughtException",(q)=>{v.debug("Buddy uncaughtException"),v.error(q),w.exit(1)});w.on("unhandledRejection",(q)=>{v.debug("Buddy unhandledRejection"),v.error(q),w.exit(1)});async function s(){let q=e("buddy");if(J(q),x(q),await b())v.debug("Project is initialized");else{v.info("Your `APP_KEY` is not yet set"),v.info("Generating application key...");let B=await t(o.KeyGenerate);if(B.isErr())v.error("Failed to set random application key.",B.error),w.exit()}M(q),N(q),O(q),Q(q),R(q),S(q),U(q),W(q),T(q),V(q),A(q),k(q),Y(q),Z(q),_(q),$(q),z(q),C(q),F(q),P(q),h(q),f(q),j(q),I(q),g(q),a(q),X(q),m(q),J(q),p(q),n(q),l(q),c(q),D(q),i(q),await y(q),q.help(),q.parse()}await s();async function y(q){let G=L.appPath("Commands"),B=r.readdirSync(G).filter((E)=>E.endsWith(".ts"));for(let E of B){let H=await import(`${G}/${E}`);if(typeof H.default==="function")H.default(q);else console.error(`Expected a default export function in ${E}, but got:`,H.default)}let K=await import(L.listenersPath("Console.ts"));if(typeof K.default==="function")K.default(q)}
2
+ import{$ as X,Aa as i,Ba as c,P as M,Q as N,R as O,S as Q,T as R,U as S,W as T,X as U,Z as V,_ as W,aa as Y,ba as Z,ca as _,da as $,ea as x,fa as z,ga as C,ha as F,ia as P,ja as h,ka as A,la as D,ma as k,na as f,oa as j,pa as I,qa as g,ra as p,sa as a,ta as m,ua as J,xa as n,ya as l}from"./chunk-5femxmbf.js";import"./chunk-38x86x4z.js";import"./chunk-2mzt8mks.js";import"./chunk-4z8d4zkm.js";import"./chunk-15sp93dn.js";import"./chunk-x6d1t8r7.js";import"./chunk-hrr9f8tw.js";import"./chunk-jx6tpg9f.js";import"./chunk-18byef1w.js";import"./chunk-fbbvmxn3.js";import"./chunk-p4sjnjkt.js";import"./chunk-atc0z327.js";import"./chunk-2hfepv08.js";import"./chunk-6wnzdvc6.js";import w from"process";import{runAction as t}from"@stacksjs/actions";import{cli as e,log as v}from"@stacksjs/cli";import{Action as o}from"@stacksjs/enums";import{path as L}from"@stacksjs/path";import{fs as r}from"@stacksjs/storage";import{ensureProjectIsInitialized as b}from"@stacksjs/utils";w.on("uncaughtException",(q)=>{v.debug("Buddy uncaughtException"),v.error(q),w.exit(1)});w.on("unhandledRejection",(q)=>{v.debug("Buddy unhandledRejection"),v.error(q),w.exit(1)});async function s(){let q=e("buddy");if(J(q),x(q),await b())v.debug("Project is initialized");else{v.info("Your `APP_KEY` is not yet set"),v.info("Generating application key...");let B=await t(o.KeyGenerate);if(B.isErr())v.error("Failed to set random application key.",B.error),w.exit()}M(q),N(q),O(q),Q(q),R(q),S(q),U(q),W(q),T(q),V(q),A(q),k(q),Y(q),Z(q),_(q),$(q),z(q),C(q),F(q),P(q),h(q),f(q),j(q),I(q),g(q),a(q),X(q),m(q),J(q),p(q),n(q),l(q),c(q),D(q),i(q),await y(q),q.help(),q.parse()}await s();async function y(q){let G=L.appPath("Commands"),B=r.readdirSync(G).filter((E)=>E.endsWith(".ts"));for(let E of B){let H=await import(`${G}/${E}`);if(typeof H.default==="function")H.default(q);else console.error(`Expected a default export function in ${E}, but got:`,H.default)}let K=await import(L.listenersPath("Console.ts"));if(typeof K.default==="function")K.default(q)}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$ as i,Aa as P,Ba as Q,P as e,Q as f,R as m,S as p,T as t,U as x,V as a,W as b,X as c,Y as d,Z as g,_ as h,aa as j,ba as k,ca as l,da as n,ea as q,fa as s,ga as u,ha as v,ia as w,ja as y,ka as z,la as A,ma as B,na as C,oa as D,pa as E,qa as F,ra as G,sa as H,ta as I,ua as J,va as K,wa as L,xa as M,ya as N,za as O}from"./chunk-w06e63eh.js";import"./chunk-yv49ttdw.js";import"./chunk-ks9kq37e.js";import"./chunk-r0recaya.js";import"./chunk-e1kefb68.js";import"./chunk-afqas5yf.js";import"./chunk-5vhayxpk.js";import"./chunk-ww48v0ap.js";import"./chunk-8acb2bq0.js";import"./chunk-5eh2tfep.js";import"./chunk-2xrqj8ap.js";import"./chunk-z80nypa9.js";import"./chunk-bgqy98qw.js";import"./chunk-2pj0cr49.js";export{Q as version,P as upgrade,O as types,N as tinker,M as test,d as startDevelopmentServer,J as setup,I as seed,H as search,G as schedule,F as saas,E as route,D as release,C as queue,B as projects,A as prepublish,z as ports,y as outdated,K as optimizePkgxDeps,w as migrate,v as make,u as list,s as lint,q as key,n as install,l as http,k as generate,j as fresh,i as env,L as ensureEnvIsSet,h as domains,g as dns,c as dev,b as deploy,a as create,x as configure,t as commit,p as cloud,m as clean,f as changelog,e as build};
2
+ import{$ as i,Aa as P,Ba as Q,P as e,Q as f,R as m,S as p,T as t,U as x,V as a,W as b,X as c,Y as d,Z as g,_ as h,aa as j,ba as k,ca as l,da as n,ea as q,fa as s,ga as u,ha as v,ia as w,ja as y,ka as z,la as A,ma as B,na as C,oa as D,pa as E,qa as F,ra as G,sa as H,ta as I,ua as J,va as K,wa as L,xa as M,ya as N,za as O}from"./chunk-5femxmbf.js";import"./chunk-38x86x4z.js";import"./chunk-2mzt8mks.js";import"./chunk-4z8d4zkm.js";import"./chunk-15sp93dn.js";import"./chunk-x6d1t8r7.js";import"./chunk-hrr9f8tw.js";import"./chunk-jx6tpg9f.js";import"./chunk-18byef1w.js";import"./chunk-fbbvmxn3.js";import"./chunk-p4sjnjkt.js";import"./chunk-atc0z327.js";import"./chunk-2hfepv08.js";import"./chunk-6wnzdvc6.js";export{Q as version,P as upgrade,O as types,N as tinker,M as test,d as startDevelopmentServer,J as setup,I as seed,H as search,G as schedule,F as saas,E as route,D as release,C as queue,B as projects,A as prepublish,z as ports,y as outdated,K as optimizePkgxDeps,w as migrate,v as make,u as list,s as lint,q as key,n as install,l as http,k as generate,j as fresh,i as env,L as ensureEnvIsSet,h as domains,g as dns,c as dev,b as deploy,a as create,x as configure,t as commit,p as cloud,m as clean,f as changelog,e as build};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
- "version": "0.70.6",
4
+ "version": "0.70.7",
5
5
  "description": "Meet Buddy. The Stacks runtime.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -1,6 +0,0 @@
1
- // @bun
2
- import{Ib as y,Rb as C,ec as P}from"./chunk-afqas5yf.js";import{wc as u}from"./chunk-ww48v0ap.js";import"./chunk-5eh2tfep.js";import{Lc as n}from"./chunk-z80nypa9.js";import{Qc as A}from"./chunk-bgqy98qw.js";import{Rc as d}from"./chunk-2pj0cr49.js";var K=d(A(),1);import O from"fs/promises";var E="169.254.170.2",R="169.254.170.23",p="[fd00:ec2::23]",i=(e,a)=>{if(e.protocol==="https:")return;if(e.hostname===E||e.hostname===R||e.hostname===p)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let c=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(c[0]==="127"&&r(c[1])&&r(c[2])&&r(c[3])&&c.length===4)return}throw new n(`URL not accepted. It must either be HTTPS or match one of the following:
3
- - loopback CIDR 127.0.0.0/8 or [::1/128]
4
- - ECS container host 169.254.170.2
5
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:a})};var S=d(u(),1);function g(e){return new y({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((a,[c,r])=>{return a[c]=r,a},{}),fragment:e.hash})}async function w(e,a){let r=await S.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new n("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:a});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:C(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new n(`Server responded with status: ${e.statusCode}`,{logger:a}),{Code:t.Code,Message:t.Message})}throw new n(`Server responded with status: ${e.statusCode}`,{logger:a})}var I=(e,a,c)=>{return async()=>{for(let r=0;r<a;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,c))}return await e()}};var b="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",v="http://169.254.170.2",_="AWS_CONTAINER_CREDENTIALS_FULL_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",D="AWS_CONTAINER_AUTHORIZATION_TOKEN",M=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let a,c=e.awsContainerCredentialsRelativeUri??process.env[b],r=e.awsContainerCredentialsFullUri??process.env[_],t=e.awsContainerAuthorizationToken??process.env[D],s=e.awsContainerAuthorizationTokenFile??process.env[B],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(c&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)a=r;else if(c)a=`${v}${c}`;else throw new n(`No HTTP credential provider host provided.
6
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let h=new URL(a);i(h,e.logger);let T=new P({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return I(async()=>{let o=g(h);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await O.readFile(s)).toString();try{let f=await T.handle(o);return w(f.response).then((x)=>K.setCredentialFeature(x,"CREDENTIALS_HTTP","z"))}catch(f){throw new n(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{M as fromHttp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Fc as m,zc as E}from"./chunk-8acb2bq0.js";import"./chunk-5eh2tfep.js";import{Lc as O,Nc as Q}from"./chunk-z80nypa9.js";import{Qc as j}from"./chunk-bgqy98qw.js";import{Rc as k,Wc as C}from"./chunk-2pj0cr49.js";var $=k(j(),1);var T=k(j(),1);var U=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-1vaz8fbz.js"),{fromContainerMetadata:A}=await import("./chunk-vrd8j1ky.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>Q(x(b??{}),A(b))().then(R)},Ec2InstanceMetadata:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:x}=await import("./chunk-vrd8j1ky.js");return async()=>x(b)().then(R)},Environment:async(b)=>{_?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:x}=await import("./chunk-2xrqj8ap.js");return async()=>x(b)().then(R)}};if(y in I)return I[y];else throw new O(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},R=(y)=>T.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var W=(y,{profile:w="default",logger:_}={})=>{return Boolean(y)&&typeof y==="object"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1&&["undefined","string"].indexOf(typeof y.external_id)>-1&&["undefined","string"].indexOf(typeof y.mfa_serial)>-1&&(P(y,{profile:w,logger:_})||N(y,{profile:w,logger:_}))},P=(y,{profile:w,logger:_})=>{let I=typeof y.source_profile==="string"&&typeof y.credential_source==="undefined";if(I)_?.debug?.(` ${w} isAssumeRoleWithSourceProfile source_profile=${y.source_profile}`);return I},N=(y,{profile:w,logger:_})=>{let I=typeof y.credential_source==="string"&&typeof y.source_profile==="undefined";if(I)_?.debug?.(` ${w} isCredentialSourceProfile credential_source=${y.credential_source}`);return I},X=async(y,w,_,I={})=>{_.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let b=w[y],{source_profile:x,region:A}=b;if(!_.roleAssumer){let{getDefaultRoleAssumer:K}=await import("./chunk-5yawz4bx.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:{..._?.parentClientConfig,region:A??_?.parentClientConfig?.region}},_.clientPlugins)}if(x&&x in I)throw new O(`Detected a cycle attempting to resolve credentials for profile ${E(_)}. Profiles visited: `+Object.keys(I).join(", "),{logger:_.logger});_.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${x?`source_profile=[${x}]`:`profile=[${y}]`}`);let J=x?L(x,w,_,{...I,[x]:!0},V(w[x]??{})):(await U(b.credential_source,y,_.logger)(_))();if(V(b))return J.then((K)=>$.setCredentialFeature(K,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let K={RoleArn:b.role_arn,RoleSessionName:b.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:b.external_id,DurationSeconds:parseInt(b.duration_seconds||"3600",10)},{mfa_serial:B}=b;if(B){if(!_.mfaCodeProvider)throw new O(`Profile ${y} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:_.logger,tryNextLink:!1});K.SerialNumber=B,K.TokenCode=await _.mfaCodeProvider(B)}let u=await J;return _.roleAssumer(u,K).then((v)=>$.setCredentialFeature(v,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(y)=>{return!y.role_arn&&!!y.credential_source};var Y=k(j(),1),Z=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",H=async(y,w)=>import("./chunk-mzgfvbmm.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>Y.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var q=k(j(),1),c=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-j3bhtk0d.js");return I({profile:y,logger:_.logger,parentClientConfig:_.parentClientConfig,clientConfig:_.clientConfig})().then((b)=>{if(w.sso_session)return q.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return q.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},S=(y)=>y&&(typeof y.sso_start_url==="string"||typeof y.sso_account_id==="string"||typeof y.sso_session==="string"||typeof y.sso_region==="string"||typeof y.sso_role_name==="string");var F=k(j(),1),z=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.aws_access_key_id==="string"&&typeof y.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof y.aws_session_token)>-1&&["undefined","string"].indexOf(typeof y.aws_account_id)>-1,G=async(y,w)=>{w?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let _={accessKeyId:y.aws_access_key_id,secretAccessKey:y.aws_secret_access_key,sessionToken:y.aws_session_token,...y.aws_credential_scope&&{credentialScope:y.aws_credential_scope},...y.aws_account_id&&{accountId:y.aws_account_id}};return F.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var M=k(j(),1),h=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.web_identity_token_file==="string"&&typeof y.role_arn==="string"&&["undefined","string"].indexOf(typeof y.role_session_name)>-1,D=async(y,w)=>import("./chunk-yatzvt36.js").then(({fromTokenFile:_})=>_({webIdentityTokenFile:y.web_identity_token_file,roleArn:y.role_arn,roleSessionName:y.role_session_name,roleAssumerWithWebIdentity:w.roleAssumerWithWebIdentity,logger:w.logger,parentClientConfig:w.parentClientConfig})().then((I)=>M.setCredentialFeature(I,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")));var L=async(y,w,_,I={},b=!1)=>{let x=w[y];if(Object.keys(I).length>0&&z(x))return G(x,_);if(b||W(x,{profile:y,logger:_.logger}))return X(y,w,_,I);if(z(x))return G(x,_);if(h(x))return D(x,_);if(Z(x))return H(_,y);if(S(x))return await c(y,x,_);throw new O(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var Cy=(y={})=>async({callerClientConfig:w}={})=>{let _={...y,parentClientConfig:{...w,...y.parentClientConfig}};_.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let I=await m(_);return L(E({profile:y.profile??w?.profile}),I,_)};export{Cy as fromIni};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Lc as _}from"./chunk-z80nypa9.js";import{Qc as A}from"./chunk-bgqy98qw.js";import{Rc as p}from"./chunk-2pj0cr49.js";var S=p(A(),1);var C="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",a="AWS_SESSION_TOKEN",i="AWS_CREDENTIAL_EXPIRATION",I="AWS_CREDENTIAL_SCOPE",d="AWS_ACCOUNT_ID",T=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let o=process.env[C],r=process.env[N],n=process.env[a],s=process.env[i],t=process.env[I],E=process.env[d];if(o&&r){let c={accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...E&&{accountId:E}};return S.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new _("Unable to find environment variable credentials.",{logger:e?.logger})};export{T as fromEnv,a as ENV_SESSION,N as ENV_SECRET,C as ENV_KEY,i as ENV_EXPIRATION,I as ENV_CREDENTIAL_SCOPE,d as ENV_ACCOUNT_ID};export{C as Hc,N as Ic,T as Jc};