@nar-bus/ui-shared 1.12.0 → 1.14.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.
|
@@ -24,7 +24,28 @@ export interface OrderCreateSheetProps {
|
|
|
24
24
|
value: string;
|
|
25
25
|
label: string;
|
|
26
26
|
}>;
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Single-mode only — fired once after a submit in which at least one order
|
|
29
|
+
* was created (never on total failure). `order` is the first successful
|
|
30
|
+
* order; `meta` describes the fan-out so the consumer can decide its own
|
|
31
|
+
* feedback:
|
|
32
|
+
*
|
|
33
|
+
* - `meta.count`: number of orders that succeeded.
|
|
34
|
+
* - `meta.total`: number of targets attempted.
|
|
35
|
+
*
|
|
36
|
+
* NB-ORDER-TOAST-01: the sheet emits its own toast only when it fans out to
|
|
37
|
+
* `total > 1` (success **or** partial). It stays silent **iff `total === 1`**,
|
|
38
|
+
* where this callback is the authoritative feedback channel. So a consumer must
|
|
39
|
+
* gate its own toast on `meta.total === 1` — NOT on `meta.count`. Gating on
|
|
40
|
+
* `count === 1` re-introduces the double-toast: a partial fan-out is
|
|
41
|
+
* `{ count: 1, total: 2 }`, and the sheet has already shown its partial toast.
|
|
42
|
+
* The `meta` argument is additive for pass-in handlers; a handler declared as
|
|
43
|
+
* `(order) => …` stays assignable and simply ignores it.
|
|
44
|
+
*/
|
|
45
|
+
onOrderCreated?: (order: Order, meta: {
|
|
46
|
+
count: number;
|
|
47
|
+
total: number;
|
|
48
|
+
}) => void;
|
|
28
49
|
/** Bulk-mode only — IDs of the modems to dispatch the order onto. */
|
|
29
50
|
bulkTargetModemIds?: number[];
|
|
30
51
|
/** Bulk-mode only — drives header copy (MODEM = "N modem", METER = "N sayaç"). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderCreateSheet.d.ts","sourceRoot":"","sources":["../../src/components/OrderCreateSheet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,KAAK,EAAE,SAAS,EAAiB,aAAa,EAC/C,MAAM,UAAU,CAAC;AAiBlB,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gFAAgF;IAChF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderCreateSheet.d.ts","sourceRoot":"","sources":["../../src/components/OrderCreateSheet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,KAAK,EAAE,SAAS,EAAiB,aAAa,EAC/C,MAAM,UAAU,CAAC;AAiBlB,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,OAAO,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gFAAgF;IAChF,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAChF,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,uEAAuE;IACvE,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,8EAA8E;IAC9E,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAuCD,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,IAAe,EACf,OAAO,EACP,SAAS,EACT,OAAO,EACP,SAAS,EACT,YAAiB,EACjB,YAAiB,EACjB,cAAc,EACd,kBAAuB,EACvB,gBAA0B,EAC1B,YAAY,EACZ,QAAQ,EACR,gBAAgB,GACjB,EAAE,qBAAqB,+BA+QvB"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export interface EnumOption {
|
|
2
2
|
value: string;
|
|
3
3
|
label: string;
|
|
4
|
+
/**
|
|
5
|
+
* NB-ENUMOPT-RELKEY-01 — the backend `EnumValueResponse.relationKey` classifies
|
|
6
|
+
* an option (e.g. `FIELD_OPERATION_TITLE` values carry `relationKey="MODEM"`).
|
|
7
|
+
* Carried through from the API so a consumer can drive DB-backed classification
|
|
8
|
+
* instead of hardcoding a value set app-side. Null when the option has none.
|
|
9
|
+
*/
|
|
10
|
+
relationKey?: string | null;
|
|
4
11
|
}
|
|
5
12
|
export interface UseEnumValuesReturn {
|
|
6
13
|
options: EnumOption[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEnumValues.d.ts","sourceRoot":"","sources":["../../src/hooks/useEnumValues.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"useEnumValues.d.ts","sourceRoot":"","sources":["../../src/hooks/useEnumValues.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;CACpB;AAMD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAwBnE"}
|
package/dist/index.js
CHANGED
|
@@ -5354,7 +5354,7 @@ const Z3 = "1.17.0", z6 = 64 * 1024, { isFunction: kd } = Ce, p_ = (l) => encode
|
|
|
5354
5354
|
}
|
|
5355
5355
|
}
|
|
5356
5356
|
Ce.isString(Ie) || (Ie = Ie ? "include" : "omit");
|
|
5357
|
-
const
|
|
5357
|
+
const mi = O && "credentials" in P.prototype;
|
|
5358
5358
|
if (Ce.isFormData(ae)) {
|
|
5359
5359
|
const ht = le.getContentType();
|
|
5360
5360
|
ht && /^multipart\/form-data/i.test(ht) && !/boundary=/i.test(ht) && le.delete("content-type");
|
|
@@ -5367,7 +5367,7 @@ const Z3 = "1.17.0", z6 = 64 * 1024, { isFunction: kd } = Ce, p_ = (l) => encode
|
|
|
5367
5367
|
headers: o5(le.normalize()),
|
|
5368
5368
|
body: ae,
|
|
5369
5369
|
duplex: "half",
|
|
5370
|
-
credentials:
|
|
5370
|
+
credentials: mi ? Ie : void 0
|
|
5371
5371
|
};
|
|
5372
5372
|
Et = O && new P(pe, br);
|
|
5373
5373
|
let Sr = await (O ? ot(Et, De) : ot(pe, br));
|
|
@@ -6512,17 +6512,17 @@ const k_ = {
|
|
|
6512
6512
|
slaThreshold: 0,
|
|
6513
6513
|
trend30d: [],
|
|
6514
6514
|
belowSlaGroups: []
|
|
6515
|
-
},
|
|
6515
|
+
}, pi = (l) => typeof l == "number" && Number.isFinite(l) ? l : 0;
|
|
6516
6516
|
function qA(l) {
|
|
6517
6517
|
if (!l) return { ...k_ };
|
|
6518
6518
|
const f = Array.isArray(l.trendDays) ? l.trendDays.map((T) => T == null ? void 0 : T.percent).filter((T) => typeof T == "number" && Number.isFinite(T)) : [], v = Array.isArray(l.belowSlaGroups) ? l.belowSlaGroups.filter(
|
|
6519
6519
|
(T) => T != null && typeof T.groupName == "string" && T.groupName.length > 0 && typeof T.percent == "number" && Number.isFinite(T.percent)
|
|
6520
6520
|
).map((T) => ({ groupName: T.groupName, percent: T.percent })) : [];
|
|
6521
6521
|
return {
|
|
6522
|
-
todayRead:
|
|
6523
|
-
todayTarget:
|
|
6524
|
-
todayPercent:
|
|
6525
|
-
slaThreshold:
|
|
6522
|
+
todayRead: pi(l.readCount),
|
|
6523
|
+
todayTarget: pi(l.totalCount),
|
|
6524
|
+
todayPercent: pi(l.slaPercent),
|
|
6525
|
+
slaThreshold: pi(l.slaTarget),
|
|
6526
6526
|
trend30d: f,
|
|
6527
6527
|
belowSlaGroups: v
|
|
6528
6528
|
};
|
|
@@ -6563,13 +6563,13 @@ function $A(l) {
|
|
|
6563
6563
|
if (!l) return { ...P_ };
|
|
6564
6564
|
const f = Array.isArray(l.hourlyThroughput) ? l.hourlyThroughput.map((v) => v == null ? void 0 : v.value).filter((v) => typeof v == "number" && Number.isFinite(v)) : [];
|
|
6565
6565
|
return {
|
|
6566
|
-
inboundRate:
|
|
6567
|
-
completedRate:
|
|
6568
|
-
parseRate:
|
|
6566
|
+
inboundRate: pi(l.inboundRate),
|
|
6567
|
+
completedRate: pi(l.storedRate),
|
|
6568
|
+
parseRate: pi(l.parsedRate),
|
|
6569
6569
|
inboundStatus: c3(l.inboundStatus),
|
|
6570
6570
|
completedStatus: c3(l.storedStatus),
|
|
6571
6571
|
parseStatus: c3(l.parsedStatus),
|
|
6572
|
-
parseSuccessPercent:
|
|
6572
|
+
parseSuccessPercent: pi(l.parsedSuccessPercent),
|
|
6573
6573
|
dlqCount: Fa(l.dlqCount),
|
|
6574
6574
|
throughput1h: f
|
|
6575
6575
|
};
|
|
@@ -6591,9 +6591,9 @@ function YA(l) {
|
|
|
6591
6591
|
failedToday: Fa(l.todayFailed),
|
|
6592
6592
|
timeoutToday: Fa(l.todayTimeout),
|
|
6593
6593
|
queued: Fa(l.todayQueued),
|
|
6594
|
-
avgResponseP50:
|
|
6595
|
-
avgResponseP95:
|
|
6596
|
-
avgResponseP99:
|
|
6594
|
+
avgResponseP50: pi(l.avgResponseP50),
|
|
6595
|
+
avgResponseP95: pi(l.avgResponseP95),
|
|
6596
|
+
avgResponseP99: pi(l.avgResponseP99)
|
|
6597
6597
|
} : { ...N_ };
|
|
6598
6598
|
}
|
|
6599
6599
|
const D_ = {
|
|
@@ -6657,7 +6657,7 @@ function eS(l) {
|
|
|
6657
6657
|
if (!l) return { ...B_ };
|
|
6658
6658
|
const f = Array.isArray(l.calendars) ? l.calendars.filter((T) => T != null && typeof T == "object").map((T) => ({
|
|
6659
6659
|
name: typeof T.name == "string" ? T.name : "",
|
|
6660
|
-
progress:
|
|
6660
|
+
progress: pi(T.progress),
|
|
6661
6661
|
totalModems: Fa(T.totalModems),
|
|
6662
6662
|
completedModems: Fa(T.completedModems),
|
|
6663
6663
|
status: typeof T.status == "string" ? T.status : "",
|
|
@@ -7238,7 +7238,8 @@ function gS(l) {
|
|
|
7238
7238
|
`/api/enums/code/${l}/values`
|
|
7239
7239
|
)).data ?? []).sort((P, w) => (P.sortOrder ?? 0) - (w.sortOrder ?? 0)).map((P) => ({
|
|
7240
7240
|
value: P.enumKey,
|
|
7241
|
-
label: P.enumValue || P.enumKey
|
|
7241
|
+
label: P.enumValue || P.enumKey,
|
|
7242
|
+
relationKey: P.relationKey
|
|
7242
7243
|
})),
|
|
7243
7244
|
staleTime: 3e5,
|
|
7244
7245
|
refetchOnWindowFocus: !1
|
|
@@ -9682,7 +9683,7 @@ function SS({
|
|
|
9682
9683
|
() => Object.entries(E6).map(([Ct, nr]) => ({
|
|
9683
9684
|
category: Ct,
|
|
9684
9685
|
label: Pf[Ct],
|
|
9685
|
-
types: nr.map((
|
|
9686
|
+
types: nr.map((Yt) => ({ value: Yt, label: a2[Yt] ?? Yt }))
|
|
9686
9687
|
})),
|
|
9687
9688
|
[]
|
|
9688
9689
|
), ot = St(() => {
|
|
@@ -9691,31 +9692,31 @@ function SS({
|
|
|
9691
9692
|
return xt.map((nr) => ({
|
|
9692
9693
|
...nr,
|
|
9693
9694
|
types: nr.types.filter(
|
|
9694
|
-
(
|
|
9695
|
+
(Yt) => Yt.label.toLowerCase().includes(Ct) || Yt.value.toLowerCase().includes(Ct)
|
|
9695
9696
|
)
|
|
9696
9697
|
})).filter((nr) => nr.types.length > 0);
|
|
9697
|
-
}, [xt, ye]), It = St(() => be ? kf.some((Ct) => E6[Ct].includes(be)) : !1, [be]), Et = be ? j4.includes(be) : !1, gr = be ? kb(be, Y, Pr, lt) : null, kr = be && !Et, Rt = Object.values(Y).some((Ct) => Ct !== ""), Ar = St(() => !be || kr && !Rt && !Et ? !1 : Te ? j.length > 0 : !!lt, [be, kr, Rt, Et, Te, j, lt]),
|
|
9698
|
-
() => Pb.map(({ value: Ct, labelKey: nr, fallback:
|
|
9698
|
+
}, [xt, ye]), It = St(() => be ? kf.some((Ct) => E6[Ct].includes(be)) : !1, [be]), Et = be ? j4.includes(be) : !1, gr = be ? kb(be, Y, Pr, lt) : null, kr = be && !Et, Rt = Object.values(Y).some((Ct) => Ct !== ""), Ar = St(() => !be || kr && !Rt && !Et ? !1 : Te ? j.length > 0 : !!lt, [be, kr, Rt, Et, Te, j, lt]), mi = St(
|
|
9699
|
+
() => Pb.map(({ value: Ct, labelKey: nr, fallback: Yt }) => ({
|
|
9699
9700
|
value: Ct,
|
|
9700
|
-
label: me(nr, { defaultValue:
|
|
9701
|
+
label: me(nr, { defaultValue: Yt })
|
|
9701
9702
|
})),
|
|
9702
9703
|
[me]
|
|
9703
9704
|
), br = Kt((Ct) => {
|
|
9704
9705
|
ae((nr) => {
|
|
9705
|
-
const
|
|
9706
|
-
return
|
|
9706
|
+
const Yt = new Set(nr);
|
|
9707
|
+
return Yt.has(Ct) ? Yt.delete(Ct) : Yt.add(Ct), Yt;
|
|
9707
9708
|
});
|
|
9708
9709
|
}, []), Sr = Kt((Ct) => {
|
|
9709
9710
|
pe(Ct), ee({});
|
|
9710
9711
|
}, []);
|
|
9711
9712
|
function Pr(Ct, nr) {
|
|
9712
|
-
ee((
|
|
9713
|
+
ee((Yt) => ({ ...Yt, [Ct]: nr }));
|
|
9713
9714
|
}
|
|
9714
9715
|
const ur = Kt(() => {
|
|
9715
9716
|
f(), pe(null), Ee(""), ee({}), Ie("NORMAL"), Je(T ? String(T) : ""), rt([]), ae(/* @__PURE__ */ new Set(["METER_READOUT"]));
|
|
9716
9717
|
}, [f, T]), ht = Kt(async () => {
|
|
9717
9718
|
if (!be || !lt) return;
|
|
9718
|
-
const Ct = It ? Qe.map(Number).filter((Zr) => Zr > 0) : [], nr = Ct.length > 0 ? Ct : It && P ? [P] : [void 0],
|
|
9719
|
+
const Ct = It ? Qe.map(Number).filter((Zr) => Zr > 0) : [], nr = Ct.length > 0 ? Ct : It && P ? [P] : [void 0], Yt = nr.length, Yi = [], ba = {};
|
|
9719
9720
|
for (const [Zr, Qr] of Object.entries(Y))
|
|
9720
9721
|
if (Qr && (Qr.startsWith("[") || Qr.startsWith("{")))
|
|
9721
9722
|
try {
|
|
@@ -9739,18 +9740,18 @@ function SS({
|
|
|
9739
9740
|
} catch {
|
|
9740
9741
|
}
|
|
9741
9742
|
}
|
|
9742
|
-
const
|
|
9743
|
-
if (
|
|
9744
|
-
|
|
9743
|
+
const ni = Yi.length;
|
|
9744
|
+
if (ni === 0) {
|
|
9745
|
+
Yt > 0 && X1.error(
|
|
9745
9746
|
(Ae == null ? void 0 : Ae.failure) ?? "Order creation failed"
|
|
9746
9747
|
);
|
|
9747
9748
|
return;
|
|
9748
9749
|
}
|
|
9749
|
-
|
|
9750
|
-
((Ae == null ? void 0 : Ae.partial) ?? "{{ok}}/{{total}} orders created").replace("{{ok}}", String(
|
|
9750
|
+
Yt > 1 && (ni < Yt ? X1.error(
|
|
9751
|
+
((Ae == null ? void 0 : Ae.partial) ?? "{{ok}}/{{total}} orders created").replace("{{ok}}", String(ni)).replace("{{total}}", String(Yt))
|
|
9751
9752
|
) : X1.success(
|
|
9752
|
-
((Ae == null ? void 0 : Ae.success) ?? "{{count}} orders created").replace("{{count}}", String(
|
|
9753
|
-
)), W == null || W(Yi[0]), ur();
|
|
9753
|
+
((Ae == null ? void 0 : Ae.success) ?? "{{count}} orders created").replace("{{count}}", String(ni))
|
|
9754
|
+
)), W == null || W(Yi[0], { count: ni, total: Yt }), ur();
|
|
9754
9755
|
}, [
|
|
9755
9756
|
be,
|
|
9756
9757
|
lt,
|
|
@@ -9827,7 +9828,7 @@ function SS({
|
|
|
9827
9828
|
onSelectedMeterIdsChange: rt,
|
|
9828
9829
|
bulkHeaderText: $t,
|
|
9829
9830
|
priority: le,
|
|
9830
|
-
priorityOptions:
|
|
9831
|
+
priorityOptions: mi,
|
|
9831
9832
|
onPriorityChange: Ie
|
|
9832
9833
|
}
|
|
9833
9834
|
)
|
|
@@ -15308,7 +15309,7 @@ function vw() {
|
|
|
15308
15309
|
const s = new ve(a, e, r, n);
|
|
15309
15310
|
return (u) => s.solve(u);
|
|
15310
15311
|
}
|
|
15311
|
-
const
|
|
15312
|
+
const mi = Ar(0.25, 0.1, 0.25, 1);
|
|
15312
15313
|
function br(a, e, r) {
|
|
15313
15314
|
return Math.min(r, Math.max(e, a));
|
|
15314
15315
|
}
|
|
@@ -15348,7 +15349,7 @@ function vw() {
|
|
|
15348
15349
|
function nr(a) {
|
|
15349
15350
|
return typeof ImageBitmap < "u" && a instanceof ImageBitmap;
|
|
15350
15351
|
}
|
|
15351
|
-
const
|
|
15352
|
+
const Yt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";
|
|
15352
15353
|
function Yi(a, e, r, n, s) {
|
|
15353
15354
|
return o(this, void 0, void 0, (function* () {
|
|
15354
15355
|
if (typeof VideoFrame > "u") throw new Error("VideoFrame not supported");
|
|
@@ -15371,7 +15372,7 @@ function vw() {
|
|
|
15371
15372
|
}));
|
|
15372
15373
|
}
|
|
15373
15374
|
let ba, Ni;
|
|
15374
|
-
function
|
|
15375
|
+
function ni(a, e, r, n) {
|
|
15375
15376
|
return a.addEventListener(e, r, n), { unsubscribe: () => {
|
|
15376
15377
|
a.removeEventListener(e, r, n);
|
|
15377
15378
|
} };
|
|
@@ -16017,7 +16018,7 @@ function vw() {
|
|
|
16017
16018
|
const e = typeof a;
|
|
16018
16019
|
return a === null ? "" : e === "string" || e === "number" || e === "boolean" ? String(a) : a instanceof vt || a instanceof ua || a instanceof Ea || a instanceof Jr || a instanceof Jt || a instanceof ut || a instanceof ca || a instanceof Ma ? a.toString() : JSON.stringify(a);
|
|
16019
16020
|
}
|
|
16020
|
-
class
|
|
16021
|
+
class si {
|
|
16021
16022
|
constructor(e, r) {
|
|
16022
16023
|
this.type = e, this.value = r;
|
|
16023
16024
|
}
|
|
@@ -16027,7 +16028,7 @@ function vw() {
|
|
|
16027
16028
|
const n = e[1];
|
|
16028
16029
|
let s = hr(n);
|
|
16029
16030
|
const u = r.expectedType;
|
|
16030
|
-
return s.kind !== "array" || s.N !== 0 || !u || u.kind !== "array" || typeof u.N == "number" && u.N !== 0 || (s = u), new
|
|
16031
|
+
return s.kind !== "array" || s.N !== 0 || !u || u.kind !== "array" || typeof u.N == "number" && u.N !== 0 || (s = u), new si(s, n);
|
|
16031
16032
|
}
|
|
16032
16033
|
evaluate() {
|
|
16033
16034
|
return this.value;
|
|
@@ -16232,10 +16233,10 @@ function vw() {
|
|
|
16232
16233
|
else if (this.checkSubtype(p, _)) return null;
|
|
16233
16234
|
} else h = n(h, p, r.typeAnnotation || "assert");
|
|
16234
16235
|
}
|
|
16235
|
-
if (!(h instanceof
|
|
16236
|
+
if (!(h instanceof si) && h.type.kind !== "resolvedImage" && this._isConstant(h)) {
|
|
16236
16237
|
const p = new v0();
|
|
16237
16238
|
try {
|
|
16238
|
-
h = new
|
|
16239
|
+
h = new si(h.type, h.evaluate(p));
|
|
16239
16240
|
} catch (_) {
|
|
16240
16241
|
return this.error(_.message), null;
|
|
16241
16242
|
}
|
|
@@ -17209,7 +17210,7 @@ function vw() {
|
|
|
17209
17210
|
function Qn(a) {
|
|
17210
17211
|
return a[1] - a[0] + 1;
|
|
17211
17212
|
}
|
|
17212
|
-
function
|
|
17213
|
+
function oi(a, e) {
|
|
17213
17214
|
return a[1] >= a[0] && a[1] < e;
|
|
17214
17215
|
}
|
|
17215
17216
|
function C0(a, e) {
|
|
@@ -17225,7 +17226,7 @@ function vw() {
|
|
|
17225
17226
|
return [[a[0], a[0] + n], [a[0] + n + 1, a[1]]];
|
|
17226
17227
|
}
|
|
17227
17228
|
function M0(a, e) {
|
|
17228
|
-
if (!
|
|
17229
|
+
if (!oi(e, a.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
17229
17230
|
const r = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
|
|
17230
17231
|
for (let n = e[0]; n <= e[1]; ++n) dn(r, a[n]);
|
|
17231
17232
|
return r;
|
|
@@ -17252,7 +17253,7 @@ function vw() {
|
|
|
17252
17253
|
return Math.min(u, h);
|
|
17253
17254
|
}
|
|
17254
17255
|
function Au(a, e, r, n, s) {
|
|
17255
|
-
if (!
|
|
17256
|
+
if (!oi(e, a.length) || !oi(n, r.length)) return 1 / 0;
|
|
17256
17257
|
let u = 1 / 0;
|
|
17257
17258
|
for (let h = e[0]; h < e[1]; ++h) {
|
|
17258
17259
|
const p = a[h], _ = a[h + 1];
|
|
@@ -17265,7 +17266,7 @@ function vw() {
|
|
|
17265
17266
|
return u;
|
|
17266
17267
|
}
|
|
17267
17268
|
function A2(a, e, r, n, s) {
|
|
17268
|
-
if (!
|
|
17269
|
+
if (!oi(e, a.length) || !oi(n, r.length)) return NaN;
|
|
17269
17270
|
let u = 1 / 0;
|
|
17270
17271
|
for (let h = e[0]; h <= e[1]; ++h) for (let p = n[0]; p <= n[1]; ++p) if (u = Math.min(u, s.distance(a[h], r[p])), u === 0) return u;
|
|
17271
17272
|
return u;
|
|
@@ -17282,7 +17283,7 @@ function vw() {
|
|
|
17282
17283
|
return n;
|
|
17283
17284
|
}
|
|
17284
17285
|
function I2(a, e, r, n) {
|
|
17285
|
-
if (!
|
|
17286
|
+
if (!oi(e, a.length)) return NaN;
|
|
17286
17287
|
for (let u = e[0]; u <= e[1]; ++u) if (_i(a[u], r, !0)) return 0;
|
|
17287
17288
|
let s = 1 / 0;
|
|
17288
17289
|
for (let u = e[0]; u < e[1]; ++u) {
|
|
@@ -17335,7 +17336,7 @@ function vw() {
|
|
|
17335
17336
|
if (_[0] >= u) continue;
|
|
17336
17337
|
const y = _[1], E = e ? 50 : 100;
|
|
17337
17338
|
if (Qn(y) <= E) {
|
|
17338
|
-
if (!
|
|
17339
|
+
if (!oi(y, a.length)) return NaN;
|
|
17339
17340
|
if (e) {
|
|
17340
17341
|
const x = I2(a, y, r, n);
|
|
17341
17342
|
if (isNaN(x) || x === 0) return x;
|
|
@@ -17360,7 +17361,7 @@ function vw() {
|
|
|
17360
17361
|
if (_[0] >= h) continue;
|
|
17361
17362
|
const y = _[1], E = _[2], x = e ? 50 : 100, C = n ? 50 : 100;
|
|
17362
17363
|
if (Qn(y) <= x && Qn(E) <= C) {
|
|
17363
|
-
if (!
|
|
17364
|
+
if (!oi(y, a.length) && oi(E, r.length)) return NaN;
|
|
17364
17365
|
let S;
|
|
17365
17366
|
if (e && n) S = Au(a, y, r, E, s), h = Math.min(h, S);
|
|
17366
17367
|
else if (e && !n) {
|
|
@@ -17485,7 +17486,7 @@ function vw() {
|
|
|
17485
17486
|
return !1;
|
|
17486
17487
|
}
|
|
17487
17488
|
}
|
|
17488
|
-
const Jn = { "==": b0, "!=": fu, ">": $n, "<": _2, ">=": T0, "<=": Lo, array: wa, at: Mt, boolean: wa, case: Ja, coalesce: ks, collator: Oo, format: un, image: Yn, in: yt, "index-of": Kn, interpolate: _r, "interpolate-hcl": _r, "interpolate-lab": _r, length: ka, let: Zt, literal:
|
|
17489
|
+
const Jn = { "==": b0, "!=": fu, ">": $n, "<": _2, ">=": T0, "<=": Lo, array: wa, at: Mt, boolean: wa, case: Ja, coalesce: ks, collator: Oo, format: un, image: Yn, in: yt, "index-of": Kn, interpolate: _r, "interpolate-hcl": _r, "interpolate-lab": _r, length: ka, let: Zt, literal: si, match: kt, number: wa, "number-format": zo, object: wa, slice: qn, step: Hn, string: wa, "to-boolean": yi, "to-color": yi, "to-number": yi, "to-string": yi, var: Wn, within: hn, distance: mn, "global-state": Ls };
|
|
17489
17490
|
class Ua {
|
|
17490
17491
|
constructor(e, r, n, s) {
|
|
17491
17492
|
this.name = e, this.type = r, this._evaluate = n, this.args = s;
|
|
@@ -17567,7 +17568,7 @@ function vw() {
|
|
|
17567
17568
|
const e = a instanceof yi || a instanceof wa;
|
|
17568
17569
|
let r = !0;
|
|
17569
17570
|
return a.eachChild(((n) => {
|
|
17570
|
-
r = e ? r && Ko(n) : r && n instanceof
|
|
17571
|
+
r = e ? r && Ko(n) : r && n instanceof si;
|
|
17571
17572
|
})), !!r && qo(a) && Ho(a, ["zoom", "heatmap-density", "elevation", "line-progress", "accumulated", "is-supported-script"]);
|
|
17572
17573
|
}
|
|
17573
17574
|
function qo(a) {
|
|
@@ -18407,7 +18408,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18407
18408
|
return this._globalStateRefs;
|
|
18408
18409
|
}
|
|
18409
18410
|
}
|
|
18410
|
-
const qs = Fe,
|
|
18411
|
+
const qs = Fe, li = Ga, Pa = li.light, Hs = li.sky, Wu = li.paintProperty, z2 = li.layoutProperty;
|
|
18411
18412
|
function Ku(a, e) {
|
|
18412
18413
|
let r = !1;
|
|
18413
18414
|
if (e != null && e.length) for (const n of e) a.fire(new Fn(new Error(n.message))), r = !0;
|
|
@@ -18497,10 +18498,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18497
18498
|
return new vi(e.buffer);
|
|
18498
18499
|
}
|
|
18499
18500
|
}
|
|
18500
|
-
const
|
|
18501
|
+
const ci = {};
|
|
18501
18502
|
function Xe(a, e, r = {}) {
|
|
18502
|
-
if (
|
|
18503
|
-
Object.defineProperty(e, "_classRegistryKey", { value: a, writeable: !1 }),
|
|
18503
|
+
if (ci[a]) throw new Error(`${a} is already registered.`);
|
|
18504
|
+
Object.defineProperty(e, "_classRegistryKey", { value: a, writeable: !1 }), ci[a] = { klass: e, omit: r.omit || [], shallow: r.shallow || [] };
|
|
18504
18505
|
}
|
|
18505
18506
|
Xe("Object", Object), Xe("Set", Set), Xe("TransferableGridIndex", vi), Xe("Color", vt), Xe("Error", Error), Xe("AJAXError", On), Xe("ResolvedImage", Ma), Xe("StylePropertyFunction", Jo), Xe("StyleExpression", Fs, { omit: ["_evaluator"] }), Xe("ZoomDependentExpression", Qo), Xe("ZoomConstantExpression", Xo), Xe("CompoundExpression", Ua, { omit: ["_evaluate"] });
|
|
18506
18507
|
for (const a in Jn) Jn[a]._classRegistryKey || Xe(`Expression_${a}`, Jn[a]);
|
|
@@ -18528,15 +18529,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18528
18529
|
if (typeof a != "object") throw new Error("can't serialize object of type " + typeof a);
|
|
18529
18530
|
const r = $s(a);
|
|
18530
18531
|
if (!r) throw new Error(`can't serialize object of unregistered class ${a.constructor.name}`);
|
|
18531
|
-
if (!
|
|
18532
|
-
const { klass: n } =
|
|
18532
|
+
if (!ci[r]) throw new Error(`${r} is not registered.`);
|
|
18533
|
+
const { klass: n } = ci[r], s = n.serialize ? n.serialize(a, e) : {};
|
|
18533
18534
|
if (n.serialize) {
|
|
18534
18535
|
if (s === (e == null ? void 0 : e[e.length - 1])) throw new Error("statically serialized object won't survive transfer of $name property");
|
|
18535
18536
|
} else {
|
|
18536
18537
|
for (const u in a) {
|
|
18537
|
-
if (!a.hasOwnProperty(u) ||
|
|
18538
|
+
if (!a.hasOwnProperty(u) || ci[r].omit.includes(u)) continue;
|
|
18538
18539
|
const h = a[u];
|
|
18539
|
-
s[u] =
|
|
18540
|
+
s[u] = ci[r].shallow.includes(u) ? h : xi(h, e);
|
|
18540
18541
|
}
|
|
18541
18542
|
a instanceof Error && (s.message = a.message);
|
|
18542
18543
|
}
|
|
@@ -18548,15 +18549,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
18548
18549
|
if (Array.isArray(a)) return a.map(Ys);
|
|
18549
18550
|
if (typeof a != "object") throw new Error("can't deserialize object of type " + typeof a);
|
|
18550
18551
|
const e = $s(a) || "Object";
|
|
18551
|
-
if (!
|
|
18552
|
-
const { klass: r } =
|
|
18552
|
+
if (!ci[e]) throw new Error(`can't deserialize unregistered class ${e}`);
|
|
18553
|
+
const { klass: r } = ci[e];
|
|
18553
18554
|
if (!r) throw new Error(`can't deserialize unregistered class ${e}`);
|
|
18554
18555
|
if (r.deserialize) return r.deserialize(a);
|
|
18555
18556
|
const n = Object.create(r.prototype);
|
|
18556
18557
|
for (const s of Object.keys(a)) {
|
|
18557
18558
|
if (s === "$name") continue;
|
|
18558
18559
|
const u = a[s];
|
|
18559
|
-
n[s] =
|
|
18560
|
+
n[s] = ci[e].shallow.includes(s) ? u : Ys(u);
|
|
18560
18561
|
}
|
|
18561
18562
|
return n;
|
|
18562
18563
|
}
|
|
@@ -19039,7 +19040,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19039
19040
|
return this.visibility && (n.layout || (n.layout = {}), n.layout.visibility = this.visibility), yr(n, ((s, u) => !(s === void 0 || u === "layout" && !Object.keys(s).length || u === "paint" && !Object.keys(s).length)));
|
|
19040
19041
|
}
|
|
19041
19042
|
_validate(e, r, n, s, u = {}) {
|
|
19042
|
-
return (u == null ? void 0 : u.validate) !== !1 && Ku(this, e.call(
|
|
19043
|
+
return (u == null ? void 0 : u.validate) !== !1 && Ku(this, e.call(li, { key: r, layerType: this.type, objectKey: n, value: s, styleSpec: Fe, style: { glyphs: !0, sprite: !0 } }));
|
|
19043
19044
|
}
|
|
19044
19045
|
is3D() {
|
|
19045
19046
|
return !1;
|
|
@@ -19886,8 +19887,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19886
19887
|
e.r === this.current.r && e.g === this.current.g && e.b === this.current.b && e.a === this.current.a || (this.current = e, this.gl.uniform4f(this.location, e.r, e.g, e.b, e.a));
|
|
19887
19888
|
}
|
|
19888
19889
|
}
|
|
19889
|
-
const
|
|
19890
|
-
function
|
|
19890
|
+
const ui = new Float32Array(16);
|
|
19891
|
+
function di(a) {
|
|
19891
19892
|
return [at(255 * a.r, 255 * a.g), at(255 * a.b, 255 * a.a)];
|
|
19892
19893
|
}
|
|
19893
19894
|
class Na {
|
|
@@ -19933,7 +19934,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19933
19934
|
}
|
|
19934
19935
|
_setPaintValue(e, r, n) {
|
|
19935
19936
|
if (this.type === "color") {
|
|
19936
|
-
const s =
|
|
19937
|
+
const s = di(n);
|
|
19937
19938
|
for (let u = e; u < r; u++) this.paintVertexArray.emplace(u, s[0], s[1]);
|
|
19938
19939
|
} else {
|
|
19939
19940
|
for (let s = e; s < r; s++) this.paintVertexArray.emplace(s, n);
|
|
@@ -19962,7 +19963,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
19962
19963
|
}
|
|
19963
19964
|
_setPaintValue(e, r, n, s) {
|
|
19964
19965
|
if (this.type === "color") {
|
|
19965
|
-
const u =
|
|
19966
|
+
const u = di(n), h = di(s);
|
|
19966
19967
|
for (let p = e; p < r; p++) this.paintVertexArray.emplace(p, u[0], u[1], h[0], h[1]);
|
|
19967
19968
|
} else {
|
|
19968
19969
|
for (let u = e; u < r; u++) this.paintVertexArray.emplace(u, n, s);
|
|
@@ -21577,8 +21578,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
21577
21578
|
for (const Oe of S) {
|
|
21578
21579
|
const ze = [], Pe = [];
|
|
21579
21580
|
for (const Me of Oe) {
|
|
21580
|
-
const Ge = Me.x, He = Me.y, We = B[0] * Ge + B[4] * He + B[12], Ze = B[1] * Ge + B[5] * He + B[13], ct = B[2] * Ge + B[6] * He + B[14], Pt = B[3] * Ge + B[7] * He + B[15], Dt = ct + X, Bt = Pt + J, na = We + he, lr = Ze + ge, Cr = ct + Re, zr = Pt + Se,
|
|
21581
|
-
|
|
21581
|
+
const Ge = Me.x, He = Me.y, We = B[0] * Ge + B[4] * He + B[12], Ze = B[1] * Ge + B[5] * He + B[13], ct = B[2] * Ge + B[6] * He + B[14], Pt = B[3] * Ge + B[7] * He + B[15], Dt = ct + X, Bt = Pt + J, na = We + he, lr = Ze + ge, Cr = ct + Re, zr = Pt + Se, Qt = new O((We + G) / Bt, (Ze + K) / Bt);
|
|
21582
|
+
Qt.z = Dt / Bt, ze.push(Qt);
|
|
21582
21583
|
const Hr = new O(na / zr, lr / zr);
|
|
21583
21584
|
Hr.z = Cr / zr, Pe.push(Hr);
|
|
21584
21585
|
}
|
|
@@ -23225,20 +23226,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23225
23226
|
let Ze = 0, ct = 0, Pt = 0, Dt = 0;
|
|
23226
23227
|
const Bt = Pe === "right" ? 1 : Pe === "left" ? 0 : 0.5, na = Lr / We;
|
|
23227
23228
|
let lr = 0;
|
|
23228
|
-
for (const
|
|
23229
|
-
|
|
23230
|
-
const Hr =
|
|
23229
|
+
for (const Qt of Se) {
|
|
23230
|
+
Qt.trim();
|
|
23231
|
+
const Hr = Qt.getMaxScale(), fa = { positionedGlyphs: [], lineOffset: 0 };
|
|
23231
23232
|
J.positionedLines[lr] = fa;
|
|
23232
23233
|
const ga = fa.positionedGlyphs;
|
|
23233
23234
|
let La = 0;
|
|
23234
|
-
if (!
|
|
23235
|
+
if (!Qt.length()) {
|
|
23235
23236
|
ct += Oe, ++lr;
|
|
23236
23237
|
continue;
|
|
23237
23238
|
}
|
|
23238
|
-
const sa = L8(Re,
|
|
23239
|
+
const sa = L8(Re, Qt, na);
|
|
23239
23240
|
let Oa = 0;
|
|
23240
|
-
for (const Fr of
|
|
23241
|
-
const ar =
|
|
23241
|
+
for (const Fr of Qt.text) {
|
|
23242
|
+
const ar = Qt.getSection(Oa), wr = Fr.codePointAt(0), cr = O8(Me, He, wr), Br = { glyph: wr, imageName: null, x: Ze, y: ct + -17, vertical: cr, scale: 1, fontStack: "", sectionIndex: Qt.getSectionIndex(Oa), metrics: null, rect: null };
|
|
23242
23243
|
let Sn;
|
|
23243
23244
|
if ("fontStack" in ar) {
|
|
23244
23245
|
if (Sn = z8(ar, wr, cr, sa, he, ge), !Sn) continue;
|
|
@@ -23251,15 +23252,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23251
23252
|
Br.y += gs, Br.scale = ar.scale, Br.metrics = Ic, Br.rect = Ii, ga.push(Br), cr ? (J.verticalizable = !0, Ze += ("imageName" in ar ? Ic.advance : Lr) * ar.scale + Ge) : Ze += Ic.advance * ar.scale + Ge, Oa++;
|
|
23252
23253
|
}
|
|
23253
23254
|
ga.length !== 0 && (Pt = Math.max(Ze - Ge, Pt), B8(ga, 0, ga.length - 1, Bt)), Ze = 0, fa.lineOffset = Math.max(La, (Hr - 1) * Lr);
|
|
23254
|
-
const
|
|
23255
|
-
ct +=
|
|
23255
|
+
const hi = Oe * Hr + La;
|
|
23256
|
+
ct += hi, Dt = Math.max(hi, Dt), ++lr;
|
|
23256
23257
|
}
|
|
23257
23258
|
const { horizontalAlign: Cr, verticalAlign: zr } = x1(ze);
|
|
23258
|
-
(function(
|
|
23259
|
+
(function(Qt, Hr, fa, ga, La, sa, Oa, hi, Fr) {
|
|
23259
23260
|
const ar = (Hr - fa) * La;
|
|
23260
23261
|
let wr = 0;
|
|
23261
|
-
wr = sa !== Oa ? -
|
|
23262
|
-
for (const cr of
|
|
23262
|
+
wr = sa !== Oa ? -hi * ga - -17 : -ga * Fr * Oa + 0.5 * Oa;
|
|
23263
|
+
for (const cr of Qt) for (const Br of cr.positionedGlyphs) Br.x += ar, Br.y += wr;
|
|
23263
23264
|
})(J.positionedLines, Bt, Cr, zr, Pt, Dt, Oe, ct, Se.length), J.top += -zr * ct, J.bottom = J.top + ct, J.left += -Cr * Pt, J.right = J.left + Pt;
|
|
23264
23265
|
})(X, e, r, n, B, h, p, _, x, y, C, D), !(function(J) {
|
|
23265
23266
|
for (const he of J) if (he.positionedGlyphs.length !== 0) return !1;
|
|
@@ -23739,7 +23740,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
23739
23740
|
if (n.value.kind === "constant" && n.value.value instanceof Ea) h(n.value.value.sections);
|
|
23740
23741
|
else if (n.value.kind === "source" || n.value.kind === "composite") {
|
|
23741
23742
|
const p = (y) => {
|
|
23742
|
-
u || (y instanceof
|
|
23743
|
+
u || (y instanceof si && hr(y.value) === ws ? h(y.value.sections) : y instanceof un ? h(y.sections) : y.eachChild(p));
|
|
23743
23744
|
}, _ = n.value;
|
|
23744
23745
|
_._styleExpression && p(_._styleExpression.expression);
|
|
23745
23746
|
}
|
|
@@ -24604,7 +24605,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
24604
24605
|
if (e >= 4) for (let n = a[0]; r < e - 4; r += 4) n = a[r] += n, n = a[r + 1] += n, n = a[r + 2] += n, n = a[r + 3] += n;
|
|
24605
24606
|
for (; r !== a.length; ) a[r] += a[r - 1], ++r;
|
|
24606
24607
|
}
|
|
24607
|
-
var aa, Ai, lo, Ka,
|
|
24608
|
+
var aa, Ai, lo, Ka, Xt, Or, Ip, ps;
|
|
24608
24609
|
function Ia(a, e) {
|
|
24609
24610
|
const r = (function(n, s) {
|
|
24610
24611
|
const u = n[s.get()], h = Object.values(aa)[u >> 4];
|
|
@@ -24643,7 +24644,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
24643
24644
|
a.VAR_BINARY = "VAR_BINARY", a.GEOMETRIES = "GEOMETRIES", a.PARTS = "PARTS", a.RINGS = "RINGS", a.TRIANGLES = "TRIANGLES", a.SYMBOL = "SYMBOL", a.DICTIONARY = "DICTIONARY";
|
|
24644
24645
|
})(Ka || (Ka = {})), (function(a) {
|
|
24645
24646
|
a[a.FLAT = 0] = "FLAT", a[a.CONST = 1] = "CONST", a[a.SEQUENCE = 2] = "SEQUENCE", a[a.DICTIONARY = 3] = "DICTIONARY", a[a.FSST_DICTIONARY = 4] = "FSST_DICTIONARY";
|
|
24646
|
-
})(
|
|
24647
|
+
})(Xt || (Xt = {}));
|
|
24647
24648
|
class Si {
|
|
24648
24649
|
constructor(e, r) {
|
|
24649
24650
|
this.values = e, this._size = r;
|
|
@@ -24965,12 +24966,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
24965
24966
|
}
|
|
24966
24967
|
function wd(a, e, r, n, s = "int32") {
|
|
24967
24968
|
const u = a.logicalLevelTechnique1;
|
|
24968
|
-
if (u === At.RLE) return a.runs === 1 ?
|
|
24969
|
-
if (u !== At.DELTA || a.logicalLevelTechnique2 !== At.RLE) return a.numValues === 1 ?
|
|
24969
|
+
if (u === At.RLE) return a.runs === 1 ? Xt.CONST : Xt.FLAT;
|
|
24970
|
+
if (u !== At.DELTA || a.logicalLevelTechnique2 !== At.RLE) return a.numValues === 1 ? Xt.CONST : Xt.FLAT;
|
|
24970
24971
|
const h = e instanceof Si ? e.size() : e;
|
|
24971
|
-
if (a.numRleValues !== h) return
|
|
24972
|
-
if (a.runs === 1) return
|
|
24973
|
-
if (a.runs !== 2) return a.numValues === 1 ?
|
|
24972
|
+
if (a.numRleValues !== h) return Xt.FLAT;
|
|
24973
|
+
if (a.runs === 1) return Xt.SEQUENCE;
|
|
24974
|
+
if (a.runs !== 2) return a.numValues === 1 ? Xt.CONST : Xt.FLAT;
|
|
24974
24975
|
const p = n.get();
|
|
24975
24976
|
if (a.physicalLevelTechnique === hs.VARINT) return (function(E, x, C) {
|
|
24976
24977
|
const S = new Tp(x.get());
|
|
@@ -24980,9 +24981,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
24980
24981
|
}
|
|
24981
24982
|
const D = ma(E, S, 4);
|
|
24982
24983
|
return D[2] === 2 && D[3] === 2;
|
|
24983
|
-
})(r, n, s) ?
|
|
24984
|
+
})(r, n, s) ? Xt.SEQUENCE : a.numValues === 1 ? Xt.CONST : Xt.FLAT;
|
|
24984
24985
|
const _ = n.get(), y = new Int32Array(r.buffer, r.byteOffset + _, 4);
|
|
24985
|
-
return n.set(p), y[2] === 2 && y[3] === 2 ?
|
|
24986
|
+
return n.set(p), y[2] === 2 && y[3] === 2 ? Xt.SEQUENCE : a.numValues === 1 ? Xt.CONST : Xt.FLAT;
|
|
24986
24987
|
}
|
|
24987
24988
|
class Pp extends Ed {
|
|
24988
24989
|
getValueFromBuffer(e) {
|
|
@@ -25304,7 +25305,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25304
25305
|
function s7(a, e, r, n, s) {
|
|
25305
25306
|
const u = Ia(a, r);
|
|
25306
25307
|
let h, p, _, y;
|
|
25307
|
-
if (wd(u, n, a, r) ===
|
|
25308
|
+
if (wd(u, n, a, r) === Xt.CONST) {
|
|
25308
25309
|
const Z = V1(a, r, u);
|
|
25309
25310
|
let G, K, X, J;
|
|
25310
25311
|
for (let he = 0; he < e - 1; he++) {
|
|
@@ -25555,11 +25556,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25555
25556
|
case 3:
|
|
25556
25557
|
return (function(D, L, B, V, Z) {
|
|
25557
25558
|
const G = Ia(D, L), K = wd(G, Z, D, L), X = V.physicalType === 3;
|
|
25558
|
-
if (K ===
|
|
25559
|
+
if (K === Xt.FLAT) {
|
|
25559
25560
|
const he = Ac(Z) ? Z : void 0, ge = X ? B1(D, L, G, 0, he) : qa(D, L, G, 0, he);
|
|
25560
25561
|
return new C1(B.name, ge, Z);
|
|
25561
25562
|
}
|
|
25562
|
-
if (K ===
|
|
25563
|
+
if (K === Xt.SEQUENCE) {
|
|
25563
25564
|
const he = Cp(D, L, G);
|
|
25564
25565
|
return new R1(B.name, he[0], he[1], G.numRleValues);
|
|
25565
25566
|
}
|
|
@@ -25626,7 +25627,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25626
25627
|
case 5:
|
|
25627
25628
|
return (function(D, L, B, V, Z) {
|
|
25628
25629
|
const G = Ia(D, L), K = wd(G, V, D, L, "int64"), X = Z.physicalType === 5;
|
|
25629
|
-
if (K ===
|
|
25630
|
+
if (K === Xt.FLAT) {
|
|
25630
25631
|
const he = Ac(V) ? V : void 0, ge = X ? (function(Re, Se, Oe, ze) {
|
|
25631
25632
|
return (function(Pe, Me, Ge) {
|
|
25632
25633
|
let He;
|
|
@@ -25639,7 +25640,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25639
25640
|
let Bt = 0, na = 0n;
|
|
25640
25641
|
for (let lr = 0; lr < ct; lr++) {
|
|
25641
25642
|
const Cr = Number(Ze[lr]), zr = Sa(Ze[lr + ct]);
|
|
25642
|
-
for (let
|
|
25643
|
+
for (let Qt = 0; Qt < Cr; Qt++) na += zr, Dt[Bt++] = na;
|
|
25643
25644
|
}
|
|
25644
25645
|
return Dt;
|
|
25645
25646
|
})(Pe, We.runs, We.numRleValues);
|
|
@@ -25677,7 +25678,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25677
25678
|
})(D, L, G, he) : Rp(D, L, G, he);
|
|
25678
25679
|
return new Pp(B.name, ge, V);
|
|
25679
25680
|
}
|
|
25680
|
-
if (K ===
|
|
25681
|
+
if (K === Xt.SEQUENCE) {
|
|
25681
25682
|
const he = Mp(D, L, G);
|
|
25682
25683
|
return new Np(B.name, he[0], he[1], G.numRleValues);
|
|
25683
25684
|
}
|
|
@@ -25893,21 +25894,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25893
25894
|
if (!p || p.type !== "logicalType" || p.logicalType !== 0) throw new Error(`ID column must be a logical ID scalar type: ${n}`);
|
|
25894
25895
|
const _ = p.longID ? 6 : 4, y = typeof u == "number" ? void 0 : u, E = wd(s, u, a, r, _ === 6 ? "int64" : "int32");
|
|
25895
25896
|
if (_ === 4) switch (E) {
|
|
25896
|
-
case
|
|
25897
|
+
case Xt.FLAT: {
|
|
25897
25898
|
const x = qa(a, r, s, 0, y);
|
|
25898
25899
|
return new C1(n, x, u);
|
|
25899
25900
|
}
|
|
25900
|
-
case
|
|
25901
|
+
case Xt.SEQUENCE: {
|
|
25901
25902
|
const x = Cp(a, r, s);
|
|
25902
25903
|
return new R1(n, x[0], x[1], s.numRleValues);
|
|
25903
25904
|
}
|
|
25904
|
-
case
|
|
25905
|
+
case Xt.CONST: {
|
|
25905
25906
|
const x = V1(a, r, s);
|
|
25906
25907
|
return new k1(n, x, u, !1);
|
|
25907
25908
|
}
|
|
25908
25909
|
}
|
|
25909
25910
|
switch (E) {
|
|
25910
|
-
case
|
|
25911
|
+
case Xt.FLAT: {
|
|
25911
25912
|
if (h) {
|
|
25912
25913
|
const C = (function(S, D, L) {
|
|
25913
25914
|
const B = (function(V, Z, G) {
|
|
@@ -25944,11 +25945,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
25944
25945
|
const x = Rp(a, r, s, y);
|
|
25945
25946
|
return new Pp(n, x, u);
|
|
25946
25947
|
}
|
|
25947
|
-
case
|
|
25948
|
+
case Xt.SEQUENCE: {
|
|
25948
25949
|
const x = Mp(a, r, s);
|
|
25949
25950
|
return new Np(n, x[0], x[1], s.numRleValues);
|
|
25950
25951
|
}
|
|
25951
|
-
case
|
|
25952
|
+
case Xt.CONST: {
|
|
25952
25953
|
const x = kp(a, r, s);
|
|
25953
25954
|
return new Gp(n, x, u, !1);
|
|
25954
25955
|
}
|
|
@@ -26341,13 +26342,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26341
26342
|
(u.textFitWidth || u.textFitHeight) && (y = ap(a)), V = Ad(E, 0, Me[0]), G = Ad(x, 0, Me[1]), Z = Ad(E, Me[0], Me[2]), K = Ad(x, Me[1], Me[3]), X = Me[0] - V, he = Me[1] - G, J = Ge - Z, ge = He - K;
|
|
26342
26343
|
}
|
|
26343
26344
|
const Re = y.x1, Se = y.y1, Oe = y.x2 - Re, ze = y.y2 - Se, Pe = (Me, Ge, He, We) => {
|
|
26344
|
-
const Ze = Sd(Me.stretch - V, Z, Oe, Re), ct = Id(Me.fixed - X, J, Me.stretch, S), Pt = Sd(Ge.stretch - G, K, ze, Se), Dt = Id(Ge.fixed - he, ge, Ge.stretch, D), Bt = Sd(He.stretch - V, Z, Oe, Re), na = Id(He.fixed - X, J, He.stretch, S), lr = Sd(We.stretch - G, K, ze, Se), Cr = Id(We.fixed - he, ge, We.stretch, D), zr = new O(Ze, Pt),
|
|
26345
|
+
const Ze = Sd(Me.stretch - V, Z, Oe, Re), ct = Id(Me.fixed - X, J, Me.stretch, S), Pt = Sd(Ge.stretch - G, K, ze, Se), Dt = Id(Ge.fixed - he, ge, Ge.stretch, D), Bt = Sd(He.stretch - V, Z, Oe, Re), na = Id(He.fixed - X, J, He.stretch, S), lr = Sd(We.stretch - G, K, ze, Se), Cr = Id(We.fixed - he, ge, We.stretch, D), zr = new O(Ze, Pt), Qt = new O(Bt, Pt), Hr = new O(Bt, lr), fa = new O(Ze, lr), ga = new O(ct / h, Dt / h), La = new O(na / h, Cr / h), sa = e * Math.PI / 180;
|
|
26345
26346
|
if (sa) {
|
|
26346
26347
|
const Fr = Math.sin(sa), ar = Math.cos(sa), wr = [ar, -Fr, Fr, ar];
|
|
26347
|
-
zr._matMult(wr),
|
|
26348
|
+
zr._matMult(wr), Qt._matMult(wr), fa._matMult(wr), Hr._matMult(wr);
|
|
26348
26349
|
}
|
|
26349
|
-
const Oa = Me.stretch + Me.fixed,
|
|
26350
|
-
return { tl: zr, tr:
|
|
26350
|
+
const Oa = Me.stretch + Me.fixed, hi = Ge.stretch + Ge.fixed;
|
|
26351
|
+
return { tl: zr, tr: Qt, bl: fa, br: Hr, tex: { x: u.paddedRect.x + 1 + Oa, y: u.paddedRect.y + 1 + hi, w: He.stretch + He.fixed - Oa, h: We.stretch + We.fixed - hi }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: ga, pixelOffsetBR: La, minFontScaleX: J / h / Oe, minFontScaleY: ge / h / ze, isSDF: r };
|
|
26351
26352
|
};
|
|
26352
26353
|
if (n && (u.stretchX || u.stretchY)) {
|
|
26353
26354
|
const Me = l6(E, L, S), Ge = l6(x, B, D);
|
|
@@ -26582,18 +26583,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26582
26583
|
let Pe;
|
|
26583
26584
|
n && ze !== "none" && (a.allowVerticalPlacement && r.vertical && (Pe = ip(n, r.vertical, ze, S.get("icon-text-fit-padding"), D, B)), L && (n = ip(n, L, ze, S.get("icon-text-fit-padding"), D, B)));
|
|
26584
26585
|
const Me = E ? x.line.getGranularityForZoomLevel(E.z) : 1, Ge = (He, We) => {
|
|
26585
|
-
We.x < 0 || We.x >= ot || We.y < 0 || We.y >= ot || (function(Ze, ct, Pt, Dt, Bt, na, lr, Cr, zr,
|
|
26586
|
+
We.x < 0 || We.x >= ot || We.y < 0 || We.y >= ot || (function(Ze, ct, Pt, Dt, Bt, na, lr, Cr, zr, Qt, Hr, fa, ga, La, sa, Oa, hi, Fr, ar, wr, cr, Br, Sn, Ii, Ic) {
|
|
26586
26587
|
const gs = Ze.addToLineVertexArray(ct, Pt);
|
|
26587
26588
|
let co, Bl, Vl, Ul, p6 = 0, m6 = 0, f6 = 0, g6 = 0, $1 = -1, Y1 = -1;
|
|
26588
26589
|
const In = {};
|
|
26589
26590
|
let y6 = Dr("");
|
|
26590
26591
|
if (Ze.allowVerticalPlacement && Dt.vertical) {
|
|
26591
26592
|
const ya = Cr.layout.get("text-rotate").evaluate(cr, {}, Ii) + 90;
|
|
26592
|
-
Vl = new Cd(zr, ct,
|
|
26593
|
+
Vl = new Cd(zr, ct, Qt, Hr, fa, Dt.vertical, ga, La, sa, ya), lr && (Ul = new Cd(zr, ct, Qt, Hr, fa, lr, hi, Fr, sa, ya));
|
|
26593
26594
|
}
|
|
26594
26595
|
if (Bt) {
|
|
26595
26596
|
const ya = Cr.layout.get("icon-rotate").evaluate(cr, {}), ii = Cr.layout.get("icon-text-fit") !== "none", uo = o6(Bt, ya, Sn, ii), Mi = lr ? o6(lr, ya, Sn, ii) : void 0;
|
|
26596
|
-
Bl = new Cd(zr, ct,
|
|
26597
|
+
Bl = new Cd(zr, ct, Qt, Hr, fa, Bt, hi, Fr, !1, ya), p6 = 4 * uo.length;
|
|
26597
26598
|
const ho = Ze.iconSizeData;
|
|
26598
26599
|
let $i = null;
|
|
26599
26600
|
ho.kind === "source" ? ($i = [wn * Cr.layout.get("icon-size").evaluate(cr, {})], $i[0] > us && dr(`${Ze.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : ho.kind === "composite" && ($i = [wn * Br.compositeIconSizes[0].evaluate(cr, {}, Ii), wn * Br.compositeIconSizes[1].evaluate(cr, {}, Ii)], ($i[0] > us || $i[1] > us) && dr(`${Ze.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), Ze.addSymbols(Ze.icon, uo, $i, wr, ar, cr, w.ax.none, ct, gs.lineStartIndex, gs.lineLength, -1, Ii), $1 = Ze.icon.placedSymbolArray.length - 1, Mi && (m6 = 4 * Mi.length, Ze.addSymbols(Ze.icon, Mi, $i, wr, ar, cr, w.ax.vertical, ct, gs.lineStartIndex, gs.lineLength, -1, Ii), Y1 = Ze.icon.placedSymbolArray.length - 1);
|
|
@@ -26604,7 +26605,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26604
26605
|
if (!co) {
|
|
26605
26606
|
y6 = Dr(ii.text);
|
|
26606
26607
|
const Mi = Cr.layout.get("text-rotate").evaluate(cr, {}, Ii);
|
|
26607
|
-
co = new Cd(zr, ct,
|
|
26608
|
+
co = new Cd(zr, ct, Qt, Hr, fa, ii, ga, La, sa, Mi);
|
|
26608
26609
|
}
|
|
26609
26610
|
const uo = ii.positionedLines.length === 1;
|
|
26610
26611
|
if (f6 += d6(Ze, ct, ii, na, Cr, sa, cr, Oa, gs, Dt.vertical ? w.ax.horizontal : w.ax.horizontalOnly, uo ? _6 : [ya], In, $1, Br, Ii), uo) break;
|
|
@@ -26624,7 +26625,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26624
26625
|
}
|
|
26625
26626
|
return [uo, ya.length];
|
|
26626
26627
|
})(Ze.textAnchorOffsets, j7);
|
|
26627
|
-
Ze.symbolInstances.emplaceBack(ct.x, ct.y, In.right >= 0 ? In.right : -1, In.center >= 0 ? In.center : -1, In.left >= 0 ? In.left : -1, In.vertical || -1, $1, Y1, y6, O7, z7, F7, B7, V7, U7, G7, Z7,
|
|
26628
|
+
Ze.symbolInstances.emplaceBack(ct.x, ct.y, In.right >= 0 ? In.right : -1, In.center >= 0 ? In.center : -1, In.left >= 0 ? In.left : -1, In.vertical || -1, $1, Y1, y6, O7, z7, F7, B7, V7, U7, G7, Z7, Qt, f6, g6, p6, m6, v6, 0, ga, Ci, W7, K7);
|
|
26628
26629
|
})(a, We, He, r, n, s, Pe, a.layers[0], a.collisionBoxArray, e.index, e.sourceLayerIndex, a.index, V, [X, X, X, X], ge, _, G, J, Re, D, e, u, y, E, h);
|
|
26629
26630
|
};
|
|
26630
26631
|
if (Se === "line") for (const He of Jp(e.geometry, 0, 0, ot, ot)) {
|
|
@@ -26661,7 +26662,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26661
26662
|
const Dt = J ? [Pe.x + Pt, Pe.y] : [0, 0];
|
|
26662
26663
|
let Bt = J ? [0, 0] : [Pe.x + Pt + K[0], Pe.y + K[1] - Ze], na = [0, 0];
|
|
26663
26664
|
ct && (na = Bt, Bt = [0, 0]);
|
|
26664
|
-
const lr = Pe.metrics.isDoubleResolution ? 2 : 1, Cr = (Pe.metrics.left - Ge) * Pe.scale - Pt + Bt[0], zr = (-Pe.metrics.top - Ge) * Pe.scale + Bt[1],
|
|
26665
|
+
const lr = Pe.metrics.isDoubleResolution ? 2 : 1, Cr = (Pe.metrics.left - Ge) * Pe.scale - Pt + Bt[0], zr = (-Pe.metrics.top - Ge) * Pe.scale + Bt[1], Qt = Cr + Me.w / lr * Pe.scale / We, Hr = zr + Me.h / lr * Pe.scale / We, fa = new O(Cr, zr), ga = new O(Qt, zr), La = new O(Cr, Hr), sa = new O(Qt, Hr);
|
|
26665
26666
|
if (ct) {
|
|
26666
26667
|
const Fr = new O(-Pt, Pt - -17), ar = -Math.PI / 2, wr = 12 - Pt, cr = new O(22 - wr, -(Pe.imageName ? wr : 0)), Br = new O(...na);
|
|
26667
26668
|
fa._rotateAround(ar, Fr)._add(cr)._add(Br), ga._rotateAround(ar, Fr)._add(cr)._add(Br), La._rotateAround(ar, Fr)._add(cr)._add(Br), sa._rotateAround(ar, Fr)._add(cr)._add(Br);
|
|
@@ -26670,8 +26671,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26670
26671
|
const Fr = Math.sin(Se), ar = Math.cos(Se), wr = [ar, -Fr, Fr, ar];
|
|
26671
26672
|
fa._matMult(wr), ga._matMult(wr), La._matMult(wr), sa._matMult(wr);
|
|
26672
26673
|
}
|
|
26673
|
-
const Oa = new O(0, 0),
|
|
26674
|
-
Oe.push({ tl: fa, tr: ga, bl: La, br: sa, tex: Me, writingMode: G.writingMode, glyphOffset: Dt, sectionIndex: Pe.sectionIndex, isSDF: He, pixelOffsetTL: Oa, pixelOffsetBR:
|
|
26674
|
+
const Oa = new O(0, 0), hi = new O(0, 0);
|
|
26675
|
+
Oe.push({ tl: fa, tr: ga, bl: La, br: sa, tex: Me, writingMode: G.writingMode, glyphOffset: Dt, sectionIndex: Pe.sectionIndex, isSDF: He, pixelOffsetTL: Oa, pixelOffsetBR: hi, minFontScaleX: 0, minFontScaleY: 0 });
|
|
26675
26676
|
}
|
|
26676
26677
|
return Oe;
|
|
26677
26678
|
})(0, r, p, s, u, h, n, a.allowVerticalPlacement), B = a.textSizeData;
|
|
@@ -26692,7 +26693,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26692
26693
|
} else s[e] = [];
|
|
26693
26694
|
return s[e].push(n), !1;
|
|
26694
26695
|
}
|
|
26695
|
-
w.$ = eu, w.A = fe, w.B = nl, w.C = Ku, w.D = tt, w.E = Ao, w.F =
|
|
26696
|
+
w.$ = eu, w.A = fe, w.B = nl, w.C = Ku, w.D = tt, w.E = Ao, w.F = li, w.G = function([a, e, r]) {
|
|
26696
26697
|
return e += 90, e *= Math.PI / 180, r *= Math.PI / 180, { x: a * Math.cos(e) * Math.sin(r), y: a * Math.sin(e) * Math.sin(r), z: a * Math.cos(r) };
|
|
26697
26698
|
}, w.H = Ra, w.I = v1, w.J = jt, w.K = Hs, w.L = function(a) {
|
|
26698
26699
|
if (Ct == null) {
|
|
@@ -26702,7 +26703,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26702
26703
|
return Ct;
|
|
26703
26704
|
}, w.M = Va, w.N = class {
|
|
26704
26705
|
constructor(a, e) {
|
|
26705
|
-
this.target = a, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new K8((() => this.process())), this.subscription =
|
|
26706
|
+
this.target = a, this.mapId = e, this.resolveRejects = {}, this.tasks = {}, this.taskQueue = [], this.abortControllers = {}, this.messageHandlers = {}, this.invoker = new K8((() => this.process())), this.subscription = ni(this.target, "message", ((r) => this.receive(r)), !1), this.globalScope = $t(self) ? a : window;
|
|
26706
26707
|
}
|
|
26707
26708
|
registerMessageHandler(a, e) {
|
|
26708
26709
|
this.messageHandlers[a] = e;
|
|
@@ -26712,7 +26713,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
26712
26713
|
}
|
|
26713
26714
|
sendAsync(a, e) {
|
|
26714
26715
|
return new Promise(((r, n) => {
|
|
26715
|
-
const s = Math.round(1e18 * Math.random()).toString(36).substring(0, 10), u = e ?
|
|
26716
|
+
const s = Math.round(1e18 * Math.random()).toString(36).substring(0, 10), u = e ? ni(e.signal, "abort", (() => {
|
|
26716
26717
|
u == null || u.unsubscribe(), delete this.resolveRejects[s];
|
|
26717
26718
|
const _ = { id: s, type: "<cancel>", origin: location.origin, targetMapId: a.targetMapId, sourceMapId: this.mapId };
|
|
26718
26719
|
this.target.postMessage(_);
|
|
@@ -27115,7 +27116,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
27115
27116
|
return new Float64Array(3);
|
|
27116
27117
|
}, w.c = Di, w.c$ = Bs, w.c0 = class extends ra {
|
|
27117
27118
|
constructor(a, e) {
|
|
27118
|
-
super(a, e), this.current =
|
|
27119
|
+
super(a, e), this.current = ui;
|
|
27119
27120
|
}
|
|
27120
27121
|
set(a) {
|
|
27121
27122
|
if (a[12] !== this.current[12] || a[0] !== this.current[0]) return this.current = a, void this.gl.uniformMatrix4fv(this.location, !1, a);
|
|
@@ -27321,7 +27322,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
27321
27322
|
const n = xt(e.x - r.x, e.y - r.y), s = xt(a.x - r.x, a.y - r.y);
|
|
27322
27323
|
var u, h;
|
|
27323
27324
|
return Qr(Math.atan2(n[0] * s[1] - n[1] * s[0], (u = n)[0] * (h = s)[0] + u[1] * h[1]));
|
|
27324
|
-
}, w.cy =
|
|
27325
|
+
}, w.cy = mi, w.cz = function(a, e) {
|
|
27325
27326
|
var r;
|
|
27326
27327
|
if (!s0[e]) return !1;
|
|
27327
27328
|
const n = a == null ? void 0 : a.target, s = ((r = n == null ? void 0 : n.ownerDocument) === null || r === void 0 ? void 0 : r.defaultView) || window;
|
|
@@ -27410,15 +27411,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
27410
27411
|
})), w.i = $t, w.j = (a) => new Promise(((e, r) => {
|
|
27411
27412
|
const n = new Image();
|
|
27412
27413
|
n.onload = () => {
|
|
27413
|
-
e(n), URL.revokeObjectURL(n.src), n.onload = null, window.requestAnimationFrame((() => n.src =
|
|
27414
|
+
e(n), URL.revokeObjectURL(n.src), n.onload = null, window.requestAnimationFrame((() => n.src = Yt));
|
|
27414
27415
|
}, n.onerror = () => r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));
|
|
27415
27416
|
const s = new Blob([new Uint8Array(a)], { type: "image/png" });
|
|
27416
|
-
n.src = a.byteLength ? URL.createObjectURL(s) :
|
|
27417
|
+
n.src = a.byteLength ? URL.createObjectURL(s) : Yt;
|
|
27417
27418
|
})), w.k = (a, e) => Qi(Pr(a, { type: "json" }), e), w.l = Fn, w.m = Qi, w.n = Ts, w.o = (a, e) => Qi(Pr(a, { type: "arrayBuffer" }), e), w.p = ep, w.q = function(a) {
|
|
27418
27419
|
return new _d(a).readFields(P8, []);
|
|
27419
27420
|
}, w.r = function(a) {
|
|
27420
27421
|
return /[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(a));
|
|
27421
|
-
}, w.s =
|
|
27422
|
+
}, w.s = ni, w.t = uc, w.u = da, w.v = qs, w.w = dr, w.x = Fe, w.y = Q0, w.z = Pa;
|
|
27422
27423
|
})), M("worker", ["./shared"], (function(w) {
|
|
27423
27424
|
class o {
|
|
27424
27425
|
constructor(Y, ee) {
|
|
@@ -27519,12 +27520,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
27519
27520
|
this.inFlightDependencies.push(it), Rt = Ie.sendAsync({ type: "GI", data: { icons: kr, source: this.source, tileID: this.tileID, type: "patterns" } }, it);
|
|
27520
27521
|
}
|
|
27521
27522
|
const Ar = lt.dashDependencies;
|
|
27522
|
-
let
|
|
27523
|
+
let mi = Promise.resolve({});
|
|
27523
27524
|
if (Object.keys(Ar).length) {
|
|
27524
27525
|
const it = new AbortController();
|
|
27525
|
-
this.inFlightDependencies.push(it),
|
|
27526
|
+
this.inFlightDependencies.push(it), mi = Ie.sendAsync({ type: "GDA", data: { dashes: Ar } }, it);
|
|
27526
27527
|
}
|
|
27527
|
-
const [br, Sr, Pr, ur] = yield Promise.all([It, gr, Rt,
|
|
27528
|
+
const [br, Sr, Pr, ur] = yield Promise.all([It, gr, Rt, mi]), ht = new O(br), yr = new w.cN(Sr, Pr);
|
|
27528
27529
|
for (const it in rt) {
|
|
27529
27530
|
const Ht = rt[it];
|
|
27530
27531
|
Ht instanceof w.af ? (j(Ht.layers, this.zoom, le), w.cO({ bucket: Ht, glyphMap: br, glyphPositions: ht.positions, imageMap: Sr, imagePositions: yr.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: lt.subdivisionGranularity })) : Ht.hasDependencies && (Ht instanceof w.cP || Ht instanceof w.cQ || Ht instanceof w.cR) && (j(Ht.layers, this.zoom, le), Ht.addFeatures(lt, this.tileID.canonical, yr.patternPositions, ur));
|
|
@@ -28609,7 +28610,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
28609
28610
|
return kr || (kr = new Et()), kr;
|
|
28610
28611
|
}
|
|
28611
28612
|
Et.workerCount = o.L(globalThis) ? Math.max(Math.min(gr, 3), 1) : 1;
|
|
28612
|
-
class
|
|
28613
|
+
class mi {
|
|
28613
28614
|
constructor(t, i) {
|
|
28614
28615
|
this.workerPool = t, this.actors = [], this.currentActor = 0, this.id = i;
|
|
28615
28616
|
const c = this.workerPool.acquire(i);
|
|
@@ -28639,7 +28640,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
28639
28640
|
}
|
|
28640
28641
|
}
|
|
28641
28642
|
function br() {
|
|
28642
|
-
return Rt || (Rt = new
|
|
28643
|
+
return Rt || (Rt = new mi(Ar(), o.M), Rt.registerMessageHandler("GR", ((m, t, i) => o.m(t, i)))), Rt;
|
|
28643
28644
|
}
|
|
28644
28645
|
function Sr(m, t) {
|
|
28645
28646
|
const i = o.O();
|
|
@@ -29015,7 +29016,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
29015
29016
|
}
|
|
29016
29017
|
return (m.removeAllProperties || t.removeAllProperties) && (i.removeAllProperties = !0), (m.removeProperties || t.removeProperties) && (i.removeProperties = [...m.removeProperties || [], ...t.removeProperties || []]), (m.addOrUpdateProperties || t.addOrUpdateProperties) && (i.addOrUpdateProperties = [...m.addOrUpdateProperties || [], ...t.addOrUpdateProperties || []]), (m.newGeometry || t.newGeometry) && (i.newGeometry = t.newGeometry || m.newGeometry), i;
|
|
29017
29018
|
}
|
|
29018
|
-
function
|
|
29019
|
+
function Yt(m) {
|
|
29019
29020
|
var t, i;
|
|
29020
29021
|
if (!m) return {};
|
|
29021
29022
|
const c = {};
|
|
@@ -29047,7 +29048,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
29047
29048
|
}
|
|
29048
29049
|
return t;
|
|
29049
29050
|
}
|
|
29050
|
-
class
|
|
29051
|
+
class ni extends o.E {
|
|
29051
29052
|
constructor(t, i, c, d) {
|
|
29052
29053
|
super(), this.id = t, this.type = "geojson", this.minzoom = 0, this.maxzoom = 18, this.tileSize = 512, this.isTileClipped = !0, this.reparseOverscaled = !0, this._removed = !1, this._isUpdatingWorker = !1, this._pendingWorkerUpdate = { data: i.data }, this.actor = c.getActor(), this.setEventedParent(d), this._data = typeof i.data == "string" ? { url: i.data } : { geojson: i.data }, this._options = o.e({}, i), this._collectResourceTiming = i.collectResourceTiming, i.maxzoom !== void 0 && (this.maxzoom = i.maxzoom), i.type && (this.type = i.type), i.attribution && (this.attribution = i.attribution), this.promoteId = i.promoteId, i.clusterMaxZoom !== void 0 && this.maxzoom <= i.clusterMaxZoom && o.w(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i.clusterMaxZoom}".`), this.workerOptions = o.e({ source: this.id, geojsonVtOptions: { buffer: this._pixelsToTileUnits(i.buffer !== void 0 ? i.buffer : 128), tolerance: this._pixelsToTileUnits(i.tolerance !== void 0 ? i.tolerance : 0.375), extent: o.a6, maxZoom: this.maxzoom, lineMetrics: i.lineMetrics || !1, generateId: i.generateId || !1, promoteId: typeof i.promoteId == "string" ? i.promoteId : void 0, cluster: i.cluster || !1, clusterOptions: { maxZoom: this._getClusterMaxZoom(i.clusterMaxZoom), minPoints: Math.max(2, i.clusterMinPoints || 2), extent: o.a6, radius: this._pixelsToTileUnits(i.clusterRadius || 50), log: !1, generateId: i.generateId || !1 } }, clusterProperties: i.clusterProperties, filter: i.filter }, i.workerOptions);
|
|
29053
29054
|
}
|
|
@@ -29078,7 +29079,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
29078
29079
|
this._pendingWorkerUpdate.diff = (function(d, g) {
|
|
29079
29080
|
if (!d) return g || {};
|
|
29080
29081
|
if (!g) return d || {};
|
|
29081
|
-
const b =
|
|
29082
|
+
const b = Yt(d), A = Yt(g);
|
|
29082
29083
|
(function(k, N) {
|
|
29083
29084
|
N.removeAll && (k.add.clear(), k.update.clear(), k.remove.clear(), N.remove.clear());
|
|
29084
29085
|
for (const z of N.remove) k.add.delete(z), k.update.delete(z);
|
|
@@ -29439,7 +29440,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
29439
29440
|
const s0 = {}, Eo = (m) => {
|
|
29440
29441
|
switch (m) {
|
|
29441
29442
|
case "geojson":
|
|
29442
|
-
return
|
|
29443
|
+
return ni;
|
|
29443
29444
|
case "image":
|
|
29444
29445
|
return Zr;
|
|
29445
29446
|
case "raster":
|
|
@@ -30750,14 +30751,14 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
30750
30751
|
Ye.textFeatureIndex ? Gi = Ye.textFeatureIndex : Be.useRuntimeCollisionCircles && (Gi = Be.featureIndex), Ye.verticalTextFeatureIndex && (Zi = Ye.verticalTextFeatureIndex);
|
|
30751
30752
|
const ra = Ye.textBox;
|
|
30752
30753
|
if (ra) {
|
|
30753
|
-
const
|
|
30754
|
+
const ui = (tr) => {
|
|
30754
30755
|
let qt = o.ax.horizontal;
|
|
30755
30756
|
if (d.allowVerticalPlacement && !tr && this.prevPlacement) {
|
|
30756
30757
|
const Er = this.prevPlacement.placedOrientations[Be.crossTileID];
|
|
30757
30758
|
Er && (this.placedOrientations[Be.crossTileID] = Er, qt = Er, this.markUsedOrientation(d, qt, Be));
|
|
30758
30759
|
}
|
|
30759
30760
|
return qt;
|
|
30760
|
-
},
|
|
30761
|
+
}, di = (tr, qt) => {
|
|
30761
30762
|
if (d.allowVerticalPlacement && Be.numVerticalGlyphVertices > 0 && Ye.verticalTextBox) {
|
|
30762
30763
|
for (const Er of d.writingModes) if (Er === o.ax.vertical ? (or = qt(), ha = or) : or = tr(), or == null ? void 0 : or.placeable) break;
|
|
30763
30764
|
} else or = tr();
|
|
@@ -30767,10 +30768,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
30767
30768
|
const rr = this.collisionIndex.placeCollisionBox(qt, te, N, Ue, I, ce, re, b, $.predicate, Ve, void 0, et);
|
|
30768
30769
|
return rr != null && rr.placeable && (this.markUsedOrientation(d, Er, Be), this.placedOrientations[Be.crossTileID] = Er), rr;
|
|
30769
30770
|
};
|
|
30770
|
-
|
|
30771
|
+
di((() => tr(ra, o.ax.horizontal)), (() => {
|
|
30771
30772
|
const qt = Ye.verticalTextBox;
|
|
30772
30773
|
return d.allowVerticalPlacement && Be.numVerticalGlyphVertices > 0 && qt ? tr(qt, o.ax.vertical) : { box: null, offscreen: null };
|
|
30773
|
-
})),
|
|
30774
|
+
})), ui(or == null ? void 0 : or.placeable);
|
|
30774
30775
|
} else {
|
|
30775
30776
|
let tr = o.aM[(mr = (Ot = this.prevPlacement) === null || Ot === void 0 ? void 0 : Ot.variableOffsets[Be.crossTileID]) === null || mr === void 0 ? void 0 : mr.anchor];
|
|
30776
30777
|
const qt = (rr, Tn, fl) => {
|
|
@@ -30788,11 +30789,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
30788
30789
|
}
|
|
30789
30790
|
return c && !Ki && (Ki = { box: this.collisionIndex.placeCollisionBox(ra, "always", N, Ue, I, ce, re, b, $.predicate, Ve, void 0, et).box, offscreen: !1, placeable: !1, occluded: !1 }), Ki;
|
|
30790
30791
|
};
|
|
30791
|
-
|
|
30792
|
+
di((() => qt(ra, Ye.iconBox, o.ax.horizontal)), (() => {
|
|
30792
30793
|
const rr = Ye.verticalTextBox;
|
|
30793
30794
|
return d.allowVerticalPlacement && !(or != null && or.placeable) && Be.numVerticalGlyphVertices > 0 && rr ? qt(rr, Ye.verticalIconBox, o.ax.vertical) : { box: null, occluded: !0, offscreen: null };
|
|
30794
30795
|
})), or && (Vt = or.placeable, Tr = or.offscreen);
|
|
30795
|
-
const Er =
|
|
30796
|
+
const Er = ui(or == null ? void 0 : or.placeable);
|
|
30796
30797
|
if (!Vt && this.prevPlacement) {
|
|
30797
30798
|
const rr = this.prevPlacement.variableOffsets[Be.crossTileID];
|
|
30798
30799
|
rr && (this.variableOffsets[Be.crossTileID] = rr, this.markUsedJustification(d, rr.anchor, Be, Er));
|
|
@@ -30800,12 +30801,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
|
|
|
30800
30801
|
}
|
|
30801
30802
|
}
|
|
30802
30803
|
if (Kr = or, Vt = Kr == null ? void 0 : Kr.placeable, Tr = Kr == null ? void 0 : Kr.offscreen, Be.useRuntimeCollisionCircles && Be.centerJustifiedTextSymbolIndex >= 0) {
|
|
30803
|
-
const
|
|
30804
|
-
Dr = this.collisionIndex.placeCollisionCircles(te,
|
|
30804
|
+
const ui = d.text.placedSymbolArray.get(Be.centerJustifiedTextSymbolIndex), di = o.ay(d.textSizeData, U, ui), Na = g.get("text-padding");
|
|
30805
|
+
Dr = this.collisionIndex.placeCollisionCircles(te, ui, d.lineVertexArray, d.glyphOffsetArray, di, I, k, c, ce, $.predicate, Be.collisionCircleDiameter, Na, b, Ve), Dr.circles.length && Dr.collisionDetected && !c && o.w("Collisions detected, but collision boxes are not shown"), Vt = ne || Dr.circles.length > 0 && !Dr.collisionDetected, Tr && (Tr = Dr.offscreen);
|
|
30805
30806
|
}
|
|
30806
30807
|
if (Ye.iconFeatureIndex && (ji = Ye.iconFeatureIndex), Ye.iconBox) {
|
|
30807
|
-
const
|
|
30808
|
-
ha && ha.placeable && Ye.verticalIconBox ? (ta =
|
|
30808
|
+
const ui = (di) => this.collisionIndex.placeCollisionBox(di, ue, N, Ue, I, ce, re, A, $.predicate, Ve, oe && ea ? ea : void 0, et);
|
|
30809
|
+
ha && ha.placeable && Ye.verticalIconBox ? (ta = ui(Ye.verticalIconBox), vr = ta.placeable) : (ta = ui(Ye.iconBox), vr = ta.placeable), Tr && (Tr = ta.offscreen);
|
|
30809
30810
|
}
|
|
30810
30811
|
const Ei = Q || Be.numHorizontalGlyphVertices === 0 && Be.numVerticalGlyphVertices === 0, Wi = ie || Be.numIconVertices === 0;
|
|
30811
30812
|
Ei || Wi ? Wi ? Ei || vr && (vr = Vt) : Vt = vr && Vt : vr = Vt = vr && Vt;
|
|
@@ -32287,14 +32288,14 @@ uniform ${N} ${z} u_${F};
|
|
|
32287
32288
|
return [t.canonical.x / i, t.canonical.y / i, 1 / i / o.a6, 1 / i / o.a6];
|
|
32288
32289
|
}
|
|
32289
32290
|
}
|
|
32290
|
-
class
|
|
32291
|
+
class si {
|
|
32291
32292
|
constructor(t, i) {
|
|
32292
32293
|
this.min = t, this.max = i, this.center = o.aZ([], o.a_([], this.min, this.max), 0.5);
|
|
32293
32294
|
}
|
|
32294
32295
|
quadrant(t) {
|
|
32295
32296
|
const i = [t % 2 == 0, t < 2], c = o.a$(this.min), d = o.a$(this.max);
|
|
32296
32297
|
for (let g = 0; g < i.length; g++) c[g] = i[g] ? this.min[g] : this.center[g], d[g] = i[g] ? this.center[g] : this.max[g];
|
|
32297
|
-
return d[2] = this.max[2], new
|
|
32298
|
+
return d[2] = this.max[2], new si(c, d);
|
|
32298
32299
|
}
|
|
32299
32300
|
distanceX(t) {
|
|
32300
32301
|
return Math.max(Math.min(this.max[0], t[0]), this.min[0]) - t[0];
|
|
@@ -32333,7 +32334,7 @@ uniform ${N} ${z} u_${F};
|
|
|
32333
32334
|
A = (g = z.minElevation) !== null && g !== void 0 ? g : Math.min(0, c), I = (b = z.maxElevation) !== null && b !== void 0 ? b : Math.max(0, c);
|
|
32334
32335
|
}
|
|
32335
32336
|
const k = 1 << t.z;
|
|
32336
|
-
return new
|
|
32337
|
+
return new si([i + t.x / k, t.y / k, A], [i + (t.x + 1) / k, (t.y + 1) / k, I]);
|
|
32337
32338
|
}
|
|
32338
32339
|
allowVariableZoom(t, i) {
|
|
32339
32340
|
const c = t.fov * (Math.abs(Math.cos(t.rollInRadians)) * t.height + Math.abs(Math.sin(t.rollInRadians)) * t.width) / t.height, d = o.al(78.5 - c / 2, 0, 60);
|
|
@@ -32391,7 +32392,7 @@ uniform ${N} ${z} u_${F};
|
|
|
32391
32392
|
return Q.concat(ie);
|
|
32392
32393
|
})), N = [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY], z = [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY];
|
|
32393
32394
|
for (const F of I) for (let U = 0; U < 3; U++) N[U] = Math.min(N[U], F[U]), z[U] = Math.max(z[U], F[U]);
|
|
32394
|
-
return new wa(I, k, new
|
|
32395
|
+
return new wa(I, k, new si(N, z));
|
|
32395
32396
|
}
|
|
32396
32397
|
}
|
|
32397
32398
|
class sn {
|
|
@@ -34228,7 +34229,7 @@ uniform ${N} ${z} u_${F};
|
|
|
34228
34229
|
const A = this.tileManagers[b].getSource().type;
|
|
34229
34230
|
A !== "vector" && A !== "geojson" || this.tileManagers[b].reload();
|
|
34230
34231
|
}
|
|
34231
|
-
}, this.map = t, this.dispatcher = new
|
|
34232
|
+
}, this.map = t, this.dispatcher = new mi(Ar(), t._getMapId()), this.dispatcher.registerMessageHandler("GG", ((b, A) => this.getGlyphs(b, A))), this.dispatcher.registerMessageHandler("GI", ((b, A) => this.getImages(b, A))), this.dispatcher.registerMessageHandler("GDA", ((b, A) => this.getDashes(b, A))), this.imageManager = new _e(), this.imageManager.setEventedParent(this);
|
|
34232
34233
|
const g = ((c = t._container) === null || c === void 0 ? void 0 : c.lang) || typeof document < "u" && ((d = document.documentElement) === null || d === void 0 ? void 0 : d.lang) || void 0;
|
|
34233
34234
|
this.glyphManager = new De(t._requestManager, i.localIdeographFontFamily, g), this.lineAtlas = new ot(256, 512), this.crossTileSymbolIndex = new Ea(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", o.bO()), Di().on(bs, this._rtlPluginLoaded), this.on("data", ((b) => {
|
|
34234
34235
|
if (b.dataType !== "source" || b.sourceDataType !== "metadata") return;
|
|
@@ -35108,10 +35109,10 @@ uniform ${N} ${z} u_${F};
|
|
|
35108
35109
|
}
|
|
35109
35110
|
const w2 = (m, t, i = 0) => ({ u_image: 0, u_unpack: t.getUnpackVector(), u_dimension: [t.stride, t.stride], u_elevation_stops: 1, u_color_stops: 4, u_color_ramp_size: i, u_opacity: m.paint.get("color-relief-opacity") }), Ds = (m, t, i, c) => {
|
|
35110
35111
|
const d = m.transform;
|
|
35111
|
-
return { u_translation:
|
|
35112
|
+
return { u_translation: oi(m, t, i), u_ratio: c / o.aK(t, 1, d.zoom), u_device_pixel_ratio: m.pixelRatio, u_units_to_pixels: [1 / d.pixelsToGLUnits[0], 1 / d.pixelsToGLUnits[1]] };
|
|
35112
35113
|
}, Tu = (m, t, i, c, d) => o.e(Ds(m, t, i, c), { u_image: 0, u_image_height: d }), Eu = (m, t, i, c, d) => {
|
|
35113
35114
|
const g = m.transform, b = Qn(t, g);
|
|
35114
|
-
return { u_translation:
|
|
35115
|
+
return { u_translation: oi(m, t, i), u_texsize: t.imageAtlasTexture.size, u_ratio: c / o.aK(t, 1, g.zoom), u_device_pixel_ratio: m.pixelRatio, u_image: 0, u_scale: [b, d.fromScale, d.toScale], u_fade: d.t, u_units_to_pixels: [1 / g.pixelsToGLUnits[0], 1 / g.pixelsToGLUnits[1]] };
|
|
35115
35116
|
}, I0 = (m, t, i, c, d) => {
|
|
35116
35117
|
const g = Qn(t, m.transform);
|
|
35117
35118
|
return o.e(Ds(m, t, i, c), { u_tileratio: g, u_crossfade_from: d.fromScale, u_crossfade_to: d.toScale, u_image: 0, u_mix: d.t, u_lineatlas_width: m.lineAtlas.width, u_lineatlas_height: m.lineAtlas.height });
|
|
@@ -35122,7 +35123,7 @@ uniform ${N} ${z} u_${F};
|
|
|
35122
35123
|
function Qn(m, t) {
|
|
35123
35124
|
return 1 / o.aK(m, 1, t.tileZoom);
|
|
35124
35125
|
}
|
|
35125
|
-
function
|
|
35126
|
+
function oi(m, t, i) {
|
|
35126
35127
|
return o.aL(m.transform, t, i.paint.get("line-translate"), i.paint.get("line-translate-anchor"));
|
|
35127
35128
|
}
|
|
35128
35129
|
const C0 = (m, t, i, c, d) => {
|
|
@@ -35713,14 +35714,14 @@ uniform ${N} ${z} u_${F};
|
|
|
35713
35714
|
const rr = i.layout.get("icon-size").constantOr(0) !== 1 || Ye.iconsNeedLinear;
|
|
35714
35715
|
Kr = Be.imageAtlasTexture, Dr = mr || m.options.rotating || m.options.zooming || rr || vr ? ie.LINEAR : ie.NEAREST, ha = Be.imageAtlasTexture.size;
|
|
35715
35716
|
}
|
|
35716
|
-
const ji = o.aK(Be, 1, m.transform.zoom), ra = Ca(ne, m.transform, ji), Ei = Io(ue, ne, m.transform, ji), Wi = o.aL(te, Be, g, b), ml = te.getProjectionData({ overscaledTileID: qe, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }),
|
|
35717
|
+
const ji = o.aK(Be, 1, m.transform.zoom), ra = Ca(ne, m.transform, ji), Ei = Io(ue, ne, m.transform, ji), Wi = o.aL(te, Be, g, b), ml = te.getProjectionData({ overscaledTileID: qe, applyGlobeMatrix: !F, applyTerrainMatrix: !0 }), ui = Ne && Ye.hasTextData(), di = i.layout.get("icon-text-fit") !== "none" && ui && Ye.hasIconData();
|
|
35717
35718
|
if (se) {
|
|
35718
35719
|
const rr = o.O();
|
|
35719
35720
|
ft(rr, ra);
|
|
35720
35721
|
const Tn = m.style.map.terrain ? (wi, sc) => m.style.map.terrain.getElevation(qe, wi, sc) : null, fl = i.layout.get("text-rotation-alignment") === "map";
|
|
35721
35722
|
Co(Ye, m, d, ra, rr, ue, k, fl, qe.toUnwrapped(), te.width, te.height, Wi, Tn);
|
|
35722
35723
|
}
|
|
35723
|
-
const Na = d && Ne ||
|
|
35724
|
+
const Na = d && Ne || di, ja = se || Na ? as : ue ? ra : m.transform.clipSpaceToPixelsMatrix, tr = mr && i.paint.get(d ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
|
|
35724
35725
|
let qt;
|
|
35725
35726
|
qt = mr ? Ye.iconsInText ? k0(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, ha, Gi, Ue) : R0(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, d, ha, tr, Ue) : Go(Vt.kind, ea, re, ue, se, Na, m, ja, Ei, Wi, d, ha, Ue);
|
|
35726
35727
|
const Er = { program: Tr, buffers: at, uniformValues: qt, projectionData: ml, atlasTexture: Kr, atlasTextureIcon: Zi, atlasInterpolation: Dr, atlasInterpolationIcon: ta, isSDF: mr, hasHalo: tr };
|
|
@@ -36511,23 +36512,23 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
36511
36512
|
for (const { settings: g } of this._inertiaBuffer) i.zoom += g.zoomDelta || 0, i.bearing += g.bearingDelta || 0, i.pitch += g.pitchDelta || 0, i.roll += g.rollDelta || 0, g.panDelta && i.pan._add(g.panDelta), g.around && (i.around = g.around), g.pinchAround && (i.pinchAround = g.pinchAround);
|
|
36512
36513
|
const c = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, d = {};
|
|
36513
36514
|
if (i.pan.mag()) {
|
|
36514
|
-
const g =
|
|
36515
|
+
const g = li(i.pan.mag(), c, o.e({}, Ga, t || {})), b = i.pan.mult(g.amount / i.pan.mag()), A = this._map.cameraHelper.handlePanInertia(b, this._map.transform);
|
|
36515
36516
|
d.center = A.easingCenter, d.offset = A.easingOffset, qs(d, g);
|
|
36516
36517
|
}
|
|
36517
36518
|
if (i.zoom) {
|
|
36518
|
-
const g =
|
|
36519
|
+
const g = li(i.zoom, c, ti);
|
|
36519
36520
|
d.zoom = o.cw(this._map.transform.zoom + g.amount, this._map.getZoomSnap(), g.amount), qs(d, g);
|
|
36520
36521
|
}
|
|
36521
36522
|
if (i.bearing) {
|
|
36522
|
-
const g =
|
|
36523
|
+
const g = li(i.bearing, c, ju);
|
|
36523
36524
|
d.bearing = this._map.transform.bearing + o.al(g.amount, -179, 179), qs(d, g);
|
|
36524
36525
|
}
|
|
36525
36526
|
if (i.pitch) {
|
|
36526
|
-
const g =
|
|
36527
|
+
const g = li(i.pitch, c, ri);
|
|
36527
36528
|
d.pitch = this._map.transform.pitch + g.amount, qs(d, g);
|
|
36528
36529
|
}
|
|
36529
36530
|
if (i.roll) {
|
|
36530
|
-
const g =
|
|
36531
|
+
const g = li(i.roll, c, L2);
|
|
36531
36532
|
d.roll = this._map.transform.roll + o.al(g.amount, -179, 179), qs(d, g);
|
|
36532
36533
|
}
|
|
36533
36534
|
if (d.zoom || d.bearing) {
|
|
@@ -36540,7 +36541,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
36540
36541
|
function qs(m, t) {
|
|
36541
36542
|
(!m.duration || m.duration < t.duration) && (m.duration = t.duration, m.easing = t.easing);
|
|
36542
36543
|
}
|
|
36543
|
-
function
|
|
36544
|
+
function li(m, t, i) {
|
|
36544
36545
|
const { maxSpeed: c, linearity: d, deceleration: g } = i, b = o.al(m * d / (t / 1e3), -c, c), A = Math.abs(b) / (g * d);
|
|
36545
36546
|
return { easing: i.easing, duration: 1e3 * A, amount: b * (A / 2) };
|
|
36546
36547
|
}
|
|
@@ -36687,7 +36688,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
36687
36688
|
return this.transform.screenPointToLocation(o.P.convert(t), this._map.terrain);
|
|
36688
36689
|
}
|
|
36689
36690
|
}
|
|
36690
|
-
class
|
|
36691
|
+
class ci {
|
|
36691
36692
|
constructor(t, i) {
|
|
36692
36693
|
this._map = t, this._tr = new vi(t), this._el = t.getCanvasContainer(), this._container = t.getContainer(), this._clickTolerance = i.clickTolerance || 1, i.boxZoom && typeof i.boxZoom == "object" && (this._boxZoomEnd = i.boxZoom.boxZoomEnd);
|
|
36693
36694
|
}
|
|
@@ -37513,7 +37514,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
37513
37514
|
_addDefaultHandlers(t) {
|
|
37514
37515
|
const i = this._map, c = i.getCanvasContainer();
|
|
37515
37516
|
this._add("mapEvent", new z2(i, t));
|
|
37516
|
-
const d = i.boxZoom = new
|
|
37517
|
+
const d = i.boxZoom = new ci(i, t);
|
|
37517
37518
|
this._add("boxZoom", d), t.interactive && t.boxZoom && d.enable();
|
|
37518
37519
|
const g = i.cooperativeGestures = new nt(i, t.cooperativeGestures);
|
|
37519
37520
|
this._add("cooperativeGestures", g), t.cooperativeGestures && g.enable();
|
|
@@ -39260,7 +39261,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
39260
39261
|
return pl(new o.P(0, 0));
|
|
39261
39262
|
}
|
|
39262
39263
|
const nc = O;
|
|
39263
|
-
w.AJAXError = o.cG, w.EXTENT = o.a6, w.Event = o.n, w.Evented = o.E, w.LngLat = o.W, w.MercatorCoordinate = o.a7, w.Point = o.P, w.addProtocol = o.cH, w.config = o.c, w.removeProtocol = o.cI, w.AttributionControl = Za, w.BoxZoomHandler =
|
|
39264
|
+
w.AJAXError = o.cG, w.EXTENT = o.a6, w.Event = o.n, w.Evented = o.E, w.LngLat = o.W, w.MercatorCoordinate = o.a7, w.Point = o.P, w.addProtocol = o.cH, w.config = o.c, w.removeProtocol = o.cI, w.AttributionControl = Za, w.BoxZoomHandler = ci, w.CanvasSource = Xi, w.CooperativeGesturesHandler = nt, w.DoubleClickZoomHandler = J0, w.DragPanHandler = ai, w.DragRotateHandler = Qs, w.EdgeInsets = jn, w.FullscreenControl = class extends o.E {
|
|
39264
39265
|
constructor(m = {}) {
|
|
39265
39266
|
var t;
|
|
39266
39267
|
super(), this._onFullscreenChange = () => {
|
|
@@ -39304,7 +39305,7 @@ ${A.shaderPreludeCode.vertexSource}`, define: A.shaderDefine }, defaultProjectio
|
|
|
39304
39305
|
_togglePseudoFullScreen() {
|
|
39305
39306
|
this._container.classList.toggle("maplibregl-pseudo-fullscreen"), this._handleFullscreenChange(), this._map.resize();
|
|
39306
39307
|
}
|
|
39307
|
-
}, w.GeoJSONSource =
|
|
39308
|
+
}, w.GeoJSONSource = ni, w.GeolocateControl = class extends o.E {
|
|
39308
39309
|
constructor(m) {
|
|
39309
39310
|
super(), this._onSuccess = (t) => {
|
|
39310
39311
|
if (this._map) {
|