@settlemint/sdk-cli 1.1.3-pr8e572b89 → 1.1.3-prae38e267

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 (3) hide show
  1. package/dist/cli.js +695 -241
  2. package/dist/cli.js.map +17 -3
  3. package/package.json +6 -6
package/dist/cli.js CHANGED
@@ -241158,8 +241158,8 @@ var require_mkdir = __commonJS((exports, module) => {
241158
241158
  return "CwdError";
241159
241159
  }
241160
241160
  }
241161
- var cGet = (cache, key2) => cache.get(normPath(key2));
241162
- var cSet = (cache, key2, val) => cache.set(normPath(key2), val);
241161
+ var cGet = (cache, key3) => cache.get(normPath(key3));
241162
+ var cSet = (cache, key3, val) => cache.set(normPath(key3), val);
241163
241163
  var checkCwd = (dir, cb) => {
241164
241164
  fs3.stat(dir, (er2, st2) => {
241165
241165
  if (er2 || !st2.isDirectory()) {
@@ -241530,8 +241530,8 @@ var require_unpack = __commonJS((exports, module) => {
241530
241530
  }
241531
241531
  };
241532
241532
  var dropCache = (cache) => {
241533
- for (const key2 of cache.keys()) {
241534
- cache.delete(key2);
241533
+ for (const key3 of cache.keys()) {
241534
+ cache.delete(key3);
241535
241535
  }
241536
241536
  };
241537
241537
 
@@ -246328,8 +246328,8 @@ var require_lib13 = __commonJS((exports, module) => {
246328
246328
  function fetch2(input, options) {
246329
246329
  return nodeFetch.fetch(input, options);
246330
246330
  }
246331
- for (const key2 in nodeFetch) {
246332
- fetch2[key2] = nodeFetch[key2];
246331
+ for (const key3 in nodeFetch) {
246332
+ fetch2[key3] = nodeFetch[key3];
246333
246333
  }
246334
246334
  module.exports = fetch2;
246335
246335
  });
@@ -246422,11 +246422,11 @@ var require_proxy = __commonJS((exports) => {
246422
246422
  return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
246423
246423
  }
246424
246424
  e10(requireSymbols$4, "requireSymbols$4");
246425
- var errors2;
246425
+ var errors3;
246426
246426
  var hasRequiredErrors;
246427
246427
  function requireErrors() {
246428
246428
  if (hasRequiredErrors)
246429
- return errors2;
246429
+ return errors3;
246430
246430
  hasRequiredErrors = 1;
246431
246431
 
246432
246432
  class A5 extends Error {
@@ -246635,7 +246635,7 @@ var require_proxy = __commonJS((exports) => {
246635
246635
  super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
246636
246636
  }
246637
246637
  }
246638
- return errors2 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors2;
246638
+ return errors3 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f6, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g6, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors3;
246639
246639
  }
246640
246640
  e10(requireErrors, "requireErrors");
246641
246641
  var constants$4;
@@ -256608,11 +256608,11 @@ var require_visit = __commonJS((exports) => {
256608
256608
  visit2.BREAK = BREAK;
256609
256609
  visit2.SKIP = SKIP;
256610
256610
  visit2.REMOVE = REMOVE;
256611
- function visit_(key2, node, visitor, path5) {
256612
- const ctrl = callVisitor(key2, node, visitor, path5);
256611
+ function visit_(key3, node, visitor, path5) {
256612
+ const ctrl = callVisitor(key3, node, visitor, path5);
256613
256613
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256614
- replaceNode(key2, path5, ctrl);
256615
- return visit_(key2, ctrl, visitor, path5);
256614
+ replaceNode(key3, path5, ctrl);
256615
+ return visit_(key3, ctrl, visitor, path5);
256616
256616
  }
256617
256617
  if (typeof ctrl !== "symbol") {
256618
256618
  if (identity2.isCollection(node)) {
@@ -256656,11 +256656,11 @@ var require_visit = __commonJS((exports) => {
256656
256656
  visitAsync.BREAK = BREAK;
256657
256657
  visitAsync.SKIP = SKIP;
256658
256658
  visitAsync.REMOVE = REMOVE;
256659
- async function visitAsync_(key2, node, visitor, path5) {
256660
- const ctrl = await callVisitor(key2, node, visitor, path5);
256659
+ async function visitAsync_(key3, node, visitor, path5) {
256660
+ const ctrl = await callVisitor(key3, node, visitor, path5);
256661
256661
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
256662
- replaceNode(key2, path5, ctrl);
256663
- return visitAsync_(key2, ctrl, visitor, path5);
256662
+ replaceNode(key3, path5, ctrl);
256663
+ return visitAsync_(key3, ctrl, visitor, path5);
256664
256664
  }
256665
256665
  if (typeof ctrl !== "symbol") {
256666
256666
  if (identity2.isCollection(node)) {
@@ -256710,27 +256710,27 @@ var require_visit = __commonJS((exports) => {
256710
256710
  }
256711
256711
  return visitor;
256712
256712
  }
256713
- function callVisitor(key2, node, visitor, path5) {
256713
+ function callVisitor(key3, node, visitor, path5) {
256714
256714
  if (typeof visitor === "function")
256715
- return visitor(key2, node, path5);
256715
+ return visitor(key3, node, path5);
256716
256716
  if (identity2.isMap(node))
256717
- return visitor.Map?.(key2, node, path5);
256717
+ return visitor.Map?.(key3, node, path5);
256718
256718
  if (identity2.isSeq(node))
256719
- return visitor.Seq?.(key2, node, path5);
256719
+ return visitor.Seq?.(key3, node, path5);
256720
256720
  if (identity2.isPair(node))
256721
- return visitor.Pair?.(key2, node, path5);
256721
+ return visitor.Pair?.(key3, node, path5);
256722
256722
  if (identity2.isScalar(node))
256723
- return visitor.Scalar?.(key2, node, path5);
256723
+ return visitor.Scalar?.(key3, node, path5);
256724
256724
  if (identity2.isAlias(node))
256725
- return visitor.Alias?.(key2, node, path5);
256725
+ return visitor.Alias?.(key3, node, path5);
256726
256726
  return;
256727
256727
  }
256728
- function replaceNode(key2, path5, node) {
256728
+ function replaceNode(key3, path5, node) {
256729
256729
  const parent = path5[path5.length - 1];
256730
256730
  if (identity2.isCollection(parent)) {
256731
- parent.items[key2] = node;
256731
+ parent.items[key3] = node;
256732
256732
  } else if (identity2.isPair(parent)) {
256733
- if (key2 === "key")
256733
+ if (key3 === "key")
256734
256734
  parent.key = node;
256735
256735
  else
256736
256736
  parent.value = node;
@@ -256962,7 +256962,7 @@ var require_anchors = __commonJS((exports) => {
256962
256962
 
256963
256963
  // ../../node_modules/yaml/dist/doc/applyReviver.js
256964
256964
  var require_applyReviver = __commonJS((exports) => {
256965
- function applyReviver(reviver, obj, key2, val) {
256965
+ function applyReviver(reviver, obj, key3, val) {
256966
256966
  if (val && typeof val === "object") {
256967
256967
  if (Array.isArray(val)) {
256968
256968
  for (let i6 = 0, len = val.length;i6 < len; ++i6) {
@@ -257002,7 +257002,7 @@ var require_applyReviver = __commonJS((exports) => {
257002
257002
  }
257003
257003
  }
257004
257004
  }
257005
- return reviver.call(obj, key2, val);
257005
+ return reviver.call(obj, key3, val);
257006
257006
  }
257007
257007
  exports.applyReviver = applyReviver;
257008
257008
  });
@@ -257320,29 +257320,29 @@ var require_Collection = __commonJS((exports) => {
257320
257320
  if (isEmptyPath(path5))
257321
257321
  this.add(value4);
257322
257322
  else {
257323
- const [key2, ...rest] = path5;
257324
- const node = this.get(key2, true);
257323
+ const [key3, ...rest] = path5;
257324
+ const node = this.get(key3, true);
257325
257325
  if (identity2.isCollection(node))
257326
257326
  node.addIn(rest, value4);
257327
257327
  else if (node === undefined && this.schema)
257328
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257328
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
257329
257329
  else
257330
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257330
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257331
257331
  }
257332
257332
  }
257333
257333
  deleteIn(path5) {
257334
- const [key2, ...rest] = path5;
257334
+ const [key3, ...rest] = path5;
257335
257335
  if (rest.length === 0)
257336
- return this.delete(key2);
257337
- const node = this.get(key2, true);
257336
+ return this.delete(key3);
257337
+ const node = this.get(key3, true);
257338
257338
  if (identity2.isCollection(node))
257339
257339
  return node.deleteIn(rest);
257340
257340
  else
257341
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257341
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257342
257342
  }
257343
257343
  getIn(path5, keepScalar) {
257344
- const [key2, ...rest] = path5;
257345
- const node = this.get(key2, true);
257344
+ const [key3, ...rest] = path5;
257345
+ const node = this.get(key3, true);
257346
257346
  if (rest.length === 0)
257347
257347
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
257348
257348
  else
@@ -257357,24 +257357,24 @@ var require_Collection = __commonJS((exports) => {
257357
257357
  });
257358
257358
  }
257359
257359
  hasIn(path5) {
257360
- const [key2, ...rest] = path5;
257360
+ const [key3, ...rest] = path5;
257361
257361
  if (rest.length === 0)
257362
- return this.has(key2);
257363
- const node = this.get(key2, true);
257362
+ return this.has(key3);
257363
+ const node = this.get(key3, true);
257364
257364
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
257365
257365
  }
257366
257366
  setIn(path5, value4) {
257367
- const [key2, ...rest] = path5;
257367
+ const [key3, ...rest] = path5;
257368
257368
  if (rest.length === 0) {
257369
- this.set(key2, value4);
257369
+ this.set(key3, value4);
257370
257370
  } else {
257371
- const node = this.get(key2, true);
257371
+ const node = this.get(key3, true);
257372
257372
  if (identity2.isCollection(node))
257373
257373
  node.setIn(rest, value4);
257374
257374
  else if (node === undefined && this.schema)
257375
- this.set(key2, collectionFromPath(this.schema, rest, value4));
257375
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
257376
257376
  else
257377
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
257377
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
257378
257378
  }
257379
257379
  }
257380
257380
  }
@@ -257962,19 +257962,19 @@ var require_stringifyPair = __commonJS((exports) => {
257962
257962
  var Scalar = require_Scalar();
257963
257963
  var stringify3 = require_stringify();
257964
257964
  var stringifyComment = require_stringifyComment();
257965
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
257965
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
257966
257966
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
257967
- let keyComment = identity2.isNode(key2) && key2.comment || null;
257967
+ let keyComment = identity2.isNode(key3) && key3.comment || null;
257968
257968
  if (simpleKeys) {
257969
257969
  if (keyComment) {
257970
257970
  throw new Error("With simple keys, key nodes cannot have comments");
257971
257971
  }
257972
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
257972
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
257973
257973
  const msg = "With simple keys, collection cannot be used as a key value";
257974
257974
  throw new Error(msg);
257975
257975
  }
257976
257976
  }
257977
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
257977
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
257978
257978
  ctx = Object.assign({}, ctx, {
257979
257979
  allNullValues: false,
257980
257980
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -257982,7 +257982,7 @@ var require_stringifyPair = __commonJS((exports) => {
257982
257982
  });
257983
257983
  let keyCommentDone = false;
257984
257984
  let chompKeep = false;
257985
- let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
257985
+ let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
257986
257986
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
257987
257987
  if (simpleKeys)
257988
257988
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -258126,7 +258126,7 @@ var require_merge = __commonJS((exports) => {
258126
258126
  }),
258127
258127
  stringify: () => MERGE_KEY
258128
258128
  };
258129
- var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
258129
+ var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
258130
258130
  function addMergeToJSMap(ctx, map3, value4) {
258131
258131
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
258132
258132
  if (identity2.isSeq(value4))
@@ -258143,14 +258143,14 @@ var require_merge = __commonJS((exports) => {
258143
258143
  if (!identity2.isMap(source))
258144
258144
  throw new Error("Merge sources must be maps or map aliases");
258145
258145
  const srcMap = source.toJSON(null, ctx, Map);
258146
- for (const [key2, value5] of srcMap) {
258146
+ for (const [key3, value5] of srcMap) {
258147
258147
  if (map3 instanceof Map) {
258148
- if (!map3.has(key2))
258149
- map3.set(key2, value5);
258148
+ if (!map3.has(key3))
258149
+ map3.set(key3, value5);
258150
258150
  } else if (map3 instanceof Set) {
258151
- map3.add(key2);
258152
- } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
258153
- Object.defineProperty(map3, key2, {
258151
+ map3.add(key3);
258152
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
258153
+ Object.defineProperty(map3, key3, {
258154
258154
  value: value5,
258155
258155
  writable: true,
258156
258156
  enumerable: true,
@@ -258172,19 +258172,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258172
258172
  var stringify3 = require_stringify();
258173
258173
  var identity2 = require_identity();
258174
258174
  var toJS = require_toJS();
258175
- function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
258176
- if (identity2.isNode(key2) && key2.addToJSMap)
258177
- key2.addToJSMap(ctx, map3, value4);
258178
- else if (merge3.isMergeKey(ctx, key2))
258175
+ function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
258176
+ if (identity2.isNode(key3) && key3.addToJSMap)
258177
+ key3.addToJSMap(ctx, map3, value4);
258178
+ else if (merge3.isMergeKey(ctx, key3))
258179
258179
  merge3.addMergeToJSMap(ctx, map3, value4);
258180
258180
  else {
258181
- const jsKey = toJS.toJS(key2, "", ctx);
258181
+ const jsKey = toJS.toJS(key3, "", ctx);
258182
258182
  if (map3 instanceof Map) {
258183
258183
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
258184
258184
  } else if (map3 instanceof Set) {
258185
258185
  map3.add(jsKey);
258186
258186
  } else {
258187
- const stringKey = stringifyKey(key2, jsKey, ctx);
258187
+ const stringKey = stringifyKey(key3, jsKey, ctx);
258188
258188
  const jsValue = toJS.toJS(value4, stringKey, ctx);
258189
258189
  if (stringKey in map3)
258190
258190
  Object.defineProperty(map3, stringKey, {
@@ -258199,19 +258199,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
258199
258199
  }
258200
258200
  return map3;
258201
258201
  }
258202
- function stringifyKey(key2, jsKey, ctx) {
258202
+ function stringifyKey(key3, jsKey, ctx) {
258203
258203
  if (jsKey === null)
258204
258204
  return "";
258205
258205
  if (typeof jsKey !== "object")
258206
258206
  return String(jsKey);
258207
- if (identity2.isNode(key2) && ctx?.doc) {
258207
+ if (identity2.isNode(key3) && ctx?.doc) {
258208
258208
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
258209
258209
  strCtx.anchors = new Set;
258210
258210
  for (const node of ctx.anchors.keys())
258211
258211
  strCtx.anchors.add(node.anchor);
258212
258212
  strCtx.inFlow = true;
258213
258213
  strCtx.inStringifyKey = true;
258214
- const strKey = key2.toString(strCtx);
258214
+ const strKey = key3.toString(strCtx);
258215
258215
  if (!ctx.mapKeyWarned) {
258216
258216
  let jsonStr = JSON.stringify(strKey);
258217
258217
  if (jsonStr.length > 40)
@@ -258232,25 +258232,25 @@ var require_Pair = __commonJS((exports) => {
258232
258232
  var stringifyPair2 = require_stringifyPair();
258233
258233
  var addPairToJSMap = require_addPairToJSMap();
258234
258234
  var identity2 = require_identity();
258235
- function createPair(key2, value4, ctx) {
258236
- const k5 = createNode.createNode(key2, undefined, ctx);
258235
+ function createPair(key3, value4, ctx) {
258236
+ const k5 = createNode.createNode(key3, undefined, ctx);
258237
258237
  const v7 = createNode.createNode(value4, undefined, ctx);
258238
258238
  return new Pair(k5, v7);
258239
258239
  }
258240
258240
 
258241
258241
  class Pair {
258242
- constructor(key2, value4 = null) {
258242
+ constructor(key3, value4 = null) {
258243
258243
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
258244
- this.key = key2;
258244
+ this.key = key3;
258245
258245
  this.value = value4;
258246
258246
  }
258247
258247
  clone(schema) {
258248
- let { key: key2, value: value4 } = this;
258249
- if (identity2.isNode(key2))
258250
- key2 = key2.clone(schema);
258248
+ let { key: key3, value: value4 } = this;
258249
+ if (identity2.isNode(key3))
258250
+ key3 = key3.clone(schema);
258251
258251
  if (identity2.isNode(value4))
258252
258252
  value4 = value4.clone(schema);
258253
- return new Pair(key2, value4);
258253
+ return new Pair(key3, value4);
258254
258254
  }
258255
258255
  toJSON(_5, ctx) {
258256
258256
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -258417,11 +258417,11 @@ var require_YAMLMap = __commonJS((exports) => {
258417
258417
  var identity2 = require_identity();
258418
258418
  var Pair = require_Pair();
258419
258419
  var Scalar = require_Scalar();
258420
- function findPair(items, key2) {
258421
- const k5 = identity2.isScalar(key2) ? key2.value : key2;
258420
+ function findPair(items, key3) {
258421
+ const k5 = identity2.isScalar(key3) ? key3.value : key3;
258422
258422
  for (const it2 of items) {
258423
258423
  if (identity2.isPair(it2)) {
258424
- if (it2.key === key2 || it2.key === k5)
258424
+ if (it2.key === key3 || it2.key === k5)
258425
258425
  return it2;
258426
258426
  if (identity2.isScalar(it2.key) && it2.key.value === k5)
258427
258427
  return it2;
@@ -258441,20 +258441,20 @@ var require_YAMLMap = __commonJS((exports) => {
258441
258441
  static from(schema, obj, ctx) {
258442
258442
  const { keepUndefined, replacer } = ctx;
258443
258443
  const map3 = new this(schema);
258444
- const add = (key2, value4) => {
258444
+ const add = (key3, value4) => {
258445
258445
  if (typeof replacer === "function")
258446
- value4 = replacer.call(obj, key2, value4);
258447
- else if (Array.isArray(replacer) && !replacer.includes(key2))
258446
+ value4 = replacer.call(obj, key3, value4);
258447
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
258448
258448
  return;
258449
258449
  if (value4 !== undefined || keepUndefined)
258450
- map3.items.push(Pair.createPair(key2, value4, ctx));
258450
+ map3.items.push(Pair.createPair(key3, value4, ctx));
258451
258451
  };
258452
258452
  if (obj instanceof Map) {
258453
- for (const [key2, value4] of obj)
258454
- add(key2, value4);
258453
+ for (const [key3, value4] of obj)
258454
+ add(key3, value4);
258455
258455
  } else if (obj && typeof obj === "object") {
258456
- for (const key2 of Object.keys(obj))
258457
- add(key2, obj[key2]);
258456
+ for (const key3 of Object.keys(obj))
258457
+ add(key3, obj[key3]);
258458
258458
  }
258459
258459
  if (typeof schema.sortMapEntries === "function") {
258460
258460
  map3.items.sort(schema.sortMapEntries);
@@ -258488,23 +258488,23 @@ var require_YAMLMap = __commonJS((exports) => {
258488
258488
  this.items.push(_pair);
258489
258489
  }
258490
258490
  }
258491
- delete(key2) {
258492
- const it2 = findPair(this.items, key2);
258491
+ delete(key3) {
258492
+ const it2 = findPair(this.items, key3);
258493
258493
  if (!it2)
258494
258494
  return false;
258495
258495
  const del = this.items.splice(this.items.indexOf(it2), 1);
258496
258496
  return del.length > 0;
258497
258497
  }
258498
- get(key2, keepScalar) {
258499
- const it2 = findPair(this.items, key2);
258498
+ get(key3, keepScalar) {
258499
+ const it2 = findPair(this.items, key3);
258500
258500
  const node = it2?.value;
258501
258501
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
258502
258502
  }
258503
- has(key2) {
258504
- return !!findPair(this.items, key2);
258503
+ has(key3) {
258504
+ return !!findPair(this.items, key3);
258505
258505
  }
258506
- set(key2, value4) {
258507
- this.add(new Pair.Pair(key2, value4), true);
258506
+ set(key3, value4) {
258507
+ this.add(new Pair.Pair(key3, value4), true);
258508
258508
  }
258509
258509
  toJSON(_5, ctx, Type) {
258510
258510
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -258575,28 +258575,28 @@ var require_YAMLSeq = __commonJS((exports) => {
258575
258575
  add(value4) {
258576
258576
  this.items.push(value4);
258577
258577
  }
258578
- delete(key2) {
258579
- const idx = asItemIndex(key2);
258578
+ delete(key3) {
258579
+ const idx = asItemIndex(key3);
258580
258580
  if (typeof idx !== "number")
258581
258581
  return false;
258582
258582
  const del = this.items.splice(idx, 1);
258583
258583
  return del.length > 0;
258584
258584
  }
258585
- get(key2, keepScalar) {
258586
- const idx = asItemIndex(key2);
258585
+ get(key3, keepScalar) {
258586
+ const idx = asItemIndex(key3);
258587
258587
  if (typeof idx !== "number")
258588
258588
  return;
258589
258589
  const it2 = this.items[idx];
258590
258590
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
258591
258591
  }
258592
- has(key2) {
258593
- const idx = asItemIndex(key2);
258592
+ has(key3) {
258593
+ const idx = asItemIndex(key3);
258594
258594
  return typeof idx === "number" && idx < this.items.length;
258595
258595
  }
258596
- set(key2, value4) {
258597
- const idx = asItemIndex(key2);
258596
+ set(key3, value4) {
258597
+ const idx = asItemIndex(key3);
258598
258598
  if (typeof idx !== "number")
258599
- throw new Error(`Expected a valid index, not ${key2}.`);
258599
+ throw new Error(`Expected a valid index, not ${key3}.`);
258600
258600
  const prev = this.items[idx];
258601
258601
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
258602
258602
  prev.value = value4;
@@ -258630,8 +258630,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258630
258630
  let i6 = 0;
258631
258631
  for (let it2 of obj) {
258632
258632
  if (typeof replacer === "function") {
258633
- const key2 = obj instanceof Set ? it2 : String(i6++);
258634
- it2 = replacer.call(obj, key2, it2);
258633
+ const key3 = obj instanceof Set ? it2 : String(i6++);
258634
+ it2 = replacer.call(obj, key3, it2);
258635
258635
  }
258636
258636
  seq.items.push(createNode.createNode(it2, undefined, ctx));
258637
258637
  }
@@ -258639,8 +258639,8 @@ var require_YAMLSeq = __commonJS((exports) => {
258639
258639
  return seq;
258640
258640
  }
258641
258641
  }
258642
- function asItemIndex(key2) {
258643
- let idx = identity2.isScalar(key2) ? key2.value : key2;
258642
+ function asItemIndex(key3) {
258643
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
258644
258644
  if (idx && typeof idx === "string")
258645
258645
  idx = Number(idx);
258646
258646
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -259012,25 +259012,25 @@ ${cn.comment}` : item.comment;
259012
259012
  for (let it2 of iterable) {
259013
259013
  if (typeof replacer === "function")
259014
259014
  it2 = replacer.call(iterable, String(i6++), it2);
259015
- let key2, value4;
259015
+ let key3, value4;
259016
259016
  if (Array.isArray(it2)) {
259017
259017
  if (it2.length === 2) {
259018
- key2 = it2[0];
259018
+ key3 = it2[0];
259019
259019
  value4 = it2[1];
259020
259020
  } else
259021
259021
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
259022
259022
  } else if (it2 && it2 instanceof Object) {
259023
259023
  const keys = Object.keys(it2);
259024
259024
  if (keys.length === 1) {
259025
- key2 = keys[0];
259026
- value4 = it2[key2];
259025
+ key3 = keys[0];
259026
+ value4 = it2[key3];
259027
259027
  } else {
259028
259028
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
259029
259029
  }
259030
259030
  } else {
259031
- key2 = it2;
259031
+ key3 = it2;
259032
259032
  }
259033
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
259033
+ pairs2.items.push(Pair.createPair(key3, value4, ctx));
259034
259034
  }
259035
259035
  return pairs2;
259036
259036
  }
@@ -259071,16 +259071,16 @@ var require_omap = __commonJS((exports) => {
259071
259071
  if (ctx?.onCreate)
259072
259072
  ctx.onCreate(map3);
259073
259073
  for (const pair of this.items) {
259074
- let key2, value4;
259074
+ let key3, value4;
259075
259075
  if (identity2.isPair(pair)) {
259076
- key2 = toJS.toJS(pair.key, "", ctx);
259077
- value4 = toJS.toJS(pair.value, key2, ctx);
259076
+ key3 = toJS.toJS(pair.key, "", ctx);
259077
+ value4 = toJS.toJS(pair.value, key3, ctx);
259078
259078
  } else {
259079
- key2 = toJS.toJS(pair, "", ctx);
259079
+ key3 = toJS.toJS(pair, "", ctx);
259080
259080
  }
259081
- if (map3.has(key2))
259081
+ if (map3.has(key3))
259082
259082
  throw new Error("Ordered maps must not include duplicate keys");
259083
- map3.set(key2, value4);
259083
+ map3.set(key3, value4);
259084
259084
  }
259085
259085
  return map3;
259086
259086
  }
@@ -259101,12 +259101,12 @@ var require_omap = __commonJS((exports) => {
259101
259101
  resolve(seq, onError) {
259102
259102
  const pairs$1 = pairs.resolvePairs(seq, onError);
259103
259103
  const seenKeys = [];
259104
- for (const { key: key2 } of pairs$1.items) {
259105
- if (identity2.isScalar(key2)) {
259106
- if (seenKeys.includes(key2.value)) {
259107
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
259104
+ for (const { key: key3 } of pairs$1.items) {
259105
+ if (identity2.isScalar(key3)) {
259106
+ if (seenKeys.includes(key3.value)) {
259107
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
259108
259108
  } else {
259109
- seenKeys.push(key2.value);
259109
+ seenKeys.push(key3.value);
259110
259110
  }
259111
259111
  }
259112
259112
  }
@@ -259280,30 +259280,30 @@ var require_set = __commonJS((exports) => {
259280
259280
  super(schema);
259281
259281
  this.tag = YAMLSet.tag;
259282
259282
  }
259283
- add(key2) {
259283
+ add(key3) {
259284
259284
  let pair;
259285
- if (identity2.isPair(key2))
259286
- pair = key2;
259287
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
259288
- pair = new Pair.Pair(key2.key, null);
259285
+ if (identity2.isPair(key3))
259286
+ pair = key3;
259287
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
259288
+ pair = new Pair.Pair(key3.key, null);
259289
259289
  else
259290
- pair = new Pair.Pair(key2, null);
259290
+ pair = new Pair.Pair(key3, null);
259291
259291
  const prev = YAMLMap.findPair(this.items, pair.key);
259292
259292
  if (!prev)
259293
259293
  this.items.push(pair);
259294
259294
  }
259295
- get(key2, keepPair) {
259296
- const pair = YAMLMap.findPair(this.items, key2);
259295
+ get(key3, keepPair) {
259296
+ const pair = YAMLMap.findPair(this.items, key3);
259297
259297
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
259298
259298
  }
259299
- set(key2, value4) {
259299
+ set(key3, value4) {
259300
259300
  if (typeof value4 !== "boolean")
259301
259301
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
259302
- const prev = YAMLMap.findPair(this.items, key2);
259302
+ const prev = YAMLMap.findPair(this.items, key3);
259303
259303
  if (prev && !value4) {
259304
259304
  this.items.splice(this.items.indexOf(prev), 1);
259305
259305
  } else if (!prev && value4) {
259306
- this.items.push(new Pair.Pair(key2));
259306
+ this.items.push(new Pair.Pair(key3));
259307
259307
  }
259308
259308
  }
259309
259309
  toJSON(_5, ctx) {
@@ -259538,7 +259538,7 @@ var require_tags = __commonJS((exports) => {
259538
259538
  if (Array.isArray(customTags))
259539
259539
  tags = [];
259540
259540
  else {
259541
- const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
259541
+ const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
259542
259542
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
259543
259543
  }
259544
259544
  }
@@ -259554,7 +259554,7 @@ var require_tags = __commonJS((exports) => {
259554
259554
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
259555
259555
  if (!tagObj) {
259556
259556
  const tagName = JSON.stringify(tag);
259557
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
259557
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
259558
259558
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
259559
259559
  }
259560
259560
  if (!tags2.includes(tagObj))
@@ -259789,13 +259789,13 @@ var require_Document = __commonJS((exports) => {
259789
259789
  setAnchors();
259790
259790
  return node;
259791
259791
  }
259792
- createPair(key2, value4, options = {}) {
259793
- const k5 = this.createNode(key2, null, options);
259792
+ createPair(key3, value4, options = {}) {
259793
+ const k5 = this.createNode(key3, null, options);
259794
259794
  const v7 = this.createNode(value4, null, options);
259795
259795
  return new Pair.Pair(k5, v7);
259796
259796
  }
259797
- delete(key2) {
259798
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
259797
+ delete(key3) {
259798
+ return assertCollection(this.contents) ? this.contents.delete(key3) : false;
259799
259799
  }
259800
259800
  deleteIn(path5) {
259801
259801
  if (Collection.isEmptyPath(path5)) {
@@ -259806,27 +259806,27 @@ var require_Document = __commonJS((exports) => {
259806
259806
  }
259807
259807
  return assertCollection(this.contents) ? this.contents.deleteIn(path5) : false;
259808
259808
  }
259809
- get(key2, keepScalar) {
259810
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
259809
+ get(key3, keepScalar) {
259810
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
259811
259811
  }
259812
259812
  getIn(path5, keepScalar) {
259813
259813
  if (Collection.isEmptyPath(path5))
259814
259814
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
259815
259815
  return identity2.isCollection(this.contents) ? this.contents.getIn(path5, keepScalar) : undefined;
259816
259816
  }
259817
- has(key2) {
259818
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
259817
+ has(key3) {
259818
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
259819
259819
  }
259820
259820
  hasIn(path5) {
259821
259821
  if (Collection.isEmptyPath(path5))
259822
259822
  return this.contents !== undefined;
259823
259823
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path5) : false;
259824
259824
  }
259825
- set(key2, value4) {
259825
+ set(key3, value4) {
259826
259826
  if (this.contents == null) {
259827
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
259827
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
259828
259828
  } else if (assertCollection(this.contents)) {
259829
- this.contents.set(key2, value4);
259829
+ this.contents.set(key3, value4);
259830
259830
  }
259831
259831
  }
259832
259832
  setIn(path5, value4) {
@@ -260110,25 +260110,25 @@ var require_resolve_props = __commonJS((exports) => {
260110
260110
 
260111
260111
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
260112
260112
  var require_util_contains_newline = __commonJS((exports) => {
260113
- function containsNewline(key2) {
260114
- if (!key2)
260113
+ function containsNewline(key3) {
260114
+ if (!key3)
260115
260115
  return null;
260116
- switch (key2.type) {
260116
+ switch (key3.type) {
260117
260117
  case "alias":
260118
260118
  case "scalar":
260119
260119
  case "double-quoted-scalar":
260120
260120
  case "single-quoted-scalar":
260121
- if (key2.source.includes(`
260121
+ if (key3.source.includes(`
260122
260122
  `))
260123
260123
  return true;
260124
- if (key2.end) {
260125
- for (const st2 of key2.end)
260124
+ if (key3.end) {
260125
+ for (const st2 of key3.end)
260126
260126
  if (st2.type === "newline")
260127
260127
  return true;
260128
260128
  }
260129
260129
  return false;
260130
260130
  case "flow-collection":
260131
- for (const it2 of key2.items) {
260131
+ for (const it2 of key3.items) {
260132
260132
  for (const st2 of it2.start)
260133
260133
  if (st2.type === "newline")
260134
260134
  return true;
@@ -260193,10 +260193,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260193
260193
  let offset = bm.offset;
260194
260194
  let commentEnd = null;
260195
260195
  for (const collItem of bm.items) {
260196
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260196
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
260197
260197
  const keyProps = resolveProps.resolveProps(start3, {
260198
260198
  indicator: "explicit-key-ind",
260199
- next: key2 ?? sep3?.[0],
260199
+ next: key3 ?? sep3?.[0],
260200
260200
  offset,
260201
260201
  onError,
260202
260202
  parentIndent: bm.indent,
@@ -260204,10 +260204,10 @@ var require_resolve_block_map = __commonJS((exports) => {
260204
260204
  });
260205
260205
  const implicitKey = !keyProps.found;
260206
260206
  if (implicitKey) {
260207
- if (key2) {
260208
- if (key2.type === "block-seq")
260207
+ if (key3) {
260208
+ if (key3.type === "block-seq")
260209
260209
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
260210
- else if ("indent" in key2 && key2.indent !== bm.indent)
260210
+ else if ("indent" in key3 && key3.indent !== bm.indent)
260211
260211
  onError(offset, "BAD_INDENT", startColMsg);
260212
260212
  }
260213
260213
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -260221,17 +260221,17 @@ var require_resolve_block_map = __commonJS((exports) => {
260221
260221
  }
260222
260222
  continue;
260223
260223
  }
260224
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
260225
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260224
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
260225
+ onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
260226
260226
  }
260227
260227
  } else if (keyProps.found?.indent !== bm.indent) {
260228
260228
  onError(offset, "BAD_INDENT", startColMsg);
260229
260229
  }
260230
260230
  ctx.atKey = true;
260231
260231
  const keyStart = keyProps.end;
260232
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260232
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
260233
260233
  if (ctx.schema.compat)
260234
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
260234
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
260235
260235
  ctx.atKey = false;
260236
260236
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
260237
260237
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -260241,7 +260241,7 @@ var require_resolve_block_map = __commonJS((exports) => {
260241
260241
  offset: keyNode.range[2],
260242
260242
  onError,
260243
260243
  parentIndent: bm.indent,
260244
- startOnNewline: !key2 || key2.type === "block-scalar"
260244
+ startOnNewline: !key3 || key3.type === "block-scalar"
260245
260245
  });
260246
260246
  offset = valueProps.end;
260247
260247
  if (valueProps.found) {
@@ -260397,11 +260397,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260397
260397
  let offset = fc.offset + fc.start.source.length;
260398
260398
  for (let i6 = 0;i6 < fc.items.length; ++i6) {
260399
260399
  const collItem = fc.items[i6];
260400
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
260400
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
260401
260401
  const props = resolveProps.resolveProps(start3, {
260402
260402
  flow: fcName,
260403
260403
  indicator: "explicit-key-ind",
260404
- next: key2 ?? sep3?.[0],
260404
+ next: key3 ?? sep3?.[0],
260405
260405
  offset,
260406
260406
  onError,
260407
260407
  parentIndent: fc.indent,
@@ -260423,8 +260423,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260423
260423
  offset = props.end;
260424
260424
  continue;
260425
260425
  }
260426
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
260427
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260426
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
260427
+ onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
260428
260428
  }
260429
260429
  if (i6 === 0) {
260430
260430
  if (props.comma)
@@ -260469,8 +260469,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
260469
260469
  } else {
260470
260470
  ctx.atKey = true;
260471
260471
  const keyStart = props.end;
260472
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260473
- if (isBlock(key2))
260472
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
260473
+ if (isBlock(key3))
260474
260474
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
260475
260475
  ctx.atKey = false;
260476
260476
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -261282,7 +261282,7 @@ var require_composer = __commonJS((exports) => {
261282
261282
  var node_process = __require("node:process");
261283
261283
  var directives4 = require_directives2();
261284
261284
  var Document = require_Document();
261285
- var errors2 = require_errors3();
261285
+ var errors3 = require_errors3();
261286
261286
  var identity2 = require_identity();
261287
261287
  var composeDoc = require_compose_doc();
261288
261288
  var resolveEnd = require_resolve_end();
@@ -261333,9 +261333,9 @@ var require_composer = __commonJS((exports) => {
261333
261333
  this.onError = (source, code2, message, warning) => {
261334
261334
  const pos = getErrorPos(source);
261335
261335
  if (warning)
261336
- this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
261336
+ this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
261337
261337
  else
261338
- this.errors.push(new errors2.YAMLParseError(pos, code2, message));
261338
+ this.errors.push(new errors3.YAMLParseError(pos, code2, message));
261339
261339
  };
261340
261340
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
261341
261341
  this.options = options;
@@ -261419,7 +261419,7 @@ ${cb}` : comment;
261419
261419
  break;
261420
261420
  case "error": {
261421
261421
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
261422
- const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261422
+ const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
261423
261423
  if (this.atDirectives || !this.doc)
261424
261424
  this.errors.push(error5);
261425
261425
  else
@@ -261429,7 +261429,7 @@ ${cb}` : comment;
261429
261429
  case "doc-end": {
261430
261430
  if (!this.doc) {
261431
261431
  const msg = "Unexpected doc-end without preceding document";
261432
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261432
+ this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
261433
261433
  break;
261434
261434
  }
261435
261435
  this.doc.directives.docEnd = true;
@@ -261444,7 +261444,7 @@ ${end.comment}` : end.comment;
261444
261444
  break;
261445
261445
  }
261446
261446
  default:
261447
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261447
+ this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
261448
261448
  }
261449
261449
  }
261450
261450
  *end(forceDoc = false, endOffset = -1) {
@@ -261470,7 +261470,7 @@ ${end.comment}` : end.comment;
261470
261470
  var require_cst_scalar = __commonJS((exports) => {
261471
261471
  var resolveBlockScalar = require_resolve_block_scalar();
261472
261472
  var resolveFlowScalar = require_resolve_flow_scalar();
261473
- var errors2 = require_errors3();
261473
+ var errors3 = require_errors3();
261474
261474
  var stringifyString = require_stringifyString();
261475
261475
  function resolveAsScalar(token, strict = true, onError) {
261476
261476
  if (token) {
@@ -261479,7 +261479,7 @@ var require_cst_scalar = __commonJS((exports) => {
261479
261479
  if (onError)
261480
261480
  onError(offset, code2, message);
261481
261481
  else
261482
- throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
261482
+ throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
261483
261483
  };
261484
261484
  switch (token.type) {
261485
261485
  case "scalar":
@@ -261593,9 +261593,9 @@ var require_cst_scalar = __commonJS((exports) => {
261593
261593
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
261594
261594
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
261595
261595
  ` });
261596
- for (const key2 of Object.keys(token))
261597
- if (key2 !== "type" && key2 !== "offset")
261598
- delete token[key2];
261596
+ for (const key3 of Object.keys(token))
261597
+ if (key3 !== "type" && key3 !== "offset")
261598
+ delete token[key3];
261599
261599
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
261600
261600
  }
261601
261601
  }
@@ -261644,9 +261644,9 @@ var require_cst_scalar = __commonJS((exports) => {
261644
261644
  default: {
261645
261645
  const indent2 = "indent" in token ? token.indent : -1;
261646
261646
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
261647
- for (const key2 of Object.keys(token))
261648
- if (key2 !== "type" && key2 !== "offset")
261649
- delete token[key2];
261647
+ for (const key3 of Object.keys(token))
261648
+ if (key3 !== "type" && key3 !== "offset")
261649
+ delete token[key3];
261650
261650
  Object.assign(token, { type: type4, indent: indent2, source, end });
261651
261651
  }
261652
261652
  }
@@ -261698,12 +261698,12 @@ var require_cst_stringify = __commonJS((exports) => {
261698
261698
  }
261699
261699
  }
261700
261700
  }
261701
- function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
261701
+ function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
261702
261702
  let res = "";
261703
261703
  for (const st2 of start3)
261704
261704
  res += st2.source;
261705
- if (key2)
261706
- res += stringifyToken(key2);
261705
+ if (key3)
261706
+ res += stringifyToken(key3);
261707
261707
  if (sep3)
261708
261708
  for (const st2 of sep3)
261709
261709
  res += st2.source;
@@ -263000,7 +263000,7 @@ var require_parser2 = __commonJS((exports) => {
263000
263000
  });
263001
263001
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
263002
263002
  const start4 = getFirstKeyStartProps(it2.start);
263003
- const key2 = it2.key;
263003
+ const key3 = it2.key;
263004
263004
  const sep3 = it2.sep;
263005
263005
  sep3.push(this.sourceToken);
263006
263006
  delete it2.key;
@@ -263009,7 +263009,7 @@ var require_parser2 = __commonJS((exports) => {
263009
263009
  type: "block-map",
263010
263010
  offset: this.offset,
263011
263011
  indent: this.indent,
263012
- items: [{ start: start4, key: key2, sep: sep3 }]
263012
+ items: [{ start: start4, key: key3, sep: sep3 }]
263013
263013
  });
263014
263014
  } else if (start3.length > 0) {
263015
263015
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -263332,7 +263332,7 @@ var require_parser2 = __commonJS((exports) => {
263332
263332
  var require_public_api = __commonJS((exports) => {
263333
263333
  var composer = require_composer();
263334
263334
  var Document = require_Document();
263335
- var errors2 = require_errors3();
263335
+ var errors3 = require_errors3();
263336
263336
  var log = require_log();
263337
263337
  var identity2 = require_identity();
263338
263338
  var lineCounter = require_line_counter();
@@ -263349,8 +263349,8 @@ var require_public_api = __commonJS((exports) => {
263349
263349
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
263350
263350
  if (prettyErrors && lineCounter2)
263351
263351
  for (const doc of docs) {
263352
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263353
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263352
+ doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
263353
+ doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
263354
263354
  }
263355
263355
  if (docs.length > 0)
263356
263356
  return docs;
@@ -263365,13 +263365,13 @@ var require_public_api = __commonJS((exports) => {
263365
263365
  if (!doc)
263366
263366
  doc = _doc;
263367
263367
  else if (doc.options.logLevel !== "silent") {
263368
- doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263368
+ doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
263369
263369
  break;
263370
263370
  }
263371
263371
  }
263372
263372
  if (prettyErrors && lineCounter2) {
263373
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
263374
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
263373
+ doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
263374
+ doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
263375
263375
  }
263376
263376
  return doc;
263377
263377
  }
@@ -274459,7 +274459,7 @@ function pruneCurrentEnv(currentEnv, env2) {
274459
274459
  var package_default = {
274460
274460
  name: "@settlemint/sdk-cli",
274461
274461
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
274462
- version: "1.1.3-pr8e572b89",
274462
+ version: "1.1.3-prae38e267",
274463
274463
  type: "module",
274464
274464
  private: false,
274465
274465
  license: "FSL-1.1-MIT",
@@ -274503,12 +274503,12 @@ var package_default = {
274503
274503
  },
274504
274504
  devDependencies: {
274505
274505
  "@commander-js/extra-typings": "13.1.0",
274506
- "@inquirer/confirm": "5.1.5",
274507
- "@inquirer/input": "4.1.5",
274506
+ "@inquirer/confirm": "5.1.4",
274507
+ "@inquirer/input": "4.1.4",
274508
274508
  "@inquirer/password": "4.0.8",
274509
- "@inquirer/select": "4.0.8",
274510
- "@settlemint/sdk-js": "1.1.3-pr8e572b89",
274511
- "@settlemint/sdk-utils": "1.1.3-pr8e572b89",
274509
+ "@inquirer/select": "4.0.7",
274510
+ "@settlemint/sdk-js": "1.1.3-prae38e267",
274511
+ "@settlemint/sdk-utils": "1.1.3-prae38e267",
274512
274512
  "@types/node": "22.13.0",
274513
274513
  "@types/semver": "7.5.8",
274514
274514
  "@types/which": "3.0.4",
@@ -280246,20 +280246,474 @@ var esm_default4 = createPrompt((config3, done) => {
280246
280246
  ];
280247
280247
  });
280248
280248
 
280249
- // ../../node_modules/@inquirer/password/dist/esm/index.js
280249
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
280250
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
280251
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
280252
+ class AbortPromptError2 extends Error {
280253
+ name = "AbortPromptError";
280254
+ message = "Prompt was aborted";
280255
+ constructor(options) {
280256
+ super();
280257
+ this.cause = options?.cause;
280258
+ }
280259
+ }
280260
+
280261
+ class CancelPromptError2 extends Error {
280262
+ name = "CancelPromptError";
280263
+ message = "Prompt was canceled";
280264
+ }
280265
+
280266
+ class ExitPromptError2 extends Error {
280267
+ name = "ExitPromptError";
280268
+ }
280269
+
280270
+ class HookError2 extends Error {
280271
+ name = "HookError";
280272
+ }
280273
+
280274
+ class ValidationError2 extends Error {
280275
+ name = "ValidationError";
280276
+ }
280277
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280278
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
280279
+
280280
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
280281
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
280282
+ var hookStorage2 = new AsyncLocalStorage2;
280283
+ function createStore2(rl) {
280284
+ const store = {
280285
+ rl,
280286
+ hooks: [],
280287
+ hooksCleanup: [],
280288
+ hooksEffect: [],
280289
+ index: 0,
280290
+ handleChange() {
280291
+ }
280292
+ };
280293
+ return store;
280294
+ }
280295
+ function withHooks2(rl, cb) {
280296
+ const store = createStore2(rl);
280297
+ return hookStorage2.run(store, () => {
280298
+ function cycle(render) {
280299
+ store.handleChange = () => {
280300
+ store.index = 0;
280301
+ render();
280302
+ };
280303
+ store.handleChange();
280304
+ }
280305
+ return cb(cycle);
280306
+ });
280307
+ }
280308
+ function getStore2() {
280309
+ const store = hookStorage2.getStore();
280310
+ if (!store) {
280311
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
280312
+ }
280313
+ return store;
280314
+ }
280315
+ function readline3() {
280316
+ return getStore2().rl;
280317
+ }
280318
+ function withUpdates2(fn) {
280319
+ const wrapped = (...args) => {
280320
+ const store = getStore2();
280321
+ let shouldUpdate = false;
280322
+ const oldHandleChange = store.handleChange;
280323
+ store.handleChange = () => {
280324
+ shouldUpdate = true;
280325
+ };
280326
+ const returnValue = fn(...args);
280327
+ if (shouldUpdate) {
280328
+ oldHandleChange();
280329
+ }
280330
+ store.handleChange = oldHandleChange;
280331
+ return returnValue;
280332
+ };
280333
+ return AsyncResource4.bind(wrapped);
280334
+ }
280335
+ function withPointer2(cb) {
280336
+ const store = getStore2();
280337
+ const { index } = store;
280338
+ const pointer = {
280339
+ get() {
280340
+ return store.hooks[index];
280341
+ },
280342
+ set(value4) {
280343
+ store.hooks[index] = value4;
280344
+ },
280345
+ initialized: index in store.hooks
280346
+ };
280347
+ const returnValue = cb(pointer);
280348
+ store.index++;
280349
+ return returnValue;
280350
+ }
280351
+ function handleChange2() {
280352
+ getStore2().handleChange();
280353
+ }
280354
+ var effectScheduler2 = {
280355
+ queue(cb) {
280356
+ const store = getStore2();
280357
+ const { index } = store;
280358
+ store.hooksEffect.push(() => {
280359
+ store.hooksCleanup[index]?.();
280360
+ const cleanFn = cb(readline3());
280361
+ if (cleanFn != null && typeof cleanFn !== "function") {
280362
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
280363
+ }
280364
+ store.hooksCleanup[index] = cleanFn;
280365
+ });
280366
+ },
280367
+ run() {
280368
+ const store = getStore2();
280369
+ withUpdates2(() => {
280370
+ store.hooksEffect.forEach((effect) => {
280371
+ effect();
280372
+ });
280373
+ store.hooksEffect.length = 0;
280374
+ })();
280375
+ },
280376
+ clearAll() {
280377
+ const store = getStore2();
280378
+ store.hooksCleanup.forEach((cleanFn) => {
280379
+ cleanFn?.();
280380
+ });
280381
+ store.hooksEffect.length = 0;
280382
+ store.hooksCleanup.length = 0;
280383
+ }
280384
+ };
280385
+
280386
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
280387
+ function useState2(defaultValue) {
280388
+ return withPointer2((pointer) => {
280389
+ const setFn = (newValue) => {
280390
+ if (pointer.get() !== newValue) {
280391
+ pointer.set(newValue);
280392
+ handleChange2();
280393
+ }
280394
+ };
280395
+ if (pointer.initialized) {
280396
+ return [pointer.get(), setFn];
280397
+ }
280398
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
280399
+ pointer.set(value4);
280400
+ return [value4, setFn];
280401
+ });
280402
+ }
280403
+
280404
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
280405
+ function useEffect2(cb, depArray) {
280406
+ withPointer2((pointer) => {
280407
+ const oldDeps = pointer.get();
280408
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
280409
+ if (hasChanged) {
280410
+ effectScheduler2.queue(cb);
280411
+ }
280412
+ pointer.set(depArray);
280413
+ });
280414
+ }
280415
+
280416
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
280417
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
280418
+ var defaultTheme2 = {
280419
+ prefix: {
280420
+ idle: import_yoctocolors_cjs4.default.blue("?"),
280421
+ done: import_yoctocolors_cjs4.default.green(esm_default.tick)
280422
+ },
280423
+ spinner: {
280424
+ interval: 80,
280425
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
280426
+ },
280427
+ style: {
280428
+ answer: import_yoctocolors_cjs4.default.cyan,
280429
+ message: import_yoctocolors_cjs4.default.bold,
280430
+ error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
280431
+ defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
280432
+ help: import_yoctocolors_cjs4.default.dim,
280433
+ highlight: import_yoctocolors_cjs4.default.cyan,
280434
+ key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
280435
+ }
280436
+ };
280437
+
280438
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
280439
+ function isPlainObject3(value4) {
280440
+ if (typeof value4 !== "object" || value4 === null)
280441
+ return false;
280442
+ let proto = value4;
280443
+ while (Object.getPrototypeOf(proto) !== null) {
280444
+ proto = Object.getPrototypeOf(proto);
280445
+ }
280446
+ return Object.getPrototypeOf(value4) === proto;
280447
+ }
280448
+ function deepMerge3(...objects) {
280449
+ const output = {};
280450
+ for (const obj of objects) {
280451
+ for (const [key2, value4] of Object.entries(obj)) {
280452
+ const prevValue = output[key2];
280453
+ output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
280454
+ }
280455
+ }
280456
+ return output;
280457
+ }
280458
+ function makeTheme2(...themes) {
280459
+ const themesToMerge = [
280460
+ defaultTheme2,
280461
+ ...themes.filter((theme) => theme != null)
280462
+ ];
280463
+ return deepMerge3(...themesToMerge);
280464
+ }
280465
+
280466
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
280467
+ function usePrefix2({ status = "idle", theme }) {
280468
+ const [showLoader, setShowLoader] = useState2(false);
280469
+ const [tick, setTick] = useState2(0);
280470
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
280471
+ useEffect2(() => {
280472
+ if (status === "loading") {
280473
+ let tickInterval;
280474
+ let inc = -1;
280475
+ const delayTimeout = setTimeout(AsyncResource5.bind(() => {
280476
+ setShowLoader(true);
280477
+ tickInterval = setInterval(AsyncResource5.bind(() => {
280478
+ inc = inc + 1;
280479
+ setTick(inc % spinner2.frames.length);
280480
+ }), spinner2.interval);
280481
+ }), 300);
280482
+ return () => {
280483
+ clearTimeout(delayTimeout);
280484
+ clearInterval(tickInterval);
280485
+ };
280486
+ } else {
280487
+ setShowLoader(false);
280488
+ }
280489
+ }, [status]);
280490
+ if (showLoader) {
280491
+ return spinner2.frames[tick];
280492
+ }
280493
+ const iconName = status === "loading" ? "idle" : status;
280494
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
280495
+ }
280496
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
280497
+ function useRef2(val) {
280498
+ return useState2({ current: val })[0];
280499
+ }
280500
+
280501
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
280502
+ function useKeypress2(userHandler) {
280503
+ const signal = useRef2(userHandler);
280504
+ signal.current = userHandler;
280505
+ useEffect2((rl) => {
280506
+ let ignore = false;
280507
+ const handler = withUpdates2((_input, event) => {
280508
+ if (ignore)
280509
+ return;
280510
+ signal.current(event, rl);
280511
+ });
280512
+ rl.input.on("keypress", handler);
280513
+ return () => {
280514
+ ignore = true;
280515
+ rl.input.removeListener("keypress", handler);
280516
+ };
280517
+ }, []);
280518
+ }
280519
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
280520
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
280521
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
280522
+ function breakLines2(content, width) {
280523
+ return content.split(`
280524
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
280525
+ `).map((str) => str.trimEnd())).join(`
280526
+ `);
280527
+ }
280528
+ function readlineWidth2() {
280529
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
280530
+ }
280531
+
280532
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280533
+ var import_mute_stream2 = __toESM(require_lib(), 1);
280534
+ import * as readline4 from "node:readline";
280535
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
280536
+
280537
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
280250
280538
  var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
280251
- var esm_default5 = createPrompt((config3, done) => {
280539
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
280540
+ var height2 = (content) => content.split(`
280541
+ `).length;
280542
+ var lastLine2 = (content) => content.split(`
280543
+ `).pop() ?? "";
280544
+ function cursorDown2(n6) {
280545
+ return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
280546
+ }
280547
+
280548
+ class ScreenManager2 {
280549
+ rl;
280550
+ height = 0;
280551
+ extraLinesUnderPrompt = 0;
280552
+ cursorPos;
280553
+ constructor(rl) {
280554
+ this.rl = rl;
280555
+ this.rl = rl;
280556
+ this.cursorPos = rl.getCursorPos();
280557
+ }
280558
+ write(content) {
280559
+ this.rl.output.unmute();
280560
+ this.rl.output.write(content);
280561
+ this.rl.output.mute();
280562
+ }
280563
+ render(content, bottomContent = "") {
280564
+ const promptLine = lastLine2(content);
280565
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
280566
+ let prompt = rawPromptLine;
280567
+ if (this.rl.line.length > 0) {
280568
+ prompt = prompt.slice(0, -this.rl.line.length);
280569
+ }
280570
+ this.rl.setPrompt(prompt);
280571
+ this.cursorPos = this.rl.getCursorPos();
280572
+ const width = readlineWidth2();
280573
+ content = breakLines2(content, width);
280574
+ bottomContent = breakLines2(bottomContent, width);
280575
+ if (rawPromptLine.length % width === 0) {
280576
+ content += `
280577
+ `;
280578
+ }
280579
+ let output = content + (bottomContent ? `
280580
+ ` + bottomContent : "");
280581
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
280582
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
280583
+ if (bottomContentHeight > 0)
280584
+ output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
280585
+ output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
280586
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
280587
+ this.extraLinesUnderPrompt = bottomContentHeight;
280588
+ this.height = height2(output);
280589
+ }
280590
+ checkCursorPos() {
280591
+ const cursorPos = this.rl.getCursorPos();
280592
+ if (cursorPos.cols !== this.cursorPos.cols) {
280593
+ this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
280594
+ this.cursorPos = cursorPos;
280595
+ }
280596
+ }
280597
+ done({ clearContent }) {
280598
+ this.rl.setPrompt("");
280599
+ let output = cursorDown2(this.extraLinesUnderPrompt);
280600
+ output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
280601
+ `;
280602
+ output += import_ansi_escapes3.default.cursorShow;
280603
+ this.write(output);
280604
+ this.rl.close();
280605
+ }
280606
+ }
280607
+
280608
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
280609
+ class PromisePolyfill2 extends Promise {
280610
+ static withResolver() {
280611
+ let resolve6;
280612
+ let reject;
280613
+ const promise = new Promise((res, rej) => {
280614
+ resolve6 = res;
280615
+ reject = rej;
280616
+ });
280617
+ return { promise, resolve: resolve6, reject };
280618
+ }
280619
+ }
280620
+
280621
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
280622
+ function getCallSites2() {
280623
+ const _prepareStackTrace = Error.prepareStackTrace;
280624
+ try {
280625
+ let result = [];
280626
+ Error.prepareStackTrace = (_5, callSites) => {
280627
+ const callSitesWithoutCurrent = callSites.slice(1);
280628
+ result = callSitesWithoutCurrent;
280629
+ return callSitesWithoutCurrent;
280630
+ };
280631
+ new Error().stack;
280632
+ return result;
280633
+ } finally {
280634
+ Error.prepareStackTrace = _prepareStackTrace;
280635
+ }
280636
+ }
280637
+ function createPrompt2(view) {
280638
+ const callSites = getCallSites2();
280639
+ const callerFilename = callSites[1]?.getFileName?.();
280640
+ const prompt = (config3, context = {}) => {
280641
+ const { input = process.stdin, signal } = context;
280642
+ const cleanups = new Set;
280643
+ const output = new import_mute_stream2.default;
280644
+ output.pipe(context.output ?? process.stdout);
280645
+ const rl = readline4.createInterface({
280646
+ terminal: true,
280647
+ input,
280648
+ output
280649
+ });
280650
+ const screen = new ScreenManager2(rl);
280651
+ const { promise, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
280652
+ const cancel3 = () => reject(new CancelPromptError2);
280653
+ if (signal) {
280654
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
280655
+ if (signal.aborted) {
280656
+ abort();
280657
+ return Object.assign(promise, { cancel: cancel3 });
280658
+ }
280659
+ signal.addEventListener("abort", abort);
280660
+ cleanups.add(() => signal.removeEventListener("abort", abort));
280661
+ }
280662
+ cleanups.add(onExit((code2, signal2) => {
280663
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
280664
+ }));
280665
+ const checkCursorPos = () => screen.checkCursorPos();
280666
+ rl.input.on("keypress", checkCursorPos);
280667
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
280668
+ return withHooks2(rl, (cycle) => {
280669
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
280670
+ rl.on("close", hooksCleanup);
280671
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
280672
+ cycle(() => {
280673
+ try {
280674
+ const nextView = view(config3, (value4) => {
280675
+ setImmediate(() => resolve6(value4));
280676
+ });
280677
+ if (nextView === undefined) {
280678
+ throw new Error(`Prompt functions must return a string.
280679
+ at ${callerFilename}`);
280680
+ }
280681
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
280682
+ screen.render(content, bottomContent);
280683
+ effectScheduler2.run();
280684
+ } catch (error5) {
280685
+ reject(error5);
280686
+ }
280687
+ });
280688
+ return Object.assign(promise.then((answer) => {
280689
+ effectScheduler2.clearAll();
280690
+ return answer;
280691
+ }, (error5) => {
280692
+ effectScheduler2.clearAll();
280693
+ throw error5;
280694
+ }).finally(() => {
280695
+ cleanups.forEach((cleanup) => cleanup());
280696
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
280697
+ output.end();
280698
+ }).then(() => promise), { cancel: cancel3 });
280699
+ });
280700
+ };
280701
+ return prompt;
280702
+ }
280703
+ // ../../node_modules/@inquirer/password/dist/esm/index.js
280704
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
280705
+ var esm_default5 = createPrompt2((config3, done) => {
280252
280706
  const { validate: validate3 = () => true } = config3;
280253
- const theme = makeTheme(config3.theme);
280254
- const [status, setStatus] = useState("idle");
280255
- const [errorMsg, setError] = useState();
280256
- const [value4, setValue] = useState("");
280257
- const prefix = usePrefix({ status, theme });
280258
- useKeypress(async (key2, rl) => {
280707
+ const theme = makeTheme2(config3.theme);
280708
+ const [status, setStatus] = useState2("idle");
280709
+ const [errorMsg, setError] = useState2();
280710
+ const [value4, setValue] = useState2("");
280711
+ const prefix = usePrefix2({ status, theme });
280712
+ useKeypress2(async (key3, rl) => {
280259
280713
  if (status !== "idle") {
280260
280714
  return;
280261
280715
  }
280262
- if (isEnterKey(key2)) {
280716
+ if (isEnterKey2(key3)) {
280263
280717
  const answer = value4;
280264
280718
  setStatus("loading");
280265
280719
  const isValid2 = await validate3(answer);
@@ -280284,7 +280738,7 @@ var esm_default5 = createPrompt((config3, done) => {
280284
280738
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
280285
280739
  formattedValue = maskChar.repeat(value4.length);
280286
280740
  } else if (status !== "done") {
280287
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
280741
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
280288
280742
  }
280289
280743
  if (status === "done") {
280290
280744
  formattedValue = theme.style.answer(formattedValue);
@@ -281356,7 +281810,7 @@ var basename2 = function(p6, extension) {
281356
281810
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
281357
281811
  };
281358
281812
  // ../../node_modules/defu/dist/defu.mjs
281359
- function isPlainObject3(value4) {
281813
+ function isPlainObject4(value4) {
281360
281814
  if (value4 === null || typeof value4 !== "object") {
281361
281815
  return false;
281362
281816
  }
@@ -281373,27 +281827,27 @@ function isPlainObject3(value4) {
281373
281827
  return true;
281374
281828
  }
281375
281829
  function _defu(baseObject, defaults2, namespace = ".", merger) {
281376
- if (!isPlainObject3(defaults2)) {
281830
+ if (!isPlainObject4(defaults2)) {
281377
281831
  return _defu(baseObject, {}, namespace, merger);
281378
281832
  }
281379
281833
  const object = Object.assign({}, defaults2);
281380
- for (const key2 in baseObject) {
281381
- if (key2 === "__proto__" || key2 === "constructor") {
281834
+ for (const key3 in baseObject) {
281835
+ if (key3 === "__proto__" || key3 === "constructor") {
281382
281836
  continue;
281383
281837
  }
281384
- const value4 = baseObject[key2];
281838
+ const value4 = baseObject[key3];
281385
281839
  if (value4 === null || value4 === undefined) {
281386
281840
  continue;
281387
281841
  }
281388
- if (merger && merger(object, key2, value4, namespace)) {
281842
+ if (merger && merger(object, key3, value4, namespace)) {
281389
281843
  continue;
281390
281844
  }
281391
- if (Array.isArray(value4) && Array.isArray(object[key2])) {
281392
- object[key2] = [...value4, ...object[key2]];
281393
- } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
281394
- object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
281845
+ if (Array.isArray(value4) && Array.isArray(object[key3])) {
281846
+ object[key3] = [...value4, ...object[key3]];
281847
+ } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
281848
+ object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
281395
281849
  } else {
281396
- object[key2] = value4;
281850
+ object[key3] = value4;
281397
281851
  }
281398
281852
  }
281399
281853
  return object;
@@ -281402,15 +281856,15 @@ function createDefu(merger) {
281402
281856
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
281403
281857
  }
281404
281858
  var defu = createDefu();
281405
- var defuFn = createDefu((object, key2, currentValue) => {
281406
- if (object[key2] !== undefined && typeof currentValue === "function") {
281407
- object[key2] = currentValue(object[key2]);
281859
+ var defuFn = createDefu((object, key3, currentValue) => {
281860
+ if (object[key3] !== undefined && typeof currentValue === "function") {
281861
+ object[key3] = currentValue(object[key3]);
281408
281862
  return true;
281409
281863
  }
281410
281864
  });
281411
- var defuArrayFn = createDefu((object, key2, currentValue) => {
281412
- if (Array.isArray(object[key2]) && typeof currentValue === "function") {
281413
- object[key2] = currentValue(object[key2]);
281865
+ var defuArrayFn = createDefu((object, key3, currentValue) => {
281866
+ if (Array.isArray(object[key3]) && typeof currentValue === "function") {
281867
+ object[key3] = currentValue(object[key3]);
281414
281868
  return true;
281415
281869
  }
281416
281870
  });
@@ -281672,11 +282126,11 @@ function cacheDirectory() {
281672
282126
  }
281673
282127
  function normalizeHeaders(headers = {}) {
281674
282128
  const normalized = {};
281675
- for (const [key2, value4] of Object.entries(headers)) {
282129
+ for (const [key3, value4] of Object.entries(headers)) {
281676
282130
  if (!value4) {
281677
282131
  continue;
281678
282132
  }
281679
- normalized[key2.toLowerCase()] = value4;
282133
+ normalized[key3.toLowerCase()] = value4;
281680
282134
  }
281681
282135
  return normalized;
281682
282136
  }
@@ -283858,7 +284312,7 @@ function jsonOutput(data) {
283858
284312
  var composer = require_composer();
283859
284313
  var Document = require_Document();
283860
284314
  var Schema = require_Schema();
283861
- var errors2 = require_errors3();
284315
+ var errors3 = require_errors3();
283862
284316
  var Alias = require_Alias();
283863
284317
  var identity2 = require_identity();
283864
284318
  var Pair = require_Pair();
@@ -283874,9 +284328,9 @@ var visit2 = require_visit();
283874
284328
  var $Composer = composer.Composer;
283875
284329
  var $Document = Document.Document;
283876
284330
  var $Schema = Schema.Schema;
283877
- var $YAMLError = errors2.YAMLError;
283878
- var $YAMLParseError = errors2.YAMLParseError;
283879
- var $YAMLWarning = errors2.YAMLWarning;
284331
+ var $YAMLError = errors3.YAMLError;
284332
+ var $YAMLParseError = errors3.YAMLParseError;
284333
+ var $YAMLWarning = errors3.YAMLWarning;
283880
284334
  var $Alias = Alias.Alias;
283881
284335
  var $isAlias = identity2.isAlias;
283882
284336
  var $isCollection = identity2.isCollection;
@@ -284222,7 +284676,7 @@ async function getServicesAndMapResults({
284222
284676
  const application = await settlemint.application.read(applicationUniqueName);
284223
284677
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
284224
284678
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
284225
- const [_5, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
284679
+ const [_5, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
284226
284680
  null,
284227
284681
  { plural: serviceType }
284228
284682
  ];
@@ -284450,11 +284904,11 @@ function createCommand4() {
284450
284904
 
284451
284905
  // src/utils/commands/passthrough-options.ts
284452
284906
  function mapPassthroughOptions(options, command) {
284453
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
284907
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
284454
284908
  if (value4 === true) {
284455
- return `--${key2}`;
284909
+ return `--${key3}`;
284456
284910
  }
284457
- return `--${key2}=${value4}`;
284911
+ return `--${key3}=${value4}`;
284458
284912
  });
284459
284913
  return [...optionArgs, ...command.args];
284460
284914
  }
@@ -285378,4 +285832,4 @@ async function sdkCliCommand(argv = process.argv) {
285378
285832
  // src/cli.ts
285379
285833
  sdkCliCommand();
285380
285834
 
285381
- //# debugId=E4256147B1AA387864756E2164756E21
285835
+ //# debugId=57ECE5FE40C5397F64756E2164756E21