@learncard/learn-card-plugin 1.1.11 → 1.1.14

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.
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -45,16 +46,16 @@ var util;
45
46
  return obj;
46
47
  };
47
48
  util2.getValidEnumValues = (obj) => {
48
- const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
49
+ const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
49
50
  const filtered = {};
50
- for (const k of validKeys) {
51
- filtered[k] = obj[k];
51
+ for (const k2 of validKeys) {
52
+ filtered[k2] = obj[k2];
52
53
  }
53
54
  return util2.objectValues(filtered);
54
55
  };
55
56
  util2.objectValues = (obj) => {
56
- return util2.objectKeys(obj).map(function(e) {
57
- return obj[e];
57
+ return util2.objectKeys(obj).map(function(e2) {
58
+ return obj[e2];
58
59
  });
59
60
  };
60
61
  util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
@@ -109,8 +110,8 @@ var ZodParsedType = util.arrayToEnum([
109
110
  "set"
110
111
  ]);
111
112
  var getParsedType = /* @__PURE__ */ __name((data) => {
112
- const t = typeof data;
113
- switch (t) {
113
+ const t2 = typeof data;
114
+ switch (t2) {
114
115
  case "undefined":
115
116
  return ZodParsedType.undefined;
116
117
  case "string":
@@ -210,10 +211,10 @@ var ZodError = class extends Error {
210
211
  fieldErrors._errors.push(mapper(issue));
211
212
  } else {
212
213
  let curr = fieldErrors;
213
- let i = 0;
214
- while (i < issue.path.length) {
215
- const el = issue.path[i];
216
- const terminal = i === issue.path.length - 1;
214
+ let i2 = 0;
215
+ while (i2 < issue.path.length) {
216
+ const el = issue.path[i2];
217
+ const terminal = i2 === issue.path.length - 1;
217
218
  if (!terminal) {
218
219
  curr[el] = curr[el] || { _errors: [] };
219
220
  } else {
@@ -221,7 +222,7 @@ var ZodError = class extends Error {
221
222
  curr[el]._errors.push(mapper(issue));
222
223
  }
223
224
  curr = curr[el];
224
- i++;
225
+ i2++;
225
226
  }
226
227
  }
227
228
  }
@@ -368,7 +369,7 @@ var makeIssue = /* @__PURE__ */ __name((params) => {
368
369
  path: fullPath
369
370
  };
370
371
  let errorMessage = "";
371
- const maps = errorMaps.filter((m) => !!m).slice().reverse();
372
+ const maps = errorMaps.filter((m3) => !!m3).slice().reverse();
372
373
  for (const map of maps) {
373
374
  errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
374
375
  }
@@ -389,7 +390,7 @@ function addIssueToContext(ctx, issueData) {
389
390
  ctx.schemaErrorMap,
390
391
  getErrorMap(),
391
392
  errorMap
392
- ].filter((x) => !!x)
393
+ ].filter((x2) => !!x2)
393
394
  });
394
395
  ctx.common.issues.push(issue);
395
396
  }
@@ -408,12 +409,12 @@ var ParseStatus = class {
408
409
  }
409
410
  static mergeArray(status, results) {
410
411
  const arrayValue = [];
411
- for (const s of results) {
412
- if (s.status === "aborted")
412
+ for (const s3 of results) {
413
+ if (s3.status === "aborted")
413
414
  return INVALID;
414
- if (s.status === "dirty")
415
+ if (s3.status === "dirty")
415
416
  status.dirty();
416
- arrayValue.push(s.value);
417
+ arrayValue.push(s3.value);
417
418
  }
418
419
  return { status: status.value, value: arrayValue };
419
420
  }
@@ -452,10 +453,10 @@ var INVALID = Object.freeze({
452
453
  });
453
454
  var DIRTY = /* @__PURE__ */ __name((value) => ({ status: "dirty", value }), "DIRTY");
454
455
  var OK = /* @__PURE__ */ __name((value) => ({ status: "valid", value }), "OK");
455
- var isAborted = /* @__PURE__ */ __name((x) => x.status === "aborted", "isAborted");
456
- var isDirty = /* @__PURE__ */ __name((x) => x.status === "dirty", "isDirty");
457
- var isValid = /* @__PURE__ */ __name((x) => x.status === "valid", "isValid");
458
- var isAsync = /* @__PURE__ */ __name((x) => typeof Promise !== void 0 && x instanceof Promise, "isAsync");
456
+ var isAborted = /* @__PURE__ */ __name((x2) => x2.status === "aborted", "isAborted");
457
+ var isDirty = /* @__PURE__ */ __name((x2) => x2.status === "dirty", "isDirty");
458
+ var isValid = /* @__PURE__ */ __name((x2) => x2.status === "valid", "isValid");
459
+ var isAsync = /* @__PURE__ */ __name((x2) => typeof Promise !== void 0 && x2 instanceof Promise, "isAsync");
459
460
  var errorUtil;
460
461
  (function(errorUtil2) {
461
462
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
@@ -786,11 +787,14 @@ var ZodString = class extends ZodType {
786
787
  const parsedType = this._getType(input);
787
788
  if (parsedType !== ZodParsedType.string) {
788
789
  const ctx2 = this._getOrReturnCtx(input);
789
- addIssueToContext(ctx2, {
790
- code: ZodIssueCode.invalid_type,
791
- expected: ZodParsedType.string,
792
- received: ctx2.parsedType
793
- });
790
+ addIssueToContext(
791
+ ctx2,
792
+ {
793
+ code: ZodIssueCode.invalid_type,
794
+ expected: ZodParsedType.string,
795
+ received: ctx2.parsedType
796
+ }
797
+ );
794
798
  return INVALID;
795
799
  }
796
800
  const status = new ParseStatus();
@@ -1633,14 +1637,14 @@ var ZodArray = class extends ZodType {
1633
1637
  }
1634
1638
  }
1635
1639
  if (ctx.common.async) {
1636
- return Promise.all(ctx.data.map((item, i) => {
1637
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1640
+ return Promise.all(ctx.data.map((item, i2) => {
1641
+ return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i2));
1638
1642
  })).then((result2) => {
1639
1643
  return ParseStatus.mergeArray(status, result2);
1640
1644
  });
1641
1645
  }
1642
- const result = ctx.data.map((item, i) => {
1643
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1646
+ const result = ctx.data.map((item, i2) => {
1647
+ return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i2));
1644
1648
  });
1645
1649
  return ParseStatus.mergeArray(status, result);
1646
1650
  }
@@ -1796,7 +1800,9 @@ var ZodObject = class extends ZodType {
1796
1800
  const value = ctx.data[key];
1797
1801
  pairs.push({
1798
1802
  key: { status: "valid", value: key },
1799
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1803
+ value: catchall._parse(
1804
+ new ParseInputLazyPath(ctx, value, ctx.path, key)
1805
+ ),
1800
1806
  alwaysSet: key in ctx.data
1801
1807
  });
1802
1808
  }
@@ -2169,17 +2175,17 @@ var ZodDiscriminatedUnion = class extends ZodType {
2169
2175
  }
2170
2176
  };
2171
2177
  __name(ZodDiscriminatedUnion, "ZodDiscriminatedUnion");
2172
- function mergeValues(a, b) {
2173
- const aType = getParsedType(a);
2174
- const bType = getParsedType(b);
2175
- if (a === b) {
2176
- return { valid: true, data: a };
2178
+ function mergeValues(a3, b2) {
2179
+ const aType = getParsedType(a3);
2180
+ const bType = getParsedType(b2);
2181
+ if (a3 === b2) {
2182
+ return { valid: true, data: a3 };
2177
2183
  } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
2178
- const bKeys = util.objectKeys(b);
2179
- const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2180
- const newObj = { ...a, ...b };
2184
+ const bKeys = util.objectKeys(b2);
2185
+ const sharedKeys = util.objectKeys(a3).filter((key) => bKeys.indexOf(key) !== -1);
2186
+ const newObj = { ...a3, ...b2 };
2181
2187
  for (const key of sharedKeys) {
2182
- const sharedValue = mergeValues(a[key], b[key]);
2188
+ const sharedValue = mergeValues(a3[key], b2[key]);
2183
2189
  if (!sharedValue.valid) {
2184
2190
  return { valid: false };
2185
2191
  }
@@ -2187,13 +2193,13 @@ function mergeValues(a, b) {
2187
2193
  }
2188
2194
  return { valid: true, data: newObj };
2189
2195
  } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
2190
- if (a.length !== b.length) {
2196
+ if (a3.length !== b2.length) {
2191
2197
  return { valid: false };
2192
2198
  }
2193
2199
  const newArray = [];
2194
- for (let index = 0; index < a.length; index++) {
2195
- const itemA = a[index];
2196
- const itemB = b[index];
2200
+ for (let index = 0; index < a3.length; index++) {
2201
+ const itemA = a3[index];
2202
+ const itemB = b2[index];
2197
2203
  const sharedValue = mergeValues(itemA, itemB);
2198
2204
  if (!sharedValue.valid) {
2199
2205
  return { valid: false };
@@ -2201,8 +2207,8 @@ function mergeValues(a, b) {
2201
2207
  newArray.push(sharedValue.data);
2202
2208
  }
2203
2209
  return { valid: true, data: newArray };
2204
- } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
2205
- return { valid: true, data: a };
2210
+ } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a3 === +b2) {
2211
+ return { valid: true, data: a3 };
2206
2212
  } else {
2207
2213
  return { valid: false };
2208
2214
  }
@@ -2299,7 +2305,7 @@ var ZodTuple = class extends ZodType {
2299
2305
  if (!schema)
2300
2306
  return null;
2301
2307
  return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2302
- }).filter((x) => !!x);
2308
+ }).filter((x2) => !!x2);
2303
2309
  if (ctx.common.async) {
2304
2310
  return Promise.all(items).then((results) => {
2305
2311
  return ParseStatus.mergeArray(status, results);
@@ -2495,7 +2501,7 @@ var ZodSet = class extends ZodType {
2495
2501
  return { status: status.value, value: parsedSet };
2496
2502
  }
2497
2503
  __name(finalizeSet, "finalizeSet");
2498
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2504
+ const elements = [...ctx.data.values()].map((item, i2) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i2)));
2499
2505
  if (ctx.common.async) {
2500
2506
  return Promise.all(elements).then((elements2) => finalizeSet(elements2));
2501
2507
  } else {
@@ -2555,7 +2561,7 @@ var ZodFunction = class extends ZodType {
2555
2561
  ctx.schemaErrorMap,
2556
2562
  getErrorMap(),
2557
2563
  errorMap
2558
- ].filter((x) => !!x),
2564
+ ].filter((x2) => !!x2),
2559
2565
  issueData: {
2560
2566
  code: ZodIssueCode.invalid_arguments,
2561
2567
  argumentsError: error
@@ -2572,7 +2578,7 @@ var ZodFunction = class extends ZodType {
2572
2578
  ctx.schemaErrorMap,
2573
2579
  getErrorMap(),
2574
2580
  errorMap
2575
- ].filter((x) => !!x),
2581
+ ].filter((x2) => !!x2),
2576
2582
  issueData: {
2577
2583
  code: ZodIssueCode.invalid_return_type,
2578
2584
  returnTypeError: error
@@ -2585,13 +2591,13 @@ var ZodFunction = class extends ZodType {
2585
2591
  if (this._def.returns instanceof ZodPromise) {
2586
2592
  return OK(async (...args) => {
2587
2593
  const error = new ZodError([]);
2588
- const parsedArgs = await this._def.args.parseAsync(args, params).catch((e) => {
2589
- error.addIssue(makeArgsIssue(args, e));
2594
+ const parsedArgs = await this._def.args.parseAsync(args, params).catch((e2) => {
2595
+ error.addIssue(makeArgsIssue(args, e2));
2590
2596
  throw error;
2591
2597
  });
2592
2598
  const result = await fn(...parsedArgs);
2593
- const parsedReturns = await this._def.returns._def.type.parseAsync(result, params).catch((e) => {
2594
- error.addIssue(makeReturnsIssue(result, e));
2599
+ const parsedReturns = await this._def.returns._def.type.parseAsync(result, params).catch((e2) => {
2600
+ error.addIssue(makeReturnsIssue(result, e2));
2595
2601
  throw error;
2596
2602
  });
2597
2603
  return parsedReturns;
@@ -3117,10 +3123,10 @@ var ZodPipeline = class extends ZodType {
3117
3123
  }
3118
3124
  }
3119
3125
  }
3120
- static create(a, b) {
3126
+ static create(a3, b2) {
3121
3127
  return new ZodPipeline({
3122
- in: a,
3123
- out: b,
3128
+ in: a3,
3129
+ out: b2,
3124
3130
  typeName: ZodFirstPartyTypeKind.ZodPipeline
3125
3131
  });
3126
3132
  }
@@ -3347,11 +3353,13 @@ var AchievementCriteriaValidator = mod.object({
3347
3353
  type: mod.string().optional(),
3348
3354
  narrative: mod.string().optional()
3349
3355
  });
3350
- var ImageValidator = mod.string().or(mod.object({
3351
- id: mod.string(),
3352
- type: mod.string(),
3353
- caption: mod.string().optional()
3354
- }));
3356
+ var ImageValidator = mod.string().or(
3357
+ mod.object({
3358
+ id: mod.string(),
3359
+ type: mod.string(),
3360
+ caption: mod.string().optional()
3361
+ })
3362
+ );
3355
3363
  var GeoCoordinatesValidator = mod.object({
3356
3364
  type: mod.string().min(1).or(mod.string().array().nonempty()),
3357
3365
  latitude: mod.number(),
@@ -3393,29 +3401,31 @@ var IdentifierEntryValidator = mod.object({
3393
3401
  identifier: mod.string(),
3394
3402
  identifierType: IdentifierTypeValidator
3395
3403
  });
3396
- var ProfileValidator = mod.string().or(mod.object({
3397
- id: mod.string().optional(),
3398
- type: mod.string().or(mod.string().array().nonempty().optional()),
3399
- name: mod.string().optional(),
3400
- url: mod.string().optional(),
3401
- phone: mod.string().optional(),
3402
- description: mod.string().optional(),
3403
- endorsement: mod.any().array().optional(),
3404
- image: ImageValidator.optional(),
3405
- email: mod.string().email().optional(),
3406
- address: AddressValidator.optional(),
3407
- otherIdentifier: IdentifierEntryValidator.array().optional(),
3408
- official: mod.string().optional(),
3409
- parentOrg: mod.any().optional(),
3410
- familyName: mod.string().optional(),
3411
- givenName: mod.string().optional(),
3412
- additionalName: mod.string().optional(),
3413
- patronymicName: mod.string().optional(),
3414
- honorificPrefix: mod.string().optional(),
3415
- honorificSuffix: mod.string().optional(),
3416
- familyNamePrefix: mod.string().optional(),
3417
- dateOfBirth: mod.string().optional()
3418
- }).catchall(mod.any()));
3404
+ var ProfileValidator = mod.string().or(
3405
+ mod.object({
3406
+ id: mod.string().optional(),
3407
+ type: mod.string().or(mod.string().array().nonempty().optional()),
3408
+ name: mod.string().optional(),
3409
+ url: mod.string().optional(),
3410
+ phone: mod.string().optional(),
3411
+ description: mod.string().optional(),
3412
+ endorsement: mod.any().array().optional(),
3413
+ image: ImageValidator.optional(),
3414
+ email: mod.string().email().optional(),
3415
+ address: AddressValidator.optional(),
3416
+ otherIdentifier: IdentifierEntryValidator.array().optional(),
3417
+ official: mod.string().optional(),
3418
+ parentOrg: mod.any().optional(),
3419
+ familyName: mod.string().optional(),
3420
+ givenName: mod.string().optional(),
3421
+ additionalName: mod.string().optional(),
3422
+ patronymicName: mod.string().optional(),
3423
+ honorificPrefix: mod.string().optional(),
3424
+ honorificSuffix: mod.string().optional(),
3425
+ familyNamePrefix: mod.string().optional(),
3426
+ dateOfBirth: mod.string().optional()
3427
+ }).catchall(mod.any())
3428
+ );
3419
3429
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
3420
3430
  var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
3421
3431
  var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
@@ -3484,15 +3494,17 @@ var JWEValidator = mod.object({
3484
3494
  aad: mod.string().optional(),
3485
3495
  recipients: JWERecipientValidator.array().optional()
3486
3496
  });
3487
- var VerificationMethodValidator = mod.string().or(mod.object({
3488
- "@context": ContextValidator.optional(),
3489
- id: mod.string(),
3490
- type: mod.string(),
3491
- controller: mod.string(),
3492
- publicKeyJwk: JWKValidator.optional(),
3493
- publicKeyBase58: mod.string().optional(),
3494
- blockChainAccountId: mod.string().optional()
3495
- }).catchall(mod.any()));
3497
+ var VerificationMethodValidator = mod.string().or(
3498
+ mod.object({
3499
+ "@context": ContextValidator.optional(),
3500
+ id: mod.string(),
3501
+ type: mod.string(),
3502
+ controller: mod.string(),
3503
+ publicKeyJwk: JWKValidator.optional(),
3504
+ publicKeyBase58: mod.string().optional(),
3505
+ blockChainAccountId: mod.string().optional()
3506
+ }).catchall(mod.any())
3507
+ );
3496
3508
  var ServiceValidator = mod.object({
3497
3509
  id: mod.string(),
3498
3510
  type: mod.string().or(mod.string().array().nonempty()),
@@ -3690,7 +3702,9 @@ var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
3690
3702
  name: mod.string().optional(),
3691
3703
  description: mod.string().optional(),
3692
3704
  image: ImageValidator.optional(),
3693
- credentialSubject: AchievementSubjectValidator.or(AchievementSubjectValidator.array()),
3705
+ credentialSubject: AchievementSubjectValidator.or(
3706
+ AchievementSubjectValidator.array()
3707
+ ),
3694
3708
  endorsement: UnsignedVCValidator.array().optional(),
3695
3709
  evidence: EvidenceValidator.array().optional()
3696
3710
  });
@@ -3749,7 +3763,7 @@ var LCNProfileValidator = mod.object({
3749
3763
  websiteLink: mod.string().optional(),
3750
3764
  isServiceProfile: mod.boolean().default(false).optional(),
3751
3765
  type: mod.string().optional(),
3752
- notificationsWebhook: mod.string().url().startsWith("https://").optional()
3766
+ notificationsWebhook: mod.string().url().startsWith("http").optional()
3753
3767
  });
3754
3768
  var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
3755
3769
  records: LCNProfileValidator.array()
@@ -3776,11 +3790,17 @@ var BoostValidator = mod.object({
3776
3790
  status: LCNBoostStatus.optional(),
3777
3791
  autoConnectRecipients: mod.boolean().optional()
3778
3792
  });
3793
+ var PaginatedBoostsValidator = PaginationResponseValidator.extend({
3794
+ records: BoostValidator.array()
3795
+ });
3779
3796
  var BoostRecipientValidator = mod.object({
3780
3797
  to: LCNProfileValidator,
3781
3798
  from: mod.string(),
3782
3799
  received: mod.string().optional()
3783
3800
  });
3801
+ var PaginatedBoostRecipientsValidator = PaginationResponseValidator.extend({
3802
+ records: BoostRecipientValidator.array()
3803
+ });
3784
3804
  var LCNBoostClaimLinkSigningAuthorityValidator = mod.object({
3785
3805
  endpoint: mod.string(),
3786
3806
  name: mod.string(),
@@ -3913,7 +3933,9 @@ var ConsentFlowTransactionActionValidator = mod.enum([
3913
3933
  ]);
3914
3934
  var ConsentFlowTransactionsQueryValidator = mod.object({
3915
3935
  terms: ConsentFlowTermsQueryValidator.optional(),
3916
- action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
3936
+ action: ConsentFlowTransactionActionValidator.or(
3937
+ ConsentFlowTransactionActionValidator.array()
3938
+ ).optional(),
3917
3939
  date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
3918
3940
  expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
3919
3941
  oneTime: mod.boolean().optional()
@@ -3958,7 +3980,18 @@ var LCNNotificationValidator = mod.object({
3958
3980
  sent: mod.string().datetime().optional()
3959
3981
  });
3960
3982
 
3961
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/toInteger/index.js
3983
+ // ../../../node_modules/.pnpm/@babel+runtime@7.25.6/node_modules/@babel/runtime/helpers/esm/typeof.js
3984
+ function _typeof(o) {
3985
+ "@babel/helpers - typeof";
3986
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
3987
+ return typeof o2;
3988
+ } : function(o2) {
3989
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
3990
+ }, _typeof(o);
3991
+ }
3992
+ __name(_typeof, "_typeof");
3993
+
3994
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/toInteger/index.js
3962
3995
  function toInteger(dirtyNumber) {
3963
3996
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
3964
3997
  return NaN;
@@ -3971,7 +4004,7 @@ function toInteger(dirtyNumber) {
3971
4004
  }
3972
4005
  __name(toInteger, "toInteger");
3973
4006
 
3974
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/requiredArgs/index.js
4007
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/requiredArgs/index.js
3975
4008
  function requiredArgs(required, args) {
3976
4009
  if (args.length < required) {
3977
4010
  throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present");
@@ -3979,17 +4012,17 @@ function requiredArgs(required, args) {
3979
4012
  }
3980
4013
  __name(requiredArgs, "requiredArgs");
3981
4014
 
3982
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/toDate/index.js
4015
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/toDate/index.js
3983
4016
  function toDate(argument) {
3984
4017
  requiredArgs(1, arguments);
3985
4018
  var argStr = Object.prototype.toString.call(argument);
3986
- if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
4019
+ if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
3987
4020
  return new Date(argument.getTime());
3988
4021
  } else if (typeof argument === "number" || argStr === "[object Number]") {
3989
4022
  return new Date(argument);
3990
4023
  } else {
3991
4024
  if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") {
3992
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule");
4025
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
3993
4026
  console.warn(new Error().stack);
3994
4027
  }
3995
4028
  return new Date(NaN);
@@ -3997,7 +4030,7 @@ function toDate(argument) {
3997
4030
  }
3998
4031
  __name(toDate, "toDate");
3999
4032
 
4000
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/addMilliseconds/index.js
4033
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/addMilliseconds/index.js
4001
4034
  function addMilliseconds(dirtyDate, dirtyAmount) {
4002
4035
  requiredArgs(2, arguments);
4003
4036
  var timestamp = toDate(dirtyDate).getTime();
@@ -4006,7 +4039,14 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
4006
4039
  }
4007
4040
  __name(addMilliseconds, "addMilliseconds");
4008
4041
 
4009
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
4042
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/defaultOptions/index.js
4043
+ var defaultOptions = {};
4044
+ function getDefaultOptions() {
4045
+ return defaultOptions;
4046
+ }
4047
+ __name(getDefaultOptions, "getDefaultOptions");
4048
+
4049
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
4010
4050
  function getTimezoneOffsetInMilliseconds(date) {
4011
4051
  var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
4012
4052
  utcDate.setUTCFullYear(date.getFullYear());
@@ -4014,14 +4054,14 @@ function getTimezoneOffsetInMilliseconds(date) {
4014
4054
  }
4015
4055
  __name(getTimezoneOffsetInMilliseconds, "getTimezoneOffsetInMilliseconds");
4016
4056
 
4017
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/isDate/index.js
4057
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/isDate/index.js
4018
4058
  function isDate(value) {
4019
4059
  requiredArgs(1, arguments);
4020
- return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
4060
+ return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
4021
4061
  }
4022
4062
  __name(isDate, "isDate");
4023
4063
 
4024
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/isValid/index.js
4064
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/isValid/index.js
4025
4065
  function isValid2(dirtyDate) {
4026
4066
  requiredArgs(1, arguments);
4027
4067
  if (!isDate(dirtyDate) && typeof dirtyDate !== "number") {
@@ -4032,705 +4072,220 @@ function isValid2(dirtyDate) {
4032
4072
  }
4033
4073
  __name(isValid2, "isValid");
4034
4074
 
4035
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
4036
- var formatDistanceLocale = {
4037
- lessThanXSeconds: {
4038
- one: "less than a second",
4039
- other: "less than {{count}} seconds"
4040
- },
4041
- xSeconds: {
4042
- one: "1 second",
4043
- other: "{{count}} seconds"
4044
- },
4045
- halfAMinute: "half a minute",
4046
- lessThanXMinutes: {
4047
- one: "less than a minute",
4048
- other: "less than {{count}} minutes"
4049
- },
4050
- xMinutes: {
4051
- one: "1 minute",
4052
- other: "{{count}} minutes"
4053
- },
4054
- aboutXHours: {
4055
- one: "about 1 hour",
4056
- other: "about {{count}} hours"
4057
- },
4058
- xHours: {
4059
- one: "1 hour",
4060
- other: "{{count}} hours"
4061
- },
4062
- xDays: {
4063
- one: "1 day",
4064
- other: "{{count}} days"
4065
- },
4066
- aboutXWeeks: {
4067
- one: "about 1 week",
4068
- other: "about {{count}} weeks"
4069
- },
4070
- xWeeks: {
4071
- one: "1 week",
4072
- other: "{{count}} weeks"
4073
- },
4074
- aboutXMonths: {
4075
- one: "about 1 month",
4076
- other: "about {{count}} months"
4077
- },
4078
- xMonths: {
4079
- one: "1 month",
4080
- other: "{{count}} months"
4081
- },
4082
- aboutXYears: {
4083
- one: "about 1 year",
4084
- other: "about {{count}} years"
4085
- },
4086
- xYears: {
4087
- one: "1 year",
4088
- other: "{{count}} years"
4089
- },
4090
- overXYears: {
4091
- one: "over 1 year",
4092
- other: "over {{count}} years"
4093
- },
4094
- almostXYears: {
4095
- one: "almost 1 year",
4096
- other: "almost {{count}} years"
4097
- }
4098
- };
4099
- var formatDistance = /* @__PURE__ */ __name(function(token, count, options) {
4100
- var result;
4101
- var tokenValue = formatDistanceLocale[token];
4102
- if (typeof tokenValue === "string") {
4103
- result = tokenValue;
4104
- } else if (count === 1) {
4105
- result = tokenValue.one;
4075
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/subMilliseconds/index.js
4076
+ function subMilliseconds(dirtyDate, dirtyAmount) {
4077
+ requiredArgs(2, arguments);
4078
+ var amount = toInteger(dirtyAmount);
4079
+ return addMilliseconds(dirtyDate, -amount);
4080
+ }
4081
+ __name(subMilliseconds, "subMilliseconds");
4082
+
4083
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
4084
+ var MILLISECONDS_IN_DAY = 864e5;
4085
+ function getUTCDayOfYear(dirtyDate) {
4086
+ requiredArgs(1, arguments);
4087
+ var date = toDate(dirtyDate);
4088
+ var timestamp = date.getTime();
4089
+ date.setUTCMonth(0, 1);
4090
+ date.setUTCHours(0, 0, 0, 0);
4091
+ var startOfYearTimestamp = date.getTime();
4092
+ var difference = timestamp - startOfYearTimestamp;
4093
+ return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
4094
+ }
4095
+ __name(getUTCDayOfYear, "getUTCDayOfYear");
4096
+
4097
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
4098
+ function startOfUTCISOWeek(dirtyDate) {
4099
+ requiredArgs(1, arguments);
4100
+ var weekStartsOn = 1;
4101
+ var date = toDate(dirtyDate);
4102
+ var day = date.getUTCDay();
4103
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4104
+ date.setUTCDate(date.getUTCDate() - diff);
4105
+ date.setUTCHours(0, 0, 0, 0);
4106
+ return date;
4107
+ }
4108
+ __name(startOfUTCISOWeek, "startOfUTCISOWeek");
4109
+
4110
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
4111
+ function getUTCISOWeekYear(dirtyDate) {
4112
+ requiredArgs(1, arguments);
4113
+ var date = toDate(dirtyDate);
4114
+ var year = date.getUTCFullYear();
4115
+ var fourthOfJanuaryOfNextYear = new Date(0);
4116
+ fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
4117
+ fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
4118
+ var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
4119
+ var fourthOfJanuaryOfThisYear = new Date(0);
4120
+ fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
4121
+ fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
4122
+ var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
4123
+ if (date.getTime() >= startOfNextYear.getTime()) {
4124
+ return year + 1;
4125
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
4126
+ return year;
4106
4127
  } else {
4107
- result = tokenValue.other.replace("{{count}}", count.toString());
4108
- }
4109
- if (options !== null && options !== void 0 && options.addSuffix) {
4110
- if (options.comparison && options.comparison > 0) {
4111
- return "in " + result;
4112
- } else {
4113
- return result + " ago";
4114
- }
4128
+ return year - 1;
4115
4129
  }
4116
- return result;
4117
- }, "formatDistance");
4118
- var formatDistance_default = formatDistance;
4119
-
4120
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
4121
- function buildFormatLongFn(args) {
4122
- return function() {
4123
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4124
- var width = options.width ? String(options.width) : args.defaultWidth;
4125
- var format2 = args.formats[width] || args.formats[args.defaultWidth];
4126
- return format2;
4127
- };
4128
4130
  }
4129
- __name(buildFormatLongFn, "buildFormatLongFn");
4131
+ __name(getUTCISOWeekYear, "getUTCISOWeekYear");
4130
4132
 
4131
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
4132
- var dateFormats = {
4133
- full: "EEEE, MMMM do, y",
4134
- long: "MMMM do, y",
4135
- medium: "MMM d, y",
4136
- short: "MM/dd/yyyy"
4137
- };
4138
- var timeFormats = {
4139
- full: "h:mm:ss a zzzz",
4140
- long: "h:mm:ss a z",
4141
- medium: "h:mm:ss a",
4142
- short: "h:mm a"
4143
- };
4144
- var dateTimeFormats = {
4145
- full: "{{date}} 'at' {{time}}",
4146
- long: "{{date}} 'at' {{time}}",
4147
- medium: "{{date}}, {{time}}",
4148
- short: "{{date}}, {{time}}"
4149
- };
4150
- var formatLong = {
4151
- date: buildFormatLongFn({
4152
- formats: dateFormats,
4153
- defaultWidth: "full"
4154
- }),
4155
- time: buildFormatLongFn({
4156
- formats: timeFormats,
4157
- defaultWidth: "full"
4158
- }),
4159
- dateTime: buildFormatLongFn({
4160
- formats: dateTimeFormats,
4161
- defaultWidth: "full"
4162
- })
4163
- };
4164
- var formatLong_default = formatLong;
4133
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
4134
+ function startOfUTCISOWeekYear(dirtyDate) {
4135
+ requiredArgs(1, arguments);
4136
+ var year = getUTCISOWeekYear(dirtyDate);
4137
+ var fourthOfJanuary = new Date(0);
4138
+ fourthOfJanuary.setUTCFullYear(year, 0, 4);
4139
+ fourthOfJanuary.setUTCHours(0, 0, 0, 0);
4140
+ var date = startOfUTCISOWeek(fourthOfJanuary);
4141
+ return date;
4142
+ }
4143
+ __name(startOfUTCISOWeekYear, "startOfUTCISOWeekYear");
4165
4144
 
4166
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
4167
- var formatRelativeLocale = {
4168
- lastWeek: "'last' eeee 'at' p",
4169
- yesterday: "'yesterday at' p",
4170
- today: "'today at' p",
4171
- tomorrow: "'tomorrow at' p",
4172
- nextWeek: "eeee 'at' p",
4173
- other: "P"
4174
- };
4175
- var formatRelative = /* @__PURE__ */ __name(function(token, _date, _baseDate, _options) {
4176
- return formatRelativeLocale[token];
4177
- }, "formatRelative");
4178
- var formatRelative_default = formatRelative;
4145
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
4146
+ var MILLISECONDS_IN_WEEK = 6048e5;
4147
+ function getUTCISOWeek(dirtyDate) {
4148
+ requiredArgs(1, arguments);
4149
+ var date = toDate(dirtyDate);
4150
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
4151
+ return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
4152
+ }
4153
+ __name(getUTCISOWeek, "getUTCISOWeek");
4179
4154
 
4180
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
4181
- function buildLocalizeFn(args) {
4182
- return function(dirtyIndex, dirtyOptions) {
4183
- var options = dirtyOptions || {};
4184
- var context = options.context ? String(options.context) : "standalone";
4185
- var valuesArray;
4186
- if (context === "formatting" && args.formattingValues) {
4187
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
4188
- var width = options.width ? String(options.width) : defaultWidth;
4189
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
4190
- } else {
4191
- var _defaultWidth = args.defaultWidth;
4192
- var _width = options.width ? String(options.width) : args.defaultWidth;
4193
- valuesArray = args.values[_width] || args.values[_defaultWidth];
4194
- }
4195
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
4196
- return valuesArray[index];
4197
- };
4155
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
4156
+ function startOfUTCWeek(dirtyDate, options) {
4157
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4158
+ requiredArgs(1, arguments);
4159
+ var defaultOptions2 = getDefaultOptions();
4160
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
4161
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
4162
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4163
+ }
4164
+ var date = toDate(dirtyDate);
4165
+ var day = date.getUTCDay();
4166
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4167
+ date.setUTCDate(date.getUTCDate() - diff);
4168
+ date.setUTCHours(0, 0, 0, 0);
4169
+ return date;
4198
4170
  }
4199
- __name(buildLocalizeFn, "buildLocalizeFn");
4171
+ __name(startOfUTCWeek, "startOfUTCWeek");
4200
4172
 
4201
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
4202
- var eraValues = {
4203
- narrow: ["B", "A"],
4204
- abbreviated: ["BC", "AD"],
4205
- wide: ["Before Christ", "Anno Domini"]
4206
- };
4207
- var quarterValues = {
4208
- narrow: ["1", "2", "3", "4"],
4209
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
4210
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
4211
- };
4212
- var monthValues = {
4213
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
4214
- abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
4215
- wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
4216
- };
4217
- var dayValues = {
4218
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
4219
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
4220
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
4221
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
4222
- };
4223
- var dayPeriodValues = {
4224
- narrow: {
4225
- am: "a",
4226
- pm: "p",
4227
- midnight: "mi",
4228
- noon: "n",
4229
- morning: "morning",
4230
- afternoon: "afternoon",
4231
- evening: "evening",
4232
- night: "night"
4233
- },
4234
- abbreviated: {
4235
- am: "AM",
4236
- pm: "PM",
4237
- midnight: "midnight",
4238
- noon: "noon",
4239
- morning: "morning",
4240
- afternoon: "afternoon",
4241
- evening: "evening",
4242
- night: "night"
4243
- },
4244
- wide: {
4245
- am: "a.m.",
4246
- pm: "p.m.",
4247
- midnight: "midnight",
4248
- noon: "noon",
4249
- morning: "morning",
4250
- afternoon: "afternoon",
4251
- evening: "evening",
4252
- night: "night"
4253
- }
4254
- };
4255
- var formattingDayPeriodValues = {
4256
- narrow: {
4257
- am: "a",
4258
- pm: "p",
4259
- midnight: "mi",
4260
- noon: "n",
4261
- morning: "in the morning",
4262
- afternoon: "in the afternoon",
4263
- evening: "in the evening",
4264
- night: "at night"
4265
- },
4266
- abbreviated: {
4267
- am: "AM",
4268
- pm: "PM",
4269
- midnight: "midnight",
4270
- noon: "noon",
4271
- morning: "in the morning",
4272
- afternoon: "in the afternoon",
4273
- evening: "in the evening",
4274
- night: "at night"
4275
- },
4276
- wide: {
4277
- am: "a.m.",
4278
- pm: "p.m.",
4279
- midnight: "midnight",
4280
- noon: "noon",
4281
- morning: "in the morning",
4282
- afternoon: "in the afternoon",
4283
- evening: "in the evening",
4284
- night: "at night"
4173
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
4174
+ function getUTCWeekYear(dirtyDate, options) {
4175
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4176
+ requiredArgs(1, arguments);
4177
+ var date = toDate(dirtyDate);
4178
+ var year = date.getUTCFullYear();
4179
+ var defaultOptions2 = getDefaultOptions();
4180
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
4181
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
4182
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4285
4183
  }
4286
- };
4287
- var ordinalNumber = /* @__PURE__ */ __name(function(dirtyNumber, _options) {
4288
- var number = Number(dirtyNumber);
4289
- var rem100 = number % 100;
4290
- if (rem100 > 20 || rem100 < 10) {
4291
- switch (rem100 % 10) {
4292
- case 1:
4293
- return number + "st";
4294
- case 2:
4295
- return number + "nd";
4296
- case 3:
4297
- return number + "rd";
4298
- }
4184
+ var firstWeekOfNextYear = new Date(0);
4185
+ firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
4186
+ firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
4187
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
4188
+ var firstWeekOfThisYear = new Date(0);
4189
+ firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
4190
+ firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
4191
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
4192
+ if (date.getTime() >= startOfNextYear.getTime()) {
4193
+ return year + 1;
4194
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
4195
+ return year;
4196
+ } else {
4197
+ return year - 1;
4299
4198
  }
4300
- return number + "th";
4301
- }, "ordinalNumber");
4302
- var localize = {
4303
- ordinalNumber,
4304
- era: buildLocalizeFn({
4305
- values: eraValues,
4306
- defaultWidth: "wide"
4307
- }),
4308
- quarter: buildLocalizeFn({
4309
- values: quarterValues,
4310
- defaultWidth: "wide",
4311
- argumentCallback: function(quarter) {
4312
- return quarter - 1;
4313
- }
4314
- }),
4315
- month: buildLocalizeFn({
4316
- values: monthValues,
4317
- defaultWidth: "wide"
4318
- }),
4319
- day: buildLocalizeFn({
4320
- values: dayValues,
4321
- defaultWidth: "wide"
4322
- }),
4323
- dayPeriod: buildLocalizeFn({
4324
- values: dayPeriodValues,
4325
- defaultWidth: "wide",
4326
- formattingValues: formattingDayPeriodValues,
4327
- defaultFormattingWidth: "wide"
4328
- })
4329
- };
4330
- var localize_default = localize;
4331
-
4332
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
4333
- function buildMatchFn(args) {
4334
- return function(string) {
4335
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4336
- var width = options.width;
4337
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
4338
- var matchResult = string.match(matchPattern);
4339
- if (!matchResult) {
4340
- return null;
4341
- }
4342
- var matchedString = matchResult[0];
4343
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
4344
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) {
4345
- return pattern.test(matchedString);
4346
- }) : findKey(parsePatterns, function(pattern) {
4347
- return pattern.test(matchedString);
4348
- });
4349
- var value;
4350
- value = args.valueCallback ? args.valueCallback(key) : key;
4351
- value = options.valueCallback ? options.valueCallback(value) : value;
4352
- var rest = string.slice(matchedString.length);
4353
- return {
4354
- value,
4355
- rest
4356
- };
4357
- };
4358
4199
  }
4359
- __name(buildMatchFn, "buildMatchFn");
4360
- function findKey(object, predicate) {
4361
- for (var key in object) {
4362
- if (object.hasOwnProperty(key) && predicate(object[key])) {
4363
- return key;
4364
- }
4365
- }
4366
- return void 0;
4200
+ __name(getUTCWeekYear, "getUTCWeekYear");
4201
+
4202
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
4203
+ function startOfUTCWeekYear(dirtyDate, options) {
4204
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4205
+ requiredArgs(1, arguments);
4206
+ var defaultOptions2 = getDefaultOptions();
4207
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
4208
+ var year = getUTCWeekYear(dirtyDate, options);
4209
+ var firstWeek = new Date(0);
4210
+ firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
4211
+ firstWeek.setUTCHours(0, 0, 0, 0);
4212
+ var date = startOfUTCWeek(firstWeek, options);
4213
+ return date;
4367
4214
  }
4368
- __name(findKey, "findKey");
4369
- function findIndex(array, predicate) {
4370
- for (var key = 0; key < array.length; key++) {
4371
- if (predicate(array[key])) {
4372
- return key;
4373
- }
4374
- }
4375
- return void 0;
4215
+ __name(startOfUTCWeekYear, "startOfUTCWeekYear");
4216
+
4217
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCWeek/index.js
4218
+ var MILLISECONDS_IN_WEEK2 = 6048e5;
4219
+ function getUTCWeek(dirtyDate, options) {
4220
+ requiredArgs(1, arguments);
4221
+ var date = toDate(dirtyDate);
4222
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
4223
+ return Math.round(diff / MILLISECONDS_IN_WEEK2) + 1;
4376
4224
  }
4377
- __name(findIndex, "findIndex");
4225
+ __name(getUTCWeek, "getUTCWeek");
4378
4226
 
4379
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
4380
- function buildMatchPatternFn(args) {
4381
- return function(string) {
4382
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4383
- var matchResult = string.match(args.matchPattern);
4384
- if (!matchResult)
4385
- return null;
4386
- var matchedString = matchResult[0];
4387
- var parseResult = string.match(args.parsePattern);
4388
- if (!parseResult)
4389
- return null;
4390
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
4391
- value = options.valueCallback ? options.valueCallback(value) : value;
4392
- var rest = string.slice(matchedString.length);
4393
- return {
4394
- value,
4395
- rest
4396
- };
4397
- };
4227
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
4228
+ function addLeadingZeros(number, targetLength) {
4229
+ var sign = number < 0 ? "-" : "";
4230
+ var output = Math.abs(number).toString();
4231
+ while (output.length < targetLength) {
4232
+ output = "0" + output;
4233
+ }
4234
+ return sign + output;
4398
4235
  }
4399
- __name(buildMatchPatternFn, "buildMatchPatternFn");
4236
+ __name(addLeadingZeros, "addLeadingZeros");
4400
4237
 
4401
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
4402
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
4403
- var parseOrdinalNumberPattern = /\d+/i;
4404
- var matchEraPatterns = {
4405
- narrow: /^(b|a)/i,
4406
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4407
- wide: /^(before christ|before common era|anno domini|common era)/i
4408
- };
4409
- var parseEraPatterns = {
4410
- any: [/^b/i, /^(a|c)/i]
4411
- };
4412
- var matchQuarterPatterns = {
4413
- narrow: /^[1234]/i,
4414
- abbreviated: /^q[1234]/i,
4415
- wide: /^[1234](th|st|nd|rd)? quarter/i
4416
- };
4417
- var parseQuarterPatterns = {
4418
- any: [/1/i, /2/i, /3/i, /4/i]
4419
- };
4420
- var matchMonthPatterns = {
4421
- narrow: /^[jfmasond]/i,
4422
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
4423
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
4424
- };
4425
- var parseMonthPatterns = {
4426
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
4427
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
4428
- };
4429
- var matchDayPatterns = {
4430
- narrow: /^[smtwf]/i,
4431
- short: /^(su|mo|tu|we|th|fr|sa)/i,
4432
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
4433
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
4434
- };
4435
- var parseDayPatterns = {
4436
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
4437
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
4438
- };
4439
- var matchDayPeriodPatterns = {
4440
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
4441
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
4442
- };
4443
- var parseDayPeriodPatterns = {
4444
- any: {
4445
- am: /^a/i,
4446
- pm: /^p/i,
4447
- midnight: /^mi/i,
4448
- noon: /^no/i,
4449
- morning: /morning/i,
4450
- afternoon: /afternoon/i,
4451
- evening: /evening/i,
4452
- night: /night/i
4453
- }
4454
- };
4455
- var match = {
4456
- ordinalNumber: buildMatchPatternFn({
4457
- matchPattern: matchOrdinalNumberPattern,
4458
- parsePattern: parseOrdinalNumberPattern,
4459
- valueCallback: function(value) {
4460
- return parseInt(value, 10);
4461
- }
4462
- }),
4463
- era: buildMatchFn({
4464
- matchPatterns: matchEraPatterns,
4465
- defaultMatchWidth: "wide",
4466
- parsePatterns: parseEraPatterns,
4467
- defaultParseWidth: "any"
4468
- }),
4469
- quarter: buildMatchFn({
4470
- matchPatterns: matchQuarterPatterns,
4471
- defaultMatchWidth: "wide",
4472
- parsePatterns: parseQuarterPatterns,
4473
- defaultParseWidth: "any",
4474
- valueCallback: function(index) {
4475
- return index + 1;
4476
- }
4477
- }),
4478
- month: buildMatchFn({
4479
- matchPatterns: matchMonthPatterns,
4480
- defaultMatchWidth: "wide",
4481
- parsePatterns: parseMonthPatterns,
4482
- defaultParseWidth: "any"
4483
- }),
4484
- day: buildMatchFn({
4485
- matchPatterns: matchDayPatterns,
4486
- defaultMatchWidth: "wide",
4487
- parsePatterns: parseDayPatterns,
4488
- defaultParseWidth: "any"
4489
- }),
4490
- dayPeriod: buildMatchFn({
4491
- matchPatterns: matchDayPeriodPatterns,
4492
- defaultMatchWidth: "any",
4493
- parsePatterns: parseDayPeriodPatterns,
4494
- defaultParseWidth: "any"
4495
- })
4496
- };
4497
- var match_default = match;
4498
-
4499
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/index.js
4500
- var locale = {
4501
- code: "en-US",
4502
- formatDistance: formatDistance_default,
4503
- formatLong: formatLong_default,
4504
- formatRelative: formatRelative_default,
4505
- localize: localize_default,
4506
- match: match_default,
4507
- options: {
4508
- weekStartsOn: 0,
4509
- firstWeekContainsDate: 1
4510
- }
4511
- };
4512
- var en_US_default = locale;
4513
-
4514
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/subMilliseconds/index.js
4515
- function subMilliseconds(dirtyDate, dirtyAmount) {
4516
- requiredArgs(2, arguments);
4517
- var amount = toInteger(dirtyAmount);
4518
- return addMilliseconds(dirtyDate, -amount);
4519
- }
4520
- __name(subMilliseconds, "subMilliseconds");
4521
-
4522
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
4523
- var MILLISECONDS_IN_DAY = 864e5;
4524
- function getUTCDayOfYear(dirtyDate) {
4525
- requiredArgs(1, arguments);
4526
- var date = toDate(dirtyDate);
4527
- var timestamp = date.getTime();
4528
- date.setUTCMonth(0, 1);
4529
- date.setUTCHours(0, 0, 0, 0);
4530
- var startOfYearTimestamp = date.getTime();
4531
- var difference = timestamp - startOfYearTimestamp;
4532
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
4533
- }
4534
- __name(getUTCDayOfYear, "getUTCDayOfYear");
4535
-
4536
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
4537
- function startOfUTCISOWeek(dirtyDate) {
4538
- requiredArgs(1, arguments);
4539
- var weekStartsOn = 1;
4540
- var date = toDate(dirtyDate);
4541
- var day = date.getUTCDay();
4542
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4543
- date.setUTCDate(date.getUTCDate() - diff);
4544
- date.setUTCHours(0, 0, 0, 0);
4545
- return date;
4546
- }
4547
- __name(startOfUTCISOWeek, "startOfUTCISOWeek");
4548
-
4549
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
4550
- function getUTCISOWeekYear(dirtyDate) {
4551
- requiredArgs(1, arguments);
4552
- var date = toDate(dirtyDate);
4553
- var year = date.getUTCFullYear();
4554
- var fourthOfJanuaryOfNextYear = new Date(0);
4555
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
4556
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
4557
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
4558
- var fourthOfJanuaryOfThisYear = new Date(0);
4559
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
4560
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
4561
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
4562
- if (date.getTime() >= startOfNextYear.getTime()) {
4563
- return year + 1;
4564
- } else if (date.getTime() >= startOfThisYear.getTime()) {
4565
- return year;
4566
- } else {
4567
- return year - 1;
4568
- }
4569
- }
4570
- __name(getUTCISOWeekYear, "getUTCISOWeekYear");
4571
-
4572
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
4573
- function startOfUTCISOWeekYear(dirtyDate) {
4574
- requiredArgs(1, arguments);
4575
- var year = getUTCISOWeekYear(dirtyDate);
4576
- var fourthOfJanuary = new Date(0);
4577
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
4578
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
4579
- var date = startOfUTCISOWeek(fourthOfJanuary);
4580
- return date;
4581
- }
4582
- __name(startOfUTCISOWeekYear, "startOfUTCISOWeekYear");
4583
-
4584
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
4585
- var MILLISECONDS_IN_WEEK = 6048e5;
4586
- function getUTCISOWeek(dirtyDate) {
4587
- requiredArgs(1, arguments);
4588
- var date = toDate(dirtyDate);
4589
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
4590
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
4591
- }
4592
- __name(getUTCISOWeek, "getUTCISOWeek");
4593
-
4594
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
4595
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
4596
- requiredArgs(1, arguments);
4597
- var options = dirtyOptions || {};
4598
- var locale2 = options.locale;
4599
- var localeWeekStartsOn = locale2 && locale2.options && locale2.options.weekStartsOn;
4600
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
4601
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn);
4602
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
4603
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4604
- }
4605
- var date = toDate(dirtyDate);
4606
- var day = date.getUTCDay();
4607
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4608
- date.setUTCDate(date.getUTCDate() - diff);
4609
- date.setUTCHours(0, 0, 0, 0);
4610
- return date;
4611
- }
4612
- __name(startOfUTCWeek, "startOfUTCWeek");
4613
-
4614
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
4615
- function getUTCWeekYear(dirtyDate, dirtyOptions) {
4616
- requiredArgs(1, arguments);
4617
- var date = toDate(dirtyDate);
4618
- var year = date.getUTCFullYear();
4619
- var options = dirtyOptions || {};
4620
- var locale2 = options.locale;
4621
- var localeFirstWeekContainsDate = locale2 && locale2.options && locale2.options.firstWeekContainsDate;
4622
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
4623
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
4624
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
4625
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4626
- }
4627
- var firstWeekOfNextYear = new Date(0);
4628
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
4629
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
4630
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
4631
- var firstWeekOfThisYear = new Date(0);
4632
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
4633
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
4634
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
4635
- if (date.getTime() >= startOfNextYear.getTime()) {
4636
- return year + 1;
4637
- } else if (date.getTime() >= startOfThisYear.getTime()) {
4638
- return year;
4639
- } else {
4640
- return year - 1;
4641
- }
4642
- }
4643
- __name(getUTCWeekYear, "getUTCWeekYear");
4644
-
4645
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
4646
- function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
4647
- requiredArgs(1, arguments);
4648
- var options = dirtyOptions || {};
4649
- var locale2 = options.locale;
4650
- var localeFirstWeekContainsDate = locale2 && locale2.options && locale2.options.firstWeekContainsDate;
4651
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
4652
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
4653
- var year = getUTCWeekYear(dirtyDate, dirtyOptions);
4654
- var firstWeek = new Date(0);
4655
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
4656
- firstWeek.setUTCHours(0, 0, 0, 0);
4657
- var date = startOfUTCWeek(firstWeek, dirtyOptions);
4658
- return date;
4659
- }
4660
- __name(startOfUTCWeekYear, "startOfUTCWeekYear");
4661
-
4662
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCWeek/index.js
4663
- var MILLISECONDS_IN_WEEK2 = 6048e5;
4664
- function getUTCWeek(dirtyDate, options) {
4665
- requiredArgs(1, arguments);
4666
- var date = toDate(dirtyDate);
4667
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
4668
- return Math.round(diff / MILLISECONDS_IN_WEEK2) + 1;
4669
- }
4670
- __name(getUTCWeek, "getUTCWeek");
4671
-
4672
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
4673
- function addLeadingZeros(number, targetLength) {
4674
- var sign = number < 0 ? "-" : "";
4675
- var output = Math.abs(number).toString();
4676
- while (output.length < targetLength) {
4677
- output = "0" + output;
4678
- }
4679
- return sign + output;
4680
- }
4681
- __name(addLeadingZeros, "addLeadingZeros");
4682
-
4683
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
4684
- var formatters = {
4685
- y: function(date, token) {
4686
- var signedYear = date.getUTCFullYear();
4687
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
4688
- return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
4689
- },
4690
- M: function(date, token) {
4691
- var month = date.getUTCMonth();
4692
- return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
4693
- },
4694
- d: function(date, token) {
4695
- return addLeadingZeros(date.getUTCDate(), token.length);
4696
- },
4697
- a: function(date, token) {
4698
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am";
4699
- switch (token) {
4700
- case "a":
4701
- case "aa":
4702
- return dayPeriodEnumValue.toUpperCase();
4703
- case "aaa":
4704
- return dayPeriodEnumValue;
4705
- case "aaaaa":
4706
- return dayPeriodEnumValue[0];
4707
- case "aaaa":
4708
- default:
4709
- return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
4710
- }
4711
- },
4712
- h: function(date, token) {
4713
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
4714
- },
4715
- H: function(date, token) {
4716
- return addLeadingZeros(date.getUTCHours(), token.length);
4717
- },
4718
- m: function(date, token) {
4719
- return addLeadingZeros(date.getUTCMinutes(), token.length);
4720
- },
4721
- s: function(date, token) {
4722
- return addLeadingZeros(date.getUTCSeconds(), token.length);
4723
- },
4724
- S: function(date, token) {
4725
- var numberOfDigits = token.length;
4726
- var milliseconds = date.getUTCMilliseconds();
4727
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
4728
- return addLeadingZeros(fractionalSeconds, token.length);
4729
- }
4238
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
4239
+ var formatters = {
4240
+ y: /* @__PURE__ */ __name(function y(date, token) {
4241
+ var signedYear = date.getUTCFullYear();
4242
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
4243
+ return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
4244
+ }, "y"),
4245
+ M: /* @__PURE__ */ __name(function M(date, token) {
4246
+ var month = date.getUTCMonth();
4247
+ return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
4248
+ }, "M"),
4249
+ d: /* @__PURE__ */ __name(function d(date, token) {
4250
+ return addLeadingZeros(date.getUTCDate(), token.length);
4251
+ }, "d"),
4252
+ a: /* @__PURE__ */ __name(function a(date, token) {
4253
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am";
4254
+ switch (token) {
4255
+ case "a":
4256
+ case "aa":
4257
+ return dayPeriodEnumValue.toUpperCase();
4258
+ case "aaa":
4259
+ return dayPeriodEnumValue;
4260
+ case "aaaaa":
4261
+ return dayPeriodEnumValue[0];
4262
+ case "aaaa":
4263
+ default:
4264
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
4265
+ }
4266
+ }, "a"),
4267
+ h: /* @__PURE__ */ __name(function h(date, token) {
4268
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
4269
+ }, "h"),
4270
+ H: /* @__PURE__ */ __name(function H(date, token) {
4271
+ return addLeadingZeros(date.getUTCHours(), token.length);
4272
+ }, "H"),
4273
+ m: /* @__PURE__ */ __name(function m(date, token) {
4274
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
4275
+ }, "m"),
4276
+ s: /* @__PURE__ */ __name(function s(date, token) {
4277
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
4278
+ }, "s"),
4279
+ S: /* @__PURE__ */ __name(function S(date, token) {
4280
+ var numberOfDigits = token.length;
4281
+ var milliseconds = date.getUTCMilliseconds();
4282
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
4283
+ return addLeadingZeros(fractionalSeconds, token.length);
4284
+ }, "S")
4730
4285
  };
4731
4286
  var lightFormatters_default = formatters;
4732
4287
 
4733
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/formatters/index.js
4288
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/formatters/index.js
4734
4289
  var dayPeriodEnum = {
4735
4290
  am: "am",
4736
4291
  pm: "pm",
@@ -4742,7 +4297,7 @@ var dayPeriodEnum = {
4742
4297
  night: "night"
4743
4298
  };
4744
4299
  var formatters2 = {
4745
- G: function(date, token, localize2) {
4300
+ G: /* @__PURE__ */ __name(function G(date, token, localize2) {
4746
4301
  var era = date.getUTCFullYear() > 0 ? 1 : 0;
4747
4302
  switch (token) {
4748
4303
  case "G":
@@ -4761,8 +4316,8 @@ var formatters2 = {
4761
4316
  width: "wide"
4762
4317
  });
4763
4318
  }
4764
- },
4765
- y: function(date, token, localize2) {
4319
+ }, "G"),
4320
+ y: /* @__PURE__ */ __name(function y2(date, token, localize2) {
4766
4321
  if (token === "yo") {
4767
4322
  var signedYear = date.getUTCFullYear();
4768
4323
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
@@ -4771,8 +4326,8 @@ var formatters2 = {
4771
4326
  });
4772
4327
  }
4773
4328
  return lightFormatters_default.y(date, token);
4774
- },
4775
- Y: function(date, token, localize2, options) {
4329
+ }, "y"),
4330
+ Y: /* @__PURE__ */ __name(function Y(date, token, localize2, options) {
4776
4331
  var signedWeekYear = getUTCWeekYear(date, options);
4777
4332
  var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
4778
4333
  if (token === "YY") {
@@ -4785,16 +4340,16 @@ var formatters2 = {
4785
4340
  });
4786
4341
  }
4787
4342
  return addLeadingZeros(weekYear, token.length);
4788
- },
4789
- R: function(date, token) {
4343
+ }, "Y"),
4344
+ R: /* @__PURE__ */ __name(function R(date, token) {
4790
4345
  var isoWeekYear = getUTCISOWeekYear(date);
4791
4346
  return addLeadingZeros(isoWeekYear, token.length);
4792
- },
4793
- u: function(date, token) {
4347
+ }, "R"),
4348
+ u: /* @__PURE__ */ __name(function u(date, token) {
4794
4349
  var year = date.getUTCFullYear();
4795
4350
  return addLeadingZeros(year, token.length);
4796
- },
4797
- Q: function(date, token, localize2) {
4351
+ }, "u"),
4352
+ Q: /* @__PURE__ */ __name(function Q(date, token, localize2) {
4798
4353
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
4799
4354
  switch (token) {
4800
4355
  case "Q":
@@ -4822,8 +4377,8 @@ var formatters2 = {
4822
4377
  context: "formatting"
4823
4378
  });
4824
4379
  }
4825
- },
4826
- q: function(date, token, localize2) {
4380
+ }, "Q"),
4381
+ q: /* @__PURE__ */ __name(function q(date, token, localize2) {
4827
4382
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
4828
4383
  switch (token) {
4829
4384
  case "q":
@@ -4851,8 +4406,8 @@ var formatters2 = {
4851
4406
  context: "standalone"
4852
4407
  });
4853
4408
  }
4854
- },
4855
- M: function(date, token, localize2) {
4409
+ }, "q"),
4410
+ M: /* @__PURE__ */ __name(function M2(date, token, localize2) {
4856
4411
  var month = date.getUTCMonth();
4857
4412
  switch (token) {
4858
4413
  case "M":
@@ -4879,8 +4434,8 @@ var formatters2 = {
4879
4434
  context: "formatting"
4880
4435
  });
4881
4436
  }
4882
- },
4883
- L: function(date, token, localize2) {
4437
+ }, "M"),
4438
+ L: /* @__PURE__ */ __name(function L(date, token, localize2) {
4884
4439
  var month = date.getUTCMonth();
4885
4440
  switch (token) {
4886
4441
  case "L":
@@ -4908,8 +4463,8 @@ var formatters2 = {
4908
4463
  context: "standalone"
4909
4464
  });
4910
4465
  }
4911
- },
4912
- w: function(date, token, localize2, options) {
4466
+ }, "L"),
4467
+ w: /* @__PURE__ */ __name(function w(date, token, localize2, options) {
4913
4468
  var week = getUTCWeek(date, options);
4914
4469
  if (token === "wo") {
4915
4470
  return localize2.ordinalNumber(week, {
@@ -4917,8 +4472,8 @@ var formatters2 = {
4917
4472
  });
4918
4473
  }
4919
4474
  return addLeadingZeros(week, token.length);
4920
- },
4921
- I: function(date, token, localize2) {
4475
+ }, "w"),
4476
+ I: /* @__PURE__ */ __name(function I(date, token, localize2) {
4922
4477
  var isoWeek = getUTCISOWeek(date);
4923
4478
  if (token === "Io") {
4924
4479
  return localize2.ordinalNumber(isoWeek, {
@@ -4926,16 +4481,16 @@ var formatters2 = {
4926
4481
  });
4927
4482
  }
4928
4483
  return addLeadingZeros(isoWeek, token.length);
4929
- },
4930
- d: function(date, token, localize2) {
4484
+ }, "I"),
4485
+ d: /* @__PURE__ */ __name(function d2(date, token, localize2) {
4931
4486
  if (token === "do") {
4932
4487
  return localize2.ordinalNumber(date.getUTCDate(), {
4933
4488
  unit: "date"
4934
4489
  });
4935
4490
  }
4936
4491
  return lightFormatters_default.d(date, token);
4937
- },
4938
- D: function(date, token, localize2) {
4492
+ }, "d"),
4493
+ D: /* @__PURE__ */ __name(function D(date, token, localize2) {
4939
4494
  var dayOfYear = getUTCDayOfYear(date);
4940
4495
  if (token === "Do") {
4941
4496
  return localize2.ordinalNumber(dayOfYear, {
@@ -4943,8 +4498,8 @@ var formatters2 = {
4943
4498
  });
4944
4499
  }
4945
4500
  return addLeadingZeros(dayOfYear, token.length);
4946
- },
4947
- E: function(date, token, localize2) {
4501
+ }, "D"),
4502
+ E: /* @__PURE__ */ __name(function E(date, token, localize2) {
4948
4503
  var dayOfWeek = date.getUTCDay();
4949
4504
  switch (token) {
4950
4505
  case "E":
@@ -4971,8 +4526,8 @@ var formatters2 = {
4971
4526
  context: "formatting"
4972
4527
  });
4973
4528
  }
4974
- },
4975
- e: function(date, token, localize2, options) {
4529
+ }, "E"),
4530
+ e: /* @__PURE__ */ __name(function e(date, token, localize2, options) {
4976
4531
  var dayOfWeek = date.getUTCDay();
4977
4532
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
4978
4533
  switch (token) {
@@ -5006,8 +4561,8 @@ var formatters2 = {
5006
4561
  context: "formatting"
5007
4562
  });
5008
4563
  }
5009
- },
5010
- c: function(date, token, localize2, options) {
4564
+ }, "e"),
4565
+ c: /* @__PURE__ */ __name(function c(date, token, localize2, options) {
5011
4566
  var dayOfWeek = date.getUTCDay();
5012
4567
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
5013
4568
  switch (token) {
@@ -5041,8 +4596,8 @@ var formatters2 = {
5041
4596
  context: "standalone"
5042
4597
  });
5043
4598
  }
5044
- },
5045
- i: function(date, token, localize2) {
4599
+ }, "c"),
4600
+ i: /* @__PURE__ */ __name(function i(date, token, localize2) {
5046
4601
  var dayOfWeek = date.getUTCDay();
5047
4602
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
5048
4603
  switch (token) {
@@ -5076,8 +4631,8 @@ var formatters2 = {
5076
4631
  context: "formatting"
5077
4632
  });
5078
4633
  }
5079
- },
5080
- a: function(date, token, localize2) {
4634
+ }, "i"),
4635
+ a: /* @__PURE__ */ __name(function a2(date, token, localize2) {
5081
4636
  var hours = date.getUTCHours();
5082
4637
  var dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
5083
4638
  switch (token) {
@@ -5104,8 +4659,8 @@ var formatters2 = {
5104
4659
  context: "formatting"
5105
4660
  });
5106
4661
  }
5107
- },
5108
- b: function(date, token, localize2) {
4662
+ }, "a"),
4663
+ b: /* @__PURE__ */ __name(function b(date, token, localize2) {
5109
4664
  var hours = date.getUTCHours();
5110
4665
  var dayPeriodEnumValue;
5111
4666
  if (hours === 12) {
@@ -5139,8 +4694,8 @@ var formatters2 = {
5139
4694
  context: "formatting"
5140
4695
  });
5141
4696
  }
5142
- },
5143
- B: function(date, token, localize2) {
4697
+ }, "b"),
4698
+ B: /* @__PURE__ */ __name(function B(date, token, localize2) {
5144
4699
  var hours = date.getUTCHours();
5145
4700
  var dayPeriodEnumValue;
5146
4701
  if (hours >= 17) {
@@ -5172,8 +4727,8 @@ var formatters2 = {
5172
4727
  context: "formatting"
5173
4728
  });
5174
4729
  }
5175
- },
5176
- h: function(date, token, localize2) {
4730
+ }, "B"),
4731
+ h: /* @__PURE__ */ __name(function h2(date, token, localize2) {
5177
4732
  if (token === "ho") {
5178
4733
  var hours = date.getUTCHours() % 12;
5179
4734
  if (hours === 0)
@@ -5183,16 +4738,16 @@ var formatters2 = {
5183
4738
  });
5184
4739
  }
5185
4740
  return lightFormatters_default.h(date, token);
5186
- },
5187
- H: function(date, token, localize2) {
4741
+ }, "h"),
4742
+ H: /* @__PURE__ */ __name(function H2(date, token, localize2) {
5188
4743
  if (token === "Ho") {
5189
4744
  return localize2.ordinalNumber(date.getUTCHours(), {
5190
4745
  unit: "hour"
5191
4746
  });
5192
4747
  }
5193
4748
  return lightFormatters_default.H(date, token);
5194
- },
5195
- K: function(date, token, localize2) {
4749
+ }, "H"),
4750
+ K: /* @__PURE__ */ __name(function K(date, token, localize2) {
5196
4751
  var hours = date.getUTCHours() % 12;
5197
4752
  if (token === "Ko") {
5198
4753
  return localize2.ordinalNumber(hours, {
@@ -5200,8 +4755,8 @@ var formatters2 = {
5200
4755
  });
5201
4756
  }
5202
4757
  return addLeadingZeros(hours, token.length);
5203
- },
5204
- k: function(date, token, localize2) {
4758
+ }, "K"),
4759
+ k: /* @__PURE__ */ __name(function k(date, token, localize2) {
5205
4760
  var hours = date.getUTCHours();
5206
4761
  if (hours === 0)
5207
4762
  hours = 24;
@@ -5211,27 +4766,27 @@ var formatters2 = {
5211
4766
  });
5212
4767
  }
5213
4768
  return addLeadingZeros(hours, token.length);
5214
- },
5215
- m: function(date, token, localize2) {
4769
+ }, "k"),
4770
+ m: /* @__PURE__ */ __name(function m2(date, token, localize2) {
5216
4771
  if (token === "mo") {
5217
4772
  return localize2.ordinalNumber(date.getUTCMinutes(), {
5218
4773
  unit: "minute"
5219
4774
  });
5220
4775
  }
5221
4776
  return lightFormatters_default.m(date, token);
5222
- },
5223
- s: function(date, token, localize2) {
4777
+ }, "m"),
4778
+ s: /* @__PURE__ */ __name(function s2(date, token, localize2) {
5224
4779
  if (token === "so") {
5225
4780
  return localize2.ordinalNumber(date.getUTCSeconds(), {
5226
4781
  unit: "second"
5227
4782
  });
5228
4783
  }
5229
4784
  return lightFormatters_default.s(date, token);
5230
- },
5231
- S: function(date, token) {
4785
+ }, "s"),
4786
+ S: /* @__PURE__ */ __name(function S2(date, token) {
5232
4787
  return lightFormatters_default.S(date, token);
5233
- },
5234
- X: function(date, token, _localize, options) {
4788
+ }, "S"),
4789
+ X: /* @__PURE__ */ __name(function X(date, token, _localize, options) {
5235
4790
  var originalDate = options._originalDate || date;
5236
4791
  var timezoneOffset = originalDate.getTimezoneOffset();
5237
4792
  if (timezoneOffset === 0) {
@@ -5248,8 +4803,8 @@ var formatters2 = {
5248
4803
  default:
5249
4804
  return formatTimezone(timezoneOffset, ":");
5250
4805
  }
5251
- },
5252
- x: function(date, token, _localize, options) {
4806
+ }, "X"),
4807
+ x: /* @__PURE__ */ __name(function x(date, token, _localize, options) {
5253
4808
  var originalDate = options._originalDate || date;
5254
4809
  var timezoneOffset = originalDate.getTimezoneOffset();
5255
4810
  switch (token) {
@@ -5263,204 +4818,679 @@ var formatters2 = {
5263
4818
  default:
5264
4819
  return formatTimezone(timezoneOffset, ":");
5265
4820
  }
5266
- },
5267
- O: function(date, token, _localize, options) {
5268
- var originalDate = options._originalDate || date;
5269
- var timezoneOffset = originalDate.getTimezoneOffset();
5270
- switch (token) {
5271
- case "O":
5272
- case "OO":
5273
- case "OOO":
5274
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
5275
- case "OOOO":
5276
- default:
5277
- return "GMT" + formatTimezone(timezoneOffset, ":");
4821
+ }, "x"),
4822
+ O: /* @__PURE__ */ __name(function O(date, token, _localize, options) {
4823
+ var originalDate = options._originalDate || date;
4824
+ var timezoneOffset = originalDate.getTimezoneOffset();
4825
+ switch (token) {
4826
+ case "O":
4827
+ case "OO":
4828
+ case "OOO":
4829
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
4830
+ case "OOOO":
4831
+ default:
4832
+ return "GMT" + formatTimezone(timezoneOffset, ":");
4833
+ }
4834
+ }, "O"),
4835
+ z: /* @__PURE__ */ __name(function z(date, token, _localize, options) {
4836
+ var originalDate = options._originalDate || date;
4837
+ var timezoneOffset = originalDate.getTimezoneOffset();
4838
+ switch (token) {
4839
+ case "z":
4840
+ case "zz":
4841
+ case "zzz":
4842
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
4843
+ case "zzzz":
4844
+ default:
4845
+ return "GMT" + formatTimezone(timezoneOffset, ":");
4846
+ }
4847
+ }, "z"),
4848
+ t: /* @__PURE__ */ __name(function t(date, token, _localize, options) {
4849
+ var originalDate = options._originalDate || date;
4850
+ var timestamp = Math.floor(originalDate.getTime() / 1e3);
4851
+ return addLeadingZeros(timestamp, token.length);
4852
+ }, "t"),
4853
+ T: /* @__PURE__ */ __name(function T(date, token, _localize, options) {
4854
+ var originalDate = options._originalDate || date;
4855
+ var timestamp = originalDate.getTime();
4856
+ return addLeadingZeros(timestamp, token.length);
4857
+ }, "T")
4858
+ };
4859
+ function formatTimezoneShort(offset, dirtyDelimiter) {
4860
+ var sign = offset > 0 ? "-" : "+";
4861
+ var absOffset = Math.abs(offset);
4862
+ var hours = Math.floor(absOffset / 60);
4863
+ var minutes = absOffset % 60;
4864
+ if (minutes === 0) {
4865
+ return sign + String(hours);
4866
+ }
4867
+ var delimiter = dirtyDelimiter || "";
4868
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
4869
+ }
4870
+ __name(formatTimezoneShort, "formatTimezoneShort");
4871
+ function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
4872
+ if (offset % 60 === 0) {
4873
+ var sign = offset > 0 ? "-" : "+";
4874
+ return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
4875
+ }
4876
+ return formatTimezone(offset, dirtyDelimiter);
4877
+ }
4878
+ __name(formatTimezoneWithOptionalMinutes, "formatTimezoneWithOptionalMinutes");
4879
+ function formatTimezone(offset, dirtyDelimiter) {
4880
+ var delimiter = dirtyDelimiter || "";
4881
+ var sign = offset > 0 ? "-" : "+";
4882
+ var absOffset = Math.abs(offset);
4883
+ var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
4884
+ var minutes = addLeadingZeros(absOffset % 60, 2);
4885
+ return sign + hours + delimiter + minutes;
4886
+ }
4887
+ __name(formatTimezone, "formatTimezone");
4888
+ var formatters_default = formatters2;
4889
+
4890
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/longFormatters/index.js
4891
+ var dateLongFormatter = /* @__PURE__ */ __name(function dateLongFormatter2(pattern, formatLong2) {
4892
+ switch (pattern) {
4893
+ case "P":
4894
+ return formatLong2.date({
4895
+ width: "short"
4896
+ });
4897
+ case "PP":
4898
+ return formatLong2.date({
4899
+ width: "medium"
4900
+ });
4901
+ case "PPP":
4902
+ return formatLong2.date({
4903
+ width: "long"
4904
+ });
4905
+ case "PPPP":
4906
+ default:
4907
+ return formatLong2.date({
4908
+ width: "full"
4909
+ });
4910
+ }
4911
+ }, "dateLongFormatter");
4912
+ var timeLongFormatter = /* @__PURE__ */ __name(function timeLongFormatter2(pattern, formatLong2) {
4913
+ switch (pattern) {
4914
+ case "p":
4915
+ return formatLong2.time({
4916
+ width: "short"
4917
+ });
4918
+ case "pp":
4919
+ return formatLong2.time({
4920
+ width: "medium"
4921
+ });
4922
+ case "ppp":
4923
+ return formatLong2.time({
4924
+ width: "long"
4925
+ });
4926
+ case "pppp":
4927
+ default:
4928
+ return formatLong2.time({
4929
+ width: "full"
4930
+ });
4931
+ }
4932
+ }, "timeLongFormatter");
4933
+ var dateTimeLongFormatter = /* @__PURE__ */ __name(function dateTimeLongFormatter2(pattern, formatLong2) {
4934
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
4935
+ var datePattern = matchResult[1];
4936
+ var timePattern = matchResult[2];
4937
+ if (!timePattern) {
4938
+ return dateLongFormatter(pattern, formatLong2);
4939
+ }
4940
+ var dateTimeFormat;
4941
+ switch (datePattern) {
4942
+ case "P":
4943
+ dateTimeFormat = formatLong2.dateTime({
4944
+ width: "short"
4945
+ });
4946
+ break;
4947
+ case "PP":
4948
+ dateTimeFormat = formatLong2.dateTime({
4949
+ width: "medium"
4950
+ });
4951
+ break;
4952
+ case "PPP":
4953
+ dateTimeFormat = formatLong2.dateTime({
4954
+ width: "long"
4955
+ });
4956
+ break;
4957
+ case "PPPP":
4958
+ default:
4959
+ dateTimeFormat = formatLong2.dateTime({
4960
+ width: "full"
4961
+ });
4962
+ break;
4963
+ }
4964
+ return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
4965
+ }, "dateTimeLongFormatter");
4966
+ var longFormatters = {
4967
+ p: timeLongFormatter,
4968
+ P: dateTimeLongFormatter
4969
+ };
4970
+ var longFormatters_default = longFormatters;
4971
+
4972
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/protectedTokens/index.js
4973
+ var protectedDayOfYearTokens = ["D", "DD"];
4974
+ var protectedWeekYearTokens = ["YY", "YYYY"];
4975
+ function isProtectedDayOfYearToken(token) {
4976
+ return protectedDayOfYearTokens.indexOf(token) !== -1;
4977
+ }
4978
+ __name(isProtectedDayOfYearToken, "isProtectedDayOfYearToken");
4979
+ function isProtectedWeekYearToken(token) {
4980
+ return protectedWeekYearTokens.indexOf(token) !== -1;
4981
+ }
4982
+ __name(isProtectedWeekYearToken, "isProtectedWeekYearToken");
4983
+ function throwProtectedError(token, format2, input) {
4984
+ if (token === "YYYY") {
4985
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4986
+ } else if (token === "YY") {
4987
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4988
+ } else if (token === "D") {
4989
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4990
+ } else if (token === "DD") {
4991
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4992
+ }
4993
+ }
4994
+ __name(throwProtectedError, "throwProtectedError");
4995
+
4996
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
4997
+ var formatDistanceLocale = {
4998
+ lessThanXSeconds: {
4999
+ one: "less than a second",
5000
+ other: "less than {{count}} seconds"
5001
+ },
5002
+ xSeconds: {
5003
+ one: "1 second",
5004
+ other: "{{count}} seconds"
5005
+ },
5006
+ halfAMinute: "half a minute",
5007
+ lessThanXMinutes: {
5008
+ one: "less than a minute",
5009
+ other: "less than {{count}} minutes"
5010
+ },
5011
+ xMinutes: {
5012
+ one: "1 minute",
5013
+ other: "{{count}} minutes"
5014
+ },
5015
+ aboutXHours: {
5016
+ one: "about 1 hour",
5017
+ other: "about {{count}} hours"
5018
+ },
5019
+ xHours: {
5020
+ one: "1 hour",
5021
+ other: "{{count}} hours"
5022
+ },
5023
+ xDays: {
5024
+ one: "1 day",
5025
+ other: "{{count}} days"
5026
+ },
5027
+ aboutXWeeks: {
5028
+ one: "about 1 week",
5029
+ other: "about {{count}} weeks"
5030
+ },
5031
+ xWeeks: {
5032
+ one: "1 week",
5033
+ other: "{{count}} weeks"
5034
+ },
5035
+ aboutXMonths: {
5036
+ one: "about 1 month",
5037
+ other: "about {{count}} months"
5038
+ },
5039
+ xMonths: {
5040
+ one: "1 month",
5041
+ other: "{{count}} months"
5042
+ },
5043
+ aboutXYears: {
5044
+ one: "about 1 year",
5045
+ other: "about {{count}} years"
5046
+ },
5047
+ xYears: {
5048
+ one: "1 year",
5049
+ other: "{{count}} years"
5050
+ },
5051
+ overXYears: {
5052
+ one: "over 1 year",
5053
+ other: "over {{count}} years"
5054
+ },
5055
+ almostXYears: {
5056
+ one: "almost 1 year",
5057
+ other: "almost {{count}} years"
5058
+ }
5059
+ };
5060
+ var formatDistance = /* @__PURE__ */ __name(function formatDistance2(token, count, options) {
5061
+ var result;
5062
+ var tokenValue = formatDistanceLocale[token];
5063
+ if (typeof tokenValue === "string") {
5064
+ result = tokenValue;
5065
+ } else if (count === 1) {
5066
+ result = tokenValue.one;
5067
+ } else {
5068
+ result = tokenValue.other.replace("{{count}}", count.toString());
5069
+ }
5070
+ if (options !== null && options !== void 0 && options.addSuffix) {
5071
+ if (options.comparison && options.comparison > 0) {
5072
+ return "in " + result;
5073
+ } else {
5074
+ return result + " ago";
5075
+ }
5076
+ }
5077
+ return result;
5078
+ }, "formatDistance");
5079
+ var formatDistance_default = formatDistance;
5080
+
5081
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
5082
+ function buildFormatLongFn(args) {
5083
+ return function() {
5084
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5085
+ var width = options.width ? String(options.width) : args.defaultWidth;
5086
+ var format2 = args.formats[width] || args.formats[args.defaultWidth];
5087
+ return format2;
5088
+ };
5089
+ }
5090
+ __name(buildFormatLongFn, "buildFormatLongFn");
5091
+
5092
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
5093
+ var dateFormats = {
5094
+ full: "EEEE, MMMM do, y",
5095
+ long: "MMMM do, y",
5096
+ medium: "MMM d, y",
5097
+ short: "MM/dd/yyyy"
5098
+ };
5099
+ var timeFormats = {
5100
+ full: "h:mm:ss a zzzz",
5101
+ long: "h:mm:ss a z",
5102
+ medium: "h:mm:ss a",
5103
+ short: "h:mm a"
5104
+ };
5105
+ var dateTimeFormats = {
5106
+ full: "{{date}} 'at' {{time}}",
5107
+ long: "{{date}} 'at' {{time}}",
5108
+ medium: "{{date}}, {{time}}",
5109
+ short: "{{date}}, {{time}}"
5110
+ };
5111
+ var formatLong = {
5112
+ date: buildFormatLongFn({
5113
+ formats: dateFormats,
5114
+ defaultWidth: "full"
5115
+ }),
5116
+ time: buildFormatLongFn({
5117
+ formats: timeFormats,
5118
+ defaultWidth: "full"
5119
+ }),
5120
+ dateTime: buildFormatLongFn({
5121
+ formats: dateTimeFormats,
5122
+ defaultWidth: "full"
5123
+ })
5124
+ };
5125
+ var formatLong_default = formatLong;
5126
+
5127
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
5128
+ var formatRelativeLocale = {
5129
+ lastWeek: "'last' eeee 'at' p",
5130
+ yesterday: "'yesterday at' p",
5131
+ today: "'today at' p",
5132
+ tomorrow: "'tomorrow at' p",
5133
+ nextWeek: "eeee 'at' p",
5134
+ other: "P"
5135
+ };
5136
+ var formatRelative = /* @__PURE__ */ __name(function formatRelative2(token, _date, _baseDate, _options) {
5137
+ return formatRelativeLocale[token];
5138
+ }, "formatRelative");
5139
+ var formatRelative_default = formatRelative;
5140
+
5141
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
5142
+ function buildLocalizeFn(args) {
5143
+ return function(dirtyIndex, options) {
5144
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
5145
+ var valuesArray;
5146
+ if (context === "formatting" && args.formattingValues) {
5147
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
5148
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
5149
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
5150
+ } else {
5151
+ var _defaultWidth = args.defaultWidth;
5152
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
5153
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
5278
5154
  }
5155
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
5156
+ return valuesArray[index];
5157
+ };
5158
+ }
5159
+ __name(buildLocalizeFn, "buildLocalizeFn");
5160
+
5161
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
5162
+ var eraValues = {
5163
+ narrow: ["B", "A"],
5164
+ abbreviated: ["BC", "AD"],
5165
+ wide: ["Before Christ", "Anno Domini"]
5166
+ };
5167
+ var quarterValues = {
5168
+ narrow: ["1", "2", "3", "4"],
5169
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
5170
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
5171
+ };
5172
+ var monthValues = {
5173
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
5174
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
5175
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
5176
+ };
5177
+ var dayValues = {
5178
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
5179
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
5180
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
5181
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
5182
+ };
5183
+ var dayPeriodValues = {
5184
+ narrow: {
5185
+ am: "a",
5186
+ pm: "p",
5187
+ midnight: "mi",
5188
+ noon: "n",
5189
+ morning: "morning",
5190
+ afternoon: "afternoon",
5191
+ evening: "evening",
5192
+ night: "night"
5279
5193
  },
5280
- z: function(date, token, _localize, options) {
5281
- var originalDate = options._originalDate || date;
5282
- var timezoneOffset = originalDate.getTimezoneOffset();
5283
- switch (token) {
5284
- case "z":
5285
- case "zz":
5286
- case "zzz":
5287
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
5288
- case "zzzz":
5289
- default:
5290
- return "GMT" + formatTimezone(timezoneOffset, ":");
5291
- }
5194
+ abbreviated: {
5195
+ am: "AM",
5196
+ pm: "PM",
5197
+ midnight: "midnight",
5198
+ noon: "noon",
5199
+ morning: "morning",
5200
+ afternoon: "afternoon",
5201
+ evening: "evening",
5202
+ night: "night"
5292
5203
  },
5293
- t: function(date, token, _localize, options) {
5294
- var originalDate = options._originalDate || date;
5295
- var timestamp = Math.floor(originalDate.getTime() / 1e3);
5296
- return addLeadingZeros(timestamp, token.length);
5204
+ wide: {
5205
+ am: "a.m.",
5206
+ pm: "p.m.",
5207
+ midnight: "midnight",
5208
+ noon: "noon",
5209
+ morning: "morning",
5210
+ afternoon: "afternoon",
5211
+ evening: "evening",
5212
+ night: "night"
5213
+ }
5214
+ };
5215
+ var formattingDayPeriodValues = {
5216
+ narrow: {
5217
+ am: "a",
5218
+ pm: "p",
5219
+ midnight: "mi",
5220
+ noon: "n",
5221
+ morning: "in the morning",
5222
+ afternoon: "in the afternoon",
5223
+ evening: "in the evening",
5224
+ night: "at night"
5297
5225
  },
5298
- T: function(date, token, _localize, options) {
5299
- var originalDate = options._originalDate || date;
5300
- var timestamp = originalDate.getTime();
5301
- return addLeadingZeros(timestamp, token.length);
5226
+ abbreviated: {
5227
+ am: "AM",
5228
+ pm: "PM",
5229
+ midnight: "midnight",
5230
+ noon: "noon",
5231
+ morning: "in the morning",
5232
+ afternoon: "in the afternoon",
5233
+ evening: "in the evening",
5234
+ night: "at night"
5235
+ },
5236
+ wide: {
5237
+ am: "a.m.",
5238
+ pm: "p.m.",
5239
+ midnight: "midnight",
5240
+ noon: "noon",
5241
+ morning: "in the morning",
5242
+ afternoon: "in the afternoon",
5243
+ evening: "in the evening",
5244
+ night: "at night"
5302
5245
  }
5303
5246
  };
5304
- function formatTimezoneShort(offset, dirtyDelimiter) {
5305
- var sign = offset > 0 ? "-" : "+";
5306
- var absOffset = Math.abs(offset);
5307
- var hours = Math.floor(absOffset / 60);
5308
- var minutes = absOffset % 60;
5309
- if (minutes === 0) {
5310
- return sign + String(hours);
5247
+ var ordinalNumber = /* @__PURE__ */ __name(function ordinalNumber2(dirtyNumber, _options) {
5248
+ var number = Number(dirtyNumber);
5249
+ var rem100 = number % 100;
5250
+ if (rem100 > 20 || rem100 < 10) {
5251
+ switch (rem100 % 10) {
5252
+ case 1:
5253
+ return number + "st";
5254
+ case 2:
5255
+ return number + "nd";
5256
+ case 3:
5257
+ return number + "rd";
5258
+ }
5311
5259
  }
5312
- var delimiter = dirtyDelimiter || "";
5313
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
5260
+ return number + "th";
5261
+ }, "ordinalNumber");
5262
+ var localize = {
5263
+ ordinalNumber,
5264
+ era: buildLocalizeFn({
5265
+ values: eraValues,
5266
+ defaultWidth: "wide"
5267
+ }),
5268
+ quarter: buildLocalizeFn({
5269
+ values: quarterValues,
5270
+ defaultWidth: "wide",
5271
+ argumentCallback: /* @__PURE__ */ __name(function argumentCallback(quarter) {
5272
+ return quarter - 1;
5273
+ }, "argumentCallback")
5274
+ }),
5275
+ month: buildLocalizeFn({
5276
+ values: monthValues,
5277
+ defaultWidth: "wide"
5278
+ }),
5279
+ day: buildLocalizeFn({
5280
+ values: dayValues,
5281
+ defaultWidth: "wide"
5282
+ }),
5283
+ dayPeriod: buildLocalizeFn({
5284
+ values: dayPeriodValues,
5285
+ defaultWidth: "wide",
5286
+ formattingValues: formattingDayPeriodValues,
5287
+ defaultFormattingWidth: "wide"
5288
+ })
5289
+ };
5290
+ var localize_default = localize;
5291
+
5292
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
5293
+ function buildMatchFn(args) {
5294
+ return function(string) {
5295
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5296
+ var width = options.width;
5297
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
5298
+ var matchResult = string.match(matchPattern);
5299
+ if (!matchResult) {
5300
+ return null;
5301
+ }
5302
+ var matchedString = matchResult[0];
5303
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
5304
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) {
5305
+ return pattern.test(matchedString);
5306
+ }) : findKey(parsePatterns, function(pattern) {
5307
+ return pattern.test(matchedString);
5308
+ });
5309
+ var value;
5310
+ value = args.valueCallback ? args.valueCallback(key) : key;
5311
+ value = options.valueCallback ? options.valueCallback(value) : value;
5312
+ var rest = string.slice(matchedString.length);
5313
+ return {
5314
+ value,
5315
+ rest
5316
+ };
5317
+ };
5314
5318
  }
5315
- __name(formatTimezoneShort, "formatTimezoneShort");
5316
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
5317
- if (offset % 60 === 0) {
5318
- var sign = offset > 0 ? "-" : "+";
5319
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
5319
+ __name(buildMatchFn, "buildMatchFn");
5320
+ function findKey(object, predicate) {
5321
+ for (var key in object) {
5322
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
5323
+ return key;
5324
+ }
5320
5325
  }
5321
- return formatTimezone(offset, dirtyDelimiter);
5322
- }
5323
- __name(formatTimezoneWithOptionalMinutes, "formatTimezoneWithOptionalMinutes");
5324
- function formatTimezone(offset, dirtyDelimiter) {
5325
- var delimiter = dirtyDelimiter || "";
5326
- var sign = offset > 0 ? "-" : "+";
5327
- var absOffset = Math.abs(offset);
5328
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
5329
- var minutes = addLeadingZeros(absOffset % 60, 2);
5330
- return sign + hours + delimiter + minutes;
5326
+ return void 0;
5331
5327
  }
5332
- __name(formatTimezone, "formatTimezone");
5333
- var formatters_default = formatters2;
5334
-
5335
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/longFormatters/index.js
5336
- function dateLongFormatter(pattern, formatLong2) {
5337
- switch (pattern) {
5338
- case "P":
5339
- return formatLong2.date({
5340
- width: "short"
5341
- });
5342
- case "PP":
5343
- return formatLong2.date({
5344
- width: "medium"
5345
- });
5346
- case "PPP":
5347
- return formatLong2.date({
5348
- width: "long"
5349
- });
5350
- case "PPPP":
5351
- default:
5352
- return formatLong2.date({
5353
- width: "full"
5354
- });
5328
+ __name(findKey, "findKey");
5329
+ function findIndex(array, predicate) {
5330
+ for (var key = 0; key < array.length; key++) {
5331
+ if (predicate(array[key])) {
5332
+ return key;
5333
+ }
5355
5334
  }
5335
+ return void 0;
5356
5336
  }
5357
- __name(dateLongFormatter, "dateLongFormatter");
5358
- function timeLongFormatter(pattern, formatLong2) {
5359
- switch (pattern) {
5360
- case "p":
5361
- return formatLong2.time({
5362
- width: "short"
5363
- });
5364
- case "pp":
5365
- return formatLong2.time({
5366
- width: "medium"
5367
- });
5368
- case "ppp":
5369
- return formatLong2.time({
5370
- width: "long"
5371
- });
5372
- case "pppp":
5373
- default:
5374
- return formatLong2.time({
5375
- width: "full"
5376
- });
5377
- }
5337
+ __name(findIndex, "findIndex");
5338
+
5339
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
5340
+ function buildMatchPatternFn(args) {
5341
+ return function(string) {
5342
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5343
+ var matchResult = string.match(args.matchPattern);
5344
+ if (!matchResult)
5345
+ return null;
5346
+ var matchedString = matchResult[0];
5347
+ var parseResult = string.match(args.parsePattern);
5348
+ if (!parseResult)
5349
+ return null;
5350
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
5351
+ value = options.valueCallback ? options.valueCallback(value) : value;
5352
+ var rest = string.slice(matchedString.length);
5353
+ return {
5354
+ value,
5355
+ rest
5356
+ };
5357
+ };
5378
5358
  }
5379
- __name(timeLongFormatter, "timeLongFormatter");
5380
- function dateTimeLongFormatter(pattern, formatLong2) {
5381
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
5382
- var datePattern = matchResult[1];
5383
- var timePattern = matchResult[2];
5384
- if (!timePattern) {
5385
- return dateLongFormatter(pattern, formatLong2);
5386
- }
5387
- var dateTimeFormat;
5388
- switch (datePattern) {
5389
- case "P":
5390
- dateTimeFormat = formatLong2.dateTime({
5391
- width: "short"
5392
- });
5393
- break;
5394
- case "PP":
5395
- dateTimeFormat = formatLong2.dateTime({
5396
- width: "medium"
5397
- });
5398
- break;
5399
- case "PPP":
5400
- dateTimeFormat = formatLong2.dateTime({
5401
- width: "long"
5402
- });
5403
- break;
5404
- case "PPPP":
5405
- default:
5406
- dateTimeFormat = formatLong2.dateTime({
5407
- width: "full"
5408
- });
5409
- break;
5359
+ __name(buildMatchPatternFn, "buildMatchPatternFn");
5360
+
5361
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
5362
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
5363
+ var parseOrdinalNumberPattern = /\d+/i;
5364
+ var matchEraPatterns = {
5365
+ narrow: /^(b|a)/i,
5366
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
5367
+ wide: /^(before christ|before common era|anno domini|common era)/i
5368
+ };
5369
+ var parseEraPatterns = {
5370
+ any: [/^b/i, /^(a|c)/i]
5371
+ };
5372
+ var matchQuarterPatterns = {
5373
+ narrow: /^[1234]/i,
5374
+ abbreviated: /^q[1234]/i,
5375
+ wide: /^[1234](th|st|nd|rd)? quarter/i
5376
+ };
5377
+ var parseQuarterPatterns = {
5378
+ any: [/1/i, /2/i, /3/i, /4/i]
5379
+ };
5380
+ var matchMonthPatterns = {
5381
+ narrow: /^[jfmasond]/i,
5382
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
5383
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
5384
+ };
5385
+ var parseMonthPatterns = {
5386
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
5387
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
5388
+ };
5389
+ var matchDayPatterns = {
5390
+ narrow: /^[smtwf]/i,
5391
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
5392
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
5393
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
5394
+ };
5395
+ var parseDayPatterns = {
5396
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
5397
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
5398
+ };
5399
+ var matchDayPeriodPatterns = {
5400
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
5401
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
5402
+ };
5403
+ var parseDayPeriodPatterns = {
5404
+ any: {
5405
+ am: /^a/i,
5406
+ pm: /^p/i,
5407
+ midnight: /^mi/i,
5408
+ noon: /^no/i,
5409
+ morning: /morning/i,
5410
+ afternoon: /afternoon/i,
5411
+ evening: /evening/i,
5412
+ night: /night/i
5410
5413
  }
5411
- return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
5412
- }
5413
- __name(dateTimeLongFormatter, "dateTimeLongFormatter");
5414
- var longFormatters = {
5415
- p: timeLongFormatter,
5416
- P: dateTimeLongFormatter
5417
5414
  };
5418
- var longFormatters_default = longFormatters;
5415
+ var match = {
5416
+ ordinalNumber: buildMatchPatternFn({
5417
+ matchPattern: matchOrdinalNumberPattern,
5418
+ parsePattern: parseOrdinalNumberPattern,
5419
+ valueCallback: /* @__PURE__ */ __name(function valueCallback(value) {
5420
+ return parseInt(value, 10);
5421
+ }, "valueCallback")
5422
+ }),
5423
+ era: buildMatchFn({
5424
+ matchPatterns: matchEraPatterns,
5425
+ defaultMatchWidth: "wide",
5426
+ parsePatterns: parseEraPatterns,
5427
+ defaultParseWidth: "any"
5428
+ }),
5429
+ quarter: buildMatchFn({
5430
+ matchPatterns: matchQuarterPatterns,
5431
+ defaultMatchWidth: "wide",
5432
+ parsePatterns: parseQuarterPatterns,
5433
+ defaultParseWidth: "any",
5434
+ valueCallback: /* @__PURE__ */ __name(function valueCallback2(index) {
5435
+ return index + 1;
5436
+ }, "valueCallback")
5437
+ }),
5438
+ month: buildMatchFn({
5439
+ matchPatterns: matchMonthPatterns,
5440
+ defaultMatchWidth: "wide",
5441
+ parsePatterns: parseMonthPatterns,
5442
+ defaultParseWidth: "any"
5443
+ }),
5444
+ day: buildMatchFn({
5445
+ matchPatterns: matchDayPatterns,
5446
+ defaultMatchWidth: "wide",
5447
+ parsePatterns: parseDayPatterns,
5448
+ defaultParseWidth: "any"
5449
+ }),
5450
+ dayPeriod: buildMatchFn({
5451
+ matchPatterns: matchDayPeriodPatterns,
5452
+ defaultMatchWidth: "any",
5453
+ parsePatterns: parseDayPeriodPatterns,
5454
+ defaultParseWidth: "any"
5455
+ })
5456
+ };
5457
+ var match_default = match;
5419
5458
 
5420
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/protectedTokens/index.js
5421
- var protectedDayOfYearTokens = ["D", "DD"];
5422
- var protectedWeekYearTokens = ["YY", "YYYY"];
5423
- function isProtectedDayOfYearToken(token) {
5424
- return protectedDayOfYearTokens.indexOf(token) !== -1;
5425
- }
5426
- __name(isProtectedDayOfYearToken, "isProtectedDayOfYearToken");
5427
- function isProtectedWeekYearToken(token) {
5428
- return protectedWeekYearTokens.indexOf(token) !== -1;
5429
- }
5430
- __name(isProtectedWeekYearToken, "isProtectedWeekYearToken");
5431
- function throwProtectedError(token, format2, input) {
5432
- if (token === "YYYY") {
5433
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5434
- } else if (token === "YY") {
5435
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5436
- } else if (token === "D") {
5437
- throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5438
- } else if (token === "DD") {
5439
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5459
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/index.js
5460
+ var locale = {
5461
+ code: "en-US",
5462
+ formatDistance: formatDistance_default,
5463
+ formatLong: formatLong_default,
5464
+ formatRelative: formatRelative_default,
5465
+ localize: localize_default,
5466
+ match: match_default,
5467
+ options: {
5468
+ weekStartsOn: 0,
5469
+ firstWeekContainsDate: 1
5440
5470
  }
5441
- }
5442
- __name(throwProtectedError, "throwProtectedError");
5471
+ };
5472
+ var en_US_default = locale;
5443
5473
 
5444
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/format/index.js
5474
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/defaultLocale/index.js
5475
+ var defaultLocale_default = en_US_default;
5476
+
5477
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/format/index.js
5445
5478
  var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
5446
5479
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
5447
5480
  var escapedStringRegExp = /^'([^]*?)'?$/;
5448
5481
  var doubleQuoteRegExp = /''/g;
5449
5482
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
5450
- function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5483
+ function format(dirtyDate, dirtyFormatStr, options) {
5484
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
5451
5485
  requiredArgs(2, arguments);
5452
5486
  var formatStr = String(dirtyFormatStr);
5453
- var options = dirtyOptions || {};
5454
- var locale2 = options.locale || en_US_default;
5455
- var localeFirstWeekContainsDate = locale2.options && locale2.options.firstWeekContainsDate;
5456
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
5457
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
5487
+ var defaultOptions2 = getDefaultOptions();
5488
+ var locale2 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions2.locale) !== null && _ref !== void 0 ? _ref : defaultLocale_default;
5489
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions2.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
5458
5490
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
5459
5491
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
5460
5492
  }
5461
- var localeWeekStartsOn = locale2.options && locale2.options.weekStartsOn;
5462
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
5463
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn);
5493
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions2.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions2.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
5464
5494
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
5465
5495
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
5466
5496
  }
@@ -5486,7 +5516,7 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5486
5516
  var firstCharacter = substring[0];
5487
5517
  if (firstCharacter === "p" || firstCharacter === "P") {
5488
5518
  var longFormatter = longFormatters_default[firstCharacter];
5489
- return longFormatter(substring, locale2.formatLong, formatterOptions);
5519
+ return longFormatter(substring, locale2.formatLong);
5490
5520
  }
5491
5521
  return substring;
5492
5522
  }).join("").match(formattingTokensRegExp).map(function(substring) {
@@ -5499,11 +5529,11 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5499
5529
  }
5500
5530
  var formatter = formatters_default[firstCharacter];
5501
5531
  if (formatter) {
5502
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
5503
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
5532
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
5533
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
5504
5534
  }
5505
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
5506
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
5535
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
5536
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
5507
5537
  }
5508
5538
  return formatter(utcDate, substring, locale2.localize, formatterOptions);
5509
5539
  }
@@ -5516,7 +5546,11 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5516
5546
  }
5517
5547
  __name(format, "format");
5518
5548
  function cleanEscapedString(input) {
5519
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
5549
+ var matched = input.match(escapedStringRegExp);
5550
+ if (!matched) {
5551
+ return input;
5552
+ }
5553
+ return matched[1].replace(doubleQuoteRegExp, "'");
5520
5554
  }
5521
5555
  __name(cleanEscapedString, "cleanEscapedString");
5522
5556
 
@@ -5527,14 +5561,26 @@ var transformErrorCheck = /* @__PURE__ */ __name((error, _credential) => {
5527
5561
  }, "transformErrorCheck");
5528
5562
  var transformErrorMessage = /* @__PURE__ */ __name((error, credential) => {
5529
5563
  if (error.startsWith("expiration")) {
5530
- return credential.expirationDate ? `Invalid \u2022 Expired ${format(new Date(credential.expirationDate), "dd MMM yyyy").toUpperCase()}` : "Invalid \u2022 Expired";
5564
+ return credential.expirationDate ? `Invalid \u2022 Expired ${format(
5565
+ new Date(credential.expirationDate),
5566
+ "dd MMM yyyy"
5567
+ ).toUpperCase()}` : "Invalid \u2022 Expired";
5531
5568
  }
5532
5569
  return error;
5533
5570
  }, "transformErrorMessage");
5571
+ var transformWarningCheck = /* @__PURE__ */ __name((warning, _credential) => {
5572
+ if (warning.includes("Boost Authenticity"))
5573
+ return "Boost Authenticity";
5574
+ const prefix = warning.split(" warning")[0];
5575
+ return prefix || warning;
5576
+ }, "transformWarningCheck");
5534
5577
  var transformCheckMessage = /* @__PURE__ */ __name((check, credential) => {
5535
5578
  return {
5536
5579
  proof: "Valid",
5537
- expiration: credential.expirationDate ? `Valid \u2022 Expires ${format(new Date(credential.expirationDate), "dd MMM yyyy").toUpperCase()}` : "Valid \u2022 Does Not Expire"
5580
+ expiration: credential.expirationDate ? `Valid \u2022 Expires ${format(
5581
+ new Date(credential.expirationDate),
5582
+ "dd MMM yyyy"
5583
+ ).toUpperCase()}` : "Valid \u2022 Does Not Expire"
5538
5584
  }[check] || check;
5539
5585
  }, "transformCheckMessage");
5540
5586
  var verifyCredential = /* @__PURE__ */ __name((learnCard) => {
@@ -5553,7 +5599,7 @@ var verifyCredential = /* @__PURE__ */ __name((learnCard) => {
5553
5599
  rawVerificationCheck.warnings.forEach((warning) => {
5554
5600
  verificationItems.push({
5555
5601
  status: VerificationStatusEnum.Error,
5556
- check: "hmm",
5602
+ check: transformWarningCheck(warning, credential),
5557
5603
  message: warning
5558
5604
  });
5559
5605
  });