liveroom-client-element 0.0.6 → 0.0.8

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.
@@ -1,7 +1,7 @@
1
1
  var je = Object.defineProperty;
2
2
  var xe = (s, n, t) => n in s ? je(s, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[n] = t;
3
3
  var f = (s, n, t) => (xe(s, typeof n != "symbol" ? n + "" : n, t), t);
4
- function ht() {
4
+ function ut() {
5
5
  }
6
6
  function oe(s) {
7
7
  return s();
@@ -9,7 +9,7 @@ function oe(s) {
9
9
  function Zt() {
10
10
  return /* @__PURE__ */ Object.create(null);
11
11
  }
12
- function ut(s) {
12
+ function dt(s) {
13
13
  s.forEach(oe);
14
14
  }
15
15
  function ae(s) {
@@ -21,17 +21,17 @@ function Se(s, n) {
21
21
  function Me(s) {
22
22
  return Object.keys(s).length === 0;
23
23
  }
24
- function B(s, n) {
24
+ function W(s, n) {
25
25
  s.appendChild(n);
26
26
  }
27
- function Ne(s, n, t) {
28
- const e = Le(s);
27
+ function Le(s, n, t) {
28
+ const e = Ne(s);
29
29
  if (!e.getElementById(n)) {
30
- const r = G("style");
30
+ const r = Q("style");
31
31
  r.id = n, r.textContent = t, Re(e, r);
32
32
  }
33
33
  }
34
- function Le(s) {
34
+ function Ne(s) {
35
35
  if (!s)
36
36
  return document;
37
37
  const n = s.getRootNode ? s.getRootNode() : s.ownerDocument;
@@ -42,7 +42,7 @@ function Le(s) {
42
42
  ) : s.ownerDocument;
43
43
  }
44
44
  function Re(s, n) {
45
- return B(
45
+ return W(
46
46
  /** @type {Document} */
47
47
  s.head || s,
48
48
  n
@@ -51,10 +51,10 @@ function Re(s, n) {
51
51
  function Ct(s, n, t) {
52
52
  s.insertBefore(n, t || null);
53
53
  }
54
- function pt(s) {
54
+ function gt(s) {
55
55
  s.parentNode && s.parentNode.removeChild(s);
56
56
  }
57
- function G(s) {
57
+ function Q(s) {
58
58
  return document.createElement(s);
59
59
  }
60
60
  function Qt(s) {
@@ -66,7 +66,7 @@ function he(s) {
66
66
  function jt() {
67
67
  return he(" ");
68
68
  }
69
- function x(s, n, t) {
69
+ function S(s, n, t) {
70
70
  t == null ? s.removeAttribute(n) : s.getAttribute(n) !== t && s.setAttribute(n, t);
71
71
  }
72
72
  function He(s) {
@@ -76,7 +76,7 @@ function Pe(s, n) {
76
76
  n = "" + n, s.data !== n && (s.data = /** @type {string} */
77
77
  n);
78
78
  }
79
- function Q(s, n, t, e) {
79
+ function st(s, n, t, e) {
80
80
  t == null ? s.style.removeProperty(n) : s.style.setProperty(n, t, e ? "important" : "");
81
81
  }
82
82
  function Ie(s) {
@@ -88,14 +88,14 @@ function Ie(s) {
88
88
  }
89
89
  ), n;
90
90
  }
91
- let ct;
92
- function it(s) {
93
- ct = s;
91
+ let pt;
92
+ function ht(s) {
93
+ pt = s;
94
94
  }
95
95
  function ce() {
96
- if (!ct)
96
+ if (!pt)
97
97
  throw new Error("Function called outside component initialization");
98
- return ct;
98
+ return pt;
99
99
  }
100
100
  function De(s) {
101
101
  ce().$$.on_mount.push(s);
@@ -103,53 +103,53 @@ function De(s) {
103
103
  function Ue(s) {
104
104
  ce().$$.on_destroy.push(s);
105
105
  }
106
- const tt = [], Mt = [];
107
- let et = [];
106
+ const rt = [], Mt = [];
107
+ let it = [];
108
108
  const Kt = [], ze = /* @__PURE__ */ Promise.resolve();
109
- let Nt = !1;
109
+ let Lt = !1;
110
110
  function Je() {
111
- Nt || (Nt = !0, ze.then(bt));
111
+ Lt || (Lt = !0, ze.then(bt));
112
112
  }
113
- function Lt(s) {
114
- et.push(s);
113
+ function Nt(s) {
114
+ it.push(s);
115
115
  }
116
116
  const xt = /* @__PURE__ */ new Set();
117
- let K = 0;
117
+ let nt = 0;
118
118
  function bt() {
119
- if (K !== 0)
119
+ if (nt !== 0)
120
120
  return;
121
- const s = ct;
121
+ const s = pt;
122
122
  do {
123
123
  try {
124
- for (; K < tt.length; ) {
125
- const n = tt[K];
126
- K++, it(n), Ve(n.$$);
124
+ for (; nt < rt.length; ) {
125
+ const n = rt[nt];
126
+ nt++, ht(n), Ve(n.$$);
127
127
  }
128
128
  } catch (n) {
129
- throw tt.length = 0, K = 0, n;
129
+ throw rt.length = 0, nt = 0, n;
130
130
  }
131
- for (it(null), tt.length = 0, K = 0; Mt.length; )
131
+ for (ht(null), rt.length = 0, nt = 0; Mt.length; )
132
132
  Mt.pop()();
133
- for (let n = 0; n < et.length; n += 1) {
134
- const t = et[n];
133
+ for (let n = 0; n < it.length; n += 1) {
134
+ const t = it[n];
135
135
  xt.has(t) || (xt.add(t), t());
136
136
  }
137
- et.length = 0;
138
- } while (tt.length);
137
+ it.length = 0;
138
+ } while (rt.length);
139
139
  for (; Kt.length; )
140
140
  Kt.pop()();
141
- Nt = !1, xt.clear(), it(s);
141
+ Lt = !1, xt.clear(), ht(s);
142
142
  }
143
143
  function Ve(s) {
144
144
  if (s.fragment !== null) {
145
- s.update(), ut(s.before_update);
145
+ s.update(), dt(s.before_update);
146
146
  const n = s.dirty;
147
- s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, n), s.after_update.forEach(Lt);
147
+ s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, n), s.after_update.forEach(Nt);
148
148
  }
149
149
  }
150
150
  function Be(s) {
151
151
  const n = [], t = [];
152
- et.forEach((e) => s.indexOf(e) === -1 ? n.push(e) : t.push(e)), t.forEach((e) => e()), et = n;
152
+ it.forEach((e) => s.indexOf(e) === -1 ? n.push(e) : t.push(e)), t.forEach((e) => e()), it = n;
153
153
  }
154
154
  const Fe = /* @__PURE__ */ new Set();
155
155
  function le(s, n) {
@@ -166,51 +166,51 @@ function Ge(s, n, t, e, r, i, o, h, p, d, b, _) {
166
166
  const R = {};
167
167
  for (; j--; )
168
168
  R[s[j].key] = j;
169
- const N = [], k = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), dt = [];
169
+ const M = [], X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), k = [];
170
170
  for (j = T; j--; ) {
171
- const S = _(r, i, j), U = t(S);
172
- let z = o.get(U);
173
- z ? e && dt.push(() => z.p(S, n)) : (z = d(U, S), z.c()), k.set(U, N[j] = z), U in R && X.set(U, Math.abs(j - R[U]));
171
+ const x = _(r, i, j), z = t(x);
172
+ let J = o.get(z);
173
+ J ? e && k.push(() => J.p(x, n)) : (J = d(z, x), J.c()), X.set(z, M[j] = J), z in R && Z.set(z, Math.abs(j - R[z]));
174
174
  }
175
- const gt = /* @__PURE__ */ new Set(), vt = /* @__PURE__ */ new Set();
176
- function st(S) {
177
- le(S, 1), S.m(h, b), o.set(S.key, S), b = S.first, T--;
175
+ const B = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set();
176
+ function q(x) {
177
+ le(x, 1), x.m(h, b), o.set(x.key, x), b = x.first, T--;
178
178
  }
179
179
  for (; A && T; ) {
180
- const S = N[T - 1], U = s[A - 1], z = S.key, q = U.key;
181
- S === U ? (b = S.first, A--, T--) : k.has(q) ? !o.has(z) || gt.has(z) ? st(S) : vt.has(q) ? A-- : X.get(z) > X.get(q) ? (vt.add(z), st(S)) : (gt.add(q), A--) : (p(U, o), A--);
180
+ const x = M[T - 1], z = s[A - 1], J = x.key, K = z.key;
181
+ x === z ? (b = x.first, A--, T--) : X.has(K) ? !o.has(J) || B.has(J) ? q(x) : U.has(K) ? A-- : Z.get(J) > Z.get(K) ? (U.add(J), q(x)) : (B.add(K), A--) : (p(z, o), A--);
182
182
  }
183
183
  for (; A--; ) {
184
- const S = s[A];
185
- k.has(S.key) || p(S, o);
184
+ const x = s[A];
185
+ X.has(x.key) || p(x, o);
186
186
  }
187
187
  for (; T; )
188
- st(N[T - 1]);
189
- return ut(dt), N;
188
+ q(M[T - 1]);
189
+ return dt(k), M;
190
190
  }
191
191
  function Xe(s, n, t) {
192
192
  const { fragment: e, after_update: r } = s.$$;
193
- e && e.m(n, t), Lt(() => {
193
+ e && e.m(n, t), Nt(() => {
194
194
  const i = s.$$.on_mount.map(oe).filter(ae);
195
- s.$$.on_destroy ? s.$$.on_destroy.push(...i) : ut(i), s.$$.on_mount = [];
196
- }), r.forEach(Lt);
195
+ s.$$.on_destroy ? s.$$.on_destroy.push(...i) : dt(i), s.$$.on_mount = [];
196
+ }), r.forEach(Nt);
197
197
  }
198
198
  function qe(s, n) {
199
199
  const t = s.$$;
200
- t.fragment !== null && (Be(t.after_update), ut(t.on_destroy), t.fragment && t.fragment.d(n), t.on_destroy = t.fragment = null, t.ctx = []);
200
+ t.fragment !== null && (Be(t.after_update), dt(t.on_destroy), t.fragment && t.fragment.d(n), t.on_destroy = t.fragment = null, t.ctx = []);
201
201
  }
202
202
  function Ye(s, n) {
203
- s.$$.dirty[0] === -1 && (tt.push(s), Je(), s.$$.dirty.fill(0)), s.$$.dirty[n / 31 | 0] |= 1 << n % 31;
203
+ s.$$.dirty[0] === -1 && (rt.push(s), Je(), s.$$.dirty.fill(0)), s.$$.dirty[n / 31 | 0] |= 1 << n % 31;
204
204
  }
205
205
  function Ze(s, n, t, e, r, i, o, h = [-1]) {
206
- const p = ct;
207
- it(s);
206
+ const p = pt;
207
+ ht(s);
208
208
  const d = s.$$ = {
209
209
  fragment: null,
210
210
  ctx: [],
211
211
  // state
212
212
  props: i,
213
- update: ht,
213
+ update: ut,
214
214
  not_equal: r,
215
215
  bound: Zt(),
216
216
  // lifecycle
@@ -231,15 +231,15 @@ function Ze(s, n, t, e, r, i, o, h = [-1]) {
231
231
  if (d.ctx = t ? t(s, n.props || {}, (_, A, ...T) => {
232
232
  const j = T.length ? T[0] : A;
233
233
  return d.ctx && r(d.ctx[_], d.ctx[_] = j) && (!d.skip_bound && d.bound[_] && d.bound[_](j), b && Ye(s, _)), A;
234
- }) : [], d.update(), b = !0, ut(d.before_update), d.fragment = e ? e(d.ctx) : !1, n.target) {
234
+ }) : [], d.update(), b = !0, dt(d.before_update), d.fragment = e ? e(d.ctx) : !1, n.target) {
235
235
  if (n.hydrate) {
236
236
  const _ = He(n.target);
237
- d.fragment && d.fragment.l(_), _.forEach(pt);
237
+ d.fragment && d.fragment.l(_), _.forEach(gt);
238
238
  } else
239
239
  d.fragment && d.fragment.c();
240
240
  n.intro && le(s.$$.fragment), Xe(s, n.target, n.anchor), bt();
241
241
  }
242
- it(p);
242
+ ht(p);
243
243
  }
244
244
  let ue;
245
245
  typeof HTMLElement == "function" && (ue = class extends HTMLElement {
@@ -285,7 +285,7 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
285
285
  let o;
286
286
  return {
287
287
  c: function() {
288
- o = G("slot"), i !== "default" && x(o, "name", i);
288
+ o = Q("slot"), i !== "default" && S(o, "name", i);
289
289
  },
290
290
  /**
291
291
  * @param {HTMLElement} target
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
295
295
  Ct(d, o, b);
296
296
  },
297
297
  d: function(d) {
298
- d && pt(o);
298
+ d && gt(o);
299
299
  }
300
300
  };
301
301
  };
@@ -441,7 +441,7 @@ class Ke {
441
441
  }
442
442
  /** @returns {void} */
443
443
  $destroy() {
444
- qe(this, 1), this.$destroy = ht;
444
+ qe(this, 1), this.$destroy = ut;
445
445
  }
446
446
  /**
447
447
  * @template {Extract<keyof Events, string>} K
@@ -451,7 +451,7 @@ class Ke {
451
451
  */
452
452
  $on(n, t) {
453
453
  if (!ae(t))
454
- return ht;
454
+ return ut;
455
455
  const e = this.$$.callbacks[n] || (this.$$.callbacks[n] = []);
456
456
  return e.push(t), () => {
457
457
  const r = e.indexOf(t);
@@ -468,19 +468,19 @@ class Ke {
468
468
  }
469
469
  const ts = "4";
470
470
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ts);
471
- const { isArray: es } = Array, ss = Object.keys, lt = (s) => {
471
+ const { isArray: es } = Array, ss = Object.keys, ft = (s) => {
472
472
  if (!s)
473
473
  return s;
474
474
  if (es(s)) {
475
475
  const n = [], t = s.length;
476
476
  for (let e = 0; e < t; e++)
477
- n.push(lt(s[e]));
477
+ n.push(ft(s[e]));
478
478
  return n;
479
479
  } else if (typeof s == "object") {
480
480
  const n = ss(s), t = n.length, e = {};
481
481
  for (let r = 0; r < t; r++) {
482
482
  const i = n[r];
483
- e[i] = lt(s[i]);
483
+ e[i] = ft(s[i]);
484
484
  }
485
485
  return e;
486
486
  }
@@ -533,7 +533,7 @@ const { isArray: pe } = Array, O = (s, n) => {
533
533
  else
534
534
  throw new Error("NOT_FOUND");
535
535
  return { val: s, obj: e, key: r };
536
- }, ft = (s) => pe(s.obj) && typeof s.key == "number", kt = (s) => typeof s.obj == "object" && typeof s.key == "string";
536
+ }, vt = (s) => pe(s.obj) && typeof s.key == "number", kt = (s) => typeof s.obj == "object" && typeof s.key == "string";
537
537
  class It extends D {
538
538
  constructor(t, e) {
539
539
  super(t);
@@ -547,7 +547,7 @@ class It extends D {
547
547
  return 0;
548
548
  }
549
549
  apply(t) {
550
- const { val: e, key: r, obj: i } = O(t, this.path), o = lt(this.value);
550
+ const { val: e, key: r, obj: i } = O(t, this.path), o = ft(this.value);
551
551
  if (!i)
552
552
  t = o;
553
553
  else if (typeof r == "string")
@@ -594,7 +594,7 @@ class fe extends D {
594
594
  const e = O(t, this.path);
595
595
  if (e.val === void 0)
596
596
  throw new Error("NOT_FOUND");
597
- return kt(e) ? delete e.obj[e.key] : ft(e) ? e.val !== void 0 && e.obj.splice(e.key, 1) : t = null, { doc: t, old: e.val };
597
+ return kt(e) ? delete e.obj[e.key] : vt(e) ? e.val !== void 0 && e.obj.splice(e.key, 1) : t = null, { doc: t, old: e.val };
598
598
  }
599
599
  toJson(t) {
600
600
  const e = {
@@ -629,7 +629,7 @@ class fs extends D {
629
629
  const e = O(t, this.path);
630
630
  if (e.val === void 0)
631
631
  throw new Error("NOT_FOUND");
632
- return kt(e) ? e.obj[e.key] = this.value : ft(e) ? e.obj[e.key] = this.value : t = this.value, { doc: t, old: e.val };
632
+ return kt(e) ? e.obj[e.key] = this.value : vt(e) ? e.obj[e.key] = this.value : t = this.value, { doc: t, old: e.val };
633
633
  }
634
634
  toJson(t) {
635
635
  const e = {
@@ -694,7 +694,7 @@ class gs extends D {
694
694
  const { val: e } = O(t, this.from);
695
695
  if (e === void 0)
696
696
  throw new Error("NOT_FOUND");
697
- return new It(this.path, lt(e)).apply(t);
697
+ return new It(this.path, ft(e)).apply(t);
698
698
  }
699
699
  toJson(t) {
700
700
  return {
@@ -717,7 +717,7 @@ class P extends D {
717
717
  return { doc: n };
718
718
  }
719
719
  }
720
- const $t = (s, n) => {
720
+ const Et = (s, n) => {
721
721
  if (s === n)
722
722
  return !0;
723
723
  if (s && n && typeof s == "object" && typeof n == "object") {
@@ -728,7 +728,7 @@ const $t = (s, n) => {
728
728
  if (t = s.length, t !== n.length)
729
729
  return !1;
730
730
  for (e = t; e-- !== 0; )
731
- if (!$t(s[e], n[e]))
731
+ if (!Et(s[e], n[e]))
732
732
  return !1;
733
733
  return !0;
734
734
  }
@@ -736,7 +736,7 @@ const $t = (s, n) => {
736
736
  return !1;
737
737
  for (e = t; e-- !== 0; ) {
738
738
  const i = r[e];
739
- if (!$t(s[i], n[i]))
739
+ if (!Et(s[i], n[i]))
740
740
  return !1;
741
741
  }
742
742
  return !0;
@@ -760,7 +760,7 @@ class vs extends P {
760
760
  const { val: e } = O(t, this.path);
761
761
  if (e === void 0)
762
762
  return !!this.not;
763
- const r = $t(e, this.value);
763
+ const r = Et(e, this.value);
764
764
  return this.not ? !r : r;
765
765
  }
766
766
  toJson(t) {
@@ -921,11 +921,11 @@ class _s extends D {
921
921
  t.encodeArrayHeader(r ? 4 : 5), t.writer.u8(7), t.encodeArray(this.path), t.encodeNumber(this.pos), r ? t.encodeString(this.str) : (t.writer.u8(0), t.encodeNumber(this.len));
922
922
  }
923
923
  }
924
- const { isArray: bs } = Array, Rt = (s) => !!s && typeof s == "object" && typeof s.text == "string", Ht = (s) => !!s && typeof s == "object" && bs(s.children), $s = (s, n) => {
924
+ const { isArray: bs } = Array, Rt = (s) => !!s && typeof s == "object" && typeof s.text == "string", Ht = (s) => !!s && typeof s == "object" && bs(s.children), Es = (s, n) => {
925
925
  const t = new RegExp(s, n ? "i" : void 0);
926
926
  return (e) => t.test(e);
927
927
  };
928
- class Es extends D {
928
+ class $s extends D {
929
929
  constructor(t, e, r) {
930
930
  super(t);
931
931
  f(this, "pos");
@@ -943,7 +943,7 @@ class Es extends D {
943
943
  if (e.val === void 0)
944
944
  throw new Error("NOT_FOUND");
945
945
  const r = this.split(e.val);
946
- return kt(e) ? e.obj[e.key] = r : ft(e) ? (e.obj[e.key] = r[0], e.obj.splice(e.key + 1, 0, r[1])) : t = r, { doc: t, old: e.val };
946
+ return kt(e) ? e.obj[e.key] = r : vt(e) ? (e.obj[e.key] = r[0], e.obj.splice(e.key + 1, 0, r[1])) : t = r, { doc: t, old: e.val };
947
947
  }
948
948
  split(t) {
949
949
  if (typeof t == "string") {
@@ -1023,7 +1023,7 @@ class Cs extends D {
1023
1023
  }
1024
1024
  apply(t) {
1025
1025
  const e = O(t, this.path);
1026
- if (!ft(e))
1026
+ if (!vt(e))
1027
1027
  throw new Error("INVALID_TARGET");
1028
1028
  if (e.key <= 0)
1029
1029
  throw new Error("INVALID_KEY");
@@ -1065,7 +1065,7 @@ class As extends D {
1065
1065
  }
1066
1066
  apply(t) {
1067
1067
  const e = O(t, this.path);
1068
- return ft(e) ? e.val !== void 0 && (e.obj[e.key] = this.extend(e.val)) : kt(e) ? e.obj[e.key] = this.extend(e.val) : t = this.extend(t), { doc: t };
1068
+ return vt(e) ? e.val !== void 0 && (e.obj[e.key] = this.extend(e.val)) : kt(e) ? e.obj[e.key] = this.extend(e.val) : t = this.extend(t), { doc: t };
1069
1069
  }
1070
1070
  extend(t) {
1071
1071
  if (ks(t) || typeof t != "object" || !t)
@@ -1263,7 +1263,7 @@ class Ms extends P {
1263
1263
  t.encodeArrayHeader(this.not ? 4 : 3), t.writer.u8(41), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeNumber(this.len), this.not && t.writer.u8(1);
1264
1264
  }
1265
1265
  }
1266
- class Ns extends P {
1266
+ class Ls extends P {
1267
1267
  constructor(t, e, r) {
1268
1268
  super(t);
1269
1269
  f(this, "value");
@@ -1300,7 +1300,7 @@ class Ns extends P {
1300
1300
  t.encodeArrayHeader(r ? 4 : 3), t.writer.u8(30), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeString(this.value), r && t.writer.u8(1);
1301
1301
  }
1302
1302
  }
1303
- class Ls extends P {
1303
+ class Ns extends P {
1304
1304
  constructor(t, e, r) {
1305
1305
  super(t);
1306
1306
  f(this, "value");
@@ -1389,7 +1389,7 @@ class Hs extends P {
1389
1389
  test(t) {
1390
1390
  const { val: e } = O(t, this.path);
1391
1391
  for (const r of this.value)
1392
- if ($t(e, r))
1392
+ if (Et(e, r))
1393
1393
  return !0;
1394
1394
  return !1;
1395
1395
  }
@@ -1682,7 +1682,7 @@ const Fs = (s, n) => {
1682
1682
  case "str_del":
1683
1683
  return new _s(w(s.path), s.pos, s.str, s.len);
1684
1684
  case "split":
1685
- return new Es(w(s.path), s.pos, s.props || null);
1685
+ return new $s(w(s.path), s.pos, s.props || null);
1686
1686
  case "merge":
1687
1687
  return new Cs(w(s.path), s.pos, s.props || null);
1688
1688
  case "extend":
@@ -1707,13 +1707,13 @@ const Fs = (s, n) => {
1707
1707
  case "test_string_len":
1708
1708
  return new Ms(w(s.path), s.len, !!s.not);
1709
1709
  case "contains":
1710
- return new Ns(w(s.path), s.value, !!s.ignore_case);
1711
- case "ends":
1712
1710
  return new Ls(w(s.path), s.value, !!s.ignore_case);
1711
+ case "ends":
1712
+ return new Ns(w(s.path), s.value, !!s.ignore_case);
1713
1713
  case "starts":
1714
1714
  return new Rs(w(s.path), s.value, !!s.ignore_case);
1715
1715
  case "matches":
1716
- return new Js(w(s.path), s.value, !!s.ignore_case, n.createMatcher || $s);
1716
+ return new Js(w(s.path), s.value, !!s.ignore_case, n.createMatcher || Es);
1717
1717
  case "in":
1718
1718
  return new Hs(w(s.path), s.value);
1719
1719
  case "less":
@@ -1737,7 +1737,7 @@ const Fs = (s, n) => {
1737
1737
  }
1738
1738
  };
1739
1739
  function Ws(s, n, t) {
1740
- t.mutate || (s = lt(s));
1740
+ t.mutate || (s = ft(s));
1741
1741
  const e = [], r = n.length;
1742
1742
  for (let i = 0; i < r; i++) {
1743
1743
  const h = Fs(n[i], t).apply(s);
@@ -1745,15 +1745,15 @@ function Ws(s, n, t) {
1745
1745
  }
1746
1746
  return { doc: s, res: e };
1747
1747
  }
1748
- var ot = (s) => typeof s == "function" ? s : function() {
1748
+ var ct = (s) => typeof s == "function" ? s : function() {
1749
1749
  return s;
1750
- }, Gs = typeof self < "u" ? self : null, rt = typeof window < "u" ? window : null, at = Gs || rt || at, Xs = "2.0.0", J = { connecting: 0, open: 1, closing: 2, closed: 3 }, qs = 1e4, Ys = 1e3, I = {
1750
+ }, Gs = typeof self < "u" ? self : null, at = typeof window < "u" ? window : null, lt = Gs || at || lt, Xs = "2.0.0", V = { connecting: 0, open: 1, closing: 2, closed: 3 }, qs = 1e4, Ys = 1e3, I = {
1751
1751
  closed: "closed",
1752
1752
  errored: "errored",
1753
1753
  joined: "joined",
1754
1754
  joining: "joining",
1755
1755
  leaving: "leaving"
1756
- }, F = {
1756
+ }, G = {
1757
1757
  close: "phx_close",
1758
1758
  error: "phx_error",
1759
1759
  join: "phx_join",
@@ -1824,7 +1824,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
1824
1824
  }
1825
1825
  }, Qs = class {
1826
1826
  constructor(s, n, t) {
1827
- this.state = I.closed, this.topic = s, this.params = ot(n || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new yt(this, F.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new de(() => {
1827
+ this.state = I.closed, this.topic = s, this.params = ct(n || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new yt(this, G.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new de(() => {
1828
1828
  this.socket.isConnected() && this.rejoin();
1829
1829
  }, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(this.socket.onOpen(() => {
1830
1830
  this.rejoinTimer.reset(), this.isErrored() && this.rejoin();
@@ -1837,8 +1837,8 @@ var ot = (s) => typeof s == "function" ? s : function() {
1837
1837
  }), this.onError((e) => {
1838
1838
  this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, e), this.isJoining() && this.joinPush.reset(), this.state = I.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1839
1839
  }), this.joinPush.receive("timeout", () => {
1840
- this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new yt(this, F.leave, ot({}), this.timeout).send(), this.state = I.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1841
- }), this.on(F.reply, (e, r) => {
1840
+ this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new yt(this, G.leave, ct({}), this.timeout).send(), this.state = I.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1841
+ }), this.on(G.reply, (e, r) => {
1842
1842
  this.trigger(this.replyEventName(r), e);
1843
1843
  });
1844
1844
  }
@@ -1848,10 +1848,10 @@ var ot = (s) => typeof s == "function" ? s : function() {
1848
1848
  return this.timeout = s, this.joinedOnce = !0, this.rejoin(), this.joinPush;
1849
1849
  }
1850
1850
  onClose(s) {
1851
- this.on(F.close, s);
1851
+ this.on(G.close, s);
1852
1852
  }
1853
1853
  onError(s) {
1854
- return this.on(F.error, (n) => s(n));
1854
+ return this.on(G.error, (n) => s(n));
1855
1855
  }
1856
1856
  on(s, n) {
1857
1857
  let t = this.bindingRef++;
@@ -1874,8 +1874,8 @@ var ot = (s) => typeof s == "function" ? s : function() {
1874
1874
  leave(s = this.timeout) {
1875
1875
  this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = I.leaving;
1876
1876
  let n = () => {
1877
- this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(F.close, "leave");
1878
- }, t = new yt(this, F.leave, ot({}), s);
1877
+ this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(G.close, "leave");
1878
+ }, t = new yt(this, G.leave, ct({}), s);
1879
1879
  return t.receive("ok", () => n()).receive("timeout", () => n()), t.send(), this.canPush() || t.trigger("ok", {}), t;
1880
1880
  }
1881
1881
  onMessage(s, n, t) {
@@ -1916,13 +1916,13 @@ var ot = (s) => typeof s == "function" ? s : function() {
1916
1916
  isLeaving() {
1917
1917
  return this.state === I.leaving;
1918
1918
  }
1919
- }, Et = class {
1919
+ }, $t = class {
1920
1920
  static request(s, n, t, e, r, i, o) {
1921
- if (at.XDomainRequest) {
1922
- let h = new at.XDomainRequest();
1921
+ if (lt.XDomainRequest) {
1922
+ let h = new lt.XDomainRequest();
1923
1923
  return this.xdomainRequest(h, s, n, e, r, i, o);
1924
1924
  } else {
1925
- let h = new at.XMLHttpRequest();
1925
+ let h = new lt.XMLHttpRequest();
1926
1926
  return this.xhrRequest(h, s, n, t, e, r, i, o);
1927
1927
  }
1928
1928
  }
@@ -1972,22 +1972,22 @@ var ot = (s) => typeof s == "function" ? s : function() {
1972
1972
  }, this.onerror = function() {
1973
1973
  }, this.onmessage = function() {
1974
1974
  }, this.onclose = function() {
1975
- }, this.pollEndpoint = this.normalizeEndpoint(s), this.readyState = J.connecting, this.poll();
1975
+ }, this.pollEndpoint = this.normalizeEndpoint(s), this.readyState = V.connecting, this.poll();
1976
1976
  }
1977
1977
  normalizeEndpoint(s) {
1978
1978
  return s.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + Pt.websocket), "$1/" + Pt.longpoll);
1979
1979
  }
1980
1980
  endpointURL() {
1981
- return Et.appendParams(this.pollEndpoint, { token: this.token });
1981
+ return $t.appendParams(this.pollEndpoint, { token: this.token });
1982
1982
  }
1983
1983
  closeAndRetry(s, n, t) {
1984
- this.close(s, n, t), this.readyState = J.connecting;
1984
+ this.close(s, n, t), this.readyState = V.connecting;
1985
1985
  }
1986
1986
  ontimeout() {
1987
1987
  this.onerror("timeout"), this.closeAndRetry(1005, "timeout", !1);
1988
1988
  }
1989
1989
  isActive() {
1990
- return this.readyState === J.open || this.readyState === J.connecting;
1990
+ return this.readyState === V.open || this.readyState === V.connecting;
1991
1991
  }
1992
1992
  poll() {
1993
1993
  this.ajax("GET", null, () => this.ontimeout(), (s) => {
@@ -2006,7 +2006,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
2006
2006
  this.poll();
2007
2007
  break;
2008
2008
  case 410:
2009
- this.readyState = J.open, this.onopen({}), this.poll();
2009
+ this.readyState = V.open, this.onopen({}), this.poll();
2010
2010
  break;
2011
2011
  case 403:
2012
2012
  this.onerror(403), this.close(1008, "forbidden", !1);
@@ -2028,7 +2028,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
2028
2028
  close(s, n, t) {
2029
2029
  for (let r of this.reqs)
2030
2030
  r.abort();
2031
- this.readyState = J.closed;
2031
+ this.readyState = V.closed;
2032
2032
  let e = Object.assign({ code: 1e3, reason: void 0, wasClean: !0 }, { code: s, reason: n, wasClean: t });
2033
2033
  typeof CloseEvent < "u" ? this.onclose(new CloseEvent("close", e)) : this.onclose(e);
2034
2034
  }
@@ -2036,7 +2036,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
2036
2036
  let r, i = () => {
2037
2037
  this.reqs.delete(r), t();
2038
2038
  };
2039
- r = Et.request(s, this.endpointURL(), "application/json", n, this.timeout, i, (o) => {
2039
+ r = $t.request(s, this.endpointURL(), "application/json", n, this.timeout, i, (o) => {
2040
2040
  this.reqs.delete(r), this.isActive() && e(o);
2041
2041
  }), this.reqs.add(r);
2042
2042
  }
@@ -2097,7 +2097,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
2097
2097
  let _ = t.decode(s.slice(h, h + o));
2098
2098
  h = h + o;
2099
2099
  let A = s.slice(h, s.byteLength), T = { status: _, response: A };
2100
- return { join_ref: p, ref: d, topic: b, event: F.reply, payload: T };
2100
+ return { join_ref: p, ref: d, topic: b, event: G.reply, payload: T };
2101
2101
  },
2102
2102
  decodeBroadcast(s, n, t) {
2103
2103
  let e = n.getUint8(1), r = n.getUint8(2), i = this.HEADER_LENGTH + 2, o = t.decode(s.slice(i, i + e));
@@ -2109,13 +2109,13 @@ var ot = (s) => typeof s == "function" ? s : function() {
2109
2109
  }
2110
2110
  }, Ks = class {
2111
2111
  constructor(s, n = {}) {
2112
- this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = n.timeout || qs, this.transport = n.transport || at.WebSocket || St, this.establishedConnections = 0, this.defaultEncoder = mt.encode.bind(mt), this.defaultDecoder = mt.decode.bind(mt), this.closeWasClean = !1, this.binaryType = n.binaryType || "arraybuffer", this.connectClock = 1, this.transport !== St ? (this.encode = n.encode || this.defaultEncoder, this.decode = n.decode || this.defaultDecoder) : (this.encode = this.defaultEncoder, this.decode = this.defaultDecoder);
2112
+ this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = n.timeout || qs, this.transport = n.transport || lt.WebSocket || St, this.establishedConnections = 0, this.defaultEncoder = mt.encode.bind(mt), this.defaultDecoder = mt.decode.bind(mt), this.closeWasClean = !1, this.binaryType = n.binaryType || "arraybuffer", this.connectClock = 1, this.transport !== St ? (this.encode = n.encode || this.defaultEncoder, this.decode = n.decode || this.defaultDecoder) : (this.encode = this.defaultEncoder, this.decode = this.defaultDecoder);
2113
2113
  let t = null;
2114
- rt && rt.addEventListener && (rt.addEventListener("pagehide", (e) => {
2114
+ at && at.addEventListener && (at.addEventListener("pagehide", (e) => {
2115
2115
  this.conn && (this.disconnect(), t = this.connectClock);
2116
- }), rt.addEventListener("pageshow", (e) => {
2116
+ }), at.addEventListener("pageshow", (e) => {
2117
2117
  t === this.connectClock && (t = null, this.connect());
2118
- })), this.heartbeatIntervalMs = n.heartbeatIntervalMs || 3e4, this.rejoinAfterMs = (e) => n.rejoinAfterMs ? n.rejoinAfterMs(e) : [1e3, 2e3, 5e3][e - 1] || 1e4, this.reconnectAfterMs = (e) => n.reconnectAfterMs ? n.reconnectAfterMs(e) : [10, 50, 100, 150, 200, 250, 500, 1e3, 2e3][e - 1] || 5e3, this.logger = n.logger || null, this.longpollerTimeout = n.longpollerTimeout || 2e4, this.params = ot(n.params || {}), this.endPoint = `${s}/${Pt.websocket}`, this.vsn = n.vsn || Xs, this.heartbeatTimeoutTimer = null, this.heartbeatTimer = null, this.pendingHeartbeatRef = null, this.reconnectTimer = new de(() => {
2118
+ })), this.heartbeatIntervalMs = n.heartbeatIntervalMs || 3e4, this.rejoinAfterMs = (e) => n.rejoinAfterMs ? n.rejoinAfterMs(e) : [1e3, 2e3, 5e3][e - 1] || 1e4, this.reconnectAfterMs = (e) => n.reconnectAfterMs ? n.reconnectAfterMs(e) : [10, 50, 100, 150, 200, 250, 500, 1e3, 2e3][e - 1] || 5e3, this.logger = n.logger || null, this.longpollerTimeout = n.longpollerTimeout || 2e4, this.params = ct(n.params || {}), this.endPoint = `${s}/${Pt.websocket}`, this.vsn = n.vsn || Xs, this.heartbeatTimeoutTimer = null, this.heartbeatTimer = null, this.pendingHeartbeatRef = null, this.reconnectTimer = new de(() => {
2119
2119
  this.teardown(() => this.connect());
2120
2120
  }, this.reconnectAfterMs);
2121
2121
  }
@@ -2129,14 +2129,14 @@ var ot = (s) => typeof s == "function" ? s : function() {
2129
2129
  return location.protocol.match(/^https/) ? "wss" : "ws";
2130
2130
  }
2131
2131
  endPointURL() {
2132
- let s = Et.appendParams(Et.appendParams(this.endPoint, this.params()), { vsn: this.vsn });
2132
+ let s = $t.appendParams($t.appendParams(this.endPoint, this.params()), { vsn: this.vsn });
2133
2133
  return s.charAt(0) !== "/" ? s : s.charAt(1) === "/" ? `${this.protocol()}:${s}` : `${this.protocol()}://${location.host}${s}`;
2134
2134
  }
2135
2135
  disconnect(s, n, t) {
2136
2136
  this.connectClock++, this.closeWasClean = !0, this.reconnectTimer.reset(), this.teardown(s, n, t);
2137
2137
  }
2138
2138
  connect(s) {
2139
- s && (console && console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"), this.params = ot(s)), !this.conn && (this.connectClock++, this.closeWasClean = !1, this.conn = new this.transport(this.endPointURL()), this.conn.binaryType = this.binaryType, this.conn.timeout = this.longpollerTimeout, this.conn.onopen = () => this.onConnOpen(), this.conn.onerror = (n) => this.onConnError(n), this.conn.onmessage = (n) => this.onConnMessage(n), this.conn.onclose = (n) => this.onConnClose(n));
2139
+ s && (console && console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"), this.params = ct(s)), !this.conn && (this.connectClock++, this.closeWasClean = !1, this.conn = new this.transport(this.endPointURL()), this.conn.binaryType = this.binaryType, this.conn.timeout = this.longpollerTimeout, this.conn.onopen = () => this.onConnOpen(), this.conn.onerror = (n) => this.onConnError(n), this.conn.onmessage = (n) => this.onConnMessage(n), this.conn.onclose = (n) => this.onConnClose(n));
2140
2140
  }
2141
2141
  log(s, n, t) {
2142
2142
  this.logger(s, n, t);
@@ -2205,7 +2205,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
2205
2205
  }, 150 * n);
2206
2206
  }
2207
2207
  waitForSocketClosed(s, n = 1) {
2208
- if (n === 5 || !this.conn || this.conn.readyState === J.closed) {
2208
+ if (n === 5 || !this.conn || this.conn.readyState === V.closed) {
2209
2209
  s();
2210
2210
  return;
2211
2211
  }
@@ -2226,16 +2226,16 @@ var ot = (s) => typeof s == "function" ? s : function() {
2226
2226
  }
2227
2227
  triggerChanError() {
2228
2228
  this.channels.forEach((s) => {
2229
- s.isErrored() || s.isLeaving() || s.isClosed() || s.trigger(F.error);
2229
+ s.isErrored() || s.isLeaving() || s.isClosed() || s.trigger(G.error);
2230
2230
  });
2231
2231
  }
2232
2232
  connectionState() {
2233
2233
  switch (this.conn && this.conn.readyState) {
2234
- case J.connecting:
2234
+ case V.connecting:
2235
2235
  return "connecting";
2236
- case J.open:
2236
+ case V.open:
2237
2237
  return "open";
2238
- case J.closing:
2238
+ case V.closing:
2239
2239
  return "closing";
2240
2240
  default:
2241
2241
  return "closed";
@@ -2420,99 +2420,99 @@ var se;
2420
2420
  return a[c];
2421
2421
  }
2422
2422
  }, b = Object.getPrototypeOf(Function), _ = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", A = !_ && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ae(), T = !_ && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Te(), j = !_ && typeof WeakMap == "function" ? WeakMap : Oe(), R = new j();
2423
- function N(a, c, l, u) {
2424
- if (M(l)) {
2423
+ function M(a, c, l, u) {
2424
+ if (L(l)) {
2425
2425
  if (!Gt(a))
2426
2426
  throw new TypeError();
2427
2427
  if (!Xt(c))
2428
2428
  throw new TypeError();
2429
- return q(a, c);
2429
+ return K(a, c);
2430
2430
  } else {
2431
2431
  if (!Gt(a))
2432
2432
  throw new TypeError();
2433
- if (!L(c))
2433
+ if (!N(c))
2434
2434
  throw new TypeError();
2435
- if (!L(u) && !M(u) && !Y(u))
2435
+ if (!N(u) && !L(u) && !tt(u))
2436
2436
  throw new TypeError();
2437
- return Y(u) && (u = void 0), l = V(l), ge(a, c, l, u);
2437
+ return tt(u) && (u = void 0), l = F(l), ge(a, c, l, u);
2438
2438
  }
2439
2439
  }
2440
- n("decorate", N);
2441
- function k(a, c) {
2440
+ n("decorate", M);
2441
+ function X(a, c) {
2442
2442
  function l(u, g) {
2443
- if (!L(u))
2443
+ if (!N(u))
2444
2444
  throw new TypeError();
2445
- if (!M(g) && !be(g))
2445
+ if (!L(g) && !be(g))
2446
2446
  throw new TypeError();
2447
2447
  Vt(a, c, u, g);
2448
2448
  }
2449
2449
  return l;
2450
2450
  }
2451
- n("metadata", k);
2452
- function X(a, c, l, u) {
2453
- if (!L(l))
2451
+ n("metadata", X);
2452
+ function Z(a, c, l, u) {
2453
+ if (!N(l))
2454
2454
  throw new TypeError();
2455
- return M(u) || (u = V(u)), Vt(a, c, l, u);
2455
+ return L(u) || (u = F(u)), Vt(a, c, l, u);
2456
2456
  }
2457
- n("defineMetadata", X);
2458
- function dt(a, c, l) {
2459
- if (!L(c))
2457
+ n("defineMetadata", Z);
2458
+ function k(a, c, l) {
2459
+ if (!N(c))
2460
2460
  throw new TypeError();
2461
- return M(l) || (l = V(l)), Ut(a, c, l);
2461
+ return L(l) || (l = F(l)), Ut(a, c, l);
2462
2462
  }
2463
- n("hasMetadata", dt);
2464
- function gt(a, c, l) {
2465
- if (!L(c))
2463
+ n("hasMetadata", k);
2464
+ function B(a, c, l) {
2465
+ if (!N(c))
2466
2466
  throw new TypeError();
2467
- return M(l) || (l = V(l)), At(a, c, l);
2467
+ return L(l) || (l = F(l)), At(a, c, l);
2468
2468
  }
2469
- n("hasOwnMetadata", gt);
2470
- function vt(a, c, l) {
2471
- if (!L(c))
2469
+ n("hasOwnMetadata", B);
2470
+ function U(a, c, l) {
2471
+ if (!N(c))
2472
2472
  throw new TypeError();
2473
- return M(l) || (l = V(l)), zt(a, c, l);
2473
+ return L(l) || (l = F(l)), zt(a, c, l);
2474
2474
  }
2475
- n("getMetadata", vt);
2476
- function st(a, c, l) {
2477
- if (!L(c))
2475
+ n("getMetadata", U);
2476
+ function q(a, c, l) {
2477
+ if (!N(c))
2478
2478
  throw new TypeError();
2479
- return M(l) || (l = V(l)), Jt(a, c, l);
2479
+ return L(l) || (l = F(l)), Jt(a, c, l);
2480
2480
  }
2481
- n("getOwnMetadata", st);
2482
- function S(a, c) {
2483
- if (!L(a))
2481
+ n("getOwnMetadata", q);
2482
+ function x(a, c) {
2483
+ if (!N(a))
2484
2484
  throw new TypeError();
2485
- return M(c) || (c = V(c)), Bt(a, c);
2485
+ return L(c) || (c = F(c)), Bt(a, c);
2486
2486
  }
2487
- n("getMetadataKeys", S);
2488
- function U(a, c) {
2489
- if (!L(a))
2487
+ n("getMetadataKeys", x);
2488
+ function z(a, c) {
2489
+ if (!N(a))
2490
2490
  throw new TypeError();
2491
- return M(c) || (c = V(c)), Ft(a, c);
2491
+ return L(c) || (c = F(c)), Ft(a, c);
2492
2492
  }
2493
- n("getOwnMetadataKeys", U);
2494
- function z(a, c, l) {
2495
- if (!L(c))
2493
+ n("getOwnMetadataKeys", z);
2494
+ function J(a, c, l) {
2495
+ if (!N(c))
2496
2496
  throw new TypeError();
2497
- M(l) || (l = V(l));
2498
- var u = nt(
2497
+ L(l) || (l = F(l));
2498
+ var u = ot(
2499
2499
  c,
2500
2500
  l,
2501
2501
  /*Create*/
2502
2502
  !1
2503
2503
  );
2504
- if (M(u) || !u.delete(a))
2504
+ if (L(u) || !u.delete(a))
2505
2505
  return !1;
2506
2506
  if (u.size > 0)
2507
2507
  return !0;
2508
2508
  var g = R.get(c);
2509
2509
  return g.delete(l), g.size > 0 || R.delete(c), !0;
2510
2510
  }
2511
- n("deleteMetadata", z);
2512
- function q(a, c) {
2511
+ n("deleteMetadata", J);
2512
+ function K(a, c) {
2513
2513
  for (var l = a.length - 1; l >= 0; --l) {
2514
2514
  var u = a[l], g = u(c);
2515
- if (!M(g) && !Y(g)) {
2515
+ if (!L(g) && !tt(g)) {
2516
2516
  if (!Xt(g))
2517
2517
  throw new TypeError();
2518
2518
  c = g;
@@ -2523,23 +2523,23 @@ var se;
2523
2523
  function ge(a, c, l, u) {
2524
2524
  for (var g = a.length - 1; g >= 0; --g) {
2525
2525
  var H = a[g], y = H(c, l, u);
2526
- if (!M(y) && !Y(y)) {
2527
- if (!L(y))
2526
+ if (!L(y) && !tt(y)) {
2527
+ if (!N(y))
2528
2528
  throw new TypeError();
2529
2529
  u = y;
2530
2530
  }
2531
2531
  }
2532
2532
  return u;
2533
2533
  }
2534
- function nt(a, c, l) {
2534
+ function ot(a, c, l) {
2535
2535
  var u = R.get(a);
2536
- if (M(u)) {
2536
+ if (L(u)) {
2537
2537
  if (!l)
2538
2538
  return;
2539
2539
  u = new A(), R.set(a, u);
2540
2540
  }
2541
2541
  var g = u.get(c);
2542
- if (M(g)) {
2542
+ if (L(g)) {
2543
2543
  if (!l)
2544
2544
  return;
2545
2545
  g = new A(), u.set(c, g);
@@ -2551,37 +2551,37 @@ var se;
2551
2551
  if (u)
2552
2552
  return !0;
2553
2553
  var g = Tt(c);
2554
- return Y(g) ? !1 : Ut(a, g, l);
2554
+ return tt(g) ? !1 : Ut(a, g, l);
2555
2555
  }
2556
2556
  function At(a, c, l) {
2557
- var u = nt(
2557
+ var u = ot(
2558
2558
  c,
2559
2559
  l,
2560
2560
  /*Create*/
2561
2561
  !1
2562
2562
  );
2563
- return M(u) ? !1 : we(u.has(a));
2563
+ return L(u) ? !1 : we(u.has(a));
2564
2564
  }
2565
2565
  function zt(a, c, l) {
2566
2566
  var u = At(a, c, l);
2567
2567
  if (u)
2568
2568
  return Jt(a, c, l);
2569
2569
  var g = Tt(c);
2570
- if (!Y(g))
2570
+ if (!tt(g))
2571
2571
  return zt(a, g, l);
2572
2572
  }
2573
2573
  function Jt(a, c, l) {
2574
- var u = nt(
2574
+ var u = ot(
2575
2575
  c,
2576
2576
  l,
2577
2577
  /*Create*/
2578
2578
  !1
2579
2579
  );
2580
- if (!M(u))
2580
+ if (!L(u))
2581
2581
  return u.get(a);
2582
2582
  }
2583
2583
  function Vt(a, c, l, u) {
2584
- var g = nt(
2584
+ var g = ot(
2585
2585
  l,
2586
2586
  u,
2587
2587
  /*Create*/
@@ -2599,36 +2599,36 @@ var se;
2599
2599
  if (l.length <= 0)
2600
2600
  return g;
2601
2601
  for (var H = new T(), y = [], m = 0, v = l; m < v.length; m++) {
2602
- var $ = v[m], E = H.has($);
2603
- E || (H.add($), y.push($));
2602
+ var E = v[m], $ = H.has(E);
2603
+ $ || (H.add(E), y.push(E));
2604
2604
  }
2605
- for (var W = 0, Yt = g; W < Yt.length; W++) {
2606
- var $ = Yt[W], E = H.has($);
2607
- E || (H.add($), y.push($));
2605
+ for (var Y = 0, Yt = g; Y < Yt.length; Y++) {
2606
+ var E = Yt[Y], $ = H.has(E);
2607
+ $ || (H.add(E), y.push(E));
2608
2608
  }
2609
2609
  return y;
2610
2610
  }
2611
2611
  function Ft(a, c) {
2612
- var l = [], u = nt(
2612
+ var l = [], u = ot(
2613
2613
  a,
2614
2614
  c,
2615
2615
  /*Create*/
2616
2616
  !1
2617
2617
  );
2618
- if (M(u))
2618
+ if (L(u))
2619
2619
  return l;
2620
- for (var g = u.keys(), H = $e(g), y = 0; ; ) {
2620
+ for (var g = u.keys(), H = Ee(g), y = 0; ; ) {
2621
2621
  var m = Ce(H);
2622
2622
  if (!m)
2623
2623
  return l.length = y, l;
2624
- var v = Ee(m);
2624
+ var v = $e(m);
2625
2625
  try {
2626
2626
  l[y] = v;
2627
- } catch ($) {
2627
+ } catch (E) {
2628
2628
  try {
2629
2629
  ke(H);
2630
2630
  } finally {
2631
- throw $;
2631
+ throw E;
2632
2632
  }
2633
2633
  }
2634
2634
  y++;
@@ -2654,16 +2654,16 @@ var se;
2654
2654
  return 6;
2655
2655
  }
2656
2656
  }
2657
- function M(a) {
2657
+ function L(a) {
2658
2658
  return a === void 0;
2659
2659
  }
2660
- function Y(a) {
2660
+ function tt(a) {
2661
2661
  return a === null;
2662
2662
  }
2663
2663
  function ve(a) {
2664
2664
  return typeof a == "symbol";
2665
2665
  }
2666
- function L(a) {
2666
+ function N(a) {
2667
2667
  return typeof a == "object" ? a !== null : typeof a == "function";
2668
2668
  }
2669
2669
  function ye(a, c) {
@@ -2684,7 +2684,7 @@ var se;
2684
2684
  var l = c === 3 ? "string" : c === 5 ? "number" : "default", u = qt(a, r);
2685
2685
  if (u !== void 0) {
2686
2686
  var g = u.call(a, l);
2687
- if (L(g))
2687
+ if (N(g))
2688
2688
  throw new TypeError();
2689
2689
  return g;
2690
2690
  }
@@ -2693,28 +2693,28 @@ var se;
2693
2693
  function me(a, c) {
2694
2694
  if (c === "string") {
2695
2695
  var l = a.toString;
2696
- if (Z(l)) {
2696
+ if (et(l)) {
2697
2697
  var u = l.call(a);
2698
- if (!L(u))
2698
+ if (!N(u))
2699
2699
  return u;
2700
2700
  }
2701
2701
  var g = a.valueOf;
2702
- if (Z(g)) {
2702
+ if (et(g)) {
2703
2703
  var u = g.call(a);
2704
- if (!L(u))
2704
+ if (!N(u))
2705
2705
  return u;
2706
2706
  }
2707
2707
  } else {
2708
2708
  var g = a.valueOf;
2709
- if (Z(g)) {
2709
+ if (et(g)) {
2710
2710
  var u = g.call(a);
2711
- if (!L(u))
2711
+ if (!N(u))
2712
2712
  return u;
2713
2713
  }
2714
2714
  var H = a.toString;
2715
- if (Z(H)) {
2715
+ if (et(H)) {
2716
2716
  var u = H.call(a);
2717
- if (!L(u))
2717
+ if (!N(u))
2718
2718
  return u;
2719
2719
  }
2720
2720
  }
@@ -2726,7 +2726,7 @@ var se;
2726
2726
  function _e(a) {
2727
2727
  return "" + a;
2728
2728
  }
2729
- function V(a) {
2729
+ function F(a) {
2730
2730
  var c = ye(
2731
2731
  a,
2732
2732
  3
@@ -2737,7 +2737,7 @@ var se;
2737
2737
  function Gt(a) {
2738
2738
  return Array.isArray ? Array.isArray(a) : a instanceof Object ? a instanceof Array : Object.prototype.toString.call(a) === "[object Array]";
2739
2739
  }
2740
- function Z(a) {
2740
+ function et(a) {
2741
2741
  return typeof a == "function";
2742
2742
  }
2743
2743
  function Xt(a) {
@@ -2756,21 +2756,21 @@ var se;
2756
2756
  function qt(a, c) {
2757
2757
  var l = a[c];
2758
2758
  if (l != null) {
2759
- if (!Z(l))
2759
+ if (!et(l))
2760
2760
  throw new TypeError();
2761
2761
  return l;
2762
2762
  }
2763
2763
  }
2764
- function $e(a) {
2764
+ function Ee(a) {
2765
2765
  var c = qt(a, i);
2766
- if (!Z(c))
2766
+ if (!et(c))
2767
2767
  throw new TypeError();
2768
2768
  var l = c.call(a);
2769
- if (!L(l))
2769
+ if (!N(l))
2770
2770
  throw new TypeError();
2771
2771
  return l;
2772
2772
  }
2773
- function Ee(a) {
2773
+ function $e(a) {
2774
2774
  return a.value;
2775
2775
  }
2776
2776
  function Ce(a) {
@@ -2795,8 +2795,8 @@ var se;
2795
2795
  var a = {}, c = [], l = (
2796
2796
  /** @class */
2797
2797
  function() {
2798
- function y(m, v, $) {
2799
- this._index = 0, this._keys = m, this._values = v, this._selector = $;
2798
+ function y(m, v, E) {
2799
+ this._index = 0, this._keys = m, this._values = v, this._selector = E;
2800
2800
  }
2801
2801
  return y.prototype["@@iterator"] = function() {
2802
2802
  return this;
@@ -2842,12 +2842,12 @@ var se;
2842
2842
  );
2843
2843
  return v >= 0 ? this._values[v] : void 0;
2844
2844
  }, y.prototype.set = function(m, v) {
2845
- var $ = this._find(
2845
+ var E = this._find(
2846
2846
  m,
2847
2847
  /*insert*/
2848
2848
  !0
2849
2849
  );
2850
- return this._values[$] = v, this;
2850
+ return this._values[E] = v, this;
2851
2851
  }, y.prototype.delete = function(m) {
2852
2852
  var v = this._find(
2853
2853
  m,
@@ -2855,8 +2855,8 @@ var se;
2855
2855
  !1
2856
2856
  );
2857
2857
  if (v >= 0) {
2858
- for (var $ = this._keys.length, E = v + 1; E < $; E++)
2859
- this._keys[E - 1] = this._keys[E], this._values[E - 1] = this._values[E];
2858
+ for (var E = this._keys.length, $ = v + 1; $ < E; $++)
2859
+ this._keys[$ - 1] = this._keys[$], this._values[$ - 1] = this._values[$];
2860
2860
  return this._keys.length--, this._values.length--, m === this._cacheKey && (this._cacheKey = a, this._cacheIndex = -2), !0;
2861
2861
  }
2862
2862
  return !1;
@@ -2930,34 +2930,34 @@ var se;
2930
2930
  function v() {
2931
2931
  this._key = u();
2932
2932
  }
2933
- return v.prototype.has = function($) {
2934
- var E = g(
2935
- $,
2933
+ return v.prototype.has = function(E) {
2934
+ var $ = g(
2935
+ E,
2936
2936
  /*create*/
2937
2937
  !1
2938
2938
  );
2939
- return E !== void 0 ? d.has(E, this._key) : !1;
2940
- }, v.prototype.get = function($) {
2941
- var E = g(
2942
- $,
2939
+ return $ !== void 0 ? d.has($, this._key) : !1;
2940
+ }, v.prototype.get = function(E) {
2941
+ var $ = g(
2942
+ E,
2943
2943
  /*create*/
2944
2944
  !1
2945
2945
  );
2946
- return E !== void 0 ? d.get(E, this._key) : void 0;
2947
- }, v.prototype.set = function($, E) {
2948
- var W = g(
2949
- $,
2946
+ return $ !== void 0 ? d.get($, this._key) : void 0;
2947
+ }, v.prototype.set = function(E, $) {
2948
+ var Y = g(
2949
+ E,
2950
2950
  /*create*/
2951
2951
  !0
2952
2952
  );
2953
- return W[this._key] = E, this;
2954
- }, v.prototype.delete = function($) {
2955
- var E = g(
2956
- $,
2953
+ return Y[this._key] = $, this;
2954
+ }, v.prototype.delete = function(E) {
2955
+ var $ = g(
2956
+ E,
2957
2957
  /*create*/
2958
2958
  !1
2959
2959
  );
2960
- return E !== void 0 ? delete E[this._key] : !1;
2960
+ return $ !== void 0 ? delete $[this._key] : !1;
2961
2961
  }, v.prototype.clear = function() {
2962
2962
  this._key = u();
2963
2963
  }, v;
@@ -2970,17 +2970,17 @@ var se;
2970
2970
  while (d.has(c, v));
2971
2971
  return c[v] = !0, v;
2972
2972
  }
2973
- function g(v, $) {
2973
+ function g(v, E) {
2974
2974
  if (!t.call(v, l)) {
2975
- if (!$)
2975
+ if (!E)
2976
2976
  return;
2977
2977
  Object.defineProperty(v, l, { value: d.create() });
2978
2978
  }
2979
2979
  return v[l];
2980
2980
  }
2981
- function H(v, $) {
2982
- for (var E = 0; E < $; ++E)
2983
- v[E] = Math.random() * 255 | 0;
2981
+ function H(v, E) {
2982
+ for (var $ = 0; $ < E; ++$)
2983
+ v[$] = Math.random() * 255 | 0;
2984
2984
  return v;
2985
2985
  }
2986
2986
  function y(v) {
@@ -2989,11 +2989,11 @@ var se;
2989
2989
  function m() {
2990
2990
  var v = y(a);
2991
2991
  v[6] = v[6] & 79 | 64, v[8] = v[8] & 191 | 128;
2992
- for (var $ = "", E = 0; E < a; ++E) {
2993
- var W = v[E];
2994
- (E === 4 || E === 6 || E === 8) && ($ += "-"), W < 16 && ($ += "0"), $ += W.toString(16).toLowerCase();
2992
+ for (var E = "", $ = 0; $ < a; ++$) {
2993
+ var Y = v[$];
2994
+ ($ === 4 || $ === 6 || $ === 8) && (E += "-"), Y < 16 && (E += "0"), E += Y.toString(16).toLowerCase();
2995
2995
  }
2996
- return $;
2996
+ return E;
2997
2997
  }
2998
2998
  }
2999
2999
  function Ot(a) {
@@ -3002,11 +3002,11 @@ var se;
3002
3002
  });
3003
3003
  })(se || (se = {}));
3004
3004
  function en(s) {
3005
- Ne(s, "svelte-or6zbb", '#liveroom-client-element.svelte-or6zbb.svelte-or6zbb{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-or6zbb.svelte-or6zbb{position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-or6zbb.svelte-or6zbb{z-index:1000;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-or6zbb .cursor.svelte-or6zbb{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-or6zbb .cursor.svelte-or6zbb{display:none}.user-name.svelte-or6zbb.svelte-or6zbb{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-or6zbb .user-name.svelte-or6zbb{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-or6zbb .user-name.svelte-or6zbb{display:none}.user.svelte-or6zbb .halo.svelte-or6zbb{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-or6zbb .halo[data-show="true"].svelte-or6zbb{transform:scale(1)}');
3005
+ Le(s, "svelte-3iboz2", '#liveroom-client-element.svelte-3iboz2.svelte-3iboz2{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-3iboz2.svelte-3iboz2{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-3iboz2.svelte-3iboz2{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-3iboz2 .cursor.svelte-3iboz2{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-3iboz2 .cursor.svelte-3iboz2{display:none}.user-name.svelte-3iboz2.svelte-3iboz2{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .user-name.svelte-3iboz2{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-3iboz2 .user-name.svelte-3iboz2{display:none}.user.svelte-3iboz2 .halo.svelte-3iboz2{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .halo[data-show="true"].svelte-3iboz2{transform:scale(1)}');
3006
3006
  }
3007
3007
  function ne(s, n, t) {
3008
3008
  const e = s.slice();
3009
- return e[14] = n[t], e;
3009
+ return e[16] = n[t], e;
3010
3010
  }
3011
3011
  function re(s) {
3012
3012
  let n, t = [], e = /* @__PURE__ */ new Map(), r = te(Object.values(
@@ -3015,7 +3015,7 @@ function re(s) {
3015
3015
  ));
3016
3016
  const i = (o) => (
3017
3017
  /*user*/
3018
- o[14].id
3018
+ o[16].id
3019
3019
  );
3020
3020
  for (let o = 0; o < r.length; o += 1) {
3021
3021
  let h = ne(s, r, o), p = i(h);
@@ -3023,10 +3023,10 @@ function re(s) {
3023
3023
  }
3024
3024
  return {
3025
3025
  c() {
3026
- n = G("div");
3026
+ n = Q("div");
3027
3027
  for (let o = 0; o < t.length; o += 1)
3028
3028
  t[o].c();
3029
- x(n, "id", "users-container"), x(n, "class", "svelte-or6zbb");
3029
+ S(n, "id", "users-container"), S(n, "class", "svelte-3iboz2");
3030
3030
  },
3031
3031
  m(o, h) {
3032
3032
  Ct(o, n, h);
@@ -3041,7 +3041,7 @@ function re(s) {
3041
3041
  )), t = Ge(t, h, i, 1, o, r, e, n, We, ie, null, ne));
3042
3042
  },
3043
3043
  d(o) {
3044
- o && pt(n);
3044
+ o && gt(n);
3045
3045
  for (let h = 0; h < t.length; h += 1)
3046
3046
  t[h].d();
3047
3047
  }
@@ -3050,62 +3050,62 @@ function re(s) {
3050
3050
  function ie(s, n) {
3051
3051
  let t, e, r, i, o, h = (
3052
3052
  /*user*/
3053
- n[14].name + ""
3053
+ n[16].name + ""
3054
3054
  ), p, d, b, _, A, T, j;
3055
3055
  return {
3056
3056
  key: s,
3057
3057
  first: null,
3058
3058
  c() {
3059
- t = G("div"), e = Qt("svg"), r = Qt("path"), i = jt(), o = G("span"), p = he(h), d = jt(), b = G("div"), A = jt(), x(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), x(e, "width", "23"), x(e, "viewBox", "0 0 27 24"), x(e, "fill", "currentColor"), x(e, "aria-hidden", "true"), x(e, "xmlns", "http://www.w3.org/2000/svg"), x(e, "class", "cursor svelte-or6zbb"), x(o, "class", "user-name svelte-or6zbb"), x(b, "class", "halo svelte-or6zbb"), x(b, "data-show", _ = /*user*/
3060
- n[14].is_mouse_down || /*user*/
3061
- n[14].is_shift_key_down), x(t, "id", T = "user-" + /*user*/
3062
- n[14].id), x(t, "class", "user svelte-or6zbb"), x(t, "data-isself", j = /*user*/
3063
- n[14].id == /*me*/
3064
- n[1].id), Q(
3059
+ t = Q("div"), e = Qt("svg"), r = Qt("path"), i = jt(), o = Q("span"), p = he(h), d = jt(), b = Q("div"), A = jt(), S(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), S(e, "width", "23"), S(e, "viewBox", "0 0 27 24"), S(e, "fill", "currentColor"), S(e, "aria-hidden", "true"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "cursor svelte-3iboz2"), S(o, "class", "user-name svelte-3iboz2"), S(b, "class", "halo svelte-3iboz2"), S(b, "data-show", _ = /*user*/
3060
+ n[16].is_mouse_down || /*user*/
3061
+ n[16].is_shift_key_down), S(t, "id", T = "user-" + /*user*/
3062
+ n[16].id), S(t, "class", "user svelte-3iboz2"), S(t, "data-isself", j = /*user*/
3063
+ n[16].id == /*me*/
3064
+ n[1].id), st(
3065
3065
  t,
3066
3066
  "--color",
3067
3067
  /*user*/
3068
- n[14].color
3069
- ), Q(t, "--x", parseFloat(
3068
+ n[16].color
3069
+ ), st(t, "--x", parseFloat(
3070
3070
  /*user*/
3071
- n[14].x
3072
- ) + "vw"), Q(t, "--y", parseFloat(
3071
+ n[16].x
3072
+ ) + "vw"), st(t, "--y", parseFloat(
3073
3073
  /*user*/
3074
- n[14].y
3074
+ n[16].y
3075
3075
  ) + "vh"), this.first = t;
3076
3076
  },
3077
- m(R, N) {
3078
- Ct(R, t, N), B(t, e), B(e, r), B(t, i), B(t, o), B(o, p), B(t, d), B(t, b), B(t, A);
3077
+ m(R, M) {
3078
+ Ct(R, t, M), W(t, e), W(e, r), W(t, i), W(t, o), W(o, p), W(t, d), W(t, b), W(t, A);
3079
3079
  },
3080
- p(R, N) {
3081
- n = R, N & /*users*/
3080
+ p(R, M) {
3081
+ n = R, M & /*users*/
3082
3082
  4 && h !== (h = /*user*/
3083
- n[14].name + "") && Pe(p, h), N & /*users*/
3083
+ n[16].name + "") && Pe(p, h), M & /*users*/
3084
3084
  4 && _ !== (_ = /*user*/
3085
- n[14].is_mouse_down || /*user*/
3086
- n[14].is_shift_key_down) && x(b, "data-show", _), N & /*users*/
3085
+ n[16].is_mouse_down || /*user*/
3086
+ n[16].is_shift_key_down) && S(b, "data-show", _), M & /*users*/
3087
3087
  4 && T !== (T = "user-" + /*user*/
3088
- n[14].id) && x(t, "id", T), N & /*users, me*/
3088
+ n[16].id) && S(t, "id", T), M & /*users, me*/
3089
3089
  6 && j !== (j = /*user*/
3090
- n[14].id == /*me*/
3091
- n[1].id) && x(t, "data-isself", j), N & /*users*/
3092
- 4 && Q(
3090
+ n[16].id == /*me*/
3091
+ n[1].id) && S(t, "data-isself", j), M & /*users*/
3092
+ 4 && st(
3093
3093
  t,
3094
3094
  "--color",
3095
3095
  /*user*/
3096
- n[14].color
3097
- ), N & /*users*/
3098
- 4 && Q(t, "--x", parseFloat(
3096
+ n[16].color
3097
+ ), M & /*users*/
3098
+ 4 && st(t, "--x", parseFloat(
3099
3099
  /*user*/
3100
- n[14].x
3101
- ) + "vw"), N & /*users*/
3102
- 4 && Q(t, "--y", parseFloat(
3100
+ n[16].x
3101
+ ) + "vw"), M & /*users*/
3102
+ 4 && st(t, "--y", parseFloat(
3103
3103
  /*user*/
3104
- n[14].y
3104
+ n[16].y
3105
3105
  ) + "vh");
3106
3106
  },
3107
3107
  d(R) {
3108
- R && pt(t);
3108
+ R && gt(t);
3109
3109
  }
3110
3110
  };
3111
3111
  }
@@ -3117,7 +3117,7 @@ function sn(s) {
3117
3117
  );
3118
3118
  return {
3119
3119
  c() {
3120
- n = G("div"), t && t.c(), x(n, "id", "liveroom-client-element"), x(n, "class", "svelte-or6zbb");
3120
+ n = Q("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-3iboz2");
3121
3121
  },
3122
3122
  m(e, r) {
3123
3123
  Ct(e, n, r), t && t.m(n, null), s[5](n);
@@ -3127,16 +3127,23 @@ function sn(s) {
3127
3127
  e[1] && /*users*/
3128
3128
  e[2] ? t ? t.p(e, r) : (t = re(e), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
3129
3129
  },
3130
- i: ht,
3131
- o: ht,
3130
+ i: ut,
3131
+ o: ut,
3132
3132
  d(e) {
3133
- e && pt(n), t && t.d(), s[5](null);
3133
+ e && gt(n), t && t.d(), s[5](null);
3134
3134
  }
3135
3135
  };
3136
3136
  }
3137
3137
  function nn(s, n, t) {
3138
3138
  let { url: e } = n, { room_id: r } = n, i, o, h, p;
3139
3139
  De(async () => {
3140
+ const B = new URLSearchParams(window.location.search).get("_liveroom"), U = B == null ? void 0 : B.split("https://meet.google.com/");
3141
+ let q = U == null ? void 0 : U[0];
3142
+ !!(U != null && U[1]) && (q = U[1].split("?")[0]), t(3, r = q || r), d();
3143
+ }), Ue(() => {
3144
+ b();
3145
+ });
3146
+ function d() {
3140
3147
  o = new tn({
3141
3148
  url: e,
3142
3149
  topic: `liveroom-livestate:${r}`,
@@ -3148,11 +3155,12 @@ function nn(s, n, t) {
3148
3155
  }
3149
3156
  }), o.connect(), o.addEventListener("livestate-change", ({ detail: { state: k } }) => {
3150
3157
  t(3, r = k.room_id), t(1, h = k.me), t(2, p = k.users);
3151
- }), window.addEventListener("mousemove", d), window.addEventListener("mousedown", b), window.addEventListener("mouseup", _), window.addEventListener("keydown", T), window.addEventListener("keyup", j), window.addEventListener("resize", R);
3152
- }), Ue(() => {
3153
- window.removeEventListener("resize", R), window.removeEventListener("keyup", j), window.removeEventListener("keydown", T), window.removeEventListener("mouseup", _), window.removeEventListener("mousedown", b), window.removeEventListener("mousemove", d), o == null || o.disconnect();
3154
- });
3155
- function d(k) {
3158
+ }), window.addEventListener("mousemove", _), window.addEventListener("mousedown", A), window.addEventListener("mouseup", T), window.addEventListener("keydown", R), window.addEventListener("keyup", M), window.addEventListener("resize", X);
3159
+ }
3160
+ function b() {
3161
+ window.removeEventListener("resize", X), window.removeEventListener("keyup", M), window.removeEventListener("keydown", R), window.removeEventListener("mouseup", T), window.removeEventListener("mousedown", A), window.removeEventListener("mousemove", _), o == null || o.disconnect();
3162
+ }
3163
+ function _(k) {
3156
3164
  o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
3157
3165
  "mouse_move",
3158
3166
  {
@@ -3166,20 +3174,20 @@ function nn(s, n, t) {
3166
3174
  }
3167
3175
  ));
3168
3176
  }
3169
- function b() {
3177
+ function A() {
3170
3178
  o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_down", { detail: { user_id: h.id } }));
3171
3179
  }
3172
- function _() {
3180
+ function T() {
3173
3181
  o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: h.id } }));
3174
3182
  }
3175
- const A = ["Shift"];
3176
- function T(k) {
3177
- !k.repeat && A.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_down", { detail: { key: k.key, user_id: h.id } }));
3183
+ const j = ["Shift"];
3184
+ function R(k) {
3185
+ !k.repeat && j.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_down", { detail: { key: k.key, user_id: h.id } }));
3178
3186
  }
3179
- function j(k) {
3180
- A.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_up", { detail: { key: k.key, user_id: h.id } }));
3187
+ function M(k) {
3188
+ j.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_up", { detail: { key: k.key, user_id: h.id } }));
3181
3189
  }
3182
- function R() {
3190
+ function X() {
3183
3191
  o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
3184
3192
  "window_resize",
3185
3193
  {
@@ -3191,14 +3199,14 @@ function nn(s, n, t) {
3191
3199
  }
3192
3200
  ));
3193
3201
  }
3194
- function N(k) {
3202
+ function Z(k) {
3195
3203
  Mt[k ? "unshift" : "push"](() => {
3196
3204
  i = k, t(0, i);
3197
3205
  });
3198
3206
  }
3199
3207
  return s.$$set = (k) => {
3200
3208
  "url" in k && t(4, e = k.url), "room_id" in k && t(3, r = k.room_id);
3201
- }, [i, h, p, r, e, N];
3209
+ }, [i, h, p, r, e, Z];
3202
3210
  }
3203
3211
  class rn extends Ke {
3204
3212
  constructor(n) {