universal-parcel-scraper 0.55.0-main.708 → 0.56.0-main.723

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/data/catalog.json +42 -1
  3. package/data/coverage-summary.json +1 -1
  4. package/data/detection-golden.json +49 -2
  5. package/dist/browser/scraper.js +1048 -1005
  6. package/dist/carriers/chronopost/adapter.js +23 -16
  7. package/dist/carriers/dpd/adapter.d.ts +2 -2
  8. package/dist/carriers/dpd/adapter.js +29 -20
  9. package/dist/carriers/dpd-de/adapter.js +2 -3
  10. package/dist/carriers/dpd-de/app.d.ts +5 -2
  11. package/dist/carriers/dpd-de/app.js +10 -3
  12. package/dist/carriers/dpd-de/carrier.json +1 -1
  13. package/dist/carriers/dpd-de/numbers.json +26 -0
  14. package/dist/carriers/dpd-de/service.d.ts +42 -7
  15. package/dist/carriers/dpd-de/service.js +54 -26
  16. package/dist/carriers/dpd-fr/adapter.js +18 -16
  17. package/dist/carriers/dpd-pl/carrier.json +7 -0
  18. package/dist/carriers/emile/carrier.json +56 -0
  19. package/dist/carriers/emile/numbers.json +94 -0
  20. package/dist/carriers/emile/statuses.json +4 -0
  21. package/dist/carriers/four-px/numbers.json +5 -2
  22. package/dist/carriers/gls-ch/adapter.d.ts +4 -0
  23. package/dist/carriers/gls-ch/adapter.js +8 -3
  24. package/dist/carriers/gls-ch/status.js +2 -2
  25. package/dist/carriers/gls-ch/statuses.json +1 -1
  26. package/dist/carriers/gls-de/adapter.d.ts +4 -0
  27. package/dist/carriers/gls-de/adapter.js +8 -3
  28. package/dist/carriers/gls-de/statuses.json +1 -1
  29. package/dist/carriers/gls-fr/adapter.js +8 -4
  30. package/dist/carriers/la-poste/adapter.js +23 -11
  31. package/dist/carriers/poczta-polska/parser.js +22 -6
  32. package/dist/carriers/swiss-post/adapter.d.ts +1 -1
  33. package/dist/carriers/swiss-post/adapter.js +17 -8
  34. package/dist/carriers/ukrposhta/parser.js +19 -3
  35. package/dist/core/catalog/hints.js +8 -5
  36. package/dist/core/errors/index.d.ts +8 -1
  37. package/dist/core/errors/index.js +7 -0
  38. package/dist/core/runner/networkRetry.d.ts +15 -0
  39. package/dist/core/runner/networkRetry.js +51 -0
  40. package/dist/core/status/language.js +32 -6
  41. package/dist/data/catalog.json +42 -1
  42. package/dist/generated/catalog.d.ts +30 -2
  43. package/dist/generated/catalog.js +45 -2
  44. package/dist/generated/registry.js +1 -0
  45. package/dist/node.d.ts +1 -1
  46. package/dist/providers/parcelsapp/adapter.js +9 -3
  47. package/dist/server/openapi.json +1 -1
  48. package/package.json +1 -1
@@ -50,8 +50,9 @@ var e = {
50
50
  }
51
51
  }, l = class extends t {
52
52
  field;
53
+ carrier;
53
54
  constructor(e, t, n = `${e} tracking requires ${t}`, r) {
54
- super("input_required", e, n, r), this.name = "InputRequiredError", this.field = t;
55
+ super("input_required", e, n, r), this.name = "InputRequiredError", this.field = t, r?.carrier !== void 0 && (this.carrier = r.carrier);
55
56
  }
56
57
  }, u = class extends t {
57
58
  constructor(e, t = `${e} cannot look up this tracking number`, n) {
@@ -83,28 +84,28 @@ var m = class extends t {
83
84
  constructor(e, t, n) {
84
85
  super("transport", e, `${e} is unreachable`, { cause: t }), this.request = n, this.name = "UpstreamNetworkError";
85
86
  }
86
- }, te = 8;
87
- function ne(e) {
87
+ }, h = 8;
88
+ function g(e) {
88
89
  let n = /* @__PURE__ */ new Set(), r = e;
89
- for (let e = 0; e < te && r instanceof Error && !n.has(r); e += 1) {
90
+ for (let e = 0; e < h && r instanceof Error && !n.has(r); e += 1) {
90
91
  if (n.add(r), r instanceof t) return r.kind;
91
92
  r = r.cause;
92
93
  }
93
94
  return null;
94
95
  }
95
- function h(e) {
96
+ function _(e) {
96
97
  let n = /* @__PURE__ */ new Set(), r = e;
97
- for (let e = 0; e < te && r instanceof Error && !n.has(r); e += 1) {
98
+ for (let e = 0; e < h && r instanceof Error && !n.has(r); e += 1) {
98
99
  if (n.add(r), r instanceof t && r.retryAfterMs !== void 0) return r.retryAfterMs;
99
100
  r = r.cause;
100
101
  }
101
102
  }
102
- function re(e) {
103
+ function te(e) {
103
104
  return e instanceof Error && /^(?:Error|[A-Z][A-Za-z0-9_.-]{0,80}(?:Error|Exception))$/.test(e.name.trim()) ? e.name.trim() : e instanceof Error ? "Error" : typeof e;
104
105
  }
105
106
  //#endregion
106
107
  //#region carriers/the-courier-guy/number.ts
107
- function ie(e) {
108
+ function ne(e) {
108
109
  let t = e.replace(/\s/g, "").toUpperCase(), n = /^(DD|LD)-?([A-Z0-9]{6})$/.exec(t);
109
110
  if (n) return `${n[1]}-${n[2]}`;
110
111
  if (!/^[A-Z0-9]{5,40}$/.test(t)) throw new u("The Courier Guy", "The Courier Guy requires a shipment tracking reference");
@@ -112,19 +113,19 @@ function ie(e) {
112
113
  }
113
114
  //#endregion
114
115
  //#region carriers/postlogistics/number.ts
115
- function ae(e) {
116
+ function re(e) {
116
117
  let t = e.trim();
117
118
  return /^\d{11}$/.test(t) ? `${t.slice(0, 8)}-${t.slice(8)}` : t;
118
119
  }
119
120
  //#endregion
120
121
  //#region core/detection/numericChecksums.ts
121
- function oe(e) {
122
+ function ie(e) {
122
123
  return e.length === 10 && /^\d{10}$/.test(e) && Number(e.slice(0, 9)) % 7 === Number(e[9]);
123
124
  }
124
- function se(e) {
125
+ function v(e) {
125
126
  return /^\d{2,15}$/.test(e) && Number(e.slice(0, -1)) % 7 === Number(e.at(-1));
126
127
  }
127
- function ce(e) {
128
+ function ae(e) {
128
129
  if (e.length !== 9 || !/^\d{9}$/.test(e)) return !1;
129
130
  let t = Number(e[8]);
130
131
  if (Number(e.slice(0, 8)) % 7 === t) return !0;
@@ -140,23 +141,23 @@ function ce(e) {
140
141
  ].reduce((t, n, r) => t + Number(e[r]) * n, 0) % 11;
141
142
  return (n === 11 ? 5 : n === 10 ? 0 : n) === t;
142
143
  }
143
- function le(e) {
144
+ function oe(e) {
144
145
  let t = 11 - [...e].reverse().reduce((e, t, n) => e + Number(t) * (2 + n % 6), 0) % 11;
145
146
  return t >= 10 ? 0 : t;
146
147
  }
147
- function ue(e) {
148
- return /^\d{13}$/.test(e) && le(e.slice(0, 12)) === Number(e[12]);
148
+ function se(e) {
149
+ return /^\d{13}$/.test(e) && oe(e.slice(0, 12)) === Number(e[12]);
149
150
  }
150
- function de(e) {
151
+ function ce(e) {
151
152
  return /^\d{2,}$/.test(e) ? (10 - [...e.slice(0, -1)].reverse().reduce((e, t, n) => e + Number(t) * (n % 2 ? 1 : 3), 0) % 10) % 10 === Number(e.at(-1)) : !1;
152
153
  }
153
- function fe(e) {
154
+ function le(e) {
154
155
  return /^\d{2,}$/.test(e) ? [...e].reverse().reduce((e, t, n) => {
155
156
  let r = Number(t) * (n % 2 ? 2 : 1);
156
157
  return e + (r > 9 ? r - 9 : r);
157
158
  }, 0) % 10 == 0 : !1;
158
159
  }
159
- function pe(e) {
160
+ function ue(e) {
160
161
  if (!/^\d{12}$/.test(e)) return !1;
161
162
  let t = [
162
163
  3,
@@ -165,36 +166,36 @@ function pe(e) {
165
166
  ];
166
167
  return [...e.slice(0, 11)].reduce((e, n, r) => e + Number(n) * t[r % 3], 0) % 11 % 10 === Number(e[11]);
167
168
  }
168
- function me(e) {
169
- return e.length === 20 && /^\d{20}$/.test(e) && de(e);
169
+ function de(e) {
170
+ return e.length === 20 && /^\d{20}$/.test(e) && ce(e);
170
171
  }
171
- function he(e) {
172
- return e.length === 20 && /^00\d{18}$/.test(e) && de(e);
172
+ function fe(e) {
173
+ return e.length === 20 && /^00\d{18}$/.test(e) && ce(e);
173
174
  }
174
175
  //#endregion
175
176
  //#region core/detection/mondialRelay.ts
176
- function ge(e) {
177
+ function pe(e) {
177
178
  if (!/^\d{26}$/.test(e)) return !1;
178
- let t = (e) => String(le(e)), n = Number(e.slice(10, 12)), r = Number(e.slice(12, 14));
179
+ let t = (e) => String(oe(e)), n = Number(e.slice(10, 12)), r = Number(e.slice(12, 14));
179
180
  return n > 0 && n <= r && t(e.slice(0, 14)) === e[14] && t(e.slice(15, 25)) === e[25];
180
181
  }
181
182
  //#endregion
182
183
  //#region core/detection/normalize.ts
183
- function g(e) {
184
+ function y(e) {
184
185
  let t = e.toUpperCase().replace(/[\s.-]/g, "");
185
186
  return /^\(00\)\d{18}$/.test(t) ? `00${t.slice(4)}` : t;
186
187
  }
187
- function _e(e) {
188
- return /^99990\d{8}$/.test(g(e));
188
+ function me(e) {
189
+ return /^99990\d{8}$/.test(y(e));
189
190
  }
190
- function ve(e, t) {
191
- if (t === "postlogistics") return ae(e);
192
- let n = g(e);
193
- return _e(n) ? `${n.slice(0, 3)}.${n.slice(3, 5)}.${n.slice(5)}` : /^\d{18}$/.test(n) ? `${n.slice(0, 2)}.${n.slice(2, 4)}.${n.slice(4, 10)}.${n.slice(10)}` : n;
191
+ function he(e, t) {
192
+ if (t === "postlogistics") return re(e);
193
+ let n = y(e);
194
+ return me(n) ? `${n.slice(0, 3)}.${n.slice(3, 5)}.${n.slice(5)}` : /^\d{18}$/.test(n) ? `${n.slice(0, 2)}.${n.slice(2, 4)}.${n.slice(4, 10)}.${n.slice(10)}` : n;
194
195
  }
195
196
  //#endregion
196
197
  //#region generated/catalog.ts
197
- var ye = {
198
+ var ge = {
198
199
  "swiss-post": {
199
200
  displayName: "Swiss Post",
200
201
  color: "#ffcc00",
@@ -3922,7 +3923,7 @@ var ye = {
3922
3923
  trackingSearchUrl: "https://www.dpd.com/de/en/empfangen/sendungsverfolgung-und-live-tracking/",
3923
3924
  linkRules: [{
3924
3925
  domains: ["tracking.dpd.de"],
3925
- path: "^/status/[a-z]{2}_[A-Z]{2}/parcel/(\\d{14})/?$"
3926
+ path: "^/status/[a-z]{2}_[A-Z]{2}/parcel/(\\d{14}[0-9A-Z]?)/?$"
3926
3927
  }, {
3927
3928
  domains: ["my.dpd.de"],
3928
3929
  params: ["parcelno"]
@@ -3956,14 +3957,23 @@ var ye = {
3956
3957
  pathPattern: "^/(?:EN/)?parcelDetails$",
3957
3958
  params: ["p1"]
3958
3959
  }],
3959
- detectionRules: [{
3960
- pattern: "^\\d{13}[A-Z]$",
3961
- confidence: "high"
3962
- }, {
3963
- pattern: "^13\\d{12}$",
3964
- confidence: "low",
3965
- preferred: !0
3966
- }]
3960
+ detectionRules: [
3961
+ {
3962
+ pattern: "^\\d{13}[A-Z]$",
3963
+ confidence: "high"
3964
+ },
3965
+ {
3966
+ pattern: "^13\\d{12}$",
3967
+ confidence: "low",
3968
+ preferred: !0
3969
+ },
3970
+ {
3971
+ pattern: "^13\\d{12}[0-9A-Z]$",
3972
+ confidence: "low",
3973
+ checksum: "dpd",
3974
+ preferred: !0
3975
+ }
3976
+ ]
3967
3977
  },
3968
3978
  "dpd-uk": {
3969
3979
  displayName: "DPD UK",
@@ -4030,6 +4040,29 @@ var ye = {
4030
4040
  confidence: "high"
4031
4041
  }]
4032
4042
  },
4043
+ emile: {
4044
+ displayName: "Emile",
4045
+ color: "#e42920",
4046
+ aliases: ["Emile Express"],
4047
+ countries: ["CA"],
4048
+ selectable: !0,
4049
+ timezone: "UTC",
4050
+ tracking: {
4051
+ mode: "link-only",
4052
+ adapter: null
4053
+ },
4054
+ canaryUrl: "https://www.emileps.com/",
4055
+ trackingUrlTemplate: "https://www.emileps.com/tracking?tracking={trackingNumber}",
4056
+ trackingSearchUrl: "https://www.emileps.com/tracking",
4057
+ linkRules: [{
4058
+ domains: ["emileps.com"],
4059
+ params: ["tracking"]
4060
+ }],
4061
+ detectionRules: [{
4062
+ pattern: "^EM\\d{12}CA$",
4063
+ confidence: "low"
4064
+ }]
4065
+ },
4033
4066
  "evri-uk": {
4034
4067
  displayName: "Evri UK",
4035
4068
  color: "#00014d",
@@ -4322,7 +4355,7 @@ var ye = {
4322
4355
  confidence: "low"
4323
4356
  }]
4324
4357
  }
4325
- }, be = /* @__PURE__ */ "swiss-post.swiss-post-cargo.quickpac.planzer.aliexpress.sunyou.hermes.spring-gds.postlogistics.dachser.dhl.dhl-ecommerce.ups.amazon-logistics.amazon-shipping.fedex.gls-ch.dpd.dpd-fr.mondial-relay.relais-colis.la-poste.chronopost.gls-fr.colis-prive.geodis.colisweb.c-chez-vous.heppner.ciblex.paack.asendia.shipup.india-post.hermes-de.gls-de.delivengo.intl-post.unknown.royal-mail.parcelforce.evri.inpost.an-post.bpost.austrian-post.postnord.posti.correos-express.seur.mrw.nacex.ctt.ctt-express.poste-italiane.brt.ecoscooting.tipsa.ukrposhta.usps.canada-post.purolator.canpar.ontrac.speedx.uniuni.landmark-global.old-dominion.spee-dee.gofo.estafeta.correios-br.correos-chile.yunexpress.four-px.blue-dart.delhivery.nz-post.singapore-post.japan-post.sf-express.sto.yunda.yto.zto.jd-logistics.yamato.korea-post.thailand-post.dtdc.australia-post.hongkong-post.pos-malaysia.ninja-van.china-post.packeta.poczta-polska.bring-posten.aramex.tnt.correos-spain.yanwen.the-courier-guy.j-and-t.ems.cne.dhl-ecommerce-es.dhl-ecommerce-nl.dhl-ecommerce-pl.dhl-ecommerce-uk.dhl-express.dpd-de.dpd-pl.dpd-uk.ekart.evri-uk.intelcom.j-and-t-cargo.lbc-express.nova-poshta.omgo.sagawa.speedpak.spx-ph.xpressbees".split("."), xe = {
4358
+ }, _e = /* @__PURE__ */ "swiss-post.swiss-post-cargo.quickpac.planzer.aliexpress.sunyou.hermes.spring-gds.postlogistics.dachser.dhl.dhl-ecommerce.ups.amazon-logistics.amazon-shipping.fedex.gls-ch.dpd.dpd-fr.mondial-relay.relais-colis.la-poste.chronopost.gls-fr.colis-prive.geodis.colisweb.c-chez-vous.heppner.ciblex.paack.asendia.shipup.india-post.hermes-de.gls-de.delivengo.intl-post.unknown.royal-mail.parcelforce.evri.inpost.an-post.bpost.austrian-post.postnord.posti.correos-express.seur.mrw.nacex.ctt.ctt-express.poste-italiane.brt.ecoscooting.tipsa.ukrposhta.usps.canada-post.purolator.canpar.ontrac.speedx.uniuni.landmark-global.old-dominion.spee-dee.gofo.estafeta.correios-br.correos-chile.yunexpress.four-px.blue-dart.delhivery.nz-post.singapore-post.japan-post.sf-express.sto.yunda.yto.zto.jd-logistics.yamato.korea-post.thailand-post.dtdc.australia-post.hongkong-post.pos-malaysia.ninja-van.china-post.packeta.poczta-polska.bring-posten.aramex.tnt.correos-spain.yanwen.the-courier-guy.j-and-t.ems.cne.dhl-ecommerce-es.dhl-ecommerce-nl.dhl-ecommerce-pl.dhl-ecommerce-uk.dhl-express.dpd-de.dpd-pl.dpd-uk.ekart.emile.evri-uk.intelcom.j-and-t-cargo.lbc-express.nova-poshta.omgo.sagawa.speedpak.spx-ph.xpressbees".split("."), ve = {
4326
4359
  "swiss-post": ["swiss-post-1", "swiss-post-2"],
4327
4360
  "swiss-post-cargo": ["swiss-post-cargo-sscc", "swiss-post-cargo-pl-reference"],
4328
4361
  quickpac: ["quickpac-1"],
@@ -4647,7 +4680,11 @@ var ye = {
4647
4680
  "dhl-ecommerce-uk": ["dhl-ecommerce-uk-2", "dhl-ecommerce-uk-1"],
4648
4681
  "dhl-express": ["dhl-express-waybill"],
4649
4682
  "dpd-de": ["dpd-de-1", "dpd-de-2"],
4650
- "dpd-pl": ["dpd-pl-1", "dpd-pl-2"],
4683
+ "dpd-pl": [
4684
+ "dpd-pl-1",
4685
+ "dpd-pl-2",
4686
+ "dpd-pl-3"
4687
+ ],
4651
4688
  "dpd-uk": [
4652
4689
  "dpd-uk-3",
4653
4690
  "dpd-uk-4",
@@ -4655,6 +4692,7 @@ var ye = {
4655
4692
  "dpd-uk-2"
4656
4693
  ],
4657
4694
  ekart: ["ekart-ecommerce"],
4695
+ emile: ["emile-1"],
4658
4696
  "evri-uk": [
4659
4697
  "evri-uk-1",
4660
4698
  "evri-uk-2",
@@ -4677,7 +4715,7 @@ var ye = {
4677
4715
  "spx-ph-domestic"
4678
4716
  ],
4679
4717
  xpressbees: ["xpressbees-awb"]
4680
- }, Se = [
4718
+ }, ye = [
4681
4719
  "pending",
4682
4720
  "registered",
4683
4721
  "accepted",
@@ -4689,16 +4727,16 @@ var ye = {
4689
4727
  "ready_for_pickup",
4690
4728
  "returned",
4691
4729
  "exception"
4692
- ], Ce = ye["amazon-logistics"].detectionRules[0].pattern;
4693
- function we(e) {
4694
- return new RegExp(Ce).test(e.replace(/[\s.-]/g, "").toUpperCase());
4730
+ ], be = ge["amazon-logistics"].detectionRules[0].pattern;
4731
+ function xe(e) {
4732
+ return new RegExp(be).test(e.replace(/[\s.-]/g, "").toUpperCase());
4695
4733
  }
4696
4734
  //#endregion
4697
4735
  //#region core/catalog/amazon.ts
4698
- function Te(e, t = "") {
4699
- return e !== "amazon-shipping" && (e === "amazon-logistics" || we(t));
4736
+ function Se(e, t = "") {
4737
+ return e !== "amazon-shipping" && (e === "amazon-logistics" || xe(t));
4700
4738
  }
4701
- function Ee(e) {
4739
+ function Ce(e) {
4702
4740
  let t = e.replace(/[\s.-]/g, "").toUpperCase();
4703
4741
  return t.startsWith("TBC") ? "ca" : t.startsWith("TBM") ? "com.mx" : {
4704
4742
  FR: "fr",
@@ -4717,10 +4755,10 @@ function Ee(e) {
4717
4755
  TR: "com.tr"
4718
4756
  }[t.slice(0, 2)] ?? "com";
4719
4757
  }
4720
- function De(e) {
4721
- return `https://www.amazon.${Ee(e)}/gp/your-account/order-history`;
4758
+ function we(e) {
4759
+ return `https://www.amazon.${Ce(e)}/gp/your-account/order-history`;
4722
4760
  }
4723
- function Oe(e) {
4761
+ function Te(e) {
4724
4762
  return `https://track.amazon.${{
4725
4763
  IT: "it",
4726
4764
  ES: "es",
@@ -4729,30 +4767,30 @@ function Oe(e) {
4729
4767
  TB: "com"
4730
4768
  }[e.replace(/[\s.-]/g, "").toUpperCase().slice(0, 2)] ?? "fr"}`;
4731
4769
  }
4732
- function ke(e) {
4733
- return `${Oe(e)}/tracking/${encodeURIComponent(e.replace(/[\s.-]/g, "").toUpperCase())}`;
4770
+ function Ee(e) {
4771
+ return `${Te(e)}/tracking/${encodeURIComponent(e.replace(/[\s.-]/g, "").toUpperCase())}`;
4734
4772
  }
4735
4773
  //#endregion
4736
4774
  //#region core/catalog/definitions.ts
4737
- var _ = ye;
4738
- function v(e) {
4739
- let t = _[e];
4775
+ var b = ge;
4776
+ function x(e) {
4777
+ let t = b[e];
4740
4778
  if (!t) throw RangeError(`Unknown carrier ${e}`);
4741
4779
  return t;
4742
4780
  }
4743
- function Ae(e) {
4744
- return v(e).timezone ?? "UTC";
4781
+ function De(e) {
4782
+ return x(e).timezone ?? "UTC";
4745
4783
  }
4746
- function je(e) {
4747
- return v(e).tracking.adapter;
4784
+ function Oe(e) {
4785
+ return x(e).tracking.adapter;
4748
4786
  }
4749
- function Me(e, t) {
4750
- return (v(e).tracking.requirements ?? []).filter((e) => !e.whenTrackingNumber || RegExp(`^(?:${e.whenTrackingNumber})$`).test(t));
4787
+ function ke(e, t) {
4788
+ return (x(e).tracking.requirements ?? []).filter((e) => !e.whenTrackingNumber || RegExp(`^(?:${e.whenTrackingNumber})$`).test(t));
4751
4789
  }
4752
- function Ne(e, t) {
4753
- return Me(e, t).filter((e) => e.optional !== !0);
4790
+ function Ae(e, t) {
4791
+ return ke(e, t).filter((e) => e.optional !== !0);
4754
4792
  }
4755
- var Pe = new Set(Object.entries(_).filter(([, e]) => e.tracking.mode === "automatic").map(([e]) => e)), Fe = new Map(Object.entries(_).filter(([e]) => Pe.has(e)).map(([e, t]) => [e, t.tracking.upstreamName ?? t.displayName])), Ie = Object.entries(_).flatMap(([e, t]) => t.linkRules.map((t) => ({
4793
+ var je = new Set(Object.entries(b).filter(([, e]) => e.tracking.mode === "automatic").map(([e]) => e)), Me = new Map(Object.entries(b).filter(([e]) => je.has(e)).map(([e, t]) => [e, t.tracking.upstreamName ?? t.displayName])), Ne = Object.entries(b).flatMap(([e, t]) => t.linkRules.map((t) => ({
4756
4794
  carrier: e,
4757
4795
  domains: [...t.domains],
4758
4796
  params: t.params ? [...t.params] : void 0,
@@ -4763,29 +4801,29 @@ var Pe = new Set(Object.entries(_).filter(([, e]) => e.tracking.mode === "automa
4763
4801
  detectFromNumber: t.detectFromNumber,
4764
4802
  keepsCapabilityUrl: t.keepsCapabilityUrl
4765
4803
  })));
4766
- function Le(e) {
4767
- return Ie.filter((t) => t.carrier === e);
4804
+ function Pe(e) {
4805
+ return Ne.filter((t) => t.carrier === e);
4768
4806
  }
4769
- function Re(e, t) {
4807
+ function Fe(e, t) {
4770
4808
  return e === t || e.endsWith(`.${t}`);
4771
4809
  }
4772
4810
  //#endregion
4773
4811
  //#region core/catalog/index.ts
4774
- function ze(e, t) {
4775
- let n = g(t);
4776
- if (e === "mondial-relay" && ge(n)) return n.slice(0, 12);
4812
+ function Ie(e, t) {
4813
+ let n = y(t);
4814
+ if (e === "mondial-relay" && pe(n)) return n.slice(0, 12);
4777
4815
  if (e === "c-chez-vous") {
4778
4816
  let e = /^([A-Z0-9]{11})(\d{5})$/.exec(n);
4779
4817
  if (e) return `${e[1]}--${e[2]}`;
4780
4818
  }
4781
- return e === "the-courier-guy" && /^(DD|LD)([A-Z0-9]{6})$/.exec(n) ? ie(n) : e === "postlogistics" ? ae(t) : t;
4819
+ return e === "the-courier-guy" && /^(DD|LD)([A-Z0-9]{6})$/.exec(n) ? ne(n) : e === "postlogistics" ? re(t) : t;
4782
4820
  }
4783
- function Be(e, t) {
4784
- if (e === "amazon-logistics") return De;
4785
- if (e === "amazon-shipping") return ke;
4786
- if (t) return (n) => t.replace("{trackingNumber}", encodeURIComponent(ze(e, n)));
4821
+ function Le(e, t) {
4822
+ if (e === "amazon-logistics") return we;
4823
+ if (e === "amazon-shipping") return Ee;
4824
+ if (t) return (n) => t.replace("{trackingNumber}", encodeURIComponent(Ie(e, n)));
4787
4825
  }
4788
- function Ve(e, t) {
4826
+ function Re(e, t) {
4789
4827
  return {
4790
4828
  id: e,
4791
4829
  name: t.displayName,
@@ -4793,7 +4831,7 @@ function Ve(e, t) {
4793
4831
  countries: t.countries ?? [],
4794
4832
  trackingSiteName: t.trackingSiteName,
4795
4833
  color: t.color,
4796
- trackingUrl: Be(e, t.trackingUrlTemplate),
4834
+ trackingUrl: Le(e, t.trackingUrlTemplate),
4797
4835
  trackingSearchUrl: t.trackingSearchUrl,
4798
4836
  capabilities: {
4799
4837
  tracking: {
@@ -4806,27 +4844,27 @@ function Ve(e, t) {
4806
4844
  }
4807
4845
  };
4808
4846
  }
4809
- var He = Object.fromEntries(Object.entries(_).map(([e, t]) => [e, Ve(e, t)]));
4810
- function Ue(e, t) {
4811
- let n = He[e] ?? He.unknown, r = t ? _[n.id].displayNames?.[t] : void 0;
4847
+ var ze = Object.fromEntries(Object.entries(b).map(([e, t]) => [e, Re(e, t)]));
4848
+ function Be(e, t) {
4849
+ let n = ze[e] ?? ze.unknown, r = t ? b[n.id].displayNames?.[t] : void 0;
4812
4850
  return r ? {
4813
4851
  ...n,
4814
4852
  name: r
4815
4853
  } : n;
4816
4854
  }
4817
- var We = Object.values(He).filter((e) => e.capabilities.selectable);
4818
- function Ge(e, t) {
4819
- let n = g(t);
4820
- return He[e].capabilities.tracking.requirements.filter((e) => !e.whenTrackingNumber || new RegExp(e.whenTrackingNumber).test(n));
4855
+ var Ve = Object.values(ze).filter((e) => e.capabilities.selectable);
4856
+ function He(e, t) {
4857
+ let n = y(t);
4858
+ return ze[e].capabilities.tracking.requirements.filter((e) => !e.whenTrackingNumber || new RegExp(e.whenTrackingNumber).test(n));
4821
4859
  }
4822
- function Ke(e, t) {
4860
+ function Ue(e, t) {
4823
4861
  let n = t.trim();
4824
4862
  return n ? !e.pattern || new RegExp(e.pattern).test(n) : e.optional === !0;
4825
4863
  }
4826
- function qe(e) {
4827
- return He[e].capabilities.tracking.mode === "automatic";
4864
+ function We(e) {
4865
+ return ze[e].capabilities.tracking.mode === "automatic";
4828
4866
  }
4829
- function Je(e, t, n) {
4867
+ function Ge(e, t, n) {
4830
4868
  if (!n || ![
4831
4869
  "en",
4832
4870
  "de",
@@ -4855,74 +4893,74 @@ function Je(e, t, n) {
4855
4893
  }
4856
4894
  //#endregion
4857
4895
  //#region core/detection/colissimo.ts
4858
- function Ye(e) {
4859
- return /^[0-9A-Z]{2}\d{11}$/.test(e) && de(e.slice(2));
4896
+ function Ke(e) {
4897
+ return /^[0-9A-Z]{2}\d{11}$/.test(e) && ce(e.slice(2));
4860
4898
  }
4861
4899
  //#endregion
4862
4900
  //#region core/detection/correosSpain.ts
4863
- var Xe = "TRWAGMYFPDXBNJZSQVHLCKE";
4864
- function Ze(e) {
4901
+ var qe = "TRWAGMYFPDXBNJZSQVHLCKE";
4902
+ function Je(e) {
4865
4903
  let t = 0;
4866
4904
  for (let n = 0; n < e.length - 1; n++) t += e.charCodeAt(n);
4867
- return e.length > 1 && Xe[t % 23] === e.at(-1);
4905
+ return e.length > 1 && qe[t % 23] === e.at(-1);
4868
4906
  }
4869
4907
  //#endregion
4870
4908
  //#region core/detection/dpd.ts
4871
- var Qe = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4872
- function $e(e) {
4909
+ var Ye = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
4910
+ function Xe(e) {
4873
4911
  let t = 36;
4874
4912
  for (let n of e) t += Number(n), t > 36 && (t -= 36), t *= 2, t > 36 && (t -= 37);
4875
- return Qe[(37 - t) % 36];
4913
+ return Ye[(37 - t) % 36];
4876
4914
  }
4877
- function et(e) {
4878
- return /^\d{14}[0-9A-Z]$/.test(e) && e[14] === $e(e.slice(0, 14));
4915
+ function Ze(e) {
4916
+ return /^\d{14}[0-9A-Z]$/.test(e) && e[14] === Xe(e.slice(0, 14));
4879
4917
  }
4880
4918
  //#endregion
4881
4919
  //#region core/detection/ups.ts
4882
- function tt(e) {
4920
+ function Qe(e) {
4883
4921
  return /\d/.test(e) ? Number(e) : (e.charCodeAt(0) - 63) % 10;
4884
4922
  }
4885
- function nt(e) {
4886
- return (10 - [...e].reduce((e, t, n) => e + tt(t) * (n % 2 ? 2 : 1), 0) % 10) % 10;
4923
+ function $e(e) {
4924
+ return (10 - [...e].reduce((e, t, n) => e + Qe(t) * (n % 2 ? 2 : 1), 0) % 10) % 10;
4887
4925
  }
4888
- function rt(e) {
4889
- return /^1Z[0-9A-Z]{15}\d$/.test(e) && nt(e.slice(2, 17)) === Number(e[17]);
4926
+ function et(e) {
4927
+ return /^1Z[0-9A-Z]{15}\d$/.test(e) && $e(e.slice(2, 17)) === Number(e[17]);
4890
4928
  }
4891
- function it(e) {
4892
- return /^[CD]\d{14}$/.test(e) && nt(e.slice(0, 14)) === Number(e[14]);
4929
+ function tt(e) {
4930
+ return /^[CD]\d{14}$/.test(e) && $e(e.slice(0, 14)) === Number(e[14]);
4893
4931
  }
4894
4932
  //#endregion
4895
4933
  //#region core/detection/evri.ts
4896
- function at(e) {
4897
- return /^[HT][0-9A-Z]{5}\d{10}$/.test(e) ? [...e.slice(0, 15)].reduce((e, t, n) => e + tt(t) * (n % 2 ? 1 : 2), 0) % 10 === Number(e[15]) : !1;
4934
+ function nt(e) {
4935
+ return /^[HT][0-9A-Z]{5}\d{10}$/.test(e) ? [...e.slice(0, 15)].reduce((e, t, n) => e + Qe(t) * (n % 2 ? 1 : 2), 0) % 10 === Number(e[15]) : !1;
4898
4936
  }
4899
4937
  //#endregion
4900
4938
  //#region core/detection/fedex.ts
4901
- function ot(e) {
4902
- return /^96\d{20}$/.test(e) && de(e.slice(7));
4939
+ function rt(e) {
4940
+ return /^96\d{20}$/.test(e) && ce(e.slice(7));
4903
4941
  }
4904
- function st(e) {
4905
- return /^\d{20}00\d{12}$/.test(e) && pe(e.slice(22));
4942
+ function it(e) {
4943
+ return /^\d{20}00\d{12}$/.test(e) && ue(e.slice(22));
4906
4944
  }
4907
4945
  //#endregion
4908
4946
  //#region core/detection/gls.ts
4909
- function ct(e) {
4947
+ function at(e) {
4910
4948
  return /^\d{12}$/.test(e) ? (10 - [...e.slice(0, 11)].reverse().reduce((e, t, n) => e + Number(t) * (n % 2 == 0 ? 3 : 1), 1) % 10) % 10 === Number(e[11]) : !1;
4911
4949
  }
4912
4950
  //#endregion
4913
4951
  //#region core/detection/hermes.ts
4914
- function lt(e) {
4952
+ function ot(e) {
4915
4953
  return /^\d{14}$/.test(e) ? (10 - [...e.slice(0, 13)].reduce((e, t, n) => e + Number(t) * (n % 2 == 0 ? 3 : 1), 0) % 10) % 10 === Number(e[13]) : !1;
4916
4954
  }
4917
4955
  //#endregion
4918
4956
  //#region core/detection/identcode.ts
4919
- function ut(e) {
4957
+ function st(e) {
4920
4958
  return /^\d{12}$/.test(e) ? (10 - [...e.slice(0, 11)].reduce((e, t, n) => e + Number(t) * (n % 2 ? 9 : 4), 0) % 10) % 10 === Number(e[11]) : !1;
4921
4959
  }
4922
4960
  //#endregion
4923
4961
  //#region core/detection/s10.ts
4924
- function dt(e) {
4925
- let t = g(e);
4962
+ function ct(e) {
4963
+ let t = y(e);
4926
4964
  if (!/^[A-Z]{2}\d{9}[A-Z]{2}$/.test(t)) return !1;
4927
4965
  let n = 11 - [
4928
4966
  8,
@@ -4936,13 +4974,13 @@ function dt(e) {
4936
4974
  ].reduce((e, n, r) => e + Number(t[r + 2]) * n, 0) % 11, r = n === 10 ? 0 : n === 11 ? 5 : n;
4937
4975
  return Number(t[10]) === r;
4938
4976
  }
4939
- function ft(e) {
4940
- let t = g(e);
4941
- return /^L[A-Z]\d{9}CH$/.test(t) && dt(t);
4977
+ function lt(e) {
4978
+ let t = y(e);
4979
+ return /^L[A-Z]\d{9}CH$/.test(t) && ct(t);
4942
4980
  }
4943
4981
  //#endregion
4944
4982
  //#region core/detection/sfExpress.ts
4945
- function pt(e) {
4983
+ function ut(e) {
4946
4984
  let t = /^(?:\d{12}|SF\d{13})$/.test(e) ? e.replace(/^SF/, "") : null;
4947
4985
  return t ? (10 - [...t.slice(3, -1)].reverse().reduce((e, t, n) => {
4948
4986
  let r = Number(t) * (2 * n + 1);
@@ -4951,78 +4989,78 @@ function pt(e) {
4951
4989
  }
4952
4990
  //#endregion
4953
4991
  //#region core/detection/usps.ts
4954
- function mt(e) {
4992
+ function dt(e) {
4955
4993
  if (!/^(?:9[1-5]\d{20}|9[2-4]\d{24})$/.test(e)) return !1;
4956
4994
  let t = 0;
4957
4995
  for (let n = e.length - 1; n >= 0; n--) t += Number(e[n]) * ((e.length - 1 - n) % 2 == 0 ? 1 : 3);
4958
4996
  return t % 10 == 0;
4959
4997
  }
4960
- var ht = /^420(?:\d{5}|\d{9})(?:\d{22}|\d{26})$/, gt = /^(?:91\d{2}9|92\d{3}9|93\d{3}[0-8]|9[45])/;
4961
- function _t(e) {
4962
- let t = g(e);
4963
- if (mt(t)) return t;
4964
- if (!ht.test(t)) return null;
4965
- let n = [t.slice(8), t.slice(12)].filter(mt);
4998
+ var ft = /^420(?:\d{5}|\d{9})(?:\d{22}|\d{26})$/, pt = /^(?:91\d{2}9|92\d{3}9|93\d{3}[0-8]|9[45])/;
4999
+ function mt(e) {
5000
+ let t = y(e);
5001
+ if (dt(t)) return t;
5002
+ if (!ft.test(t)) return null;
5003
+ let n = [t.slice(8), t.slice(12)].filter(dt);
4966
5004
  if (n.length < 2) return n[0] ?? null;
4967
- let r = n.filter((e) => gt.test(e));
5005
+ let r = n.filter((e) => pt.test(e));
4968
5006
  return r.length === 1 ? r[0] : null;
4969
5007
  }
4970
- function vt(e) {
4971
- return _t(e) !== null;
5008
+ function ht(e) {
5009
+ return mt(e) !== null;
4972
5010
  }
4973
5011
  //#endregion
4974
5012
  //#region core/detection/checksums.ts
4975
- var yt = {
4976
- "mondial-relay": ge,
4977
- s10: dt,
4978
- hermes: lt,
4979
- gls: ct,
4980
- "dhl-express": oe,
4981
- tnt: ce,
4982
- "poczta-polska": me,
4983
- "correos-spain": Ze,
4984
- dpd: et,
4985
- usps: vt,
4986
- sscc: he,
4987
- ups: rt,
4988
- colissimo: Ye,
4989
- ukrposhta: ue,
4990
- evri: at,
4991
- mod7: se,
4992
- gs1: de,
4993
- ontrac: it,
4994
- luhn: fe,
4995
- fedex: pe,
4996
- "sf-express": pt,
4997
- "fedex-ground-96": ot,
4998
- "fedex-1d": st,
4999
- identcode: ut
5013
+ var gt = {
5014
+ "mondial-relay": pe,
5015
+ s10: ct,
5016
+ hermes: ot,
5017
+ gls: at,
5018
+ "dhl-express": ie,
5019
+ tnt: ae,
5020
+ "poczta-polska": de,
5021
+ "correos-spain": Je,
5022
+ dpd: Ze,
5023
+ usps: ht,
5024
+ sscc: fe,
5025
+ ups: et,
5026
+ colissimo: Ke,
5027
+ ukrposhta: se,
5028
+ evri: nt,
5029
+ mod7: v,
5030
+ gs1: ce,
5031
+ ontrac: tt,
5032
+ luhn: le,
5033
+ fedex: ue,
5034
+ "sf-express": ut,
5035
+ "fedex-ground-96": rt,
5036
+ "fedex-1d": it,
5037
+ identcode: st
5000
5038
  };
5001
5039
  //#endregion
5002
5040
  //#region core/detection/cttExpress.ts
5003
- function bt(e) {
5041
+ function _t(e) {
5004
5042
  return /^00\d{4}00\d{14}(?:001)?$/.test(e);
5005
5043
  }
5006
5044
  //#endregion
5007
5045
  //#region core/detection/detect.ts
5008
- function xt(e, t) {
5009
- return e.checksum === void 0 || yt[e.checksum](t);
5046
+ function vt(e, t) {
5047
+ return e.checksum === void 0 || gt[e.checksum](t);
5010
5048
  }
5011
- function St(e, t, n) {
5049
+ function yt(e, t, n) {
5012
5050
  return new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n));
5013
5051
  }
5014
- function Ct(e, t, n, r) {
5015
- for (let [i, a] of _[e].detectionRules.entries()) if (St(a, t, n)) {
5016
- if (xt(a, t)) return a;
5052
+ function bt(e, t, n, r) {
5053
+ for (let [i, a] of b[e].detectionRules.entries()) if (yt(a, t, n)) {
5054
+ if (vt(a, t)) return a;
5017
5055
  r.push({
5018
5056
  carrier: e,
5019
- id: xe[e][i],
5057
+ id: ve[e][i],
5020
5058
  rule: a
5021
5059
  });
5022
5060
  }
5023
5061
  }
5024
- function wt(e) {
5025
- let t = e.trim().toUpperCase(), n = g(e);
5062
+ function xt(e) {
5063
+ let t = e.trim().toUpperCase(), n = y(e);
5026
5064
  if (!n) return {
5027
5065
  detection: {
5028
5066
  carrier: "unknown",
@@ -5033,9 +5071,9 @@ function wt(e) {
5033
5071
  rejections: []
5034
5072
  };
5035
5073
  let r = [], i = [];
5036
- for (let e of Object.keys(_)) {
5037
- if (e === "ctt-express" && !bt(n)) continue;
5038
- let a = Ct(e, n, t, i);
5074
+ for (let e of Object.keys(b)) {
5075
+ if (e === "ctt-express" && !_t(n)) continue;
5076
+ let a = bt(e, n, t, i);
5039
5077
  a && r.push({
5040
5078
  carrier: e,
5041
5079
  confidence: a.confidence,
@@ -5065,32 +5103,32 @@ function wt(e) {
5065
5103
  rejections: l
5066
5104
  };
5067
5105
  }
5068
- function y(e) {
5069
- return wt(e).detection;
5106
+ function S(e) {
5107
+ return xt(e).detection;
5070
5108
  }
5071
- function Tt(e) {
5072
- return wt(e).rejections;
5109
+ function St(e) {
5110
+ return xt(e).rejections;
5073
5111
  }
5074
- function Et(e) {
5075
- return y(e).carrier;
5112
+ function Ct(e) {
5113
+ return S(e).carrier;
5076
5114
  }
5077
5115
  //#endregion
5078
5116
  //#region core/detection/valid.ts
5079
- function Dt(e) {
5117
+ function wt(e) {
5080
5118
  return e.length >= 4 && e.length <= 40 && (/^[A-Z0-9]+$/.test(e) || /^\d{4}\/\d{8}$/.test(e));
5081
5119
  }
5082
- function Ot(e) {
5083
- let t = g(e);
5084
- return Dt(t) ? /\d/.test(t) || /^[A-Za-z]{6,10}$/.test(e.trim()) && y(t).confidence !== "none" : !1;
5120
+ function Tt(e) {
5121
+ let t = y(e);
5122
+ return wt(t) ? /\d/.test(t) || /^[A-Za-z]{6,10}$/.test(e.trim()) && S(t).confidence !== "none" : !1;
5085
5123
  }
5086
- function kt(e) {
5087
- let t = g(e);
5088
- return Dt(t) && /\d/.test(t);
5124
+ function Et(e) {
5125
+ let t = y(e);
5126
+ return wt(t) && /\d/.test(t);
5089
5127
  }
5090
5128
  //#endregion
5091
5129
  //#region core/detection/candidates.ts
5092
- var At = [
5093
- RegExp(`\\b${Ce.slice(1, -1).replaceAll("[0-9]", "(?:[\\s.-]*[0-9])")}\\b`, "gi"),
5130
+ var Dt = [
5131
+ RegExp(`\\b${be.slice(1, -1).replaceAll("[0-9]", "(?:[\\s.-]*[0-9])")}\\b`, "gi"),
5094
5132
  /\b\d{4}\/\d{8}\b/g,
5095
5133
  /\b\d{26}\b/g,
5096
5134
  /\bH\d{15,19}\b/gi,
@@ -5101,44 +5139,44 @@ var At = [
5101
5139
  /\b\d(?:[\s.-]?\d){9,19}\b/g,
5102
5140
  /\b[A-Z0-9]{4,40}\b/gi
5103
5141
  ];
5104
- function jt(e) {
5105
- for (let t of At) {
5142
+ function Ot(e) {
5143
+ for (let t of Dt) {
5106
5144
  t.lastIndex = 0;
5107
5145
  for (let n of e.matchAll(t)) {
5108
5146
  let e = n[0].trim();
5109
- if (y(e).confidence === "high") return e;
5147
+ if (S(e).confidence === "high") return e;
5110
5148
  }
5111
5149
  }
5112
5150
  }
5113
- var Mt = String.raw`(?:numbers?(?![A-Z])|no\.|(?:no|id)(?![A-Z0-9.]))`, Nt = new RegExp(String.raw`(?:track(?:ing)?(?:\s*${Mt}|(?![A-Z]))` + String.raw`|(?:parcel|shipment)(?:\s+(?:tracking(?![A-Z])|${Mt})|(?![A-Z])))` + String.raw`(?:\s+is(?![A-Z0-9]))?\s*[:#-]?\s*` + String.raw`((?=[A-Z0-9.-]{0,39}\d)[A-Z0-9][A-Z0-9.-]{3,39})`, "i");
5114
- function Pt(e) {
5115
- let t = Nt.exec(e)?.[1]?.replace(/[.-]+$/, "");
5116
- return t && kt(t) ? t : void 0;
5151
+ var kt = String.raw`(?:numbers?(?![A-Z])|no\.|(?:no|id)(?![A-Z0-9.]))`, At = new RegExp(String.raw`(?:track(?:ing)?(?:\s*${kt}|(?![A-Z]))` + String.raw`|(?:parcel|shipment)(?:\s+(?:tracking(?![A-Z])|${kt})|(?![A-Z])))` + String.raw`(?:\s+is(?![A-Z0-9]))?\s*[:#-]?\s*` + String.raw`((?=[A-Z0-9.-]{0,39}\d)[A-Z0-9][A-Z0-9.-]{3,39})`, "i");
5152
+ function jt(e) {
5153
+ let t = At.exec(e)?.[1]?.replace(/[.-]+$/, "");
5154
+ return t && Et(t) ? t : void 0;
5117
5155
  }
5118
5156
  //#endregion
5119
5157
  //#region core/detection/parse.ts
5120
- function Ft(e) {
5158
+ function Mt(e) {
5121
5159
  return e.replace(/^[\s<'"(\x5b]+/, "").replace(/[\s>'")\],;.!?]+$/, "");
5122
5160
  }
5123
- function It(e) {
5161
+ function Nt(e) {
5124
5162
  return e.split(/[,|]/, 1)[0].trim();
5125
5163
  }
5126
- function Lt(e, t) {
5164
+ function Pt(e, t) {
5127
5165
  let n = new Set(t.map((e) => e.toLowerCase()));
5128
5166
  for (let [t, r] of e.searchParams) if (n.has(t.toLowerCase()) && r.trim()) return r;
5129
5167
  }
5130
- function Rt(e, t) {
5131
- let n = t.params ? Lt(e, t.params) : void 0, r = t.query?.exec(decodeURIComponent(e.search.slice(1)))?.[1], i = t.path?.exec(e.pathname)?.[1], a = t.fragment?.exec(decodeURIComponent(e.hash.slice(1)))?.[1], o = It(n ?? r ?? i ?? a ?? "");
5132
- return Ot(o) ? o : void 0;
5168
+ function Ft(e, t) {
5169
+ let n = t.params ? Pt(e, t.params) : void 0, r = t.query?.exec(decodeURIComponent(e.search.slice(1)))?.[1], i = t.path?.exec(e.pathname)?.[1], a = t.fragment?.exec(decodeURIComponent(e.hash.slice(1)))?.[1], o = Nt(n ?? r ?? i ?? a ?? "");
5170
+ return Tt(o) ? o : void 0;
5133
5171
  }
5134
- function zt(e, t) {
5172
+ function It(e, t) {
5135
5173
  return {
5136
5174
  trackingNumber: e,
5137
5175
  source: t,
5138
- ...y(e)
5176
+ ...S(e)
5139
5177
  };
5140
5178
  }
5141
- function Bt(e) {
5179
+ function Lt(e) {
5142
5180
  let t = e.trim();
5143
5181
  if (!t) return {
5144
5182
  trackingNumber: "",
@@ -5150,14 +5188,14 @@ function Bt(e) {
5150
5188
  };
5151
5189
  let n = t.match(/https?:\/\/[^\s<>"']+/gi) ?? [];
5152
5190
  for (let e of n) {
5153
- let t = Ft(e);
5191
+ let t = Mt(e);
5154
5192
  try {
5155
- let e = new URL(t), n = Ie.filter((t) => t.domains.some((t) => Re(e.hostname.toLowerCase(), t)) && (!t.pathPattern || t.pathPattern.test(e.pathname))), r = (t) => Math.max(...t.domains.filter((t) => Re(e.hostname.toLowerCase(), t)).map((e) => e.length));
5193
+ let e = new URL(t), n = Ne.filter((t) => t.domains.some((t) => Fe(e.hostname.toLowerCase(), t)) && (!t.pathPattern || t.pathPattern.test(e.pathname))), r = (t) => Math.max(...t.domains.filter((t) => Fe(e.hostname.toLowerCase(), t)).map((e) => e.length));
5156
5194
  n.sort((e, t) => r(t) - r(e));
5157
5195
  for (let r of n) {
5158
- let i = Rt(e, r);
5196
+ let i = Ft(e, r);
5159
5197
  if (i) {
5160
- let e = y(i), a = n.filter((t) => e.candidates.includes(t.carrier)), o = new Set(a.map((e) => e.carrier));
5198
+ let e = S(i), a = n.filter((t) => e.candidates.includes(t.carrier)), o = new Set(a.map((e) => e.carrier));
5161
5199
  if (r.detectFromNumber && (e.confidence === "high" || e.confidence === "low" && o.size > 1)) return {
5162
5200
  trackingNumber: i,
5163
5201
  ...e,
@@ -5175,14 +5213,14 @@ function Bt(e) {
5175
5213
  };
5176
5214
  }
5177
5215
  }
5178
- let i = jt(decodeURIComponent(e.href));
5179
- if (i) return zt(i, "link");
5216
+ let i = Ot(decodeURIComponent(e.href));
5217
+ if (i) return It(i, "link");
5180
5218
  } catch {}
5181
5219
  }
5182
- let r = jt(t);
5183
- if (r) return zt(r, t === r ? "number" : "text");
5184
- let i = Pt(t);
5185
- return i ? zt(i, "text") : !t.includes("://") && Ot(t) ? zt(t, "number") : {
5220
+ let r = Ot(t);
5221
+ if (r) return It(r, t === r ? "number" : "text");
5222
+ let i = jt(t);
5223
+ return i ? It(i, "text") : !t.includes("://") && Tt(t) ? It(t, "number") : {
5186
5224
  trackingNumber: "",
5187
5225
  carrier: "unknown",
5188
5226
  confidence: "none",
@@ -5193,187 +5231,187 @@ function Bt(e) {
5193
5231
  }
5194
5232
  //#endregion
5195
5233
  //#region core/types.ts
5196
- function Vt(e) {
5234
+ function Rt(e) {
5197
5235
  return typeof e == "object" && !!e && !Array.isArray(e);
5198
5236
  }
5199
5237
  //#endregion
5200
5238
  //#region node_modules/luxon/build/es6/luxon.mjs
5201
- var b = class extends Error {}, Ht = class extends b {
5239
+ var C = class extends Error {}, zt = class extends C {
5202
5240
  constructor(e) {
5203
5241
  super(`Invalid DateTime: ${e.toMessage()}`);
5204
5242
  }
5205
- }, Ut = class extends b {
5243
+ }, Bt = class extends C {
5206
5244
  constructor(e) {
5207
5245
  super(`Invalid Interval: ${e.toMessage()}`);
5208
5246
  }
5209
- }, Wt = class extends b {
5247
+ }, Vt = class extends C {
5210
5248
  constructor(e) {
5211
5249
  super(`Invalid Duration: ${e.toMessage()}`);
5212
5250
  }
5213
- }, x = class extends b {}, Gt = class extends b {
5251
+ }, Ht = class extends C {}, Ut = class extends C {
5214
5252
  constructor(e) {
5215
5253
  super(`Invalid unit ${e}`);
5216
5254
  }
5217
- }, S = class extends b {}, C = class extends b {
5255
+ }, w = class extends C {}, T = class extends C {
5218
5256
  constructor() {
5219
5257
  super("Zone is an abstract class");
5220
5258
  }
5221
- }, w = "numeric", T = "short", E = "long", Kt = {
5222
- year: w,
5223
- month: w,
5224
- day: w
5259
+ }, E = "numeric", D = "short", O = "long", Wt = {
5260
+ year: E,
5261
+ month: E,
5262
+ day: E
5263
+ }, Gt = {
5264
+ year: E,
5265
+ month: D,
5266
+ day: E
5267
+ }, Kt = {
5268
+ year: E,
5269
+ month: D,
5270
+ day: E,
5271
+ weekday: D
5225
5272
  }, qt = {
5226
- year: w,
5227
- month: T,
5228
- day: w
5273
+ year: E,
5274
+ month: O,
5275
+ day: E
5229
5276
  }, Jt = {
5230
- year: w,
5231
- month: T,
5232
- day: w,
5233
- weekday: T
5277
+ year: E,
5278
+ month: O,
5279
+ day: E,
5280
+ weekday: O
5234
5281
  }, Yt = {
5235
- year: w,
5236
- month: E,
5237
- day: w
5282
+ hour: E,
5283
+ minute: E
5238
5284
  }, Xt = {
5239
- year: w,
5240
- month: E,
5241
- day: w,
5242
- weekday: E
5285
+ hour: E,
5286
+ minute: E,
5287
+ second: E
5243
5288
  }, Zt = {
5244
- hour: w,
5245
- minute: w
5289
+ hour: E,
5290
+ minute: E,
5291
+ second: E,
5292
+ timeZoneName: D
5246
5293
  }, Qt = {
5247
- hour: w,
5248
- minute: w,
5249
- second: w
5294
+ hour: E,
5295
+ minute: E,
5296
+ second: E,
5297
+ timeZoneName: O
5250
5298
  }, $t = {
5251
- hour: w,
5252
- minute: w,
5253
- second: w,
5254
- timeZoneName: T
5299
+ hour: E,
5300
+ minute: E,
5301
+ hourCycle: "h23"
5255
5302
  }, en = {
5256
- hour: w,
5257
- minute: w,
5258
- second: w,
5259
- timeZoneName: E
5260
- }, tn = {
5261
- hour: w,
5262
- minute: w,
5303
+ hour: E,
5304
+ minute: E,
5305
+ second: E,
5263
5306
  hourCycle: "h23"
5307
+ }, tn = {
5308
+ hour: E,
5309
+ minute: E,
5310
+ second: E,
5311
+ hourCycle: "h23",
5312
+ timeZoneName: D
5264
5313
  }, nn = {
5265
- hour: w,
5266
- minute: w,
5267
- second: w,
5268
- hourCycle: "h23"
5269
- }, rn = {
5270
- hour: w,
5271
- minute: w,
5272
- second: w,
5314
+ hour: E,
5315
+ minute: E,
5316
+ second: E,
5273
5317
  hourCycle: "h23",
5274
- timeZoneName: T
5318
+ timeZoneName: O
5319
+ }, rn = {
5320
+ year: E,
5321
+ month: E,
5322
+ day: E,
5323
+ hour: E,
5324
+ minute: E
5275
5325
  }, an = {
5276
- hour: w,
5277
- minute: w,
5278
- second: w,
5279
- hourCycle: "h23",
5280
- timeZoneName: E
5326
+ year: E,
5327
+ month: E,
5328
+ day: E,
5329
+ hour: E,
5330
+ minute: E,
5331
+ second: E
5281
5332
  }, on = {
5282
- year: w,
5283
- month: w,
5284
- day: w,
5285
- hour: w,
5286
- minute: w
5333
+ year: E,
5334
+ month: D,
5335
+ day: E,
5336
+ hour: E,
5337
+ minute: E
5287
5338
  }, sn = {
5288
- year: w,
5289
- month: w,
5290
- day: w,
5291
- hour: w,
5292
- minute: w,
5293
- second: w
5339
+ year: E,
5340
+ month: D,
5341
+ day: E,
5342
+ hour: E,
5343
+ minute: E,
5344
+ second: E
5294
5345
  }, cn = {
5295
- year: w,
5296
- month: T,
5297
- day: w,
5298
- hour: w,
5299
- minute: w
5346
+ year: E,
5347
+ month: D,
5348
+ day: E,
5349
+ weekday: D,
5350
+ hour: E,
5351
+ minute: E
5300
5352
  }, ln = {
5301
- year: w,
5302
- month: T,
5303
- day: w,
5304
- hour: w,
5305
- minute: w,
5306
- second: w
5353
+ year: E,
5354
+ month: O,
5355
+ day: E,
5356
+ hour: E,
5357
+ minute: E,
5358
+ timeZoneName: D
5307
5359
  }, un = {
5308
- year: w,
5309
- month: T,
5310
- day: w,
5311
- weekday: T,
5312
- hour: w,
5313
- minute: w
5360
+ year: E,
5361
+ month: O,
5362
+ day: E,
5363
+ hour: E,
5364
+ minute: E,
5365
+ second: E,
5366
+ timeZoneName: D
5314
5367
  }, dn = {
5315
- year: w,
5316
- month: E,
5317
- day: w,
5318
- hour: w,
5319
- minute: w,
5320
- timeZoneName: T
5368
+ year: E,
5369
+ month: O,
5370
+ day: E,
5371
+ weekday: O,
5372
+ hour: E,
5373
+ minute: E,
5374
+ timeZoneName: O
5321
5375
  }, fn = {
5322
- year: w,
5323
- month: E,
5324
- day: w,
5325
- hour: w,
5326
- minute: w,
5327
- second: w,
5328
- timeZoneName: T
5329
- }, pn = {
5330
- year: w,
5331
- month: E,
5332
- day: w,
5333
- weekday: E,
5334
- hour: w,
5335
- minute: w,
5336
- timeZoneName: E
5337
- }, mn = {
5338
- year: w,
5339
- month: E,
5340
- day: w,
5341
- weekday: E,
5342
- hour: w,
5343
- minute: w,
5344
- second: w,
5345
- timeZoneName: E
5346
- }, hn = class {
5376
+ year: E,
5377
+ month: O,
5378
+ day: E,
5379
+ weekday: O,
5380
+ hour: E,
5381
+ minute: E,
5382
+ second: E,
5383
+ timeZoneName: O
5384
+ }, pn = class {
5347
5385
  get type() {
5348
- throw new C();
5386
+ throw new T();
5349
5387
  }
5350
5388
  get name() {
5351
- throw new C();
5389
+ throw new T();
5352
5390
  }
5353
5391
  get ianaName() {
5354
5392
  return this.name;
5355
5393
  }
5356
5394
  get isUniversal() {
5357
- throw new C();
5395
+ throw new T();
5358
5396
  }
5359
5397
  offsetName(e, t) {
5360
- throw new C();
5398
+ throw new T();
5361
5399
  }
5362
5400
  formatOffset(e, t) {
5363
- throw new C();
5401
+ throw new T();
5364
5402
  }
5365
5403
  offset(e) {
5366
- throw new C();
5404
+ throw new T();
5367
5405
  }
5368
5406
  equals(e) {
5369
- throw new C();
5407
+ throw new T();
5370
5408
  }
5371
5409
  get isValid() {
5372
- throw new C();
5410
+ throw new T();
5373
5411
  }
5374
- }, gn = null, _n = class e extends hn {
5412
+ }, mn = null, hn = class e extends pn {
5375
5413
  static get instance() {
5376
- return gn === null && (gn = new e()), gn;
5414
+ return mn === null && (mn = new e()), mn;
5377
5415
  }
5378
5416
  get type() {
5379
5417
  return "system";
@@ -5385,10 +5423,10 @@ var b = class extends Error {}, Ht = class extends b {
5385
5423
  return !1;
5386
5424
  }
5387
5425
  offsetName(e, { format: t, locale: n }) {
5388
- return Gr(e, t, n);
5426
+ return Ur(e, t, n);
5389
5427
  }
5390
5428
  formatOffset(e, t) {
5391
- return Yr(this.offset(e), t);
5429
+ return qr(this.offset(e), t);
5392
5430
  }
5393
5431
  offset(e) {
5394
5432
  return -new Date(e).getTimezoneOffset();
@@ -5399,9 +5437,9 @@ var b = class extends Error {}, Ht = class extends b {
5399
5437
  get isValid() {
5400
5438
  return !0;
5401
5439
  }
5402
- }, vn = /* @__PURE__ */ new Map();
5403
- function yn(e) {
5404
- let t = vn.get(e);
5440
+ }, gn = /* @__PURE__ */ new Map();
5441
+ function _n(e) {
5442
+ let t = gn.get(e);
5405
5443
  return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
5406
5444
  hour12: !1,
5407
5445
  timeZone: e,
@@ -5412,9 +5450,9 @@ function yn(e) {
5412
5450
  minute: "2-digit",
5413
5451
  second: "2-digit",
5414
5452
  era: "short"
5415
- }), vn.set(e, t)), t;
5453
+ }), gn.set(e, t)), t;
5416
5454
  }
5417
- var bn = {
5455
+ var vn = {
5418
5456
  year: 0,
5419
5457
  month: 1,
5420
5458
  day: 2,
@@ -5423,7 +5461,7 @@ var bn = {
5423
5461
  minute: 5,
5424
5462
  second: 6
5425
5463
  };
5426
- function xn(e, t) {
5464
+ function yn(e, t) {
5427
5465
  let n = e.format(t).replace(/\u200E/g, ""), [, r, i, a, o, s, c, l] = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);
5428
5466
  return [
5429
5467
  a,
@@ -5435,21 +5473,21 @@ function xn(e, t) {
5435
5473
  l
5436
5474
  ];
5437
5475
  }
5438
- function Sn(e, t) {
5476
+ function bn(e, t) {
5439
5477
  let n = e.formatToParts(t), r = [];
5440
5478
  for (let e = 0; e < n.length; e++) {
5441
- let { type: t, value: i } = n[e], a = bn[t];
5442
- t === "era" ? r[a] = i : F(a) || (r[a] = parseInt(i, 10));
5479
+ let { type: t, value: i } = n[e], a = vn[t];
5480
+ t === "era" ? r[a] = i : I(a) || (r[a] = parseInt(i, 10));
5443
5481
  }
5444
5482
  return r;
5445
5483
  }
5446
- var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5484
+ var xn = /* @__PURE__ */ new Map(), Sn = class e extends pn {
5447
5485
  static create(t) {
5448
- let n = Cn.get(t);
5449
- return n === void 0 && Cn.set(t, n = new e(t)), n;
5486
+ let n = xn.get(t);
5487
+ return n === void 0 && xn.set(t, n = new e(t)), n;
5450
5488
  }
5451
5489
  static resetCache() {
5452
- Cn.clear(), vn.clear();
5490
+ xn.clear(), gn.clear();
5453
5491
  }
5454
5492
  static isValidSpecifier(e) {
5455
5493
  return this.isValidZone(e);
@@ -5475,18 +5513,18 @@ var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5475
5513
  return !1;
5476
5514
  }
5477
5515
  offsetName(e, { format: t, locale: n }) {
5478
- return Gr(e, t, n, this.name);
5516
+ return Ur(e, t, n, this.name);
5479
5517
  }
5480
5518
  formatOffset(e, t) {
5481
- return Yr(this.offset(e), t);
5519
+ return qr(this.offset(e), t);
5482
5520
  }
5483
5521
  offset(e) {
5484
5522
  if (!this.valid) return NaN;
5485
5523
  let t = new Date(e);
5486
5524
  if (isNaN(t)) return NaN;
5487
- let n = yn(this.name), [r, i, a, o, s, c, l] = n.formatToParts ? Sn(n, t) : xn(n, t);
5525
+ let n = _n(this.name), [r, i, a, o, s, c, l] = n.formatToParts ? bn(n, t) : yn(n, t);
5488
5526
  o === "BC" && (r = -Math.abs(r) + 1);
5489
- let u = Vr({
5527
+ let u = zr({
5490
5528
  year: r,
5491
5529
  month: i,
5492
5530
  day: a,
@@ -5503,48 +5541,48 @@ var Cn = /* @__PURE__ */ new Map(), D = class e extends hn {
5503
5541
  get isValid() {
5504
5542
  return this.valid;
5505
5543
  }
5506
- }, wn = {};
5507
- function Tn(e, t = {}) {
5508
- let n = JSON.stringify([e, t]), r = wn[n];
5509
- return r || (r = new Intl.ListFormat(e, t), wn[n] = r), r;
5510
- }
5511
- var En = /* @__PURE__ */ new Map();
5512
- function Dn(e, t = {}) {
5513
- let n = JSON.stringify([e, t]), r = En.get(n);
5514
- return r === void 0 && (r = new Intl.DateTimeFormat(e, t), En.set(n, r)), r;
5515
- }
5516
- var On = /* @__PURE__ */ new Map();
5517
- function kn(e, t = {}) {
5518
- let n = JSON.stringify([e, t]), r = On.get(n);
5519
- return r === void 0 && (r = new Intl.NumberFormat(e, t), On.set(n, r)), r;
5520
- }
5521
- var An = /* @__PURE__ */ new Map();
5522
- function jn(e, t = {}) {
5523
- let { base: n, ...r } = t, i = JSON.stringify([e, r]), a = An.get(i);
5524
- return a === void 0 && (a = new Intl.RelativeTimeFormat(e, t), An.set(i, a)), a;
5525
- }
5526
- var Mn = null;
5527
- function Nn() {
5528
- return Mn || (Mn = new Intl.DateTimeFormat().resolvedOptions().locale, Mn);
5529
- }
5530
- var Pn = /* @__PURE__ */ new Map();
5531
- function Fn(e) {
5532
- let t = Pn.get(e);
5533
- return t === void 0 && (t = new Intl.DateTimeFormat(e).resolvedOptions(), Pn.set(e, t)), t;
5534
- }
5535
- var In = /* @__PURE__ */ new Map();
5536
- function Ln(e) {
5537
- let t = In.get(e);
5544
+ }, Cn = {};
5545
+ function wn(e, t = {}) {
5546
+ let n = JSON.stringify([e, t]), r = Cn[n];
5547
+ return r || (r = new Intl.ListFormat(e, t), Cn[n] = r), r;
5548
+ }
5549
+ var Tn = /* @__PURE__ */ new Map();
5550
+ function En(e, t = {}) {
5551
+ let n = JSON.stringify([e, t]), r = Tn.get(n);
5552
+ return r === void 0 && (r = new Intl.DateTimeFormat(e, t), Tn.set(n, r)), r;
5553
+ }
5554
+ var Dn = /* @__PURE__ */ new Map();
5555
+ function On(e, t = {}) {
5556
+ let n = JSON.stringify([e, t]), r = Dn.get(n);
5557
+ return r === void 0 && (r = new Intl.NumberFormat(e, t), Dn.set(n, r)), r;
5558
+ }
5559
+ var kn = /* @__PURE__ */ new Map();
5560
+ function An(e, t = {}) {
5561
+ let { base: n, ...r } = t, i = JSON.stringify([e, r]), a = kn.get(i);
5562
+ return a === void 0 && (a = new Intl.RelativeTimeFormat(e, t), kn.set(i, a)), a;
5563
+ }
5564
+ var jn = null;
5565
+ function Mn() {
5566
+ return jn || (jn = new Intl.DateTimeFormat().resolvedOptions().locale, jn);
5567
+ }
5568
+ var Nn = /* @__PURE__ */ new Map();
5569
+ function Pn(e) {
5570
+ let t = Nn.get(e);
5571
+ return t === void 0 && (t = new Intl.DateTimeFormat(e).resolvedOptions(), Nn.set(e, t)), t;
5572
+ }
5573
+ var Fn = /* @__PURE__ */ new Map();
5574
+ function In(e) {
5575
+ let t = Fn.get(e);
5538
5576
  if (!t) {
5539
5577
  let n = new Intl.Locale(e);
5540
5578
  t = "getWeekInfo" in n ? n.getWeekInfo() : n.weekInfo, "minimalDays" in t || (t = {
5541
- ...qn,
5579
+ ...Kn,
5542
5580
  ...t
5543
- }), In.set(e, t);
5581
+ }), Fn.set(e, t);
5544
5582
  }
5545
5583
  return t;
5546
5584
  }
5547
- function Rn(e) {
5585
+ function Ln(e) {
5548
5586
  let t = e.indexOf("-x-");
5549
5587
  t !== -1 && (e = e.substring(0, t));
5550
5588
  let n = e.indexOf("-u-");
@@ -5552,10 +5590,10 @@ function Rn(e) {
5552
5590
  {
5553
5591
  let t, r;
5554
5592
  try {
5555
- t = Dn(e).resolvedOptions(), r = e;
5593
+ t = En(e).resolvedOptions(), r = e;
5556
5594
  } catch {
5557
5595
  let i = e.substring(0, n);
5558
- t = Dn(i).resolvedOptions(), r = i;
5596
+ t = En(i).resolvedOptions(), r = i;
5559
5597
  }
5560
5598
  let { numberingSystem: i, calendar: a } = t;
5561
5599
  return [
@@ -5565,10 +5603,10 @@ function Rn(e) {
5565
5603
  ];
5566
5604
  }
5567
5605
  }
5568
- function zn(e, t, n) {
5606
+ function Rn(e, t, n) {
5569
5607
  return n || t ? (e.includes("-u-") || (e += "-u"), n && (e += `-ca-${n}`), t && (e += `-nu-${t}`), e) : e;
5570
5608
  }
5571
- function Bn(e) {
5609
+ function zn(e) {
5572
5610
  let t = [];
5573
5611
  for (let n = 1; n <= 12; n++) {
5574
5612
  let r = Q.utc(2009, n, 1);
@@ -5576,7 +5614,7 @@ function Bn(e) {
5576
5614
  }
5577
5615
  return t;
5578
5616
  }
5579
- function Vn(e) {
5617
+ function Bn(e) {
5580
5618
  let t = [];
5581
5619
  for (let n = 1; n <= 7; n++) {
5582
5620
  let r = Q.utc(2016, 11, 13 + n);
@@ -5584,14 +5622,14 @@ function Vn(e) {
5584
5622
  }
5585
5623
  return t;
5586
5624
  }
5587
- function Hn(e, t, n, r) {
5625
+ function Vn(e, t, n, r) {
5588
5626
  let i = e.listingMode();
5589
5627
  return i === "error" ? null : i === "en" ? n(t) : r(t);
5590
5628
  }
5591
- function Un(e) {
5592
- return e.numberingSystem && e.numberingSystem !== "latn" ? !1 : e.numberingSystem === "latn" || !e.locale || e.locale.startsWith("en") || Fn(e.locale).numberingSystem === "latn";
5629
+ function Hn(e) {
5630
+ return e.numberingSystem && e.numberingSystem !== "latn" ? !1 : e.numberingSystem === "latn" || !e.locale || e.locale.startsWith("en") || Pn(e.locale).numberingSystem === "latn";
5593
5631
  }
5594
- var Wn = class {
5632
+ var Un = class {
5595
5633
  constructor(e, t, n) {
5596
5634
  this.padTo = n.padTo || 0, this.floor = n.floor || !1;
5597
5635
  let { padTo: r, floor: i, ...a } = n;
@@ -5600,7 +5638,7 @@ var Wn = class {
5600
5638
  useGrouping: !1,
5601
5639
  ...n
5602
5640
  };
5603
- n.padTo > 0 && (t.minimumIntegerDigits = n.padTo), this.inf = kn(e, t);
5641
+ n.padTo > 0 && (t.minimumIntegerDigits = n.padTo), this.inf = On(e, t);
5604
5642
  }
5605
5643
  }
5606
5644
  format(e) {
@@ -5608,19 +5646,19 @@ var Wn = class {
5608
5646
  let t = this.floor ? Math.floor(e) : e;
5609
5647
  return this.inf.format(t);
5610
5648
  }
5611
- return R(this.floor ? Math.floor(e) : Lr(e, 3), this.padTo);
5649
+ return B(this.floor ? Math.floor(e) : Fr(e, 3), this.padTo);
5612
5650
  }
5613
- }, Gn = class {
5651
+ }, Wn = class {
5614
5652
  constructor(e, t, n) {
5615
5653
  this.opts = n, this.originalZone = void 0;
5616
5654
  let r;
5617
5655
  if (this.opts.timeZone) this.dt = e;
5618
5656
  else if (e.zone.type === "fixed") {
5619
5657
  let t = -1 * (e.offset / 60), n = t >= 0 ? `Etc/GMT+${t}` : `Etc/GMT${t}`;
5620
- e.offset !== 0 && D.create(n).valid ? (r = n, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5658
+ e.offset !== 0 && Sn.create(n).valid ? (r = n, this.dt = e) : (r = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5621
5659
  } else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, r = e.zone.name) : (r = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
5622
5660
  let i = { ...this.opts };
5623
- i.timeZone = i.timeZone || r, this.dtf = Dn(t, i);
5661
+ i.timeZone = i.timeZone || r, this.dtf = En(t, i);
5624
5662
  }
5625
5663
  format() {
5626
5664
  return this.originalZone ? this.formatToParts().map(({ value: e }) => e).join("") : this.dtf.format(this.dt.toJSDate());
@@ -5644,40 +5682,40 @@ var Wn = class {
5644
5682
  resolvedOptions() {
5645
5683
  return this.dtf.resolvedOptions();
5646
5684
  }
5647
- }, Kn = class {
5685
+ }, Gn = class {
5648
5686
  constructor(e, t, n) {
5649
5687
  this.opts = {
5650
5688
  style: "long",
5651
5689
  ...n
5652
- }, !t && Or() && (this.rtf = jn(e, n));
5690
+ }, !t && Dr() && (this.rtf = An(e, n));
5653
5691
  }
5654
5692
  format(e, t) {
5655
- return this.rtf ? this.rtf.format(e, t) : mi(t, e, this.opts.numeric, this.opts.style !== "long");
5693
+ return this.rtf ? this.rtf.format(e, t) : fi(t, e, this.opts.numeric, this.opts.style !== "long");
5656
5694
  }
5657
5695
  formatToParts(e, t) {
5658
5696
  return this.rtf ? this.rtf.formatToParts(e, t) : [];
5659
5697
  }
5660
- }, qn = {
5698
+ }, Kn = {
5661
5699
  firstDay: 1,
5662
5700
  minimalDays: 4,
5663
5701
  weekend: [6, 7]
5664
- }, O = class e {
5702
+ }, k = class e {
5665
5703
  static fromOpts(t) {
5666
5704
  return e.create(t.locale, t.numberingSystem, t.outputCalendar, t.weekSettings, t.defaultToEN);
5667
5705
  }
5668
5706
  static create(t, n, r, i, a = !1) {
5669
- let o = t || M.defaultLocale, s = o || (a ? "en-US" : Nn()), c = n || M.defaultNumberingSystem, l = r || M.defaultOutputCalendar, u = Pr(i) || M.defaultWeekSettings;
5707
+ let o = t || N.defaultLocale, s = o || (a ? "en-US" : Mn()), c = n || N.defaultNumberingSystem, l = r || N.defaultOutputCalendar, u = Mr(i) || N.defaultWeekSettings;
5670
5708
  return new e(s, c, l, u, o);
5671
5709
  }
5672
5710
  static resetCache() {
5673
- Mn = null, En.clear(), On.clear(), An.clear(), Pn.clear(), In.clear();
5711
+ jn = null, Tn.clear(), Dn.clear(), kn.clear(), Nn.clear(), Fn.clear();
5674
5712
  }
5675
5713
  static fromObject({ locale: t, numberingSystem: n, outputCalendar: r, weekSettings: i } = {}) {
5676
5714
  return e.create(t, n, r, i);
5677
5715
  }
5678
5716
  constructor(e, t, n, r, i) {
5679
- let [a, o, s] = Rn(e);
5680
- this.locale = a, this.numberingSystem = t || o || null, this.outputCalendar = n || s || null, this.weekSettings = r, this.intl = zn(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = {
5717
+ let [a, o, s] = Ln(e);
5718
+ this.locale = a, this.numberingSystem = t || o || null, this.outputCalendar = n || s || null, this.weekSettings = r, this.intl = Rn(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = {
5681
5719
  format: {},
5682
5720
  standalone: {}
5683
5721
  }, this.monthsCache = {
@@ -5686,14 +5724,14 @@ var Wn = class {
5686
5724
  }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
5687
5725
  }
5688
5726
  get fastNumbers() {
5689
- return this.fastNumbersCached ??= Un(this), this.fastNumbersCached;
5727
+ return this.fastNumbersCached ??= Hn(this), this.fastNumbersCached;
5690
5728
  }
5691
5729
  listingMode() {
5692
5730
  let e = this.isEnglish(), t = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
5693
5731
  return e && t ? "en" : "intl";
5694
5732
  }
5695
5733
  clone(t) {
5696
- return !t || Object.getOwnPropertyNames(t).length === 0 ? this : e.create(t.locale || this.specifiedLocale, t.numberingSystem || this.numberingSystem, t.outputCalendar || this.outputCalendar, Pr(t.weekSettings) || this.weekSettings, t.defaultToEN || !1);
5734
+ return !t || Object.getOwnPropertyNames(t).length === 0 ? this : e.create(t.locale || this.specifiedLocale, t.numberingSystem || this.numberingSystem, t.outputCalendar || this.outputCalendar, Mr(t.weekSettings) || this.weekSettings, t.defaultToEN || !1);
5697
5735
  }
5698
5736
  redefaultToEN(e = {}) {
5699
5737
  return this.clone({
@@ -5708,7 +5746,7 @@ var Wn = class {
5708
5746
  });
5709
5747
  }
5710
5748
  months(e, t = !1) {
5711
- return Hn(this, e, ei, () => {
5749
+ return Vn(this, e, Qr, () => {
5712
5750
  let n = this.intl === "ja" || this.intl.startsWith("ja-");
5713
5751
  t &= !n;
5714
5752
  let r = t ? {
@@ -5717,24 +5755,24 @@ var Wn = class {
5717
5755
  } : { month: e }, i = t ? "format" : "standalone";
5718
5756
  if (!this.monthsCache[i][e]) {
5719
5757
  let t = n ? (e) => this.dtFormatter(e, r).format() : (e) => this.extract(e, r, "month");
5720
- this.monthsCache[i][e] = Bn(t);
5758
+ this.monthsCache[i][e] = zn(t);
5721
5759
  }
5722
5760
  return this.monthsCache[i][e];
5723
5761
  });
5724
5762
  }
5725
5763
  weekdays(e, t = !1) {
5726
- return Hn(this, e, ii, () => {
5764
+ return Vn(this, e, ni, () => {
5727
5765
  let n = t ? {
5728
5766
  weekday: e,
5729
5767
  year: "numeric",
5730
5768
  month: "long",
5731
5769
  day: "numeric"
5732
5770
  } : { weekday: e }, r = t ? "format" : "standalone";
5733
- return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = Vn((e) => this.extract(e, n, "weekday"))), this.weekdaysCache[r][e];
5771
+ return this.weekdaysCache[r][e] || (this.weekdaysCache[r][e] = Bn((e) => this.extract(e, n, "weekday"))), this.weekdaysCache[r][e];
5734
5772
  });
5735
5773
  }
5736
5774
  meridiems() {
5737
- return Hn(this, void 0, () => ai, () => {
5775
+ return Vn(this, void 0, () => ri, () => {
5738
5776
  if (!this.meridiemCache) {
5739
5777
  let e = {
5740
5778
  hour: "numeric",
@@ -5746,7 +5784,7 @@ var Wn = class {
5746
5784
  });
5747
5785
  }
5748
5786
  eras(e) {
5749
- return Hn(this, e, li, () => {
5787
+ return Vn(this, e, si, () => {
5750
5788
  let t = { era: e };
5751
5789
  return this.eraCache[e] || (this.eraCache[e] = [Q.utc(-40, 1, 1), Q.utc(2017, 1, 1)].map((e) => this.extract(e, t, "era"))), this.eraCache[e];
5752
5790
  });
@@ -5756,22 +5794,22 @@ var Wn = class {
5756
5794
  return r ? r.value : null;
5757
5795
  }
5758
5796
  numberFormatter(e = {}) {
5759
- return new Wn(this.intl, e.forceSimple || this.fastNumbers, e);
5797
+ return new Un(this.intl, e.forceSimple || this.fastNumbers, e);
5760
5798
  }
5761
5799
  dtFormatter(e, t = {}) {
5762
- return new Gn(e, this.intl, t);
5800
+ return new Wn(e, this.intl, t);
5763
5801
  }
5764
5802
  relFormatter(e = {}) {
5765
- return new Kn(this.intl, this.isEnglish(), e);
5803
+ return new Gn(this.intl, this.isEnglish(), e);
5766
5804
  }
5767
5805
  listFormatter(e = {}) {
5768
- return Tn(this.intl, e);
5806
+ return wn(this.intl, e);
5769
5807
  }
5770
5808
  isEnglish() {
5771
- return this.locale === "en" || this.locale.toLowerCase() === "en-us" || Fn(this.intl).locale.startsWith("en-us");
5809
+ return this.locale === "en" || this.locale.toLowerCase() === "en-us" || Pn(this.intl).locale.startsWith("en-us");
5772
5810
  }
5773
5811
  getWeekSettings() {
5774
- return this.weekSettings ? this.weekSettings : kr() ? Ln(this.locale) : qn;
5812
+ return this.weekSettings ? this.weekSettings : Or() ? In(this.locale) : Kn;
5775
5813
  }
5776
5814
  getStartOfWeek() {
5777
5815
  return this.getWeekSettings().firstDay;
@@ -5788,9 +5826,9 @@ var Wn = class {
5788
5826
  toString() {
5789
5827
  return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;
5790
5828
  }
5791
- }, Jn = null, k = class e extends hn {
5829
+ }, qn = null, A = class e extends pn {
5792
5830
  static get utcInstance() {
5793
- return Jn === null && (Jn = new e(0)), Jn;
5831
+ return qn === null && (qn = new e(0)), qn;
5794
5832
  }
5795
5833
  static instance(t) {
5796
5834
  return t === 0 ? e.utcInstance : new e(t);
@@ -5798,7 +5836,7 @@ var Wn = class {
5798
5836
  static parseSpecifier(t) {
5799
5837
  if (t) {
5800
5838
  let n = t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
5801
- if (n) return new e(Kr(n[1], n[2]));
5839
+ if (n) return new e(Wr(n[1], n[2]));
5802
5840
  }
5803
5841
  return null;
5804
5842
  }
@@ -5809,16 +5847,16 @@ var Wn = class {
5809
5847
  return "fixed";
5810
5848
  }
5811
5849
  get name() {
5812
- return this.fixed === 0 ? "UTC" : `UTC${Yr(this.fixed, "narrow")}`;
5850
+ return this.fixed === 0 ? "UTC" : `UTC${qr(this.fixed, "narrow")}`;
5813
5851
  }
5814
5852
  get ianaName() {
5815
- return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${Yr(-this.fixed, "narrow")}`;
5853
+ return this.fixed === 0 ? "Etc/UTC" : `Etc/GMT${qr(-this.fixed, "narrow")}`;
5816
5854
  }
5817
5855
  offsetName() {
5818
5856
  return this.name;
5819
5857
  }
5820
5858
  formatOffset(e, t) {
5821
- return Yr(this.fixed, t);
5859
+ return qr(this.fixed, t);
5822
5860
  }
5823
5861
  get isUniversal() {
5824
5862
  return !0;
@@ -5832,7 +5870,7 @@ var Wn = class {
5832
5870
  get isValid() {
5833
5871
  return !0;
5834
5872
  }
5835
- }, Yn = class extends hn {
5873
+ }, Jn = class extends pn {
5836
5874
  constructor(e) {
5837
5875
  super(), this.zoneName = e;
5838
5876
  }
@@ -5861,16 +5899,16 @@ var Wn = class {
5861
5899
  return !1;
5862
5900
  }
5863
5901
  };
5864
- function A(e, t) {
5865
- if (F(e) || e === null) return t;
5866
- if (e instanceof hn) return e;
5867
- if (Er(e)) {
5902
+ function j(e, t) {
5903
+ if (I(e) || e === null) return t;
5904
+ if (e instanceof pn) return e;
5905
+ if (Tr(e)) {
5868
5906
  let n = e.toLowerCase();
5869
- return n === "default" ? t : n === "local" || n === "system" ? _n.instance : n === "utc" || n === "gmt" ? k.utcInstance : k.parseSpecifier(n) || D.create(e);
5907
+ return n === "default" ? t : n === "local" || n === "system" ? hn.instance : n === "utc" || n === "gmt" ? A.utcInstance : A.parseSpecifier(n) || Sn.create(e);
5870
5908
  }
5871
- return I(e) ? k.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new Yn(e);
5909
+ return L(e) ? A.instance(e) : typeof e == "object" && "offset" in e && typeof e.offset == "function" ? e : new Jn(e);
5872
5910
  }
5873
- var Xn = {
5911
+ var Yn = {
5874
5912
  arab: "[٠-٩]",
5875
5913
  arabext: "[۰-۹]",
5876
5914
  bali: "[᭐-᭙]",
@@ -5892,7 +5930,7 @@ var Xn = {
5892
5930
  thai: "[๐-๙]",
5893
5931
  tibt: "[༠-༩]",
5894
5932
  latn: "\\d"
5895
- }, Zn = {
5933
+ }, Xn = {
5896
5934
  arab: [1632, 1641],
5897
5935
  arabext: [1776, 1785],
5898
5936
  bali: [6992, 7001],
@@ -5912,16 +5950,16 @@ var Xn = {
5912
5950
  telu: [3174, 3183],
5913
5951
  thai: [3664, 3673],
5914
5952
  tibt: [3872, 3881]
5915
- }, Qn = Xn.hanidec.replace(/[\[|\]]/g, "").split("");
5916
- function $n(e) {
5953
+ }, Zn = Yn.hanidec.replace(/[\[|\]]/g, "").split("");
5954
+ function Qn(e) {
5917
5955
  let t = parseInt(e, 10);
5918
5956
  if (isNaN(t)) {
5919
5957
  t = "";
5920
5958
  for (let n = 0; n < e.length; n++) {
5921
5959
  let r = e.charCodeAt(n);
5922
- if (e[n].search(Xn.hanidec) !== -1) t += Qn.indexOf(e[n]);
5923
- else for (let e in Zn) {
5924
- let [n, i] = Zn[e];
5960
+ if (e[n].search(Yn.hanidec) !== -1) t += Zn.indexOf(e[n]);
5961
+ else for (let e in Xn) {
5962
+ let [n, i] = Xn[e];
5925
5963
  r >= n && r <= i && (t += r - n);
5926
5964
  }
5927
5965
  }
@@ -5929,76 +5967,76 @@ function $n(e) {
5929
5967
  }
5930
5968
  return t;
5931
5969
  }
5932
- var er = /* @__PURE__ */ new Map();
5933
- function tr() {
5934
- er.clear();
5970
+ var $n = /* @__PURE__ */ new Map();
5971
+ function er() {
5972
+ $n.clear();
5935
5973
  }
5936
- function j({ numberingSystem: e }, t = "") {
5937
- let n = e || "latn", r = er.get(n);
5938
- r === void 0 && (r = /* @__PURE__ */ new Map(), er.set(n, r));
5974
+ function M({ numberingSystem: e }, t = "") {
5975
+ let n = e || "latn", r = $n.get(n);
5976
+ r === void 0 && (r = /* @__PURE__ */ new Map(), $n.set(n, r));
5939
5977
  let i = r.get(t);
5940
- return i === void 0 && (i = RegExp(`${Xn[n]}${t}`), r.set(t, i)), i;
5978
+ return i === void 0 && (i = RegExp(`${Yn[n]}${t}`), r.set(t, i)), i;
5941
5979
  }
5942
- var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr = 60, cr, lr = null, M = class {
5980
+ var tr = () => Date.now(), nr = "system", rr = null, ir = null, ar = null, or = 60, sr, cr = null, N = class {
5943
5981
  static get now() {
5944
- return nr;
5982
+ return tr;
5945
5983
  }
5946
5984
  static set now(e) {
5947
- nr = e;
5985
+ tr = e;
5948
5986
  }
5949
5987
  static set defaultZone(e) {
5950
- rr = e;
5988
+ nr = e;
5951
5989
  }
5952
5990
  static get defaultZone() {
5953
- return A(rr, _n.instance);
5991
+ return j(nr, hn.instance);
5954
5992
  }
5955
5993
  static get defaultLocale() {
5956
- return ir;
5994
+ return rr;
5957
5995
  }
5958
5996
  static set defaultLocale(e) {
5959
- ir = e;
5997
+ rr = e;
5960
5998
  }
5961
5999
  static get defaultNumberingSystem() {
5962
- return ar;
6000
+ return ir;
5963
6001
  }
5964
6002
  static set defaultNumberingSystem(e) {
5965
- ar = e;
6003
+ ir = e;
5966
6004
  }
5967
6005
  static get defaultOutputCalendar() {
5968
- return or;
6006
+ return ar;
5969
6007
  }
5970
6008
  static set defaultOutputCalendar(e) {
5971
- or = e;
6009
+ ar = e;
5972
6010
  }
5973
6011
  static get defaultWeekSettings() {
5974
- return lr;
6012
+ return cr;
5975
6013
  }
5976
6014
  static set defaultWeekSettings(e) {
5977
- lr = Pr(e);
6015
+ cr = Mr(e);
5978
6016
  }
5979
6017
  static get twoDigitCutoffYear() {
5980
- return sr;
6018
+ return or;
5981
6019
  }
5982
6020
  static set twoDigitCutoffYear(e) {
5983
- sr = e % 100;
6021
+ or = e % 100;
5984
6022
  }
5985
6023
  static get throwOnInvalid() {
5986
- return cr;
6024
+ return sr;
5987
6025
  }
5988
6026
  static set throwOnInvalid(e) {
5989
- cr = e;
6027
+ sr = e;
5990
6028
  }
5991
6029
  static resetCaches() {
5992
- O.resetCache(), D.resetCache(), Q.resetCache(), tr();
6030
+ k.resetCache(), Sn.resetCache(), Q.resetCache(), er();
5993
6031
  }
5994
- }, N = class {
6032
+ }, P = class {
5995
6033
  constructor(e, t) {
5996
6034
  this.reason = e, this.explanation = t;
5997
6035
  }
5998
6036
  toMessage() {
5999
6037
  return this.explanation ? `${this.reason}: ${this.explanation}` : this.reason;
6000
6038
  }
6001
- }, ur = [
6039
+ }, lr = [
6002
6040
  0,
6003
6041
  31,
6004
6042
  59,
@@ -6011,7 +6049,7 @@ var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr =
6011
6049
  273,
6012
6050
  304,
6013
6051
  334
6014
- ], dr = [
6052
+ ], ur = [
6015
6053
  0,
6016
6054
  31,
6017
6055
  60,
@@ -6025,69 +6063,69 @@ var nr = () => Date.now(), rr = "system", ir = null, ar = null, or = null, sr =
6025
6063
  305,
6026
6064
  335
6027
6065
  ];
6028
- function P(e, t) {
6029
- return new N("unit out of range", `you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`);
6066
+ function F(e, t) {
6067
+ return new P("unit out of range", `you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`);
6030
6068
  }
6031
- function fr(e, t, n) {
6069
+ function dr(e, t, n) {
6032
6070
  let r = new Date(Date.UTC(e, t - 1, n));
6033
6071
  e < 100 && e >= 0 && r.setUTCFullYear(r.getUTCFullYear() - 1900);
6034
6072
  let i = r.getUTCDay();
6035
6073
  return i === 0 ? 7 : i;
6036
6074
  }
6037
- function pr(e, t, n) {
6038
- return n + (Rr(e) ? dr : ur)[t - 1];
6075
+ function fr(e, t, n) {
6076
+ return n + (Ir(e) ? ur : lr)[t - 1];
6039
6077
  }
6040
- function mr(e, t) {
6041
- let n = Rr(e) ? dr : ur, r = n.findIndex((e) => e < t), i = t - n[r];
6078
+ function pr(e, t) {
6079
+ let n = Ir(e) ? ur : lr, r = n.findIndex((e) => e < t), i = t - n[r];
6042
6080
  return {
6043
6081
  month: r + 1,
6044
6082
  day: i
6045
6083
  };
6046
6084
  }
6047
- function hr(e, t) {
6085
+ function mr(e, t) {
6048
6086
  return (e - t + 7) % 7 + 1;
6049
6087
  }
6050
- function gr(e, t = 4, n = 1) {
6051
- let { year: r, month: i, day: a } = e, o = pr(r, i, a), s = hr(fr(r, i, a), n), c = Math.floor((o - s + 14 - t) / 7), l;
6052
- return c < 1 ? (l = r - 1, c = Ur(l, t, n)) : c > Ur(r, t, n) ? (l = r + 1, c = 1) : l = r, {
6088
+ function hr(e, t = 4, n = 1) {
6089
+ let { year: r, month: i, day: a } = e, o = fr(r, i, a), s = mr(dr(r, i, a), n), c = Math.floor((o - s + 14 - t) / 7), l;
6090
+ return c < 1 ? (l = r - 1, c = Vr(l, t, n)) : c > Vr(r, t, n) ? (l = r + 1, c = 1) : l = r, {
6053
6091
  weekYear: l,
6054
6092
  weekNumber: c,
6055
6093
  weekday: s,
6056
- ...Xr(e)
6094
+ ...Jr(e)
6057
6095
  };
6058
6096
  }
6059
- function _r(e, t = 4, n = 1) {
6060
- let { weekYear: r, weekNumber: i, weekday: a } = e, o = hr(fr(r, 1, t), n), s = zr(r), c = i * 7 + a - o - 7 + t, l;
6061
- c < 1 ? (l = r - 1, c += zr(l)) : c > s ? (l = r + 1, c -= zr(r)) : l = r;
6062
- let { month: u, day: d } = mr(l, c);
6097
+ function gr(e, t = 4, n = 1) {
6098
+ let { weekYear: r, weekNumber: i, weekday: a } = e, o = mr(dr(r, 1, t), n), s = Lr(r), c = i * 7 + a - o - 7 + t, l;
6099
+ c < 1 ? (l = r - 1, c += Lr(l)) : c > s ? (l = r + 1, c -= Lr(r)) : l = r;
6100
+ let { month: u, day: d } = pr(l, c);
6063
6101
  return {
6064
6102
  year: l,
6065
6103
  month: u,
6066
6104
  day: d,
6067
- ...Xr(e)
6105
+ ...Jr(e)
6068
6106
  };
6069
6107
  }
6070
- function vr(e) {
6108
+ function _r(e) {
6071
6109
  let { year: t, month: n, day: r } = e;
6072
6110
  return {
6073
6111
  year: t,
6074
- ordinal: pr(t, n, r),
6075
- ...Xr(e)
6112
+ ordinal: fr(t, n, r),
6113
+ ...Jr(e)
6076
6114
  };
6077
6115
  }
6078
- function yr(e) {
6079
- let { year: t, ordinal: n } = e, { month: r, day: i } = mr(t, n);
6116
+ function vr(e) {
6117
+ let { year: t, ordinal: n } = e, { month: r, day: i } = pr(t, n);
6080
6118
  return {
6081
6119
  year: t,
6082
6120
  month: r,
6083
6121
  day: i,
6084
- ...Xr(e)
6122
+ ...Jr(e)
6085
6123
  };
6086
6124
  }
6087
- function br(e, t) {
6088
- if (!F(e.localWeekday) || !F(e.localWeekNumber) || !F(e.localWeekYear)) {
6089
- if (!F(e.weekday) || !F(e.weekNumber) || !F(e.weekYear)) throw new x("Cannot mix locale-based week fields with ISO-based week fields");
6090
- return F(e.localWeekday) || (e.weekday = e.localWeekday), F(e.localWeekNumber) || (e.weekNumber = e.localWeekNumber), F(e.localWeekYear) || (e.weekYear = e.localWeekYear), delete e.localWeekday, delete e.localWeekNumber, delete e.localWeekYear, {
6125
+ function yr(e, t) {
6126
+ if (!I(e.localWeekday) || !I(e.localWeekNumber) || !I(e.localWeekYear)) {
6127
+ if (!I(e.weekday) || !I(e.weekNumber) || !I(e.weekYear)) throw new Ht("Cannot mix locale-based week fields with ISO-based week fields");
6128
+ return I(e.localWeekday) || (e.weekday = e.localWeekday), I(e.localWeekNumber) || (e.weekNumber = e.localWeekNumber), I(e.localWeekYear) || (e.weekYear = e.localWeekYear), delete e.localWeekday, delete e.localWeekNumber, delete e.localWeekYear, {
6091
6129
  minDaysInFirstWeek: t.getMinDaysInFirstWeek(),
6092
6130
  startOfWeek: t.getStartOfWeek()
6093
6131
  };
@@ -6097,99 +6135,99 @@ function br(e, t) {
6097
6135
  startOfWeek: 1
6098
6136
  };
6099
6137
  }
6100
- function xr(e, t = 4, n = 1) {
6101
- let r = Tr(e.weekYear), i = L(e.weekNumber, 1, Ur(e.weekYear, t, n)), a = L(e.weekday, 1, 7);
6102
- return r ? i ? !a && P("weekday", e.weekday) : P("week", e.weekNumber) : P("weekYear", e.weekYear);
6138
+ function br(e, t = 4, n = 1) {
6139
+ let r = wr(e.weekYear), i = z(e.weekNumber, 1, Vr(e.weekYear, t, n)), a = z(e.weekday, 1, 7);
6140
+ return r ? i ? !a && F("weekday", e.weekday) : F("week", e.weekNumber) : F("weekYear", e.weekYear);
6141
+ }
6142
+ function xr(e) {
6143
+ let t = wr(e.year), n = z(e.ordinal, 1, Lr(e.year));
6144
+ return t ? !n && F("ordinal", e.ordinal) : F("year", e.year);
6103
6145
  }
6104
6146
  function Sr(e) {
6105
- let t = Tr(e.year), n = L(e.ordinal, 1, zr(e.year));
6106
- return t ? !n && P("ordinal", e.ordinal) : P("year", e.year);
6147
+ let t = wr(e.year), n = z(e.month, 1, 12), r = z(e.day, 1, Rr(e.year, e.month));
6148
+ return t ? n ? !r && F("day", e.day) : F("month", e.month) : F("year", e.year);
6107
6149
  }
6108
6150
  function Cr(e) {
6109
- let t = Tr(e.year), n = L(e.month, 1, 12), r = L(e.day, 1, Br(e.year, e.month));
6110
- return t ? n ? !r && P("day", e.day) : P("month", e.month) : P("year", e.year);
6111
- }
6112
- function wr(e) {
6113
- let { hour: t, minute: n, second: r, millisecond: i } = e, a = L(t, 0, 23) || t === 24 && n === 0 && r === 0 && i === 0, o = L(n, 0, 59), s = L(r, 0, 59), c = L(i, 0, 999);
6114
- return a ? o ? s ? !c && P("millisecond", i) : P("second", r) : P("minute", n) : P("hour", t);
6151
+ let { hour: t, minute: n, second: r, millisecond: i } = e, a = z(t, 0, 23) || t === 24 && n === 0 && r === 0 && i === 0, o = z(n, 0, 59), s = z(r, 0, 59), c = z(i, 0, 999);
6152
+ return a ? o ? s ? !c && F("millisecond", i) : F("second", r) : F("minute", n) : F("hour", t);
6115
6153
  }
6116
- function F(e) {
6154
+ function I(e) {
6117
6155
  return e === void 0;
6118
6156
  }
6119
- function I(e) {
6157
+ function L(e) {
6120
6158
  return typeof e == "number";
6121
6159
  }
6122
- function Tr(e) {
6160
+ function wr(e) {
6123
6161
  return typeof e == "number" && e % 1 == 0;
6124
6162
  }
6125
- function Er(e) {
6163
+ function Tr(e) {
6126
6164
  return typeof e == "string";
6127
6165
  }
6128
- function Dr(e) {
6166
+ function Er(e) {
6129
6167
  return Object.prototype.toString.call(e) === "[object Date]";
6130
6168
  }
6131
- function Or() {
6169
+ function Dr() {
6132
6170
  try {
6133
6171
  return typeof Intl < "u" && !!Intl.RelativeTimeFormat;
6134
6172
  } catch {
6135
6173
  return !1;
6136
6174
  }
6137
6175
  }
6138
- function kr() {
6176
+ function Or() {
6139
6177
  try {
6140
6178
  return typeof Intl < "u" && !!Intl.Locale && ("weekInfo" in Intl.Locale.prototype || "getWeekInfo" in Intl.Locale.prototype);
6141
6179
  } catch {
6142
6180
  return !1;
6143
6181
  }
6144
6182
  }
6145
- function Ar(e) {
6183
+ function kr(e) {
6146
6184
  return Array.isArray(e) ? e : [e];
6147
6185
  }
6148
- function jr(e, t, n) {
6186
+ function Ar(e, t, n) {
6149
6187
  if (e.length !== 0) return e.reduce((e, r) => {
6150
6188
  let i = [t(r), r];
6151
6189
  return e && n(e[0], i[0]) === e[0] ? e : i;
6152
6190
  }, null)[1];
6153
6191
  }
6154
- function Mr(e, t) {
6192
+ function jr(e, t) {
6155
6193
  return t.reduce((t, n) => (t[n] = e[n], t), {});
6156
6194
  }
6157
- function Nr(e, t) {
6195
+ function R(e, t) {
6158
6196
  return Object.prototype.hasOwnProperty.call(e, t);
6159
6197
  }
6160
- function Pr(e) {
6198
+ function Mr(e) {
6161
6199
  if (e == null) return null;
6162
- if (typeof e != "object") throw new S("Week settings must be an object");
6163
- if (!L(e.firstDay, 1, 7) || !L(e.minimalDays, 1, 7) || !Array.isArray(e.weekend) || e.weekend.some((e) => !L(e, 1, 7))) throw new S("Invalid week settings");
6200
+ if (typeof e != "object") throw new w("Week settings must be an object");
6201
+ if (!z(e.firstDay, 1, 7) || !z(e.minimalDays, 1, 7) || !Array.isArray(e.weekend) || e.weekend.some((e) => !z(e, 1, 7))) throw new w("Invalid week settings");
6164
6202
  return {
6165
6203
  firstDay: e.firstDay,
6166
6204
  minimalDays: e.minimalDays,
6167
6205
  weekend: Array.from(e.weekend)
6168
6206
  };
6169
6207
  }
6170
- function L(e, t, n) {
6171
- return Tr(e) && e >= t && e <= n;
6208
+ function z(e, t, n) {
6209
+ return wr(e) && e >= t && e <= n;
6172
6210
  }
6173
- function Fr(e, t) {
6211
+ function Nr(e, t) {
6174
6212
  return e - t * Math.floor(e / t);
6175
6213
  }
6176
- function R(e, t = 2) {
6214
+ function B(e, t = 2) {
6177
6215
  let n = e < 0, r;
6178
6216
  return r = n ? "-" + ("" + -e).padStart(t, "0") : ("" + e).padStart(t, "0"), r;
6179
6217
  }
6180
- function z(e) {
6181
- if (!(F(e) || e === null || e === "")) return parseInt(e, 10);
6218
+ function V(e) {
6219
+ if (!(I(e) || e === null || e === "")) return parseInt(e, 10);
6182
6220
  }
6183
- function B(e) {
6184
- if (!(F(e) || e === null || e === "")) return parseFloat(e);
6221
+ function H(e) {
6222
+ if (!(I(e) || e === null || e === "")) return parseFloat(e);
6185
6223
  }
6186
- function Ir(e) {
6187
- if (!(F(e) || e === null || e === "")) {
6224
+ function Pr(e) {
6225
+ if (!(I(e) || e === null || e === "")) {
6188
6226
  let t = parseFloat("0." + e) * 1e3;
6189
6227
  return Math.floor(t);
6190
6228
  }
6191
6229
  }
6192
- function Lr(e, t, n = "round") {
6230
+ function Fr(e, t, n = "round") {
6193
6231
  let r = 10 ** t;
6194
6232
  switch (n) {
6195
6233
  case "expand": return e > 0 ? Math.ceil(e * r) / r : Math.floor(e * r) / r;
@@ -6200,15 +6238,15 @@ function Lr(e, t, n = "round") {
6200
6238
  default: throw RangeError(`Value rounding ${n} is out of range`);
6201
6239
  }
6202
6240
  }
6203
- function Rr(e) {
6241
+ function Ir(e) {
6204
6242
  return e % 4 == 0 && (e % 100 != 0 || e % 400 == 0);
6205
6243
  }
6206
- function zr(e) {
6207
- return Rr(e) ? 366 : 365;
6244
+ function Lr(e) {
6245
+ return Ir(e) ? 366 : 365;
6208
6246
  }
6209
- function Br(e, t) {
6210
- let n = Fr(t - 1, 12) + 1, r = e + (t - n) / 12;
6211
- return n === 2 ? Rr(r) ? 29 : 28 : [
6247
+ function Rr(e, t) {
6248
+ let n = Nr(t - 1, 12) + 1, r = e + (t - n) / 12;
6249
+ return n === 2 ? Ir(r) ? 29 : 28 : [
6212
6250
  31,
6213
6251
  null,
6214
6252
  31,
@@ -6223,21 +6261,21 @@ function Br(e, t) {
6223
6261
  31
6224
6262
  ][n - 1];
6225
6263
  }
6226
- function Vr(e) {
6264
+ function zr(e) {
6227
6265
  let t = Date.UTC(e.year, e.month - 1, e.day, e.hour, e.minute, e.second, e.millisecond);
6228
6266
  return e.year < 100 && e.year >= 0 && (t = new Date(t), t.setUTCFullYear(e.year, e.month - 1, e.day)), +t;
6229
6267
  }
6230
- function Hr(e, t, n) {
6231
- return -hr(fr(e, 1, t), n) + t - 1;
6268
+ function Br(e, t, n) {
6269
+ return -mr(dr(e, 1, t), n) + t - 1;
6232
6270
  }
6233
- function Ur(e, t = 4, n = 1) {
6234
- let r = Hr(e, t, n), i = Hr(e + 1, t, n);
6235
- return (zr(e) - r + i) / 7;
6271
+ function Vr(e, t = 4, n = 1) {
6272
+ let r = Br(e, t, n), i = Br(e + 1, t, n);
6273
+ return (Lr(e) - r + i) / 7;
6236
6274
  }
6237
- function Wr(e) {
6238
- return e > 99 ? e : e > M.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
6275
+ function Hr(e) {
6276
+ return e > 99 ? e : e > N.twoDigitCutoffYear ? 1900 + e : 2e3 + e;
6239
6277
  }
6240
- function Gr(e, t, n, r = null) {
6278
+ function Ur(e, t, n, r = null) {
6241
6279
  let i = new Date(e), a = {
6242
6280
  hourCycle: "h23",
6243
6281
  year: "numeric",
@@ -6253,44 +6291,44 @@ function Gr(e, t, n, r = null) {
6253
6291
  }, s = new Intl.DateTimeFormat(n, o).formatToParts(i).find((e) => e.type.toLowerCase() === "timezonename");
6254
6292
  return s ? s.value : null;
6255
6293
  }
6256
- function Kr(e, t) {
6294
+ function Wr(e, t) {
6257
6295
  let n = parseInt(e, 10);
6258
6296
  Number.isNaN(n) && (n = 0);
6259
6297
  let r = parseInt(t, 10) || 0, i = n < 0 || Object.is(n, -0) ? -r : r;
6260
6298
  return n * 60 + i;
6261
6299
  }
6262
- function qr(e) {
6300
+ function Gr(e) {
6263
6301
  let t = Number(e);
6264
- if (typeof e == "boolean" || e === "" || !Number.isFinite(t)) throw new S(`Invalid unit value ${e}`);
6302
+ if (typeof e == "boolean" || e === "" || !Number.isFinite(t)) throw new w(`Invalid unit value ${e}`);
6265
6303
  return t;
6266
6304
  }
6267
- function Jr(e, t) {
6305
+ function Kr(e, t) {
6268
6306
  let n = {};
6269
- for (let r in e) if (Nr(e, r)) {
6307
+ for (let r in e) if (R(e, r)) {
6270
6308
  let i = e[r];
6271
6309
  if (i == null) continue;
6272
- n[t(r)] = qr(i);
6310
+ n[t(r)] = Gr(i);
6273
6311
  }
6274
6312
  return n;
6275
6313
  }
6276
- function Yr(e, t) {
6314
+ function qr(e, t) {
6277
6315
  let n = Math.trunc(Math.abs(e / 60)), r = Math.trunc(Math.abs(e % 60)), i = e >= 0 ? "+" : "-";
6278
6316
  switch (t) {
6279
- case "short": return `${i}${R(n, 2)}:${R(r, 2)}`;
6317
+ case "short": return `${i}${B(n, 2)}:${B(r, 2)}`;
6280
6318
  case "narrow": return `${i}${n}${r > 0 ? `:${r}` : ""}`;
6281
- case "techie": return `${i}${R(n, 2)}${R(r, 2)}`;
6319
+ case "techie": return `${i}${B(n, 2)}${B(r, 2)}`;
6282
6320
  default: throw RangeError(`Value format ${t} is out of range for property format`);
6283
6321
  }
6284
6322
  }
6285
- function Xr(e) {
6286
- return Mr(e, [
6323
+ function Jr(e) {
6324
+ return jr(e, [
6287
6325
  "hour",
6288
6326
  "minute",
6289
6327
  "second",
6290
6328
  "millisecond"
6291
6329
  ]);
6292
6330
  }
6293
- var Zr = [
6331
+ var Yr = [
6294
6332
  "January",
6295
6333
  "February",
6296
6334
  "March",
@@ -6303,7 +6341,7 @@ var Zr = [
6303
6341
  "October",
6304
6342
  "November",
6305
6343
  "December"
6306
- ], Qr = [
6344
+ ], Xr = [
6307
6345
  "Jan",
6308
6346
  "Feb",
6309
6347
  "Mar",
@@ -6316,7 +6354,7 @@ var Zr = [
6316
6354
  "Oct",
6317
6355
  "Nov",
6318
6356
  "Dec"
6319
- ], $r = [
6357
+ ], Zr = [
6320
6358
  "J",
6321
6359
  "F",
6322
6360
  "M",
@@ -6330,11 +6368,11 @@ var Zr = [
6330
6368
  "N",
6331
6369
  "D"
6332
6370
  ];
6333
- function ei(e) {
6371
+ function Qr(e) {
6334
6372
  switch (e) {
6335
- case "narrow": return [...$r];
6336
- case "short": return [...Qr];
6337
- case "long": return [...Zr];
6373
+ case "narrow": return [...Zr];
6374
+ case "short": return [...Xr];
6375
+ case "long": return [...Yr];
6338
6376
  case "numeric": return [
6339
6377
  "1",
6340
6378
  "2",
@@ -6366,7 +6404,7 @@ function ei(e) {
6366
6404
  default: return null;
6367
6405
  }
6368
6406
  }
6369
- var ti = [
6407
+ var $r = [
6370
6408
  "Monday",
6371
6409
  "Tuesday",
6372
6410
  "Wednesday",
@@ -6374,7 +6412,7 @@ var ti = [
6374
6412
  "Friday",
6375
6413
  "Saturday",
6376
6414
  "Sunday"
6377
- ], ni = [
6415
+ ], ei = [
6378
6416
  "Mon",
6379
6417
  "Tue",
6380
6418
  "Wed",
@@ -6382,7 +6420,7 @@ var ti = [
6382
6420
  "Fri",
6383
6421
  "Sat",
6384
6422
  "Sun"
6385
- ], ri = [
6423
+ ], ti = [
6386
6424
  "M",
6387
6425
  "T",
6388
6426
  "W",
@@ -6391,11 +6429,11 @@ var ti = [
6391
6429
  "S",
6392
6430
  "S"
6393
6431
  ];
6394
- function ii(e) {
6432
+ function ni(e) {
6395
6433
  switch (e) {
6396
- case "narrow": return [...ri];
6397
- case "short": return [...ni];
6398
- case "long": return [...ti];
6434
+ case "narrow": return [...ti];
6435
+ case "short": return [...ei];
6436
+ case "long": return [...$r];
6399
6437
  case "numeric": return [
6400
6438
  "1",
6401
6439
  "2",
@@ -6408,28 +6446,28 @@ function ii(e) {
6408
6446
  default: return null;
6409
6447
  }
6410
6448
  }
6411
- var ai = ["AM", "PM"], oi = ["Before Christ", "Anno Domini"], si = ["BC", "AD"], ci = ["B", "A"];
6412
- function li(e) {
6449
+ var ri = ["AM", "PM"], ii = ["Before Christ", "Anno Domini"], ai = ["BC", "AD"], oi = ["B", "A"];
6450
+ function si(e) {
6413
6451
  switch (e) {
6414
- case "narrow": return [...ci];
6415
- case "short": return [...si];
6416
- case "long": return [...oi];
6452
+ case "narrow": return [...oi];
6453
+ case "short": return [...ai];
6454
+ case "long": return [...ii];
6417
6455
  default: return null;
6418
6456
  }
6419
6457
  }
6420
- function ui(e) {
6421
- return ai[e.hour < 12 ? 0 : 1];
6458
+ function ci(e) {
6459
+ return ri[e.hour < 12 ? 0 : 1];
6422
6460
  }
6423
- function di(e, t) {
6424
- return ii(t)[e.weekday - 1];
6461
+ function li(e, t) {
6462
+ return ni(t)[e.weekday - 1];
6425
6463
  }
6426
- function fi(e, t) {
6427
- return ei(t)[e.month - 1];
6464
+ function ui(e, t) {
6465
+ return Qr(t)[e.month - 1];
6428
6466
  }
6429
- function pi(e, t) {
6430
- return li(t)[e.year < 0 ? 0 : 1];
6467
+ function di(e, t) {
6468
+ return si(t)[e.year < 0 ? 0 : 1];
6431
6469
  }
6432
- function mi(e, t, n = "always", r = !1) {
6470
+ function fi(e, t, n = "always", r = !1) {
6433
6471
  let i = {
6434
6472
  years: ["year", "yr."],
6435
6473
  quarters: ["quarter", "qtr."],
@@ -6459,33 +6497,33 @@ function mi(e, t, n = "always", r = !1) {
6459
6497
  let o = Object.is(t, -0) || t < 0, s = Math.abs(t), c = s === 1, l = i[e], u = r ? c ? l[1] : l[2] || l[1] : c ? i[e][0] : e;
6460
6498
  return o ? `${s} ${u} ago` : `in ${s} ${u}`;
6461
6499
  }
6462
- function hi(e, t) {
6500
+ function pi(e, t) {
6463
6501
  let n = "";
6464
6502
  for (let r of e) r.literal ? n += r.val : n += t(r.val);
6465
6503
  return n;
6466
6504
  }
6467
- var gi = {
6468
- D: Kt,
6469
- DD: qt,
6470
- DDD: Yt,
6471
- DDDD: Xt,
6472
- t: Zt,
6473
- tt: Qt,
6474
- ttt: $t,
6475
- tttt: en,
6476
- T: tn,
6477
- TT: nn,
6478
- TTT: rn,
6479
- TTTT: an,
6480
- f: on,
6481
- ff: cn,
6482
- fff: dn,
6483
- ffff: pn,
6484
- F: sn,
6485
- FF: ln,
6486
- FFF: fn,
6487
- FFFF: mn
6488
- }, V = class e {
6505
+ var mi = {
6506
+ D: Wt,
6507
+ DD: Gt,
6508
+ DDD: qt,
6509
+ DDDD: Jt,
6510
+ t: Yt,
6511
+ tt: Xt,
6512
+ ttt: Zt,
6513
+ tttt: Qt,
6514
+ T: $t,
6515
+ TT: en,
6516
+ TTT: tn,
6517
+ TTTT: nn,
6518
+ f: rn,
6519
+ ff: on,
6520
+ fff: ln,
6521
+ ffff: dn,
6522
+ F: an,
6523
+ FF: sn,
6524
+ FFF: un,
6525
+ FFFF: fn
6526
+ }, U = class e {
6489
6527
  static create(t, n = {}) {
6490
6528
  return new e(t, n);
6491
6529
  }
@@ -6507,7 +6545,7 @@ var gi = {
6507
6545
  }), i;
6508
6546
  }
6509
6547
  static macroTokenToFormatOpts(e) {
6510
- return gi[e];
6548
+ return mi[e];
6511
6549
  }
6512
6550
  constructor(e, t) {
6513
6551
  this.opts = t, this.loc = e, this.systemLoc = null;
@@ -6537,26 +6575,26 @@ var gi = {
6537
6575
  return this.dtFormatter(e, t).resolvedOptions();
6538
6576
  }
6539
6577
  num(e, t = 0, n = void 0) {
6540
- if (this.opts.forceSimple) return R(e, t);
6578
+ if (this.opts.forceSimple) return B(e, t);
6541
6579
  let r = { ...this.opts };
6542
6580
  return t > 0 && (r.padTo = t), n && (r.signDisplay = n), this.loc.numberFormatter(r).format(e);
6543
6581
  }
6544
6582
  formatDateTimeFromString(t, n) {
6545
- let r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (e, n) => this.loc.extract(t, e, n), o = (e) => t.isOffsetFixed && t.offset === 0 && e.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, e.format) : "", s = () => r ? ui(t) : a({
6583
+ let r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", a = (e, n) => this.loc.extract(t, e, n), o = (e) => t.isOffsetFixed && t.offset === 0 && e.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, e.format) : "", s = () => r ? ci(t) : a({
6546
6584
  hour: "numeric",
6547
6585
  hourCycle: "h12"
6548
- }, "dayperiod"), c = (e, n) => r ? fi(t, e) : a(n ? { month: e } : {
6586
+ }, "dayperiod"), c = (e, n) => r ? ui(t, e) : a(n ? { month: e } : {
6549
6587
  month: e,
6550
6588
  day: "numeric"
6551
- }, "month"), l = (e, n) => r ? di(t, e) : a(n ? { weekday: e } : {
6589
+ }, "month"), l = (e, n) => r ? li(t, e) : a(n ? { weekday: e } : {
6552
6590
  weekday: e,
6553
6591
  month: "long",
6554
6592
  day: "numeric"
6555
6593
  }, "weekday"), u = (n) => {
6556
6594
  let r = e.macroTokenToFormatOpts(n);
6557
6595
  return r ? this.formatWithSystemDefault(t, r) : n;
6558
- }, d = (e) => r ? pi(t, e) : a({ era: e }, "era");
6559
- return hi(e.parseFormat(n), (e) => {
6596
+ }, d = (e) => r ? di(t, e) : a({ era: e }, "era");
6597
+ return pi(e.parseFormat(n), (e) => {
6560
6598
  switch (e) {
6561
6599
  case "S": return this.num(t.millisecond);
6562
6600
  case "u":
@@ -6665,17 +6703,17 @@ var gi = {
6665
6703
  }
6666
6704
  return n;
6667
6705
  }, o = e.parseFormat(n), s = o.reduce((e, { literal: t, val: n }) => t ? e : e.concat(n), []), c = t.shiftTo(...s.map(i).filter((e) => e));
6668
- return hi(o, a(c, {
6706
+ return pi(o, a(c, {
6669
6707
  isNegativeDuration: c < 0,
6670
6708
  largestUnit: Object.keys(c.values)[0]
6671
6709
  }));
6672
6710
  }
6673
- }, _i = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6674
- function H(...e) {
6711
+ }, hi = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
6712
+ function gi(...e) {
6675
6713
  let t = e.reduce((e, t) => e + t.source, "");
6676
6714
  return RegExp(`^${t}$`);
6677
6715
  }
6678
- function U(...e) {
6716
+ function _i(...e) {
6679
6717
  return (t) => e.reduce(([e, n, r], i) => {
6680
6718
  let [a, o, s] = i(t, r);
6681
6719
  return [
@@ -6692,7 +6730,7 @@ function U(...e) {
6692
6730
  1
6693
6731
  ]).slice(0, 2);
6694
6732
  }
6695
- function W(e, ...t) {
6733
+ function vi(e, ...t) {
6696
6734
  if (e == null) return [null, null];
6697
6735
  for (let [n, r] of t) {
6698
6736
  let t = n.exec(e);
@@ -6700,10 +6738,10 @@ function W(e, ...t) {
6700
6738
  }
6701
6739
  return [null, null];
6702
6740
  }
6703
- function vi(...e) {
6741
+ function yi(...e) {
6704
6742
  return (t, n) => {
6705
6743
  let r = {}, i = 0;
6706
- for (; i < e.length; i++) r[e[i]] = z(t[n + i]);
6744
+ for (; i < e.length; i++) r[e[i]] = V(t[n + i]);
6707
6745
  return [
6708
6746
  r,
6709
6747
  null,
@@ -6711,17 +6749,17 @@ function vi(...e) {
6711
6749
  ];
6712
6750
  };
6713
6751
  }
6714
- var yi = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, bi = `(?:${yi.source}?(?:\\[(${_i.source})\\])?)?`, xi = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Si = RegExp(`${xi.source}${bi}`), Ci = RegExp(`(?:[Tt]${Si.source})?`), wi = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Ti = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Ei = /(\d{4})-?(\d{3})/, Di = vi("weekYear", "weekNumber", "weekDay"), Oi = vi("year", "ordinal"), ki = /(\d{4})-(\d\d)-(\d\d)/, Ai = RegExp(`${xi.source} ?(?:${yi.source}|(${_i.source}))?`), ji = RegExp(`(?: ${Ai.source})?`);
6715
- function Mi(e, t, n) {
6752
+ var bi = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, xi = `(?:${bi.source}?(?:\\[(${hi.source})\\])?)?`, Si = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ci = RegExp(`${Si.source}${xi}`), wi = RegExp(`(?:[Tt]${Ci.source})?`), Ti = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Ei = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Di = /(\d{4})-?(\d{3})/, Oi = yi("weekYear", "weekNumber", "weekDay"), ki = yi("year", "ordinal"), Ai = /(\d{4})-(\d\d)-(\d\d)/, ji = RegExp(`${Si.source} ?(?:${bi.source}|(${hi.source}))?`), Mi = RegExp(`(?: ${ji.source})?`);
6753
+ function W(e, t, n) {
6716
6754
  let r = e[t];
6717
- return F(r) ? n : z(r);
6755
+ return I(r) ? n : V(r);
6718
6756
  }
6719
6757
  function Ni(e, t) {
6720
6758
  return [
6721
6759
  {
6722
- year: Mi(e, t),
6723
- month: Mi(e, t + 1, 1),
6724
- day: Mi(e, t + 2, 1)
6760
+ year: W(e, t),
6761
+ month: W(e, t + 1, 1),
6762
+ day: W(e, t + 2, 1)
6725
6763
  },
6726
6764
  null,
6727
6765
  t + 3
@@ -6730,42 +6768,42 @@ function Ni(e, t) {
6730
6768
  function Pi(e, t) {
6731
6769
  return [
6732
6770
  {
6733
- hours: Mi(e, t, 0),
6734
- minutes: Mi(e, t + 1, 0),
6735
- seconds: Mi(e, t + 2, 0),
6736
- milliseconds: Ir(e[t + 3])
6771
+ hours: W(e, t, 0),
6772
+ minutes: W(e, t + 1, 0),
6773
+ seconds: W(e, t + 2, 0),
6774
+ milliseconds: Pr(e[t + 3])
6737
6775
  },
6738
6776
  null,
6739
6777
  t + 4
6740
6778
  ];
6741
6779
  }
6742
6780
  function Fi(e, t) {
6743
- let n = !e[t] && !e[t + 1], r = Kr(e[t + 1], e[t + 2]);
6781
+ let n = !e[t] && !e[t + 1], r = Wr(e[t + 1], e[t + 2]);
6744
6782
  return [
6745
6783
  {},
6746
- n ? null : k.instance(r),
6784
+ n ? null : A.instance(r),
6747
6785
  t + 3
6748
6786
  ];
6749
6787
  }
6750
6788
  function Ii(e, t) {
6751
6789
  return [
6752
6790
  {},
6753
- e[t] ? D.create(e[t]) : null,
6791
+ e[t] ? Sn.create(e[t]) : null,
6754
6792
  t + 1
6755
6793
  ];
6756
6794
  }
6757
- var Li = RegExp(`^T?${xi.source}$`), Ri = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
6795
+ var Li = RegExp(`^T?${Si.source}$`), Ri = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
6758
6796
  function zi(e) {
6759
6797
  let [t, n, r, i, a, o, s, c, l] = e, u = t[0] === "-", d = c && c[0] === "-", f = (e, t = !1) => e !== void 0 && (t || e && u) ? -e : e;
6760
6798
  return [{
6761
- years: f(B(n)),
6762
- months: f(B(r)),
6763
- weeks: f(B(i)),
6764
- days: f(B(a)),
6765
- hours: f(B(o)),
6766
- minutes: f(B(s)),
6767
- seconds: f(B(c), c === "-0"),
6768
- milliseconds: f(Ir(l), d)
6799
+ years: f(H(n)),
6800
+ months: f(H(r)),
6801
+ weeks: f(H(i)),
6802
+ days: f(H(a)),
6803
+ hours: f(H(o)),
6804
+ minutes: f(H(s)),
6805
+ seconds: f(H(c), c === "-0"),
6806
+ milliseconds: f(Pr(l), d)
6769
6807
  }];
6770
6808
  }
6771
6809
  var Bi = {
@@ -6781,18 +6819,18 @@ var Bi = {
6781
6819
  };
6782
6820
  function Vi(e, t, n, r, i, a, o) {
6783
6821
  let s = {
6784
- year: t.length === 2 ? Wr(z(t)) : z(t),
6785
- month: Qr.indexOf(n) + 1,
6786
- day: z(r),
6787
- hour: z(i),
6788
- minute: z(a)
6822
+ year: t.length === 2 ? Hr(V(t)) : V(t),
6823
+ month: Xr.indexOf(n) + 1,
6824
+ day: V(r),
6825
+ hour: V(i),
6826
+ minute: V(a)
6789
6827
  };
6790
- return o && (s.second = z(o)), e && (s.weekday = e.length > 3 ? ti.indexOf(e) + 1 : ni.indexOf(e) + 1), s;
6828
+ return o && (s.second = V(o)), e && (s.weekday = e.length > 3 ? $r.indexOf(e) + 1 : ei.indexOf(e) + 1), s;
6791
6829
  }
6792
6830
  var Hi = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
6793
6831
  function Ui(e) {
6794
6832
  let [, t, n, r, i, a, o, s, c, l, u, d] = e, f = Vi(t, i, r, n, a, o, s), p;
6795
- return p = c ? Bi[c] : l ? 0 : Kr(u, d), [f, new k(p)];
6833
+ return p = c ? Bi[c] : l ? 0 : Wr(u, d), [f, new A(p)];
6796
6834
  }
6797
6835
  function Wi(e) {
6798
6836
  return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -6800,32 +6838,32 @@ function Wi(e) {
6800
6838
  var Gi = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, Ki = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, qi = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
6801
6839
  function Ji(e) {
6802
6840
  let [, t, n, r, i, a, o, s] = e;
6803
- return [Vi(t, i, r, n, a, o, s), k.utcInstance];
6841
+ return [Vi(t, i, r, n, a, o, s), A.utcInstance];
6804
6842
  }
6805
6843
  function Yi(e) {
6806
6844
  let [, t, n, r, i, a, o, s] = e;
6807
- return [Vi(t, s, n, r, i, a, o), k.utcInstance];
6845
+ return [Vi(t, s, n, r, i, a, o), A.utcInstance];
6808
6846
  }
6809
- var Xi = H(wi, Ci), Zi = H(Ti, Ci), Qi = H(Ei, Ci), $i = H(Si), ea = U(Ni, Pi, Fi, Ii), ta = U(Di, Pi, Fi, Ii), na = U(Oi, Pi, Fi, Ii), ra = U(Pi, Fi, Ii);
6847
+ var Xi = gi(Ti, wi), Zi = gi(Ei, wi), Qi = gi(Di, wi), $i = gi(Ci), ea = _i(Ni, Pi, Fi, Ii), ta = _i(Oi, Pi, Fi, Ii), na = _i(ki, Pi, Fi, Ii), ra = _i(Pi, Fi, Ii);
6810
6848
  function ia(e) {
6811
- return W(e, [Xi, ea], [Zi, ta], [Qi, na], [$i, ra]);
6849
+ return vi(e, [Xi, ea], [Zi, ta], [Qi, na], [$i, ra]);
6812
6850
  }
6813
6851
  function aa(e) {
6814
- return W(Wi(e), [Hi, Ui]);
6852
+ return vi(Wi(e), [Hi, Ui]);
6815
6853
  }
6816
6854
  function oa(e) {
6817
- return W(e, [Gi, Ji], [Ki, Ji], [qi, Yi]);
6855
+ return vi(e, [Gi, Ji], [Ki, Ji], [qi, Yi]);
6818
6856
  }
6819
6857
  function sa(e) {
6820
- return W(e, [Ri, zi]);
6858
+ return vi(e, [Ri, zi]);
6821
6859
  }
6822
- var ca = U(Pi);
6860
+ var ca = _i(Pi);
6823
6861
  function la(e) {
6824
- return W(e, [Li, ca]);
6862
+ return vi(e, [Li, ca]);
6825
6863
  }
6826
- var ua = H(ki, ji), da = H(Ai), fa = U(Pi, Fi, Ii);
6864
+ var ua = gi(Ai, Mi), da = gi(ji), fa = _i(Pi, Fi, Ii);
6827
6865
  function pa(e) {
6828
- return W(e, [ua, ea], [da, fa]);
6866
+ return vi(e, [ua, ea], [da, fa]);
6829
6867
  }
6830
6868
  var ma = "Invalid Duration", ha = {
6831
6869
  weeks: {
@@ -6939,14 +6977,14 @@ function ba(e, t) {
6939
6977
  function xa(e, t) {
6940
6978
  let n = ba(e, t) < 0 ? -1 : 1;
6941
6979
  K.reduceRight((r, i) => {
6942
- if (F(t[i])) return r;
6980
+ if (I(t[i])) return r;
6943
6981
  if (r) {
6944
6982
  let a = t[r] * n, o = e[i][r], s = Math.floor(a / o);
6945
6983
  t[i] += s * n, t[r] -= s * o * n;
6946
6984
  }
6947
6985
  return i;
6948
6986
  }, null), K.reduce((n, r) => {
6949
- if (F(t[r])) return n;
6987
+ if (I(t[r])) return n;
6950
6988
  if (n) {
6951
6989
  let i = t[n] % 1;
6952
6990
  t[n] -= i, t[r] += i * e[n][r];
@@ -6962,25 +7000,25 @@ function Sa(e) {
6962
7000
  var J = class e {
6963
7001
  constructor(e) {
6964
7002
  let t = e.conversionAccuracy === "longterm" || !1, n = t ? va : ga;
6965
- e.matrix && (n = e.matrix), this.values = e.values, this.loc = e.loc || O.create(), this.conversionAccuracy = t ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = n, this.isLuxonDuration = !0;
7003
+ e.matrix && (n = e.matrix), this.values = e.values, this.loc = e.loc || k.create(), this.conversionAccuracy = t ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = n, this.isLuxonDuration = !0;
6966
7004
  }
6967
7005
  static fromMillis(t, n) {
6968
7006
  return e.fromObject({ milliseconds: t }, n);
6969
7007
  }
6970
7008
  static fromObject(t, n = {}) {
6971
- if (typeof t != "object" || !t) throw new S(`Duration.fromObject: argument expected to be an object, got ${t === null ? "null" : typeof t}`);
7009
+ if (typeof t != "object" || !t) throw new w(`Duration.fromObject: argument expected to be an object, got ${t === null ? "null" : typeof t}`);
6972
7010
  return new e({
6973
- values: Jr(t, e.normalizeUnit),
6974
- loc: O.fromObject(n),
7011
+ values: Kr(t, e.normalizeUnit),
7012
+ loc: k.fromObject(n),
6975
7013
  conversionAccuracy: n.conversionAccuracy,
6976
7014
  matrix: n.matrix
6977
7015
  });
6978
7016
  }
6979
7017
  static fromDurationLike(t) {
6980
- if (I(t)) return e.fromMillis(t);
7018
+ if (L(t)) return e.fromMillis(t);
6981
7019
  if (e.isDuration(t)) return t;
6982
7020
  if (typeof t == "object") return e.fromObject(t);
6983
- throw new S(`Unknown duration argument ${t} of type ${typeof t}`);
7021
+ throw new w(`Unknown duration argument ${t} of type ${typeof t}`);
6984
7022
  }
6985
7023
  static fromISO(t, n) {
6986
7024
  let [r] = sa(t);
@@ -6991,9 +7029,9 @@ var J = class e {
6991
7029
  return r ? e.fromObject(r, n) : e.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
6992
7030
  }
6993
7031
  static invalid(t, n = null) {
6994
- if (!t) throw new S("need to specify a reason the Duration is invalid");
6995
- let r = t instanceof N ? t : new N(t, n);
6996
- if (M.throwOnInvalid) throw new Wt(r);
7032
+ if (!t) throw new w("need to specify a reason the Duration is invalid");
7033
+ let r = t instanceof P ? t : new P(t, n);
7034
+ if (N.throwOnInvalid) throw new Vt(r);
6997
7035
  return new e({ invalid: r });
6998
7036
  }
6999
7037
  static normalizeUnit(e) {
@@ -7017,7 +7055,7 @@ var J = class e {
7017
7055
  millisecond: "milliseconds",
7018
7056
  milliseconds: "milliseconds"
7019
7057
  }[e && e.toLowerCase()];
7020
- if (!t) throw new Gt(e);
7058
+ if (!t) throw new Ut(e);
7021
7059
  return t;
7022
7060
  }
7023
7061
  static isDuration(e) {
@@ -7034,13 +7072,13 @@ var J = class e {
7034
7072
  ...t,
7035
7073
  floor: t.round !== !1 && t.floor !== !1
7036
7074
  };
7037
- return this.isValid ? V.create(this.loc, n).formatDurationFromString(this, e) : ma;
7075
+ return this.isValid ? U.create(this.loc, n).formatDurationFromString(this, e) : ma;
7038
7076
  }
7039
7077
  toHuman(e = {}) {
7040
7078
  if (!this.isValid) return ma;
7041
7079
  let t = e.showZeros !== !1, n = K.map((n) => {
7042
7080
  let r = this.values[n];
7043
- return F(r) || r === 0 && !t ? null : this.loc.numberFormatter({
7081
+ return I(r) || r === 0 && !t ? null : this.loc.numberFormatter({
7044
7082
  style: "unit",
7045
7083
  unitDisplay: "long",
7046
7084
  ...e,
@@ -7059,7 +7097,7 @@ var J = class e {
7059
7097
  toISO() {
7060
7098
  if (!this.isValid) return null;
7061
7099
  let e = "P";
7062
- return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += Lr(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
7100
+ return this.years !== 0 && (e += this.years + "Y"), (this.months !== 0 || this.quarters !== 0) && (e += this.months + this.quarters * 3 + "M"), this.weeks !== 0 && (e += this.weeks + "W"), this.days !== 0 && (e += this.days + "D"), (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) && (e += "T"), this.hours !== 0 && (e += this.hours + "H"), this.minutes !== 0 && (e += this.minutes + "M"), (this.seconds !== 0 || this.milliseconds !== 0) && (e += Fr(this.seconds + this.milliseconds / 1e3, 3) + "S"), e === "P" && (e += "T0S"), e;
7063
7101
  }
7064
7102
  toISOTime(e = {}) {
7065
7103
  if (!this.isValid) return null;
@@ -7091,7 +7129,7 @@ var J = class e {
7091
7129
  plus(t) {
7092
7130
  if (!this.isValid) return this;
7093
7131
  let n = e.fromDurationLike(t), r = {};
7094
- for (let e of K) (Nr(n.values, e) || Nr(this.values, e)) && (r[e] = n.get(e) + this.get(e));
7132
+ for (let e of K) (R(n.values, e) || R(this.values, e)) && (r[e] = n.get(e) + this.get(e));
7095
7133
  return q(this, { values: r }, !0);
7096
7134
  }
7097
7135
  minus(t) {
@@ -7102,7 +7140,7 @@ var J = class e {
7102
7140
  mapUnits(e) {
7103
7141
  if (!this.isValid) return this;
7104
7142
  let t = {};
7105
- for (let n of Object.keys(this.values)) t[n] = qr(e(this.values[n], n));
7143
+ for (let n of Object.keys(this.values)) t[n] = Gr(e(this.values[n], n));
7106
7144
  return q(this, { values: t }, !0);
7107
7145
  }
7108
7146
  get(t) {
@@ -7112,7 +7150,7 @@ var J = class e {
7112
7150
  if (!this.isValid) return this;
7113
7151
  let n = {
7114
7152
  ...this.values,
7115
- ...Jr(t, e.normalizeUnit)
7153
+ ...Kr(t, e.normalizeUnit)
7116
7154
  };
7117
7155
  return q(this, { values: n });
7118
7156
  }
@@ -7148,10 +7186,10 @@ var J = class e {
7148
7186
  a = e;
7149
7187
  let t = 0;
7150
7188
  for (let n in r) t += this.matrix[n][e] * r[n], r[n] = 0;
7151
- I(i[e]) && (t += i[e]);
7189
+ L(i[e]) && (t += i[e]);
7152
7190
  let o = Math.trunc(t);
7153
7191
  n[e] = o, r[e] = (t * 1e3 - o * 1e3) / 1e3;
7154
- } else I(i[e]) && (r[e] = i[e]);
7192
+ } else L(i[e]) && (r[e] = i[e]);
7155
7193
  for (let e in r) r[e] !== 0 && (n[a] += e === a ? r[e] : r[e] / this.matrix[a][e]);
7156
7194
  return xa(this.matrix, n), q(this, { values: n }, !0);
7157
7195
  }
@@ -7222,9 +7260,9 @@ var Ta = class e {
7222
7260
  this.s = e.start, this.e = e.end, this.invalid = e.invalid || null, this.isLuxonInterval = !0;
7223
7261
  }
7224
7262
  static invalid(t, n = null) {
7225
- if (!t) throw new S("need to specify a reason the Interval is invalid");
7226
- let r = t instanceof N ? t : new N(t, n);
7227
- if (M.throwOnInvalid) throw new Ut(r);
7263
+ if (!t) throw new w("need to specify a reason the Interval is invalid");
7264
+ let r = t instanceof P ? t : new P(t, n);
7265
+ if (N.throwOnInvalid) throw new Bt(r);
7228
7266
  return new e({ invalid: r });
7229
7267
  }
7230
7268
  static fromDateTimes(t, n) {
@@ -7386,8 +7424,8 @@ var Ta = class e {
7386
7424
  [Symbol.for("nodejs.util.inspect.custom")]() {
7387
7425
  return this.isValid ? `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }` : `Interval { Invalid, reason: ${this.invalidReason} }`;
7388
7426
  }
7389
- toLocaleString(e = Kt, t = {}) {
7390
- return this.isValid ? V.create(this.s.loc.clone(t), e).formatInterval(this) : Ca;
7427
+ toLocaleString(e = Wt, t = {}) {
7428
+ return this.isValid ? U.create(this.s.loc.clone(t), e).formatInterval(this) : Ca;
7391
7429
  }
7392
7430
  toISO(e) {
7393
7431
  return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : Ca;
@@ -7408,47 +7446,47 @@ var Ta = class e {
7408
7446
  return e.fromDateTimes(t(this.s), t(this.e));
7409
7447
  }
7410
7448
  }, Ea = class {
7411
- static hasDST(e = M.defaultZone) {
7449
+ static hasDST(e = N.defaultZone) {
7412
7450
  let t = Q.now().setZone(e).set({ month: 12 });
7413
7451
  return !e.isUniversal && t.offset !== t.set({ month: 6 }).offset;
7414
7452
  }
7415
7453
  static isValidIANAZone(e) {
7416
- return D.isValidZone(e);
7454
+ return Sn.isValidZone(e);
7417
7455
  }
7418
7456
  static normalizeZone(e) {
7419
- return A(e, M.defaultZone);
7457
+ return j(e, N.defaultZone);
7420
7458
  }
7421
7459
  static getStartOfWeek({ locale: e = null, locObj: t = null } = {}) {
7422
- return (t || O.create(e)).getStartOfWeek();
7460
+ return (t || k.create(e)).getStartOfWeek();
7423
7461
  }
7424
7462
  static getMinimumDaysInFirstWeek({ locale: e = null, locObj: t = null } = {}) {
7425
- return (t || O.create(e)).getMinDaysInFirstWeek();
7463
+ return (t || k.create(e)).getMinDaysInFirstWeek();
7426
7464
  }
7427
7465
  static getWeekendWeekdays({ locale: e = null, locObj: t = null } = {}) {
7428
- return (t || O.create(e)).getWeekendDays().slice();
7466
+ return (t || k.create(e)).getWeekendDays().slice();
7429
7467
  }
7430
7468
  static months(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null, outputCalendar: i = "gregory" } = {}) {
7431
- return (r || O.create(t, n, i)).months(e);
7469
+ return (r || k.create(t, n, i)).months(e);
7432
7470
  }
7433
7471
  static monthsFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null, outputCalendar: i = "gregory" } = {}) {
7434
- return (r || O.create(t, n, i)).months(e, !0);
7472
+ return (r || k.create(t, n, i)).months(e, !0);
7435
7473
  }
7436
7474
  static weekdays(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null } = {}) {
7437
- return (r || O.create(t, n, null)).weekdays(e);
7475
+ return (r || k.create(t, n, null)).weekdays(e);
7438
7476
  }
7439
7477
  static weekdaysFormat(e = "long", { locale: t = null, numberingSystem: n = null, locObj: r = null } = {}) {
7440
- return (r || O.create(t, n, null)).weekdays(e, !0);
7478
+ return (r || k.create(t, n, null)).weekdays(e, !0);
7441
7479
  }
7442
7480
  static meridiems({ locale: e = null } = {}) {
7443
- return O.create(e).meridiems();
7481
+ return k.create(e).meridiems();
7444
7482
  }
7445
7483
  static eras(e = "short", { locale: t = null } = {}) {
7446
- return O.create(t, null, "gregory").eras(e);
7484
+ return k.create(t, null, "gregory").eras(e);
7447
7485
  }
7448
7486
  static features() {
7449
7487
  return {
7450
- relative: Or(),
7451
- localeWeek: kr()
7488
+ relative: Dr(),
7489
+ localeWeek: Or()
7452
7490
  };
7453
7491
  }
7454
7492
  };
@@ -7490,7 +7528,7 @@ var Aa = "missing Intl.DateTimeFormat.formatToParts support";
7490
7528
  function Y(e, t = (e) => e) {
7491
7529
  return {
7492
7530
  regex: e,
7493
- deser: ([e]) => t($n(e))
7531
+ deser: ([e]) => t(Qn(e))
7494
7532
  };
7495
7533
  }
7496
7534
  var ja = "[ \xA0]", Ma = new RegExp(ja, "g");
@@ -7509,7 +7547,7 @@ function X(e, t) {
7509
7547
  function Fa(e, t) {
7510
7548
  return {
7511
7549
  regex: e,
7512
- deser: ([, e, t]) => Kr(e, t),
7550
+ deser: ([, e, t]) => Wr(e, t),
7513
7551
  groups: t
7514
7552
  };
7515
7553
  }
@@ -7523,7 +7561,7 @@ function La(e) {
7523
7561
  return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
7524
7562
  }
7525
7563
  function Ra(e, t) {
7526
- let n = j(t), r = j(t, "{2}"), i = j(t, "{3}"), a = j(t, "{4}"), o = j(t, "{6}"), s = j(t, "{1,2}"), c = j(t, "{1,3}"), l = j(t, "{1,6}"), u = j(t, "{1,9}"), d = j(t, "{2,4}"), f = j(t, "{4,6}"), p = (e) => ({
7564
+ let n = M(t), r = M(t, "{2}"), i = M(t, "{3}"), a = M(t, "{4}"), o = M(t, "{6}"), s = M(t, "{1,2}"), c = M(t, "{1,3}"), l = M(t, "{1,6}"), u = M(t, "{1,9}"), d = M(t, "{2,4}"), f = M(t, "{4,6}"), p = (e) => ({
7527
7565
  regex: RegExp(La(e.val)),
7528
7566
  deser: ([e]) => e,
7529
7567
  literal: !0
@@ -7533,7 +7571,7 @@ function Ra(e, t) {
7533
7571
  case "G": return X(t.eras("short"), 0);
7534
7572
  case "GG": return X(t.eras("long"), 0);
7535
7573
  case "y": return Y(l);
7536
- case "yy": return Y(d, Wr);
7574
+ case "yy": return Y(d, Hr);
7537
7575
  case "yyyy": return Y(a);
7538
7576
  case "yyyyy": return Y(f);
7539
7577
  case "yyyyyy": return Y(o);
@@ -7566,7 +7604,7 @@ function Ra(e, t) {
7566
7604
  case "uuu": return Y(n);
7567
7605
  case "a": return X(t.meridiems(), 0);
7568
7606
  case "kkkk": return Y(a);
7569
- case "kk": return Y(d, Wr);
7607
+ case "kk": return Y(d, Hr);
7570
7608
  case "W": return Y(s);
7571
7609
  case "WW": return Y(r);
7572
7610
  case "E":
@@ -7651,7 +7689,7 @@ function Ha(e, t, n) {
7651
7689
  let r = e.match(t);
7652
7690
  if (r) {
7653
7691
  let e = {}, t = 1;
7654
- for (let i in n) if (Nr(n, i)) {
7692
+ for (let i in n) if (R(n, i)) {
7655
7693
  let a = n[i], o = a.groups ? a.groups + 1 : 1;
7656
7694
  !a.literal && a.token && (e[a.token.val[0]] = a.deser(r.slice(t, t + o))), t += o;
7657
7695
  }
@@ -7680,7 +7718,7 @@ function Ua(e) {
7680
7718
  default: return null;
7681
7719
  }
7682
7720
  }, n = null, r;
7683
- return F(e.z) || (n = D.create(e.z)), F(e.Z) || (n ||= new k(e.Z), r = e.Z), F(e.q) || (e.M = (e.q - 1) * 3 + 1), F(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), F(e.u) || (e.S = Ir(e.u)), [
7721
+ return I(e.z) || (n = Sn.create(e.z)), I(e.Z) || (n ||= new A(e.Z), r = e.Z), I(e.q) || (e.M = (e.q - 1) * 3 + 1), I(e.h) || (e.h < 12 && e.a === 1 ? e.h += 12 : e.h === 12 && e.a === 0 && (e.h = 0)), e.G === 0 && e.y && (e.y = -e.y), I(e.u) || (e.S = Pr(e.u)), [
7684
7722
  Object.keys(e).reduce((n, r) => {
7685
7723
  let i = t(r);
7686
7724
  return i && (n[i] = e[r]), n;
@@ -7695,7 +7733,7 @@ function Ga() {
7695
7733
  }
7696
7734
  function Ka(e, t) {
7697
7735
  if (e.literal) return e;
7698
- let n = Za(V.macroTokenToFormatOpts(e.val), t);
7736
+ let n = Za(U.macroTokenToFormatOpts(e.val), t);
7699
7737
  return n == null || n.includes(void 0) ? e : n;
7700
7738
  }
7701
7739
  function qa(e, t) {
@@ -7703,7 +7741,7 @@ function qa(e, t) {
7703
7741
  }
7704
7742
  var Ja = class {
7705
7743
  constructor(e, t) {
7706
- if (this.locale = e, this.format = t, this.tokens = qa(V.parseFormat(t), e), this.units = this.tokens.map((t) => Ra(t, e)), this.disqualifyingUnit = this.units.find((e) => e.invalidReason), !this.disqualifyingUnit) {
7744
+ if (this.locale = e, this.format = t, this.tokens = qa(U.parseFormat(t), e), this.units = this.tokens.map((t) => Ra(t, e)), this.disqualifyingUnit = this.units.find((e) => e.invalidReason), !this.disqualifyingUnit) {
7707
7745
  let [e, t] = Va(this.units);
7708
7746
  this.regex = RegExp(e, "i"), this.handlers = t;
7709
7747
  }
@@ -7715,7 +7753,7 @@ var Ja = class {
7715
7753
  null,
7716
7754
  void 0
7717
7755
  ];
7718
- if (Nr(n, "a") && Nr(n, "H")) throw new x("Can't include meridiem when specifying 24-hour format");
7756
+ if (R(n, "a") && R(n, "H")) throw new Ht("Can't include meridiem when specifying 24-hour format");
7719
7757
  return {
7720
7758
  input: e,
7721
7759
  tokens: this.tokens,
@@ -7754,18 +7792,18 @@ function Xa(e, t, n) {
7754
7792
  }
7755
7793
  function Za(e, t) {
7756
7794
  if (!e) return null;
7757
- let n = V.create(t, e).dtFormatter(Ga()), r = n.formatToParts(), i = n.resolvedOptions();
7795
+ let n = U.create(t, e).dtFormatter(Ga()), r = n.formatToParts(), i = n.resolvedOptions();
7758
7796
  return r.map((t) => Ba(t, e, i));
7759
7797
  }
7760
7798
  var Qa = "Invalid DateTime", $a = 864e13;
7761
7799
  function eo(e) {
7762
- return new N("unsupported zone", `the zone "${e.name}" is not supported`);
7800
+ return new P("unsupported zone", `the zone "${e.name}" is not supported`);
7763
7801
  }
7764
7802
  function to(e) {
7765
- return e.weekData === null && (e.weekData = gr(e.c)), e.weekData;
7803
+ return e.weekData === null && (e.weekData = hr(e.c)), e.weekData;
7766
7804
  }
7767
7805
  function no(e) {
7768
- return e.localWeekData === null && (e.localWeekData = gr(e.c, e.loc.getMinDaysInFirstWeek(), e.loc.getStartOfWeek())), e.localWeekData;
7806
+ return e.localWeekData === null && (e.localWeekData = hr(e.c, e.loc.getMinDaysInFirstWeek(), e.loc.getStartOfWeek())), e.localWeekData;
7769
7807
  }
7770
7808
  function Z(e, t) {
7771
7809
  let n = {
@@ -7803,14 +7841,14 @@ function io(e, t) {
7803
7841
  };
7804
7842
  }
7805
7843
  function ao(e, t, n) {
7806
- return ro(Vr(e), t, n);
7844
+ return ro(zr(e), t, n);
7807
7845
  }
7808
7846
  function oo(e, t) {
7809
7847
  let n = e.o, r = e.c.year + Math.trunc(t.years), i = e.c.month + Math.trunc(t.months) + Math.trunc(t.quarters) * 3, a = {
7810
7848
  ...e.c,
7811
7849
  year: r,
7812
7850
  month: i,
7813
- day: Math.min(e.c.day, Br(r, i)) + Math.trunc(t.days) + Math.trunc(t.weeks) * 7
7851
+ day: Math.min(e.c.day, Rr(r, i)) + Math.trunc(t.days) + Math.trunc(t.weeks) * 7
7814
7852
  }, o = J.fromObject({
7815
7853
  years: t.years - Math.trunc(t.years),
7816
7854
  quarters: t.quarters - Math.trunc(t.quarters),
@@ -7821,7 +7859,7 @@ function oo(e, t) {
7821
7859
  minutes: t.minutes,
7822
7860
  seconds: t.seconds,
7823
7861
  milliseconds: t.milliseconds
7824
- }).as("milliseconds"), [s, c] = ro(Vr(a), n, e.zone);
7862
+ }).as("milliseconds"), [s, c] = ro(zr(a), n, e.zone);
7825
7863
  return o !== 0 && (s += o, c = e.zone.offset(s)), {
7826
7864
  ts: s,
7827
7865
  o: c
@@ -7837,22 +7875,22 @@ function so(e, t, n, r, i, a) {
7837
7875
  });
7838
7876
  return o ? i : i.setZone(s);
7839
7877
  }
7840
- return Q.invalid(new N("unparsable", `the input "${i}" can't be parsed as ${r}`));
7878
+ return Q.invalid(new P("unparsable", `the input "${i}" can't be parsed as ${r}`));
7841
7879
  }
7842
7880
  function co(e, t, n = !0) {
7843
- return e.isValid ? V.create(O.create("en-US"), {
7881
+ return e.isValid ? U.create(k.create("en-US"), {
7844
7882
  allowZ: n,
7845
7883
  forceSimple: !0
7846
7884
  }).formatDateTimeFromString(e, t) : null;
7847
7885
  }
7848
7886
  function lo(e, t, n) {
7849
7887
  let r = e.c.year > 9999 || e.c.year < 0, i = "";
7850
- if (r && e.c.year >= 0 && (i += "+"), i += R(e.c.year, r ? 6 : 4), n === "year") return i;
7888
+ if (r && e.c.year >= 0 && (i += "+"), i += B(e.c.year, r ? 6 : 4), n === "year") return i;
7851
7889
  if (t) {
7852
- if (i += "-", i += R(e.c.month), n === "month") return i;
7890
+ if (i += "-", i += B(e.c.month), n === "month") return i;
7853
7891
  i += "-";
7854
- } else if (i += R(e.c.month), n === "month") return i;
7855
- return i += R(e.c.day), i;
7892
+ } else if (i += B(e.c.month), n === "month") return i;
7893
+ return i += B(e.c.day), i;
7856
7894
  }
7857
7895
  function uo(e, t, n, r, i, a, o) {
7858
7896
  let s = !n || e.c.millisecond !== 0 || e.c.second !== 0, c = "";
@@ -7861,18 +7899,18 @@ function uo(e, t, n, r, i, a, o) {
7861
7899
  case "month":
7862
7900
  case "year": break;
7863
7901
  default:
7864
- if (c += R(e.c.hour), o === "hour") break;
7902
+ if (c += B(e.c.hour), o === "hour") break;
7865
7903
  if (t) {
7866
- if (c += ":", c += R(e.c.minute), o === "minute") break;
7867
- s && (c += ":", c += R(e.c.second));
7904
+ if (c += ":", c += B(e.c.minute), o === "minute") break;
7905
+ s && (c += ":", c += B(e.c.second));
7868
7906
  } else {
7869
- if (c += R(e.c.minute), o === "minute") break;
7870
- s && (c += R(e.c.second));
7907
+ if (c += B(e.c.minute), o === "minute") break;
7908
+ s && (c += B(e.c.second));
7871
7909
  }
7872
7910
  if (o === "second") break;
7873
- s && (!r || e.c.millisecond !== 0) && (c += ".", c += R(e.c.millisecond, 3));
7911
+ s && (!r || e.c.millisecond !== 0) && (c += ".", c += B(e.c.millisecond, 3));
7874
7912
  }
7875
- return i && (e.isOffsetFixed && e.offset === 0 && !a ? c += "Z" : e.o < 0 ? (c += "-", c += R(Math.trunc(-e.o / 60)), c += ":", c += R(Math.trunc(-e.o % 60))) : (c += "+", c += R(Math.trunc(e.o / 60)), c += ":", c += R(Math.trunc(e.o % 60)))), a && (c += "[" + e.zone.ianaName + "]"), c;
7913
+ return i && (e.isOffsetFixed && e.offset === 0 && !a ? c += "Z" : e.o < 0 ? (c += "-", c += B(Math.trunc(-e.o / 60)), c += ":", c += B(Math.trunc(-e.o % 60))) : (c += "+", c += B(Math.trunc(e.o / 60)), c += ":", c += B(Math.trunc(e.o % 60)))), a && (c += "[" + e.zone.ianaName + "]"), c;
7876
7914
  }
7877
7915
  var fo = {
7878
7916
  month: 1,
@@ -7945,7 +7983,7 @@ function vo(e) {
7945
7983
  weekyears: "weekYear",
7946
7984
  ordinal: "ordinal"
7947
7985
  }[e.toLowerCase()];
7948
- if (!t) throw new Gt(e);
7986
+ if (!t) throw new Ut(e);
7949
7987
  return t;
7950
7988
  }
7951
7989
  function yo(e) {
@@ -7960,18 +7998,18 @@ function yo(e) {
7960
7998
  }
7961
7999
  }
7962
8000
  function bo(e) {
7963
- if (wo === void 0 && (wo = M.now()), e.type !== "iana") return e.offset(wo);
8001
+ if (wo === void 0 && (wo = N.now()), e.type !== "iana") return e.offset(wo);
7964
8002
  let t = e.name, n = To.get(t);
7965
8003
  return n === void 0 && (n = e.offset(wo), To.set(t, n)), n;
7966
8004
  }
7967
8005
  function xo(e, t) {
7968
- let n = A(t.zone, M.defaultZone);
8006
+ let n = j(t.zone, N.defaultZone);
7969
8007
  if (!n.isValid) return Q.invalid(eo(n));
7970
- let r = O.fromObject(t), i, a;
7971
- if (F(e.year)) i = M.now();
8008
+ let r = k.fromObject(t), i, a;
8009
+ if (I(e.year)) i = N.now();
7972
8010
  else {
7973
- for (let t of ho) F(e[t]) && (e[t] = fo[t]);
7974
- let t = Cr(e) || wr(e);
8011
+ for (let t of ho) I(e[t]) && (e[t] = fo[t]);
8012
+ let t = Sr(e) || Cr(e);
7975
8013
  if (t) return Q.invalid(t);
7976
8014
  let r = bo(n);
7977
8015
  [i, a] = ao(e, r, n);
@@ -7984,7 +8022,7 @@ function xo(e, t) {
7984
8022
  });
7985
8023
  }
7986
8024
  function So(e, t, n) {
7987
- let r = F(n.round) ? !0 : n.round, i = F(n.rounding) ? "trunc" : n.rounding, a = (e, a) => (e = Lr(e, r || n.calendary ? 0 : 2, n.calendary ? "round" : i), t.loc.clone(n).relFormatter(n).format(e, a)), o = (r) => n.calendary ? t.hasSame(e, r) ? 0 : t.startOf(r).diff(e.startOf(r), r).get(r) : t.diff(e, r).get(r);
8025
+ let r = I(n.round) ? !0 : n.round, i = I(n.rounding) ? "trunc" : n.rounding, a = (e, a) => (e = Fr(e, r || n.calendary ? 0 : 2, n.calendary ? "round" : i), t.loc.clone(n).relFormatter(n).format(e, a)), o = (r) => n.calendary ? t.hasSame(e, r) ? 0 : t.startOf(r).diff(e.startOf(r), r).get(r) : t.diff(e, r).get(r);
7988
8026
  if (n.unit) return a(o(n.unit), n.unit);
7989
8027
  for (let e of n.units) {
7990
8028
  let t = o(e);
@@ -7998,17 +8036,17 @@ function Co(e) {
7998
8036
  }
7999
8037
  var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8000
8038
  constructor(e) {
8001
- let t = e.zone || M.defaultZone, n = e.invalid || (Number.isNaN(e.ts) ? new N("invalid input") : null) || (t.isValid ? null : eo(t));
8002
- this.ts = F(e.ts) ? M.now() : e.ts;
8039
+ let t = e.zone || N.defaultZone, n = e.invalid || (Number.isNaN(e.ts) ? new P("invalid input") : null) || (t.isValid ? null : eo(t));
8040
+ this.ts = I(e.ts) ? N.now() : e.ts;
8003
8041
  let r = null, i = null;
8004
8042
  if (!n) {
8005
8043
  if (e.old && e.old.ts === this.ts && e.old.zone.equals(t)) [r, i] = [e.old.c, e.old.o];
8006
8044
  else {
8007
- let a = I(e.o) && !e.old ? e.o : t.offset(this.ts);
8008
- r = io(this.ts, a), n = Number.isNaN(r.year) ? new N("invalid input") : null, r = n ? null : r, i = n ? null : a;
8045
+ let a = L(e.o) && !e.old ? e.o : t.offset(this.ts);
8046
+ r = io(this.ts, a), n = Number.isNaN(r.year) ? new P("invalid input") : null, r = n ? null : r, i = n ? null : a;
8009
8047
  }
8010
8048
  }
8011
- this._zone = t, this.loc = e.loc || O.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
8049
+ this._zone = t, this.loc = e.loc || k.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = r, this.o = i, this.isLuxonDateTime = !0;
8012
8050
  }
8013
8051
  static now() {
8014
8052
  return new e({});
@@ -8027,7 +8065,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8027
8065
  }
8028
8066
  static utc() {
8029
8067
  let [e, t] = Co(arguments), [n, r, i, a, o, s, c] = t;
8030
- return e.zone = k.utcInstance, xo({
8068
+ return e.zone = A.utcInstance, xo({
8031
8069
  year: n,
8032
8070
  month: r,
8033
8071
  day: i,
@@ -8038,54 +8076,54 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8038
8076
  }, e);
8039
8077
  }
8040
8078
  static fromJSDate(t, n = {}) {
8041
- let r = Dr(t) ? t.valueOf() : NaN;
8079
+ let r = Er(t) ? t.valueOf() : NaN;
8042
8080
  if (Number.isNaN(r)) return e.invalid("invalid input");
8043
- let i = A(n.zone, M.defaultZone);
8081
+ let i = j(n.zone, N.defaultZone);
8044
8082
  return i.isValid ? new e({
8045
8083
  ts: r,
8046
8084
  zone: i,
8047
- loc: O.fromObject(n)
8085
+ loc: k.fromObject(n)
8048
8086
  }) : e.invalid(eo(i));
8049
8087
  }
8050
8088
  static fromMillis(t, n = {}) {
8051
- if (!I(t)) throw new S(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`);
8089
+ if (!L(t)) throw new w(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`);
8052
8090
  return t < -864e13 || t > $a ? e.invalid("Timestamp out of range") : new e({
8053
8091
  ts: t,
8054
- zone: A(n.zone, M.defaultZone),
8055
- loc: O.fromObject(n)
8092
+ zone: j(n.zone, N.defaultZone),
8093
+ loc: k.fromObject(n)
8056
8094
  });
8057
8095
  }
8058
8096
  static fromSeconds(t, n = {}) {
8059
- if (I(t)) return new e({
8097
+ if (L(t)) return new e({
8060
8098
  ts: t * 1e3,
8061
- zone: A(n.zone, M.defaultZone),
8062
- loc: O.fromObject(n)
8099
+ zone: j(n.zone, N.defaultZone),
8100
+ loc: k.fromObject(n)
8063
8101
  });
8064
- throw new S("fromSeconds requires a numerical input");
8102
+ throw new w("fromSeconds requires a numerical input");
8065
8103
  }
8066
8104
  static fromObject(t, n = {}) {
8067
8105
  t ||= {};
8068
- let r = A(n.zone, M.defaultZone);
8106
+ let r = j(n.zone, N.defaultZone);
8069
8107
  if (!r.isValid) return e.invalid(eo(r));
8070
- let i = O.fromObject(n), a = Jr(t, yo), { minDaysInFirstWeek: o, startOfWeek: s } = br(a, i), c = M.now(), l = F(n.specificOffset) ? r.offset(c) : n.specificOffset, u = !F(a.ordinal), d = !F(a.year), f = !F(a.month) || !F(a.day), p = d || f, m = a.weekYear || a.weekNumber;
8071
- if ((p || u) && m) throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8072
- if (f && u) throw new x("Can't mix ordinal dates with month/day");
8073
- let ee = m || a.weekday && !p, te, ne, h = io(c, l);
8074
- ee ? (te = go, ne = po, h = gr(h, o, s)) : u ? (te = _o, ne = mo, h = vr(h)) : (te = ho, ne = fo);
8075
- let re = !1;
8076
- for (let e of te) {
8108
+ let i = k.fromObject(n), a = Kr(t, yo), { minDaysInFirstWeek: o, startOfWeek: s } = yr(a, i), c = N.now(), l = I(n.specificOffset) ? r.offset(c) : n.specificOffset, u = !I(a.ordinal), d = !I(a.year), f = !I(a.month) || !I(a.day), p = d || f, m = a.weekYear || a.weekNumber;
8109
+ if ((p || u) && m) throw new Ht("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8110
+ if (f && u) throw new Ht("Can't mix ordinal dates with month/day");
8111
+ let ee = m || a.weekday && !p, h, g, _ = io(c, l);
8112
+ ee ? (h = go, g = po, _ = hr(_, o, s)) : u ? (h = _o, g = mo, _ = _r(_)) : (h = ho, g = fo);
8113
+ let te = !1;
8114
+ for (let e of h) {
8077
8115
  let t = a[e];
8078
- F(t) ? a[e] = re ? ne[e] : h[e] : re = !0;
8116
+ I(t) ? a[e] = te ? g[e] : _[e] : te = !0;
8079
8117
  }
8080
- let ie = (ee ? xr(a, o, s) : u ? Sr(a) : Cr(a)) || wr(a);
8081
- if (ie) return e.invalid(ie);
8082
- let [ae, oe] = ao(ee ? _r(a, o, s) : u ? yr(a) : a, l, r), se = new e({
8083
- ts: ae,
8118
+ let ne = (ee ? br(a, o, s) : u ? xr(a) : Sr(a)) || Cr(a);
8119
+ if (ne) return e.invalid(ne);
8120
+ let [re, ie] = ao(ee ? gr(a, o, s) : u ? vr(a) : a, l, r), v = new e({
8121
+ ts: re,
8084
8122
  zone: r,
8085
- o: oe,
8123
+ o: ie,
8086
8124
  loc: i
8087
8125
  });
8088
- return a.weekday && p && t.weekday !== se.weekday ? e.invalid("mismatched weekday", `you can't specify both a weekday of ${a.weekday} and a date of ${se.toISO()}`) : se.isValid ? se : e.invalid(se.invalid);
8126
+ return a.weekday && p && t.weekday !== v.weekday ? e.invalid("mismatched weekday", `you can't specify both a weekday of ${a.weekday} and a date of ${v.toISO()}`) : v.isValid ? v : e.invalid(v.invalid);
8089
8127
  }
8090
8128
  static fromISO(e, t = {}) {
8091
8129
  let [n, r] = ia(e);
@@ -8100,8 +8138,8 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8100
8138
  return so(n, r, t, "HTTP", t);
8101
8139
  }
8102
8140
  static fromFormat(t, n, r = {}) {
8103
- if (F(t) || F(n)) throw new S("fromFormat requires an input string and a format");
8104
- let { locale: i = null, numberingSystem: a = null } = r, [o, s, c, l] = Xa(O.fromOpts({
8141
+ if (I(t) || I(n)) throw new w("fromFormat requires an input string and a format");
8142
+ let { locale: i = null, numberingSystem: a = null } = r, [o, s, c, l] = Xa(k.fromOpts({
8105
8143
  locale: i,
8106
8144
  numberingSystem: a,
8107
8145
  defaultToEN: !0
@@ -8116,20 +8154,20 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8116
8154
  return so(n, r, t, "SQL", e);
8117
8155
  }
8118
8156
  static invalid(t, n = null) {
8119
- if (!t) throw new S("need to specify a reason the DateTime is invalid");
8120
- let r = t instanceof N ? t : new N(t, n);
8121
- if (M.throwOnInvalid) throw new Ht(r);
8157
+ if (!t) throw new w("need to specify a reason the DateTime is invalid");
8158
+ let r = t instanceof P ? t : new P(t, n);
8159
+ if (N.throwOnInvalid) throw new zt(r);
8122
8160
  return new e({ invalid: r });
8123
8161
  }
8124
8162
  static isDateTime(e) {
8125
8163
  return e && e.isLuxonDateTime || !1;
8126
8164
  }
8127
8165
  static parseFormatForOpts(e, t = {}) {
8128
- let n = Za(e, O.fromObject(t));
8166
+ let n = Za(e, k.fromObject(t));
8129
8167
  return n ? n.map((e) => e ? e.val : null).join("") : null;
8130
8168
  }
8131
8169
  static expandFormat(e, t = {}) {
8132
- return qa(V.parseFormat(e), O.fromObject(t)).map((e) => e.val).join("");
8170
+ return qa(U.parseFormat(e), k.fromObject(t)).map((e) => e.val).join("");
8133
8171
  }
8134
8172
  static resetCache() {
8135
8173
  wo = void 0, To.clear();
@@ -8207,7 +8245,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8207
8245
  return this.isValid ? no(this).weekYear : NaN;
8208
8246
  }
8209
8247
  get ordinal() {
8210
- return this.isValid ? vr(this.c).ordinal : NaN;
8248
+ return this.isValid ? _r(this.c).ordinal : NaN;
8211
8249
  }
8212
8250
  get monthShort() {
8213
8251
  return this.isValid ? Ea.months("short", { locObj: this.loc })[this.month - 1] : null;
@@ -8247,28 +8285,28 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8247
8285
  }
8248
8286
  getPossibleOffsets() {
8249
8287
  if (!this.isValid || this.isOffsetFixed) return [this];
8250
- let e = 864e5, t = 6e4, n = Vr(this.c), r = this.zone.offset(n - e), i = this.zone.offset(n + e), a = this.zone.offset(n - r * t), o = this.zone.offset(n - i * t);
8288
+ let e = 864e5, t = 6e4, n = zr(this.c), r = this.zone.offset(n - e), i = this.zone.offset(n + e), a = this.zone.offset(n - r * t), o = this.zone.offset(n - i * t);
8251
8289
  if (a === o) return [this];
8252
8290
  let s = n - a * t, c = n - o * t, l = io(s, a), u = io(c, o);
8253
8291
  return l.hour === u.hour && l.minute === u.minute && l.second === u.second && l.millisecond === u.millisecond ? [Z(this, { ts: s }), Z(this, { ts: c })] : [this];
8254
8292
  }
8255
8293
  get isInLeapYear() {
8256
- return Rr(this.year);
8294
+ return Ir(this.year);
8257
8295
  }
8258
8296
  get daysInMonth() {
8259
- return Br(this.year, this.month);
8297
+ return Rr(this.year, this.month);
8260
8298
  }
8261
8299
  get daysInYear() {
8262
- return this.isValid ? zr(this.year) : NaN;
8300
+ return this.isValid ? Lr(this.year) : NaN;
8263
8301
  }
8264
8302
  get weeksInWeekYear() {
8265
- return this.isValid ? Ur(this.weekYear) : NaN;
8303
+ return this.isValid ? Vr(this.weekYear) : NaN;
8266
8304
  }
8267
8305
  get weeksInLocalWeekYear() {
8268
- return this.isValid ? Ur(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek()) : NaN;
8306
+ return this.isValid ? Vr(this.localWeekYear, this.loc.getMinDaysInFirstWeek(), this.loc.getStartOfWeek()) : NaN;
8269
8307
  }
8270
8308
  resolvedLocaleOptions(e = {}) {
8271
- let { locale: t, numberingSystem: n, calendar: r } = V.create(this.loc.clone(e), e).resolvedOptions(this);
8309
+ let { locale: t, numberingSystem: n, calendar: r } = U.create(this.loc.clone(e), e).resolvedOptions(this);
8272
8310
  return {
8273
8311
  locale: t,
8274
8312
  numberingSystem: n,
@@ -8276,13 +8314,13 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8276
8314
  };
8277
8315
  }
8278
8316
  toUTC(e = 0, t = {}) {
8279
- return this.setZone(k.instance(e), t);
8317
+ return this.setZone(A.instance(e), t);
8280
8318
  }
8281
8319
  toLocal() {
8282
- return this.setZone(M.defaultZone);
8320
+ return this.setZone(N.defaultZone);
8283
8321
  }
8284
8322
  setZone(t, { keepLocalTime: n = !1, keepCalendarTime: r = !1 } = {}) {
8285
- if (t = A(t, M.defaultZone), t.equals(this.zone)) return this;
8323
+ if (t = j(t, N.defaultZone), t.equals(this.zone)) return this;
8286
8324
  if (t.isValid) {
8287
8325
  let e = this.ts;
8288
8326
  if (n || r) {
@@ -8309,18 +8347,18 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8309
8347
  }
8310
8348
  set(e) {
8311
8349
  if (!this.isValid) return this;
8312
- let t = Jr(e, yo), { minDaysInFirstWeek: n, startOfWeek: r } = br(t, this.loc), i = !F(t.weekYear) || !F(t.weekNumber) || !F(t.weekday), a = !F(t.ordinal), o = !F(t.year), s = !F(t.month) || !F(t.day), c = o || s, l = t.weekYear || t.weekNumber;
8313
- if ((c || a) && l) throw new x("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8314
- if (s && a) throw new x("Can't mix ordinal dates with month/day");
8350
+ let t = Kr(e, yo), { minDaysInFirstWeek: n, startOfWeek: r } = yr(t, this.loc), i = !I(t.weekYear) || !I(t.weekNumber) || !I(t.weekday), a = !I(t.ordinal), o = !I(t.year), s = !I(t.month) || !I(t.day), c = o || s, l = t.weekYear || t.weekNumber;
8351
+ if ((c || a) && l) throw new Ht("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
8352
+ if (s && a) throw new Ht("Can't mix ordinal dates with month/day");
8315
8353
  let u;
8316
- i ? u = _r({
8317
- ...gr(this.c, n, r),
8354
+ i ? u = gr({
8355
+ ...hr(this.c, n, r),
8318
8356
  ...t
8319
- }, n, r) : F(t.ordinal) ? (u = {
8357
+ }, n, r) : I(t.ordinal) ? (u = {
8320
8358
  ...this.toObject(),
8321
8359
  ...t
8322
- }, F(t.day) && (u.day = Math.min(Br(u.year, u.month), u.day))) : u = yr({
8323
- ...vr(this.c),
8360
+ }, I(t.day) && (u.day = Math.min(Rr(u.year, u.month), u.day))) : u = vr({
8361
+ ..._r(this.c),
8324
8362
  ...t
8325
8363
  });
8326
8364
  let [d, f] = ao(u, this.o, this.zone);
@@ -8364,13 +8402,13 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8364
8402
  return this.isValid ? this.plus({ [e]: 1 }).startOf(e, t).minus(1) : this;
8365
8403
  }
8366
8404
  toFormat(e, t = {}) {
8367
- return this.isValid ? V.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Qa;
8405
+ return this.isValid ? U.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Qa;
8368
8406
  }
8369
- toLocaleString(e = Kt, t = {}) {
8370
- return this.isValid ? V.create(this.loc.clone(t), e).formatDateTime(this) : Qa;
8407
+ toLocaleString(e = Wt, t = {}) {
8408
+ return this.isValid ? U.create(this.loc.clone(t), e).formatDateTime(this) : Qa;
8371
8409
  }
8372
8410
  toLocaleParts(e = {}) {
8373
- return this.isValid ? V.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
8411
+ return this.isValid ? U.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
8374
8412
  }
8375
8413
  toISO({ format: e = "extended", suppressSeconds: t = !1, suppressMilliseconds: n = !1, includeOffset: r = !0, extendedZone: i = !1, precision: a = "milliseconds" } = {}) {
8376
8414
  if (!this.isValid) return null;
@@ -8441,7 +8479,7 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8441
8479
  locale: this.locale,
8442
8480
  numberingSystem: this.numberingSystem,
8443
8481
  ...n
8444
- }, i = Ar(t).map(J.normalizeUnit), a = e.valueOf() > this.valueOf(), o = ka(a ? this : e, a ? e : this, i, r);
8482
+ }, i = kr(t).map(J.normalizeUnit), a = e.valueOf() > this.valueOf(), o = ka(a ? this : e, a ? e : this, i, r);
8445
8483
  return a ? o.negate() : o;
8446
8484
  }
8447
8485
  diffNow(t = "milliseconds", n = {}) {
@@ -8488,16 +8526,16 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8488
8526
  }) : null;
8489
8527
  }
8490
8528
  static min(...t) {
8491
- if (!t.every(e.isDateTime)) throw new S("min requires all arguments be DateTimes");
8492
- return jr(t, (e) => e.valueOf(), Math.min);
8529
+ if (!t.every(e.isDateTime)) throw new w("min requires all arguments be DateTimes");
8530
+ return Ar(t, (e) => e.valueOf(), Math.min);
8493
8531
  }
8494
8532
  static max(...t) {
8495
- if (!t.every(e.isDateTime)) throw new S("max requires all arguments be DateTimes");
8496
- return jr(t, (e) => e.valueOf(), Math.max);
8533
+ if (!t.every(e.isDateTime)) throw new w("max requires all arguments be DateTimes");
8534
+ return Ar(t, (e) => e.valueOf(), Math.max);
8497
8535
  }
8498
8536
  static fromFormatExplain(e, t, n = {}) {
8499
8537
  let { locale: r = null, numberingSystem: i = null } = n;
8500
- return Ya(O.fromOpts({
8538
+ return Ya(k.fromOpts({
8501
8539
  locale: r,
8502
8540
  numberingSystem: i,
8503
8541
  defaultToEN: !0
@@ -8508,95 +8546,95 @@ var wo, To = /* @__PURE__ */ new Map(), Q = class e {
8508
8546
  }
8509
8547
  static buildFormatParser(e, t = {}) {
8510
8548
  let { locale: n = null, numberingSystem: r = null } = t;
8511
- return new Ja(O.fromOpts({
8549
+ return new Ja(k.fromOpts({
8512
8550
  locale: n,
8513
8551
  numberingSystem: r,
8514
8552
  defaultToEN: !0
8515
8553
  }), e);
8516
8554
  }
8517
8555
  static fromFormatParser(t, n, r = {}) {
8518
- if (F(t) || F(n)) throw new S("fromFormatParser requires an input string and a format parser");
8519
- let { locale: i = null, numberingSystem: a = null } = r, o = O.fromOpts({
8556
+ if (I(t) || I(n)) throw new w("fromFormatParser requires an input string and a format parser");
8557
+ let { locale: i = null, numberingSystem: a = null } = r, o = k.fromOpts({
8520
8558
  locale: i,
8521
8559
  numberingSystem: a,
8522
8560
  defaultToEN: !0
8523
8561
  });
8524
- if (!o.equals(n.locale)) throw new S(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);
8562
+ if (!o.equals(n.locale)) throw new w(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${n.locale}`);
8525
8563
  let { result: s, zone: c, specificOffset: l, invalidReason: u } = n.explainFromTokens(t);
8526
8564
  return u ? e.invalid(u) : so(s, c, r, `format ${n.format}`, t, l);
8527
8565
  }
8528
8566
  static get DATE_SHORT() {
8529
- return Kt;
8567
+ return Wt;
8530
8568
  }
8531
8569
  static get DATE_MED() {
8532
- return qt;
8570
+ return Gt;
8533
8571
  }
8534
8572
  static get DATE_MED_WITH_WEEKDAY() {
8535
- return Jt;
8573
+ return Kt;
8536
8574
  }
8537
8575
  static get DATE_FULL() {
8538
- return Yt;
8576
+ return qt;
8539
8577
  }
8540
8578
  static get DATE_HUGE() {
8541
- return Xt;
8579
+ return Jt;
8542
8580
  }
8543
8581
  static get TIME_SIMPLE() {
8544
- return Zt;
8582
+ return Yt;
8545
8583
  }
8546
8584
  static get TIME_WITH_SECONDS() {
8547
- return Qt;
8585
+ return Xt;
8548
8586
  }
8549
8587
  static get TIME_WITH_SHORT_OFFSET() {
8550
- return $t;
8588
+ return Zt;
8551
8589
  }
8552
8590
  static get TIME_WITH_LONG_OFFSET() {
8553
- return en;
8591
+ return Qt;
8554
8592
  }
8555
8593
  static get TIME_24_SIMPLE() {
8556
- return tn;
8594
+ return $t;
8557
8595
  }
8558
8596
  static get TIME_24_WITH_SECONDS() {
8559
- return nn;
8597
+ return en;
8560
8598
  }
8561
8599
  static get TIME_24_WITH_SHORT_OFFSET() {
8562
- return rn;
8600
+ return tn;
8563
8601
  }
8564
8602
  static get TIME_24_WITH_LONG_OFFSET() {
8565
- return an;
8603
+ return nn;
8566
8604
  }
8567
8605
  static get DATETIME_SHORT() {
8568
- return on;
8606
+ return rn;
8569
8607
  }
8570
8608
  static get DATETIME_SHORT_WITH_SECONDS() {
8571
- return sn;
8609
+ return an;
8572
8610
  }
8573
8611
  static get DATETIME_MED() {
8574
- return cn;
8612
+ return on;
8575
8613
  }
8576
8614
  static get DATETIME_MED_WITH_SECONDS() {
8577
- return ln;
8615
+ return sn;
8578
8616
  }
8579
8617
  static get DATETIME_MED_WITH_WEEKDAY() {
8580
- return un;
8618
+ return cn;
8581
8619
  }
8582
8620
  static get DATETIME_FULL() {
8583
- return dn;
8621
+ return ln;
8584
8622
  }
8585
8623
  static get DATETIME_FULL_WITH_SECONDS() {
8586
- return fn;
8624
+ return un;
8587
8625
  }
8588
8626
  static get DATETIME_HUGE() {
8589
- return pn;
8627
+ return dn;
8590
8628
  }
8591
8629
  static get DATETIME_HUGE_WITH_SECONDS() {
8592
- return mn;
8630
+ return fn;
8593
8631
  }
8594
8632
  };
8595
8633
  function Eo(e) {
8596
8634
  if (Q.isDateTime(e)) return e;
8597
- if (e && e.valueOf && I(e.valueOf())) return Q.fromJSDate(e);
8635
+ if (e && e.valueOf && L(e.valueOf())) return Q.fromJSDate(e);
8598
8636
  if (e && typeof e == "object") return Q.fromObject(e);
8599
- throw new S(`Unknown datetime argument: ${e}, of type ${typeof e}`);
8637
+ throw new w(`Unknown datetime argument: ${e}, of type ${typeof e}`);
8600
8638
  }
8601
8639
  //#endregion
8602
8640
  //#region generated/regionTowns.ts
@@ -8926,7 +8964,7 @@ var us = /* @__PURE__ */ new Set([
8926
8964
  "delivered",
8927
8965
  "exception",
8928
8966
  "unknown"
8929
- ]), ds = new Set(Se), fs = [
8967
+ ]), ds = new Set(ye), fs = [
8930
8968
  "current_stage_source",
8931
8969
  "last_status_text",
8932
8970
  "provider_code",
@@ -8960,7 +8998,7 @@ function hs(e, t) {
8960
8998
  };
8961
8999
  }
8962
9000
  function gs(e) {
8963
- if (!Vt(e)) throw TypeError("The carrier adapter returned an invalid response");
9001
+ if (!Rt(e)) throw TypeError("The carrier adapter returned an invalid response");
8964
9002
  let t = { ...e };
8965
9003
  if (t.status = typeof e.status == "string" && us.has(e.status) ? e.status : "unknown", e.current_stage !== void 0) {
8966
9004
  if (typeof e.current_stage != "string" || !ds.has(e.current_stage)) throw TypeError("The carrier adapter returned an invalid current stage");
@@ -8975,23 +9013,23 @@ function gs(e) {
8975
9013
  (typeof t.service_name != "string" || !t.service_name.trim() || t.service_name.length > 80) && delete t.service_name;
8976
9014
  for (let e of ms) {
8977
9015
  let n = t[e];
8978
- if (typeof n != "string" || !ht.test(g(n))) continue;
8979
- let r = _t(n);
9016
+ if (typeof n != "string" || !ft.test(y(n))) continue;
9017
+ let r = mt(n);
8980
9018
  r ? t[e] = r : delete t[e];
8981
9019
  }
8982
- (t.delivery_carrier != null && (typeof t.delivery_carrier != "string" || !Object.hasOwn(ye, t.delivery_carrier)) || t.delivery_tracking_number != null && (typeof t.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(t.delivery_tracking_number))) && (delete t.delivery_carrier, delete t.delivery_tracking_number), (typeof t.destination_country != "string" || !/^[A-Z]{2}$/.test(t.destination_country)) && delete t.destination_country, (typeof t.destination_country_name != "string" || t.destination_country_name.length > 80) && delete t.destination_country_name;
9020
+ (t.delivery_carrier != null && (typeof t.delivery_carrier != "string" || !Object.hasOwn(ge, t.delivery_carrier)) || t.delivery_tracking_number != null && (typeof t.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(t.delivery_tracking_number))) && (delete t.delivery_carrier, delete t.delivery_tracking_number), (typeof t.destination_country != "string" || !/^[A-Z]{2}$/.test(t.destination_country)) && delete t.destination_country, (typeof t.destination_country_name != "string" || t.destination_country_name.length > 80) && delete t.destination_country_name;
8983
9021
  for (let e of ["summary_only", "history_truncated"]) typeof t[e] != "boolean" && delete t[e];
8984
9022
  let r = t.events ?? [];
8985
9023
  if (!Array.isArray(r)) throw TypeError("The carrier adapter returned invalid tracking events");
8986
9024
  return t.events = r.map((e) => {
8987
- if (!Vt(e)) throw TypeError("The carrier adapter returned an invalid tracking event");
9025
+ if (!Rt(e)) throw TypeError("The carrier adapter returned an invalid tracking event");
8988
9026
  for (let t of ps) {
8989
9027
  let n = e[t];
8990
9028
  if (n != null && typeof n != "string") throw TypeError("The carrier adapter returned an invalid tracking event");
8991
9029
  }
8992
9030
  let t = { ...e };
8993
9031
  if (t.point !== void 0) {
8994
- let e = Vt(t.point) ? hs(t.point.latitude, t.point.longitude) : null;
9032
+ let e = Rt(t.point) ? hs(t.point.latitude, t.point.longitude) : null;
8995
9033
  e ? t.point = e : delete t.point;
8996
9034
  }
8997
9035
  return t;
@@ -9018,58 +9056,62 @@ function bs(e) {
9018
9056
  let t = vs(e), n = t.replace(ys, " ");
9019
9057
  return n === t ? void 0 : vs(n.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, ""));
9020
9058
  }
9021
- var xs = String.raw`(?:dispatched|despatched|shipped|sent|received|processed|handed (?:over|in)|posted)\b`, Ss = String.raw`handed (?:over )?to (?!(?:the |a |an |your )?(?:recipient|addressee|consignee|customer|receiver|neighbou?r|customs|you|person)\b)`, Cs = new RegExp(String.raw`(?:\bnot (?:yet (?:been )?${xs}|(?:been )?${xs}(?: \w+){0,3}? yet\b)|(?:\bnot|n't)(?: been)? ${Ss})${$}*`, "g"), ws = String.raw`(?<!\b(?:(?:pick ?up|collection) (?:order|request)|sender|shipper|seller|merchant|consignor)(?: has| have)?(?: been)? )\bhanded (?:over )?to `, Ts = String.raw`(?:(?:the|a|an|our|your) )?(?:delivery )?couriers?\b(?! (?:compan|service|partner|network|guy\b))`, Es = RegExp(`${ws}${Ts}`), Ds = new RegExp(String.raw`${ws}(?!${Ts})(?:the |a |an |our |your )?(?:[\w-]+ ){0,2}?(?:courier|carrier)s?\b`), Os = String.raw`(?:(?:import|export)(?:\/(?:import|export))? |local |destination |origin )?`, ks = new RegExp([
9059
+ var xs = String.raw`(?:dispatched|despatched|shipped|sent|received|processed|handed (?:over|in)|posted)\b`, Ss = String.raw`handed (?:over )?to (?!(?:the |a |an |your )?(?:recipient|addressee|consignee|customer|receiver|neighbou?r|customs|you|person)\b)`, Cs = String.raw`(?:gls|dpd|dhl|ups|fedex|tnt|hermes|colissimo|chronopost|brt|sda|inpost)\b`, ws = String.raw`(?:packstation|paketstation|paketshop|parcelshop|shop|filiale|access point|pick ?up|locker|consigne|relais|restante|fermopoint|point|punto|box|station)\b`, Ts = String.raw`(?! ${ws})`, Es = [
9060
+ String.raw`(?:\bn'(?:a|ont)(?: toujours)? (?:pas|jamais)(?: encore)? ete|\bpas encore) (?:remis|confie)e?s? (?:a|au|aux) (?:(?:la|le|les) |l')?(?:(?:transporteur|livreur|coursier|messagerie|operateur|prestataire)s?|poste|${Cs})\b${Ts}`,
9061
+ String.raw`(?:\b(?:wurde|wurden|ist|sind|war|waren)\b(?: [\w'-]+){0,4}? |(?:^|[.;:] )(?:(?:das|die|der|ihr|ihre) )?(?:[\w-]+ )?(?:noch )?)nicht an (?:(?:den|die|das|dem|der|unseren|unsere|unserem) )?(?:[\w-]+ )?(?:zusteller|paketzusteller|paketdienst|kurier|kurierdienst|versanddienst|spediteur|post|${Cs}) ubergeben\b(?! werden)`,
9062
+ String.raw`\bnon (?:(?:e|sono|ancora|stat[oaie]|mai) )*affidat[oaie] (?:(?:a|ad|al|allo|alla|ai|agli|alle) |all')(?:corrier[ei]|vettor[ei]|trasportator[ei]|spedizionier[ei]|operatore|posta|poste|${Cs})\b${Ts}`
9063
+ ].join("|"), Ds = new RegExp(String.raw`(?:\bnot (?:yet (?:been )?${xs}|(?:been )?${xs}(?: \w+){0,3}? yet\b)|(?:\bnot|n't)(?: been)? ${Ss}|(?:\bnot|n't) yet(?: been)? ${Ss}(?!(?:the |a |an |your )?(?:[\w-]+ )?${ws})|${Es})${$}*`, "g"), Os = String.raw`(?<!\b(?:(?:pick ?up|collection) (?:order|request)|sender|shipper|seller|merchant|consignor)(?: has| have)?(?: been)? )\bhanded (?:over )?to `, ks = String.raw`(?:(?:the|a|an|our|your) )?(?:delivery )?couriers?\b(?! (?:compan|service|partner|network|guy\b))`, As = RegExp(`${Os}${ks}`), js = new RegExp(String.raw`${Os}(?!${ks})(?:the |a |an |our |your )?(?:[\w-]+ ){0,2}?(?:courier|carrier)s?\b`), Ms = /customs|clearance|douan|formalites (?:d')?(?:import|export)|zoll|dogan|\b(?:des)?aduan[ae]|alfandeg|\bceln|government agency|autorite gouvernementale|staatliche behorde|autorita governativa/, Ns = String.raw`(?:(?:import|export)(?:\/(?:import|export))? |local |destination |origin )?`, Ps = new RegExp([
9022
9064
  String.raw`attend d'etre libere|attente de liberation|wartet auf.*freigabe|attesa di svincolo`,
9023
9065
  String.raw`(?:customs|clearance).*\bnot\b.*(?:clear|complet|releas)|customs (?:not cleared|clearance not completed)|not.*released by customs`,
9024
9066
  String.raw`(?:\bnot|n't|\bnever|\byet to)\b(?: (?:yet|been|be|being|have|has|had|fully|still))* (?:released|cleared|left|exited|out of|passed)\b${$}*?\bcustoms\b`,
9025
9067
  String.raw`\b(?:will|would|shall|should|may|might|must|can|could|once|when|until|till|before|unless|as soon as|needs? to|has to|have to|yet to|waiting to|expected to|about to)\b(?: \w+){0,3}? (?:be |been |get |gets |is |are |has been |have been )?(?:released|cleared)\b${$}*?\bcustoms\b`,
9026
9068
  String.raw`\b(?:customs|clearance)\b${$}*?\b(?:will|would|shall|should|may|might|must|can|could|once|when|until|till|before|unless|as soon as|needs? to|has to|have to|yet to|waiting to|expected to|about to|to)\b(?: \w+){0,2}? (?:be |been |get |gets |is |are |has been |have been )?(?:released|cleared|completed?|finished|done)\b`,
9027
- String.raw`\b(?:be|being) (?:released|cleared) (?:from |by |through |out of )?(?:the )?${Os}customs\b|\bclearance (?:is )?(?:in progress|ongoing|under way|underway)\b|\b(?:be|being) customs cleared\b`,
9069
+ String.raw`\b(?:be|being) (?:released|cleared) (?:from |by |through |out of )?(?:the )?${Ns}customs\b|\bclearance (?:is )?(?:in progress|ongoing|under way|underway)\b|\b(?:be|being) customs cleared\b`,
9028
9070
  String.raw`dedouanement.*(?:non termine|pas termine)|\b(?:pas|non|jamais)\b(?: (?:encore|ete|etre|completement|totalement))* (?:dedouane|(?:sorti|libere)e?s? (?:de |par )?(?:la )?douane)|\b(?:sera|seront|serait|va etre|vont etre|doit etre|doivent etre|devra etre|devrait etre|pourra etre|en attente d'etre)(?: \w+){0,2}? (?:dedouane|libere)`,
9029
9071
  String.raw`zollabfertigung.*nicht abgeschlossen|nicht.*zoll.*freigegeben|\bnicht (?:\w+ )?verzollt\b|\b(?:wird|werden|muss|mussen|soll|sollen|kann|konnen)\b${$}*?\bverzollt\b|\b(?:verzollung|zollabfertigung|zollfreigabe|zollkontrolle)\b${$}*?\b(?:nicht|steht aus|ausstehend)\b`,
9030
9072
  String.raw`sdoganamento.*non completato|\bnon\b(?: \w+){0,3}? (?:sdoganat|uscit[oaie] dalla dogana|svincolat)|\b(?:sara|saranno|verra|verranno|deve essere|devono essere|dovra essere|in attesa di essere|attende di essere)(?: \w+){0,2}? sdoganat`,
9031
9073
  String.raw`\b(?:no|sin)\b(?: \w+){0,3}? (?:(?:liberad|despachad)[oa]s?|salido|salio|sale|salir) (?:por|de|en|desde) (?:la )?aduana|\b(?:sera|seran|va a ser|van a ser|debe ser|deben ser|pendiente de|en espera de|a la espera de|esperando)\b(?: \w+){0,2}? (?:(?:liberad|despachad)[oa]s?|liberacion|despacho|salida)\b${$}*?\baduan[ae]`,
9032
9074
  String.raw`\bnao\b(?: \w+){0,3}? (?:desalfandegad[oa]s?|desembaracad[oa]s?|(?:liberad[oa]s?|saiu) (?:pela|na|da|de) (?:alfandega|aduana|fiscalizacao))\b|\b(?:aguardando|a aguardar|aguarda|em espera de|pendente de|sera|serao|vai ser|deve ser)\b(?: \w+){0,2}? (?:desalfandeg|(?:liberad|liberacao|desembarac)\w*${$}*?\b(?:alfandeg|aduan[ae]|fiscalizacao))`,
9033
9075
  String.raw`\b(?:nie|oczekuje na|czeka na|w trakcie|przed)\b(?: \w+){0,2}? (?:odpraw|zwolnion)\w*${$}*?\b(?:celn|urzad)`
9034
- ].join("|")), As = new RegExp([
9076
+ ].join("|")), Fs = new RegExp([
9035
9077
  String.raw`\bclearance\b${$}*?\b(?:complete|completed|finished|done|success|successful|successfully|concluded|granted|approved|obtained)\b`,
9036
- String.raw`(?:leaving|departed from|left|exited|exiting|out of|passed(?: through)?) (?:the )?${Os}customs\b(?! (?:to|for) (?:the )?(?:sender|shipper)\b)`,
9037
- String.raw`completion of customs|released by (?:customs|a government agency)|\breleased (?:from|out of|at) (?:the )?${Os}customs\b|\breturned from (?:the )?${Os}customs\b(?! to\b)`,
9038
- String.raw`customs (?:cleared|(?:has |have )?released)|\bcustoms (?:release|inspection|examination|check|control) (?:has been |was |is )?(?:granted|completed?|finished|done|passed)\b|\bcleared (?:through |by |the )?${Os}customs\b`,
9078
+ String.raw`(?:leaving|departed from|left|exited|exiting|out of|passed(?: through)?) (?:the )?${Ns}customs\b(?! (?:to|for) (?:the )?(?:sender|shipper)\b)`,
9079
+ String.raw`completion of customs|released by (?:customs|a government agency)|\breleased (?:from|out of|at) (?:the )?${Ns}customs\b|\breturned from (?:the )?${Ns}customs\b(?! to\b)`,
9080
+ String.raw`customs (?:cleared|(?:has |have )?released)|\bcustoms (?:release|inspection|examination|check|control) (?:has been |was |is )?(?:granted|completed?|finished|done|passed)\b|\bcleared (?:through |by |the )?${Ns}customs\b`,
9039
9081
  String.raw`formalites.*(?:terminee|achevee)|dedouanement.*(?:termine|acheve)|fin du dedouanement|\bdedouanement (?:(?:du colis|de (?:votre |l'|ce )?(?:colis|envoi)) )?(?:(?:a ete|est) )?(?:effectue|realise|reussi|valide|finalise)e?s?\b|\bdedouane(?:e|s|es)?\b|libere.*(?:douane|autorite)|douane.*libere|\bsorti(?:e|s|es)? de (?:la )?douane\b`,
9040
9082
  String.raw`zollabfertigung.*abgeschlossen|(?:zoll|behorde).*freigegeben|\bverzollt\b|\b(?:verzollung|zollabfertigung|zollkontrolle|zollprufung|zollformalitaten)\b${$}*?\b(?:abgeschlossen|erledigt|beendet)\b|\b(?:verzollung|zollfreigabe) (?:ist |wurde )?(?:erfolgt|erteilt)\b(?! durch)|\b(?:den zoll|das zolllager|die zollstelle|das zollamt) verlassen\b`,
9041
9083
  String.raw`sdoganamento.*completato|completamento.*sdoganamento|svincolat.*(?:dogana|autorita)|\bsdoganat[oaie]\b|\bsdoganamento\b${$}*?\b(?:effettuato|concluso|avvenuto|terminato|ultimato)\b|\bsvincolo (?:doganale )?(?:e )?(?:avvenuto|effettuato|concesso|completato|ottenuto)\b|\busci(?:to|ta|ti|te) dalla dogana\b|\bcontrollo doganale (?:e )?(?:superato|completato|concluso|terminato)\b`,
9042
9084
  String.raw`\b(?:liberad|despachad)[oa]s? (?:por|de|en|desde) (?:la |las )?aduanas?\b|\b(?:salida|salio|ha salido|sale) (?:de|desde) (?:la )?aduana\b|\b(?:tramites|despacho|gestion(?:es)?|proceso)(?: (?:de|del|en))?(?: (?:la |las |los )?aduanas?| aduaner[oa]s?)+ (?:(?:ha sido|han sido|fue|fueron) )?(?:finalizad|completad|terminad|concluid|realizad)[oa]s?\b`,
9043
9085
  String.raw`\b(?:liberad|desembaracad)[oa]s? (?:pela|na|da) (?:alfandega|aduana|fiscalizacao(?: aduaneira)?|receita federal)\b|\bdesalfandegad[oa]s?\b|\b(?:desalfandegamento|desembaraco(?: aduaneiro)?|fiscalizacao aduaneira|tramites aduaneiros|processo aduaneiro) (?:(?:foi|esta|foram) )?(?:concluid|finalizad|terminad|realizad|efetuad|efectuad)[oa]s?\b|\b(?:saiu|saida) (?:da|de) (?:alfandega|aduana)\b`,
9044
9086
  String.raw`\bodprawa celna (?:\w+ )?(?:zakonczona|zakonczyla sie|ukonczona)\b|\bodprawion[aey] celnie\b|\bzwolnion[aey] (?:przez urzad celny|z urzedu celnego)\b|\bopuscil[aoy]? urzad celny\b`
9045
- ].join("|")), js = new RegExp(String.raw`\bcustoms (?:hold|detention)\b|\b(?:held|on hold|detained|retained) (?:by|in|at) (?:the )?${Os}customs?\b|retenu en douane|vom zoll zuruckgehalten|fermo in dogana|retenido en aduana|retido na alfandega|zatrzyman[ay] przez (?:urzad celny|cel)`), Ms = new RegExp([
9087
+ ].join("|")), Is = new RegExp(String.raw`\bcustoms (?:hold|detention)\b|\b(?:held|on hold|detained|retained) (?:by|in|at) (?:the )?${Ns}customs?\b|retenu en douane|vom zoll zuruckgehalten|fermo in dogana|retenido en aduana|retido na alfandega|zatrzyman[ay] przez (?:urzad celny|cel)`), Ls = new RegExp([
9046
9088
  String.raw`\b(?:released|freed|cleared) (?:from|of) (?:the )?customs (?:hold|detention|inspection|examination)\b`,
9047
9089
  String.raw`\bcustoms (?:issue|problem|hold|detention)s? (?:(?:has|have) been |was |were |is |are )?(?:now )?(?:resolved|solved|lifted|released|cleared|removed|fixed)\b`,
9048
9090
  String.raw`\bprobleme (?:douanier|de douane) (?:a ete |est )?(?:resolu|regle|leve)e?\b|\bzollproblem (?:wurde |ist )?(?:behoben|gelost|geklart)\b|\bproblema doganale (?:e stato )?risolto\b|\bproblema (?:de|en la) aduana (?:ha sido |fue )?(?:resuelto|solucionado)\b|\bproblema (?:alfandegario|na alfandega) (?:foi )?resolvido\b`
9049
- ].join("|")), Ns = String.raw`(?:(?:at|per|by|upon|on|following|as per) (?:the )?(?:recipient|addressee|consignee|customer|receiver)(?:'s|s')? request|(?:at|per|by|upon|on|following) (?:the )?request of (?:the )?(?:recipient|addressee|consignee|customer|receiver)|requested by (?:the )?(?:recipient|addressee|consignee|customer|receiver)|(?:recipient|addressee|consignee|customer|receiver)(?: has)? requested\b|a la demande (?:du|de la) (?:destinataire|cliente?)|(?:auf|nach) (?:wunsch|anweisung|verlangen) (?:des|der) (?:empfangers|empfangerin|kunden|kundin)|auf (?:empfanger|kunden)wunsch|su richiesta del (?:destinatario|cliente)|(?:a|por) (?:peticion|solicitud|pedido) del (?:destinatario|cliente)|a pedido do (?:destinatario|cliente)|na (?:prosbe|zyczenie) (?:odbiorcy|adresata|klienta))`, Ps = String.raw`\b(?:on hold|held|hold|holding|retenu(?:e|s|es)?|en attente|mise? en instance|zuruckgehalten|zuruckbehalten|angehalten|gelagert|trattenut[oaie]|fermo|in sosta|retenid[oa]s?|en espera|retid[oa]s?|zatrzyman[aey]|wstrzyman[aey])\b`, Fs = RegExp(`${Ps}${$}*?${Ns}|${Ns}${$}*?${Ps}`), Is = /post office|postal outlet|pick ?up|collection|counter|retail (?:location|outlet)|bureau de poste|point (?:de )?retrait|point relais|filiale|abholung|ufficio postale|ritiro|oficina|recogida|levantamento|agencia/, Ls = String.raw`(?:recipient|addressee|consignee|customer|receiver)s?\b(?!'| (?:service|care|support)\b)`, Rs = String.raw`(?:pick ?up (?:point|station|parcel ?shop|locker)|collection point|(?:parcel )?lockers?|packstation|(?:post office |postal )?counter)\b`, zs = String.raw`(?:picked up|collected)`, Bs = new RegExp([
9050
- String.raw`\b${zs}(?: [\w'-]+){0,6}? by (?:the |a |an |its |your )?${Ls}|\b${Ls} (?:has |have )?(?:already )?${zs}\b|\b${zs} (?:from|at|in) (?:the |a |an |its |your |our )?(?:[\w-]+ ){0,2}?${Rs}`,
9091
+ ].join("|")), Rs = String.raw`(?:(?:at|per|by|upon|on|following|as per) (?:the )?(?:recipient|addressee|consignee|customer|receiver)(?:'s|s')? request|(?:at|per|by|upon|on|following) (?:the )?request of (?:the )?(?:recipient|addressee|consignee|customer|receiver)|requested by (?:the )?(?:recipient|addressee|consignee|customer|receiver)|(?:recipient|addressee|consignee|customer|receiver)(?: has)? requested\b|a la demande (?:du|de la) (?:destinataire|cliente?)|(?:auf|nach) (?:wunsch|anweisung|verlangen) (?:des|der) (?:empfangers|empfangerin|kunden|kundin)|auf (?:empfanger|kunden)wunsch|su richiesta del (?:destinatario|cliente)|(?:a|por) (?:peticion|solicitud|pedido) del (?:destinatario|cliente)|a pedido do (?:destinatario|cliente)|na (?:prosbe|zyczenie) (?:odbiorcy|adresata|klienta))`, zs = String.raw`\b(?:on hold|held|hold|holding|retenu(?:e|s|es)?|en attente|mise? en instance|zuruckgehalten|zuruckbehalten|angehalten|gelagert|trattenut[oaie]|fermo|in sosta|retenid[oa]s?|en espera|retid[oa]s?|zatrzyman[aey]|wstrzyman[aey])\b`, Bs = RegExp(`${zs}${$}*?${Rs}|${Rs}${$}*?${zs}`), Vs = /post office|postal outlet|pick ?up|collection|counter|retail (?:location|outlet)|bureau de poste|point (?:de )?retrait|point relais|filiale|abholung|ufficio postale|ritiro|oficina|recogida|levantamento|agencia/, Hs = String.raw`(?:recipient|addressee|consignee|customer|receiver)s?\b(?!'| (?:service|care|support)\b)`, Us = String.raw`(?:pick ?up (?:point|station|parcel ?shop|locker)|collection point|(?:parcel )?lockers?|packstation|(?:post office |postal )?counter)\b`, Ws = String.raw`(?:picked up|collected)`, Gs = new RegExp([
9092
+ String.raw`\b${Ws}(?: [\w'-]+){0,6}? by (?:the |a |an |its |your )?${Hs}|\b${Hs} (?:has |have )?(?:already )?${Ws}\b|\b${Ws} (?:from|at|in) (?:the |a |an |its |your |our )?(?:[\w-]+ ){0,2}?${Us}`,
9051
9093
  String.raw`\bretire(?:e|s|es)?\b${$}*? par (?:le |la |l'|son |sa )?(?:destinataire|cliente?)\b|\b(?:destinataire|cliente?) a retire\b|\bretire(?:e|s|es)? (?:au |en |dans (?:le |la |l'|un |une |votre |son )|a la |a l')(?:point (?:de )?retrait|point relais|relais|consigne|locker|bureau de poste)\b`,
9052
9094
  String.raw`\b(?:vom|von (?:der|dem)|durch (?:den|die)) (?:empfanger(?:in)?|kunden|kundin|adressaten|adressatin)\b${$}*?\babgeholt\b|\b(?:empfanger(?:in)?|kunde|kundin) hat\b${$}*?\babgeholt\b|\b(?:in|aus) (?:der|dem|einer|einem|ihrer|ihrem) (?:[\w-]+ )?(?:filiale|postfiliale|packstation|paketstation|abholstation|postamt)\b${$}*?\babgeholt\b`,
9053
9095
  String.raw`\britirat[oaie]\b${$}*? dal(?:la)? (?:destinatari[oa]|cliente)\b|\b(?:destinatari[oa]|cliente) ha ritirato\b|\britirat[oaie] (?:presso|in|al|nel|nella) (?:il |la |lo |l')?(?:punto (?:di )?ritiro|locker|ufficio postale)\b`,
9054
9096
  String.raw`\b(?:recogid|retirad)[oa]s? por (?:el |la )?destinatari[oa]\b|\bdestinatari[oa] (?:ya )?ha (?:recogido|retirado)\b|\b(?:levantad|retirad)[oa]s? pel[oa] destinatari[oa]\b|\bodebran[aeoy] przez (?:odbiorce|adresata)\b`
9055
- ].join("|")), Vs = String.raw`(?:picked up|collected|retire|abgeholt|ritirat|recogid|retirad|levantad|odebran)`, Hs = new RegExp(String.raw`(?:\b(?:not|never|nothing|non|pas|jamais|nicht|nao|nie)\b|n't)${$}*?${Vs}|\bno (?:(?:ha|han|fue|sido|se) )*(?:recogid|retirad)|\b(?:be|being|once|when|until|till|if|unless|before|etre|sera|seront|serait|essere|sara|saranno|verra|verranno)(?: [\w']+){0,3}? ${Vs}|\babgeholt (?:werden|wird)\b|\b(?:wird|werden|kann|konnen|muss|soll)\b${$}*?\babgeholt\b`), Us = new RegExp(String.raw`\b(?:by|from|par|de|du|vom|von|beim|dal|dalla|dallo|por|del|pelo|przez) (?:the |a |an |our |your |le |la |l'|den |der |dem |il |lo |el |o )?(?:[\w-]+ )?(?:couriers?|drivers?|carriers?|senders?|shippers?|sellers?|merchants?|consignors?|chauffeur|livreur|transporteur|coursier|expediteur|\w*(?:fahrer|kurier|zusteller|boten?)|absender|corriere|autista|vettore|mittente|repartidor|mensajero|transportista|remitente|motorista|estafeta|remetente|kuriera|nadawcy)\b(?!')`), Ws = new RegExp(String.raw`^(?:(?:the |your |this )?(?:shipment|parcel|package|order|consignment|item|delivery|(?:shipping )?label|envoi|colis|commande|livraison|sendung|paket|auftrag|bestellung|lieferung|spedizione|pacco|ordine|consegna|envio|paquete|pedido|entrega|encomenda|objeto|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )?(?:(?:has been|was|is|a ete|est|wurde|ist|e stat[oa]|e|ha sido|fue|foi|zostal[ao]?) )?(?:cancell?ed|annulee?s?|storniert|annulliert|annullat[oa]|cancelad[oa]|anulad[oa]|anulowan[aeoy]|iptal edildi)$`);
9056
- function Gs(e) {
9097
+ ].join("|")), Ks = String.raw`(?:picked up|collected|retire|abgeholt|ritirat|recogid|retirad|levantad|odebran)`, qs = new RegExp(String.raw`(?:\b(?:not|never|nothing|non|pas|jamais|nicht|nao|nie)\b|n't)${$}*?${Ks}|\bno (?:(?:ha|han|fue|sido|se) )*(?:recogid|retirad)|\b(?:be|being|once|when|until|till|if|unless|before|etre|sera|seront|serait|essere|sara|saranno|verra|verranno)(?: [\w']+){0,3}? ${Ks}|\babgeholt (?:werden|wird)\b|\b(?:wird|werden|kann|konnen|muss|soll)\b${$}*?\babgeholt\b`), Js = new RegExp(String.raw`\b(?:by|from|par|de|du|vom|von|beim|dal|dalla|dallo|por|del|pelo|przez) (?:the |a |an |our |your |le |la |l'|den |der |dem |il |lo |el |o )?(?:[\w-]+ )?(?:couriers?|drivers?|carriers?|senders?|shippers?|sellers?|merchants?|consignors?|chauffeur|livreur|transporteur|coursier|expediteur|\w*(?:fahrer|kurier|zusteller|boten?)|absender|corriere|autista|vettore|mittente|repartidor|mensajero|transportista|remitente|motorista|estafeta|remetente|kuriera|nadawcy)\b(?!')`), Ys = new RegExp(String.raw`^(?:(?:the |your |this )?(?:shipment|parcel|package|order|consignment|item|delivery|(?:shipping )?label|envoi|colis|commande|livraison|sendung|paket|auftrag|bestellung|lieferung|spedizione|pacco|ordine|consegna|envio|paquete|pedido|entrega|encomenda|objeto|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )?(?:(?:has been|was|is|a ete|est|wurde|ist|e stat[oa]|e|ha sido|fue|foi|zostal[ao]?) )?(?:cancell?ed|annulee?s?|storniert|annulliert|annullat[oa]|cancelad[oa]|anulad[oa]|anulowan[aeoy]|iptal edildi)$`);
9098
+ function Xs(e) {
9057
9099
  let t = vs(e);
9058
9100
  if (/^wird zugestellt$/.test(t)) return "out_for_delivery";
9059
9101
  let n = bs(t);
9060
- if (n !== void 0) return n ? Gs(n) : void 0;
9102
+ if (n !== void 0) return n ? Xs(n) : void 0;
9061
9103
  if (_s(t) || /\b(?:en|em) (?:proceso de |processo de )?devolu(?:cion|cao)\b|^devolu(?:cion|cao)$|\bdevolu(?:cion|cao) (?:en curso|em curso|iniciada|solicitada|en transito|em transito)\b|\bdevolu(?:cion|cao) (?:al|ao|a la|a) (?:remitente|remetente|origen|origem)\b(?! (?:completad|finalizad|concluid|entregad|entregue|realizad|efectuad|efetuad))|\ben camino (?:de vuelta |de regreso )?(?:al|hacia el) remitente\b|\b(?:a caminho (?:de volta )?(?:do|ao)|em transito para o) remetente\b|\b(?:siendo|sendo|a ser) (?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\b(?:no|nao) (?:(?:ha|han|se|fue|foi|foram|sido|ser|sera|puede|pode|pudo|podido|todavia|aun|ainda|ya|ja) )*(?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\b(?:sera|seran|serao|va a ser|vai ser|puede ser|pode ser|debe ser|deve ser|devera ser) (?:(?:pronto|proximamente|en breve|em breve|brevemente) )?(?:(?:devuelt|devolvid)[oa]s?|entregad[oa]s? al remitente|entregues? ao remetente)\b|\bse (?:le )?devolvera\b/.test(t)) return "exception";
9062
9104
  if (/returned to (?:the )?sender|retour(?:ne)? a l'expediteur|zuruck an (?:den )?absender|an (?:den )?absender zuruck|retour a l'expediteur|reso al mittente|restituit[oa] al mittente|delivered (?:back )?to (?:the )?(?:sender|shipper)/.test(t) || /^(?:(?:envio|paquete|pedido|objeto|encomenda|pacote|remessa) )?(?:devuelt|devolvid)[oa]$|\b(?:devuelt|devolvid|retornad)[oa]s? (?:al|ao|a la|a) (?:remitente|remetente|origen|origem)\b|\bentregad[oa]s? al remitente\b|\bentregues? ao remetente\b|\bdevolu(?:cion|cao) (?:(?:al|ao|a la|a) (?:remitente|remetente|origen|origem) )?(?:completad|finalizad|concluid|entregad|entregue|realizad|efectuad|efetuad)/.test(t)) return "returned";
9063
9105
  if (/^(?:a )?(?:new|next|another|further) (?:delivery )?attempt\b/.test(t) && !/\b(?:not|unable|fail(?:ed|ure)?|unsuccessful|missed|absent|closed|refused|nobody|no one)\b|n't\b/.test(t)) return "in_transit";
9064
- if (/not (?:yet )?delivered|\bundelivered\b|could not.*deliver|\bcan(?: ?not|'t) be delivered\b|unable to deliver|delivery (?:attempt|failed)|non livre|n'(?:a|avons) (?:pas )?pu.*(?:remis|remettre)|n'a pas pu etre (?:distribue|livre)|\bne (?:peut|pourra|pourrait|pouvait) (?:pas )?etre (?:distribue|livre)|livraison (?:impossible|echouee)|\bechec (?:de (?:la )?)?livraison|tentative de livraison|nicht zugestellt|nicht zugestellt werden|zustellung.*(?:fehlgeschlagen|nicht moglich)|zustellversuch|non consegnat[oa]|non e stato possibile consegnare|consegna (?:fallita|non riuscita)|tentativo di consegna/.test(t) || /\bno (?:(?:ha|han|hemos|se|le|lo|la|fue|sido|ser|es|era|pudo|puede|podido|posible|todavia|aun) )*(?:entregad[oa]s?|entregar(?:lo|la|le|se)?|repartid[oa]s?|realizar la entrega|efectuar la entrega)\b|\bsin entregar\b|\b(?:entrega|reparto) (?:fallid[oa]|imposible|no (?:(?:ha|han|se|fue|sido|ser|pudo|puede|podido) )*(?:realizad[oa]|efectuad[oa]|completad[oa]|posible|conseguid[oa]))\b|\bimposible (?:entregar|realizar la entrega|efectuar la entrega)\b|\bfallo (?:en la|de) entrega\b|\bintento fallido\b|\bintento de (?:entrega|reparto)\b(?! (?:programad|previst|para (?:hoy|manana|el)|manana|hoy))|\bnao (?:(?:foi|foram|ser|sera|pode|podemos|conseguimos|conseguiu|se|possivel|e|ainda|tem sido|esta|estava) )*(?:entregues?|entregar|efetuar a entrega|efectuar a entrega|realizar a entrega)\b|\bentrega (?:falhada|sem sucesso|impossivel|nao (?:(?:foi|pode|ser|sera|tem sido) )*(?:efetuada|efectuada|realizada|conseguida|concretizada|possivel))\b|\bfalha (?:na|de) entrega\b|\btentativa (?:de entrega|sem sucesso)\b(?! (?:agendada|prevista|programada|para (?:hoje|amanha)|amanha|hoje))|\bcarteiro nao atendido\b/.test(t) || !/\bpick ?up (?:attempt|was attempted|unsuccessful|failed)|attempted (?:to )?pick ?up/.test(t) && /(?:attempted|tried) to deliver|\bwe(?: have|'ve)? missed (?:you|each other)\b(?![^.;!?]*\bready for (?:pickup|collection)\b)|\battempted delivery\b(?! (?:is )?(?:scheduled|planned|expected|tomorrow|will)\b)|unsuccessful delivery|delivery (?:was )?unsuccessful|unable to complete (?:the |your |this )?delivery|(?<!\bif (?:the |your )?)\b(?:recipient|addressee|consignee|customer|receiver|user)(?: was| is)? (?:not (?:at home|home|available|present)|unavailable|absent)\b|absence of (?:the )?(?:recipient|addressee|consignee)|\bbusiness (?:was |is )?closed\b|destinataire absent|(?<!\ben cas d')\babsence du destinataire|(?:entreprise|societe) (?:etait |est )?fermee?\b|nicht angetroffen|(?:firma|betrieb|geschaft) (?:war |ist )?geschlossen|destinatario assente|(?:attivita|azienda|ditta) (?:era |e )?chiusa/.test(t) || !/\bintento de recogida\b|\brecogida (?:fallida|no realizada|no efectuada)\b|\btentativa de (?:recolha|coleta)\b|\b(?:recolha|coleta) (?:falhada|sem sucesso|nao (?:realizada|efetuada|efectuada))\b/.test(t) && !/\b(?:si|caso)\b[^.;:]*\b(?:ausen|nadie|ninguem|cerrad|fechad|no (?:esta|se encuentra)|nao (?:esta|se encontra))|\bse (?:o |a )?(?:destinatari[oa] |cliente )?(?:estiver|for|nao estiver)\b/.test(t) && /\bausen(?:te|tes|cia)\b|\b(?:destinatari[oa]|cliente|consignatari[oa]) (?:no (?:esta|estaba|se encuentra|se encontraba|disponible|presente)|nao (?:esta|estava|se encontra|se encontrava|disponivel|presente))\b|\bnadie en (?:casa|el domicilio)\b|\bninguem em casa\b|\b(?:establecimiento|negocio|empresa|comercio|tienda) (?:esta |estaba |se encontraba )?cerrad[oa]\b|\b(?:estabelecimento|empresa|loja|comercio|negocio) (?:esta |estava |se encontrava )?fechad[oa]\b/.test(t)) return "failed_attempt";
9065
- if (Fs.test(t)) return Is.test(t) ? "ready_for_pickup" : "in_transit";
9106
+ if (/not (?:yet )?delivered|\bundelivered\b|could not.*deliver|\bcan(?: ?not|'t) be delivered\b|unable to deliver|delivery (?:attempt|failed)|non livre|n'(?:a|avons) (?:pas )?pu.*(?:remis|remettre)|n'a pas pu etre (?:distribue|livre)|\bne (?:peut|pourra|pourrait|pouvait) (?:pas )?etre (?:distribue|livre)|livraison (?:impossible|echouee)|\bechec (?:de (?:la )?)?livraison|tentative de livraison|nicht zugestellt|nicht zugestellt werden|zustellung.*(?:fehlgeschlagen|nicht moglich)|zustellversuch|non consegnat[oa]|\bmancata consegna\b|non e stato possibile consegnare|consegna (?:fallita|non riuscita)|tentativo di consegna/.test(t) || /\bno (?:(?:ha|han|hemos|se|le|lo|la|fue|sido|ser|es|era|pudo|puede|podido|posible|todavia|aun) )*(?:entregad[oa]s?|entregar(?:lo|la|le|se)?|repartid[oa]s?|realizar la entrega|efectuar la entrega)\b|\bsin entregar\b|\b(?:entrega|reparto) (?:fallid[oa]|imposible|no (?:(?:ha|han|se|fue|sido|ser|pudo|puede|podido) )*(?:realizad[oa]|efectuad[oa]|completad[oa]|posible|conseguid[oa]))\b|\bimposible (?:entregar|realizar la entrega|efectuar la entrega)\b|\bfallo (?:en la|de) entrega\b|\bintento fallido\b|\bintento de (?:entrega|reparto)\b(?! (?:programad|previst|para (?:hoy|manana|el)|manana|hoy))|\bnao (?:(?:foi|foram|ser|sera|pode|podemos|conseguimos|conseguiu|se|possivel|e|ainda|tem sido|esta|estava) )*(?:entregues?|entregar|efetuar a entrega|efectuar a entrega|realizar a entrega)\b|\bentrega (?:falhada|sem sucesso|impossivel|nao (?:(?:foi|pode|ser|sera|tem sido) )*(?:efetuada|efectuada|realizada|conseguida|concretizada|possivel))\b|\bfalha (?:na|de) entrega\b|\btentativa (?:de entrega|sem sucesso)\b(?! (?:agendada|prevista|programada|para (?:hoje|amanha)|amanha|hoje))|\bcarteiro nao atendido\b/.test(t) || !/\bpick ?up (?:attempt|was attempted|unsuccessful|failed)|attempted (?:to )?pick ?up/.test(t) && /(?:attempted|tried) to deliver|\bwe(?: have|'ve)? missed (?:you|each other)\b(?![^.;!?]*\bready for (?:pickup|collection)\b)|\battempted delivery\b(?! (?:is )?(?:scheduled|planned|expected|tomorrow|will)\b)|unsuccessful delivery|delivery (?:was )?unsuccessful|unable to complete (?:the |your |this )?delivery|(?<!\bif (?:the |your )?)\b(?:recipient|addressee|consignee|customer|receiver|user)(?: was| is)? (?:not (?:at home|home|available|present)|unavailable|absent)\b|absence of (?:the )?(?:recipient|addressee|consignee)|\bbusiness (?:was |is )?closed\b|destinataire absent|(?<!\ben cas d')\babsence du destinataire|(?:entreprise|societe) (?:etait |est )?fermee?\b|nicht angetroffen|(?:firma|betrieb|geschaft) (?:war |ist )?geschlossen|destinatario assente|(?:attivita|azienda|ditta) (?:era |e )?chiusa/.test(t) || !/\bintento de recogida\b|\brecogida (?:fallida|no realizada|no efectuada)\b|\btentativa de (?:recolha|coleta)\b|\b(?:recolha|coleta) (?:falhada|sem sucesso|nao (?:realizada|efetuada|efectuada))\b/.test(t) && !/\b(?:si|caso)\b[^.;:]*\b(?:ausen|nadie|ninguem|cerrad|fechad|no (?:esta|se encuentra)|nao (?:esta|se encontra))|\bse (?:o |a )?(?:destinatari[oa] |cliente )?(?:estiver|for|nao estiver)\b/.test(t) && /\bausen(?:te|tes|cia)\b|\b(?:destinatari[oa]|cliente|consignatari[oa]) (?:no (?:esta|estaba|se encuentra|se encontraba|disponible|presente)|nao (?:esta|estava|se encontra|se encontrava|disponivel|presente))\b|\bnadie en (?:casa|el domicilio)\b|\bninguem em casa\b|\b(?:establecimiento|negocio|empresa|comercio|tienda) (?:esta |estaba |se encontraba )?cerrad[oa]\b|\b(?:estabelecimento|empresa|loja|comercio|negocio) (?:esta |estava |se encontrava )?fechad[oa]\b/.test(t)) return "failed_attempt";
9107
+ if (Bs.test(t)) return Vs.test(t) ? "ready_for_pickup" : "in_transit";
9066
9108
  if (/\b(?:damaged|broken in transit)\b|endommag|avarie|deterior|beschadigt|danneggiat|danad[oa]|danificad|uszkodzon/.test(t) || /\blost (?:in transit|package|parcel|shipment)?\b|colis perdu|envoi perdu|egare|verloren|verlust der sendung|smarrit|(?:paquete|envio) perdid|extraviad|zagubion|zaginion/.test(t) || /refused by (?:the )?(?:recipient|consignee)|\brefused\b|rejected by (?:the )?recipient|refus(?:e|ee)? par le destinataire|refus du destinataire|(?:colis|envoi|pli) refuse|annahme verweigert|verweigert|rifiutat|rechazad|recusad|odmowa przyjecia|odmowiono przyjecia/.test(t) || /address (?:incomplete|incorrect|invalid|insufficient|unknown)|(?:incorrect|incomplete|insufficient|wrong|invalid) address|(?:updated|correct(?:ed)?|complete) (?:delivery )?address (?:is )?(?:required|needed)|address(?:ee)? (?:unknown|cannot be located)|recipient unknown|adresse (?:incorrecte|incomplete|erronee|invalide|inconnue)|destinataire inconnu|(?:adresse|anschrift) (?:unvollstandig|falsch|unbekannt)|empfanger unbekannt|indirizzo (?:errato|incompleto|insufficiente|sconosciuto)|destinatario sconosciuto|direccion (?:incorrecta|incompleta|erronea|desconocida)|destinatario desconocido|endereco (?:incorreto|incompleto|errado|desconhecido)|destinatario desconhecido|adres (?:niepelny|nieprawidlowy|bledny)|nieznany adresat/.test(t)) return "exception";
9067
- if (Ms.test(t)) return "in_transit";
9109
+ if (Ls.test(t)) return "in_transit";
9068
9110
  if (/customs (?:issue|problem)|probleme de douane|zollproblem|problema doganale|problema de aduana|problema (?:alfandegario|na alfandega)|problem celny/.test(t)) return "exception";
9069
- if (js.test(t)) return "customs";
9070
- if (/(?:shipment|parcel|package) (?:is )?(?:held|blocked|on hold)|held pending|awaiting (?:your )?instructions|action required|(?:colis|envoi|pli) (?:bloque|retenu)|en attente d'instructions|action requise|sendung (?:blockiert|zuruckgehalten|angehalten)|wartet auf anweisungen|handlung erforderlich|spedizione (?:bloccata|trattenuta)|in attesa di istruzioni|envio (?:bloqueado|retenido)|en espera de instrucciones|accion requerida|encomenda (?:bloqueada|retida)|aguarda instrucoes|acao necessaria|przesylka (?:zatrzymana|wstrzymana)|oczekuje na instrukcje/.test(t) || /\bincident\b|\banomal(?:y|ie|ia)\b|delivery exception|shipment exception|irregularit|unregelmassigkeit|storung|vorfall|inconveniente|incidencia|nieprawidlowosc/.test(t) || Ws.test(t)) return "exception";
9111
+ if (Is.test(t)) return "customs";
9112
+ if (/(?:shipment|parcel|package) (?:is )?(?:held|blocked|on hold)|held pending|awaiting (?:your )?instructions|action required|(?:colis|envoi|pli) (?:bloque|retenu)|en attente d'instructions|action requise|sendung (?:blockiert|zuruckgehalten|angehalten)|wartet auf anweisungen|handlung erforderlich|spedizione (?:bloccata|trattenuta)|in attesa di istruzioni|envio (?:bloqueado|retenido)|en espera de instrucciones|accion requerida|encomenda (?:bloqueada|retida)|aguarda instrucoes|acao necessaria|przesylka (?:zatrzymana|wstrzymana)|oczekuje na instrukcje/.test(t) || /\bincident\b|\banomal(?:y|ie|ia)\b|delivery exception|shipment exception|irregularit|unregelmassigkeit|storung|vorfall|inconveniente|incidencia|nieprawidlowosc/.test(t) || Ys.test(t)) return "exception";
9071
9113
  if (/\b(?:data|information|details) delivered\b|\bdaten (?:ubermittelt|erhalten)|donnees (?:transmises|recues)/.test(t) || /\b(?:datos|informacion|dados|informacao|informacoes) (?:del envio |do envio |da encomenda )?(?:entregad[oa]s?|entregues?)\b/.test(t) || /\bpara (?:su )?(?:admision|admissao)\b|\b(?:deposited|dropped off)\b(?: [\w']+){0,8}? for (?:admission|acceptance)\b/.test(t)) return "registered";
9072
- if (Bs.test(t) && !Hs.test(t) && !Us.test(t)) return "delivered";
9114
+ if (Gs.test(t) && !qs.test(t) && !Js.test(t)) return "delivered";
9073
9115
  if (/delivered (?:to|at|in(?:to)?) [^.;,]*?(?:pick ?up (?:point|location)|parcel ?shop|access point|packstation|parcel locker|relay point|service point|collection point)|livre (?:au|en|dans (?:le|un|votre)) (?:point (?:de )?retrait|point relais|relais|consigne|locker)|(?:est|colis|envoi) disponible (?:dans|au|en) (?:votre |le |un )?(?:point (?:de )?retrait|point relais|relais|consigne|bureau de poste)/.test(t) || /(?<!\b(?:sera|seran|serao|ser|sea|seja|for|siendo|sendo) )\bentregad[oa]s? (?:en|a|al) (?:el |la |un |una |su |tu )?(?:punto (?:de )?(?:recogida|conveniencia)|punto (?:pack|celeritas|collectt|nacex|inpost|dpd|gls|seur|mrw|ups|correos)|locker|taquilla|consigna|citypaq|parcel ?shop|buzon inteligente)\b|(?<!\b(?:sera|serao|ser|seja|for|sendo) )\bentregues? (?:no|num|na|numa|em|ao|a) (?:ponto (?:de )?(?:recolha|levantamento|pickup|entrega)|ponto (?:ctt|dpd|gls|inpost|ups|payshop)|cacifo|locker|loja ctt|payshop)\b/.test(t)) return "ready_for_pickup";
9074
9116
  if (/delivered to (?:the |a |an |our )?(?:local |destination |final |next |onward |last mile )?(?:carrier|courier|airline|air carrier|hub|depot|terminal|forwarder|(?:handling )?agent|(?:logistics|transport(?:ation)?|shipping|delivery|courier) (?:company|provider|partner|agent|service)|sorting (?:center|centre|facility)|(?:processing |distribution |transit |delivery |logistics )?(?:center|centre|facility)|post office(?! box)|postal (?:operator|service|office)|destination country)\b|delivered to (?:the )?(?:\w+ )?(?:post|poste|posta)\b(?! box| office box)|delivered to (?:dhl|dpd|gls|ups|fedex|usps|tnt|hermes|evri|colissimo|chronopost|quickpac|planzer)\b|handed (?:over )?to (?:the |a |an |our )?(?:local |last mile )?delivery partner|en cours de livraison (?:au|en|vers (?:le|un|votre)) (?:point (?:de )?retrait|point relais|relais|consigne)|livre au transporteur|remis au transporteur local|an den lokalen zusteller ubergeben|consegnat[oa] al (?:corriere|vettore|trasportatore)/.test(t) || /(?<!\b(?:sera|seran|ser|sea|for) )\bentregad[oa]s? (?:(?:el|su|tu) (?:paquete|envio|pedido|bulto) )?(?:a|al|en) (?:el |la |un |una |nuestr[oa] )?(?:transportista|agencia (?:de )?(?:transporte|colaboradora|destino|origen)|operador(?: postal| logistico)?|mensajer(?:o|ia)|courier|empresa de (?:transporte|mensajeria|paqueteria)|compania (?:aerea|de transporte)|aerolinea|centro (?:de )?(?:clasificacion|distribucion|tratamiento|logistico|operaciones)|almacen|delegacion|plataforma|hub|correos|seur|mrw|nacex|tipsa|ctt|gls|dhl|dpd|ups|fedex|tnt|envialia|zeleris|paack|celeritas|inpost)\b|\bentregad[oa] por el remitente\b|(?<!\b(?:sera|serao|ser|seja|for) )\bentregues? (?:(?:a|o) (?:encomenda|envio|objeto) )?(?:a|ao|aos|as|na|no|nos|em) (?:transportadora|transportador|operador(?: postal| logistico)?|parceiro|companhia aerea|centro (?:de )?(?:distribuicao|tratamento|triagem|operacional|logistico)|armazem|plataforma|hub|ctt|correios|dpd|gls|dhl|ups|fedex|tnt|seur|mrw|nacex|tipsa|inpost)\b|\bentregue pelo remetente\b/.test(t)) return "in_transit";
9075
9117
  if (/will (?:shortly |soon )?be handed|bientot.*(?:confie|remis)|prochainement.*remis|wird.*(?:kurze|bald).*ubergeben|sara.*(?:breve|presto).*affidat/.test(t) || /\bpendiente de (?:entregar|entrega|recepcion|admision|recibir) (?:a|al|en|por) (?:la |el )?(?:agencia|transportista|operador|correos|seur|mrw|nacex|tipsa|ctt|gls|dhl|dpd|ups|fedex|envialia|zeleris|paack|inpost|celeritas)\b|\bpendiente de (?:recepcion|admision)\b|\baguarda entrada\b|\bpendente de (?:rececao|recepcao|entrada)\b/.test(t) || /or awaiting processing|ou en attente de traitement|oder wartet auf.*bearbeitung|o in attesa di elaborazione/.test(t)) return "registered";
@@ -9077,31 +9119,31 @@ function Gs(e) {
9077
9119
  if (/ready for (?:pickup|collection)|ready to collect|ready to be (?:picked up|collected)\b(?! (?:by|from) (?:the |a |an |our |your )?(?:courier|carrier|driver|sender|shipper|seller|merchant|warehouse)\b)|available for (?:pickup|collection)|awaiting (?:customer |recipient |your )?(?:pickup|collection)|pret.*(?:retrait|retire)|disponible.*(?:retrait|collecte)|vous attend (?:au|en|dans|chez|a)\b|mise? a disposition (?:au|en|dans|a)\b.*(?:point (?:de )?retrait|relais|consigne|locker|bureau de poste|agence)|jours? restants? pour (?:le )?retirer|abholbereit|zur abholung bereit|pront[oa] per il ritiro|disponibile per il ritiro|(?:deposited|depose|hinterlegt|depositat[oa]).*mypost24/.test(t) || /(?<!\b(?:no|nao|ya no|ja nao) (?:(?:esta|estara|se encuentra|se encontra|e|era|foi) )?)\bdisponi(?:ble|vel) (?:para (?:su |ser )?(?:recoger|recogida|recogid[oa]|retirar|retiro|retirada|retirad[oa]|levantamento|levantar|levantad[oa]|recolha|recolher)|(?:en|no|na|num|numa|em) (?:el |la |un |una |su |tu |nuestr[oa] )?(?:punto|oficina|tienda|locker|taquilla|consigna|citypaq|parcel ?shop|buzon inteligente|agencia|delegacion|sucursal|ponto|loja|cacifo|estacao|balcao|payshop|posto|unidade))\b|\blist[oa] para (?:su |ser )?(?:recoger|recogida|recogid[oa]|retirar|retiro)\b|\bpront[oa] (?:para|a) (?:ser )?(?:levantamento|levantar|levantad[oa]|recolha|recolher|retirada|retirar)\b|\b(?:ya )?(?:puede|puedes|podra|podras) (?:pasar a )?recoger(?:lo|la)?\b|\b(?:aguarda|aguardando|a aguardar) (?:o |a )?(?:levantamento|retirada)\b|\besperando (?:su|tu) recogida\b|\b(?:pendiente de|esperando|a la espera de) (?:ser )?recogid[oa] por (?:el |la )?destinatari[oa]\b/.test(t)) return "ready_for_pickup";
9078
9120
  if (/label (?:created|printed)|(?:created|generated) a (?:new )?(?:shipment |shipping )?label|etiquette.*(?:cree|imprime)|cree une etiquette|versandetikett.*(?:erstellt|gedruckt)|etikett erstellt|etichetta.*(?:creata|stampata)|creato un'etichetta|elektronisch|electroni(?:c|que|sch)|elettronic|pre.?advi[cs]|preannunciat|vorangemeldet|preannonce|data.*entered|donnees.*saisies|daten.*erfasst|dati.*inseriti|\bpre ?(?:registered|registration|registr?ad[oa]s?|registrat[oa]|enregistree?s?)\b|\bprerregistr(?:ad[oa]s?|o)\b|\bvorregistriert\b|\bwstepnie zarejestrowan[aey]\b/.test(t) || /\border (?:details|information|info|data) (?:(?:has|have) been |was |were )?(?:received|submitted|transmitted)\b|\breceived (?:your |the )?order (?:details|information|data)\b|\b(?:details|informations|donnees) de (?:la |votre )?commande (?:ont ete )?(?:recu|transmis)e?s?\b|\b(?:auftrags|bestell)daten (?:wurden |sind )?(?:erhalten|ubermittelt|eingegangen)\b|\b(?:dati|dettagli) (?:dell'ordine|ordine) (?:sono stati )?ricevuti\b|\b(?:datos|detalles|informacion) del pedido (?:han sido |fueron )?recibid[oa]s?\b|\b(?:dados|detalhes|informacoes?) d[oa] (?:pedido|encomenda) (?:foram )?recebid[oa]s?\b|\bdane zamowienia (?:zostaly )?(?:otrzymane|przyjete)\b|\botrzymano dane zamowienia\b/.test(t) || /shipment information (?:received|sent to)|\bdata received\b|(?:package|parcel|shipment) data (?:was |has been )?sent to|\bpre ?notification\b|informations d'expedition recues|sendungsinformationen erhalten|informazioni.*spedizione ricevute|(?:consignment|shipment|parcel|package) recorded by|envoi enregistre par|sendung.*absender.*erfasst|spedizione registrata dal/.test(t) || /preparation chez.*expediteur|preparation.*expediteur|preparazione.*mittente|being prepared.*sender|(?:shipper|sender)(?: that)? (?:they are|is|are) preparing|beim absender.*vorbereitet|warehouse of the sender|shippers warehouse|entrepot de l'expediteur|lager des absenders|magazzino del mittente|demande d'envoi.*prise en compte|collection request.*(?:received|recorded)|abholauftrag.*erfasst|richiesta.*ritiro.*registrata/.test(t)) return "registered";
9079
9121
  if (!/\b(?:at|in|by) (?:the )?(?:destination|delivery|recipient|consignee|addressee|customer|customs|office of exchange)\b/.test(t)) {
9080
- let e = t.replace(Cs, " ");
9081
- if (e !== t) return Gs(e.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, "")) ?? "registered";
9122
+ let e = t.replace(Ds, " ");
9123
+ if (e !== t) return Xs(e.replace(/^[\s,;:.!?]+|[\s,;:]+$/g, "")) ?? (Ms.test(t) ? !Ps.test(t) && Fs.test(t) ? "in_transit" : "customs" : "registered");
9082
9124
  }
9083
9125
  if (/^(?:reported|recorded|announced|item created|enregistre|annonce|erfasst|angekundigt|registrato|annunciato)$/.test(t) || /^(?:(?:the |your |a |new )?(?:shipment|parcel|package|consignment|order|envoi|colis|expedition|commande|sendung|paket|auftrag|spedizione|pacco|ordine|envio|paquete|pedido|encomenda|przesylka|paczka|zamowienie|gonderi|kargo|siparis) )(?:(?:has been|was|a ete|wurde|e stat[oa]|ha sido|fue|foi|zostal[ao]?) )?(?:created|creee?s?|erstellt|angelegt|creat[oa]|cread[oa]|criad[oa]|utworzon[aey]|olusturuldu)$/.test(t)) return "registered";
9084
- if (ks.test(t)) return "customs";
9085
- if (As.test(t)) return "in_transit";
9086
- if (/customs|clearance|douan|formalites (?:d')?(?:import|export)|zoll|dogan|\b(?:des)?aduan[ae]|alfandeg|\bceln|government agency|autorite gouvernementale|staatliche behorde|autorita governativa/.test(t)) return "customs";
9087
- if (/out for (?:physical )?delivery|\bout with (?:the |a |our |your )?(?:delivery )?(?:courier|driver)s?\b(?! for (?:pick ?up|collection|return))|being delivered|in delivery|(?:loading|loaded).*delivery vehicle|on (?:\w+ )?vehicle for delivery|(?:courier|driver|delivery champion) has (?:the|your) (?:shipment|parcel|package|item)|en cours de livraison|en livraison|de la livraison de (?:son|votre) colis ce jour|charg(?:e|ement).*vehicule de livraison|in zustellung|zustellfahrzeug.*(?:geladen|verladen)|(?:beladen|verladung).*zustellfahrzeug|in consegna|caric(?:at|amento).*veicolo.*consegna/.test(t) || /^(?:en )?reparto$|\ben reparto\b|\b(?:siendo|sendo|a ser) (?:entregad[oa]s?|entregues?|repartid[oa]s?|distribuid[oa]s?)\b|\b(?:salida|salio|sale|ha salido) (?:a|para) (?:el )?reparto\b|\bruta de (?:reparto|entrega)\b|\ben proceso de entrega\b|\bvehiculo de reparto\b|\b(?:repartidor|mensajero|cartero|conductor) (?:ya )?(?:tiene|lleva) (?:tu|su|el|la) (?:paquete|envio|pedido|encomienda)\b|\bem distribuicao\b|\bsaiu para (?:a )?(?:entrega|distribuicao)\b|\bem (?:rota|processo|curso) de entrega\b|\bem entrega\b|\bveiculo de (?:entrega|distribuicao)\b|\b(?:carteiro|estafeta|motorista|entregador) (?:ja )?(?:tem|leva) (?:a|o) (?:sua |tua )?(?:encomenda|envio|objeto|pacote|volume)\b/.test(t) || Es.test(t) && !/\b(?:pick ?up|collection|return|sender|shipper|seller|merchant|consignor)/.test(t)) return "out_for_delivery";
9126
+ if (Ps.test(t)) return "customs";
9127
+ if (Fs.test(t)) return "in_transit";
9128
+ if (Ms.test(t)) return "customs";
9129
+ if (/out for (?:physical )?delivery|\bout with (?:the |a |our |your )?(?:delivery )?(?:courier|driver)s?\b(?! for (?:pick ?up|collection|return))|being delivered|in delivery|(?:loading|loaded).*delivery vehicle|on (?:\w+ )?vehicle for delivery|(?:courier|driver|delivery champion) has (?:the|your) (?:shipment|parcel|package|item)|en cours de livraison|en livraison|de la livraison de (?:son|votre) colis ce jour|charg(?:e|ement).*vehicule de livraison|in zustellung|zustellfahrzeug.*(?:geladen|verladen)|(?:beladen|verladung).*zustellfahrzeug|in consegna|caric(?:at|amento).*veicolo.*consegna/.test(t) || /^(?:en )?reparto$|\ben reparto\b|\b(?:siendo|sendo|a ser) (?:entregad[oa]s?|entregues?|repartid[oa]s?|distribuid[oa]s?)\b|\b(?:salida|salio|sale|ha salido) (?:a|para) (?:el )?reparto\b|\bruta de (?:reparto|entrega)\b|\ben proceso de entrega\b|\bvehiculo de reparto\b|\b(?:repartidor|mensajero|cartero|conductor) (?:ya )?(?:tiene|lleva) (?:tu|su|el|la) (?:paquete|envio|pedido|encomienda)\b|\bem distribuicao\b|\bsaiu para (?:a )?(?:entrega|distribuicao)\b|\bem (?:rota|processo|curso) de entrega\b|\bem entrega\b|\bveiculo de (?:entrega|distribuicao)\b|\b(?:carteiro|estafeta|motorista|entregador) (?:ja )?(?:tem|leva) (?:a|o) (?:sua |tua )?(?:encomenda|envio|objeto|pacote|volume)\b/.test(t) || As.test(t) && !/\b(?:pick ?up|collection|return|sender|shipper|seller|merchant|consignor)/.test(t)) return "out_for_delivery";
9088
9130
  if (/\bdelivered\b|^final delivery$|delivery complete(?:d)?\b|delivery (?:was )?successful|(?:a ete|est) distribue|^(?:livre|livree)(?:$|[ ,])|(?:colis|envoi|est|a ete) livre|zugestellt|\bconsegnat[oa]\b|livraison effectuee|consegna completata/.test(t) || !/\b(?:una vez|cuando|hasta que|antes de que|para que|en cuanto|tan pronto como|uma vez|quando|assim que|ate que|logo que)\b[^.;:]*\bentreg/.test(t) && /(?<!\b(?:sea|sean|fuera|fuese|ser|seja|sejam|fosse|for|forem|que|se) )\b(?:entregad[oa]s?|entregues?)\b|\bentrega (?:realizada|efectuada|efetuada|completada|concluida|finalizada)\b/.test(t)) return "delivered";
9089
- if (Ds.test(t)) return "in_transit";
9131
+ if (js.test(t)) return "in_transit";
9090
9132
  if (/^(?:the |your )?(?:item|package|parcel|shipment) (?:has been |was |is )?(?:received for transport|dropped off by (?:the )?sender at (?:our |the )?postal partner)\b/.test(t)) return "accepted";
9091
9133
  if (/^(?:load vehicle|scan ok gateway)$/.test(t) || /^(?:the )?item in process in office of exchange\b/.test(t)) return "in_transit";
9092
9134
  if (/^(?:posting\/collection|posted|origin scan)$|received at (?:our |the )?(?:[a-z]+ )?origin (?:office|facility|hub)|dropped off (?:after|before) (?:the )?latest drop ?off time/.test(t) || /accepted|picked up|pick up was successful|^drop off$|pick ?up scan|prepared the package for return to ups or pickup by ups|handed (?:over )?to (?:dpd|gls)|package received at dhl|item booked|consignment was mailed|posted at a postal point|pris en charge|prise en charge|collecte.*(?:reussi|effectue)|recupere.*boite aux lettres|depose.*point postal|remis a (?:dpd|gls)|envoi.*depose|abholung.*erfolgreich|eingeliefert|an (?:dpd|gls) ubergeben|paket.*(?:angenommen|ubernommen)|ritiro.*(?:riuscito|effettuato)|pres[oa] in carico|affidat[oa] a (?:dpd|gls)|depositat.*punto postale|spedizione.*impostata/.test(t) || /(?<!\b(?:no|nao) )\badmitid[oa]s?\b|\badmision en origen\b/.test(t)) return "accepted";
9093
9135
  if (/transit|\bline ?haul\b|en route|on (?:its|the) way|\bfacility\b|airport|\bleaving\b|\bdispatched\b|^delay(?:ed)?$|received by (?:the )?(?:local )?(?:delivery|logistics) company|received by postnl|notification.*sent to the recipient|delivery option requested|instruction de livraison recue|expedie (?:depuis|du|de)\b|acheminement|unterwegs|transport|trasport|arriv|depart|processed|processing completed|sorted|sorting|\btri\b|trie|traitement|traite|sortier|bearbeitet|bearbeitung|elaborat|elaborazion|smistat|parcel cent(?:er|re)|delivery cent(?:er|re)|centre.*(?:colis|distribution)|paketzentrum|verteilzentrum|centro.*(?:pacchi|distribuzione)|depot|import scan|scan.*import|importscan|scansione.*import|delivery.*delayed|livraison.*(?:retard|report)|zustellung.*verzogert|consegna.*ritard|transferred|transfere|weitergeleitet|inoltrato|left.*(?:point|center)|quitte|verlassen|raggiunto|close bag|fermeture du sac|sack.*geschlossen|chiusura.*sacco|scanned into|scanne dans|eingescannt|scansionat|\bloaded\b|^(?:item|parcel|shipment) distributed$|charg.*vehicule de transport|transportfahrzeug.*geladen|caric.*veicolo.*trasporto/.test(t) || /^enviad[oa]$|\bclasificad[oa]s?\b|\bclasificacion\b|\ben ruta\b|\ben camino\b|\bllegad[oa]s? (?:a|al|en)\b|\bllegada (?:a|al|en|de)\b|\bha llegado\b|\bllego (?:a|al)\b|\bsalida (?:de|del|desde)\b|\b(?:ha )?salido (?:de|del)\b|\bsalio (?:de|del)\b|\ben destino\b|\b(?:agencia|delegacion|plataforma|oficina|franquicia) (?:de )?destino\b|\b(?:unidad|centro|oficina|delegacion|base|agencia|plataforma) de reparto\b|\bcentro (?:de )?(?:clasificacion|distribucion|tratamiento|logistico|operaciones|operativo)\b|\blectura\b|\bleid[oa]s?\b|\brecepcionad[oa]s?\b|\bprocesad[oa]s?\b|\bexpedid[oa]s?\b|\btriagem\b|\btriad[oa]s?\b|\bem tratamento\b|\btratad[oa]s?\b|\bcentro (?:de )?(?:distribuicao|tratamento|triagem|operacional)\b|\bchegad[ao] (?:a|ao|no|na|em)\b|\bchegou (?:a|ao|no|na|em)\b|\bsaida (?:do|da|de|dos|das)\b|\bsaiu (?:do|da|de|dos|das)\b|\bem rota\b|\ba caminho\b|\bencaminhad[oa]s?\b|\b(?:em )?transferencia\b|\btransferid[oa]s?\b|\bprocessad[oa]s?\b|\brecebid[oa] (?:no|na|em) (?:centro|armazem|unidade|plataforma)\b|\brecibid[oa] en (?:el |la |nuestr[oa] )?(?:almacen|centro|delegacion|plataforma|hub|agencia)\b/.test(t)) return "in_transit";
9094
9136
  }
9095
- function Ks(e) {
9137
+ function Zs(e) {
9096
9138
  return e === "registered" || e === "pending" ? "pending" : e === "delivered" ? "delivered" : e === "out_for_delivery" || e === "ready_for_pickup" ? "out_for_delivery" : e === "returned" || e === "failed_attempt" || e === "exception" ? "exception" : "in_transit";
9097
9139
  }
9098
9140
  //#endregion
9099
9141
  //#region core/status/wording.ts
9100
- function qs(e, t = "in_transit") {
9142
+ function Qs(e, t = "in_transit") {
9101
9143
  let n = (e, t) => ({
9102
9144
  stage: e,
9103
9145
  source: `wording:${t}`
9104
- }), r = Gs(e);
9146
+ }), r = Xs(e);
9105
9147
  if (r) return n(r, "language");
9106
9148
  let i = (bs(e) ?? e).toLocaleLowerCase("en-US").replaceAll("_", " ").trim().split(/\s+/).join(" ");
9107
9149
  return i.includes("to be delivered") ? n("in_transit", "to_be_delivered") : i === "reported" ? n("registered", "reported") : [
@@ -9256,14 +9298,14 @@ function qs(e, t = "in_transit") {
9256
9298
  source: "none"
9257
9299
  };
9258
9300
  }
9259
- function Js(e, t = "in_transit") {
9260
- return qs(e, t).stage;
9301
+ function $s(e, t = "in_transit") {
9302
+ return Qs(e, t).stage;
9261
9303
  }
9262
9304
  //#endregion
9263
9305
  //#region core/result/resolve.ts
9264
- var Ys = new Set(Se);
9265
- function Xs(e) {
9266
- if (Ys.has(e.current_stage ?? "")) return e.current_stage;
9306
+ var ec = new Set(ye);
9307
+ function tc(e) {
9308
+ if (ec.has(e.current_stage ?? "")) return e.current_stage;
9267
9309
  let t = {
9268
9310
  pending: "pending",
9269
9311
  in_transit: "in_transit",
@@ -9272,32 +9314,32 @@ function Xs(e) {
9272
9314
  exception: "failed_attempt"
9273
9315
  }[e.status ?? "unknown"];
9274
9316
  if (!t) return null;
9275
- let n = qs(e.last_status_text ?? "", t).stage, r = e.events?.[0]?.stage;
9276
- return n === "pending" && Ys.has(r ?? "") ? r : n;
9317
+ let n = Qs(e.last_status_text ?? "", t).stage, r = e.events?.[0]?.stage;
9318
+ return n === "pending" && ec.has(r ?? "") ? r : n;
9277
9319
  }
9278
- function Zs(e) {
9279
- let t = Xs(e);
9320
+ function nc(e) {
9321
+ let t = tc(e);
9280
9322
  return !!(t && t !== "pending") || (e.events ?? []).some((e) => {
9281
- let t = Ys.has(e.stage ?? "") ? e.stage : void 0;
9282
- return !!(t && t !== "pending") || !!(e.description && qs(e.description, "pending").stage !== "pending");
9323
+ let t = ec.has(e.stage ?? "") ? e.stage : void 0;
9324
+ return !!(t && t !== "pending") || !!(e.description && Qs(e.description, "pending").stage !== "pending");
9283
9325
  });
9284
9326
  }
9285
- function Qs(e, t = "in_transit") {
9286
- return qs(e, t);
9327
+ function rc(e, t = "in_transit") {
9328
+ return Qs(e, t);
9287
9329
  }
9288
- function $s(e, t = "in_transit") {
9289
- return Qs(e, t).stage;
9330
+ function ic(e, t = "in_transit") {
9331
+ return rc(e, t).stage;
9290
9332
  }
9291
- function ec(e, t, n) {
9292
- return Ys.has(e) ? typeof n == "string" && n.length <= 100 && (n === "none" || n === "carrier_map" || /^wording:[a-z0-9_]+$/.test(n)) ? n : "carrier_map" : Qs(t).source;
9333
+ function ac(e, t, n) {
9334
+ return ec.has(e) ? typeof n == "string" && n.length <= 100 && (n === "none" || n === "carrier_map" || /^wording:[a-z0-9_]+$/.test(n)) ? n : "carrier_map" : rc(t).source;
9293
9335
  }
9294
- function tc(e) {
9295
- let t = gs(e), n = Xs(t), r = (t.events ?? []).map((e) => {
9296
- let t = Ys.has(e.stage ?? "") ? e.stage : void 0, n = qs(e.description ?? "", "in_transit");
9336
+ function oc(e) {
9337
+ let t = gs(e), n = tc(t), r = (t.events ?? []).map((e) => {
9338
+ let t = ec.has(e.stage ?? "") ? e.stage : void 0, n = Qs(e.description ?? "", "in_transit");
9297
9339
  return {
9298
9340
  ...e,
9299
9341
  stage: t ?? n.stage,
9300
- stage_source: t ? ec(t, e.description ?? "", e.stage_source) : n.source,
9342
+ stage_source: t ? ac(t, e.description ?? "", e.stage_source) : n.source,
9301
9343
  instant: No(e.time)?.iso ?? null
9302
9344
  };
9303
9345
  });
@@ -9309,11 +9351,11 @@ function tc(e) {
9309
9351
  }
9310
9352
  //#endregion
9311
9353
  //#region core/errors/hint.ts
9312
- function nc(e) {
9313
- return ne(e) ?? (e instanceof TypeError || e instanceof RangeError || e instanceof SyntaxError ? "schema" : "transport");
9354
+ function sc(e) {
9355
+ return g(e) ?? (e instanceof TypeError || e instanceof RangeError || e instanceof SyntaxError ? "schema" : "transport");
9314
9356
  }
9315
- function rc(e) {
9316
- let t = nc(e), n = h(e);
9357
+ function cc(e) {
9358
+ let t = sc(e), n = _(e);
9317
9359
  return {
9318
9360
  kind: t,
9319
9361
  ...n === void 0 ? {} : { retryAfterMs: n }
@@ -9321,19 +9363,19 @@ function rc(e) {
9321
9363
  }
9322
9364
  //#endregion
9323
9365
  //#region core/catalog/networks.ts
9324
- var ic = [
9366
+ var lc = [
9325
9367
  "dhl",
9326
9368
  "dpd",
9327
9369
  "gls",
9328
9370
  "hermes",
9329
9371
  "evri"
9330
9372
  ];
9331
- function ac(e) {
9332
- return ic.find((t) => e === t || e.startsWith(`${t}-`));
9373
+ function uc(e) {
9374
+ return lc.find((t) => e === t || e.startsWith(`${t}-`));
9333
9375
  }
9334
9376
  //#endregion
9335
9377
  //#region generated/recognition.ts
9336
- var oc = {
9378
+ var dc = {
9337
9379
  aliexpress: 14,
9338
9380
  "australia-post": 6,
9339
9381
  "austrian-post": 39,
@@ -9383,26 +9425,26 @@ var oc = {
9383
9425
  tnt: 44,
9384
9426
  ukrposhta: 5,
9385
9427
  uniuni: 33
9386
- }, sc = 5;
9387
- function cc(e) {
9388
- let t = g(e);
9428
+ }, fc = 5;
9429
+ function pc(e) {
9430
+ let t = y(e);
9389
9431
  if (/^[A-Z0-9]{4,40}$/.test(t)) return t.match(/[A-Z]+|[0-9]+/g).map((e) => `${/^[0-9]/.test(e) ? "D" : "A"}${e.length}`).join("");
9390
9432
  }
9391
- function lc(e, t, n) {
9392
- return _[e]?.detectionRules.find((e) => new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n)) && (!e.checksum || yt[e.checksum](t)))?.checksum !== void 0;
9433
+ function mc(e, t, n) {
9434
+ return b[e]?.detectionRules.find((e) => new RegExp(e.pattern).test(t) && (!e.rawPattern || new RegExp(e.rawPattern).test(n)) && (!e.checksum || gt[e.checksum](t)))?.checksum !== void 0;
9393
9435
  }
9394
- function uc(e, t = {}) {
9395
- let n = y(e), r = n.carrier === "intl-post";
9436
+ function hc(e, t = {}) {
9437
+ let n = S(e), r = n.carrier === "intl-post";
9396
9438
  if (n.confidence !== "low" && !r) return [];
9397
- let i = g(e), a = r ? Object.entries(_).flatMap(([t, n]) => {
9439
+ let i = y(e), a = r ? Object.entries(b).flatMap(([t, n]) => {
9398
9440
  let r = n.detectionRules.find((t) => t.confidence === "low" && (!t.checksum || t.checksum === "s10") && new RegExp(t.pattern).test(i) && (!t.rawPattern || new RegExp(t.rawPattern).test(e.trim().toUpperCase())));
9399
9441
  return r ? [{
9400
9442
  carrier: t,
9401
9443
  preferred: r.preferred === !0
9402
9444
  }] : [];
9403
- }) : [], o = r ? a.map(({ carrier: e }) => e) : n.candidates, s = r ? a.filter((e) => e.preferred).map(({ carrier: e }) => e) : n.preferred, c = t.phase === "browser" ? Object.fromEntries(Object.entries(_).map(([e, t]) => [e, t.tracking.browserRecognitionRank])) : oc, l = new Set(s.filter((e) => c[e] === void 0).map((e) => ac(e)).filter(Boolean)), u = t.countryHint?.trim().toUpperCase(), d = (e) => {
9445
+ }) : [], o = r ? a.map(({ carrier: e }) => e) : n.candidates, s = r ? a.filter((e) => e.preferred).map(({ carrier: e }) => e) : n.preferred, c = t.phase === "browser" ? Object.fromEntries(Object.entries(b).map(([e, t]) => [e, t.tracking.browserRecognitionRank])) : dc, l = new Set(s.filter((e) => c[e] === void 0).map((e) => uc(e)).filter(Boolean)), u = t.countryHint?.trim().toUpperCase(), d = (e) => {
9404
9446
  if (!u || !/^[A-Z]{2}$/.test(u)) return 0;
9405
- let t = _[e]?.countries ?? [];
9447
+ let t = b[e]?.countries ?? [];
9406
9448
  return t[0] === u ? 2 : +!!t.includes(u);
9407
9449
  }, f = (e) => {
9408
9450
  let n = t.priorities?.[e];
@@ -9412,10 +9454,10 @@ function uc(e, t = {}) {
9412
9454
  +!!s.includes(e),
9413
9455
  d(e),
9414
9456
  f(e),
9415
- +!!lc(e, i, p),
9457
+ +!!mc(e, i, p),
9416
9458
  c[e] ?? 0
9417
9459
  ];
9418
- return o.filter((e) => c[e] !== void 0 && Pe.has(e) && je(e) !== "universal" && !l.has(ac(e)) && !t.skip?.(e)).map((e) => ({
9460
+ return o.filter((e) => c[e] !== void 0 && je.has(e) && Oe(e) !== "universal" && !l.has(uc(e)) && !t.skip?.(e)).map((e) => ({
9419
9461
  carrier: e,
9420
9462
  score: m(e)
9421
9463
  })).sort((e, t) => {
@@ -9426,14 +9468,14 @@ function uc(e, t = {}) {
9426
9468
  return 0;
9427
9469
  }).map(({ carrier: t }) => ({
9428
9470
  carrier: t,
9429
- needsInput: Ne(t, e)[0]?.field ?? null,
9471
+ needsInput: Ae(t, e)[0]?.field ?? null,
9430
9472
  preferred: s.includes(t)
9431
9473
  })).filter((e) => t.phase !== "browser" || !e.needsInput);
9432
9474
  }
9433
9475
  //#endregion
9434
9476
  //#region core/recognition/index.ts
9435
- var dc = 5184e6;
9436
- async function fc(e, t, n, r) {
9477
+ var gc = 5184e6;
9478
+ async function _c(e, t, n, r) {
9437
9479
  let i = e.map((e) => ({
9438
9480
  ...e,
9439
9481
  status: "failed",
@@ -9465,12 +9507,12 @@ async function fc(e, t, n, r) {
9465
9507
  }
9466
9508
  return r?.throwIfAborted(), i.map((e) => ({ ...e }));
9467
9509
  }
9468
- function pc(e, t) {
9510
+ function vc(e, t) {
9469
9511
  let n = Date.parse(e.lastActivityAt ?? "");
9470
- return !Number.isFinite(n) || t.getTime() - n < dc;
9512
+ return !Number.isFinite(n) || t.getTime() - n < gc;
9471
9513
  }
9472
- function mc(e, t = /* @__PURE__ */ new Date()) {
9473
- let n = e.filter((e) => e.status === "known" && pc(e, t));
9514
+ function yc(e, t = /* @__PURE__ */ new Date()) {
9515
+ let n = e.filter((e) => e.status === "known" && vc(e, t));
9474
9516
  if (n.length === 0) return { choices: [] };
9475
9517
  if (n.length === 1) return {
9476
9518
  carrier: n[0].carrier,
@@ -9481,8 +9523,8 @@ function mc(e, t = /* @__PURE__ */ new Date()) {
9481
9523
  carrier: r[0].carrier,
9482
9524
  choices: []
9483
9525
  };
9484
- if (new Set(n.map((e) => ac(e.carrier) ?? e.carrier)).size === 1) {
9485
- let [e] = [...n].sort((e, t) => (oc[t.carrier] ?? 0) - (oc[e.carrier] ?? 0));
9526
+ if (new Set(n.map((e) => uc(e.carrier) ?? e.carrier)).size === 1) {
9527
+ let [e] = [...n].sort((e, t) => (dc[t.carrier] ?? 0) - (dc[e.carrier] ?? 0));
9486
9528
  return {
9487
9529
  carrier: e.carrier,
9488
9530
  choices: []
@@ -9492,14 +9534,14 @@ function mc(e, t = /* @__PURE__ */ new Date()) {
9492
9534
  }
9493
9535
  //#endregion
9494
9536
  //#region core/catalog/hints.ts
9495
- var hc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), gc = [
9537
+ var bc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), xc = [
9496
9538
  "dhl",
9497
9539
  "dpd",
9498
9540
  "gls",
9499
9541
  "hermes",
9500
9542
  "evri",
9501
9543
  "post"
9502
- ], _c = {
9544
+ ], Sc = {
9503
9545
  ups: "ups",
9504
9546
  swisspost: "swiss-post",
9505
9547
  laposte: "la-poste",
@@ -9512,11 +9554,11 @@ var hc = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), gc = [
9512
9554
  spainpost: "correos-spain"
9513
9555
  };
9514
9556
  [
9515
- ...Object.entries(_).filter(([e]) => e !== "unknown").flatMap(([, e]) => [e.displayName, ...e.aliases ?? []].map(hc)),
9516
- ...Object.keys(_c),
9517
- ...gc
9557
+ ...Object.entries(b).filter(([e]) => e !== "unknown").flatMap(([, e]) => [e.displayName, ...e.aliases ?? []].map(bc)),
9558
+ ...Object.keys(Sc),
9559
+ ...xc
9518
9560
  ];
9519
- var vc = /* @__PURE__ */ new Map([
9561
+ var Cc = /* @__PURE__ */ new Map([
9520
9562
  ["AU", "australia-post"],
9521
9563
  ["CA", "canada-post"],
9522
9564
  ["CH", "swiss-post"],
@@ -9527,46 +9569,47 @@ var vc = /* @__PURE__ */ new Map([
9527
9569
  ["GB", "royal-mail"],
9528
9570
  ["JP", "japan-post"],
9529
9571
  ["NL", "spring-gds"],
9572
+ ["PL", "poczta-polska"],
9530
9573
  ["SE", "postnord"],
9531
9574
  ["US", "usps"]
9532
- ]), yc = new Intl.DisplayNames(["en"], { type: "region" }), bc = (e) => new Intl.Locale(`und-${e}`).region ?? e;
9575
+ ]), wc = new Intl.DisplayNames(["en"], { type: "region" }), Tc = (e) => new Intl.Locale(`und-${e}`).region ?? e;
9533
9576
  new Map([
9534
- ...Array.from({ length: 676 }, (e, t) => String.fromCharCode(65 + Math.floor(t / 26), 65 + t % 26)).map((e) => [hc(yc.of(e) ?? ""), bc(e)]).filter(([e, t]) => e !== "" && e !== t.toLowerCase()),
9577
+ ...Array.from({ length: 676 }, (e, t) => String.fromCharCode(65 + Math.floor(t / 26), 65 + t % 26)).map((e) => [bc(wc.of(e) ?? ""), Tc(e)]).filter(([e, t]) => e !== "" && e !== t.toLowerCase()),
9535
9578
  ["uk", "GB"],
9536
9579
  ["usa", "US"]
9537
9580
  ]);
9538
- function xc(e) {
9581
+ function Ec(e) {
9539
9582
  if (typeof e != "string") return;
9540
9583
  let t = e.trim().toUpperCase();
9541
- return vc.get(t) || [...vc].find(([e]) => yc.of(e)?.toUpperCase() === t)?.[1];
9584
+ return Cc.get(t) || [...Cc].find(([e]) => wc.of(e)?.toUpperCase() === t)?.[1];
9542
9585
  }
9543
- function Sc(e, t) {
9586
+ function Dc(e, t) {
9544
9587
  let n;
9545
9588
  try {
9546
9589
  n = new URL(e);
9547
9590
  } catch {
9548
9591
  return [];
9549
9592
  }
9550
- return !["https:", "http:"].includes(n.protocol) || n.username || n.password ? [] : ["post.ch", "www.post.ch"].includes(n.hostname) ? ["swiss-post"] : [...new Set(Ie.filter((e) => e.domains.some((e) => Re(n.hostname, e)) && (!t || !e.pathPattern || e.pathPattern.test(n.pathname))).map((e) => e.carrier))];
9593
+ return !["https:", "http:"].includes(n.protocol) || n.username || n.password ? [] : ["post.ch", "www.post.ch"].includes(n.hostname) ? ["swiss-post"] : [...new Set(Ne.filter((e) => e.domains.some((e) => Fe(n.hostname, e)) && (!t || !e.pathPattern || e.pathPattern.test(n.pathname))).map((e) => e.carrier))];
9551
9594
  }
9552
- function Cc(e, t) {
9553
- return [...new Set(e.flatMap((e) => [...String(e ?? "").matchAll(/https?:\/\/[^\s<>"')]+/gi)].flatMap(([e]) => Sc(e, !0)).filter((e) => e !== t)))];
9595
+ function Oc(e, t) {
9596
+ return [...new Set(e.flatMap((e) => [...String(e ?? "").matchAll(/https?:\/\/[^\s<>"')]+/gi)].flatMap(([e]) => Dc(e, !0)).filter((e) => e !== t)))];
9554
9597
  }
9555
9598
  //#endregion
9556
9599
  //#region core/catalog/handoff.ts
9557
- function wc(e, t) {
9558
- return !Pe.has(e) || je(e) === "universal" || Ne(e, t).length > 0 ? !1 : Me(e, t).length === 0 || y(t).candidates.includes(e);
9600
+ function kc(e, t) {
9601
+ return !je.has(e) || Oe(e) === "universal" || Ae(e, t).length > 0 ? !1 : ke(e, t).length === 0 || S(t).candidates.includes(e);
9559
9602
  }
9560
- function Tc(e, t, n) {
9603
+ function Ac(e, t, n) {
9561
9604
  if (n.delivery_tracking_number != null && (typeof n.delivery_tracking_number != "string" || !/^[A-Z0-9]{4,40}$/.test(n.delivery_tracking_number))) return null;
9562
- let r = Cc([n.last_status_text, ...(n.events ?? []).map((e) => e.description)], e);
9605
+ let r = Oc([n.last_status_text, ...(n.events ?? []).map((e) => e.description)], e);
9563
9606
  if (!n.delivery_carrier && r.length > 1) return null;
9564
9607
  let i = n.delivery_carrier ?? r[0], a = "partner", o = n.delivery_tracking_number || t, s = typeof n.destination_country == "string" ? n.destination_country : typeof n.destination_country_name == "string" ? n.destination_country_name : void 0;
9565
- if (!i && dt(o) && (i = xc(s), i === "japan-post" && o.startsWith("U") && (i = void 0), i && (a = "destination")), !i && n.delivery_tracking_number) {
9566
- let e = y(o);
9608
+ if (!i && ct(o) && (i = Ec(s), i === "japan-post" && o.startsWith("U") && (i = void 0), i && (a = "destination")), !i && n.delivery_tracking_number) {
9609
+ let e = S(o);
9567
9610
  e.confidence === "high" && (i = e.carrier, a = "reference");
9568
9611
  }
9569
- return !i && !n.delivery_tracking_number && ["aliexpress", "intl-post"].includes(e) && ft(t) && (!s || ["ch", "switzerland"].includes(s.trim().toLowerCase())) && (i = "swiss-post", a = "reference"), !i || i === e || !/^[A-Z0-9]{4,40}$/.test(o) || !wc(i, o) ? null : {
9612
+ return !i && !n.delivery_tracking_number && ["aliexpress", "intl-post"].includes(e) && lt(t) && (!s || ["ch", "switzerland"].includes(s.trim().toLowerCase())) && (i = "swiss-post", a = "reference"), !i || i === e || !/^[A-Z0-9]{4,40}$/.test(o) || !kc(i, o) ? null : {
9570
9613
  carrier: i,
9571
9614
  number: o,
9572
9615
  basis: a
@@ -9574,7 +9617,7 @@ function Tc(e, t, n) {
9574
9617
  }
9575
9618
  //#endregion
9576
9619
  //#region core/catalog/urls.ts
9577
- var Ec = "trackandtrace.planzergroup.com", Dc = /^\/shared\/sendungen\/([^/]+)\/?$/, Oc = /^[A-Za-z0-9_-]{32,256}$/, kc = "customeriberia.dachser.com", Ac = "/customerarea/utilidades/seguimiento-publico/detalle", jc = /^[A-Za-z0-9_-]{4,256}$/, Mc = /[\x00-\x1f\x7f]/, Nc = /* @__PURE__ */ new Set([
9620
+ var jc = "trackandtrace.planzergroup.com", Mc = /^\/shared\/sendungen\/([^/]+)\/?$/, Nc = /^[A-Za-z0-9_-]{32,256}$/, Pc = "customeriberia.dachser.com", Fc = "/customerarea/utilidades/seguimiento-publico/detalle", Ic = /^[A-Za-z0-9_-]{4,256}$/, Lc = /[\x00-\x1f\x7f]/, Rc = /* @__PURE__ */ new Set([
9578
9621
  "hash",
9579
9622
  "cliente",
9580
9623
  "numeroUnico",
@@ -9589,7 +9632,7 @@ var Ec = "trackandtrace.planzergroup.com", Dc = /^\/shared\/sendungen\/([^/]+)\/
9589
9632
  "origen",
9590
9633
  "usuario"
9591
9634
  ]);
9592
- function Pc(e, t) {
9635
+ function zc(e, t) {
9593
9636
  let n = e.trim();
9594
9637
  if (n.length < 1 || n.length > 4096) throw TypeError("Paste the complete Planzer tracking URL");
9595
9638
  let r;
@@ -9598,21 +9641,21 @@ function Pc(e, t) {
9598
9641
  } catch (e) {
9599
9642
  throw TypeError("Paste a valid Planzer tracking URL", { cause: e });
9600
9643
  }
9601
- if (r.protocol !== "https:" || r.hostname.toLowerCase() !== Ec || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Planzer shared links must use https://${Ec}`);
9644
+ if (r.protocol !== "https:" || r.hostname.toLowerCase() !== jc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Planzer shared links must use https://${jc}`);
9602
9645
  let i;
9603
9646
  try {
9604
9647
  i = decodeURIComponent(r.pathname);
9605
9648
  } catch (e) {
9606
9649
  throw TypeError("Paste a valid Planzer tracking URL", { cause: e });
9607
9650
  }
9608
- let a = Dc.exec(i);
9651
+ let a = Mc.exec(i);
9609
9652
  if (!a) throw TypeError("Paste a Planzer shared shipment URL");
9610
- if (g(a[1]) !== g(t)) throw TypeError("The Planzer URL belongs to a different tracking number");
9653
+ if (y(a[1]) !== y(t)) throw TypeError("The Planzer URL belongs to a different tracking number");
9611
9654
  let o = r.searchParams.getAll("accessKey");
9612
- if (o.length !== 1 || !Oc.test(o[0])) throw TypeError("The Planzer URL must include its accessKey");
9655
+ if (o.length !== 1 || !Nc.test(o[0])) throw TypeError("The Planzer URL must include its accessKey");
9613
9656
  return r.toString();
9614
9657
  }
9615
- function Fc(e, t) {
9658
+ function Bc(e, t) {
9616
9659
  let n = e.trim();
9617
9660
  if (n.length < 1 || n.length > 4096) throw TypeError("Paste the complete Dachser tracking URL");
9618
9661
  let r;
@@ -9621,43 +9664,43 @@ function Fc(e, t) {
9621
9664
  } catch (e) {
9622
9665
  throw TypeError("Paste a valid Dachser tracking URL", { cause: e });
9623
9666
  }
9624
- if (r.protocol !== "https:" || r.hostname.toLowerCase() !== kc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Dachser links must use https://${kc}`);
9667
+ if (r.protocol !== "https:" || r.hostname.toLowerCase() !== Pc || r.username || r.password || r.port && r.port !== "443" || r.hash) throw TypeError(`Dachser links must use https://${Pc}`);
9625
9668
  let i;
9626
9669
  try {
9627
9670
  i = decodeURIComponent(r.pathname);
9628
9671
  } catch (e) {
9629
9672
  throw TypeError("Paste a valid Dachser tracking URL", { cause: e });
9630
9673
  }
9631
- if (i !== Ac && i !== `${Ac}/`) throw TypeError("Paste a Dachser public shipment detail URL");
9674
+ if (i !== Fc && i !== `${Fc}/`) throw TypeError("Paste a Dachser public shipment detail URL");
9632
9675
  let a = /* @__PURE__ */ new Map();
9633
9676
  for (let [e, t] of r.searchParams) {
9634
- if (!Nc.has(e)) throw TypeError("The Dachser URL contains an unsupported parameter");
9677
+ if (!Rc.has(e)) throw TypeError("The Dachser URL contains an unsupported parameter");
9635
9678
  if (a.has(e)) throw TypeError("The Dachser URL contains a duplicate parameter");
9636
- if (!t || t.length > 256 || Mc.test(t)) throw TypeError("The Dachser URL contains an invalid parameter");
9679
+ if (!t || t.length > 256 || Lc.test(t)) throw TypeError("The Dachser URL contains an invalid parameter");
9637
9680
  a.set(e, t);
9638
9681
  }
9639
9682
  let o = a.get("numeroUnico");
9640
9683
  if (!o) throw TypeError("The Dachser URL must include its shipment number");
9641
- if (g(o) !== g(t)) throw TypeError("The Dachser URL belongs to a different tracking number");
9642
- let s = a.get("hash"), c = a.get("clave"), l = a.get("fecha"), u = !!(s && jc.test(s)), d = !!(c && l && jc.test(c) && /^\d{8}$/.test(l));
9684
+ if (y(o) !== y(t)) throw TypeError("The Dachser URL belongs to a different tracking number");
9685
+ let s = a.get("hash"), c = a.get("clave"), l = a.get("fecha"), u = !!(s && Ic.test(s)), d = !!(c && l && Ic.test(c) && /^\d{8}$/.test(l));
9643
9686
  if (!u && !d) throw TypeError("The Dachser URL must include its access parameters");
9644
- return r.protocol = "https:", r.hostname = kc, r.port = "", r.toString();
9687
+ return r.protocol = "https:", r.hostname = Pc, r.port = "", r.toString();
9645
9688
  }
9646
9689
  //#endregion
9647
9690
  //#region core/catalog/postcode.ts
9648
- var Ic = /^(?=.{3,12}$)(?=.*\d)[A-Z0-9]+(?:[ -][A-Z0-9]+)*$/;
9649
- function Lc(e) {
9691
+ var Vc = /^(?=.{3,12}$)(?=.*\d)[A-Z0-9]+(?:[ -][A-Z0-9]+)*$/;
9692
+ function Hc(e) {
9650
9693
  return e.trim().toUpperCase().replace(/\s+/g, " ");
9651
9694
  }
9652
9695
  //#endregion
9653
9696
  //#region core/catalog/inputs.ts
9654
- function Rc(e, t, n, r) {
9697
+ function Uc(e, t, n, r) {
9655
9698
  let i = {
9656
9699
  trackingUrl: n.trim() || null,
9657
9700
  postcode: r.trim() || null
9658
9701
  }, a = e === "mondial-relay" && /^\d{26}$/.test(t);
9659
- if (a && !ge(t)) throw TypeError("Invalid Mondial Relay barcode");
9660
- let o = new Map(Me(e, t).map((e) => [e.field, e]));
9702
+ if (a && !pe(t)) throw TypeError("Invalid Mondial Relay barcode");
9703
+ let o = new Map(ke(e, t).map((e) => [e.field, e]));
9661
9704
  (a || e === "mondial-relay" && /^(?:\d{10}|\d{12})$/.test(t)) && i.postcode && o.set("postcode", {
9662
9705
  field: "postcode",
9663
9706
  validator: "internationalPostcode"
@@ -9667,28 +9710,28 @@ function Rc(e, t, n, r) {
9667
9710
  let a = i[n];
9668
9711
  if (!a) {
9669
9712
  if (r.optional) continue;
9670
- throw n === "trackingUrl" ? TypeError(`${v(e).displayName} requires its complete tracking URL`) : r.validator === "swissPostcode" ? TypeError(`${v(e).displayName} requires the four-digit delivery postcode`) : r.validator === "francePostcode" || r.validator === "germanyPostcode" ? TypeError(`${v(e).displayName} requires the five-digit delivery postcode`) : r.validator === "swissOrFrancePostcode" ? TypeError(`${v(e).displayName} requires a four- or five-digit delivery postcode`) : r.validator === "paackPostcode" ? TypeError("Paack requires the delivery postcode") : TypeError(`${v(e).displayName} requires the delivery postcode`);
9713
+ throw n === "trackingUrl" ? TypeError(`${x(e).displayName} requires its complete tracking URL`) : r.validator === "swissPostcode" ? TypeError(`${x(e).displayName} requires the four-digit delivery postcode`) : r.validator === "francePostcode" || r.validator === "germanyPostcode" ? TypeError(`${x(e).displayName} requires the five-digit delivery postcode`) : r.validator === "swissOrFrancePostcode" ? TypeError(`${x(e).displayName} requires a four- or five-digit delivery postcode`) : r.validator === "paackPostcode" ? TypeError("Paack requires the delivery postcode") : TypeError(`${x(e).displayName} requires the delivery postcode`);
9671
9714
  }
9672
9715
  switch (r.validator) {
9673
9716
  case "planzerSharedUrl":
9674
- i[n] = Pc(a, t);
9717
+ i[n] = zc(a, t);
9675
9718
  break;
9676
9719
  case "dachserCapabilityUrl":
9677
- i[n] = Fc(a, t);
9720
+ i[n] = Bc(a, t);
9678
9721
  break;
9679
9722
  case "swissPostcode":
9680
- if (!/^\d{4}$/.test(a)) throw TypeError(`${v(e).displayName} requires the four-digit delivery postcode`);
9723
+ if (!/^\d{4}$/.test(a)) throw TypeError(`${x(e).displayName} requires the four-digit delivery postcode`);
9681
9724
  break;
9682
9725
  case "francePostcode":
9683
9726
  case "germanyPostcode":
9684
- if (!/^\d{5}$/.test(a)) throw TypeError(`${v(e).displayName} requires the five-digit delivery postcode`);
9727
+ if (!/^\d{5}$/.test(a)) throw TypeError(`${x(e).displayName} requires the five-digit delivery postcode`);
9685
9728
  break;
9686
9729
  case "swissOrFrancePostcode":
9687
- if (!/^\d{4,5}$/.test(a)) throw TypeError(`${v(e).displayName} requires a four- or five-digit delivery postcode`);
9730
+ if (!/^\d{4,5}$/.test(a)) throw TypeError(`${x(e).displayName} requires a four- or five-digit delivery postcode`);
9688
9731
  break;
9689
9732
  case "internationalPostcode":
9690
- if (!Ic.test(Lc(a))) throw TypeError(`${v(e).displayName} requires a valid delivery postcode`);
9691
- i[n] = Lc(a);
9733
+ if (!Vc.test(Hc(a))) throw TypeError(`${x(e).displayName} requires a valid delivery postcode`);
9734
+ i[n] = Hc(a);
9692
9735
  break;
9693
9736
  case "paackPostcode": {
9694
9737
  let e = a.toLocaleUpperCase("en-US");
@@ -9701,12 +9744,12 @@ function Rc(e, t, n, r) {
9701
9744
  }
9702
9745
  return i;
9703
9746
  }
9704
- function zc(e) {
9705
- let t = Lc(e);
9706
- if (!Ic.test(t)) throw TypeError("A valid delivery postcode is required");
9747
+ function Wc(e) {
9748
+ let t = Hc(e);
9749
+ if (!Vc.test(t)) throw TypeError("A valid delivery postcode is required");
9707
9750
  return t;
9708
9751
  }
9709
- var Bc = { carriers: [
9752
+ var Gc = { carriers: [
9710
9753
  {
9711
9754
  carrier: "dhl",
9712
9755
  direct: "Yes",
@@ -11451,79 +11494,79 @@ var Bc = { carriers: [
11451
11494
  }
11452
11495
  }]
11453
11496
  }
11454
- ] }, Vc = [
11497
+ ] }, Kc = [
11455
11498
  "Ship24",
11456
11499
  "ParcelsApp",
11457
11500
  "17TRACK",
11458
11501
  "Postal Ninja",
11459
11502
  "UPU"
11460
- ], Hc = /* @__PURE__ */ new Set([
11503
+ ], qc = /* @__PURE__ */ new Set([
11461
11504
  "no_history",
11462
11505
  "summary_only",
11463
11506
  "sign_in",
11464
11507
  "postcode_prompt"
11465
- ]), Uc = Bc.carriers, Wc = new Map(Uc.map((e) => [e.carrier, e]));
11466
- function Gc(e) {
11508
+ ]), Jc = Gc.carriers, Yc = new Map(Jc.map((e) => [e.carrier, e]));
11509
+ function Xc(e) {
11467
11510
  return typeof e == "number" || e === "history" || typeof e == "object" && !!e;
11468
11511
  }
11469
- function Kc(e, t) {
11470
- let n = t.filter((t) => t.results[e] !== void 0), r = n.some((t) => !t.stale && (Hc.has(t.results[e]) || t.results[e] === "wrong_carrier") && Object.entries(t.results).some(([t, n]) => t !== e && t !== "UPU" && Gc(n)));
11471
- return n.some((t) => Gc(t.results[e])) ? n.some((t) => typeof t.results[e] == "object") || r ? "partial" : "full" : n.some((t) => ["wrong_carrier", "refused"].includes(t.results[e])) ? "excluded" : n.some((t) => !t.stale && Hc.has(t.results[e])) ? "empty" : "unknown";
11512
+ function Zc(e, t) {
11513
+ let n = t.filter((t) => t.results[e] !== void 0), r = n.some((t) => !t.stale && (qc.has(t.results[e]) || t.results[e] === "wrong_carrier") && Object.entries(t.results).some(([t, n]) => t !== e && t !== "UPU" && Xc(n)));
11514
+ return n.some((t) => Xc(t.results[e])) ? n.some((t) => typeof t.results[e] == "object") || r ? "partial" : "full" : n.some((t) => ["wrong_carrier", "refused"].includes(t.results[e])) ? "excluded" : n.some((t) => !t.stale && qc.has(t.results[e])) ? "empty" : "unknown";
11472
11515
  }
11473
- function qc(e) {
11474
- let t = e ? Wc.get(e) : void 0;
11475
- return t ? Object.fromEntries(Vc.map((e) => [e, Kc(e, t.references)])) : null;
11516
+ function Qc(e) {
11517
+ let t = e ? Yc.get(e) : void 0;
11518
+ return t ? Object.fromEntries(Kc.map((e) => [e, Zc(e, t.references)])) : null;
11476
11519
  }
11477
11520
  //#endregion
11478
11521
  //#region providers/plan.ts
11479
- var Jc = [
11522
+ var $c = [
11480
11523
  "ParcelsApp",
11481
11524
  "Ship24",
11482
11525
  "17TRACK",
11483
11526
  "UPU"
11484
- ], Yc = /* @__PURE__ */ new Set(["17TRACK", "Postal Ninja"]);
11485
- function Xc(e) {
11527
+ ], el = /* @__PURE__ */ new Set(["17TRACK", "Postal Ninja"]);
11528
+ function tl(e) {
11486
11529
  return e === "ParcelsApp" ? 45e3 : e === "UPU" ? 8e3 : 3e4;
11487
11530
  }
11488
- function Zc(e) {
11489
- return e && /^\d{10}$/.test(g(e)) ? "Ship24" : e && /^[CL][A-Z]\d{9}CN$/.test(g(e)) && dt(e) ? "17TRACK" : void 0;
11531
+ function nl(e) {
11532
+ return e && /^\d{10}$/.test(y(e)) ? "Ship24" : e && /^[CL][A-Z]\d{9}CN$/.test(y(e)) && ct(e) ? "17TRACK" : void 0;
11490
11533
  }
11491
- var Qc = {
11534
+ var rl = {
11492
11535
  full: 0,
11493
11536
  partial: 1,
11494
11537
  unknown: 2,
11495
11538
  empty: 3,
11496
11539
  excluded: 4
11497
11540
  };
11498
- function $c(e, t) {
11499
- let n = Qc[e?.[t] ?? "unknown"];
11500
- return t === "UPU" ? Qc.unknown : t === "Postal Ninja" ? Math.max(n, Qc.empty) : n;
11541
+ function il(e, t) {
11542
+ let n = rl[e?.[t] ?? "unknown"];
11543
+ return t === "UPU" ? rl.unknown : t === "Postal Ninja" ? Math.max(n, rl.empty) : n;
11501
11544
  }
11502
- var el = (e) => e === "UPU" ? 2 : +(e === "Postal Ninja");
11503
- function tl(e, t) {
11545
+ var al = (e) => e === "UPU" ? 2 : +(e === "Postal Ninja");
11546
+ function ol(e, t) {
11504
11547
  let n = (e) => e !== "UPU" && t?.[e] === "excluded";
11505
- return (e.some((e) => e !== "UPU" && !n(e)) ? e.filter((e) => !n(e)) : [...e]).sort((n, r) => el(n) - el(r) || $c(t, n) - $c(t, r) || Number(Yc.has(n)) - Number(Yc.has(r)) || e.indexOf(n) - e.indexOf(r));
11548
+ return (e.some((e) => e !== "UPU" && !n(e)) ? e.filter((e) => !n(e)) : [...e]).sort((n, r) => al(n) - al(r) || il(t, n) - il(t, r) || Number(el.has(n)) - Number(el.has(r)) || e.indexOf(n) - e.indexOf(r));
11506
11549
  }
11507
- function nl(e = {}) {
11550
+ function sl(e = {}) {
11508
11551
  let { trackingNumber: t, enablePostalNinja: n = !1 } = e, r = (n ? [
11509
11552
  "ParcelsApp",
11510
11553
  "Ship24",
11511
11554
  "17TRACK",
11512
11555
  "Postal Ninja",
11513
11556
  "UPU"
11514
- ] : [...Jc]).filter((e) => e !== "UPU" || t === void 0 || dt(t)), i = (e.carriers ?? []).find((e) => qc(e)) ?? null, a = qc(i), o = tl(r, a), s = Zc(t);
11557
+ ] : [...$c]).filter((e) => e !== "UPU" || t === void 0 || ct(t)), i = (e.carriers ?? []).find((e) => Qc(e)) ?? null, a = Qc(i), o = ol(r, a), s = nl(t);
11515
11558
  return {
11516
11559
  sources: s ? [s, ...o.filter((e) => e !== s)] : o,
11517
11560
  carrier: i,
11518
11561
  tier: (e) => a?.[e] ?? "unknown",
11519
- rank: (e) => $c(a, e)
11562
+ rank: (e) => il(a, e)
11520
11563
  };
11521
11564
  }
11522
- function rl(e = !1, t) {
11523
- return nl({
11565
+ function cl(e = !1, t) {
11566
+ return sl({
11524
11567
  trackingNumber: t,
11525
11568
  enablePostalNinja: e
11526
11569
  }).sources;
11527
11570
  }
11528
11571
  //#endregion
11529
- export { Ce as AMAZON_NUMBER_PATTERN, Pe as AUTOMATIC_CARRIER_IDS, Yc as BROWSER_SOURCES, f as BudgetExceededError, He as CARRIERS, ye as CARRIER_CATALOG, _ as CARRIER_DEFINITIONS, be as CARRIER_IDS, Fe as CARRIER_NAMES, t as CarrierError, a as ChallengeError, jo as EXPLICIT_OFFSET_PATTERN, r as IndeterminateError, l as InputRequiredError, u as InvalidInputError, sc as MAX_RECOGNITIONS, s as MaintenanceError, i as NoHistoryError, n as NotFoundError, o as RateLimitedError, We as SELECTABLE_CARRIERS, Se as STAGES, c as SchemaError, At as TRACKING_CANDIDATE_PATTERNS, Ie as TRACKING_LINK_RULES, d as TransportError, Jc as UNIVERSAL_SOURCES, m as UpstreamHttpError, ee as UpstreamNetworkError, Me as activeRequirements, Ee as amazonMarketplace, De as amazonOrdersUrl, Oe as amazonShippingOrigin, ke as amazonShippingUrl, as as calendarDay, $o as canadaProvinceTimeZone, je as carrierAdapter, v as carrierDefinition, ne as carrierErrorKind, Ue as carrierInfo, Le as carrierLinkRules, Ge as carrierRequirements, Ae as carrierTimezone, Tt as checksumRejections, Qs as classifyStage, qs as classifyWording, qo as countryCode, Jo as countryTimeZone, Tc as deliveryHandoff, Et as detectCarrier, y as detectCarrierMatch, rs as epochMillisTime, is as epochSecondsTime, re as errorTypeOf, hs as eventPoint, No as explicitOffsetTime, rc as failureHint, nc as failureKind, ve as formatTrackingNumber, wc as hasDirectHandoffAdapter, $s as inferStage, we as isAmazonTrackingNumber, _e as isPlanzerSharedTrackingNumber, Ze as isValidCorreosSpainCheckLetter, oe as isValidDhlExpressWaybill, et as isValidDpdParcelNumber, ct as isValidGlsParcelNumber, lt as isValidHermesParcelNumber, ge as isValidMondialRelayBarcode, me as isValidPocztaPolskaBarcode, dt as isValidS10TrackingNumber, he as isValidSscc, ce as isValidTntConsignmentNumber, vt as isValidUspsPackageBarcode, Fo as isoTime, Pt as keywordNumberInText, Ks as languageStageStatus, Je as localizedCarrierUrl, Re as matchesDomain, Lo as mislabeledLocalTime, Ro as mislabeledWallTime, Rc as normalizeCarrierInputs, gs as normalizeCarrierResult, zc as normalizeDeliveryPostcode, g as normalizeTrackingNumber, tl as orderUniversalSources, Bt as parseTrackingInput, Zc as priorityUniversalSource, uc as recognitionCandidates, cc as recognitionNumberShape, fc as recognizeAll, jt as recognizedNumberInText, ns as regionHasTown, Ne as requiredRequirements, Ke as requirementSatisfied, Te as requiresAmazonAccount, tc as resolveResult, Zs as resultHasUpdate, Xs as resultStage, h as retryAfterMsOf, Vo as settleGuessedClocks, mc as settleRecognition, zo as sharedClockZone, ec as stageSource, ft as supportsSwissPostHandoff, Yo as timeZoneCountry, es as townKey, Gs as trackingLanguageStage, Be as trackingLink, ze as trackingNumberForLink, qe as tracksAutomatically, nl as universalPlan, Xc as universalSourceBudget, rl as universalSources, Zo as usStateTimeZone, _t as uspsPackageIdentifier, Ot as validTrackingNumber, Fc as validateDachserTrackingUrl, Pc as validatePlanzerSharedUrl, Js as wordingStage, Po as zonedTime };
11572
+ export { be as AMAZON_NUMBER_PATTERN, je as AUTOMATIC_CARRIER_IDS, el as BROWSER_SOURCES, f as BudgetExceededError, ze as CARRIERS, ge as CARRIER_CATALOG, b as CARRIER_DEFINITIONS, _e as CARRIER_IDS, Me as CARRIER_NAMES, t as CarrierError, a as ChallengeError, jo as EXPLICIT_OFFSET_PATTERN, r as IndeterminateError, l as InputRequiredError, u as InvalidInputError, fc as MAX_RECOGNITIONS, s as MaintenanceError, i as NoHistoryError, n as NotFoundError, o as RateLimitedError, Ve as SELECTABLE_CARRIERS, ye as STAGES, c as SchemaError, Dt as TRACKING_CANDIDATE_PATTERNS, Ne as TRACKING_LINK_RULES, d as TransportError, $c as UNIVERSAL_SOURCES, m as UpstreamHttpError, ee as UpstreamNetworkError, ke as activeRequirements, Ce as amazonMarketplace, we as amazonOrdersUrl, Te as amazonShippingOrigin, Ee as amazonShippingUrl, as as calendarDay, $o as canadaProvinceTimeZone, Oe as carrierAdapter, x as carrierDefinition, g as carrierErrorKind, Be as carrierInfo, Pe as carrierLinkRules, He as carrierRequirements, De as carrierTimezone, St as checksumRejections, rc as classifyStage, Qs as classifyWording, qo as countryCode, Jo as countryTimeZone, Ac as deliveryHandoff, Ct as detectCarrier, S as detectCarrierMatch, rs as epochMillisTime, is as epochSecondsTime, te as errorTypeOf, hs as eventPoint, No as explicitOffsetTime, cc as failureHint, sc as failureKind, he as formatTrackingNumber, kc as hasDirectHandoffAdapter, ic as inferStage, xe as isAmazonTrackingNumber, me as isPlanzerSharedTrackingNumber, Je as isValidCorreosSpainCheckLetter, ie as isValidDhlExpressWaybill, Ze as isValidDpdParcelNumber, at as isValidGlsParcelNumber, ot as isValidHermesParcelNumber, pe as isValidMondialRelayBarcode, de as isValidPocztaPolskaBarcode, ct as isValidS10TrackingNumber, fe as isValidSscc, ae as isValidTntConsignmentNumber, ht as isValidUspsPackageBarcode, Fo as isoTime, jt as keywordNumberInText, Zs as languageStageStatus, Ge as localizedCarrierUrl, Fe as matchesDomain, Lo as mislabeledLocalTime, Ro as mislabeledWallTime, Uc as normalizeCarrierInputs, gs as normalizeCarrierResult, Wc as normalizeDeliveryPostcode, y as normalizeTrackingNumber, ol as orderUniversalSources, Lt as parseTrackingInput, nl as priorityUniversalSource, hc as recognitionCandidates, pc as recognitionNumberShape, _c as recognizeAll, Ot as recognizedNumberInText, ns as regionHasTown, Ae as requiredRequirements, Ue as requirementSatisfied, Se as requiresAmazonAccount, oc as resolveResult, nc as resultHasUpdate, tc as resultStage, _ as retryAfterMsOf, Vo as settleGuessedClocks, yc as settleRecognition, zo as sharedClockZone, ac as stageSource, lt as supportsSwissPostHandoff, Yo as timeZoneCountry, es as townKey, Xs as trackingLanguageStage, Le as trackingLink, Ie as trackingNumberForLink, We as tracksAutomatically, sl as universalPlan, tl as universalSourceBudget, cl as universalSources, Zo as usStateTimeZone, mt as uspsPackageIdentifier, Tt as validTrackingNumber, Bc as validateDachserTrackingUrl, zc as validatePlanzerSharedUrl, $s as wordingStage, Po as zonedTime };