fimo 0.4.0-experimental.2 → 0.4.0-experimental.4

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.
package/dist/cli/index.js CHANGED
@@ -4194,7 +4194,7 @@ var init_session_refresh = __esm({
4194
4194
  }
4195
4195
  });
4196
4196
 
4197
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/env-impl.mjs
4197
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/env-impl.mjs
4198
4198
  function getEnvVar(key, fallback) {
4199
4199
  if (typeof process !== "undefined" && process.env) return process.env[key] ?? fallback;
4200
4200
  if (typeof Deno !== "undefined") return Deno.env.get(key) ?? fallback;
@@ -4203,7 +4203,7 @@ function getEnvVar(key, fallback) {
4203
4203
  }
4204
4204
  var _envShim, _getEnv, env, nodeENV, ENV;
4205
4205
  var init_env_impl = __esm({
4206
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/env-impl.mjs"() {
4206
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/env-impl.mjs"() {
4207
4207
  _envShim = /* @__PURE__ */ Object.create(null);
4208
4208
  _getEnv = /* @__PURE__ */ __name((useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis), "_getEnv");
4209
4209
  env = new Proxy(_envShim, {
@@ -4257,7 +4257,7 @@ var init_env_impl = __esm({
4257
4257
  }
4258
4258
  });
4259
4259
 
4260
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/color-depth.mjs
4260
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/color-depth.mjs
4261
4261
  function getColorDepth() {
4262
4262
  if (getEnvVar("FORCE_COLOR") !== void 0) switch (getEnvVar("FORCE_COLOR")) {
4263
4263
  case "":
@@ -4303,7 +4303,7 @@ function getColorDepth() {
4303
4303
  }
4304
4304
  var COLORS_2, COLORS_16, COLORS_256, COLORS_16m, TERM_ENVS, CI_ENVS_MAP, TERM_ENVS_REG_EXP;
4305
4305
  var init_color_depth = __esm({
4306
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/color-depth.mjs"() {
4306
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/color-depth.mjs"() {
4307
4307
  init_env_impl();
4308
4308
  COLORS_2 = 1;
4309
4309
  COLORS_16 = 4;
@@ -4354,13 +4354,13 @@ var init_color_depth = __esm({
4354
4354
  }
4355
4355
  });
4356
4356
 
4357
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/logger.mjs
4357
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/logger.mjs
4358
4358
  function shouldPublishLog(currentLogLevel, logLevel) {
4359
4359
  return levels.indexOf(logLevel) >= levels.indexOf(currentLogLevel);
4360
4360
  }
4361
4361
  var TTY_COLORS, levels, levelColors, formatMessage, createLogger, logger;
4362
4362
  var init_logger = __esm({
4363
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/logger.mjs"() {
4363
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/logger.mjs"() {
4364
4364
  init_color_depth();
4365
4365
  TTY_COLORS = {
4366
4366
  reset: "\x1B[0m",
@@ -4438,34 +4438,34 @@ var init_logger = __esm({
4438
4438
  }
4439
4439
  });
4440
4440
 
4441
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/index.mjs
4441
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/index.mjs
4442
4442
  var init_env = __esm({
4443
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/env/index.mjs"() {
4443
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/env/index.mjs"() {
4444
4444
  init_env_impl();
4445
4445
  init_color_depth();
4446
4446
  init_logger();
4447
4447
  }
4448
4448
  });
4449
4449
 
4450
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/error-codes.mjs
4450
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/error-codes.mjs
4451
4451
  function defineErrorCodes(codes) {
4452
4452
  return codes;
4453
4453
  }
4454
4454
  var init_error_codes = __esm({
4455
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/error-codes.mjs"() {
4455
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/error-codes.mjs"() {
4456
4456
  __name(defineErrorCodes, "defineErrorCodes");
4457
4457
  }
4458
4458
  });
4459
4459
 
4460
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/db.mjs
4460
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/db.mjs
4461
4461
  var init_db = __esm({
4462
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/db.mjs"() {
4462
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/db.mjs"() {
4463
4463
  }
4464
4464
  });
4465
4465
 
4466
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/deprecate.mjs
4466
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/deprecate.mjs
4467
4467
  var init_deprecate = __esm({
4468
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/deprecate.mjs"() {
4468
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/deprecate.mjs"() {
4469
4469
  }
4470
4470
  });
4471
4471
 
@@ -4475,42 +4475,42 @@ var init_random = __esm({
4475
4475
  }
4476
4476
  });
4477
4477
 
4478
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/id.mjs
4478
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/id.mjs
4479
4479
  var init_id = __esm({
4480
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/id.mjs"() {
4480
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/id.mjs"() {
4481
4481
  init_random();
4482
4482
  }
4483
4483
  });
4484
4484
 
4485
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/ip.mjs
4485
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/ip.mjs
4486
4486
  var init_ip = __esm({
4487
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/ip.mjs"() {
4487
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/ip.mjs"() {
4488
4488
  }
4489
4489
  });
4490
4490
 
4491
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/json.mjs
4491
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/json.mjs
4492
4492
  var init_json = __esm({
4493
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/json.mjs"() {
4493
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/json.mjs"() {
4494
4494
  init_logger();
4495
4495
  init_env();
4496
4496
  }
4497
4497
  });
4498
4498
 
4499
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/string.mjs
4499
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/string.mjs
4500
4500
  var init_string = __esm({
4501
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/string.mjs"() {
4501
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/string.mjs"() {
4502
4502
  }
4503
4503
  });
4504
4504
 
4505
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/url.mjs
4505
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/url.mjs
4506
4506
  var init_url = __esm({
4507
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/url.mjs"() {
4507
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/url.mjs"() {
4508
4508
  }
4509
4509
  });
4510
4510
 
4511
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/index.mjs
4511
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/index.mjs
4512
4512
  var init_utils = __esm({
4513
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/utils/index.mjs"() {
4513
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/utils/index.mjs"() {
4514
4514
  init_db();
4515
4515
  init_deprecate();
4516
4516
  init_error_codes();
@@ -4522,10 +4522,10 @@ var init_utils = __esm({
4522
4522
  }
4523
4523
  });
4524
4524
 
4525
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/error/codes.mjs
4525
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/error/codes.mjs
4526
4526
  var BASE_ERROR_CODES;
4527
4527
  var init_codes = __esm({
4528
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/error/codes.mjs"() {
4528
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/error/codes.mjs"() {
4529
4529
  init_error_codes();
4530
4530
  init_utils();
4531
4531
  BASE_ERROR_CODES = defineErrorCodes({
@@ -4576,10 +4576,10 @@ var init_codes = __esm({
4576
4576
  }
4577
4577
  });
4578
4578
 
4579
- // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/error/index.mjs
4579
+ // ../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/error/index.mjs
4580
4580
  var BetterAuthError;
4581
4581
  var init_error = __esm({
4582
- "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_da517a110fdd8af320b5bd05eef9033a/node_modules/@better-auth/core/dist/error/index.mjs"() {
4582
+ "../../node_modules/.pnpm/@better-auth+core@1.4.18_@better-auth+utils@0.3.0_@better-fetch+fetch@1.1.21_better-cal_bf26cb05b71455716d5beca75e2a0544/node_modules/@better-auth/core/dist/error/index.mjs"() {
4583
4583
  init_codes();
4584
4584
  BetterAuthError = class extends Error {
4585
4585
  static {
@@ -41817,6 +41817,13 @@ function filterUnknownProperties(data2, schema) {
41817
41817
  result[key] = filterUnknownProperties(fieldValue, fieldSchema);
41818
41818
  }
41819
41819
  }
41820
+ if (schema.def.catchall instanceof external_exports.ZodUnknown) {
41821
+ for (const [key, value] of Object.entries(data2)) {
41822
+ if (!(key in shape)) {
41823
+ result[key] = value;
41824
+ }
41825
+ }
41826
+ }
41820
41827
  return result;
41821
41828
  }
41822
41829
  return data2;
@@ -44342,7 +44349,7 @@ var init_payment_method_dto = __esm({
44342
44349
  });
44343
44350
 
44344
44351
  // ../../packages/api-contracts/dist/esm/dtos/content.dto.js
44345
- var FieldDefinitionSchema, ContentTypeDTOSchema, ContentTypeDTO, SchemaDTOSchema, SchemaDTO, EntryDTOSchema, EntryDTO, PaginatedEntriesDTOSchema, PaginatedEntriesDTO, EntryCountDTOSchema, EntryCountDTO, EntryCountsDTOSchema, EntryCountsDTO, ContentTypeResponseSchema, ContentTypeListResponseSchema, SchemaResponseSchema, EntryResponseSchema, EntryListResponseSchema;
44352
+ var FieldDefinitionSchema, ContentTypeI18nSchema, ContentTypeDTOSchema, ContentTypeDTO, SchemaDTOSchema, SchemaDTO, EntryDTOSchema, EntryDTO, PaginatedEntriesDTOSchema, PaginatedEntriesDTO, EntryCountDTOSchema, EntryCountDTO, EntryCountsDTOSchema, EntryCountsDTO, ContentTypeResponseSchema, ContentTypeListResponseSchema, SchemaResponseSchema, EntryResponseSchema, EntryListResponseSchema;
44346
44353
  var init_content_dto = __esm({
44347
44354
  "../../packages/api-contracts/dist/esm/dtos/content.dto.js"() {
44348
44355
  "use strict";
@@ -44354,11 +44361,15 @@ var init_content_dto = __esm({
44354
44361
  type: FieldTypeSchema,
44355
44362
  editable: external_exports.boolean().optional()
44356
44363
  });
44364
+ ContentTypeI18nSchema = external_exports.object({
44365
+ enabled: external_exports.boolean()
44366
+ }).strict();
44357
44367
  ContentTypeDTOSchema = external_exports.object({
44358
44368
  id: external_exports.string(),
44359
44369
  name: external_exports.string(),
44360
44370
  label: external_exports.string(),
44361
44371
  isSingleton: external_exports.boolean(),
44372
+ i18n: ContentTypeI18nSchema,
44362
44373
  fields: external_exports.record(external_exports.string(), external_exports.looseObject(FieldDefinitionSchema.shape)),
44363
44374
  createdAt: external_exports.string(),
44364
44375
  updatedAt: external_exports.string()
@@ -44370,10 +44381,14 @@ var init_content_dto = __esm({
44370
44381
  SchemaDTO = createDTO(SchemaDTOSchema);
44371
44382
  EntryDTOSchema = external_exports.object({
44372
44383
  id: external_exports.string(),
44373
- contentType: external_exports.string(),
44384
+ documentId: external_exports.string(),
44374
44385
  slug: external_exports.string(),
44386
+ locale: external_exports.string().optional(),
44375
44387
  createdAt: external_exports.string(),
44376
- updatedAt: external_exports.string()
44388
+ updatedAt: external_exports.string(),
44389
+ __fimo: external_exports.object({
44390
+ contentType: external_exports.string()
44391
+ })
44377
44392
  }).passthrough();
44378
44393
  EntryDTO = createDTO(EntryDTOSchema);
44379
44394
  PaginatedEntriesDTOSchema = external_exports.object({
@@ -47083,6 +47098,50 @@ function readSchema(path48) {
47083
47098
  return null;
47084
47099
  }
47085
47100
  }
47101
+ function normalizeFields(fields) {
47102
+ return Object.fromEntries(
47103
+ Object.entries(fields).map(([key, value]) => {
47104
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
47105
+ return [key, { type: void 0 }];
47106
+ }
47107
+ const field = value;
47108
+ const target = typeof field.target === "string" ? field.target : void 0;
47109
+ return [
47110
+ key,
47111
+ {
47112
+ ...field,
47113
+ type: typeof field.type === "string" ? field.type : void 0,
47114
+ target,
47115
+ targetPascal: target ? pascalCase(target) : void 0,
47116
+ many: typeof field.many === "boolean" ? field.many : void 0,
47117
+ multiple: typeof field.multiple === "boolean" ? field.multiple : void 0
47118
+ }
47119
+ ];
47120
+ })
47121
+ );
47122
+ }
47123
+ function relationImportsFor(schema, fields) {
47124
+ const imports = /* @__PURE__ */ new Map();
47125
+ for (const field of Object.values(fields)) {
47126
+ if (field.type !== "relation" || !field.target || field.target === schema.uid) {
47127
+ continue;
47128
+ }
47129
+ imports.set(field.target, { uid: field.target, pascal: pascalCase(field.target) });
47130
+ }
47131
+ return [...imports.values()].sort((a, b) => a.pascal.localeCompare(b.pascal));
47132
+ }
47133
+ function schemaToModel(schema, localizedByUid) {
47134
+ const fields = normalizeFields(schema.fields ?? {});
47135
+ return {
47136
+ uid: schema.uid,
47137
+ pascal: pascalCase(schema.uid),
47138
+ isSingleton: schema.isSingleton ?? false,
47139
+ localized: schema.i18n?.enabled !== false,
47140
+ localizedRelationFields: Object.entries(fields).filter(([, field]) => field.type === "relation" && field.target && localizedByUid.get(field.target) !== false).map(([fieldName]) => fieldName),
47141
+ fields,
47142
+ relationImports: relationImportsFor(schema, fields)
47143
+ };
47144
+ }
47086
47145
  function syncSchemas(options = {}) {
47087
47146
  const cwd = options.cwd ?? process.cwd();
47088
47147
  const log = /* @__PURE__ */ __name((msg) => {
@@ -47091,19 +47150,38 @@ function syncSchemas(options = {}) {
47091
47150
  }
47092
47151
  }, "log");
47093
47152
  const schemasDir = resolve5(cwd, SCHEMAS_REL);
47094
- const templatePath = assetPath("content-templates", "hooks-template.eta");
47095
- const templateSource = readFileSync6(templatePath, "utf-8");
47153
+ const templates = [
47154
+ {
47155
+ suffix: ".types.ts",
47156
+ path: assetPath("content-templates", "types-template.eta")
47157
+ },
47158
+ {
47159
+ suffix: ".ts",
47160
+ path: assetPath("content-templates", "hooks-template.eta")
47161
+ }
47162
+ ].map((template) => ({
47163
+ ...template,
47164
+ source: readFileSync6(template.path, "utf-8")
47165
+ }));
47096
47166
  const eta = new Eta({ views: void 0, useWith: true, varName: "it", autoEscape: false });
47097
47167
  const schemaFiles = getSchemaFiles(schemasDir);
47168
+ const schemasByPath = new Map(
47169
+ schemaFiles.flatMap((schemaPath) => {
47170
+ const schema = readSchema(schemaPath);
47171
+ return schema ? [[schemaPath, schema]] : [];
47172
+ })
47173
+ );
47174
+ const localizedByUid = new Map(
47175
+ [...schemasByPath.values()].map((schema) => [schema.uid, schema.i18n?.enabled !== false])
47176
+ );
47098
47177
  const expectedTsFiles = /* @__PURE__ */ new Set();
47099
47178
  let created = 0;
47100
47179
  let updated = 0;
47101
47180
  let deleted = 0;
47102
47181
  for (const jsonPath of schemaFiles) {
47103
47182
  const uid = jsonPath.split("/").pop().replace(/\.json$/, "");
47104
- const tsPath = join8(schemasDir, `${pascalCase(uid)}.ts`);
47105
- expectedTsFiles.add(tsPath);
47106
- const schema = readSchema(jsonPath);
47183
+ const pascal = pascalCase(uid);
47184
+ const schema = schemasByPath.get(jsonPath);
47107
47185
  if (!schema) {
47108
47186
  console.error(`Failed to parse schema: ${jsonPath}`);
47109
47187
  continue;
@@ -47111,27 +47189,32 @@ function syncSchemas(options = {}) {
47111
47189
  if (!schema.uid) {
47112
47190
  schema.uid = uid;
47113
47191
  }
47114
- try {
47115
- const content2 = eta.renderString(templateSource, {
47116
- model: { uid: schema.uid, pascal: pascalCase(schema.uid), fields: schema.fields ?? {} }
47117
- });
47118
- const dir = dirname7(tsPath);
47119
- if (!existsSync6(dir)) {
47120
- mkdirSync4(dir, { recursive: true });
47121
- }
47122
- if (!existsSync6(tsPath)) {
47123
- writeFileSync5(tsPath, content2, "utf-8");
47124
- created++;
47125
- log(`Created: ${tsPath}`);
47126
- continue;
47127
- }
47128
- if (readFileSync6(tsPath, "utf-8") !== content2) {
47129
- writeFileSync5(tsPath, content2, "utf-8");
47130
- updated++;
47131
- log(`Updated: ${tsPath}`);
47192
+ const model = schemaToModel(schema, localizedByUid);
47193
+ for (const template of templates) {
47194
+ const tsPath = join8(schemasDir, `${pascal}${template.suffix}`);
47195
+ expectedTsFiles.add(tsPath);
47196
+ try {
47197
+ const content2 = eta.renderString(template.source, {
47198
+ model
47199
+ });
47200
+ const dir = dirname7(tsPath);
47201
+ if (!existsSync6(dir)) {
47202
+ mkdirSync4(dir, { recursive: true });
47203
+ }
47204
+ if (!existsSync6(tsPath)) {
47205
+ writeFileSync5(tsPath, content2, "utf-8");
47206
+ created++;
47207
+ log(`Created: ${tsPath}`);
47208
+ continue;
47209
+ }
47210
+ if (readFileSync6(tsPath, "utf-8") !== content2) {
47211
+ writeFileSync5(tsPath, content2, "utf-8");
47212
+ updated++;
47213
+ log(`Updated: ${tsPath}`);
47214
+ }
47215
+ } catch (error45) {
47216
+ console.error(`Failed to generate ${tsPath}:`, error45);
47132
47217
  }
47133
- } catch (error45) {
47134
- console.error(`Failed to generate ${tsPath}:`, error45);
47135
47218
  }
47136
47219
  }
47137
47220
  if (existsSync6(schemasDir)) {
@@ -47162,6 +47245,9 @@ var init_sync_schemas = __esm({
47162
47245
  SCHEMAS_REL = "src/schemas";
47163
47246
  __name(getSchemaFiles, "getSchemaFiles");
47164
47247
  __name(readSchema, "readSchema");
47248
+ __name(normalizeFields, "normalizeFields");
47249
+ __name(relationImportsFor, "relationImportsFor");
47250
+ __name(schemaToModel, "schemaToModel");
47165
47251
  __name(syncSchemas, "syncSchemas");
47166
47252
  }
47167
47253
  });
@@ -102900,7 +102986,7 @@ function validateSchemaFile(absolutePath, file2, schemaUids = /* @__PURE__ */ ne
102900
102986
  return [{ rule: "schemas/shape", message: "Schema must be a JSON object.", file: file2 }];
102901
102987
  }
102902
102988
  const errors2 = [];
102903
- const { uid, name, fields } = schema;
102989
+ const { uid, name, fields, i18n, isSingleton } = schema;
102904
102990
  const expectedUid = basename2(file2, ".json");
102905
102991
  if (typeof uid !== "string" || uid.length === 0) {
102906
102992
  errors2.push({
@@ -102928,6 +103014,31 @@ function validateSchemaFile(absolutePath, file2, schemaUids = /* @__PURE__ */ ne
102928
103014
  file: file2
102929
103015
  });
102930
103016
  }
103017
+ if (isSingleton !== void 0 && typeof isSingleton !== "boolean") {
103018
+ errors2.push({
103019
+ rule: "schemas/singleton",
103020
+ message: '"isSingleton" must be a boolean when provided.',
103021
+ file: file2
103022
+ });
103023
+ }
103024
+ if (i18n !== void 0) {
103025
+ if (typeof i18n !== "object" || i18n === null || Array.isArray(i18n)) {
103026
+ errors2.push({
103027
+ rule: "schemas/i18n",
103028
+ message: '"i18n" must be an object like { "enabled": false }.',
103029
+ file: file2
103030
+ });
103031
+ } else {
103032
+ const keys = Object.keys(i18n);
103033
+ if (keys.length !== 1 || keys[0] !== "enabled" || typeof i18n.enabled !== "boolean") {
103034
+ errors2.push({
103035
+ rule: "schemas/i18n",
103036
+ message: '"i18n" only supports one boolean option: { "enabled": true | false }.',
103037
+ file: file2
103038
+ });
103039
+ }
103040
+ }
103041
+ }
102931
103042
  if (typeof fields !== "object" || fields === null || Array.isArray(fields)) {
102932
103043
  errors2.push({
102933
103044
  rule: "schemas/fields",
@@ -102969,10 +103080,11 @@ function validateSchemaFile(absolutePath, file2, schemaUids = /* @__PURE__ */ ne
102969
103080
  file: file2
102970
103081
  });
102971
103082
  }
102972
- if ("i18n" in definition) {
103083
+ if ("i18n" in definition || "localized" in definition) {
103084
+ const key = "i18n" in definition ? "i18n" : "localized";
102973
103085
  errors2.push({
102974
103086
  rule: "schemas/field-i18n",
102975
- message: `Field "${fieldName}": field-level locale settings ("i18n") are not supported.`,
103087
+ message: `Field "${fieldName}": field-level locale settings ("${key}") are not supported.`,
102976
103088
  file: file2
102977
103089
  });
102978
103090
  }
@@ -102999,7 +103111,7 @@ function validateSchemaFile(absolutePath, file2, schemaUids = /* @__PURE__ */ ne
102999
103111
  });
103000
103112
  }
103001
103113
  } else {
103002
- for (const relationOnlyKey of ["target", "many", "localized"]) {
103114
+ for (const relationOnlyKey of ["target", "many"]) {
103003
103115
  if (relationOnlyKey in definition) {
103004
103116
  errors2.push({
103005
103117
  rule: "schemas/relation-shape",
@@ -109566,6 +109678,7 @@ __name(deleteCommand, "deleteCommand");
109566
109678
 
109567
109679
  // src/cli/commands/schema.ts
109568
109680
  init_dist();
109681
+ init_sync_schemas();
109569
109682
  import fs42 from "node:fs";
109570
109683
  import path46 from "node:path";
109571
109684
  init_api();
@@ -109576,6 +109689,7 @@ function toApiShape(schema) {
109576
109689
  name: schema.uid,
109577
109690
  label: schema.name,
109578
109691
  isSingleton: schema.isSingleton ?? false,
109692
+ i18n: schema.i18n ?? { enabled: true },
109579
109693
  fields: schema.fields
109580
109694
  };
109581
109695
  }
@@ -109607,18 +109721,32 @@ async function schemaPushCommand(typeName, options, cmd) {
109607
109721
  await requireOperation("cms.schema.push", { projectId: ctx.projectId, env: ctx.env });
109608
109722
  const cwd = resolveProjectCwd(options.cwd);
109609
109723
  const schemasDir = path46.join(cwd, "src/schemas");
109610
- const files = typeName ? [`${typeName}.json`] : fs42.readdirSync(schemasDir).filter((f) => f.endsWith(".json"));
109611
- const results = [];
109612
- for (const file2 of files) {
109724
+ const allSchemaFiles = fs42.readdirSync(schemasDir).filter((file2) => file2.endsWith(".json"));
109725
+ const files = typeName ? [`${typeName}.json`] : allSchemaFiles;
109726
+ const schemaUids = new Set(
109727
+ allSchemaFiles.flatMap((file2) => {
109728
+ try {
109729
+ const schema = JSON.parse(fs42.readFileSync(path46.join(schemasDir, file2), "utf-8"));
109730
+ return typeof schema.uid === "string" ? [schema.uid] : [];
109731
+ } catch {
109732
+ return [];
109733
+ }
109734
+ })
109735
+ );
109736
+ const schemas3 = files.map((file2) => {
109613
109737
  const filePath = path46.join(schemasDir, file2);
109614
109738
  if (!fs42.existsSync(filePath)) {
109615
109739
  throw new Error(`Schema file not found: ${filePath}`);
109616
109740
  }
109617
- const issues = validateSchemaFile(filePath, path46.join("src/schemas", file2));
109741
+ const issues = validateSchemaFile(filePath, path46.join("src/schemas", file2), schemaUids);
109618
109742
  if (issues.length > 0) {
109619
109743
  throw new Error(issues.map((issue2) => `${issue2.file}: ${issue2.message}`).join("\n"));
109620
109744
  }
109621
- const schema = JSON.parse(fs42.readFileSync(filePath, "utf-8"));
109745
+ return JSON.parse(fs42.readFileSync(filePath, "utf-8"));
109746
+ });
109747
+ syncSchemas({ cwd, verbose: false });
109748
+ const results = [];
109749
+ for (const schema of schemas3) {
109622
109750
  const contentType = toApiShape(schema);
109623
109751
  try {
109624
109752
  const result = await api.createSchema(ctx.projectId, contentType);
@@ -6,6 +6,6 @@ export { Date } from './components/Date.js';
6
6
  export { Boolean } from './components/Boolean.js';
7
7
  export { RichText } from './components/RichText.js';
8
8
  export { useLabels, useTranslations } from './translations.js';
9
- export { FimoString, FimoDate, FimoMedia, FimoBoolean, FimoRichText, type FimoSource, type FimoPart, type FimoRichTextContent, type FimoRichTextNodeProps, type FimoRichTextMarkProps, type FimoRichTextComponents, FIMO_SOURCE, FIMO_PARTS, isFimoString, isFimoDate, hasFimoSource, getFimoSource, getFimoParts, fimo, useFimoLiveValue, } from './lib/index.js';
10
- export type { BoolOps, DateOps, Field, Fields, FilterFor, NullOnlyOps, NumberOps, Projected, Query, ScalarOps, Sort, SortField, StringOps, Where, } from './lib/index.js';
9
+ export { FimoString, FimoDate, FimoMedia, FimoBoolean, FimoRichText, type FimoReference, type FimoSource, type FimoPart, type FimoRichTextContent, type FimoRichTextNodeProps, type FimoRichTextMarkProps, type FimoRichTextComponents, FIMO_SOURCE, FIMO_PARTS, isFimoString, isFimoDate, hasFimoSource, getFimoSource, getFimoParts, fimo, useFimoLiveValue, } from './lib/index.js';
10
+ export type { BoolOps, DateOps, Field, Fields, FilterFor, NullOnlyOps, NumberOps, Populate, Populated, PopulatedResult, Projected, ProjectedWithPopulate, Query, RelationField, RelationMap, ScalarOps, Sort, SortField, StringOps, WithRelations, Where, } from './lib/index.js';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/primitives/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,M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Aa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,WAAW,EACX,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,EACZ,IAAI,EACJ,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,aAAa,EACb,KAAK,GACN,MAAM,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
- export { FimoString, FimoDate, FimoMedia, FimoBoolean, FimoRichText, type FimoSource, type FimoPart, type FimoRichTextContent, type FimoRichTextNodeProps, type FimoRichTextMarkProps, type FimoRichTextComponents, FIMO_SOURCE, FIMO_PARTS, isFimoString, isFimoDate, hasFimoSource, getFimoSource, getFimoParts, } from './primitives.js';
1
+ export { FimoString, FimoDate, FimoMedia, FimoBoolean, FimoRichText, type FimoReference, type FimoSource, type FimoPart, type FimoRichTextContent, type FimoRichTextNodeProps, type FimoRichTextMarkProps, type FimoRichTextComponents, FIMO_SOURCE, FIMO_PARTS, isFimoString, isFimoDate, hasFimoSource, getFimoSource, getFimoParts, } from './primitives.js';
2
2
  export { fimo } from './template.js';
3
3
  export { useFimoLiveValue } from './useFimoLiveValue.js';
4
- export type { BoolOps, DateOps, Field, Fields, FilterFor, NullOnlyOps, NumberOps, Projected, Query, ScalarOps, Sort, SortField, StringOps, Where, } from './query.js';
4
+ export type { BoolOps, DateOps, Field, Fields, FilterFor, NullOnlyOps, NumberOps, Populate, Populated, PopulatedResult, ProjectedWithPopulate, Projected, Query, RelationField, RelationMap, ScalarOps, Sort, SortField, StringOps, Where, WithRelations, } from './query.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/primitives/lib/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,WAAW,EACX,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,SAAS,EACT,SAAS,EACT,KAAK,EACL,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,GACN,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/primitives/lib/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,WAAW,EACX,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,EACb,aAAa,EACb,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,YAAY,EACV,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,KAAK,EACL,aAAa,EACb,WAAW,EACX,SAAS,EACT,IAAI,EACJ,SAAS,EACT,SAAS,EACT,KAAK,EACL,aAAa,GACd,MAAM,YAAY,CAAC"}
@@ -8,6 +8,9 @@ import type React from 'react';
8
8
  export interface FimoSource {
9
9
  source: string;
10
10
  }
11
+ export interface FimoReference {
12
+ documentId: string;
13
+ }
11
14
  export declare const FIMO_SOURCE: unique symbol;
12
15
  export declare const FIMO_PARTS: unique symbol;
13
16
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../src/runtime/primitives/lib/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;GAKG;AAGH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,eAAO,MAAM,WAAW,eAA4B,CAAC;AACrD,eAAO,MAAM,UAAU,eAA2B,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,MAAM;IACpC,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;gBAEvB,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAKhD;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,UAAU;IAc7C;;OAEG;IACH,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