@opengis/admin 0.2.85 → 0.2.86

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.
@@ -3694,16 +3694,16 @@ function SB(n) {
3694
3694
  }
3695
3695
  const kB = [
3696
3696
  // { name: 'profile', path: '/profile', component: () => import('../components/profile/vs-profile.vue') },
3697
- { name: "edit", path: "/edit", component: () => import("./edit-page-Bg2NgUpM.js") },
3698
- { name: "add", path: "/add", component: () => import("./add-page-DjV6f_jT.js") },
3697
+ { name: "edit", path: "/edit", component: () => import("./edit-page-UiEicOwd.js") },
3698
+ { name: "add", path: "/add", component: () => import("./add-page-D1o3UElp.js") },
3699
3699
  {
3700
3700
  name: "card-view",
3701
3701
  path: "/card",
3702
- component: () => import("./card-view-58mVfI5f.js"),
3702
+ component: () => import("./card-view-CXouK5bH.js"),
3703
3703
  children: [{
3704
3704
  name: "table",
3705
3705
  path: ":table",
3706
- component: () => import("./card-view-58mVfI5f.js"),
3706
+ component: () => import("./card-view-CXouK5bH.js"),
3707
3707
  children: [{ name: "card", path: ":id", component: () => Promise.resolve().then(() => Hse) }]
3708
3708
  }]
3709
3709
  }
@@ -3757,14 +3757,14 @@ const MB = /* @__PURE__ */ vt(EB, [["render", AB]]), DB = (n) => {
3757
3757
  {
3758
3758
  path: "/",
3759
3759
  name: "home",
3760
- component: () => import("./admin-view-DooY0sff.js"),
3760
+ component: () => import("./admin-view-BItQEdb1.js"),
3761
3761
  children: [
3762
3762
  ...e,
3763
3763
  ...n,
3764
3764
  // { path: '/', redirect: '/home' },
3765
3765
  {
3766
3766
  path: "/:catchAll(.*)",
3767
- component: () => import("./admin-interface-DAyLdquZ.js")
3767
+ component: () => import("./admin-interface-CX9gUQPl.js")
3768
3768
  }
3769
3769
  ]
3770
3770
  }
@@ -4121,7 +4121,7 @@ function eF(n, e, t, i, r, s) {
4121
4121
  [Oy, r.checkValue]
4122
4122
  ]),
4123
4123
  F("div", {
4124
- class: Kn(["w-[20px] h-[20px] rounded-md flex items-center justify-center duration-100 cursor-pointer", [r.checkValue ? "bg-blue-600" : "border"]])
4124
+ class: Kn(["w-[20px] h-[20px] rounded-md flex items-center justify-center duration-100 cursor-pointer", [r.checkValue ? "bg-blue-400" : "border"]])
4125
4125
  }, [
4126
4126
  tt(c, {
4127
4127
  height: "18",
@@ -4670,7 +4670,7 @@ function NF(n, e, t) {
4670
4670
  function Zy(n) {
4671
4671
  return n % 4 === 0 && n % 100 !== 0 || n % 400 === 0;
4672
4672
  }
4673
- var Pr = 0, Da = 1, Uo = 2, qi = 3, xo = 4, Ia = 5, Zc = 6, BF = 7, FF = 8;
4673
+ var Rr = 0, Da = 1, Uo = 2, qi = 3, xo = 4, Ia = 5, Zc = 6, BF = 7, FF = 8;
4674
4674
  Lt("Y", 0, 0, function() {
4675
4675
  var n = this.year();
4676
4676
  return n <= 9999 ? Zo(n, 4) : "+" + n;
@@ -4686,15 +4686,15 @@ Tt("YY", gi, Fs);
4686
4686
  Tt("YYYY", Lx, zx);
4687
4687
  Tt("YYYYY", qy, Uy);
4688
4688
  Tt("YYYYYY", qy, Uy);
4689
- ri(["YYYYY", "YYYYYY"], Pr);
4689
+ ri(["YYYYY", "YYYYYY"], Rr);
4690
4690
  ri("YYYY", function(n, e) {
4691
- e[Pr] = n.length === 2 ? yt.parseTwoDigitYear(n) : kn(n);
4691
+ e[Rr] = n.length === 2 ? yt.parseTwoDigitYear(n) : kn(n);
4692
4692
  });
4693
4693
  ri("YY", function(n, e) {
4694
- e[Pr] = yt.parseTwoDigitYear(n);
4694
+ e[Rr] = yt.parseTwoDigitYear(n);
4695
4695
  });
4696
4696
  ri("Y", function(n, e) {
4697
- e[Pr] = parseInt(n, 10);
4697
+ e[Rr] = parseInt(n, 10);
4698
4698
  });
4699
4699
  function Wf(n) {
4700
4700
  return Zy(n) ? 366 : 365;
@@ -5276,7 +5276,7 @@ function O4() {
5276
5276
  }
5277
5277
  function Hx(n) {
5278
5278
  var e, t = n._a;
5279
- return t && dn(n).overflow === -2 && (e = t[Da] < 0 || t[Da] > 11 ? Da : t[Uo] < 1 || t[Uo] > Bx(t[Pr], t[Da]) ? Uo : t[qi] < 0 || t[qi] > 24 || t[qi] === 24 && (t[xo] !== 0 || t[Ia] !== 0 || t[Zc] !== 0) ? qi : t[xo] < 0 || t[xo] > 59 ? xo : t[Ia] < 0 || t[Ia] > 59 ? Ia : t[Zc] < 0 || t[Zc] > 999 ? Zc : -1, dn(n)._overflowDayOfYear && (e < Pr || e > Uo) && (e = Uo), dn(n)._overflowWeeks && e === -1 && (e = BF), dn(n)._overflowWeekday && e === -1 && (e = FF), dn(n).overflow = e), n;
5279
+ return t && dn(n).overflow === -2 && (e = t[Da] < 0 || t[Da] > 11 ? Da : t[Uo] < 1 || t[Uo] > Bx(t[Rr], t[Da]) ? Uo : t[qi] < 0 || t[qi] > 24 || t[qi] === 24 && (t[xo] !== 0 || t[Ia] !== 0 || t[Zc] !== 0) ? qi : t[xo] < 0 || t[xo] > 59 ? xo : t[Ia] < 0 || t[Ia] > 59 ? Ia : t[Zc] < 0 || t[Zc] > 999 ? Zc : -1, dn(n)._overflowDayOfYear && (e < Rr || e > Uo) && (e = Uo), dn(n)._overflowWeeks && e === -1 && (e = BF), dn(n)._overflowWeekday && e === -1 && (e = FF), dn(n).overflow = e), n;
5280
5280
  }
5281
5281
  var z4 = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, L4 = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, N4 = /Z|[+-]\d\d(?::?\d\d)?/, Jm = [
5282
5282
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -5441,7 +5441,7 @@ function G4(n) {
5441
5441
  function Ux(n) {
5442
5442
  var e, t, i = [], r, s, c;
5443
5443
  if (!n._d) {
5444
- for (r = G4(n), n._w && n._a[Uo] == null && n._a[Da] == null && Y4(n), n._dayOfYear != null && (c = Cd(n._a[Pr], r[Pr]), (n._dayOfYear > Wf(c) || n._dayOfYear === 0) && (dn(n)._overflowDayOfYear = !0), t = cp(c, 0, n._dayOfYear), n._a[Da] = t.getUTCMonth(), n._a[Uo] = t.getUTCDate()), e = 0; e < 3 && n._a[e] == null; ++e)
5444
+ for (r = G4(n), n._w && n._a[Uo] == null && n._a[Da] == null && Y4(n), n._dayOfYear != null && (c = Cd(n._a[Rr], r[Rr]), (n._dayOfYear > Wf(c) || n._dayOfYear === 0) && (dn(n)._overflowDayOfYear = !0), t = cp(c, 0, n._dayOfYear), n._a[Da] = t.getUTCMonth(), n._a[Uo] = t.getUTCDate()), e = 0; e < 3 && n._a[e] == null; ++e)
5445
5445
  n._a[e] = i[e] = r[e];
5446
5446
  for (; e < 7; e++)
5447
5447
  n._a[e] = i[e] = n._a[e] == null ? e === 2 ? 1 : 0 : n._a[e];
@@ -5455,9 +5455,9 @@ function Y4(n) {
5455
5455
  var e, t, i, r, s, c, o, f, m;
5456
5456
  e = n._w, e.GG != null || e.W != null || e.E != null ? (s = 1, c = 4, t = Cd(
5457
5457
  e.GG,
5458
- n._a[Pr],
5458
+ n._a[Rr],
5459
5459
  up(mi(), 1, 4).year
5460
- ), i = Cd(e.W, 1), r = Cd(e.E, 1), (r < 1 || r > 7) && (f = !0)) : (s = n._locale._week.dow, c = n._locale._week.doy, m = up(mi(), s, c), t = Cd(e.gg, n._a[Pr], m.year), i = Cd(e.w, m.week), e.d != null ? (r = e.d, (r < 0 || r > 6) && (f = !0)) : e.e != null ? (r = e.e + s, (e.e < 0 || e.e > 6) && (f = !0)) : r = s), i < 1 || i > Na(t, s, c) ? dn(n)._overflowWeeks = !0 : f != null ? dn(n)._overflowWeekday = !0 : (o = sA(t, i, r, s, c), n._a[Pr] = o.year, n._dayOfYear = o.dayOfYear);
5460
+ ), i = Cd(e.W, 1), r = Cd(e.E, 1), (r < 1 || r > 7) && (f = !0)) : (s = n._locale._week.dow, c = n._locale._week.doy, m = up(mi(), s, c), t = Cd(e.gg, n._a[Rr], m.year), i = Cd(e.w, m.week), e.d != null ? (r = e.d, (r < 0 || r > 6) && (f = !0)) : e.e != null ? (r = e.e + s, (e.e < 0 || e.e > 6) && (f = !0)) : r = s), i < 1 || i > Na(t, s, c) ? dn(n)._overflowWeeks = !0 : f != null ? dn(n)._overflowWeekday = !0 : (o = sA(t, i, r, s, c), n._a[Rr] = o.year, n._dayOfYear = o.dayOfYear);
5461
5461
  }
5462
5462
  yt.ISO_8601 = function() {
5463
5463
  };
@@ -5482,7 +5482,7 @@ function Wx(n) {
5482
5482
  n._locale,
5483
5483
  n._a[qi],
5484
5484
  n._meridiem
5485
- ), m = dn(n).era, m !== null && (n._a[Pr] = n._locale.erasConvertYear(m, n._a[Pr])), Ux(n), Hx(n);
5485
+ ), m = dn(n).era, m !== null && (n._a[Rr] = n._locale.erasConvertYear(m, n._a[Rr])), Ux(n), Hx(n);
5486
5486
  }
5487
5487
  function Z4(n, e, t) {
5488
5488
  var i;
@@ -6128,10 +6128,10 @@ Tt("yy", hh);
6128
6128
  Tt("yyy", hh);
6129
6129
  Tt("yyyy", hh);
6130
6130
  Tt("yo", y3);
6131
- ri(["y", "yy", "yyy", "yyyy"], Pr);
6131
+ ri(["y", "yy", "yyy", "yyyy"], Rr);
6132
6132
  ri(["yo"], function(n, e, t, i) {
6133
6133
  var r;
6134
- t._locale._eraYearOrdinalRegex && (r = n.match(t._locale._eraYearOrdinalRegex)), t._locale.eraYearOrdinalParse ? e[Pr] = t._locale.eraYearOrdinalParse(n, r) : e[Pr] = parseInt(n, 10);
6134
+ t._locale._eraYearOrdinalRegex && (r = n.match(t._locale._eraYearOrdinalRegex)), t._locale.eraYearOrdinalParse ? e[Rr] = t._locale.eraYearOrdinalParse(n, r) : e[Rr] = parseInt(n, 10);
6135
6135
  });
6136
6136
  function s3(n, e) {
6137
6137
  var t, i, r, s = this._eras || Ga("en")._eras;
@@ -7351,7 +7351,7 @@ var NA = { exports: {} };
7351
7351
  function Vi(u, l, d, p) {
7352
7352
  br(u, d, p), vr(u, l, d);
7353
7353
  }
7354
- function Yr(u, l, d) {
7354
+ function Zr(u, l, d) {
7355
7355
  let p;
7356
7356
  for (p in u[d]) if (Object.prototype.hasOwnProperty.call(u[d], p) && p !== "data" && !fn(u[d][p], l[d][p])) return !1;
7357
7357
  for (p in l[d]) if (Object.prototype.hasOwnProperty.call(l[d], p) && p !== "data" && !fn(u[d][p], l[d][p])) return !1;
@@ -7373,7 +7373,7 @@ var NA = { exports: {} };
7373
7373
  this.message = (l ? `${l}: ` : "") + p, b && (this.identifier = b), d != null && d.__line__ && (this.line = d.__line__);
7374
7374
  }
7375
7375
  }
7376
- function Zr(u, ...l) {
7376
+ function Xr(u, ...l) {
7377
7377
  for (const d of l) for (const p in d) u[p] = d[p];
7378
7378
  return u;
7379
7379
  }
@@ -7382,13 +7382,13 @@ var NA = { exports: {} };
7382
7382
  super(d), this.message = d, this.key = l;
7383
7383
  }
7384
7384
  }
7385
- class Xr {
7385
+ class Kr {
7386
7386
  constructor(l, d = []) {
7387
7387
  this.parent = l, this.bindings = {};
7388
7388
  for (const [p, b] of d) this.bindings[p] = b;
7389
7389
  }
7390
7390
  concat(l) {
7391
- return new Xr(this, l);
7391
+ return new Kr(this, l);
7392
7392
  }
7393
7393
  get(l) {
7394
7394
  if (this.bindings[l]) return this.bindings[l];
@@ -7399,7 +7399,7 @@ var NA = { exports: {} };
7399
7399
  return !!this.bindings[l] || !!this.parent && this.parent.has(l);
7400
7400
  }
7401
7401
  }
7402
- const Hs = { kind: "null" }, Ze = { kind: "number" }, Ee = { kind: "string" }, Fe = { kind: "boolean" }, Mt = { kind: "color" }, nn = { kind: "object" }, nt = { kind: "value" }, Jn = { kind: "collator" }, yi = { kind: "formatted" }, lr = { kind: "padding" }, zr = { kind: "resolvedImage" }, ae = { kind: "variableAnchorOffsetCollection" };
7402
+ const Hs = { kind: "null" }, Ze = { kind: "number" }, Ee = { kind: "string" }, Fe = { kind: "boolean" }, Mt = { kind: "color" }, nn = { kind: "object" }, nt = { kind: "value" }, Jn = { kind: "collator" }, yi = { kind: "formatted" }, lr = { kind: "padding" }, Lr = { kind: "resolvedImage" }, ae = { kind: "variableAnchorOffsetCollection" };
7403
7403
  function q(u, l) {
7404
7404
  return { kind: "array", itemType: u, N: l };
7405
7405
  }
@@ -7410,7 +7410,7 @@ var NA = { exports: {} };
7410
7410
  }
7411
7411
  return u.kind;
7412
7412
  }
7413
- const X = [Hs, Ze, Ee, Fe, Mt, yi, nn, q(nt), lr, zr, ae];
7413
+ const X = [Hs, Ze, Ee, Fe, Mt, yi, nn, q(nt), lr, Lr, ae];
7414
7414
  function ne(u, l) {
7415
7415
  if (l.kind === "error") return null;
7416
7416
  if (u.kind === "array") {
@@ -7560,30 +7560,30 @@ var NA = { exports: {} };
7560
7560
  this.text = l, this.image = d, this.scale = p, this.fontStack = b, this.textColor = S;
7561
7561
  }
7562
7562
  }
7563
- class Lr {
7563
+ class Nr {
7564
7564
  constructor(l) {
7565
7565
  this.sections = l;
7566
7566
  }
7567
7567
  static fromString(l) {
7568
- return new Lr([new _h(l, null, null, null, null)]);
7568
+ return new Nr([new _h(l, null, null, null, null)]);
7569
7569
  }
7570
7570
  isEmpty() {
7571
7571
  return this.sections.length === 0 || !this.sections.some((l) => l.text.length !== 0 || l.image && l.image.name.length !== 0);
7572
7572
  }
7573
7573
  static factory(l) {
7574
- return l instanceof Lr ? l : Lr.fromString(l);
7574
+ return l instanceof Nr ? l : Nr.fromString(l);
7575
7575
  }
7576
7576
  toString() {
7577
7577
  return this.sections.length === 0 ? "" : this.sections.map((l) => l.text).join("");
7578
7578
  }
7579
7579
  }
7580
- class Nr {
7580
+ class Br {
7581
7581
  constructor(l) {
7582
7582
  this.values = l.slice();
7583
7583
  }
7584
7584
  static parse(l) {
7585
- if (l instanceof Nr) return l;
7586
- if (typeof l == "number") return new Nr([l, l, l, l]);
7585
+ if (l instanceof Br) return l;
7586
+ if (typeof l == "number") return new Br([l, l, l, l]);
7587
7587
  if (Array.isArray(l) && !(l.length < 1 || l.length > 4)) {
7588
7588
  for (const d of l) if (typeof d != "number") return;
7589
7589
  switch (l.length) {
@@ -7596,7 +7596,7 @@ var NA = { exports: {} };
7596
7596
  case 3:
7597
7597
  l = [l[0], l[1], l[2], l[1]];
7598
7598
  }
7599
- return new Nr(l);
7599
+ return new Br(l);
7600
7600
  }
7601
7601
  }
7602
7602
  toString() {
@@ -7604,25 +7604,25 @@ var NA = { exports: {} };
7604
7604
  }
7605
7605
  }
7606
7606
  const E0 = /* @__PURE__ */ new Set(["center", "left", "right", "top", "bottom", "top-left", "top-right", "bottom-left", "bottom-right"]);
7607
- class Kr {
7607
+ class Jr {
7608
7608
  constructor(l) {
7609
7609
  this.values = l.slice();
7610
7610
  }
7611
7611
  static parse(l) {
7612
- if (l instanceof Kr) return l;
7612
+ if (l instanceof Jr) return l;
7613
7613
  if (Array.isArray(l) && !(l.length < 1) && l.length % 2 == 0) {
7614
7614
  for (let d = 0; d < l.length; d += 2) {
7615
7615
  const p = l[d], b = l[d + 1];
7616
7616
  if (typeof p != "string" || !E0.has(p) || !Array.isArray(b) || b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number") return;
7617
7617
  }
7618
- return new Kr(l);
7618
+ return new Jr(l);
7619
7619
  }
7620
7620
  }
7621
7621
  toString() {
7622
7622
  return JSON.stringify(this.values);
7623
7623
  }
7624
7624
  }
7625
- class Br {
7625
+ class Fr {
7626
7626
  constructor(l) {
7627
7627
  this.name = l.name, this.available = l.available;
7628
7628
  }
@@ -7630,14 +7630,14 @@ var NA = { exports: {} };
7630
7630
  return this.name;
7631
7631
  }
7632
7632
  static fromString(l) {
7633
- return l ? new Br({ name: l, available: !1 }) : null;
7633
+ return l ? new Fr({ name: l, available: !1 }) : null;
7634
7634
  }
7635
7635
  }
7636
7636
  function Ka(u, l, d, p) {
7637
7637
  return typeof u == "number" && u >= 0 && u <= 255 && typeof l == "number" && l >= 0 && l <= 255 && typeof d == "number" && d >= 0 && d <= 255 ? p === void 0 || typeof p == "number" && p >= 0 && p <= 1 ? null : `Invalid rgba value [${[u, l, d, p].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof p == "number" ? [u, l, d, p] : [u, l, d]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
7638
7638
  }
7639
7639
  function ra(u) {
7640
- if (u === null || typeof u == "string" || typeof u == "boolean" || typeof u == "number" || u instanceof On || u instanceof bh || u instanceof Lr || u instanceof Nr || u instanceof Kr || u instanceof Br) return !0;
7640
+ if (u === null || typeof u == "string" || typeof u == "boolean" || typeof u == "number" || u instanceof On || u instanceof bh || u instanceof Nr || u instanceof Br || u instanceof Jr || u instanceof Fr) return !0;
7641
7641
  if (Array.isArray(u)) {
7642
7642
  for (const l of u) if (!ra(l)) return !1;
7643
7643
  return !0;
@@ -7655,10 +7655,10 @@ var NA = { exports: {} };
7655
7655
  if (typeof u == "number") return Ze;
7656
7656
  if (u instanceof On) return Mt;
7657
7657
  if (u instanceof bh) return Jn;
7658
- if (u instanceof Lr) return yi;
7659
- if (u instanceof Nr) return lr;
7660
- if (u instanceof Kr) return ae;
7661
- if (u instanceof Br) return zr;
7658
+ if (u instanceof Nr) return yi;
7659
+ if (u instanceof Br) return lr;
7660
+ if (u instanceof Jr) return ae;
7661
+ if (u instanceof Fr) return Lr;
7662
7662
  if (Array.isArray(u)) {
7663
7663
  const l = u.length;
7664
7664
  let d;
@@ -7677,7 +7677,7 @@ var NA = { exports: {} };
7677
7677
  }
7678
7678
  function uc(u) {
7679
7679
  const l = typeof u;
7680
- return u === null ? "" : l === "string" || l === "number" || l === "boolean" ? String(u) : u instanceof On || u instanceof Lr || u instanceof Nr || u instanceof Kr || u instanceof Br ? u.toString() : JSON.stringify(u);
7680
+ return u === null ? "" : l === "string" || l === "number" || l === "boolean" ? String(u) : u instanceof On || u instanceof Nr || u instanceof Br || u instanceof Jr || u instanceof Fr ? u.toString() : JSON.stringify(u);
7681
7681
  }
7682
7682
  class ys {
7683
7683
  constructor(l, d) {
@@ -7793,7 +7793,7 @@ var NA = { exports: {} };
7793
7793
  let d;
7794
7794
  for (const p of this.args) {
7795
7795
  d = p.evaluate(l);
7796
- const b = Nr.parse(d);
7796
+ const b = Br.parse(d);
7797
7797
  if (b) return b;
7798
7798
  }
7799
7799
  throw new Si(`Could not parse padding from value '${typeof d == "string" ? d : JSON.stringify(d)}'`);
@@ -7802,7 +7802,7 @@ var NA = { exports: {} };
7802
7802
  let d;
7803
7803
  for (const p of this.args) {
7804
7804
  d = p.evaluate(l);
7805
- const b = Kr.parse(d);
7805
+ const b = Jr.parse(d);
7806
7806
  if (b) return b;
7807
7807
  }
7808
7808
  throw new Si(`Could not parse variableAnchorOffsetCollection from value '${typeof d == "string" ? d : JSON.stringify(d)}'`);
@@ -7817,9 +7817,9 @@ var NA = { exports: {} };
7817
7817
  throw new Si(`Could not convert ${JSON.stringify(d)} to number.`);
7818
7818
  }
7819
7819
  case "formatted":
7820
- return Lr.fromString(uc(this.args[0].evaluate(l)));
7820
+ return Nr.fromString(uc(this.args[0].evaluate(l)));
7821
7821
  case "resolvedImage":
7822
- return Br.fromString(uc(this.args[0].evaluate(l)));
7822
+ return Fr.fromString(uc(this.args[0].evaluate(l)));
7823
7823
  default:
7824
7824
  return uc(this.args[0].evaluate(l));
7825
7825
  }
@@ -7857,7 +7857,7 @@ var NA = { exports: {} };
7857
7857
  }
7858
7858
  }
7859
7859
  class sa {
7860
- constructor(l, d, p = [], b, S = new Xr(), k = []) {
7860
+ constructor(l, d, p = [], b, S = new Kr(), k = []) {
7861
7861
  this.registry = l, this.path = p, this.key = p.map((T) => `[${T}]`).join(""), this.scope = S, this.errors = k, this.expectedType = b, this._isConstant = d;
7862
7862
  }
7863
7863
  parse(l, d, p, b, S = {}) {
@@ -8258,7 +8258,7 @@ var NA = { exports: {} };
8258
8258
  }
8259
8259
  }
8260
8260
  }, array: hc, padding: function(u, l, d) {
8261
- return new Nr(hc(u.values, l.values, d));
8261
+ return new Br(hc(u.values, l.values, d));
8262
8262
  }, variableAnchorOffsetCollection: function(u, l, d) {
8263
8263
  const p = u.values, b = l.values;
8264
8264
  if (p.length !== b.length) throw new Si(`Cannot interpolate values of different length. from: ${u.toString()}, to: ${l.toString()}`);
@@ -8269,7 +8269,7 @@ var NA = { exports: {} };
8269
8269
  const [T, D] = p[k + 1], [R, L] = b[k + 1];
8270
8270
  S.push([oa(T, R, d), oa(D, L, d)]);
8271
8271
  }
8272
- return new Kr(S);
8272
+ return new Jr(S);
8273
8273
  } };
8274
8274
  class xr {
8275
8275
  constructor(l, d, p, b, S) {
@@ -8368,7 +8368,7 @@ var NA = { exports: {} };
8368
8368
  }
8369
8369
  evaluate(l) {
8370
8370
  let d, p = null, b = 0;
8371
- for (const S of this.args) if (b++, p = S.evaluate(l), p && p instanceof Br && !p.available && (d || (d = p.name), p = null, b === this.args.length && (p = d)), p !== null) break;
8371
+ for (const S of this.args) if (b++, p = S.evaluate(l), p && p instanceof Fr && !p.available && (d || (d = p.name), p = null, b === this.args.length && (p = d)), p !== null) break;
8372
8372
  return p;
8373
8373
  }
8374
8374
  eachChild(l) {
@@ -8538,9 +8538,9 @@ var NA = { exports: {} };
8538
8538
  return new Au(b);
8539
8539
  }
8540
8540
  evaluate(l) {
8541
- return new Lr(this.sections.map((d) => {
8541
+ return new Nr(this.sections.map((d) => {
8542
8542
  const p = d.content.evaluate(l);
8543
- return Ci(p) === zr ? new _h("", p, null, null, null) : new _h(uc(p), null, d.scale ? d.scale.evaluate(l) : null, d.font ? d.font.evaluate(l).join(",") : null, d.textColor ? d.textColor.evaluate(l) : null);
8543
+ return Ci(p) === Lr ? new _h("", p, null, null, null) : new _h(uc(p), null, d.scale ? d.scale.evaluate(l) : null, d.font ? d.font.evaluate(l).join(",") : null, d.textColor ? d.textColor.evaluate(l) : null);
8544
8544
  }));
8545
8545
  }
8546
8546
  eachChild(l) {
@@ -8552,7 +8552,7 @@ var NA = { exports: {} };
8552
8552
  }
8553
8553
  class Ch {
8554
8554
  constructor(l) {
8555
- this.type = zr, this.input = l;
8555
+ this.type = Lr, this.input = l;
8556
8556
  }
8557
8557
  static parse(l, d) {
8558
8558
  if (l.length !== 2) return d.error("Expected two arguments.");
@@ -8560,7 +8560,7 @@ var NA = { exports: {} };
8560
8560
  return p ? new Ch(p) : d.error("No image name provided.");
8561
8561
  }
8562
8562
  evaluate(l) {
8563
- const d = this.input.evaluate(l), p = Br.fromString(d);
8563
+ const d = this.input.evaluate(l), p = Fr.fromString(d);
8564
8564
  return p && l.availableImages && (p.available = l.availableImages.indexOf(d) > -1), p;
8565
8565
  }
8566
8566
  eachChild(l) {
@@ -9127,7 +9127,7 @@ var NA = { exports: {} };
9127
9127
  }
9128
9128
  }
9129
9129
  const nl = { "==": M0, "!=": Kp, ">": D0, "<": Jp, ">=": Qp, "<=": I0, array: vs, at: wh, boolean: vs, case: Su, coalesce: Cu, collator: fc, format: Au, image: Ch, in: Sh, "index-of": Ja, interpolate: xr, "interpolate-hcl": xr, "interpolate-lab": xr, length: Th, let: Po, literal: ys, match: kh, number: vs, "number-format": Eh, object: vs, slice: dc, step: Qa, string: vs, "to-boolean": bs, "to-color": bs, "to-number": bs, "to-string": bs, var: Cn, within: la, distance: da };
9130
- class Jr {
9130
+ class Qr {
9131
9131
  constructor(l, d, p, b) {
9132
9132
  this.name = l, this.type = d, this._evaluate = p, this.args = b;
9133
9133
  }
@@ -9141,7 +9141,7 @@ var NA = { exports: {} };
9141
9141
  return !1;
9142
9142
  }
9143
9143
  static parse(l, d) {
9144
- const p = l[0], b = Jr.definitions[p];
9144
+ const p = l[0], b = Qr.definitions[p];
9145
9145
  if (!b) return d.error(`Unknown expression "${p}". If you wanted a literal array, use ["literal", [...]].`, 0);
9146
9146
  const S = Array.isArray(b) ? b[0] : b.type, k = Array.isArray(b) ? [[b[1], b[2]]] : b.overloads, T = k.filter(([R]) => !Array.isArray(R) || R.length === l.length - 1);
9147
9147
  let D = null;
@@ -9163,7 +9163,7 @@ var NA = { exports: {} };
9163
9163
  const Z = Array.isArray(R) ? R[G] : R.type, K = B[G];
9164
9164
  D.concat(G + 1).checkSubtype(Z, K.type);
9165
9165
  }
9166
- if (D.errors.length === 0) return new Jr(p, S, L, B);
9166
+ if (D.errors.length === 0) return new Qr(p, S, L, B);
9167
9167
  }
9168
9168
  }
9169
9169
  if (T.length === 1) d.errors.push(...D.errors);
@@ -9182,8 +9182,8 @@ var NA = { exports: {} };
9182
9182
  return null;
9183
9183
  }
9184
9184
  static register(l, d) {
9185
- Jr.definitions = d;
9186
- for (const p in d) l[p] = Jr;
9185
+ Qr.definitions = d;
9186
+ for (const p in d) l[p] = Qr;
9187
9187
  }
9188
9188
  }
9189
9189
  function Nh(u, [l, d, p, b]) {
@@ -9204,7 +9204,7 @@ var NA = { exports: {} };
9204
9204
  }
9205
9205
  function yc(u) {
9206
9206
  if (u instanceof Cn) return yc(u.boundExpression);
9207
- if (u instanceof Jr && u.name === "error" || u instanceof fc || u instanceof la || u instanceof da) return !1;
9207
+ if (u instanceof Qr && u.name === "error" || u instanceof fc || u instanceof la || u instanceof da) return !1;
9208
9208
  const l = u instanceof bs || u instanceof vs;
9209
9209
  let d = !0;
9210
9210
  return u.eachChild((p) => {
@@ -9212,21 +9212,21 @@ var NA = { exports: {} };
9212
9212
  }), !!d && vc(u) && bc(u, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
9213
9213
  }
9214
9214
  function vc(u) {
9215
- if (u instanceof Jr && (u.name === "get" && u.args.length === 1 || u.name === "feature-state" || u.name === "has" && u.args.length === 1 || u.name === "properties" || u.name === "geometry-type" || u.name === "id" || /^filter-/.test(u.name)) || u instanceof la || u instanceof da) return !1;
9215
+ if (u instanceof Qr && (u.name === "get" && u.args.length === 1 || u.name === "feature-state" || u.name === "has" && u.args.length === 1 || u.name === "properties" || u.name === "geometry-type" || u.name === "id" || /^filter-/.test(u.name)) || u instanceof la || u instanceof da) return !1;
9216
9216
  let l = !0;
9217
9217
  return u.eachChild((d) => {
9218
9218
  l && !vc(d) && (l = !1);
9219
9219
  }), l;
9220
9220
  }
9221
9221
  function il(u) {
9222
- if (u instanceof Jr && u.name === "feature-state") return !1;
9222
+ if (u instanceof Qr && u.name === "feature-state") return !1;
9223
9223
  let l = !0;
9224
9224
  return u.eachChild((d) => {
9225
9225
  l && !il(d) && (l = !1);
9226
9226
  }), l;
9227
9227
  }
9228
9228
  function bc(u, l) {
9229
- if (u instanceof Jr && l.indexOf(u.name) >= 0) return !1;
9229
+ if (u instanceof Qr && l.indexOf(u.name) >= 0) return !1;
9230
9230
  let d = !0;
9231
9231
  return u.eachChild((p) => {
9232
9232
  d && !bc(p, l) && (d = !1);
@@ -9259,8 +9259,8 @@ var NA = { exports: {} };
9259
9259
  function fm(u, l) {
9260
9260
  const d = l.type === "color", p = u.stops && typeof u.stops[0][0] == "object", b = p || !(p || u.property !== void 0), S = u.type || (Vh(l) ? "exponential" : "interval");
9261
9261
  if (d || l.type === "padding") {
9262
- const L = d ? On.parse : Nr.parse;
9263
- (u = Zr({}, u)).stops && (u.stops = u.stops.map((B) => [B[0], L(B[1])])), u.default = L(u.default ? u.default : l.default);
9262
+ const L = d ? On.parse : Br.parse;
9263
+ (u = Xr({}, u)).stops && (u.stops = u.stops.map((B) => [B[0], L(B[1])])), u.default = L(u.default ? u.default : l.default);
9264
9264
  }
9265
9265
  if (u.colorSpace && (k = u.colorSpace) !== "rgb" && k !== "hcl" && k !== "lab") throw new Error(`Unknown color space: "${u.colorSpace}"`);
9266
9266
  var k;
@@ -9330,20 +9330,20 @@ var NA = { exports: {} };
9330
9330
  d = On.parse(d);
9331
9331
  break;
9332
9332
  case "formatted":
9333
- d = Lr.fromString(d.toString());
9333
+ d = Nr.fromString(d.toString());
9334
9334
  break;
9335
9335
  case "resolvedImage":
9336
- d = Br.fromString(d.toString());
9336
+ d = Fr.fromString(d.toString());
9337
9337
  break;
9338
9338
  case "padding":
9339
- d = Nr.parse(d);
9339
+ d = Br.parse(d);
9340
9340
  break;
9341
9341
  default:
9342
9342
  wn(d) === l.type || l.type === "enum" && l.values[d] || (d = void 0);
9343
9343
  }
9344
9344
  return ol(d, u.default, l.default);
9345
9345
  }
9346
- Jr.register(nl, { error: [{ kind: "error" }, [Ee], (u, [l]) => {
9346
+ Qr.register(nl, { error: [{ kind: "error" }, [Ee], (u, [l]) => {
9347
9347
  throw new Si(l.evaluate(u));
9348
9348
  }], typeof: [Ee, [nt], (u, [l]) => W(Ci(l.evaluate(u)))], "to-rgba": [q(Ze, 4), [Mt], (u, [l]) => {
9349
9349
  const [d, p, b, S] = l.evaluate(u).rgb;
@@ -9403,7 +9403,7 @@ var NA = { exports: {} };
9403
9403
  class Nu {
9404
9404
  constructor(l, d) {
9405
9405
  var p;
9406
- this.expression = l, this._warningHistory = {}, this._evaluator = new wu(), this._defaultValue = d ? (p = d).type === "color" && zu(p.default) ? new On(0, 0, 0, 0) : p.type === "color" ? On.parse(p.default) || null : p.type === "padding" ? Nr.parse(p.default) || null : p.type === "variableAnchorOffsetCollection" ? Kr.parse(p.default) || null : p.default === void 0 ? null : p.default : null, this._enumValues = d && d.type === "enum" ? d.values : null;
9406
+ this.expression = l, this._warningHistory = {}, this._evaluator = new wu(), this._defaultValue = d ? (p = d).type === "color" && zu(p.default) ? new On(0, 0, 0, 0) : p.type === "color" ? On.parse(p.default) || null : p.type === "padding" ? Br.parse(p.default) || null : p.type === "variableAnchorOffsetCollection" ? Jr.parse(p.default) || null : p.default === void 0 ? null : p.default : null, this._enumValues = d && d.type === "enum" ? d.values : null;
9407
9407
  }
9408
9408
  evaluateWithoutErrorHandling(l, d, p, b, S, k) {
9409
9409
  return this._evaluator.globals = l, this._evaluator.feature = d, this._evaluator.featureState = p, this._evaluator.canonical = b, this._evaluator.availableImages = S || null, this._evaluator.formattedSection = k, this.expression.evaluate(this._evaluator);
@@ -9425,7 +9425,7 @@ var NA = { exports: {} };
9425
9425
  }
9426
9426
  function al(u, l) {
9427
9427
  const d = new sa(nl, yc, [], l ? function(b) {
9428
- const S = { color: Mt, string: Ee, number: Ze, enum: Ee, boolean: Fe, formatted: yi, padding: lr, resolvedImage: zr, variableAnchorOffsetCollection: ae };
9428
+ const S = { color: Mt, string: Ee, number: Ze, enum: Ee, boolean: Fe, formatted: yi, padding: lr, resolvedImage: Lr, variableAnchorOffsetCollection: ae };
9429
9429
  return b.type === "array" ? q(S[b.value] || nt, b.length) : S[b.type];
9430
9430
  }(l) : void 0), p = d.parse(u, void 0, void 0, void 0, l && l.type === "string" ? { typeAnnotation: "coerce" } : void 0);
9431
9431
  return p ? Ou(new Nu(p, l)) : rl(d.errors);
@@ -9467,7 +9467,7 @@ var NA = { exports: {} };
9467
9467
  }
9468
9468
  class ul {
9469
9469
  constructor(l, d) {
9470
- this._parameters = l, this._specification = d, Zr(this, fm(this._parameters, this._specification));
9470
+ this._parameters = l, this._specification = d, Xr(this, fm(this._parameters, this._specification));
9471
9471
  }
9472
9472
  static deserialize(l) {
9473
9473
  return new ul(l._parameters, l._specification);
@@ -9481,7 +9481,7 @@ var NA = { exports: {} };
9481
9481
  if (u instanceof Po) l = _c(u.result);
9482
9482
  else if (u instanceof Cu) {
9483
9483
  for (const d of u.args) if (l = _c(d), l) break;
9484
- } else (u instanceof Qa || u instanceof xr) && u.input instanceof Jr && u.input.name === "zoom" && (l = u);
9484
+ } else (u instanceof Qa || u instanceof xr) && u.input instanceof Qr && u.input.name === "zoom" && (l = u);
9485
9485
  return l instanceof ji || u.eachChild((d) => {
9486
9486
  const p = _c(d);
9487
9487
  p instanceof ji ? l = p : !l && p ? l = new ji("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : l && p && l !== p && (l = new ji("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
@@ -9605,7 +9605,7 @@ var NA = { exports: {} };
9605
9605
  }
9606
9606
  return bi(u);
9607
9607
  }
9608
- function Fr(u) {
9608
+ function Vr(u) {
9609
9609
  const l = u.key, d = u.value, p = u.valueSpec || {}, b = u.objectElementValidators || {}, S = u.style, k = u.styleSpec, T = u.validateSpec;
9610
9610
  let D = [];
9611
9611
  const R = wn(d);
@@ -9647,7 +9647,7 @@ var NA = { exports: {} };
9647
9647
  function ju(u) {
9648
9648
  const l = u.valueSpec, d = bi(u.value.type);
9649
9649
  let p, b, S, k = {};
9650
- const T = d !== "categorical" && u.value.property === void 0, D = !T, R = wn(u.value.stops) === "array" && wn(u.value.stops[0]) === "array" && wn(u.value.stops[0][0]) === "object", L = Fr({ key: u.key, value: u.value, valueSpec: u.styleSpec.function, validateSpec: u.validateSpec, style: u.style, styleSpec: u.styleSpec, objectElementValidators: { stops: function(G) {
9650
+ const T = d !== "categorical" && u.value.property === void 0, D = !T, R = wn(u.value.stops) === "array" && wn(u.value.stops[0]) === "array" && wn(u.value.stops[0][0]) === "object", L = Vr({ key: u.key, value: u.value, valueSpec: u.styleSpec.function, validateSpec: u.validateSpec, style: u.style, styleSpec: u.styleSpec, objectElementValidators: { stops: function(G) {
9651
9651
  if (d === "identity") return [new je(G.key, G.value, 'identity function may not have a "stops" property')];
9652
9652
  let Z = [];
9653
9653
  const K = G.value;
@@ -9666,7 +9666,7 @@ var NA = { exports: {} };
9666
9666
  if (K[0].zoom === void 0) return [new je(ie, K, "object stop key must have zoom")];
9667
9667
  if (K[0].value === void 0) return [new je(ie, K, "object stop key must have value")];
9668
9668
  if (S && S > bi(K[0].zoom)) return [new je(ie, K[0].zoom, "stop zoom values must appear in ascending order")];
9669
- bi(K[0].zoom) !== S && (S = bi(K[0].zoom), b = void 0, k = {}), Z = Z.concat(Fr({ key: `${ie}[0]`, value: K[0], valueSpec: { zoom: {} }, validateSpec: G.validateSpec, style: G.style, styleSpec: G.styleSpec, objectElementValidators: { zoom: Uh, value: U } }));
9669
+ bi(K[0].zoom) !== S && (S = bi(K[0].zoom), b = void 0, k = {}), Z = Z.concat(Vr({ key: `${ie}[0]`, value: K[0], valueSpec: { zoom: {} }, validateSpec: G.validateSpec, style: G.style, styleSpec: G.styleSpec, objectElementValidators: { zoom: Uh, value: U } }));
9670
9670
  } else Z = Z.concat(U({ key: `${ie}[0]`, value: K[0], valueSpec: {}, validateSpec: G.validateSpec, style: G.style, styleSpec: G.styleSpec }, K));
9671
9671
  return Bu(_s(K[1])) ? Z.concat([new je(`${ie}[1]`, K[1], "expressions are not allowed in function stops.")]) : Z.concat(G.validateSpec({ key: `${ie}[1]`, value: K[1], valueSpec: l, validateSpec: G.validateSpec, style: G.style, styleSpec: G.styleSpec }));
9672
9672
  }
@@ -9701,7 +9701,7 @@ var NA = { exports: {} };
9701
9701
  return Array.isArray(p.values) ? p.values.indexOf(bi(d)) === -1 && b.push(new je(l, d, `expected one of [${p.values.join(", ")}], ${JSON.stringify(d)} found`)) : Object.keys(p.values).indexOf(bi(d)) === -1 && b.push(new je(l, d, `expected one of [${Object.keys(p.values).join(", ")}], ${JSON.stringify(d)} found`)), b;
9702
9702
  }
9703
9703
  function Wh(u) {
9704
- return Fu(_s(u.value)) ? dl(Zr({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Hu(u);
9704
+ return Fu(_s(u.value)) ? dl(Xr({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : Hu(u);
9705
9705
  }
9706
9706
  function Hu(u) {
9707
9707
  const l = u.value, d = u.key;
@@ -9777,7 +9777,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9777
9777
  const D = b.sources && b.sources[d.source], R = D && bi(D.type);
9778
9778
  D ? R === "vector" && k === "raster" ? l.push(new je(p, d.source, `layer "${d.id}" requires a raster source`)) : R !== "raster-dem" && k === "hillshade" ? l.push(new je(p, d.source, `layer "${d.id}" requires a raster-dem source`)) : R === "raster" && k !== "raster" ? l.push(new je(p, d.source, `layer "${d.id}" requires a vector source`)) : R !== "vector" || d["source-layer"] ? R === "raster-dem" && k !== "hillshade" ? l.push(new je(p, d.source, "raster-dem source can only be used with layer type 'hillshade'.")) : k !== "line" || !d.paint || !d.paint["line-gradient"] || R === "geojson" && D.lineMetrics || l.push(new je(p, d, `layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : l.push(new je(p, d, `layer "${d.id}" must specify a "source-layer"`)) : l.push(new je(p, d.source, `source "${d.source}" not found`));
9779
9779
  } else l.push(new je(p, d, 'missing required property "source"'));
9780
- return l = l.concat(Fr({ key: p, value: d, valueSpec: S.layer, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, objectElementValidators: { "*": () => [], type: () => u.validateSpec({ key: `${p}.type`, value: d.type, valueSpec: S.layer.type, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, object: d, objectKey: "type" }), filter: Wh, layout: (D) => Fr({ layer: d, key: D.key, value: D.value, style: D.style, styleSpec: D.styleSpec, validateSpec: D.validateSpec, objectElementValidators: { "*": (R) => Gh(Zr({ layerType: k }, R)) } }), paint: (D) => Fr({ layer: d, key: D.key, value: D.value, style: D.style, styleSpec: D.styleSpec, validateSpec: D.validateSpec, objectElementValidators: { "*": (R) => Uu(Zr({ layerType: k }, R)) } }) } })), l;
9780
+ return l = l.concat(Vr({ key: p, value: d, valueSpec: S.layer, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, objectElementValidators: { "*": () => [], type: () => u.validateSpec({ key: `${p}.type`, value: d.type, valueSpec: S.layer.type, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, object: d, objectKey: "type" }), filter: Wh, layout: (D) => Vr({ layer: d, key: D.key, value: D.value, style: D.style, styleSpec: D.styleSpec, validateSpec: D.validateSpec, objectElementValidators: { "*": (R) => Gh(Xr({ layerType: k }, R)) } }), paint: (D) => Vr({ layer: d, key: D.key, value: D.value, style: D.style, styleSpec: D.styleSpec, validateSpec: D.validateSpec, objectElementValidators: { "*": (R) => Uu(Xr({ layerType: k }, R)) } }) } })), l;
9781
9781
  }
9782
9782
  function pa(u) {
9783
9783
  const l = u.value, d = u.key, p = wn(l);
@@ -9799,7 +9799,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9799
9799
  switch (k) {
9800
9800
  case "vector":
9801
9801
  case "raster":
9802
- return T = Fr({ key: d, value: l, valueSpec: p[`source_${k.replace("-", "_")}`], style: u.style, styleSpec: p, objectElementValidators: Wu, validateSpec: S }), T;
9802
+ return T = Vr({ key: d, value: l, valueSpec: p[`source_${k.replace("-", "_")}`], style: u.style, styleSpec: p, objectElementValidators: Wu, validateSpec: S }), T;
9803
9803
  case "raster-dem":
9804
9804
  return T = function(D) {
9805
9805
  var R;
@@ -9813,15 +9813,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9813
9813
  return K;
9814
9814
  }({ sourceName: d, value: l, style: u.style, styleSpec: p, validateSpec: S }), T;
9815
9815
  case "geojson":
9816
- if (T = Fr({ key: d, value: l, valueSpec: p.source_geojson, style: b, styleSpec: p, validateSpec: S, objectElementValidators: Wu }), l.cluster) for (const D in l.clusterProperties) {
9816
+ if (T = Vr({ key: d, value: l, valueSpec: p.source_geojson, style: b, styleSpec: p, validateSpec: S, objectElementValidators: Wu }), l.cluster) for (const D in l.clusterProperties) {
9817
9817
  const [R, L] = l.clusterProperties[D], B = typeof R == "string" ? [R, ["accumulated"], ["get", D]] : R;
9818
9818
  T.push(...dl({ key: `${d}.${D}.map`, value: L, validateSpec: S, expressionContext: "cluster-map" })), T.push(...dl({ key: `${d}.${D}.reduce`, value: B, validateSpec: S, expressionContext: "cluster-reduce" }));
9819
9819
  }
9820
9820
  return T;
9821
9821
  case "video":
9822
- return Fr({ key: d, value: l, valueSpec: p.source_video, style: b, validateSpec: S, styleSpec: p });
9822
+ return Vr({ key: d, value: l, valueSpec: p.source_video, style: b, validateSpec: S, styleSpec: p });
9823
9823
  case "image":
9824
- return Fr({ key: d, value: l, valueSpec: p.source_image, style: b, validateSpec: S, styleSpec: p });
9824
+ return Vr({ key: d, value: l, valueSpec: p.source_image, style: b, validateSpec: S, styleSpec: p });
9825
9825
  case "canvas":
9826
9826
  return [new je(d, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
9827
9827
  default:
@@ -9862,7 +9862,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9862
9862
  const d = u.value, p = u.key;
9863
9863
  if (Array.isArray(d)) {
9864
9864
  const b = [], S = [];
9865
- for (const k in d) d[k].id && b.includes(d[k].id) && l.push(new je(p, d, `all the sprites' ids must be unique, but ${d[k].id} is duplicated`)), b.push(d[k].id), d[k].url && S.includes(d[k].url) && l.push(new je(p, d, `all the sprites' URLs must be unique, but ${d[k].url} is duplicated`)), S.push(d[k].url), l = l.concat(Fr({ key: `${p}[${k}]`, value: d[k], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: u.validateSpec }));
9865
+ for (const k in d) d[k].id && b.includes(d[k].id) && l.push(new je(p, d, `all the sprites' ids must be unique, but ${d[k].id} is duplicated`)), b.push(d[k].id), d[k].url && S.includes(d[k].url) && l.push(new je(p, d, `all the sprites' URLs must be unique, but ${d[k].url} is duplicated`)), S.push(d[k].url), l = l.concat(Vr({ key: `${p}[${k}]`, value: d[k], valueSpec: { id: { type: "string", required: !0 }, url: { type: "string", required: !0 } }, validateSpec: u.validateSpec }));
9866
9866
  return l;
9867
9867
  }
9868
9868
  return pa({ key: p, value: d });
@@ -9873,7 +9873,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9873
9873
  }, number: Uh, color: function(u) {
9874
9874
  const l = u.key, d = u.value, p = wn(d);
9875
9875
  return p !== "string" ? [new je(l, d, `color expected, ${p} found`)] : On.parse(String(d)) ? [] : [new je(l, d, `color expected, "${d}" found`)];
9876
- }, constants: bm, enum: po, filter: Wh, function: ju, layer: Yh, object: Fr, source: kc, light: Zh, sky: Xh, terrain: Kh, projection: function(u) {
9876
+ }, constants: bm, enum: po, filter: Wh, function: ju, layer: Yh, object: Vr, source: kc, light: Zh, sky: Xh, terrain: Kh, projection: function(u) {
9877
9877
  const l = u.value, d = u.styleSpec, p = d.projection, b = u.style, S = wn(l);
9878
9878
  if (l === void 0) return [];
9879
9879
  if (S !== "object") return [new je("projection", l, `object expected, ${S} found`)];
@@ -9903,13 +9903,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9903
9903
  }, sprite: Jh };
9904
9904
  function hl(u) {
9905
9905
  const l = u.value, d = u.valueSpec, p = u.styleSpec;
9906
- return u.validateSpec = hl, d.expression && zu(bi(l)) ? ju(u) : d.expression && Bu(_s(l)) ? dl(u) : d.type && qu[d.type] ? qu[d.type](u) : Fr(Zr({}, u, { valueSpec: d.type ? p[d.type] : d }));
9906
+ return u.validateSpec = hl, d.expression && zu(bi(l)) ? ju(u) : d.expression && Bu(_s(l)) ? dl(u) : d.type && qu[d.type] ? qu[d.type](u) : Vr(Xr({}, u, { valueSpec: d.type ? p[d.type] : d }));
9907
9907
  }
9908
9908
  function _m(u) {
9909
9909
  const l = u.value, d = u.key, p = pa(u);
9910
9910
  return p.length || (l.indexOf("{fontstack}") === -1 && p.push(new je(d, l, '"glyphs" url must include a "{fontstack}" token')), l.indexOf("{range}") === -1 && p.push(new je(d, l, '"glyphs" url must include a "{range}" token'))), p;
9911
9911
  }
9912
- function Qr(u, l = Te) {
9912
+ function es(u, l = Te) {
9913
9913
  let d = [];
9914
9914
  return d = d.concat(hl({ key: "", value: u, valueSpec: l.$root, styleSpec: l, style: u, validateSpec: hl, objectElementValidators: { glyphs: _m, "*": () => [] } })), u.constants && (d = d.concat(bm({ key: "constants", value: u.constants, style: u, styleSpec: l, validateSpec: hl }))), Qh(d);
9915
9915
  }
@@ -9926,8 +9926,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9926
9926
  return Qh(u.apply(this, l));
9927
9927
  };
9928
9928
  }
9929
- Qr.source = xs(Ws(kc)), Qr.sprite = xs(Ws(Jh)), Qr.glyphs = xs(Ws(_m)), Qr.light = xs(Ws(Zh)), Qr.sky = xs(Ws(Xh)), Qr.terrain = xs(Ws(Kh)), Qr.layer = xs(Ws(Yh)), Qr.filter = xs(Ws(Wh)), Qr.paintProperty = xs(Ws(Uu)), Qr.layoutProperty = xs(Ws(Gh));
9930
- const ma = Qr, U0 = ma.light, W0 = ma.sky, xm = ma.paintProperty, wm = ma.layoutProperty;
9929
+ es.source = xs(Ws(kc)), es.sprite = xs(Ws(Jh)), es.glyphs = xs(Ws(_m)), es.light = xs(Ws(Zh)), es.sky = xs(Ws(Xh)), es.terrain = xs(Ws(Kh)), es.layer = xs(Ws(Yh)), es.filter = xs(Ws(Wh)), es.paintProperty = xs(Ws(Uu)), es.layoutProperty = xs(Ws(Gh));
9930
+ const ma = es, U0 = ma.light, W0 = ma.sky, xm = ma.paintProperty, wm = ma.layoutProperty;
9931
9931
  function ef(u, l) {
9932
9932
  let d = !1;
9933
9933
  if (l && l.length) for (const p of l) u.fire(new Nt(new Error(p.message))), d = !0;
@@ -10020,12 +10020,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10020
10020
  return new fl(l.buffer);
10021
10021
  }
10022
10022
  }
10023
- const es = {};
10023
+ const ts = {};
10024
10024
  function ht(u, l, d = {}) {
10025
- if (es[u]) throw new Error(`${u} is already registered.`);
10026
- Object.defineProperty(l, "_classRegistryKey", { value: u, writeable: !1 }), es[u] = { klass: l, omit: d.omit || [], shallow: d.shallow || [] };
10025
+ if (ts[u]) throw new Error(`${u} is already registered.`);
10026
+ Object.defineProperty(l, "_classRegistryKey", { value: u, writeable: !1 }), ts[u] = { klass: l, omit: d.omit || [], shallow: d.shallow || [] };
10027
10027
  }
10028
- ht("Object", Object), ht("TransferableGridIndex", fl), ht("Color", On), ht("Error", Error), ht("AJAXError", Pe), ht("ResolvedImage", Br), ht("StylePropertyFunction", ul), ht("StyleExpression", Nu, { omit: ["_evaluator"] }), ht("ZoomDependentExpression", cl), ht("ZoomConstantExpression", ll), ht("CompoundExpression", Jr, { omit: ["_evaluate"] });
10028
+ ht("Object", Object), ht("TransferableGridIndex", fl), ht("Color", On), ht("Error", Error), ht("AJAXError", Pe), ht("ResolvedImage", Fr), ht("StylePropertyFunction", ul), ht("StyleExpression", Nu, { omit: ["_evaluator"] }), ht("ZoomDependentExpression", cl), ht("ZoomConstantExpression", ll), ht("CompoundExpression", Qr, { omit: ["_evaluate"] });
10029
10029
  for (const u in nl) nl[u]._classRegistryKey || ht(`Expression_${u}`, nl[u]);
10030
10030
  function Gu(u) {
10031
10031
  return u && typeof ArrayBuffer < "u" && (u instanceof ArrayBuffer || u.constructor && u.constructor.name === "ArrayBuffer");
@@ -10050,15 +10050,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10050
10050
  if (typeof u != "object") throw new Error("can't serialize object of type " + typeof u);
10051
10051
  const d = tf(u);
10052
10052
  if (!d) throw new Error(`can't serialize object of unregistered class ${u.constructor.name}`);
10053
- if (!es[d]) throw new Error(`${d} is not registered.`);
10054
- const { klass: p } = es[d], b = p.serialize ? p.serialize(u, l) : {};
10053
+ if (!ts[d]) throw new Error(`${d} is not registered.`);
10054
+ const { klass: p } = ts[d], b = p.serialize ? p.serialize(u, l) : {};
10055
10055
  if (p.serialize) {
10056
10056
  if (l && b === l[l.length - 1]) throw new Error("statically serialized object won't survive transfer of $name property");
10057
10057
  } else {
10058
10058
  for (const S in u) {
10059
- if (!u.hasOwnProperty(S) || es[d].omit.indexOf(S) >= 0) continue;
10059
+ if (!u.hasOwnProperty(S) || ts[d].omit.indexOf(S) >= 0) continue;
10060
10060
  const k = u[S];
10061
- b[S] = es[d].shallow.indexOf(S) >= 0 ? k : pl(k, l);
10061
+ b[S] = ts[d].shallow.indexOf(S) >= 0 ? k : pl(k, l);
10062
10062
  }
10063
10063
  u instanceof Error && (b.message = u.message);
10064
10064
  }
@@ -10070,15 +10070,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10070
10070
  if (Array.isArray(u)) return u.map(ml);
10071
10071
  if (typeof u != "object") throw new Error("can't deserialize object of type " + typeof u);
10072
10072
  const l = tf(u) || "Object";
10073
- if (!es[l]) throw new Error(`can't deserialize unregistered class ${l}`);
10074
- const { klass: d } = es[l];
10073
+ if (!ts[l]) throw new Error(`can't deserialize unregistered class ${l}`);
10074
+ const { klass: d } = ts[l];
10075
10075
  if (!d) throw new Error(`can't deserialize unregistered class ${l}`);
10076
10076
  if (d.deserialize) return d.deserialize(u);
10077
10077
  const p = Object.create(d.prototype);
10078
10078
  for (const b of Object.keys(u)) {
10079
10079
  if (b === "$name") continue;
10080
10080
  const S = u[b];
10081
- p[b] = es[l].shallow.indexOf(b) >= 0 ? S : ml(S);
10081
+ p[b] = ts[l].shallow.indexOf(b) >= 0 ? S : ml(S);
10082
10082
  }
10083
10083
  return p;
10084
10084
  }
@@ -10134,7 +10134,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10134
10134
  for (const l of u) if (af(l.charCodeAt(0))) return !0;
10135
10135
  return !1;
10136
10136
  }
10137
- const Vr = new class {
10137
+ const $r = new class {
10138
10138
  constructor() {
10139
10139
  this.applyArabicShaping = null, this.processBidirectionalText = null, this.processStyledBidirectionalText = null, this.pluginStatus = "unavailable", this.pluginURL = null;
10140
10140
  }
@@ -10165,7 +10165,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10165
10165
  return function(d, p) {
10166
10166
  for (const b of d) if (!Z0(b.charCodeAt(0), p)) return !1;
10167
10167
  return !0;
10168
- }(l, Vr.getRTLTextPluginStatus() === "loaded");
10168
+ }(l, $r.getRTLTextPluginStatus() === "loaded");
10169
10169
  }
10170
10170
  crossFadingFactor() {
10171
10171
  return this.fadeDuration === 0 ? 1 : Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1);
@@ -10186,7 +10186,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10186
10186
  }
10187
10187
  {
10188
10188
  let S = p;
10189
- return b.type === "color" && typeof p == "string" ? S = On.parse(p) : b.type !== "padding" || typeof p != "number" && !Array.isArray(p) ? b.type === "variableAnchorOffsetCollection" && Array.isArray(p) && (S = Kr.parse(p)) : S = Nr.parse(p), { kind: "constant", evaluate: () => S };
10189
+ return b.type === "color" && typeof p == "string" ? S = On.parse(p) : b.type !== "padding" || typeof p != "number" && !Array.isArray(p) ? b.type === "variableAnchorOffsetCollection" && Array.isArray(p) && (S = Jr.parse(p)) : S = Br.parse(p), { kind: "constant", evaluate: () => S };
10190
10190
  }
10191
10191
  }(d === void 0 ? l.specification.default : d, l.specification);
10192
10192
  }
@@ -11146,15 +11146,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11146
11146
  }
11147
11147
  class bl extends Q {
11148
11148
  }
11149
- class ts extends ee {
11149
+ class ns extends ee {
11150
11150
  }
11151
11151
  class Qu extends re {
11152
11152
  }
11153
11153
  class cf extends ce {
11154
11154
  }
11155
- class ns extends de {
11155
+ class is extends de {
11156
11156
  }
11157
- class is extends te {
11157
+ class rs extends te {
11158
11158
  }
11159
11159
  class Oo extends _e {
11160
11160
  }
@@ -11162,7 +11162,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11162
11162
  }
11163
11163
  class Ui extends Ge {
11164
11164
  }
11165
- const Xi = A([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: $r } = Xi;
11165
+ const Xi = A([{ name: "a_pos", components: 2, type: "Int16" }], 4), { members: jr } = Xi;
11166
11166
  class mn {
11167
11167
  constructor(l = []) {
11168
11168
  this.segments = l;
@@ -11567,7 +11567,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11567
11567
  }
11568
11568
  function m1(u, l, d) {
11569
11569
  const p = { color: { source: Q, composite: $t }, number: { source: et, composite: Q } }, b = function(S) {
11570
- return { "line-pattern": { source: ts, composite: ts }, "fill-pattern": { source: ts, composite: ts }, "fill-extrusion-pattern": { source: ts, composite: ts } }[S];
11570
+ return { "line-pattern": { source: ns, composite: ns }, "fill-pattern": { source: ns, composite: ns }, "fill-extrusion-pattern": { source: ns, composite: ns } }[S];
11571
11571
  }(u);
11572
11572
  return b && b[d] || p[l][d];
11573
11573
  }
@@ -11620,7 +11620,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11620
11620
  return !this.uploaded || this.programConfigurations.needsUpload;
11621
11621
  }
11622
11622
  upload(l) {
11623
- this.uploaded || (this.layoutVertexBuffer = l.createVertexBuffer(this.layoutVertexArray, $r), this.indexBuffer = l.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(l), this.uploaded = !0;
11623
+ this.uploaded || (this.layoutVertexBuffer = l.createVertexBuffer(this.layoutVertexArray, jr), this.indexBuffer = l.createIndexBuffer(this.indexArray)), this.programConfigurations.upload(l), this.uploaded = !0;
11624
11624
  }
11625
11625
  destroy() {
11626
11626
  this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
@@ -12723,7 +12723,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12723
12723
  return u.sections.forEach((p) => {
12724
12724
  p.text = function(b, S, k) {
12725
12725
  const T = S.layout.get("text-transform").evaluate(k, {});
12726
- return T === "uppercase" ? b = b.toLocaleUpperCase() : T === "lowercase" && (b = b.toLocaleLowerCase()), Vr.applyArabicShaping && (b = Vr.applyArabicShaping(b)), b;
12726
+ return T === "uppercase" ? b = b.toLocaleUpperCase() : T === "lowercase" && (b = b.toLocaleLowerCase()), $r.applyArabicShaping && (b = $r.applyArabicShaping(b)), b;
12727
12727
  }(p.text, l, d);
12728
12728
  }), u;
12729
12729
  }
@@ -13053,22 +13053,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13053
13053
  }
13054
13054
  return { w: b, h: S, fill: l / (b * S) || 0 };
13055
13055
  }
13056
- const jr = 1;
13056
+ const Hr = 1;
13057
13057
  class vv {
13058
13058
  constructor(l, { pixelRatio: d, version: p, stretchX: b, stretchY: S, content: k, textFitWidth: T, textFitHeight: D }) {
13059
13059
  this.paddedRect = l, this.pixelRatio = d, this.stretchX = b, this.stretchY = S, this.content = k, this.version = p, this.textFitWidth = T, this.textFitHeight = D;
13060
13060
  }
13061
13061
  get tl() {
13062
- return [this.paddedRect.x + jr, this.paddedRect.y + jr];
13062
+ return [this.paddedRect.x + Hr, this.paddedRect.y + Hr];
13063
13063
  }
13064
13064
  get br() {
13065
- return [this.paddedRect.x + this.paddedRect.w - jr, this.paddedRect.y + this.paddedRect.h - jr];
13065
+ return [this.paddedRect.x + this.paddedRect.w - Hr, this.paddedRect.y + this.paddedRect.h - Hr];
13066
13066
  }
13067
13067
  get tlbr() {
13068
13068
  return this.tl.concat(this.br);
13069
13069
  }
13070
13070
  get displaySize() {
13071
- return [(this.paddedRect.w - 2 * jr) / this.pixelRatio, (this.paddedRect.h - 2 * jr) / this.pixelRatio];
13071
+ return [(this.paddedRect.w - 2 * Hr) / this.pixelRatio, (this.paddedRect.h - 2 * Hr) / this.pixelRatio];
13072
13072
  }
13073
13073
  }
13074
13074
  class iS {
@@ -13080,17 +13080,17 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13080
13080
  const { w: k, h: T } = nS(S), D = new ks({ width: k || 1, height: T || 1 });
13081
13081
  for (const R in l) {
13082
13082
  const L = l[R], B = p[R].paddedRect;
13083
- ks.copy(L.data, D, { x: 0, y: 0 }, { x: B.x + jr, y: B.y + jr }, L.data);
13083
+ ks.copy(L.data, D, { x: 0, y: 0 }, { x: B.x + Hr, y: B.y + Hr }, L.data);
13084
13084
  }
13085
13085
  for (const R in d) {
13086
- const L = d[R], B = b[R].paddedRect, U = B.x + jr, G = B.y + jr, Z = L.data.width, K = L.data.height;
13086
+ const L = d[R], B = b[R].paddedRect, U = B.x + Hr, G = B.y + Hr, Z = L.data.width, K = L.data.height;
13087
13087
  ks.copy(L.data, D, { x: 0, y: 0 }, { x: U, y: G }, L.data), ks.copy(L.data, D, { x: 0, y: K - 1 }, { x: U, y: G - 1 }, { width: Z, height: 1 }), ks.copy(L.data, D, { x: 0, y: 0 }, { x: U, y: G + K }, { width: Z, height: 1 }), ks.copy(L.data, D, { x: Z - 1, y: 0 }, { x: U - 1, y: G }, { width: 1, height: K }), ks.copy(L.data, D, { x: 0, y: 0 }, { x: U + Z, y: G }, { width: 1, height: K });
13088
13088
  }
13089
13089
  this.image = D, this.iconPositions = p, this.patternPositions = b;
13090
13090
  }
13091
13091
  addImages(l, d, p) {
13092
13092
  for (const b in l) {
13093
- const S = l[b], k = { x: 0, y: 0, w: S.data.width + 2 * jr, h: S.data.height + 2 * jr };
13093
+ const S = l[b], k = { x: 0, y: 0, w: S.data.width + 2 * Hr, h: S.data.height + 2 * Hr };
13094
13094
  p.push(k), d[b] = new vv(k, S), S.hasRenderCallback && this.haveRenderCallbacks.push(b);
13095
13095
  }
13096
13096
  }
@@ -13191,7 +13191,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13191
13191
  const K = ud.fromFeature(u, b);
13192
13192
  let ie;
13193
13193
  B === c.ah.vertical && K.verticalizePunctuation();
13194
- const { processBidirectionalText: le, processStyledBidirectionalText: Se } = Vr;
13194
+ const { processBidirectionalText: le, processStyledBidirectionalText: Se } = $r;
13195
13195
  if (le && K.sections.length === 1) {
13196
13196
  ie = [];
13197
13197
  const Me = le(K.toString(), bv(K, R, S, l, p, G));
@@ -13229,16 +13229,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13229
13229
  qn += Je, ++Ji;
13230
13230
  continue;
13231
13231
  }
13232
- for (let Hr = 0; Hr < _i.length(); Hr++) {
13233
- const Sn = _i.getSection(Hr), Xn = _i.getSectionIndex(Hr), ii = _i.getCharCode(Hr);
13234
- let rs = 0, fi = null, pd = null, No = null, Bo = Mi;
13232
+ for (let Ur = 0; Ur < _i.length(); Ur++) {
13233
+ const Sn = _i.getSection(Ur), Xn = _i.getSectionIndex(Ur), ii = _i.getCharCode(Ur);
13234
+ let ss = 0, fi = null, pd = null, No = null, Bo = Mi;
13235
13235
  const Zs = !(dt === c.ah.horizontal || !Ct && !of(ii) || Ct && ($m[ii] || (zi = ii, new RegExp("\\p{sc=Arab}", "u").test(String.fromCodePoint(zi)))));
13236
13236
  if (Sn.imageName) {
13237
13237
  const Ts = Pt[Sn.imageName];
13238
13238
  if (!Ts) continue;
13239
13239
  No = Sn.imageName, Me.iconsInText = Me.iconsInText || !0, pd = Ts.paddedRect;
13240
13240
  const Wi = Ts.displaySize;
13241
- Sn.scale = Sn.scale * Mi / St, fi = { width: Wi[0], height: Wi[1], left: jr, top: -tS, advance: Zs ? Wi[1] : Wi[0] }, rs = hr + (Mi - Wi[1] * Sn.scale), Bo = fi.advance;
13241
+ Sn.scale = Sn.scale * Mi / St, fi = { width: Wi[0], height: Wi[1], left: Hr, top: -tS, advance: Zs ? Wi[1] : Wi[0] }, ss = hr + (Mi - Wi[1] * Sn.scale), Bo = fi.advance;
13242
13242
  const ba = Zs ? Wi[0] * Sn.scale - Mi * Li : Wi[1] * Sn.scale - Mi * Li;
13243
13243
  ba > 0 && ba > er && (er = ba);
13244
13244
  } else {
@@ -13249,9 +13249,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13249
13249
  if (!Tf) continue;
13250
13250
  fi = Tf.metrics;
13251
13251
  }
13252
- rs = (Li - Sn.scale) * Mi;
13252
+ ss = (Li - Sn.scale) * Mi;
13253
13253
  }
13254
- Zs ? (Me.verticalizable = !0, Tr.push({ glyph: ii, imageName: No, x: Ft, y: qn + rs, vertical: Zs, scale: Sn.scale, fontStack: Sn.fontStack, sectionIndex: Xn, metrics: fi, rect: pd }), Ft += Bo * Sn.scale + ze) : (Tr.push({ glyph: ii, imageName: No, x: Ft, y: qn + rs, vertical: Zs, scale: Sn.scale, fontStack: Sn.fontStack, sectionIndex: Xn, metrics: fi, rect: pd }), Ft += fi.advance * Sn.scale + ze);
13254
+ Zs ? (Me.verticalizable = !0, Tr.push({ glyph: ii, imageName: No, x: Ft, y: qn + ss, vertical: Zs, scale: Sn.scale, fontStack: Sn.fontStack, sectionIndex: Xn, metrics: fi, rect: pd }), Ft += Bo * Sn.scale + ze) : (Tr.push({ glyph: ii, imageName: No, x: Ft, y: qn + ss, vertical: Zs, scale: Sn.scale, fontStack: Sn.fontStack, sectionIndex: Xn, metrics: fi, rect: pd }), Ft += fi.advance * Sn.scale + ze);
13255
13255
  }
13256
13256
  Tr.length !== 0 && (Hn = Math.max(Ft - ze, Hn), IO(Tr, 0, Tr.length - 1, Ys, er)), Ft = 0;
13257
13257
  const Cs = Je * Li + er;
@@ -13259,11 +13259,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13259
13259
  }
13260
13260
  var zi;
13261
13261
  const kr = qn - _f, { horizontalAlign: Er, verticalAlign: Cr } = _v(kt);
13262
- (function(_i, Li, hr, Qi, Tr, er, Cs, Hr, Sn) {
13262
+ (function(_i, Li, hr, Qi, Tr, er, Cs, Ur, Sn) {
13263
13263
  const Xn = (Li - hr) * Tr;
13264
13264
  let ii = 0;
13265
- ii = er !== Cs ? -Hr * Qi - _f : (-Qi * Sn + 0.5) * Cs;
13266
- for (const rs of _i) for (const fi of rs.positionedGlyphs) fi.x += Xn, fi.y += ii;
13265
+ ii = er !== Cs ? -Ur * Qi - _f : (-Qi * Sn + 0.5) * Cs;
13266
+ for (const ss of _i) for (const fi of ss.positionedGlyphs) fi.x += Xn, fi.y += ii;
13267
13267
  })(Me.positionedLines, Ys, Er, Cr, Hn, Oi, Je, kr, it.length), Me.top += -Cr * kr, Me.bottom = Me.top + kr, Me.left += -Er * Hn, Me.right = Me.left + Hn;
13268
13268
  }(xe, l, d, p, ie, k, T, D, B, R, U, Z), !function(Me) {
13269
13269
  for (const $e of Me) if ($e.positionedGlyphs.length !== 0) return !1;
@@ -13420,7 +13420,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13420
13420
  }
13421
13421
  class Sv {
13422
13422
  constructor(l) {
13423
- this.layoutVertexArray = new Qu(), this.indexArray = new Ss(), this.programConfigurations = l, this.segments = new mn(), this.dynamicLayoutVertexArray = new cf(), this.opacityVertexArray = new ns(), this.hasVisibleVertices = !1, this.placedSymbolArray = new ei();
13423
+ this.layoutVertexArray = new Qu(), this.indexArray = new Ss(), this.programConfigurations = l, this.segments = new mn(), this.dynamicLayoutVertexArray = new cf(), this.opacityVertexArray = new is(), this.hasVisibleVertices = !1, this.placedSymbolArray = new ei();
13424
13424
  }
13425
13425
  isEmpty() {
13426
13426
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
@@ -13463,7 +13463,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13463
13463
  }
13464
13464
  }
13465
13465
  populate(l, d, p) {
13466
- const b = this.layers[0], S = b.layout, k = S.get("text-font"), T = S.get("text-field"), D = S.get("icon-image"), R = (T.value.kind !== "constant" || T.value.value instanceof Lr && !T.value.value.isEmpty() || T.value.value.toString().length > 0) && (k.value.kind !== "constant" || k.value.value.length > 0), L = D.value.kind !== "constant" || !!D.value.value || Object.keys(D.parameters).length > 0, B = S.get("symbol-sort-key");
13466
+ const b = this.layers[0], S = b.layout, k = S.get("text-font"), T = S.get("text-field"), D = S.get("icon-image"), R = (T.value.kind !== "constant" || T.value.value instanceof Nr && !T.value.value.isEmpty() || T.value.value.toString().length > 0) && (k.value.kind !== "constant" || k.value.value.length > 0), L = D.value.kind !== "constant" || !!D.value.value || Object.keys(D.parameters).length > 0, B = S.get("symbol-sort-key");
13467
13467
  if (this.features = [], !R && !L) return;
13468
13468
  const U = d.iconDependencies, G = d.glyphDependencies, Z = d.availableImages, K = new Qn(this.zoom);
13469
13469
  for (const { feature: ie, id: le, index: Se, sourceLayerIndex: ge } of l) {
@@ -13471,12 +13471,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13471
13471
  if (!b._featureFilter.filter(K, Me, p)) continue;
13472
13472
  let $e, ot;
13473
13473
  if (xe || (Me.geometry = Ic(ie)), R) {
13474
- const it = b.getValueAndResolveTokens("text-field", Me, p, Z), Je = Lr.factory(it), kt = this.hasRTLText = this.hasRTLText || zO(Je);
13475
- (!kt || Vr.getRTLTextPluginStatus() === "unavailable" || kt && Vr.isParsed()) && ($e = mO(Je, b, Me));
13474
+ const it = b.getValueAndResolveTokens("text-field", Me, p, Z), Je = Nr.factory(it), kt = this.hasRTLText = this.hasRTLText || zO(Je);
13475
+ (!kt || $r.getRTLTextPluginStatus() === "unavailable" || kt && $r.isParsed()) && ($e = mO(Je, b, Me));
13476
13476
  }
13477
13477
  if (L) {
13478
13478
  const it = b.getValueAndResolveTokens("icon-image", Me, p, Z);
13479
- ot = it instanceof Br ? it : Br.fromString(it);
13479
+ ot = it instanceof Fr ? it : Fr.fromString(it);
13480
13480
  }
13481
13481
  if (!$e && !ot) continue;
13482
13482
  const Pt = this.sortFeaturesByKey ? B.evaluate(Me, {}, p) : void 0;
@@ -13579,7 +13579,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13579
13579
  }
13580
13580
  }
13581
13581
  generateCollisionDebugBuffers() {
13582
- this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new kv(is, G1.members, Ui), this.iconCollisionBox = new kv(is, G1.members, Ui);
13582
+ this.hasDebugData() && this.destroyDebugData(), this.textCollisionBox = new kv(rs, G1.members, Ui), this.iconCollisionBox = new kv(rs, G1.members, Ui);
13583
13583
  for (let l = 0; l < this.symbolInstances.length; l++) {
13584
13584
  const d = this.symbolInstances.get(l);
13585
13585
  this.addDebugCollisionBoxes(d.textBoxStartIndex, d.textBoxEndIndex, d, !0), this.addDebugCollisionBoxes(d.verticalTextBoxStartIndex, d.verticalTextBoxEndIndex, d, !0), this.addDebugCollisionBoxes(d.iconBoxStartIndex, d.iconBoxEndIndex, d, !1), this.addDebugCollisionBoxes(d.verticalIconBoxStartIndex, d.verticalIconBoxEndIndex, d, !1);
@@ -13739,7 +13739,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13739
13739
  const k = (T) => {
13740
13740
  for (const D of T) if (b.overrides && b.overrides.hasOverride(D)) return void (S = !0);
13741
13741
  };
13742
- if (p.value.kind === "constant" && p.value.value instanceof Lr) k(p.value.value.sections);
13742
+ if (p.value.kind === "constant" && p.value.value instanceof Nr) k(p.value.value.sections);
13743
13743
  else if (p.value.kind === "source") {
13744
13744
  const T = (R) => {
13745
13745
  S || (R instanceof ys && Ci(R.value) === yi ? k(R.value.sections) : R instanceof Au ? k(R.sections) : R.eachChild(T));
@@ -14254,7 +14254,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14254
14254
  return T || G.length || k || (G = OS(u, B / 2, d, p, b, S, k, !0, D)), G;
14255
14255
  }
14256
14256
  ht("Anchor", Al);
14257
- const hd = jr;
14257
+ const hd = Hr;
14258
14258
  function zS(u, l, d, p) {
14259
14259
  const b = [], S = u.image, k = S.pixelRatio, T = S.paddedRect.w - 2 * hd, D = S.paddedRect.h - 2 * hd;
14260
14260
  let R = { x1: u.left, y1: u.top, x2: u.right, y2: u.bottom };
@@ -14270,8 +14270,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14270
14270
  const Sn = Math.sin(er), Xn = Math.cos(er), ii = [Xn, -Sn, Sn, Xn];
14271
14271
  Cr._matMult(ii), _i._matMult(ii), hr._matMult(ii), Li._matMult(ii);
14272
14272
  }
14273
- const Cs = ze.stretch + ze.fixed, Hr = Ct.stretch + Ct.fixed;
14274
- return { tl: Cr, tr: _i, bl: hr, br: Li, tex: { x: S.paddedRect.x + hd + Cs, y: S.paddedRect.y + hd + Hr, w: St.stretch + St.fixed - Cs, h: Ft.stretch + Ft.fixed - Hr }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Qi, pixelOffsetBR: Tr, minFontScaleX: $e / k / kt, minFontScaleY: Pt / k / gt, isSDF: d };
14273
+ const Cs = ze.stretch + ze.fixed, Ur = Ct.stretch + Ct.fixed;
14274
+ return { tl: Cr, tr: _i, bl: hr, br: Li, tex: { x: S.paddedRect.x + hd + Cs, y: S.paddedRect.y + hd + Ur, w: St.stretch + St.fixed - Cs, h: Ft.stretch + Ft.fixed - Ur }, writingMode: void 0, glyphOffset: [0, 0], sectionIndex: 0, pixelOffsetTL: Qi, pixelOffsetBR: Tr, minFontScaleX: $e / k / kt, minFontScaleY: Pt / k / gt, isSDF: d };
14275
14275
  };
14276
14276
  if (p && (S.stretchX || S.stretchY)) {
14277
14277
  const ze = LS(L, K, G), Ct = LS(B, ie, Z);
@@ -14476,7 +14476,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14476
14476
  const L = D[R] = T[R], B = T[R + 1].map((U) => U * Mi);
14477
14477
  L.startsWith("top") ? B[1] -= Ml : L.startsWith("bottom") && (B[1] += Ml), D[R + 1] = B;
14478
14478
  }
14479
- return new Kr(D);
14479
+ return new Jr(D);
14480
14480
  }
14481
14481
  const k = b.get("text-variable-anchor");
14482
14482
  if (k) {
@@ -14484,7 +14484,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14484
14484
  T = u._unevaluatedLayout.getValue("text-radial-offset") !== void 0 ? [b.get("text-radial-offset").evaluate(l, {}, d) * Mi, Mv] : b.get("text-offset").evaluate(l, {}, d).map((R) => R * Mi);
14485
14485
  const D = [];
14486
14486
  for (const R of k) D.push(R, NS(R, T));
14487
- return new Kr(D);
14487
+ return new Jr(D);
14488
14488
  }
14489
14489
  return null;
14490
14490
  }
@@ -14511,7 +14511,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14511
14511
  let gt;
14512
14512
  p && kt !== "none" && (u.allowVerticalPlacement && d.vertical && (gt = cS(p, d.vertical, kt, U.get("icon-text-fit-padding"), G, K)), Z && (p = cS(p, Z, kt, U.get("icon-text-fit-padding"), G, K)));
14513
14513
  const dt = (ze, Ct) => {
14514
- Ct.x < 0 || Ct.x >= Ti || Ct.y < 0 || Ct.y >= Ti || function(St, Ft, qn, Hn, Oi, Ys, Ji, zi, kr, Er, Cr, _i, Li, hr, Qi, Tr, er, Cs, Hr, Sn, Xn, ii, rs, fi, pd) {
14514
+ Ct.x < 0 || Ct.x >= Ti || Ct.y < 0 || Ct.y >= Ti || function(St, Ft, qn, Hn, Oi, Ys, Ji, zi, kr, Er, Cr, _i, Li, hr, Qi, Tr, er, Cs, Ur, Sn, Xn, ii, ss, fi, pd) {
14515
14515
  const No = St.addToLineVertexArray(Ft, qn);
14516
14516
  let Bo, Zs, Ts, Wi, ba = 0, Tf = 0, US = 0, WS = 0, Bv = -1, Fv = -1;
14517
14517
  const _a = {};
@@ -14521,11 +14521,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14521
14521
  Ts = new Gm(kr, Ft, Er, Cr, _i, Hn.vertical, Li, hr, Qi, fr), Ji && (Wi = new Gm(kr, Ft, Er, Cr, _i, Ji, er, Cs, Qi, fr));
14522
14522
  }
14523
14523
  if (Oi) {
14524
- const fr = zi.layout.get("icon-rotate").evaluate(Xn, {}), As = zi.layout.get("icon-text-fit") !== "none", Oc = zS(Oi, fr, rs, As), yo = Ji ? zS(Ji, fr, rs, As) : void 0;
14524
+ const fr = zi.layout.get("icon-rotate").evaluate(Xn, {}), As = zi.layout.get("icon-text-fit") !== "none", Oc = zS(Oi, fr, ss, As), yo = Ji ? zS(Ji, fr, ss, As) : void 0;
14525
14525
  Zs = new Gm(kr, Ft, Er, Cr, _i, Oi, er, Cs, !1, fr), ba = 4 * Oc.length;
14526
14526
  const zc = St.iconSizeData;
14527
14527
  let Fo = null;
14528
- zc.kind === "source" ? (Fo = [Lo * zi.layout.get("icon-size").evaluate(Xn, {})], Fo[0] > Cl && at(`${St.layerIds[0]}: Value for "icon-size" is >= ${wf}. Reduce your "icon-size".`)) : zc.kind === "composite" && (Fo = [Lo * ii.compositeIconSizes[0].evaluate(Xn, {}, fi), Lo * ii.compositeIconSizes[1].evaluate(Xn, {}, fi)], (Fo[0] > Cl || Fo[1] > Cl) && at(`${St.layerIds[0]}: Value for "icon-size" is >= ${wf}. Reduce your "icon-size".`)), St.addSymbols(St.icon, Oc, Fo, Sn, Hr, Xn, c.ah.none, Ft, No.lineStartIndex, No.lineLength, -1, fi), Bv = St.icon.placedSymbolArray.length - 1, yo && (Tf = 4 * yo.length, St.addSymbols(St.icon, yo, Fo, Sn, Hr, Xn, c.ah.vertical, Ft, No.lineStartIndex, No.lineLength, -1, fi), Fv = St.icon.placedSymbolArray.length - 1);
14528
+ zc.kind === "source" ? (Fo = [Lo * zi.layout.get("icon-size").evaluate(Xn, {})], Fo[0] > Cl && at(`${St.layerIds[0]}: Value for "icon-size" is >= ${wf}. Reduce your "icon-size".`)) : zc.kind === "composite" && (Fo = [Lo * ii.compositeIconSizes[0].evaluate(Xn, {}, fi), Lo * ii.compositeIconSizes[1].evaluate(Xn, {}, fi)], (Fo[0] > Cl || Fo[1] > Cl) && at(`${St.layerIds[0]}: Value for "icon-size" is >= ${wf}. Reduce your "icon-size".`)), St.addSymbols(St.icon, Oc, Fo, Sn, Ur, Xn, c.ah.none, Ft, No.lineStartIndex, No.lineLength, -1, fi), Bv = St.icon.placedSymbolArray.length - 1, yo && (Tf = 4 * yo.length, St.addSymbols(St.icon, yo, Fo, Sn, Ur, Xn, c.ah.vertical, Ft, No.lineStartIndex, No.lineLength, -1, fi), Fv = St.icon.placedSymbolArray.length - 1);
14529
14529
  }
14530
14530
  const GS = Object.keys(Hn.horizontal);
14531
14531
  for (const fr of GS) {
@@ -14582,22 +14582,22 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14582
14582
  const Hn = ($e || it) && dt.vertical, Oi = dt.metrics.advance * dt.scale / 2;
14583
14583
  if (it && ge.verticalizable && (qn = gt.lineOffset / 2 - (dt.imageName ? -(Mi - dt.metrics.width * dt.scale) / 2 : (dt.scale - 1) * Mi)), dt.imageName) {
14584
14584
  const Sn = Pt[dt.imageName];
14585
- St = Sn.sdf, Ft = Sn.pixelRatio, Ct = jr / Ft;
14585
+ St = Sn.sdf, Ft = Sn.pixelRatio, Ct = Hr / Ft;
14586
14586
  }
14587
14587
  const Ys = $e ? [dt.x + Oi, dt.y] : [0, 0];
14588
14588
  let Ji = $e ? [0, 0] : [dt.x + Oi + xe[0], dt.y + xe[1] - qn], zi = [0, 0];
14589
14589
  Hn && (zi = Ji, Ji = [0, 0]);
14590
14590
  const kr = dt.metrics.isDoubleResolution ? 2 : 1, Er = (dt.metrics.left - Ct) * dt.scale - Oi + Ji[0], Cr = (-dt.metrics.top - Ct) * dt.scale + Ji[1], _i = Er + ze.w / kr * dt.scale / Ft, Li = Cr + ze.h / kr * dt.scale / Ft, hr = new x(Er, Cr), Qi = new x(_i, Cr), Tr = new x(Er, Li), er = new x(_i, Li);
14591
14591
  if (Hn) {
14592
- const Sn = new x(-Oi, Oi - _f), Xn = -Math.PI / 2, ii = Mi / 2 - Oi, rs = new x(5 - _f - ii, -(dt.imageName ? ii : 0)), fi = new x(...zi);
14593
- hr._rotateAround(Xn, Sn)._add(rs)._add(fi), Qi._rotateAround(Xn, Sn)._add(rs)._add(fi), Tr._rotateAround(Xn, Sn)._add(rs)._add(fi), er._rotateAround(Xn, Sn)._add(rs)._add(fi);
14592
+ const Sn = new x(-Oi, Oi - _f), Xn = -Math.PI / 2, ii = Mi / 2 - Oi, ss = new x(5 - _f - ii, -(dt.imageName ? ii : 0)), fi = new x(...zi);
14593
+ hr._rotateAround(Xn, Sn)._add(ss)._add(fi), Qi._rotateAround(Xn, Sn)._add(ss)._add(fi), Tr._rotateAround(Xn, Sn)._add(ss)._add(fi), er._rotateAround(Xn, Sn)._add(ss)._add(fi);
14594
14594
  }
14595
14595
  if (Je) {
14596
14596
  const Sn = Math.sin(Je), Xn = Math.cos(Je), ii = [Xn, -Sn, Sn, Xn];
14597
14597
  hr._matMult(ii), Qi._matMult(ii), Tr._matMult(ii), er._matMult(ii);
14598
14598
  }
14599
- const Cs = new x(0, 0), Hr = new x(0, 0);
14600
- kt.push({ tl: hr, tr: Qi, bl: Tr, br: er, tex: ze, writingMode: ge.writingMode, glyphOffset: Ys, sectionIndex: dt.sectionIndex, isSDF: St, pixelOffsetTL: Cs, pixelOffsetBR: Hr, minFontScaleX: 0, minFontScaleY: 0 });
14599
+ const Cs = new x(0, 0), Ur = new x(0, 0);
14600
+ kt.push({ tl: hr, tr: Qi, bl: Tr, br: er, tex: ze, writingMode: ge.writingMode, glyphOffset: Ys, sectionIndex: dt.sectionIndex, isSDF: St, pixelOffsetTL: Cs, pixelOffsetBR: Ur, minFontScaleX: 0, minFontScaleY: 0 });
14601
14601
  }
14602
14602
  return kt;
14603
14603
  }(0, d, T, b, S, k, p, u.allowVerticalPlacement), ie = u.textSizeData;
@@ -14863,7 +14863,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14863
14863
  (function(k, T, D, R) {
14864
14864
  let L;
14865
14865
  for (L in T = T || {}, k = k || {}) Object.prototype.hasOwnProperty.call(k, L) && (Object.prototype.hasOwnProperty.call(T, L) || br(L, D, R));
14866
- for (L in T) Object.prototype.hasOwnProperty.call(T, L) && (Object.prototype.hasOwnProperty.call(k, L) ? fn(k[L], T[L]) || (k[L].type === "geojson" && T[L].type === "geojson" && Yr(k, T, L) ? En(D, { command: "setGeoJSONSourceData", args: [L, T[L].data] }) : Vi(L, T, D, R)) : vr(L, T, D));
14866
+ for (L in T) Object.prototype.hasOwnProperty.call(T, L) && (Object.prototype.hasOwnProperty.call(k, L) ? fn(k[L], T[L]) || (k[L].type === "geojson" && T[L].type === "geojson" && Zr(k, T, L) ? En(D, { command: "setGeoJSONSourceData", args: [L, T[L].data] }) : Vi(L, T, D, R)) : vr(L, T, D));
14867
14867
  })(u.sources, l.sources, b, p);
14868
14868
  const S = [];
14869
14869
  u.layers && u.layers.forEach((k) => {
@@ -15012,7 +15012,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15012
15012
  return l !== u && (u[0] = l[0], u[1] = l[1], u[2] = l[2], u[3] = l[3], u[12] = l[12], u[13] = l[13], u[14] = l[14], u[15] = l[15]), u[4] = S * b + R * p, u[5] = k * b + L * p, u[6] = T * b + B * p, u[7] = D * b + U * p, u[8] = R * b - S * p, u[9] = L * b - k * p, u[10] = B * b - T * p, u[11] = U * b - D * p, u;
15013
15013
  }, c.b8 = se, c.b9 = H, c.bA = Y1, c.bB = function(u) {
15014
15014
  return u.message === Pn;
15015
- }, c.bC = al, c.bD = Vr, c.ba = function(u) {
15015
+ }, c.bC = al, c.bD = $r, c.ba = function(u) {
15016
15016
  return u * Math.PI / 180;
15017
15017
  }, c.bb = function(u, l) {
15018
15018
  const { x: d, y: p } = Sf.fromLngLat(l);
@@ -15723,11 +15723,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15723
15723
  let It = [];
15724
15724
  if (Ae === "Point" || Ae === "MultiPoint") vr(Be, It, W, X, ne);
15725
15725
  else if (Ae === "LineString") br(Be, It, W, X, ne, !1, we.lineMetrics);
15726
- else if (Ae === "MultiLineString") Yr(Be, It, W, X, ne, !1);
15727
- else if (Ae === "Polygon") Yr(Be, It, W, X, ne, !0);
15726
+ else if (Ae === "MultiLineString") Zr(Be, It, W, X, ne, !1);
15727
+ else if (Ae === "Polygon") Zr(Be, It, W, X, ne, !0);
15728
15728
  else if (Ae === "MultiPolygon") for (const bn of Be) {
15729
15729
  const Yt = [];
15730
- Yr(bn, Yt, W, X, ne, !0), Yt.length && It.push(Yt);
15730
+ Zr(bn, Yt, W, X, ne, !0), Yt.length && It.push(Yt);
15731
15731
  }
15732
15732
  if (It.length) {
15733
15733
  if (we.lineMetrics && Ae === "LineString") {
@@ -15762,7 +15762,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15762
15762
  const q = [];
15763
15763
  return q.size = ae.size, q.start = ae.start, q.end = ae.end, q;
15764
15764
  }
15765
- function Yr(ae, q, W, X, ne, me) {
15765
+ function Zr(ae, q, W, X, ne, me) {
15766
15766
  for (const ve of ae) br(ve, q, W, X, ne, me, !1);
15767
15767
  }
15768
15768
  function $i(ae, q, W, X) {
@@ -15781,15 +15781,15 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15781
15781
  for (let X = 0; X < ae.length; X++) {
15782
15782
  const ne = ae[X], me = ne.type;
15783
15783
  let ve;
15784
- if (me === "Point" || me === "MultiPoint" || me === "LineString") ve = Zr(ne.geometry, q);
15784
+ if (me === "Point" || me === "MultiPoint" || me === "LineString") ve = Xr(ne.geometry, q);
15785
15785
  else if (me === "MultiLineString" || me === "Polygon") {
15786
15786
  ve = [];
15787
- for (const we of ne.geometry) ve.push(Zr(we, q));
15787
+ for (const we of ne.geometry) ve.push(Xr(we, q));
15788
15788
  } else if (me === "MultiPolygon") {
15789
15789
  ve = [];
15790
15790
  for (const we of ne.geometry) {
15791
15791
  const he = [];
15792
- for (const Re of we) he.push(Zr(Re, q));
15792
+ for (const Re of we) he.push(Xr(Re, q));
15793
15793
  ve.push(he);
15794
15794
  }
15795
15795
  }
@@ -15797,7 +15797,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15797
15797
  }
15798
15798
  return W;
15799
15799
  }
15800
- function Zr(ae, q) {
15800
+ function Xr(ae, q) {
15801
15801
  const W = [];
15802
15802
  W.size = ae.size, ae.start !== void 0 && (W.start = ae.start, W.end = ae.end);
15803
15803
  for (let X = 0; X < ae.length; X += 3) W.push(ae[X] + q, ae[X + 1], ae[X + 2]);
@@ -15808,16 +15808,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15808
15808
  const W = 1 << ae.z, X = ae.x, ne = ae.y;
15809
15809
  for (const me of ae.features) {
15810
15810
  const ve = me.geometry, we = me.type;
15811
- if (me.geometry = [], we === 1) for (let he = 0; he < ve.length; he += 2) me.geometry.push(Xr(ve[he], ve[he + 1], q, W, X, ne));
15811
+ if (me.geometry = [], we === 1) for (let he = 0; he < ve.length; he += 2) me.geometry.push(Kr(ve[he], ve[he + 1], q, W, X, ne));
15812
15812
  else for (let he = 0; he < ve.length; he++) {
15813
15813
  const Re = [];
15814
- for (let Be = 0; Be < ve[he].length; Be += 2) Re.push(Xr(ve[he][Be], ve[he][Be + 1], q, W, X, ne));
15814
+ for (let Be = 0; Be < ve[he].length; Be += 2) Re.push(Kr(ve[he][Be], ve[he][Be + 1], q, W, X, ne));
15815
15815
  me.geometry.push(Re);
15816
15816
  }
15817
15817
  }
15818
15818
  return ae.transformed = !0, ae;
15819
15819
  }
15820
- function Xr(ae, q, W, X, ne, me) {
15820
+ function Kr(ae, q, W, X, ne, me) {
15821
15821
  return [Math.round(W * (ae * X - ne)), Math.round(W * (q * X - me))];
15822
15822
  }
15823
15823
  function Hs(ae, q, W, X, ne) {
@@ -16097,7 +16097,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16097
16097
  return this._geoJSONIndex.getLeaves(q.clusterId, q.limit, q.offset);
16098
16098
  }
16099
16099
  }
16100
- class zr {
16100
+ class Lr {
16101
16101
  constructor(q) {
16102
16102
  this.self = q, this.actor = new c.F(q), this.layerIndexes = {}, this.availableImages = {}, this.workerSources = {}, this.demWorkerSources = {}, this.externalWorkerSourceTypes = {}, this.self.registerWorkerSource = (W, X) => {
16103
16103
  if (this.externalWorkerSourceTypes[W]) throw new Error(`Worker source with name "${W}" already registered.`);
@@ -16178,7 +16178,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
16178
16178
  return this.demWorkerSources[q] || (this.demWorkerSources[q] = {}), this.demWorkerSources[q][W] || (this.demWorkerSources[q][W] = new E()), this.demWorkerSources[q][W];
16179
16179
  }
16180
16180
  }
16181
- return c.i(self) && (self.worker = new zr(self)), zr;
16181
+ return c.i(self) && (self.worker = new Lr(self)), Lr;
16182
16182
  }), r("index", ["exports", "./shared"], function(c, o) {
16183
16183
  var f = "4.7.1";
16184
16184
  let m, y;
@@ -17325,7 +17325,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17325
17325
  return !1;
17326
17326
  }
17327
17327
  }
17328
- class Yr extends Vi {
17328
+ class Zr extends Vi {
17329
17329
  constructor(a, h, g, v) {
17330
17330
  super(a, h, g, v), this.roundZoom = !0, this.type = "video", this.options = h;
17331
17331
  }
@@ -17440,13 +17440,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17440
17440
  case "vector":
17441
17441
  return Vs;
17442
17442
  case "video":
17443
- return Yr;
17443
+ return Zr;
17444
17444
  case "canvas":
17445
17445
  return $i;
17446
17446
  }
17447
17447
  return $s[w];
17448
17448
  }, je = "RTLPluginLoaded";
17449
- class Zr extends o.E {
17449
+ class Xr extends o.E {
17450
17450
  constructor() {
17451
17451
  super(...arguments), this.status = "unavailable", this.url = null, this.dispatcher = Kt();
17452
17452
  }
@@ -17481,8 +17481,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17481
17481
  }
17482
17482
  }
17483
17483
  let ji = null;
17484
- function Xr() {
17485
- return ji || (ji = new Zr()), ji;
17484
+ function Kr() {
17485
+ return ji || (ji = new Xr()), ji;
17486
17486
  }
17487
17487
  class Hs {
17488
17488
  constructor(a, h) {
@@ -17522,7 +17522,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
17522
17522
  if (this.hasRTLText = !1, this.hasSymbolBuckets) for (const v in this.buckets) {
17523
17523
  const _ = this.buckets[v];
17524
17524
  if (_ instanceof o.a6 && _.hasRTLText) {
17525
- this.hasRTLText = !0, Xr().lazyLoad();
17525
+ this.hasRTLText = !0, Kr().lazyLoad();
17526
17526
  break;
17527
17527
  }
17528
17528
  }
@@ -18261,7 +18261,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18261
18261
  const _ = o.H();
18262
18262
  return a ? (o.K(_, _, [1 / v, 1 / v, 1]), h || o.ad(_, _, g.angle)) : o.L(_, g.labelPlaneMatrix, w), _;
18263
18263
  }
18264
- function zr(w, a, h, g, v) {
18264
+ function Lr(w, a, h, g, v) {
18265
18265
  if (a) {
18266
18266
  const _ = o.ae(w);
18267
18267
  return o.K(_, _, [v, v, 1]), h || o.ad(_, _, -g.angle), _;
@@ -18592,7 +18592,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18592
18592
  const I = g.collisionBoxArray, P = _.layers[0].layout, N = _.layers[0].paint, V = Math.pow(2, this.transform.zoom - g.tileID.overscaledZ), $ = g.tileSize / o.X, Y = g.tileID.toUnwrapped(), Q = this.transform.calculatePosMatrix(Y), ee = P.get("text-pitch-alignment") === "map", re = P.get("text-rotation-alignment") === "map", ce = cn(g, 1, this.transform.zoom), de = this.collisionIndex.mapProjection.translatePosition(this.transform, g, N.get("text-translate"), N.get("text-translate-anchor")), fe = this.collisionIndex.mapProjection.translatePosition(this.transform, g, N.get("icon-translate"), N.get("icon-translate-anchor")), te = lr(Q, ee, re, this.transform, ce);
18593
18593
  let be = null;
18594
18594
  if (ee) {
18595
- const ke = zr(Q, ee, re, this.transform, ce);
18595
+ const ke = Lr(Q, ee, re, this.transform, ce);
18596
18596
  be = o.L([], this.transform.labelPlaneMatrix, ke);
18597
18597
  }
18598
18598
  this.retainedQueryData[_.bucketInstanceId] = new oi(_.bucketInstanceId, A, _.sourceLayerIndex, _.index, g.tileID);
@@ -18622,27 +18622,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18622
18622
  rt.textFeatureIndex ? Gs = rt.textFeatureIndex : Ke.useRuntimeCollisionCircles && (Gs = Ke.featureIndex), rt.verticalTextFeatureIndex && (vl = rt.verticalTextFeatureIndex);
18623
18623
  const bl = rt.textBox;
18624
18624
  if (bl) {
18625
- const ns = (Ui) => {
18625
+ const is = (Ui) => {
18626
18626
  let Xi = o.ah.horizontal;
18627
18627
  if (v.allowVerticalPlacement && !Ui && this.prevPlacement) {
18628
- const $r = this.prevPlacement.placedOrientations[Ke.crossTileID];
18629
- $r && (this.placedOrientations[Ke.crossTileID] = $r, Xi = $r, this.markUsedOrientation(v, Xi, Ke));
18628
+ const jr = this.prevPlacement.placedOrientations[Ke.crossTileID];
18629
+ jr && (this.placedOrientations[Ke.crossTileID] = jr, Xi = jr, this.markUsedOrientation(v, Xi, Ke));
18630
18630
  }
18631
18631
  return Xi;
18632
- }, is = (Ui, Xi) => {
18632
+ }, rs = (Ui, Xi) => {
18633
18633
  if (v.allowVerticalPlacement && Ke.numVerticalGlyphVertices > 0 && rt.verticalTextBox) {
18634
- for (const $r of v.writingModes) if ($r === o.ah.vertical ? (ni = Xi(), wr = ni) : ni = Ui(), ni && ni.placeable) break;
18634
+ for (const jr of v.writingModes) if (jr === o.ah.vertical ? (ni = Xi(), wr = ni) : ni = Ui(), ni && ni.placeable) break;
18635
18635
  } else ni = Ui();
18636
18636
  }, Oo = Ke.textAnchorOffsetStartIndex, Ss = Ke.textAnchorOffsetEndIndex;
18637
18637
  if (Ss === Oo) {
18638
- const Ui = (Xi, $r) => {
18638
+ const Ui = (Xi, jr) => {
18639
18639
  const mn = this.collisionIndex.placeCollisionBox(Xi, te, Y, P, N, He, Le, A, ce.predicate, xt);
18640
- return mn && mn.placeable && (this.markUsedOrientation(v, $r, Ke), this.placedOrientations[Ke.crossTileID] = $r), mn;
18640
+ return mn && mn.placeable && (this.markUsedOrientation(v, jr, Ke), this.placedOrientations[Ke.crossTileID] = jr), mn;
18641
18641
  };
18642
- is(() => Ui(bl, o.ah.horizontal), () => {
18642
+ rs(() => Ui(bl, o.ah.horizontal), () => {
18643
18643
  const Xi = rt.verticalTextBox;
18644
18644
  return v.allowVerticalPlacement && Ke.numVerticalGlyphVertices > 0 && Xi ? Ui(Xi, o.ah.vertical) : { box: null, offscreen: null };
18645
- }), ns(ni && ni.placeable);
18645
+ }), is(ni && ni.placeable);
18646
18646
  } else {
18647
18647
  let Ui = o.aq[(Jt = (ei = this.prevPlacement) === null || ei === void 0 ? void 0 : ei.variableOffsets[Ke.crossTileID]) === null || Jt === void 0 ? void 0 : Jt.anchor];
18648
18648
  const Xi = (mn, ga, _l) => {
@@ -18660,27 +18660,27 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18660
18660
  }
18661
18661
  return g && !zo && (zo = { box: this.collisionIndex.placeCollisionBox(bl, "always", Y, P, N, He, Le, A, ce.predicate, xt, new o.P(0, 0)).box, offscreen: !1, placeable: !1 }), zo;
18662
18662
  };
18663
- is(() => Xi(bl, rt.iconBox, o.ah.horizontal), () => {
18663
+ rs(() => Xi(bl, rt.iconBox, o.ah.horizontal), () => {
18664
18664
  const mn = rt.verticalTextBox;
18665
18665
  return v.allowVerticalPlacement && (!ni || !ni.placeable) && Ke.numVerticalGlyphVertices > 0 && mn ? Xi(mn, rt.verticalIconBox, o.ah.vertical) : { box: null, occluded: !0, offscreen: null };
18666
18666
  }), ni && (un = ni.placeable, Yi = ni.offscreen);
18667
- const $r = ns(ni && ni.placeable);
18667
+ const jr = is(ni && ni.placeable);
18668
18668
  if (!un && this.prevPlacement) {
18669
18669
  const mn = this.prevPlacement.variableOffsets[Ke.crossTileID];
18670
- mn && (this.variableOffsets[Ke.crossTileID] = mn, this.markUsedJustification(v, mn.anchor, Ke, $r));
18670
+ mn && (this.variableOffsets[Ke.crossTileID] = mn, this.markUsedJustification(v, mn.anchor, Ke, jr));
18671
18671
  }
18672
18672
  }
18673
18673
  }
18674
18674
  if (ur = ni, un = ur && ur.placeable, Yi = ur && ur.offscreen, Ke.useRuntimeCollisionCircles) {
18675
- const ns = v.text.placedSymbolArray.get(Ke.centerJustifiedTextSymbolIndex), is = o.ai(v.textSizeData, re, ns), Oo = _.get("text-padding");
18676
- Zi = this.collisionIndex.placeCollisionCircles(te, ns, v.lineVertexArray, v.glyphOffsetArray, is, P, N, V, $, g, He, ce.predicate, Ke.collisionCircleDiameter, Oo, A, xt), Zi.circles.length && Zi.collisionDetected && !g && o.w("Collisions detected, but collision boxes are not shown"), un = be || Zi.circles.length > 0 && !Zi.collisionDetected, Yi = Yi && Zi.offscreen;
18675
+ const is = v.text.placedSymbolArray.get(Ke.centerJustifiedTextSymbolIndex), rs = o.ai(v.textSizeData, re, is), Oo = _.get("text-padding");
18676
+ Zi = this.collisionIndex.placeCollisionCircles(te, is, v.lineVertexArray, v.glyphOffsetArray, rs, P, N, V, $, g, He, ce.predicate, Ke.collisionCircleDiameter, Oo, A, xt), Zi.circles.length && Zi.collisionDetected && !g && o.w("Collisions detected, but collision boxes are not shown"), un = be || Zi.circles.length > 0 && !Zi.collisionDetected, Yi = Yi && Zi.offscreen;
18677
18677
  }
18678
18678
  if (rt.iconFeatureIndex && (Ju = rt.iconFeatureIndex), rt.iconBox) {
18679
- const ns = (is) => this.collisionIndex.placeCollisionBox(is, _e, Y, P, N, He, Le, I, ce.predicate, xt, et && ws ? ws : void 0);
18680
- wr && wr.placeable && rt.verticalIconBox ? (dr = ns(rt.verticalIconBox), ti = dr.placeable) : (dr = ns(rt.iconBox), ti = dr.placeable), Yi = Yi && dr.offscreen;
18679
+ const is = (rs) => this.collisionIndex.placeCollisionBox(rs, _e, Y, P, N, He, Le, I, ce.predicate, xt, et && ws ? ws : void 0);
18680
+ wr && wr.placeable && rt.verticalIconBox ? (dr = is(rt.verticalIconBox), ti = dr.placeable) : (dr = is(rt.iconBox), ti = dr.placeable), Yi = Yi && dr.offscreen;
18681
18681
  }
18682
- const ts = de || Ke.numHorizontalGlyphVertices === 0 && Ke.numVerticalGlyphVertices === 0, Qu = fe || Ke.numIconVertices === 0;
18683
- ts || Qu ? Qu ? ts || (ti = ti && un) : un = ti && un : ti = un = ti && un;
18682
+ const ns = de || Ke.numHorizontalGlyphVertices === 0 && Ke.numVerticalGlyphVertices === 0, Qu = fe || Ke.numIconVertices === 0;
18683
+ ns || Qu ? Qu ? ns || (ti = ti && un) : un = ti && un : ti = un = ti && un;
18684
18684
  const cf = ti && dr.placeable;
18685
18685
  if (un && ur.placeable && this.collisionIndex.insertCollisionBox(ur.box, te, _.get("text-ignore-placement"), v.bucketInstanceId, wr && wr.placeable && vl ? vl : Gs, ce.ID), cf && this.collisionIndex.insertCollisionBox(dr.box, _e, _.get("icon-ignore-placement"), v.bucketInstanceId, Ju, ce.ID), Zi && un && this.collisionIndex.insertCollisionCircles(Zi.circles, te, _.get("text-ignore-placement"), v.bucketInstanceId, Gs, ce.ID), g && this.storeCollisionData(v.bucketInstanceId, Bt, rt, ur, dr, Zi), Ke.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
18686
18686
  if (v.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
@@ -18765,7 +18765,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18765
18765
  g[_e] ? ke = I : ke || (ke = ee, this.opacities[_e] = ke), g[_e] = !0;
18766
18766
  const Le = fe.numIconVertices > 0, He = this.placedOrientations[fe.crossTileID], et = He === o.ah.vertical, lt = He === o.ah.horizontal || He === o.ah.horizontalOnly;
18767
18767
  if (te > 0 || be > 0) {
18768
- const Ge = Br(ke.text);
18768
+ const Ge = Fr(ke.text);
18769
18769
  re(a.text, te, et ? Ka : Ge), re(a.text, be, lt ? Ka : Ge);
18770
18770
  const xt = ke.text.isHidden();
18771
18771
  [fe.rightJustifiedTextSymbolIndex, fe.centerJustifiedTextSymbolIndex, fe.leftJustifiedTextSymbolIndex].forEach((rt) => {
@@ -18777,7 +18777,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18777
18777
  Ke && (this.markUsedJustification(a, "left", fe, Ke), this.markUsedOrientation(a, Ke, fe));
18778
18778
  }
18779
18779
  if (Le) {
18780
- const Ge = Br(ke.icon), xt = !(Q && fe.verticalPlacedIconSymbolIndex && et);
18780
+ const Ge = Fr(ke.icon), xt = !(Q && fe.verticalPlacedIconSymbolIndex && et);
18781
18781
  fe.placedIconSymbolIndex >= 0 && (re(a.icon, fe.numIconVertices, xt ? Ge : Ka), a.icon.placedSymbolArray.get(fe.placedIconSymbolIndex).hidden = ke.icon.isHidden()), fe.verticalPlacedIconSymbolIndex >= 0 && (re(a.icon, fe.numVerticalIconVertices, xt ? Ka : Ge), a.icon.placedSymbolArray.get(fe.verticalPlacedIconSymbolIndex).hidden = ke.icon.isHidden());
18782
18782
  }
18783
18783
  const Xe = ce && ce.has(de) ? ce.get(de) : { text: null, icon: null };
@@ -18833,12 +18833,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18833
18833
  const A = g[0] - Yt, I = g[1] - Yt, P = g[2] - Yt, N = g[3] - Yt;
18834
18834
  w.emplaceBack(a ? 1 : 0, h ? 1 : 0, v || 0, _ || 0, A, I), w.emplaceBack(a ? 1 : 0, h ? 1 : 0, v || 0, _ || 0, P, I), w.emplaceBack(a ? 1 : 0, h ? 1 : 0, v || 0, _ || 0, P, N), w.emplaceBack(a ? 1 : 0, h ? 1 : 0, v || 0, _ || 0, A, N);
18835
18835
  }
18836
- const On = Math.pow(2, 25), bh = Math.pow(2, 24), _h = Math.pow(2, 17), Lr = Math.pow(2, 16), Nr = Math.pow(2, 9), E0 = Math.pow(2, 8), Kr = Math.pow(2, 1);
18837
- function Br(w) {
18836
+ const On = Math.pow(2, 25), bh = Math.pow(2, 24), _h = Math.pow(2, 17), Nr = Math.pow(2, 16), Br = Math.pow(2, 9), E0 = Math.pow(2, 8), Jr = Math.pow(2, 1);
18837
+ function Fr(w) {
18838
18838
  if (w.opacity === 0 && !w.placed) return 0;
18839
18839
  if (w.opacity === 1 && w.placed) return 4294967295;
18840
18840
  const a = w.placed ? 1 : 0, h = Math.floor(127 * w.opacity);
18841
- return h * On + a * bh + h * _h + a * Lr + h * Nr + a * E0 + h * Kr + a;
18841
+ return h * On + a * bh + h * _h + a * Nr + h * Br + a * E0 + h * Jr + a;
18842
18842
  }
18843
18843
  const Ka = 0;
18844
18844
  function ra() {
@@ -19036,7 +19036,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19036
19036
  const v = this.sourceCaches[g].getSource().type;
19037
19037
  v !== "vector" && v !== "geojson" || this.sourceCaches[g].reload();
19038
19038
  }
19039
- }, this.map = a, this.dispatcher = new mt(Qe(), a._getMapId()), this.dispatcher.registerMessageHandler("GG", (g, v) => this.getGlyphs(g, v)), this.dispatcher.registerMessageHandler("GI", (g, v) => this.getImages(g, v)), this.imageManager = new at(), this.imageManager.setEventedParent(this), this.glyphManager = new Wt(a._requestManager, h.localIdeographFontFamily), this.lineAtlas = new Pi(256, 512), this.crossTileSymbolIndex = new xh(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new o.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", o.ay()), Xr().on(je, this._rtlPluginLoaded), this.on("data", (g) => {
19039
+ }, this.map = a, this.dispatcher = new mt(Qe(), a._getMapId()), this.dispatcher.registerMessageHandler("GG", (g, v) => this.getGlyphs(g, v)), this.dispatcher.registerMessageHandler("GI", (g, v) => this.getImages(g, v)), this.imageManager = new at(), this.imageManager.setEventedParent(this), this.glyphManager = new Wt(a._requestManager, h.localIdeographFontFamily), this.lineAtlas = new Pi(256, 512), this.crossTileSymbolIndex = new xh(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new o.ax(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", o.ay()), Kr().on(je, this._rtlPluginLoaded), this.on("data", (g) => {
19040
19040
  if (g.dataType !== "source" || g.sourceDataType !== "metadata") return;
19041
19041
  const v = this.sourceCaches[g.sourceId];
19042
19042
  if (!v) return;
@@ -19568,7 +19568,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19568
19568
  return (!_ || _.validate !== !1) && bs(this, a.call(o.u, o.e({ key: h, style: this.serialize(), value: g, styleSpec: o.v }, v)));
19569
19569
  }
19570
19570
  _remove(a = !0) {
19571
- this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), Xr().off(je, this._rtlPluginLoaded);
19571
+ this._frameRequest && (this._frameRequest.abort(), this._frameRequest = null), this._loadStyleRequest && (this._loadStyleRequest.abort(), this._loadStyleRequest = null), this._spriteRequest && (this._spriteRequest.abort(), this._spriteRequest = null), Kr().off(je, this._rtlPluginLoaded);
19572
19572
  for (const h in this._layers) this._layers[h].setEventedParent(null);
19573
19573
  for (const h in this.sourceCaches) {
19574
19574
  const g = this.sourceCaches[h];
@@ -20978,7 +20978,7 @@ uniform ${V} ${$} u_${Y};
20978
20978
  }
20979
20979
  w.text.dynamicLayoutVertexBuffer.updateData(re);
20980
20980
  }
20981
- function Jr(w, a, h) {
20981
+ function Qr(w, a, h) {
20982
20982
  return h.iconsInText && a ? "symbolTextAndIcon" : w ? "symbolSDF" : "symbolIcon";
20983
20983
  }
20984
20984
  function Nh(w, a, h, g, v, _, A, I, P, N, V, $) {
@@ -20990,27 +20990,27 @@ uniform ${V} ${$} u_${Y};
20990
20990
  if (!xt) continue;
20991
20991
  const $t = v ? xt.text : xt.icon;
20992
20992
  if (!$t || !$t.segments.get().length || !$t.hasVisibleVertices) continue;
20993
- const Ke = $t.programConfigurations.get(h.id), rt = v || xt.sdfIcons, Bt = v ? xt.textSizeData : xt.iconSizeData, ei = de || ee.pitch !== 0, Jt = w.useProgram(Jr(rt, v, xt), Ke), un = o.ag(Bt, ee.zoom), ti = w.style.map.terrain && w.style.map.terrain.getTerrainData(Xe);
20993
+ const Ke = $t.programConfigurations.get(h.id), rt = v || xt.sdfIcons, Bt = v ? xt.textSizeData : xt.iconSizeData, ei = de || ee.pitch !== 0, Jt = w.useProgram(Qr(rt, v, xt), Ke), un = o.ag(Bt, ee.zoom), ti = w.style.map.terrain && w.style.map.terrain.getTerrainData(Xe);
20994
20994
  let Yi, ws, ni, wr, ur = [0, 0], Zi = null;
20995
20995
  if (v) ws = Ge.glyphAtlasTexture, ni = Q.LINEAR, Yi = Ge.glyphAtlasTexture.size, xt.iconsInText && (ur = Ge.imageAtlasTexture.size, Zi = Ge.imageAtlasTexture, wr = ei || w.options.rotating || w.options.zooming || Bt.kind === "composite" || Bt.kind === "camera" ? Q.LINEAR : Q.NEAREST);
20996
20996
  else {
20997
20997
  const mn = h.layout.get("icon-size").constantOr(0) !== 1 || xt.iconsNeedLinear;
20998
20998
  ws = Ge.imageAtlasTexture, ni = rt || w.options.rotating || w.options.zooming || mn || ei ? Q.LINEAR : Q.NEAREST, Yi = Ge.imageAtlasTexture.size;
20999
20999
  }
21000
- const dr = cn(Ge, 1, w.transform.zoom), Gs = be ? Xe.posMatrix : gc, vl = lr(Gs, de, ce, w.transform, dr), Ju = zr(Gs, de, ce, w.transform, dr), bl = zr(Xe.posMatrix, de, ce, w.transform, dr), ts = re.translatePosition(w.transform, Ge, _, A), Qu = He && xt.hasTextData(), cf = h.layout.get("icon-text-fit") !== "none" && Qu && xt.hasIconData();
21000
+ const dr = cn(Ge, 1, w.transform.zoom), Gs = be ? Xe.posMatrix : gc, vl = lr(Gs, de, ce, w.transform, dr), Ju = Lr(Gs, de, ce, w.transform, dr), bl = Lr(Xe.posMatrix, de, ce, w.transform, dr), ns = re.translatePosition(w.transform, Ge, _, A), Qu = He && xt.hasTextData(), cf = h.layout.get("icon-text-fit") !== "none" && Qu && xt.hasIconData();
21001
21001
  if (fe) {
21002
21002
  const mn = w.style.map.terrain ? (_l, xl) => w.style.map.terrain.getElevation(Xe, _l, xl) : null, ga = h.layout.get("text-rotation-alignment") === "map";
21003
- X(xt, Xe.posMatrix, w, v, vl, bl, de, N, ga, re, Xe.toUnwrapped(), ee.width, ee.height, ts, mn);
21003
+ X(xt, Xe.posMatrix, w, v, vl, bl, de, N, ga, re, Xe.toUnwrapped(), ee.width, ee.height, ns, mn);
21004
21004
  }
21005
- const ns = Xe.posMatrix, is = v && He || cf, Oo = fe || is ? gc : vl, Ss = Ju, Ui = rt && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21005
+ const is = Xe.posMatrix, rs = v && He || cf, Oo = fe || rs ? gc : vl, Ss = Ju, Ui = rt && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21006
21006
  let Xi;
21007
- Xi = rt ? xt.iconsInText ? Eh(Bt.kind, un, te, de, fe, is, w, ns, Oo, Ss, ts, Yi, ur, lt) : fc(Bt.kind, un, te, de, fe, is, w, ns, Oo, Ss, ts, v, Yi, !0, lt) : Qp(Bt.kind, un, te, de, fe, is, w, ns, Oo, Ss, ts, v, Yi, lt);
21008
- const $r = { program: Jt, buffers: $t, uniformValues: Xi, atlasTexture: ws, atlasTextureIcon: Zi, atlasInterpolation: ni, atlasInterpolationIcon: wr, isSDF: rt, hasHalo: Ui };
21007
+ Xi = rt ? xt.iconsInText ? Eh(Bt.kind, un, te, de, fe, rs, w, is, Oo, Ss, ns, Yi, ur, lt) : fc(Bt.kind, un, te, de, fe, rs, w, is, Oo, Ss, ns, v, Yi, !0, lt) : Qp(Bt.kind, un, te, de, fe, rs, w, is, Oo, Ss, ns, v, Yi, lt);
21008
+ const jr = { program: Jt, buffers: $t, uniformValues: Xi, atlasTexture: ws, atlasTextureIcon: Zi, atlasInterpolation: ni, atlasInterpolationIcon: wr, isSDF: rt, hasHalo: Ui };
21009
21009
  if (_e && xt.canOverlap) {
21010
21010
  ke = !0;
21011
21011
  const mn = $t.segments.get();
21012
- for (const ga of mn) et.push({ segments: new o.a0([ga]), sortKey: ga.sortKey, state: $r, terrainData: ti });
21013
- } else et.push({ segments: $t.segments, sortKey: 0, state: $r, terrainData: ti });
21012
+ for (const ga of mn) et.push({ segments: new o.a0([ga]), sortKey: ga.sortKey, state: jr, terrainData: ti });
21013
+ } else et.push({ segments: $t.segments, sortKey: 0, state: jr, terrainData: ti });
21014
21014
  }
21015
21015
  ke && et.sort((Xe, Ge) => Xe.sortKey - Ge.sortKey);
21016
21016
  for (const Xe of et) {
@@ -22247,7 +22247,7 @@ uniform ${V} ${$} u_${Y};
22247
22247
  return this.transform.pointLocation(o.P.convert(a), this._map.terrain);
22248
22248
  }
22249
22249
  }
22250
- class Fr {
22250
+ class Vr {
22251
22251
  constructor(a, h) {
22252
22252
  this._map = a, this._tr = new _s(a), this._el = a.getCanvasContainer(), this._container = a.getContainer(), this._clickTolerance = h.clickTolerance || 1;
22253
22253
  }
@@ -22641,7 +22641,7 @@ uniform ${V} ${$} u_${Y};
22641
22641
  }
22642
22642
  }
22643
22643
  const _m = { panStep: 100, bearingStep: 15, pitchStep: 10 };
22644
- class Qr {
22644
+ class es {
22645
22645
  constructor(a) {
22646
22646
  this._tr = new _s(a);
22647
22647
  const h = _m;
@@ -22969,7 +22969,7 @@ uniform ${V} ${$} u_${Y};
22969
22969
  }, 100));
22970
22970
  }
22971
22971
  }
22972
- const es = (w) => w.zoom || w.drag || w.pitch || w.rotate;
22972
+ const ts = (w) => w.zoom || w.drag || w.pitch || w.rotate;
22973
22973
  class ht extends o.k {
22974
22974
  }
22975
22975
  function Gu(w) {
@@ -23004,7 +23004,7 @@ uniform ${V} ${$} u_${Y};
23004
23004
  _addDefaultHandlers(a) {
23005
23005
  const h = this._map, g = h.getCanvasContainer();
23006
23006
  this._add("mapEvent", new bm(h, a));
23007
- const v = h.boxZoom = new Fr(h, a);
23007
+ const v = h.boxZoom = new Vr(h, a);
23008
23008
  this._add("boxZoom", v), a.interactive && a.boxZoom && v.enable();
23009
23009
  const _ = h.cooperativeGestures = new fl(h, a.cooperativeGestures);
23010
23010
  this._add("cooperativeGestures", _), a.cooperativeGestures && _.enable();
@@ -23025,7 +23025,7 @@ uniform ${V} ${$} u_${Y};
23025
23025
  h.touchZoomRotate = new ef(g, re, ee, P), this._add("touchRotate", ee, ["touchPan", "touchZoom"]), this._add("touchZoom", re, ["touchPan", "touchRotate"]), a.interactive && a.touchZoomRotate && h.touchZoomRotate.enable(a.touchZoomRotate);
23026
23026
  const ce = h.scrollZoom = new xs(h, () => this._triggerRenderFrame());
23027
23027
  this._add("scrollZoom", ce, ["mousePan"]), a.interactive && a.scrollZoom && h.scrollZoom.enable(a.scrollZoom);
23028
- const de = h.keyboard = new Qr(h);
23028
+ const de = h.keyboard = new es(h);
23029
23029
  this._add("keyboard", de), a.interactive && a.keyboard && h.keyboard.enable(), this._add("blockableMapEvent", new bi(h));
23030
23030
  }
23031
23031
  _add(a, h, g) {
@@ -23048,7 +23048,7 @@ uniform ${V} ${$} u_${Y};
23048
23048
  return !!this._eventsInProgress.rotate;
23049
23049
  }
23050
23050
  isMoving() {
23051
- return !!es(this._eventsInProgress) || this.isZooming();
23051
+ return !!ts(this._eventsInProgress) || this.isZooming();
23052
23052
  }
23053
23053
  _blockedByActive(a, h, g) {
23054
23054
  for (const v in a) if (v !== g && (!h || h.indexOf(v) < 0)) return !0;
@@ -23079,7 +23079,7 @@ uniform ${V} ${$} u_${Y};
23079
23079
  N && (_.bearing += N), V && (_.pitch += V), P && (_.zoom += P), A ? this._terrainMovement || !h.drag && !h.zoom ? h.drag && this._terrainMovement ? _.center = _.pointLocation(_.centerPoint.sub(I)) : _.setLocationAtPoint(Q, $) : (this._terrainMovement = !0, this._map._elevationFreeze = !0, _.setLocationAtPoint(Q, $)) : _.setLocationAtPoint(Q, $), v._applyUpdatedTransform(_), this._map._update(), a.noInertia || this._inertia.record(a), this._fireEvents(h, g, !0);
23080
23080
  }
23081
23081
  _fireEvents(a, h, g) {
23082
- const v = es(this._eventsInProgress), _ = es(a), A = {};
23082
+ const v = ts(this._eventsInProgress), _ = ts(a), A = {};
23083
23083
  for (const $ in a) {
23084
23084
  const { originalEvent: Y } = a[$];
23085
23085
  this._eventsInProgress[$] || (A[`${$}start`] = Y), this._eventsInProgress[$] = a[$];
@@ -23098,7 +23098,7 @@ uniform ${V} ${$} u_${Y};
23098
23098
  this._handlersById[Y].isActive() || (delete this._eventsInProgress[$], P = h[Y] || Q, I[`${$}end`] = P);
23099
23099
  }
23100
23100
  for (const $ in I) this._fireEvent($, I[$]);
23101
- const N = es(this._eventsInProgress), V = (v || _) && !N;
23101
+ const N = ts(this._eventsInProgress), V = (v || _) && !N;
23102
23102
  if (V && this._terrainMovement) {
23103
23103
  this._map._elevationFreeze = !1, this._terrainMovement = !1;
23104
23104
  const $ = this._map._getTransformForUpdate();
@@ -23784,7 +23784,7 @@ uniform ${V} ${$} u_${Y};
23784
23784
  E.enableDrag(), E.removeEventListener(window, "mousemove", this.mousemove), E.removeEventListener(window, "mouseup", this.mouseup), E.removeEventListener(window, "touchmove", this.touchmove, { passive: !1 }), E.removeEventListener(window, "touchend", this.touchend);
23785
23785
  }
23786
23786
  }
23787
- let Vr;
23787
+ let $r;
23788
23788
  function Qn(w, a, h) {
23789
23789
  const g = new o.N(w.lng, w.lat);
23790
23790
  if (w = new o.N(w.lng, w.lat), a) {
@@ -24004,7 +24004,7 @@ uniform ${V} ${$} u_${Y};
24004
24004
  return Ku(new o.P(0, 0));
24005
24005
  }
24006
24006
  const lf = f;
24007
- c.AJAXError = o.bh, c.Evented = o.E, c.LngLat = o.N, c.MercatorCoordinate = o.Z, c.Point = o.P, c.addProtocol = o.bi, c.config = o.a, c.removeProtocol = o.bj, c.AttributionControl = ml, c.BoxZoomHandler = Fr, c.CanvasSource = $i, c.CooperativeGesturesHandler = fl, c.DoubleClickZoomHandler = ma, c.DragPanHandler = xm, c.DragRotateHandler = wm, c.EdgeInsets = cl, c.FullscreenControl = class extends o.E {
24007
+ c.AJAXError = o.bh, c.Evented = o.E, c.LngLat = o.N, c.MercatorCoordinate = o.Z, c.Point = o.P, c.addProtocol = o.bi, c.config = o.a, c.removeProtocol = o.bj, c.AttributionControl = ml, c.BoxZoomHandler = Vr, c.CanvasSource = $i, c.CooperativeGesturesHandler = fl, c.DoubleClickZoomHandler = ma, c.DragPanHandler = xm, c.DragRotateHandler = wm, c.EdgeInsets = cl, c.FullscreenControl = class extends o.E {
24008
24008
  constructor(w = {}) {
24009
24009
  super(), this._onFullscreenChange = () => {
24010
24010
  var a;
@@ -24112,14 +24112,14 @@ uniform ${V} ${$} u_${Y};
24112
24112
  onAdd(w) {
24113
24113
  return this._map = w, this._container = E.create("div", "maplibregl-ctrl maplibregl-ctrl-group"), this._setupUI(), function() {
24114
24114
  return o._(this, arguments, void 0, function* (a = !1) {
24115
- if (Vr !== void 0 && !a) return Vr;
24116
- if (window.navigator.permissions === void 0) return Vr = !!window.navigator.geolocation, Vr;
24115
+ if ($r !== void 0 && !a) return $r;
24116
+ if (window.navigator.permissions === void 0) return $r = !!window.navigator.geolocation, $r;
24117
24117
  try {
24118
- Vr = (yield window.navigator.permissions.query({ name: "geolocation" })).state !== "denied";
24118
+ $r = (yield window.navigator.permissions.query({ name: "geolocation" })).state !== "denied";
24119
24119
  } catch {
24120
- Vr = !!window.navigator.geolocation;
24120
+ $r = !!window.navigator.geolocation;
24121
24121
  }
24122
- return Vr;
24122
+ return $r;
24123
24123
  });
24124
24124
  }().then((a) => this._finishSetupUI(a)), this._container;
24125
24125
  }
@@ -24193,7 +24193,7 @@ uniform ${V} ${$} u_${Y};
24193
24193
  _clearWatch() {
24194
24194
  window.navigator.geolocation.clearWatch(this._geolocationWatchID), this._geolocationWatchID = void 0, this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"), this._geolocateButton.setAttribute("aria-pressed", "false"), this.options.showUserLocation && this._updateMarker(null);
24195
24195
  }
24196
- }, c.Hash = Fu, c.ImageSource = Vi, c.KeyboardHandler = Qr, c.LngLatBounds = Te, c.LogoControl = nf, c.Map = class extends Sm {
24196
+ }, c.Hash = Fu, c.ImageSource = Vi, c.KeyboardHandler = es, c.LngLatBounds = Te, c.LogoControl = nf, c.Map = class extends Sm {
24197
24197
  constructor(w) {
24198
24198
  o.bf.mark(o.bg.create);
24199
24199
  const a = Object.assign(Object.assign({}, Y0), w);
@@ -24904,7 +24904,7 @@ uniform ${V} ${$} u_${Y};
24904
24904
  onRemove() {
24905
24905
  E.remove(this._container), this._map.off("terrain", this._updateTerrainIcon), this._map = void 0;
24906
24906
  }
24907
- }, c.TwoFingersTouchPitchHandler = hl, c.TwoFingersTouchRotateHandler = Jh, c.TwoFingersTouchZoomHandler = Xh, c.TwoFingersTouchZoomRotateHandler = ef, c.VectorTileSource = Vs, c.VideoSource = Yr, c.addSourceType = (w, a) => o._(void 0, void 0, void 0, function* () {
24907
+ }, c.TwoFingersTouchPitchHandler = hl, c.TwoFingersTouchRotateHandler = Jh, c.TwoFingersTouchZoomHandler = Xh, c.TwoFingersTouchZoomRotateHandler = ef, c.VectorTileSource = Vs, c.VideoSource = Zr, c.addSourceType = (w, a) => o._(void 0, void 0, void 0, function* () {
24908
24908
  if (js(w)) throw new Error(`A source type called "${w}" already exists.`);
24909
24909
  ((h, g) => {
24910
24910
  $s[h] = g;
@@ -24915,7 +24915,7 @@ uniform ${V} ${$} u_${Y};
24915
24915
  }, c.getMaxParallelImageRequests = function() {
24916
24916
  return o.a.MAX_PARALLEL_IMAGE_REQUESTS;
24917
24917
  }, c.getRTLTextPluginStatus = function() {
24918
- return Xr().getRTLTextPluginStatus();
24918
+ return Kr().getRTLTextPluginStatus();
24919
24919
  }, c.getVersion = function() {
24920
24920
  return lf;
24921
24921
  }, c.getWorkerCount = function() {
@@ -24929,7 +24929,7 @@ uniform ${V} ${$} u_${Y};
24929
24929
  }, c.setMaxParallelImageRequests = function(w) {
24930
24930
  o.a.MAX_PARALLEL_IMAGE_REQUESTS = w;
24931
24931
  }, c.setRTLTextPlugin = function(w, a) {
24932
- return Xr().setRTLTextPlugin(w, a);
24932
+ return Kr().setRTLTextPlugin(w, a);
24933
24933
  }, c.setWorkerCount = function(w) {
24934
24934
  si.workerCount = w;
24935
24935
  }, c.setWorkerUrl = function(w) {
@@ -25066,7 +25066,7 @@ function DV(n, e, t, i, r, s) {
25066
25066
  F("path", { d: "M6 6l12 12" }, null, -1)
25067
25067
  ]));
25068
25068
  }
25069
- const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "widget-map-source", RV = {
25069
+ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, Ar = "widget-map-source", RV = {
25070
25070
  props: {
25071
25071
  geometry: {
25072
25072
  type: Object,
@@ -25116,7 +25116,12 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25116
25116
  };
25117
25117
  },
25118
25118
  async mounted() {
25119
- this.initMap();
25119
+ this.initMap(), setTimeout(() => {
25120
+ var n, e, t;
25121
+ (t = (e = (n = this.map.getStyle()) == null ? void 0 : n.layers) == null ? void 0 : e.filter((i) => i.source == Ar)) == null || t.forEach((i) => {
25122
+ this.map.moveLayer(i.id);
25123
+ });
25124
+ }, 300);
25120
25125
  },
25121
25126
  components: { IconClose: IV },
25122
25127
  watch: {
@@ -25144,7 +25149,9 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25144
25149
  }), this.map.on("load", this.onMapLoad);
25145
25150
  },
25146
25151
  async onMapLoad() {
25147
- this.map.resize(), this.changeBaseLayer(this.baseLayers[0]), this.geometry && this.initGeometryLayer();
25152
+ this.map.resize(), this.changeBaseLayer(this.baseLayers[0]), this.geometry && this.initGeometryLayer(), console.log(
25153
+ this.map.getStyle().layers.filter((n) => n.source == Ar)
25154
+ );
25148
25155
  },
25149
25156
  changeBaseLayer(n) {
25150
25157
  const e = "base-layer", t = "base-layer";
@@ -25172,18 +25179,18 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25172
25179
  initGeometryLayer() {
25173
25180
  const { map: n } = this;
25174
25181
  if (!n) return;
25175
- const e = this.formatGeojson(this.geometry), t = n.getSource(ss);
25182
+ const e = this.formatGeojson(this.geometry), t = n.getSource(Ar);
25176
25183
  if (this.zoomToGeometry(e), t) {
25177
25184
  t.setData(e);
25178
25185
  return;
25179
25186
  }
25180
- n.addSource(ss, {
25187
+ n.addSource(Ar, {
25181
25188
  type: "geojson",
25182
25189
  data: e
25183
25190
  }), n.addLayer({
25184
- id: `${ss}-point`,
25191
+ id: `${Ar}-point`,
25185
25192
  type: "circle",
25186
- source: ss,
25193
+ source: Ar,
25187
25194
  paint: {
25188
25195
  "circle-radius": 10,
25189
25196
  "circle-color": "#F84C4C"
@@ -25191,9 +25198,9 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25191
25198
  },
25192
25199
  filter: ["==", "$type", "Point"]
25193
25200
  }), n.addLayer({
25194
- id: `${ss}-polygon`,
25201
+ id: `${Ar}-polygon`,
25195
25202
  type: "fill",
25196
- source: ss,
25203
+ source: Ar,
25197
25204
  layout: {},
25198
25205
  paint: {
25199
25206
  "fill-color": "#0080ff",
@@ -25201,9 +25208,9 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25201
25208
  },
25202
25209
  filter: ["==", "$type", "Polygon"]
25203
25210
  }), n.addLayer({
25204
- id: `${ss}-polygon-line`,
25211
+ id: `${Ar}-polygon-line`,
25205
25212
  type: "line",
25206
- source: ss,
25213
+ source: Ar,
25207
25214
  layout: {},
25208
25215
  paint: {
25209
25216
  "line-color": "#0080ff",
@@ -25211,9 +25218,9 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25211
25218
  },
25212
25219
  filter: ["==", "$type", "Polygon"]
25213
25220
  }), n.addLayer({
25214
- id: `${ss}-line`,
25221
+ id: `${Ar}-line`,
25215
25222
  type: "line",
25216
- source: ss,
25223
+ source: Ar,
25217
25224
  layout: {},
25218
25225
  paint: {
25219
25226
  "line-color": "#0080ff",
@@ -25241,10 +25248,10 @@ const IV = /* @__PURE__ */ vt(AV, [["render", DV]]), { Map: PV } = EV, ss = "wid
25241
25248
  },
25242
25249
  toggleGeometryVisibility() {
25243
25250
  [
25244
- `${ss}-polygon`,
25245
- `${ss}-polygon-line`,
25246
- `${ss}-line`,
25247
- `${ss}-point`
25251
+ `${Ar}-polygon`,
25252
+ `${Ar}-polygon-line`,
25253
+ `${Ar}-line`,
25254
+ `${Ar}-point`
25248
25255
  ].forEach((e) => {
25249
25256
  this.map.getLayer(e) && this.map.setLayoutProperty(
25250
25257
  e,
@@ -26728,12 +26735,12 @@ const rb = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"])
26728
26735
  <div class="fancybox__carousel"></div>
26729
26736
  <div class="fancybox__footer"></div>
26730
26737
  </div>` }, trapFocus: !0, wheel: "zoom" };
26731
- var tr, Mr;
26738
+ var tr, Dr;
26732
26739
  (function(n) {
26733
26740
  n[n.Init = 0] = "Init", n[n.Ready = 1] = "Ready", n[n.Closing = 2] = "Closing", n[n.CustomClosing = 3] = "CustomClosing", n[n.Destroy = 4] = "Destroy";
26734
26741
  })(tr || (tr = {})), function(n) {
26735
26742
  n[n.Loading = 0] = "Loading", n[n.Opening = 1] = "Opening", n[n.Ready = 2] = "Ready", n[n.Closing = 3] = "Closing";
26736
- }(Mr || (Mr = {}));
26743
+ }(Dr || (Dr = {}));
26737
26744
  let Uk = "", Bf = !1, sg = !1, Hc = null;
26738
26745
  const YA = () => {
26739
26746
  let n = "", e = "";
@@ -26841,7 +26848,7 @@ class JA extends Do {
26841
26848
  const j = new Image();
26842
26849
  j.onload = O, j.onerror = z, j.src = y;
26843
26850
  })).then(() => {
26844
- i.hideLoading(e), e.state = Mr.Opening, this.instance.emit("reveal", e), this.zoomIn(e).then(() => {
26851
+ i.hideLoading(e), e.state = Dr.Opening, this.instance.emit("reveal", e), this.zoomIn(e).then(() => {
26845
26852
  M(), this.instance.done(e);
26846
26853
  }, () => {
26847
26854
  }), C && setTimeout(() => {
@@ -26901,7 +26908,7 @@ class JA extends Do {
26901
26908
  const m = this.getZoomInfo(e);
26902
26909
  if (!(m && f && o && c && s)) return void i();
26903
26910
  const { x: y, y: x, scale: E, opacity: C } = m, M = () => {
26904
- e.state !== Mr.Closing && (C && (o.style.opacity = Math.max(Math.min(1, 1 - (1 - c.scale) / (1 - E)), 0) + ""), c.scale >= 1 && c.scale > c.targetScale - 0.1 && t(c));
26911
+ e.state !== Dr.Closing && (C && (o.style.opacity = Math.max(Math.min(1, 1 - (1 - c.scale) / (1 - E)), 0) + ""), c.scale >= 1 && c.scale > c.targetScale - 0.1 && t(c));
26905
26912
  }, O = (J) => {
26906
26913
  (J.scale < 0.99 || J.scale > 1.01) && !J.isDragging || (Wn(s, og), o.style.opacity = "", J.off("endAnimation", O), J.off("touchStart", O), J.off("afterTransform", M), t(J));
26907
26914
  };
@@ -26966,7 +26973,7 @@ class QA extends Do {
26966
26973
  else for (; t.el && t.el.firstChild; ) t.el.removeChild(t.el.firstChild);
26967
26974
  }
26968
26975
  onSelectSlide(e, t, i) {
26969
- i.state === Mr.Ready && this.playVideo();
26976
+ i.state === Dr.Ready && this.playVideo();
26970
26977
  }
26971
26978
  onUnselectSlide(e, t, i) {
26972
26979
  var r, s;
@@ -27289,12 +27296,12 @@ class tM extends Do {
27289
27296
  e.emit("startSlideshow");
27290
27297
  }, set: (r) => {
27291
27298
  var s;
27292
- i.classList.add("has-slideshow"), ((s = e.getSlide()) === null || s === void 0 ? void 0 : s.state) !== Mr.Ready && r.pause();
27299
+ i.classList.add("has-slideshow"), ((s = e.getSlide()) === null || s === void 0 ? void 0 : s.state) !== Dr.Ready && r.pause();
27293
27300
  }, stop: () => {
27294
27301
  i.classList.remove("has-slideshow"), e.isCompact || e.endIdle(), e.emit("endSlideshow");
27295
27302
  }, resume: (r, s) => {
27296
27303
  var c, o, f;
27297
- !s || !s.cancelable || ((c = e.getSlide()) === null || c === void 0 ? void 0 : c.state) === Mr.Ready && (!((f = (o = e.carousel) === null || o === void 0 ? void 0 : o.panzoom) === null || f === void 0) && f.isResting) || s.preventDefault();
27304
+ !s || !s.cancelable || ((c = e.getSlide()) === null || c === void 0 ? void 0 : c.state) === Dr.Ready && (!((f = (o = e.carousel) === null || o === void 0 ? void 0 : o.panzoom) === null || f === void 0) && f.isResting) || s.preventDefault();
27298
27305
  } } }), t.attachPlugins({ Autoplay: eM }), this.ref = t.plugins.Autoplay);
27299
27306
  }
27300
27307
  onReady(e) {
@@ -27632,7 +27639,7 @@ class sM extends Do {
27632
27639
  const e = this.container;
27633
27640
  if (!e) return;
27634
27641
  const t = this.instance.getSlide();
27635
- if (!t || t.state !== Mr.Ready) return;
27642
+ if (!t || t.state !== Dr.Ready) return;
27636
27643
  const i = t && !t.error && t.panzoom;
27637
27644
  for (const c of e.querySelectorAll("[data-panzoom-action]")) i ? (c.removeAttribute("disabled"), c.removeAttribute("tabindex")) : (c.setAttribute("disabled", ""), c.setAttribute("tabindex", "-1"));
27638
27645
  let r = i && i.canZoomIn(), s = i && i.canZoomOut();
@@ -27984,7 +27991,7 @@ class Mn extends Qx {
27984
27991
  if (this.ignoreFocusChange) return;
27985
27992
  const i = document.activeElement || null, r = (e == null ? void 0 : e.target) || null, s = this.container, c = (t = this.carousel) === null || t === void 0 ? void 0 : t.viewport;
27986
27993
  if (!s || !c || !e && i && s.contains(i)) return;
27987
- const o = this.getSlide(), f = o && o.state === Mr.Ready ? o.el : null;
27994
+ const o = this.getSlide(), f = o && o.state === Dr.Ready ? o.el : null;
27988
27995
  if (!f || f.contains(i) || s === i) return;
27989
27996
  e && e.cancelable && e.preventDefault(), this.ignoreFocusChange = !0;
27990
27997
  const m = Array.from(s.querySelectorAll(rb));
@@ -28042,12 +28049,12 @@ class Mn extends Qx {
28042
28049
  }
28043
28050
  revealContent(e, t) {
28044
28051
  const i = e.el, r = e.contentEl;
28045
- i && r && (this.emit("reveal", e), this.hideLoading(e), e.state = Mr.Opening, (t = this.isOpeningSlide(e) ? t === void 0 ? this.optionFor(e, "showClass") : t : "f-fadeIn") ? this.animate(r, t, () => {
28052
+ i && r && (this.emit("reveal", e), this.hideLoading(e), e.state = Dr.Opening, (t = this.isOpeningSlide(e) ? t === void 0 ? this.optionFor(e, "showClass") : t : "f-fadeIn") ? this.animate(r, t, () => {
28046
28053
  this.done(e);
28047
28054
  }) : this.done(e));
28048
28055
  }
28049
28056
  done(e) {
28050
- this.isClosing() || (e.state = Mr.Ready, this.emit("done", e), zt(e.el, "is-done"), this.isCurrentSlide(e) && this.option("autoFocus") && queueMicrotask(() => {
28057
+ this.isClosing() || (e.state = Dr.Ready, this.emit("done", e), zt(e.el, "is-done"), this.isCurrentSlide(e) && this.option("autoFocus") && queueMicrotask(() => {
28051
28058
  var t;
28052
28059
  (t = e.panzoom) === null || t === void 0 || t.updateControls(), this.option("autoFocus") && this.focus();
28053
28060
  }), this.isOpeningSlide(e) && (Wn(this.container, fb), !this.isCompact && this.option("idle") && this.setIdle()));
@@ -28061,10 +28068,10 @@ class Mn extends Qx {
28061
28068
  return ((t = this.carousel) === null || t === void 0 ? void 0 : t.prevPage) === null && e && e.index === ((i = this.getSlide()) === null || i === void 0 ? void 0 : i.index);
28062
28069
  }
28063
28070
  showLoading(e) {
28064
- e.state = Mr.Loading;
28071
+ e.state = Dr.Loading;
28065
28072
  const t = e.el;
28066
28073
  t && (zt(t, nE), this.emit("loading", e), e.spinnerEl || setTimeout(() => {
28067
- if (!this.isClosing() && !e.spinnerEl && e.state === Mr.Loading) {
28074
+ if (!this.isClosing() && !e.spinnerEl && e.state === Dr.Loading) {
28068
28075
  let i = Wo(ew);
28069
28076
  zt(i, "fancybox-spinner"), e.spinnerEl = i, t.prepend(i), this.animate(i, "f-fadeIn");
28070
28077
  }
@@ -28076,7 +28083,7 @@ class Mn extends Qx {
28076
28083
  const i = e.spinnerEl;
28077
28084
  this.isClosing() ? i == null || i.remove() : (Wn(t, nE), i && this.animate(i, "f-fadeOut", () => {
28078
28085
  i.remove();
28079
- }), e.state === Mr.Loading && (this.emit("loaded", e), e.state = Mr.Ready));
28086
+ }), e.state === Dr.Loading && (this.emit("loaded", e), e.state = Dr.Ready));
28080
28087
  }
28081
28088
  setError(e, t) {
28082
28089
  if (this.isClosing()) return;
@@ -28144,7 +28151,7 @@ class Mn extends Qx {
28144
28151
  if (f && (qA(f) ? Hk(f) : f.focus()), s && (Wn(s, fb), zt(s, "is-closing"), s.setAttribute(ub, "true"), this.option("animated") && zt(s, hb), s.style.pointerEvents = "none"), c) {
28145
28152
  c.clearTransitions(), (i = c.panzoom) === null || i === void 0 || i.destroy(), (r = c.plugins.Navigation) === null || r === void 0 || r.detach();
28146
28153
  for (const m of c.slides) {
28147
- m.state = Mr.Closing, this.hideLoading(m);
28154
+ m.state = Dr.Closing, this.hideLoading(m);
28148
28155
  const y = m.contentEl;
28149
28156
  y && this.stop(y);
28150
28157
  const x = m == null ? void 0 : m.panzoom;
@@ -31998,7 +32005,7 @@ class Bd {
31998
32005
  }
31999
32006
  }
32000
32007
  const yb = /* @__PURE__ */ Object.create(null);
32001
- class Rr {
32008
+ class Or {
32002
32009
  /**
32003
32010
  Get the step map that represents the changes made by this step,
32004
32011
  and which can be used to transform between positions in the old
@@ -32081,7 +32088,7 @@ function tw(n, e, t) {
32081
32088
  }
32082
32089
  return Ue.fromArray(i);
32083
32090
  }
32084
- class $l extends Rr {
32091
+ class $l extends Or {
32085
32092
  /**
32086
32093
  Create a mark step.
32087
32094
  */
@@ -32119,8 +32126,8 @@ class $l extends Rr {
32119
32126
  return new $l(t.from, t.to, e.markFromJSON(t.mark));
32120
32127
  }
32121
32128
  }
32122
- Rr.jsonID("addMark", $l);
32123
- class Go extends Rr {
32129
+ Or.jsonID("addMark", $l);
32130
+ class Go extends Or {
32124
32131
  /**
32125
32132
  Create a mark-removing step.
32126
32133
  */
@@ -32158,8 +32165,8 @@ class Go extends Rr {
32158
32165
  return new Go(t.from, t.to, e.markFromJSON(t.mark));
32159
32166
  }
32160
32167
  }
32161
- Rr.jsonID("removeMark", Go);
32162
- class jl extends Rr {
32168
+ Or.jsonID("removeMark", Go);
32169
+ class jl extends Or {
32163
32170
  /**
32164
32171
  Create a node mark step.
32165
32172
  */
@@ -32202,8 +32209,8 @@ class jl extends Rr {
32202
32209
  return new jl(t.pos, e.markFromJSON(t.mark));
32203
32210
  }
32204
32211
  }
32205
- Rr.jsonID("addNodeMark", jl);
32206
- class Yd extends Rr {
32212
+ Or.jsonID("addNodeMark", jl);
32213
+ class Yd extends Or {
32207
32214
  /**
32208
32215
  Create a mark-removing step.
32209
32216
  */
@@ -32237,8 +32244,8 @@ class Yd extends Rr {
32237
32244
  return new Yd(t.pos, e.markFromJSON(t.mark));
32238
32245
  }
32239
32246
  }
32240
- Rr.jsonID("removeNodeMark", Yd);
32241
- class nr extends Rr {
32247
+ Or.jsonID("removeNodeMark", Yd);
32248
+ class nr extends Or {
32242
32249
  /**
32243
32250
  The given `slice` should fit the 'gap' between `from` and
32244
32251
  `to`—the depths must line up, and the surrounding nodes must be
@@ -32289,8 +32296,8 @@ class nr extends Rr {
32289
32296
  return new nr(t.from, t.to, wt.fromJSON(e, t.slice), !!t.structure);
32290
32297
  }
32291
32298
  }
32292
- Rr.jsonID("replace", nr);
32293
- class ir extends Rr {
32299
+ Or.jsonID("replace", nr);
32300
+ class ir extends Or {
32294
32301
  /**
32295
32302
  Create a replace-around step with the given range and gap.
32296
32303
  `insert` should be the point in the slice into which the content
@@ -32347,7 +32354,7 @@ class ir extends Rr {
32347
32354
  return new ir(t.from, t.to, t.gapFrom, t.gapTo, wt.fromJSON(e, t.slice), t.insert, !!t.structure);
32348
32355
  }
32349
32356
  }
32350
- Rr.jsonID("replaceAround", ir);
32357
+ Or.jsonID("replaceAround", ir);
32351
32358
  function z_(n, e, t) {
32352
32359
  let i = n.resolve(e), r = t - e, s = i.depth;
32353
32360
  for (; r > 0 && s > 0 && i.indexAfter(s) == i.node(s).childCount; )
@@ -32933,7 +32940,7 @@ function $M(n, e) {
32933
32940
  }
32934
32941
  return t;
32935
32942
  }
32936
- class Vd extends Rr {
32943
+ class Vd extends Or {
32937
32944
  /**
32938
32945
  Construct an attribute step.
32939
32946
  */
@@ -32970,8 +32977,8 @@ class Vd extends Rr {
32970
32977
  return new Vd(t.pos, t.attr, t.value);
32971
32978
  }
32972
32979
  }
32973
- Rr.jsonID("attr", Vd);
32974
- class pp extends Rr {
32980
+ Or.jsonID("attr", Vd);
32981
+ class pp extends Or {
32975
32982
  /**
32976
32983
  Construct an attribute step.
32977
32984
  */
@@ -33004,7 +33011,7 @@ class pp extends Rr {
33004
33011
  return new pp(t.attr, t.value);
33005
33012
  }
33006
33013
  }
33007
- Rr.jsonID("docAttr", pp);
33014
+ Or.jsonID("docAttr", pp);
33008
33015
  let Zd = class extends Error {
33009
33016
  };
33010
33017
  Zd = function n(e) {
@@ -34153,7 +34160,7 @@ function T6(n, e, t) {
34153
34160
  }
34154
34161
  const Xo = typeof navigator < "u" ? navigator : null, ME = typeof document < "u" ? document : null, sc = Xo && Xo.userAgent || "", N_ = /Edge\/(\d+)/.exec(sc), UM = /MSIE \d/.exec(sc), B_ = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(sc), fs = !!(UM || B_ || N_), Zl = UM ? document.documentMode : B_ ? +B_[1] : N_ ? +N_[1] : 0, To = !fs && /gecko\/(\d+)/i.test(sc);
34155
34162
  To && +(/Firefox\/(\d+)/.exec(sc) || [0, 0])[1];
34156
- const F_ = !fs && /Chrome\/(\d+)/.exec(sc), Ir = !!F_, WM = F_ ? +F_[1] : 0, Wr = !fs && !!Xo && /Apple Computer/.test(Xo.vendor), Xd = Wr && (/Mobile\/\w+/.test(sc) || !!Xo && Xo.maxTouchPoints > 2), eo = Xd || (Xo ? /Mac/.test(Xo.platform) : !1), A6 = Xo ? /Win/.test(Xo.platform) : !1, bo = /Android \d/.test(sc), Fp = !!ME && "webkitFontSmoothing" in ME.documentElement.style, M6 = Fp ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
34163
+ const F_ = !fs && /Chrome\/(\d+)/.exec(sc), Pr = !!F_, WM = F_ ? +F_[1] : 0, qr = !fs && !!Xo && /Apple Computer/.test(Xo.vendor), Xd = qr && (/Mobile\/\w+/.test(sc) || !!Xo && Xo.maxTouchPoints > 2), eo = Xd || (Xo ? /Mac/.test(Xo.platform) : !1), A6 = Xo ? /Win/.test(Xo.platform) : !1, bo = /Android \d/.test(sc), Fp = !!ME && "webkitFontSmoothing" in ME.documentElement.style, M6 = Fp ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
34157
34164
  function D6(n) {
34158
34165
  let e = n.defaultView && n.defaultView.visualViewport;
34159
34166
  return e ? {
@@ -34337,7 +34344,7 @@ function F6(n, e) {
34337
34344
  if (!sw(e, m) || (c = ZM(n.dom, e, m), !c))
34338
34345
  return null;
34339
34346
  }
34340
- if (Wr)
34347
+ if (qr)
34341
34348
  for (let m = c; i && m; m = mp(m))
34342
34349
  m.draggable && (i = void 0);
34343
34350
  if (c = L6(c, e), i) {
@@ -34739,7 +34746,7 @@ class Vp {
34739
34746
  M = z;
34740
34747
  }
34741
34748
  let o = this.domFromPos(e, e ? -1 : 1), f = t == e ? o : this.domFromPos(t, t ? -1 : 1), m = i.root.getSelection(), y = i.domSelectionRange(), x = !1;
34742
- if ((To || Wr) && e == t) {
34749
+ if ((To || qr) && e == t) {
34743
34750
  let { node: C, offset: M } = o;
34744
34751
  if (C.nodeType == 3) {
34745
34752
  if (x = !!(M && C.nodeValue[M - 1] == `
@@ -34762,7 +34769,7 @@ class Vp {
34762
34769
  let C = y.focusNode.childNodes[y.focusOffset];
34763
34770
  C && C.contentEditable == "false" && (r = !0);
34764
34771
  }
34765
- if (!(r || x && Wr) && hu(o.node, o.offset, y.anchorNode, y.anchorOffset) && hu(f.node, f.offset, y.focusNode, y.focusOffset))
34772
+ if (!(r || x && qr) && hu(o.node, o.offset, y.anchorNode, y.anchorOffset) && hu(f.node, f.offset, y.focusNode, y.focusOffset))
34766
34773
  return;
34767
34774
  let E = !1;
34768
34775
  if ((m.extend || e == t) && !x) {
@@ -35361,7 +35368,7 @@ class Y6 {
35361
35368
  for (; e instanceof fu; )
35362
35369
  t = e, e = t.children[t.children.length - 1];
35363
35370
  (!e || // Empty textblock
35364
- !(e instanceof o0) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Wr || Ir) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
35371
+ !(e instanceof o0) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((qr || Pr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
35365
35372
  }
35366
35373
  addHackNode(e, t) {
35367
35374
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -35537,7 +35544,7 @@ function iD(n) {
35537
35544
  function Ba(n, e = !1) {
35538
35545
  let t = n.state.selection;
35539
35546
  if (rD(n, t), !!iD(n)) {
35540
- if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Ir) {
35547
+ if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Pr) {
35541
35548
  let i = n.domSelectionRange(), r = n.domObserver.currentSelection;
35542
35549
  if (i.anchorNode && r.anchorNode && hu(i.anchorNode, i.anchorOffset, r.anchorNode, r.anchorOffset)) {
35543
35550
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
@@ -35553,10 +35560,10 @@ function Ba(n, e = !1) {
35553
35560
  n.domObserver.setCurSelection(), n.domObserver.connectSelection();
35554
35561
  }
35555
35562
  }
35556
- const BE = Wr || Ir && WM < 63;
35563
+ const BE = qr || Pr && WM < 63;
35557
35564
  function FE(n, e) {
35558
35565
  let { node: t, offset: i } = n.docView.domFromPos(e, 0), r = i < t.childNodes.length ? t.childNodes[i] : null, s = i ? t.childNodes[i - 1] : null;
35559
- if (Wr && r && r.contentEditable == "false")
35566
+ if (qr && r && r.contentEditable == "false")
35560
35567
  return kb(r);
35561
35568
  if ((!r || r.contentEditable == "false") && (!s || s.contentEditable == "false")) {
35562
35569
  if (r)
@@ -35566,7 +35573,7 @@ function FE(n, e) {
35566
35573
  }
35567
35574
  }
35568
35575
  function kb(n) {
35569
- return n.contentEditable = "true", Wr && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
35576
+ return n.contentEditable = "true", qr && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
35570
35577
  }
35571
35578
  function VE(n) {
35572
35579
  n.contentEditable = "false", n.wasDraggable && (n.draggable = !0, n.wasDraggable = null);
@@ -35781,7 +35788,7 @@ function H_(n, e, t) {
35781
35788
  }
35782
35789
  function UE(n, e) {
35783
35790
  let t = n.state.doc.resolve(e);
35784
- if (!(Ir || A6) && t.parent.inlineContent) {
35791
+ if (!(Pr || A6) && t.parent.inlineContent) {
35785
35792
  let r = n.coordsAtPos(e);
35786
35793
  if (e > t.start()) {
35787
35794
  let s = n.coordsAtPos(e - 1), c = (s.top + s.bottom) / 2;
@@ -35833,7 +35840,7 @@ function GE(n, e, t) {
35833
35840
  n.domObserver.stop(), e.contentEditable = t, n.domObserver.start();
35834
35841
  }
35835
35842
  function aH(n) {
35836
- if (!Wr || n.state.selection.$head.parentOffset > 0)
35843
+ if (!qr || n.state.selection.$head.parentOffset > 0)
35837
35844
  return !1;
35838
35845
  let { focusNode: e, focusOffset: t } = n.domSelectionRange();
35839
35846
  if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
@@ -36034,7 +36041,7 @@ function fH(n) {
36034
36041
  return t;
36035
36042
  }
36036
36043
  function pH(n) {
36037
- let e = n.querySelectorAll(Ir ? "span:not([class]):not([style])" : "span.Apple-converted-space");
36044
+ let e = n.querySelectorAll(Pr ? "span:not([class]):not([style])" : "span.Apple-converted-space");
36038
36045
  for (let t = 0; t < e.length; t++) {
36039
36046
  let i = e[t];
36040
36047
  i.childNodes.length == 1 && i.textContent == " " && i.parentNode && i.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), i);
@@ -36058,20 +36065,20 @@ function mH(n, e) {
36058
36065
  }
36059
36066
  return new wt(r, s, c);
36060
36067
  }
36061
- const qr = {}, Gr = {}, gH = { touchstart: !0, touchmove: !0 };
36068
+ const Gr = {}, Yr = {}, gH = { touchstart: !0, touchmove: !0 };
36062
36069
  class yH {
36063
36070
  constructor() {
36064
36071
  this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastAndroidDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
36065
36072
  }
36066
36073
  }
36067
36074
  function vH(n) {
36068
- for (let e in qr) {
36069
- let t = qr[e];
36075
+ for (let e in Gr) {
36076
+ let t = Gr[e];
36070
36077
  n.dom.addEventListener(e, n.input.eventHandlers[e] = (i) => {
36071
- _H(n, i) && !lw(n, i) && (n.editable || !(i.type in Gr)) && t(n, i);
36078
+ _H(n, i) && !lw(n, i) && (n.editable || !(i.type in Yr)) && t(n, i);
36072
36079
  }, gH[e] ? { passive: !0 } : void 0);
36073
36080
  }
36074
- Wr && n.dom.addEventListener("input", () => null), W_(n);
36081
+ qr && n.dom.addEventListener("input", () => null), W_(n);
36075
36082
  }
36076
36083
  function Hl(n, e) {
36077
36084
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
@@ -36105,11 +36112,11 @@ function _H(n, e) {
36105
36112
  return !0;
36106
36113
  }
36107
36114
  function xH(n, e) {
36108
- !lw(n, e) && qr[e.type] && (n.editable || !(e.type in Gr)) && qr[e.type](n, e);
36115
+ !lw(n, e) && Gr[e.type] && (n.editable || !(e.type in Yr)) && Gr[e.type](n, e);
36109
36116
  }
36110
- Gr.keydown = (n, e) => {
36117
+ Yr.keydown = (n, e) => {
36111
36118
  let t = e;
36112
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mD(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(bo && Ir && t.keyCode == 13)))
36119
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mD(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(bo && Pr && t.keyCode == 13)))
36113
36120
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Xd && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
36114
36121
  let i = Date.now();
36115
36122
  n.input.lastIOSEnter = i, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -36117,10 +36124,10 @@ Gr.keydown = (n, e) => {
36117
36124
  }, 200);
36118
36125
  } else n.someProp("handleKeyDown", (i) => i(n, t)) || cH(n, t) ? t.preventDefault() : Hl(n, "key");
36119
36126
  };
36120
- Gr.keyup = (n, e) => {
36127
+ Yr.keyup = (n, e) => {
36121
36128
  e.keyCode == 16 && (n.input.shiftKey = !1);
36122
36129
  };
36123
- Gr.keypress = (n, e) => {
36130
+ Yr.keypress = (n, e) => {
36124
36131
  let t = e;
36125
36132
  if (mD(n, t) || !t.charCode || t.ctrlKey && !t.altKey || eo && t.metaKey)
36126
36133
  return;
@@ -36208,7 +36215,7 @@ function uw(n) {
36208
36215
  return uy(n);
36209
36216
  }
36210
36217
  const pD = eo ? "metaKey" : "ctrlKey";
36211
- qr.mousedown = (n, e) => {
36218
+ Gr.mousedown = (n, e) => {
36212
36219
  let t = e;
36213
36220
  n.input.shiftKey = t.shiftKey;
36214
36221
  let i = uw(n), r = Date.now(), s = "singleClick";
@@ -36246,14 +36253,14 @@ class MH {
36246
36253
  return;
36247
36254
  let t = this.pos;
36248
36255
  this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(a0(e))), this.updateAllowDefault(e), this.allowDefault || !t ? Hl(this.view, "pointer") : EH(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
36249
- Wr && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
36256
+ qr && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
36250
36257
  // cursor, but still report that the node is selected
36251
36258
  // when asked through getSelection. You'll then get a
36252
36259
  // situation where clicking at the point where that
36253
36260
  // (hidden) cursor is doesn't change the selection, and
36254
36261
  // thus doesn't get a reaction from ProseMirror. This
36255
36262
  // works around that.
36256
- Ir && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? ($d(this.view, hn.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Hl(this.view, "pointer");
36263
+ Pr && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? ($d(this.view, hn.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Hl(this.view, "pointer");
36257
36264
  }
36258
36265
  move(e) {
36259
36266
  this.updateAllowDefault(e), Hl(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -36262,18 +36269,18 @@ class MH {
36262
36269
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
36263
36270
  }
36264
36271
  }
36265
- qr.touchstart = (n) => {
36272
+ Gr.touchstart = (n) => {
36266
36273
  n.input.lastTouch = Date.now(), uw(n), Hl(n, "pointer");
36267
36274
  };
36268
- qr.touchmove = (n) => {
36275
+ Gr.touchmove = (n) => {
36269
36276
  n.input.lastTouch = Date.now(), Hl(n, "pointer");
36270
36277
  };
36271
- qr.contextmenu = (n) => uw(n);
36278
+ Gr.contextmenu = (n) => uw(n);
36272
36279
  function mD(n, e) {
36273
- return n.composing ? !0 : Wr && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
36280
+ return n.composing ? !0 : qr && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
36274
36281
  }
36275
36282
  const DH = bo ? 5e3 : -1;
36276
- Gr.compositionstart = Gr.compositionupdate = (n) => {
36283
+ Yr.compositionstart = Yr.compositionupdate = (n) => {
36277
36284
  if (!n.composing) {
36278
36285
  n.domObserver.flush();
36279
36286
  let { state: e } = n, t = e.selection.$to;
@@ -36297,7 +36304,7 @@ Gr.compositionstart = Gr.compositionupdate = (n) => {
36297
36304
  }
36298
36305
  gD(n, DH);
36299
36306
  };
36300
- Gr.compositionend = (n, e) => {
36307
+ Yr.compositionend = (n, e) => {
36301
36308
  n.composing && (n.input.composing = !1, n.input.compositionEndedAt = e.timeStamp, n.input.compositionPendingChanges = n.domObserver.pendingRecords().length ? n.input.compositionID : 0, n.input.compositionNode = null, n.input.compositionPendingChanges && Promise.resolve().then(() => n.domObserver.flush()), n.input.compositionID++, gD(n, 20));
36302
36309
  };
36303
36310
  function gD(n, e) {
@@ -36350,7 +36357,7 @@ function RH(n, e) {
36350
36357
  }, 50);
36351
36358
  }
36352
36359
  const gp = fs && Zl < 15 || Xd && M6 < 604;
36353
- qr.copy = Gr.cut = (n, e) => {
36360
+ Gr.copy = Yr.cut = (n, e) => {
36354
36361
  let t = e, i = n.state.selection, r = t.type == "cut";
36355
36362
  if (i.empty)
36356
36363
  return;
@@ -36386,7 +36393,7 @@ function vD(n) {
36386
36393
  let t = n.getData("text/uri-list");
36387
36394
  return t ? t.replace(/\r?\n/g, " ") : "";
36388
36395
  }
36389
- Gr.paste = (n, e) => {
36396
+ Yr.paste = (n, e) => {
36390
36397
  let t = e;
36391
36398
  if (n.composing && !bo)
36392
36399
  return;
@@ -36399,7 +36406,7 @@ class bD {
36399
36406
  }
36400
36407
  }
36401
36408
  const _D = eo ? "altKey" : "ctrlKey";
36402
- qr.dragstart = (n, e) => {
36409
+ Gr.dragstart = (n, e) => {
36403
36410
  let t = e, i = n.input.mouseDown;
36404
36411
  if (i && i.done(), !t.dataTransfer)
36405
36412
  return;
@@ -36413,16 +36420,16 @@ qr.dragstart = (n, e) => {
36413
36420
  }
36414
36421
  }
36415
36422
  let o = (c || n.state.selection).content(), { dom: f, text: m, slice: y } = aD(n, o);
36416
- (!t.dataTransfer.files.length || !Ir || WM > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(gp ? "Text" : "text/html", f.innerHTML), t.dataTransfer.effectAllowed = "copyMove", gp || t.dataTransfer.setData("text/plain", m), n.dragging = new bD(y, !t[_D], c);
36423
+ (!t.dataTransfer.files.length || !Pr || WM > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(gp ? "Text" : "text/html", f.innerHTML), t.dataTransfer.effectAllowed = "copyMove", gp || t.dataTransfer.setData("text/plain", m), n.dragging = new bD(y, !t[_D], c);
36417
36424
  };
36418
- qr.dragend = (n) => {
36425
+ Gr.dragend = (n) => {
36419
36426
  let e = n.dragging;
36420
36427
  window.setTimeout(() => {
36421
36428
  n.dragging == e && (n.dragging = null);
36422
36429
  }, 50);
36423
36430
  };
36424
- Gr.dragover = Gr.dragenter = (n, e) => e.preventDefault();
36425
- Gr.drop = (n, e) => {
36431
+ Yr.dragover = Yr.dragenter = (n, e) => e.preventDefault();
36432
+ Yr.drop = (n, e) => {
36426
36433
  let t = e, i = n.dragging;
36427
36434
  if (n.dragging = null, !t.dataTransfer)
36428
36435
  return;
@@ -36460,17 +36467,17 @@ Gr.drop = (n, e) => {
36460
36467
  }
36461
36468
  n.focus(), n.dispatch(m.setMeta("uiEvent", "drop"));
36462
36469
  };
36463
- qr.focus = (n) => {
36470
+ Gr.focus = (n) => {
36464
36471
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
36465
36472
  n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Ba(n);
36466
36473
  }, 20));
36467
36474
  };
36468
- qr.blur = (n, e) => {
36475
+ Gr.blur = (n, e) => {
36469
36476
  let t = e;
36470
36477
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
36471
36478
  };
36472
- qr.beforeinput = (n, e) => {
36473
- if (Ir && bo && e.inputType == "deleteContentBackward") {
36479
+ Gr.beforeinput = (n, e) => {
36480
+ if (Pr && bo && e.inputType == "deleteContentBackward") {
36474
36481
  n.domObserver.flushSoon();
36475
36482
  let { domChangeCount: i } = n.input;
36476
36483
  setTimeout(() => {
@@ -36481,8 +36488,8 @@ qr.beforeinput = (n, e) => {
36481
36488
  }, 50);
36482
36489
  }
36483
36490
  };
36484
- for (let n in Gr)
36485
- qr[n] = Gr[n];
36491
+ for (let n in Yr)
36492
+ Gr[n] = Yr[n];
36486
36493
  function vp(n, e) {
36487
36494
  if (n == e)
36488
36495
  return !0;
@@ -36638,7 +36645,7 @@ class Bi {
36638
36645
  you must make a copy if you want need to preserve that.
36639
36646
  */
36640
36647
  static create(e, t) {
36641
- return t.length ? hy(t, e, 0, iu) : Ar;
36648
+ return t.length ? hy(t, e, 0, iu) : Mr;
36642
36649
  }
36643
36650
  /**
36644
36651
  Find all decorations in this set which touch the given range
@@ -36668,7 +36675,7 @@ class Bi {
36668
36675
  document.
36669
36676
  */
36670
36677
  map(e, t, i) {
36671
- return this == Ar || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, i || iu);
36678
+ return this == Mr || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, i || iu);
36672
36679
  }
36673
36680
  /**
36674
36681
  @internal
@@ -36679,7 +36686,7 @@ class Bi {
36679
36686
  let f = this.local[o].map(e, i, r);
36680
36687
  f && f.type.valid(t, f) ? (c || (c = [])).push(f) : s.onRemove && s.onRemove(this.local[o].spec);
36681
36688
  }
36682
- return this.children.length ? LH(this.children, c || [], e, t, i, r, s) : c ? new Bi(c.sort(ru), Ad) : Ar;
36689
+ return this.children.length ? LH(this.children, c || [], e, t, i, r, s) : c ? new Bi(c.sort(ru), Ad) : Mr;
36683
36690
  }
36684
36691
  /**
36685
36692
  Add the given array of decorations to the ones in the set,
@@ -36688,7 +36695,7 @@ class Bi {
36688
36695
  structure.
36689
36696
  */
36690
36697
  add(e, t) {
36691
- return t.length ? this == Ar ? Bi.create(e, t) : this.addInner(e, t, 0) : this;
36698
+ return t.length ? this == Mr ? Bi.create(e, t) : this.addInner(e, t, 0) : this;
36692
36699
  }
36693
36700
  addInner(e, t, i) {
36694
36701
  let r, s = 0;
@@ -36710,7 +36717,7 @@ class Bi {
36710
36717
  the ones in the given array.
36711
36718
  */
36712
36719
  remove(e) {
36713
- return e.length == 0 || this == Ar ? this : this.removeInner(e, 0);
36720
+ return e.length == 0 || this == Mr ? this : this.removeInner(e, 0);
36714
36721
  }
36715
36722
  removeInner(e, t) {
36716
36723
  let i = this.children, r = this.local;
@@ -36722,7 +36729,7 @@ class Bi {
36722
36729
  continue;
36723
36730
  i == this.children && (i = this.children.slice());
36724
36731
  let m = i[s + 2].removeInner(c, o + 1);
36725
- m != Ar ? i[s + 2] = m : (i.splice(s, 3), s -= 3);
36732
+ m != Mr ? i[s + 2] = m : (i.splice(s, 3), s -= 3);
36726
36733
  }
36727
36734
  if (r.length) {
36728
36735
  for (let s = 0, c; s < e.length; s++)
@@ -36730,10 +36737,10 @@ class Bi {
36730
36737
  for (let o = 0; o < r.length; o++)
36731
36738
  r[o].eq(c, t) && (r == this.local && (r = this.local.slice()), r.splice(o--, 1));
36732
36739
  }
36733
- return i == this.children && r == this.local ? this : r.length || i.length ? new Bi(r, i) : Ar;
36740
+ return i == this.children && r == this.local ? this : r.length || i.length ? new Bi(r, i) : Mr;
36734
36741
  }
36735
36742
  forChild(e, t) {
36736
- if (this == Ar)
36743
+ if (this == Mr)
36737
36744
  return this;
36738
36745
  if (t.isLeaf)
36739
36746
  return Bi.empty;
@@ -36755,7 +36762,7 @@ class Bi {
36755
36762
  let o = new Bi(r.sort(ru), Ad);
36756
36763
  return i ? new Nl([o, i]) : o;
36757
36764
  }
36758
- return i || Ar;
36765
+ return i || Mr;
36759
36766
  }
36760
36767
  /**
36761
36768
  @internal
@@ -36783,7 +36790,7 @@ class Bi {
36783
36790
  @internal
36784
36791
  */
36785
36792
  localsInner(e) {
36786
- if (this == Ar)
36793
+ if (this == Mr)
36787
36794
  return Ad;
36788
36795
  if (e.inlineContent || !this.local.some(Kl.is))
36789
36796
  return this.local;
@@ -36798,7 +36805,7 @@ class Bi {
36798
36805
  }
36799
36806
  Bi.empty = new Bi([], []);
36800
36807
  Bi.removeOverlap = hw;
36801
- const Ar = Bi.empty;
36808
+ const Mr = Bi.empty;
36802
36809
  class Nl {
36803
36810
  constructor(e) {
36804
36811
  this.members = e;
@@ -36813,7 +36820,7 @@ class Nl {
36813
36820
  let i = [];
36814
36821
  for (let r = 0; r < this.members.length; r++) {
36815
36822
  let s = this.members[r].forChild(e, t);
36816
- s != Ar && (s instanceof Nl ? i = i.concat(s.members) : i.push(s));
36823
+ s != Mr && (s instanceof Nl ? i = i.concat(s.members) : i.push(s));
36817
36824
  }
36818
36825
  return Nl.from(i);
36819
36826
  }
@@ -36845,7 +36852,7 @@ class Nl {
36845
36852
  static from(e) {
36846
36853
  switch (e.length) {
36847
36854
  case 0:
36848
- return Ar;
36855
+ return Mr;
36849
36856
  case 1:
36850
36857
  return e[0];
36851
36858
  default:
@@ -36888,7 +36895,7 @@ function LH(n, e, t, i, r, s, c) {
36888
36895
  let E = t.map(n[m + 1] + s, -1), C = E - r, { index: M, offset: O } = i.content.findIndex(x), z = i.maybeChild(M);
36889
36896
  if (z && O == x && O + z.nodeSize == C) {
36890
36897
  let j = o[m + 2].mapInner(t, z, y + 1, n[m] + s + 1, c);
36891
- j != Ar ? (o[m] = x, o[m + 1] = C, o[m + 2] = j) : (o[m + 1] = -2, f = !0);
36898
+ j != Mr ? (o[m] = x, o[m + 1] = C, o[m + 2] = j) : (o[m + 1] = -2, f = !0);
36892
36899
  } else
36893
36900
  f = !0;
36894
36901
  }
@@ -36950,13 +36957,13 @@ function hy(n, e, t, i) {
36950
36957
  if (m) {
36951
36958
  s = !0;
36952
36959
  let y = hy(m, o, t + f + 1, i);
36953
- y != Ar && r.push(f, f + o.nodeSize, y);
36960
+ y != Mr && r.push(f, f + o.nodeSize, y);
36954
36961
  }
36955
36962
  });
36956
36963
  let c = xD(s ? SD(n) : n, -t).sort(ru);
36957
36964
  for (let o = 0; o < c.length; o++)
36958
36965
  c[o].type.valid(e, c[o]) || (i.onRemove && i.onRemove(c[o].spec), c.splice(o--, 1));
36959
- return c.length || r.length ? new Bi(c, r) : Ar;
36966
+ return c.length || r.length ? new Bi(c, r) : Mr;
36960
36967
  }
36961
36968
  function ru(n, e) {
36962
36969
  return n.from - e.from || n.to - e.to;
@@ -36988,7 +36995,7 @@ function Cb(n) {
36988
36995
  let e = [];
36989
36996
  return n.someProp("decorations", (t) => {
36990
36997
  let i = t(n.state);
36991
- i && i != Ar && e.push(i);
36998
+ i && i != Mr && e.push(i);
36992
36999
  }), n.cursorWrapper && e.push(Bi.create(n.state.doc, [n.cursorWrapper.deco])), Nl.from(e);
36993
37000
  }
36994
37001
  const BH = {
@@ -37189,7 +37196,7 @@ function UH(n, e) {
37189
37196
  }
37190
37197
  function WH(n, e, t) {
37191
37198
  let { node: i, fromOffset: r, toOffset: s, from: c, to: o } = n.docView.parseRange(e, t), f = n.domSelectionRange(), m, y = f.anchorNode;
37192
- if (y && n.dom.contains(y.nodeType == 1 ? y : y.parentNode) && (m = [{ node: y, offset: f.anchorOffset }], s0(f) || m.push({ node: f.focusNode, offset: f.focusOffset })), Ir && n.input.lastKeyCode === 8)
37199
+ if (y && n.dom.contains(y.nodeType == 1 ? y : y.parentNode) && (m = [{ node: y, offset: f.anchorOffset }], s0(f) || m.push({ node: f.focusNode, offset: f.focusOffset })), Pr && n.input.lastKeyCode === 8)
37193
37200
  for (let z = s; z > r; z--) {
37194
37201
  let j = i.childNodes[z - 1], J = j.pmViewDesc;
37195
37202
  if (j.nodeName == "BR" && !J) {
@@ -37221,10 +37228,10 @@ function qH(n) {
37221
37228
  if (e)
37222
37229
  return e.parseRule();
37223
37230
  if (n.nodeName == "BR" && n.parentNode) {
37224
- if (Wr && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
37231
+ if (qr && /^(ul|ol)$/i.test(n.parentNode.nodeName)) {
37225
37232
  let t = document.createElement("div");
37226
37233
  return t.appendChild(document.createElement("li")), { skip: t };
37227
- } else if (n.parentNode.lastChild == n || Wr && /^(tr|table)$/i.test(n.parentNode.nodeName))
37234
+ } else if (n.parentNode.lastChild == n || qr && /^(tr|table)$/i.test(n.parentNode.nodeName))
37228
37235
  return { ignore: !0 };
37229
37236
  } else if (n.nodeName == "IMG" && n.getAttribute("mark-placeholder"))
37230
37237
  return { ignore: !0 };
@@ -37236,7 +37243,7 @@ function YH(n, e, t, i, r) {
37236
37243
  if (n.input.compositionPendingChanges = 0, e < 0) {
37237
37244
  let Ne = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, pt = ow(n, Ne);
37238
37245
  if (pt && !n.state.selection.eq(pt)) {
37239
- if (Ir && bo && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (bt) => bt(n, Uc(13, "Enter"))))
37246
+ if (Pr && bo && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (bt) => bt(n, Uc(13, "Enter"))))
37240
37247
  return;
37241
37248
  let st = n.state.tr.setSelection(pt);
37242
37249
  Ne == "pointer" ? st.setMeta("pointer", !0) : Ne == "key" && st.scrollIntoView(), s && st.setMeta("composition", s), n.dispatch(st);
@@ -37272,10 +37279,10 @@ function YH(n, e, t, i, r) {
37272
37279
  return;
37273
37280
  }
37274
37281
  if (n.state.selection.anchor > M.start && XH(y, M.start, M.endA, O, z) && n.someProp("handleKeyDown", (Ne) => Ne(n, Uc(8, "Backspace")))) {
37275
- bo && Ir && n.domObserver.suppressSelectionUpdates();
37282
+ bo && Pr && n.domObserver.suppressSelectionUpdates();
37276
37283
  return;
37277
37284
  }
37278
- Ir && bo && M.endB == M.start && (n.input.lastAndroidDelete = Date.now()), bo && !J && O.start() != z.start() && z.parentOffset == 0 && O.depth == z.depth && m.sel && m.sel.anchor == m.sel.head && m.sel.head == M.endA && (M.endB -= 2, z = m.doc.resolveNoCache(M.endB - m.from), setTimeout(() => {
37285
+ Pr && bo && M.endB == M.start && (n.input.lastAndroidDelete = Date.now()), bo && !J && O.start() != z.start() && z.parentOffset == 0 && O.depth == z.depth && m.sel && m.sel.anchor == m.sel.head && m.sel.head == M.endA && (M.endB -= 2, z = m.doc.resolveNoCache(M.endB - m.from), setTimeout(() => {
37279
37286
  n.someProp("handleKeyDown", function(Ne) {
37280
37287
  return Ne(n, Uc(13, "Enter"));
37281
37288
  });
@@ -37298,7 +37305,7 @@ function YH(n, e, t, i, r) {
37298
37305
  }
37299
37306
  if (ye || (ye = n.state.tr.replace(H, Ce, m.doc.slice(M.start - m.from, M.endB - m.from))), m.sel) {
37300
37307
  let Ne = eC(n, ye.doc, m.sel);
37301
- Ne && !(Ir && bo && n.composing && Ne.empty && (M.start != M.endB || n.input.lastAndroidDelete < Date.now() - 100) && (Ne.head == H || Ne.head == ye.mapping.map(Ce) - 1) || fs && Ne.empty && Ne.head == H) && ye.setSelection(Ne);
37308
+ Ne && !(Pr && bo && n.composing && Ne.empty && (M.start != M.endB || n.input.lastAndroidDelete < Date.now() - 100) && (Ne.head == H || Ne.head == ye.mapping.map(Ce) - 1) || fs && Ne.empty && Ne.head == H) && ye.setSelection(Ne);
37302
37309
  }
37303
37310
  Ie && ye.ensureMarks(Ie), s && ye.setMeta("composition", s), n.dispatch(ye.scrollIntoView());
37304
37311
  }
@@ -37452,9 +37459,9 @@ class JH {
37452
37459
  let E = y == "preserve" && c && this.dom.style.overflowAnchor == null && P6(this);
37453
37460
  if (c) {
37454
37461
  this.domObserver.stop();
37455
- let C = x && (fs || Ir) && !this.composing && !r.selection.empty && !e.selection.empty && QH(r.selection, e.selection);
37462
+ let C = x && (fs || Pr) && !this.composing && !r.selection.empty && !e.selection.empty && QH(r.selection, e.selection);
37456
37463
  if (x) {
37457
- let M = Ir ? this.trackWrites = this.domSelectionRange().focusNode : null;
37464
+ let M = Pr ? this.trackWrites = this.domSelectionRange().focusNode : null;
37458
37465
  this.composing && (this.input.compositionNode = IH(this)), (s || !this.docView.update(e.doc, m, f, this)) && (this.docView.updateOuterDeco(m), this.docView.destroy(), this.docView = LE(e.doc, m, f, this.dom, this)), M && !this.trackWrites && (C = !0);
37459
37466
  }
37460
37467
  C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && nH(this)) ? Ba(this, C) : (rD(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -37698,7 +37705,7 @@ class JH {
37698
37705
  */
37699
37706
  domSelectionRange() {
37700
37707
  let e = this.domSelection();
37701
- return e ? Wr && this.root.nodeType === 11 && C6(this.dom.ownerDocument) == this.dom && HH(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
37708
+ return e ? qr && this.root.nodeType === 11 && C6(this.dom.ownerDocument) == this.dom && HH(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
37702
37709
  }
37703
37710
  /**
37704
37711
  @internal
@@ -41666,7 +41673,7 @@ function pq(n) {
41666
41673
  ye[H] = Te, bt[H] = Te - Wt;
41667
41674
  }
41668
41675
  if (o) {
41669
- var Vn, Vs = H === "x" ? ps : ms, fn = H === "x" ? ao : lo, En = ye[Ce], vr = Ce === "y" ? "height" : "width", br = En + z[Vs], Vi = En - z[fn], Yr = [ps, ms].indexOf(j) !== -1, $i = (Vn = st == null ? void 0 : st[Ce]) != null ? Vn : 0, $s = Yr ? br : En - Ie[vr] - Ve[vr] - $i + pt.altAxis, js = Yr ? En + Ie[vr] + Ve[vr] - $i - pt.altAxis : Vi, je = C && Yr ? BW($s, En, js) : Qf(C ? $s : br, En, C ? js : Vi);
41676
+ var Vn, Vs = H === "x" ? ps : ms, fn = H === "x" ? ao : lo, En = ye[Ce], vr = Ce === "y" ? "height" : "width", br = En + z[Vs], Vi = En - z[fn], Zr = [ps, ms].indexOf(j) !== -1, $i = (Vn = st == null ? void 0 : st[Ce]) != null ? Vn : 0, $s = Zr ? br : En - Ie[vr] - Ve[vr] - $i + pt.altAxis, js = Zr ? En + Ie[vr] + Ve[vr] - $i - pt.altAxis : Vi, je = C && Zr ? BW($s, En, js) : Qf(C ? $s : br, En, C ? js : Vi);
41670
41677
  ye[Ce] = je, bt[Ce] = je - En;
41671
41678
  }
41672
41679
  e.modifiersData[i] = bt;
@@ -42258,10 +42265,10 @@ function e7(n, e) {
42258
42265
  clearDelayTimeouts: $s,
42259
42266
  setProps: js,
42260
42267
  setContent: je,
42261
- show: Zr,
42268
+ show: Xr,
42262
42269
  hide: ji,
42263
- hideWithInteractivity: Xr,
42264
- enable: Yr,
42270
+ hideWithInteractivity: Kr,
42271
+ enable: Zr,
42265
42272
  disable: $i,
42266
42273
  unmount: Hs,
42267
42274
  destroy: Ze
@@ -42471,7 +42478,7 @@ function e7(n, e) {
42471
42478
  var Ee = H.props, Fe = Ee.popperOptions, Mt = Ee.placement, nn = Ee.offset, nt = Ee.getReferenceClientRect, Jn = Ee.moveTransition, yi = bt() ? tx(ye).arrow : null, lr = nt ? {
42472
42479
  getBoundingClientRect: nt,
42473
42480
  contextElement: nt.contextElement || at()
42474
- } : n, zr = {
42481
+ } : n, Lr = {
42475
42482
  name: "$$tippy",
42476
42483
  enabled: !0,
42477
42484
  phase: "beforeWrite",
@@ -42510,7 +42517,7 @@ function e7(n, e) {
42510
42517
  options: {
42511
42518
  adaptive: !Jn
42512
42519
  }
42513
- }, zr];
42520
+ }, Lr];
42514
42521
  bt() && yi && ae.push({
42515
42522
  name: "arrow",
42516
42523
  options: {
@@ -42560,7 +42567,7 @@ function e7(n, e) {
42560
42567
  });
42561
42568
  }
42562
42569
  }
42563
- function Yr() {
42570
+ function Zr() {
42564
42571
  H.state.isEnabled = !0;
42565
42572
  }
42566
42573
  function $i() {
@@ -42587,7 +42594,7 @@ function e7(n, e) {
42587
42594
  content: Ee
42588
42595
  });
42589
42596
  }
42590
- function Zr() {
42597
+ function Xr() {
42591
42598
  process.env.NODE_ENV !== "production" && Aa(H.state.isDestroyed, Ed("show"));
42592
42599
  var Ee = H.state.isVisible, Fe = H.state.isDestroyed, Mt = !H.state.isEnabled, nn = jo.isTouch && !H.props.touch, nt = Rb(H.props.duration, 0, Is.duration);
42593
42600
  if (!(Ee || Fe || Mt || nn) && !at().hasAttribute("disabled") && (an("onShow", [H], !1), H.props.onShow(H) !== !1)) {
@@ -42620,7 +42627,7 @@ function e7(n, e) {
42620
42627
  Fn(), In(), H.props.animation ? bt() && Pe(nn, H.unmount) : H.unmount();
42621
42628
  }
42622
42629
  }
42623
- function Xr(Ee) {
42630
+ function Kr(Ee) {
42624
42631
  process.env.NODE_ENV !== "production" && Aa(H.state.isDestroyed, Ed("hideWithInteractivity")), Ot().addEventListener("mousemove", M), EC(_g, M), M(Ee);
42625
42632
  }
42626
42633
  function Hs() {
@@ -47019,7 +47026,7 @@ function Vg(n, e, t, i, r) {
47019
47026
  var s = { type: n, props: e, key: t, ref: i, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: r ?? ++SI };
47020
47027
  return r == null && Ht.vnode != null && Ht.vnode(s), s;
47021
47028
  }
47022
- function Ur() {
47029
+ function Wr() {
47023
47030
  return { current: null };
47024
47031
  }
47025
47032
  function li(n) {
@@ -47598,7 +47605,7 @@ class Pw {
47598
47605
  function Rw(n) {
47599
47606
  n.parentNode && n.parentNode.removeChild(n);
47600
47607
  }
47601
- function Dr(n, e) {
47608
+ function Ir(n, e) {
47602
47609
  if (n.closest)
47603
47610
  return n.closest(e);
47604
47611
  if (!document.documentElement.contains(n))
@@ -47643,7 +47650,7 @@ function y0(n) {
47643
47650
  }
47644
47651
  function GX(n, e) {
47645
47652
  return (t) => {
47646
- let i = Dr(t.target, n);
47653
+ let i = Ir(t.target, n);
47647
47654
  i && e.call(i, t, i);
47648
47655
  };
47649
47656
  }
@@ -49010,7 +49017,7 @@ function rJ(n) {
49010
49017
  return !!n;
49011
49018
  }
49012
49019
  const tP = QI(0);
49013
- class Or extends Os {
49020
+ class zr extends Os {
49014
49021
  constructor() {
49015
49022
  super(...arguments), this.InnerContent = sJ.bind(void 0, this), this.handleEl = (e) => {
49016
49023
  this.el = e, this.props.elRef && (qa(this.props.elRef, e), e && this.didMountMisfire && this.componentDidMount());
@@ -49033,7 +49040,7 @@ class Or extends Os {
49033
49040
  (t = (e = this.props).willUnmount) === null || t === void 0 || t.call(e, Object.assign(Object.assign({}, this.props.renderProps), { el: this.el }));
49034
49041
  }
49035
49042
  }
49036
- Or.contextType = tP;
49043
+ zr.contextType = tP;
49037
49044
  function sJ(n, e) {
49038
49045
  const t = n.props;
49039
49046
  return ue($w, Object.assign({ renderProps: t.renderProps, generatorName: t.generatorName, customGenerator: t.customGenerator, defaultGenerator: t.defaultGenerator, renderId: n.context }, e));
@@ -49045,7 +49052,7 @@ function oJ(n, e) {
49045
49052
  class Tp extends Bn {
49046
49053
  render() {
49047
49054
  let { props: e, context: t } = this, { options: i } = t, r = { view: t.viewApi };
49048
- return ue(Or, Object.assign({}, e, { elTag: e.elTag || "div", elClasses: [
49055
+ return ue(zr, Object.assign({}, e, { elTag: e.elTag || "div", elClasses: [
49049
49056
  ...nP(e.viewSpec),
49050
49057
  ...e.elClasses || []
49051
49058
  ], renderProps: r, classNameGenerator: i.viewClassNames, generatorName: void 0, didMount: i.viewDidMount, willUnmount: i.viewWillUnmount }), () => e.children);
@@ -51000,12 +51007,12 @@ class Io extends Bn {
51000
51007
  isValidSegDownEl(e) {
51001
51008
  return !this.props.eventDrag && // HACK
51002
51009
  !this.props.eventResize && // HACK
51003
- !Dr(e, ".fc-event-mirror");
51010
+ !Ir(e, ".fc-event-mirror");
51004
51011
  }
51005
51012
  isValidDateDownEl(e) {
51006
- return !Dr(e, ".fc-event:not(.fc-bg-event)") && !Dr(e, ".fc-more-link") && // a "more.." link
51007
- !Dr(e, "a[data-navlink]") && // a clickable nav link
51008
- !Dr(e, ".fc-popover");
51013
+ return !Ir(e, ".fc-event:not(.fc-bg-event)") && !Ir(e, ".fc-more-link") && // a "more.." link
51014
+ !Ir(e, "a[data-navlink]") && // a clickable nav link
51015
+ !Ir(e, ".fc-popover");
51009
51016
  }
51010
51017
  }
51011
51018
  class SP {
@@ -51173,7 +51180,7 @@ function EP(n) {
51173
51180
  class CQ extends Bn {
51174
51181
  render() {
51175
51182
  let { dateEnv: e, options: t, theme: i, viewApi: r } = this.context, { props: s } = this, { date: c, dateProfile: o } = s, f = Qw(c, s.todayRange, null, o), m = [kP].concat(x0(f, i)), y = e.format(c, s.dayHeaderFormat), x = !f.isDisabled && s.colCnt > 1 ? oh(this.context, c) : {}, E = Object.assign(Object.assign(Object.assign({ date: e.toDate(c), view: r }, s.extraRenderProps), { text: y }), f);
51176
- return ue(Or, { elTag: "th", elClasses: m, elAttrs: Object.assign({ role: "columnheader", colSpan: s.colSpan, "data-date": f.isDisabled ? void 0 : Hp(c) }, s.extraDataAttrs), renderProps: E, generatorName: "dayHeaderContent", customGenerator: t.dayHeaderContent, defaultGenerator: EP, classNameGenerator: t.dayHeaderClassNames, didMount: t.dayHeaderDidMount, willUnmount: t.dayHeaderWillUnmount }, (C) => ue("div", { className: "fc-scrollgrid-sync-inner" }, !f.isDisabled && ue(C, { elTag: "a", elAttrs: x, elClasses: [
51183
+ return ue(zr, { elTag: "th", elClasses: m, elAttrs: Object.assign({ role: "columnheader", colSpan: s.colSpan, "data-date": f.isDisabled ? void 0 : Hp(c) }, s.extraDataAttrs), renderProps: E, generatorName: "dayHeaderContent", customGenerator: t.dayHeaderContent, defaultGenerator: EP, classNameGenerator: t.dayHeaderClassNames, didMount: t.dayHeaderDidMount, willUnmount: t.dayHeaderWillUnmount }, (C) => ue("div", { className: "fc-scrollgrid-sync-inner" }, !f.isDisabled && ue(C, { elTag: "a", elAttrs: x, elClasses: [
51177
51184
  "fc-col-header-cell-cushion",
51178
51185
  s.isSticky && "fc-sticky"
51179
51186
  ] })));
@@ -51193,7 +51200,7 @@ class AQ extends Bn {
51193
51200
  // TODO: make this public?
51194
51201
  date: c
51195
51202
  }, o), { view: r }), e.extraRenderProps), { text: f });
51196
- return ue(Or, { elTag: "th", elClasses: [
51203
+ return ue(zr, { elTag: "th", elClasses: [
51197
51204
  kP,
51198
51205
  ...x0(o, i),
51199
51206
  ...e.extraClassNames || []
@@ -51804,7 +51811,7 @@ class w0 extends Bn {
51804
51811
  isDragging: !!e.isDragging,
51805
51812
  isResizing: !!e.isResizing
51806
51813
  };
51807
- return ue(Or, Object.assign({}, e, { elRef: this.handleEl, elClasses: [
51814
+ return ue(zr, Object.assign({}, e, { elRef: this.handleEl, elClasses: [
51808
51815
  ...WJ(o),
51809
51816
  ...r.eventRange.ui.classNames,
51810
51817
  ...e.elClasses || []
@@ -51847,7 +51854,7 @@ const s1 = (n) => ue(Za.Consumer, null, (e) => {
51847
51854
  date: e.dateEnv.toDate(n.date),
51848
51855
  view: e.viewApi
51849
51856
  };
51850
- return ue(Or, Object.assign({}, n, { elTag: n.elTag || "div", renderProps: i, generatorName: "nowIndicatorContent", customGenerator: t.nowIndicatorContent, classNameGenerator: t.nowIndicatorClassNames, didMount: t.nowIndicatorDidMount, willUnmount: t.nowIndicatorWillUnmount }));
51857
+ return ue(zr, Object.assign({}, n, { elTag: n.elTag || "div", renderProps: i, generatorName: "nowIndicatorContent", customGenerator: t.nowIndicatorContent, classNameGenerator: t.nowIndicatorClassNames, didMount: t.nowIndicatorDidMount, willUnmount: t.nowIndicatorWillUnmount }));
51851
51858
  }), GQ = pi({ day: "numeric" });
51852
51859
  class o1 extends Bn {
51853
51860
  constructor() {
@@ -51865,7 +51872,7 @@ class o1 extends Bn {
51865
51872
  dateEnv: t.dateEnv,
51866
51873
  monthStartFormat: i.monthStartFormat
51867
51874
  });
51868
- return ue(Or, Object.assign({}, e, { elClasses: [
51875
+ return ue(zr, Object.assign({}, e, { elClasses: [
51869
51876
  ...x0(r, t.theme),
51870
51877
  ...e.elClasses || []
51871
51878
  ], elAttrs: Object.assign(Object.assign({}, e.elAttrs), r.isDisabled ? {} : { "data-date": Hp(e.date) }), renderProps: r, generatorName: "dayCellContent", customGenerator: i.dayCellContent, defaultGenerator: e.defaultGenerator, classNameGenerator: (
@@ -51900,7 +51907,7 @@ function BP(n) {
51900
51907
  const FP = (n) => ue(Za.Consumer, null, (e) => {
51901
51908
  let { dateEnv: t, options: i } = e, { date: r } = n, s = i.weekNumberFormat || n.defaultFormat, c = t.computeWeekNumber(r), o = t.format(r, s);
51902
51909
  return ue(
51903
- Or,
51910
+ zr,
51904
51911
  Object.assign({}, n, { renderProps: { num: c, text: o, date: r }, generatorName: "weekNumberContent", customGenerator: i.weekNumberContent, defaultGenerator: XQ, classNameGenerator: i.weekNumberClassNames, didMount: i.weekNumberDidMount, willUnmount: i.weekNumberWillUnmount })
51905
51912
  );
51906
51913
  });
@@ -51950,7 +51957,7 @@ class KQ extends Bn {
51950
51957
  updateSize() {
51951
51958
  let { isRtl: e } = this.context, { alignmentEl: t, alignGridTop: i } = this.props, { rootEl: r } = this, s = bQ(t);
51952
51959
  if (s) {
51953
- let c = r.getBoundingClientRect(), o = i ? Dr(t, ".fc-scrollgrid").getBoundingClientRect().top : s.top, f = e ? s.right - c.width : s.left;
51960
+ let c = r.getBoundingClientRect(), o = i ? Ir(t, ".fc-scrollgrid").getBoundingClientRect().top : s.top, f = e ? s.right - c.width : s.left;
51954
51961
  o = Math.max(o, Jb), f = Math.min(f, document.documentElement.clientWidth - Jb - c.width), f = Math.max(f, Jb);
51955
51962
  let m = r.offsetParent.getBoundingClientRect();
51956
51963
  np(r, {
@@ -52041,7 +52048,7 @@ class VP extends Bn {
52041
52048
  return ue(
52042
52049
  li,
52043
52050
  null,
52044
- !!e.moreCnt && ue(Or, { elTag: e.elTag || "a", elRef: this.handleLinkEl, elClasses: [
52051
+ !!e.moreCnt && ue(zr, { elTag: e.elTag || "a", elRef: this.handleLinkEl, elClasses: [
52045
52052
  ...e.elClasses || [],
52046
52053
  "fc-more-link"
52047
52054
  ], elStyle: e.elStyle, elAttrs: Object.assign(Object.assign(Object.assign({}, e.elAttrs), GI(this.handleClick)), { title: x, "aria-expanded": t.isPopoverOpen, "aria-controls": t.isPopoverOpen ? t.popoverId : "" }), renderProps: E, generatorName: "moreLinkContent", customGenerator: s.moreLinkContent, defaultGenerator: e.defaultGenerator || QQ, classNameGenerator: s.moreLinkClassNames, didMount: s.moreLinkDidMount, willUnmount: s.moreLinkWillUnmount }, e.children),
@@ -52056,7 +52063,7 @@ class VP extends Bn {
52056
52063
  this.updateParentEl();
52057
52064
  }
52058
52065
  updateParentEl() {
52059
- this.linkEl && (this.parentEl = Dr(this.linkEl, ".fc-view-harness"));
52066
+ this.linkEl && (this.parentEl = Ir(this.linkEl, ".fc-view-harness"));
52060
52067
  }
52061
52068
  }
52062
52069
  function QQ(n) {
@@ -52390,7 +52397,7 @@ function mee(n) {
52390
52397
  };
52391
52398
  }
52392
52399
  function PT(n) {
52393
- return (e) => ue(Za.Consumer, null, (t) => ue(Or, { elTag: "div", elClasses: nP(t.viewSpec), renderProps: Object.assign(Object.assign({}, e), { nextDayThreshold: t.options.nextDayThreshold }), generatorName: void 0, customGenerator: n.content, classNameGenerator: n.classNames, didMount: n.didMount, willUnmount: n.willUnmount }));
52400
+ return (e) => ue(Za.Consumer, null, (t) => ue(zr, { elTag: "div", elClasses: nP(t.viewSpec), renderProps: Object.assign(Object.assign({}, e), { nextDayThreshold: t.options.nextDayThreshold }), generatorName: void 0, customGenerator: n.content, classNameGenerator: n.classNames, didMount: n.didMount, willUnmount: n.willUnmount }));
52394
52401
  }
52395
52402
  function gee(n, e, t, i) {
52396
52403
  let r = IT(n), s = IT(e.views), c = fee(r, s);
@@ -53242,7 +53249,7 @@ class fte extends yh {
53242
53249
  let { component: r } = this, { context: s } = r, c = sh(i);
53243
53250
  if (c && // might be the <div> surrounding the more link
53244
53251
  r.isValidSegDownEl(t.target)) {
53245
- let o = Dr(t.target, ".fc-event-forced-url"), f = o ? o.querySelector("a[href]").href : "";
53252
+ let o = Ir(t.target, ".fc-event-forced-url"), f = o ? o.querySelector("a[href]").href : "";
53246
53253
  s.emitter.trigger("eventClick", {
53247
53254
  el: i,
53248
53255
  event: new wi(r.context, c.eventRange.def, c.eventRange.instance),
@@ -53290,7 +53297,7 @@ class pte extends yh {
53290
53297
  }
53291
53298
  class mte extends _u {
53292
53299
  constructor() {
53293
- super(...arguments), this.buildViewContext = jt(tJ), this.buildViewPropTransformers = jt(yte), this.buildToolbarProps = jt(gte), this.headerRef = Ur(), this.footerRef = Ur(), this.interactionsStore = {}, this.state = {
53300
+ super(...arguments), this.buildViewContext = jt(tJ), this.buildViewPropTransformers = jt(yte), this.buildToolbarProps = jt(gte), this.headerRef = Wr(), this.footerRef = Wr(), this.interactionsStore = {}, this.state = {
53294
53301
  viewLabelId: Jl()
53295
53302
  }, this.registerInteractiveComponent = (e, t) => {
53296
53303
  let i = iQ(e, t), c = [
@@ -53575,7 +53582,7 @@ function Ete(n) {
53575
53582
  }
53576
53583
  class Cte extends Io {
53577
53584
  constructor() {
53578
- super(...arguments), this.headerElRef = Ur();
53585
+ super(...arguments), this.headerElRef = Wr();
53579
53586
  }
53580
53587
  renderSimpleLayout(e, t) {
53581
53588
  let { props: i, context: r } = this, s = [], c = Iy(r.options);
@@ -53728,7 +53735,7 @@ function Mte(n) {
53728
53735
  const Dte = pi({ week: "narrow" });
53729
53736
  class Ite extends Io {
53730
53737
  constructor() {
53731
- super(...arguments), this.rootElRef = Ur(), this.state = {
53738
+ super(...arguments), this.rootElRef = Wr(), this.state = {
53732
53739
  dayNumberId: Jl()
53733
53740
  }, this.handleRootEl = (e) => {
53734
53741
  qa(this.rootElRef, e), qa(this.props.elRef, e);
@@ -53933,7 +53940,7 @@ class Nte extends SP {
53933
53940
  }
53934
53941
  class iR extends Io {
53935
53942
  constructor() {
53936
- super(...arguments), this.cellElRefs = new Oa(), this.frameElRefs = new Oa(), this.fgElRefs = new Oa(), this.segHarnessRefs = new Oa(), this.rootElRef = Ur(), this.state = {
53943
+ super(...arguments), this.cellElRefs = new Oa(), this.frameElRefs = new Oa(), this.fgElRefs = new Oa(), this.segHarnessRefs = new Oa(), this.rootElRef = Wr(), this.state = {
53937
53944
  framePositions: null,
53938
53945
  maxContentHeight: null,
53939
53946
  segHeights: {}
@@ -54192,7 +54199,7 @@ function $te(n) {
54192
54199
  }
54193
54200
  class jte extends Io {
54194
54201
  constructor() {
54195
- super(...arguments), this.elRef = Ur(), this.needsScrollReset = !1;
54202
+ super(...arguments), this.elRef = Wr(), this.needsScrollReset = !1;
54196
54203
  }
54197
54204
  render() {
54198
54205
  let { props: e } = this, { dayMaxEventRows: t, dayMaxEvents: i, expandRows: r } = e, s = i === !0 || t === !0;
@@ -54261,7 +54268,7 @@ class Ute extends MP {
54261
54268
  }
54262
54269
  class rR extends Io {
54263
54270
  constructor() {
54264
- super(...arguments), this.slicer = new Ute(), this.tableRef = Ur();
54271
+ super(...arguments), this.slicer = new Ute(), this.tableRef = Wr();
54265
54272
  }
54266
54273
  render() {
54267
54274
  let { props: e, context: t } = this;
@@ -54270,7 +54277,7 @@ class rR extends Io {
54270
54277
  }
54271
54278
  class Wte extends Cte {
54272
54279
  constructor() {
54273
- super(...arguments), this.buildDayTableModel = jt(qte), this.headerRef = Ur(), this.tableRef = Ur();
54280
+ super(...arguments), this.buildDayTableModel = jt(qte), this.headerRef = Wr(), this.tableRef = Wr();
54274
54281
  }
54275
54282
  render() {
54276
54283
  let { options: e, dateProfileGenerator: t } = this.context, { props: i } = this, r = this.buildDayTableModel(i.dateProfile, t), s = e.dayHeaders && ue(CP, { ref: this.headerRef, dateProfile: i.dateProfile, dates: r.headerDates, datesRepDistinctDays: r.rowCnt === 1 }), c = (o) => ue(rR, { ref: this.tableRef, dateProfile: i.dateProfile, dayTableModel: r, businessHours: i.businessHours, dateSelection: i.dateSelection, eventStore: i.eventStore, eventUiBases: i.eventUiBases, eventSelection: i.eventSelection, eventDrag: i.eventDrag, eventResize: i.eventResize, nextDayThreshold: e.nextDayThreshold, colGroupNode: o.tableColGroupNode, tableMinWidth: o.tableMinWidth, dayMaxEvents: e.dayMaxEvents, dayMaxEventRows: e.dayMaxEventRows, showWeekNumbers: e.weekNumbers, expandRows: !i.isHeightAuto, headerAlignElRef: this.headerElRef, clientWidth: o.clientWidth, clientHeight: o.clientHeight, forPrint: i.forPrint });
@@ -54372,7 +54379,7 @@ function sR(n) {
54372
54379
  view: s,
54373
54380
  text: i.format(n.date, c)
54374
54381
  };
54375
- return ue(Or, { elTag: "td", elClasses: e, elAttrs: {
54382
+ return ue(zr, { elTag: "td", elClasses: e, elAttrs: {
54376
54383
  "data-time": n.isoTimeStr
54377
54384
  }, renderProps: o, generatorName: "slotLabelContent", customGenerator: r.slotLabelContent, defaultGenerator: Qte, classNameGenerator: r.slotLabelClassNames, didMount: r.slotLabelDidMount, willUnmount: r.slotLabelWillUnmount }, (f) => ue(
54378
54385
  "div",
@@ -54399,7 +54406,7 @@ class ene extends Bn {
54399
54406
  const tne = pi({ week: "short" }), nne = 5;
54400
54407
  class ine extends Io {
54401
54408
  constructor() {
54402
- super(...arguments), this.allDaySplitter = new Kte(), this.headerElRef = Ur(), this.rootElRef = Ur(), this.scrollerElRef = Ur(), this.state = {
54409
+ super(...arguments), this.allDaySplitter = new Kte(), this.headerElRef = Wr(), this.rootElRef = Wr(), this.scrollerElRef = Wr(), this.state = {
54403
54410
  slatCoords: null
54404
54411
  }, this.handleScrollTopRequest = (e) => {
54405
54412
  let t = this.scrollerElRef.current;
@@ -54435,7 +54442,7 @@ class ine extends Io {
54435
54442
  };
54436
54443
  return (
54437
54444
  // TODO: make reusable hook. used in list view too
54438
- ue(Or, { elTag: "td", elClasses: [
54445
+ ue(zr, { elTag: "td", elClasses: [
54439
54446
  "fc-timegrid-axis",
54440
54447
  "fc-scrollgrid-shrink"
54441
54448
  ], elAttrs: {
@@ -54665,7 +54672,7 @@ class one extends Bn {
54665
54672
  "tr",
54666
54673
  { key: s.key, ref: r.createRef(s.key) },
54667
54674
  e.axis && ue(sR, Object.assign({}, s)),
54668
- ue(Or, { elTag: "td", elClasses: [
54675
+ ue(zr, { elTag: "td", elClasses: [
54669
54676
  "fc-timegrid-slot",
54670
54677
  "fc-timegrid-slot-lane",
54671
54678
  !s.isLabeled && "fc-timegrid-slot-minor"
@@ -54678,7 +54685,7 @@ class one extends Bn {
54678
54685
  }
54679
54686
  class ane extends Bn {
54680
54687
  constructor() {
54681
- super(...arguments), this.rootElRef = Ur(), this.slatElRefs = new Oa();
54688
+ super(...arguments), this.rootElRef = Wr(), this.slatElRefs = new Oa();
54682
54689
  }
54683
54690
  render() {
54684
54691
  let { props: e, context: t } = this;
@@ -55015,7 +55022,7 @@ function xne(n, e) {
55015
55022
  }
55016
55023
  class wne extends Bn {
55017
55024
  constructor() {
55018
- super(...arguments), this.splitFgEventSegs = jt(Nf), this.splitBgEventSegs = jt(Nf), this.splitBusinessHourSegs = jt(Nf), this.splitNowIndicatorSegs = jt(Nf), this.splitDateSelectionSegs = jt(Nf), this.splitEventDrag = jt(FT), this.splitEventResize = jt(FT), this.rootElRef = Ur(), this.cellElRefs = new Oa();
55025
+ super(...arguments), this.splitFgEventSegs = jt(Nf), this.splitBgEventSegs = jt(Nf), this.splitBusinessHourSegs = jt(Nf), this.splitNowIndicatorSegs = jt(Nf), this.splitDateSelectionSegs = jt(Nf), this.splitEventDrag = jt(FT), this.splitEventResize = jt(FT), this.rootElRef = Wr(), this.cellElRefs = new Oa();
55019
55026
  }
55020
55027
  render() {
55021
55028
  let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), r = e.cells.length, s = this.splitFgEventSegs(e.fgEventSegs, r), c = this.splitBgEventSegs(e.bgEventSegs, r), o = this.splitBusinessHourSegs(e.businessHourSegs, r), f = this.splitNowIndicatorSegs(e.nowIndicatorSegs, r), m = this.splitDateSelectionSegs(e.dateSelectionSegs, r), y = this.splitEventDrag(e.eventDrag, r), x = this.splitEventResize(e.eventResize, r);
@@ -55160,7 +55167,7 @@ class Cne extends MP {
55160
55167
  }
55161
55168
  class Tne extends Io {
55162
55169
  constructor() {
55163
- super(...arguments), this.buildDayRanges = jt(Ane), this.slicer = new Cne(), this.timeColsRef = Ur();
55170
+ super(...arguments), this.buildDayRanges = jt(Ane), this.slicer = new Cne(), this.timeColsRef = Wr();
55164
55171
  }
55165
55172
  render() {
55166
55173
  let { props: e, context: t } = this, { dateProfile: i, dayTableModel: r } = e, { nowIndicator: s, nextDayThreshold: c } = t.options, o = this.buildDayRanges(r, i, t.dateEnv);
@@ -55261,7 +55268,7 @@ class Lne extends Bn {
55261
55268
  navLinkAttrs: oh(this.context, c),
55262
55269
  sideNavLinkAttrs: oh(this.context, c, "day", !1)
55263
55270
  }, m);
55264
- return ue(Or, { elTag: "tr", elClasses: [
55271
+ return ue(zr, { elTag: "tr", elClasses: [
55265
55272
  "fc-list-day",
55266
55273
  ...x0(m, e)
55267
55274
  ], elAttrs: {
@@ -55327,7 +55334,7 @@ function $ne(n, e, t, i, r) {
55327
55334
  text: t.options.allDayText,
55328
55335
  view: t.viewApi
55329
55336
  };
55330
- return ue(Or, { elTag: "td", elClasses: ["fc-list-event-time"], elAttrs: {
55337
+ return ue(zr, { elTag: "td", elClasses: ["fc-list-event-time"], elAttrs: {
55331
55338
  headers: `${i} ${r}`
55332
55339
  }, renderProps: y, generatorName: "allDayContent", customGenerator: s.allDayContent, defaultGenerator: jne, classNameGenerator: s.allDayClassNames, didMount: s.allDayDidMount, willUnmount: s.allDayWillUnmount });
55333
55340
  }
@@ -55367,7 +55374,7 @@ class Hne extends Io {
55367
55374
  text: e.noEventsText,
55368
55375
  view: t
55369
55376
  };
55370
- return ue(Or, { elTag: "div", elClasses: ["fc-list-empty"], renderProps: i, generatorName: "noEventsContent", customGenerator: e.noEventsContent, defaultGenerator: Une, classNameGenerator: e.noEventsClassNames, didMount: e.noEventsDidMount, willUnmount: e.noEventsWillUnmount }, (r) => ue(r, { elTag: "div", elClasses: ["fc-list-empty-cushion"] }));
55377
+ return ue(zr, { elTag: "div", elClasses: ["fc-list-empty"], renderProps: i, generatorName: "noEventsContent", customGenerator: e.noEventsContent, defaultGenerator: Une, classNameGenerator: e.noEventsClassNames, didMount: e.noEventsDidMount, willUnmount: e.noEventsWillUnmount }, (r) => ue(r, { elTag: "div", elClasses: ["fc-list-empty-cushion"] }));
55371
55378
  }
55372
55379
  renderSegList(e, t) {
55373
55380
  let { theme: i, options: r } = this.context, { timeHeaderId: s, eventHeaderId: c, dateHeaderIdRoot: o } = this.state, f = qne(e);
@@ -55547,13 +55554,13 @@ class lR {
55547
55554
  }
55548
55555
  tryStart(e) {
55549
55556
  let t = this.querySubjectEl(e), i = e.target;
55550
- return t && (!this.handleSelector || Dr(i, this.handleSelector)) ? (this.subjectEl = t, this.isDragging = !0, this.wasTouchScroll = !1, !0) : !1;
55557
+ return t && (!this.handleSelector || Ir(i, this.handleSelector)) ? (this.subjectEl = t, this.isDragging = !0, this.wasTouchScroll = !1, !0) : !1;
55551
55558
  }
55552
55559
  cleanup() {
55553
55560
  bx = !1, this.isDragging = !1, this.subjectEl = null, this.destroyScrollWatch();
55554
55561
  }
55555
55562
  querySubjectEl(e) {
55556
- return this.selector ? Dr(e.target, this.selector) : this.containerEl;
55563
+ return this.selector ? Ir(e.target, this.selector) : this.containerEl;
55557
55564
  }
55558
55565
  shouldIgnoreMouse() {
55559
55566
  return vx || this.isTouchDragging;
@@ -56062,8 +56069,8 @@ class Gp extends yh {
56062
56069
  this.subjectEl = c.subjectEl;
56063
56070
  let C = this.subjectSeg = sh(c.subjectEl), O = (this.eventRange = C.eventRange).instance.instanceId;
56064
56071
  this.relevantEvents = qw(E.getCurrentData().eventStore, O), m.minDistance = c.isTouch ? 0 : x.eventDragMinDistance, m.delay = // only do a touch delay if touch and this event hasn't been selected yet
56065
- c.isTouch && O !== f.props.eventSelection ? die(f) : null, x.fixedMirrorParent ? y.parentNode = x.fixedMirrorParent : y.parentNode = Dr(o, ".fc"), y.revertDuration = x.dragRevertDuration;
56066
- let z = f.isValidSegDownEl(o) && !Dr(o, ".fc-event-resizer");
56072
+ c.isTouch && O !== f.props.eventSelection ? die(f) : null, x.fixedMirrorParent ? y.parentNode = x.fixedMirrorParent : y.parentNode = Ir(o, ".fc"), y.revertDuration = x.dragRevertDuration;
56073
+ let z = f.isValidSegDownEl(o) && !Ir(o, ".fc-event-resizer");
56067
56074
  m.setIgnoreMove(!z), this.isDragging = z && c.subjectEl.classList.contains("fc-event-draggable");
56068
56075
  }, this.handleDragStart = (c) => {
56069
56076
  let o = this.component.context, f = this.eventRange, m = f.instance.instanceId;
@@ -56270,7 +56277,7 @@ class hie extends yh {
56270
56277
  this.dragging.destroy();
56271
56278
  }
56272
56279
  querySegEl(e) {
56273
- return Dr(e.subjectEl, ".fc-event");
56280
+ return Ir(e.subjectEl, ".fc-event");
56274
56281
  }
56275
56282
  }
56276
56283
  function fie(n, e, t, i) {
@@ -56288,7 +56295,7 @@ class pie {
56288
56295
  i.jsEvent && (this.isRecentPointerDateSelect = !0);
56289
56296
  }, this.onDocumentPointerDown = (i) => {
56290
56297
  let r = this.context.options.unselectCancel, s = WI(i.origEvent);
56291
- this.matchesCancel = !!Dr(s, r), this.matchesEvent = !!Dr(s, Gp.SELECTOR);
56298
+ this.matchesCancel = !!Ir(s, r), this.matchesEvent = !!Ir(s, Gp.SELECTOR);
56292
56299
  }, this.onDocumentPointerUp = (i) => {
56293
56300
  let { context: r } = this, { documentPointer: s } = this, c = r.getCurrentData();
56294
56301
  if (!s.wasTouchScroll) {