@arenarium/maps 1.2.30 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +279 -277
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -17,7 +17,7 @@ class Wt {
17
17
  this.invoked = !1, this.timeout && window.clearTimeout(this.timeout), this.timeout = void 0;
18
18
  }
19
19
  }
20
- class xi {
20
+ class Ei {
21
21
  properites;
22
22
  state;
23
23
  constructor(e, n, r, i, s, a, o) {
@@ -35,7 +35,7 @@ class xi {
35
35
  };
36
36
  }
37
37
  }
38
- class Si {
38
+ class xi {
39
39
  callback;
40
40
  timeout;
41
41
  id;
@@ -50,8 +50,8 @@ class Si {
50
50
  this.id != null && (window.clearInterval(this.id), this.id = void 0);
51
51
  }
52
52
  }
53
- const Pi = 100;
54
- class Ti {
53
+ const Si = 100;
54
+ class Pi {
55
55
  viewport = void 0;
56
56
  state = "idle";
57
57
  provider;
@@ -62,7 +62,7 @@ class Ti {
62
62
  onIdle;
63
63
  onClick;
64
64
  constructor(e, n, r, i, s, a) {
65
- this.provider = e, this.interval = new Si(this.onInterval.bind(this), Pi / (navigator?.hardwareConcurrency ?? 1)), this.onCancel = n, this.onError = r, this.onMove = i, this.onIdle = s, this.onClick = a;
65
+ this.provider = e, this.interval = new xi(this.onInterval.bind(this), Si / (navigator?.hardwareConcurrency ?? 1)), this.onCancel = n, this.onError = r, this.onMove = i, this.onIdle = s, this.onClick = a;
66
66
  }
67
67
  start() {
68
68
  this.interval.start(), this.provider.getContainer().addEventListener("click", this.onClick.bind(this));
@@ -126,7 +126,7 @@ class Ue {
126
126
  }
127
127
  }
128
128
  const ur = '(function(){"use strict";function w(l,t,e){return{x:T(t)*e,y:I(l)*e}}function m(l,t,e){return{lat:R(t/e),lng:P(l/e)}}function T(l){return(180+l)/360}function I(l){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360}function P(l){return l*360-180}function R(l){return 360/Math.PI*Math.atan(Math.exp((180-l*360)*Math.PI/180))-90}class c{sw;ne;constructor(t,e,n,s){if(n<t)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);if(s<e)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);this.sw={lat:t,lng:e},this.ne={lat:n,lng:s}}contains(t,e){return!(t<this.sw.lat||this.ne.lat<t||e<this.sw.lng||this.ne.lng<e)}intersects(t){return!(t.ne.lat<this.sw.lat||this.ne.lat<t.sw.lat||t.ne.lng<this.sw.lng||this.ne.lng<t.sw.lng)}}class h{blockL;blockR;sw;ne;constructor(t,e,n,s){if(n<t)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);this.sw={lat:t,lng:e},this.ne={lat:n,lng:s},e<s?(this.blockL=new c(t,e,n,s),this.blockR=new c(0,0,0,0)):(this.blockL=new c(t,-180,n,s),this.blockR=new c(t,e,n,180))}static bounds(t){const e=t.bounds,n=t.center;return e.sw.lng<=n.lng&&e.ne.lng<=n.lng?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:e.sw.lng>=n.lng&&e.ne.lng>=n.lng?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:Math.abs(e.ne.lng-n.lng)+Math.abs(e.sw.lng-n.lng)>360?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:e.ne.lng-e.sw.lng>360?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:t.bounds}static create(t){const e=this.bounds(t),n=e.sw,s=e.ne;return new h(n.lat,n.lng,s.lat,s.lng)}static offset(t,e,n){const s=this.bounds(t),r=t.zoom,o=e*Math.pow(2,r),i=w(s.sw.lat,s.sw.lng,o),a=w(s.ne.lat,s.ne.lng,o);let g=Math.max(i.x-n.left,0),f=Math.min(i.y+n.bottom,o),D=Math.min(a.x+n.right,o),N=Math.max(a.y-n.top,0);const z=m(g,f,o),C=m(D,N,o);return new h(z.lat,z.lng,C.lat,C.lng)}contains(t,e){return this.blockL.contains(t,e)||this.blockR.contains(t,e)}intersects(t){return this.blockL.intersects(t)||this.blockR.intersects(t)}}class S{id;bounds;markers;constructor(t,e){this.id=t,this.bounds=e,this.markers=[]}belongs(t){const e=this.bounds.sw;if(t.lat<e.lat||t.lng<e.lng)return!1;const n=this.bounds.ne;return!(n.lat<t.lat||n.lng<t.lng)}neighbours(t,e){const n=Math.abs(t.id.length-this.id.length);if(n>e)return!1;const s=Math.min(this.id.length,t.id.length)-e+n;for(let r=0;r<s;r++)if(this.id[r]!=t.id[r])return!1;return!0}}class u{tree;zoom;cell;branches;constructor(t,e,n,s){this.tree=t,this.zoom=n,this.cell=new S(e,s),this.branches=new Array}split(){const t=this.cell.bounds,e=Math.pow(2,this.tree.depth),n=(t.ne.lat-t.sw.lat)/e,s=(t.ne.lng-t.sw.lng)/e;for(let r=0;r<e;r++)for(let o=0;o<e;o++){const i=t.sw.lat+r*n,a=t.sw.lng+o*s,g=i+n,f=a+s;this.branches.push(new u(this.tree,`${this.cell.id}${r*2+o}`,this.zoom+this.tree.depth,{sw:{lat:i,lng:a},ne:{lat:g,lng:f}}))}}add(t){if(this.cell.belongs(t)==!1)return!1;if(this.cell.markers.length<this.tree.capacity)return this.cell.markers.push(t),!0;this.branches.length==0&&this.split();for(let e=0;e<this.branches.length;e++)if(this.branches[e].add(t))return!0;throw new Error("Failed to add marker to branch")}compact(){if(this.branches.length==0)return;for(let s=0;s<this.branches.length;s++)this.branches[s].compact();const t=new Array,e=new Array;for(let s=0;s<this.branches.length;s++){const r=this.branches[s];t.push(...r.branches),e.push(...r.cell.markers)}const n=new u(this.tree,this.cell.id,this.zoom+this.tree.depth,this.cell.bounds);n.branches=t,n.cell.markers=e,this.branches=[n]}cells(t,e,n){if(t<this.zoom||e.intersects(this.cell.bounds)==!1)return n;n.push(this.cell);for(let s=0;s<this.branches.length;s++)this.branches[s].cells(t,e,n);return n}print(t){console.log(`${"---".repeat(t)}|${this.cell.id} zoom=[${this.zoom}] markers=[${this.cell.markers.length}]`);for(let e=0;e<this.branches.length;e++)this.branches[e].print(t+1)}count(){return this.cell.markers.length+this.branches.reduce((t,e)=>t+e.count(),0)}}class x{capacity;depth;root;constructor(t,e,n){this.capacity=n,this.depth=e,this.root=new u(this,"R",t,{sw:{lat:-90,lng:-180},ne:{lat:90,lng:180}})}add(t){return this.root.add(t)}compact(){this.root.compact()}cells(t,e){const n=new Array;return this.root.cells(t,e,n),n}print(){this.root.print(0)}}const A=16,p=2,k=1,M=A*4;let b,d,E=p,$=k,y=M;const v={update(l,t,e){const n=-Math.floor(Math.log2(l.mapSize/y)),s=new x(n,$,E);for(let o=0;o<t.length;o++){const i=t[o];if(!s.add(i))throw new Error("Failed to add marker to tree")}const r=-n;for(let o=0;o<r;o++)s.compact();b=s,d=e},configure(l){E=l?.process?.visibility?.cell?.capacity??p,$=l?.process?.visibility?.cell?.depth??k,y=l?.process?.visibility?.cell?.size??M},filter(l,t){if(!b||!d)return[];const e=h.create(t);let n=[],s=t.zoom;for(;s<l.zoomMax&&n.length<d;)n=b.cells(s,e).flatMap(r=>r.markers),s++;return n.map(r=>r.index)}};class _{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:e,method:n,args:s}=t.data;try{const r=this.methods[n];if(typeof r!="function")throw new Error(`Unknown method: ${n}`);const o=await r(...s),i={id:e,result:o};self.postMessage(i)}catch(r){const o=r instanceof Error?r.message:String(r),i={id:e,error:o};self.postMessage(i)}}}new _(v).listen()})();\n', Cn = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", ur], { type: "text/javascript;charset=utf-8" });
129
- function Ii(t) {
129
+ function Ti(t) {
130
130
  let e;
131
131
  try {
132
132
  if (e = Cn && (self.URL || self.webkitURL).createObjectURL(Cn), !e) throw "";
@@ -146,21 +146,21 @@ function Ii(t) {
146
146
  }
147
147
  }
148
148
  function it(t, e, n) {
149
- return { x: Ai(e) * n, y: Ni(t) * n };
149
+ return { x: Ii(e) * n, y: Ai(t) * n };
150
150
  }
151
151
  function Rn(t, e, n) {
152
- return { lat: Ri(e / n), lng: Ci(t / n) };
152
+ return { lat: Ci(e / n), lng: Ni(t / n) };
153
153
  }
154
- function Ai(t) {
154
+ function Ii(t) {
155
155
  return (180 + t) / 360;
156
156
  }
157
- function Ni(t) {
157
+ function Ai(t) {
158
158
  return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + t * Math.PI / 360))) / 360;
159
159
  }
160
- function Ci(t) {
160
+ function Ni(t) {
161
161
  return t * 360 - 180;
162
162
  }
163
- function Ri(t) {
163
+ function Ci(t) {
164
164
  return 360 / Math.PI * Math.atan(Math.exp((180 - t * 360) * Math.PI / 180)) - 90;
165
165
  }
166
166
  class wt {
@@ -214,8 +214,8 @@ class ot {
214
214
  return this.blockL.intersects(e) || this.blockR.intersects(e);
215
215
  }
216
216
  }
217
- const Di = 75, Oi = 150, Dn = 25e-5, zi = 1e6, Li = 2e6, On = 3e6, cr = 10, zn = 16, Fi = 8, Ln = 2, $e = 0.5, $i = "0px 2px 2px rgba(0, 0, 0, 0.5)", Fn = 8, Vi = 8, Ui = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", $n = "white", ji = "darkgreen", Vn = 1024;
218
- class Bi {
217
+ const Ri = 75, Di = 150, Dn = 25e-5, zi = 1e6, Oi = 2e6, zn = 3e6, cr = 10, On = 16, Li = 8, Ln = 2, $e = 0.5, Fi = "0px 2px 2px rgba(0, 0, 0, 0.5)", Fn = 8, $i = 8, Vi = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", $n = "white", Ui = "darkgreen", Vn = 1024;
218
+ class ji {
219
219
  // State
220
220
  markers;
221
221
  markersVisible;
@@ -239,7 +239,7 @@ class Bi {
239
239
  return Ue.empty();
240
240
  }
241
241
  async updateMarkers(e, n) {
242
- this.markers = n, n.length > this.markerVisibilityTreeLimit ? (this.markerVisibilityTreeWorker = new Ii(), this.markerVisibilityTreeWorkerClient = new lr(this.markerVisibilityTreeWorker), await this.markerVisibilityTreeWorkerClient.invoke(
242
+ this.markers = n, n.length > this.markerVisibilityTreeLimit ? (this.markerVisibilityTreeWorker = new Ti(), this.markerVisibilityTreeWorkerClient = new lr(this.markerVisibilityTreeWorker), await this.markerVisibilityTreeWorkerClient.invoke(
243
243
  "update",
244
244
  e,
245
245
  n.map((r, i) => ({ index: i, lat: r.properites.lat, lng: r.properites.lng })),
@@ -251,10 +251,10 @@ class Bi {
251
251
  }
252
252
  }
253
253
  const Jt = !1;
254
- var Wi = Array.isArray, Hi = Array.prototype.indexOf, qe = Array.prototype.includes, qi = Array.from, Yi = Object.defineProperty, st = Object.getOwnPropertyDescriptor, Zi = Object.prototype, Xi = Array.prototype, Ji = Object.getPrototypeOf, Un = Object.isExtensible;
255
- const Gi = () => {
254
+ var Bi = Array.isArray, Wi = Array.prototype.indexOf, qe = Array.prototype.includes, Hi = Array.from, qi = Object.defineProperty, st = Object.getOwnPropertyDescriptor, Yi = Object.prototype, Zi = Array.prototype, Xi = Object.getPrototypeOf, Un = Object.isExtensible;
255
+ const Ji = () => {
256
256
  };
257
- function Ki(t) {
257
+ function Gi(t) {
258
258
  for (var e = 0; e < t.length; e++)
259
259
  t[e]();
260
260
  }
@@ -264,36 +264,36 @@ function fr() {
264
264
  });
265
265
  return { promise: n, resolve: t, reject: e };
266
266
  }
267
- const D = 2, lt = 4, At = 8, hr = 1 << 24, ve = 16, xe = 32, ze = 64, pr = 128, Q = 512, R = 1024, L = 2048, se = 4096, ye = 8192, _e = 16384, Nt = 32768, St = 65536, jn = 1 << 17, dr = 1 << 18, Ke = 1 << 19, Qi = 1 << 20, Oe = 65536, Gt = 1 << 21, nn = 1 << 22, be = 1 << 23, Mt = /* @__PURE__ */ Symbol("$state"), Ie = new class extends Error {
267
+ const D = 2, lt = 4, At = 8, hr = 1 << 24, ve = 16, xe = 32, Oe = 64, pr = 128, Q = 512, R = 1024, L = 2048, se = 4096, ye = 8192, _e = 16384, Nt = 32768, St = 65536, jn = 1 << 17, dr = 1 << 18, Ke = 1 << 19, Ki = 1 << 20, ze = 65536, Gt = 1 << 21, nn = 1 << 22, be = 1 << 23, Mt = /* @__PURE__ */ Symbol("$state"), Ie = new class extends Error {
268
268
  name = "StaleReactionError";
269
269
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
270
270
  }();
271
- function es() {
271
+ function Qi() {
272
272
  throw new Error("https://svelte.dev/e/async_derived_orphan");
273
273
  }
274
- function ts() {
274
+ function es() {
275
275
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
276
276
  }
277
- function ns() {
277
+ function ts() {
278
278
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
279
279
  }
280
- function rs() {
280
+ function ns() {
281
281
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
282
282
  }
283
- function is() {
283
+ function rs() {
284
284
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
285
285
  }
286
- function ss() {
286
+ function is() {
287
287
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
288
288
  }
289
- const as = 1, os = 2, C = /* @__PURE__ */ Symbol(), ls = "http://www.w3.org/1999/xhtml";
290
- function us() {
289
+ const ss = 1, as = 2, C = /* @__PURE__ */ Symbol(), os = "http://www.w3.org/1999/xhtml";
290
+ function ls() {
291
291
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
292
292
  }
293
293
  function mr(t) {
294
294
  return t === this.v;
295
295
  }
296
- let cs = !1, ae = null;
296
+ let us = !1, ae = null;
297
297
  function Ye(t) {
298
298
  ae = t;
299
299
  }
@@ -316,7 +316,7 @@ function sn(t) {
316
316
  if (n !== null) {
317
317
  e.e = null;
318
318
  for (var r of n)
319
- Rs(r);
319
+ Cs(r);
320
320
  }
321
321
  return t !== void 0 && (e.x = t), e.i = !0, ae = e.p, t ?? /** @type {T} */
322
322
  {};
@@ -325,15 +325,15 @@ function vr() {
325
325
  return !0;
326
326
  }
327
327
  let Ve = [];
328
- function fs() {
328
+ function cs() {
329
329
  var t = Ve;
330
- Ve = [], Ki(t);
330
+ Ve = [], Gi(t);
331
331
  }
332
332
  function Ne(t) {
333
333
  if (Ve.length === 0) {
334
334
  var e = Ve;
335
335
  queueMicrotask(() => {
336
- e === Ve && fs();
336
+ e === Ve && cs();
337
337
  });
338
338
  }
339
339
  Ve.push(t);
@@ -362,9 +362,9 @@ function Ze(t, e) {
362
362
  }
363
363
  throw t;
364
364
  }
365
- const hs = -7169;
365
+ const fs = -7169;
366
366
  function S(t, e) {
367
- t.f = t.f & hs | e;
367
+ t.f = t.f & fs | e;
368
368
  }
369
369
  function an(t) {
370
370
  (t.f & Q) !== 0 || t.deps === null ? S(t, R) : S(t, se);
@@ -372,7 +372,7 @@ function an(t) {
372
372
  function wr(t) {
373
373
  if (t !== null)
374
374
  for (const e of t)
375
- (e.f & D) === 0 || (e.f & Oe) === 0 || (e.f ^= Oe, wr(
375
+ (e.f & D) === 0 || (e.f & ze) === 0 || (e.f ^= ze, wr(
376
376
  /** @type {Derived} */
377
377
  e.deps
378
378
  ));
@@ -495,7 +495,7 @@ class Me {
495
495
  #l(e, n, r) {
496
496
  e.f ^= R;
497
497
  for (var i = e.first, s = null; i !== null; ) {
498
- var a = i.f, o = (a & (xe | ze)) !== 0, l = o && (a & R) !== 0, u = l || (a & ye) !== 0 || this.#t.has(i);
498
+ var a = i.f, o = (a & (xe | Oe)) !== 0, l = o && (a & R) !== 0, u = l || (a & ye) !== 0 || this.#t.has(i);
499
499
  if (!u && i.fn !== null) {
500
500
  o ? i.f ^= R : s !== null && (a & (lt | At | hr)) !== 0 ? s.b.defer_effect(i) : (a & lt) !== 0 ? n.push(i) : ht(i) && ((a & ve) !== 0 && this.#e.add(i), Je(i));
501
501
  var c = i.first;
@@ -533,7 +533,7 @@ class Me {
533
533
  }
534
534
  flush() {
535
535
  if (this.activate(), K.length > 0) {
536
- if (ps(), x !== null && x !== this)
536
+ if (hs(), x !== null && x !== this)
537
537
  return;
538
538
  } else this.#r === 0 && this.process([]);
539
539
  this.deactivate();
@@ -628,7 +628,7 @@ class Me {
628
628
  apply() {
629
629
  }
630
630
  }
631
- function ps() {
631
+ function hs() {
632
632
  Kt = !0;
633
633
  var t = null;
634
634
  try {
@@ -636,7 +636,7 @@ function ps() {
636
636
  var n = Me.ensure();
637
637
  if (e++ > 1e3) {
638
638
  var r, i;
639
- ds();
639
+ ps();
640
640
  }
641
641
  n.process(K), Ee.clear();
642
642
  }
@@ -644,9 +644,9 @@ function ps() {
644
644
  K = [], Kt = !1, on = null;
645
645
  }
646
646
  }
647
- function ds() {
647
+ function ps() {
648
648
  try {
649
- ts();
649
+ es();
650
650
  } catch (t) {
651
651
  Ze(t, on);
652
652
  }
@@ -657,7 +657,7 @@ function Bn(t) {
657
657
  if (e !== 0) {
658
658
  for (var n = 0; n < e; ) {
659
659
  var r = t[n++];
660
- if ((r.f & (_e | ye)) === 0 && ht(r) && (de = /* @__PURE__ */ new Set(), Je(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Or(r), de?.size > 0)) {
660
+ if ((r.f & (_e | ye)) === 0 && ht(r) && (de = /* @__PURE__ */ new Set(), Je(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && zr(r), de?.size > 0)) {
661
661
  Ee.clear();
662
662
  for (const i of de) {
663
663
  if ((i.f & (_e | ye)) !== 0) continue;
@@ -719,7 +719,7 @@ function le(t) {
719
719
  var n = e.f;
720
720
  if (Kt && e === y && (n & ve) !== 0 && (n & dr) === 0)
721
721
  return;
722
- if ((n & (ze | xe)) !== 0) {
722
+ if ((n & (Oe | xe)) !== 0) {
723
723
  if ((n & R) === 0) return;
724
724
  e.f ^= R;
725
725
  }
@@ -733,7 +733,7 @@ function br(t, e) {
733
733
  br(n, e), n = n.next;
734
734
  }
735
735
  }
736
- function ms(t) {
736
+ function ds(t) {
737
737
  let e = 0, n = Ct(0), r;
738
738
  return () => {
739
739
  un() && (E(n), Cr(() => (e === 0 && (r = Br(() => t(() => at(n)))), e += 1, () => {
@@ -743,11 +743,11 @@ function ms(t) {
743
743
  })));
744
744
  };
745
745
  }
746
- var vs = St | Ke | pr;
747
- function gs(t, e, n) {
748
- new ws(t, e, n);
746
+ var ms = St | Ke | pr;
747
+ function vs(t, e, n) {
748
+ new gs(t, e, n);
749
749
  }
750
- class ws {
750
+ class gs {
751
751
  /** @type {Boundary | null} */
752
752
  parent;
753
753
  is_pending = !1;
@@ -787,7 +787,7 @@ class ws {
787
787
  * @type {Source<number> | null}
788
788
  */
789
789
  #f = null;
790
- #_ = ms(() => (this.#f = Ct(this.#u), () => {
790
+ #_ = ds(() => (this.#f = Ct(this.#u), () => {
791
791
  this.#f = null;
792
792
  }));
793
793
  /**
@@ -797,7 +797,7 @@ class ws {
797
797
  */
798
798
  constructor(e, n, r) {
799
799
  this.#n = e, this.#r = n, this.#o = r, this.parent = /** @type {Effect} */
800
- y.b, this.is_pending = !!this.#r.pending, this.#s = Ls(() => {
800
+ y.b, this.is_pending = !!this.#r.pending, this.#s = Os(() => {
801
801
  y.b = this;
802
802
  {
803
803
  var i = this.#k();
@@ -811,7 +811,7 @@ class ws {
811
811
  return () => {
812
812
  this.#l?.remove();
813
813
  };
814
- }, vs);
814
+ }, ms);
815
815
  }
816
816
  #b() {
817
817
  try {
@@ -876,7 +876,7 @@ class ws {
876
876
  this.#i !== null && (this.#a = document.createDocumentFragment(), this.#a.append(
877
877
  /** @type {TemplateNode} */
878
878
  this.#l
879
- ), Vs(this.#i, this.#a)), this.#e === null && (this.#e = Te(() => e(this.#n)));
879
+ ), $s(this.#i, this.#a)), this.#e === null && (this.#e = Te(() => e(this.#n)));
880
880
  }
881
881
  /**
882
882
  * Updates the pending count associated with the currently visible pending snippet,
@@ -926,10 +926,10 @@ class ws {
926
926
  var i = !1, s = !1;
927
927
  const a = () => {
928
928
  if (i) {
929
- us();
929
+ ls();
930
930
  return;
931
931
  }
932
- i = !0, s && ss(), Me.ensure(), this.#u = 0, this.#t !== null && Et(this.#t, () => {
932
+ i = !0, s && is(), Me.ensure(), this.#u = 0, this.#t !== null && Et(this.#t, () => {
933
933
  this.#t = null;
934
934
  }), this.is_pending = this.has_pending_snippet(), this.#i = this.#g(() => (this.#p = !1, Te(() => this.#o(this.#n)))), this.#c > 0 ? this.#w() : this.is_pending = !1;
935
935
  };
@@ -962,8 +962,8 @@ class ws {
962
962
  });
963
963
  }
964
964
  }
965
- function ks(t, e, n, r) {
966
- const i = _s;
965
+ function ws(t, e, n, r) {
966
+ const i = ys;
967
967
  var s = t.filter((f) => !f.settled);
968
968
  if (n.length === 0 && s.length === 0) {
969
969
  r(e.map(i));
@@ -972,7 +972,7 @@ function ks(t, e, n, r) {
972
972
  var a = x, o = (
973
973
  /** @type {Effect} */
974
974
  y
975
- ), l = ys(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
975
+ ), l = ks(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
976
976
  function c(f) {
977
977
  l();
978
978
  try {
@@ -987,11 +987,11 @@ function ks(t, e, n, r) {
987
987
  return;
988
988
  }
989
989
  function h() {
990
- l(), Promise.all(n.map((f) => /* @__PURE__ */ bs(f))).then((f) => c([...e.map(i), ...f])).catch((f) => Ze(f, o));
990
+ l(), Promise.all(n.map((f) => /* @__PURE__ */ _s(f))).then((f) => c([...e.map(i), ...f])).catch((f) => Ze(f, o));
991
991
  }
992
992
  u ? u.then(h) : h();
993
993
  }
994
- function ys() {
994
+ function ks() {
995
995
  var t = y, e = k, n = ae, r = x;
996
996
  return function(s = !0) {
997
997
  ce(t), te(e), Ye(n), s && r?.activate();
@@ -1001,7 +1001,7 @@ function Qt() {
1001
1001
  ce(null), te(null), Ye(null);
1002
1002
  }
1003
1003
  // @__NO_SIDE_EFFECTS__
1004
- function _s(t) {
1004
+ function ys(t) {
1005
1005
  var e = D | L, n = k !== null && (k.f & D) !== 0 ? (
1006
1006
  /** @type {Derived} */
1007
1007
  k
@@ -1025,12 +1025,12 @@ function _s(t) {
1025
1025
  };
1026
1026
  }
1027
1027
  // @__NO_SIDE_EFFECTS__
1028
- function bs(t, e, n) {
1028
+ function _s(t, e, n) {
1029
1029
  let r = (
1030
1030
  /** @type {Effect | null} */
1031
1031
  y
1032
1032
  );
1033
- r === null && es();
1033
+ r === null && Qi();
1034
1034
  var i = (
1035
1035
  /** @type {Boundary} */
1036
1036
  r.b
@@ -1073,7 +1073,7 @@ function bs(t, e, n) {
1073
1073
  o && (i.update_pending_count(-1), c.decrement(h));
1074
1074
  };
1075
1075
  u.promise.then(f, (d) => f(null, d || "unknown"));
1076
- }), Cs(() => {
1076
+ }), Ns(() => {
1077
1077
  for (const u of l.values())
1078
1078
  u.reject(Ie);
1079
1079
  }), new Promise((u) => {
@@ -1086,7 +1086,7 @@ function bs(t, e, n) {
1086
1086
  c(s);
1087
1087
  });
1088
1088
  }
1089
- function Ms(t) {
1089
+ function bs(t) {
1090
1090
  var e = t.effects;
1091
1091
  if (e !== null) {
1092
1092
  t.effects = null;
@@ -1097,7 +1097,7 @@ function Ms(t) {
1097
1097
  );
1098
1098
  }
1099
1099
  }
1100
- function Es(t) {
1100
+ function Ms(t) {
1101
1101
  for (var e = t.parent; e !== null; ) {
1102
1102
  if ((e.f & D) === 0)
1103
1103
  return (e.f & _e) === 0 ? (
@@ -1110,9 +1110,9 @@ function Es(t) {
1110
1110
  }
1111
1111
  function ln(t) {
1112
1112
  var e, n = y;
1113
- ce(Es(t));
1113
+ ce(Ms(t));
1114
1114
  try {
1115
- t.f &= ~Oe, Ms(t), e = Vr(t);
1115
+ t.f &= ~ze, bs(t), e = Vr(t);
1116
1116
  } finally {
1117
1117
  ce(n);
1118
1118
  }
@@ -1126,10 +1126,10 @@ function Mr(t) {
1126
1126
  }
1127
1127
  Xe || (re !== null ? (un() || x?.is_fork) && re.set(t, e) : an(t));
1128
1128
  }
1129
- function xs(t) {
1129
+ function Es(t) {
1130
1130
  if (t.effects !== null)
1131
1131
  for (const e of t.effects)
1132
- (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Ie), e.teardown = Gi, e.ac = null, ut(e, 0), cn(e));
1132
+ (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Ie), e.teardown = Ji, e.ac = null, ut(e, 0), cn(e));
1133
1133
  }
1134
1134
  function Er(t) {
1135
1135
  if (t.effects !== null)
@@ -1154,12 +1154,12 @@ function Ct(t, e) {
1154
1154
  // @__NO_SIDE_EFFECTS__
1155
1155
  function V(t, e) {
1156
1156
  const n = Ct(t);
1157
- return Us(n), n;
1157
+ return Vs(n), n;
1158
1158
  }
1159
1159
  function j(t, e, n = !1) {
1160
1160
  k !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1161
1161
  // to ensure we error if state is set inside an inspect effect
1162
- (!ie || (k.f & jn) !== 0) && vr() && (k.f & (D | ve | nn | jn)) !== 0 && (ee === null || !qe.call(ee, t)) && is();
1162
+ (!ie || (k.f & jn) !== 0) && vr() && (k.f & (D | ve | nn | jn)) !== 0 && (ee === null || !qe.call(ee, t)) && rs();
1163
1163
  let r = n ? tt(e) : e;
1164
1164
  return Pt(t, r);
1165
1165
  }
@@ -1175,11 +1175,11 @@ function Pt(t, e) {
1175
1175
  );
1176
1176
  (t.f & L) !== 0 && ln(i), an(i);
1177
1177
  }
1178
- t.wv = Fr(), Sr(t, L), y !== null && (y.f & R) !== 0 && (y.f & (xe | ze)) === 0 && (G === null ? js([t]) : G.push(t)), !r.is_fork && en.size > 0 && !xr && Ss();
1178
+ t.wv = Fr(), Sr(t, L), y !== null && (y.f & R) !== 0 && (y.f & (xe | Oe)) === 0 && (G === null ? Us([t]) : G.push(t)), !r.is_fork && en.size > 0 && !xr && xs();
1179
1179
  }
1180
1180
  return e;
1181
1181
  }
1182
- function Ss() {
1182
+ function xs() {
1183
1183
  xr = !1;
1184
1184
  for (const t of en)
1185
1185
  (t.f & R) !== 0 && S(t, se), ht(t) && Je(t);
@@ -1198,7 +1198,7 @@ function Sr(t, e) {
1198
1198
  /** @type {Derived} */
1199
1199
  s
1200
1200
  );
1201
- re?.delete(l), (a & Oe) === 0 && (a & Q && (s.f |= Oe), Sr(l, se));
1201
+ re?.delete(l), (a & ze) === 0 && (a & Q && (s.f |= ze), Sr(l, se));
1202
1202
  } else o && ((a & ve) !== 0 && de !== null && de.add(
1203
1203
  /** @type {Effect} */
1204
1204
  s
@@ -1211,10 +1211,10 @@ function Sr(t, e) {
1211
1211
  function tt(t) {
1212
1212
  if (typeof t != "object" || t === null || Mt in t)
1213
1213
  return t;
1214
- const e = Ji(t);
1215
- if (e !== Zi && e !== Xi)
1214
+ const e = Xi(t);
1215
+ if (e !== Yi && e !== Zi)
1216
1216
  return t;
1217
- var n = /* @__PURE__ */ new Map(), r = Wi(t), i = /* @__PURE__ */ V(0), s = Ce, a = (o) => {
1217
+ var n = /* @__PURE__ */ new Map(), r = Bi(t), i = /* @__PURE__ */ V(0), s = Ce, a = (o) => {
1218
1218
  if (Ce === s)
1219
1219
  return o();
1220
1220
  var l = k, u = Ce;
@@ -1230,7 +1230,7 @@ function tt(t) {
1230
1230
  t,
1231
1231
  {
1232
1232
  defineProperty(o, l, u) {
1233
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && ns();
1233
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && ts();
1234
1234
  var c = n.get(l);
1235
1235
  return c === void 0 ? a(() => {
1236
1236
  var h = /* @__PURE__ */ V(u.value);
@@ -1332,13 +1332,13 @@ function tt(t) {
1332
1332
  return l;
1333
1333
  },
1334
1334
  setPrototypeOf() {
1335
- rs();
1335
+ ns();
1336
1336
  }
1337
1337
  }
1338
1338
  );
1339
1339
  }
1340
1340
  var Wn, Pr, Tr, Ir;
1341
- function Ps() {
1341
+ function Ss() {
1342
1342
  if (Wn === void 0) {
1343
1343
  Wn = window, Pr = /Firefox/.test(navigator.userAgent);
1344
1344
  var t = Element.prototype, e = Node.prototype, n = Text.prototype;
@@ -1362,10 +1362,10 @@ function Rt(t) {
1362
1362
  Ir.call(t)
1363
1363
  );
1364
1364
  }
1365
- function Ts(t, e) {
1365
+ function Ps(t, e) {
1366
1366
  return /* @__PURE__ */ Tt(t);
1367
1367
  }
1368
- function Is(t, e = !1) {
1368
+ function Ts(t, e = !1) {
1369
1369
  {
1370
1370
  var n = /* @__PURE__ */ Tt(t);
1371
1371
  return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Rt(n) : n;
@@ -1378,10 +1378,10 @@ function Hn(t, e = 1, n = !1) {
1378
1378
  /* @__PURE__ */ Rt(r);
1379
1379
  return r;
1380
1380
  }
1381
- function As(t, e, n) {
1381
+ function Is(t, e, n) {
1382
1382
  return (
1383
1383
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1384
- document.createElementNS(ls, t, void 0)
1384
+ document.createElementNS(os, t, void 0)
1385
1385
  );
1386
1386
  }
1387
1387
  function Nr(t) {
@@ -1393,7 +1393,7 @@ function Nr(t) {
1393
1393
  te(e), ce(n);
1394
1394
  }
1395
1395
  }
1396
- function Ns(t, e) {
1396
+ function As(t, e) {
1397
1397
  var n = e.last;
1398
1398
  n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
1399
1399
  }
@@ -1425,7 +1425,7 @@ function ge(t, e, n) {
1425
1425
  else e !== null && le(i);
1426
1426
  var s = i;
1427
1427
  if (n && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
1428
- (s.f & Ke) === 0 && (s = s.first, (t & ve) !== 0 && (t & St) !== 0 && s !== null && (s.f |= St)), s !== null && (s.parent = r, r !== null && Ns(s, r), k !== null && (k.f & D) !== 0 && (t & ze) === 0)) {
1428
+ (s.f & Ke) === 0 && (s = s.first, (t & ve) !== 0 && (t & St) !== 0 && s !== null && (s.f |= St)), s !== null && (s.parent = r, r !== null && As(s, r), k !== null && (k.f & D) !== 0 && (t & Oe) === 0)) {
1429
1429
  var a = (
1430
1430
  /** @type {Derived} */
1431
1431
  k
@@ -1437,23 +1437,23 @@ function ge(t, e, n) {
1437
1437
  function un() {
1438
1438
  return k !== null && !ie;
1439
1439
  }
1440
- function Cs(t) {
1440
+ function Ns(t) {
1441
1441
  const e = ge(At, null, !1);
1442
1442
  return S(e, R), e.teardown = t, e;
1443
1443
  }
1444
- function Rs(t) {
1445
- return ge(lt | Qi, t, !1);
1444
+ function Cs(t) {
1445
+ return ge(lt | Ki, t, !1);
1446
1446
  }
1447
- function Ds(t) {
1447
+ function Rs(t) {
1448
1448
  Me.ensure();
1449
- const e = ge(ze | Ke, t, !0);
1449
+ const e = ge(Oe | Ke, t, !0);
1450
1450
  return (n = {}) => new Promise((r) => {
1451
1451
  n.outro ? Et(e, () => {
1452
1452
  ue(e), r(void 0);
1453
1453
  }) : (ue(e), r(void 0));
1454
1454
  });
1455
1455
  }
1456
- function Os(t) {
1456
+ function Ds(t) {
1457
1457
  return ge(lt, t, !1);
1458
1458
  }
1459
1459
  function zs(t) {
@@ -1463,11 +1463,11 @@ function Cr(t, e = 0) {
1463
1463
  return ge(At | e, t, !0);
1464
1464
  }
1465
1465
  function Rr(t, e = [], n = [], r = []) {
1466
- ks(r, e, n, (i) => {
1466
+ ws(r, e, n, (i) => {
1467
1467
  ge(At, () => t(...i.map(E)), !0);
1468
1468
  });
1469
1469
  }
1470
- function Ls(t, e = 0) {
1470
+ function Os(t, e = 0) {
1471
1471
  var n = ge(ve | e, t, !0);
1472
1472
  return n;
1473
1473
  }
@@ -1494,10 +1494,10 @@ function cn(t, e = !1) {
1494
1494
  i.abort(Ie);
1495
1495
  });
1496
1496
  var r = n.next;
1497
- (n.f & ze) !== 0 ? n.parent = null : ue(n, e), n = r;
1497
+ (n.f & Oe) !== 0 ? n.parent = null : ue(n, e), n = r;
1498
1498
  }
1499
1499
  }
1500
- function Fs(t) {
1500
+ function Ls(t) {
1501
1501
  for (var e = t.first; e !== null; ) {
1502
1502
  var n = e.next;
1503
1503
  (e.f & xe) === 0 && ue(e), e = n;
@@ -1505,7 +1505,7 @@ function Fs(t) {
1505
1505
  }
1506
1506
  function ue(t, e = !0) {
1507
1507
  var n = !1;
1508
- (e || (t.f & dr) !== 0) && t.nodes !== null && t.nodes.end !== null && ($s(
1508
+ (e || (t.f & dr) !== 0) && t.nodes !== null && t.nodes.end !== null && (Fs(
1509
1509
  t.nodes.start,
1510
1510
  /** @type {TemplateNode} */
1511
1511
  t.nodes.end
@@ -1516,21 +1516,21 @@ function ue(t, e = !0) {
1516
1516
  s.stop();
1517
1517
  Dr(t);
1518
1518
  var i = t.parent;
1519
- i !== null && i.first !== null && Or(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
1519
+ i !== null && i.first !== null && zr(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
1520
1520
  }
1521
- function $s(t, e) {
1521
+ function Fs(t, e) {
1522
1522
  for (; t !== null; ) {
1523
1523
  var n = t === e ? null : /* @__PURE__ */ Rt(t);
1524
1524
  t.remove(), t = n;
1525
1525
  }
1526
1526
  }
1527
- function Or(t) {
1527
+ function zr(t) {
1528
1528
  var e = t.parent, n = t.prev, r = t.next;
1529
1529
  n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
1530
1530
  }
1531
1531
  function Et(t, e, n = !0) {
1532
1532
  var r = [];
1533
- zr(t, r, !0);
1533
+ Or(t, r, !0);
1534
1534
  var i = () => {
1535
1535
  n && ue(t), e && e();
1536
1536
  }, s = r.length;
@@ -1541,7 +1541,7 @@ function Et(t, e, n = !0) {
1541
1541
  } else
1542
1542
  i();
1543
1543
  }
1544
- function zr(t, e, n) {
1544
+ function Or(t, e, n) {
1545
1545
  if ((t.f & ye) === 0) {
1546
1546
  t.f ^= ye;
1547
1547
  var r = t.nodes && t.nodes.t;
@@ -1553,11 +1553,11 @@ function zr(t, e, n) {
1553
1553
  // it means the parent block effect was pruned. In that case,
1554
1554
  // transparency information was transferred to the branch effect.
1555
1555
  (i.f & xe) !== 0 && (t.f & ve) !== 0;
1556
- zr(i, e, a ? n : !1), i = s;
1556
+ Or(i, e, a ? n : !1), i = s;
1557
1557
  }
1558
1558
  }
1559
1559
  }
1560
- function Vs(t, e) {
1560
+ function $s(t, e) {
1561
1561
  if (t.nodes)
1562
1562
  for (var n = t.nodes.start, r = t.nodes.end; n !== null; ) {
1563
1563
  var i = n === r ? null : /* @__PURE__ */ Rt(n);
@@ -1577,11 +1577,11 @@ function ce(t) {
1577
1577
  y = t;
1578
1578
  }
1579
1579
  let ee = null;
1580
- function Us(t) {
1580
+ function Vs(t) {
1581
1581
  k !== null && (ee === null ? ee = [t] : ee.push(t));
1582
1582
  }
1583
1583
  let U = null, Y = 0, G = null;
1584
- function js(t) {
1584
+ function Us(t) {
1585
1585
  G = t;
1586
1586
  }
1587
1587
  let Lr = 1, Ae = 0, Ce = Ae;
@@ -1595,7 +1595,7 @@ function ht(t) {
1595
1595
  var e = t.f;
1596
1596
  if ((e & L) !== 0)
1597
1597
  return !0;
1598
- if (e & D && (t.f &= ~Oe), (e & se) !== 0) {
1598
+ if (e & D && (t.f &= ~ze), (e & se) !== 0) {
1599
1599
  for (var n = (
1600
1600
  /** @type {Value[]} */
1601
1601
  t.deps
@@ -1635,7 +1635,7 @@ function $r(t, e, n = !0) {
1635
1635
  function Vr(t) {
1636
1636
  var e = U, n = Y, r = G, i = k, s = ee, a = ae, o = ie, l = Ce, u = t.f;
1637
1637
  U = /** @type {null | Value[]} */
1638
- null, Y = 0, G = null, k = (u & (xe | ze)) === 0 ? t : null, ee = null, Ye(t.ctx), ie = !1, Ce = ++Ae, t.ac !== null && (Nr(() => {
1638
+ null, Y = 0, G = null, k = (u & (xe | Oe)) === 0 ? t : null, ee = null, Ye(t.ctx), ie = !1, Ce = ++Ae, t.ac !== null && (Nr(() => {
1639
1639
  t.ac.abort(Ie);
1640
1640
  }), t.ac = null);
1641
1641
  try {
@@ -1682,10 +1682,10 @@ function Vr(t) {
1682
1682
  t.f ^= Gt, U = e, Y = n, G = r, k = i, ee = s, Ye(a), ie = o, Ce = l;
1683
1683
  }
1684
1684
  }
1685
- function Bs(t, e) {
1685
+ function js(t, e) {
1686
1686
  let n = e.reactions;
1687
1687
  if (n !== null) {
1688
- var r = Hi.call(n, t);
1688
+ var r = Wi.call(n, t);
1689
1689
  if (r !== -1) {
1690
1690
  var i = n.length - 1;
1691
1691
  i === 0 ? n = e.reactions = null : (n[r] = n[i], n.pop());
@@ -1699,14 +1699,14 @@ function Bs(t, e) {
1699
1699
  /** @type {Derived} */
1700
1700
  e
1701
1701
  );
1702
- (s.f & Q) !== 0 && (s.f ^= Q, s.f &= ~Oe), an(s), xs(s), ut(s, 0);
1702
+ (s.f & Q) !== 0 && (s.f ^= Q, s.f &= ~ze), an(s), Es(s), ut(s, 0);
1703
1703
  }
1704
1704
  }
1705
1705
  function ut(t, e) {
1706
1706
  var n = t.deps;
1707
1707
  if (n !== null)
1708
1708
  for (var r = e; r < n.length; r++)
1709
- Bs(t, n[r]);
1709
+ js(t, n[r]);
1710
1710
  }
1711
1711
  function Je(t) {
1712
1712
  var e = t.f;
@@ -1715,11 +1715,11 @@ function Je(t) {
1715
1715
  var n = y, r = xt;
1716
1716
  y = t, xt = !0;
1717
1717
  try {
1718
- (e & (ve | hr)) !== 0 ? Fs(t) : cn(t), Dr(t);
1718
+ (e & (ve | hr)) !== 0 ? Ls(t) : cn(t), Dr(t);
1719
1719
  var i = Vr(t);
1720
1720
  t.teardown = typeof i == "function" ? i : null, t.wv = Lr;
1721
1721
  var s;
1722
- Jt && cs && (t.f & L) !== 0 && t.deps;
1722
+ Jt && us && (t.f & L) !== 0 && t.deps;
1723
1723
  } finally {
1724
1724
  xt = r, y = n;
1725
1725
  }
@@ -1790,11 +1790,11 @@ function Br(t) {
1790
1790
  ie = e;
1791
1791
  }
1792
1792
  }
1793
- const Ws = ["touchstart", "touchmove"];
1794
- function Hs(t) {
1795
- return Ws.includes(t);
1793
+ const Bs = ["touchstart", "touchmove"];
1794
+ function Ws(t) {
1795
+ return Bs.includes(t);
1796
1796
  }
1797
- const qs = /* @__PURE__ */ Symbol("events"), Ys = /* @__PURE__ */ new Set(), Zn = /* @__PURE__ */ new Set();
1797
+ const Hs = /* @__PURE__ */ Symbol("events"), qs = /* @__PURE__ */ new Set(), Zn = /* @__PURE__ */ new Set();
1798
1798
  let Xn = null;
1799
1799
  function Jn(t) {
1800
1800
  var e = this, n = (
@@ -1820,7 +1820,7 @@ function Jn(t) {
1820
1820
  }
1821
1821
  if (s = /** @type {Element} */
1822
1822
  i[a] || t.target, s !== e) {
1823
- Yi(t, "currentTarget", {
1823
+ qi(t, "currentTarget", {
1824
1824
  configurable: !0,
1825
1825
  get() {
1826
1826
  return s || n;
@@ -1833,7 +1833,7 @@ function Jn(t) {
1833
1833
  var m = s.assignedSlot || s.parentNode || /** @type {any} */
1834
1834
  s.host || null;
1835
1835
  try {
1836
- var v = s[qs]?.[r];
1836
+ var v = s[Hs]?.[r];
1837
1837
  v != null && (!/** @type {any} */
1838
1838
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1839
1839
  // -> the target could not have been disabled because it emits the event in the first place
@@ -1857,22 +1857,22 @@ function Jn(t) {
1857
1857
  }
1858
1858
  }
1859
1859
  }
1860
- const Zs = /* @__PURE__ */ globalThis?.window?.trustedTypes?.createPolicy(
1860
+ const Ys = /* @__PURE__ */ globalThis?.window?.trustedTypes?.createPolicy(
1861
1861
  "svelte-trusted-html",
1862
1862
  {
1863
1863
  /** @param {string} html */
1864
1864
  createHTML: (t) => t
1865
1865
  }
1866
1866
  );
1867
- function Xs(t) {
1867
+ function Zs(t) {
1868
1868
  return (
1869
1869
  /** @type {string} */
1870
- Zs?.createHTML(t) ?? t
1870
+ Ys?.createHTML(t) ?? t
1871
1871
  );
1872
1872
  }
1873
- function Js(t, e = !1) {
1874
- var n = As("template");
1875
- return t = t.replaceAll("<!>", "<!---->"), n.innerHTML = e ? Xs(t) : t, n.content;
1873
+ function Xs(t, e = !1) {
1874
+ var n = Is("template");
1875
+ return t = t.replaceAll("<!>", "<!---->"), n.innerHTML = e ? Zs(t) : t, n.content;
1876
1876
  }
1877
1877
  function Gn(t, e) {
1878
1878
  var n = (
@@ -1883,9 +1883,9 @@ function Gn(t, e) {
1883
1883
  }
1884
1884
  // @__NO_SIDE_EFFECTS__
1885
1885
  function Wr(t, e) {
1886
- var n = (e & as) !== 0, r = (e & os) !== 0, i, s = !t.startsWith("<!>");
1886
+ var n = (e & ss) !== 0, r = (e & as) !== 0, i, s = !t.startsWith("<!>");
1887
1887
  return () => {
1888
- i === void 0 && (i = Js(s ? t : "<!>" + t, !0), n || (i = /** @type {TemplateNode} */
1888
+ i === void 0 && (i = Xs(s ? t : "<!>" + t, !0), n || (i = /** @type {TemplateNode} */
1889
1889
  /* @__PURE__ */ Tt(i)));
1890
1890
  var a = (
1891
1891
  /** @type {TemplateNode} */
@@ -1912,17 +1912,17 @@ function Hr(t, e) {
1912
1912
  );
1913
1913
  }
1914
1914
  function fn(t, e) {
1915
- return Gs(t, e);
1915
+ return Js(t, e);
1916
1916
  }
1917
1917
  const yt = /* @__PURE__ */ new Map();
1918
- function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, intro: a = !0 }) {
1919
- Ps();
1918
+ function Js(t, { target: e, anchor: n, props: r = {}, events: i, context: s, intro: a = !0 }) {
1919
+ Ss();
1920
1920
  var o = /* @__PURE__ */ new Set(), l = (h) => {
1921
1921
  for (var f = 0; f < h.length; f++) {
1922
1922
  var d = h[f];
1923
1923
  if (!o.has(d)) {
1924
1924
  o.add(d);
1925
- var m = Hs(d);
1925
+ var m = Ws(d);
1926
1926
  for (const $ of [e, document]) {
1927
1927
  var v = yt.get($);
1928
1928
  v === void 0 && (v = /* @__PURE__ */ new Map(), yt.set($, v));
@@ -1932,10 +1932,10 @@ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1932
1932
  }
1933
1933
  }
1934
1934
  };
1935
- l(qi(Ys)), Zn.add(l);
1936
- var u = void 0, c = Ds(() => {
1935
+ l(Hi(qs)), Zn.add(l);
1936
+ var u = void 0, c = Rs(() => {
1937
1937
  var h = n ?? e.appendChild(Ar());
1938
- return gs(
1938
+ return vs(
1939
1939
  /** @type {TemplateNode} */
1940
1940
  h,
1941
1941
  {
@@ -1965,9 +1965,9 @@ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1965
1965
  Zn.delete(l), h !== n && h.parentNode?.removeChild(h);
1966
1966
  };
1967
1967
  });
1968
- return Ks.set(u, c), u;
1968
+ return Gs.set(u, c), u;
1969
1969
  }
1970
- let Ks = /* @__PURE__ */ new WeakMap();
1970
+ let Gs = /* @__PURE__ */ new WeakMap();
1971
1971
  function qr(t) {
1972
1972
  var e, n, r = "";
1973
1973
  if (typeof t == "string" || typeof t == "number") r += t;
@@ -1977,14 +1977,14 @@ function qr(t) {
1977
1977
  } else for (n in t) t[n] && (r && (r += " "), r += n);
1978
1978
  return r;
1979
1979
  }
1980
- function Qs() {
1980
+ function Ks() {
1981
1981
  for (var t, e, n = 0, r = "", i = arguments.length; n < i; n++) (t = arguments[n]) && (e = qr(t)) && (r && (r += " "), r += e);
1982
1982
  return r;
1983
1983
  }
1984
1984
  function Yr(t) {
1985
- return typeof t == "object" ? Qs(t) : t ?? "";
1985
+ return typeof t == "object" ? Ks(t) : t ?? "";
1986
1986
  }
1987
- function ea(t, e, n) {
1987
+ function Qs(t, e, n) {
1988
1988
  var r = t == null ? "" : "" + t;
1989
1989
  return e && (r = r ? r + " " + e : e), r === "" ? null : r;
1990
1990
  }
@@ -1996,7 +1996,7 @@ function Kn(t, e = !1) {
1996
1996
  }
1997
1997
  return r;
1998
1998
  }
1999
- function ta(t, e) {
1999
+ function ea(t, e) {
2000
2000
  if (e) {
2001
2001
  var n = "", r, i;
2002
2002
  return Array.isArray(e) ? (r = e[0], i = e[1]) : r = e, r && (n += Kn(r)), i && (n += Kn(i, !0)), n = n.trim(), n === "" ? null : n;
@@ -2006,7 +2006,7 @@ function ta(t, e) {
2006
2006
  function Zr(t, e, n, r, i, s) {
2007
2007
  var a = t.__className;
2008
2008
  if (a !== n || a === void 0) {
2009
- var o = ea(n, r);
2009
+ var o = Qs(n, r);
2010
2010
  o == null ? t.removeAttribute("class") : t.className = o, t.__className = n;
2011
2011
  }
2012
2012
  return s;
@@ -2020,7 +2020,7 @@ function Ht(t, e = {}, n, r) {
2020
2020
  function nt(t, e, n, r) {
2021
2021
  var i = t.__style;
2022
2022
  if (i !== e) {
2023
- var s = ta(e, r);
2023
+ var s = ea(e, r);
2024
2024
  s == null ? t.removeAttribute("style") : t.style.cssText = s, t.__style = e;
2025
2025
  } else r && (Array.isArray(r) ? (Ht(t, n?.[0], r[0]), Ht(t, n?.[1], r[1], "important")) : Ht(t, n, r));
2026
2026
  return r;
@@ -2029,7 +2029,7 @@ function Qn(t, e) {
2029
2029
  return t === e || t?.[Mt] === e;
2030
2030
  }
2031
2031
  function rt(t = {}, e, n, r) {
2032
- return Os(() => {
2032
+ return Ds(() => {
2033
2033
  var i, s;
2034
2034
  return Cr(() => {
2035
2035
  i = s, s = [], Br(() => {
@@ -2070,8 +2070,8 @@ class pt {
2070
2070
  this.shown = !0, this.id = e, this.lat = n, this.lng = r, this.rank = i, this.marker = s;
2071
2071
  }
2072
2072
  }
2073
- const na = "5";
2074
- typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(na);
2073
+ const ta = "5";
2074
+ typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(ta);
2075
2075
  function Xr(t) {
2076
2076
  return -0.5 * (Math.cos(Math.PI * t) - 1);
2077
2077
  }
@@ -2119,8 +2119,8 @@ class Jr {
2119
2119
  return performance.now() > this.time.end;
2120
2120
  }
2121
2121
  }
2122
- var ra = /* @__PURE__ */ Wr("<div></div>");
2123
- function ia(t, e) {
2122
+ var na = /* @__PURE__ */ Wr("<div></div>");
2123
+ function ra(t, e) {
2124
2124
  rn(e, !0);
2125
2125
  let n = e.id, r = e.element, i = e.style, s = e.dimensions, a = e.initialize, o = {
2126
2126
  setDisplayed: X,
@@ -2133,7 +2133,7 @@ function ia(t, e) {
2133
2133
  function l() {
2134
2134
  return o;
2135
2135
  }
2136
- let u, c = s.width, h = s.height, f = s.padding, d = i?.background ?? ji, m = i?.radius ?? Fi, v = i?.shadow ?? $i, M = /* @__PURE__ */ V(!1), $ = !1;
2136
+ let u, c = s.width, h = s.height, f = s.padding, d = i?.background ?? Ui, m = i?.radius ?? Li, v = i?.shadow ?? Fi, M = /* @__PURE__ */ V(!1), $ = !1;
2137
2137
  function X(_) {
2138
2138
  _ == !0 && (u && r && r.parentElement != u && u.appendChild(r), $ == !1 && a && r && ($ = !0, setTimeout(async () => await a(n, r), 0))), _ != E(M) && (j(M, _, !0), _ == !1 && q.end());
2139
2139
  }
@@ -2155,7 +2155,7 @@ function ia(t, e) {
2155
2155
  value: $e,
2156
2156
  min: 0,
2157
2157
  max: 1,
2158
- timespan: Di,
2158
+ timespan: Ri,
2159
2159
  easing: Xr,
2160
2160
  callback: dt
2161
2161
  });
@@ -2168,7 +2168,7 @@ function ia(t, e) {
2168
2168
  function he(_) {
2169
2169
  return 0.25 + 0.75 * _;
2170
2170
  }
2171
- var Ot = { invoke: l }, Le = ra();
2171
+ var zt = { invoke: l }, Le = na();
2172
2172
  let Fe;
2173
2173
  return rt(Le, (_) => u = _, () => u), Rr(
2174
2174
  (_) => {
@@ -2195,15 +2195,15 @@ function ia(t, e) {
2195
2195
  filter: `brightness(${he($e)})`
2196
2196
  })
2197
2197
  ]
2198
- ), Hr(t, Le), sn(Ot);
2198
+ ), Hr(t, Le), sn(zt);
2199
2199
  }
2200
- class sa extends pt {
2200
+ class ia extends pt {
2201
2201
  width;
2202
2202
  height;
2203
2203
  zoom;
2204
2204
  component;
2205
2205
  constructor(e, n, r, i, s, a) {
2206
- super(n, r, i, s, new hn(e, r, i, s)), this.width = a.dimensions.width, this.height = a.dimensions.height, this.zoom = NaN, this.component = fn(ia, {
2206
+ super(n, r, i, s, new hn(e, r, i, s)), this.width = a.dimensions.width, this.height = a.dimensions.height, this.zoom = NaN, this.component = fn(ra, {
2207
2207
  target: this.marker.div,
2208
2208
  props: a
2209
2209
  });
@@ -2271,22 +2271,22 @@ function tn(t, e, n) {
2271
2271
  let r = t / 2, i = e / 2, s = Math.sqrt(r * r + i * i), a = Math.atan(i / r) * (180 / Math.PI), o = n * (Math.PI / 180);
2272
2272
  return n < 180 ? n < 90 ? n < a ? { x: 0, y: s * Math.sin(o) - i } : { x: s * Math.cos(o) - r, y: 0 } : n < 180 - a ? { x: s * Math.cos(o) - r, y: 0 } : { x: -t, y: s * Math.sin(o) - i } : n < 270 ? n < 180 + a ? { x: -t, y: s * Math.sin(o) - i } : { x: s * Math.cos(o) - r, y: -e } : n < 360 - a ? { x: s * Math.cos(o) - r, y: -e } : { x: 0, y: s * Math.sin(o) - i };
2273
2273
  }
2274
- var aa = /* @__PURE__ */ Wr('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element bubble svelte-1no6o2a"></div></div> <div class="element body svelte-1no6o2a"></div>', 1);
2274
+ var sa = /* @__PURE__ */ Wr('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element bubble svelte-1no6o2a"></div></div> <div class="element body svelte-1no6o2a"></div>', 1);
2275
2275
  function Gr(t, e) {
2276
2276
  rn(e, !0);
2277
2277
  let n = e.id, r = e.element, i = e.style, s = e.dimensions, a = e.initialize, o = {
2278
- setDisplayed: Ot,
2278
+ setDisplayed: zt,
2279
2279
  getDisplayed: Le,
2280
2280
  setCollapsed: _,
2281
- getCollapsed: pi,
2282
- getExpanded: di,
2283
- setAngle: vi
2281
+ getCollapsed: hi,
2282
+ getExpanded: pi,
2283
+ setAngle: mi
2284
2284
  };
2285
2285
  function l() {
2286
2286
  return o;
2287
2287
  }
2288
- let u = s.width + 2 * s.padding, c = s.height + 2 * s.padding, h = s.padding, f, d = i?.filter ?? Ui, m, v = s.padding * 2, M = Math.max(2, (i?.radius ?? Fn) / v), $ = i?.background ?? $n, X, Se = s.width, we = s.height, ke = i?.radius ?? Fn, fe = Math.min(1, 2 * ke / Math.min(we, Se)), Pe = i?.background ?? $n, J, ne = s.width, q = s.height, Dt = i?.radius, dt = !1, he = /* @__PURE__ */ V(!1);
2289
- function Ot(g) {
2288
+ let u = s.width + 2 * s.padding, c = s.height + 2 * s.padding, h = s.padding, f, d = i?.filter ?? Vi, m, v = s.padding * 2, M = Math.max(2, (i?.radius ?? Fn) / v), $ = i?.background ?? $n, X, Se = s.width, we = s.height, ke = i?.radius ?? Fn, fe = Math.min(1, 2 * ke / Math.min(we, Se)), Pe = i?.background ?? $n, J, ne = s.width, q = s.height, Dt = i?.radius, dt = !1, he = /* @__PURE__ */ V(!1);
2289
+ function zt(g) {
2290
2290
  g != E(he) && (j(he, g, !0), g == !0 && (r && r.parentElement != J && J.appendChild(r), dt == !1 && a && r && (dt = !0, setTimeout(async () => await a(n, r), 0))), g == !1 && (mt.end(), Lt.end(), Ft.end()));
2291
2291
  }
2292
2292
  function Le() {
@@ -2296,45 +2296,45 @@ function Gr(t, e) {
2296
2296
  function _(g) {
2297
2297
  g != E(Fe) && (j(Fe, g, !0), mt.target(E(Fe) ? 0 : 1));
2298
2298
  }
2299
- function pi() {
2299
+ function hi() {
2300
2300
  return E(he) ? mt.expired() : !0;
2301
2301
  }
2302
- function di() {
2302
+ function pi() {
2303
2303
  return E(he) ? mt.expired() : !1;
2304
2304
  }
2305
2305
  let mt = new Jr({
2306
2306
  value: 0,
2307
2307
  min: 0,
2308
2308
  max: 1,
2309
- timespan: Oi,
2309
+ timespan: Di,
2310
2310
  easing: Xr,
2311
- callback: mi
2311
+ callback: di
2312
2312
  });
2313
- function mi(g) {
2313
+ function di(g) {
2314
2314
  f.style.opacity = `${g}`, m.style.scale = `${g}`, X.style.scale = `${g}`, J.style.scale = `${g}`;
2315
2315
  }
2316
- let vt = NaN, zt = /* @__PURE__ */ V(!1), vn = -u / 2, Lt = new er({
2316
+ let vt = NaN, Ot = /* @__PURE__ */ V(!1), vn = -u / 2, Lt = new er({
2317
2317
  value: -u / 2,
2318
2318
  min: -u,
2319
2319
  max: 0,
2320
2320
  precision: 1,
2321
2321
  stiffness: Dn,
2322
- callback: gi
2322
+ callback: vi
2323
2323
  }), gn = -c / 2, Ft = new er({
2324
2324
  value: -c / 2,
2325
2325
  min: -c,
2326
2326
  max: 0,
2327
2327
  precision: 1,
2328
2328
  stiffness: Dn,
2329
- callback: wi
2329
+ callback: gi
2330
2330
  });
2331
- function vi(g, gt) {
2331
+ function mi(g, gt) {
2332
2332
  if (Number.isNaN(g)) {
2333
- vt = NaN, j(zt, !1);
2333
+ vt = NaN, j(Ot, !1);
2334
2334
  return;
2335
2335
  }
2336
- if (E(zt) == !1 || gt == !0) {
2337
- j(zt, !0), vt = g;
2336
+ if (E(Ot) == !1 || gt == !0) {
2337
+ j(Ot, !0), vt = g;
2338
2338
  const pe = tn(u, c, g);
2339
2339
  Lt.set(Math.round(pe.x)), Ft.set(Math.round(pe.y));
2340
2340
  return;
@@ -2346,19 +2346,19 @@ function Gr(t, e) {
2346
2346
  return;
2347
2347
  }
2348
2348
  }
2349
- function gi(g) {
2349
+ function vi(g) {
2350
2350
  vn = g, wn();
2351
2351
  }
2352
- function wi(g) {
2352
+ function gi(g) {
2353
2353
  gn = g, wn();
2354
2354
  }
2355
2355
  function wn() {
2356
- const g = vn, gt = gn, pe = g + u / 2, Vt = gt + c / 2, Ut = c < u ? pe * c / u : pe, jt = c > u ? Vt * u / c : Vt, yi = Math.atan2(jt, Ut) / Math.PI * 180 - 45, Bt = Math.sqrt(Ut * Ut + jt * jt), et = Math.min(u, c) / 2, _i = et * Math.SQRT2, Sn = (Bt - et) / (_i - et), Pn = 15, Tn = Pn + Sn * (22.5 - Pn), bi = Bt < et ? Bt / et : 1, Mi = g + h, Ei = gt + h, In = h * 2 * fe * Sn, An = Mi - In * (pe / u), Nn = Ei - In * (Vt / c);
2357
- m.style.transform = `scale(${bi}) rotate(${yi}deg) skew(${Tn}deg, ${Tn}deg)`, X.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`, J.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`;
2356
+ const g = vn, gt = gn, pe = g + u / 2, Vt = gt + c / 2, Ut = c < u ? pe * c / u : pe, jt = c > u ? Vt * u / c : Vt, ki = Math.atan2(jt, Ut) / Math.PI * 180 - 45, Bt = Math.sqrt(Ut * Ut + jt * jt), et = Math.min(u, c) / 2, yi = et * Math.SQRT2, Sn = (Bt - et) / (yi - et), Pn = 15, Tn = Pn + Sn * (22.5 - Pn), _i = Bt < et ? Bt / et : 1, bi = g + h, Mi = gt + h, In = h * 2 * fe * Sn, An = bi - In * (pe / u), Nn = Mi - In * (Vt / c);
2357
+ m.style.transform = `scale(${_i}) rotate(${ki}deg) skew(${Tn}deg, ${Tn}deg)`, X.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`, J.style.transform = `translate(${Math.round(An)}px, ${Math.round(Nn)}px)`;
2358
2358
  }
2359
- var ki = { invoke: l }, kn = aa(), Qe = Is(kn);
2359
+ var wi = { invoke: l }, kn = sa(), Qe = Ts(kn);
2360
2360
  let yn;
2361
- var $t = Ts(Qe);
2361
+ var $t = Ps(Qe);
2362
2362
  let _n;
2363
2363
  rt($t, (g) => m = g, () => m);
2364
2364
  var bn = Hn($t, 2);
@@ -2382,42 +2382,42 @@ function Gr(t, e) {
2382
2382
  height: `${q}px`,
2383
2383
  "border-radius": `${Dt}px`
2384
2384
  });
2385
- }), Hr(t, kn), sn(ki);
2385
+ }), Hr(t, kn), sn(wi);
2386
2386
  }
2387
- class oa extends pt {
2387
+ class aa extends pt {
2388
2388
  width;
2389
2389
  height;
2390
2390
  zoom;
2391
2391
  angle;
2392
- states;
2392
+ directions;
2393
2393
  component;
2394
2394
  constructor(e, n, r, i, s, a) {
2395
- super(n, r, i, s, new hn(e, r, i, s)), this.width = a.dimensions.width + a.dimensions.padding * 2, this.height = a.dimensions.height + a.dimensions.padding * 2, this.zoom = NaN, this.angle = NaN, this.states = [], this.component = fn(Gr, {
2395
+ super(n, r, i, s, new hn(e, r, i, s)), this.width = a.dimensions.width + a.dimensions.padding * 2, this.height = a.dimensions.height + a.dimensions.padding * 2, this.zoom = NaN, this.angle = NaN, this.directions = [], this.component = fn(Gr, {
2396
2396
  target: this.marker.div,
2397
2397
  props: a
2398
2398
  });
2399
2399
  }
2400
2400
  get zIndex() {
2401
- return Number.isNaN(this.zoom) ? this.rank : Math.round(-this.zoom * cr) + Li;
2401
+ return Number.isNaN(this.zoom) ? this.rank : Math.round(-this.zoom * cr) + Oi;
2402
2402
  }
2403
2403
  }
2404
- class la extends pt {
2404
+ class oa extends pt {
2405
2405
  width;
2406
2406
  height;
2407
2407
  padding;
2408
2408
  angle;
2409
2409
  component;
2410
2410
  constructor(e, n, r, i, s, a) {
2411
- super(n, r, i, s, new hn(e, r, i, On)), this.width = a.dimensions.width, this.height = a.dimensions.height, this.padding = a.dimensions.padding, this.angle = NaN, this.shown = !1, this.component = fn(Gr, {
2411
+ super(n, r, i, s, new hn(e, r, i, zn)), this.width = a.dimensions.width, this.height = a.dimensions.height, this.padding = a.dimensions.padding, this.angle = NaN, this.shown = !1, this.component = fn(Gr, {
2412
2412
  target: this.marker.div,
2413
2413
  props: a
2414
2414
  });
2415
2415
  }
2416
2416
  get zIndex() {
2417
- return On;
2417
+ return zn;
2418
2418
  }
2419
2419
  }
2420
- class ua {
2420
+ class la {
2421
2421
  id;
2422
2422
  state = void 0;
2423
2423
  pin;
@@ -2425,11 +2425,11 @@ class ua {
2425
2425
  popup;
2426
2426
  constructor(e, n) {
2427
2427
  const r = n.properites.id, i = n.properites.lat, s = n.properites.lng, a = n.properites.rank, o = n.properites.pin, l = n.properites.tooltip, u = n.properites.popup;
2428
- this.id = r, this.pin = new sa(e, r, i, s, a, o), this.tooltip = new oa(e, r, i, s, a, l), this.popup = u ? new la(e, r, i, s, a, u) : void 0;
2428
+ this.id = r, this.pin = new ia(e, r, i, s, a, o), this.tooltip = new aa(e, r, i, s, a, l), this.popup = u ? new oa(e, r, i, s, a, u) : void 0;
2429
2429
  }
2430
2430
  }
2431
2431
  const qt = 4;
2432
- class ca {
2432
+ class ua {
2433
2433
  // Elements
2434
2434
  pins = /* @__PURE__ */ new Set();
2435
2435
  // Configuration
@@ -2445,7 +2445,7 @@ class ca {
2445
2445
  this.update(e, n), this.pins.add(e);
2446
2446
  }
2447
2447
  update(e, n) {
2448
- e.zoom = n ? n[0] : NaN, e.marker.update(e.zIndex);
2448
+ e.zoom = n?.zoom ?? NaN, e.marker.update(e.zIndex);
2449
2449
  }
2450
2450
  remove(e) {
2451
2451
  e.shown = !0, e.zoom = NaN, e.component.invoke().setCollapsed(!1), e.component.invoke().setSuppressed(!0), e.component.invoke().setDisplayed(!1), e.marker.update(e.zIndex), e.marker.remove(), this.pins.delete(e);
@@ -2468,8 +2468,8 @@ class ca {
2468
2468
  s.contains(a.lat, a.lng) ? Number.isNaN(a.zoom) ? (a.component.invoke().setDisplayed(!0), a.component.invoke().setSuppressed(!0), a.component.invoke().setCollapsed(!1), a.marker.insert()) : (a.component.invoke().setSuppressed(!1), a.shown && r < a.zoom && a.zoom < r + this.pinZoomDelta ? (a.component.invoke().setDisplayed(!0), a.component.invoke().setCollapsed(!1), a.component.invoke().setScale(this.pinFade ? Math.max(0, 1 - (a.zoom - r) * 0.2) : 1), a.marker.insert()) : (a.component.invoke().setCollapsed(!0), a.component.invoke().getCollapsed() && (a.component.invoke().setDisplayed(!1), a.marker.remove()))) : (a.component.invoke().setDisplayed(!1), a.marker.remove());
2469
2469
  }
2470
2470
  }
2471
- var Kr = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330], fa = 270;
2472
- class ha {
2471
+ var ca = (t) => 9;
2472
+ class fa {
2473
2473
  // Elements
2474
2474
  tooltips = /* @__PURE__ */ new Set();
2475
2475
  // Configuration
@@ -2479,10 +2479,10 @@ class ha {
2479
2479
  this.update(e, n), this.tooltips.add(e);
2480
2480
  }
2481
2481
  update(e, n) {
2482
- n ? (e.zoom = n[0], e.states = n[1].map((r) => [r[0], Kr[r[1]]])) : (e.zoom = NaN, e.states = []), e.marker.update(e.zIndex);
2482
+ n ? (e.zoom = n.zoom, e.directions = n.directions) : (e.zoom = NaN, e.directions = []), e.marker.update(e.zIndex);
2483
2483
  }
2484
2484
  remove(e) {
2485
- e.shown = !0, e.zoom = NaN, e.angle = NaN, e.states = [], e.component.invoke().setAngle(NaN), e.component.invoke().setCollapsed(!0), e.component.invoke().setDisplayed(!1), e.marker.update(e.zIndex), e.marker.remove(), this.tooltips.delete(e);
2485
+ e.shown = !0, e.zoom = NaN, e.angle = NaN, e.directions = [], e.component.invoke().setAngle(NaN), e.component.invoke().setCollapsed(!0), e.component.invoke().setDisplayed(!1), e.marker.update(e.zIndex), e.marker.remove(), this.tooltips.delete(e);
2486
2486
  }
2487
2487
  clear() {
2488
2488
  this.tooltips.forEach((e) => e.marker.remove()), this.tooltips.clear();
@@ -2501,7 +2501,7 @@ class ha {
2501
2501
  for (const a of this.tooltips)
2502
2502
  if (s.contains(a.lat, a.lng))
2503
2503
  if (Number.isNaN(a.zoom) == !1 && a.shown && a.zoom <= r) {
2504
- const o = a.states.findLast((l) => l[0] <= r)?.[1];
2504
+ const o = a.directions.findLast((l) => l.zoom <= r)?.angle;
2505
2505
  if (o == null) throw new Error("Failed to find angle");
2506
2506
  a.angle = o, a.component.invoke().setDisplayed(!0), a.component.invoke().setCollapsed(!1), a.component.invoke().setAngle(o), a.marker.insert();
2507
2507
  } else
@@ -2510,7 +2510,7 @@ class ha {
2510
2510
  a.component.invoke().setDisplayed(!1), a.marker.remove();
2511
2511
  }
2512
2512
  }
2513
- class pa {
2513
+ class ha {
2514
2514
  // Elements
2515
2515
  popups = /* @__PURE__ */ new Set();
2516
2516
  // Configuration
@@ -2543,14 +2543,14 @@ class pa {
2543
2543
  e.shown ? (e.component.invoke().setDisplayed(!0), e.component.invoke().setCollapsed(!1), e.component.invoke().setAngle(e.angle, !0), e.marker.insert()) : (e.component.invoke().setCollapsed(!0), e.component.invoke().getCollapsed() && (e.component.invoke().setDisplayed(!1), e.marker.remove()));
2544
2544
  }
2545
2545
  }
2546
- class da {
2546
+ class pa {
2547
2547
  provider;
2548
2548
  pinManager;
2549
2549
  tooltipManager;
2550
2550
  popupManager;
2551
2551
  elementsStore;
2552
2552
  constructor(e) {
2553
- this.provider = e, this.pinManager = new ca(), this.tooltipManager = new ha(), this.popupManager = new pa(), this.elementsStore = /* @__PURE__ */ new Map();
2553
+ this.provider = e, this.pinManager = new ua(), this.tooltipManager = new fa(), this.popupManager = new ha(), this.elementsStore = /* @__PURE__ */ new Map();
2554
2554
  }
2555
2555
  set configuration(e) {
2556
2556
  this.pinManager.configuration = e, this.popupManager.configuration = e;
@@ -2575,7 +2575,7 @@ class da {
2575
2575
  insertElements(e, n) {
2576
2576
  for (const r of e) {
2577
2577
  let i = this.elementsStore.get(r.properites.id);
2578
- i == null && (i = new ua(this.provider, r), i.tooltip.marker.div.addEventListener("click", (s) => n(s, r.properites.id)), this.elementsStore.set(r.properites.id, i)), this.pinManager.insert(i.pin, r.state), this.tooltipManager.insert(i.tooltip, r.state), i.popup != null && this.popupManager.insert(i.popup);
2578
+ i == null && (i = new la(this.provider, r), i.tooltip.marker.div.addEventListener("click", (s) => n(s, r.properites.id)), this.elementsStore.set(r.properites.id, i)), this.pinManager.insert(i.pin, r.state), this.tooltipManager.insert(i.tooltip, r.state), i.popup != null && this.popupManager.insert(i.popup);
2579
2579
  }
2580
2580
  this.pinManager.refresh(), this.tooltipManager.refresh();
2581
2581
  }
@@ -2600,8 +2600,8 @@ class da {
2600
2600
  }
2601
2601
  //#endregion
2602
2602
  }
2603
- const Qr = '(function(){"use strict";var i=a=>new Promise(t=>setTimeout(t,a));async function h(a,t){let s=0,o=Math.max(1,t?.retry?.times??1);for(;s<o;)try{return{data:await a(),error:null}}catch(r){if(s++,s==o){if(r instanceof Error)return(!t?.exceptions||t.exceptions.some(e=>r instanceof e)==!1)&&t?.catch?.(r),{data:null,error:r};throw t?.catch?.(r),r}else t?.retry?.delay&&await i(t.retry.delay)}throw Error("Unreachable code")}async function l(a,t,s,o,r){let e=await h(async()=>await fetch(a,{...s,method:"POST",body:t?JSON.stringify(t):void 0,headers:{...s?.headers,"Content-Type":"application/json"}}),{retry:{times:o,delay:r}});if(e.error)throw e.error;let n=e.data;if(!n.ok)throw Error(await n.text());return await n.json()}const f="https://maps.api.arenarium.dev/states",m=3,d=500,u={async fetch(a){const s={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}};return await l(f,a,s,m,d)}};class w{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:s,method:o,args:r}=t.data;try{const e=this.methods[o];if(typeof e!="function")throw new Error(`Unknown method: ${o}`);const n=await e(...r),c={id:s,result:n};self.postMessage(c)}catch(e){const n=e instanceof Error?e.message:String(e),c={id:s,error:n};self.postMessage(c)}}}new w(u).listen()})();\n', tr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Qr], { type: "text/javascript;charset=utf-8" });
2604
- function ma(t) {
2603
+ const Kr = '(function(){"use strict";var h=[0,30,60,90,120,150,180,210,240,270,300,330],l=",";function i(e,t){return parseFloat(e[t]+e[t+1]+"."+e[t+2])}function f(e,t){return h[parseInt(e[t],16)]}function m(e){if(!e||e.length===0)return[];let t=[],o=e.split(l);for(let n=0;n<o.length;n++){let s=o[n],r=i(s,0),a=[];for(let c=3;c<s.length;c+=4){let v=i(s,c),T=f(s,c+3);a.push({zoom:v,angle:T})}t.push({zoom:r,directions:a})}return t}var d=e=>new Promise(t=>setTimeout(t,e));async function u(e,t){let o=0,n=Math.max(1,t?.retry?.times??1);for(;o<n;)try{return{data:await e(),error:null}}catch(s){if(o++,o==n){if(s instanceof Error)return(!t?.exceptions||t.exceptions.some(r=>s instanceof r)==!1)&&t?.catch?.(s),{data:null,error:s};throw t?.catch?.(s),s}else t?.retry?.delay&&await d(t.retry.delay)}throw Error("Unreachable code")}async function w(e,t,o,n,s){let r=await u(async()=>await fetch(e,{...o,method:"POST",body:t?JSON.stringify(t):void 0,headers:{...o?.headers,"Content-Type":"application/json"}}),{retry:{times:n,delay:s}});if(r.error)throw r.error;let a=r.data;if(!a.ok)throw Error(await a.text());return await a.json()}const p="https://maps.api.arenarium.dev/states",y=3,E=500,S={async fetch(e){const o={headers:{"Cache-Control":self?.location.host.startsWith("localhost")||self?.location.host.startsWith("127.0.0.1")?"no-cache":""}},n=await w(p,e,o,y,E),s=m(n.states),r=n.jwt;return{states:s,jwt:r}}};class k{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:o,method:n,args:s}=t.data;try{const r=this.methods[n];if(typeof r!="function")throw new Error(`Unknown method: ${n}`);const a=await r(...s),c={id:o,result:a};self.postMessage(c)}catch(r){const a=r instanceof Error?r.message:String(r),c={id:o,error:a};self.postMessage(c)}}}new k(S).listen()})();\n', tr = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", Kr], { type: "text/javascript;charset=utf-8" });
2604
+ function da(t) {
2605
2605
  let e;
2606
2606
  try {
2607
2607
  if (e = tr && (self.URL || self.webkitURL).createObjectURL(tr), !e) throw "";
@@ -2613,15 +2613,15 @@ function ma(t) {
2613
2613
  }), n;
2614
2614
  } catch {
2615
2615
  return new Worker(
2616
- "data:text/javascript;charset=utf-8," + encodeURIComponent(Qr),
2616
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(Kr),
2617
2617
  {
2618
2618
  name: t?.name
2619
2619
  }
2620
2620
  );
2621
2621
  }
2622
2622
  }
2623
- var va = (t) => new Promise((e) => setTimeout(e, t));
2624
- async function ei(t, e) {
2623
+ var ma = (t) => new Promise((e) => setTimeout(e, t));
2624
+ async function Qr(t, e) {
2625
2625
  let n = 0, r = Math.max(1, e?.retry?.times ?? 1);
2626
2626
  for (; n < r; ) try {
2627
2627
  return { data: await t(), error: null };
@@ -2630,31 +2630,31 @@ async function ei(t, e) {
2630
2630
  if (i instanceof Error)
2631
2631
  return (!e?.exceptions || e.exceptions.some((s) => i instanceof s) == !1) && e?.catch?.(i), { data: null, error: i };
2632
2632
  throw e?.catch?.(i), i;
2633
- } else e?.retry?.delay && await va(e.retry.delay);
2633
+ } else e?.retry?.delay && await ma(e.retry.delay);
2634
2634
  }
2635
2635
  throw Error("Unreachable code");
2636
2636
  }
2637
- async function ga(t, e, n, r, i) {
2638
- let s = await ei(async () => await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2637
+ async function va(t, e, n, r, i) {
2638
+ let s = await Qr(async () => await fetch(t, { ...n, method: "POST", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2639
2639
  if (s.error) throw s.error;
2640
2640
  let a = s.data;
2641
2641
  if (!a.ok) throw Error(await a.text());
2642
2642
  return await a.json();
2643
2643
  }
2644
- async function wa(t, e, n, r, i) {
2645
- let s = await ei(async () => await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2644
+ async function ga(t, e, n, r, i) {
2645
+ let s = await Qr(async () => await fetch(t, { ...n, method: "PUT", body: e ? JSON.stringify(e) : void 0, headers: { ...n?.headers, "Content-Type": "application/json" } }), { retry: { times: r, delay: i } });
2646
2646
  if (s.error) throw s.error;
2647
2647
  let a = s.data;
2648
2648
  if (!a.ok) throw Error(await a.text());
2649
2649
  }
2650
- const je = 0xc3a5c85c97cb3127n, oe = 0xb492b66fbe98f273n, Be = 0x9ae16a3b2f90404fn, ti = 0xc949d7c7509e6557n, B = 0xffffffffffffffffn;
2650
+ const je = 0xc3a5c85c97cb3127n, oe = 0xb492b66fbe98f273n, Be = 0x9ae16a3b2f90404fn, ei = 0xc949d7c7509e6557n, B = 0xffffffffffffffffn;
2651
2651
  function p(t) {
2652
2652
  return t & B;
2653
2653
  }
2654
2654
  function A(t, e) {
2655
2655
  return e === 0 ? t & B : (t = t & B, (t >> BigInt(e) | t << BigInt(64 - e)) & B);
2656
2656
  }
2657
- function ka(t, e) {
2657
+ function wa(t, e) {
2658
2658
  return t = t & B, (t >> BigInt(e) | t << BigInt(64 - e)) & B;
2659
2659
  }
2660
2660
  function ct(t) {
@@ -2672,7 +2672,7 @@ function nr(t, e = 0) {
2672
2672
  e + r < t.length && (n |= BigInt(t[e + r]) << BigInt(r * 8));
2673
2673
  return n & 0xffffffffn;
2674
2674
  }
2675
- function ya(t) {
2675
+ function ka(t) {
2676
2676
  const e = 0x9ddfea08eb382d69n;
2677
2677
  let n = (t.first ^ t.second) * e & B;
2678
2678
  n ^= n >> 47n, n = n & B;
@@ -2680,13 +2680,13 @@ function ya(t) {
2680
2680
  return r ^= r >> 47n, r = r * e & B, r;
2681
2681
  }
2682
2682
  function We(t, e) {
2683
- return ya({ first: t, second: e });
2683
+ return ka({ first: t, second: e });
2684
2684
  }
2685
- function _a(t) {
2685
+ function ya(t) {
2686
2686
  const e = t.length;
2687
2687
  if (e > 8) {
2688
2688
  const n = b(t), r = b(t, e - 8);
2689
- return (We(n, ka(r + BigInt(e) & B, e)) ^ r) & B;
2689
+ return (We(n, wa(r + BigInt(e) & B, e)) ^ r) & B;
2690
2690
  }
2691
2691
  if (e >= 4) {
2692
2692
  const n = nr(t);
@@ -2694,23 +2694,23 @@ function _a(t) {
2694
2694
  }
2695
2695
  if (e > 0) {
2696
2696
  const n = BigInt(t[0]), r = BigInt(t[e >> 1]), i = BigInt(t[e - 1]), s = p(n + (r << 8n)), a = p(BigInt(e) + (i << 2n));
2697
- return p(ct(p(s * Be) ^ p(a * ti)) * Be);
2697
+ return p(ct(p(s * Be) ^ p(a * ei)) * Be);
2698
2698
  }
2699
2699
  return Be;
2700
2700
  }
2701
- function ba(t) {
2701
+ function _a(t) {
2702
2702
  const e = t.length, n = p(b(t) * oe), r = b(t, 8), i = p(b(t, e - 8) * Be), s = p(b(t, e - 16) * je);
2703
- return We(p(A(p(n - r), 43) + A(i, 30) + s), p(n + A(r ^ ti, 20) - i + BigInt(e)));
2703
+ return We(p(A(p(n - r), 43) + A(i, 30) + s), p(n + A(r ^ ei, 20) - i + BigInt(e)));
2704
2704
  }
2705
- function Ma(t, e, n, r, i, s) {
2705
+ function ba(t, e, n, r, i, s) {
2706
2706
  i = p(i + t), s = A(p(s + i + r), 21);
2707
2707
  const a = i;
2708
2708
  return i = p(i + e), i = p(i + n), s = p(s + A(i, 44)), { first: p(i + r), second: p(s + a) };
2709
2709
  }
2710
2710
  function _t(t, e, n, r) {
2711
- return Ma(b(t, e), b(t, e + 8), b(t, e + 16), b(t, e + 24), n, r);
2711
+ return ba(b(t, e), b(t, e + 8), b(t, e + 16), b(t, e + 24), n, r);
2712
2712
  }
2713
- function Ea(t) {
2713
+ function Ma(t) {
2714
2714
  const e = t.length, n = b(t, 24);
2715
2715
  let r = p(b(t) + p((BigInt(e) + b(t, e - 16)) * je)), i = A(p(r + n), 52), s = A(r, 37);
2716
2716
  r = p(r + b(t, 8)), s = p(s + A(r, 7)), r = p(r + b(t, 16));
@@ -2721,14 +2721,14 @@ function Ea(t) {
2721
2721
  const u = p(r + l), c = p(i + A(r, 31) + s), h = ct(p(p(a + c) * Be + p(u + o) * je));
2722
2722
  return p(ct(p(h * je + o)) * Be);
2723
2723
  }
2724
- function xa(t) {
2724
+ function Ea(t) {
2725
2725
  let e;
2726
2726
  typeof t == "string" ? e = new TextEncoder().encode(t) : e = t;
2727
2727
  const n = e.length;
2728
2728
  if (n <= 32)
2729
- return n <= 16 ? _a(e) : ba(e);
2729
+ return n <= 16 ? ya(e) : _a(e);
2730
2730
  if (n <= 64)
2731
- return Ea(e);
2731
+ return Ma(e);
2732
2732
  let r = b(e), i = p(b(e, n - 16) ^ oe), s = p(b(e, n - 56) ^ je), a = _t(e, n - 64, BigInt(n), i), o = _t(e, n - 32, p(BigInt(n) * oe), je);
2733
2733
  s = p(s + ct(a.second) * oe), r = p(A(p(s + r), 39) * oe), i = p(A(i, 33) * oe);
2734
2734
  let l = n - 1 & -64, u = 0;
@@ -2736,12 +2736,12 @@ function xa(t) {
2736
2736
  r = p(A(p(r + i + a.first + b(e, u + 16)), 37) * oe), i = p(A(p(i + a.second + b(e, u + 48)), 42) * oe), r ^= o.second, i ^= a.first, s = A(s ^ o.first, 33), a = _t(e, u, p(a.second * oe), p(r + o.first)), o = _t(e, u + 32, p(s + o.second), i), [s, r] = [r, s], u += 64, l -= 64;
2737
2737
  return We(We(a.first, o.first) + p(ct(i) * oe) + s, We(a.second, o.second) + r);
2738
2738
  }
2739
- function Sa(t) {
2740
- return xa(JSON.stringify(t)).toString();
2739
+ function xa(t) {
2740
+ return Ea(JSON.stringify(t)).toString();
2741
2741
  }
2742
2742
  let Yt;
2743
2743
  // @__NO_SIDE_EFFECTS__
2744
- function ni(t) {
2744
+ function ti(t) {
2745
2745
  return {
2746
2746
  lang: Yt?.lang,
2747
2747
  message: t?.message,
@@ -2749,20 +2749,20 @@ function ni(t) {
2749
2749
  abortPipeEarly: Yt?.abortPipeEarly
2750
2750
  };
2751
2751
  }
2752
- let Pa;
2752
+ let Sa;
2753
2753
  // @__NO_SIDE_EFFECTS__
2754
- function Ta(t) {
2755
- return Pa?.get(t);
2754
+ function Pa(t) {
2755
+ return Sa?.get(t);
2756
2756
  }
2757
- let Ia;
2757
+ let Ta;
2758
2758
  // @__NO_SIDE_EFFECTS__
2759
- function Aa(t) {
2760
- return Ia?.get(t);
2759
+ function Ia(t) {
2760
+ return Ta?.get(t);
2761
2761
  }
2762
- let Na;
2762
+ let Aa;
2763
2763
  // @__NO_SIDE_EFFECTS__
2764
- function Ca(t, e) {
2765
- return Na?.get(t)?.get(e);
2764
+ function Na(t, e) {
2765
+ return Aa?.get(t)?.get(e);
2766
2766
  }
2767
2767
  // @__NO_SIDE_EFFECTS__
2768
2768
  function Ge(t) {
@@ -2783,7 +2783,7 @@ function N(t, e, n, r, i) {
2783
2783
  lang: r.lang,
2784
2784
  abortEarly: r.abortEarly,
2785
2785
  abortPipeEarly: r.abortPipeEarly
2786
- }, u = t.kind === "schema", c = i?.message ?? t.message ?? /* @__PURE__ */ Ca(t.reference, l.lang) ?? (u ? /* @__PURE__ */ Aa(l.lang) : null) ?? r.message ?? /* @__PURE__ */ Ta(l.lang);
2786
+ }, u = t.kind === "schema", c = i?.message ?? t.message ?? /* @__PURE__ */ Na(t.reference, l.lang) ?? (u ? /* @__PURE__ */ Ia(l.lang) : null) ?? r.message ?? /* @__PURE__ */ Pa(l.lang);
2787
2787
  c !== void 0 && (l.message = typeof c == "function" ? c(l) : c), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];
2788
2788
  }
2789
2789
  // @__NO_SIDE_EFFECTS__
@@ -2792,12 +2792,12 @@ function Z(t) {
2792
2792
  version: 1,
2793
2793
  vendor: "valibot",
2794
2794
  validate(e) {
2795
- return t["~run"]({ value: e }, /* @__PURE__ */ ni());
2795
+ return t["~run"]({ value: e }, /* @__PURE__ */ ti());
2796
2796
  }
2797
2797
  };
2798
2798
  }
2799
2799
  // @__NO_SIDE_EFFECTS__
2800
- function Ra(t, e) {
2800
+ function Ca(t, e) {
2801
2801
  const n = [...new Set(t)];
2802
2802
  return n.length > 1 ? `(${n.join(` ${e} `)})` : n[0] ?? "never";
2803
2803
  }
@@ -2812,11 +2812,11 @@ var pn = class extends Error {
2812
2812
  }
2813
2813
  };
2814
2814
  // @__NO_SIDE_EFFECTS__
2815
- function O(t) {
2815
+ function z(t) {
2816
2816
  return {
2817
2817
  kind: "transformation",
2818
2818
  type: "args",
2819
- reference: O,
2819
+ reference: z,
2820
2820
  async: !1,
2821
2821
  schema: t,
2822
2822
  "~run"(e, n) {
@@ -2830,11 +2830,11 @@ function O(t) {
2830
2830
  };
2831
2831
  }
2832
2832
  // @__NO_SIDE_EFFECTS__
2833
- function ri(t, e) {
2833
+ function ni(t, e) {
2834
2834
  return {
2835
2835
  kind: "validation",
2836
2836
  type: "check",
2837
- reference: ri,
2837
+ reference: ni,
2838
2838
  async: !1,
2839
2839
  expects: null,
2840
2840
  requirement: t,
@@ -2845,11 +2845,11 @@ function ri(t, e) {
2845
2845
  };
2846
2846
  }
2847
2847
  // @__NO_SIDE_EFFECTS__
2848
- function ii(t, e) {
2848
+ function ri(t, e) {
2849
2849
  return {
2850
2850
  kind: "validation",
2851
2851
  type: "length",
2852
- reference: ii,
2852
+ reference: ri,
2853
2853
  async: !1,
2854
2854
  expects: `${t}`,
2855
2855
  requirement: t,
@@ -2923,19 +2923,19 @@ function F(t) {
2923
2923
  };
2924
2924
  }
2925
2925
  // @__NO_SIDE_EFFECTS__
2926
- function Da(t, e, n) {
2926
+ function Ra(t, e, n) {
2927
2927
  return typeof t.fallback == "function" ? t.fallback(e, n) : t.fallback;
2928
2928
  }
2929
2929
  // @__NO_SIDE_EFFECTS__
2930
- function si(t, e, n) {
2930
+ function ii(t, e, n) {
2931
2931
  return typeof t.default == "function" ? t.default(e, n) : t.default;
2932
2932
  }
2933
2933
  // @__NO_SIDE_EFFECTS__
2934
- function ai(t, e) {
2934
+ function si(t, e) {
2935
2935
  return {
2936
2936
  kind: "schema",
2937
2937
  type: "array",
2938
- reference: ai,
2938
+ reference: si,
2939
2939
  expects: "Array",
2940
2940
  async: !1,
2941
2941
  item: t,
@@ -2972,11 +2972,11 @@ function ai(t, e) {
2972
2972
  };
2973
2973
  }
2974
2974
  // @__NO_SIDE_EFFECTS__
2975
- function oi(t) {
2975
+ function ai(t) {
2976
2976
  return {
2977
2977
  kind: "schema",
2978
2978
  type: "boolean",
2979
- reference: oi,
2979
+ reference: ai,
2980
2980
  expects: "boolean",
2981
2981
  async: !1,
2982
2982
  message: t,
@@ -2989,11 +2989,11 @@ function oi(t) {
2989
2989
  };
2990
2990
  }
2991
2991
  // @__NO_SIDE_EFFECTS__
2992
- function li(t, e) {
2992
+ function oi(t, e) {
2993
2993
  return {
2994
2994
  kind: "schema",
2995
2995
  type: "custom",
2996
- reference: li,
2996
+ reference: oi,
2997
2997
  expects: "unknown",
2998
2998
  async: !1,
2999
2999
  check: t,
@@ -3078,7 +3078,7 @@ function W(t, e) {
3078
3078
  for (const s in this.entries) {
3079
3079
  const a = this.entries[s];
3080
3080
  if (s in i || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
3081
- const o = s in i ? i[s] : /* @__PURE__ */ si(a), l = a["~run"]({ value: o }, r);
3081
+ const o = s in i ? i[s] : /* @__PURE__ */ ii(a), l = a["~run"]({ value: o }, r);
3082
3082
  if (l.issues) {
3083
3083
  const u = {
3084
3084
  type: "object",
@@ -3095,7 +3095,7 @@ function W(t, e) {
3095
3095
  }
3096
3096
  }
3097
3097
  l.typed || (n.typed = !1), n.value[s] = l.value;
3098
- } else if (a.fallback !== void 0) n.value[s] = /* @__PURE__ */ Da(a);
3098
+ } else if (a.fallback !== void 0) n.value[s] = /* @__PURE__ */ Ra(a);
3099
3099
  else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (N(this, "key", n, r, {
3100
3100
  input: void 0,
3101
3101
  expected: `"${s}"`,
@@ -3128,7 +3128,7 @@ function T(t, e) {
3128
3128
  return /* @__PURE__ */ Z(this);
3129
3129
  },
3130
3130
  "~run"(n, r) {
3131
- return n.value === void 0 && (this.default !== void 0 && (n.value = /* @__PURE__ */ si(this, n, r)), n.value === void 0) ? (n.typed = !0, n) : this.wrapped["~run"](n, r);
3131
+ return n.value === void 0 && (this.default !== void 0 && (n.value = /* @__PURE__ */ ii(this, n, r)), n.value === void 0) ? (n.typed = !0, n) : this.wrapped["~run"](n, r);
3132
3132
  }
3133
3133
  };
3134
3134
  }
@@ -3150,11 +3150,11 @@ function me(t) {
3150
3150
  };
3151
3151
  }
3152
3152
  // @__NO_SIDE_EFFECTS__
3153
- function z(t, e) {
3153
+ function O(t, e) {
3154
3154
  return {
3155
3155
  kind: "schema",
3156
3156
  type: "tuple",
3157
- reference: z,
3157
+ reference: O,
3158
3158
  expects: "Array",
3159
3159
  async: !1,
3160
3160
  items: t,
@@ -3202,7 +3202,7 @@ function mn(t, e) {
3202
3202
  kind: "schema",
3203
3203
  type: "union",
3204
3204
  reference: mn,
3205
- expects: /* @__PURE__ */ Ra(t.map((n) => n.expects), "|"),
3205
+ expects: /* @__PURE__ */ Ca(t.map((n) => n.expects), "|"),
3206
3206
  async: !1,
3207
3207
  options: t,
3208
3208
  message: e,
@@ -3250,7 +3250,7 @@ function De(t) {
3250
3250
  };
3251
3251
  }
3252
3252
  function bt(t, e, n) {
3253
- const r = t["~run"]({ value: e }, /* @__PURE__ */ ni(n));
3253
+ const r = t["~run"]({ value: e }, /* @__PURE__ */ ti(n));
3254
3254
  if (r.issues) throw new pn(r.issues);
3255
3255
  return r.value;
3256
3256
  }
@@ -3274,7 +3274,8 @@ function w(...t) {
3274
3274
  }
3275
3275
  };
3276
3276
  }
3277
- var Oa = /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ ii(32)), za = /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ dn(1)), ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-90), /* @__PURE__ */ ft(90)), ci = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-180), /* @__PURE__ */ ft(180)), It = /* @__PURE__ */ W({ lat: ui, lng: ci }), fi = /* @__PURE__ */ W({ sw: It, ne: It }), La = /* @__PURE__ */ W({ bounds: fi, center: It, zoom: /* @__PURE__ */ P() }), He = /* @__PURE__ */ li((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Fa = /* @__PURE__ */ W({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), zoomScale: /* @__PURE__ */ mn([/* @__PURE__ */ Re(1), /* @__PURE__ */ Re(2), /* @__PURE__ */ Re(10)]) }), $a = /* @__PURE__ */ W({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(/* @__PURE__ */ oi())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(/* @__PURE__ */ De())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(/* @__PURE__ */ De())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([/* @__PURE__ */ P()])), /* @__PURE__ */ F(/* @__PURE__ */ De())) }), ir = /* @__PURE__ */ mn([/* @__PURE__ */ Re("idle"), /* @__PURE__ */ Re("move"), /* @__PURE__ */ Re("click")]), Va = /* @__PURE__ */ W({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(Fa)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(He)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(fi)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(It)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([])), /* @__PURE__ */ F(La)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ F(/* @__PURE__ */ De())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([He, ui, ci, /* @__PURE__ */ P()])), /* @__PURE__ */ F($a)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([ir, /* @__PURE__ */ I()])), /* @__PURE__ */ F(/* @__PURE__ */ De())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([ir, /* @__PURE__ */ I()])), /* @__PURE__ */ F(/* @__PURE__ */ De())) }), Zt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ z([/* @__PURE__ */ me(), He]))), Xt = /* @__PURE__ */ w(/* @__PURE__ */ W({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)) }), /* @__PURE__ */ ri((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), Ua = /* @__PURE__ */ W({ background: /* @__PURE__ */ T(/* @__PURE__ */ me()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ me()) }), sr = /* @__PURE__ */ W({ background: /* @__PURE__ */ T(/* @__PURE__ */ me()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ me()) }), ja = /* @__PURE__ */ W({ id: /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ dn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ W({ element: He, style: /* @__PURE__ */ T(sr), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ W({ element: /* @__PURE__ */ T(He), style: /* @__PURE__ */ T(Ua), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ W({ element: He, style: /* @__PURE__ */ T(sr), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) })) });
3277
+ var li = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-90), /* @__PURE__ */ ft(90)), ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-180), /* @__PURE__ */ ft(180)), It = /* @__PURE__ */ W({ lat: li, lng: ui }), ci = /* @__PURE__ */ W({ sw: It, ne: It }), Da = /* @__PURE__ */ W({ bounds: ci, center: It, zoom: /* @__PURE__ */ P() }), He = /* @__PURE__ */ oi((t) => t instanceof HTMLElement, "Must be an HTMLElement"), za = /* @__PURE__ */ W({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), zoomScale: /* @__PURE__ */ mn([/* @__PURE__ */ Re(1), /* @__PURE__ */ Re(2), /* @__PURE__ */ Re(10)]) }), Oa = /* @__PURE__ */ W({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(/* @__PURE__ */ ai())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(/* @__PURE__ */ De())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(/* @__PURE__ */ De())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([/* @__PURE__ */ P()])), /* @__PURE__ */ F(/* @__PURE__ */ De())) }), ir = /* @__PURE__ */ mn([/* @__PURE__ */ Re("idle"), /* @__PURE__ */ Re("move"), /* @__PURE__ */ Re("click")]), La = /* @__PURE__ */ W({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(za)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(He)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(ci)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(It)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([])), /* @__PURE__ */ F(Da)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ F(/* @__PURE__ */ De())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([He, li, ui, /* @__PURE__ */ P()])), /* @__PURE__ */ F(Oa)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([ir, /* @__PURE__ */ I()])), /* @__PURE__ */ F(/* @__PURE__ */ De())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([ir, /* @__PURE__ */ I()])), /* @__PURE__ */ F(/* @__PURE__ */ De())) }), Zt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ z(/* @__PURE__ */ O([/* @__PURE__ */ me(), He]))), Xt = /* @__PURE__ */ w(/* @__PURE__ */ W({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)) }), /* @__PURE__ */ ni((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), Fa = /* @__PURE__ */ W({ background: /* @__PURE__ */ T(/* @__PURE__ */ me()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ me()) }), sr = /* @__PURE__ */ W({ background: /* @__PURE__ */ T(/* @__PURE__ */ me()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ me()) }), $a = /* @__PURE__ */ W({ id: /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ dn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ H(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ W({ element: He, style: /* @__PURE__ */ T(sr), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ W({ element: /* @__PURE__ */ T(He), style: /* @__PURE__ */ T(Fa), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ W({ element: He, style: /* @__PURE__ */ T(sr), dimensions: /* @__PURE__ */ T(Xt), initialize: /* @__PURE__ */ T(Zt) })) }), Va = /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ ri(32)), Ua = /* @__PURE__ */ w(/* @__PURE__ */ me(), /* @__PURE__ */ dn(1));
3278
+ const ja = "1.3.0";
3278
3279
  class Ba {
3279
3280
  apiKey;
3280
3281
  apiJwt;
@@ -3282,7 +3283,7 @@ class Ba {
3282
3283
  markerStatesWorker;
3283
3284
  markerStatesWorkerClient;
3284
3285
  constructor(e, n) {
3285
- this.apiKey = e, this.apiJwt = n, this.markerStatesStore = /* @__PURE__ */ new Map(), this.markerStatesWorker = new ma(), this.markerStatesWorkerClient = new lr(this.markerStatesWorker);
3286
+ this.apiKey = e, this.apiJwt = n, this.markerStatesStore = /* @__PURE__ */ new Map(), this.markerStatesWorker = new da(), this.markerStatesWorkerClient = new lr(this.markerStatesWorker);
3286
3287
  }
3287
3288
  clearStates() {
3288
3289
  this.markerStatesStore.clear();
@@ -3296,7 +3297,7 @@ class Ba {
3296
3297
  async updateStates(e, n) {
3297
3298
  if (e.length == 0) return;
3298
3299
  e.sort((a, o) => a.properites.id.localeCompare(o.properites.id));
3299
- const r = e.map((a) => a.input), i = Sa(r);
3300
+ const r = e.map((a) => a.input), i = xa(r);
3300
3301
  let s = this.markerStatesStore.get(i);
3301
3302
  s == null && (s = await this.fetchStates(r, n), this.markerStatesStore.set(i, s));
3302
3303
  for (let a = 0; a < e.length; a++) {
@@ -3306,18 +3307,19 @@ class Ba {
3306
3307
  }
3307
3308
  async fetchStates(e, n) {
3308
3309
  if (e.length == 0) return [];
3309
- if (e.length == 1) return [[0, [[0, Kr.indexOf(fa)]]]];
3310
+ if (e.length == 1) return [{ zoom: 0, directions: [{ zoom: 0, angle: ca() }] }];
3310
3311
  const r = {
3311
3312
  key: this.apiKey,
3312
3313
  jwt: this.apiJwt,
3314
+ version: ja,
3313
3315
  input: e,
3314
3316
  parameters: n
3315
3317
  }, i = await this.markerStatesWorkerClient.invoke("fetch", r);
3316
3318
  return i.jwt && (this.apiJwt = i.jwt), i.states;
3317
3319
  }
3318
3320
  }
3319
- const ar = "1.2.29", Wa = "https://maps.api.arenarium.dev/auth", Ha = "https://maps.api.arenarium.dev/log", or = 500;
3320
- class hi {
3321
+ const ar = "1.3.0", Wa = "https://maps.api.arenarium.dev/auth", Ha = "https://maps.api.arenarium.dev/log", or = 500;
3322
+ class fi {
3321
3323
  apiKey;
3322
3324
  mapProvider;
3323
3325
  mapStateProvider;
@@ -3331,20 +3333,20 @@ class hi {
3331
3333
  markerStatesProcessDelay = or;
3332
3334
  markerStatesProcessTimeout = void 0;
3333
3335
  constructor(e, n, r, i) {
3334
- bt(Oa, e), bt(za, n), bt(Va, r), this.apiKey = e, this.mapProvider = r, this.mapStateProvider = new Ti(
3336
+ bt(Va, e), bt(Ua, n), bt(La, r), this.apiKey = e, this.mapProvider = r, this.mapStateProvider = new Pi(
3335
3337
  this.mapProvider,
3336
3338
  this.detached.bind(this),
3337
3339
  this.error.bind(this),
3338
3340
  this.onMapMove.bind(this),
3339
3341
  this.onMapIdle.bind(this),
3340
3342
  this.onMapClick.bind(this)
3341
- ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new Bi(), this.markerElementsManager = new da(this.mapProvider), this.markerStatesManager = new Ba(e, n), this.markerVisibilityProcessor = new Wt(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new Wt(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new Wt(this.onMarkersStateProcess.bind(this)), this.configuration = i;
3343
+ ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new ji(), this.markerElementsManager = new pa(this.mapProvider), this.markerStatesManager = new Ba(e, n), this.markerVisibilityProcessor = new Wt(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new Wt(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new Wt(this.onMarkersStateProcess.bind(this)), this.configuration = i;
3342
3344
  }
3343
3345
  //#region Core
3344
3346
  static async create(e, n, r) {
3345
- let a = (await ga(Wa, { key: e, version: ar })).jwt;
3347
+ let a = (await va(Wa, { key: e, version: ar })).jwt;
3346
3348
  if (!a) throw new Error("Failed to get api jwt");
3347
- return new hi(e, a, n, r);
3349
+ return new fi(e, a, n, r);
3348
3350
  }
3349
3351
  set configuration(e) {
3350
3352
  this.markerStatesProcessDelay = e?.process?.states?.delay ?? or, this.markerVisibilityManager.configuration = e, this.markerElementsManager.configuration = e;
@@ -3384,7 +3386,7 @@ class hi {
3384
3386
  stack: r.stack
3385
3387
  }
3386
3388
  };
3387
- await wa(Ha, i);
3389
+ await ga(Ha, i);
3388
3390
  } catch (i) {
3389
3391
  console.error(i);
3390
3392
  }
@@ -3454,11 +3456,11 @@ class hi {
3454
3456
  const u = o.getBoundingClientRect();
3455
3457
  return { width: u.width, height: u.height, padding: Ln };
3456
3458
  } else
3457
- return { width: zn, height: zn, padding: Ln };
3459
+ return { width: On, height: On, padding: Ln };
3458
3460
  }, a = (o, l) => {
3459
3461
  if (l) return l;
3460
3462
  const u = o.getBoundingClientRect();
3461
- return { width: u.width, height: u.height, padding: Math.max(Math.round(Math.min(u.width, u.height) / 4), Vi) };
3463
+ return { width: u.width, height: u.height, padding: Math.max(Math.round(Math.min(u.width, u.height) / 4), $i) };
3462
3464
  };
3463
3465
  for (const o of r) {
3464
3466
  const l = o.id, u = o.lat, c = o.lng, h = o.rank;
@@ -3482,7 +3484,7 @@ class hi {
3482
3484
  style: o.popup.style,
3483
3485
  dimensions: a(o.popup.element, o.popup.dimensions)
3484
3486
  });
3485
- const v = new xi(l, u, c, h, f, d, m);
3487
+ const v = new Ei(l, u, c, h, f, d, m);
3486
3488
  n.push(v);
3487
3489
  }
3488
3490
  return n.forEach((o) => this.markers.set(o.properites.id, o)), n.sort((o, l) => l.properites.rank - o.properites.rank), n;
@@ -3491,7 +3493,7 @@ class hi {
3491
3493
  }
3492
3494
  }
3493
3495
  async updateMarkers(e) {
3494
- bt(/* @__PURE__ */ ai(ja), e);
3496
+ bt(/* @__PURE__ */ si($a), e);
3495
3497
  try {
3496
3498
  const n = this.mapProvider.getParameters(), r = this.getMarkers(e);
3497
3499
  await this.markerVisibilityManager.updateMarkers(n, r), this.mapStateProvider.start(), this.markerVisibilityProcessor.run(), this.markerStateProcessor.run(), this.markerElementsProcessor.run();
@@ -3531,5 +3533,5 @@ class hi {
3531
3533
  //#endregion
3532
3534
  }
3533
3535
  export {
3534
- hi as MapManager
3536
+ fi as MapManager
3535
3537
  };