@talisdev/bibliographic-resource-parsers-lib 5.45.0 → 5.45.2
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.
|
@@ -4252,28 +4252,32 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4252
4252
|
}, Ju = ({ lcn: e, title: t }) => ({
|
|
4253
4253
|
bibid: e,
|
|
4254
4254
|
title: t
|
|
4255
|
-
}), Yu = (e) => {
|
|
4255
|
+
}), Yu = /_ALMA(_|$)/, Xu = (e) => {
|
|
4256
4256
|
let t = e.mainEntity.creator;
|
|
4257
4257
|
if (t) return typeof t == "string" ? [t] : Array.isArray(t) ? t.map((e) => Wu(e.name)).filter((e) => !!e) : [Wu(t.name)].filter((e) => !!e);
|
|
4258
|
-
},
|
|
4258
|
+
}, Zu = (e) => {
|
|
4259
4259
|
let t = e.mainEntity.issn;
|
|
4260
4260
|
return t ? typeof t == "string" ? [t] : t : [];
|
|
4261
|
-
},
|
|
4261
|
+
}, Qu = (e) => {
|
|
4262
4262
|
let t = e.mainEntity.datePublished;
|
|
4263
4263
|
if (t) return t.replace(/-$/, "") || void 0;
|
|
4264
|
-
},
|
|
4265
|
-
let n =
|
|
4264
|
+
}, $u = (e) => e.replace(/[.,;]+$/, "").trim(), ed = (e, t) => {
|
|
4265
|
+
let n = $u(e), r = $u(t);
|
|
4266
4266
|
return n.startsWith(r) || r.startsWith(n);
|
|
4267
|
-
},
|
|
4267
|
+
}, td = (e) => {
|
|
4268
4268
|
let t = [];
|
|
4269
|
-
for (let n of e) n && (t.some((e) =>
|
|
4269
|
+
for (let n of e) n && (t.some((e) => ed(e, n)) || t.push(n));
|
|
4270
4270
|
return t.length > 0 ? t : void 0;
|
|
4271
|
-
}
|
|
4272
|
-
|
|
4271
|
+
};
|
|
4272
|
+
function nd(e) {
|
|
4273
|
+
if (e) return Yu.test(e) ? e.replace(Yu, "") : e.startsWith("alma") ? e.replace("alma", "") : e;
|
|
4274
|
+
}
|
|
4275
|
+
var rd = (e, t) => {
|
|
4276
|
+
let n = td([...(e && Xu(e)) ?? [], ...t.authors ?? []]), r = Ku(...t.eissns ?? []), i = Ku(e?.mainEntity.isbn ? Rs(e.mainEntity.isbn) : void 0, ...t.isbns ?? []), a = Ku(...e ? Zu(e) : [], ...t.issns ?? []), [o, s] = e?.mainEntity.pagination?.split("-") ?? [];
|
|
4273
4277
|
return {
|
|
4274
4278
|
authors: n,
|
|
4275
4279
|
btitle: e?.mainEntity.isPartOf?.name ?? t.jtitle,
|
|
4276
|
-
date: t.date ?? (e ?
|
|
4280
|
+
date: t.date ?? (e ? Qu(e) : void 0),
|
|
4277
4281
|
doi: Wu(t.dois),
|
|
4278
4282
|
edition: e?.mainEntity.edition ?? t.edition,
|
|
4279
4283
|
eissn: Wu(r),
|
|
@@ -4282,25 +4286,25 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4282
4286
|
issn: Wu(a),
|
|
4283
4287
|
issue: e?.mainEntity.issueNumber,
|
|
4284
4288
|
jtitle: t.jtitle,
|
|
4285
|
-
lcn: t.lcn ?? e?.identifier.value,
|
|
4289
|
+
lcn: nd(t.lcn ?? e?.identifier.value),
|
|
4286
4290
|
publisher: t.publisher ?? Gu(e?.mainEntity.publisher),
|
|
4287
4291
|
spage: o,
|
|
4288
4292
|
title: e?.name ?? t.title,
|
|
4289
4293
|
volume: e?.mainEntity.volumeNumber
|
|
4290
4294
|
};
|
|
4291
|
-
},
|
|
4295
|
+
}, id = j({
|
|
4292
4296
|
"@type": N("Organization"),
|
|
4293
4297
|
name: M([O(), A(O())])
|
|
4294
|
-
}),
|
|
4298
|
+
}), ad = j({
|
|
4295
4299
|
"@type": N("Person"),
|
|
4296
4300
|
name: M([O(), A(O())])
|
|
4297
|
-
}),
|
|
4301
|
+
}), od = j({
|
|
4298
4302
|
"@type": M([O(), A(O())]),
|
|
4299
4303
|
"@id": O().optional(),
|
|
4300
4304
|
issn: O().optional(),
|
|
4301
4305
|
name: O().optional(),
|
|
4302
4306
|
volume: O().optional()
|
|
4303
|
-
}),
|
|
4307
|
+
}), sd = W.extend({
|
|
4304
4308
|
identifier: j({
|
|
4305
4309
|
"@type": O(),
|
|
4306
4310
|
propertyID: O(),
|
|
@@ -4312,8 +4316,8 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4312
4316
|
bookFormat: P(O()),
|
|
4313
4317
|
creator: P(M([
|
|
4314
4318
|
O(),
|
|
4315
|
-
|
|
4316
|
-
A(
|
|
4319
|
+
ad,
|
|
4320
|
+
A(ad)
|
|
4317
4321
|
])),
|
|
4318
4322
|
datePublished: P(O()),
|
|
4319
4323
|
description: P(M([O(), A(O())])),
|
|
@@ -4321,23 +4325,23 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4321
4325
|
inLanguage: P(O()),
|
|
4322
4326
|
isbn: P(O()),
|
|
4323
4327
|
issn: P(M([O(), A(O())])),
|
|
4324
|
-
isPartOf: P(
|
|
4328
|
+
isPartOf: P(od),
|
|
4325
4329
|
issueNumber: P(O()),
|
|
4326
4330
|
pagination: P(O()),
|
|
4327
4331
|
publisher: P(M([
|
|
4328
4332
|
O(),
|
|
4329
|
-
|
|
4330
|
-
A(
|
|
4333
|
+
id,
|
|
4334
|
+
A(id)
|
|
4331
4335
|
])),
|
|
4332
4336
|
volumeNumber: P(O())
|
|
4333
4337
|
}),
|
|
4334
4338
|
name: O()
|
|
4335
|
-
}),
|
|
4339
|
+
}), cd = (e) => {
|
|
4336
4340
|
let t = Zs(e);
|
|
4337
4341
|
if (!t) return null;
|
|
4338
|
-
let n = Qs(t), r =
|
|
4342
|
+
let n = Qs(t), r = sd.safeParse(n);
|
|
4339
4343
|
return r.success ? r.data : null;
|
|
4340
|
-
},
|
|
4344
|
+
}, ld = (e) => L(F.Article, {
|
|
4341
4345
|
...Ju(e),
|
|
4342
4346
|
au: e.authors,
|
|
4343
4347
|
doi: e.doi,
|
|
@@ -4349,7 +4353,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4349
4353
|
pub: e.publisher,
|
|
4350
4354
|
spage: e.spage,
|
|
4351
4355
|
volume: e.volume
|
|
4352
|
-
}),
|
|
4356
|
+
}), ud = (e) => I(F.Book, {
|
|
4353
4357
|
...Ju(e),
|
|
4354
4358
|
au: e.authors,
|
|
4355
4359
|
date: e.date,
|
|
@@ -4359,7 +4363,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4359
4363
|
isbn: e.isbn,
|
|
4360
4364
|
pub: e.publisher,
|
|
4361
4365
|
spage: e.spage
|
|
4362
|
-
}),
|
|
4366
|
+
}), dd = (e) => I(F.Bookitem, {
|
|
4363
4367
|
bibid: e.lcn,
|
|
4364
4368
|
atitle: e.title,
|
|
4365
4369
|
btitle: e.btitle,
|
|
@@ -4370,69 +4374,69 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4370
4374
|
isbn: e.isbn,
|
|
4371
4375
|
pub: e.publisher,
|
|
4372
4376
|
spage: e.spage
|
|
4373
|
-
}),
|
|
4377
|
+
}), fd = (e) => I(F.Conference, {
|
|
4374
4378
|
...Ju(e),
|
|
4375
4379
|
au: e.authors,
|
|
4376
4380
|
date: e.date,
|
|
4377
4381
|
doi: e.doi,
|
|
4378
4382
|
isbn: e.isbn,
|
|
4379
4383
|
pub: e.publisher
|
|
4380
|
-
}),
|
|
4384
|
+
}), pd = (e) => go({
|
|
4381
4385
|
...Ju(e),
|
|
4382
4386
|
au: e.authors,
|
|
4383
4387
|
date: e.date,
|
|
4384
4388
|
pub: e.publisher
|
|
4385
|
-
}),
|
|
4389
|
+
}), md = (e) => L(F.Journal, {
|
|
4386
4390
|
...Ju(e),
|
|
4387
4391
|
date: e.date,
|
|
4388
4392
|
doi: e.doi,
|
|
4389
4393
|
eissn: e.eissn,
|
|
4390
4394
|
issn: e.issn,
|
|
4391
4395
|
pub: e.publisher
|
|
4392
|
-
}),
|
|
4396
|
+
}), hd = (e) => R({
|
|
4393
4397
|
...Ju(e),
|
|
4394
4398
|
au: e.authors,
|
|
4395
4399
|
date: e.date,
|
|
4396
4400
|
pub: e.publisher
|
|
4397
|
-
}),
|
|
4401
|
+
}), gd = (e) => R({
|
|
4398
4402
|
...Ju(e),
|
|
4399
4403
|
au: e.authors,
|
|
4400
4404
|
date: e.date,
|
|
4401
4405
|
pub: e.publisher
|
|
4402
4406
|
}), q = /* @__PURE__ */ function(e) {
|
|
4403
4407
|
return e.Article = "Article", e.Audio = "Audio", e.Book = "Book", e.BookChapter = "BookChapter", e.Conference = "Conference", e.Dissertation = "Dissertation", e.Journal = "Journal", e.Video = "Video", e;
|
|
4404
|
-
}({}),
|
|
4405
|
-
let r =
|
|
4408
|
+
}({}), _d = (e, t) => ({ document: n }) => {
|
|
4409
|
+
let r = cd(n), i = rd(r, e(n));
|
|
4406
4410
|
switch (t(n, r)) {
|
|
4407
|
-
case q.Article: return B(
|
|
4408
|
-
case q.Book: return B(
|
|
4409
|
-
case q.BookChapter: return B(
|
|
4410
|
-
case q.Conference: return B(
|
|
4411
|
-
case q.Dissertation: return B(
|
|
4412
|
-
case q.Journal: return B(
|
|
4413
|
-
case q.Audio: return B(
|
|
4414
|
-
case q.Video: return B(
|
|
4411
|
+
case q.Article: return B(ld(i));
|
|
4412
|
+
case q.Book: return B(ud(i));
|
|
4413
|
+
case q.BookChapter: return B(dd(i));
|
|
4414
|
+
case q.Conference: return B(fd(i));
|
|
4415
|
+
case q.Dissertation: return B(pd(i));
|
|
4416
|
+
case q.Journal: return B(md(i));
|
|
4417
|
+
case q.Audio: return B(gd(i));
|
|
4418
|
+
case q.Video: return B(hd(i));
|
|
4415
4419
|
default: return z();
|
|
4416
4420
|
}
|
|
4417
|
-
},
|
|
4421
|
+
}, vd = (e) => `*:has([data-details-label="${e}"]) + .item-details-element-container prm-highlight`, yd = (e, t) => {
|
|
4418
4422
|
for (let n of t) {
|
|
4419
4423
|
let t = e.querySelector(n)?.textContent.trim();
|
|
4420
4424
|
if (t) return t;
|
|
4421
4425
|
}
|
|
4422
|
-
},
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
]),
|
|
4427
|
-
authors:
|
|
4428
|
-
title:
|
|
4429
|
-
publisher:
|
|
4430
|
-
creationDate:
|
|
4431
|
-
edition:
|
|
4432
|
-
isPartOf:
|
|
4433
|
-
identifierValues:
|
|
4434
|
-
lcn:
|
|
4435
|
-
}),
|
|
4426
|
+
}, bd = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, xd = (e) => Array.from(e.querySelectorAll(vd("identifier"))).map((e) => e.textContent).filter((e) => !!e), Sd = (e) => Array.from(e.querySelectorAll(vd("creator"))).filter((e) => !!e.textContent && e.parentElement !== null && e.parentElement.getAttribute("aria-hidden") !== "true").map((e) => e.textContent.trim()), Cd = (e, t) => e.querySelector(vd(t))?.textContent.trim(), wd = (e) => Cd(e, "mms") ?? yd(e, [
|
|
4427
|
+
bd("MMS ID"),
|
|
4428
|
+
bd("ID MMS"),
|
|
4429
|
+
bd("Record ID")
|
|
4430
|
+
]), Td = (e) => qu({
|
|
4431
|
+
authors: Sd(e),
|
|
4432
|
+
title: Cd(e, "title"),
|
|
4433
|
+
publisher: Cd(e, "publisher"),
|
|
4434
|
+
creationDate: Cd(e, "creationdate"),
|
|
4435
|
+
edition: Cd(e, "edition"),
|
|
4436
|
+
isPartOf: Cd(e, "ispartof"),
|
|
4437
|
+
identifierValues: xd(e),
|
|
4438
|
+
lcn: wd(e)
|
|
4439
|
+
}), Ed = {
|
|
4436
4440
|
Article: q.Article,
|
|
4437
4441
|
Book: q.Book,
|
|
4438
4442
|
"Book Chapter": q.BookChapter,
|
|
@@ -4443,14 +4447,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4443
4447
|
CreativeWork: q.Audio,
|
|
4444
4448
|
Movie: q.Video,
|
|
4445
4449
|
Video: q.Video
|
|
4446
|
-
},
|
|
4450
|
+
}, Dd = _d(Td, (e, t) => {
|
|
4447
4451
|
let n = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
|
|
4448
|
-
return n ?
|
|
4449
|
-
}),
|
|
4452
|
+
return n ? Ed[n] : void 0;
|
|
4453
|
+
}), Od = (e) => {
|
|
4450
4454
|
let t = e.querySelectorAll("[id=\"Info\"] > p"), n = Array.from(t).find((e) => e.textContent.includes("Document Type"))?.textContent, r = V(e, "name", "DC.identifier");
|
|
4451
4455
|
if (r?.startsWith("info:doi/") || n?.includes("Article")) return U.Article;
|
|
4452
4456
|
if (r?.startsWith("urn:issn:")) return U.Journal;
|
|
4453
|
-
},
|
|
4457
|
+
}, kd = (e) => {
|
|
4454
4458
|
let [t, n, r, i] = V(e, "name", "DCTERMS.bibliographicCitation")?.split(",") ?? [];
|
|
4455
4459
|
return {
|
|
4456
4460
|
journalTitle: t,
|
|
@@ -4458,22 +4462,22 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4458
4462
|
issue: r,
|
|
4459
4463
|
pages: i
|
|
4460
4464
|
};
|
|
4461
|
-
},
|
|
4465
|
+
}, Ad = (e) => {
|
|
4462
4466
|
let t = V(e, "name", "DC.identifier");
|
|
4463
4467
|
return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
|
|
4464
|
-
},
|
|
4468
|
+
}, jd = (e) => e.evaluate("//*[@id=\"altLayoutPublisherLogo\"]/p/a[1]", e, null, XPathResult.STRING_TYPE, null).stringValue, Md = (e) => {
|
|
4465
4469
|
let [t, n] = e ? e.trim().split("-") : [void 0, void 0];
|
|
4466
4470
|
return {
|
|
4467
4471
|
spage: t,
|
|
4468
4472
|
epage: n?.replace(/\(\d+\)/, "").trim()
|
|
4469
4473
|
};
|
|
4470
|
-
},
|
|
4474
|
+
}, Nd = (e) => {
|
|
4471
4475
|
let t = V(e, "name", "DCTERMS.issued");
|
|
4472
4476
|
if (!t) return;
|
|
4473
4477
|
let n = /\d{4}/.exec(t);
|
|
4474
4478
|
return n ? n[0] : void 0;
|
|
4475
|
-
},
|
|
4476
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
4479
|
+
}, Pd = (e) => {
|
|
4480
|
+
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = Nd(e), i = kd(e), a = i.journalTitle?.trim(), o = i.volume?.trim(), s = i.issue?.trim(), c = i.pages ? Md(i.pages) : void 0, l = c?.spage, u = c?.epage, d = H(e, "name", "DC.creator"), f = Ad(e);
|
|
4477
4481
|
return L(F.Article, {
|
|
4478
4482
|
au: d,
|
|
4479
4483
|
jtitle: a,
|
|
@@ -4486,72 +4490,72 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4486
4490
|
atitle: t,
|
|
4487
4491
|
volume: o
|
|
4488
4492
|
});
|
|
4489
|
-
},
|
|
4490
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
4493
|
+
}, Fd = (e) => {
|
|
4494
|
+
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = jd(e);
|
|
4491
4495
|
return L(F.Journal, {
|
|
4492
4496
|
issn: r,
|
|
4493
4497
|
title: t,
|
|
4494
4498
|
pub: n
|
|
4495
4499
|
});
|
|
4496
|
-
},
|
|
4497
|
-
switch (
|
|
4498
|
-
case U.Article: return B(
|
|
4499
|
-
case U.Journal: return B(
|
|
4500
|
+
}, Id = ({ document: e }) => {
|
|
4501
|
+
switch (Od(e)) {
|
|
4502
|
+
case U.Article: return B(Pd(e));
|
|
4503
|
+
case U.Journal: return B(Fd(e));
|
|
4500
4504
|
default: return z();
|
|
4501
4505
|
}
|
|
4502
|
-
},
|
|
4503
|
-
let t = e.filter(
|
|
4506
|
+
}, Ld = /^\d{4}-\d{3}[\dX]$/i, Rd = (e) => Ld.test(e), zd = (e) => {
|
|
4507
|
+
let t = e.filter(Rd);
|
|
4504
4508
|
return t.length ? t : void 0;
|
|
4505
|
-
},
|
|
4509
|
+
}, Bd = (e) => {
|
|
4506
4510
|
let t = H(e, "name", "citation_author");
|
|
4507
4511
|
return t.length ? t : void 0;
|
|
4508
|
-
},
|
|
4512
|
+
}, Vd = (e) => V(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], Hd = (e) => V(e, "name", "citation_doi"), Ud = (e) => {
|
|
4509
4513
|
let t = H(e, "name", "citation_isbn");
|
|
4510
4514
|
return t.length ? t.join(",") : void 0;
|
|
4511
|
-
},
|
|
4512
|
-
atitle:
|
|
4513
|
-
au:
|
|
4514
|
-
date:
|
|
4515
|
-
doi:
|
|
4516
|
-
issn:
|
|
4517
|
-
issue:
|
|
4518
|
-
jtitle:
|
|
4519
|
-
pub:
|
|
4520
|
-
volume:
|
|
4521
|
-
spage:
|
|
4522
|
-
epage:
|
|
4523
|
-
}),
|
|
4524
|
-
atitle:
|
|
4525
|
-
au:
|
|
4526
|
-
btitle:
|
|
4527
|
-
date:
|
|
4528
|
-
isbn:
|
|
4529
|
-
pub:
|
|
4530
|
-
spage:
|
|
4531
|
-
epage:
|
|
4532
|
-
}),
|
|
4533
|
-
title:
|
|
4534
|
-
au:
|
|
4535
|
-
date:
|
|
4536
|
-
pub:
|
|
4537
|
-
spage:
|
|
4538
|
-
epage:
|
|
4539
|
-
}),
|
|
4515
|
+
}, Wd = (e) => zd(H(e, "name", "citation_issn")), Gd = (e) => V(e, "name", "citation_journal_title"), Kd = (e) => V(e, "name", "citation_publisher"), qd = (e) => V(e, "name", "citation_title"), Jd = (e) => V(e, "name", "citation_doi"), Yd = (e) => V(e, "name", "citation_firstpage"), Xd = (e) => V(e, "name", "citation_lastpage"), Zd = (e) => V(e, "name", "citation_issue"), Qd = (e) => V(e, "name", "citation_volume"), $d = (e) => L(F.Article, {
|
|
4516
|
+
atitle: qd(e),
|
|
4517
|
+
au: Bd(e),
|
|
4518
|
+
date: Vd(e),
|
|
4519
|
+
doi: Hd(e),
|
|
4520
|
+
issn: Wd(e)?.[0],
|
|
4521
|
+
issue: Zd(e),
|
|
4522
|
+
jtitle: Gd(e),
|
|
4523
|
+
pub: Kd(e),
|
|
4524
|
+
volume: Qd(e),
|
|
4525
|
+
spage: Yd(e),
|
|
4526
|
+
epage: Xd(e)
|
|
4527
|
+
}), ef = (e) => I(F.Bookitem, {
|
|
4528
|
+
atitle: qd(e),
|
|
4529
|
+
au: Bd(e),
|
|
4530
|
+
btitle: Gd(e),
|
|
4531
|
+
date: Vd(e),
|
|
4532
|
+
isbn: Ud(e),
|
|
4533
|
+
pub: Kd(e),
|
|
4534
|
+
spage: Yd(e),
|
|
4535
|
+
epage: Xd(e)
|
|
4536
|
+
}), tf = (e) => go({
|
|
4537
|
+
title: qd(e),
|
|
4538
|
+
au: Bd(e),
|
|
4539
|
+
date: Vd(e),
|
|
4540
|
+
pub: Kd(e),
|
|
4541
|
+
spage: Yd(e),
|
|
4542
|
+
epage: Xd(e)
|
|
4543
|
+
}), nf = (e) => !!e.isbn, rf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !nf(e) && !!e.journalTitle, af = (e) => !!e.title, of = (e) => {
|
|
4540
4544
|
let t = {
|
|
4541
|
-
type:
|
|
4542
|
-
isbn:
|
|
4543
|
-
issn:
|
|
4544
|
-
journalTitle:
|
|
4545
|
-
title:
|
|
4545
|
+
type: Jd(e),
|
|
4546
|
+
isbn: Ud(e),
|
|
4547
|
+
issn: Wd(e),
|
|
4548
|
+
journalTitle: Gd(e),
|
|
4549
|
+
title: qd(e)
|
|
4546
4550
|
};
|
|
4547
|
-
return
|
|
4548
|
-
},
|
|
4549
|
-
let n =
|
|
4551
|
+
return nf(t) ? ef(e) : rf(t) ? $d(e) : af(t) ? tf(e) : null;
|
|
4552
|
+
}, sf = ({ url: e, document: t }) => {
|
|
4553
|
+
let n = of(t);
|
|
4550
4554
|
return n ? B({
|
|
4551
4555
|
...n,
|
|
4552
4556
|
uri: e
|
|
4553
4557
|
}) : z();
|
|
4554
|
-
},
|
|
4558
|
+
}, cf = j({
|
|
4555
4559
|
"@content": O(),
|
|
4556
4560
|
datePublished: O().optional(),
|
|
4557
4561
|
mainEntity: j({
|
|
@@ -4564,20 +4568,20 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4564
4568
|
}).optional(),
|
|
4565
4569
|
isbn: O().optional()
|
|
4566
4570
|
})
|
|
4567
|
-
}),
|
|
4571
|
+
}), lf = (e) => cf.safeParse(e).success, uf = (e) => {
|
|
4568
4572
|
let t = e.textContent;
|
|
4569
4573
|
if (!t) return null;
|
|
4570
4574
|
try {
|
|
4571
4575
|
let e = JSON.parse(t);
|
|
4572
|
-
if (
|
|
4576
|
+
if (lf(e)) return e;
|
|
4573
4577
|
} catch {
|
|
4574
4578
|
return null;
|
|
4575
4579
|
}
|
|
4576
4580
|
return null;
|
|
4577
|
-
},
|
|
4581
|
+
}, df = ({ document: e }) => {
|
|
4578
4582
|
let t = Zs(e);
|
|
4579
4583
|
if (!t) return z();
|
|
4580
|
-
let n =
|
|
4584
|
+
let n = uf(t);
|
|
4581
4585
|
if (!n) return z();
|
|
4582
4586
|
let r = n.mainEntity.type, i = n.mainEntity.author?.map((e) => e.name), a = n.datePublished?.substring(0, 4), o = n.mainEntity.name, s = n.mainEntity.isbn, c = n.mainEntity.publisher?.name;
|
|
4583
4587
|
switch (r) {
|
|
@@ -4590,17 +4594,17 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4590
4594
|
}));
|
|
4591
4595
|
default: return z();
|
|
4592
4596
|
}
|
|
4593
|
-
},
|
|
4597
|
+
}, ff = W.extend({
|
|
4594
4598
|
"@type": O().optional(),
|
|
4595
4599
|
name: O().optional(),
|
|
4596
4600
|
copyrightYear: ha().optional(),
|
|
4597
4601
|
author: A(j({ name: O() })).optional(),
|
|
4598
4602
|
publisher: A(j({ name: O() })).optional()
|
|
4599
|
-
}),
|
|
4603
|
+
}), pf = (e) => ff.safeParse(e).success, mf = ({ document: e, url: t }) => {
|
|
4600
4604
|
let n = Zs(e);
|
|
4601
4605
|
if (!n) return z();
|
|
4602
4606
|
let r = Qs(n);
|
|
4603
|
-
if (!r || !
|
|
4607
|
+
if (!r || !pf(r)) return z();
|
|
4604
4608
|
let i = r["@type"], a = r.author?.map((e) => e.name), o = r.copyrightYear?.toString() ?? V(e, "property", "og:book:release_date"), s = r.name, c = ru(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
|
|
4605
4609
|
switch (i) {
|
|
4606
4610
|
case "Book": return B(I(F.Book, {
|
|
@@ -4613,14 +4617,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4613
4617
|
}));
|
|
4614
4618
|
default: return z();
|
|
4615
4619
|
}
|
|
4616
|
-
},
|
|
4620
|
+
}, hf = (e) => {
|
|
4617
4621
|
let t = Array.from(e.querySelectorAll("a[rel=author]")).map((e) => e.textContent.trim()).filter(Boolean);
|
|
4618
4622
|
return t.length ? t : void 0;
|
|
4619
|
-
},
|
|
4623
|
+
}, gf = (e) => {
|
|
4620
4624
|
let t = Array.from(e.querySelectorAll("strong")).filter((e) => e.textContent.startsWith("ISBN")).map((e) => e.nextElementSibling?.textContent.trim());
|
|
4621
4625
|
if (t.length !== 0) return t[0]?.replace(/\s+/, ",");
|
|
4622
|
-
},
|
|
4623
|
-
let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r =
|
|
4626
|
+
}, _f = ({ url: e, document: t }) => {
|
|
4627
|
+
let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r = hf(t), i = V(t, "property", "article:published_time"), a = gf(t);
|
|
4624
4628
|
return B(I(F.Book, {
|
|
4625
4629
|
au: r,
|
|
4626
4630
|
date: i?.substring(0, 4),
|
|
@@ -4629,21 +4633,21 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4629
4633
|
title: n,
|
|
4630
4634
|
uri: e
|
|
4631
4635
|
}));
|
|
4632
|
-
},
|
|
4633
|
-
switch (
|
|
4634
|
-
case U.Chapter: return B(
|
|
4635
|
-
case U.Book: return B(
|
|
4636
|
-
case U.Article: return B(
|
|
4637
|
-
case U.Journal: return B(
|
|
4636
|
+
}, vf = ({ document: e, url: t }) => {
|
|
4637
|
+
switch (bf(t)) {
|
|
4638
|
+
case U.Chapter: return B(Tf(e));
|
|
4639
|
+
case U.Book: return B(Ef(e));
|
|
4640
|
+
case U.Article: return B(xf(e));
|
|
4641
|
+
case U.Journal: return B(Sf(e));
|
|
4638
4642
|
default: return z();
|
|
4639
4643
|
}
|
|
4640
|
-
},
|
|
4644
|
+
}, yf = /* @__PURE__ */ function(e) {
|
|
4641
4645
|
return e.Print = "Print", e.Online = "Online", e;
|
|
4642
|
-
}(
|
|
4646
|
+
}(yf || {}), bf = (e) => {
|
|
4643
4647
|
let { pathname: t } = new URL(e);
|
|
4644
4648
|
return t.includes("/books/abs/") ? U.Chapter : t.includes("/books/") ? U.Book : /\/journals\/.+\/article\//.exec(t) == null ? t.includes("/journals/") ? U.Journal : U.None : U.Article;
|
|
4645
|
-
},
|
|
4646
|
-
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_journal_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_volume"), a = V(e, "name", "citation_issue"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_lastpage"), c = V(e, "name", "citation_publication_date")?.substring(0, 4), l = V(e, "name", "citation_publisher"), u =
|
|
4649
|
+
}, xf = (e) => {
|
|
4650
|
+
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_journal_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_volume"), a = V(e, "name", "citation_issue"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_lastpage"), c = V(e, "name", "citation_publication_date")?.substring(0, 4), l = V(e, "name", "citation_publisher"), u = Df(e), d = zd(H(e, "name", "citation_issn"));
|
|
4647
4651
|
return L(F.Article, {
|
|
4648
4652
|
atitle: t,
|
|
4649
4653
|
au: u,
|
|
@@ -4657,14 +4661,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4657
4661
|
date: c,
|
|
4658
4662
|
pub: l
|
|
4659
4663
|
});
|
|
4660
|
-
},
|
|
4661
|
-
let t =
|
|
4664
|
+
}, Sf = (e) => {
|
|
4665
|
+
let t = Cf(e), n = wf(e), r = n.find((e) => e.type === yf.Print), i = n.find((e) => e.type === yf.Online), a = r ? r.value : void 0, o = i ? i.value : void 0;
|
|
4662
4666
|
return L(F.Journal, {
|
|
4663
4667
|
title: t,
|
|
4664
4668
|
issn: a,
|
|
4665
4669
|
eissn: o
|
|
4666
4670
|
});
|
|
4667
|
-
},
|
|
4671
|
+
}, Cf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, wf = (e) => {
|
|
4668
4672
|
let t = Array.from(e.querySelectorAll("span.bold")).find((e) => e.textContent.trim() === "ISSN:"), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, r = [];
|
|
4669
4673
|
return t && (t.parentElement?.querySelectorAll("span.value"))?.forEach((e) => {
|
|
4670
4674
|
let t = e.textContent.trim(), i = n.exec(t);
|
|
@@ -4673,7 +4677,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4673
4677
|
type: i[2]
|
|
4674
4678
|
});
|
|
4675
4679
|
}), r;
|
|
4676
|
-
},
|
|
4680
|
+
}, Tf = (e) => {
|
|
4677
4681
|
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_inbook_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher");
|
|
4678
4682
|
return I(F.Bookitem, {
|
|
4679
4683
|
atitle: t,
|
|
@@ -4682,8 +4686,8 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4682
4686
|
date: i,
|
|
4683
4687
|
pub: a
|
|
4684
4688
|
});
|
|
4685
|
-
},
|
|
4686
|
-
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_doi"), r = V(e, "name", "citation_isbn"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher"), o =
|
|
4689
|
+
}, Ef = (e) => {
|
|
4690
|
+
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_doi"), r = V(e, "name", "citation_isbn"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher"), o = Df(e);
|
|
4687
4691
|
return I(F.Book, {
|
|
4688
4692
|
title: t,
|
|
4689
4693
|
au: o,
|
|
@@ -4692,19 +4696,19 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4692
4696
|
date: i,
|
|
4693
4697
|
pub: a
|
|
4694
4698
|
});
|
|
4695
|
-
},
|
|
4699
|
+
}, Df = (e) => {
|
|
4696
4700
|
let t = H(e, "name", "citation_author");
|
|
4697
4701
|
return t.length ? t : void 0;
|
|
4698
|
-
},
|
|
4702
|
+
}, Of = /* @__PURE__ */ function(e) {
|
|
4699
4703
|
return e.Journal = "Journal", e.Article = "Article", e;
|
|
4700
|
-
}(
|
|
4704
|
+
}(Of || {}), kf = (e) => {
|
|
4701
4705
|
switch (V(e, "property", "og:type")) {
|
|
4702
|
-
case "Article": return
|
|
4703
|
-
case "Journal": return
|
|
4706
|
+
case "Article": return Of.Article;
|
|
4707
|
+
case "Journal": return Of.Journal;
|
|
4704
4708
|
default: return;
|
|
4705
4709
|
}
|
|
4706
4710
|
};
|
|
4707
|
-
function
|
|
4711
|
+
function Af(e) {
|
|
4708
4712
|
let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "publication_doi");
|
|
4709
4713
|
return B(L(F.Journal, {
|
|
4710
4714
|
jtitle: t,
|
|
@@ -4712,7 +4716,7 @@ function Of(e) {
|
|
|
4712
4716
|
doi: r
|
|
4713
4717
|
}));
|
|
4714
4718
|
}
|
|
4715
|
-
function
|
|
4719
|
+
function jf(e) {
|
|
4716
4720
|
let t = V(e, "name", "dc.Title"), n = H(e, "name", "dc.Creator"), r = V(e, "name", "dc.Date")?.substring(0, 4), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = V(e, "name", "dc.Publisher");
|
|
4717
4721
|
return B(L(F.Article, {
|
|
4718
4722
|
atitle: t,
|
|
@@ -4723,24 +4727,24 @@ function kf(e) {
|
|
|
4723
4727
|
pub: o
|
|
4724
4728
|
}));
|
|
4725
4729
|
}
|
|
4726
|
-
var
|
|
4727
|
-
switch (
|
|
4728
|
-
case
|
|
4729
|
-
case
|
|
4730
|
+
var Mf = ({ document: e }) => {
|
|
4731
|
+
switch (kf(e)) {
|
|
4732
|
+
case Of.Journal: return Af(e);
|
|
4733
|
+
case Of.Article: return jf(e);
|
|
4730
4734
|
default: return z();
|
|
4731
4735
|
}
|
|
4732
|
-
},
|
|
4736
|
+
}, Nf = (e) => {
|
|
4733
4737
|
if (!e) return;
|
|
4734
4738
|
let [t, n] = e.trim().split("-");
|
|
4735
4739
|
return {
|
|
4736
4740
|
spage: t,
|
|
4737
4741
|
epage: n
|
|
4738
4742
|
};
|
|
4739
|
-
},
|
|
4743
|
+
}, Pf = (e) => {
|
|
4740
4744
|
let { pathname: t } = new URL(e);
|
|
4741
4745
|
if (t.includes("/article/")) return U.Article;
|
|
4742
|
-
},
|
|
4743
|
-
let t = V(e, "name", "DC.Source"), n = V(e, "name", "DC.Title"), r = H(e, "name", "DC.Creator.PersonalName"), i = V(e, "name", "DC.Source.ISSN"), a = V(e, "name", "citation_date")?.substring(0, 4), o = V(e, "name", "DC.Source.Volume"), s = V(e, "name", "DC.Source.Issue"), c = V(e, "name", "DC.Identifier.URI"), l = V(e, "name", "DC.Identifier.pageNumber"), u = l ?
|
|
4746
|
+
}, Ff = (e) => {
|
|
4747
|
+
let t = V(e, "name", "DC.Source"), n = V(e, "name", "DC.Title"), r = H(e, "name", "DC.Creator.PersonalName"), i = V(e, "name", "DC.Source.ISSN"), a = V(e, "name", "citation_date")?.substring(0, 4), o = V(e, "name", "DC.Source.Volume"), s = V(e, "name", "DC.Source.Issue"), c = V(e, "name", "DC.Identifier.URI"), l = V(e, "name", "DC.Identifier.pageNumber"), u = l ? Nf(l) : void 0, d = u?.spage, f = u?.epage;
|
|
4744
4748
|
return L(F.Article, {
|
|
4745
4749
|
jtitle: t,
|
|
4746
4750
|
atitle: n,
|
|
@@ -4753,22 +4757,22 @@ var Af = ({ document: e }) => {
|
|
|
4753
4757
|
issue: s,
|
|
4754
4758
|
uri: c
|
|
4755
4759
|
});
|
|
4756
|
-
},
|
|
4757
|
-
switch (
|
|
4758
|
-
case U.Article: return B(
|
|
4760
|
+
}, If = ({ document: e, url: t }) => {
|
|
4761
|
+
switch (Pf(t)) {
|
|
4762
|
+
case U.Article: return B(Ff(e));
|
|
4759
4763
|
default: return z();
|
|
4760
4764
|
}
|
|
4761
|
-
},
|
|
4765
|
+
}, Lf = /* @__PURE__ */ function(e) {
|
|
4762
4766
|
return e.Book = "Book", e.Chapter = "Chapter", e;
|
|
4763
|
-
}(
|
|
4764
|
-
switch (
|
|
4765
|
-
case "eBook": return
|
|
4766
|
-
case "Reference": return
|
|
4767
|
+
}(Lf || {}), Rf = (e) => {
|
|
4768
|
+
switch (zf(e)) {
|
|
4769
|
+
case "eBook": return Lf.Book;
|
|
4770
|
+
case "Reference": return Lf.Chapter;
|
|
4767
4771
|
default: return;
|
|
4768
4772
|
}
|
|
4769
|
-
},
|
|
4770
|
-
function
|
|
4771
|
-
let n =
|
|
4773
|
+
}, zf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
|
|
4774
|
+
function Bf(e, t) {
|
|
4775
|
+
let n = Hf(e), r = Gf(e), i = qf(e), a = Jf(e), o = Yf(e), s = Xf(e), c = Gf(e), l = t, { startPage: u, endPage: d } = Zf(e) ?? {};
|
|
4772
4776
|
return B(I(F.Book, {
|
|
4773
4777
|
au: n,
|
|
4774
4778
|
btitle: r,
|
|
@@ -4782,8 +4786,8 @@ function Rf(e, t) {
|
|
|
4782
4786
|
uri: l
|
|
4783
4787
|
}));
|
|
4784
4788
|
}
|
|
4785
|
-
function
|
|
4786
|
-
let n =
|
|
4789
|
+
function Vf(e, t) {
|
|
4790
|
+
let n = Hf(e), r = Kf(e), i = Gf(e), a = qf(e), o = Jf(e), s = Yf(e), c = Xf(e), l = Kf(e), u = t, { startPage: d, endPage: f } = Zf(e) ?? {};
|
|
4787
4791
|
return B(I(F.Book, {
|
|
4788
4792
|
au: n,
|
|
4789
4793
|
atitle: r,
|
|
@@ -4798,10 +4802,10 @@ function zf(e, t) {
|
|
|
4798
4802
|
uri: u
|
|
4799
4803
|
}));
|
|
4800
4804
|
}
|
|
4801
|
-
var
|
|
4805
|
+
var Hf = (e) => {
|
|
4802
4806
|
let t = e.querySelectorAll("div#article_author p.author-bio b"), n = Array.from(t).map((e) => e.textContent).filter((e) => !!e).map((e) => e.trim());
|
|
4803
4807
|
return n.length > 0 ? n : void 0;
|
|
4804
|
-
},
|
|
4808
|
+
}, Uf = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Wf = (e) => V(e, "property", "og:title"), Gf = (e) => Uf(e, "titlevalue") ?? Wf(e), Kf = (e) => Uf(e, "chapter-title-squid"), qf = (e) => Uf(e, "pubdate-squid"), Jf = (e) => Uf(e, "doi-squid"), Yf = (e) => Uf(e, "isbn-squid"), Xf = (e) => Uf(e, "pubname-squid"), Zf = (e) => {
|
|
4805
4809
|
let t = e.querySelector("#pageRange")?.textContent ?? void 0;
|
|
4806
4810
|
if (!t) return;
|
|
4807
4811
|
let n = /(\d+)–(\d+)/.exec(t);
|
|
@@ -4809,34 +4813,34 @@ var Bf = (e) => {
|
|
|
4809
4813
|
startPage: n[1],
|
|
4810
4814
|
endPage: n[2]
|
|
4811
4815
|
};
|
|
4812
|
-
},
|
|
4813
|
-
switch (
|
|
4814
|
-
case
|
|
4815
|
-
case
|
|
4816
|
+
}, Qf = ({ document: e, url: t }) => {
|
|
4817
|
+
switch (Rf(e)) {
|
|
4818
|
+
case Lf.Book: return Bf(e, t);
|
|
4819
|
+
case Lf.Chapter: return Vf(e, t);
|
|
4816
4820
|
default: return z();
|
|
4817
4821
|
}
|
|
4818
|
-
},
|
|
4819
|
-
switch (
|
|
4822
|
+
}, $f = (e, t) => e.evaluate(`//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`, e, null, XPathResult.STRING_TYPE).stringValue.toLowerCase().trim(), ep = (e) => {
|
|
4823
|
+
switch ($f(e, "Medium")) {
|
|
4820
4824
|
case "book":
|
|
4821
4825
|
case "e-book": return F.Book;
|
|
4822
4826
|
case "e-journal": return F.Journal;
|
|
4823
4827
|
default: return F.Unknown;
|
|
4824
4828
|
}
|
|
4825
|
-
},
|
|
4829
|
+
}, tp = (e) => {
|
|
4826
4830
|
delete e.rft_id;
|
|
4827
|
-
},
|
|
4831
|
+
}, np = (e) => {
|
|
4828
4832
|
let t = ns(e);
|
|
4829
4833
|
if (qc(t)) {
|
|
4830
|
-
let n =
|
|
4831
|
-
t.resource.genre = n,
|
|
4834
|
+
let n = ep(e.document);
|
|
4835
|
+
t.resource.genre = n, tp(t.resource);
|
|
4832
4836
|
}
|
|
4833
4837
|
return t;
|
|
4834
|
-
},
|
|
4838
|
+
}, rp = (e) => {
|
|
4835
4839
|
let t = V(e, "name", "type")?.toLowerCase(), n = V(e, "name", "og:type")?.toLowerCase(), r = V(e, "name", "citation_article_type")?.toLowerCase();
|
|
4836
4840
|
if (t === "article" || r === "article" || n === "article") return U.Article;
|
|
4837
4841
|
let i = V(e, "name", "twitter:title")?.trim(), a = V(e, "name", "description")?.trim();
|
|
4838
4842
|
if (i || a) return U.Webpage;
|
|
4839
|
-
},
|
|
4843
|
+
}, ip = (e) => {
|
|
4840
4844
|
let t = V(e, "name", "DC.Title"), n = V(e, "name", "DC.Publisher"), r = V(e, "name", "DC.Date"), i = V(e, "name", "DC.Identifier"), a = V(e, "name", "citation_journal_title"), o = V(e, "name", "citation_volume"), s = V(e, "name", "citation_issn"), c = H(e, "name", "citation_author");
|
|
4841
4845
|
return L(F.Article, {
|
|
4842
4846
|
au: c,
|
|
@@ -4848,41 +4852,41 @@ var Bf = (e) => {
|
|
|
4848
4852
|
title: t,
|
|
4849
4853
|
volume: o
|
|
4850
4854
|
});
|
|
4851
|
-
},
|
|
4855
|
+
}, ap = (e, t) => _o({
|
|
4852
4856
|
uri: e,
|
|
4853
4857
|
title: V(t, "name", "twitter:title")
|
|
4854
|
-
}),
|
|
4855
|
-
switch (
|
|
4856
|
-
case U.Article: return B(
|
|
4857
|
-
case U.Webpage: return B(
|
|
4858
|
+
}), op = ({ url: e, document: t }) => {
|
|
4859
|
+
switch (rp(t)) {
|
|
4860
|
+
case U.Article: return B(ip(t));
|
|
4861
|
+
case U.Webpage: return B(ap(e, t));
|
|
4858
4862
|
}
|
|
4859
4863
|
return z();
|
|
4860
|
-
},
|
|
4861
|
-
function
|
|
4864
|
+
}, sp = ({ document: e }) => Array.from(e.querySelectorAll(".availability.documentSummaryAvailability.availabilityContent")).length === 0 ? z() : es(), cp = /([0-9]{4})\s+at/;
|
|
4865
|
+
function lp(e) {
|
|
4862
4866
|
if (!e) return;
|
|
4863
|
-
let t =
|
|
4867
|
+
let t = cp.exec(e);
|
|
4864
4868
|
if (t && t.length > 1) return t[1];
|
|
4865
4869
|
}
|
|
4866
|
-
function
|
|
4870
|
+
function up(e, t) {
|
|
4867
4871
|
let n = e.getElementsByClassName(t);
|
|
4868
4872
|
if (n.length !== 0) return n[0].textContent;
|
|
4869
4873
|
}
|
|
4870
|
-
function
|
|
4874
|
+
function dp(e) {
|
|
4871
4875
|
return Array.from(e.getElementsByTagName("li")).reduce((e, t) => {
|
|
4872
|
-
let n =
|
|
4876
|
+
let n = up(t, "title"), r = up(t, "content");
|
|
4873
4877
|
return n && r && (e[n] = r), e;
|
|
4874
4878
|
}, {});
|
|
4875
4879
|
}
|
|
4876
|
-
function
|
|
4880
|
+
function fp(e) {
|
|
4877
4881
|
let t = e.getElementsByClassName("information");
|
|
4878
4882
|
if (t.length === 0) return {};
|
|
4879
|
-
let n =
|
|
4883
|
+
let n = dp(t[0]);
|
|
4880
4884
|
return {
|
|
4881
|
-
date:
|
|
4885
|
+
date: lp(n.Published),
|
|
4882
4886
|
series: n.Show
|
|
4883
4887
|
};
|
|
4884
4888
|
}
|
|
4885
|
-
var
|
|
4889
|
+
var pp = ({ url: e, document: t }) => {
|
|
4886
4890
|
if (!new URL(e).searchParams.has("i")) return z();
|
|
4887
4891
|
let n = F.AudioDocument;
|
|
4888
4892
|
return B({
|
|
@@ -4890,16 +4894,16 @@ var dp = ({ url: e, document: t }) => {
|
|
|
4890
4894
|
pub: V(t, "property", "og:site_name"),
|
|
4891
4895
|
title: V(t, "property", "og:title"),
|
|
4892
4896
|
uri: e,
|
|
4893
|
-
...
|
|
4897
|
+
...fp(t)
|
|
4894
4898
|
});
|
|
4895
|
-
},
|
|
4899
|
+
}, mp = (e) => {
|
|
4896
4900
|
let t = V(e, "name", "citation_date");
|
|
4897
4901
|
if (t) return t.split("/").find((e) => /^\d{4}/.test(e)) ?? void 0;
|
|
4898
|
-
},
|
|
4902
|
+
}, hp = (e) => {
|
|
4899
4903
|
let t = e.querySelector("#arxiv-doi-link")?.textContent;
|
|
4900
4904
|
if (t) return t.replace("https://doi.org/", "").trim();
|
|
4901
|
-
},
|
|
4902
|
-
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i =
|
|
4905
|
+
}, gp = ({ document: e }) => {
|
|
4906
|
+
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i = mp(e), a = hp(e);
|
|
4903
4907
|
return !t && r.length === 0 && !i && !a ? z() : B(L(F.Article, {
|
|
4904
4908
|
au: r,
|
|
4905
4909
|
date: i,
|
|
@@ -4907,12 +4911,12 @@ var dp = ({ url: e, document: t }) => {
|
|
|
4907
4911
|
title: t,
|
|
4908
4912
|
uri: n
|
|
4909
4913
|
}));
|
|
4910
|
-
},
|
|
4914
|
+
}, _p = (e) => {
|
|
4911
4915
|
let t = ou(e, "div.director-section div.term-info-section-items");
|
|
4912
4916
|
if (!t) return;
|
|
4913
4917
|
let n = t.split(",").map((e) => e.replace(/\s+/g, " ").trim()).filter((e) => e.length > 0);
|
|
4914
4918
|
return n.length > 0 ? n : void 0;
|
|
4915
|
-
},
|
|
4919
|
+
}, vp = (e) => {
|
|
4916
4920
|
let t = /* @__PURE__ */ new Map();
|
|
4917
4921
|
return Array.from(e.querySelectorAll(".info-section-container")).forEach((e) => {
|
|
4918
4922
|
let n = e.querySelector(".info-section-header .info-section-title")?.textContent.trim().toLowerCase();
|
|
@@ -4920,34 +4924,34 @@ var dp = ({ url: e, document: t }) => {
|
|
|
4920
4924
|
let r = Array.from(e.querySelectorAll(".term-info-section-item")).map((e) => e.textContent.replace(",", "").trim()).filter((e) => !!e);
|
|
4921
4925
|
r.length && t.set(n, r);
|
|
4922
4926
|
}), t;
|
|
4923
|
-
},
|
|
4924
|
-
let n =
|
|
4927
|
+
}, yp = ({ url: e, document: t }) => {
|
|
4928
|
+
let n = vp(t);
|
|
4925
4929
|
return B(R({
|
|
4926
|
-
au:
|
|
4930
|
+
au: _p(t) ?? n.get("director"),
|
|
4927
4931
|
date: ou(t, "div.product-release-year"),
|
|
4928
4932
|
pub: ou(t, "div.studio-section div.term-info-section-item") ?? gu(n.get("supplier")),
|
|
4929
4933
|
title: ou(t, ".product-title") ?? ou(t, ".movie-title"),
|
|
4930
4934
|
uri: e
|
|
4931
4935
|
}));
|
|
4932
|
-
},
|
|
4936
|
+
}, bp = (e) => {
|
|
4933
4937
|
if (V(e, "property", "og:type") === "article") return U.Article;
|
|
4934
4938
|
};
|
|
4935
|
-
function
|
|
4939
|
+
function xp(e) {
|
|
4936
4940
|
let t = {}, n = e.querySelector("[data-id=layout-form]");
|
|
4937
4941
|
return n && Array.from(n.getElementsByTagName("h2")).forEach((e) => {
|
|
4938
4942
|
let n = e.textContent.toLowerCase(), r = Array.from(e.parentElement?.getElementsByTagName("span") ?? []).map((e) => e.textContent || "");
|
|
4939
4943
|
n && (t[n] = r[0]);
|
|
4940
4944
|
}), t;
|
|
4941
4945
|
}
|
|
4942
|
-
function
|
|
4946
|
+
function Sp(e, t, n) {
|
|
4943
4947
|
return n.includes("publisher") ? t.publisher : n.includes("place of publication, exhibition, or creation") ? t["place of publication, exhibition, or creation"] : V(e, "name", "DC.publisher");
|
|
4944
4948
|
}
|
|
4945
|
-
function
|
|
4949
|
+
function Cp(e) {
|
|
4946
4950
|
let t = V(e, "name", "citation_publication_date");
|
|
4947
4951
|
return t ? t.substring(0, 4) : V(e, "name", "citation_online_date")?.substring(0, 4);
|
|
4948
4952
|
}
|
|
4949
|
-
var
|
|
4950
|
-
let t =
|
|
4953
|
+
var wp = (e) => {
|
|
4954
|
+
let t = xp(e), n = V(e, "name", "DataCite.title"), r = H(e, "name", "DataCite.contributor"), i = Cp(e), a = V(e, "name", "DC.identifier.DOI"), o = Object.keys(t), s = Sp(e, t, o), c = o.includes("journal") ? t.journal : void 0, l = o.includes("volume") ? t.volume : void 0, u = o.includes("issue") ? t.issue : void 0, d = o.includes("issn") ? t.issn : void 0, f = o.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
|
|
4951
4955
|
return L(F.Article, {
|
|
4952
4956
|
jtitle: c,
|
|
4953
4957
|
atitle: n,
|
|
@@ -4960,43 +4964,43 @@ var Sp = (e) => {
|
|
|
4960
4964
|
issn: d,
|
|
4961
4965
|
uri: f
|
|
4962
4966
|
});
|
|
4963
|
-
},
|
|
4964
|
-
switch (
|
|
4965
|
-
case U.Article: return B(
|
|
4967
|
+
}, Tp = ({ document: e }) => {
|
|
4968
|
+
switch (bp(e)) {
|
|
4969
|
+
case U.Article: return B(wp(e));
|
|
4966
4970
|
default: return z();
|
|
4967
4971
|
}
|
|
4968
4972
|
}, J = /* @__PURE__ */ function(e) {
|
|
4969
4973
|
return e.ISSN = "issn (print)", e.EISSN = "issn (electronic)", e.ISBN = "isbn (print)", e.VOLUME = "volume", e.ISSUE = "issue", e.PUBLISHER = "publisher", e.DATE_OF_PUBLICATION = "date of publication", e.RESOURCE_TYPE = "resource type", e.JOURNAL_TITLE = "journal", e.BOOK_TITLE = "book title", e.PAGE_RANGE = "page range", e;
|
|
4970
|
-
}(J || {}),
|
|
4974
|
+
}(J || {}), Ep = (e) => {
|
|
4971
4975
|
let t = Y(e, J.RESOURCE_TYPE);
|
|
4972
4976
|
return t ? t === "Other Journal Article" || t === "Journal Article" || t === "Journal Item" || t === "Book Review" ? U.Article : t === "Book Chapter" || t === "Book Part" || t === "Conference Abstract" || t === "Book ChapterConference Paper" || t === "Conference Paper" || t === "Other Book Part" ? U.Document : U.None : U.None;
|
|
4973
|
-
},
|
|
4977
|
+
}, Dp = (e) => e.replace(":", "").replace(" | ", "").trim().toLowerCase(), Op = (e) => {
|
|
4974
4978
|
let t = /* @__PURE__ */ new Map(), n = e.querySelector("ul.rlist.publication-details__list");
|
|
4975
4979
|
return n && Array.from(n.querySelectorAll("li")).forEach((e) => {
|
|
4976
4980
|
let n = Array.from(e.querySelectorAll("span.label")), r = Array.from(e.querySelectorAll("span.info"));
|
|
4977
4981
|
n.forEach((e, n) => {
|
|
4978
|
-
let i =
|
|
4982
|
+
let i = Dp(e.textContent), a = r[n]?.textContent?.trim();
|
|
4979
4983
|
i && a && (t.has(i) || t.set(i, []), t.get(i)?.push(a));
|
|
4980
4984
|
});
|
|
4981
4985
|
}), t;
|
|
4982
4986
|
}, Y = (e, t) => {
|
|
4983
4987
|
let n = e.get(t);
|
|
4984
4988
|
if (n) return ru(n);
|
|
4985
|
-
},
|
|
4989
|
+
}, kp = (e) => H(e, "name", "dc.Creator").map((e) => e.trim()), Ap = (e) => {
|
|
4986
4990
|
let t = au(e, [".loa-accordion a.author-name"]);
|
|
4987
4991
|
if (t) return t.map((e) => e.replace("Authors:", "").trim());
|
|
4988
|
-
},
|
|
4989
|
-
let t =
|
|
4990
|
-
return t.length > 0 ? t :
|
|
4991
|
-
},
|
|
4992
|
+
}, jp = (e) => {
|
|
4993
|
+
let t = kp(e);
|
|
4994
|
+
return t.length > 0 ? t : Ap(e);
|
|
4995
|
+
}, Mp = (e) => V(e, "name", "dc.Title") ?? V(e, "property", "og:title"), Np = (e) => V(e, "name", "publication_doi"), Pp = (e, t) => Y(t, J.DATE_OF_PUBLICATION) ?? V(e, "name", "dc.Date"), Fp = (e) => {
|
|
4992
4996
|
let t = Y(e, J.PAGE_RANGE), n, r;
|
|
4993
4997
|
return t?.includes("-") && (n = t ? t.split("-")[0].trim() : void 0, r = t ? t.split("-")[1].trim() : void 0), {
|
|
4994
4998
|
pages: t,
|
|
4995
4999
|
spage: n,
|
|
4996
5000
|
epage: r
|
|
4997
5001
|
};
|
|
4998
|
-
},
|
|
4999
|
-
let r =
|
|
5002
|
+
}, Ip = (e, t, n) => {
|
|
5003
|
+
let r = Mp(e), i = Y(t, J.JOURNAL_TITLE), a = V(e, "name", "citation_journal_title"), o = i ?? a, s = Np(e), c = Pp(e, t), l = Y(t, J.PUBLISHER), u = jp(e), d = Y(t, J.VOLUME), f = Y(t, J.ISSUE), p = Fp(t), m = Y(t, J.ISSN), h = Y(t, J.EISSN);
|
|
5000
5004
|
return L(F.Article, {
|
|
5001
5005
|
title: r,
|
|
5002
5006
|
jtitle: o,
|
|
@@ -5013,8 +5017,8 @@ var Sp = (e) => {
|
|
|
5013
5017
|
eissn: h,
|
|
5014
5018
|
uri: n
|
|
5015
5019
|
});
|
|
5016
|
-
},
|
|
5017
|
-
let r =
|
|
5020
|
+
}, Lp = (e, t, n) => {
|
|
5021
|
+
let r = Mp(e), i = Y(t, J.BOOK_TITLE), a = Np(e), o = Pp(e, t), s = Y(t, J.PUBLISHER), c = jp(e), l = Fp(t), u = Y(t, J.ISBN);
|
|
5018
5022
|
return I(F.Conference, {
|
|
5019
5023
|
title: r,
|
|
5020
5024
|
btitle: i,
|
|
@@ -5028,8 +5032,8 @@ var Sp = (e) => {
|
|
|
5028
5032
|
isbn: u,
|
|
5029
5033
|
uri: n
|
|
5030
5034
|
});
|
|
5031
|
-
},
|
|
5032
|
-
let r =
|
|
5035
|
+
}, Rp = (e, t, n) => {
|
|
5036
|
+
let r = Mp(e), i = Np(e), a = Pp(e, t), o = Y(t, J.PUBLISHER), s = jp(e), c = Y(t, J.ISBN);
|
|
5033
5037
|
return I(F.Document, {
|
|
5034
5038
|
title: r,
|
|
5035
5039
|
doi: i,
|
|
@@ -5039,16 +5043,16 @@ var Sp = (e) => {
|
|
|
5039
5043
|
uri: n,
|
|
5040
5044
|
isbn: c
|
|
5041
5045
|
});
|
|
5042
|
-
},
|
|
5043
|
-
let n =
|
|
5044
|
-
switch (
|
|
5045
|
-
case U.Article: return B(
|
|
5046
|
-
case U.Document: return B(
|
|
5047
|
-
case U.None: return B(
|
|
5046
|
+
}, zp = ({ url: e, document: t }) => {
|
|
5047
|
+
let n = Op(t);
|
|
5048
|
+
switch (Ep(n)) {
|
|
5049
|
+
case U.Article: return B(Ip(t, n, e));
|
|
5050
|
+
case U.Document: return B(Lp(t, n, e));
|
|
5051
|
+
case U.None: return B(Rp(t, n, e));
|
|
5048
5052
|
default: return z();
|
|
5049
5053
|
}
|
|
5050
|
-
},
|
|
5051
|
-
let t =
|
|
5054
|
+
}, Bp = (e) => V(e, "property", "og:title")?.trim() ?? void 0, Vp = (e) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi"), Hp = (e) => {
|
|
5055
|
+
let t = Bp(e), n = t, r = Jp(e), i = qp(e), a = Gp(e), o = Kp(e), { issn: s, eissn: c } = Wp(e);
|
|
5052
5056
|
return B(L(F.Journal, {
|
|
5053
5057
|
date: r,
|
|
5054
5058
|
eissn: c,
|
|
@@ -5059,11 +5063,11 @@ var Sp = (e) => {
|
|
|
5059
5063
|
title: t,
|
|
5060
5064
|
volume: o
|
|
5061
5065
|
}));
|
|
5062
|
-
},
|
|
5066
|
+
}, Up = (e) => e.includes("/journals/") && e.includes("issue"), Wp = (e) => ({
|
|
5063
5067
|
issn: e.querySelector("dd.printissn.text-metadata-value > span")?.textContent.trim(),
|
|
5064
5068
|
eissn: e.querySelector("dd.onlineissn.text-metadata-value > span")?.textContent.trim()
|
|
5065
|
-
}),
|
|
5066
|
-
let t =
|
|
5069
|
+
}), Gp = (e) => e.querySelector("dd.publisher.text-metadata-value span")?.textContent.trim() ?? void 0, Kp = (e) => Bp(e)?.match(/Volume\s+(\d+)/i)?.[1], qp = (e) => Bp(e)?.match(/Issue\s+(\d+)/i)?.[1], Jp = (e) => Bp(e)?.match(/\((\d{4})\)/)?.[1], Yp = (e) => {
|
|
5070
|
+
let t = Bp(e), n = V(e, "name", "citation_title") ?? t, r = H(e, "property", "article:author"), i = Xp(e), a = Vp(e), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_issn"), c = V(e, "name", "citation_issue"), l = V(e, "name", "citation_journal_title"), u = V(e, "name", "citation_publisher"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_volume");
|
|
5067
5071
|
return B(L(F.Article, {
|
|
5068
5072
|
atitle: n,
|
|
5069
5073
|
au: r,
|
|
@@ -5078,8 +5082,8 @@ var Sp = (e) => {
|
|
|
5078
5082
|
title: t,
|
|
5079
5083
|
volume: f
|
|
5080
5084
|
}));
|
|
5081
|
-
},
|
|
5082
|
-
let t =
|
|
5085
|
+
}, Xp = (e) => V(e, "property", "article:published_time") ?? V(e, "name", "citation_publication_date"), Zp = (e) => {
|
|
5086
|
+
let t = Bp(e), n = V(e, "name", "citation_title") ?? t, r = Qp(e), i = em(e), a = Vp(e), o = tm(e), s = V(e, "name", "citation_publisher");
|
|
5083
5087
|
return B(I(F.Book, {
|
|
5084
5088
|
au: r,
|
|
5085
5089
|
btitle: n,
|
|
@@ -5089,59 +5093,59 @@ var Sp = (e) => {
|
|
|
5089
5093
|
pub: s,
|
|
5090
5094
|
title: t
|
|
5091
5095
|
}));
|
|
5092
|
-
},
|
|
5096
|
+
}, Qp = (e) => {
|
|
5093
5097
|
let t = H(e, "property", "book:author");
|
|
5094
5098
|
if (t.length > 0) return t;
|
|
5095
5099
|
let n = H(e, "name", "citation_author");
|
|
5096
|
-
return n.length > 0 ? n :
|
|
5097
|
-
},
|
|
5100
|
+
return n.length > 0 ? n : $p(e);
|
|
5101
|
+
}, $p = (e) => Array.from(e.querySelectorAll(".contributor-details span[data-testid=\"author-name\"]")).map((e) => (e.textContent || "").trim()).filter((e) => e.length > 0), em = (e) => V(e, "property", "book:release_date") ?? V(e, "name", "citation_publication_date"), tm = (e) => V(e, "property", "book:isbn") ?? V(e, "name", "citation_isbn"), nm = (e, t) => {
|
|
5098
5102
|
switch (V(e, "property", "og:type")) {
|
|
5099
5103
|
case "article": return U.Article;
|
|
5100
5104
|
case "book": return U.Book;
|
|
5101
5105
|
default: break;
|
|
5102
5106
|
}
|
|
5103
|
-
return
|
|
5104
|
-
},
|
|
5105
|
-
switch (
|
|
5106
|
-
case U.Article: return
|
|
5107
|
-
case U.Journal: return
|
|
5108
|
-
case U.Book: return
|
|
5107
|
+
return Up(t) ? U.Journal : U.None;
|
|
5108
|
+
}, rm = ({ document: e, url: t }) => {
|
|
5109
|
+
switch (nm(e, t)) {
|
|
5110
|
+
case U.Article: return Yp(e);
|
|
5111
|
+
case U.Journal: return Hp(e);
|
|
5112
|
+
case U.Book: return Zp(e);
|
|
5109
5113
|
default: return z();
|
|
5110
5114
|
}
|
|
5111
|
-
},
|
|
5115
|
+
}, im = (e) => {
|
|
5112
5116
|
let t = e.getAttribute("title");
|
|
5113
5117
|
return t ? Do(t) : null;
|
|
5114
|
-
},
|
|
5118
|
+
}, am = ({ url: e, document: t }) => {
|
|
5115
5119
|
let n = t.querySelector(".Z3988");
|
|
5116
5120
|
if (!n) return z();
|
|
5117
|
-
let r =
|
|
5121
|
+
let r = im(n);
|
|
5118
5122
|
return r ? (r.genre === F.Article && !r.jtitle && r.title && (r.jtitle = r.title), B({
|
|
5119
5123
|
...r,
|
|
5120
5124
|
uri: e
|
|
5121
5125
|
})) : z();
|
|
5122
|
-
},
|
|
5123
|
-
let n = e.querySelector(
|
|
5126
|
+
}, om = (e) => `[data-qa="detail_${e}"]`, sm = (e, t) => {
|
|
5127
|
+
let n = e.querySelector(om(t));
|
|
5124
5128
|
return n ? Array.from(n.querySelectorAll("nde-highlight")).map((e) => e.textContent.trim()).filter((e) => !!e) : [];
|
|
5125
|
-
},
|
|
5126
|
-
let n =
|
|
5129
|
+
}, cm = (e, t) => {
|
|
5130
|
+
let n = sm(e, t);
|
|
5127
5131
|
return n.length > 0 ? n[0] : void 0;
|
|
5128
|
-
},
|
|
5129
|
-
let t = e.querySelector(
|
|
5132
|
+
}, lm = (e) => {
|
|
5133
|
+
let t = e.querySelector(om("creator"));
|
|
5130
5134
|
if (!t) return [];
|
|
5131
5135
|
let n = Array.from(t.querySelectorAll("nde-highlight")).map((e) => e.textContent.trim()).filter((e) => !!e).map((e) => e.replace(/,?\s*author\s*$/i, "").trim());
|
|
5132
5136
|
return n.length > 0 ? n : [];
|
|
5133
|
-
},
|
|
5134
|
-
let t =
|
|
5137
|
+
}, um = (e) => {
|
|
5138
|
+
let t = sm(e, "identifier"), n = sm(e, "ispartof"), r = t.find((e) => e.startsWith("LC:"));
|
|
5135
5139
|
return qu({
|
|
5136
|
-
authors:
|
|
5137
|
-
title:
|
|
5138
|
-
publisher:
|
|
5139
|
-
creationDate:
|
|
5140
|
+
authors: lm(e),
|
|
5141
|
+
title: cm(e, "title"),
|
|
5142
|
+
publisher: cm(e, "publisher"),
|
|
5143
|
+
creationDate: cm(e, "creationdate"),
|
|
5140
5144
|
isPartOf: n.length > 0 ? n[0] : void 0,
|
|
5141
5145
|
identifierValues: t,
|
|
5142
5146
|
lcn: r?.replace("LC:", "").trim()
|
|
5143
5147
|
});
|
|
5144
|
-
},
|
|
5148
|
+
}, dm = {
|
|
5145
5149
|
Article: q.Article,
|
|
5146
5150
|
Audio: q.Audio,
|
|
5147
5151
|
Book: q.Book,
|
|
@@ -5152,28 +5156,28 @@ var Sp = (e) => {
|
|
|
5152
5156
|
"Magazine Article": q.Article,
|
|
5153
5157
|
Newspaper: q.Journal,
|
|
5154
5158
|
Video: q.Video
|
|
5155
|
-
},
|
|
5159
|
+
}, fm = {
|
|
5156
5160
|
CreativeWork: q.Audio,
|
|
5157
5161
|
Movie: q.Video,
|
|
5158
5162
|
Periodical: q.Journal,
|
|
5159
5163
|
Thesis: q.Dissertation
|
|
5160
|
-
},
|
|
5161
|
-
...
|
|
5162
|
-
...
|
|
5163
|
-
},
|
|
5164
|
+
}, pm = {
|
|
5165
|
+
...dm,
|
|
5166
|
+
...fm
|
|
5167
|
+
}, mm = (e) => {
|
|
5164
5168
|
if (e) return e.mainEntity["@type"];
|
|
5165
|
-
},
|
|
5166
|
-
let n =
|
|
5167
|
-
return n ?
|
|
5168
|
-
}),
|
|
5169
|
+
}, hm = (e) => e.querySelector(".record-type")?.textContent.trim() ?? void 0, gm = _d(um, (e, t) => {
|
|
5170
|
+
let n = hm(e) ?? mm(t);
|
|
5171
|
+
return n ? pm[n] : void 0;
|
|
5172
|
+
}), _m = (e) => {
|
|
5169
5173
|
let t = V(e, "name", "bepress_citation_doi");
|
|
5170
5174
|
if (t) return t.replace("https://doi.org/", "").trim();
|
|
5171
|
-
},
|
|
5175
|
+
}, vm = (e) => {
|
|
5172
5176
|
let { document: t } = e, n = ns(e);
|
|
5173
5177
|
if (!qc(n)) return n;
|
|
5174
|
-
let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a =
|
|
5178
|
+
let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = _m(t);
|
|
5175
5179
|
return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
|
|
5176
|
-
},
|
|
5180
|
+
}, ym = (e) => {
|
|
5177
5181
|
let t = {}, n = Array.from(e.querySelectorAll("#bibliographic-data .bib-label"));
|
|
5178
5182
|
for (let e of n) {
|
|
5179
5183
|
let n = e.querySelector("h6")?.textContent.trim().toLowerCase(), r = e.nextElementSibling?.classList.contains("bib-field") ? e.nextElementSibling.textContent.trim() : void 0;
|
|
@@ -5184,16 +5188,16 @@ var Sp = (e) => {
|
|
|
5184
5188
|
n && (t.title = n.textContent.trim());
|
|
5185
5189
|
}
|
|
5186
5190
|
return t;
|
|
5187
|
-
},
|
|
5191
|
+
}, bm = (e) => {
|
|
5188
5192
|
if (e.title) return e.subtitle ? `${e.title}: ${e.subtitle}` : e.title;
|
|
5189
|
-
},
|
|
5193
|
+
}, xm = (e) => {
|
|
5190
5194
|
let t = e["print pub date"];
|
|
5191
5195
|
if (t) return t.split("-")[0];
|
|
5192
|
-
},
|
|
5196
|
+
}, Sm = (e) => e.author ? [e.author] : e.authors ? Cm(e.authors) : void 0, Cm = (e) => {
|
|
5193
5197
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean), n = t[t.length - 1];
|
|
5194
5198
|
return n.startsWith("and ") && (t[t.length - 1] = n.replace(/^and\s/, "").trim()), t;
|
|
5195
|
-
},
|
|
5196
|
-
let n =
|
|
5199
|
+
}, wm = (e, t) => e.querySelector("a.ga_detail_bt_readonline")?.getAttribute("href") ?? t, Tm = ({ document: e, url: t }) => {
|
|
5200
|
+
let n = ym(e), r = bm(n), i = n.edition, a = n["ebook isbn"], o = Sm(n), s = n.publisher, c = n.series, l = xm(n), u = wm(e, t);
|
|
5197
5201
|
return B(I(F.Book, {
|
|
5198
5202
|
atitle: r,
|
|
5199
5203
|
edition: i,
|
|
@@ -5204,7 +5208,7 @@ var Sp = (e) => {
|
|
|
5204
5208
|
date: l,
|
|
5205
5209
|
uri: u
|
|
5206
5210
|
}));
|
|
5207
|
-
},
|
|
5211
|
+
}, Em = W.extend({
|
|
5208
5212
|
"@type": N("VideoObject"),
|
|
5209
5213
|
name: O(),
|
|
5210
5214
|
url: O(),
|
|
@@ -5216,56 +5220,56 @@ var Sp = (e) => {
|
|
|
5216
5220
|
"@type": N("Person"),
|
|
5217
5221
|
name: O()
|
|
5218
5222
|
}))]))
|
|
5219
|
-
}),
|
|
5223
|
+
}), Dm = (e) => {
|
|
5220
5224
|
let t = Zs(e);
|
|
5221
5225
|
if (!t) return null;
|
|
5222
|
-
let n = Qs(t), r =
|
|
5226
|
+
let n = Qs(t), r = Em.safeParse(n);
|
|
5223
5227
|
return r.success ? r.data : null;
|
|
5224
|
-
},
|
|
5228
|
+
}, Om = (e) => {
|
|
5225
5229
|
if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
|
|
5226
|
-
},
|
|
5227
|
-
let t =
|
|
5230
|
+
}, km = ({ document: e }) => {
|
|
5231
|
+
let t = Dm(e);
|
|
5228
5232
|
if (!t) return z();
|
|
5229
|
-
let n =
|
|
5233
|
+
let n = Om(t);
|
|
5230
5234
|
return B(R({
|
|
5231
5235
|
title: t.name,
|
|
5232
5236
|
date: t.datePublished,
|
|
5233
5237
|
au: n,
|
|
5234
5238
|
uri: t.url
|
|
5235
5239
|
}));
|
|
5236
|
-
},
|
|
5240
|
+
}, Am = W.extend({ publisher: j({
|
|
5237
5241
|
"@type": N("Organization"),
|
|
5238
5242
|
name: O()
|
|
5239
|
-
}) }),
|
|
5243
|
+
}) }), jm = W.extend({
|
|
5240
5244
|
"@type": N("WebSite"),
|
|
5241
5245
|
issn: O(),
|
|
5242
5246
|
name: O()
|
|
5243
|
-
}),
|
|
5244
|
-
let t =
|
|
5247
|
+
}), Mm = (e) => {
|
|
5248
|
+
let t = Pm(e), n = e.querySelector(".article-issue-info a")?.getAttribute("href") ?? "", r = /\/v(\d+)/i.exec(n), i = /\/n(\d+)/i.exec(n);
|
|
5245
5249
|
return {
|
|
5246
5250
|
jtitle: t?.name ?? void 0,
|
|
5247
5251
|
issn: t?.issn ?? void 0,
|
|
5248
5252
|
volume: r ? r[1] : void 0,
|
|
5249
5253
|
issue: i ? i[1] : void 0
|
|
5250
5254
|
};
|
|
5251
|
-
},
|
|
5255
|
+
}, Nm = (e) => {
|
|
5252
5256
|
let t = Xs(e);
|
|
5253
5257
|
return t.length === 0 ? null : t.map((e) => Qs(e)).filter((e) => e !== null);
|
|
5254
|
-
},
|
|
5255
|
-
let t =
|
|
5258
|
+
}, Pm = (e) => {
|
|
5259
|
+
let t = Nm(e);
|
|
5256
5260
|
if (!t) return;
|
|
5257
|
-
let n = t.map((e) =>
|
|
5261
|
+
let n = t.map((e) => jm.safeParse(e)).find((e) => e.success);
|
|
5258
5262
|
return n ? n.data : void 0;
|
|
5259
|
-
},
|
|
5260
|
-
let t =
|
|
5263
|
+
}, Fm = (e) => {
|
|
5264
|
+
let t = Nm(e);
|
|
5261
5265
|
if (!t) return;
|
|
5262
|
-
let n = t.map((e) =>
|
|
5266
|
+
let n = t.map((e) => Am.safeParse(e)).find((e) => e.success);
|
|
5263
5267
|
return n ? n.data.publisher.name : void 0;
|
|
5264
|
-
},
|
|
5268
|
+
}, Im = (e) => V(e, "property", "article:author"), Lm = (e) => V(e, "property", "og:title"), Rm = (e) => {
|
|
5265
5269
|
let t = V(e, "property", "article:published_time");
|
|
5266
5270
|
return t ? t.split("T")[0] : void 0;
|
|
5267
|
-
},
|
|
5268
|
-
let t =
|
|
5271
|
+
}, zm = (e) => V(e, "property", "og:url"), Bm = (e) => {
|
|
5272
|
+
let t = Im(e), n = Lm(e), r = zm(e), i = Rm(e), a = Fm(e), { volume: o, issue: s, issn: c, jtitle: l } = Mm(e);
|
|
5269
5273
|
return L(F.Article, {
|
|
5270
5274
|
au: t ? [t] : void 0,
|
|
5271
5275
|
pub: a,
|
|
@@ -5277,8 +5281,8 @@ var Sp = (e) => {
|
|
|
5277
5281
|
volume: o,
|
|
5278
5282
|
issue: s
|
|
5279
5283
|
});
|
|
5280
|
-
},
|
|
5281
|
-
let t =
|
|
5284
|
+
}, Vm = (e) => {
|
|
5285
|
+
let t = Im(e), n = Lm(e), r = zm(e), i = Rm(e), a = Fm(e);
|
|
5282
5286
|
return R({
|
|
5283
5287
|
au: t ? [t] : void 0,
|
|
5284
5288
|
pub: a,
|
|
@@ -5286,42 +5290,42 @@ var Sp = (e) => {
|
|
|
5286
5290
|
title: n,
|
|
5287
5291
|
date: i
|
|
5288
5292
|
});
|
|
5289
|
-
},
|
|
5293
|
+
}, Hm = (e) => {
|
|
5290
5294
|
switch (V(e, "property", "og:type")) {
|
|
5291
5295
|
case "article": return U.Article;
|
|
5292
5296
|
case "podcast":
|
|
5293
5297
|
case "film": return U.AudioVisual;
|
|
5294
5298
|
default: return null;
|
|
5295
5299
|
}
|
|
5296
|
-
},
|
|
5297
|
-
switch (
|
|
5298
|
-
case U.Article: return
|
|
5299
|
-
case U.AudioVisual: return
|
|
5300
|
+
}, Um = (e) => {
|
|
5301
|
+
switch (Hm(e)) {
|
|
5302
|
+
case U.Article: return Bm(e);
|
|
5303
|
+
case U.AudioVisual: return Vm(e);
|
|
5300
5304
|
default: return null;
|
|
5301
5305
|
}
|
|
5302
|
-
},
|
|
5303
|
-
let t =
|
|
5306
|
+
}, Wm = ({ document: e }) => {
|
|
5307
|
+
let t = Um(e);
|
|
5304
5308
|
return t ? B(t) : z();
|
|
5305
|
-
},
|
|
5309
|
+
}, Gm = (e) => {
|
|
5306
5310
|
let t = /\/books\/([^/]+)/.exec(e);
|
|
5307
5311
|
return t ? t[1] : void 0;
|
|
5308
|
-
},
|
|
5312
|
+
}, Km = (e) => {
|
|
5309
5313
|
let t = e.querySelector(".sc-epFoly")?.textContent.trim();
|
|
5310
5314
|
if (t) return t.split(";").map((e) => e.trim());
|
|
5311
|
-
},
|
|
5315
|
+
}, qm = (e) => {
|
|
5312
5316
|
let t = e.querySelector("h3.sc-eEvSnX")?.textContent.trim();
|
|
5313
5317
|
if (t) return t;
|
|
5314
5318
|
let n = e.title.split("Ref:").pop();
|
|
5315
5319
|
return n ? n.trim() : void 0;
|
|
5316
|
-
},
|
|
5317
|
-
let n =
|
|
5320
|
+
}, Jm = ({ document: e, url: t }) => {
|
|
5321
|
+
let n = qm(e), r = Gm(t), i = Km(e);
|
|
5318
5322
|
return !n && !i && !r ? z() : B(I(F.Book, {
|
|
5319
5323
|
title: n,
|
|
5320
5324
|
au: i,
|
|
5321
5325
|
isbn: r,
|
|
5322
5326
|
uri: t
|
|
5323
5327
|
}));
|
|
5324
|
-
},
|
|
5328
|
+
}, Ym = (e) => {
|
|
5325
5329
|
let t = V(e, "name", "citation_title");
|
|
5326
5330
|
if (!t) return null;
|
|
5327
5331
|
let n = H(e, "name", "citation_author"), r = V(e, "name", "citation_journal_title"), i = V(e, "name", "citation_issn"), a = fs(V(e, "name", "citation_date")), o = V(e, "name", "citation_volume"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_firstpage"), l = V(e, "name", "citation_lastpage"), u = V(e, "name", "citation_doi"), d = V(e, "name", "citation_fulltext_html_url") ?? V(e, "name", "citation_pdf_url");
|
|
@@ -5338,12 +5342,12 @@ var Sp = (e) => {
|
|
|
5338
5342
|
doi: u,
|
|
5339
5343
|
uri: d
|
|
5340
5344
|
});
|
|
5341
|
-
},
|
|
5342
|
-
let t =
|
|
5345
|
+
}, Xm = (e) => {
|
|
5346
|
+
let t = Ym(e.document);
|
|
5343
5347
|
return t ? B(t) : ns(e);
|
|
5344
5348
|
}, X = /* @__PURE__ */ function(e) {
|
|
5345
5349
|
return 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.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e.LondonReviewOfBooks = "LondonReviewOfBooks", e.VitalSource = "VitalSource", e.Icono14 = "Icono14", e;
|
|
5346
|
-
}({}),
|
|
5350
|
+
}({}), Zm = {
|
|
5347
5351
|
[X.NoResourceFound]: sc,
|
|
5348
5352
|
[X.Z3988]: ns,
|
|
5349
5353
|
[X.Z3988SearchResult]: nu,
|
|
@@ -5360,35 +5364,35 @@ var Sp = (e) => {
|
|
|
5360
5364
|
[X.VuFind]: $c,
|
|
5361
5365
|
[X.ClinicalKey]: qs,
|
|
5362
5366
|
[X.DOAJ]: pc,
|
|
5363
|
-
[X.Primo]:
|
|
5364
|
-
[X.IngentaConnect]:
|
|
5365
|
-
[X.Ebscohost]:
|
|
5366
|
-
[X.OpenStax]:
|
|
5367
|
-
[X.OpenTextbook]:
|
|
5368
|
-
[X.Milne]:
|
|
5369
|
-
[X.CambridgeJournalsOnline]:
|
|
5370
|
-
[X.AhaJournals]:
|
|
5371
|
-
[X.Ijees]:
|
|
5372
|
-
[X.BloomsburyCollections]:
|
|
5373
|
-
[X.HeritageCirqa]:
|
|
5374
|
-
[X.BritishMedicalJournal]:
|
|
5375
|
-
[X.SummonSearchResult]:
|
|
5376
|
-
[X.ApplePodcasts]:
|
|
5377
|
-
[X.Arxiv]:
|
|
5378
|
-
[X.KanopyVideo]:
|
|
5379
|
-
[X.LaTrobeOpal]:
|
|
5367
|
+
[X.Primo]: Dd,
|
|
5368
|
+
[X.IngentaConnect]: Id,
|
|
5369
|
+
[X.Ebscohost]: sf,
|
|
5370
|
+
[X.OpenStax]: df,
|
|
5371
|
+
[X.OpenTextbook]: mf,
|
|
5372
|
+
[X.Milne]: _f,
|
|
5373
|
+
[X.CambridgeJournalsOnline]: vf,
|
|
5374
|
+
[X.AhaJournals]: Mf,
|
|
5375
|
+
[X.Ijees]: If,
|
|
5376
|
+
[X.BloomsburyCollections]: Qf,
|
|
5377
|
+
[X.HeritageCirqa]: np,
|
|
5378
|
+
[X.BritishMedicalJournal]: op,
|
|
5379
|
+
[X.SummonSearchResult]: sp,
|
|
5380
|
+
[X.ApplePodcasts]: pp,
|
|
5381
|
+
[X.Arxiv]: gp,
|
|
5382
|
+
[X.KanopyVideo]: yp,
|
|
5383
|
+
[X.LaTrobeOpal]: Tp,
|
|
5380
5384
|
[X.BYUScholarsArchive]: Ds,
|
|
5381
|
-
[X.Informit]:
|
|
5382
|
-
[X.Brill]:
|
|
5383
|
-
[X.HeinOnline]:
|
|
5384
|
-
[X.PrimoNde]:
|
|
5385
|
-
[X.MichiganLaw]:
|
|
5386
|
-
[X.EbookCentral]:
|
|
5387
|
-
[X.AlexanderStreetPress]:
|
|
5388
|
-
[X.LondonReviewOfBooks]:
|
|
5389
|
-
[X.VitalSource]:
|
|
5390
|
-
[X.Icono14]:
|
|
5391
|
-
},
|
|
5385
|
+
[X.Informit]: zp,
|
|
5386
|
+
[X.Brill]: rm,
|
|
5387
|
+
[X.HeinOnline]: am,
|
|
5388
|
+
[X.PrimoNde]: gm,
|
|
5389
|
+
[X.MichiganLaw]: vm,
|
|
5390
|
+
[X.EbookCentral]: Tm,
|
|
5391
|
+
[X.AlexanderStreetPress]: km,
|
|
5392
|
+
[X.LondonReviewOfBooks]: Wm,
|
|
5393
|
+
[X.VitalSource]: Jm,
|
|
5394
|
+
[X.Icono14]: Xm
|
|
5395
|
+
}, Qm = "5.45.2", $m = () => Qm, eh = [
|
|
5392
5396
|
"com.au",
|
|
5393
5397
|
"com",
|
|
5394
5398
|
"ca",
|
|
@@ -5396,8 +5400,8 @@ var Sp = (e) => {
|
|
|
5396
5400
|
"de",
|
|
5397
5401
|
"fr",
|
|
5398
5402
|
"nl"
|
|
5399
|
-
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]),
|
|
5400
|
-
version:
|
|
5403
|
+
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), th = {
|
|
5404
|
+
version: $m(),
|
|
5401
5405
|
siteRegistrations: [
|
|
5402
5406
|
{
|
|
5403
5407
|
matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
|
|
@@ -5425,7 +5429,7 @@ var Sp = (e) => {
|
|
|
5425
5429
|
parsers: [X.ScienceDirect]
|
|
5426
5430
|
},
|
|
5427
5431
|
{
|
|
5428
|
-
matcher: { hostnames:
|
|
5432
|
+
matcher: { hostnames: eh },
|
|
5429
5433
|
name: "Amazon",
|
|
5430
5434
|
parsers: [X.Amazon]
|
|
5431
5435
|
},
|
|
@@ -5630,18 +5634,18 @@ var Sp = (e) => {
|
|
|
5630
5634
|
parsers: [X.VitalSource]
|
|
5631
5635
|
}
|
|
5632
5636
|
]
|
|
5633
|
-
},
|
|
5634
|
-
matcher:
|
|
5637
|
+
}, nh = j({ hostnames: A(O()).min(1) }), rh = j({ regexp: O() }), ih = M([nh, rh]), ah = j({
|
|
5638
|
+
matcher: ih,
|
|
5635
5639
|
name: O(),
|
|
5636
5640
|
parsers: A(O()),
|
|
5637
5641
|
libraryVersionRange: O().optional()
|
|
5638
|
-
}),
|
|
5639
|
-
siteRegistrations: A(
|
|
5642
|
+
}), oh = j({
|
|
5643
|
+
siteRegistrations: A(ah),
|
|
5640
5644
|
version: O()
|
|
5641
|
-
}),
|
|
5645
|
+
}), sh = (e) => oh.safeParse(e).success, ch = (e) => ah.safeParse(e).success, lh = (e) => ih.safeParse(e).success, uh = (e) => Object.values(X).includes(e), dh = j({
|
|
5642
5646
|
url: O(),
|
|
5643
5647
|
document: eo((e) => typeof e == "object" && !!e)
|
|
5644
|
-
}),
|
|
5648
|
+
}), fh = (e) => dh.safeParse(e).success, ph = /* @__PURE__ */ e(((e, t) => {
|
|
5645
5649
|
var n = "2.0.0", r = 256;
|
|
5646
5650
|
t.exports = {
|
|
5647
5651
|
MAX_LENGTH: r,
|
|
@@ -5661,10 +5665,10 @@ var Sp = (e) => {
|
|
|
5661
5665
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5662
5666
|
FLAG_LOOSE: 2
|
|
5663
5667
|
};
|
|
5664
|
-
})),
|
|
5668
|
+
})), mh = /* @__PURE__ */ e(((e, t) => {
|
|
5665
5669
|
t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
|
|
5666
|
-
})),
|
|
5667
|
-
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } =
|
|
5670
|
+
})), hh = /* @__PURE__ */ e(((e, t) => {
|
|
5671
|
+
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = ph(), a = mh();
|
|
5668
5672
|
e = t.exports = {};
|
|
5669
5673
|
var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
|
|
5670
5674
|
["\\s", 1],
|
|
@@ -5678,10 +5682,10 @@ var Sp = (e) => {
|
|
|
5678
5682
|
a(e, i, t), u[e] = i, c[i] = t, l[i] = r, o[i] = new RegExp(t, n ? "g" : void 0), s[i] = new RegExp(r, n ? "g" : void 0);
|
|
5679
5683
|
};
|
|
5680
5684
|
h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${f}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5681
|
-
})),
|
|
5685
|
+
})), gh = /* @__PURE__ */ e(((e, t) => {
|
|
5682
5686
|
var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
|
|
5683
5687
|
t.exports = (e) => e ? typeof e == "object" ? e : n : r;
|
|
5684
|
-
})),
|
|
5688
|
+
})), _h = /* @__PURE__ */ e(((e, t) => {
|
|
5685
5689
|
var n = /^[0-9]+$/, r = (e, t) => {
|
|
5686
5690
|
if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
|
|
5687
5691
|
let r = n.test(e), i = n.test(t);
|
|
@@ -5692,7 +5696,7 @@ var Sp = (e) => {
|
|
|
5692
5696
|
rcompareIdentifiers: (e, t) => r(t, e)
|
|
5693
5697
|
};
|
|
5694
5698
|
})), Z = /* @__PURE__ */ e(((e, t) => {
|
|
5695
|
-
var n =
|
|
5699
|
+
var n = mh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = ph(), { safeRe: a, t: o } = hh(), s = gh(), { compareIdentifiers: c } = _h();
|
|
5696
5700
|
t.exports = class e {
|
|
5697
5701
|
constructor(t, c) {
|
|
5698
5702
|
if (c = s(c), t instanceof e) {
|
|
@@ -5812,7 +5816,7 @@ var Sp = (e) => {
|
|
|
5812
5816
|
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
5813
5817
|
}
|
|
5814
5818
|
};
|
|
5815
|
-
})),
|
|
5819
|
+
})), vh = /* @__PURE__ */ e(((e, t) => {
|
|
5816
5820
|
var n = Z();
|
|
5817
5821
|
t.exports = (e, t, r = !1) => {
|
|
5818
5822
|
if (e instanceof n) return e;
|
|
@@ -5823,19 +5827,19 @@ var Sp = (e) => {
|
|
|
5823
5827
|
throw e;
|
|
5824
5828
|
}
|
|
5825
5829
|
};
|
|
5826
|
-
})),
|
|
5827
|
-
var n =
|
|
5830
|
+
})), yh = /* @__PURE__ */ e(((e, t) => {
|
|
5831
|
+
var n = vh();
|
|
5828
5832
|
t.exports = (e, t) => {
|
|
5829
5833
|
let r = n(e, t);
|
|
5830
5834
|
return r ? r.version : null;
|
|
5831
5835
|
};
|
|
5832
|
-
})),
|
|
5833
|
-
var n =
|
|
5836
|
+
})), bh = /* @__PURE__ */ e(((e, t) => {
|
|
5837
|
+
var n = vh();
|
|
5834
5838
|
t.exports = (e, t) => {
|
|
5835
5839
|
let r = n(e.trim().replace(/^[=v]+/, ""), t);
|
|
5836
5840
|
return r ? r.version : null;
|
|
5837
5841
|
};
|
|
5838
|
-
})),
|
|
5842
|
+
})), xh = /* @__PURE__ */ e(((e, t) => {
|
|
5839
5843
|
var n = Z();
|
|
5840
5844
|
t.exports = (e, t, r, i, a) => {
|
|
5841
5845
|
typeof r == "string" && (a = i, i = r, r = void 0);
|
|
@@ -5845,8 +5849,8 @@ var Sp = (e) => {
|
|
|
5845
5849
|
return null;
|
|
5846
5850
|
}
|
|
5847
5851
|
};
|
|
5848
|
-
})),
|
|
5849
|
-
var n =
|
|
5852
|
+
})), Sh = /* @__PURE__ */ e(((e, t) => {
|
|
5853
|
+
var n = vh();
|
|
5850
5854
|
t.exports = (e, t) => {
|
|
5851
5855
|
let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
|
|
5852
5856
|
if (a === 0) return null;
|
|
@@ -5858,17 +5862,17 @@ var Sp = (e) => {
|
|
|
5858
5862
|
let u = l ? "pre" : "";
|
|
5859
5863
|
return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
|
|
5860
5864
|
};
|
|
5861
|
-
})),
|
|
5865
|
+
})), Ch = /* @__PURE__ */ e(((e, t) => {
|
|
5862
5866
|
var n = Z();
|
|
5863
5867
|
t.exports = (e, t) => new n(e, t).major;
|
|
5864
|
-
})),
|
|
5868
|
+
})), wh = /* @__PURE__ */ e(((e, t) => {
|
|
5865
5869
|
var n = Z();
|
|
5866
5870
|
t.exports = (e, t) => new n(e, t).minor;
|
|
5867
|
-
})),
|
|
5871
|
+
})), Th = /* @__PURE__ */ e(((e, t) => {
|
|
5868
5872
|
var n = Z();
|
|
5869
5873
|
t.exports = (e, t) => new n(e, t).patch;
|
|
5870
|
-
})),
|
|
5871
|
-
var n =
|
|
5874
|
+
})), Eh = /* @__PURE__ */ e(((e, t) => {
|
|
5875
|
+
var n = vh();
|
|
5872
5876
|
t.exports = (e, t) => {
|
|
5873
5877
|
let r = n(e, t);
|
|
5874
5878
|
return r && r.prerelease.length ? r.prerelease : null;
|
|
@@ -5876,44 +5880,44 @@ var Sp = (e) => {
|
|
|
5876
5880
|
})), Q = /* @__PURE__ */ e(((e, t) => {
|
|
5877
5881
|
var n = Z();
|
|
5878
5882
|
t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
|
|
5879
|
-
})),
|
|
5883
|
+
})), Dh = /* @__PURE__ */ e(((e, t) => {
|
|
5880
5884
|
var n = Q();
|
|
5881
5885
|
t.exports = (e, t, r) => n(t, e, r);
|
|
5882
|
-
})),
|
|
5886
|
+
})), Oh = /* @__PURE__ */ e(((e, t) => {
|
|
5883
5887
|
var n = Q();
|
|
5884
5888
|
t.exports = (e, t) => n(e, t, !0);
|
|
5885
|
-
})),
|
|
5889
|
+
})), kh = /* @__PURE__ */ e(((e, t) => {
|
|
5886
5890
|
var n = Z();
|
|
5887
5891
|
t.exports = (e, t, r) => {
|
|
5888
5892
|
let i = new n(e, r), a = new n(t, r);
|
|
5889
5893
|
return i.compare(a) || i.compareBuild(a);
|
|
5890
5894
|
};
|
|
5891
|
-
})),
|
|
5892
|
-
var n =
|
|
5895
|
+
})), Ah = /* @__PURE__ */ e(((e, t) => {
|
|
5896
|
+
var n = kh();
|
|
5893
5897
|
t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
|
|
5894
|
-
})),
|
|
5895
|
-
var n =
|
|
5898
|
+
})), jh = /* @__PURE__ */ e(((e, t) => {
|
|
5899
|
+
var n = kh();
|
|
5896
5900
|
t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
|
|
5897
|
-
})),
|
|
5901
|
+
})), Mh = /* @__PURE__ */ e(((e, t) => {
|
|
5898
5902
|
var n = Q();
|
|
5899
5903
|
t.exports = (e, t, r) => n(e, t, r) > 0;
|
|
5900
|
-
})),
|
|
5904
|
+
})), Nh = /* @__PURE__ */ e(((e, t) => {
|
|
5901
5905
|
var n = Q();
|
|
5902
5906
|
t.exports = (e, t, r) => n(e, t, r) < 0;
|
|
5903
|
-
})),
|
|
5907
|
+
})), Ph = /* @__PURE__ */ e(((e, t) => {
|
|
5904
5908
|
var n = Q();
|
|
5905
5909
|
t.exports = (e, t, r) => n(e, t, r) === 0;
|
|
5906
|
-
})),
|
|
5910
|
+
})), Fh = /* @__PURE__ */ e(((e, t) => {
|
|
5907
5911
|
var n = Q();
|
|
5908
5912
|
t.exports = (e, t, r) => n(e, t, r) !== 0;
|
|
5909
|
-
})),
|
|
5913
|
+
})), Ih = /* @__PURE__ */ e(((e, t) => {
|
|
5910
5914
|
var n = Q();
|
|
5911
5915
|
t.exports = (e, t, r) => n(e, t, r) >= 0;
|
|
5912
|
-
})),
|
|
5916
|
+
})), Lh = /* @__PURE__ */ e(((e, t) => {
|
|
5913
5917
|
var n = Q();
|
|
5914
5918
|
t.exports = (e, t, r) => n(e, t, r) <= 0;
|
|
5915
|
-
})),
|
|
5916
|
-
var n =
|
|
5919
|
+
})), Rh = /* @__PURE__ */ e(((e, t) => {
|
|
5920
|
+
var n = Ph(), r = Fh(), i = Mh(), a = Ih(), o = Nh(), s = Lh();
|
|
5917
5921
|
t.exports = (e, t, c, l) => {
|
|
5918
5922
|
switch (t) {
|
|
5919
5923
|
case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
|
|
@@ -5929,8 +5933,8 @@ var Sp = (e) => {
|
|
|
5929
5933
|
default: throw TypeError(`Invalid operator: ${t}`);
|
|
5930
5934
|
}
|
|
5931
5935
|
};
|
|
5932
|
-
})),
|
|
5933
|
-
var n = Z(), r =
|
|
5936
|
+
})), zh = /* @__PURE__ */ e(((e, t) => {
|
|
5937
|
+
var n = Z(), r = vh(), { safeRe: i, t: a } = hh();
|
|
5934
5938
|
t.exports = (e, t) => {
|
|
5935
5939
|
if (e instanceof n) return e;
|
|
5936
5940
|
if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
|
|
@@ -5946,7 +5950,7 @@ var Sp = (e) => {
|
|
|
5946
5950
|
let s = o[2];
|
|
5947
5951
|
return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
|
|
5948
5952
|
};
|
|
5949
|
-
})),
|
|
5953
|
+
})), Bh = /* @__PURE__ */ e(((e, t) => {
|
|
5950
5954
|
t.exports = class {
|
|
5951
5955
|
constructor() {
|
|
5952
5956
|
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
@@ -6036,7 +6040,7 @@ var Sp = (e) => {
|
|
|
6036
6040
|
return !1;
|
|
6037
6041
|
}
|
|
6038
6042
|
};
|
|
6039
|
-
var r = new (
|
|
6043
|
+
var r = new (Bh())(), i = gh(), a = Vh(), o = mh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = hh(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = ph(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
|
|
6040
6044
|
let n = !0, r = e.slice(), i = r.pop();
|
|
6041
6045
|
for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
|
|
6042
6046
|
return n;
|
|
@@ -6074,7 +6078,7 @@ var Sp = (e) => {
|
|
|
6074
6078
|
}
|
|
6075
6079
|
return !0;
|
|
6076
6080
|
};
|
|
6077
|
-
})),
|
|
6081
|
+
})), Vh = /* @__PURE__ */ e(((e, t) => {
|
|
6078
6082
|
var n = Symbol("SemVer ANY");
|
|
6079
6083
|
t.exports = class e {
|
|
6080
6084
|
static get ANY() {
|
|
@@ -6109,8 +6113,8 @@ var Sp = (e) => {
|
|
|
6109
6113
|
return this.operator === "" ? this.value === "" ? !0 : new l(t.value, n).test(this.value) : t.operator === "" ? t.value === "" ? !0 : new l(this.value, n).test(t.semver) : (n = r(n), n.includePrerelease && (this.value === "<0.0.0-0" || t.value === "<0.0.0-0") || !n.includePrerelease && (this.value.startsWith("<0.0.0") || t.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && t.operator.startsWith(">") || this.operator.startsWith("<") && t.operator.startsWith("<") || this.semver.version === t.semver.version && this.operator.includes("=") && t.operator.includes("=") || o(this.semver, "<", t.semver, n) && this.operator.startsWith(">") && t.operator.startsWith("<") || o(this.semver, ">", t.semver, n) && this.operator.startsWith("<") && t.operator.startsWith(">")));
|
|
6110
6114
|
}
|
|
6111
6115
|
};
|
|
6112
|
-
var r =
|
|
6113
|
-
})),
|
|
6116
|
+
var r = gh(), { safeRe: i, t: a } = hh(), o = Rh(), s = mh(), c = Z(), l = $();
|
|
6117
|
+
})), Hh = /* @__PURE__ */ e(((e, t) => {
|
|
6114
6118
|
var n = $();
|
|
6115
6119
|
t.exports = (e, t, r) => {
|
|
6116
6120
|
try {
|
|
@@ -6120,10 +6124,10 @@ var Sp = (e) => {
|
|
|
6120
6124
|
}
|
|
6121
6125
|
return t.test(e);
|
|
6122
6126
|
};
|
|
6123
|
-
})),
|
|
6127
|
+
})), Uh = /* @__PURE__ */ e(((e, t) => {
|
|
6124
6128
|
var n = $();
|
|
6125
6129
|
t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
|
|
6126
|
-
})),
|
|
6130
|
+
})), Wh = /* @__PURE__ */ e(((e, t) => {
|
|
6127
6131
|
var n = Z(), r = $();
|
|
6128
6132
|
t.exports = (e, t, i) => {
|
|
6129
6133
|
let a = null, o = null, s = null;
|
|
@@ -6136,7 +6140,7 @@ var Sp = (e) => {
|
|
|
6136
6140
|
s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
|
|
6137
6141
|
}), a;
|
|
6138
6142
|
};
|
|
6139
|
-
})),
|
|
6143
|
+
})), Gh = /* @__PURE__ */ e(((e, t) => {
|
|
6140
6144
|
var n = Z(), r = $();
|
|
6141
6145
|
t.exports = (e, t, i) => {
|
|
6142
6146
|
let a = null, o = null, s = null;
|
|
@@ -6149,8 +6153,8 @@ var Sp = (e) => {
|
|
|
6149
6153
|
s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
|
|
6150
6154
|
}), a;
|
|
6151
6155
|
};
|
|
6152
|
-
})),
|
|
6153
|
-
var n = Z(), r = $(), i =
|
|
6156
|
+
})), Kh = /* @__PURE__ */ e(((e, t) => {
|
|
6157
|
+
var n = Z(), r = $(), i = Mh();
|
|
6154
6158
|
t.exports = (e, t) => {
|
|
6155
6159
|
e = new r(e, t);
|
|
6156
6160
|
let a = new n("0.0.0");
|
|
@@ -6174,7 +6178,7 @@ var Sp = (e) => {
|
|
|
6174
6178
|
}
|
|
6175
6179
|
return a && e.test(a) ? a : null;
|
|
6176
6180
|
};
|
|
6177
|
-
})),
|
|
6181
|
+
})), qh = /* @__PURE__ */ e(((e, t) => {
|
|
6178
6182
|
var n = $();
|
|
6179
6183
|
t.exports = (e, t) => {
|
|
6180
6184
|
try {
|
|
@@ -6183,8 +6187,8 @@ var Sp = (e) => {
|
|
|
6183
6187
|
return null;
|
|
6184
6188
|
}
|
|
6185
6189
|
};
|
|
6186
|
-
})),
|
|
6187
|
-
var n = Z(), r =
|
|
6190
|
+
})), Jh = /* @__PURE__ */ e(((e, t) => {
|
|
6191
|
+
var n = Z(), r = Vh(), { ANY: i } = r, a = $(), o = Hh(), s = Mh(), c = Nh(), l = Lh(), u = Ih();
|
|
6188
6192
|
t.exports = (e, t, d, f) => {
|
|
6189
6193
|
e = new n(e, f), t = new a(t, f);
|
|
6190
6194
|
let p, m, h, g, _;
|
|
@@ -6206,17 +6210,17 @@ var Sp = (e) => {
|
|
|
6206
6210
|
}
|
|
6207
6211
|
return !0;
|
|
6208
6212
|
};
|
|
6209
|
-
})),
|
|
6210
|
-
var n =
|
|
6213
|
+
})), Yh = /* @__PURE__ */ e(((e, t) => {
|
|
6214
|
+
var n = Jh();
|
|
6211
6215
|
t.exports = (e, t, r) => n(e, t, ">", r);
|
|
6212
|
-
})),
|
|
6213
|
-
var n =
|
|
6216
|
+
})), Xh = /* @__PURE__ */ e(((e, t) => {
|
|
6217
|
+
var n = Jh();
|
|
6214
6218
|
t.exports = (e, t, r) => n(e, t, "<", r);
|
|
6215
|
-
})),
|
|
6219
|
+
})), Zh = /* @__PURE__ */ e(((e, t) => {
|
|
6216
6220
|
var n = $();
|
|
6217
6221
|
t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
|
|
6218
|
-
})),
|
|
6219
|
-
var n =
|
|
6222
|
+
})), Qh = /* @__PURE__ */ e(((e, t) => {
|
|
6223
|
+
var n = Hh(), r = Q();
|
|
6220
6224
|
t.exports = (e, t, i) => {
|
|
6221
6225
|
let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
|
|
6222
6226
|
for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
|
|
@@ -6226,8 +6230,8 @@ var Sp = (e) => {
|
|
|
6226
6230
|
let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
|
|
6227
6231
|
return u.length < d.length ? u : t;
|
|
6228
6232
|
};
|
|
6229
|
-
})),
|
|
6230
|
-
var n = $(), r =
|
|
6233
|
+
})), $h = /* @__PURE__ */ e(((e, t) => {
|
|
6234
|
+
var n = $(), r = Vh(), { ANY: i } = r, a = Hh(), o = Q(), s = (e, t, r = {}) => {
|
|
6231
6235
|
if (e === t) return !0;
|
|
6232
6236
|
e = new n(e, r), t = new n(t, r);
|
|
6233
6237
|
let i = !1;
|
|
@@ -6285,46 +6289,46 @@ var Sp = (e) => {
|
|
|
6285
6289
|
return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
|
|
6286
6290
|
};
|
|
6287
6291
|
t.exports = s;
|
|
6288
|
-
})),
|
|
6289
|
-
var n =
|
|
6292
|
+
})), eg = (/* @__PURE__ */ e(((e, t) => {
|
|
6293
|
+
var n = hh(), r = ph(), i = Z(), a = _h();
|
|
6290
6294
|
t.exports = {
|
|
6291
|
-
parse:
|
|
6292
|
-
valid:
|
|
6293
|
-
clean:
|
|
6294
|
-
inc:
|
|
6295
|
-
diff:
|
|
6296
|
-
major:
|
|
6297
|
-
minor:
|
|
6298
|
-
patch:
|
|
6299
|
-
prerelease:
|
|
6295
|
+
parse: vh(),
|
|
6296
|
+
valid: yh(),
|
|
6297
|
+
clean: bh(),
|
|
6298
|
+
inc: xh(),
|
|
6299
|
+
diff: Sh(),
|
|
6300
|
+
major: Ch(),
|
|
6301
|
+
minor: wh(),
|
|
6302
|
+
patch: Th(),
|
|
6303
|
+
prerelease: Eh(),
|
|
6300
6304
|
compare: Q(),
|
|
6301
|
-
rcompare:
|
|
6302
|
-
compareLoose:
|
|
6303
|
-
compareBuild:
|
|
6304
|
-
sort:
|
|
6305
|
-
rsort:
|
|
6306
|
-
gt:
|
|
6307
|
-
lt:
|
|
6308
|
-
eq:
|
|
6309
|
-
neq:
|
|
6310
|
-
gte:
|
|
6311
|
-
lte:
|
|
6312
|
-
cmp:
|
|
6313
|
-
coerce:
|
|
6314
|
-
Comparator:
|
|
6305
|
+
rcompare: Dh(),
|
|
6306
|
+
compareLoose: Oh(),
|
|
6307
|
+
compareBuild: kh(),
|
|
6308
|
+
sort: Ah(),
|
|
6309
|
+
rsort: jh(),
|
|
6310
|
+
gt: Mh(),
|
|
6311
|
+
lt: Nh(),
|
|
6312
|
+
eq: Ph(),
|
|
6313
|
+
neq: Fh(),
|
|
6314
|
+
gte: Ih(),
|
|
6315
|
+
lte: Lh(),
|
|
6316
|
+
cmp: Rh(),
|
|
6317
|
+
coerce: zh(),
|
|
6318
|
+
Comparator: Vh(),
|
|
6315
6319
|
Range: $(),
|
|
6316
|
-
satisfies:
|
|
6317
|
-
toComparators:
|
|
6318
|
-
maxSatisfying:
|
|
6319
|
-
minSatisfying:
|
|
6320
|
-
minVersion:
|
|
6321
|
-
validRange:
|
|
6322
|
-
outside:
|
|
6323
|
-
gtr:
|
|
6324
|
-
ltr:
|
|
6325
|
-
intersects:
|
|
6326
|
-
simplifyRange:
|
|
6327
|
-
subset:
|
|
6320
|
+
satisfies: Hh(),
|
|
6321
|
+
toComparators: Uh(),
|
|
6322
|
+
maxSatisfying: Wh(),
|
|
6323
|
+
minSatisfying: Gh(),
|
|
6324
|
+
minVersion: Kh(),
|
|
6325
|
+
validRange: qh(),
|
|
6326
|
+
outside: Jh(),
|
|
6327
|
+
gtr: Yh(),
|
|
6328
|
+
ltr: Xh(),
|
|
6329
|
+
intersects: Zh(),
|
|
6330
|
+
simplifyRange: Qh(),
|
|
6331
|
+
subset: $h(),
|
|
6328
6332
|
SemVer: i,
|
|
6329
6333
|
re: n.re,
|
|
6330
6334
|
src: n.src,
|
|
@@ -6334,12 +6338,12 @@ var Sp = (e) => {
|
|
|
6334
6338
|
compareIdentifiers: a.compareIdentifiers,
|
|
6335
6339
|
rcompareIdentifiers: a.rcompareIdentifiers
|
|
6336
6340
|
};
|
|
6337
|
-
})))(),
|
|
6338
|
-
parser:
|
|
6341
|
+
})))(), tg = (e, t) => ng(t) ? t.hostnames.includes(new URL(e).hostname) : rg(t) ? !!e.match(t.regexp) : !1, ng = (e) => nh.safeParse(e).success, rg = (e) => rh.safeParse(e).success, ig = (e, t) => t ? (0, eg.satisfies)(e, t) : !0, ag = (e, t, n) => ig(t, n.libraryVersionRange) && tg(e, n.matcher), og = (e, t) => e.siteRegistrations.filter((e) => ag(t, $m(), e)), sg = (e, t) => og(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => uh(e) && e in Zm).map((e) => ({
|
|
6342
|
+
parser: Zm[e],
|
|
6339
6343
|
parserType: e,
|
|
6340
6344
|
name: t
|
|
6341
|
-
}))),
|
|
6342
|
-
let n =
|
|
6345
|
+
}))), cg = (e, t) => {
|
|
6346
|
+
let n = sg(e, t.url);
|
|
6343
6347
|
for (let { parser: e, parserType: r, name: i } of n) {
|
|
6344
6348
|
let n = e(t);
|
|
6345
6349
|
if (qc(n) || Jc(n) || Yc(n)) return {
|
|
@@ -6359,19 +6363,19 @@ var Sp = (e) => {
|
|
|
6359
6363
|
referrer: t.url
|
|
6360
6364
|
}
|
|
6361
6365
|
};
|
|
6362
|
-
},
|
|
6366
|
+
}, lg = (e, t) => {
|
|
6363
6367
|
switch (t) {
|
|
6364
6368
|
case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
|
|
6365
6369
|
default: return new URL(`https://${e}.rl.talis.com`);
|
|
6366
6370
|
}
|
|
6367
|
-
},
|
|
6368
|
-
let n =
|
|
6371
|
+
}, ug = (e, t) => {
|
|
6372
|
+
let n = lg(e, t);
|
|
6369
6373
|
return new URL("/ui/forms/bookmarklet.html", n);
|
|
6370
|
-
},
|
|
6374
|
+
}, dg = (e, t, n) => {
|
|
6371
6375
|
let r = To(t);
|
|
6372
6376
|
r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
|
|
6373
6377
|
let i = new URL(e.toString());
|
|
6374
6378
|
return i.search = r.toString(), i;
|
|
6375
6379
|
};
|
|
6376
6380
|
//#endregion
|
|
6377
|
-
export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre,
|
|
6381
|
+
export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, nh as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Zm as PARSERS, oh as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, th as REGISTRY, rh as RegExpMatcherSchema, dh as ResourceDataSchema, mo as ResourceSchema, ah as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, ih as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, ug as getBaseBookmarkingUrl, $m as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, sh as isParserRegistry, uh as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, fh as isResourceData, ch as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, lh as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, cg as parseResource, es as summonSearchResult, dg as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
|