appwrite-cli 16.0.0 → 17.1.0

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 (81) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +4 -4
  3. package/cli.ts +6 -0
  4. package/dist/bundle-win-arm64.mjs +1355 -773
  5. package/dist/cli.cjs +1327 -745
  6. package/dist/index.cjs +466 -572
  7. package/dist/index.js +494 -600
  8. package/dist/lib/commands/push.d.ts.map +1 -1
  9. package/dist/lib/commands/run.d.ts.map +1 -1
  10. package/dist/lib/commands/services/organizations.d.ts +3 -0
  11. package/dist/lib/commands/services/organizations.d.ts.map +1 -0
  12. package/dist/lib/commands/services/teams.d.ts.map +1 -1
  13. package/dist/lib/constants.d.ts +1 -1
  14. package/dist/lib/emulation/utils.d.ts.map +1 -1
  15. package/dist/lib/parser.d.ts.map +1 -1
  16. package/dist/lib/questions.d.ts.map +1 -1
  17. package/dist/lib/types.d.ts +1 -0
  18. package/dist/lib/types.d.ts.map +1 -1
  19. package/docs/examples/organizations/add-credit.md +5 -0
  20. package/docs/examples/organizations/cancel-downgrade.md +4 -0
  21. package/docs/examples/organizations/create-downgrade-feedback.md +8 -0
  22. package/docs/examples/organizations/create-invoice-payment.md +6 -0
  23. package/docs/examples/organizations/create-key.md +6 -0
  24. package/docs/examples/organizations/create.md +6 -0
  25. package/docs/examples/organizations/delete-backup-payment-method.md +4 -0
  26. package/docs/examples/organizations/delete-default-payment-method.md +4 -0
  27. package/docs/examples/organizations/delete-key.md +5 -0
  28. package/docs/examples/organizations/delete.md +4 -0
  29. package/docs/examples/organizations/estimation-create-organization.md +4 -0
  30. package/docs/examples/organizations/estimation-delete-organization.md +4 -0
  31. package/docs/examples/organizations/estimation-update-plan.md +5 -0
  32. package/docs/examples/organizations/get-aggregation.md +5 -0
  33. package/docs/examples/organizations/get-available-credits.md +4 -0
  34. package/docs/examples/organizations/get-credit.md +5 -0
  35. package/docs/examples/organizations/get-invoice-download.md +5 -0
  36. package/docs/examples/organizations/get-invoice-view.md +5 -0
  37. package/docs/examples/organizations/get-invoice.md +5 -0
  38. package/docs/examples/organizations/get-key.md +5 -0
  39. package/docs/examples/organizations/get-plan.md +4 -0
  40. package/docs/examples/organizations/get-scopes.md +4 -0
  41. package/docs/examples/organizations/get-usage.md +4 -0
  42. package/docs/examples/organizations/list-aggregations.md +4 -0
  43. package/docs/examples/organizations/list-credits.md +4 -0
  44. package/docs/examples/organizations/list-keys.md +4 -0
  45. package/docs/examples/organizations/list-regions.md +4 -0
  46. package/docs/examples/organizations/list.md +3 -0
  47. package/docs/examples/organizations/set-backup-payment-method.md +5 -0
  48. package/docs/examples/organizations/set-billing-address.md +5 -0
  49. package/docs/examples/organizations/set-billing-email.md +5 -0
  50. package/docs/examples/organizations/set-billing-tax-id.md +5 -0
  51. package/docs/examples/organizations/set-default-payment-method.md +5 -0
  52. package/docs/examples/organizations/update-budget.md +5 -0
  53. package/docs/examples/organizations/update-key.md +7 -0
  54. package/docs/examples/organizations/update-plan.md +5 -0
  55. package/docs/examples/organizations/validate-invoice.md +5 -0
  56. package/docs/examples/organizations/validate-payment.md +4 -0
  57. package/docs/examples/project/create-variable.md +1 -0
  58. package/docs/examples/project/update-variable.md +1 -2
  59. package/docs/examples/users/update-impersonator.md +5 -0
  60. package/install.ps1 +2 -2
  61. package/install.sh +1 -1
  62. package/lib/commands/push.ts +6 -24
  63. package/lib/commands/run.ts +5 -7
  64. package/lib/commands/services/account.ts +0 -169
  65. package/lib/commands/services/health.ts +0 -68
  66. package/lib/commands/services/migrations.ts +2 -2
  67. package/lib/commands/services/organizations.ts +517 -0
  68. package/lib/commands/services/project.ts +21 -12
  69. package/lib/commands/services/projects.ts +2 -14
  70. package/lib/commands/services/proxy.ts +2 -2
  71. package/lib/commands/services/teams.ts +10 -1
  72. package/lib/commands/services/users.ts +14 -1
  73. package/lib/commands/services/vcs.ts +2 -2
  74. package/lib/constants.ts +1 -1
  75. package/lib/emulation/utils.ts +3 -2
  76. package/lib/parser.ts +149 -27
  77. package/lib/questions.ts +15 -9
  78. package/lib/sdks.ts +1 -0
  79. package/lib/types.ts +1 -0
  80. package/package.json +1 -1
  81. package/scoop/appwrite.config.json +3 -3
package/dist/index.js CHANGED
@@ -11205,16 +11205,16 @@ var require_share = __commonJS({
11205
11205
  };
11206
11206
  }
11207
11207
  exports.share = share;
11208
- function handleReset(reset, on2) {
11208
+ function handleReset(reset, on) {
11209
11209
  var args = [];
11210
11210
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
11211
11211
  args[_i2 - 2] = arguments[_i2];
11212
11212
  }
11213
- if (on2 === true) {
11213
+ if (on === true) {
11214
11214
  reset();
11215
11215
  return;
11216
11216
  }
11217
- if (on2 === false) {
11217
+ if (on === false) {
11218
11218
  return;
11219
11219
  }
11220
11220
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -11223,7 +11223,7 @@ var require_share = __commonJS({
11223
11223
  reset();
11224
11224
  }
11225
11225
  });
11226
- return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11226
+ return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
11227
11227
  }
11228
11228
  }
11229
11229
  });
@@ -19605,7 +19605,6 @@ var require_safe_buffer = __commonJS({
19605
19605
  function SafeBuffer(arg, encodingOrOffset, length) {
19606
19606
  return Buffer2(arg, encodingOrOffset, length);
19607
19607
  }
19608
- SafeBuffer.prototype = Object.create(Buffer2.prototype);
19609
19608
  copyProps(Buffer2, SafeBuffer);
19610
19609
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
19611
19610
  if (typeof arg === "number") {
@@ -55205,12 +55204,12 @@ var require_utils4 = __commonJS({
55205
55204
  return str;
55206
55205
  }
55207
55206
  var codeCache = {};
55208
- function addToCodeCache(name, on2, off) {
55209
- on2 = "\x1B[" + on2 + "m";
55207
+ function addToCodeCache(name, on, off) {
55208
+ on = "\x1B[" + on + "m";
55210
55209
  off = "\x1B[" + off + "m";
55211
- codeCache[on2] = { set: name, to: true };
55210
+ codeCache[on] = { set: name, to: true };
55212
55211
  codeCache[off] = { set: name, to: false };
55213
- codeCache[name] = { on: on2, off };
55212
+ codeCache[name] = { on, off };
55214
55213
  }
55215
55214
  addToCodeCache("bold", 1, 22);
55216
55215
  addToCodeCache("italics", 3, 23);
@@ -57287,7 +57286,7 @@ var require_helpers = __commonJS({
57287
57286
  if (instance.helpers[helperName]) {
57288
57287
  instance.hooks[helperName] = instance.helpers[helperName];
57289
57288
  if (!keepHelper) {
57290
- delete instance.helpers[helperName];
57289
+ instance.helpers[helperName] = void 0;
57291
57290
  }
57292
57291
  }
57293
57292
  }
@@ -57379,22 +57378,6 @@ var require_logger = __commonJS({
57379
57378
  }
57380
57379
  });
57381
57380
 
57382
- // node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js
57383
- var require_create_new_lookup_object = __commonJS({
57384
- "node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"(exports) {
57385
- "use strict";
57386
- exports.__esModule = true;
57387
- exports.createNewLookupObject = createNewLookupObject;
57388
- var _utils = require_utils5();
57389
- function createNewLookupObject() {
57390
- for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {
57391
- sources[_key] = arguments[_key];
57392
- }
57393
- return _utils.extend.apply(void 0, [/* @__PURE__ */ Object.create(null)].concat(sources));
57394
- }
57395
- }
57396
- });
57397
-
57398
57381
  // node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js
57399
57382
  var require_proto_access = __commonJS({
57400
57383
  "node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"(exports) {
@@ -57406,25 +57389,28 @@ var require_proto_access = __commonJS({
57406
57389
  function _interopRequireDefault(obj) {
57407
57390
  return obj && obj.__esModule ? obj : { "default": obj };
57408
57391
  }
57409
- var _createNewLookupObject = require_create_new_lookup_object();
57392
+ var _utils = require_utils5();
57410
57393
  var _logger = require_logger();
57411
57394
  var _logger2 = _interopRequireDefault(_logger);
57412
57395
  var loggedProperties = /* @__PURE__ */ Object.create(null);
57413
57396
  function createProtoAccessControl(runtimeOptions) {
57414
- var defaultMethodWhiteList = /* @__PURE__ */ Object.create(null);
57415
- defaultMethodWhiteList["constructor"] = false;
57416
- defaultMethodWhiteList["__defineGetter__"] = false;
57417
- defaultMethodWhiteList["__defineSetter__"] = false;
57418
- defaultMethodWhiteList["__lookupGetter__"] = false;
57419
- var defaultPropertyWhiteList = /* @__PURE__ */ Object.create(null);
57420
- defaultPropertyWhiteList["__proto__"] = false;
57397
+ var propertyWhiteList = /* @__PURE__ */ Object.create(null);
57398
+ propertyWhiteList["__proto__"] = false;
57399
+ _utils.extend(propertyWhiteList, runtimeOptions.allowedProtoProperties);
57400
+ var methodWhiteList = /* @__PURE__ */ Object.create(null);
57401
+ methodWhiteList["constructor"] = false;
57402
+ methodWhiteList["__defineGetter__"] = false;
57403
+ methodWhiteList["__defineSetter__"] = false;
57404
+ methodWhiteList["__lookupGetter__"] = false;
57405
+ methodWhiteList["__lookupSetter__"] = false;
57406
+ _utils.extend(methodWhiteList, runtimeOptions.allowedProtoMethods);
57421
57407
  return {
57422
57408
  properties: {
57423
- whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),
57409
+ whitelist: propertyWhiteList,
57424
57410
  defaultValue: runtimeOptions.allowProtoPropertiesByDefault
57425
57411
  },
57426
57412
  methods: {
57427
- whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),
57413
+ whitelist: methodWhiteList,
57428
57414
  defaultValue: runtimeOptions.allowProtoMethodsByDefault
57429
57415
  }
57430
57416
  };
@@ -57477,7 +57463,7 @@ var require_base2 = __commonJS({
57477
57463
  var _logger = require_logger();
57478
57464
  var _logger2 = _interopRequireDefault(_logger);
57479
57465
  var _internalProtoAccess = require_proto_access();
57480
- var VERSION = "4.7.8";
57466
+ var VERSION = "4.7.9";
57481
57467
  exports.VERSION = VERSION;
57482
57468
  var COMPILER_REVISION = 8;
57483
57469
  exports.COMPILER_REVISION = COMPILER_REVISION;
@@ -57663,14 +57649,12 @@ var require_runtime = __commonJS({
57663
57649
  }
57664
57650
  }
57665
57651
  partial2 = env.VM.resolvePartial.call(this, partial2, context, options);
57666
- var extendedOptions = Utils.extend({}, options, {
57667
- hooks: this.hooks,
57668
- protoAccessControl: this.protoAccessControl
57669
- });
57670
- var result = env.VM.invokePartial.call(this, partial2, context, extendedOptions);
57652
+ options.hooks = this.hooks;
57653
+ options.protoAccessControl = this.protoAccessControl;
57654
+ var result = env.VM.invokePartial.call(this, partial2, context, options);
57671
57655
  if (result == null && env.compile) {
57672
57656
  options.partials[options.name] = env.compile(partial2, templateSpec.compilerOptions, env);
57673
- result = options.partials[options.name](context, extendedOptions);
57657
+ result = options.partials[options.name](context, options);
57674
57658
  }
57675
57659
  if (result != null) {
57676
57660
  if (options.indent) {
@@ -57715,7 +57699,7 @@ var require_runtime = __commonJS({
57715
57699
  for (var i = 0; i < len; i++) {
57716
57700
  var result = depths[i] && container.lookupProperty(depths[i], name);
57717
57701
  if (result != null) {
57718
- return depths[i][name];
57702
+ return result;
57719
57703
  }
57720
57704
  }
57721
57705
  },
@@ -57781,8 +57765,9 @@ var require_runtime = __commonJS({
57781
57765
  ret.isTop = true;
57782
57766
  ret._setup = function(options) {
57783
57767
  if (!options.partial) {
57784
- var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);
57785
- wrapHelpersToPassLookupProperty(mergedHelpers, container);
57768
+ var mergedHelpers = {};
57769
+ addHelpers(mergedHelpers, env.helpers, container);
57770
+ addHelpers(mergedHelpers, options.helpers, container);
57786
57771
  container.helpers = mergedHelpers;
57787
57772
  if (templateSpec.usePartial) {
57788
57773
  container.partials = container.mergeIfNeeded(options.partials, env.partials);
@@ -57832,18 +57817,18 @@ var require_runtime = __commonJS({
57832
57817
  function resolvePartial(partial2, context, options) {
57833
57818
  if (!partial2) {
57834
57819
  if (options.name === "@partial-block") {
57835
- partial2 = options.data["partial-block"];
57820
+ partial2 = lookupOwnProperty(options.data, "partial-block");
57836
57821
  } else {
57837
- partial2 = options.partials[options.name];
57822
+ partial2 = lookupOwnProperty(options.partials, options.name);
57838
57823
  }
57839
57824
  } else if (!partial2.call && !options.name) {
57840
57825
  options.name = partial2;
57841
- partial2 = options.partials[partial2];
57826
+ partial2 = lookupOwnProperty(options.partials, partial2);
57842
57827
  }
57843
57828
  return partial2;
57844
57829
  }
57845
57830
  function invokePartial(partial2, context, options) {
57846
- var currentPartialBlock = options.data && options.data["partial-block"];
57831
+ var currentPartialBlock = lookupOwnProperty(options.data, "partial-block");
57847
57832
  options.partial = true;
57848
57833
  if (options.ids) {
57849
57834
  options.data.contextPath = options.ids[0] || options.data.contextPath;
@@ -57876,6 +57861,11 @@ var require_runtime = __commonJS({
57876
57861
  function noop() {
57877
57862
  return "";
57878
57863
  }
57864
+ function lookupOwnProperty(obj, name) {
57865
+ if (obj && Object.prototype.hasOwnProperty.call(obj, name)) {
57866
+ return obj[name];
57867
+ }
57868
+ }
57879
57869
  function initData(context, data) {
57880
57870
  if (!data || !("root" in data)) {
57881
57871
  data = data ? _base.createFrame(data) : {};
@@ -57891,16 +57881,18 @@ var require_runtime = __commonJS({
57891
57881
  }
57892
57882
  return prog;
57893
57883
  }
57894
- function wrapHelpersToPassLookupProperty(mergedHelpers, container) {
57895
- Object.keys(mergedHelpers).forEach(function(helperName) {
57896
- var helper = mergedHelpers[helperName];
57884
+ function addHelpers(mergedHelpers, helpers, container) {
57885
+ if (!helpers) return;
57886
+ Object.keys(helpers).forEach(function(helperName) {
57887
+ var helper = helpers[helperName];
57897
57888
  mergedHelpers[helperName] = passLookupPropertyOption(helper, container);
57898
57889
  });
57899
57890
  }
57900
57891
  function passLookupPropertyOption(helper, container) {
57901
57892
  var lookupProperty = container.lookupProperty;
57902
57893
  return _internalWrapHelper.wrapHelper(helper, function(options) {
57903
- return Utils.extend({ lookupProperty }, options);
57894
+ options.lookupProperty = lookupProperty;
57895
+ return options;
57904
57896
  });
57905
57897
  }
57906
57898
  }
@@ -58710,7 +58702,7 @@ var require_parser = __commonJS({
58710
58702
  break;
58711
58703
  }
58712
58704
  };
58713
- lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/];
58705
+ lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/];
58714
58706
  lexer2.conditions = { "mu": { "rules": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "inclusive": false }, "emu": { "rules": [2], "inclusive": false }, "com": { "rules": [6], "inclusive": false }, "raw": { "rules": [3, 4, 5], "inclusive": false }, "INITIAL": { "rules": [0, 1, 44], "inclusive": true } };
58715
58707
  return lexer2;
58716
58708
  })();
@@ -59217,12 +59209,15 @@ var require_base3 = __commonJS({
59217
59209
  var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl);
59218
59210
  var _helpers = require_helpers2();
59219
59211
  var Helpers = _interopRequireWildcard(_helpers);
59212
+ var _exception = require_exception();
59213
+ var _exception2 = _interopRequireDefault(_exception);
59220
59214
  var _utils = require_utils5();
59221
59215
  exports.parser = _parser2["default"];
59222
59216
  var yy = {};
59223
59217
  _utils.extend(yy, Helpers);
59224
59218
  function parseWithoutProcessing(input, options) {
59225
59219
  if (input.type === "Program") {
59220
+ validateInputAst(input);
59226
59221
  return input;
59227
59222
  }
59228
59223
  _parser2["default"].yy = yy;
@@ -59237,6 +59232,51 @@ var require_base3 = __commonJS({
59237
59232
  var strip = new _whitespaceControl2["default"](options);
59238
59233
  return strip.accept(ast);
59239
59234
  }
59235
+ function validateInputAst(ast) {
59236
+ validateAstNode(ast);
59237
+ }
59238
+ function validateAstNode(node) {
59239
+ if (node == null) {
59240
+ return;
59241
+ }
59242
+ if (Array.isArray(node)) {
59243
+ node.forEach(validateAstNode);
59244
+ return;
59245
+ }
59246
+ if (typeof node !== "object") {
59247
+ return;
59248
+ }
59249
+ if (node.type === "PathExpression") {
59250
+ if (!isValidDepth(node.depth)) {
59251
+ throw new _exception2["default"]("Invalid AST: PathExpression.depth must be an integer");
59252
+ }
59253
+ if (!Array.isArray(node.parts)) {
59254
+ throw new _exception2["default"]("Invalid AST: PathExpression.parts must be an array");
59255
+ }
59256
+ for (var i = 0; i < node.parts.length; i++) {
59257
+ if (typeof node.parts[i] !== "string") {
59258
+ throw new _exception2["default"]("Invalid AST: PathExpression.parts must only contain strings");
59259
+ }
59260
+ }
59261
+ } else if (node.type === "NumberLiteral") {
59262
+ if (typeof node.value !== "number" || !isFinite(node.value)) {
59263
+ throw new _exception2["default"]("Invalid AST: NumberLiteral.value must be a number");
59264
+ }
59265
+ } else if (node.type === "BooleanLiteral") {
59266
+ if (typeof node.value !== "boolean") {
59267
+ throw new _exception2["default"]("Invalid AST: BooleanLiteral.value must be a boolean");
59268
+ }
59269
+ }
59270
+ Object.keys(node).forEach(function(propertyName) {
59271
+ if (propertyName === "loc") {
59272
+ return;
59273
+ }
59274
+ validateAstNode(node[propertyName]);
59275
+ });
59276
+ }
59277
+ function isValidDepth(depth) {
59278
+ return typeof depth === "number" && isFinite(depth) && Math.floor(depth) === depth && depth >= 0;
59279
+ }
59240
59280
  }
59241
59281
  });
59242
59282
 
@@ -61665,12 +61705,10 @@ var require_javascript_compiler = __commonJS({
61665
61705
  var programs = _context.programs;
61666
61706
  var decorators = _context.decorators;
61667
61707
  for (i = 0, l = programs.length; i < l; i++) {
61668
- if (programs[i]) {
61669
- ret[i] = programs[i];
61670
- if (decorators[i]) {
61671
- ret[i + "_d"] = decorators[i];
61672
- ret.useDecorators = true;
61673
- }
61708
+ ret[i] = programs[i];
61709
+ if (decorators[i]) {
61710
+ ret[i + "_d"] = decorators[i];
61711
+ ret.useDecorators = true;
61674
61712
  }
61675
61713
  }
61676
61714
  if (this.environment.usePartial) {
@@ -61931,22 +61969,25 @@ var require_javascript_compiler = __commonJS({
61931
61969
  }
61932
61970
  this.resolvePath("data", parts, 0, true, strict);
61933
61971
  },
61934
- resolvePath: function resolvePath(type, parts, i, falsy, strict) {
61972
+ resolvePath: function resolvePath(type, parts, startPartIndex, falsy, strict) {
61935
61973
  var _this2 = this;
61936
61974
  if (this.options.strict || this.options.assumeObjects) {
61937
- this.push(strictLookup(this.options.strict && strict, this, parts, i, type));
61975
+ this.push(strictLookup(this.options.strict && strict, this, parts, startPartIndex, type));
61938
61976
  return;
61939
61977
  }
61940
61978
  var len = parts.length;
61941
- for (; i < len; i++) {
61942
- this.replaceStack(function(current) {
61943
- var lookup = _this2.nameLookup(current, parts[i], type);
61979
+ var _loop = function(i2) {
61980
+ _this2.replaceStack(function(current) {
61981
+ var lookup = _this2.nameLookup(current, parts[i2], type);
61944
61982
  if (!falsy) {
61945
61983
  return [" != null ? ", lookup, " : ", current];
61946
61984
  } else {
61947
61985
  return [" && ", lookup];
61948
61986
  }
61949
61987
  });
61988
+ };
61989
+ for (var i = startPartIndex; i < len; i++) {
61990
+ _loop(i);
61950
61991
  }
61951
61992
  },
61952
61993
  // [resolvePossibleLambda]
@@ -62050,7 +62091,9 @@ var require_javascript_compiler = __commonJS({
62050
62091
  // and inserts the decorator into the decorators list.
62051
62092
  registerDecorator: function registerDecorator(paramSize, name) {
62052
62093
  var foundDecorator = this.nameLookup("decorators", name, "decorator"), options = this.setupHelperArgs(name, paramSize);
62053
- this.decorators.push(["fn = ", this.decorators.functionCall(foundDecorator, "", ["fn", "props", "container", options]), " || fn;"]);
62094
+ this.decorators.push(["var decorator = ", foundDecorator, ";"]);
62095
+ this.decorators.push(['if (typeof decorator !== "function") { throw new Error(', this.quotedString('Missing decorator: "' + name + '"'), "); }"]);
62096
+ this.decorators.push(["fn = ", this.decorators.functionCall("decorator", "", ["fn", "props", "container", options]), " || fn;"]);
62054
62097
  },
62055
62098
  // [invokeHelper]
62056
62099
  //
@@ -62197,8 +62240,7 @@ var require_javascript_compiler = __commonJS({
62197
62240
  compiler = new this.compiler();
62198
62241
  var existing = this.matchExistingProgram(child);
62199
62242
  if (existing == null) {
62200
- this.context.programs.push("");
62201
- var index = this.context.programs.length;
62243
+ var index = this.context.programs.push("") - 1;
62202
62244
  child.index = index;
62203
62245
  child.name = "program" + index;
62204
62246
  this.context.programs[index] = compiler.compile(child, options, this.context, !this.precompile);
@@ -62442,16 +62484,16 @@ var require_javascript_compiler = __commonJS({
62442
62484
  JavaScriptCompiler.isValidJavaScriptVariableName = function(name) {
62443
62485
  return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name);
62444
62486
  };
62445
- function strictLookup(requireTerminal, compiler, parts, i, type) {
62487
+ function strictLookup(requireTerminal, compiler, parts, startPartIndex, type) {
62446
62488
  var stack = compiler.popStack(), len = parts.length;
62447
62489
  if (requireTerminal) {
62448
62490
  len--;
62449
62491
  }
62450
- for (; i < len; i++) {
62492
+ for (var i = startPartIndex; i < len; i++) {
62451
62493
  stack = compiler.nameLookup(stack, parts[i], type);
62452
62494
  }
62453
62495
  if (requireTerminal) {
62454
- return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[i]), ", ", JSON.stringify(compiler.source.currentLocation), " )"];
62496
+ return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[len]), ", ", JSON.stringify(compiler.source.currentLocation), " )"];
62455
62497
  } else {
62456
62498
  return stack;
62457
62499
  }
@@ -62727,7 +62769,7 @@ var id_default = ID;
62727
62769
  // lib/constants.ts
62728
62770
  var SDK_TITLE = "Appwrite";
62729
62771
  var SDK_TITLE_LOWER = "appwrite";
62730
- var SDK_VERSION = "16.0.0";
62772
+ var SDK_VERSION = "17.1.0";
62731
62773
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
62732
62774
  var EXECUTABLE_NAME = "appwrite";
62733
62775
  var NPM_PACKAGE_NAME = "appwrite-cli";
@@ -78128,48 +78170,48 @@ import os4 from "os";
78128
78170
  import path from "path";
78129
78171
 
78130
78172
  // node_modules/tar/dist/esm/index.min.js
78131
- import Ur from "events";
78173
+ import Kr from "events";
78132
78174
  import I from "fs";
78133
78175
  import { EventEmitter as Ti } from "node:events";
78134
78176
  import Ns from "node:stream";
78135
- import { StringDecoder as Dr } from "node:string_decoder";
78177
+ import { StringDecoder as Mr } from "node:string_decoder";
78136
78178
  import nr from "node:path";
78137
78179
  import Vt from "node:fs";
78138
- import { dirname as Rn, parse as bn } from "path";
78139
- import { EventEmitter as En } from "events";
78180
+ import { dirname as xn, parse as Ln } from "path";
78181
+ import { EventEmitter as _n } from "events";
78140
78182
  import Mi from "assert";
78141
78183
  import { Buffer as gt } from "buffer";
78142
78184
  import * as ks from "zlib";
78143
- import Zr from "zlib";
78185
+ import qr from "zlib";
78144
78186
  import { posix as Zt } from "node:path";
78145
- import { basename as fn } from "node:path";
78187
+ import { basename as wn } from "node:path";
78146
78188
  import fi from "fs";
78147
78189
  import $ from "fs";
78148
78190
  import $s from "path";
78149
- import { win32 as Tn } from "node:path";
78191
+ import { win32 as In } from "node:path";
78150
78192
  import sr from "path";
78151
- import xr from "node:fs";
78152
- import eo from "node:assert";
78153
- import { randomBytes as Tr } from "node:crypto";
78193
+ import Cr from "node:fs";
78194
+ import so from "node:assert";
78195
+ import { randomBytes as Ir } from "node:crypto";
78154
78196
  import u from "node:fs";
78155
78197
  import R from "node:path";
78156
- import ar from "fs";
78198
+ import cr from "fs";
78157
78199
  import mi from "node:fs";
78158
78200
  import Ee from "node:path";
78159
78201
  import k from "node:fs";
78160
- import Xn from "node:fs/promises";
78202
+ import jn from "node:fs/promises";
78161
78203
  import pi from "node:path";
78162
- import { join as pr } from "node:path";
78204
+ import { join as br } from "node:path";
78163
78205
  import v from "node:fs";
78164
- import Lr from "node:path";
78165
- var Nr = Object.defineProperty;
78166
- var Ar = (s3, t) => {
78167
- for (var e in t) Nr(s3, e, { get: t[e], enumerable: true });
78206
+ import Fr from "node:path";
78207
+ var kr = Object.defineProperty;
78208
+ var vr = (s3, t) => {
78209
+ for (var e in t) kr(s3, e, { get: t[e], enumerable: true });
78168
78210
  };
78169
78211
  var Os = typeof process == "object" && process ? process : { stdout: null, stderr: null };
78170
- var Ir = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Cr(s3) || Fr(s3));
78171
- var Cr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
78172
- var Fr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
78212
+ var Br = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof D || s3 instanceof Ns || Pr(s3) || zr(s3));
78213
+ var Pr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.pipe == "function" && s3.pipe !== Ns.Writable.prototype.pipe;
78214
+ var zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof Ti && typeof s3.write == "function" && typeof s3.end == "function";
78173
78215
  var q = /* @__PURE__ */ Symbol("EOF");
78174
78216
  var j = /* @__PURE__ */ Symbol("maybeEmitEnd");
78175
78217
  var rt = /* @__PURE__ */ Symbol("emittedEnd");
@@ -78202,10 +78244,10 @@ var Jt = /* @__PURE__ */ Symbol("signal");
78202
78244
  var yt = /* @__PURE__ */ Symbol("dataListeners");
78203
78245
  var C = /* @__PURE__ */ Symbol("discarded");
78204
78246
  var te = (s3) => Promise.resolve().then(s3);
78205
- var kr = (s3) => s3();
78206
- var vr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78207
- var Mr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78208
- var Br = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78247
+ var Ur = (s3) => s3();
78248
+ var Hr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
78249
+ var Wr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
78250
+ var Gr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
78209
78251
  var Ce = class {
78210
78252
  src;
78211
78253
  dest;
@@ -78231,8 +78273,8 @@ var Oi = class extends Ce {
78231
78273
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
78232
78274
  }
78233
78275
  };
78234
- var Pr = (s3) => !!s3.objectMode;
78235
- var zr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78276
+ var Zr = (s3) => !!s3.objectMode;
78277
+ var Yr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
78236
78278
  var D = class extends Ti {
78237
78279
  [b] = false;
78238
78280
  [Qt] = false;
@@ -78258,7 +78300,7 @@ var D = class extends Ti {
78258
78300
  constructor(...t) {
78259
78301
  let e = t[0] || {};
78260
78302
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
78261
- Pr(e) ? (this[L] = true, this[z3] = null) : zr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new Dr(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78303
+ Zr(e) ? (this[L] = true, this[z3] = null) : Yr(e) ? (this[z3] = e.encoding, this[L] = false) : (this[L] = false, this[z3] = null), this[Z] = !!e.async, this[Mt] = this[z3] ? new Mr(this[z3]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[_] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[A] });
78262
78304
  let { signal: i } = e;
78263
78305
  i && (this[Jt] = i, i.aborted ? this[gi]() : i.addEventListener("abort", () => this[gi]()));
78264
78306
  }
@@ -78299,10 +78341,10 @@ var D = class extends Ti {
78299
78341
  if (this[q]) throw new Error("write after end");
78300
78342
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
78301
78343
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
78302
- let r = this[Z] ? te : kr;
78344
+ let r = this[Z] ? te : Ur;
78303
78345
  if (!this[L] && !Buffer.isBuffer(t)) {
78304
- if (Br(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78305
- else if (Mr(t)) t = Buffer.from(t);
78346
+ if (Gr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
78347
+ else if (Wr(t)) t = Buffer.from(t);
78306
78348
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
78307
78349
  }
78308
78350
  return this[L] ? (this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : t.length ? (typeof t == "string" && !(e === this[z3] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z3] && (t = this[Mt].write(t)), this[b] && this[g] !== 0 && this[Ae](true), this[b] ? this.emit("data", t) : this[yi](t), this[g] !== 0 && this.emit("readable"), i && r(i), this[b]) : (this[g] !== 0 && this.emit("readable"), i && r(i), this[b]);
@@ -78375,7 +78417,7 @@ var D = class extends Ti {
78375
78417
  let i = super.on(t, e);
78376
78418
  if (t === "data") this[C] = false, this[yt]++, !this[A].length && !this[b] && this[Bt]();
78377
78419
  else if (t === "readable" && this[g] !== 0) super.emit("readable");
78378
- else if (vr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78420
+ else if (Hr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
78379
78421
  else if (t === "error" && this[jt]) {
78380
78422
  let r = e;
78381
78423
  this[Z] ? te(() => r.call(this, this[jt])) : r.call(this, this[jt]);
@@ -78502,10 +78544,10 @@ var D = class extends Ti {
78502
78544
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
78503
78545
  }
78504
78546
  static get isStream() {
78505
- return Ir;
78547
+ return Br;
78506
78548
  }
78507
78549
  };
78508
- var Hr = I.writev;
78550
+ var Vr = I.writev;
78509
78551
  var ot = /* @__PURE__ */ Symbol("_autoClose");
78510
78552
  var H = /* @__PURE__ */ Symbol("_close");
78511
78553
  var ee = /* @__PURE__ */ Symbol("_ended");
@@ -78638,7 +78680,7 @@ var Me = class extends _t {
78638
78680
  }
78639
78681
  }
78640
78682
  };
78641
- var tt = class extends Ur {
78683
+ var tt = class extends Kr {
78642
78684
  readable = false;
78643
78685
  writable = true;
78644
78686
  [bt] = false;
@@ -78698,7 +78740,7 @@ var tt = class extends Ur {
78698
78740
  else if (this[Y].length === 1) this[ke](this[Y].pop());
78699
78741
  else {
78700
78742
  let t = this[Y];
78701
- this[Y] = [], Hr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78743
+ this[Y] = [], Vr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
78702
78744
  }
78703
78745
  }
78704
78746
  [H]() {
@@ -78738,21 +78780,21 @@ var Wt = class extends tt {
78738
78780
  }
78739
78781
  }
78740
78782
  };
78741
- var Wr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
78783
+ var $r = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
78742
78784
  var As = (s3) => !!s3.sync && !!s3.file;
78743
78785
  var Ds = (s3) => !s3.sync && !!s3.file;
78744
78786
  var Is = (s3) => !!s3.sync && !s3.file;
78745
78787
  var Cs = (s3) => !s3.sync && !s3.file;
78746
78788
  var Fs = (s3) => !!s3.file;
78747
- var Gr = (s3) => {
78748
- let t = Wr.get(s3);
78789
+ var Xr = (s3) => {
78790
+ let t = $r.get(s3);
78749
78791
  return t || s3;
78750
78792
  };
78751
78793
  var re = (s3 = {}) => {
78752
78794
  if (!s3) return {};
78753
78795
  let t = {};
78754
78796
  for (let [e, i] of Object.entries(s3)) {
78755
- let r = Gr(e);
78797
+ let r = Xr(e);
78756
78798
  t[r] = i;
78757
78799
  }
78758
78800
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
@@ -78775,13 +78817,13 @@ var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
78775
78817
  }
78776
78818
  throw new Error("impossible options??");
78777
78819
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
78778
- var Yr = Zr.constants || { ZLIB_VERNUM: 4736 };
78779
- var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, Yr));
78780
- var Kr = gt.concat;
78820
+ var jr = qr.constants || { ZLIB_VERNUM: 4736 };
78821
+ var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
78822
+ var Qr = gt.concat;
78781
78823
  var vs = Object.getOwnPropertyDescriptor(gt, "concat");
78782
- var Vr = (s3) => s3;
78824
+ var Jr = (s3) => s3;
78783
78825
  var ki = vs?.writable === true || vs?.set !== void 0 ? (s3) => {
78784
- gt.concat = s3 ? Vr : Kr;
78826
+ gt.concat = s3 ? Jr : Qr;
78785
78827
  } : (s3) => {
78786
78828
  };
78787
78829
  var Ot = /* @__PURE__ */ Symbol("_superWrite");
@@ -78942,15 +78984,15 @@ var Ye = class extends Ge {
78942
78984
  }
78943
78985
  };
78944
78986
  var Ms = (s3, t) => {
78945
- if (Number.isSafeInteger(s3)) s3 < 0 ? qr(s3, t) : Xr(s3, t);
78987
+ if (Number.isSafeInteger(s3)) s3 < 0 ? sn(s3, t) : en(s3, t);
78946
78988
  else throw Error("cannot encode number outside of javascript safe integer range");
78947
78989
  return t;
78948
78990
  };
78949
- var Xr = (s3, t) => {
78991
+ var en = (s3, t) => {
78950
78992
  t[0] = 128;
78951
78993
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
78952
78994
  };
78953
- var qr = (s3, t) => {
78995
+ var sn = (s3, t) => {
78954
78996
  t[0] = 255;
78955
78997
  var e = false;
78956
78998
  s3 = s3 * -1;
@@ -78960,19 +79002,19 @@ var qr = (s3, t) => {
78960
79002
  }
78961
79003
  };
78962
79004
  var Bs = (s3) => {
78963
- let t = s3[0], e = t === 128 ? Qr(s3.subarray(1, s3.length)) : t === 255 ? jr(s3) : null;
79005
+ let t = s3[0], e = t === 128 ? nn(s3.subarray(1, s3.length)) : t === 255 ? rn(s3) : null;
78964
79006
  if (e === null) throw Error("invalid base256 encoding");
78965
79007
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
78966
79008
  return e;
78967
79009
  };
78968
- var jr = (s3) => {
79010
+ var rn = (s3) => {
78969
79011
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
78970
79012
  var n = Number(s3[r]), o;
78971
79013
  i ? o = Ps(n) : n === 0 ? o = n : (i = true, o = zs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
78972
79014
  }
78973
79015
  return e;
78974
79016
  };
78975
- var Qr = (s3) => {
79017
+ var nn = (s3) => {
78976
79018
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
78977
79019
  var r = Number(s3[i]);
78978
79020
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
@@ -78982,9 +79024,9 @@ var Qr = (s3) => {
78982
79024
  var Ps = (s3) => (255 ^ s3) & 255;
78983
79025
  var zs = (s3) => (255 ^ s3) + 1 & 255;
78984
79026
  var Bi = {};
78985
- Ar(Bi, { code: () => Ke, isCode: () => oe, isName: () => tn, name: () => he });
79027
+ vr(Bi, { code: () => Ke, isCode: () => oe, isName: () => hn, name: () => he });
78986
79028
  var oe = (s3) => he.has(s3);
78987
- var tn = (s3) => Ke.has(s3);
79029
+ var hn = (s3) => Ke.has(s3);
78988
79030
  var he = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
78989
79031
  var Ke = new Map(Array.from(he).map((s3) => [s3[1], s3[0]]));
78990
79032
  var F = class {
@@ -79033,7 +79075,7 @@ var F = class {
79033
79075
  }
79034
79076
  encode(t, e = 0) {
79035
79077
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
79036
- let i = this.ctime || this.atime ? 130 : 155, r = en(this.path || "", i), n = r[0], o = r[1];
79078
+ let i = this.ctime || this.atime ? 130 : 155, r = an(this.path || "", i), n = r[0], o = r[1];
79037
79079
  this.needPax = !!r[2], this.needPax = xt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = zi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = xt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = xt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = xt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = xt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = xt(t, e + 345, 155, o) || this.needPax : (this.needPax = xt(t, e + 345, 130, o) || this.needPax, this.needPax = zi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = zi(t, e + 488, 12, this.ctime) || this.needPax);
79038
79080
  let h = 256;
79039
79081
  for (let a = e; a < e + 148; a++) h += t[a];
@@ -79053,7 +79095,7 @@ var F = class {
79053
79095
  else throw new TypeError("invalid entry type: " + t);
79054
79096
  }
79055
79097
  };
79056
- var en = (s3, t) => {
79098
+ var an = (s3, t) => {
79057
79099
  let i = s3, r = "", n, o = Zt.parse(s3).root || ".";
79058
79100
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
79059
79101
  else {
@@ -79066,19 +79108,19 @@ var en = (s3, t) => {
79066
79108
  return n;
79067
79109
  };
79068
79110
  var Tt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
79069
- var Pi = (s3, t, e) => sn(at(s3, t, e));
79070
- var sn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79071
- var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : nn(s3, t, e);
79072
- var rn = (s3) => isNaN(s3) ? void 0 : s3;
79073
- var nn = (s3, t, e) => rn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79074
- var on = { 12: 8589934591, 8: 2097151 };
79075
- var lt = (s3, t, e, i) => i === void 0 ? false : i > on[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (hn(s3, t, e, i), false);
79076
- var hn = (s3, t, e, i) => s3.write(an(i, e), t, e, "ascii");
79077
- var an = (s3, t) => ln(Math.floor(s3).toString(8), t);
79078
- var ln = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79111
+ var Pi = (s3, t, e) => ln(at(s3, t, e));
79112
+ var ln = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
79113
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? Bs(s3.subarray(t, t + e)) : fn(s3, t, e);
79114
+ var cn = (s3) => isNaN(s3) ? void 0 : s3;
79115
+ var fn = (s3, t, e) => cn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
79116
+ var dn = { 12: 8589934591, 8: 2097151 };
79117
+ var lt = (s3, t, e, i) => i === void 0 ? false : i > dn[e] || i < 0 ? (Ms(i, s3.subarray(t, t + e)), true) : (un(s3, t, e, i), false);
79118
+ var un = (s3, t, e, i) => s3.write(mn(i, e), t, e, "ascii");
79119
+ var mn = (s3, t) => pn(Math.floor(s3).toString(8), t);
79120
+ var pn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
79079
79121
  var zi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
79080
- var cn = new Array(156).join("\0");
79081
- var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + cn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
79122
+ var En = new Array(156).join("\0");
79123
+ var xt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + En, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
79082
79124
  var ct = class s {
79083
79125
  atime;
79084
79126
  mtime;
@@ -79105,7 +79147,7 @@ var ct = class s {
79105
79147
  if (t === "") return Buffer.allocUnsafe(0);
79106
79148
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
79107
79149
  for (let n = 0; n < 512; n++) r[n] = 0;
79108
- new F({ path: ("PaxHeader/" + fn(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
79150
+ new F({ path: ("PaxHeader/" + wn(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
79109
79151
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
79110
79152
  return r;
79111
79153
  }
@@ -79119,13 +79161,13 @@ var ct = class s {
79119
79161
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
79120
79162
  }
79121
79163
  static parse(t, e, i = false) {
79122
- return new s(dn(un(t), e), i);
79164
+ return new s(Sn(yn(t), e), i);
79123
79165
  }
79124
79166
  };
79125
- var dn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79126
- var un = (s3) => s3.replace(/\n$/, "").split(`
79127
- `).reduce(mn, /* @__PURE__ */ Object.create(null));
79128
- var mn = (s3, t) => {
79167
+ var Sn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
79168
+ var yn = (s3) => s3.replace(/\n$/, "").split(`
79169
+ `).reduce(Rn, /* @__PURE__ */ Object.create(null));
79170
+ var Rn = (s3, t) => {
79129
79171
  let e = parseInt(t, 10);
79130
79172
  if (e !== Buffer.byteLength(t) + 1) return s3;
79131
79173
  t = t.slice((e + " ").length);
@@ -79134,8 +79176,8 @@ var mn = (s3, t) => {
79134
79176
  let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
79135
79177
  return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
79136
79178
  };
79137
- var pn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79138
- var f = pn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79179
+ var bn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
79180
+ var f = bn !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
79139
79181
  var Yt = class extends D {
79140
79182
  extended;
79141
79183
  globalExtended;
@@ -79203,10 +79245,10 @@ var Yt = class extends D {
79203
79245
  var Lt = (s3, t, e, i = {}) => {
79204
79246
  s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
79205
79247
  };
79206
- var wn = 1024 * 1024;
79248
+ var gn = 1024 * 1024;
79207
79249
  var Zi = Buffer.from([31, 139]);
79208
79250
  var Yi = Buffer.from([40, 181, 47, 253]);
79209
- var Sn = Math.max(Zi.length, Yi.length);
79251
+ var On = Math.max(Zi.length, Yi.length);
79210
79252
  var B = /* @__PURE__ */ Symbol("state");
79211
79253
  var Nt = /* @__PURE__ */ Symbol("writeEntry");
79212
79254
  var et = /* @__PURE__ */ Symbol("readEntry");
@@ -79237,8 +79279,8 @@ var Dt = /* @__PURE__ */ Symbol("sawValidEntry");
79237
79279
  var je = /* @__PURE__ */ Symbol("sawNullBlock");
79238
79280
  var Qe = /* @__PURE__ */ Symbol("sawEOF");
79239
79281
  var Zs = /* @__PURE__ */ Symbol("closeStream");
79240
- var yn = () => true;
79241
- var st = class extends En {
79282
+ var Tn = () => true;
79283
+ var st = class extends _n {
79242
79284
  file;
79243
79285
  strict;
79244
79286
  maxMetaEntrySize;
@@ -79269,7 +79311,7 @@ var st = class extends En {
79269
79311
  (this[B] === "begin" || this[Dt] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
79270
79312
  }), t.ondone ? this.on(qe, t.ondone) : this.on(qe, () => {
79271
79313
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
79272
- }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || wn, this.filter = typeof t.filter == "function" ? t.filter : yn;
79314
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || gn, this.filter = typeof t.filter == "function" ? t.filter : Tn;
79273
79315
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
79274
79316
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
79275
79317
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
@@ -79369,7 +79411,7 @@ var st = class extends En {
79369
79411
  write(t, e, i) {
79370
79412
  if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
79371
79413
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
79372
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < Sn) return this[p] = t, i?.(), true;
79414
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < On) return this[p] = t, i?.(), true;
79373
79415
  for (let a = 0; this[y] === void 0 && a < Zi.length; a++) t[a] !== Zi[a] && (this[y] = false);
79374
79416
  let o = false;
79375
79417
  if (this[y] === false && this.zstd !== false) {
@@ -79459,7 +79501,7 @@ var mt = (s3) => {
79459
79501
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
79460
79502
  return e === -1 ? s3 : s3.slice(0, e);
79461
79503
  };
79462
- var _n = (s3) => {
79504
+ var Nn = (s3) => {
79463
79505
  let t = s3.onReadEntry;
79464
79506
  s3.onReadEntry = t ? (e) => {
79465
79507
  t(e), e.resume();
@@ -79467,17 +79509,17 @@ var _n = (s3) => {
79467
79509
  };
79468
79510
  var Ki = (s3, t) => {
79469
79511
  let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
79470
- let h = o || bn(n).root || ".", a;
79512
+ let h = o || Ln(n).root || ".", a;
79471
79513
  if (n === h) a = false;
79472
79514
  else {
79473
79515
  let l = e.get(n);
79474
- a = l !== void 0 ? l : r(Rn(n), h);
79516
+ a = l !== void 0 ? l : r(xn(n), h);
79475
79517
  }
79476
79518
  return e.set(n, a), a;
79477
79519
  };
79478
79520
  s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
79479
79521
  };
79480
- var gn = (s3) => {
79522
+ var An = (s3) => {
79481
79523
  let t = new st(s3), e = s3.file, i;
79482
79524
  try {
79483
79525
  i = Vt.openSync(e, "r");
@@ -79501,7 +79543,7 @@ var gn = (s3) => {
79501
79543
  }
79502
79544
  }
79503
79545
  };
79504
- var On = (s3, t) => {
79546
+ var Dn = (s3, t) => {
79505
79547
  let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
79506
79548
  return new Promise((o, h) => {
79507
79549
  e.on("error", h), e.on("end", o), Vt.stat(r, (a, l) => {
@@ -79513,14 +79555,14 @@ var On = (s3, t) => {
79513
79555
  });
79514
79556
  });
79515
79557
  };
79516
- var It = K(gn, On, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79517
- t?.length && Ki(s3, t), s3.noResume || _n(s3);
79558
+ var It = K(An, Dn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
79559
+ t?.length && Ki(s3, t), s3.noResume || Nn(s3);
79518
79560
  });
79519
79561
  var Vi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
79520
- var { isAbsolute: xn, parse: Ys } = Tn;
79562
+ var { isAbsolute: Cn, parse: Ys } = In;
79521
79563
  var ce = (s3) => {
79522
79564
  let t = "", e = Ys(s3);
79523
- for (; xn(s3) || e.root; ) {
79565
+ for (; Cn(s3) || e.root; ) {
79524
79566
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
79525
79567
  s3 = s3.slice(i.length), t += i, e = Ys(s3);
79526
79568
  }
@@ -79528,12 +79570,12 @@ var ce = (s3) => {
79528
79570
  };
79529
79571
  var Je = ["|", "<", ">", "?", ":"];
79530
79572
  var $i = Je.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
79531
- var Ln = new Map(Je.map((s3, t) => [s3, $i[t]]));
79532
- var Nn = new Map($i.map((s3, t) => [s3, Je[t]]));
79533
- var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Ln.get(e)), s3);
79534
- var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(Nn.get(e)), s3);
79573
+ var Fn = new Map(Je.map((s3, t) => [s3, $i[t]]));
79574
+ var kn = new Map($i.map((s3, t) => [s3, Je[t]]));
79575
+ var Xi = (s3) => Je.reduce((t, e) => t.split(e).join(Fn.get(e)), s3);
79576
+ var Ks = (s3) => $i.reduce((t, e) => t.split(e).join(kn.get(e)), s3);
79535
79577
  var Js = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
79536
- var An = 16 * 1024 * 1024;
79578
+ var vn = 16 * 1024 * 1024;
79537
79579
  var Xs = /* @__PURE__ */ Symbol("process");
79538
79580
  var qs = /* @__PURE__ */ Symbol("file");
79539
79581
  var js = /* @__PURE__ */ Symbol("directory");
@@ -79585,7 +79627,7 @@ var de = class extends D {
79585
79627
  #t = false;
79586
79628
  constructor(t, e = {}) {
79587
79629
  let i = re(e);
79588
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || An, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
79630
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || vn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
79589
79631
  let r = false;
79590
79632
  if (!this.preservePaths) {
79591
79633
  let [o, h] = ce(this.path);
@@ -79608,7 +79650,7 @@ var de = class extends D {
79608
79650
  });
79609
79651
  }
79610
79652
  [ei](t) {
79611
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Dn(t), this.emit("stat", t), this[Xs]();
79653
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Mn(t), this.emit("stat", t), this[Xs]();
79612
79654
  }
79613
79655
  [Xs]() {
79614
79656
  switch (this.type) {
@@ -79814,7 +79856,7 @@ var ri = class extends D {
79814
79856
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
79815
79857
  }
79816
79858
  };
79817
- var Dn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79859
+ var Mn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
79818
79860
  var ni = class s2 {
79819
79861
  tail;
79820
79862
  head;
@@ -79846,11 +79888,11 @@ var ni = class s2 {
79846
79888
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
79847
79889
  }
79848
79890
  push(...t) {
79849
- for (let e = 0, i = t.length; e < i; e++) Cn(this, t[e]);
79891
+ for (let e = 0, i = t.length; e < i; e++) Pn(this, t[e]);
79850
79892
  return this.length;
79851
79893
  }
79852
79894
  unshift(...t) {
79853
- for (var e = 0, i = t.length; e < i; e++) Fn(this, t[e]);
79895
+ for (var e = 0, i = t.length; e < i; e++) zn(this, t[e]);
79854
79896
  return this.length;
79855
79897
  }
79856
79898
  pop() {
@@ -79946,7 +79988,7 @@ var ni = class s2 {
79946
79988
  let n = [];
79947
79989
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
79948
79990
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
79949
- for (let o of i) r = In(this, r, o);
79991
+ for (let o of i) r = Bn(this, r, o);
79950
79992
  return n;
79951
79993
  }
79952
79994
  reverse() {
@@ -79958,14 +80000,14 @@ var ni = class s2 {
79958
80000
  return this.head = e, this.tail = t, this;
79959
80001
  }
79960
80002
  };
79961
- function In(s3, t, e) {
80003
+ function Bn(s3, t, e) {
79962
80004
  let i = t, r = t ? t.next : s3.head, n = new ue(e, i, r, s3);
79963
80005
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
79964
80006
  }
79965
- function Cn(s3, t) {
80007
+ function Pn(s3, t) {
79966
80008
  s3.tail = new ue(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
79967
80009
  }
79968
- function Fn(s3, t) {
80010
+ function zn(s3, t) {
79969
80011
  s3.head = new ue(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
79970
80012
  }
79971
80013
  var ue = class {
@@ -80194,11 +80236,11 @@ var kt = class extends Et {
80194
80236
  });
80195
80237
  }
80196
80238
  };
80197
- var kn = (s3, t) => {
80239
+ var Un = (s3, t) => {
80198
80240
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
80199
80241
  e.pipe(i), or(e, t);
80200
80242
  };
80201
- var vn = (s3, t) => {
80243
+ var Hn = (s3, t) => {
80202
80244
  let e = new Et(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
80203
80245
  e.pipe(i);
80204
80246
  let r = new Promise((n, o) => {
@@ -80217,25 +80259,26 @@ var hr = async (s3, t) => {
80217
80259
  } }) : s3.add(e);
80218
80260
  s3.end();
80219
80261
  };
80220
- var Mn = (s3, t) => {
80262
+ var Wn = (s3, t) => {
80221
80263
  let e = new kt(s3);
80222
80264
  return or(e, t), e;
80223
80265
  };
80224
- var Bn = (s3, t) => {
80266
+ var Gn = (s3, t) => {
80225
80267
  let e = new Et(s3);
80226
80268
  return hr(e, t).catch((i) => e.emit("error", i)), e;
80227
80269
  };
80228
- var Pn = K(kn, vn, Mn, Bn, (s3, t) => {
80270
+ var Zn = K(Un, Hn, Wn, Gn, (s3, t) => {
80229
80271
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
80230
80272
  });
80231
- var zn = process.env.__FAKE_PLATFORM__ || process.platform;
80232
- var Un = zn === "win32";
80233
- var { O_CREAT: Hn, O_TRUNC: Wn, O_WRONLY: Gn } = ar.constants;
80234
- var lr = Number(process.env.__FAKE_FS_O_FILENAME__) || ar.constants.UV_FS_O_FILEMAP || 0;
80235
- var Zn = Un && !!lr;
80236
- var Yn = 512 * 1024;
80237
- var Kn = lr | Wn | Hn | Gn;
80238
- var cs = Zn ? (s3) => s3 < Yn ? Kn : "w" : () => "w";
80273
+ var Yn = process.env.__FAKE_PLATFORM__ || process.platform;
80274
+ var fr = Yn === "win32";
80275
+ var { O_CREAT: dr, O_NOFOLLOW: ar, O_TRUNC: ur, O_WRONLY: mr } = cr.constants;
80276
+ var pr = Number(process.env.__FAKE_FS_O_FILENAME__) || cr.constants.UV_FS_O_FILEMAP || 0;
80277
+ var Kn = fr && !!pr;
80278
+ var Vn = 512 * 1024;
80279
+ var $n = pr | ur | dr | mr;
80280
+ var lr = !fr && typeof ar == "number" ? ar | ur | dr | mr : null;
80281
+ var cs = lr !== null ? () => lr : Kn ? (s3) => s3 < Vn ? $n : "w" : () => "w";
80239
80282
  var fs2 = (s3, t, e) => {
80240
80283
  try {
80241
80284
  return mi.lchownSync(s3, t, e);
@@ -80248,7 +80291,7 @@ var ui = (s3, t, e, i) => {
80248
80291
  i(r && r?.code !== "ENOENT" ? r : null);
80249
80292
  });
80250
80293
  };
80251
- var Vn = (s3, t, e, i, r) => {
80294
+ var Xn = (s3, t, e, i, r) => {
80252
80295
  if (t.isDirectory()) ds(Ee.resolve(s3, t.name), e, i, (n) => {
80253
80296
  if (n) return r(n);
80254
80297
  let o = Ee.resolve(s3, t.name);
@@ -80272,10 +80315,10 @@ var ds = (s3, t, e, i) => {
80272
80315
  if (--o === 0) return ui(s3, t, e, i);
80273
80316
  }
80274
80317
  };
80275
- for (let l of n) Vn(s3, l, t, e, a);
80318
+ for (let l of n) Xn(s3, l, t, e, a);
80276
80319
  });
80277
80320
  };
80278
- var $n = (s3, t, e, i) => {
80321
+ var qn = (s3, t, e, i) => {
80279
80322
  t.isDirectory() && us(Ee.resolve(s3, t.name), e, i), fs2(Ee.resolve(s3, t.name), e, i);
80280
80323
  };
80281
80324
  var us = (s3, t, e) => {
@@ -80288,7 +80331,7 @@ var us = (s3, t, e) => {
80288
80331
  if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return fs2(s3, t, e);
80289
80332
  throw n;
80290
80333
  }
80291
- for (let r of i) $n(s3, r, t, e);
80334
+ for (let r of i) qn(s3, r, t, e);
80292
80335
  return fs2(s3, t, e);
80293
80336
  };
80294
80337
  var we = class extends Error {
@@ -80314,33 +80357,33 @@ var wt = class extends Error {
80314
80357
  return "SymlinkError";
80315
80358
  }
80316
80359
  };
80317
- var qn = (s3, t) => {
80360
+ var Qn = (s3, t) => {
80318
80361
  k.stat(s3, (e, i) => {
80319
80362
  (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
80320
80363
  });
80321
80364
  };
80322
- var cr = (s3, t, e) => {
80365
+ var Er = (s3, t, e) => {
80323
80366
  s3 = f(s3);
80324
80367
  let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
80325
80368
  E ? e(E) : x && a ? ds(x, o, h, (xe) => S(xe)) : n ? k.chmod(s3, r, e) : e();
80326
80369
  };
80327
- if (s3 === d) return qn(s3, S);
80328
- if (l) return Xn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
80370
+ if (s3 === d) return Qn(s3, S);
80371
+ if (l) return jn.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
80329
80372
  let N = f(pi.relative(d, s3)).split("/");
80330
80373
  ms(d, N, r, c, d, void 0, S);
80331
80374
  };
80332
80375
  var ms = (s3, t, e, i, r, n, o) => {
80333
80376
  if (t.length === 0) return o(null, n);
80334
80377
  let h = t.shift(), a = f(pi.resolve(s3 + "/" + h));
80335
- k.mkdir(a, e, fr(a, t, e, i, r, n, o));
80378
+ k.mkdir(a, e, wr(a, t, e, i, r, n, o));
80336
80379
  };
80337
- var fr = (s3, t, e, i, r, n, o) => (h) => {
80380
+ var wr = (s3, t, e, i, r, n, o) => (h) => {
80338
80381
  h ? k.lstat(s3, (a, l) => {
80339
80382
  if (a) a.path = a.path && f(a.path), o(a);
80340
80383
  else if (l.isDirectory()) ms(s3, t, e, i, r, n, o);
80341
80384
  else if (i) k.unlink(s3, (c) => {
80342
80385
  if (c) return o(c);
80343
- k.mkdir(s3, e, fr(s3, t, e, i, r, n, o));
80386
+ k.mkdir(s3, e, wr(s3, t, e, i, r, n, o));
80344
80387
  });
80345
80388
  else {
80346
80389
  if (l.isSymbolicLink()) return o(new wt(s3, s3 + "/" + t.join("/")));
@@ -80348,7 +80391,7 @@ var fr = (s3, t, e, i, r, n, o) => (h) => {
80348
80391
  }
80349
80392
  }) : (n = n || s3, ms(s3, t, e, i, r, n, o));
80350
80393
  };
80351
- var jn = (s3) => {
80394
+ var Jn = (s3) => {
80352
80395
  let t = false, e;
80353
80396
  try {
80354
80397
  t = k.statSync(s3).isDirectory();
@@ -80358,12 +80401,12 @@ var jn = (s3) => {
80358
80401
  if (!t) throw new we(s3, e ?? "ENOTDIR");
80359
80402
  }
80360
80403
  };
80361
- var dr = (s3, t) => {
80404
+ var Sr = (s3, t) => {
80362
80405
  s3 = f(s3);
80363
80406
  let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
80364
80407
  E && h && us(E, n, o), r && k.chmodSync(s3, i);
80365
80408
  };
80366
- if (s3 === c) return jn(c), d();
80409
+ if (s3 === c) return Jn(c), d();
80367
80410
  if (a) return d(k.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
80368
80411
  let T = f(pi.relative(c, s3)).split("/"), N;
80369
80412
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
@@ -80382,29 +80425,29 @@ var dr = (s3, t) => {
80382
80425
  return d(N);
80383
80426
  };
80384
80427
  var ps = /* @__PURE__ */ Object.create(null);
80385
- var ur = 1e4;
80428
+ var yr = 1e4;
80386
80429
  var $t = /* @__PURE__ */ new Set();
80387
- var mr = (s3) => {
80430
+ var Rr = (s3) => {
80388
80431
  $t.has(s3) ? $t.delete(s3) : ps[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), $t.add(s3);
80389
- let t = ps[s3], e = $t.size - ur;
80390
- if (e > ur / 10) {
80432
+ let t = ps[s3], e = $t.size - yr;
80433
+ if (e > yr / 10) {
80391
80434
  for (let i of $t) if ($t.delete(i), delete ps[i], --e <= 0) break;
80392
80435
  }
80393
80436
  return t;
80394
80437
  };
80395
- var Qn = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80396
- var Jn = Qn === "win32";
80397
- var to = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80438
+ var to = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80439
+ var eo = to === "win32";
80440
+ var io = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
80398
80441
  let r = e.at(-1);
80399
- return r !== void 0 && (i = pr(r, i)), e.push(i || "/"), e;
80442
+ return r !== void 0 && (i = br(r, i)), e.push(i || "/"), e;
80400
80443
  }, []);
80401
80444
  var Ei = class {
80402
80445
  #t = /* @__PURE__ */ new Map();
80403
80446
  #i = /* @__PURE__ */ new Map();
80404
80447
  #s = /* @__PURE__ */ new Set();
80405
80448
  reserve(t, e) {
80406
- t = Jn ? ["win32 parallelization disabled"] : t.map((r) => mt(pr(mr(r))));
80407
- let i = new Set(t.map((r) => to(r)).reduce((r, n) => r.concat(n)));
80449
+ t = eo ? ["win32 parallelization disabled"] : t.map((r) => mt(br(Rr(r))));
80450
+ let i = new Set(t.map((r) => io(r)).reduce((r, n) => r.concat(n)));
80408
80451
  this.#i.set(e, { dirs: i, paths: t });
80409
80452
  for (let r of t) {
80410
80453
  let n = this.#t.get(r);
@@ -80462,25 +80505,25 @@ var Ei = class {
80462
80505
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
80463
80506
  }
80464
80507
  };
80465
- var Er = () => process.umask();
80466
- var wr = /* @__PURE__ */ Symbol("onEntry");
80508
+ var _r = () => process.umask();
80509
+ var gr = /* @__PURE__ */ Symbol("onEntry");
80467
80510
  var ys = /* @__PURE__ */ Symbol("checkFs");
80468
- var Sr = /* @__PURE__ */ Symbol("checkFs2");
80511
+ var Or = /* @__PURE__ */ Symbol("checkFs2");
80469
80512
  var Rs = /* @__PURE__ */ Symbol("isReusable");
80470
80513
  var P = /* @__PURE__ */ Symbol("makeFs");
80471
80514
  var bs = /* @__PURE__ */ Symbol("file");
80472
80515
  var _s = /* @__PURE__ */ Symbol("directory");
80473
80516
  var Si = /* @__PURE__ */ Symbol("link");
80474
- var yr = /* @__PURE__ */ Symbol("symlink");
80475
- var Rr = /* @__PURE__ */ Symbol("hardlink");
80517
+ var Tr = /* @__PURE__ */ Symbol("symlink");
80518
+ var xr = /* @__PURE__ */ Symbol("hardlink");
80476
80519
  var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
80477
- var br = /* @__PURE__ */ Symbol("unsupported");
80478
- var _r = /* @__PURE__ */ Symbol("checkPath");
80520
+ var Lr = /* @__PURE__ */ Symbol("unsupported");
80521
+ var Nr = /* @__PURE__ */ Symbol("checkPath");
80479
80522
  var Es = /* @__PURE__ */ Symbol("stripAbsolutePath");
80480
80523
  var St = /* @__PURE__ */ Symbol("mkdir");
80481
80524
  var O = /* @__PURE__ */ Symbol("onError");
80482
80525
  var wi = /* @__PURE__ */ Symbol("pending");
80483
- var gr = /* @__PURE__ */ Symbol("pend");
80526
+ var Ar = /* @__PURE__ */ Symbol("pend");
80484
80527
  var Xt = /* @__PURE__ */ Symbol("unpend");
80485
80528
  var ws = /* @__PURE__ */ Symbol("ended");
80486
80529
  var Ss = /* @__PURE__ */ Symbol("maybeClose");
@@ -80489,23 +80532,23 @@ var Re = /* @__PURE__ */ Symbol("doChown");
80489
80532
  var be = /* @__PURE__ */ Symbol("uid");
80490
80533
  var _e = /* @__PURE__ */ Symbol("gid");
80491
80534
  var ge = /* @__PURE__ */ Symbol("checkedCwd");
80492
- var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80493
- var Oe = io === "win32";
80494
- var so = 1024;
80495
- var ro = (s3, t) => {
80535
+ var ro = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80536
+ var Oe = ro === "win32";
80537
+ var no = 1024;
80538
+ var oo = (s3, t) => {
80496
80539
  if (!Oe) return u.unlink(s3, t);
80497
- let e = s3 + ".DELETE." + Tr(16).toString("hex");
80540
+ let e = s3 + ".DELETE." + Ir(16).toString("hex");
80498
80541
  u.rename(s3, e, (i) => {
80499
80542
  if (i) return t(i);
80500
80543
  u.unlink(e, t);
80501
80544
  });
80502
80545
  };
80503
- var no = (s3) => {
80546
+ var ho = (s3) => {
80504
80547
  if (!Oe) return u.unlinkSync(s3);
80505
- let t = s3 + ".DELETE." + Tr(16).toString("hex");
80548
+ let t = s3 + ".DELETE." + Ir(16).toString("hex");
80506
80549
  u.renameSync(s3, t), u.unlinkSync(t);
80507
80550
  };
80508
- var Or = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80551
+ var Dr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
80509
80552
  var qt = class extends st {
80510
80553
  [ws] = false;
80511
80554
  [ge] = false;
@@ -80543,7 +80586,7 @@ var qt = class extends st {
80543
80586
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
80544
80587
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
80545
80588
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
80546
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : so, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Er() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[wr](e));
80589
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : no, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(R.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : _r() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[gr](e));
80547
80590
  }
80548
80591
  warn(t, e, i = {}) {
80549
80592
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
@@ -80562,7 +80605,7 @@ var qt = class extends st {
80562
80605
  }
80563
80606
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
80564
80607
  }
80565
- [_r](t) {
80608
+ [Nr](t) {
80566
80609
  let e = f(t.path), i = e.split("/");
80567
80610
  if (this.strip) {
80568
80611
  if (i.length < this.strip) return false;
@@ -80585,9 +80628,9 @@ var qt = class extends st {
80585
80628
  }
80586
80629
  return true;
80587
80630
  }
80588
- [wr](t) {
80589
- if (!this[_r](t)) return t.resume();
80590
- switch (eo.equal(typeof t.absolute, "string"), t.type) {
80631
+ [gr](t) {
80632
+ if (!this[Nr](t)) return t.resume();
80633
+ switch (so.equal(typeof t.absolute, "string"), t.type) {
80591
80634
  case "Directory":
80592
80635
  case "GNUDumpDir":
80593
80636
  t.mode && (t.mode = t.mode | 448);
@@ -80598,23 +80641,23 @@ var qt = class extends st {
80598
80641
  case "SymbolicLink":
80599
80642
  return this[ys](t);
80600
80643
  default:
80601
- return this[br](t);
80644
+ return this[Lr](t);
80602
80645
  }
80603
80646
  }
80604
80647
  [O](t, e) {
80605
80648
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[Xt](), e.resume());
80606
80649
  }
80607
80650
  [St](t, e, i) {
80608
- cr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
80651
+ Er(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
80609
80652
  }
80610
80653
  [Re](t) {
80611
80654
  return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
80612
80655
  }
80613
80656
  [be](t) {
80614
- return Or(this.uid, t.uid, this.processUid);
80657
+ return Dr(this.uid, t.uid, this.processUid);
80615
80658
  }
80616
80659
  [_e](t) {
80617
- return Or(this.gid, t.gid, this.processGid);
80660
+ return Dr(this.gid, t.gid, this.processGid);
80618
80661
  }
80619
80662
  [bs](t, e) {
80620
80663
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: cs(t.size), mode: i, autoClose: false });
@@ -80664,16 +80707,16 @@ var qt = class extends st {
80664
80707
  t.mtime && !this.noMtime && (n++, u.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, u.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
80665
80708
  });
80666
80709
  }
80667
- [br](t) {
80710
+ [Lr](t) {
80668
80711
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
80669
80712
  }
80670
- [yr](t, e) {
80713
+ [Tr](t, e) {
80671
80714
  let i = f(R.relative(this.cwd, R.resolve(R.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
80672
80715
  this[ye](t, this.cwd, i, () => this[Si](t, String(t.linkpath), "symlink", e), (r) => {
80673
80716
  this[O](r, t), e();
80674
80717
  });
80675
80718
  }
80676
- [Rr](t, e) {
80719
+ [xr](t, e) {
80677
80720
  let i = f(R.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
80678
80721
  this[ye](t, this.cwd, r, () => this[Si](t, i, "link", e), (n) => {
80679
80722
  this[O](n, t), e();
@@ -80689,7 +80732,7 @@ var qt = class extends st {
80689
80732
  this[ye](t, h, i, r, n);
80690
80733
  });
80691
80734
  }
80692
- [gr]() {
80735
+ [Ar]() {
80693
80736
  this[wi]++;
80694
80737
  }
80695
80738
  [Xt]() {
@@ -80702,11 +80745,11 @@ var qt = class extends st {
80702
80745
  return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
80703
80746
  }
80704
80747
  [ys](t) {
80705
- this[gr]();
80748
+ this[Ar]();
80706
80749
  let e = [t.path];
80707
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Sr](t, i));
80750
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Or](t, i));
80708
80751
  }
80709
- [Sr](t, e) {
80752
+ [Or](t, e) {
80710
80753
  let i = (h) => {
80711
80754
  e(h);
80712
80755
  }, r = () => {
@@ -80744,7 +80787,7 @@ var qt = class extends st {
80744
80787
  if (t.absolute !== this.cwd) return u.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
80745
80788
  }
80746
80789
  if (t.absolute === this.cwd) return this[P](null, t, i);
80747
- ro(String(t.absolute), (l) => this[P](l ?? null, t, i));
80790
+ oo(String(t.absolute), (l) => this[P](l ?? null, t, i));
80748
80791
  });
80749
80792
  };
80750
80793
  this[ge] ? n() : r();
@@ -80760,9 +80803,9 @@ var qt = class extends st {
80760
80803
  case "ContiguousFile":
80761
80804
  return this[bs](e, i);
80762
80805
  case "Link":
80763
- return this[Rr](e, i);
80806
+ return this[xr](e, i);
80764
80807
  case "SymbolicLink":
80765
- return this[yr](e, i);
80808
+ return this[Tr](e, i);
80766
80809
  case "Directory":
80767
80810
  case "GNUDumpDir":
80768
80811
  return this[_s](e, i);
@@ -80813,7 +80856,7 @@ var Te = class extends qt {
80813
80856
  let [n] = Se(() => u.rmdirSync(String(t.absolute)));
80814
80857
  this[P](n, t);
80815
80858
  }
80816
- let [r] = t.absolute === this.cwd ? [] : Se(() => no(String(t.absolute)));
80859
+ let [r] = t.absolute === this.cwd ? [] : Se(() => ho(String(t.absolute)));
80817
80860
  this[P](r, t);
80818
80861
  }
80819
80862
  [bs](t, e) {
@@ -80885,7 +80928,7 @@ var Te = class extends qt {
80885
80928
  }
80886
80929
  [St](t, e) {
80887
80930
  try {
80888
- return dr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
80931
+ return Sr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
80889
80932
  } catch (i) {
80890
80933
  return i;
80891
80934
  }
@@ -80910,14 +80953,14 @@ var Te = class extends qt {
80910
80953
  }
80911
80954
  }
80912
80955
  };
80913
- var oo = (s3) => {
80914
- let t = new Te(s3), e = s3.file, i = xr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
80956
+ var ao = (s3) => {
80957
+ let t = new Te(s3), e = s3.file, i = Cr.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
80915
80958
  new Me(e, { readSize: r, size: i.size }).pipe(t);
80916
80959
  };
80917
- var ho = (s3, t) => {
80960
+ var lo = (s3, t) => {
80918
80961
  let e = new qt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
80919
80962
  return new Promise((o, h) => {
80920
- e.on("error", h), e.on("close", o), xr.stat(r, (a, l) => {
80963
+ e.on("error", h), e.on("close", o), Cr.stat(r, (a, l) => {
80921
80964
  if (a) h(a);
80922
80965
  else {
80923
80966
  let c = new _t(r, { readSize: i, size: l.size });
@@ -80926,10 +80969,10 @@ var ho = (s3, t) => {
80926
80969
  });
80927
80970
  });
80928
80971
  };
80929
- var ao = K(oo, ho, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80972
+ var co = K(ao, lo, (s3) => new Te(s3), (s3) => new qt(s3), (s3, t) => {
80930
80973
  t?.length && Ki(s3, t);
80931
80974
  });
80932
- var lo = (s3, t) => {
80975
+ var fo = (s3, t) => {
80933
80976
  let e = new kt(s3), i = true, r, n;
80934
80977
  try {
80935
80978
  try {
@@ -80950,7 +80993,7 @@ var lo = (s3, t) => {
80950
80993
  if (n + l + 512 > o.size) break;
80951
80994
  n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
80952
80995
  }
80953
- i = false, co(s3, e, n, r, t);
80996
+ i = false, uo(s3, e, n, r, t);
80954
80997
  } finally {
80955
80998
  if (i) try {
80956
80999
  v.closeSync(r);
@@ -80958,11 +81001,11 @@ var lo = (s3, t) => {
80958
81001
  }
80959
81002
  }
80960
81003
  };
80961
- var co = (s3, t, e, i, r) => {
81004
+ var uo = (s3, t, e, i, r) => {
80962
81005
  let n = new Wt(s3.file, { fd: i, start: e });
80963
- t.pipe(n), uo(t, r);
81006
+ t.pipe(n), po(t, r);
80964
81007
  };
80965
- var fo = (s3, t) => {
81008
+ var mo = (s3, t) => {
80966
81009
  t = Array.from(t);
80967
81010
  let e = new Et(s3), i = (n, o, h) => {
80968
81011
  let a = (T, N) => {
@@ -80992,23 +81035,23 @@ var fo = (s3, t) => {
80992
81035
  i(c, S.size, (T, N) => {
80993
81036
  if (T) return o(T);
80994
81037
  let E = new tt(s3.file, { fd: c, start: N });
80995
- e.pipe(E), E.on("error", o), E.on("close", n), mo(e, t);
81038
+ e.pipe(E), E.on("error", o), E.on("close", n), Eo(e, t);
80996
81039
  });
80997
81040
  });
80998
81041
  };
80999
81042
  v.open(s3.file, h, a);
81000
81043
  });
81001
81044
  };
81002
- var uo = (s3, t) => {
81045
+ var po = (s3, t) => {
81003
81046
  t.forEach((e) => {
81004
- e.charAt(0) === "@" ? It({ file: Lr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81047
+ e.charAt(0) === "@" ? It({ file: Fr.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81005
81048
  }), s3.end();
81006
81049
  };
81007
- var mo = async (s3, t) => {
81008
- for (let e of t) e.charAt(0) === "@" ? await It({ file: Lr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81050
+ var Eo = async (s3, t) => {
81051
+ for (let e of t) e.charAt(0) === "@" ? await It({ file: Fr.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
81009
81052
  s3.end();
81010
81053
  };
81011
- var vt = K(lo, fo, () => {
81054
+ var vt = K(fo, mo, () => {
81012
81055
  throw new TypeError("file is required");
81013
81056
  }, () => {
81014
81057
  throw new TypeError("file is required");
@@ -81017,10 +81060,10 @@ var vt = K(lo, fo, () => {
81017
81060
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
81018
81061
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
81019
81062
  });
81020
- var po = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81021
- vt.validate?.(s3, t), Eo(s3);
81063
+ var wo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
81064
+ vt.validate?.(s3, t), So(s3);
81022
81065
  });
81023
- var Eo = (s3) => {
81066
+ var So = (s3) => {
81024
81067
  let t = s3.filter;
81025
81068
  s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
81026
81069
  };
@@ -81203,6 +81246,9 @@ var Client = class _Client {
81203
81246
  locale: "",
81204
81247
  mode: "",
81205
81248
  cookie: "",
81249
+ impersonateuserid: "",
81250
+ impersonateuseremail: "",
81251
+ impersonateuserphone: "",
81206
81252
  platform: "",
81207
81253
  selfSigned: false,
81208
81254
  session: void 0
@@ -81211,8 +81257,8 @@ var Client = class _Client {
81211
81257
  "x-sdk-name": "Console",
81212
81258
  "x-sdk-platform": "console",
81213
81259
  "x-sdk-language": "web",
81214
- "x-sdk-version": "6.0.0",
81215
- "X-Appwrite-Response-Format": "1.8.0"
81260
+ "x-sdk-version": "8.0.0",
81261
+ "X-Appwrite-Response-Format": "1.9.0"
81216
81262
  };
81217
81263
  this.realtime = {
81218
81264
  socket: void 0,
@@ -81535,6 +81581,48 @@ var Client = class _Client {
81535
81581
  this.config.cookie = value;
81536
81582
  return this;
81537
81583
  }
81584
+ /**
81585
+ * Set ImpersonateUserId
81586
+ *
81587
+ * Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81588
+ *
81589
+ * @param value string
81590
+ *
81591
+ * @return {this}
81592
+ */
81593
+ setImpersonateUserId(value) {
81594
+ this.headers["X-Appwrite-Impersonate-User-Id"] = value;
81595
+ this.config.impersonateuserid = value;
81596
+ return this;
81597
+ }
81598
+ /**
81599
+ * Set ImpersonateUserEmail
81600
+ *
81601
+ * Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81602
+ *
81603
+ * @param value string
81604
+ *
81605
+ * @return {this}
81606
+ */
81607
+ setImpersonateUserEmail(value) {
81608
+ this.headers["X-Appwrite-Impersonate-User-Email"] = value;
81609
+ this.config.impersonateuseremail = value;
81610
+ return this;
81611
+ }
81612
+ /**
81613
+ * Set ImpersonateUserPhone
81614
+ *
81615
+ * Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
81616
+ *
81617
+ * @param value string
81618
+ *
81619
+ * @return {this}
81620
+ */
81621
+ setImpersonateUserPhone(value) {
81622
+ this.headers["X-Appwrite-Impersonate-User-Phone"] = value;
81623
+ this.config.impersonateuserphone = value;
81624
+ return this;
81625
+ }
81538
81626
  /**
81539
81627
  * Set Platform
81540
81628
  *
@@ -81656,9 +81744,9 @@ var Client = class _Client {
81656
81744
  }
81657
81745
  return { uri: url2.toString(), options };
81658
81746
  }
81659
- chunkedUpload(method, url2, headers = {}, originalPayload = {}, onProgress) {
81660
- var _a3;
81661
- return __awaiter(this, void 0, void 0, function* () {
81747
+ chunkedUpload(method_1, url_1) {
81748
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, originalPayload = {}, onProgress) {
81749
+ var _a3;
81662
81750
  const [fileParam, file2] = (_a3 = Object.entries(originalPayload).find(([_2, value]) => value instanceof File)) !== null && _a3 !== void 0 ? _a3 : [];
81663
81751
  if (!file2 || !fileParam) {
81664
81752
  throw new Error("File not found in payload");
@@ -81700,9 +81788,9 @@ var Client = class _Client {
81700
81788
  return this.call("GET", new URL(this.config.endpoint + "/ping"));
81701
81789
  });
81702
81790
  }
81703
- call(method, url2, headers = {}, params = {}, responseType = "json") {
81704
- var _a3, _b;
81705
- return __awaiter(this, void 0, void 0, function* () {
81791
+ call(method_1, url_1) {
81792
+ return __awaiter(this, arguments, void 0, function* (method, url2, headers = {}, params = {}, responseType = "json") {
81793
+ var _a3, _b;
81706
81794
  const { uri, options } = this.prepareRequest(method, url2, headers, params);
81707
81795
  let data = null;
81708
81796
  const response = yield fetch(uri, options);
@@ -98174,7 +98262,7 @@ Permission.delete = (role) => {
98174
98262
  };
98175
98263
  var _a2;
98176
98264
  var _ID_hexTimestamp;
98177
- var ID2 = class _ID {
98265
+ var ID2 = class {
98178
98266
  /**
98179
98267
  * Uses the provided ID as the ID for the resource.
98180
98268
  *
@@ -98191,7 +98279,7 @@ var ID2 = class _ID {
98191
98279
  * @returns {string}
98192
98280
  */
98193
98281
  static unique(padding = 7) {
98194
- const baseId = __classPrivateFieldGet(_ID, _a2, "m", _ID_hexTimestamp).call(_ID);
98282
+ const baseId = __classPrivateFieldGet(_a2, _a2, "m", _ID_hexTimestamp).call(_a2);
98195
98283
  let randomPadding = "";
98196
98284
  for (let i = 0; i < padding; i++) {
98197
98285
  const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
@@ -98344,11 +98432,12 @@ Operator.dateSubDays = (days) => new Operator("dateSubDays", [days]).toString();
98344
98432
  Operator.dateSetNow = () => new Operator("dateSetNow", []).toString();
98345
98433
  var Scopes;
98346
98434
  (function(Scopes2) {
98435
+ Scopes2["Account"] = "account";
98436
+ Scopes2["TeamsRead"] = "teams.read";
98437
+ Scopes2["TeamsWrite"] = "teams.write";
98347
98438
  Scopes2["SessionsWrite"] = "sessions.write";
98348
98439
  Scopes2["UsersRead"] = "users.read";
98349
98440
  Scopes2["UsersWrite"] = "users.write";
98350
- Scopes2["TeamsRead"] = "teams.read";
98351
- Scopes2["TeamsWrite"] = "teams.write";
98352
98441
  Scopes2["DatabasesRead"] = "databases.read";
98353
98442
  Scopes2["DatabasesWrite"] = "databases.write";
98354
98443
  Scopes2["CollectionsRead"] = "collections.read";
@@ -98403,6 +98492,8 @@ var Scopes;
98403
98492
  Scopes2["TokensWrite"] = "tokens.write";
98404
98493
  Scopes2["WebhooksRead"] = "webhooks.read";
98405
98494
  Scopes2["WebhooksWrite"] = "webhooks.write";
98495
+ Scopes2["ProjectRead"] = "project.read";
98496
+ Scopes2["ProjectWrite"] = "project.write";
98406
98497
  Scopes2["PoliciesWrite"] = "policies.write";
98407
98498
  Scopes2["PoliciesRead"] = "policies.read";
98408
98499
  Scopes2["ArchivesRead"] = "archives.read";
@@ -98412,6 +98503,14 @@ var Scopes;
98412
98503
  Scopes2["DomainsRead"] = "domains.read";
98413
98504
  Scopes2["DomainsWrite"] = "domains.write";
98414
98505
  Scopes2["EventsRead"] = "events.read";
98506
+ Scopes2["PlatformsRead"] = "platforms.read";
98507
+ Scopes2["PlatformsWrite"] = "platforms.write";
98508
+ Scopes2["ProjectsRead"] = "projects.read";
98509
+ Scopes2["ProjectsWrite"] = "projects.write";
98510
+ Scopes2["KeysRead"] = "keys.read";
98511
+ Scopes2["KeysWrite"] = "keys.write";
98512
+ Scopes2["DevKeysRead"] = "devKeys.read";
98513
+ Scopes2["DevKeysWrite"] = "devKeys.write";
98415
98514
  })(Scopes || (Scopes = {}));
98416
98515
  var AuthenticatorType;
98417
98516
  (function(AuthenticatorType2) {
@@ -99164,6 +99263,9 @@ var ImageFormat;
99164
99263
  var BackupServices;
99165
99264
  (function(BackupServices2) {
99166
99265
  BackupServices2["Databases"] = "databases";
99266
+ BackupServices2["Tablesdb"] = "tablesdb";
99267
+ BackupServices2["Documentsdb"] = "documentsdb";
99268
+ BackupServices2["Vectorsdb"] = "vectorsdb";
99167
99269
  BackupServices2["Functions"] = "functions";
99168
99270
  BackupServices2["Storage"] = "storage";
99169
99271
  })(BackupServices || (BackupServices = {}));
@@ -99195,13 +99297,13 @@ var RelationMutate;
99195
99297
  RelationMutate2["Restrict"] = "restrict";
99196
99298
  RelationMutate2["SetNull"] = "setNull";
99197
99299
  })(RelationMutate || (RelationMutate = {}));
99198
- var IndexType;
99199
- (function(IndexType2) {
99200
- IndexType2["Key"] = "key";
99201
- IndexType2["Fulltext"] = "fulltext";
99202
- IndexType2["Unique"] = "unique";
99203
- IndexType2["Spatial"] = "spatial";
99204
- })(IndexType || (IndexType = {}));
99300
+ var DatabasesIndexType;
99301
+ (function(DatabasesIndexType2) {
99302
+ DatabasesIndexType2["Key"] = "key";
99303
+ DatabasesIndexType2["Fulltext"] = "fulltext";
99304
+ DatabasesIndexType2["Unique"] = "unique";
99305
+ DatabasesIndexType2["Spatial"] = "spatial";
99306
+ })(DatabasesIndexType || (DatabasesIndexType = {}));
99205
99307
  var OrderBy;
99206
99308
  (function(OrderBy2) {
99207
99309
  OrderBy2["Asc"] = "asc";
@@ -99307,92 +99409,6 @@ var Runtime;
99307
99409
  Runtime2["Flutter332"] = "flutter-3.32";
99308
99410
  Runtime2["Flutter335"] = "flutter-3.35";
99309
99411
  Runtime2["Flutter338"] = "flutter-3.38";
99310
- Runtime2["Node145rc"] = "node-14.5-rc";
99311
- Runtime2["Node160rc"] = "node-16.0-rc";
99312
- Runtime2["Node180rc"] = "node-18.0-rc";
99313
- Runtime2["Node190rc"] = "node-19.0-rc";
99314
- Runtime2["Node200rc"] = "node-20.0-rc";
99315
- Runtime2["Node210rc"] = "node-21.0-rc";
99316
- Runtime2["Node22rc"] = "node-22-rc";
99317
- Runtime2["Node23rc"] = "node-23-rc";
99318
- Runtime2["Node24rc"] = "node-24-rc";
99319
- Runtime2["Node25rc"] = "node-25-rc";
99320
- Runtime2["Php80rc"] = "php-8.0-rc";
99321
- Runtime2["Php81rc"] = "php-8.1-rc";
99322
- Runtime2["Php82rc"] = "php-8.2-rc";
99323
- Runtime2["Php83rc"] = "php-8.3-rc";
99324
- Runtime2["Php84rc"] = "php-8.4-rc";
99325
- Runtime2["Ruby30rc"] = "ruby-3.0-rc";
99326
- Runtime2["Ruby31rc"] = "ruby-3.1-rc";
99327
- Runtime2["Ruby32rc"] = "ruby-3.2-rc";
99328
- Runtime2["Ruby33rc"] = "ruby-3.3-rc";
99329
- Runtime2["Ruby34rc"] = "ruby-3.4-rc";
99330
- Runtime2["Ruby40rc"] = "ruby-4.0-rc";
99331
- Runtime2["Python38rc"] = "python-3.8-rc";
99332
- Runtime2["Python39rc"] = "python-3.9-rc";
99333
- Runtime2["Python310rc"] = "python-3.10-rc";
99334
- Runtime2["Python311rc"] = "python-3.11-rc";
99335
- Runtime2["Python312rc"] = "python-3.12-rc";
99336
- Runtime2["Python313rc"] = "python-3.13-rc";
99337
- Runtime2["Python314rc"] = "python-3.14-rc";
99338
- Runtime2["Pythonml311rc"] = "python-ml-3.11-rc";
99339
- Runtime2["Pythonml312rc"] = "python-ml-3.12-rc";
99340
- Runtime2["Pythonml313rc"] = "python-ml-3.13-rc";
99341
- Runtime2["Deno140rc"] = "deno-1.40-rc";
99342
- Runtime2["Deno146rc"] = "deno-1.46-rc";
99343
- Runtime2["Deno20rc"] = "deno-2.0-rc";
99344
- Runtime2["Deno25rc"] = "deno-2.5-rc";
99345
- Runtime2["Deno26rc"] = "deno-2.6-rc";
99346
- Runtime2["Dart215rc"] = "dart-2.15-rc";
99347
- Runtime2["Dart216rc"] = "dart-2.16-rc";
99348
- Runtime2["Dart217rc"] = "dart-2.17-rc";
99349
- Runtime2["Dart218rc"] = "dart-2.18-rc";
99350
- Runtime2["Dart219rc"] = "dart-2.19-rc";
99351
- Runtime2["Dart30rc"] = "dart-3.0-rc";
99352
- Runtime2["Dart31rc"] = "dart-3.1-rc";
99353
- Runtime2["Dart33rc"] = "dart-3.3-rc";
99354
- Runtime2["Dart35rc"] = "dart-3.5-rc";
99355
- Runtime2["Dart38rc"] = "dart-3.8-rc";
99356
- Runtime2["Dart39rc"] = "dart-3.9-rc";
99357
- Runtime2["Dart310rc"] = "dart-3.10-rc";
99358
- Runtime2["Dotnet60rc"] = "dotnet-6.0-rc";
99359
- Runtime2["Dotnet70rc"] = "dotnet-7.0-rc";
99360
- Runtime2["Dotnet80rc"] = "dotnet-8.0-rc";
99361
- Runtime2["Dotnet10rc"] = "dotnet-10-rc";
99362
- Runtime2["Java80rc"] = "java-8.0-rc";
99363
- Runtime2["Java110rc"] = "java-11.0-rc";
99364
- Runtime2["Java170rc"] = "java-17.0-rc";
99365
- Runtime2["Java180rc"] = "java-18.0-rc";
99366
- Runtime2["Java210rc"] = "java-21.0-rc";
99367
- Runtime2["Java22rc"] = "java-22-rc";
99368
- Runtime2["Java25rc"] = "java-25-rc";
99369
- Runtime2["Swift55rc"] = "swift-5.5-rc";
99370
- Runtime2["Swift58rc"] = "swift-5.8-rc";
99371
- Runtime2["Swift59rc"] = "swift-5.9-rc";
99372
- Runtime2["Swift510rc"] = "swift-5.10-rc";
99373
- Runtime2["Swift62rc"] = "swift-6.2-rc";
99374
- Runtime2["Kotlin16rc"] = "kotlin-1.6-rc";
99375
- Runtime2["Kotlin18rc"] = "kotlin-1.8-rc";
99376
- Runtime2["Kotlin19rc"] = "kotlin-1.9-rc";
99377
- Runtime2["Kotlin20rc"] = "kotlin-2.0-rc";
99378
- Runtime2["Kotlin23rc"] = "kotlin-2.3-rc";
99379
- Runtime2["Cpp17rc"] = "cpp-17-rc";
99380
- Runtime2["Cpp20rc"] = "cpp-20-rc";
99381
- Runtime2["Bun10rc"] = "bun-1.0-rc";
99382
- Runtime2["Bun11rc"] = "bun-1.1-rc";
99383
- Runtime2["Bun12rc"] = "bun-1.2-rc";
99384
- Runtime2["Bun13rc"] = "bun-1.3-rc";
99385
- Runtime2["Go123rc"] = "go-1.23-rc";
99386
- Runtime2["Go124rc"] = "go-1.24-rc";
99387
- Runtime2["Go125rc"] = "go-1.25-rc";
99388
- Runtime2["Go126rc"] = "go-1.26-rc";
99389
- Runtime2["Static1rc"] = "static-1-rc";
99390
- Runtime2["Flutter324rc"] = "flutter-3.24-rc";
99391
- Runtime2["Flutter327rc"] = "flutter-3.27-rc";
99392
- Runtime2["Flutter329rc"] = "flutter-3.29-rc";
99393
- Runtime2["Flutter332rc"] = "flutter-3.32-rc";
99394
- Runtime2["Flutter335rc"] = "flutter-3.35-rc";
99395
- Runtime2["Flutter338rc"] = "flutter-3.38-rc";
99396
99412
  })(Runtime || (Runtime = {}));
99397
99413
  var Runtimes;
99398
99414
  (function(Runtimes2) {
@@ -99482,109 +99498,28 @@ var Runtimes;
99482
99498
  Runtimes2["Flutter332"] = "flutter-3.32";
99483
99499
  Runtimes2["Flutter335"] = "flutter-3.35";
99484
99500
  Runtimes2["Flutter338"] = "flutter-3.38";
99485
- Runtimes2["Node145rc"] = "node-14.5-rc";
99486
- Runtimes2["Node160rc"] = "node-16.0-rc";
99487
- Runtimes2["Node180rc"] = "node-18.0-rc";
99488
- Runtimes2["Node190rc"] = "node-19.0-rc";
99489
- Runtimes2["Node200rc"] = "node-20.0-rc";
99490
- Runtimes2["Node210rc"] = "node-21.0-rc";
99491
- Runtimes2["Node22rc"] = "node-22-rc";
99492
- Runtimes2["Node23rc"] = "node-23-rc";
99493
- Runtimes2["Node24rc"] = "node-24-rc";
99494
- Runtimes2["Node25rc"] = "node-25-rc";
99495
- Runtimes2["Php80rc"] = "php-8.0-rc";
99496
- Runtimes2["Php81rc"] = "php-8.1-rc";
99497
- Runtimes2["Php82rc"] = "php-8.2-rc";
99498
- Runtimes2["Php83rc"] = "php-8.3-rc";
99499
- Runtimes2["Php84rc"] = "php-8.4-rc";
99500
- Runtimes2["Ruby30rc"] = "ruby-3.0-rc";
99501
- Runtimes2["Ruby31rc"] = "ruby-3.1-rc";
99502
- Runtimes2["Ruby32rc"] = "ruby-3.2-rc";
99503
- Runtimes2["Ruby33rc"] = "ruby-3.3-rc";
99504
- Runtimes2["Ruby34rc"] = "ruby-3.4-rc";
99505
- Runtimes2["Ruby40rc"] = "ruby-4.0-rc";
99506
- Runtimes2["Python38rc"] = "python-3.8-rc";
99507
- Runtimes2["Python39rc"] = "python-3.9-rc";
99508
- Runtimes2["Python310rc"] = "python-3.10-rc";
99509
- Runtimes2["Python311rc"] = "python-3.11-rc";
99510
- Runtimes2["Python312rc"] = "python-3.12-rc";
99511
- Runtimes2["Python313rc"] = "python-3.13-rc";
99512
- Runtimes2["Python314rc"] = "python-3.14-rc";
99513
- Runtimes2["Pythonml311rc"] = "python-ml-3.11-rc";
99514
- Runtimes2["Pythonml312rc"] = "python-ml-3.12-rc";
99515
- Runtimes2["Pythonml313rc"] = "python-ml-3.13-rc";
99516
- Runtimes2["Deno140rc"] = "deno-1.40-rc";
99517
- Runtimes2["Deno146rc"] = "deno-1.46-rc";
99518
- Runtimes2["Deno20rc"] = "deno-2.0-rc";
99519
- Runtimes2["Deno25rc"] = "deno-2.5-rc";
99520
- Runtimes2["Deno26rc"] = "deno-2.6-rc";
99521
- Runtimes2["Dart215rc"] = "dart-2.15-rc";
99522
- Runtimes2["Dart216rc"] = "dart-2.16-rc";
99523
- Runtimes2["Dart217rc"] = "dart-2.17-rc";
99524
- Runtimes2["Dart218rc"] = "dart-2.18-rc";
99525
- Runtimes2["Dart219rc"] = "dart-2.19-rc";
99526
- Runtimes2["Dart30rc"] = "dart-3.0-rc";
99527
- Runtimes2["Dart31rc"] = "dart-3.1-rc";
99528
- Runtimes2["Dart33rc"] = "dart-3.3-rc";
99529
- Runtimes2["Dart35rc"] = "dart-3.5-rc";
99530
- Runtimes2["Dart38rc"] = "dart-3.8-rc";
99531
- Runtimes2["Dart39rc"] = "dart-3.9-rc";
99532
- Runtimes2["Dart310rc"] = "dart-3.10-rc";
99533
- Runtimes2["Dotnet60rc"] = "dotnet-6.0-rc";
99534
- Runtimes2["Dotnet70rc"] = "dotnet-7.0-rc";
99535
- Runtimes2["Dotnet80rc"] = "dotnet-8.0-rc";
99536
- Runtimes2["Dotnet10rc"] = "dotnet-10-rc";
99537
- Runtimes2["Java80rc"] = "java-8.0-rc";
99538
- Runtimes2["Java110rc"] = "java-11.0-rc";
99539
- Runtimes2["Java170rc"] = "java-17.0-rc";
99540
- Runtimes2["Java180rc"] = "java-18.0-rc";
99541
- Runtimes2["Java210rc"] = "java-21.0-rc";
99542
- Runtimes2["Java22rc"] = "java-22-rc";
99543
- Runtimes2["Java25rc"] = "java-25-rc";
99544
- Runtimes2["Swift55rc"] = "swift-5.5-rc";
99545
- Runtimes2["Swift58rc"] = "swift-5.8-rc";
99546
- Runtimes2["Swift59rc"] = "swift-5.9-rc";
99547
- Runtimes2["Swift510rc"] = "swift-5.10-rc";
99548
- Runtimes2["Swift62rc"] = "swift-6.2-rc";
99549
- Runtimes2["Kotlin16rc"] = "kotlin-1.6-rc";
99550
- Runtimes2["Kotlin18rc"] = "kotlin-1.8-rc";
99551
- Runtimes2["Kotlin19rc"] = "kotlin-1.9-rc";
99552
- Runtimes2["Kotlin20rc"] = "kotlin-2.0-rc";
99553
- Runtimes2["Kotlin23rc"] = "kotlin-2.3-rc";
99554
- Runtimes2["Cpp17rc"] = "cpp-17-rc";
99555
- Runtimes2["Cpp20rc"] = "cpp-20-rc";
99556
- Runtimes2["Bun10rc"] = "bun-1.0-rc";
99557
- Runtimes2["Bun11rc"] = "bun-1.1-rc";
99558
- Runtimes2["Bun12rc"] = "bun-1.2-rc";
99559
- Runtimes2["Bun13rc"] = "bun-1.3-rc";
99560
- Runtimes2["Go123rc"] = "go-1.23-rc";
99561
- Runtimes2["Go124rc"] = "go-1.24-rc";
99562
- Runtimes2["Go125rc"] = "go-1.25-rc";
99563
- Runtimes2["Go126rc"] = "go-1.26-rc";
99564
- Runtimes2["Static1rc"] = "static-1-rc";
99565
- Runtimes2["Flutter324rc"] = "flutter-3.24-rc";
99566
- Runtimes2["Flutter327rc"] = "flutter-3.27-rc";
99567
- Runtimes2["Flutter329rc"] = "flutter-3.29-rc";
99568
- Runtimes2["Flutter332rc"] = "flutter-3.32-rc";
99569
- Runtimes2["Flutter335rc"] = "flutter-3.35-rc";
99570
- Runtimes2["Flutter338rc"] = "flutter-3.38-rc";
99571
99501
  })(Runtimes || (Runtimes = {}));
99572
99502
  var UseCases;
99573
99503
  (function(UseCases2) {
99574
- UseCases2["Portfolio"] = "portfolio";
99575
99504
  UseCases2["Starter"] = "starter";
99505
+ UseCases2["Databases"] = "databases";
99506
+ UseCases2["Ai"] = "ai";
99507
+ UseCases2["Messaging"] = "messaging";
99508
+ UseCases2["Utilities"] = "utilities";
99509
+ UseCases2["Devtools"] = "dev-tools";
99510
+ UseCases2["Auth"] = "auth";
99511
+ UseCases2["Portfolio"] = "portfolio";
99576
99512
  UseCases2["Events"] = "events";
99577
99513
  UseCases2["Ecommerce"] = "ecommerce";
99578
99514
  UseCases2["Documentation"] = "documentation";
99579
99515
  UseCases2["Blog"] = "blog";
99580
- UseCases2["Ai"] = "ai";
99581
99516
  UseCases2["Forms"] = "forms";
99582
99517
  UseCases2["Dashboard"] = "dashboard";
99583
99518
  })(UseCases || (UseCases = {}));
99584
99519
  var TemplateReferenceType;
99585
99520
  (function(TemplateReferenceType2) {
99586
- TemplateReferenceType2["Branch"] = "branch";
99587
99521
  TemplateReferenceType2["Commit"] = "commit";
99522
+ TemplateReferenceType2["Branch"] = "branch";
99588
99523
  TemplateReferenceType2["Tag"] = "tag";
99589
99524
  })(TemplateReferenceType || (TemplateReferenceType = {}));
99590
99525
  var VCSReferenceType;
@@ -99648,6 +99583,8 @@ var AppwriteMigrationResource;
99648
99583
  AppwriteMigrationResource2["Document"] = "document";
99649
99584
  AppwriteMigrationResource2["Attribute"] = "attribute";
99650
99585
  AppwriteMigrationResource2["Collection"] = "collection";
99586
+ AppwriteMigrationResource2["Documentsdb"] = "documentsdb";
99587
+ AppwriteMigrationResource2["Vectorsdb"] = "vectorsdb";
99651
99588
  AppwriteMigrationResource2["Bucket"] = "bucket";
99652
99589
  AppwriteMigrationResource2["File"] = "file";
99653
99590
  AppwriteMigrationResource2["Function"] = "function";
@@ -100185,92 +100122,6 @@ var BuildRuntime;
100185
100122
  BuildRuntime2["Flutter332"] = "flutter-3.32";
100186
100123
  BuildRuntime2["Flutter335"] = "flutter-3.35";
100187
100124
  BuildRuntime2["Flutter338"] = "flutter-3.38";
100188
- BuildRuntime2["Node145rc"] = "node-14.5-rc";
100189
- BuildRuntime2["Node160rc"] = "node-16.0-rc";
100190
- BuildRuntime2["Node180rc"] = "node-18.0-rc";
100191
- BuildRuntime2["Node190rc"] = "node-19.0-rc";
100192
- BuildRuntime2["Node200rc"] = "node-20.0-rc";
100193
- BuildRuntime2["Node210rc"] = "node-21.0-rc";
100194
- BuildRuntime2["Node22rc"] = "node-22-rc";
100195
- BuildRuntime2["Node23rc"] = "node-23-rc";
100196
- BuildRuntime2["Node24rc"] = "node-24-rc";
100197
- BuildRuntime2["Node25rc"] = "node-25-rc";
100198
- BuildRuntime2["Php80rc"] = "php-8.0-rc";
100199
- BuildRuntime2["Php81rc"] = "php-8.1-rc";
100200
- BuildRuntime2["Php82rc"] = "php-8.2-rc";
100201
- BuildRuntime2["Php83rc"] = "php-8.3-rc";
100202
- BuildRuntime2["Php84rc"] = "php-8.4-rc";
100203
- BuildRuntime2["Ruby30rc"] = "ruby-3.0-rc";
100204
- BuildRuntime2["Ruby31rc"] = "ruby-3.1-rc";
100205
- BuildRuntime2["Ruby32rc"] = "ruby-3.2-rc";
100206
- BuildRuntime2["Ruby33rc"] = "ruby-3.3-rc";
100207
- BuildRuntime2["Ruby34rc"] = "ruby-3.4-rc";
100208
- BuildRuntime2["Ruby40rc"] = "ruby-4.0-rc";
100209
- BuildRuntime2["Python38rc"] = "python-3.8-rc";
100210
- BuildRuntime2["Python39rc"] = "python-3.9-rc";
100211
- BuildRuntime2["Python310rc"] = "python-3.10-rc";
100212
- BuildRuntime2["Python311rc"] = "python-3.11-rc";
100213
- BuildRuntime2["Python312rc"] = "python-3.12-rc";
100214
- BuildRuntime2["Python313rc"] = "python-3.13-rc";
100215
- BuildRuntime2["Python314rc"] = "python-3.14-rc";
100216
- BuildRuntime2["Pythonml311rc"] = "python-ml-3.11-rc";
100217
- BuildRuntime2["Pythonml312rc"] = "python-ml-3.12-rc";
100218
- BuildRuntime2["Pythonml313rc"] = "python-ml-3.13-rc";
100219
- BuildRuntime2["Deno140rc"] = "deno-1.40-rc";
100220
- BuildRuntime2["Deno146rc"] = "deno-1.46-rc";
100221
- BuildRuntime2["Deno20rc"] = "deno-2.0-rc";
100222
- BuildRuntime2["Deno25rc"] = "deno-2.5-rc";
100223
- BuildRuntime2["Deno26rc"] = "deno-2.6-rc";
100224
- BuildRuntime2["Dart215rc"] = "dart-2.15-rc";
100225
- BuildRuntime2["Dart216rc"] = "dart-2.16-rc";
100226
- BuildRuntime2["Dart217rc"] = "dart-2.17-rc";
100227
- BuildRuntime2["Dart218rc"] = "dart-2.18-rc";
100228
- BuildRuntime2["Dart219rc"] = "dart-2.19-rc";
100229
- BuildRuntime2["Dart30rc"] = "dart-3.0-rc";
100230
- BuildRuntime2["Dart31rc"] = "dart-3.1-rc";
100231
- BuildRuntime2["Dart33rc"] = "dart-3.3-rc";
100232
- BuildRuntime2["Dart35rc"] = "dart-3.5-rc";
100233
- BuildRuntime2["Dart38rc"] = "dart-3.8-rc";
100234
- BuildRuntime2["Dart39rc"] = "dart-3.9-rc";
100235
- BuildRuntime2["Dart310rc"] = "dart-3.10-rc";
100236
- BuildRuntime2["Dotnet60rc"] = "dotnet-6.0-rc";
100237
- BuildRuntime2["Dotnet70rc"] = "dotnet-7.0-rc";
100238
- BuildRuntime2["Dotnet80rc"] = "dotnet-8.0-rc";
100239
- BuildRuntime2["Dotnet10rc"] = "dotnet-10-rc";
100240
- BuildRuntime2["Java80rc"] = "java-8.0-rc";
100241
- BuildRuntime2["Java110rc"] = "java-11.0-rc";
100242
- BuildRuntime2["Java170rc"] = "java-17.0-rc";
100243
- BuildRuntime2["Java180rc"] = "java-18.0-rc";
100244
- BuildRuntime2["Java210rc"] = "java-21.0-rc";
100245
- BuildRuntime2["Java22rc"] = "java-22-rc";
100246
- BuildRuntime2["Java25rc"] = "java-25-rc";
100247
- BuildRuntime2["Swift55rc"] = "swift-5.5-rc";
100248
- BuildRuntime2["Swift58rc"] = "swift-5.8-rc";
100249
- BuildRuntime2["Swift59rc"] = "swift-5.9-rc";
100250
- BuildRuntime2["Swift510rc"] = "swift-5.10-rc";
100251
- BuildRuntime2["Swift62rc"] = "swift-6.2-rc";
100252
- BuildRuntime2["Kotlin16rc"] = "kotlin-1.6-rc";
100253
- BuildRuntime2["Kotlin18rc"] = "kotlin-1.8-rc";
100254
- BuildRuntime2["Kotlin19rc"] = "kotlin-1.9-rc";
100255
- BuildRuntime2["Kotlin20rc"] = "kotlin-2.0-rc";
100256
- BuildRuntime2["Kotlin23rc"] = "kotlin-2.3-rc";
100257
- BuildRuntime2["Cpp17rc"] = "cpp-17-rc";
100258
- BuildRuntime2["Cpp20rc"] = "cpp-20-rc";
100259
- BuildRuntime2["Bun10rc"] = "bun-1.0-rc";
100260
- BuildRuntime2["Bun11rc"] = "bun-1.1-rc";
100261
- BuildRuntime2["Bun12rc"] = "bun-1.2-rc";
100262
- BuildRuntime2["Bun13rc"] = "bun-1.3-rc";
100263
- BuildRuntime2["Go123rc"] = "go-1.23-rc";
100264
- BuildRuntime2["Go124rc"] = "go-1.24-rc";
100265
- BuildRuntime2["Go125rc"] = "go-1.25-rc";
100266
- BuildRuntime2["Go126rc"] = "go-1.26-rc";
100267
- BuildRuntime2["Static1rc"] = "static-1-rc";
100268
- BuildRuntime2["Flutter324rc"] = "flutter-3.24-rc";
100269
- BuildRuntime2["Flutter327rc"] = "flutter-3.27-rc";
100270
- BuildRuntime2["Flutter329rc"] = "flutter-3.29-rc";
100271
- BuildRuntime2["Flutter332rc"] = "flutter-3.32-rc";
100272
- BuildRuntime2["Flutter335rc"] = "flutter-3.35-rc";
100273
- BuildRuntime2["Flutter338rc"] = "flutter-3.38-rc";
100274
100125
  })(BuildRuntime || (BuildRuntime = {}));
100275
100126
  var Adapter;
100276
100127
  (function(Adapter2) {
@@ -100313,6 +100164,13 @@ var ImageGravity;
100313
100164
  ImageGravity2["Bottom"] = "bottom";
100314
100165
  ImageGravity2["Bottomright"] = "bottom-right";
100315
100166
  })(ImageGravity || (ImageGravity = {}));
100167
+ var TablesDBIndexType;
100168
+ (function(TablesDBIndexType2) {
100169
+ TablesDBIndexType2["Key"] = "key";
100170
+ TablesDBIndexType2["Fulltext"] = "fulltext";
100171
+ TablesDBIndexType2["Unique"] = "unique";
100172
+ TablesDBIndexType2["Spatial"] = "spatial";
100173
+ })(TablesDBIndexType || (TablesDBIndexType = {}));
100316
100174
  var PasswordHash;
100317
100175
  (function(PasswordHash2) {
100318
100176
  PasswordHash2["Sha1"] = "sha1";
@@ -100342,6 +100200,8 @@ var DatabaseType;
100342
100200
  (function(DatabaseType2) {
100343
100201
  DatabaseType2["Legacy"] = "legacy";
100344
100202
  DatabaseType2["Tablesdb"] = "tablesdb";
100203
+ DatabaseType2["Documentsdb"] = "documentsdb";
100204
+ DatabaseType2["Vectorsdb"] = "vectorsdb";
100345
100205
  })(DatabaseType || (DatabaseType = {}));
100346
100206
  var AttributeStatus;
100347
100207
  (function(AttributeStatus2) {
@@ -100456,7 +100316,7 @@ var package_default = {
100456
100316
  type: "module",
100457
100317
  homepage: "https://appwrite.io/support",
100458
100318
  description: "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
100459
- version: "16.0.0",
100319
+ version: "17.1.0",
100460
100320
  license: "BSD-3-Clause",
100461
100321
  main: "dist/index.cjs",
100462
100322
  module: "dist/index.js",
@@ -100546,10 +100406,14 @@ var package_default = {
100546
100406
 
100547
100407
  // lib/parser.ts
100548
100408
  import os3 from "os";
100409
+ BigInt.prototype.toJSON = function() {
100410
+ return this.toString();
100411
+ };
100549
100412
  var { description } = package_default;
100550
100413
  var cliConfig = {
100551
100414
  verbose: false,
100552
100415
  json: false,
100416
+ raw: false,
100553
100417
  force: false,
100554
100418
  all: false,
100555
100419
  ids: [],
@@ -100572,6 +100436,25 @@ var extractReportCommandArgs = (value) => {
100572
100436
  }
100573
100437
  return reportData.data.args;
100574
100438
  };
100439
+ var MAX_COL_WIDTH = 40;
100440
+ var formatCellValue = (value) => {
100441
+ if (value == null) return "-";
100442
+ if (Array.isArray(value)) {
100443
+ if (value.length === 0) return "[]";
100444
+ return `[${value.length} items]`;
100445
+ }
100446
+ if (typeof value === "object") {
100447
+ if (value?.constructor?.name === "BigNumber") return String(value);
100448
+ const keys = Object.keys(value);
100449
+ if (keys.length === 0) return "{}";
100450
+ return `{${keys.length} keys}`;
100451
+ }
100452
+ const str = String(value);
100453
+ if (str.length > MAX_COL_WIDTH) {
100454
+ return str.slice(0, MAX_COL_WIDTH - 1) + "\u2026";
100455
+ }
100456
+ return str;
100457
+ };
100575
100458
  var drawTable = (data) => {
100576
100459
  if (data.length == 0) {
100577
100460
  console.log("[]");
@@ -100579,19 +100462,55 @@ var drawTable = (data) => {
100579
100462
  }
100580
100463
  const rows = data.map((item) => toJsonObject(item) ?? {});
100581
100464
  const obj = rows.reduce((res, item) => ({ ...res, ...item }), {});
100582
- const keys = Object.keys(obj);
100583
- if (keys.length === 0) {
100465
+ const allKeys = Object.keys(obj);
100466
+ if (allKeys.length === 0) {
100584
100467
  drawJSON(data);
100585
100468
  return;
100586
100469
  }
100587
- const def = keys.reduce((result, key) => {
100470
+ const maxColumns = 6;
100471
+ if (allKeys.length > maxColumns) {
100472
+ const rowEntries = rows.map((row) => {
100473
+ const entries = [];
100474
+ for (const key of Object.keys(row)) {
100475
+ const value = row[key];
100476
+ if (typeof value === "function") continue;
100477
+ if (value == null) continue;
100478
+ if (value?.constructor?.name === "BigNumber") {
100479
+ entries.push([key, String(value)]);
100480
+ continue;
100481
+ }
100482
+ if (typeof value === "object") continue;
100483
+ if (typeof value === "string" && value.trim() === "") continue;
100484
+ entries.push([key, String(value)]);
100485
+ }
100486
+ return entries;
100487
+ });
100488
+ const flatEntries = rowEntries.flat();
100489
+ if (flatEntries.length === 0) {
100490
+ drawJSON(data);
100491
+ return;
100492
+ }
100493
+ const maxKeyLen = Math.max(...flatEntries.map(([key]) => key.length));
100494
+ const separatorLen = Math.min(maxKeyLen + 2 + MAX_COL_WIDTH, process.stdout.columns || 80);
100495
+ rowEntries.forEach((entries, idx) => {
100496
+ if (idx > 0) console.log(import_chalk2.default.cyan("\u2500".repeat(separatorLen)));
100497
+ for (const [key, value] of entries) {
100498
+ const paddedKey = key.padEnd(maxKeyLen);
100499
+ console.log(`${import_chalk2.default.yellow.bold(paddedKey)} ${value}`);
100500
+ }
100501
+ });
100502
+ return;
100503
+ }
100504
+ const columns = allKeys;
100505
+ const def = allKeys.reduce((result, key) => {
100588
100506
  result[key] = "-";
100589
100507
  return result;
100590
100508
  }, {});
100591
100509
  const normalizedData = rows.map((item) => ({ ...def, ...item }));
100592
- const columns = Object.keys(normalizedData[0]);
100593
100510
  const table = new import_cli_table3.default({
100594
100511
  head: columns.map((c) => import_chalk2.default.cyan.italic.bold(c)),
100512
+ colWidths: columns.map(() => null),
100513
+ wordWrap: false,
100595
100514
  chars: {
100596
100515
  top: " ",
100597
100516
  "top-mid": " ",
@@ -100613,15 +100532,7 @@ var drawTable = (data) => {
100613
100532
  normalizedData.forEach((row) => {
100614
100533
  const rowValues = [];
100615
100534
  for (const key of columns) {
100616
- if (row[key] == null) {
100617
- rowValues.push("-");
100618
- } else if (Array.isArray(row[key])) {
100619
- rowValues.push(JSON.stringify(row[key]));
100620
- } else if (typeof row[key] === "object") {
100621
- rowValues.push(JSON.stringify(row[key]));
100622
- } else {
100623
- rowValues.push(String(row[key]));
100624
- }
100535
+ rowValues.push(formatCellValue(row[key]));
100625
100536
  }
100626
100537
  table.push(rowValues);
100627
100538
  });
@@ -100737,7 +100648,7 @@ var commandDescriptions = {
100737
100648
  locale: `The locale command allows you to customize your app based on your users' location.`,
100738
100649
  sites: `The sites command allows you to view, create and manage your Appwrite Sites.`,
100739
100650
  storage: `The storage command allows you to manage your project files.`,
100740
- teams: `The teams command allows you to group users of your project to enable them to share read and write access to your project resources.`,
100651
+ teams: `The teams command allows you to group users of your project to enable them to share read and write access to your project resources. Requires a linked project. To manage console-level teams, use the 'organizations' command instead.`,
100741
100652
  update: `The update command allows you to update the ${SDK_TITLE} CLI to the latest version.`,
100742
100653
  users: `The users command allows you to manage your project users.`,
100743
100654
  projects: `The projects command allows you to manage your projects, add platforms, manage API keys, Dev Keys etc.`,
@@ -100762,7 +100673,7 @@ async function packageDirectory(dirPath) {
100762
100673
  os4.tmpdir(),
100763
100674
  `appwrite-deploy-${Date.now()}.tar.gz`
100764
100675
  );
100765
- await Pn(
100676
+ await Zn(
100766
100677
  {
100767
100678
  gzip: true,
100768
100679
  file: tempFile,
@@ -100831,7 +100742,7 @@ async function downloadDeploymentCode(params) {
100831
100742
  `Failed to write deployment archive to "${compressedFileName}": ${message}`
100832
100743
  );
100833
100744
  }
100834
- ao({
100745
+ co({
100835
100746
  sync: true,
100836
100747
  cwd: resourcePath,
100837
100748
  file: compressedFileName,
@@ -101038,12 +100949,16 @@ var questionsInitProject = [
101038
100949
  choices: async () => {
101039
100950
  const client = await sdkForConsole(true);
101040
100951
  const { teams } = isCloud() ? await paginate(
101041
- async (opts = {}) => (await getOrganizationsService(opts.sdk)).list(),
100952
+ async (args) => (await getOrganizationsService(args.sdk)).list({
100953
+ queries: args.queries
100954
+ }),
101042
100955
  { sdk: client },
101043
100956
  100,
101044
100957
  "teams"
101045
100958
  ) : await paginate(
101046
- async (opts = {}) => (await getTeamsService(opts.sdk)).list(),
100959
+ async (args) => (await getTeamsService(args.sdk)).list({
100960
+ queries: args.queries
100961
+ }),
101047
100962
  { parseOutput: false, sdk: client },
101048
100963
  100,
101049
100964
  "teams"
@@ -101068,14 +100983,14 @@ var questionsInitProject = [
101068
100983
  name: "project",
101069
100984
  message: "What would you like to name your project?",
101070
100985
  default: "My Awesome Project",
101071
- when: (answer) => answer.start !== "existing"
100986
+ when: (answer) => whenOverride(answer) && answer.start !== "existing"
101072
100987
  },
101073
100988
  {
101074
100989
  type: "input",
101075
100990
  name: "id",
101076
100991
  message: "What ID would you like to have for your project?",
101077
100992
  default: "unique()",
101078
- when: (answer) => answer.start !== "existing"
100993
+ when: (answer) => whenOverride(answer) && answer.start !== "existing"
101079
100994
  },
101080
100995
  {
101081
100996
  type: "search-list",
@@ -101091,7 +101006,7 @@ var questionsInitProject = [
101091
101006
  JSON.stringify({ method: "orderDesc", attribute: "$id" })
101092
101007
  ];
101093
101008
  const { projects } = await paginate(
101094
- async () => (await getProjectsService()).list(queries),
101009
+ async (args) => (await getProjectsService()).list(args.queries),
101095
101010
  { parseOutput: false },
101096
101011
  100,
101097
101012
  "projects",
@@ -101171,7 +101086,7 @@ var questionsPullFunctions = [
101171
101086
  validate: (value) => validateRequired("function", value),
101172
101087
  choices: async () => {
101173
101088
  const { functions } = await paginate(
101174
- async () => (await getFunctionsService()).list(),
101089
+ async (args) => (await getFunctionsService()).list(args.queries),
101175
101090
  { parseOutput: false },
101176
101091
  100,
101177
101092
  "functions"
@@ -101210,7 +101125,7 @@ var questionsPullSites = [
101210
101125
  validate: (value) => validateRequired("site", value),
101211
101126
  choices: async () => {
101212
101127
  const { sites } = await paginate(
101213
- async () => (await getSitesService()).list(),
101128
+ async (args) => (await getSitesService()).list(args.queries),
101214
101129
  { parseOutput: false },
101215
101130
  100,
101216
101131
  "sites"
@@ -103158,18 +103073,9 @@ var Push = class {
103158
103073
  const functionsServiceForVars = await getFunctionsService(
103159
103074
  this.projectClient
103160
103075
  );
103161
- const { variables } = await paginate(
103162
- async (args) => {
103163
- return await functionsServiceForVars.listVariables({
103164
- functionId: args.functionId
103165
- });
103166
- },
103167
- {
103168
- functionId: func["$id"]
103169
- },
103170
- 100,
103171
- "variables"
103172
- );
103076
+ const { variables } = await functionsServiceForVars.listVariables({
103077
+ functionId: func["$id"]
103078
+ });
103173
103079
  await Promise.all(
103174
103080
  variables.map(async (variable) => {
103175
103081
  const functionsServiceDel = await getFunctionsService(
@@ -103463,18 +103369,9 @@ var Push = class {
103463
103369
  if (withVariables) {
103464
103370
  updaterRow.update({ status: "Creating variables" }).replaceSpinner(SPINNER_DOTS);
103465
103371
  const sitesServiceForVars = await getSitesService(this.projectClient);
103466
- const { variables } = await paginate(
103467
- async (args) => {
103468
- return await sitesServiceForVars.listVariables({
103469
- siteId: args.siteId
103470
- });
103471
- },
103472
- {
103473
- siteId: site["$id"]
103474
- },
103475
- 100,
103476
- "variables"
103477
- );
103372
+ const { variables } = await sitesServiceForVars.listVariables({
103373
+ siteId: site["$id"]
103374
+ });
103478
103375
  await Promise.all(
103479
103376
  variables.map(async (variable) => {
103480
103377
  const sitesServiceDel = await getSitesService(this.projectClient);
@@ -106205,9 +106102,6 @@ export {
106205
106102
  };
106206
106103
  /*! Bundled license information:
106207
106104
 
106208
- safe-buffer/index.js:
106209
- (*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
106210
-
106211
106105
  undici/lib/fetch/body.js:
106212
106106
  (*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
106213
106107