@stacksjs/buddy 0.70.21 → 0.70.23

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 (44) hide show
  1. package/dist/chunk-1nq7pv3c.js +7 -0
  2. package/dist/{chunk-ks9kq37e.js → chunk-29k4nndh.js} +1 -1
  3. package/dist/chunk-39dwerh8.js +5 -0
  4. package/dist/{chunk-cptthhq1.js → chunk-3zqgxrhy.js} +2 -2
  5. package/dist/chunk-496r9jw6.js +3 -0
  6. package/dist/{chunk-68apz1e2.js → chunk-4k60zpwd.js} +1 -1
  7. package/dist/chunk-51tnc6dm.js +2 -0
  8. package/dist/{chunk-2ddgyqnt.js → chunk-5nbczt72.js} +2 -2
  9. package/dist/chunk-6fsr2f40.js +10 -0
  10. package/dist/{chunk-88nz529r.js → chunk-7pg49t20.js} +1 -1
  11. package/dist/chunk-8d01gfhw.js +2 -0
  12. package/dist/{chunk-hjdz5p2e.js → chunk-8kjkww7q.js} +2 -2
  13. package/dist/{chunk-9j2yq17h.js → chunk-97pfgxpz.js} +1 -1
  14. package/dist/chunk-a47wfx2k.js +2 -0
  15. package/dist/{chunk-qgs8ygf0.js → chunk-ftse0wqn.js} +359 -359
  16. package/dist/{chunk-z4zm45jz.js → chunk-jffk6kjy.js} +1 -1
  17. package/dist/{chunk-whp9hjd8.js → chunk-kg8bv5wt.js} +1 -1
  18. package/dist/{chunk-x0ahr107.js → chunk-knytfag6.js} +1 -1
  19. package/dist/{chunk-2pj0cr49.js → chunk-ksjzw2hp.js} +1 -1
  20. package/dist/{chunk-dmewpnnj.js → chunk-mk0bde63.js} +1 -1
  21. package/dist/{chunk-am6xbcgg.js → chunk-qm8eqyn5.js} +1 -1
  22. package/dist/{chunk-tndmgyk5.js → chunk-rdgds02z.js} +1 -1
  23. package/dist/chunk-sk9vc7y5.js +1 -0
  24. package/dist/{chunk-d9bheak7.js → chunk-sq3kqg71.js} +2 -2
  25. package/dist/{chunk-fk8jrqrt.js → chunk-t2wb516a.js} +1 -1
  26. package/dist/{chunk-x46hz7dc.js → chunk-t4y0mz3y.js} +1 -1
  27. package/dist/{chunk-czbsbg0s.js → chunk-vgn2n3rk.js} +1 -1
  28. package/dist/chunk-wzns1fp3.js +1 -0
  29. package/dist/chunk-xc6fz0pt.js +2 -0
  30. package/dist/{chunk-nec9r4e3.js → chunk-xfhw9xck.js} +1 -1
  31. package/dist/{chunk-j2vy37bj.js → chunk-yzwe58rn.js} +2 -2
  32. package/dist/cli.js +1 -1
  33. package/dist/index.js +1 -1
  34. package/package.json +52 -46
  35. package/dist/chunk-29rpwqgr.js +0 -1
  36. package/dist/chunk-7v1e78ya.js +0 -2
  37. package/dist/chunk-90stqnfr.js +0 -6
  38. package/dist/chunk-dcgjjy48.js +0 -3
  39. package/dist/chunk-p4y8yzm3.js +0 -2
  40. package/dist/chunk-qwdsyzdj.js +0 -1
  41. package/dist/chunk-ran3mnve.js +0 -2
  42. package/dist/chunk-tr3hrxn5.js +0 -2
  43. package/dist/chunk-vm9jcwg8.js +0 -5
  44. package/dist/chunk-xn1pvpj0.js +0 -10
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{G as D,i as C}from"./chunk-whp9hjd8.js";import"./chunk-2pj0cr49.js";class E{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(c)=>this.replacement=c}}replace(c,r,f,s){if(c&&r)if(f!=null)c[r][f]=s;else c[r]=s}remove(c,r,f){if(c&&r)if(f!==null&&f!==void 0)c[r].splice(f,1);else delete c[r]}}class w extends E{constructor(c,r){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(f)=>this.replacement=f},this.enter=c,this.leave=r}visit(c,r,f,s){if(c){if(this.enter){let i=this.should_skip,I=this.should_remove,l=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let t=this.should_skip,m=this.should_remove;if(this.should_skip=i,this.should_remove=I,this.replacement=l,t)return c;if(m)return null}let a;for(a in c){let i=c[a];if(i&&typeof i==="object"){if(Array.isArray(i)){let I=i;for(let l=0;l<I.length;l+=1){let t=I[l];if(e(t)){if(!this.visit(t,c,a,l))l--}}}else if(e(i))this.visit(i,c,a,null)}}if(this.leave){let i=this.replacement,I=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let l=this.should_remove;if(this.replacement=i,this.should_remove=I,l)return null}}return c}}function e(c){return c!==null&&typeof c==="object"&&"type"in c&&typeof c.type==="string"}function b(c,{enter:r,leave:f}){return new w(r,f).visit(c,null)}async function G(c,r,f){let s=D(c),a=await r.getImportMap(),i=[],I=f?.autoImport!==!1,l=f?.transformVirtualImports!==!1&&r.options.virtualImports?.length;if(I||l){let t=C(s.original,{sourceType:"module",ecmaVersion:"latest",locations:!0}),m=y(a,r.options.virtualImports),u=V(t,l?m.walk:{});if(I){let S=u.unmatched;i.push(...Array.from(S).map((g)=>{let h=a.get(g);if(h&&!h.disabled)return h;return null}).filter(Boolean));for(let g of r.addons)i=await g.matchImports?.call(r,S,i)||i}m.ranges.forEach(([S,g])=>{s.remove(S,g)}),i.push(...m.imports)}return{s,strippedCode:c.toString(),matchedImports:i,isCJSContext:!1,firstOccurrence:0}}function V(c,r){let f=[],s=void 0,a=[];function i(t){s={node:t,parent:s,declarations:new Set,references:new Set},f.push(s),a.push(s)}function I(t){if(a.pop()?.node!==t)throw new Error("Scope mismatch");s=a[a.length-1]}i(void 0),b(c,{enter(t,m,u,S){switch(r?.enter?.call(this,t,m,u,S),t.type){case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":s.declarations.add(t.local.name);return;case"FunctionDeclaration":case"ClassDeclaration":if(t.id)s.declarations.add(t.id.name);return;case"VariableDeclarator":if(t.id.type==="Identifier")s.declarations.add(t.id.name);else b(t.id,{enter(g){if(g.type==="ObjectPattern")g.properties.forEach((h)=>{if(h.type==="Property"&&h.value.type==="Identifier")s.declarations.add(h.value.name);else if(h.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)});else if(g.type==="ArrayPattern")g.elements.forEach((h)=>{if(h?.type==="Identifier")s.declarations.add(h.name);if(h?.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)})}});return;case"BlockStatement":i(t);return;case"Identifier":switch(m?.type){case"CallExpression":if(m.callee===t||m.arguments.includes(t))s.references.add(t.name);return;case"MemberExpression":if(m.object===t)s.references.add(t.name);return;case"VariableDeclarator":if(m.init===t)s.references.add(t.name);return;case"SpreadElement":if(m.argument===t)s.references.add(t.name);return;case"ClassDeclaration":if(m.superClass===t)s.references.add(t.name);return;case"Property":if(m.value===t)s.references.add(t.name);return;case"TemplateLiteral":if(m.expressions.includes(t))s.references.add(t.name);return;case"AssignmentExpression":if(m.right===t)s.references.add(t.name);return;case"IfStatement":case"WhileStatement":case"DoWhileStatement":if(m.test===t)s.references.add(t.name);return;case"SwitchStatement":if(m.discriminant===t)s.references.add(t.name);return}if(m?.type.includes("Expression"))s.references.add(t.name)}},leave(t,m,u,S){switch(r?.leave?.call(this,t,m,u,S),t.type){case"BlockStatement":I(t)}}});let l=new Set;for(let t of f)for(let m of t.references){let u=!1,S=t;while(S){if(S.declarations.has(m)){u=!0;break}S=S?.parent}if(!u)l.add(m)}return{unmatched:l,scopes:f}}function y(c,r=[]){let f=[],s=[];return{imports:f,ranges:s,walk:{enter(a){if(a.type==="ImportDeclaration"){if(r.includes(a.source.value))s.push([a.start,a.end]),a.specifiers.forEach((i)=>{if(i.type==="ImportSpecifier"&&i.imported.type==="Identifier"){let I=c.get(i.imported.name);if(!I)throw new Error(`[unimport] failed to find "${i.imported.name}" imported from "${a.source.value}"`);f.push({from:I.from,name:I.name,as:i.local.name})}})}}}}}export{V as traveseScopes,G as detectImportsAcorn,y as createVirtualImportsAcronWalker};
2
+ import{G as D,i as C}from"./chunk-kg8bv5wt.js";import"./chunk-ksjzw2hp.js";class E{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(c)=>this.replacement=c}}replace(c,r,f,s){if(c&&r)if(f!=null)c[r][f]=s;else c[r]=s}remove(c,r,f){if(c&&r)if(f!==null&&f!==void 0)c[r].splice(f,1);else delete c[r]}}class w extends E{constructor(c,r){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(f)=>this.replacement=f},this.enter=c,this.leave=r}visit(c,r,f,s){if(c){if(this.enter){let i=this.should_skip,I=this.should_remove,l=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let t=this.should_skip,m=this.should_remove;if(this.should_skip=i,this.should_remove=I,this.replacement=l,t)return c;if(m)return null}let a;for(a in c){let i=c[a];if(i&&typeof i==="object"){if(Array.isArray(i)){let I=i;for(let l=0;l<I.length;l+=1){let t=I[l];if(e(t)){if(!this.visit(t,c,a,l))l--}}}else if(e(i))this.visit(i,c,a,null)}}if(this.leave){let i=this.replacement,I=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,c,r,f,s),this.replacement)c=this.replacement,this.replace(r,f,s,c);if(this.should_remove)this.remove(r,f,s);let l=this.should_remove;if(this.replacement=i,this.should_remove=I,l)return null}}return c}}function e(c){return c!==null&&typeof c==="object"&&"type"in c&&typeof c.type==="string"}function b(c,{enter:r,leave:f}){return new w(r,f).visit(c,null)}async function G(c,r,f){let s=D(c),a=await r.getImportMap(),i=[],I=f?.autoImport!==!1,l=f?.transformVirtualImports!==!1&&r.options.virtualImports?.length;if(I||l){let t=C(s.original,{sourceType:"module",ecmaVersion:"latest",locations:!0}),m=y(a,r.options.virtualImports),u=V(t,l?m.walk:{});if(I){let S=u.unmatched;i.push(...Array.from(S).map((g)=>{let h=a.get(g);if(h&&!h.disabled)return h;return null}).filter(Boolean));for(let g of r.addons)i=await g.matchImports?.call(r,S,i)||i}m.ranges.forEach(([S,g])=>{s.remove(S,g)}),i.push(...m.imports)}return{s,strippedCode:c.toString(),matchedImports:i,isCJSContext:!1,firstOccurrence:0}}function V(c,r){let f=[],s=void 0,a=[];function i(t){s={node:t,parent:s,declarations:new Set,references:new Set},f.push(s),a.push(s)}function I(t){if(a.pop()?.node!==t)throw new Error("Scope mismatch");s=a[a.length-1]}i(void 0),b(c,{enter(t,m,u,S){switch(r?.enter?.call(this,t,m,u,S),t.type){case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":s.declarations.add(t.local.name);return;case"FunctionDeclaration":case"ClassDeclaration":if(t.id)s.declarations.add(t.id.name);return;case"VariableDeclarator":if(t.id.type==="Identifier")s.declarations.add(t.id.name);else b(t.id,{enter(g){if(g.type==="ObjectPattern")g.properties.forEach((h)=>{if(h.type==="Property"&&h.value.type==="Identifier")s.declarations.add(h.value.name);else if(h.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)});else if(g.type==="ArrayPattern")g.elements.forEach((h)=>{if(h?.type==="Identifier")s.declarations.add(h.name);if(h?.type==="RestElement"&&h.argument.type==="Identifier")s.declarations.add(h.argument.name)})}});return;case"BlockStatement":i(t);return;case"Identifier":switch(m?.type){case"CallExpression":if(m.callee===t||m.arguments.includes(t))s.references.add(t.name);return;case"MemberExpression":if(m.object===t)s.references.add(t.name);return;case"VariableDeclarator":if(m.init===t)s.references.add(t.name);return;case"SpreadElement":if(m.argument===t)s.references.add(t.name);return;case"ClassDeclaration":if(m.superClass===t)s.references.add(t.name);return;case"Property":if(m.value===t)s.references.add(t.name);return;case"TemplateLiteral":if(m.expressions.includes(t))s.references.add(t.name);return;case"AssignmentExpression":if(m.right===t)s.references.add(t.name);return;case"IfStatement":case"WhileStatement":case"DoWhileStatement":if(m.test===t)s.references.add(t.name);return;case"SwitchStatement":if(m.discriminant===t)s.references.add(t.name);return}if(m?.type.includes("Expression"))s.references.add(t.name)}},leave(t,m,u,S){switch(r?.leave?.call(this,t,m,u,S),t.type){case"BlockStatement":I(t)}}});let l=new Set;for(let t of f)for(let m of t.references){let u=!1,S=t;while(S){if(S.declarations.has(m)){u=!0;break}S=S?.parent}if(!u)l.add(m)}return{unmatched:l,scopes:f}}function y(c,r=[]){let f=[],s=[];return{imports:f,ranges:s,walk:{enter(a){if(a.type==="ImportDeclaration"){if(r.includes(a.source.value))s.push([a.start,a.end]),a.specifiers.forEach((i)=>{if(i.type==="ImportSpecifier"&&i.imported.type==="Identifier"){let I=c.get(i.imported.name);if(!I)throw new Error(`[unimport] failed to find "${i.imported.name}" imported from "${a.source.value}"`);f.push({from:I.from,name:I.name,as:i.local.name})}})}}}}}export{V as traveseScopes,G as detectImportsAcorn,y as createVirtualImportsAcronWalker};
@@ -1,4 +1,4 @@
1
- import{Rc as QZ,Tc as ZZ}from"./chunk-2pj0cr49.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
1
+ import{Vc as QZ,Xc as ZZ}from"./chunk-ksjzw2hp.js";var U_=ZZ((BO,N_)=>{var B_,d0,i0,o0,n0,r0,U0,m1,C0,s0,M_,a0,w0,t0,e0,_1,e,J_,z1,Z1,OZ;t0=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;w0=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;d0=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;_1=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;a0=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;e=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Z1=/[\t\v\f\ufeff\p{Zs}]+/yu;C0=/\r?\n|[\r\u2028\u2029]/y;s0=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;e0=/\/\/.*/y;B_=/^#!.*/;o0=/[<>.:={}]|\/(?![\/*])/y;i0=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;n0=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;r0=/[^<>{}]+/y;z1=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;J_=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;U0=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;m1=/^(?:return|throw|yield)$/;M_=RegExp(C0.source);N_.exports=OZ=function*(_,{jsx:z=!1}={}){var Z,O,Q,j,H,$,K,W,Y,G,V,q,C,B;if({length:$}=_,j=0,H="",B=[{tag:"JS"}],Z=[],V=0,q=!1,K=B_.exec(_))yield{type:"HashbangComment",value:K[0]},j=K[0].length;while(j<$){switch(W=B[B.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[j]==="/"&&(z1.test(H)||U0.test(H))){if(t0.lastIndex=j,K=t0.exec(_)){j=t0.lastIndex,H=K[0],q=!0,yield{type:"RegularExpressionLiteral",value:K[0],closed:K[1]!==void 0&&K[1]!=="\\"};continue}}if(w0.lastIndex=j,K=w0.exec(_)){switch(C=K[0],Y=w0.lastIndex,G=C,C){case"(":if(H==="?NonExpressionParenKeyword")B.push({tag:"JSNonExpressionParen",nesting:V});V++,q=!1;break;case")":if(V--,q=!0,W.tag==="JSNonExpressionParen"&&V===W.nesting)B.pop(),G="?NonExpressionParenEnd",q=!1;break;case"{":w0.lastIndex=0,Q=!J_.test(H)&&(z1.test(H)||U0.test(H)),Z.push(Q),q=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(Z.length===W.nesting){if(e.lastIndex=j,K=e.exec(_),j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",q=!1,yield{type:"TemplateMiddle",value:K[0]};else B.pop(),q=!0,yield{type:"TemplateTail",value:K[0],closed:K[1]==="`"};continue}break;case"InterpolationInJSX":if(Z.length===W.nesting){B.pop(),j+=1,H="}",yield{type:"JSXPunctuator",value:"}"};continue}}q=Z.pop(),G=q?"?ExpressionBraceEnd":"}";break;case"]":q=!0;break;case"++":case"--":G=q?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(z&&(z1.test(H)||U0.test(H))){B.push({tag:"JSXTag"}),j+=1,H="<",yield{type:"JSXPunctuator",value:C};continue}q=!1;break;default:q=!1}j=Y,H=G,yield{type:"Punctuator",value:C};continue}if(d0.lastIndex=j,K=d0.exec(_)){switch(j=d0.lastIndex,G=K[0],K[0]){case"for":case"if":case"while":case"with":if(H!=="."&&H!=="?.")G="?NonExpressionParenKeyword"}H=G,q=!U0.test(K[0]),yield{type:K[1]==="#"?"PrivateIdentifier":"IdentifierName",value:K[0]};continue}if(_1.lastIndex=j,K=_1.exec(_)){j=_1.lastIndex,H=K[0],q=!0,yield{type:"StringLiteral",value:K[0],closed:K[2]!==void 0};continue}if(a0.lastIndex=j,K=a0.exec(_)){j=a0.lastIndex,H=K[0],q=!0,yield{type:"NumericLiteral",value:K[0]};continue}if(e.lastIndex=j,K=e.exec(_)){if(j=e.lastIndex,H=K[0],K[1]==="${")H="?InterpolationInTemplate",B.push({tag:"InterpolationInTemplate",nesting:Z.length}),q=!1,yield{type:"TemplateHead",value:K[0]};else q=!0,yield{type:"NoSubstitutionTemplate",value:K[0],closed:K[1]==="`"};continue}break;case"JSXTag":case"JSXTagEnd":if(o0.lastIndex=j,K=o0.exec(_)){switch(j=o0.lastIndex,G=K[0],K[0]){case"<":B.push({tag:"JSXTag"});break;case">":if(B.pop(),H==="/"||W.tag==="JSXTagEnd")G="?JSX",q=!0;else B.push({tag:"JSXChildren"});break;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),G="?InterpolationInJSX",q=!1;break;case"/":if(H==="<"){if(B.pop(),B[B.length-1].tag==="JSXChildren")B.pop();B.push({tag:"JSXTagEnd"})}}H=G,yield{type:"JSXPunctuator",value:K[0]};continue}if(i0.lastIndex=j,K=i0.exec(_)){j=i0.lastIndex,H=K[0],yield{type:"JSXIdentifier",value:K[0]};continue}if(n0.lastIndex=j,K=n0.exec(_)){j=n0.lastIndex,H=K[0],yield{type:"JSXString",value:K[0],closed:K[2]!==void 0};continue}break;case"JSXChildren":if(r0.lastIndex=j,K=r0.exec(_)){j=r0.lastIndex,H=K[0],yield{type:"JSXText",value:K[0]};continue}switch(_[j]){case"<":B.push({tag:"JSXTag"}),j++,H="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":B.push({tag:"InterpolationInJSX",nesting:Z.length}),j++,H="?InterpolationInJSX",q=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(Z1.lastIndex=j,K=Z1.exec(_)){j=Z1.lastIndex,yield{type:"WhiteSpace",value:K[0]};continue}if(C0.lastIndex=j,K=C0.exec(_)){if(j=C0.lastIndex,q=!1,m1.test(H))H="?NoLineTerminatorHere";yield{type:"LineTerminatorSequence",value:K[0]};continue}if(s0.lastIndex=j,K=s0.exec(_)){if(j=s0.lastIndex,M_.test(K[0])){if(q=!1,m1.test(H))H="?NoLineTerminatorHere"}yield{type:"MultiLineComment",value:K[0],closed:K[1]!==void 0};continue}if(e0.lastIndex=j,K=e0.exec(_)){j=e0.lastIndex,q=!1,yield{type:"SingleLineComment",value:K[0]};continue}O=String.fromCodePoint(_.codePointAt(j)),j+=O.length,H=O,q=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:O}}return}});var D_=/^[A-Za-z]:\//;function K0(_=""){if(!_)return _;return _.replace(/\\/g,"/").replace(D_,(z)=>z.toUpperCase())}var v_=/^[/\\]{2}/,y_=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,i1=/^[A-Za-z]:$/,d1=/^\/([A-Za-z]:)?$/,S_=/.(\.[^./]+|\.)$/,f_=/^[/\\]|^[a-zA-Z]:[/\\]/;var o1=function(_){if(_.length===0)return".";_=K0(_);let z=_.match(v_),Z=l(_),O=_[_.length-1]==="/";if(_=j1(_,!Z),_.length===0){if(Z)return"/";return O?"./":"."}if(O)_+="/";if(i1.test(_))_+="/";if(z){if(!Z)return`//./${_}`;return`//${_}`}return Z&&!l(_)?`/${_}`:_},I_=function(..._){let z="";for(let Z of _){if(!Z)continue;if(z.length>0){let O=z[z.length-1]==="/",Q=Z[0]==="/";if(O&&Q)z+=Z.slice(1);else z+=O||Q?Z:`/${Z}`}else z+=Z}return o1(z)};function b_(){if(typeof process!=="undefined"&&typeof process.cwd==="function")return process.cwd().replace(/\\/g,"/");return"/"}var $0=function(..._){_=_.map((O)=>K0(O));let z="",Z=!1;for(let O=_.length-1;O>=-1&&!Z;O--){let Q=O>=0?_[O]:b_();if(!Q||Q.length===0)continue;z=`${Q}/${z}`,Z=l(Q)}if(z=j1(z,!Z),Z&&!l(z))return`/${z}`;return z.length>0?z:"."};function j1(_,z){let Z="",O=0,Q=-1,j=0,H=null;for(let $=0;$<=_.length;++$){if($<_.length)H=_[$];else if(H==="/")break;else H="/";if(H==="/"){if(Q===$-1||j===1);else if(j===2){if(Z.length<2||O!==2||Z[Z.length-1]!=="."||Z[Z.length-2]!=="."){if(Z.length>2){let K=Z.lastIndexOf("/");if(K===-1)Z="",O=0;else Z=Z.slice(0,K),O=Z.length-1-Z.lastIndexOf("/");Q=$,j=0;continue}else if(Z.length>0){Z="",O=0,Q=$,j=0;continue}}if(z)Z+=Z.length>0?"/..":"..",O=2}else{if(Z.length>0)Z+=`/${_.slice(Q+1,$)}`;else Z=_.slice(Q+1,$);O=$-Q-1}Q=$,j=0}else if(H==="."&&j!==-1)++j;else j=-1}return Z}var l=function(_){return y_.test(_)};var n1=function(_){if(_==="..")return"";let z=S_.exec(K0(_));return z&&z[1]||""},H1=function(_,z){let Z=$0(_).replace(d1,"$1").split("/"),O=$0(z).replace(d1,"$1").split("/");if(O[0][1]===":"&&Z[0][1]===":"&&Z[0]!==O[0])return O.join("/");let Q=[...Z];for(let j of Q){if(O[0]!==j)break;Z.shift(),O.shift()}return[...Z.map(()=>".."),...O].join("/")},r1=function(_){let z=K0(_).replace(/\/$/,"").split("/").slice(0,-1);if(z.length===1&&i1.test(z[0]))z[0]+="/";return z.join("/")||(l(_)?"/":".")};var s1=function(_,z){let Z=K0(_).split("/"),O="";for(let Q=Z.length-1;Q>=0;Q--){let j=Z[Q];if(j){O=j;break}}return z&&O.endsWith(z)?O.slice(0,-z.length):O},k_=function(_){let z=f_.exec(_)?.[0]?.replace(/\\/g,"/")||"",Z=s1(_),O=n1(Z);return{root:z,dir:r1(_),base:Z,ext:O,name:Z.slice(0,Z.length-O.length)}};var x_=/\d/,h_=["-","_","/","."];function g_(_=""){if(x_.test(_))return;return _!==_.toLowerCase()}function a1(_,z){let Z=z??h_,O=[];if(!_||typeof _!=="string")return O;let Q="",j,H;for(let $ of _){let K=Z.includes($);if(K===!0){O.push(Q),Q="",j=void 0;continue}let W=g_($);if(H===!1){if(j===!1&&W===!0){O.push(Q),Q=$,j=W;continue}if(j===!0&&W===!1&&Q.length>1){let Y=Q.at(-1);O.push(Q.slice(0,Math.max(0,Q.length-1))),Q=Y+$,j=W;continue}}Q+=$,j=W,H=K}return O.push(Q),O}function u_(_){return _?_[0].toUpperCase()+_.slice(1):""}function m_(_){return _?_[0].toLowerCase()+_.slice(1):""}function l_(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>u_(z?.normalize?Z.toLowerCase():Z)).join(""):""}function R1(_,z){return m_(l_(_||"",z))}function T0(_,z){return _?(Array.isArray(_)?_:a1(_)).map((Z)=>Z.toLowerCase()).join(z??"-"):""}var _2=new Uint8Array(64),p_=new Uint8Array(128);for(let _=0;_<64;_++){let z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(_);_2[_]=z,p_[z]=_}function W0(_,z,Z){let O=z-Z;O=O<0?-O<<1|1:O<<1;do{let Q=O&31;if(O>>>=5,O>0)Q|=32;_.write(_2[Q])}while(O>0);return z}var t1=16384,e1=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(_){return Buffer.from(_.buffer,_.byteOffset,_.byteLength).toString()}}:{decode(_){let z="";for(let Z=0;Z<_.length;Z++)z+=String.fromCharCode(_[Z]);return z}};class z2{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(t1)}write(_){let{buffer:z}=this;if(z[this.pos++]=_,this.pos===t1)this.out+=e1.decode(z),this.pos=0}flush(){let{buffer:_,out:z,pos:Z}=this;return Z>0?z+e1.decode(_.subarray(0,Z)):z}}function Z2(_){let z=new z2,Z=0,O=0,Q=0,j=0;for(let H=0;H<_.length;H++){let $=_[H];if(H>0)z.write(59);if($.length===0)continue;let K=0;for(let W=0;W<$.length;W++){let Y=$[W];if(W>0)z.write(44);if(K=W0(z,Y[0],K),Y.length===1)continue;if(Z=W0(z,Y[1],Z),O=W0(z,Y[2],O),Q=W0(z,Y[3],Q),Y.length===4)continue;j=W0(z,Y[4],j)}}return z.flush()}class E0{constructor(_){this.bits=_ instanceof E0?_.bits.slice():[]}add(_){this.bits[_>>5]|=1<<(_&31)}has(_){return!!(this.bits[_>>5]&1<<(_&31))}}class G0{constructor(_,z,Z){this.start=_,this.end=z,this.original=Z,this.intro="",this.outro="",this.content=Z,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(_){this.outro+=_}appendRight(_){this.intro=this.intro+_}clone(){let _=new G0(this.start,this.end,this.original);return _.intro=this.intro,_.outro=this.outro,_.content=this.content,_.storeName=this.storeName,_.edited=this.edited,_}contains(_){return this.start<_&&_<this.end}eachNext(_){let z=this;while(z)_(z),z=z.next}eachPrevious(_){let z=this;while(z)_(z),z=z.previous}edit(_,z,Z){if(this.content=_,!Z)this.intro="",this.outro="";return this.storeName=z,this.edited=!0,this}prependLeft(_){this.outro=_+this.outro}prependRight(_){this.intro=_+this.intro}reset(){if(this.intro="",this.outro="",this.edited)this.content=this.original,this.storeName=!1,this.edited=!1}split(_){let z=_-this.start,Z=this.original.slice(0,z),O=this.original.slice(z);this.original=Z;let Q=new G0(_,this.end,O);if(Q.outro=this.outro,this.outro="",this.end=_,this.edited)Q.edit("",!1),this.content="";else this.content=Z;if(Q.next=this.next,Q.next)Q.next.previous=Q;return Q.previous=this,this.next=Q,Q}toString(){return this.intro+this.content+this.outro}trimEnd(_){if(this.outro=this.outro.replace(_,""),this.outro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){if(this.split(this.start+z.length).edit("",void 0,!0),this.edited)this.edit(z,this.storeName,!0)}return!0}else if(this.edit("",void 0,!0),this.intro=this.intro.replace(_,""),this.intro.length)return!0}trimStart(_){if(this.intro=this.intro.replace(_,""),this.intro.length)return!0;let z=this.content.replace(_,"");if(z.length){if(z!==this.content){let Z=this.split(this.end-z.length);if(this.edited)Z.edit(z,this.storeName,!0);this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(_,""),this.outro.length)return!0}}function c_(){if(typeof globalThis!=="undefined"&&typeof globalThis.btoa==="function")return(_)=>globalThis.btoa(unescape(encodeURIComponent(_)));else if(typeof Buffer==="function")return(_)=>Buffer.from(_,"utf-8").toString("base64");else return()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var d_=c_();class Q2{constructor(_){if(this.version=3,this.file=_.file,this.sources=_.sources,this.sourcesContent=_.sourcesContent,this.names=_.names,this.mappings=Z2(_.mappings),typeof _.x_google_ignoreList!=="undefined")this.x_google_ignoreList=_.x_google_ignoreList;if(typeof _.debugId!=="undefined")this.debugId=_.debugId}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+d_(this.toString())}}function i_(_){let z=_.split(`
2
2
  `),Z=z.filter((j)=>/^\t+/.test(j)),O=z.filter((j)=>/^ {2,}/.test(j));if(Z.length===0&&O.length===0)return null;if(Z.length>=O.length)return"\t";let Q=O.reduce((j,H)=>{let $=/^ +/.exec(H)[0].length;return Math.min($,j)},1/0);return new Array(Q+1).join(" ")}function o_(_,z){let Z=_.split(/[/\\]/),O=z.split(/[/\\]/);Z.pop();while(Z[0]===O[0])Z.shift(),O.shift();if(Z.length){let Q=Z.length;while(Q--)Z[Q]=".."}return Z.concat(O).join("/")}var n_=Object.prototype.toString;function r_(_){return n_.call(_)==="[object Object]"}function O2(_){let z=_.split(`
3
3
  `),Z=[];for(let O=0,Q=0;O<z.length;O++)Z.push(Q),Q+=z[O].length+1;return function O(Q){let j=0,H=Z.length;while(j<H){let W=j+H>>1;if(Q<Z[W])H=W;else j=W+1}let $=j-1,K=Q-Z[$];return{line:$,column:K}}}var s_=/\w/;class j2{constructor(_){this.hires=_,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(_,z,Z,O){if(z.length){let Q=z.length-1,j=z.indexOf(`
4
4
  `,0),H=-1;while(j>=0&&Q>j){let K=[this.generatedCodeColumn,_,Z.line,Z.column];if(O>=0)K.push(O);this.rawSegments.push(K),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,H=j,j=z.indexOf(`
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ga as I2,Ha as O2}from"./chunk-6v69415e.js";import"./chunk-2pj0cr49.js";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function E2(z){return typeof z>"u"||z===null}function c2(z){return typeof z=="object"&&z!==null}function f2(z){return Array.isArray(z)?z:E2(z)?[]:[z]}function u2(z,J){var Q,X,V,$;if(J)for($=Object.keys(J),Q=0,X=$.length;Q<X;Q+=1)V=$[Q],z[V]=J[V];return z}function o2(z,J){var Q="",X;for(X=0;X<J;X+=1)Q+=z;return Q}function l2(z){return z===0&&Number.NEGATIVE_INFINITY===1/z}var r2=E2,i2=c2,n2=f2,e2=o2,z3=l2,J3=u2,D={isNothing:r2,isObject:i2,toArray:n2,repeat:e2,isNegativeZero:z3,extend:J3};function T2(z,J){var Q="",X=z.reason||"(unknown reason)";return z.mark?(z.mark.name&&(Q+='in "'+z.mark.name+'" '),Q+="("+(z.mark.line+1)+":"+(z.mark.column+1)+")",!J&&z.mark.snippet&&(Q+=`
2
+ import{Ga as I2,Ha as O2}from"./chunk-6v69415e.js";import"./chunk-ksjzw2hp.js";/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function E2(z){return typeof z>"u"||z===null}function c2(z){return typeof z=="object"&&z!==null}function f2(z){return Array.isArray(z)?z:E2(z)?[]:[z]}function u2(z,J){var Q,X,V,$;if(J)for($=Object.keys(J),Q=0,X=$.length;Q<X;Q+=1)V=$[Q],z[V]=J[V];return z}function o2(z,J){var Q="",X;for(X=0;X<J;X+=1)Q+=z;return Q}function l2(z){return z===0&&Number.NEGATIVE_INFINITY===1/z}var r2=E2,i2=c2,n2=f2,e2=o2,z3=l2,J3=u2,D={isNothing:r2,isObject:i2,toArray:n2,repeat:e2,isNegativeZero:z3,extend:J3};function T2(z,J){var Q="",X=z.reason||"(unknown reason)";return z.mark?(z.mark.name&&(Q+='in "'+z.mark.name+'" '),Q+="("+(z.mark.line+1)+":"+(z.mark.column+1)+")",!J&&z.mark.snippet&&(Q+=`
3
3
 
4
4
  `+z.mark.snippet),X+" "+Q):X}function v(z,J){Error.call(this),this.name="YAMLException",this.reason=z,this.mark=J,this.message=T2(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v.prototype.toString=function(z){return this.name+": "+T2(this,z)};var O=v;function l(z,J,Q,X,V){var $="",Z="",q=Math.floor(V/2)-1;return X-J>q&&($=" ... ",J=X-q+$.length),Q-X>q&&(Z=" ...",Q=X+q-Z.length),{str:$+z.slice(J,Q).replace(/\t/g,"\u2192")+Z,pos:X-J+$.length}}function r(z,J){return D.repeat(" ",J-z.length)+z}function Q3(z,J){if(J=Object.create(J||null),!z.buffer)return null;J.maxLength||(J.maxLength=79),typeof J.indent!="number"&&(J.indent=1),typeof J.linesBefore!="number"&&(J.linesBefore=3),typeof J.linesAfter!="number"&&(J.linesAfter=2);for(var Q=/\r?\n|\r|\0/g,X=[0],V=[],$,Z=-1;$=Q.exec(z.buffer);)V.push($.index),X.push($.index+$[0].length),z.position<=$.index&&Z<0&&(Z=X.length-2);Z<0&&(Z=X.length-1);var q="",G,K,H=Math.min(z.line+J.linesAfter,V.length).toString().length,W=J.maxLength-(J.indent+H+3);for(G=1;G<=J.linesBefore&&!(Z-G<0);G++)K=l(z.buffer,X[Z-G],V[Z-G],z.position-(X[Z]-X[Z-G]),W),q=D.repeat(" ",J.indent)+r((z.line-G+1).toString(),H)+" | "+K.str+`
5
5
  `+q;for(K=l(z.buffer,X[Z],V[Z],z.position,W),q+=D.repeat(" ",J.indent)+r((z.line+1).toString(),H)+" | "+K.str+`
@@ -1,2 +1,2 @@
1
1
  var j=Object.create;var{getPrototypeOf:k,defineProperty:e,getOwnPropertyNames:h,getOwnPropertyDescriptor:l}=Object,i=Object.prototype.hasOwnProperty;var m=(a,b,c)=>{c=a!=null?j(k(a)):{};let d=b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c;for(let f of h(a))if(!i.call(d,f))e(d,f,{get:()=>a[f],enumerable:!0});return d},g=new WeakMap,n=(a)=>{var b=g.get(a),c;if(b)return b;if(b=e({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function")h(a).map((d)=>!i.call(b,d)&&e(b,d,{get:()=>a[d],enumerable:!(c=l(a,d))||c.enumerable}));return g.set(a,b),b},o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0,configurable:!0,set:(d)=>b[c]=()=>d})};var q=(a,b)=>()=>(a&&(b=a(a=0)),b);var r=import.meta.require;
2
- export{m as Rc,n as Sc,o as Tc,p as Uc,q as Vc,r as Wc};
2
+ export{m as Vc,n as Wc,o as Xc,p as Yc,q as Zc,r as _c};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bc as A,Hc as E}from"./chunk-29rpwqgr.js";import"./chunk-qwdsyzdj.js";import{Pc as K}from"./chunk-hjdz5p2e.js";import{Qc as T}from"./chunk-cptthhq1.js";import{Rc as w}from"./chunk-2pj0cr49.js";var o=w(T(),1);import{exec as y}from"node:child_process";import{promisify as I}from"node:util";var S=w(K(),1),x=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let i=new Date;if(new Date(n.Expiration)<i)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let t={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return S.setCredentialFeature(t,"CREDENTIALS_PROCESS","w"),t};var _=async(c,n,e)=>{let s=n[c];if(n[c]){let t=s.credential_process;if(t!==void 0){let i=I(y);try{let{stdout:r}=await i(t),u;try{u=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,u,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:e})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var F=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await E(c);return _(A({profile:c.profile??n?.profile}),e,c.logger)};export{F as fromProcess};
2
+ import{Ic as A,Oc as E}from"./chunk-sk9vc7y5.js";import"./chunk-xc6fz0pt.js";import{Tc as K}from"./chunk-8kjkww7q.js";import{Uc as T}from"./chunk-3zqgxrhy.js";import{Vc as w}from"./chunk-ksjzw2hp.js";var o=w(T(),1);import{exec as y}from"node:child_process";import{promisify as I}from"node:util";var S=w(K(),1),x=(c,n,e)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){let i=new Date;if(new Date(n.Expiration)<i)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let s=n.AccountId;if(!s&&e?.[c]?.aws_account_id)s=e[c].aws_account_id;let t={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...s&&{accountId:s}};return S.setCredentialFeature(t,"CREDENTIALS_PROCESS","w"),t};var _=async(c,n,e)=>{let s=n[c];if(n[c]){let t=s.credential_process;if(t!==void 0){let i=I(y);try{let{stdout:r}=await i(t),u;try{u=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,u,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:e})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:e})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:e})};var F=(c={})=>async({callerClientConfig:n}={})=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let e=await E(c);return _(A({profile:c.profile??n?.profile}),e,c.logger)};export{F as fromProcess};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ea as r,Fa as s}from"./chunk-cqrmkpzz.js";import"./chunk-6v69415e.js";import"./chunk-2pj0cr49.js";export{s as stringifyJSONC,r as parseJSONC};
2
+ import{Ea as r,Fa as s}from"./chunk-cqrmkpzz.js";import"./chunk-6v69415e.js";import"./chunk-ksjzw2hp.js";export{s as stringifyJSONC,r as parseJSONC};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Bc as I,Cc as z,Dc as R,Gc as v,Hc as A}from"./chunk-29rpwqgr.js";import"./chunk-qwdsyzdj.js";import{Pc as oe}from"./chunk-hjdz5p2e.js";import{Qc as u}from"./chunk-cptthhq1.js";import{Rc as S,Wc as D}from"./chunk-2pj0cr49.js";var T=S(u(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var F=S(oe(),1);var x=S(u(),1);var U=300000,h="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var q=async(e,s={})=>{let{SSOOIDCClient:o}=await import("./chunk-ran3mnve.js");return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:s.clientConfig?.logger??s.parentClientConfig?.logger}))};var W=async(e,s,o={})=>{let{CreateTokenCommand:i}=await import("./chunk-ran3mnve.js");return(await q(s,o)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var j=S(u(),1);var $=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new j.TokenProviderError(`Token is expired. ${h}`,!1)};var X=S(u(),1);var g=(e,s,o=!1)=>{if(typeof s==="undefined")throw new X.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${h}`,!1)};import{promises as Z}from"node:fs";var{writeFile:ee}=Z,J=(e,s)=>{let o=z(e),i=JSON.stringify(s,null,2);return ee(o,i)};var V=new Date(0),Y=(e={})=>async({callerClientConfig:s}={})=>{let o={...e,parentClientConfig:{...s,...e.parentClientConfig}};o.logger?.debug("@aws-sdk/token-providers - fromSso");let i=await A(o),r=I({profile:o.profile??s?.profile}),f=i[r];if(!f)throw new x.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);else if(!f.sso_session)throw new x.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let l=f.sso_session,a=(await v(o))[l];if(!a)throw new x.TokenProviderError(`Sso session '${l}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new x.TokenProviderError(`Sso session '${l}' is missing required property '${n}'.`,!1);let{sso_start_url:w,sso_region:t}=a,c;try{c=await R(l)}catch(n){throw new x.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${h}`,!1)}g("accessToken",c.accessToken),g("expiresAt",c.expiresAt);let{accessToken:E,expiresAt:O}=c,p={token:E,expiration:new Date(O)};if(p.expiration.getTime()-Date.now()>U)return p;if(Date.now()-V.getTime()<30000)return $(p),p;g("clientId",c.clientId,!0),g("clientSecret",c.clientSecret,!0),g("refreshToken",c.refreshToken,!0);try{V.setTime(Date.now());let n=await W(c,t,o);g("accessToken",n.accessToken),g("expiresIn",n.expiresIn);let _=new Date(Date.now()+n.expiresIn*1000);try{await J(l,{...c,accessToken:n.accessToken,expiresAt:_.toISOString(),refreshToken:n.refreshToken})}catch(m){}return{token:n.accessToken,expiration:_}}catch(n){return $(p),p}};var k=S(u(),1);var N=!1,L=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoClient:f,clientConfig:l,parentClientConfig:y,profile:a,logger:w})=>{let t,c="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let d=await Y({profile:a})();t={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:N,logger:w})}else try{t=await R(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w})}if(new Date(t.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w});let{accessToken:E}=t,{SSOClient:O,GetRoleCredentialsCommand:p}=await import("./chunk-p4y8yzm3.js"),n=f||new O(Object.assign({},l??{},{logger:l?.logger??y?.logger,region:l?.region??i})),_;try{_=await n.send(new p({accountId:o,roleName:r,accessToken:E}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:N,logger:w})}let{roleCredentials:{accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:G,credentialScope:K,accountId:b}={}}=_;if(!m||!C||!M||!G)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:N,logger:w});let P={accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:new Date(G),...K&&{credentialScope:K},...b&&{accountId:b}};if(s)F.setCredentialFeature(P,"CREDENTIALS_SSO","s");else F.setCredentialFeature(P,"CREDENTIALS_SSO_LEGACY","u");return P};var B=S(u(),1),Q=(e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:r,sso_role_name:f}=e;if(!o||!i||!r||!f)throw new B.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
2
+ import{Ic as I,Jc as z,Kc as R,Nc as v,Oc as A}from"./chunk-sk9vc7y5.js";import"./chunk-xc6fz0pt.js";import{Tc as oe}from"./chunk-8kjkww7q.js";import{Uc as u}from"./chunk-3zqgxrhy.js";import{Vc as S,_c as D}from"./chunk-ksjzw2hp.js";var T=S(u(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var F=S(oe(),1);var x=S(u(),1);var U=300000,h="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var q=async(e,s={})=>{let{SSOOIDCClient:o}=await import("./chunk-51tnc6dm.js");return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:s.clientConfig?.logger??s.parentClientConfig?.logger}))};var W=async(e,s,o={})=>{let{CreateTokenCommand:i}=await import("./chunk-51tnc6dm.js");return(await q(s,o)).send(new i({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var j=S(u(),1);var $=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new j.TokenProviderError(`Token is expired. ${h}`,!1)};var X=S(u(),1);var g=(e,s,o=!1)=>{if(typeof s==="undefined")throw new X.TokenProviderError(`Value not present for '${e}' in SSO Token${o?". Cannot refresh":""}. ${h}`,!1)};import{promises as Z}from"node:fs";var{writeFile:ee}=Z,J=(e,s)=>{let o=z(e),i=JSON.stringify(s,null,2);return ee(o,i)};var V=new Date(0),Y=(e={})=>async({callerClientConfig:s}={})=>{let o={...e,parentClientConfig:{...s,...e.parentClientConfig}};o.logger?.debug("@aws-sdk/token-providers - fromSso");let i=await A(o),r=I({profile:o.profile??s?.profile}),f=i[r];if(!f)throw new x.TokenProviderError(`Profile '${r}' could not be found in shared credentials file.`,!1);else if(!f.sso_session)throw new x.TokenProviderError(`Profile '${r}' is missing required property 'sso_session'.`);let l=f.sso_session,a=(await v(o))[l];if(!a)throw new x.TokenProviderError(`Sso session '${l}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new x.TokenProviderError(`Sso session '${l}' is missing required property '${n}'.`,!1);let{sso_start_url:w,sso_region:t}=a,c;try{c=await R(l)}catch(n){throw new x.TokenProviderError(`The SSO session token associated with profile=${r} was not found or is invalid. ${h}`,!1)}g("accessToken",c.accessToken),g("expiresAt",c.expiresAt);let{accessToken:E,expiresAt:O}=c,p={token:E,expiration:new Date(O)};if(p.expiration.getTime()-Date.now()>U)return p;if(Date.now()-V.getTime()<30000)return $(p),p;g("clientId",c.clientId,!0),g("clientSecret",c.clientSecret,!0),g("refreshToken",c.refreshToken,!0);try{V.setTime(Date.now());let n=await W(c,t,o);g("accessToken",n.accessToken),g("expiresIn",n.expiresIn);let _=new Date(Date.now()+n.expiresIn*1000);try{await J(l,{...c,accessToken:n.accessToken,expiresAt:_.toISOString(),refreshToken:n.refreshToken})}catch(m){}return{token:n.accessToken,expiration:_}}catch(n){return $(p),p}};var k=S(u(),1);var N=!1,L=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:o,ssoRegion:i,ssoRoleName:r,ssoClient:f,clientConfig:l,parentClientConfig:y,profile:a,logger:w})=>{let t,c="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let d=await Y({profile:a})();t={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:N,logger:w})}else try{t=await R(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w})}if(new Date(t.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:N,logger:w});let{accessToken:E}=t,{SSOClient:O,GetRoleCredentialsCommand:p}=await import("./chunk-a47wfx2k.js"),n=f||new O(Object.assign({},l??{},{logger:l?.logger??y?.logger,region:l?.region??i})),_;try{_=await n.send(new p({accountId:o,roleName:r,accessToken:E}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:N,logger:w})}let{roleCredentials:{accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:G,credentialScope:K,accountId:b}={}}=_;if(!m||!C||!M||!G)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:N,logger:w});let P={accessKeyId:m,secretAccessKey:C,sessionToken:M,expiration:new Date(G),...K&&{credentialScope:K},...b&&{accountId:b}};if(s)F.setCredentialFeature(P,"CREDENTIALS_SSO","s");else F.setCredentialFeature(P,"CREDENTIALS_SSO_LEGACY","u");return P};var B=S(u(),1),Q=(e,s)=>{let{sso_start_url:o,sso_account_id:i,sso_region:r,sso_role_name:f}=e;if(!o||!i||!r||!f)throw new B.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
3
3
  Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:s});return e};var Re=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:o,ssoAccountId:i,ssoRegion:r,ssoRoleName:f,ssoSession:l}=e,{ssoClient:y}=e,a=I({profile:e.profile??s?.profile});if(!o&&!i&&!r&&!f&&!l){let t=(await A(e))[a];if(!t)throw new T.CredentialsProviderError(`Profile ${a} was not found.`,{logger:e.logger});if(!H(t))throw new T.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`,{logger:e.logger});if(t?.sso_session){let m=(await v(e))[t.sso_session],C=` configurations in profile ${a} and sso-session ${t.sso_session}`;if(r&&r!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+C,{tryNextLink:!1,logger:e.logger});if(o&&o!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+C,{tryNextLink:!1,logger:e.logger});t.sso_region=m.sso_region,t.sso_start_url=m.sso_start_url}let{sso_start_url:c,sso_account_id:E,sso_region:O,sso_role_name:p,sso_session:n}=Q(t,e.logger);return L({ssoStartUrl:c,ssoSession:n,ssoAccountId:E,ssoRegion:O,ssoRoleName:p,ssoClient:y,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:a})}else if(!o||!i||!r||!f)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return L({ssoStartUrl:o,ssoSession:l,ssoAccountId:i,ssoRegion:r,ssoRoleName:f,ssoClient:y,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,profile:a})};export{Q as validateSsoProfile,H as isSsoProfile,Re as fromSSO};
@@ -0,0 +1 @@
1
+ import{Pc as S}from"./chunk-xc6fz0pt.js";import{Vc as x}from"./chunk-ksjzw2hp.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env.AWS_PROFILE||"default";import{join as b}from"node:path";import{homedir as N}from"node:os";import{sep as L}from"node:path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{let{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;let i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I}from"node:path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{let t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{let i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j}from"node:path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{let e={},t,r;for(let i of o.split(/\r?\n/)){let s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;let n=s.substring(1,s.length-1),m=$.exec(n);if(m){let[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){let n=s.indexOf("=");if(![0,-1].includes(n)){let[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};let F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W}from"node:fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{let{filepath:e=_(),configFilepath:t=g()}=o,r=f(),i="~/",s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));let n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{let e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{let e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U}from"node:crypto";import{join as X}from"node:path";var H=(o)=>{let t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k}from"node:fs";var{readFile:M}=k,$e=async(o)=>{let e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as Hc,B as Ic,H as Jc,$e as Kc,c as Lc,R as Mc,Pe as Nc,He as Oc};
@@ -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-whp9hjd8.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("node:os"),Ay=R("node: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-kg8bv5wt.js";import{Ca as l8}from"./chunk-29k4nndh.js";import{Vc as _1,Xc as E,_c as R}from"./chunk-ksjzw2hp.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("node:os"),Ay=R("node: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"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node: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-z4zm45jz.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"node:module";import J9,{dirname as E9,win32 as H8,join as z9}from"node:path";import _0 from"node: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-jffk6kjy.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};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Gb as z,Hb as P}from"./chunk-2ddgyqnt.js";import"./chunk-29rpwqgr.js";import"./chunk-qwdsyzdj.js";import{Qc as D}from"./chunk-cptthhq1.js";import{Rc as _}from"./chunk-2pj0cr49.js";var m=_(D(),1);import{parse as o}from"node:url";var K=_(D(),1);import{Buffer as a}from"node:buffer";import{request as n}from"node:http";function u(c){return new Promise((I,x)=>{let T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new K.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new K.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{let{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new K.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();let E=[];N.on("data",(y)=>{E.push(y)}),N.on("end",()=>{I(a.concat(E)),T.destroy()})}),T.end()})}var G=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",Q=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var uc=1000,Ec=0,X=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var f=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var v="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",Kc=(c={})=>{let{timeout:I,maxRetries:x}=X(c);return()=>f(async()=>{let T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!G(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return Q(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await u({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[v]){let I=o(process.env[v]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${L} or ${v} environment variable is set`,{tryNextLink:!1,logger:c})};var q=_(D(),1);var U=_(D(),1);class Z extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,Z.prototype)}}var A;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(A||(A={}));var t={environmentVariableSelector:(c)=>c.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(c)=>c.ec2_metadata_service_endpoint,default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>z(t)(),Ic=async()=>{let c=await z(F)();switch(c){case S.IPv4:return A.IPv4;case S.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}. Select from ${Object.values(S)}`)}};var b=(c,I)=>{let x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(T)}.
2
+ import{Fb as z,Gb as P}from"./chunk-5nbczt72.js";import"./chunk-sk9vc7y5.js";import"./chunk-xc6fz0pt.js";import{Uc as D}from"./chunk-3zqgxrhy.js";import{Vc as _}from"./chunk-ksjzw2hp.js";var m=_(D(),1);import{parse as o}from"node:url";var K=_(D(),1);import{Buffer as a}from"node:buffer";import{request as n}from"node:http";function u(c){return new Promise((I,x)=>{let T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new K.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new K.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{let{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new K.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();let E=[];N.on("data",(y)=>{E.push(y)}),N.on("end",()=>{I(a.concat(E)),T.destroy()})}),T.end()})}var G=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",Q=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var uc=1000,Ec=0,X=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var f=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var v="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",Kc=(c={})=>{let{timeout:I,maxRetries:x}=X(c);return()=>f(async()=>{let T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!G(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return Q(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await u({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[v]){let I=o(process.env[v]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${L} or ${v} environment variable is set`,{tryNextLink:!1,logger:c})};var q=_(D(),1);var U=_(D(),1);class Z extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,Z.prototype)}}var A;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(A||(A={}));var t={environmentVariableSelector:(c)=>c.AWS_EC2_METADATA_SERVICE_ENDPOINT,configFileSelector:(c)=>c.ec2_metadata_service_endpoint,default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>z(t)(),Ic=async()=>{let c=await z(F)();switch(c){case S.IPv4:return A.IPv4;case S.IPv6:return A.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}. Select from ${Object.values(S)}`)}};var b=(c,I)=>{let x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(T)}.
3
3
  For more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html`);let N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var V=(c,I={})=>{let x=I?.logger||console,T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=b(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=b(T,x);else throw O}return T=N,N}};var k="/latest/meta-data/iam/security-credentials/",Tc="/latest/api/token",H="AWS_EC2_METADATA_V1_DISABLED",R="ec2_metadata_v1_disabled",M="x-aws-ec2-metadata-token",oc=(c={})=>V(Nc(c),{logger:c.logger}),Nc=(c={})=>{let I=!1,{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=X(c),E=async(y,$)=>{if(I||$.headers?.[M]==null){let w=!1,h=!1,C=await z({environmentVariableSelector:(Y)=>{let j=Y[H];if(h=!!j&&j!=="false",j===void 0)throw new q.CredentialsProviderError(`${H} not set in env, checking config file next.`,{logger:c.logger});return h},configFileSelector:(Y)=>{let j=Y[R];return w=!!j&&j!=="false",w},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||C){let Y=[];if(c.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(w)Y.push(`config file profile (${R})`);if(h)Y.push(`process environment variable (${H})`);throw new Z(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let p=(await f(async()=>{let w;try{w=await Oc($)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)).trim();return f(async()=>{let w;try{w=await yc(p,$,c)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)};return async()=>{let y=await W();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),E(O,{...y,timeout:N});else{let $;try{$=(await xc({...y,timeout:N})).toString()}catch(J){if(J?.statusCode===400)throw Object.assign(J,{message:"EC2 Metadata token request returned error"});else if(J.message==="TimeoutError"||[403,404,405].includes(J.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),E(O,{...y,timeout:N})}return E(O,{...y,headers:{[M]:$},timeout:N})}}},xc=async(c)=>u({...c,path:Tc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Oc=async(c)=>(await u({...c,path:k})).toString(),yc=async(c,I,x)=>{let T=JSON.parse((await u({...I,path:k+c})).toString());if(!G(T))throw new q.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:x.logger});return Q(T)};export{X as providerConfigFromInit,u as httpRequest,W as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,Kc as fromContainerMetadata,A as Endpoint,L as ENV_CMDS_RELATIVE_URI,v as ENV_CMDS_FULL_URI,B as ENV_CMDS_AUTH_TOKEN,uc as DEFAULT_TIMEOUT,Ec as DEFAULT_MAX_RETRIES};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Rc as sJ,Tc as X,Wc as Q}from"./chunk-2pj0cr49.js";var u=X((SE)=>{SE.fromCallback=function(q){return Object.defineProperty(function(...n){if(typeof n[n.length-1]==="function")q.apply(this,n);else return new Promise((E,y)=>{n.push((J,O)=>J!=null?y(J):E(O)),q.apply(this,n)})},"name",{value:q.name})};SE.fromPromise=function(q){return Object.defineProperty(function(...n){let E=n[n.length-1];if(typeof E!=="function")return q.apply(this,n);else n.pop(),q.apply(this,n).then((y)=>E(null,y),E)},"name",{value:q.name})}});var hq=X((UO,iq)=>{var f=Q("node:constants"),iE=process.cwd,Pq=null,hE=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Pq)Pq=iE.call(process);return Pq};try{process.cwd()}catch(q){}if(typeof process.chdir==="function"){if(Aq=process.chdir,process.chdir=function(q){Pq=null,Aq.call(process,q)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,Aq)}var Aq;iq.exports=lE;function lE(q){if(f.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))n(q);if(!q.lutimes)E(q);if(q.chown=O(q.chown),q.fchown=O(q.fchown),q.lchown=O(q.lchown),q.chmod=y(q.chmod),q.fchmod=y(q.fchmod),q.lchmod=y(q.lchmod),q.chownSync=_(q.chownSync),q.fchownSync=_(q.fchownSync),q.lchownSync=_(q.lchownSync),q.chmodSync=J(q.chmodSync),q.fchmodSync=J(q.fchmodSync),q.lchmodSync=J(q.lchmodSync),q.stat=U(q.stat),q.fstat=U(q.fstat),q.lstat=U(q.lstat),q.statSync=j(q.statSync),q.fstatSync=j(q.fstatSync),q.lstatSync=j(q.lstatSync),q.chmod&&!q.lchmod)q.lchmod=function(V,A,L){if(L)process.nextTick(L)},q.lchmodSync=function(){};if(q.chown&&!q.lchown)q.lchown=function(V,A,L,K){if(K)process.nextTick(K)},q.lchownSync=function(){};if(hE==="win32")q.rename=typeof q.rename!=="function"?q.rename:function(V){function A(L,K,P){var N=Date.now(),C=0;V(L,K,function R(h){if(h&&(h.code==="EACCES"||h.code==="EPERM"||h.code==="EBUSY")&&Date.now()-N<60000){if(setTimeout(function(){q.stat(K,function(m,Jq){if(m&&m.code==="ENOENT")V(L,K,R);else P(h)})},C),C<100)C+=10;return}if(P)P(h)})}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.rename);q.read=typeof q.read!=="function"?q.read:function(V){function A(L,K,P,N,C,R){var h;if(R&&typeof R==="function"){var m=0;h=function(Jq,gq,bq){if(Jq&&Jq.code==="EAGAIN"&&m<10)return m++,V.call(q,L,K,P,N,C,h);R.apply(this,arguments)}}return V.call(q,L,K,P,N,C,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.read),q.readSync=typeof q.readSync!=="function"?q.readSync:function(V){return function(A,L,K,P,N){var C=0;while(!0)try{return V.call(q,A,L,K,P,N)}catch(R){if(R.code==="EAGAIN"&&C<10){C++;continue}throw R}}}(q.readSync);function n(V){V.lchmod=function(A,L,K){V.open(A,f.O_WRONLY|f.O_SYMLINK,L,function(P,N){if(P){if(K)K(P);return}V.fchmod(N,L,function(C){V.close(N,function(R){if(K)K(C||R)})})})},V.lchmodSync=function(A,L){var K=V.openSync(A,f.O_WRONLY|f.O_SYMLINK,L),P=!0,N;try{N=V.fchmodSync(K,L),P=!1}finally{if(P)try{V.closeSync(K)}catch(C){}else V.closeSync(K)}return N}}function E(V){if(f.hasOwnProperty("O_SYMLINK")&&V.futimes)V.lutimes=function(A,L,K,P){V.open(A,f.O_SYMLINK,function(N,C){if(N){if(P)P(N);return}V.futimes(C,L,K,function(R){V.close(C,function(h){if(P)P(R||h)})})})},V.lutimesSync=function(A,L,K){var P=V.openSync(A,f.O_SYMLINK),N,C=!0;try{N=V.futimesSync(P,L,K),C=!1}finally{if(C)try{V.closeSync(P)}catch(R){}else V.closeSync(P)}return N};else if(V.futimes)V.lutimes=function(A,L,K,P){if(P)process.nextTick(P)},V.lutimesSync=function(){}}function y(V){if(!V)return V;return function(A,L,K){return V.call(q,A,L,function(P){if($(P))P=null;if(K)K.apply(this,arguments)})}}function J(V){if(!V)return V;return function(A,L){try{return V.call(q,A,L)}catch(K){if(!$(K))throw K}}}function O(V){if(!V)return V;return function(A,L,K,P){return V.call(q,A,L,K,function(N){if($(N))N=null;if(P)P.apply(this,arguments)})}}function _(V){if(!V)return V;return function(A,L,K){try{return V.call(q,A,L,K)}catch(P){if(!$(P))throw P}}}function U(V){if(!V)return V;return function(A,L,K){if(typeof L==="function")K=L,L=null;function P(N,C){if(C){if(C.uid<0)C.uid+=4294967296;if(C.gid<0)C.gid+=4294967296}if(K)K.apply(this,arguments)}return L?V.call(q,A,L,P):V.call(q,A,P)}}function j(V){if(!V)return V;return function(A,L){var K=L?V.call(q,A,L):V.call(q,A);if(K){if(K.uid<0)K.uid+=4294967296;if(K.gid<0)K.gid+=4294967296}return K}}function $(V){if(!V)return!0;if(V.code==="ENOSYS")return!0;var A=!process.getuid||process.getuid()!==0;if(A){if(V.code==="EINVAL"||V.code==="EPERM")return!0}return!1}}});var cq=X((zO,pq)=>{var lq=Q("node:stream").Stream;pq.exports=pE;function pE(q){return{ReadStream:n,WriteStream:E};function n(y,J){if(!(this instanceof n))return new n(y,J);lq.call(this);var O=this;this.path=y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,J=J||{};var _=Object.keys(J);for(var U=0,j=_.length;U<j;U++){var $=_[U];this[$]=J[$]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){O._read()});return}q.open(this.path,this.flags,this.mode,function(V,A){if(V){O.emit("error",V),O.readable=!1;return}O.fd=A,O.emit("open",A),O._read()})}function E(y,J){if(!(this instanceof E))return new E(y,J);lq.call(this),this.path=y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,J=J||{};var O=Object.keys(J);for(var _=0,U=O.length;_<U;_++){var j=O[_];this[j]=J[j]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=q.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var fq=X((LO,oq)=>{oq.exports=oE;var cE=Object.getPrototypeOf||function(q){return q.__proto__};function oE(q){if(q===null||typeof q!=="object")return q;if(q instanceof Object)var n={__proto__:cE(q)};else var n=Object.create(null);return Object.getOwnPropertyNames(q).forEach(function(E){Object.defineProperty(n,E,Object.getOwnPropertyDescriptor(q,E))}),n}});var qq=X((PO,Iq)=>{var B=Q("node:fs"),fE=hq(),dE=cq(),rE=fq(),Gq=Q("node:util"),F,Yq;if(typeof Symbol==="function"&&typeof Symbol.for==="function")F=Symbol.for("graceful-fs.queue"),Yq=Symbol.for("graceful-fs.previous");else F="___graceful-fs.queue",Yq="___graceful-fs.previous";function aE(){}function rq(q,n){Object.defineProperty(q,F,{get:function(){return n}})}var e=aE;if(Gq.debuglog)e=Gq.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))e=function(){var q=Gq.format.apply(Gq,arguments);q="GFS4: "+q.split(/\n/).join(`
2
+ import{Vc as sJ,Xc as X,_c as Q}from"./chunk-ksjzw2hp.js";var u=X((SE)=>{SE.fromCallback=function(q){return Object.defineProperty(function(...n){if(typeof n[n.length-1]==="function")q.apply(this,n);else return new Promise((E,y)=>{n.push((J,O)=>J!=null?y(J):E(O)),q.apply(this,n)})},"name",{value:q.name})};SE.fromPromise=function(q){return Object.defineProperty(function(...n){let E=n[n.length-1];if(typeof E!=="function")return q.apply(this,n);else n.pop(),q.apply(this,n).then((y)=>E(null,y),E)},"name",{value:q.name})}});var hq=X((UO,iq)=>{var f=Q("node:constants"),iE=process.cwd,Pq=null,hE=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Pq)Pq=iE.call(process);return Pq};try{process.cwd()}catch(q){}if(typeof process.chdir==="function"){if(Aq=process.chdir,process.chdir=function(q){Pq=null,Aq.call(process,q)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,Aq)}var Aq;iq.exports=lE;function lE(q){if(f.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))n(q);if(!q.lutimes)E(q);if(q.chown=O(q.chown),q.fchown=O(q.fchown),q.lchown=O(q.lchown),q.chmod=y(q.chmod),q.fchmod=y(q.fchmod),q.lchmod=y(q.lchmod),q.chownSync=_(q.chownSync),q.fchownSync=_(q.fchownSync),q.lchownSync=_(q.lchownSync),q.chmodSync=J(q.chmodSync),q.fchmodSync=J(q.fchmodSync),q.lchmodSync=J(q.lchmodSync),q.stat=U(q.stat),q.fstat=U(q.fstat),q.lstat=U(q.lstat),q.statSync=j(q.statSync),q.fstatSync=j(q.fstatSync),q.lstatSync=j(q.lstatSync),q.chmod&&!q.lchmod)q.lchmod=function(V,A,L){if(L)process.nextTick(L)},q.lchmodSync=function(){};if(q.chown&&!q.lchown)q.lchown=function(V,A,L,K){if(K)process.nextTick(K)},q.lchownSync=function(){};if(hE==="win32")q.rename=typeof q.rename!=="function"?q.rename:function(V){function A(L,K,P){var N=Date.now(),C=0;V(L,K,function R(h){if(h&&(h.code==="EACCES"||h.code==="EPERM"||h.code==="EBUSY")&&Date.now()-N<60000){if(setTimeout(function(){q.stat(K,function(m,Jq){if(m&&m.code==="ENOENT")V(L,K,R);else P(h)})},C),C<100)C+=10;return}if(P)P(h)})}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.rename);q.read=typeof q.read!=="function"?q.read:function(V){function A(L,K,P,N,C,R){var h;if(R&&typeof R==="function"){var m=0;h=function(Jq,gq,bq){if(Jq&&Jq.code==="EAGAIN"&&m<10)return m++,V.call(q,L,K,P,N,C,h);R.apply(this,arguments)}}return V.call(q,L,K,P,N,C,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(A,V);return A}(q.read),q.readSync=typeof q.readSync!=="function"?q.readSync:function(V){return function(A,L,K,P,N){var C=0;while(!0)try{return V.call(q,A,L,K,P,N)}catch(R){if(R.code==="EAGAIN"&&C<10){C++;continue}throw R}}}(q.readSync);function n(V){V.lchmod=function(A,L,K){V.open(A,f.O_WRONLY|f.O_SYMLINK,L,function(P,N){if(P){if(K)K(P);return}V.fchmod(N,L,function(C){V.close(N,function(R){if(K)K(C||R)})})})},V.lchmodSync=function(A,L){var K=V.openSync(A,f.O_WRONLY|f.O_SYMLINK,L),P=!0,N;try{N=V.fchmodSync(K,L),P=!1}finally{if(P)try{V.closeSync(K)}catch(C){}else V.closeSync(K)}return N}}function E(V){if(f.hasOwnProperty("O_SYMLINK")&&V.futimes)V.lutimes=function(A,L,K,P){V.open(A,f.O_SYMLINK,function(N,C){if(N){if(P)P(N);return}V.futimes(C,L,K,function(R){V.close(C,function(h){if(P)P(R||h)})})})},V.lutimesSync=function(A,L,K){var P=V.openSync(A,f.O_SYMLINK),N,C=!0;try{N=V.futimesSync(P,L,K),C=!1}finally{if(C)try{V.closeSync(P)}catch(R){}else V.closeSync(P)}return N};else if(V.futimes)V.lutimes=function(A,L,K,P){if(P)process.nextTick(P)},V.lutimesSync=function(){}}function y(V){if(!V)return V;return function(A,L,K){return V.call(q,A,L,function(P){if($(P))P=null;if(K)K.apply(this,arguments)})}}function J(V){if(!V)return V;return function(A,L){try{return V.call(q,A,L)}catch(K){if(!$(K))throw K}}}function O(V){if(!V)return V;return function(A,L,K,P){return V.call(q,A,L,K,function(N){if($(N))N=null;if(P)P.apply(this,arguments)})}}function _(V){if(!V)return V;return function(A,L,K){try{return V.call(q,A,L,K)}catch(P){if(!$(P))throw P}}}function U(V){if(!V)return V;return function(A,L,K){if(typeof L==="function")K=L,L=null;function P(N,C){if(C){if(C.uid<0)C.uid+=4294967296;if(C.gid<0)C.gid+=4294967296}if(K)K.apply(this,arguments)}return L?V.call(q,A,L,P):V.call(q,A,P)}}function j(V){if(!V)return V;return function(A,L){var K=L?V.call(q,A,L):V.call(q,A);if(K){if(K.uid<0)K.uid+=4294967296;if(K.gid<0)K.gid+=4294967296}return K}}function $(V){if(!V)return!0;if(V.code==="ENOSYS")return!0;var A=!process.getuid||process.getuid()!==0;if(A){if(V.code==="EINVAL"||V.code==="EPERM")return!0}return!1}}});var cq=X((zO,pq)=>{var lq=Q("node:stream").Stream;pq.exports=pE;function pE(q){return{ReadStream:n,WriteStream:E};function n(y,J){if(!(this instanceof n))return new n(y,J);lq.call(this);var O=this;this.path=y,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,J=J||{};var _=Object.keys(J);for(var U=0,j=_.length;U<j;U++){var $=_[U];this[$]=J[$]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){O._read()});return}q.open(this.path,this.flags,this.mode,function(V,A){if(V){O.emit("error",V),O.readable=!1;return}O.fd=A,O.emit("open",A),O._read()})}function E(y,J){if(!(this instanceof E))return new E(y,J);lq.call(this),this.path=y,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,J=J||{};var O=Object.keys(J);for(var _=0,U=O.length;_<U;_++){var j=O[_];this[j]=J[j]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=q.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var fq=X((LO,oq)=>{oq.exports=oE;var cE=Object.getPrototypeOf||function(q){return q.__proto__};function oE(q){if(q===null||typeof q!=="object")return q;if(q instanceof Object)var n={__proto__:cE(q)};else var n=Object.create(null);return Object.getOwnPropertyNames(q).forEach(function(E){Object.defineProperty(n,E,Object.getOwnPropertyDescriptor(q,E))}),n}});var qq=X((PO,Iq)=>{var B=Q("node:fs"),fE=hq(),dE=cq(),rE=fq(),Gq=Q("node:util"),F,Yq;if(typeof Symbol==="function"&&typeof Symbol.for==="function")F=Symbol.for("graceful-fs.queue"),Yq=Symbol.for("graceful-fs.previous");else F="___graceful-fs.queue",Yq="___graceful-fs.previous";function aE(){}function rq(q,n){Object.defineProperty(q,F,{get:function(){return n}})}var e=aE;if(Gq.debuglog)e=Gq.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))e=function(){var q=Gq.format.apply(Gq,arguments);q="GFS4: "+q.split(/\n/).join(`
3
3
  GFS4: `),console.error(q)};if(!B[F]){if(wq=global[F]||[],rq(B,wq),B.close=function(q){function n(E,y){return q.call(B,E,function(J){if(!J)dq();if(typeof y==="function")y.apply(this,arguments)})}return Object.defineProperty(n,Yq,{value:q}),n}(B.close),B.closeSync=function(q){function n(E){q.apply(B,arguments),dq()}return Object.defineProperty(n,Yq,{value:q}),n}(B.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){e(B[F]),Q("node:assert").equal(B[F].length,0)})}var wq;if(!global[F])rq(global,B[F]);Iq.exports=Bq(rE(B));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!B.__patched)Iq.exports=Bq(B),B.__patched=!0;function Bq(q){fE(q),q.gracefulify=Bq,q.createReadStream=gq,q.createWriteStream=bq;var n=q.readFile;q.readFile=E;function E(z,Z,Y){if(typeof Z==="function")Y=Z,Z=null;return M(z,Z,Y);function M(T,I,w,D){return n(T,I,function(H){if(H&&(H.code==="EMFILE"||H.code==="ENFILE"))s([M,[T,I,w],H,D||Date.now(),Date.now()]);else if(typeof w==="function")w.apply(this,arguments)})}}var y=q.writeFile;q.writeFile=J;function J(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return y(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var O=q.appendFile;if(O)q.appendFile=_;function _(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return O(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var U=q.copyFile;if(U)q.copyFile=j;function j(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=0;return T(z,Z,Y,M);function T(I,w,D,H,k){return U(I,w,D,function(x){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}var $=q.readdir;q.readdir=A;var V=/^v[0-5]\./;function A(z,Z,Y){if(typeof Z==="function")Y=Z,Z=null;var M=V.test(process.version)?function I(w,D,H,k){return $(w,T(w,D,H,k))}:function I(w,D,H,k){return $(w,D,T(w,D,H,k))};return M(z,Z,Y);function T(I,w,D,H){return function(k,x){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))s([M,[I,w,D],k,H||Date.now(),Date.now()]);else{if(x&&x.sort)x.sort();if(typeof D==="function")D.call(this,k,x)}}}}if(process.version.substr(0,4)==="v0.8"){var L=dE(q);R=L.ReadStream,m=L.WriteStream}var K=q.ReadStream;if(K)R.prototype=Object.create(K.prototype),R.prototype.open=h;var P=q.WriteStream;if(P)m.prototype=Object.create(P.prototype),m.prototype.open=Jq;Object.defineProperty(q,"ReadStream",{get:function(){return R},set:function(z){R=z},enumerable:!0,configurable:!0}),Object.defineProperty(q,"WriteStream",{get:function(){return m},set:function(z){m=z},enumerable:!0,configurable:!0});var N=R;Object.defineProperty(q,"FileReadStream",{get:function(){return N},set:function(z){N=z},enumerable:!0,configurable:!0});var C=m;Object.defineProperty(q,"FileWriteStream",{get:function(){return C},set:function(z){C=z},enumerable:!0,configurable:!0});function R(z,Z){if(this instanceof R)return K.apply(this,arguments),this;else return R.apply(Object.create(R.prototype),arguments)}function h(){var z=this;Rq(z.path,z.flags,z.mode,function(Z,Y){if(Z){if(z.autoClose)z.destroy();z.emit("error",Z)}else z.fd=Y,z.emit("open",Y),z.read()})}function m(z,Z){if(this instanceof m)return P.apply(this,arguments),this;else return m.apply(Object.create(m.prototype),arguments)}function Jq(){var z=this;Rq(z.path,z.flags,z.mode,function(Z,Y){if(Z)z.destroy(),z.emit("error",Z);else z.fd=Y,z.emit("open",Y)})}function gq(z,Z){return new q.ReadStream(z,Z)}function bq(z,Z){return new q.WriteStream(z,Z)}var mE=q.open;q.open=Rq;function Rq(z,Z,Y,M){if(typeof Y==="function")M=Y,Y=null;return T(z,Z,Y,M);function T(I,w,D,H,k){return mE(I,w,D,function(x,VO){if(x&&(x.code==="EMFILE"||x.code==="ENFILE"))s([T,[I,w,D,H],x,k||Date.now(),Date.now()]);else if(typeof H==="function")H.apply(this,arguments)})}}return q}function s(q){e("ENQUEUE",q[0].name,q[1]),B[F].push(q),Dq()}var Xq;function dq(){var q=Date.now();for(var n=0;n<B[F].length;++n)if(B[F][n].length>2)B[F][n][3]=q,B[F][n][4]=q;Dq()}function Dq(){if(clearTimeout(Xq),Xq=void 0,B[F].length===0)return;var q=B[F].shift(),n=q[0],E=q[1],y=q[2],J=q[3],O=q[4];if(J===void 0)e("RETRY",n.name,E),n.apply(null,E);else if(Date.now()-J>=60000){e("TIMEOUT",n.name,E);var _=E.pop();if(typeof _==="function")_.call(null,y)}else{var U=Date.now()-O,j=Math.max(O-J,1),$=Math.min(j*1.2,100);if(U>=$)e("RETRY",n.name,E),n.apply(null,E.concat([J]));else B[F].push(q)}if(Xq===void 0)Xq=setTimeout(Dq,0)}});var g=X((uq)=>{var aq=u().fromCallback,S=qq(),eE=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter((q)=>{return typeof S[q]==="function"});Object.assign(uq,S);eE.forEach((q)=>{uq[q]=aq(S[q])});uq.exists=function(q,n){if(typeof n==="function")return S.exists(q,n);return new Promise((E)=>{return S.exists(q,E)})};uq.read=function(q,n,E,y,J,O){if(typeof O==="function")return S.read(q,n,E,y,J,O);return new Promise((_,U)=>{S.read(q,n,E,y,J,(j,$,V)=>{if(j)return U(j);_({bytesRead:$,buffer:V})})})};uq.write=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.write(q,n,...E);return new Promise((y,J)=>{S.write(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesWritten:_,buffer:U})})})};uq.readv=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.readv(q,n,...E);return new Promise((y,J)=>{S.readv(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesRead:_,buffers:U})})})};uq.writev=function(q,n,...E){if(typeof E[E.length-1]==="function")return S.writev(q,n,...E);return new Promise((y,J)=>{S.writev(q,n,...E,(O,_,U)=>{if(O)return J(O);y({bytesWritten:_,buffers:U})})})};if(typeof S.realpath.native==="function")uq.realpath.native=aq(S.realpath.native);else process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var tq=X((Jy,eq)=>{var yy=Q("node:path");Jy.checkPath=function q(n){if(process.platform==="win32"){if(/[<>:"|?*]/.test(n.replace(yy.parse(n).root,""))){let y=new Error(`Path contains invalid characters: ${n}`);throw y.code="EINVAL",y}}}});var En=X((_y,Qq)=>{var sq=g(),{checkPath:qn}=tq(),nn=(q)=>{let n={mode:511};if(typeof q==="number")return q;return{...n,...q}.mode};_y.makeDir=async(q,n)=>{return qn(q),sq.mkdir(q,{mode:nn(n),recursive:!0})};_y.makeDirSync=(q,n)=>{return qn(q),sq.mkdirSync(q,{mode:nn(n),recursive:!0})}});var l=X((XO,yn)=>{var Uy=u().fromPromise,{makeDir:zy,makeDirSync:Wq}=En(),Mq=Uy(zy);yn.exports={mkdirs:Mq,mkdirsSync:Wq,mkdirp:Mq,mkdirpSync:Wq,ensureDir:Mq,ensureDirSync:Wq}});var d=X((YO,On)=>{var Ly=u().fromPromise,Jn=g();function Py(q){return Jn.access(q).then(()=>!0).catch(()=>!1)}On.exports={pathExists:Ly(Py),pathExistsSync:Jn.existsSync}});var Tq=X((ZO,_n)=>{var nq=g(),Ay=u().fromPromise;async function Gy(q,n,E){let y=await nq.open(q,"r+"),J=null;try{await nq.futimes(y,n,E)}finally{try{await nq.close(y)}catch(O){J=O}}if(J)throw J}function Xy(q,n,E){let y=nq.openSync(q,"r+");return nq.futimesSync(y,n,E),nq.closeSync(y)}_n.exports={utimesMillis:Ay(Gy),utimesMillisSync:Xy}});var t=X((CO,zn)=>{var Eq=g(),W=Q("node:path"),Vn=u().fromPromise;function Yy(q,n,E){let y=E.dereference?(J)=>Eq.stat(J,{bigint:!0}):(J)=>Eq.lstat(J,{bigint:!0});return Promise.all([y(q),y(n).catch((J)=>{if(J.code==="ENOENT")return null;throw J})]).then(([J,O])=>({srcStat:J,destStat:O}))}function Zy(q,n,E){let y,J=E.dereference?(_)=>Eq.statSync(_,{bigint:!0}):(_)=>Eq.lstatSync(_,{bigint:!0}),O=J(q);try{y=J(n)}catch(_){if(_.code==="ENOENT")return{srcStat:O,destStat:null};throw _}return{srcStat:O,destStat:y}}async function Cy(q,n,E,y){let{srcStat:J,destStat:O}=await Yy(q,n,y);if(O){if(Oq(J,O)){let _=W.basename(q),U=W.basename(n);if(E==="move"&&_!==U&&_.toLowerCase()===U.toLowerCase())return{srcStat:J,destStat:O,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(J.isDirectory()&&!O.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${q}'.`);if(!J.isDirectory()&&O.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${q}'.`)}if(J.isDirectory()&&kq(q,n))throw new Error(Zq(q,n,E));return{srcStat:J,destStat:O}}function Hy(q,n,E,y){let{srcStat:J,destStat:O}=Zy(q,n,y);if(O){if(Oq(J,O)){let _=W.basename(q),U=W.basename(n);if(E==="move"&&_!==U&&_.toLowerCase()===U.toLowerCase())return{srcStat:J,destStat:O,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(J.isDirectory()&&!O.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${q}'.`);if(!J.isDirectory()&&O.isDirectory())throw new Error(`Cannot overwrite directory '${n}' with non-directory '${q}'.`)}if(J.isDirectory()&&kq(q,n))throw new Error(Zq(q,n,E));return{srcStat:J,destStat:O}}async function Kn(q,n,E,y){let J=W.resolve(W.dirname(q)),O=W.resolve(W.dirname(E));if(O===J||O===W.parse(O).root)return;let _;try{_=await Eq.stat(O,{bigint:!0})}catch(U){if(U.code==="ENOENT")return;throw U}if(Oq(n,_))throw new Error(Zq(q,E,y));return Kn(q,n,O,y)}function Un(q,n,E,y){let J=W.resolve(W.dirname(q)),O=W.resolve(W.dirname(E));if(O===J||O===W.parse(O).root)return;let _;try{_=Eq.statSync(O,{bigint:!0})}catch(U){if(U.code==="ENOENT")return;throw U}if(Oq(n,_))throw new Error(Zq(q,E,y));return Un(q,n,O,y)}function Oq(q,n){return n.ino&&n.dev&&n.ino===q.ino&&n.dev===q.dev}function kq(q,n){let E=W.resolve(q).split(W.sep).filter((J)=>J),y=W.resolve(n).split(W.sep).filter((J)=>J);return E.every((J,O)=>y[O]===J)}function Zq(q,n,E){return`Cannot ${E} '${q}' to a subdirectory of itself, '${n}'.`}zn.exports={checkPaths:Vn(Cy),checkPathsSync:Hy,checkParentPaths:Vn(Kn),checkParentPathsSync:Un,isSrcSubdir:kq,areIdentical:Oq}});var Xn=X((HO,Gn)=>{var v=g(),_q=Q("node:path"),{mkdirs:Ny}=l(),{pathExists:xy}=d(),{utimesMillis:jy}=Tq(),Vq=t();async function Ry(q,n,E={}){if(typeof E==="function")E={filter:E};if(E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
4
4
 
5
5
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:y,destStat:J}=await Vq.checkPaths(q,n,"copy",E);if(await Vq.checkParentPaths(q,y,n,"copy"),!await Pn(q,n,E))return;let _=_q.dirname(n);if(!await xy(_))await Ny(_);await An(J,q,n,E)}async function Pn(q,n,E){if(!E.filter)return!0;return E.filter(q,n)}async function An(q,n,E,y){let O=await(y.dereference?v.stat:v.lstat)(n);if(O.isDirectory())return Iy(O,q,n,E,y);if(O.isFile()||O.isCharacterDevice()||O.isBlockDevice())return wy(O,q,n,E,y);if(O.isSymbolicLink())return uy(q,n,E,y);if(O.isSocket())throw new Error(`Cannot copy a socket file: ${n}`);if(O.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${n}`);throw new Error(`Unknown file: ${n}`)}async function wy(q,n,E,y,J){if(!n)return Ln(q,E,y,J);if(J.overwrite)return await v.unlink(y),Ln(q,E,y,J);if(J.errorOnExist)throw new Error(`'${y}' already exists`)}async function Ln(q,n,E,y){if(await v.copyFile(n,E),y.preserveTimestamps){if(By(q.mode))await Dy(E,q.mode);let J=await v.stat(n);await jy(E,J.atime,J.mtime)}return v.chmod(E,q.mode)}function By(q){return(q&128)===0}function Dy(q,n){return v.chmod(q,n|128)}async function Iy(q,n,E,y,J){if(!n)await v.mkdir(y);let O=[];for await(let _ of await v.opendir(E)){let U=_q.join(E,_.name),j=_q.join(y,_.name);O.push(Pn(U,j,J).then(($)=>{if($)return Vq.checkPaths(U,j,"copy",J).then(({destStat:V})=>{return An(V,U,j,J)})}))}if(await Promise.all(O),!n)await v.chmod(y,q.mode)}async function uy(q,n,E,y){let J=await v.readlink(n);if(y.dereference)J=_q.resolve(process.cwd(),J);if(!q)return v.symlink(J,E);let O=null;try{O=await v.readlink(E)}catch(_){if(_.code==="EINVAL"||_.code==="UNKNOWN")return v.symlink(J,E);throw _}if(y.dereference)O=_q.resolve(process.cwd(),O);if(Vq.isSrcSubdir(J,O))throw new Error(`Cannot copy '${J}' to a subdirectory of itself, '${O}'.`);if(Vq.isSrcSubdir(O,J))throw new Error(`Cannot overwrite '${O}' with '${J}'.`);return await v.unlink(E),v.symlink(J,E)}Gn.exports=Ry});var Nn=X((NO,Hn)=>{var b=qq(),Kq=Q("node:path"),Qy=l().mkdirsSync,Wy=Tq().utimesMillisSync,Uq=t();function My(q,n,E){if(typeof E==="function")E={filter:E};if(E=E||{},E.clobber="clobber"in E?!!E.clobber:!0,E.overwrite="overwrite"in E?!!E.overwrite:E.clobber,E.preserveTimestamps&&process.arch==="ia32")process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Bc as E,Hc as v}from"./chunk-29rpwqgr.js";import"./chunk-qwdsyzdj.js";import{Pc as O}from"./chunk-hjdz5p2e.js";import{Qc as $}from"./chunk-cptthhq1.js";import{Rc as k,Wc as C}from"./chunk-2pj0cr49.js";var u=k($(),1);var q=k(O(),1),z=k($(),1);var U=k(O(),1),j=k($(),1),V=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-90stqnfr.js"),{fromContainerMetadata:A}=await import("./chunk-fk8jrqrt.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>j.chain(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-fk8jrqrt.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-68apz1e2.js");return async()=>x(b)().then(R)}};if(y in I)return I[y];else throw new j.CredentialsProviderError(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},R=(y)=>U.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var X=(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&&(d(y,{profile:w,logger:_})||n(y,{profile:w,logger:_}))},d=(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},Y=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-7v1e78ya.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:{..._?.parentClientConfig,region:A??_?.parentClientConfig?.region}},_.clientPlugins)}if(x&&x in I)throw new z.CredentialsProviderError(`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 T=x?L(x,w,_,{...I,[x]:!0},W(w[x]??{})):(await V(b.credential_source,y,_.logger)(_))();if(W(b))return T.then((K)=>q.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 z.CredentialsProviderError(`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 P=await T;return _.roleAssumer(P,K).then((N)=>q.setCredentialFeature(N,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},W=(y)=>{return!y.role_arn&&!!y.credential_source};var Z=k(O(),1),H=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",c=async(y,w)=>import("./chunk-dmewpnnj.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>Z.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var G=k(O(),1),S=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-tndmgyk5.js");return I({profile:y,logger:_.logger,parentClientConfig:_.parentClientConfig,clientConfig:_.clientConfig})().then((b)=>{if(w.sso_session)return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},F=(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 M=k(O(),1),J=(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,Q=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 M.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var h=k(O(),1),D=(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,m=async(y,w)=>import("./chunk-88nz529r.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)=>h.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&&J(x))return Q(x,_);if(b||X(x,{profile:y,logger:_.logger}))return Y(y,w,_,I);if(J(x))return Q(x,_);if(D(x))return m(x,_);if(H(x))return c(_,y);if(F(x))return await S(y,x,_);throw new u.CredentialsProviderError(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var ky=(y={})=>async({callerClientConfig:w}={})=>{let _={...y,parentClientConfig:{...w,...y.parentClientConfig}};_.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let I=await v(_);return L(E({profile:y.profile??w?.profile}),I,_)};export{ky as fromIni};
2
+ import{Ic as E,Oc as v}from"./chunk-sk9vc7y5.js";import"./chunk-xc6fz0pt.js";import{Tc as O}from"./chunk-8kjkww7q.js";import{Uc as $}from"./chunk-3zqgxrhy.js";import{Vc as k,_c as C}from"./chunk-ksjzw2hp.js";var u=k($(),1);var q=k(O(),1),z=k($(),1);var U=k(O(),1),j=k($(),1),V=(y,w,_)=>{let I={EcsContainer:async(b)=>{let{fromHttp:x}=await import("./chunk-1nq7pv3c.js"),{fromContainerMetadata:A}=await import("./chunk-t2wb516a.js");return _?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>j.chain(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-t2wb516a.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-4k60zpwd.js");return async()=>x(b)().then(R)}};if(y in I)return I[y];else throw new j.CredentialsProviderError(`Unsupported credential source in profile ${w}. Got ${y}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:_})},R=(y)=>U.setCredentialFeature(y,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p");var X=(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&&(d(y,{profile:w,logger:_})||n(y,{profile:w,logger:_}))},d=(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},Y=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-8d01gfhw.js");_.roleAssumer=K({..._.clientConfig,credentialProviderLogger:_.logger,parentClientConfig:{..._?.parentClientConfig,region:A??_?.parentClientConfig?.region}},_.clientPlugins)}if(x&&x in I)throw new z.CredentialsProviderError(`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 T=x?L(x,w,_,{...I,[x]:!0},W(w[x]??{})):(await V(b.credential_source,y,_.logger)(_))();if(W(b))return T.then((K)=>q.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 z.CredentialsProviderError(`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 P=await T;return _.roleAssumer(P,K).then((N)=>q.setCredentialFeature(N,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},W=(y)=>{return!y.role_arn&&!!y.credential_source};var Z=k(O(),1),H=(y)=>Boolean(y)&&typeof y==="object"&&typeof y.credential_process==="string",c=async(y,w)=>import("./chunk-mk0bde63.js").then(({fromProcess:_})=>_({...y,profile:w})().then((I)=>Z.setCredentialFeature(I,"CREDENTIALS_PROFILE_PROCESS","v")));var G=k(O(),1),S=async(y,w,_={})=>{let{fromSSO:I}=await import("./chunk-rdgds02z.js");return I({profile:y,logger:_.logger,parentClientConfig:_.parentClientConfig,clientConfig:_.clientConfig})().then((b)=>{if(w.sso_session)return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO","r");else return G.setCredentialFeature(b,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},F=(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 M=k(O(),1),J=(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,Q=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 M.setCredentialFeature(_,"CREDENTIALS_PROFILE","n")};var h=k(O(),1),D=(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,m=async(y,w)=>import("./chunk-7pg49t20.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)=>h.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&&J(x))return Q(x,_);if(b||X(x,{profile:y,logger:_.logger}))return Y(y,w,_,I);if(J(x))return Q(x,_);if(D(x))return m(x,_);if(H(x))return c(_,y);if(F(x))return await S(y,x,_);throw new u.CredentialsProviderError(`Could not resolve credentials using profile: [${y}] in configuration/credentials file(s).`,{logger:_.logger})};var ky=(y={})=>async({callerClientConfig:w}={})=>{let _={...y,parentClientConfig:{...w,...y.parentClientConfig}};_.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let I=await v(_);return L(E({profile:y.profile??w?.profile}),I,_)};export{ky as fromIni};