@letta-ai/letta-code 0.1.18 → 0.1.19

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 (2) hide show
  1. package/letta.js +1284 -1225
  2. package/package.json +1 -1
package/letta.js CHANGED
@@ -3031,6 +3031,15 @@ var init_letta_client = __esm(() => {
3031
3031
  });
3032
3032
 
3033
3033
  // src/auth/oauth.ts
3034
+ var exports_oauth = {};
3035
+ __export(exports_oauth, {
3036
+ validateCredentials: () => validateCredentials,
3037
+ revokeToken: () => revokeToken,
3038
+ requestDeviceCode: () => requestDeviceCode,
3039
+ refreshAccessToken: () => refreshAccessToken,
3040
+ pollForToken: () => pollForToken,
3041
+ OAUTH_CONFIG: () => OAUTH_CONFIG
3042
+ });
3034
3043
  async function requestDeviceCode() {
3035
3044
  const response = await fetch(`${OAUTH_CONFIG.authBaseUrl}/api/oauth/device/code`, {
3036
3045
  method: "POST",
@@ -3096,7 +3105,8 @@ async function refreshAccessToken(refreshToken) {
3096
3105
  body: JSON.stringify({
3097
3106
  grant_type: "refresh_token",
3098
3107
  client_id: OAUTH_CONFIG.clientId,
3099
- refresh_token: refreshToken
3108
+ refresh_token: refreshToken,
3109
+ refresh_token_mode: "new"
3100
3110
  })
3101
3111
  });
3102
3112
  if (!response.ok) {
@@ -3105,6 +3115,34 @@ async function refreshAccessToken(refreshToken) {
3105
3115
  }
3106
3116
  return await response.json();
3107
3117
  }
3118
+ async function revokeToken(refreshToken) {
3119
+ try {
3120
+ const response = await fetch(`${OAUTH_CONFIG.authBaseUrl}/api/oauth/revoke`, {
3121
+ method: "POST",
3122
+ headers: { "Content-Type": "application/json" },
3123
+ body: JSON.stringify({
3124
+ client_id: OAUTH_CONFIG.clientId,
3125
+ token: refreshToken,
3126
+ token_type_hint: "refresh_token"
3127
+ })
3128
+ });
3129
+ if (!response.ok) {
3130
+ const error = await response.json();
3131
+ console.error(`Warning: Failed to revoke token: ${error.error_description || error.error}`);
3132
+ }
3133
+ } catch (error) {
3134
+ console.error("Warning: Failed to revoke token:", error);
3135
+ }
3136
+ }
3137
+ async function validateCredentials(baseUrl, apiKey) {
3138
+ try {
3139
+ const client = new Letta({ apiKey, baseURL: baseUrl });
3140
+ await client.agents.list({ limit: 1 });
3141
+ return true;
3142
+ } catch {
3143
+ return false;
3144
+ }
3145
+ }
3108
3146
  var OAUTH_CONFIG;
3109
3147
  var init_oauth = __esm(() => {
3110
3148
  init_letta_client();
@@ -6677,7 +6715,7 @@ var package_default;
6677
6715
  var init_package = __esm(() => {
6678
6716
  package_default = {
6679
6717
  name: "@letta-ai/letta-code",
6680
- version: "0.1.18",
6718
+ version: "0.1.19",
6681
6719
  description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
6682
6720
  type: "module",
6683
6721
  bin: {
@@ -31868,9 +31906,10 @@ var init_setup = __esm(async () => {
31868
31906
  });
31869
31907
 
31870
31908
  // src/auth/oauth.ts
31871
- var exports_oauth = {};
31872
- __export(exports_oauth, {
31873
- validateCredentials: () => validateCredentials,
31909
+ var exports_oauth2 = {};
31910
+ __export(exports_oauth2, {
31911
+ validateCredentials: () => validateCredentials2,
31912
+ revokeToken: () => revokeToken2,
31874
31913
  requestDeviceCode: () => requestDeviceCode2,
31875
31914
  refreshAccessToken: () => refreshAccessToken2,
31876
31915
  pollForToken: () => pollForToken2,
@@ -31941,7 +31980,8 @@ async function refreshAccessToken2(refreshToken) {
31941
31980
  body: JSON.stringify({
31942
31981
  grant_type: "refresh_token",
31943
31982
  client_id: OAUTH_CONFIG2.clientId,
31944
- refresh_token: refreshToken
31983
+ refresh_token: refreshToken,
31984
+ refresh_token_mode: "new"
31945
31985
  })
31946
31986
  });
31947
31987
  if (!response.ok) {
@@ -31950,7 +31990,26 @@ async function refreshAccessToken2(refreshToken) {
31950
31990
  }
31951
31991
  return await response.json();
31952
31992
  }
31953
- async function validateCredentials(baseUrl, apiKey) {
31993
+ async function revokeToken2(refreshToken) {
31994
+ try {
31995
+ const response = await fetch(`${OAUTH_CONFIG2.authBaseUrl}/api/oauth/revoke`, {
31996
+ method: "POST",
31997
+ headers: { "Content-Type": "application/json" },
31998
+ body: JSON.stringify({
31999
+ client_id: OAUTH_CONFIG2.clientId,
32000
+ token: refreshToken,
32001
+ token_type_hint: "refresh_token"
32002
+ })
32003
+ });
32004
+ if (!response.ok) {
32005
+ const error = await response.json();
32006
+ console.error(`Warning: Failed to revoke token: ${error.error_description || error.error}`);
32007
+ }
32008
+ } catch (error) {
32009
+ console.error("Warning: Failed to revoke token:", error);
32010
+ }
32011
+ }
32012
+ async function validateCredentials2(baseUrl, apiKey) {
31954
32013
  try {
31955
32014
  const client = new Letta({ apiKey, baseURL: baseUrl });
31956
32015
  await client.agents.list({ limit: 1 });
@@ -39237,1183 +39296,6 @@ var init_ErrorMessageRich = __esm(async () => {
39237
39296
  ErrorMessage.displayName = "ErrorMessage";
39238
39297
  });
39239
39298
 
39240
- // node_modules/react/cjs/react-jsx-runtime.development.js
39241
- var require_react_jsx_runtime_development = __commonJS((exports) => {
39242
- var React12 = __toESM(require_react(), 1);
39243
- if (true) {
39244
- (function() {
39245
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
39246
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
39247
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
39248
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
39249
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
39250
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
39251
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
39252
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
39253
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
39254
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
39255
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
39256
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
39257
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
39258
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
39259
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
39260
- function getIteratorFn(maybeIterable) {
39261
- if (maybeIterable === null || typeof maybeIterable !== "object") {
39262
- return null;
39263
- }
39264
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
39265
- if (typeof maybeIterator === "function") {
39266
- return maybeIterator;
39267
- }
39268
- return null;
39269
- }
39270
- var ReactSharedInternals = React12.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
39271
- function error(format) {
39272
- {
39273
- {
39274
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
39275
- args[_key2 - 1] = arguments[_key2];
39276
- }
39277
- printWarning("error", format, args);
39278
- }
39279
- }
39280
- }
39281
- function printWarning(level, format, args) {
39282
- {
39283
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
39284
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
39285
- if (stack !== "") {
39286
- format += "%s";
39287
- args = args.concat([stack]);
39288
- }
39289
- var argsWithFormat = args.map(function(item) {
39290
- return String(item);
39291
- });
39292
- argsWithFormat.unshift("Warning: " + format);
39293
- Function.prototype.apply.call(console[level], console, argsWithFormat);
39294
- }
39295
- }
39296
- var enableScopeAPI = false;
39297
- var enableCacheElement = false;
39298
- var enableTransitionTracing = false;
39299
- var enableLegacyHidden = false;
39300
- var enableDebugTracing = false;
39301
- var REACT_MODULE_REFERENCE;
39302
- {
39303
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
39304
- }
39305
- function isValidElementType(type) {
39306
- if (typeof type === "string" || typeof type === "function") {
39307
- return true;
39308
- }
39309
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
39310
- return true;
39311
- }
39312
- if (typeof type === "object" && type !== null) {
39313
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
39314
- return true;
39315
- }
39316
- }
39317
- return false;
39318
- }
39319
- function getWrappedName(outerType, innerType, wrapperName) {
39320
- var displayName = outerType.displayName;
39321
- if (displayName) {
39322
- return displayName;
39323
- }
39324
- var functionName = innerType.displayName || innerType.name || "";
39325
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
39326
- }
39327
- function getContextName(type) {
39328
- return type.displayName || "Context";
39329
- }
39330
- function getComponentNameFromType(type) {
39331
- if (type == null) {
39332
- return null;
39333
- }
39334
- {
39335
- if (typeof type.tag === "number") {
39336
- error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue.");
39337
- }
39338
- }
39339
- if (typeof type === "function") {
39340
- return type.displayName || type.name || null;
39341
- }
39342
- if (typeof type === "string") {
39343
- return type;
39344
- }
39345
- switch (type) {
39346
- case REACT_FRAGMENT_TYPE:
39347
- return "Fragment";
39348
- case REACT_PORTAL_TYPE:
39349
- return "Portal";
39350
- case REACT_PROFILER_TYPE:
39351
- return "Profiler";
39352
- case REACT_STRICT_MODE_TYPE:
39353
- return "StrictMode";
39354
- case REACT_SUSPENSE_TYPE:
39355
- return "Suspense";
39356
- case REACT_SUSPENSE_LIST_TYPE:
39357
- return "SuspenseList";
39358
- }
39359
- if (typeof type === "object") {
39360
- switch (type.$$typeof) {
39361
- case REACT_CONTEXT_TYPE:
39362
- var context = type;
39363
- return getContextName(context) + ".Consumer";
39364
- case REACT_PROVIDER_TYPE:
39365
- var provider = type;
39366
- return getContextName(provider._context) + ".Provider";
39367
- case REACT_FORWARD_REF_TYPE:
39368
- return getWrappedName(type, type.render, "ForwardRef");
39369
- case REACT_MEMO_TYPE:
39370
- var outerName = type.displayName || null;
39371
- if (outerName !== null) {
39372
- return outerName;
39373
- }
39374
- return getComponentNameFromType(type.type) || "Memo";
39375
- case REACT_LAZY_TYPE: {
39376
- var lazyComponent = type;
39377
- var payload = lazyComponent._payload;
39378
- var init = lazyComponent._init;
39379
- try {
39380
- return getComponentNameFromType(init(payload));
39381
- } catch (x) {
39382
- return null;
39383
- }
39384
- }
39385
- }
39386
- }
39387
- return null;
39388
- }
39389
- var assign = Object.assign;
39390
- var disabledDepth = 0;
39391
- var prevLog;
39392
- var prevInfo;
39393
- var prevWarn;
39394
- var prevError;
39395
- var prevGroup;
39396
- var prevGroupCollapsed;
39397
- var prevGroupEnd;
39398
- function disabledLog() {}
39399
- disabledLog.__reactDisabledLog = true;
39400
- function disableLogs() {
39401
- {
39402
- if (disabledDepth === 0) {
39403
- prevLog = console.log;
39404
- prevInfo = console.info;
39405
- prevWarn = console.warn;
39406
- prevError = console.error;
39407
- prevGroup = console.group;
39408
- prevGroupCollapsed = console.groupCollapsed;
39409
- prevGroupEnd = console.groupEnd;
39410
- var props = {
39411
- configurable: true,
39412
- enumerable: true,
39413
- value: disabledLog,
39414
- writable: true
39415
- };
39416
- Object.defineProperties(console, {
39417
- info: props,
39418
- log: props,
39419
- warn: props,
39420
- error: props,
39421
- group: props,
39422
- groupCollapsed: props,
39423
- groupEnd: props
39424
- });
39425
- }
39426
- disabledDepth++;
39427
- }
39428
- }
39429
- function reenableLogs() {
39430
- {
39431
- disabledDepth--;
39432
- if (disabledDepth === 0) {
39433
- var props = {
39434
- configurable: true,
39435
- enumerable: true,
39436
- writable: true
39437
- };
39438
- Object.defineProperties(console, {
39439
- log: assign({}, props, {
39440
- value: prevLog
39441
- }),
39442
- info: assign({}, props, {
39443
- value: prevInfo
39444
- }),
39445
- warn: assign({}, props, {
39446
- value: prevWarn
39447
- }),
39448
- error: assign({}, props, {
39449
- value: prevError
39450
- }),
39451
- group: assign({}, props, {
39452
- value: prevGroup
39453
- }),
39454
- groupCollapsed: assign({}, props, {
39455
- value: prevGroupCollapsed
39456
- }),
39457
- groupEnd: assign({}, props, {
39458
- value: prevGroupEnd
39459
- })
39460
- });
39461
- }
39462
- if (disabledDepth < 0) {
39463
- error("disabledDepth fell below zero. " + "This is a bug in React. Please file an issue.");
39464
- }
39465
- }
39466
- }
39467
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
39468
- var prefix;
39469
- function describeBuiltInComponentFrame(name, source, ownerFn) {
39470
- {
39471
- if (prefix === undefined) {
39472
- try {
39473
- throw Error();
39474
- } catch (x) {
39475
- var match2 = x.stack.trim().match(/\n( *(at )?)/);
39476
- prefix = match2 && match2[1] || "";
39477
- }
39478
- }
39479
- return `
39480
- ` + prefix + name;
39481
- }
39482
- }
39483
- var reentry = false;
39484
- var componentFrameCache;
39485
- {
39486
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
39487
- componentFrameCache = new PossiblyWeakMap;
39488
- }
39489
- function describeNativeComponentFrame(fn, construct) {
39490
- if (!fn || reentry) {
39491
- return "";
39492
- }
39493
- {
39494
- var frame = componentFrameCache.get(fn);
39495
- if (frame !== undefined) {
39496
- return frame;
39497
- }
39498
- }
39499
- var control;
39500
- reentry = true;
39501
- var previousPrepareStackTrace = Error.prepareStackTrace;
39502
- Error.prepareStackTrace = undefined;
39503
- var previousDispatcher;
39504
- {
39505
- previousDispatcher = ReactCurrentDispatcher.current;
39506
- ReactCurrentDispatcher.current = null;
39507
- disableLogs();
39508
- }
39509
- try {
39510
- if (construct) {
39511
- var Fake = function() {
39512
- throw Error();
39513
- };
39514
- Object.defineProperty(Fake.prototype, "props", {
39515
- set: function() {
39516
- throw Error();
39517
- }
39518
- });
39519
- if (typeof Reflect === "object" && Reflect.construct) {
39520
- try {
39521
- Reflect.construct(Fake, []);
39522
- } catch (x) {
39523
- control = x;
39524
- }
39525
- Reflect.construct(fn, [], Fake);
39526
- } else {
39527
- try {
39528
- Fake.call();
39529
- } catch (x) {
39530
- control = x;
39531
- }
39532
- fn.call(Fake.prototype);
39533
- }
39534
- } else {
39535
- try {
39536
- throw Error();
39537
- } catch (x) {
39538
- control = x;
39539
- }
39540
- fn();
39541
- }
39542
- } catch (sample) {
39543
- if (sample && control && typeof sample.stack === "string") {
39544
- var sampleLines = sample.stack.split(`
39545
- `);
39546
- var controlLines = control.stack.split(`
39547
- `);
39548
- var s = sampleLines.length - 1;
39549
- var c = controlLines.length - 1;
39550
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
39551
- c--;
39552
- }
39553
- for (;s >= 1 && c >= 0; s--, c--) {
39554
- if (sampleLines[s] !== controlLines[c]) {
39555
- if (s !== 1 || c !== 1) {
39556
- do {
39557
- s--;
39558
- c--;
39559
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
39560
- var _frame = `
39561
- ` + sampleLines[s].replace(" at new ", " at ");
39562
- if (fn.displayName && _frame.includes("<anonymous>")) {
39563
- _frame = _frame.replace("<anonymous>", fn.displayName);
39564
- }
39565
- {
39566
- if (typeof fn === "function") {
39567
- componentFrameCache.set(fn, _frame);
39568
- }
39569
- }
39570
- return _frame;
39571
- }
39572
- } while (s >= 1 && c >= 0);
39573
- }
39574
- break;
39575
- }
39576
- }
39577
- }
39578
- } finally {
39579
- reentry = false;
39580
- {
39581
- ReactCurrentDispatcher.current = previousDispatcher;
39582
- reenableLogs();
39583
- }
39584
- Error.prepareStackTrace = previousPrepareStackTrace;
39585
- }
39586
- var name = fn ? fn.displayName || fn.name : "";
39587
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
39588
- {
39589
- if (typeof fn === "function") {
39590
- componentFrameCache.set(fn, syntheticFrame);
39591
- }
39592
- }
39593
- return syntheticFrame;
39594
- }
39595
- function describeFunctionComponentFrame(fn, source, ownerFn) {
39596
- {
39597
- return describeNativeComponentFrame(fn, false);
39598
- }
39599
- }
39600
- function shouldConstruct(Component) {
39601
- var prototype = Component.prototype;
39602
- return !!(prototype && prototype.isReactComponent);
39603
- }
39604
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
39605
- if (type == null) {
39606
- return "";
39607
- }
39608
- if (typeof type === "function") {
39609
- {
39610
- return describeNativeComponentFrame(type, shouldConstruct(type));
39611
- }
39612
- }
39613
- if (typeof type === "string") {
39614
- return describeBuiltInComponentFrame(type);
39615
- }
39616
- switch (type) {
39617
- case REACT_SUSPENSE_TYPE:
39618
- return describeBuiltInComponentFrame("Suspense");
39619
- case REACT_SUSPENSE_LIST_TYPE:
39620
- return describeBuiltInComponentFrame("SuspenseList");
39621
- }
39622
- if (typeof type === "object") {
39623
- switch (type.$$typeof) {
39624
- case REACT_FORWARD_REF_TYPE:
39625
- return describeFunctionComponentFrame(type.render);
39626
- case REACT_MEMO_TYPE:
39627
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
39628
- case REACT_LAZY_TYPE: {
39629
- var lazyComponent = type;
39630
- var payload = lazyComponent._payload;
39631
- var init = lazyComponent._init;
39632
- try {
39633
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
39634
- } catch (x) {}
39635
- }
39636
- }
39637
- }
39638
- return "";
39639
- }
39640
- var hasOwnProperty = Object.prototype.hasOwnProperty;
39641
- var loggedTypeFailures = {};
39642
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
39643
- function setCurrentlyValidatingElement(element) {
39644
- {
39645
- if (element) {
39646
- var owner = element._owner;
39647
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
39648
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
39649
- } else {
39650
- ReactDebugCurrentFrame.setExtraStackFrame(null);
39651
- }
39652
- }
39653
- }
39654
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
39655
- {
39656
- var has2 = Function.call.bind(hasOwnProperty);
39657
- for (var typeSpecName in typeSpecs) {
39658
- if (has2(typeSpecs, typeSpecName)) {
39659
- var error$1 = undefined;
39660
- try {
39661
- if (typeof typeSpecs[typeSpecName] !== "function") {
39662
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
39663
- err.name = "Invariant Violation";
39664
- throw err;
39665
- }
39666
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
39667
- } catch (ex) {
39668
- error$1 = ex;
39669
- }
39670
- if (error$1 && !(error$1 instanceof Error)) {
39671
- setCurrentlyValidatingElement(element);
39672
- error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
39673
- setCurrentlyValidatingElement(null);
39674
- }
39675
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
39676
- loggedTypeFailures[error$1.message] = true;
39677
- setCurrentlyValidatingElement(element);
39678
- error("Failed %s type: %s", location, error$1.message);
39679
- setCurrentlyValidatingElement(null);
39680
- }
39681
- }
39682
- }
39683
- }
39684
- }
39685
- var isArrayImpl = Array.isArray;
39686
- function isArray2(a) {
39687
- return isArrayImpl(a);
39688
- }
39689
- function typeName(value) {
39690
- {
39691
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
39692
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
39693
- return type;
39694
- }
39695
- }
39696
- function willCoercionThrow(value) {
39697
- {
39698
- try {
39699
- testStringCoercion(value);
39700
- return false;
39701
- } catch (e) {
39702
- return true;
39703
- }
39704
- }
39705
- }
39706
- function testStringCoercion(value) {
39707
- return "" + value;
39708
- }
39709
- function checkKeyStringCoercion(value) {
39710
- {
39711
- if (willCoercionThrow(value)) {
39712
- error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value));
39713
- return testStringCoercion(value);
39714
- }
39715
- }
39716
- }
39717
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
39718
- var RESERVED_PROPS = {
39719
- key: true,
39720
- ref: true,
39721
- __self: true,
39722
- __source: true
39723
- };
39724
- var specialPropKeyWarningShown;
39725
- var specialPropRefWarningShown;
39726
- var didWarnAboutStringRefs;
39727
- {
39728
- didWarnAboutStringRefs = {};
39729
- }
39730
- function hasValidRef(config) {
39731
- {
39732
- if (hasOwnProperty.call(config, "ref")) {
39733
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
39734
- if (getter && getter.isReactWarning) {
39735
- return false;
39736
- }
39737
- }
39738
- }
39739
- return config.ref !== undefined;
39740
- }
39741
- function hasValidKey(config) {
39742
- {
39743
- if (hasOwnProperty.call(config, "key")) {
39744
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
39745
- if (getter && getter.isReactWarning) {
39746
- return false;
39747
- }
39748
- }
39749
- }
39750
- return config.key !== undefined;
39751
- }
39752
- function warnIfStringRefCannotBeAutoConverted(config, self) {
39753
- {
39754
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
39755
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
39756
- if (!didWarnAboutStringRefs[componentName]) {
39757
- error('Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
39758
- didWarnAboutStringRefs[componentName] = true;
39759
- }
39760
- }
39761
- }
39762
- }
39763
- function defineKeyPropWarningGetter(props, displayName) {
39764
- {
39765
- var warnAboutAccessingKey = function() {
39766
- if (!specialPropKeyWarningShown) {
39767
- specialPropKeyWarningShown = true;
39768
- error("%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
39769
- }
39770
- };
39771
- warnAboutAccessingKey.isReactWarning = true;
39772
- Object.defineProperty(props, "key", {
39773
- get: warnAboutAccessingKey,
39774
- configurable: true
39775
- });
39776
- }
39777
- }
39778
- function defineRefPropWarningGetter(props, displayName) {
39779
- {
39780
- var warnAboutAccessingRef = function() {
39781
- if (!specialPropRefWarningShown) {
39782
- specialPropRefWarningShown = true;
39783
- error("%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
39784
- }
39785
- };
39786
- warnAboutAccessingRef.isReactWarning = true;
39787
- Object.defineProperty(props, "ref", {
39788
- get: warnAboutAccessingRef,
39789
- configurable: true
39790
- });
39791
- }
39792
- }
39793
- var ReactElement = function(type, key, ref, self, source, owner, props) {
39794
- var element = {
39795
- $$typeof: REACT_ELEMENT_TYPE,
39796
- type,
39797
- key,
39798
- ref,
39799
- props,
39800
- _owner: owner
39801
- };
39802
- {
39803
- element._store = {};
39804
- Object.defineProperty(element._store, "validated", {
39805
- configurable: false,
39806
- enumerable: false,
39807
- writable: true,
39808
- value: false
39809
- });
39810
- Object.defineProperty(element, "_self", {
39811
- configurable: false,
39812
- enumerable: false,
39813
- writable: false,
39814
- value: self
39815
- });
39816
- Object.defineProperty(element, "_source", {
39817
- configurable: false,
39818
- enumerable: false,
39819
- writable: false,
39820
- value: source
39821
- });
39822
- if (Object.freeze) {
39823
- Object.freeze(element.props);
39824
- Object.freeze(element);
39825
- }
39826
- }
39827
- return element;
39828
- };
39829
- function jsxDEV11(type, config, maybeKey, source, self) {
39830
- {
39831
- var propName;
39832
- var props = {};
39833
- var key = null;
39834
- var ref = null;
39835
- if (maybeKey !== undefined) {
39836
- {
39837
- checkKeyStringCoercion(maybeKey);
39838
- }
39839
- key = "" + maybeKey;
39840
- }
39841
- if (hasValidKey(config)) {
39842
- {
39843
- checkKeyStringCoercion(config.key);
39844
- }
39845
- key = "" + config.key;
39846
- }
39847
- if (hasValidRef(config)) {
39848
- ref = config.ref;
39849
- warnIfStringRefCannotBeAutoConverted(config, self);
39850
- }
39851
- for (propName in config) {
39852
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
39853
- props[propName] = config[propName];
39854
- }
39855
- }
39856
- if (type && type.defaultProps) {
39857
- var defaultProps = type.defaultProps;
39858
- for (propName in defaultProps) {
39859
- if (props[propName] === undefined) {
39860
- props[propName] = defaultProps[propName];
39861
- }
39862
- }
39863
- }
39864
- if (key || ref) {
39865
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
39866
- if (key) {
39867
- defineKeyPropWarningGetter(props, displayName);
39868
- }
39869
- if (ref) {
39870
- defineRefPropWarningGetter(props, displayName);
39871
- }
39872
- }
39873
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
39874
- }
39875
- }
39876
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
39877
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
39878
- function setCurrentlyValidatingElement$1(element) {
39879
- {
39880
- if (element) {
39881
- var owner = element._owner;
39882
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
39883
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
39884
- } else {
39885
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
39886
- }
39887
- }
39888
- }
39889
- var propTypesMisspellWarningShown;
39890
- {
39891
- propTypesMisspellWarningShown = false;
39892
- }
39893
- function isValidElement(object) {
39894
- {
39895
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
39896
- }
39897
- }
39898
- function getDeclarationErrorAddendum() {
39899
- {
39900
- if (ReactCurrentOwner$1.current) {
39901
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
39902
- if (name) {
39903
- return `
39904
-
39905
- Check the render method of \`` + name + "`.";
39906
- }
39907
- }
39908
- return "";
39909
- }
39910
- }
39911
- function getSourceInfoErrorAddendum(source) {
39912
- {
39913
- if (source !== undefined) {
39914
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
39915
- var lineNumber = source.lineNumber;
39916
- return `
39917
-
39918
- Check your code at ` + fileName + ":" + lineNumber + ".";
39919
- }
39920
- return "";
39921
- }
39922
- }
39923
- var ownerHasKeyUseWarning = {};
39924
- function getCurrentComponentErrorInfo(parentType) {
39925
- {
39926
- var info = getDeclarationErrorAddendum();
39927
- if (!info) {
39928
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
39929
- if (parentName) {
39930
- info = `
39931
-
39932
- Check the top-level render call using <` + parentName + ">.";
39933
- }
39934
- }
39935
- return info;
39936
- }
39937
- }
39938
- function validateExplicitKey(element, parentType) {
39939
- {
39940
- if (!element._store || element._store.validated || element.key != null) {
39941
- return;
39942
- }
39943
- element._store.validated = true;
39944
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
39945
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
39946
- return;
39947
- }
39948
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
39949
- var childOwner = "";
39950
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
39951
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
39952
- }
39953
- setCurrentlyValidatingElement$1(element);
39954
- error('Each child in a list should have a unique "key" prop.' + "%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
39955
- setCurrentlyValidatingElement$1(null);
39956
- }
39957
- }
39958
- function validateChildKeys(node, parentType) {
39959
- {
39960
- if (typeof node !== "object") {
39961
- return;
39962
- }
39963
- if (isArray2(node)) {
39964
- for (var i = 0;i < node.length; i++) {
39965
- var child = node[i];
39966
- if (isValidElement(child)) {
39967
- validateExplicitKey(child, parentType);
39968
- }
39969
- }
39970
- } else if (isValidElement(node)) {
39971
- if (node._store) {
39972
- node._store.validated = true;
39973
- }
39974
- } else if (node) {
39975
- var iteratorFn = getIteratorFn(node);
39976
- if (typeof iteratorFn === "function") {
39977
- if (iteratorFn !== node.entries) {
39978
- var iterator = iteratorFn.call(node);
39979
- var step;
39980
- while (!(step = iterator.next()).done) {
39981
- if (isValidElement(step.value)) {
39982
- validateExplicitKey(step.value, parentType);
39983
- }
39984
- }
39985
- }
39986
- }
39987
- }
39988
- }
39989
- }
39990
- function validatePropTypes(element) {
39991
- {
39992
- var type = element.type;
39993
- if (type === null || type === undefined || typeof type === "string") {
39994
- return;
39995
- }
39996
- var propTypes;
39997
- if (typeof type === "function") {
39998
- propTypes = type.propTypes;
39999
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
40000
- propTypes = type.propTypes;
40001
- } else {
40002
- return;
40003
- }
40004
- if (propTypes) {
40005
- var name = getComponentNameFromType(type);
40006
- checkPropTypes(propTypes, element.props, "prop", name, element);
40007
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
40008
- propTypesMisspellWarningShown = true;
40009
- var _name = getComponentNameFromType(type);
40010
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
40011
- }
40012
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
40013
- error("getDefaultProps is only used on classic React.createClass " + "definitions. Use a static property named `defaultProps` instead.");
40014
- }
40015
- }
40016
- }
40017
- function validateFragmentProps(fragment) {
40018
- {
40019
- var keys = Object.keys(fragment.props);
40020
- for (var i = 0;i < keys.length; i++) {
40021
- var key = keys[i];
40022
- if (key !== "children" && key !== "key") {
40023
- setCurrentlyValidatingElement$1(fragment);
40024
- error("Invalid prop `%s` supplied to `React.Fragment`. " + "React.Fragment can only have `key` and `children` props.", key);
40025
- setCurrentlyValidatingElement$1(null);
40026
- break;
40027
- }
40028
- }
40029
- if (fragment.ref !== null) {
40030
- setCurrentlyValidatingElement$1(fragment);
40031
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
40032
- setCurrentlyValidatingElement$1(null);
40033
- }
40034
- }
40035
- }
40036
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
40037
- {
40038
- var validType = isValidElementType(type);
40039
- if (!validType) {
40040
- var info = "";
40041
- if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
40042
- info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and named imports.";
40043
- }
40044
- var sourceInfo = getSourceInfoErrorAddendum(source);
40045
- if (sourceInfo) {
40046
- info += sourceInfo;
40047
- } else {
40048
- info += getDeclarationErrorAddendum();
40049
- }
40050
- var typeString;
40051
- if (type === null) {
40052
- typeString = "null";
40053
- } else if (isArray2(type)) {
40054
- typeString = "array";
40055
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
40056
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
40057
- info = " Did you accidentally export a JSX literal instead of a component?";
40058
- } else {
40059
- typeString = typeof type;
40060
- }
40061
- error("React.jsx: type is invalid -- expected a string (for " + "built-in components) or a class/function (for composite " + "components) but got: %s.%s", typeString, info);
40062
- }
40063
- var element = jsxDEV11(type, props, key, source, self);
40064
- if (element == null) {
40065
- return element;
40066
- }
40067
- if (validType) {
40068
- var children = props.children;
40069
- if (children !== undefined) {
40070
- if (isStaticChildren) {
40071
- if (isArray2(children)) {
40072
- for (var i = 0;i < children.length; i++) {
40073
- validateChildKeys(children[i], type);
40074
- }
40075
- if (Object.freeze) {
40076
- Object.freeze(children);
40077
- }
40078
- } else {
40079
- error("React.jsx: Static children should always be an array. " + "You are likely explicitly calling React.jsxs or React.jsxDEV. " + "Use the Babel transform instead.");
40080
- }
40081
- } else {
40082
- validateChildKeys(children, type);
40083
- }
40084
- }
40085
- }
40086
- if (type === REACT_FRAGMENT_TYPE) {
40087
- validateFragmentProps(element);
40088
- } else {
40089
- validatePropTypes(element);
40090
- }
40091
- return element;
40092
- }
40093
- }
40094
- function jsxWithValidationStatic(type, props, key) {
40095
- {
40096
- return jsxWithValidation(type, props, key, true);
40097
- }
40098
- }
40099
- function jsxWithValidationDynamic(type, props, key) {
40100
- {
40101
- return jsxWithValidation(type, props, key, false);
40102
- }
40103
- }
40104
- var jsx = jsxWithValidationDynamic;
40105
- var jsxs = jsxWithValidationStatic;
40106
- exports.Fragment = REACT_FRAGMENT_TYPE;
40107
- exports.jsx = jsx;
40108
- exports.jsxs = jsxs;
40109
- })();
40110
- }
40111
- });
40112
-
40113
- // node_modules/react/jsx-runtime.js
40114
- var require_jsx_runtime = __commonJS((exports, module) => {
40115
- var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development(), 1);
40116
- if (false) {} else {
40117
- module.exports = react_jsx_runtime_development;
40118
- }
40119
- });
40120
-
40121
- // node_modules/supports-color/index.js
40122
- import process19 from "node:process";
40123
- import os3 from "node:os";
40124
- import tty2 from "node:tty";
40125
- function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process19.argv) {
40126
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
40127
- const position = argv.indexOf(prefix + flag);
40128
- const terminatorPosition = argv.indexOf("--");
40129
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
40130
- }
40131
- function envForceColor2() {
40132
- if (!("FORCE_COLOR" in env3)) {
40133
- return;
40134
- }
40135
- if (env3.FORCE_COLOR === "true") {
40136
- return 1;
40137
- }
40138
- if (env3.FORCE_COLOR === "false") {
40139
- return 0;
40140
- }
40141
- if (env3.FORCE_COLOR.length === 0) {
40142
- return 1;
40143
- }
40144
- const level = Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
40145
- if (![0, 1, 2, 3].includes(level)) {
40146
- return;
40147
- }
40148
- return level;
40149
- }
40150
- function translateLevel2(level) {
40151
- if (level === 0) {
40152
- return false;
40153
- }
40154
- return {
40155
- level,
40156
- hasBasic: true,
40157
- has256: level >= 2,
40158
- has16m: level >= 3
40159
- };
40160
- }
40161
- function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
40162
- const noFlagForceColor = envForceColor2();
40163
- if (noFlagForceColor !== undefined) {
40164
- flagForceColor2 = noFlagForceColor;
40165
- }
40166
- const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
40167
- if (forceColor === 0) {
40168
- return 0;
40169
- }
40170
- if (sniffFlags) {
40171
- if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
40172
- return 3;
40173
- }
40174
- if (hasFlag2("color=256")) {
40175
- return 2;
40176
- }
40177
- }
40178
- if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
40179
- return 1;
40180
- }
40181
- if (haveStream && !streamIsTTY && forceColor === undefined) {
40182
- return 0;
40183
- }
40184
- const min = forceColor || 0;
40185
- if (env3.TERM === "dumb") {
40186
- return min;
40187
- }
40188
- if (process19.platform === "win32") {
40189
- const osRelease = os3.release().split(".");
40190
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
40191
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
40192
- }
40193
- return 1;
40194
- }
40195
- if ("CI" in env3) {
40196
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env3))) {
40197
- return 3;
40198
- }
40199
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env3)) || env3.CI_NAME === "codeship") {
40200
- return 1;
40201
- }
40202
- return min;
40203
- }
40204
- if ("TEAMCITY_VERSION" in env3) {
40205
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
40206
- }
40207
- if (env3.COLORTERM === "truecolor") {
40208
- return 3;
40209
- }
40210
- if (env3.TERM === "xterm-kitty") {
40211
- return 3;
40212
- }
40213
- if (env3.TERM === "xterm-ghostty") {
40214
- return 3;
40215
- }
40216
- if (env3.TERM === "wezterm") {
40217
- return 3;
40218
- }
40219
- if ("TERM_PROGRAM" in env3) {
40220
- const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
40221
- switch (env3.TERM_PROGRAM) {
40222
- case "iTerm.app": {
40223
- return version >= 3 ? 3 : 2;
40224
- }
40225
- case "Apple_Terminal": {
40226
- return 2;
40227
- }
40228
- }
40229
- }
40230
- if (/-256(color)?$/i.test(env3.TERM)) {
40231
- return 2;
40232
- }
40233
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
40234
- return 1;
40235
- }
40236
- if ("COLORTERM" in env3) {
40237
- return 1;
40238
- }
40239
- return min;
40240
- }
40241
- function createSupportsColor2(stream, options = {}) {
40242
- const level = _supportsColor2(stream, {
40243
- streamIsTTY: stream && stream.isTTY,
40244
- ...options
40245
- });
40246
- return translateLevel2(level);
40247
- }
40248
- var env3, flagForceColor2, supportsColor2;
40249
- var init_supports_color2 = __esm(() => {
40250
- ({ env: env3 } = process19);
40251
- if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
40252
- flagForceColor2 = 0;
40253
- } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
40254
- flagForceColor2 = 1;
40255
- }
40256
- supportsColor2 = {
40257
- stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
40258
- stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
40259
- };
40260
- });
40261
-
40262
- // node_modules/has-flag/index.js
40263
- import process20 from "process";
40264
- function hasFlag3(flag, argv = process20.argv) {
40265
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
40266
- const position = argv.indexOf(prefix + flag);
40267
- const terminatorPosition = argv.indexOf("--");
40268
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
40269
- }
40270
- var init_has_flag = () => {};
40271
-
40272
- // node_modules/supports-hyperlinks/index.js
40273
- import process21 from "node:process";
40274
- function parseVersion(versionString = "") {
40275
- if (/^\d{3,4}$/.test(versionString)) {
40276
- const match2 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
40277
- return {
40278
- major: 0,
40279
- minor: Number.parseInt(match2[1], 10),
40280
- patch: Number.parseInt(match2[2], 10)
40281
- };
40282
- }
40283
- const versions = (versionString ?? "").split(".").map((n) => Number.parseInt(n, 10));
40284
- return {
40285
- major: versions[0],
40286
- minor: versions[1],
40287
- patch: versions[2]
40288
- };
40289
- }
40290
- function createSupportsHyperlinks(stream) {
40291
- const {
40292
- CI,
40293
- CURSOR_TRACE_ID,
40294
- FORCE_HYPERLINK,
40295
- NETLIFY,
40296
- TEAMCITY_VERSION,
40297
- TERM_PROGRAM,
40298
- TERM_PROGRAM_VERSION,
40299
- VTE_VERSION,
40300
- TERM
40301
- } = process21.env;
40302
- if (FORCE_HYPERLINK) {
40303
- return !(FORCE_HYPERLINK.length > 0 && Number.parseInt(FORCE_HYPERLINK, 10) === 0);
40304
- }
40305
- if (hasFlag3("no-hyperlink") || hasFlag3("no-hyperlinks") || hasFlag3("hyperlink=false") || hasFlag3("hyperlink=never")) {
40306
- return false;
40307
- }
40308
- if (hasFlag3("hyperlink=true") || hasFlag3("hyperlink=always")) {
40309
- return true;
40310
- }
40311
- if (NETLIFY) {
40312
- return true;
40313
- }
40314
- if (!createSupportsColor2(stream)) {
40315
- return false;
40316
- }
40317
- if (stream && !stream.isTTY) {
40318
- return false;
40319
- }
40320
- if ("WT_SESSION" in process21.env) {
40321
- return true;
40322
- }
40323
- if (process21.platform === "win32") {
40324
- return false;
40325
- }
40326
- if (CI) {
40327
- return false;
40328
- }
40329
- if (TEAMCITY_VERSION) {
40330
- return false;
40331
- }
40332
- if (TERM_PROGRAM) {
40333
- const version = parseVersion(TERM_PROGRAM_VERSION);
40334
- switch (TERM_PROGRAM) {
40335
- case "iTerm.app": {
40336
- if (version.major === 3) {
40337
- return version.minor >= 1;
40338
- }
40339
- return version.major > 3;
40340
- }
40341
- case "WezTerm": {
40342
- if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
40343
- const date = TERM_PROGRAM_VERSION.slice("0-unstable-".length);
40344
- return date >= "2020-06-20";
40345
- }
40346
- return version.major >= 20200620;
40347
- }
40348
- case "vscode": {
40349
- if (CURSOR_TRACE_ID) {
40350
- return true;
40351
- }
40352
- return version.major > 1 || version.major === 1 && version.minor >= 72;
40353
- }
40354
- case "ghostty": {
40355
- return true;
40356
- }
40357
- }
40358
- }
40359
- if (VTE_VERSION) {
40360
- if (VTE_VERSION === "0.50.0") {
40361
- return false;
40362
- }
40363
- const version = parseVersion(VTE_VERSION);
40364
- return version.major > 0 || version.minor >= 50;
40365
- }
40366
- switch (TERM) {
40367
- case "alacritty": {
40368
- return true;
40369
- }
40370
- case "xterm-kitty": {
40371
- return true;
40372
- }
40373
- }
40374
- return false;
40375
- }
40376
- var supportsHyperlinks, supports_hyperlinks_default;
40377
- var init_supports_hyperlinks = __esm(() => {
40378
- init_supports_color2();
40379
- init_has_flag();
40380
- supportsHyperlinks = {
40381
- stdout: createSupportsHyperlinks(process21.stdout),
40382
- stderr: createSupportsHyperlinks(process21.stderr)
40383
- };
40384
- supports_hyperlinks_default = supportsHyperlinks;
40385
- });
40386
-
40387
- // node_modules/terminal-link/index.js
40388
- function terminalLink(text, url, { target = "stdout", ...options } = {}) {
40389
- if (!supports_hyperlinks_default[target]) {
40390
- if (options.fallback === false) {
40391
- return text;
40392
- }
40393
- if (typeof options.fallback === "function") {
40394
- return options.fallback(text, url);
40395
- }
40396
- return `${text} ${url}`;
40397
- }
40398
- return exports_base.link(text, url);
40399
- }
40400
- var init_terminal_link = __esm(() => {
40401
- init_ansi_escapes();
40402
- init_supports_hyperlinks();
40403
- terminalLink.isSupported = supports_hyperlinks_default.stdout;
40404
- terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
40405
- terminalLink.stderr.isSupported = supports_hyperlinks_default.stderr;
40406
- });
40407
-
40408
- // node_modules/ink-link/dist/index.js
40409
- var import_jsx_runtime, Link = ({ children, url, fallback = true }) => import_jsx_runtime.jsx(Transform, { transform: (children2) => terminalLink(children2, url, { fallback }), children: import_jsx_runtime.jsx(Text, { children }) }), dist_default4;
40410
- var init_dist4 = __esm(async () => {
40411
- init_terminal_link();
40412
- await init_build2();
40413
- import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
40414
- dist_default4 = Link;
40415
- });
40416
-
40417
39299
  // node_modules/cli-spinners/spinners.json
40418
39300
  var require_spinners = __commonJS((exports, module) => {
40419
39301
  module.exports = {
@@ -42040,43 +40922,1220 @@ var require_spinners = __commonJS((exports, module) => {
42040
40922
  };
42041
40923
  });
42042
40924
 
42043
- // node_modules/cli-spinners/index.js
42044
- var require_cli_spinners = __commonJS((exports, module) => {
42045
- var spinners = Object.assign({}, require_spinners());
42046
- var spinnersList = Object.keys(spinners);
42047
- Object.defineProperty(spinners, "random", {
42048
- get() {
42049
- const randomIndex = Math.floor(Math.random() * spinnersList.length);
42050
- const spinnerName = spinnersList[randomIndex];
42051
- return spinners[spinnerName];
40925
+ // node_modules/cli-spinners/index.js
40926
+ var require_cli_spinners = __commonJS((exports, module) => {
40927
+ var spinners = Object.assign({}, require_spinners());
40928
+ var spinnersList = Object.keys(spinners);
40929
+ Object.defineProperty(spinners, "random", {
40930
+ get() {
40931
+ const randomIndex = Math.floor(Math.random() * spinnersList.length);
40932
+ const spinnerName = spinnersList[randomIndex];
40933
+ return spinners[spinnerName];
40934
+ }
40935
+ });
40936
+ module.exports = spinners;
40937
+ });
40938
+
40939
+ // node_modules/ink-spinner/build/index.js
40940
+ function Spinner({ type = "dots" }) {
40941
+ const [frame, setFrame] = import_react32.useState(0);
40942
+ const spinner = import_cli_spinners.default[type];
40943
+ import_react32.useEffect(() => {
40944
+ const timer = setInterval(() => {
40945
+ setFrame((previousFrame) => {
40946
+ const isLastFrame = previousFrame === spinner.frames.length - 1;
40947
+ return isLastFrame ? 0 : previousFrame + 1;
40948
+ });
40949
+ }, spinner.interval);
40950
+ return () => {
40951
+ clearInterval(timer);
40952
+ };
40953
+ }, [spinner]);
40954
+ return import_react32.default.createElement(Text, null, spinner.frames[frame]);
40955
+ }
40956
+ var import_react32, import_cli_spinners, build_default2;
40957
+ var init_build5 = __esm(async () => {
40958
+ await init_build2();
40959
+ import_react32 = __toESM(require_react(), 1);
40960
+ import_cli_spinners = __toESM(require_cli_spinners(), 1);
40961
+ build_default2 = Spinner;
40962
+ });
40963
+
40964
+ // node_modules/react/cjs/react-jsx-runtime.development.js
40965
+ var require_react_jsx_runtime_development = __commonJS((exports) => {
40966
+ var React13 = __toESM(require_react(), 1);
40967
+ if (true) {
40968
+ (function() {
40969
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
40970
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
40971
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
40972
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
40973
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
40974
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
40975
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
40976
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
40977
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
40978
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
40979
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
40980
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
40981
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
40982
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
40983
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
40984
+ function getIteratorFn(maybeIterable) {
40985
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
40986
+ return null;
40987
+ }
40988
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
40989
+ if (typeof maybeIterator === "function") {
40990
+ return maybeIterator;
40991
+ }
40992
+ return null;
40993
+ }
40994
+ var ReactSharedInternals = React13.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
40995
+ function error(format) {
40996
+ {
40997
+ {
40998
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
40999
+ args[_key2 - 1] = arguments[_key2];
41000
+ }
41001
+ printWarning("error", format, args);
41002
+ }
41003
+ }
41004
+ }
41005
+ function printWarning(level, format, args) {
41006
+ {
41007
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
41008
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
41009
+ if (stack !== "") {
41010
+ format += "%s";
41011
+ args = args.concat([stack]);
41012
+ }
41013
+ var argsWithFormat = args.map(function(item) {
41014
+ return String(item);
41015
+ });
41016
+ argsWithFormat.unshift("Warning: " + format);
41017
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
41018
+ }
41019
+ }
41020
+ var enableScopeAPI = false;
41021
+ var enableCacheElement = false;
41022
+ var enableTransitionTracing = false;
41023
+ var enableLegacyHidden = false;
41024
+ var enableDebugTracing = false;
41025
+ var REACT_MODULE_REFERENCE;
41026
+ {
41027
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
41028
+ }
41029
+ function isValidElementType(type) {
41030
+ if (typeof type === "string" || typeof type === "function") {
41031
+ return true;
41032
+ }
41033
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
41034
+ return true;
41035
+ }
41036
+ if (typeof type === "object" && type !== null) {
41037
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
41038
+ return true;
41039
+ }
41040
+ }
41041
+ return false;
41042
+ }
41043
+ function getWrappedName(outerType, innerType, wrapperName) {
41044
+ var displayName = outerType.displayName;
41045
+ if (displayName) {
41046
+ return displayName;
41047
+ }
41048
+ var functionName = innerType.displayName || innerType.name || "";
41049
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
41050
+ }
41051
+ function getContextName(type) {
41052
+ return type.displayName || "Context";
41053
+ }
41054
+ function getComponentNameFromType(type) {
41055
+ if (type == null) {
41056
+ return null;
41057
+ }
41058
+ {
41059
+ if (typeof type.tag === "number") {
41060
+ error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue.");
41061
+ }
41062
+ }
41063
+ if (typeof type === "function") {
41064
+ return type.displayName || type.name || null;
41065
+ }
41066
+ if (typeof type === "string") {
41067
+ return type;
41068
+ }
41069
+ switch (type) {
41070
+ case REACT_FRAGMENT_TYPE:
41071
+ return "Fragment";
41072
+ case REACT_PORTAL_TYPE:
41073
+ return "Portal";
41074
+ case REACT_PROFILER_TYPE:
41075
+ return "Profiler";
41076
+ case REACT_STRICT_MODE_TYPE:
41077
+ return "StrictMode";
41078
+ case REACT_SUSPENSE_TYPE:
41079
+ return "Suspense";
41080
+ case REACT_SUSPENSE_LIST_TYPE:
41081
+ return "SuspenseList";
41082
+ }
41083
+ if (typeof type === "object") {
41084
+ switch (type.$$typeof) {
41085
+ case REACT_CONTEXT_TYPE:
41086
+ var context = type;
41087
+ return getContextName(context) + ".Consumer";
41088
+ case REACT_PROVIDER_TYPE:
41089
+ var provider = type;
41090
+ return getContextName(provider._context) + ".Provider";
41091
+ case REACT_FORWARD_REF_TYPE:
41092
+ return getWrappedName(type, type.render, "ForwardRef");
41093
+ case REACT_MEMO_TYPE:
41094
+ var outerName = type.displayName || null;
41095
+ if (outerName !== null) {
41096
+ return outerName;
41097
+ }
41098
+ return getComponentNameFromType(type.type) || "Memo";
41099
+ case REACT_LAZY_TYPE: {
41100
+ var lazyComponent = type;
41101
+ var payload = lazyComponent._payload;
41102
+ var init = lazyComponent._init;
41103
+ try {
41104
+ return getComponentNameFromType(init(payload));
41105
+ } catch (x) {
41106
+ return null;
41107
+ }
41108
+ }
41109
+ }
41110
+ }
41111
+ return null;
41112
+ }
41113
+ var assign = Object.assign;
41114
+ var disabledDepth = 0;
41115
+ var prevLog;
41116
+ var prevInfo;
41117
+ var prevWarn;
41118
+ var prevError;
41119
+ var prevGroup;
41120
+ var prevGroupCollapsed;
41121
+ var prevGroupEnd;
41122
+ function disabledLog() {}
41123
+ disabledLog.__reactDisabledLog = true;
41124
+ function disableLogs() {
41125
+ {
41126
+ if (disabledDepth === 0) {
41127
+ prevLog = console.log;
41128
+ prevInfo = console.info;
41129
+ prevWarn = console.warn;
41130
+ prevError = console.error;
41131
+ prevGroup = console.group;
41132
+ prevGroupCollapsed = console.groupCollapsed;
41133
+ prevGroupEnd = console.groupEnd;
41134
+ var props = {
41135
+ configurable: true,
41136
+ enumerable: true,
41137
+ value: disabledLog,
41138
+ writable: true
41139
+ };
41140
+ Object.defineProperties(console, {
41141
+ info: props,
41142
+ log: props,
41143
+ warn: props,
41144
+ error: props,
41145
+ group: props,
41146
+ groupCollapsed: props,
41147
+ groupEnd: props
41148
+ });
41149
+ }
41150
+ disabledDepth++;
41151
+ }
41152
+ }
41153
+ function reenableLogs() {
41154
+ {
41155
+ disabledDepth--;
41156
+ if (disabledDepth === 0) {
41157
+ var props = {
41158
+ configurable: true,
41159
+ enumerable: true,
41160
+ writable: true
41161
+ };
41162
+ Object.defineProperties(console, {
41163
+ log: assign({}, props, {
41164
+ value: prevLog
41165
+ }),
41166
+ info: assign({}, props, {
41167
+ value: prevInfo
41168
+ }),
41169
+ warn: assign({}, props, {
41170
+ value: prevWarn
41171
+ }),
41172
+ error: assign({}, props, {
41173
+ value: prevError
41174
+ }),
41175
+ group: assign({}, props, {
41176
+ value: prevGroup
41177
+ }),
41178
+ groupCollapsed: assign({}, props, {
41179
+ value: prevGroupCollapsed
41180
+ }),
41181
+ groupEnd: assign({}, props, {
41182
+ value: prevGroupEnd
41183
+ })
41184
+ });
41185
+ }
41186
+ if (disabledDepth < 0) {
41187
+ error("disabledDepth fell below zero. " + "This is a bug in React. Please file an issue.");
41188
+ }
41189
+ }
41190
+ }
41191
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
41192
+ var prefix;
41193
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
41194
+ {
41195
+ if (prefix === undefined) {
41196
+ try {
41197
+ throw Error();
41198
+ } catch (x) {
41199
+ var match2 = x.stack.trim().match(/\n( *(at )?)/);
41200
+ prefix = match2 && match2[1] || "";
41201
+ }
41202
+ }
41203
+ return `
41204
+ ` + prefix + name;
41205
+ }
41206
+ }
41207
+ var reentry = false;
41208
+ var componentFrameCache;
41209
+ {
41210
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
41211
+ componentFrameCache = new PossiblyWeakMap;
41212
+ }
41213
+ function describeNativeComponentFrame(fn, construct) {
41214
+ if (!fn || reentry) {
41215
+ return "";
41216
+ }
41217
+ {
41218
+ var frame = componentFrameCache.get(fn);
41219
+ if (frame !== undefined) {
41220
+ return frame;
41221
+ }
41222
+ }
41223
+ var control;
41224
+ reentry = true;
41225
+ var previousPrepareStackTrace = Error.prepareStackTrace;
41226
+ Error.prepareStackTrace = undefined;
41227
+ var previousDispatcher;
41228
+ {
41229
+ previousDispatcher = ReactCurrentDispatcher.current;
41230
+ ReactCurrentDispatcher.current = null;
41231
+ disableLogs();
41232
+ }
41233
+ try {
41234
+ if (construct) {
41235
+ var Fake = function() {
41236
+ throw Error();
41237
+ };
41238
+ Object.defineProperty(Fake.prototype, "props", {
41239
+ set: function() {
41240
+ throw Error();
41241
+ }
41242
+ });
41243
+ if (typeof Reflect === "object" && Reflect.construct) {
41244
+ try {
41245
+ Reflect.construct(Fake, []);
41246
+ } catch (x) {
41247
+ control = x;
41248
+ }
41249
+ Reflect.construct(fn, [], Fake);
41250
+ } else {
41251
+ try {
41252
+ Fake.call();
41253
+ } catch (x) {
41254
+ control = x;
41255
+ }
41256
+ fn.call(Fake.prototype);
41257
+ }
41258
+ } else {
41259
+ try {
41260
+ throw Error();
41261
+ } catch (x) {
41262
+ control = x;
41263
+ }
41264
+ fn();
41265
+ }
41266
+ } catch (sample) {
41267
+ if (sample && control && typeof sample.stack === "string") {
41268
+ var sampleLines = sample.stack.split(`
41269
+ `);
41270
+ var controlLines = control.stack.split(`
41271
+ `);
41272
+ var s = sampleLines.length - 1;
41273
+ var c = controlLines.length - 1;
41274
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
41275
+ c--;
41276
+ }
41277
+ for (;s >= 1 && c >= 0; s--, c--) {
41278
+ if (sampleLines[s] !== controlLines[c]) {
41279
+ if (s !== 1 || c !== 1) {
41280
+ do {
41281
+ s--;
41282
+ c--;
41283
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
41284
+ var _frame = `
41285
+ ` + sampleLines[s].replace(" at new ", " at ");
41286
+ if (fn.displayName && _frame.includes("<anonymous>")) {
41287
+ _frame = _frame.replace("<anonymous>", fn.displayName);
41288
+ }
41289
+ {
41290
+ if (typeof fn === "function") {
41291
+ componentFrameCache.set(fn, _frame);
41292
+ }
41293
+ }
41294
+ return _frame;
41295
+ }
41296
+ } while (s >= 1 && c >= 0);
41297
+ }
41298
+ break;
41299
+ }
41300
+ }
41301
+ }
41302
+ } finally {
41303
+ reentry = false;
41304
+ {
41305
+ ReactCurrentDispatcher.current = previousDispatcher;
41306
+ reenableLogs();
41307
+ }
41308
+ Error.prepareStackTrace = previousPrepareStackTrace;
41309
+ }
41310
+ var name = fn ? fn.displayName || fn.name : "";
41311
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
41312
+ {
41313
+ if (typeof fn === "function") {
41314
+ componentFrameCache.set(fn, syntheticFrame);
41315
+ }
41316
+ }
41317
+ return syntheticFrame;
41318
+ }
41319
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
41320
+ {
41321
+ return describeNativeComponentFrame(fn, false);
41322
+ }
41323
+ }
41324
+ function shouldConstruct(Component) {
41325
+ var prototype = Component.prototype;
41326
+ return !!(prototype && prototype.isReactComponent);
41327
+ }
41328
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
41329
+ if (type == null) {
41330
+ return "";
41331
+ }
41332
+ if (typeof type === "function") {
41333
+ {
41334
+ return describeNativeComponentFrame(type, shouldConstruct(type));
41335
+ }
41336
+ }
41337
+ if (typeof type === "string") {
41338
+ return describeBuiltInComponentFrame(type);
41339
+ }
41340
+ switch (type) {
41341
+ case REACT_SUSPENSE_TYPE:
41342
+ return describeBuiltInComponentFrame("Suspense");
41343
+ case REACT_SUSPENSE_LIST_TYPE:
41344
+ return describeBuiltInComponentFrame("SuspenseList");
41345
+ }
41346
+ if (typeof type === "object") {
41347
+ switch (type.$$typeof) {
41348
+ case REACT_FORWARD_REF_TYPE:
41349
+ return describeFunctionComponentFrame(type.render);
41350
+ case REACT_MEMO_TYPE:
41351
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
41352
+ case REACT_LAZY_TYPE: {
41353
+ var lazyComponent = type;
41354
+ var payload = lazyComponent._payload;
41355
+ var init = lazyComponent._init;
41356
+ try {
41357
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
41358
+ } catch (x) {}
41359
+ }
41360
+ }
41361
+ }
41362
+ return "";
41363
+ }
41364
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
41365
+ var loggedTypeFailures = {};
41366
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
41367
+ function setCurrentlyValidatingElement(element) {
41368
+ {
41369
+ if (element) {
41370
+ var owner = element._owner;
41371
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
41372
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
41373
+ } else {
41374
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
41375
+ }
41376
+ }
41377
+ }
41378
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
41379
+ {
41380
+ var has2 = Function.call.bind(hasOwnProperty);
41381
+ for (var typeSpecName in typeSpecs) {
41382
+ if (has2(typeSpecs, typeSpecName)) {
41383
+ var error$1 = undefined;
41384
+ try {
41385
+ if (typeof typeSpecs[typeSpecName] !== "function") {
41386
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
41387
+ err.name = "Invariant Violation";
41388
+ throw err;
41389
+ }
41390
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
41391
+ } catch (ex) {
41392
+ error$1 = ex;
41393
+ }
41394
+ if (error$1 && !(error$1 instanceof Error)) {
41395
+ setCurrentlyValidatingElement(element);
41396
+ error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
41397
+ setCurrentlyValidatingElement(null);
41398
+ }
41399
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
41400
+ loggedTypeFailures[error$1.message] = true;
41401
+ setCurrentlyValidatingElement(element);
41402
+ error("Failed %s type: %s", location, error$1.message);
41403
+ setCurrentlyValidatingElement(null);
41404
+ }
41405
+ }
41406
+ }
41407
+ }
41408
+ }
41409
+ var isArrayImpl = Array.isArray;
41410
+ function isArray2(a) {
41411
+ return isArrayImpl(a);
41412
+ }
41413
+ function typeName(value) {
41414
+ {
41415
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
41416
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
41417
+ return type;
41418
+ }
41419
+ }
41420
+ function willCoercionThrow(value) {
41421
+ {
41422
+ try {
41423
+ testStringCoercion(value);
41424
+ return false;
41425
+ } catch (e) {
41426
+ return true;
41427
+ }
41428
+ }
41429
+ }
41430
+ function testStringCoercion(value) {
41431
+ return "" + value;
41432
+ }
41433
+ function checkKeyStringCoercion(value) {
41434
+ {
41435
+ if (willCoercionThrow(value)) {
41436
+ error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value));
41437
+ return testStringCoercion(value);
41438
+ }
41439
+ }
41440
+ }
41441
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
41442
+ var RESERVED_PROPS = {
41443
+ key: true,
41444
+ ref: true,
41445
+ __self: true,
41446
+ __source: true
41447
+ };
41448
+ var specialPropKeyWarningShown;
41449
+ var specialPropRefWarningShown;
41450
+ var didWarnAboutStringRefs;
41451
+ {
41452
+ didWarnAboutStringRefs = {};
41453
+ }
41454
+ function hasValidRef(config) {
41455
+ {
41456
+ if (hasOwnProperty.call(config, "ref")) {
41457
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
41458
+ if (getter && getter.isReactWarning) {
41459
+ return false;
41460
+ }
41461
+ }
41462
+ }
41463
+ return config.ref !== undefined;
41464
+ }
41465
+ function hasValidKey(config) {
41466
+ {
41467
+ if (hasOwnProperty.call(config, "key")) {
41468
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
41469
+ if (getter && getter.isReactWarning) {
41470
+ return false;
41471
+ }
41472
+ }
41473
+ }
41474
+ return config.key !== undefined;
41475
+ }
41476
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
41477
+ {
41478
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
41479
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
41480
+ if (!didWarnAboutStringRefs[componentName]) {
41481
+ error('Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
41482
+ didWarnAboutStringRefs[componentName] = true;
41483
+ }
41484
+ }
41485
+ }
41486
+ }
41487
+ function defineKeyPropWarningGetter(props, displayName) {
41488
+ {
41489
+ var warnAboutAccessingKey = function() {
41490
+ if (!specialPropKeyWarningShown) {
41491
+ specialPropKeyWarningShown = true;
41492
+ error("%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
41493
+ }
41494
+ };
41495
+ warnAboutAccessingKey.isReactWarning = true;
41496
+ Object.defineProperty(props, "key", {
41497
+ get: warnAboutAccessingKey,
41498
+ configurable: true
41499
+ });
41500
+ }
41501
+ }
41502
+ function defineRefPropWarningGetter(props, displayName) {
41503
+ {
41504
+ var warnAboutAccessingRef = function() {
41505
+ if (!specialPropRefWarningShown) {
41506
+ specialPropRefWarningShown = true;
41507
+ error("%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
41508
+ }
41509
+ };
41510
+ warnAboutAccessingRef.isReactWarning = true;
41511
+ Object.defineProperty(props, "ref", {
41512
+ get: warnAboutAccessingRef,
41513
+ configurable: true
41514
+ });
41515
+ }
41516
+ }
41517
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
41518
+ var element = {
41519
+ $$typeof: REACT_ELEMENT_TYPE,
41520
+ type,
41521
+ key,
41522
+ ref,
41523
+ props,
41524
+ _owner: owner
41525
+ };
41526
+ {
41527
+ element._store = {};
41528
+ Object.defineProperty(element._store, "validated", {
41529
+ configurable: false,
41530
+ enumerable: false,
41531
+ writable: true,
41532
+ value: false
41533
+ });
41534
+ Object.defineProperty(element, "_self", {
41535
+ configurable: false,
41536
+ enumerable: false,
41537
+ writable: false,
41538
+ value: self
41539
+ });
41540
+ Object.defineProperty(element, "_source", {
41541
+ configurable: false,
41542
+ enumerable: false,
41543
+ writable: false,
41544
+ value: source
41545
+ });
41546
+ if (Object.freeze) {
41547
+ Object.freeze(element.props);
41548
+ Object.freeze(element);
41549
+ }
41550
+ }
41551
+ return element;
41552
+ };
41553
+ function jsxDEV11(type, config, maybeKey, source, self) {
41554
+ {
41555
+ var propName;
41556
+ var props = {};
41557
+ var key = null;
41558
+ var ref = null;
41559
+ if (maybeKey !== undefined) {
41560
+ {
41561
+ checkKeyStringCoercion(maybeKey);
41562
+ }
41563
+ key = "" + maybeKey;
41564
+ }
41565
+ if (hasValidKey(config)) {
41566
+ {
41567
+ checkKeyStringCoercion(config.key);
41568
+ }
41569
+ key = "" + config.key;
41570
+ }
41571
+ if (hasValidRef(config)) {
41572
+ ref = config.ref;
41573
+ warnIfStringRefCannotBeAutoConverted(config, self);
41574
+ }
41575
+ for (propName in config) {
41576
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
41577
+ props[propName] = config[propName];
41578
+ }
41579
+ }
41580
+ if (type && type.defaultProps) {
41581
+ var defaultProps = type.defaultProps;
41582
+ for (propName in defaultProps) {
41583
+ if (props[propName] === undefined) {
41584
+ props[propName] = defaultProps[propName];
41585
+ }
41586
+ }
41587
+ }
41588
+ if (key || ref) {
41589
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
41590
+ if (key) {
41591
+ defineKeyPropWarningGetter(props, displayName);
41592
+ }
41593
+ if (ref) {
41594
+ defineRefPropWarningGetter(props, displayName);
41595
+ }
41596
+ }
41597
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
41598
+ }
41599
+ }
41600
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
41601
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
41602
+ function setCurrentlyValidatingElement$1(element) {
41603
+ {
41604
+ if (element) {
41605
+ var owner = element._owner;
41606
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
41607
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
41608
+ } else {
41609
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
41610
+ }
41611
+ }
41612
+ }
41613
+ var propTypesMisspellWarningShown;
41614
+ {
41615
+ propTypesMisspellWarningShown = false;
41616
+ }
41617
+ function isValidElement(object) {
41618
+ {
41619
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
41620
+ }
41621
+ }
41622
+ function getDeclarationErrorAddendum() {
41623
+ {
41624
+ if (ReactCurrentOwner$1.current) {
41625
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
41626
+ if (name) {
41627
+ return `
41628
+
41629
+ Check the render method of \`` + name + "`.";
41630
+ }
41631
+ }
41632
+ return "";
41633
+ }
41634
+ }
41635
+ function getSourceInfoErrorAddendum(source) {
41636
+ {
41637
+ if (source !== undefined) {
41638
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
41639
+ var lineNumber = source.lineNumber;
41640
+ return `
41641
+
41642
+ Check your code at ` + fileName + ":" + lineNumber + ".";
41643
+ }
41644
+ return "";
41645
+ }
41646
+ }
41647
+ var ownerHasKeyUseWarning = {};
41648
+ function getCurrentComponentErrorInfo(parentType) {
41649
+ {
41650
+ var info = getDeclarationErrorAddendum();
41651
+ if (!info) {
41652
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
41653
+ if (parentName) {
41654
+ info = `
41655
+
41656
+ Check the top-level render call using <` + parentName + ">.";
41657
+ }
41658
+ }
41659
+ return info;
41660
+ }
41661
+ }
41662
+ function validateExplicitKey(element, parentType) {
41663
+ {
41664
+ if (!element._store || element._store.validated || element.key != null) {
41665
+ return;
41666
+ }
41667
+ element._store.validated = true;
41668
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
41669
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
41670
+ return;
41671
+ }
41672
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
41673
+ var childOwner = "";
41674
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
41675
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
41676
+ }
41677
+ setCurrentlyValidatingElement$1(element);
41678
+ error('Each child in a list should have a unique "key" prop.' + "%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
41679
+ setCurrentlyValidatingElement$1(null);
41680
+ }
41681
+ }
41682
+ function validateChildKeys(node, parentType) {
41683
+ {
41684
+ if (typeof node !== "object") {
41685
+ return;
41686
+ }
41687
+ if (isArray2(node)) {
41688
+ for (var i = 0;i < node.length; i++) {
41689
+ var child = node[i];
41690
+ if (isValidElement(child)) {
41691
+ validateExplicitKey(child, parentType);
41692
+ }
41693
+ }
41694
+ } else if (isValidElement(node)) {
41695
+ if (node._store) {
41696
+ node._store.validated = true;
41697
+ }
41698
+ } else if (node) {
41699
+ var iteratorFn = getIteratorFn(node);
41700
+ if (typeof iteratorFn === "function") {
41701
+ if (iteratorFn !== node.entries) {
41702
+ var iterator = iteratorFn.call(node);
41703
+ var step;
41704
+ while (!(step = iterator.next()).done) {
41705
+ if (isValidElement(step.value)) {
41706
+ validateExplicitKey(step.value, parentType);
41707
+ }
41708
+ }
41709
+ }
41710
+ }
41711
+ }
41712
+ }
41713
+ }
41714
+ function validatePropTypes(element) {
41715
+ {
41716
+ var type = element.type;
41717
+ if (type === null || type === undefined || typeof type === "string") {
41718
+ return;
41719
+ }
41720
+ var propTypes;
41721
+ if (typeof type === "function") {
41722
+ propTypes = type.propTypes;
41723
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
41724
+ propTypes = type.propTypes;
41725
+ } else {
41726
+ return;
41727
+ }
41728
+ if (propTypes) {
41729
+ var name = getComponentNameFromType(type);
41730
+ checkPropTypes(propTypes, element.props, "prop", name, element);
41731
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
41732
+ propTypesMisspellWarningShown = true;
41733
+ var _name = getComponentNameFromType(type);
41734
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
41735
+ }
41736
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
41737
+ error("getDefaultProps is only used on classic React.createClass " + "definitions. Use a static property named `defaultProps` instead.");
41738
+ }
41739
+ }
41740
+ }
41741
+ function validateFragmentProps(fragment) {
41742
+ {
41743
+ var keys = Object.keys(fragment.props);
41744
+ for (var i = 0;i < keys.length; i++) {
41745
+ var key = keys[i];
41746
+ if (key !== "children" && key !== "key") {
41747
+ setCurrentlyValidatingElement$1(fragment);
41748
+ error("Invalid prop `%s` supplied to `React.Fragment`. " + "React.Fragment can only have `key` and `children` props.", key);
41749
+ setCurrentlyValidatingElement$1(null);
41750
+ break;
41751
+ }
41752
+ }
41753
+ if (fragment.ref !== null) {
41754
+ setCurrentlyValidatingElement$1(fragment);
41755
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
41756
+ setCurrentlyValidatingElement$1(null);
41757
+ }
41758
+ }
41759
+ }
41760
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
41761
+ {
41762
+ var validType = isValidElementType(type);
41763
+ if (!validType) {
41764
+ var info = "";
41765
+ if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
41766
+ info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and named imports.";
41767
+ }
41768
+ var sourceInfo = getSourceInfoErrorAddendum(source);
41769
+ if (sourceInfo) {
41770
+ info += sourceInfo;
41771
+ } else {
41772
+ info += getDeclarationErrorAddendum();
41773
+ }
41774
+ var typeString;
41775
+ if (type === null) {
41776
+ typeString = "null";
41777
+ } else if (isArray2(type)) {
41778
+ typeString = "array";
41779
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
41780
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
41781
+ info = " Did you accidentally export a JSX literal instead of a component?";
41782
+ } else {
41783
+ typeString = typeof type;
41784
+ }
41785
+ error("React.jsx: type is invalid -- expected a string (for " + "built-in components) or a class/function (for composite " + "components) but got: %s.%s", typeString, info);
41786
+ }
41787
+ var element = jsxDEV11(type, props, key, source, self);
41788
+ if (element == null) {
41789
+ return element;
41790
+ }
41791
+ if (validType) {
41792
+ var children = props.children;
41793
+ if (children !== undefined) {
41794
+ if (isStaticChildren) {
41795
+ if (isArray2(children)) {
41796
+ for (var i = 0;i < children.length; i++) {
41797
+ validateChildKeys(children[i], type);
41798
+ }
41799
+ if (Object.freeze) {
41800
+ Object.freeze(children);
41801
+ }
41802
+ } else {
41803
+ error("React.jsx: Static children should always be an array. " + "You are likely explicitly calling React.jsxs or React.jsxDEV. " + "Use the Babel transform instead.");
41804
+ }
41805
+ } else {
41806
+ validateChildKeys(children, type);
41807
+ }
41808
+ }
41809
+ }
41810
+ if (type === REACT_FRAGMENT_TYPE) {
41811
+ validateFragmentProps(element);
41812
+ } else {
41813
+ validatePropTypes(element);
41814
+ }
41815
+ return element;
41816
+ }
41817
+ }
41818
+ function jsxWithValidationStatic(type, props, key) {
41819
+ {
41820
+ return jsxWithValidation(type, props, key, true);
41821
+ }
41822
+ }
41823
+ function jsxWithValidationDynamic(type, props, key) {
41824
+ {
41825
+ return jsxWithValidation(type, props, key, false);
41826
+ }
41827
+ }
41828
+ var jsx = jsxWithValidationDynamic;
41829
+ var jsxs = jsxWithValidationStatic;
41830
+ exports.Fragment = REACT_FRAGMENT_TYPE;
41831
+ exports.jsx = jsx;
41832
+ exports.jsxs = jsxs;
41833
+ })();
41834
+ }
41835
+ });
41836
+
41837
+ // node_modules/react/jsx-runtime.js
41838
+ var require_jsx_runtime = __commonJS((exports, module) => {
41839
+ var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development(), 1);
41840
+ if (false) {} else {
41841
+ module.exports = react_jsx_runtime_development;
41842
+ }
41843
+ });
41844
+
41845
+ // node_modules/supports-color/index.js
41846
+ import process19 from "node:process";
41847
+ import os3 from "node:os";
41848
+ import tty2 from "node:tty";
41849
+ function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process19.argv) {
41850
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
41851
+ const position = argv.indexOf(prefix + flag);
41852
+ const terminatorPosition = argv.indexOf("--");
41853
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
41854
+ }
41855
+ function envForceColor2() {
41856
+ if (!("FORCE_COLOR" in env3)) {
41857
+ return;
41858
+ }
41859
+ if (env3.FORCE_COLOR === "true") {
41860
+ return 1;
41861
+ }
41862
+ if (env3.FORCE_COLOR === "false") {
41863
+ return 0;
41864
+ }
41865
+ if (env3.FORCE_COLOR.length === 0) {
41866
+ return 1;
41867
+ }
41868
+ const level = Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
41869
+ if (![0, 1, 2, 3].includes(level)) {
41870
+ return;
41871
+ }
41872
+ return level;
41873
+ }
41874
+ function translateLevel2(level) {
41875
+ if (level === 0) {
41876
+ return false;
41877
+ }
41878
+ return {
41879
+ level,
41880
+ hasBasic: true,
41881
+ has256: level >= 2,
41882
+ has16m: level >= 3
41883
+ };
41884
+ }
41885
+ function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
41886
+ const noFlagForceColor = envForceColor2();
41887
+ if (noFlagForceColor !== undefined) {
41888
+ flagForceColor2 = noFlagForceColor;
41889
+ }
41890
+ const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
41891
+ if (forceColor === 0) {
41892
+ return 0;
41893
+ }
41894
+ if (sniffFlags) {
41895
+ if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
41896
+ return 3;
41897
+ }
41898
+ if (hasFlag2("color=256")) {
41899
+ return 2;
41900
+ }
41901
+ }
41902
+ if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
41903
+ return 1;
41904
+ }
41905
+ if (haveStream && !streamIsTTY && forceColor === undefined) {
41906
+ return 0;
41907
+ }
41908
+ const min = forceColor || 0;
41909
+ if (env3.TERM === "dumb") {
41910
+ return min;
41911
+ }
41912
+ if (process19.platform === "win32") {
41913
+ const osRelease = os3.release().split(".");
41914
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
41915
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
41916
+ }
41917
+ return 1;
41918
+ }
41919
+ if ("CI" in env3) {
41920
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env3))) {
41921
+ return 3;
41922
+ }
41923
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env3)) || env3.CI_NAME === "codeship") {
41924
+ return 1;
41925
+ }
41926
+ return min;
41927
+ }
41928
+ if ("TEAMCITY_VERSION" in env3) {
41929
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
41930
+ }
41931
+ if (env3.COLORTERM === "truecolor") {
41932
+ return 3;
41933
+ }
41934
+ if (env3.TERM === "xterm-kitty") {
41935
+ return 3;
41936
+ }
41937
+ if (env3.TERM === "xterm-ghostty") {
41938
+ return 3;
41939
+ }
41940
+ if (env3.TERM === "wezterm") {
41941
+ return 3;
41942
+ }
41943
+ if ("TERM_PROGRAM" in env3) {
41944
+ const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
41945
+ switch (env3.TERM_PROGRAM) {
41946
+ case "iTerm.app": {
41947
+ return version >= 3 ? 3 : 2;
41948
+ }
41949
+ case "Apple_Terminal": {
41950
+ return 2;
41951
+ }
42052
41952
  }
41953
+ }
41954
+ if (/-256(color)?$/i.test(env3.TERM)) {
41955
+ return 2;
41956
+ }
41957
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
41958
+ return 1;
41959
+ }
41960
+ if ("COLORTERM" in env3) {
41961
+ return 1;
41962
+ }
41963
+ return min;
41964
+ }
41965
+ function createSupportsColor2(stream, options = {}) {
41966
+ const level = _supportsColor2(stream, {
41967
+ streamIsTTY: stream && stream.isTTY,
41968
+ ...options
42053
41969
  });
42054
- module.exports = spinners;
41970
+ return translateLevel2(level);
41971
+ }
41972
+ var env3, flagForceColor2, supportsColor2;
41973
+ var init_supports_color2 = __esm(() => {
41974
+ ({ env: env3 } = process19);
41975
+ if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
41976
+ flagForceColor2 = 0;
41977
+ } else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
41978
+ flagForceColor2 = 1;
41979
+ }
41980
+ supportsColor2 = {
41981
+ stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
41982
+ stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
41983
+ };
42055
41984
  });
42056
41985
 
42057
- // node_modules/ink-spinner/build/index.js
42058
- function Spinner({ type = "dots" }) {
42059
- const [frame, setFrame] = import_react32.useState(0);
42060
- const spinner = import_cli_spinners.default[type];
42061
- import_react32.useEffect(() => {
42062
- const timer = setInterval(() => {
42063
- setFrame((previousFrame) => {
42064
- const isLastFrame = previousFrame === spinner.frames.length - 1;
42065
- return isLastFrame ? 0 : previousFrame + 1;
42066
- });
42067
- }, spinner.interval);
42068
- return () => {
42069
- clearInterval(timer);
41986
+ // node_modules/has-flag/index.js
41987
+ import process20 from "process";
41988
+ function hasFlag3(flag, argv = process20.argv) {
41989
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
41990
+ const position = argv.indexOf(prefix + flag);
41991
+ const terminatorPosition = argv.indexOf("--");
41992
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
41993
+ }
41994
+ var init_has_flag = () => {};
41995
+
41996
+ // node_modules/supports-hyperlinks/index.js
41997
+ import process21 from "node:process";
41998
+ function parseVersion(versionString = "") {
41999
+ if (/^\d{3,4}$/.test(versionString)) {
42000
+ const match2 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
42001
+ return {
42002
+ major: 0,
42003
+ minor: Number.parseInt(match2[1], 10),
42004
+ patch: Number.parseInt(match2[2], 10)
42070
42005
  };
42071
- }, [spinner]);
42072
- return import_react32.default.createElement(Text, null, spinner.frames[frame]);
42006
+ }
42007
+ const versions = (versionString ?? "").split(".").map((n) => Number.parseInt(n, 10));
42008
+ return {
42009
+ major: versions[0],
42010
+ minor: versions[1],
42011
+ patch: versions[2]
42012
+ };
42073
42013
  }
42074
- var import_react32, import_cli_spinners, build_default2;
42075
- var init_build5 = __esm(async () => {
42014
+ function createSupportsHyperlinks(stream) {
42015
+ const {
42016
+ CI,
42017
+ CURSOR_TRACE_ID,
42018
+ FORCE_HYPERLINK,
42019
+ NETLIFY,
42020
+ TEAMCITY_VERSION,
42021
+ TERM_PROGRAM,
42022
+ TERM_PROGRAM_VERSION,
42023
+ VTE_VERSION,
42024
+ TERM
42025
+ } = process21.env;
42026
+ if (FORCE_HYPERLINK) {
42027
+ return !(FORCE_HYPERLINK.length > 0 && Number.parseInt(FORCE_HYPERLINK, 10) === 0);
42028
+ }
42029
+ if (hasFlag3("no-hyperlink") || hasFlag3("no-hyperlinks") || hasFlag3("hyperlink=false") || hasFlag3("hyperlink=never")) {
42030
+ return false;
42031
+ }
42032
+ if (hasFlag3("hyperlink=true") || hasFlag3("hyperlink=always")) {
42033
+ return true;
42034
+ }
42035
+ if (NETLIFY) {
42036
+ return true;
42037
+ }
42038
+ if (!createSupportsColor2(stream)) {
42039
+ return false;
42040
+ }
42041
+ if (stream && !stream.isTTY) {
42042
+ return false;
42043
+ }
42044
+ if ("WT_SESSION" in process21.env) {
42045
+ return true;
42046
+ }
42047
+ if (process21.platform === "win32") {
42048
+ return false;
42049
+ }
42050
+ if (CI) {
42051
+ return false;
42052
+ }
42053
+ if (TEAMCITY_VERSION) {
42054
+ return false;
42055
+ }
42056
+ if (TERM_PROGRAM) {
42057
+ const version = parseVersion(TERM_PROGRAM_VERSION);
42058
+ switch (TERM_PROGRAM) {
42059
+ case "iTerm.app": {
42060
+ if (version.major === 3) {
42061
+ return version.minor >= 1;
42062
+ }
42063
+ return version.major > 3;
42064
+ }
42065
+ case "WezTerm": {
42066
+ if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
42067
+ const date = TERM_PROGRAM_VERSION.slice("0-unstable-".length);
42068
+ return date >= "2020-06-20";
42069
+ }
42070
+ return version.major >= 20200620;
42071
+ }
42072
+ case "vscode": {
42073
+ if (CURSOR_TRACE_ID) {
42074
+ return true;
42075
+ }
42076
+ return version.major > 1 || version.major === 1 && version.minor >= 72;
42077
+ }
42078
+ case "ghostty": {
42079
+ return true;
42080
+ }
42081
+ }
42082
+ }
42083
+ if (VTE_VERSION) {
42084
+ if (VTE_VERSION === "0.50.0") {
42085
+ return false;
42086
+ }
42087
+ const version = parseVersion(VTE_VERSION);
42088
+ return version.major > 0 || version.minor >= 50;
42089
+ }
42090
+ switch (TERM) {
42091
+ case "alacritty": {
42092
+ return true;
42093
+ }
42094
+ case "xterm-kitty": {
42095
+ return true;
42096
+ }
42097
+ }
42098
+ return false;
42099
+ }
42100
+ var supportsHyperlinks, supports_hyperlinks_default;
42101
+ var init_supports_hyperlinks = __esm(() => {
42102
+ init_supports_color2();
42103
+ init_has_flag();
42104
+ supportsHyperlinks = {
42105
+ stdout: createSupportsHyperlinks(process21.stdout),
42106
+ stderr: createSupportsHyperlinks(process21.stderr)
42107
+ };
42108
+ supports_hyperlinks_default = supportsHyperlinks;
42109
+ });
42110
+
42111
+ // node_modules/terminal-link/index.js
42112
+ function terminalLink(text, url, { target = "stdout", ...options } = {}) {
42113
+ if (!supports_hyperlinks_default[target]) {
42114
+ if (options.fallback === false) {
42115
+ return text;
42116
+ }
42117
+ if (typeof options.fallback === "function") {
42118
+ return options.fallback(text, url);
42119
+ }
42120
+ return `${text} ${url}`;
42121
+ }
42122
+ return exports_base.link(text, url);
42123
+ }
42124
+ var init_terminal_link = __esm(() => {
42125
+ init_ansi_escapes();
42126
+ init_supports_hyperlinks();
42127
+ terminalLink.isSupported = supports_hyperlinks_default.stdout;
42128
+ terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
42129
+ terminalLink.stderr.isSupported = supports_hyperlinks_default.stderr;
42130
+ });
42131
+
42132
+ // node_modules/ink-link/dist/index.js
42133
+ var import_jsx_runtime, Link = ({ children, url, fallback = true }) => import_jsx_runtime.jsx(Transform, { transform: (children2) => terminalLink(children2, url, { fallback }), children: import_jsx_runtime.jsx(Text, { children }) }), dist_default4;
42134
+ var init_dist4 = __esm(async () => {
42135
+ init_terminal_link();
42076
42136
  await init_build2();
42077
- import_react32 = __toESM(require_react(), 1);
42078
- import_cli_spinners = __toESM(require_cli_spinners(), 1);
42079
- build_default2 = Spinner;
42137
+ import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
42138
+ dist_default4 = Link;
42080
42139
  });
42081
42140
 
42082
42141
  // src/cli/commands/registry.ts
@@ -42944,12 +43003,9 @@ function Input({
42944
43003
  dimColor: true,
42945
43004
  children: "Press / for commands or @ for files"
42946
43005
  }, undefined, false, undefined, this),
42947
- /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(dist_default4, {
42948
- url: "https://discord.gg/letta",
42949
- children: /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(Text, {
42950
- dimColor: true,
42951
- children: "Discord"
42952
- }, undefined, false, undefined, this)
43006
+ /* @__PURE__ */ jsx_dev_runtime15.jsxDEV(Text, {
43007
+ dimColor: true,
43008
+ children: "https://discord.gg/letta"
42953
43009
  }, undefined, false, undefined, this)
42954
43010
  ]
42955
43011
  }, undefined, true, undefined, this)
@@ -42966,7 +43022,6 @@ var init_InputRich = __esm(async () => {
42966
43022
  init_colors();
42967
43023
  await __promiseAll([
42968
43024
  init_build2(),
42969
- init_dist4(),
42970
43025
  init_build5(),
42971
43026
  init_InputAssist(),
42972
43027
  init_PasteAwareTextInput(),
@@ -44415,7 +44470,7 @@ ${detail}` : "";
44415
44470
  kind: "command",
44416
44471
  id: cmdId2,
44417
44472
  input: msg,
44418
- output: "Clearing credentials...",
44473
+ output: "Logging out...",
44419
44474
  phase: "running"
44420
44475
  });
44421
44476
  buffersRef.current.order.push(cmdId2);
@@ -44424,6 +44479,10 @@ ${detail}` : "";
44424
44479
  try {
44425
44480
  const { settingsManager: settingsManager3 } = await Promise.resolve().then(() => (init_settings_manager(), exports_settings_manager));
44426
44481
  const currentSettings = settingsManager3.getSettings();
44482
+ if (currentSettings.refreshToken) {
44483
+ const { revokeToken: revokeToken3 } = await Promise.resolve().then(() => (init_oauth(), exports_oauth));
44484
+ await revokeToken3(currentSettings.refreshToken);
44485
+ }
44427
44486
  const newEnv = { ...currentSettings.env };
44428
44487
  delete newEnv.LETTA_API_KEY;
44429
44488
  settingsManager3.updateSettings({
@@ -45845,8 +45904,8 @@ Note: Flags should use double dashes for full names (e.g., --yolo, not -yolo)`);
45845
45904
  await runSetup2();
45846
45905
  return main();
45847
45906
  }
45848
- const { validateCredentials: validateCredentials2 } = await Promise.resolve().then(() => (init_oauth2(), exports_oauth));
45849
- const isValid = await validateCredentials2(baseURL, apiKey ?? "");
45907
+ const { validateCredentials: validateCredentials3 } = await Promise.resolve().then(() => (init_oauth2(), exports_oauth2));
45908
+ const isValid = await validateCredentials3(baseURL, apiKey ?? "");
45850
45909
  if (!isValid) {
45851
45910
  if (isHeadless) {
45852
45911
  console.error("Failed to connect to Letta server");
@@ -46020,4 +46079,4 @@ Note: Flags should use double dashes for full names (e.g., --yolo, not -yolo)`);
46020
46079
  }
46021
46080
  main();
46022
46081
 
46023
- //# debugId=0F309FBC4BD78D6B64756E2164756E21
46082
+ //# debugId=2DFAA80260F695BF64756E2164756E21