@talisdev/bibliographic-resource-parsers-lib 5.24.0 → 5.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,7 +124,7 @@ const Gs = _r(() => {
124
124
  return !1;
125
125
  }
126
126
  });
127
- function Ne(e) {
127
+ function xe(e) {
128
128
  if (et(e) === !1)
129
129
  return !1;
130
130
  const t = e.constructor;
@@ -134,10 +134,10 @@ function Ne(e) {
134
134
  return !(et(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
135
135
  }
136
136
  function yo(e) {
137
- return Ne(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
137
+ return xe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
138
138
  }
139
139
  const Xs = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
140
- function xe(e) {
140
+ function Ne(e) {
141
141
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
142
142
  }
143
143
  function ve(e, t, r) {
@@ -198,7 +198,7 @@ function Qs(e, t) {
198
198
  return ve(e, n);
199
199
  }
200
200
  function ei(e, t) {
201
- if (!Ne(t))
201
+ if (!xe(t))
202
202
  throw new Error("Invalid input to extend: expected a plain object");
203
203
  const r = e._zod.def.checks;
204
204
  if (r && r.length > 0)
@@ -213,7 +213,7 @@ function ei(e, t) {
213
213
  return ve(e, o);
214
214
  }
215
215
  function ti(e, t) {
216
- if (!Ne(t))
216
+ if (!xe(t))
217
217
  throw new Error("Invalid input to safeExtend: expected a plain object");
218
218
  const r = {
219
219
  ...e._zod.def,
@@ -415,7 +415,7 @@ const Sr = (e) => (t, r, n, o) => {
415
415
  function Ii() {
416
416
  return new RegExp(Ri, "u");
417
417
  }
418
- const ki = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ci = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Oi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, wo = /^[A-Za-z0-9_-]*$/, xi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, zi = /^\+(?:[0-9]){6,14}[0-9]$/, Ro = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Li = /* @__PURE__ */ new RegExp(`^${Ro}$`);
418
+ const ki = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ci = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Oi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, xi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, wo = /^[A-Za-z0-9_-]*$/, Ni = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, zi = /^\+(?:[0-9]){6,14}[0-9]$/, Ro = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Li = /* @__PURE__ */ new RegExp(`^${Ro}$`);
419
419
  function Io(e) {
420
420
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
421
421
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -650,7 +650,7 @@ const qi = (e) => {
650
650
  t.pattern ?? (t.pattern = Fi), it.init(e, t);
651
651
  }), Ki = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
652
652
  se.init(e, t);
653
- const r = xe(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
653
+ const r = Ne(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
654
654
  t.pattern = n, e._zod.onattach.push((o) => {
655
655
  const s = o._zod.bag;
656
656
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
@@ -667,7 +667,7 @@ const qi = (e) => {
667
667
  };
668
668
  }), Qi = /* @__PURE__ */ d("$ZodCheckStartsWith", (e, t) => {
669
669
  se.init(e, t);
670
- const r = new RegExp(`^${xe(t.prefix)}.*`);
670
+ const r = new RegExp(`^${Ne(t.prefix)}.*`);
671
671
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
672
672
  const o = n._zod.bag;
673
673
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -684,7 +684,7 @@ const qi = (e) => {
684
684
  };
685
685
  }), ea = /* @__PURE__ */ d("$ZodCheckEndsWith", (e, t) => {
686
686
  se.init(e, t);
687
- const r = new RegExp(`.*${xe(t.suffix)}$`);
687
+ const r = new RegExp(`.*${Ne(t.suffix)}$`);
688
688
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
689
689
  const o = n._zod.bag;
690
690
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -851,7 +851,7 @@ const na = {
851
851
  code: "invalid_format",
852
852
  format: "url",
853
853
  note: "Invalid hostname",
854
- pattern: xi.source,
854
+ pattern: Ni.source,
855
855
  input: r.value,
856
856
  inst: e,
857
857
  continue: !t.abort
@@ -959,7 +959,7 @@ function Oo(e) {
959
959
  }
960
960
  }
961
961
  const Sa = /* @__PURE__ */ d("$ZodBase64", (e, t) => {
962
- t.pattern ?? (t.pattern = Ni), M.init(e, t), e._zod.onattach.push((r) => {
962
+ t.pattern ?? (t.pattern = xi), M.init(e, t), e._zod.onattach.push((r) => {
963
963
  r._zod.bag.contentEncoding = "base64";
964
964
  }), e._zod.check = (r) => {
965
965
  Oo(r.value) || r.issues.push({
@@ -1016,7 +1016,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1016
1016
  continue: !t.abort
1017
1017
  });
1018
1018
  };
1019
- }), No = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1019
+ }), xo = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1020
1020
  W.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Di, e._zod.parse = (r, n) => {
1021
1021
  if (t.coerce)
1022
1022
  try {
@@ -1036,7 +1036,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1036
1036
  }), r;
1037
1037
  };
1038
1038
  }), Ca = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1039
- Ji.init(e, t), No.init(e, t);
1039
+ Ji.init(e, t), xo.init(e, t);
1040
1040
  }), Pa = /* @__PURE__ */ d("$ZodNull", (e, t) => {
1041
1041
  W.init(e, t), e._zod.pattern = Bi, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1042
1042
  const o = r.value;
@@ -1049,7 +1049,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1049
1049
  };
1050
1050
  }), Oa = /* @__PURE__ */ d("$ZodUnknown", (e, t) => {
1051
1051
  W.init(e, t), e._zod.parse = (r) => r;
1052
- }), Na = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1052
+ }), xa = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1053
1053
  W.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1054
1054
  expected: "never",
1055
1055
  code: "invalid_type",
@@ -1060,7 +1060,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1060
1060
  function Yr(e, t, r) {
1061
1061
  e.issues.length && t.issues.push(...Pe(r, e.issues)), t.value[r] = e.value;
1062
1062
  }
1063
- const xa = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1063
+ const Na = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1064
1064
  W.init(e, t), e._zod.parse = (r, n) => {
1065
1065
  const o = r.value;
1066
1066
  if (!Array.isArray(o))
@@ -1085,7 +1085,7 @@ const xa = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1085
1085
  function tt(e, t, r, n) {
1086
1086
  e.issues.length && t.issues.push(...Pe(r, e.issues)), e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1087
1087
  }
1088
- function xo(e) {
1088
+ function No(e) {
1089
1089
  const t = Object.keys(e.shape);
1090
1090
  for (const n of t)
1091
1091
  if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
@@ -1130,7 +1130,7 @@ const za = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1130
1130
  }
1131
1131
  });
1132
1132
  }
1133
- const n = _r(() => xo(t));
1133
+ const n = _r(() => No(t));
1134
1134
  U(e._zod, "propValues", () => {
1135
1135
  const a = t.shape, u = {};
1136
1136
  for (const c in a) {
@@ -1165,41 +1165,41 @@ const za = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1165
1165
  };
1166
1166
  }), La = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1167
1167
  za.init(e, t);
1168
- const r = e._zod.parse, n = _r(() => xo(t)), o = (m) => {
1169
- const g = new ra(["shape", "payload", "ctx"]), C = n.value, v = (x) => {
1170
- const D = Xr(x);
1171
- return `shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`;
1168
+ const r = e._zod.parse, n = _r(() => No(t)), o = (m) => {
1169
+ const g = new ra(["shape", "payload", "ctx"]), C = n.value, v = (N) => {
1170
+ const B = Xr(N);
1171
+ return `shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`;
1172
1172
  };
1173
1173
  g.write("const input = payload.value;");
1174
1174
  const P = /* @__PURE__ */ Object.create(null);
1175
- let L = 0;
1176
- for (const x of C.keys)
1177
- P[x] = `key_${L++}`;
1175
+ let Z = 0;
1176
+ for (const N of C.keys)
1177
+ P[N] = `key_${Z++}`;
1178
1178
  g.write("const newResult = {};");
1179
- for (const x of C.keys) {
1180
- const D = P[x], Y = Xr(x);
1181
- g.write(`const ${D} = ${v(x)};`), g.write(`
1182
- if (${D}.issues.length) {
1183
- payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
1179
+ for (const N of C.keys) {
1180
+ const B = P[N], Y = Xr(N);
1181
+ g.write(`const ${B} = ${v(N)};`), g.write(`
1182
+ if (${B}.issues.length) {
1183
+ payload.issues = payload.issues.concat(${B}.issues.map(iss => ({
1184
1184
  ...iss,
1185
1185
  path: iss.path ? [${Y}, ...iss.path] : [${Y}]
1186
1186
  })));
1187
1187
  }
1188
1188
 
1189
1189
 
1190
- if (${D}.value === undefined) {
1190
+ if (${B}.value === undefined) {
1191
1191
  if (${Y} in input) {
1192
1192
  newResult[${Y}] = undefined;
1193
1193
  }
1194
1194
  } else {
1195
- newResult[${Y}] = ${D}.value;
1195
+ newResult[${Y}] = ${B}.value;
1196
1196
  }
1197
1197
 
1198
1198
  `);
1199
1199
  }
1200
1200
  g.write("payload.value = newResult;"), g.write("return payload;");
1201
1201
  const H = g.compile();
1202
- return (x, D) => H(m, x, D);
1202
+ return (N, B) => H(m, N, B);
1203
1203
  };
1204
1204
  let s;
1205
1205
  const i = et, a = !_o.jitless, c = a && Gs.value, l = t.catchall;
@@ -1269,7 +1269,7 @@ function dr(e, t) {
1269
1269
  return { valid: !0, data: e };
1270
1270
  if (e instanceof Date && t instanceof Date && +e == +t)
1271
1271
  return { valid: !0, data: e };
1272
- if (Ne(e) && Ne(t)) {
1272
+ if (xe(e) && xe(t)) {
1273
1273
  const r = Object.keys(t), n = Object.keys(e).filter((s) => r.indexOf(s) !== -1), o = { ...e, ...t };
1274
1274
  for (const s of n) {
1275
1275
  const i = dr(e[s], t[s]);
@@ -1310,7 +1310,7 @@ function Qr(e, t, r) {
1310
1310
  const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1311
1311
  W.init(e, t), e._zod.parse = (r, n) => {
1312
1312
  const o = r.value;
1313
- if (!Ne(o))
1313
+ if (!xe(o))
1314
1314
  return r.issues.push({
1315
1315
  expected: "record",
1316
1316
  code: "invalid_type",
@@ -1367,7 +1367,7 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1367
1367
  }), ja = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1368
1368
  W.init(e, t);
1369
1369
  const r = Ms(t.entries), n = new Set(r);
1370
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Xs.has(typeof o)).map((o) => typeof o == "string" ? xe(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1370
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Xs.has(typeof o)).map((o) => typeof o == "string" ? Ne(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1371
1371
  const i = o.value;
1372
1372
  return n.has(i) || o.issues.push({
1373
1373
  code: "invalid_value",
@@ -1379,7 +1379,7 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1379
1379
  }), Da = /* @__PURE__ */ d("$ZodLiteral", (e, t) => {
1380
1380
  if (W.init(e, t), t.values.length === 0)
1381
1381
  throw new Error("Cannot create literal schema with no valid values");
1382
- e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? xe(r) : r ? xe(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1382
+ e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Ne(r) : r ? Ne(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1383
1383
  const o = r.value;
1384
1384
  return e._zod.values.has(o) || r.issues.push({
1385
1385
  code: "invalid_value",
@@ -1913,7 +1913,7 @@ function Oc(e) {
1913
1913
  ...$(e)
1914
1914
  });
1915
1915
  }
1916
- function Nc(e, t) {
1916
+ function xc(e, t) {
1917
1917
  return new Ki({
1918
1918
  check: "string_format",
1919
1919
  format: "includes",
@@ -1921,7 +1921,7 @@ function Nc(e, t) {
1921
1921
  includes: e
1922
1922
  });
1923
1923
  }
1924
- function xc(e, t) {
1924
+ function Nc(e, t) {
1925
1925
  return new Qi({
1926
1926
  check: "string_format",
1927
1927
  format: "starts_with",
@@ -2076,7 +2076,7 @@ const Kc = (e, t) => {
2076
2076
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), qo = /* @__PURE__ */ d("_ZodString", (e, t) => {
2077
2077
  wr.init(e, t), X.init(e, t);
2078
2078
  const r = e._zod.bag;
2079
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Cc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(xc(...n)), e.endsWith = (...n) => e.check(zc(...n)), e.min = (...n) => e.check(rt(...n)), e.max = (...n) => e.check(To(...n)), e.length = (...n) => e.check(Zo(...n)), e.nonempty = (...n) => e.check(rt(1, ...n)), e.lowercase = (n) => e.check(Pc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(Tc()), e.normalize = (...n) => e.check(Lc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(qc());
2079
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Cc(...n)), e.includes = (...n) => e.check(xc(...n)), e.startsWith = (...n) => e.check(Nc(...n)), e.endsWith = (...n) => e.check(zc(...n)), e.min = (...n) => e.check(rt(...n)), e.max = (...n) => e.check(To(...n)), e.length = (...n) => e.check(Zo(...n)), e.nonempty = (...n) => e.check(rt(1, ...n)), e.lowercase = (n) => e.check(Pc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(Tc()), e.normalize = (...n) => e.check(Lc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(qc());
2080
2080
  }), pu = /* @__PURE__ */ d("ZodString", (e, t) => {
2081
2081
  wr.init(e, t), qo.init(e, t), e.email = (r) => e.check(ec(hu, r)), e.url = (r) => e.check(Lo(jo, r)), e.jwt = (r) => e.check(_c(ku, r)), e.emoji = (r) => e.check(sc(mu, r)), e.guid = (r) => e.check(sn(ln, r)), e.uuid = (r) => e.check(tc(Ye, r)), e.uuidv4 = (r) => e.check(rc(Ye, r)), e.uuidv6 = (r) => e.check(nc(Ye, r)), e.uuidv7 = (r) => e.check(oc(Ye, r)), e.nanoid = (r) => e.check(ic(du, r)), e.guid = (r) => e.check(sn(ln, r)), e.cuid = (r) => e.check(ac(gu, r)), e.cuid2 = (r) => e.check(cc(vu, r)), e.ulid = (r) => e.check(uc(bu, r)), e.base64 = (r) => e.check(gc(wu, r)), e.base64url = (r) => e.check(vc(Ru, r)), e.xid = (r) => e.check(lc(_u, r)), e.ksuid = (r) => e.check(pc(Eu, r)), e.ipv4 = (r) => e.check(hc(yu, r)), e.ipv6 = (r) => e.check(fc($u, r)), e.cidrv4 = (r) => e.check(mc(Su, r)), e.cidrv6 = (r) => e.check(dc(Au, r)), e.e164 = (r) => e.check(bc(Iu, r)), e.datetime = (r) => e.check(Jc(r)), e.date = (r) => e.check(Wc(r)), e.time = (r) => e.check(Xc(r)), e.duration = (r) => e.check(Yc(r));
2082
2082
  });
@@ -2128,7 +2128,7 @@ const mu = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2128
2128
  }), ku = /* @__PURE__ */ d("ZodJWT", (e, t) => {
2129
2129
  ka.init(e, t), G.init(e, t);
2130
2130
  }), Do = /* @__PURE__ */ d("ZodNumber", (e, t) => {
2131
- No.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(cn(n, o)), e.gte = (n, o) => e.check(St(n, o)), e.min = (n, o) => e.check(St(n, o)), e.lt = (n, o) => e.check(an(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(pn(n)), e.safe = (n) => e.check(pn(n)), e.positive = (n) => e.check(cn(0, n)), e.nonnegative = (n) => e.check(St(0, n)), e.negative = (n) => e.check(an(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(un(n, o)), e.step = (n, o) => e.check(un(n, o)), e.finite = () => e;
2131
+ xo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(cn(n, o)), e.gte = (n, o) => e.check(St(n, o)), e.min = (n, o) => e.check(St(n, o)), e.lt = (n, o) => e.check(an(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(pn(n)), e.safe = (n) => e.check(pn(n)), e.positive = (n) => e.check(cn(0, n)), e.nonnegative = (n) => e.check(St(0, n)), e.negative = (n) => e.check(an(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(un(n, o)), e.step = (n, o) => e.check(un(n, o)), e.finite = () => e;
2132
2132
  const r = e._zod.bag;
2133
2133
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2134
2134
  });
@@ -2153,20 +2153,20 @@ const Ou = /* @__PURE__ */ d("ZodUnknown", (e, t) => {
2153
2153
  function hn() {
2154
2154
  return Ic(Ou);
2155
2155
  }
2156
- const Nu = /* @__PURE__ */ d("ZodNever", (e, t) => {
2157
- Na.init(e, t), X.init(e, t);
2156
+ const xu = /* @__PURE__ */ d("ZodNever", (e, t) => {
2157
+ xa.init(e, t), X.init(e, t);
2158
2158
  });
2159
- function xu(e) {
2160
- return kc(Nu, e);
2159
+ function Nu(e) {
2160
+ return kc(xu, e);
2161
2161
  }
2162
2162
  const zu = /* @__PURE__ */ d("ZodArray", (e, t) => {
2163
- xa.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(rt(r, n)), e.nonempty = (r) => e.check(rt(1, r)), e.max = (r, n) => e.check(To(r, n)), e.length = (r, n) => e.check(Zo(r, n)), e.unwrap = () => e.element;
2163
+ Na.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(rt(r, n)), e.nonempty = (r) => e.check(rt(1, r)), e.max = (r, n) => e.check(To(r, n)), e.length = (r, n) => e.check(Zo(r, n)), e.unwrap = () => e.element;
2164
2164
  });
2165
2165
  function j(e, t) {
2166
2166
  return jc(zu, e, t);
2167
2167
  }
2168
2168
  const Lu = /* @__PURE__ */ d("ZodObject", (e, t) => {
2169
- La.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ue(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: hn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: hn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: xu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ei(e, r), e.safeExtend = (r) => ti(e, r), e.merge = (r) => ri(e, r), e.pick = (r) => Ks(e, r), e.omit = (r) => Qs(e, r), e.partial = (...r) => ni(Fo, e, r[0]), e.required = (...r) => oi(Vo, e, r[0]);
2169
+ La.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ue(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: hn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: hn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Nu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ei(e, r), e.safeExtend = (r) => ti(e, r), e.merge = (r) => ri(e, r), e.pick = (r) => Ks(e, r), e.omit = (r) => Qs(e, r), e.partial = (...r) => ni(Fo, e, r[0]), e.required = (...r) => oi(Vo, e, r[0]);
2170
2170
  });
2171
2171
  function k(e, t) {
2172
2172
  const r = {
@@ -2379,7 +2379,7 @@ function rl(e) {
2379
2379
  return Uc(e);
2380
2380
  }
2381
2381
  var y = /* @__PURE__ */ ((e) => (e.Article = "article", e.AudioDocument = "audiodocument", e.AudioVisualDocument = "audiovisualdocument", e.Book = "book", e.Bookitem = "bookitem", e.Conference = "conference", e.Document = "document", e.Image = "image", e.Issue = "issue", e.Journal = "journal", e.Preprint = "preprint", e.Proceeding = "proceeding", e.Report = "report", e.Unknown = "unknown", e.Webpage = "webpage", e))(y || {});
2382
- const rd = pe([
2382
+ const sd = pe([
2383
2383
  J(
2384
2384
  "book"
2385
2385
  /* Book */
@@ -2408,7 +2408,7 @@ const rd = pe([
2408
2408
  "unknown"
2409
2409
  /* Unknown */
2410
2410
  )
2411
- ]), nd = pe([
2411
+ ]), id = pe([
2412
2412
  J(
2413
2413
  "article"
2414
2414
  /* Article */
@@ -2482,7 +2482,7 @@ const rd = pe([
2482
2482
  bibid: p(),
2483
2483
  doi: p(),
2484
2484
  uri: p()
2485
- }).partial(), od = be.pick({
2485
+ }).partial(), ad = be.pick({
2486
2486
  atitle: !0,
2487
2487
  aufirst: !0,
2488
2488
  aulast: !0,
@@ -2508,7 +2508,7 @@ const rd = pe([
2508
2508
  tpages: !0,
2509
2509
  series: !0,
2510
2510
  spage: !0
2511
- }).partial(), sd = be.pick({
2511
+ }).partial(), cd = be.pick({
2512
2512
  artnum: !0,
2513
2513
  atitle: !0,
2514
2514
  aufirst: !0,
@@ -2540,25 +2540,25 @@ const rd = pe([
2540
2540
  ssn: !0,
2541
2541
  quarter: !0,
2542
2542
  volume: !0
2543
- }).partial(), id = be.pick({
2543
+ }).partial(), ud = be.pick({
2544
2544
  au: !0,
2545
2545
  date: !0,
2546
2546
  isbn: !0,
2547
2547
  pub: !0,
2548
2548
  title: !0
2549
- }).partial(), ad = be.pick({
2549
+ }).partial(), ld = be.pick({
2550
2550
  au: !0,
2551
2551
  date: !0,
2552
2552
  pub: !0,
2553
2553
  title: !0
2554
- }).partial(), cd = be.pick({
2554
+ }).partial(), pd = be.pick({
2555
2555
  au: !0,
2556
2556
  date: !0,
2557
2557
  pub: !0,
2558
2558
  title: !0,
2559
2559
  spage: !0,
2560
2560
  epage: !0
2561
- }).partial(), ud = be.pick({
2561
+ }).partial(), hd = be.pick({
2562
2562
  au: !0,
2563
2563
  date: !0,
2564
2564
  title: !0
@@ -2568,7 +2568,7 @@ const rd = pe([
2568
2568
  }), Q = (e, t) => ({
2569
2569
  ...t,
2570
2570
  genre: e
2571
- }), B = (e, t) => ({
2571
+ }), D = (e, t) => ({
2572
2572
  ...t,
2573
2573
  genre: e
2574
2574
  }), Ae = (e) => ({
@@ -2614,7 +2614,7 @@ const rd = pe([
2614
2614
  ].reduce(r, {});
2615
2615
  return Object.keys(n).length === 0 ? null : n;
2616
2616
  }, hl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2617
- function ld(e) {
2617
+ function fd(e) {
2618
2618
  return typeof e != "string" ? !1 : Object.values(y).includes(e);
2619
2619
  }
2620
2620
  var ye = /* @__PURE__ */ ((e) => (e.CA = "CA", e.EUAPAC = "EUAPAC", e))(ye || {});
@@ -2622,7 +2622,7 @@ const Ho = k({
2622
2622
  id: p(),
2623
2623
  name: p(),
2624
2624
  region: Ue(ye)
2625
- }), pd = k({
2625
+ }), md = k({
2626
2626
  tenants: j(Ho)
2627
2627
  }), gn = 9 * 1024 * 1024, fl = k({
2628
2628
  url: fu({
@@ -2642,7 +2642,7 @@ const Ho = k({
2642
2642
  error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
2643
2643
  })
2644
2644
  });
2645
- function hd(e) {
2645
+ function dd(e) {
2646
2646
  return fl.safeParse(e).success;
2647
2647
  }
2648
2648
  const Yo = k({
@@ -2653,10 +2653,10 @@ const Yo = k({
2653
2653
  function vl(e) {
2654
2654
  return Ho.safeParse(e).success;
2655
2655
  }
2656
- function fd(e) {
2656
+ function gd(e) {
2657
2657
  return typeof e == "string" && Object.keys(ye).includes(e);
2658
2658
  }
2659
- const md = (e) => {
2659
+ const vd = (e) => {
2660
2660
  if (!gl(e))
2661
2661
  throw new Error("Error: the customer list data is invalid.");
2662
2662
  return { tenants: Object.entries(e).map(
@@ -2702,10 +2702,10 @@ const md = (e) => {
2702
2702
  }).and(Ir), El = k({
2703
2703
  meta: Qo
2704
2704
  }).and(Ir);
2705
- function dd(e) {
2705
+ function bd(e) {
2706
2706
  return { bookmarkingWorkflowUrl: e, resource: null };
2707
2707
  }
2708
- function Z() {
2708
+ function T() {
2709
2709
  return { bookmarkingWorkflowUrl: null, resource: null };
2710
2710
  }
2711
2711
  function w(e) {
@@ -2723,9 +2723,9 @@ const Sl = (e) => {
2723
2723
  }, kr = ({ document: e }) => {
2724
2724
  const t = Array.from(e.querySelectorAll(".Z3988"));
2725
2725
  if (t.length === 0)
2726
- return Z();
2726
+ return T();
2727
2727
  const r = t.map(Sl).find((n) => n !== null);
2728
- return r ? w(r) : Z();
2728
+ return r ? w(r) : T();
2729
2729
  }, Al = (e) => {
2730
2730
  const t = Array.from(e.querySelectorAll(".author > a")).map((r) => r.textContent.trim()).filter(Boolean);
2731
2731
  return t.length ? t : void 0;
@@ -2773,7 +2773,7 @@ const Sl = (e) => {
2773
2773
  }, he = (e) => {
2774
2774
  if (e)
2775
2775
  return e.replace(/[^0-9]/g, "");
2776
- }, ss = (e) => Array.from(e.querySelectorAll(".author-source-list li a")).filter((t) => t.childNodes.length > 0).map((t) => t.childNodes[0].textContent?.trim()).filter((t) => !!t), is = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), as = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), Nl = (e) => {
2776
+ }, ss = (e) => Array.from(e.querySelectorAll(".author-source-list li a")).filter((t) => t.childNodes.length > 0).map((t) => t.childNodes[0].textContent?.trim()).filter((t) => !!t), is = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), as = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), xl = (e) => {
2777
2777
  const t = e.querySelector(".article-meta");
2778
2778
  if (!t)
2779
2779
  return {};
@@ -2785,10 +2785,10 @@ const Sl = (e) => {
2785
2785
  issue: he(s),
2786
2786
  jtitle: n
2787
2787
  };
2788
- }, xl = (e) => {
2789
- const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((c) => c.trim()), { jtitle: i, volume: a, issue: u } = Nl(e);
2788
+ }, Nl = (e) => {
2789
+ const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((c) => c.trim()), { jtitle: i, volume: a, issue: u } = xl(e);
2790
2790
  return w(
2791
- B(y.Article, {
2791
+ D(y.Article, {
2792
2792
  au: ss(e),
2793
2793
  atitle: is(e),
2794
2794
  spage: o,
@@ -2877,7 +2877,7 @@ const Sl = (e) => {
2877
2877
  }, Bl = (e) => {
2878
2878
  const { date: t, volume: r, issue: n } = Dl(e);
2879
2879
  return w(
2880
- B(y.Journal, {
2880
+ D(y.Journal, {
2881
2881
  jtitle: jl(e),
2882
2882
  date: t,
2883
2883
  volume: r,
@@ -2905,13 +2905,13 @@ const Ul = (e) => Object.values(us).includes(
2905
2905
  case "Book Chapter":
2906
2906
  return Tl(t);
2907
2907
  case "Full Text Article":
2908
- return xl(t);
2908
+ return Nl(t);
2909
2909
  case "Journal":
2910
2910
  return Bl(t);
2911
2911
  case "Guideline":
2912
2912
  return ql(t, e);
2913
2913
  case void 0:
2914
- return Z();
2914
+ return T();
2915
2915
  }
2916
2916
  }, we = k({
2917
2917
  "@context": p()
@@ -2965,11 +2965,11 @@ const Ul = (e) => Object.values(us).includes(
2965
2965
  return t ? {
2966
2966
  bookmarkingWorkflowUrl: null,
2967
2967
  resource: Kl(t)
2968
- } : Z();
2969
- }, hs = () => Z(), h = (e, t, r) => {
2970
- const n = re(e, t, r);
2968
+ } : T();
2969
+ }, hs = () => T(), h = (e, t, r) => {
2970
+ const n = te(e, t, r);
2971
2971
  return n.length > 0 ? n[0] : void 0;
2972
- }, re = (e, t, r) => Array.from(
2972
+ }, te = (e, t, r) => Array.from(
2973
2973
  e.querySelectorAll(`meta[${t}='${r}']`)
2974
2974
  ).map((n) => n.getAttribute("content")).filter((n) => !!n?.trim()), fs = (e) => {
2975
2975
  const t = /* @__PURE__ */ new Map(), r = e.split(";").filter((n) => !!n);
@@ -2989,7 +2989,7 @@ const Ul = (e) => Object.values(us).includes(
2989
2989
  XPathResult.STRING_TYPE
2990
2990
  ).stringValue.trim();
2991
2991
  return w(
2992
- B(y.Journal, {
2992
+ D(y.Journal, {
2993
2993
  pub: a,
2994
2994
  jtitle: t,
2995
2995
  issn: s,
@@ -2998,12 +2998,12 @@ const Ul = (e) => Object.values(us).includes(
2998
2998
  );
2999
2999
  }, rp = (e) => {
3000
3000
  let t, r;
3001
- const n = re(e, "name", "citation_issn");
3001
+ const n = te(e, "name", "citation_issn");
3002
3002
  return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
3003
3003
  }, np = (e) => {
3004
- const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = re(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = rp(e), a = h(e, "name", "citation_publisher"), u = h(e, "name", "citation_publication_date"), c = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), m = h(e, "name", "citation_lastpage");
3004
+ const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = rp(e), a = h(e, "name", "citation_publisher"), u = h(e, "name", "citation_publication_date"), c = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), m = h(e, "name", "citation_lastpage");
3005
3005
  return w(
3006
- B(y.Article, {
3006
+ D(y.Article, {
3007
3007
  jtitle: t,
3008
3008
  atitle: r,
3009
3009
  au: n,
@@ -3025,7 +3025,7 @@ const Ul = (e) => Object.values(us).includes(
3025
3025
  case "article":
3026
3026
  return np(e);
3027
3027
  case void 0:
3028
- return Z();
3028
+ return T();
3029
3029
  }
3030
3030
  };
3031
3031
  var E = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Book = 1] = "Book", e[e.Chapter = 2] = "Chapter", e[e.Journal = 3] = "Journal", e[e.Article = 4] = "Article", e[e.AudioVisual = 5] = "AudioVisual", e[e.Webpage = 6] = "Webpage", e))(E || {});
@@ -3067,7 +3067,7 @@ const sp = (e) => {
3067
3067
  "name",
3068
3068
  "citation_journal_title"
3069
3069
  ), c = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = ap(e.document);
3070
- return B(y.Article, {
3070
+ return D(y.Article, {
3071
3071
  au: t,
3072
3072
  date: r,
3073
3073
  eissn: i,
@@ -3081,7 +3081,7 @@ const sp = (e) => {
3081
3081
  });
3082
3082
  }, fp = (e) => {
3083
3083
  const t = ms(e.document), r = t.get("issn"), n = t.get("eissn"), o = lp(e.document), s = pp(e.document), i = s.get("issue"), a = s.get("volume"), u = s.get("date");
3084
- return B(y.Journal, {
3084
+ return D(y.Journal, {
3085
3085
  eissn: n,
3086
3086
  issn: r,
3087
3087
  jtitle: o,
@@ -3097,7 +3097,7 @@ const sp = (e) => {
3097
3097
  case E.Journal:
3098
3098
  return w(fp(e));
3099
3099
  default:
3100
- return Z();
3100
+ return T();
3101
3101
  }
3102
3102
  }, dp = (e) => {
3103
3103
  const t = h(e, "name", "citation_type"), r = h(
@@ -3150,7 +3150,7 @@ const sp = (e) => {
3150
3150
  });
3151
3151
  }, yp = (e) => {
3152
3152
  const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), u = h(e, "name", "citation_volume"), c = Pr(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3153
- return B(y.Article, {
3153
+ return D(y.Article, {
3154
3154
  au: o,
3155
3155
  jtitle: l,
3156
3156
  date: n,
@@ -3164,7 +3164,7 @@ const sp = (e) => {
3164
3164
  });
3165
3165
  }, $p = (e) => {
3166
3166
  const t = e.getElementById("journal-title")?.textContent ?? void 0, r = vp(e);
3167
- return B(y.Journal, {
3167
+ return D(y.Journal, {
3168
3168
  issn: r,
3169
3169
  title: t
3170
3170
  });
@@ -3179,7 +3179,7 @@ const sp = (e) => {
3179
3179
  case E.Journal:
3180
3180
  return w($p(e));
3181
3181
  default:
3182
- return Z();
3182
+ return T();
3183
3183
  }
3184
3184
  }, Ap = (e) => {
3185
3185
  const t = h(e, "name", "pbContext");
@@ -3202,8 +3202,8 @@ const sp = (e) => {
3202
3202
  )?.textContent;
3203
3203
  return t ? t.replace("Issue", "").trim() : void 0;
3204
3204
  }, kp = (e) => {
3205
- const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "dc.Date"), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = re(e, "name", "dc.Creator"), a = Rp(e), u = Ip(e), c = wp(e), l = c?.includes("-") ? c.split("-")[0] : c, f = c?.includes("-") ? c.split("-")[1] : c;
3206
- return B(y.Article, {
3205
+ const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "dc.Date"), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Rp(e), u = Ip(e), c = wp(e), l = c?.includes("-") ? c.split("-")[0] : c, f = c?.includes("-") ? c.split("-")[1] : c;
3206
+ return D(y.Article, {
3207
3207
  au: i,
3208
3208
  jtitle: s,
3209
3209
  date: n,
@@ -3217,7 +3217,7 @@ const sp = (e) => {
3217
3217
  });
3218
3218
  }, Cp = (e) => {
3219
3219
  const t = h(e, "property", "og:title"), r = h(e, "name", "publication_doi");
3220
- return B(y.Journal, {
3220
+ return D(y.Journal, {
3221
3221
  doi: r,
3222
3222
  title: t
3223
3223
  });
@@ -3228,33 +3228,33 @@ const sp = (e) => {
3228
3228
  case E.Journal:
3229
3229
  return w(Cp(e));
3230
3230
  default:
3231
- return Z();
3231
+ return T();
3232
3232
  }
3233
- }, gd = (e) => Ir.safeParse(e).success, vd = (e) => _l.safeParse(e).success, bd = (e) => El.safeParse(e).success, _d = (e) => Ko.safeParse(e).success, Ed = (e) => Qo.safeParse(e).success;
3234
- function yd(e) {
3233
+ }, _d = (e) => Ir.safeParse(e).success, Ed = (e) => _l.safeParse(e).success, yd = (e) => El.safeParse(e).success, $d = (e) => Ko.safeParse(e).success, Sd = (e) => Qo.safeParse(e).success;
3234
+ function Ad(e) {
3235
3235
  return ts.safeParse(e).success;
3236
3236
  }
3237
- function Nr(e) {
3237
+ function xr(e) {
3238
3238
  return rs.safeParse(e).success;
3239
3239
  }
3240
3240
  function Op(e) {
3241
3241
  return ns.safeParse(e).success;
3242
3242
  }
3243
- function Np(e) {
3243
+ function xp(e) {
3244
3244
  return os.safeParse(e).success;
3245
3245
  }
3246
- function $d(e) {
3246
+ function wd(e) {
3247
3247
  return es.safeParse(e).success;
3248
3248
  }
3249
- const xp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, zp = (e) => {
3249
+ const Np = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, zp = (e) => {
3250
3250
  const t = /Record\/(\d+)/.exec(e);
3251
3251
  if (t && t.length > 1)
3252
3252
  return t[1];
3253
3253
  }, Lp = (e) => {
3254
3254
  const { url: t, document: r } = e, n = kr(e);
3255
- if (!Nr(n))
3255
+ if (!xr(n))
3256
3256
  return n;
3257
- const o = xp(r);
3257
+ const o = Np(r);
3258
3258
  return o && (n.resource.rft_id = [`info:doi/${o}`]), n.resource.bibid = zp(t), n;
3259
3259
  }, Tp = we.extend({
3260
3260
  "@type": J("VideoObject"),
@@ -3284,7 +3284,7 @@ const xp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3284
3284
  title: r.name,
3285
3285
  uri: e
3286
3286
  })
3287
- } : Z();
3287
+ } : T();
3288
3288
  }, ds = (e) => h(e, "name", "doi") ?? h(e, "name", "DOI") ?? h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? h(e, "name", "prism.doi") ?? void 0, gs = (e) => {
3289
3289
  const t = e.editor?.map((o) => o.name) ?? [], n = [...e.author?.map((o) => o.name) ?? [], ...t];
3290
3290
  if (n.length !== 0)
@@ -3331,7 +3331,7 @@ const vs = k({
3331
3331
  volumeNumber: p().optional()
3332
3332
  }), vn = (e) => Up.safeParse(e).success, Fp = (e, t) => h(e, "name", "citation_issn") ?? h(e, "name", "prism.issn") ?? (bs(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), bn = (e, t) => {
3333
3333
  const r = gs(t), n = h(e, "name", "citation_online_date"), o = ds(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = vn(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, u = t.pageStart, c = t.pageEnd, l = t.headline, f = t.isPartOf.name, m = vn(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3334
- return B(y.Article, {
3334
+ return D(y.Article, {
3335
3335
  au: r,
3336
3336
  date: n,
3337
3337
  doi: o,
@@ -3419,7 +3419,7 @@ const vs = k({
3419
3419
  const t = e.editor.map(
3420
3420
  ({ givenName: i, familyName: a }) => `${i} ${a}`
3421
3421
  ), r = e.name, [n, o] = e.issn, s = e.publisher.name;
3422
- return B(y.Journal, {
3422
+ return D(y.Journal, {
3423
3423
  au: t,
3424
3424
  jtitle: r,
3425
3425
  eissn: n,
@@ -3454,15 +3454,15 @@ const vs = k({
3454
3454
  return r === me.Article && e.includes(ae.Article) ? E.Article : r === me.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? E.Book : r === me.Paper && e.includes(ae.Chapter) ? E.Chapter : r === me.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? E.Article : r === me.Video && e.includes(ae.Video) ? E.AudioVisual : r === me.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? E.Webpage : r === me.Website && e.includes(ae.Journal) ? E.Journal : E.None;
3455
3455
  }, rh = (e, t, r) => e === E.AudioVisual && Kp(r) ? w(Qp(t, r)) : e === E.Book && Jp(r) ? w(Wp(t, r)) : (e === E.Chapter || e === E.Article) && bs(r) ? w(bn(t, r)) : e === E.Article && Bp(r) ? w(
3456
3456
  bn(t, r.mainEntity)
3457
- ) : e === E.Journal && Xp(r) ? w(Hp(r)) : Z(), nh = ({ url: e, document: t }) => {
3457
+ ) : e === E.Journal && Xp(r) ? w(Hp(r)) : T(), nh = ({ url: e, document: t }) => {
3458
3458
  const r = th(e, t);
3459
3459
  if (r === E.Webpage)
3460
3460
  return w(eh(t));
3461
3461
  const n = at(t);
3462
3462
  if (!n)
3463
- return Z();
3463
+ return T();
3464
3464
  const o = Fe(n);
3465
- return o ? rh(r, t, o) : Z();
3465
+ return o ? rh(r, t, o) : T();
3466
3466
  }, oh = /* @__PURE__ */ new Set([
3467
3467
  "Print ISBN",
3468
3468
  "Online ISBN",
@@ -3484,7 +3484,7 @@ const vs = k({
3484
3484
  const t = h(e, "property", "og:type");
3485
3485
  return t === "Book" || t === "books.book" ? E.Book : t === "Chapter" ? E.Chapter : t === "Journal" ? E.Journal : t === "Article" ? E.Article : E.None;
3486
3486
  }, ct = (e) => {
3487
- const t = re(
3487
+ const t = te(
3488
3488
  e,
3489
3489
  "name",
3490
3490
  "citation_author"
@@ -3513,7 +3513,7 @@ const vs = k({
3513
3513
  }, lt = (e, t) => h(e, "property", "books:release_date") ?? h(e, "name", "citation_online_date") ?? t.get(
3514
3514
  "First published"
3515
3515
  /* FirstPublished */
3516
- ) ?? void 0, xr = (e, t) => h(e, "name", "dc.identifier") ?? h(e, "name", "citation_doi") ?? h(e, "name", "publication_doi") ?? t.get(
3516
+ ) ?? void 0, Nr = (e, t) => h(e, "name", "dc.identifier") ?? h(e, "name", "citation_doi") ?? h(e, "name", "publication_doi") ?? t.get(
3517
3517
  "DOI"
3518
3518
  /* Doi */
3519
3519
  ) ?? void 0, _s = (e, t) => {
@@ -3542,7 +3542,7 @@ const vs = k({
3542
3542
  }
3543
3543
  return { volume: t, issue: r };
3544
3544
  }, ch = (e) => {
3545
- const t = ut(e), r = ct(e), n = h(e, "property", "og:title"), o = lt(e, t), s = xr(e, t), i = _s(e, t), a = ih(e);
3545
+ const t = ut(e), r = ct(e), n = h(e, "property", "og:title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = ih(e);
3546
3546
  return Q(y.Book, {
3547
3547
  au: r,
3548
3548
  date: o,
@@ -3552,7 +3552,7 @@ const vs = k({
3552
3552
  title: n
3553
3553
  });
3554
3554
  }, uh = (e) => {
3555
- const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = xr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), u = h(e, "property", "og:title");
3555
+ const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), u = h(e, "property", "og:title");
3556
3556
  return Q(y.Bookitem, {
3557
3557
  au: r,
3558
3558
  btitle: n,
@@ -3570,7 +3570,7 @@ const vs = k({
3570
3570
  "Print ISSN"
3571
3571
  /* PrintIssn */
3572
3572
  ), i = h(e, "property", "og:title"), { volume: a, issue: u } = ah(e);
3573
- return B(y.Journal, {
3573
+ return D(y.Journal, {
3574
3574
  au: r,
3575
3575
  date: n,
3576
3576
  eissn: o,
@@ -3580,8 +3580,8 @@ const vs = k({
3580
3580
  volume: a
3581
3581
  });
3582
3582
  }, ph = (e) => {
3583
- const t = ut(e), r = ct(e), n = lt(e, t), o = xr(e, t), s = h(e, "name", "citation_issn"), i = h(e, "name", "citation_journal_title"), a = h(e, "property", "og:title");
3584
- return B(y.Article, {
3583
+ const t = ut(e), r = ct(e), n = lt(e, t), o = Nr(e, t), s = h(e, "name", "citation_issn"), i = h(e, "name", "citation_journal_title"), a = h(e, "property", "og:title");
3584
+ return D(y.Article, {
3585
3585
  au: r,
3586
3586
  date: n,
3587
3587
  doi: o,
@@ -3600,10 +3600,10 @@ const vs = k({
3600
3600
  case E.Article:
3601
3601
  return w(ph(e));
3602
3602
  default:
3603
- return Z();
3603
+ return T();
3604
3604
  }
3605
3605
  }, fh = (e) => {
3606
- const t = re(e, "name", "citation_author");
3606
+ const t = te(e, "name", "citation_author");
3607
3607
  return t.length > 0 ? t : void 0;
3608
3608
  }, mh = ({ document: e }) => {
3609
3609
  const t = fh(e), r = h(e, "name", "citation_publication_date"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_isbn"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_title") ?? e.title, a = Ae({
@@ -3617,7 +3617,7 @@ const vs = k({
3617
3617
  return w(a);
3618
3618
  }, dh = ({
3619
3619
  document: e
3620
- }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? Z() : yl(), zr = (e) => {
3620
+ }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : yl(), zr = (e) => {
3621
3621
  if (!(!e || e.length === 0))
3622
3622
  return e[0];
3623
3623
  };
@@ -3732,9 +3732,9 @@ const gh = (e) => {
3732
3732
  const r = _e(e), n = Re(e), o = Ie(e) ?? Sh(e), s = Ss(e), i = s.jtitle ?? Eh(e) ?? void 0, a = s.pub, u = yh(e), c = $h(e), l = u.issue ?? c.issue, f = u.volume ?? c.volume, m = pt(e) ?? c.pages, g = c.spage, C = c.epage, v = Ee(t), P = ys(
3733
3733
  Array.from(
3734
3734
  e.querySelector(".content-meta-data-stables")?.childNodes ?? []
3735
- ).map((L) => L.textContent ?? "")
3735
+ ).map((Z) => Z.textContent ?? "")
3736
3736
  );
3737
- return B(y.Article, {
3737
+ return D(y.Article, {
3738
3738
  atitle: r,
3739
3739
  au: n,
3740
3740
  date: o,
@@ -3804,7 +3804,7 @@ const gh = (e) => {
3804
3804
  });
3805
3805
  }, Ph = (e, t) => {
3806
3806
  const { pub: r } = Ss(e), n = _e(e), o = e.querySelector(".eissn")?.textContent.replace(/EISSN\s+/, "").trim() ?? void 0, s = e.querySelector(".issn")?.textContent.replace(/ISSN\s+/, "").trim() ?? void 0, i = Ee(t);
3807
- return B(y.Journal, {
3807
+ return D(y.Journal, {
3808
3808
  eissn: o,
3809
3809
  issn: s,
3810
3810
  jtitle: n,
@@ -3822,15 +3822,15 @@ const Oh = (e, t) => {
3822
3822
  title: s,
3823
3823
  uri: a
3824
3824
  });
3825
- }, Nh = (e) => Object.values(oe).includes(e), xh = (e) => {
3825
+ }, xh = (e) => Object.values(oe).includes(e), Nh = (e) => {
3826
3826
  if (e.querySelector(".journal_header-title"))
3827
3827
  return oe.Journal;
3828
3828
  if (e.querySelector(".journal-link"))
3829
3829
  return oe.Article;
3830
3830
  const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
3831
- return Nh(n) ? n : null;
3831
+ return xh(n) ? n : null;
3832
3832
  }, zh = (e, t) => {
3833
- switch (xh(e)) {
3833
+ switch (Nh(e)) {
3834
3834
  case oe.Article:
3835
3835
  case oe.Serial:
3836
3836
  return Ah(e, t);
@@ -3854,7 +3854,7 @@ const Oh = (e, t) => {
3854
3854
  }
3855
3855
  }, Lh = ({ document: e, url: t }) => {
3856
3856
  const r = zh(e, t);
3857
- return r ? w(r) : Z();
3857
+ return r ? w(r) : T();
3858
3858
  }, je = (e) => {
3859
3859
  if (e) {
3860
3860
  if (typeof e == "string")
@@ -3906,7 +3906,7 @@ const Oh = (e, t) => {
3906
3906
  title: e?.name ?? t.title,
3907
3907
  volume: e?.mainEntity.volumeNumber
3908
3908
  };
3909
- }, qh = (e) => B(y.Article, {
3909
+ }, qh = (e) => D(y.Article, {
3910
3910
  ...Me(e),
3911
3911
  au: e.authors,
3912
3912
  doi: e.doi,
@@ -3933,7 +3933,7 @@ const Oh = (e, t) => {
3933
3933
  isbn: e.isbn,
3934
3934
  pub: e.publisher,
3935
3935
  spage: e.spage
3936
- }), Bh = (e) => B(y.Journal, {
3936
+ }), Bh = (e) => D(y.Journal, {
3937
3937
  ...Me(e),
3938
3938
  date: e.date,
3939
3939
  doi: e.doi,
@@ -4047,7 +4047,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4047
4047
  case "Video":
4048
4048
  return w(Vh(n));
4049
4049
  default:
4050
- return Z();
4050
+ return T();
4051
4051
  }
4052
4052
  }, Qh = (e) => {
4053
4053
  const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o = h(e, "name", "DC.identifier");
@@ -4086,8 +4086,8 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4086
4086
  const n = /\d{4}/.exec(t);
4087
4087
  return n ? n[0] : void 0;
4088
4088
  }, sf = (e) => {
4089
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = of(e), o = ef(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), u = o.pages ? nf(o.pages) : void 0, c = u?.spage, l = u?.epage, f = re(e, "name", "DC.creator"), m = tf(e);
4090
- return B(y.Article, {
4089
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = of(e), o = ef(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), u = o.pages ? nf(o.pages) : void 0, c = u?.spage, l = u?.epage, f = te(e, "name", "DC.creator"), m = tf(e);
4090
+ return D(y.Article, {
4091
4091
  au: f,
4092
4092
  jtitle: s,
4093
4093
  date: n,
@@ -4101,7 +4101,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4101
4101
  });
4102
4102
  }, af = (e) => {
4103
4103
  const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = rf(e);
4104
- return B(y.Journal, {
4104
+ return D(y.Journal, {
4105
4105
  issn: n,
4106
4106
  title: t,
4107
4107
  pub: r
@@ -4115,18 +4115,18 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4115
4115
  case E.Journal:
4116
4116
  return w(af(e));
4117
4117
  default:
4118
- return Z();
4118
+ return T();
4119
4119
  }
4120
4120
  }, uf = /^\d{4}-\d{3}[\dX]$/i, lf = (e) => uf.test(e), Rs = (e) => {
4121
4121
  const t = e.filter(lf);
4122
4122
  return t.length ? t : void 0;
4123
4123
  }, Tr = (e) => {
4124
- const t = re(e, "name", "citation_author");
4124
+ const t = te(e, "name", "citation_author");
4125
4125
  return t.length ? t : void 0;
4126
4126
  }, Zr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], pf = (e) => h(e, "name", "citation_doi"), Is = (e) => {
4127
- const t = re(e, "name", "citation_isbn");
4127
+ const t = te(e, "name", "citation_isbn");
4128
4128
  return t.length ? t.join(",") : void 0;
4129
- }, ks = (e) => Rs(re(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), hf = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), ff = (e) => h(e, "name", "citation_issue"), mf = (e) => h(e, "name", "citation_volume"), df = (e) => B(y.Article, {
4129
+ }, ks = (e) => Rs(te(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), hf = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), ff = (e) => h(e, "name", "citation_issue"), mf = (e) => h(e, "name", "citation_volume"), df = (e) => D(y.Article, {
4130
4130
  atitle: ht(e),
4131
4131
  au: Tr(e),
4132
4132
  date: Zr(e),
@@ -4165,7 +4165,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4165
4165
  return Cs(t) ? gf(e) : bf(t) ? df(e) : _f(t) ? vf(e) : null;
4166
4166
  }, yf = ({ document: e }) => {
4167
4167
  const t = Ef(e);
4168
- return t ? w(t) : Z();
4168
+ return t ? w(t) : T();
4169
4169
  }, $f = k({
4170
4170
  "@content": p(),
4171
4171
  datePublished: p().optional(),
@@ -4198,10 +4198,10 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4198
4198
  }, wf = ({ document: e }) => {
4199
4199
  const t = at(e);
4200
4200
  if (!t)
4201
- return Z();
4201
+ return T();
4202
4202
  const r = Af(t);
4203
4203
  if (!r)
4204
- return Z();
4204
+ return T();
4205
4205
  const n = r.mainEntity.type, o = r.mainEntity.author?.map((c) => c.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, u = r.mainEntity.publisher?.name;
4206
4206
  switch (n) {
4207
4207
  case "Book":
@@ -4215,7 +4215,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4215
4215
  })
4216
4216
  );
4217
4217
  default:
4218
- return Z();
4218
+ return T();
4219
4219
  }
4220
4220
  }, Rf = we.extend({
4221
4221
  "@type": p().optional(),
@@ -4237,10 +4237,10 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4237
4237
  }) => {
4238
4238
  const r = at(e);
4239
4239
  if (!r)
4240
- return Z();
4240
+ return T();
4241
4241
  const n = Fe(r);
4242
4242
  if (!n || !If(n))
4243
- return Z();
4243
+ return T();
4244
4244
  const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? h(e, "property", "og:book:release_date"), a = n.name, u = zr(n.publisher?.map((l) => l.name)), c = h(e, "property", "og:book:isbn");
4245
4245
  switch (o) {
4246
4246
  case "Book":
@@ -4255,7 +4255,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4255
4255
  })
4256
4256
  );
4257
4257
  default:
4258
- return Z();
4258
+ return T();
4259
4259
  }
4260
4260
  }, Cf = (e) => {
4261
4261
  const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
@@ -4274,11 +4274,11 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4274
4274
  uri: e
4275
4275
  });
4276
4276
  return w(i);
4277
- }, Nf = ({
4277
+ }, xf = ({
4278
4278
  document: e,
4279
4279
  url: t
4280
4280
  }) => {
4281
- switch (xf(t)) {
4281
+ switch (Nf(t)) {
4282
4282
  case E.Chapter:
4283
4283
  return w(qf(e));
4284
4284
  case E.Book:
@@ -4288,9 +4288,9 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4288
4288
  case E.Journal:
4289
4289
  return w(Lf(e));
4290
4290
  default:
4291
- return Z();
4291
+ return T();
4292
4292
  }
4293
- }, xf = (e) => {
4293
+ }, Nf = (e) => {
4294
4294
  const { pathname: t } = new URL(e);
4295
4295
  return t.includes("/books/abs/") ? E.Chapter : t.includes("/books/") ? E.Book : /\/journals\/.+\/article\//.exec(t) != null ? E.Article : t.includes("/journals/") ? E.Journal : E.None;
4296
4296
  }, zf = (e) => {
@@ -4299,9 +4299,9 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4299
4299
  "name",
4300
4300
  "citation_publication_date"
4301
4301
  )?.substring(0, 4), c = h(e, "name", "citation_publisher"), l = Ps(e), f = Rs(
4302
- re(e, "name", "citation_issn")
4302
+ te(e, "name", "citation_issn")
4303
4303
  );
4304
- return B(y.Article, {
4304
+ return D(y.Article, {
4305
4305
  atitle: t,
4306
4306
  au: l,
4307
4307
  jtitle: r,
@@ -4322,7 +4322,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4322
4322
  (a) => a.type === "Online"
4323
4323
  /* Online */
4324
4324
  ), s = n ? n.value : void 0, i = o ? o.value : void 0;
4325
- return B(y.Journal, {
4325
+ return D(y.Journal, {
4326
4326
  title: t,
4327
4327
  issn: s,
4328
4328
  eissn: i
@@ -4363,7 +4363,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4363
4363
  pub: s
4364
4364
  });
4365
4365
  }, Ps = (e) => {
4366
- const t = re(e, "name", "citation_author");
4366
+ const t = te(e, "name", "citation_author");
4367
4367
  return t.length ? t : void 0;
4368
4368
  }, Df = (e) => {
4369
4369
  switch (h(e, "property", "og:type")) {
@@ -4378,7 +4378,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4378
4378
  function Bf(e) {
4379
4379
  const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
4380
4380
  return w(
4381
- B(y.Journal, {
4381
+ D(y.Journal, {
4382
4382
  jtitle: t,
4383
4383
  pub: r,
4384
4384
  doi: n
@@ -4386,9 +4386,9 @@ function Bf(e) {
4386
4386
  );
4387
4387
  }
4388
4388
  function Uf(e) {
4389
- const t = h(e, "name", "dc.Title"), r = re(e, "name", "dc.Creator"), n = h(e, "name", "dc.Date")?.substring(0, 4), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "dc.Publisher");
4389
+ const t = h(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = h(e, "name", "dc.Date")?.substring(0, 4), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "dc.Publisher");
4390
4390
  return w(
4391
- B(y.Article, {
4391
+ D(y.Article, {
4392
4392
  atitle: t,
4393
4393
  au: r,
4394
4394
  date: n,
@@ -4405,7 +4405,7 @@ const Ff = ({ document: e }) => {
4405
4405
  case "Article":
4406
4406
  return Uf(e);
4407
4407
  default:
4408
- return Z();
4408
+ return T();
4409
4409
  }
4410
4410
  }, Vf = (e) => {
4411
4411
  if (!e)
@@ -4420,7 +4420,7 @@ const Ff = ({ document: e }) => {
4420
4420
  if (t.includes("/article/"))
4421
4421
  return E.Article;
4422
4422
  }, Mf = (e) => {
4423
- const t = h(e, "name", "DC.Source"), r = h(e, "name", "DC.Title"), n = re(e, "name", "DC.Creator.PersonalName"), o = h(e, "name", "DC.Source.ISSN"), s = h(e, "name", "citation_date")?.substring(
4423
+ const t = h(e, "name", "DC.Source"), r = h(e, "name", "DC.Title"), n = te(e, "name", "DC.Creator.PersonalName"), o = h(e, "name", "DC.Source.ISSN"), s = h(e, "name", "citation_date")?.substring(
4424
4424
  0,
4425
4425
  4
4426
4426
  ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), u = h(e, "name", "DC.Identifier.URI"), c = h(
@@ -4428,7 +4428,7 @@ const Ff = ({ document: e }) => {
4428
4428
  "name",
4429
4429
  "DC.Identifier.pageNumber"
4430
4430
  ), l = c ? Vf(c) : void 0, f = l?.spage, m = l?.epage;
4431
- return B(y.Article, {
4431
+ return D(y.Article, {
4432
4432
  jtitle: t,
4433
4433
  atitle: r,
4434
4434
  au: n,
@@ -4445,7 +4445,7 @@ const Ff = ({ document: e }) => {
4445
4445
  case E.Article:
4446
4446
  return w(Mf(e));
4447
4447
  default:
4448
- return Z();
4448
+ return T();
4449
4449
  }
4450
4450
  }, Gf = (e) => {
4451
4451
  switch (Xf(e)) {
@@ -4458,7 +4458,7 @@ const Ff = ({ document: e }) => {
4458
4458
  }
4459
4459
  }, Xf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4460
4460
  function Hf(e, t) {
4461
- const r = Os(e), n = br(e), o = Ns(e), s = xs(e), i = zs(e), a = Ls(e), u = br(e), c = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4461
+ const r = Os(e), n = br(e), o = xs(e), s = Ns(e), i = zs(e), a = Ls(e), u = br(e), c = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4462
4462
  return w(
4463
4463
  Q(y.Book, {
4464
4464
  au: r,
@@ -4475,7 +4475,7 @@ function Hf(e, t) {
4475
4475
  );
4476
4476
  }
4477
4477
  function Yf(e, t) {
4478
- const r = Os(e), n = Sn(e), o = br(e), s = Ns(e), i = xs(e), a = zs(e), u = Ls(e), c = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4478
+ const r = Os(e), n = Sn(e), o = br(e), s = xs(e), i = Ns(e), a = zs(e), u = Ls(e), c = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4479
4479
  return w(
4480
4480
  Q(y.Book, {
4481
4481
  au: r,
@@ -4497,7 +4497,7 @@ const Os = (e) => {
4497
4497
  "div#article_author p.author-bio b"
4498
4498
  ), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
4499
4499
  return r.length > 0 ? r : void 0;
4500
- }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Kf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Kf(e), Sn = (e) => ze(e, "chapter-title-squid"), Ns = (e) => ze(e, "pubdate-squid"), xs = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4500
+ }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Kf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Kf(e), Sn = (e) => ze(e, "chapter-title-squid"), xs = (e) => ze(e, "pubdate-squid"), Ns = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4501
4501
  const t = e.querySelector("#pageRange")?.textContent ?? void 0;
4502
4502
  if (!t) return;
4503
4503
  const n = /(\d+)–(\d+)/.exec(t);
@@ -4513,7 +4513,7 @@ const Os = (e) => {
4513
4513
  case "Chapter":
4514
4514
  return Yf(e, t);
4515
4515
  default:
4516
- return Z();
4516
+ return T();
4517
4517
  }
4518
4518
  }, em = (e, t) => e.evaluate(
4519
4519
  `//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`,
@@ -4534,7 +4534,7 @@ const Os = (e) => {
4534
4534
  delete e.rft_id;
4535
4535
  }, nm = (e) => {
4536
4536
  const t = kr(e);
4537
- if (Nr(t)) {
4537
+ if (xr(t)) {
4538
4538
  const r = tm(e.document);
4539
4539
  t.resource.genre = r, rm(t.resource);
4540
4540
  }
@@ -4551,8 +4551,8 @@ const Os = (e) => {
4551
4551
  if (o || s)
4552
4552
  return E.Webpage;
4553
4553
  }, sm = (e) => {
4554
- const t = h(e, "name", "DC.Title"), r = h(e, "name", "DC.Publisher"), n = h(e, "name", "DC.Date"), o = h(e, "name", "DC.Identifier"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "citation_volume"), a = h(e, "name", "citation_issn"), u = re(e, "name", "citation_author");
4555
- return B(y.Article, {
4554
+ const t = h(e, "name", "DC.Title"), r = h(e, "name", "DC.Publisher"), n = h(e, "name", "DC.Date"), o = h(e, "name", "DC.Identifier"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "citation_volume"), a = h(e, "name", "citation_issn"), u = te(e, "name", "citation_author");
4555
+ return D(y.Article, {
4556
4556
  au: u,
4557
4557
  jtitle: s,
4558
4558
  date: n,
@@ -4578,14 +4578,14 @@ const Os = (e) => {
4578
4578
  case E.Webpage:
4579
4579
  return w(im(e, t));
4580
4580
  }
4581
- return Z();
4581
+ return T();
4582
4582
  }, cm = ({
4583
4583
  document: e
4584
4584
  }) => Array.from(
4585
4585
  e.querySelectorAll(
4586
4586
  ".availability.documentSummaryAvailability.availabilityContent"
4587
4587
  )
4588
- ).length <= 1 ? Z() : $l(), um = /([0-9]{4})\s+at/;
4588
+ ).length <= 1 ? T() : $l(), um = /([0-9]{4})\s+at/;
4589
4589
  function lm(e) {
4590
4590
  if (!e)
4591
4591
  return;
@@ -4623,7 +4623,7 @@ const fm = ({
4623
4623
  document: t
4624
4624
  }) => {
4625
4625
  if (!new URL(e).searchParams.has("i"))
4626
- return Z();
4626
+ return T();
4627
4627
  const n = y.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = hm(t);
4628
4628
  return w({
4629
4629
  genre: n,
@@ -4632,8 +4632,25 @@ const fm = ({
4632
4632
  uri: e,
4633
4633
  ...i
4634
4634
  });
4635
+ }, mm = (e) => {
4636
+ const t = h(e, "name", "citation_date");
4637
+ return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
4638
+ }, dm = (e) => {
4639
+ const t = e.querySelector("#arxiv-doi-link")?.textContent;
4640
+ return t ? t.replace("https://doi.org/", "").trim() : void 0;
4641
+ }, gm = ({ document: e }) => {
4642
+ const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = mm(e), s = dm(e);
4643
+ return !t && n.length === 0 && !o && !s ? T() : w(
4644
+ D(y.Article, {
4645
+ au: n,
4646
+ date: o,
4647
+ doi: s,
4648
+ title: t,
4649
+ uri: r
4650
+ })
4651
+ );
4635
4652
  };
4636
- var T = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e))(T || {});
4653
+ var L = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e))(L || {});
4637
4654
  const wn = {
4638
4655
  NoResourceFound: hs,
4639
4656
  Z3988: kr,
@@ -4657,18 +4674,19 @@ const wn = {
4657
4674
  OpenStax: wf,
4658
4675
  OpenTextbook: kf,
4659
4676
  Milne: Of,
4660
- CambridgeJournalsOnline: Nf,
4677
+ CambridgeJournalsOnline: xf,
4661
4678
  AhaJournals: Ff,
4662
4679
  Ijees: Wf,
4663
4680
  BloomsburyCollections: Qf,
4664
4681
  HeritageCirqa: nm,
4665
4682
  BritishMedicalJournal: am,
4666
4683
  SummonSearchResult: cm,
4667
- ApplePodcasts: fm
4668
- }, mm = "5.24.0", Zs = () => mm, dm = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], gm = dm.flatMap((e) => [
4684
+ ApplePodcasts: fm,
4685
+ Arxiv: gm
4686
+ }, vm = "5.25.0", Zs = () => vm, bm = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], _m = bm.flatMap((e) => [
4669
4687
  `amazon.${e}`,
4670
4688
  `www.amazon.${e}`
4671
- ]), Sd = {
4689
+ ]), Rd = {
4672
4690
  version: Zs(),
4673
4691
  siteRegistrations: [
4674
4692
  {
@@ -4676,190 +4694,197 @@ const wn = {
4676
4694
  regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search"
4677
4695
  },
4678
4696
  name: "Worldcat Search Results",
4679
- parsers: [T.Z3988SearchResult]
4697
+ parsers: [L.Z3988SearchResult]
4680
4698
  },
4681
4699
  {
4682
4700
  matcher: {
4683
4701
  regexp: "^https://[a-z0-9\\-]+\\.summon\\.serialssolutions\\.com/"
4684
4702
  },
4685
4703
  name: "Summon Search Results",
4686
- parsers: [T.SummonSearchResult]
4704
+ parsers: [L.SummonSearchResult]
4687
4705
  },
4688
4706
  {
4689
4707
  matcher: { hostnames: ["cupofjo.com"] },
4690
4708
  name: "Cup of Jo",
4691
- parsers: [T.CupOfJo]
4709
+ parsers: [L.CupOfJo]
4692
4710
  },
4693
4711
  {
4694
4712
  matcher: { hostnames: ["youtube.com", "www.youtube.com"] },
4695
4713
  name: "Youtube",
4696
- parsers: [T.Youtube]
4714
+ parsers: [L.Youtube]
4697
4715
  },
4698
4716
  {
4699
4717
  matcher: { hostnames: ["www.sciencedirect.com"] },
4700
4718
  name: "Science Direct",
4701
- parsers: [T.ScienceDirect]
4719
+ parsers: [L.ScienceDirect]
4702
4720
  },
4703
4721
  {
4704
- matcher: { hostnames: gm },
4722
+ matcher: { hostnames: _m },
4705
4723
  name: "Amazon",
4706
- parsers: [T.Amazon]
4724
+ parsers: [L.Amazon]
4707
4725
  },
4708
4726
  {
4709
4727
  matcher: {
4710
4728
  hostnames: ["sagepub.com", "www.sagepub.com", "journals.sagepub.com"]
4711
4729
  },
4712
4730
  name: "Sage Publishing",
4713
- parsers: [T.SagePub]
4731
+ parsers: [L.SagePub]
4714
4732
  },
4715
4733
  {
4716
4734
  matcher: { hostnames: ["www.tandfonline.com"] },
4717
4735
  name: "Taylor & Francis",
4718
- parsers: [T.TaylorFrancis]
4736
+ parsers: [L.TaylorFrancis]
4719
4737
  },
4720
4738
  {
4721
4739
  matcher: {
4722
4740
  hostnames: ["wiley.com", "www.wiley.com", "onlinelibrary.wiley.com"]
4723
4741
  },
4724
4742
  name: "Wiley",
4725
- parsers: [T.Wiley]
4743
+ parsers: [L.Wiley]
4726
4744
  },
4727
4745
  {
4728
4746
  matcher: {
4729
4747
  regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/"
4730
4748
  },
4731
4749
  name: "Worldcat",
4732
- parsers: [T.Z3988]
4750
+ parsers: [L.Z3988]
4733
4751
  },
4734
4752
  {
4735
4753
  matcher: { hostnames: ["catalogue.rau.ac.uk"] },
4736
4754
  name: "Royal Agricultural University Library",
4737
- parsers: [T.Z3988]
4755
+ parsers: [L.Z3988]
4738
4756
  },
4739
4757
  {
4740
4758
  matcher: { hostnames: ["link.springer.com"] },
4741
4759
  name: "Springer",
4742
- parsers: [T.Springer]
4760
+ parsers: [L.Springer]
4743
4761
  },
4744
4762
  {
4745
4763
  matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
4746
4764
  name: "Sage Video",
4747
- parsers: [T.SageVideo]
4765
+ parsers: [L.SageVideo]
4748
4766
  },
4749
4767
  {
4750
4768
  matcher: {
4751
4769
  regexp: "^https://vufind\\.lboro\\.ac\\.uk/(Record|PrimoRecord)"
4752
4770
  },
4753
4771
  name: "VuFind",
4754
- parsers: [T.VuFind]
4772
+ parsers: [L.VuFind]
4755
4773
  },
4756
4774
  {
4757
4775
  matcher: { hostnames: ["www.clinicalkey.com", "www.clinicalkey.com.au"] },
4758
4776
  name: "ClinicalKey",
4759
- parsers: [T.ClinicalKey]
4777
+ parsers: [L.ClinicalKey]
4760
4778
  },
4761
4779
  {
4762
4780
  matcher: {
4763
4781
  hostnames: ["www.jstor.org"]
4764
4782
  },
4765
4783
  name: "JSTOR",
4766
- parsers: [T.Jstor]
4784
+ parsers: [L.Jstor]
4767
4785
  },
4768
4786
  {
4769
4787
  matcher: { hostnames: ["doaj.org"] },
4770
4788
  name: "DOAJ",
4771
- parsers: [T.DOAJ]
4789
+ parsers: [L.DOAJ]
4772
4790
  },
4773
4791
  {
4774
4792
  matcher: {
4775
4793
  regexp: "/.*ingentaconnect.com/"
4776
4794
  },
4777
4795
  name: "IngentaConnect",
4778
- parsers: [T.IngentaConnect]
4796
+ parsers: [L.IngentaConnect]
4779
4797
  },
4780
4798
  {
4781
4799
  matcher: {
4782
4800
  hostnames: ["research.ebsco.com"]
4783
4801
  },
4784
4802
  name: "EBSCOHost",
4785
- parsers: [T.Ebscohost]
4803
+ parsers: [L.Ebscohost]
4786
4804
  },
4787
4805
  {
4788
4806
  matcher: {
4789
4807
  hostnames: ["openstax.org"]
4790
4808
  },
4791
4809
  name: "OpenStax",
4792
- parsers: [T.OpenStax]
4810
+ parsers: [L.OpenStax]
4793
4811
  },
4794
4812
  {
4795
4813
  matcher: {
4796
4814
  hostnames: ["open.umn.edu"]
4797
4815
  },
4798
4816
  name: "OpenTextbook",
4799
- parsers: [T.OpenTextbook]
4817
+ parsers: [L.OpenTextbook]
4800
4818
  },
4801
4819
  {
4802
4820
  matcher: {
4803
4821
  hostnames: ["milneopentextbooks.org"]
4804
4822
  },
4805
4823
  name: "Milne Open Textbooks",
4806
- parsers: [T.Milne]
4824
+ parsers: [L.Milne]
4807
4825
  },
4808
4826
  {
4809
4827
  matcher: {
4810
4828
  hostnames: ["www.perlego.com"]
4811
4829
  },
4812
4830
  name: "Perlego",
4813
- parsers: [T.Z3988]
4831
+ parsers: [L.Z3988]
4814
4832
  },
4815
4833
  {
4816
4834
  matcher: {
4817
4835
  hostnames: ["www.ahajournals.org"]
4818
4836
  },
4819
4837
  name: "AHA Journals",
4820
- parsers: [T.AhaJournals]
4838
+ parsers: [L.AhaJournals]
4821
4839
  },
4822
4840
  {
4823
4841
  matcher: {
4824
4842
  hostnames: ["www.cambridge.org"]
4825
4843
  },
4826
4844
  name: "Cambridge Journals Online",
4827
- parsers: [T.CambridgeJournalsOnline]
4845
+ parsers: [L.CambridgeJournalsOnline]
4828
4846
  },
4829
4847
  {
4830
4848
  matcher: {
4831
4849
  hostnames: ["www.nieindia.org"]
4832
4850
  },
4833
4851
  name: "International Journal of Ecology and Environmental Sciences",
4834
- parsers: [T.Ijees]
4852
+ parsers: [L.Ijees]
4835
4853
  },
4836
4854
  {
4837
4855
  matcher: {
4838
4856
  hostnames: ["www.bloomsburycollections.com"]
4839
4857
  },
4840
4858
  name: "Bloomsbury Collections",
4841
- parsers: [T.BloomsburyCollections]
4859
+ parsers: [L.BloomsburyCollections]
4842
4860
  },
4843
4861
  {
4844
4862
  matcher: {
4845
4863
  hostnames: ["regwem.cirqahosting.com", "buddy.cirqahosting.com"]
4846
4864
  },
4847
4865
  name: "Heritage Cirqa",
4848
- parsers: [T.HeritageCirqa]
4866
+ parsers: [L.HeritageCirqa]
4849
4867
  },
4850
4868
  {
4851
4869
  matcher: {
4852
4870
  hostnames: ["www.bmj.com"]
4853
4871
  },
4854
4872
  name: "British Medical Journal",
4855
- parsers: [T.BritishMedicalJournal]
4873
+ parsers: [L.BritishMedicalJournal]
4856
4874
  },
4857
4875
  {
4858
4876
  matcher: {
4859
4877
  hostnames: ["podcasts.apple.com"]
4860
4878
  },
4861
4879
  name: "Apple Podcasts",
4862
- parsers: [T.ApplePodcasts]
4880
+ parsers: [L.ApplePodcasts]
4881
+ },
4882
+ {
4883
+ matcher: {
4884
+ hostnames: ["arxiv.org"]
4885
+ },
4886
+ name: "arxiv",
4887
+ parsers: [L.Arxiv]
4863
4888
  }
4864
4889
  ]
4865
4890
  }, qs = k({
@@ -4874,13 +4899,13 @@ const wn = {
4874
4899
  name: p(),
4875
4900
  parsers: j(p()),
4876
4901
  libraryVersionRange: p().optional()
4877
- }), vm = k({
4902
+ }), Em = k({
4878
4903
  siteRegistrations: j(Bs),
4879
4904
  version: p()
4880
- }), Ad = (e) => vm.safeParse(e).success, wd = (e) => Bs.safeParse(e).success, Rd = (e) => Ds.safeParse(e).success, bm = (e) => Object.values(T).includes(e), _m = (e) => typeof e == "object" && e !== null, Em = k({
4905
+ }), Id = (e) => Em.safeParse(e).success, kd = (e) => Bs.safeParse(e).success, Cd = (e) => Ds.safeParse(e).success, ym = (e) => Object.values(L).includes(e), $m = (e) => typeof e == "object" && e !== null, Sm = k({
4881
4906
  url: p(),
4882
- document: el(_m)
4883
- }), Id = (e) => Em.safeParse(e).success;
4907
+ document: el($m)
4908
+ }), Pd = (e) => Sm.safeParse(e).success;
4884
4909
  var Qe = { exports: {} }, At, Rn;
4885
4910
  function ft() {
4886
4911
  if (Rn) return At;
@@ -4927,12 +4952,12 @@ function We() {
4927
4952
  ["\\d", o],
4928
4953
  [m, n]
4929
4954
  ], C = (P) => {
4930
- for (const [L, H] of g)
4931
- P = P.split(`${L}*`).join(`${L}{0,${H}}`).split(`${L}+`).join(`${L}{1,${H}}`);
4955
+ for (const [Z, H] of g)
4956
+ P = P.split(`${Z}*`).join(`${Z}{0,${H}}`).split(`${Z}+`).join(`${Z}{1,${H}}`);
4932
4957
  return P;
4933
- }, v = (P, L, H) => {
4934
- const x = C(L), D = f++;
4935
- s(P, D, L), l[P] = D, u[D] = L, c[D] = x, i[D] = new RegExp(L, H ? "g" : void 0), a[D] = new RegExp(x, H ? "g" : void 0);
4958
+ }, v = (P, Z, H) => {
4959
+ const N = C(Z), B = f++;
4960
+ s(P, B, Z), l[P] = B, u[B] = Z, c[B] = N, i[B] = new RegExp(Z, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
4936
4961
  };
4937
4962
  v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${m}*`), v("MAINVERSION", `(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${m}+`), v("BUILD", `(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`), v("FULL", `^${u[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`), v("LOOSE", `^${u[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${u[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`), v("XRANGE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${u[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", u[l.COERCEPLAIN] + `(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", u[l.COERCE], !0), v("COERCERTLFULL", u[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${u[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${u[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
4938
4963
  })(Qe, Qe.exports)), Qe.exports;
@@ -5118,10 +5143,10 @@ function ne() {
5118
5143
  }
5119
5144
  return kt = a, kt;
5120
5145
  }
5121
- var Ct, Nn;
5146
+ var Ct, xn;
5122
5147
  function Le() {
5123
- if (Nn) return Ct;
5124
- Nn = 1;
5148
+ if (xn) return Ct;
5149
+ xn = 1;
5125
5150
  const e = ne();
5126
5151
  return Ct = (r, n, o = !1) => {
5127
5152
  if (r instanceof e)
@@ -5135,10 +5160,10 @@ function Le() {
5135
5160
  }
5136
5161
  }, Ct;
5137
5162
  }
5138
- var Pt, xn;
5139
- function ym() {
5140
- if (xn) return Pt;
5141
- xn = 1;
5163
+ var Pt, Nn;
5164
+ function Am() {
5165
+ if (Nn) return Pt;
5166
+ Nn = 1;
5142
5167
  const e = Le();
5143
5168
  return Pt = (r, n) => {
5144
5169
  const o = e(r, n);
@@ -5146,7 +5171,7 @@ function ym() {
5146
5171
  }, Pt;
5147
5172
  }
5148
5173
  var Ot, zn;
5149
- function $m() {
5174
+ function wm() {
5150
5175
  if (zn) return Ot;
5151
5176
  zn = 1;
5152
5177
  const e = Le();
@@ -5155,12 +5180,12 @@ function $m() {
5155
5180
  return o ? o.version : null;
5156
5181
  }, Ot;
5157
5182
  }
5158
- var Nt, Ln;
5159
- function Sm() {
5160
- if (Ln) return Nt;
5183
+ var xt, Ln;
5184
+ function Rm() {
5185
+ if (Ln) return xt;
5161
5186
  Ln = 1;
5162
5187
  const e = ne();
5163
- return Nt = (r, n, o, s, i) => {
5188
+ return xt = (r, n, o, s, i) => {
5164
5189
  typeof o == "string" && (i = s, s = o, o = void 0);
5165
5190
  try {
5166
5191
  return new e(
@@ -5170,14 +5195,14 @@ function Sm() {
5170
5195
  } catch {
5171
5196
  return null;
5172
5197
  }
5173
- }, Nt;
5198
+ }, xt;
5174
5199
  }
5175
- var xt, Tn;
5176
- function Am() {
5177
- if (Tn) return xt;
5200
+ var Nt, Tn;
5201
+ function Im() {
5202
+ if (Tn) return Nt;
5178
5203
  Tn = 1;
5179
5204
  const e = Le();
5180
- return xt = (r, n) => {
5205
+ return Nt = (r, n) => {
5181
5206
  const o = e(r, null, !0), s = e(n, null, !0), i = o.compare(s);
5182
5207
  if (i === 0)
5183
5208
  return null;
@@ -5190,31 +5215,31 @@ function Am() {
5190
5215
  }
5191
5216
  const m = l ? "pre" : "";
5192
5217
  return o.major !== s.major ? m + "major" : o.minor !== s.minor ? m + "minor" : o.patch !== s.patch ? m + "patch" : "prerelease";
5193
- }, xt;
5218
+ }, Nt;
5194
5219
  }
5195
5220
  var zt, Zn;
5196
- function wm() {
5221
+ function km() {
5197
5222
  if (Zn) return zt;
5198
5223
  Zn = 1;
5199
5224
  const e = ne();
5200
5225
  return zt = (r, n) => new e(r, n).major, zt;
5201
5226
  }
5202
5227
  var Lt, qn;
5203
- function Rm() {
5228
+ function Cm() {
5204
5229
  if (qn) return Lt;
5205
5230
  qn = 1;
5206
5231
  const e = ne();
5207
5232
  return Lt = (r, n) => new e(r, n).minor, Lt;
5208
5233
  }
5209
5234
  var Tt, jn;
5210
- function Im() {
5235
+ function Pm() {
5211
5236
  if (jn) return Tt;
5212
5237
  jn = 1;
5213
5238
  const e = ne();
5214
5239
  return Tt = (r, n) => new e(r, n).patch, Tt;
5215
5240
  }
5216
5241
  var Zt, Dn;
5217
- function km() {
5242
+ function Om() {
5218
5243
  if (Dn) return Zt;
5219
5244
  Dn = 1;
5220
5245
  const e = Le();
@@ -5231,14 +5256,14 @@ function ce() {
5231
5256
  return qt = (r, n, o) => new e(r, o).compare(new e(n, o)), qt;
5232
5257
  }
5233
5258
  var jt, Un;
5234
- function Cm() {
5259
+ function xm() {
5235
5260
  if (Un) return jt;
5236
5261
  Un = 1;
5237
5262
  const e = ce();
5238
5263
  return jt = (r, n, o) => e(n, r, o), jt;
5239
5264
  }
5240
5265
  var Dt, Fn;
5241
- function Pm() {
5266
+ function Nm() {
5242
5267
  if (Fn) return Dt;
5243
5268
  Fn = 1;
5244
5269
  const e = ce();
@@ -5255,14 +5280,14 @@ function Fr() {
5255
5280
  }, Bt;
5256
5281
  }
5257
5282
  var Ut, Jn;
5258
- function Om() {
5283
+ function zm() {
5259
5284
  if (Jn) return Ut;
5260
5285
  Jn = 1;
5261
5286
  const e = Fr();
5262
5287
  return Ut = (r, n) => r.sort((o, s) => e(o, s, n)), Ut;
5263
5288
  }
5264
5289
  var Ft, Mn;
5265
- function Nm() {
5290
+ function Lm() {
5266
5291
  if (Mn) return Ft;
5267
5292
  Mn = 1;
5268
5293
  const e = Fr();
@@ -5341,7 +5366,7 @@ function Js() {
5341
5366
  }, Ht;
5342
5367
  }
5343
5368
  var Yt, eo;
5344
- function xm() {
5369
+ function Tm() {
5345
5370
  if (eo) return Yt;
5346
5371
  eo = 1;
5347
5372
  const e = ne(), t = Le(), { safeRe: r, t: n } = We();
@@ -5368,7 +5393,7 @@ function xm() {
5368
5393
  }, Yt;
5369
5394
  }
5370
5395
  var Kt, to;
5371
- function zm() {
5396
+ function Zm() {
5372
5397
  if (to) return Kt;
5373
5398
  to = 1;
5374
5399
  class e {
@@ -5456,13 +5481,13 @@ function ue() {
5456
5481
  z.set(K.value, K);
5457
5482
  }
5458
5483
  z.size > 1 && z.has("") && z.delete("");
5459
- const te = [...z.values()];
5460
- return n.set(S, te), te;
5484
+ const re = [...z.values()];
5485
+ return n.set(S, re), re;
5461
5486
  }
5462
5487
  intersects(b, R) {
5463
5488
  if (!(b instanceof t))
5464
5489
  throw new TypeError("a Range is required");
5465
- return this.set.some((S) => L(S, R) && b.set.some((I) => L(I, R) && S.every((A) => I.every((O) => A.intersects(O, R)))));
5490
+ return this.set.some((S) => Z(S, R) && b.set.some((I) => Z(I, R) && S.every((A) => I.every((O) => A.intersects(O, R)))));
5466
5491
  }
5467
5492
  // if ANY of the sets match ALL of its comparators, then pass
5468
5493
  test(b) {
@@ -5481,25 +5506,25 @@ function ue() {
5481
5506
  }
5482
5507
  }
5483
5508
  Qt = t;
5484
- const r = zm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5509
+ const r = Zm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5485
5510
  safeRe: u,
5486
5511
  t: c,
5487
5512
  comparatorTrimReplace: l,
5488
5513
  tildeTrimReplace: f,
5489
5514
  caretTrimReplace: m
5490
- } = We(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = ft(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", L = (_, b) => {
5515
+ } = We(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = ft(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", Z = (_, b) => {
5491
5516
  let R = !0;
5492
5517
  const S = _.slice();
5493
5518
  let I = S.pop();
5494
5519
  for (; R && S.length; )
5495
5520
  R = S.every((A) => I.intersects(A, b)), I = S.pop();
5496
5521
  return R;
5497
- }, H = (_, b) => (i("comp", _, b), _ = V(_, b), i("caret", _), _ = D(_, b), i("tildes", _), _ = N(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), x = (_) => !_ || _.toLowerCase() === "x" || _ === "*", D = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5522
+ }, H = (_, b) => (i("comp", _, b), _ = V(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5498
5523
  const R = b.loose ? u[c.TILDELOOSE] : u[c.TILDE];
5499
5524
  return _.replace(R, (S, I, A, O, q) => {
5500
5525
  i("tilde", _, S, I, A, O, q);
5501
5526
  let z;
5502
- return x(I) ? z = "" : x(A) ? z = `>=${I}.0.0 <${+I + 1}.0.0-0` : x(O) ? z = `>=${I}.${A}.0 <${I}.${+A + 1}.0-0` : q ? (i("replaceTilde pr", q), z = `>=${I}.${A}.${O}-${q} <${I}.${+A + 1}.0-0`) : z = `>=${I}.${A}.${O} <${I}.${+A + 1}.0-0`, i("tilde return", z), z;
5527
+ return N(I) ? z = "" : N(A) ? z = `>=${I}.0.0 <${+I + 1}.0.0-0` : N(O) ? z = `>=${I}.${A}.0 <${I}.${+A + 1}.0-0` : q ? (i("replaceTilde pr", q), z = `>=${I}.${A}.${O}-${q} <${I}.${+A + 1}.0-0`) : z = `>=${I}.${A}.${O} <${I}.${+A + 1}.0-0`, i("tilde return", z), z;
5503
5528
  });
5504
5529
  }, V = (_, b) => _.trim().split(/\s+/).map((R) => ee(R, b)).join(" "), ee = (_, b) => {
5505
5530
  i("caret", _, b);
@@ -5507,17 +5532,17 @@ function ue() {
5507
5532
  return _.replace(R, (I, A, O, q, z) => {
5508
5533
  i("caret", _, I, A, O, q, z);
5509
5534
  let F;
5510
- return x(A) ? F = "" : x(O) ? F = `>=${A}.0.0${S} <${+A + 1}.0.0-0` : x(q) ? A === "0" ? F = `>=${A}.${O}.0${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.0${S} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}-${z} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}-${z} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}${S} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q} <${+A + 1}.0.0-0`), i("caret return", F), F;
5535
+ return N(A) ? F = "" : N(O) ? F = `>=${A}.0.0${S} <${+A + 1}.0.0-0` : N(q) ? A === "0" ? F = `>=${A}.${O}.0${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.0${S} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}-${z} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}-${z} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}${S} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q} <${+A + 1}.0.0-0`), i("caret return", F), F;
5511
5536
  });
5512
- }, N = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Te(R, b)).join(" ")), Te = (_, b) => {
5537
+ }, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Te(R, b)).join(" ")), Te = (_, b) => {
5513
5538
  _ = _.trim();
5514
5539
  const R = b.loose ? u[c.XRANGELOOSE] : u[c.XRANGE];
5515
5540
  return _.replace(R, (S, I, A, O, q, z) => {
5516
5541
  i("xRange", _, S, I, A, O, q, z);
5517
- const F = x(A), te = F || x(O), K = te || x(q), Ze = K;
5518
- return I === "=" && Ze && (I = ""), z = b.includePrerelease ? "-0" : "", F ? I === ">" || I === "<" ? S = "<0.0.0-0" : S = "*" : I && Ze ? (te && (O = 0), q = 0, I === ">" ? (I = ">=", te ? (A = +A + 1, O = 0, q = 0) : (O = +O + 1, q = 0)) : I === "<=" && (I = "<", te ? A = +A + 1 : O = +O + 1), I === "<" && (z = "-0"), S = `${I + A}.${O}.${q}${z}`) : te ? S = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && (S = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", S), S;
5542
+ const F = N(A), re = F || N(O), K = re || N(q), Ze = K;
5543
+ return I === "=" && Ze && (I = ""), z = b.includePrerelease ? "-0" : "", F ? I === ">" || I === "<" ? S = "<0.0.0-0" : S = "*" : I && Ze ? (re && (O = 0), q = 0, I === ">" ? (I = ">=", re ? (A = +A + 1, O = 0, q = 0) : (O = +O + 1, q = 0)) : I === "<=" && (I = "<", re ? A = +A + 1 : O = +O + 1), I === "<" && (z = "-0"), S = `${I + A}.${O}.${q}${z}`) : re ? S = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && (S = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", S), S;
5519
5544
  });
5520
- }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(u[c.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(u[b.includePrerelease ? c.GTE0PRE : c.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, te, K, Ze) => (x(S) ? R = "" : x(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : x(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, x(F) ? z = "" : x(te) ? z = `<${+F + 1}.0.0-0` : x(K) ? z = `<${F}.${+te + 1}.0-0` : Ze ? z = `<=${F}.${te}.${K}-${Ze}` : _ ? z = `<${F}.${te}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5545
+ }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(u[c.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(u[b.includePrerelease ? c.GTE0PRE : c.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, re, K, Ze) => (N(S) ? R = "" : N(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : N(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, N(F) ? z = "" : N(re) ? z = `<${+F + 1}.0.0-0` : N(K) ? z = `<${F}.${+re + 1}.0-0` : Ze ? z = `<=${F}.${re}.${K}-${Ze}` : _ ? z = `<${F}.${re}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5521
5546
  for (let S = 0; S < _.length; S++)
5522
5547
  if (!_[S].test(b))
5523
5548
  return !1;
@@ -5596,14 +5621,14 @@ function vt() {
5596
5621
  }, tr;
5597
5622
  }
5598
5623
  var rr, so;
5599
- function Lm() {
5624
+ function qm() {
5600
5625
  if (so) return rr;
5601
5626
  so = 1;
5602
5627
  const e = ue();
5603
5628
  return rr = (r, n) => new e(r, n).set.map((o) => o.map((s) => s.value).join(" ").trim().split(" ")), rr;
5604
5629
  }
5605
5630
  var nr, io;
5606
- function Tm() {
5631
+ function jm() {
5607
5632
  if (io) return nr;
5608
5633
  io = 1;
5609
5634
  const e = ne(), t = ue();
@@ -5620,7 +5645,7 @@ function Tm() {
5620
5645
  }, nr;
5621
5646
  }
5622
5647
  var or, ao;
5623
- function Zm() {
5648
+ function Dm() {
5624
5649
  if (ao) return or;
5625
5650
  ao = 1;
5626
5651
  const e = ne(), t = ue();
@@ -5637,7 +5662,7 @@ function Zm() {
5637
5662
  }, or;
5638
5663
  }
5639
5664
  var sr, co;
5640
- function qm() {
5665
+ function Bm() {
5641
5666
  if (co) return sr;
5642
5667
  co = 1;
5643
5668
  const e = ne(), t = ue(), r = dt();
@@ -5673,7 +5698,7 @@ function qm() {
5673
5698
  }, sr;
5674
5699
  }
5675
5700
  var ir, uo;
5676
- function jm() {
5701
+ function Um() {
5677
5702
  if (uo) return ir;
5678
5703
  uo = 1;
5679
5704
  const e = ue();
@@ -5692,25 +5717,25 @@ function Wr() {
5692
5717
  const e = ne(), t = gt(), { ANY: r } = t, n = ue(), o = vt(), s = dt(), i = Vr(), a = Mr(), u = Jr();
5693
5718
  return ar = (l, f, m, g) => {
5694
5719
  l = new e(l, g), f = new n(f, g);
5695
- let C, v, P, L, H;
5720
+ let C, v, P, Z, H;
5696
5721
  switch (m) {
5697
5722
  case ">":
5698
- C = s, v = a, P = i, L = ">", H = ">=";
5723
+ C = s, v = a, P = i, Z = ">", H = ">=";
5699
5724
  break;
5700
5725
  case "<":
5701
- C = i, v = u, P = s, L = "<", H = "<=";
5726
+ C = i, v = u, P = s, Z = "<", H = "<=";
5702
5727
  break;
5703
5728
  default:
5704
5729
  throw new TypeError('Must provide a hilo val of "<" or ">"');
5705
5730
  }
5706
5731
  if (o(l, f, g))
5707
5732
  return !1;
5708
- for (let x = 0; x < f.set.length; ++x) {
5709
- const D = f.set[x];
5733
+ for (let N = 0; N < f.set.length; ++N) {
5734
+ const B = f.set[N];
5710
5735
  let Y = null, V = null;
5711
- if (D.forEach((ee) => {
5736
+ if (B.forEach((ee) => {
5712
5737
  ee.semver === r && (ee = new t(">=0.0.0")), Y = Y || ee, V = V || ee, C(ee.semver, Y.semver, g) ? Y = ee : P(ee.semver, V.semver, g) && (V = ee);
5713
- }), Y.operator === L || Y.operator === H || (!V.operator || V.operator === L) && v(l, V.semver))
5738
+ }), Y.operator === Z || Y.operator === H || (!V.operator || V.operator === Z) && v(l, V.semver))
5714
5739
  return !1;
5715
5740
  if (V.operator === H && P(l, V.semver))
5716
5741
  return !1;
@@ -5719,28 +5744,28 @@ function Wr() {
5719
5744
  }, ar;
5720
5745
  }
5721
5746
  var cr, po;
5722
- function Dm() {
5747
+ function Fm() {
5723
5748
  if (po) return cr;
5724
5749
  po = 1;
5725
5750
  const e = Wr();
5726
5751
  return cr = (r, n, o) => e(r, n, ">", o), cr;
5727
5752
  }
5728
5753
  var ur, ho;
5729
- function Bm() {
5754
+ function Vm() {
5730
5755
  if (ho) return ur;
5731
5756
  ho = 1;
5732
5757
  const e = Wr();
5733
5758
  return ur = (r, n, o) => e(r, n, "<", o), ur;
5734
5759
  }
5735
5760
  var lr, fo;
5736
- function Um() {
5761
+ function Jm() {
5737
5762
  if (fo) return lr;
5738
5763
  fo = 1;
5739
5764
  const e = ue();
5740
5765
  return lr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), lr;
5741
5766
  }
5742
5767
  var pr, mo;
5743
- function Fm() {
5768
+ function Mm() {
5744
5769
  if (mo) return pr;
5745
5770
  mo = 1;
5746
5771
  const e = vt(), t = ce();
@@ -5759,7 +5784,7 @@ function Fm() {
5759
5784
  }, pr;
5760
5785
  }
5761
5786
  var hr, go;
5762
- function Vm() {
5787
+ function Wm() {
5763
5788
  if (go) return hr;
5764
5789
  go = 1;
5765
5790
  const e = ue(), t = gt(), { ANY: r } = t, n = vt(), o = ce(), s = (f, m, g = {}) => {
@@ -5769,8 +5794,8 @@ function Vm() {
5769
5794
  let C = !1;
5770
5795
  e: for (const v of f.set) {
5771
5796
  for (const P of m.set) {
5772
- const L = u(v, P, g);
5773
- if (C = C || L !== null, L)
5797
+ const Z = u(v, P, g);
5798
+ if (C = C || Z !== null, Z)
5774
5799
  continue e;
5775
5800
  }
5776
5801
  if (C)
@@ -5792,46 +5817,46 @@ function Vm() {
5792
5817
  }
5793
5818
  const C = /* @__PURE__ */ new Set();
5794
5819
  let v, P;
5795
- for (const N of f)
5796
- N.operator === ">" || N.operator === ">=" ? v = c(v, N, g) : N.operator === "<" || N.operator === "<=" ? P = l(P, N, g) : C.add(N.semver);
5820
+ for (const x of f)
5821
+ x.operator === ">" || x.operator === ">=" ? v = c(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5797
5822
  if (C.size > 1)
5798
5823
  return null;
5799
- let L;
5824
+ let Z;
5800
5825
  if (v && P) {
5801
- if (L = o(v.semver, P.semver, g), L > 0)
5826
+ if (Z = o(v.semver, P.semver, g), Z > 0)
5802
5827
  return null;
5803
- if (L === 0 && (v.operator !== ">=" || P.operator !== "<="))
5828
+ if (Z === 0 && (v.operator !== ">=" || P.operator !== "<="))
5804
5829
  return null;
5805
5830
  }
5806
- for (const N of C) {
5807
- if (v && !n(N, String(v), g) || P && !n(N, String(P), g))
5831
+ for (const x of C) {
5832
+ if (v && !n(x, String(v), g) || P && !n(x, String(P), g))
5808
5833
  return null;
5809
5834
  for (const Te of m)
5810
- if (!n(N, String(Te), g))
5835
+ if (!n(x, String(Te), g))
5811
5836
  return !1;
5812
5837
  return !0;
5813
5838
  }
5814
- let H, x, D, Y, V = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
5839
+ let H, N, B, Y, V = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
5815
5840
  V && V.prerelease.length === 1 && P.operator === "<" && V.prerelease[0] === 0 && (V = !1);
5816
- for (const N of m) {
5817
- if (Y = Y || N.operator === ">" || N.operator === ">=", D = D || N.operator === "<" || N.operator === "<=", v) {
5818
- if (ee && N.semver.prerelease && N.semver.prerelease.length && N.semver.major === ee.major && N.semver.minor === ee.minor && N.semver.patch === ee.patch && (ee = !1), N.operator === ">" || N.operator === ">=") {
5819
- if (H = c(v, N, g), H === N && H !== v)
5841
+ for (const x of m) {
5842
+ if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
5843
+ if (ee && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === ee.major && x.semver.minor === ee.minor && x.semver.patch === ee.patch && (ee = !1), x.operator === ">" || x.operator === ">=") {
5844
+ if (H = c(v, x, g), H === x && H !== v)
5820
5845
  return !1;
5821
- } else if (v.operator === ">=" && !n(v.semver, String(N), g))
5846
+ } else if (v.operator === ">=" && !n(v.semver, String(x), g))
5822
5847
  return !1;
5823
5848
  }
5824
5849
  if (P) {
5825
- if (V && N.semver.prerelease && N.semver.prerelease.length && N.semver.major === V.major && N.semver.minor === V.minor && N.semver.patch === V.patch && (V = !1), N.operator === "<" || N.operator === "<=") {
5826
- if (x = l(P, N, g), x === N && x !== P)
5850
+ if (V && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === V.major && x.semver.minor === V.minor && x.semver.patch === V.patch && (V = !1), x.operator === "<" || x.operator === "<=") {
5851
+ if (N = l(P, x, g), N === x && N !== P)
5827
5852
  return !1;
5828
- } else if (P.operator === "<=" && !n(P.semver, String(N), g))
5853
+ } else if (P.operator === "<=" && !n(P.semver, String(x), g))
5829
5854
  return !1;
5830
5855
  }
5831
- if (!N.operator && (P || v) && L !== 0)
5856
+ if (!x.operator && (P || v) && Z !== 0)
5832
5857
  return !1;
5833
5858
  }
5834
- return !(v && D && !P && L !== 0 || P && Y && !v && L !== 0 || ee || V);
5859
+ return !(v && B && !P && Z !== 0 || P && Y && !v && Z !== 0 || ee || V);
5835
5860
  }, c = (f, m, g) => {
5836
5861
  if (!f)
5837
5862
  return m;
@@ -5846,10 +5871,10 @@ function Vm() {
5846
5871
  return hr = s, hr;
5847
5872
  }
5848
5873
  var fr, vo;
5849
- function Jm() {
5874
+ function Gm() {
5850
5875
  if (vo) return fr;
5851
5876
  vo = 1;
5852
- const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = ym(), i = $m(), a = Sm(), u = Am(), c = wm(), l = Rm(), f = Im(), m = km(), g = ce(), C = Cm(), v = Pm(), P = Fr(), L = Om(), H = Nm(), x = dt(), D = Vr(), Y = Fs(), V = Vs(), ee = Jr(), N = Mr(), Te = Js(), bt = xm(), _t = gt(), Et = ue(), yt = vt(), _ = Lm(), b = Tm(), R = Zm(), S = qm(), I = jm(), A = Wr(), O = Dm(), q = Bm(), z = Um(), F = Fm(), te = Vm();
5877
+ const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = Am(), i = wm(), a = Rm(), u = Im(), c = km(), l = Cm(), f = Pm(), m = Om(), g = ce(), C = xm(), v = Nm(), P = Fr(), Z = zm(), H = Lm(), N = dt(), B = Vr(), Y = Fs(), V = Vs(), ee = Jr(), x = Mr(), Te = Js(), bt = Tm(), _t = gt(), Et = ue(), yt = vt(), _ = qm(), b = jm(), R = Dm(), S = Bm(), I = Um(), A = Wr(), O = Fm(), q = Vm(), z = Jm(), F = Mm(), re = Wm();
5853
5878
  return fr = {
5854
5879
  parse: o,
5855
5880
  valid: s,
@@ -5864,14 +5889,14 @@ function Jm() {
5864
5889
  rcompare: C,
5865
5890
  compareLoose: v,
5866
5891
  compareBuild: P,
5867
- sort: L,
5892
+ sort: Z,
5868
5893
  rsort: H,
5869
- gt: x,
5870
- lt: D,
5894
+ gt: N,
5895
+ lt: B,
5871
5896
  eq: Y,
5872
5897
  neq: V,
5873
5898
  gte: ee,
5874
- lte: N,
5899
+ lte: x,
5875
5900
  cmp: Te,
5876
5901
  coerce: bt,
5877
5902
  Comparator: _t,
@@ -5887,7 +5912,7 @@ function Jm() {
5887
5912
  ltr: q,
5888
5913
  intersects: z,
5889
5914
  simplifyRange: F,
5890
- subset: te,
5915
+ subset: re,
5891
5916
  SemVer: r,
5892
5917
  re: e.re,
5893
5918
  src: e.src,
@@ -5898,21 +5923,21 @@ function Jm() {
5898
5923
  rcompareIdentifiers: n.rcompareIdentifiers
5899
5924
  }, fr;
5900
5925
  }
5901
- var Mm = Jm();
5902
- const Wm = (e, t) => Gm(t) ? t.hostnames.includes(new URL(e).hostname) : Xm(t) ? !!e.match(t.regexp) : !1, Gm = (e) => qs.safeParse(e).success, Xm = (e) => js.safeParse(e).success, Hm = (e, t) => t ? Mm.satisfies(e, t) : !0, Ym = (e, t, r) => Hm(
5926
+ var Xm = Gm();
5927
+ const Hm = (e, t) => Ym(t) ? t.hostnames.includes(new URL(e).hostname) : Km(t) ? !!e.match(t.regexp) : !1, Ym = (e) => qs.safeParse(e).success, Km = (e) => js.safeParse(e).success, Qm = (e, t) => t ? Xm.satisfies(e, t) : !0, ed = (e, t, r) => Qm(
5903
5928
  t,
5904
5929
  r.libraryVersionRange
5905
- ) && Wm(e, r.matcher), Km = (e, t) => e.siteRegistrations.filter(
5906
- (r) => Ym(t, Zs(), r)
5907
- ), Qm = (e, t) => Km(e, t).flatMap(
5930
+ ) && Hm(e, r.matcher), td = (e, t) => e.siteRegistrations.filter(
5931
+ (r) => ed(t, Zs(), r)
5932
+ ), rd = (e, t) => td(e, t).flatMap(
5908
5933
  ({ parsers: o, name: s }) => o.filter(
5909
- (i) => bm(i) && i in wn
5934
+ (i) => ym(i) && i in wn
5910
5935
  ).map((i) => ({ parser: wn[i], parserType: i, name: s }))
5911
- ), ed = (e, t) => {
5912
- const r = Qm(e, t.url);
5936
+ ), nd = (e, t) => {
5937
+ const r = rd(e, t.url);
5913
5938
  for (const { parser: n, parserType: o, name: s } of r) {
5914
5939
  const i = n(t);
5915
- if (Nr(i) || Op(i) || Np(i))
5940
+ if (xr(i) || Op(i) || xp(i))
5916
5941
  return {
5917
5942
  ...i,
5918
5943
  meta: {
@@ -5927,111 +5952,111 @@ const Wm = (e, t) => Gm(t) ? t.hostnames.includes(new URL(e).hostname) : Xm(t) ?
5927
5952
  ...hs(),
5928
5953
  meta: {
5929
5954
  parserName: null,
5930
- parserType: T.NoResourceFound,
5955
+ parserType: L.NoResourceFound,
5931
5956
  uri: t.url,
5932
5957
  referrer: t.url
5933
5958
  }
5934
5959
  };
5935
- }, kd = (e, t) => {
5936
- const r = ed(e, t), { uri: n, ...o } = r.meta;
5960
+ }, Od = (e, t) => {
5961
+ const r = nd(e, t), { uri: n, ...o } = r.meta;
5937
5962
  return {
5938
5963
  ...r,
5939
5964
  meta: o
5940
5965
  };
5941
- }, td = (e, t) => {
5966
+ }, od = (e, t) => {
5942
5967
  switch (t) {
5943
5968
  case ye.CA:
5944
5969
  return new URL(`https://${e}.rl.ca.talis.com`);
5945
5970
  default:
5946
5971
  return new URL(`https://${e}.rl.talis.com`);
5947
5972
  }
5948
- }, Cd = (e, t) => {
5949
- const r = td(e, t);
5973
+ }, xd = (e, t) => {
5974
+ const r = od(e, t);
5950
5975
  return new URL("/ui/forms/bookmarklet.html", r);
5951
- }, Pd = (e, t, r) => {
5976
+ }, Nd = (e, t, r) => {
5952
5977
  const n = ll(t);
5953
5978
  n.append("fast", "true"), n.append("breakout", "true"), r && (r.parserName && n.append("targetTitle", r.parserName), n.append("referrer", r.referrer));
5954
5979
  const o = new URL(e.toString());
5955
5980
  return o.search = n.toString(), o;
5956
5981
  };
5957
5982
  export {
5958
- rd as BookGenresSchema,
5983
+ sd as BookGenresSchema,
5959
5984
  ml as CustomerListSchema,
5960
5985
  Yo as CustomerSchema,
5961
5986
  ts as DirectLinkOnlyResultSchema,
5962
5987
  y as Genre,
5963
5988
  qs as HostnamesMatcherSchema,
5964
- nd as JournalGenresSchema,
5989
+ id as JournalGenresSchema,
5965
5990
  Go as NON_OPENURL_PROPERTIES,
5966
5991
  Mo as NonOpenUrlPropertiesSchema,
5967
5992
  es as NothingParsedResultSchema,
5968
5993
  il as OPENURL_KEYS,
5969
- id as OpenUrlAudioVisualResourceSchema,
5970
- od as OpenUrlBookResourceSchema,
5971
- cd as OpenUrlDocumentResourceSchema,
5972
- ad as OpenUrlImageResourceSchema,
5973
- sd as OpenUrlJournalResourceSchema,
5994
+ ud as OpenUrlAudioVisualResourceSchema,
5995
+ ad as OpenUrlBookResourceSchema,
5996
+ pd as OpenUrlDocumentResourceSchema,
5997
+ ld as OpenUrlImageResourceSchema,
5998
+ cd as OpenUrlJournalResourceSchema,
5974
5999
  be as OpenUrlResourceSchema,
5975
6000
  rs as OpenUrlResultSchema,
5976
- ud as OpenUrlWebpageResourceSchema,
6001
+ hd as OpenUrlWebpageResourceSchema,
5977
6002
  wn as PARSERS,
5978
- vm as ParserRegistrySchema,
5979
- T as ParserType,
6003
+ Em as ParserRegistrySchema,
6004
+ L as ParserType,
5980
6005
  Ko as ParsingMetadataSchema,
5981
6006
  Qo as ParsingMetadataV2Schema,
5982
6007
  fl as ParsingRequestSchema,
5983
6008
  _l as ParsingResponseSchema,
5984
6009
  El as ParsingResponseV2Schema,
5985
6010
  Ir as ParsingResultSchema,
5986
- Sd as REGISTRY,
6011
+ Rd as REGISTRY,
5987
6012
  js as RegExpMatcherSchema,
5988
- Em as ResourceDataSchema,
6013
+ Sm as ResourceDataSchema,
5989
6014
  nl as ResourceSchema,
5990
6015
  Bs as SiteRegistrationSchema,
5991
6016
  os as SummonSearchResultSchema,
5992
6017
  ye as TenantRegion,
5993
- pd as TenantRegistrySchema,
6018
+ md as TenantRegistrySchema,
5994
6019
  Ho as TenantSchema,
5995
6020
  Ds as UrlMatcherSchema,
5996
6021
  ns as Z3988SearchResultSchema,
5997
- md as convertCustomerListToTenantRegistry,
6022
+ vd as convertCustomerListToTenantRegistry,
5998
6023
  Ae as createAudioVisual,
5999
6024
  Q as createBook,
6000
6025
  sl as createDocument,
6001
6026
  ol as createImage,
6002
- B as createJournal,
6027
+ D as createJournal,
6003
6028
  Rr as createWebpage,
6004
- dd as directLinkOnly,
6029
+ bd as directLinkOnly,
6005
6030
  pl as fromOpenUrl,
6006
- Cd as getBaseBookmarkingUrl,
6031
+ xd as getBaseBookmarkingUrl,
6007
6032
  Zs as getLibraryVersion,
6008
6033
  dl as isCustomer,
6009
6034
  gl as isCustomerList,
6010
- yd as isDirectLinkOnlyResult,
6011
- ld as isGenre,
6012
- $d as isNothingParsedResult,
6013
- Nr as isOpenUrlResult,
6014
- Ad as isParserRegistry,
6015
- bm as isParserType,
6016
- _d as isParsingMetadata,
6017
- Ed as isParsingMetadataV2,
6018
- hd as isParsingRequest,
6019
- vd as isParsingResponse,
6020
- bd as isParsingResponseV2,
6021
- gd as isParsingResult,
6022
- Id as isResourceData,
6023
- wd as isSiteRegistration,
6024
- Np as isSummonSearchResult,
6035
+ Ad as isDirectLinkOnlyResult,
6036
+ fd as isGenre,
6037
+ wd as isNothingParsedResult,
6038
+ xr as isOpenUrlResult,
6039
+ Id as isParserRegistry,
6040
+ ym as isParserType,
6041
+ $d as isParsingMetadata,
6042
+ Sd as isParsingMetadataV2,
6043
+ dd as isParsingRequest,
6044
+ Ed as isParsingResponse,
6045
+ yd as isParsingResponseV2,
6046
+ _d as isParsingResult,
6047
+ Pd as isResourceData,
6048
+ kd as isSiteRegistration,
6049
+ xp as isSummonSearchResult,
6025
6050
  vl as isTenant,
6026
- fd as isTenantRegion,
6027
- Rd as isUrlMatcher,
6051
+ gd as isTenantRegion,
6052
+ Cd as isUrlMatcher,
6028
6053
  Op as isZ3988SearchResult,
6029
- Z as nothingParsed,
6054
+ T as nothingParsed,
6030
6055
  w as openUrlResource,
6031
- ed as parseResource,
6032
- kd as parseResourceV2,
6056
+ nd as parseResource,
6057
+ Od as parseResourceV2,
6033
6058
  $l as summonSearchResult,
6034
- Pd as toBookmarkingWorkflowUrl,
6059
+ Nd as toBookmarkingWorkflowUrl,
6035
6060
  ll as toOpenUrl,
6036
6061
  yl as z3988SearchResult
6037
6062
  };