@everymatrix/general-animation-loading 1.87.26 → 1.87.28

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,60 +1,60 @@
1
- var D = Object.defineProperty, F = Object.defineProperties;
1
+ var z = Object.defineProperty, F = Object.defineProperties;
2
2
  var J = Object.getOwnPropertyDescriptors;
3
- var M = Object.getOwnPropertySymbols;
4
- var V = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
- var x = (e, t, n) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, N = (e, t) => {
3
+ var N = Object.getOwnPropertySymbols;
4
+ var V = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
+ var S = (e, t, n) => t in e ? z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, B = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- V.call(t, n) && x(e, n, t[n]);
8
- if (M)
9
- for (var n of M(t))
10
- G.call(t, n) && x(e, n, t[n]);
7
+ V.call(t, n) && S(e, n, t[n]);
8
+ if (N)
9
+ for (var n of N(t))
10
+ K.call(t, n) && S(e, n, t[n]);
11
11
  return e;
12
- }, B = (e, t) => F(e, J(t));
13
- var d = (e, t, n) => (x(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var P = (e, t, n) => new Promise((i, r) => {
15
- var s = (o) => {
12
+ }, T = (e, t) => F(e, J(t));
13
+ var d = (e, t, n) => (S(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var R = (e, t, n) => new Promise((s, r) => {
15
+ var i = (u) => {
16
16
  try {
17
- u(n.next(o));
18
- } catch (l) {
19
- r(l);
17
+ l(n.next(u));
18
+ } catch (o) {
19
+ r(o);
20
20
  }
21
- }, c = (o) => {
21
+ }, c = (u) => {
22
22
  try {
23
- u(n.throw(o));
24
- } catch (l) {
25
- r(l);
23
+ l(n.throw(u));
24
+ } catch (o) {
25
+ r(o);
26
26
  }
27
- }, u = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(s, c);
28
- u((n = n.apply(e, t)).next());
27
+ }, l = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(i, c);
28
+ l((n = n.apply(e, t)).next());
29
29
  });
30
- function h() {
30
+ function _() {
31
31
  }
32
- function H(e) {
32
+ function U(e) {
33
33
  return e();
34
34
  }
35
- function R() {
35
+ function P() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function w(e) {
39
- e.forEach(H);
38
+ function x(e) {
39
+ e.forEach(U);
40
40
  }
41
- function I(e) {
41
+ function D(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function q(e, t) {
44
+ function W(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function K(e) {
47
+ function Y(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Q(e, t) {
50
+ function q(e, t) {
51
51
  e.appendChild(t);
52
52
  }
53
- function W(e, t, n) {
54
- const i = X(e);
55
- if (!i.getElementById(t)) {
56
- const r = j("style");
57
- r.id = t, r.textContent = n, Y(i, r);
53
+ function Q(e, t, n) {
54
+ const s = X(e);
55
+ if (!s.getElementById(t)) {
56
+ const r = A("style");
57
+ r.id = t, r.textContent = n, Z(s, r);
58
58
  }
59
59
  }
60
60
  function X(e) {
@@ -67,29 +67,29 @@ function X(e) {
67
67
  t
68
68
  ) : e.ownerDocument;
69
69
  }
70
- function Y(e, t) {
71
- return Q(
70
+ function Z(e, t) {
71
+ return q(
72
72
  /** @type {Document} */
73
73
  e.head || e,
74
74
  t
75
75
  ), t.sheet;
76
76
  }
77
- function U(e, t, n) {
77
+ function I(e, t, n) {
78
78
  e.insertBefore(t, n || null);
79
79
  }
80
- function C(e) {
80
+ function v(e) {
81
81
  e.parentNode && e.parentNode.removeChild(e);
82
82
  }
83
- function j(e) {
83
+ function A(e) {
84
84
  return document.createElement(e);
85
85
  }
86
- function Z(e, t, n) {
86
+ function tt(e, t, n) {
87
87
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
88
88
  }
89
- function tt(e) {
89
+ function et(e) {
90
90
  return Array.from(e.childNodes);
91
91
  }
92
- function et(e) {
92
+ function nt(e) {
93
93
  const t = {};
94
94
  return e.childNodes.forEach(
95
95
  /** @param {Element} node */
@@ -102,122 +102,122 @@ let g;
102
102
  function m(e) {
103
103
  g = e;
104
104
  }
105
- function nt() {
105
+ function st() {
106
106
  if (!g)
107
107
  throw new Error("Function called outside component initialization");
108
108
  return g;
109
109
  }
110
110
  function it(e) {
111
- nt().$$.on_mount.push(e);
111
+ st().$$.on_mount.push(e);
112
112
  }
113
- const a = [], E = [];
114
- let _ = [];
115
- const T = [], st = /* @__PURE__ */ Promise.resolve();
116
- let v = !1;
117
- function rt() {
118
- v || (v = !0, st.then(p));
113
+ const h = [], k = [];
114
+ let p = [];
115
+ const H = [], rt = /* @__PURE__ */ Promise.resolve();
116
+ let C = !1;
117
+ function ct() {
118
+ C || (C = !0, rt.then(y));
119
119
  }
120
120
  function L(e) {
121
- _.push(e);
121
+ p.push(e);
122
122
  }
123
- const k = /* @__PURE__ */ new Set();
123
+ const E = /* @__PURE__ */ new Set();
124
124
  let $ = 0;
125
- function p() {
125
+ function y() {
126
126
  if ($ !== 0)
127
127
  return;
128
128
  const e = g;
129
129
  do {
130
130
  try {
131
- for (; $ < a.length; ) {
132
- const t = a[$];
133
- $++, m(t), ct(t.$$);
131
+ for (; $ < h.length; ) {
132
+ const t = h[$];
133
+ $++, m(t), ot(t.$$);
134
134
  }
135
135
  } catch (t) {
136
- throw a.length = 0, $ = 0, t;
136
+ throw h.length = 0, $ = 0, t;
137
137
  }
138
- for (m(null), a.length = 0, $ = 0; E.length; )
139
- E.pop()();
140
- for (let t = 0; t < _.length; t += 1) {
141
- const n = _[t];
142
- k.has(n) || (k.add(n), n());
138
+ for (m(null), h.length = 0, $ = 0; k.length; )
139
+ k.pop()();
140
+ for (let t = 0; t < p.length; t += 1) {
141
+ const n = p[t];
142
+ E.has(n) || (E.add(n), n());
143
143
  }
144
- _.length = 0;
145
- } while (a.length);
146
- for (; T.length; )
147
- T.pop()();
148
- v = !1, k.clear(), m(e);
144
+ p.length = 0;
145
+ } while (h.length);
146
+ for (; H.length; )
147
+ H.pop()();
148
+ C = !1, E.clear(), m(e);
149
149
  }
150
- function ct(e) {
150
+ function ot(e) {
151
151
  if (e.fragment !== null) {
152
- e.update(), w(e.before_update);
152
+ e.update(), x(e.before_update);
153
153
  const t = e.dirty;
154
154
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(L);
155
155
  }
156
156
  }
157
- function ot(e) {
157
+ function lt(e) {
158
158
  const t = [], n = [];
159
- _.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), _ = t;
159
+ p.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), p = t;
160
160
  }
161
- const lt = /* @__PURE__ */ new Set();
162
- function ut(e, t) {
163
- e && e.i && (lt.delete(e), e.i(t));
161
+ const ut = /* @__PURE__ */ new Set();
162
+ function dt(e, t) {
163
+ e && e.i && (ut.delete(e), e.i(t));
164
164
  }
165
- function dt(e, t, n) {
166
- const { fragment: i, after_update: r } = e.$$;
167
- i && i.m(t, n), L(() => {
168
- const s = e.$$.on_mount.map(H).filter(I);
169
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : w(s), e.$$.on_mount = [];
165
+ function ft(e, t, n) {
166
+ const { fragment: s, after_update: r } = e.$$;
167
+ s && s.m(t, n), L(() => {
168
+ const i = e.$$.on_mount.map(U).filter(D);
169
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : x(i), e.$$.on_mount = [];
170
170
  }), r.forEach(L);
171
171
  }
172
- function ft(e, t) {
172
+ function $t(e, t) {
173
173
  const n = e.$$;
174
- n.fragment !== null && (ot(n.after_update), w(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
174
+ n.fragment !== null && (lt(n.after_update), x(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
175
175
  }
176
- function $t(e, t) {
177
- e.$$.dirty[0] === -1 && (a.push(e), rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
176
+ function ht(e, t) {
177
+ e.$$.dirty[0] === -1 && (h.push(e), ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
178
178
  }
179
- function at(e, t, n, i, r, s, c = null, u = [-1]) {
180
- const o = g;
179
+ function at(e, t, n, s, r, i, c = null, l = [-1]) {
180
+ const u = g;
181
181
  m(e);
182
- const l = e.$$ = {
182
+ const o = e.$$ = {
183
183
  fragment: null,
184
184
  ctx: [],
185
185
  // state
186
- props: s,
187
- update: h,
186
+ props: i,
187
+ update: _,
188
188
  not_equal: r,
189
- bound: R(),
189
+ bound: P(),
190
190
  // lifecycle
191
191
  on_mount: [],
192
192
  on_destroy: [],
193
193
  on_disconnect: [],
194
194
  before_update: [],
195
195
  after_update: [],
196
- context: new Map(t.context || (o ? o.$$.context : [])),
196
+ context: new Map(t.context || (u ? u.$$.context : [])),
197
197
  // everything else
198
- callbacks: R(),
199
- dirty: u,
198
+ callbacks: P(),
199
+ dirty: l,
200
200
  skip_bound: !1,
201
- root: t.target || o.$$.root
201
+ root: t.target || u.$$.root
202
202
  };
203
- c && c(l.root);
204
- let y = !1;
205
- if (l.ctx = n ? n(e, t.props || {}, (f, O, ...S) => {
206
- const A = S.length ? S[0] : O;
207
- return l.ctx && r(l.ctx[f], l.ctx[f] = A) && (!l.skip_bound && l.bound[f] && l.bound[f](A), y && $t(e, f)), O;
208
- }) : [], l.update(), y = !0, w(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
203
+ c && c(o.root);
204
+ let b = !1;
205
+ if (o.ctx = n ? n(e, t.props || {}, (f, O, ...j) => {
206
+ const M = j.length ? j[0] : O;
207
+ return o.ctx && r(o.ctx[f], o.ctx[f] = M) && (!o.skip_bound && o.bound[f] && o.bound[f](M), b && ht(e, f)), O;
208
+ }) : [], o.update(), b = !0, x(o.before_update), o.fragment = s ? s(o.ctx) : !1, t.target) {
209
209
  if (t.hydrate) {
210
- const f = tt(t.target);
211
- l.fragment && l.fragment.l(f), f.forEach(C);
210
+ const f = et(t.target);
211
+ o.fragment && o.fragment.l(f), f.forEach(v);
212
212
  } else
213
- l.fragment && l.fragment.c();
214
- t.intro && ut(e.$$.fragment), dt(e, t.target, t.anchor), p();
213
+ o.fragment && o.fragment.c();
214
+ t.intro && dt(e.$$.fragment), ft(e, t.target, t.anchor), y();
215
215
  }
216
- m(o);
216
+ m(u);
217
217
  }
218
- let z;
219
- typeof HTMLElement == "function" && (z = class extends HTMLElement {
220
- constructor(t, n, i) {
218
+ let G;
219
+ typeof HTMLElement == "function" && (G = class extends HTMLElement {
220
+ constructor(t, n, s) {
221
221
  super();
222
222
  /** The Svelte component constructor */
223
223
  d(this, "$$ctor");
@@ -237,58 +237,58 @@ typeof HTMLElement == "function" && (z = class extends HTMLElement {
237
237
  d(this, "$$l", {});
238
238
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
239
239
  d(this, "$$l_u", /* @__PURE__ */ new Map());
240
- this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
240
+ this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
241
241
  }
242
- addEventListener(t, n, i) {
242
+ addEventListener(t, n, s) {
243
243
  if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
244
244
  const r = this.$$c.$on(t, n);
245
245
  this.$$l_u.set(n, r);
246
246
  }
247
- super.addEventListener(t, n, i);
247
+ super.addEventListener(t, n, s);
248
248
  }
249
- removeEventListener(t, n, i) {
250
- if (super.removeEventListener(t, n, i), this.$$c) {
249
+ removeEventListener(t, n, s) {
250
+ if (super.removeEventListener(t, n, s), this.$$c) {
251
251
  const r = this.$$l_u.get(n);
252
252
  r && (r(), this.$$l_u.delete(n));
253
253
  }
254
254
  }
255
255
  connectedCallback() {
256
- return P(this, null, function* () {
256
+ return R(this, null, function* () {
257
257
  if (this.$$cn = !0, !this.$$c) {
258
- let t = function(s) {
258
+ let t = function(i) {
259
259
  return () => {
260
260
  let c;
261
261
  return {
262
262
  c: function() {
263
- c = j("slot"), s !== "default" && Z(c, "name", s);
263
+ c = A("slot"), i !== "default" && tt(c, "name", i);
264
264
  },
265
265
  /**
266
266
  * @param {HTMLElement} target
267
267
  * @param {HTMLElement} [anchor]
268
268
  */
269
- m: function(l, y) {
270
- U(l, c, y);
269
+ m: function(o, b) {
270
+ I(o, c, b);
271
271
  },
272
- d: function(l) {
273
- l && C(c);
272
+ d: function(o) {
273
+ o && v(c);
274
274
  }
275
275
  };
276
276
  };
277
277
  };
278
278
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
279
279
  return;
280
- const n = {}, i = et(this);
281
- for (const s of this.$$s)
282
- s in i && (n[s] = [t(s)]);
283
- for (const s of this.attributes) {
284
- const c = this.$$g_p(s.name);
285
- c in this.$$d || (this.$$d[c] = b(c, s.value, this.$$p_d, "toProp"));
280
+ const n = {}, s = nt(this);
281
+ for (const i of this.$$s)
282
+ i in s && (n[i] = [t(i)]);
283
+ for (const i of this.attributes) {
284
+ const c = this.$$g_p(i.name);
285
+ c in this.$$d || (this.$$d[c] = w(c, i.value, this.$$p_d, "toProp"));
286
286
  }
287
- for (const s in this.$$p_d)
288
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
287
+ for (const i in this.$$p_d)
288
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
289
289
  this.$$c = new this.$$ctor({
290
290
  target: this.shadowRoot || this,
291
- props: B(N({}, this.$$d), {
291
+ props: T(B({}, this.$$d), {
292
292
  $$slots: n,
293
293
  $$scope: {
294
294
  ctx: []
@@ -297,23 +297,23 @@ typeof HTMLElement == "function" && (z = class extends HTMLElement {
297
297
  });
298
298
  const r = () => {
299
299
  this.$$r = !0;
300
- for (const s in this.$$p_d)
301
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
302
- const c = b(
303
- s,
304
- this.$$d[s],
300
+ for (const i in this.$$p_d)
301
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
302
+ const c = w(
303
+ i,
304
+ this.$$d[i],
305
305
  this.$$p_d,
306
306
  "toAttribute"
307
307
  );
308
- c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
308
+ c == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, c);
309
309
  }
310
310
  this.$$r = !1;
311
311
  };
312
312
  this.$$c.$$.after_update.push(r), r();
313
- for (const s in this.$$l)
314
- for (const c of this.$$l[s]) {
315
- const u = this.$$c.$on(s, c);
316
- this.$$l_u.set(c, u);
313
+ for (const i in this.$$l)
314
+ for (const c of this.$$l[i]) {
315
+ const l = this.$$c.$on(i, c);
316
+ this.$$l_u.set(c, l);
317
317
  }
318
318
  this.$$l = {};
319
319
  }
@@ -321,9 +321,9 @@ typeof HTMLElement == "function" && (z = class extends HTMLElement {
321
321
  }
322
322
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
323
323
  // and setting attributes through setAttribute etc, this is helpful
324
- attributeChangedCallback(t, n, i) {
324
+ attributeChangedCallback(t, n, s) {
325
325
  var r;
326
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = b(t, i, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
326
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = w(t, s, this.$$p_d, "toProp"), (r = this.$$c) == null || r.$set({ [t]: this.$$d[t] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,12 +336,12 @@ typeof HTMLElement == "function" && (z = class extends HTMLElement {
336
336
  ) || t;
337
337
  }
338
338
  });
339
- function b(e, t, n, i) {
340
- var s;
341
- const r = (s = n[e]) == null ? void 0 : s.type;
342
- if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
339
+ function w(e, t, n, s) {
340
+ var i;
341
+ const r = (i = n[e]) == null ? void 0 : i.type;
342
+ if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
343
343
  return t;
344
- if (i === "toAttribute")
344
+ if (s === "toAttribute")
345
345
  switch (r) {
346
346
  case "Object":
347
347
  case "Array":
@@ -366,38 +366,38 @@ function b(e, t, n, i) {
366
366
  return t;
367
367
  }
368
368
  }
369
- function ht(e, t, n, i, r, s) {
370
- let c = class extends z {
369
+ function _t(e, t, n, s, r, i) {
370
+ let c = class extends G {
371
371
  constructor() {
372
372
  super(e, n, r), this.$$p_d = t;
373
373
  }
374
374
  static get observedAttributes() {
375
375
  return Object.keys(t).map(
376
- (u) => (t[u].attribute || u).toLowerCase()
376
+ (l) => (t[l].attribute || l).toLowerCase()
377
377
  );
378
378
  }
379
379
  };
380
- return Object.keys(t).forEach((u) => {
381
- Object.defineProperty(c.prototype, u, {
380
+ return Object.keys(t).forEach((l) => {
381
+ Object.defineProperty(c.prototype, l, {
382
382
  get() {
383
- return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
383
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
384
384
  },
385
- set(o) {
386
- var l;
387
- o = b(u, o, t), this.$$d[u] = o, (l = this.$$c) == null || l.$set({ [u]: o });
385
+ set(u) {
386
+ var o;
387
+ u = w(l, u, t), this.$$d[l] = u, (o = this.$$c) == null || o.$set({ [l]: u });
388
388
  }
389
389
  });
390
- }), i.forEach((u) => {
391
- Object.defineProperty(c.prototype, u, {
390
+ }), s.forEach((l) => {
391
+ Object.defineProperty(c.prototype, l, {
392
392
  get() {
393
- var o;
394
- return (o = this.$$c) == null ? void 0 : o[u];
393
+ var u;
394
+ return (u = this.$$c) == null ? void 0 : u[l];
395
395
  }
396
396
  });
397
397
  }), e.element = /** @type {any} */
398
398
  c, c;
399
399
  }
400
- class _t {
400
+ class pt {
401
401
  constructor() {
402
402
  /**
403
403
  * ### PRIVATE API
@@ -418,7 +418,7 @@ class _t {
418
418
  }
419
419
  /** @returns {void} */
420
420
  $destroy() {
421
- ft(this, 1), this.$destroy = h;
421
+ $t(this, 1), this.$destroy = _;
422
422
  }
423
423
  /**
424
424
  * @template {Extract<keyof Events, string>} K
@@ -427,12 +427,12 @@ class _t {
427
427
  * @returns {() => void}
428
428
  */
429
429
  $on(t, n) {
430
- if (!I(n))
431
- return h;
432
- const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
433
- return i.push(n), () => {
434
- const r = i.indexOf(n);
435
- r !== -1 && i.splice(r, 1);
430
+ if (!D(n))
431
+ return _;
432
+ const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
433
+ return s.push(n), () => {
434
+ const r = s.indexOf(n);
435
+ r !== -1 && s.splice(r, 1);
436
436
  };
437
437
  }
438
438
  /**
@@ -440,12 +440,13 @@ class _t {
440
440
  * @returns {void}
441
441
  */
442
442
  $set(t) {
443
- this.$$set && !K(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
443
+ this.$$set && !Y(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
444
  }
445
445
  }
446
446
  const mt = "4";
447
447
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mt);
448
- function pt(e, t) {
448
+ const a = "__WIDGET_GLOBAL_STYLE_CACHE__";
449
+ function yt(e, t) {
449
450
  if (e) {
450
451
  const n = document.createElement("style");
451
452
  n.innerHTML = t, e.appendChild(n);
@@ -455,101 +456,129 @@ function gt(e, t) {
455
456
  if (!e || !t)
456
457
  return;
457
458
  const n = new URL(t);
458
- fetch(n.href).then((i) => i.text()).then((i) => {
459
+ fetch(n.href).then((s) => s.text()).then((s) => {
459
460
  const r = document.createElement("style");
460
- r.innerHTML = i, e && e.appendChild(r);
461
- }).catch((i) => {
462
- console.error("There was an error while trying to load client styling from URL", i);
461
+ r.innerHTML = s, e && e.appendChild(r);
462
+ }).catch((s) => {
463
+ console.error("There was an error while trying to load client styling from URL", s);
464
+ });
465
+ }
466
+ function bt(e, t, n, s = !1) {
467
+ if (!window.emMessageBus)
468
+ return;
469
+ if (!("adoptedStyleSheets" in Document.prototype) || !s)
470
+ return n = wt(e, t), n;
471
+ window[a] || (window[a] = {}), n = xt(e, t);
472
+ const i = n.unsubscribe.bind(n), c = () => {
473
+ if (window[a][t]) {
474
+ const l = window[a][t];
475
+ l.refCount > 1 ? l.refCount = l.refCount - 1 : delete window[a][t];
476
+ }
477
+ i();
478
+ };
479
+ return n.unsubscribe = c, n;
480
+ }
481
+ function wt(e, t) {
482
+ const n = document.createElement("style");
483
+ return window.emMessageBus.subscribe(t, (s) => {
484
+ e && (n.innerHTML = s, e.appendChild(n));
463
485
  });
464
486
  }
465
- function yt(e, t, n) {
466
- if (window.emMessageBus) {
467
- const i = document.createElement("style");
468
- window.emMessageBus.subscribe(t, (r) => {
469
- i.innerHTML = r, e && e.appendChild(i);
487
+ function xt(e, t) {
488
+ return window.emMessageBus.subscribe(t, (n) => {
489
+ var l;
490
+ if (!e)
491
+ return;
492
+ const s = e.getRootNode(), r = window[a];
493
+ let i = (l = r[t]) == null ? void 0 : l.sheet;
494
+ i ? r[t].refCount = r[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), r[t] = {
495
+ sheet: i,
496
+ refCount: 1
470
497
  });
471
- }
498
+ const c = s.adoptedStyleSheets || [];
499
+ c.includes(i) || (s.adoptedStyleSheets = [...c, i]);
500
+ });
472
501
  }
473
- function bt(e) {
474
- W(e, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
502
+ function St(e) {
503
+ Q(e, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
475
504
  }
476
- function wt(e) {
505
+ function Et(e) {
477
506
  let t;
478
507
  return {
479
508
  c() {
480
- t = j("div"), t.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
509
+ t = A("div"), t.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
481
510
  },
482
- m(n, i) {
483
- U(n, t, i), e[4](t);
511
+ m(n, s) {
512
+ I(n, t, s), e[4](t);
484
513
  },
485
- p: h,
486
- i: h,
487
- o: h,
514
+ p: _,
515
+ i: _,
516
+ o: _,
488
517
  d(n) {
489
- n && C(t), e[4](null);
518
+ n && v(t), e[4](null);
490
519
  }
491
520
  };
492
521
  }
493
- function xt(e, t, n) {
494
- let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { mbsource: s } = t, c;
522
+ function kt(e, t, n) {
523
+ let { clientstyling: s = "" } = t, { clientstylingurl: r = "" } = t, { mbsource: i } = t, c, l;
495
524
  it(() => () => {
496
525
  });
497
526
  function u(o) {
498
- E[o ? "unshift" : "push"](() => {
527
+ k[o ? "unshift" : "push"](() => {
499
528
  c = o, n(0, c);
500
529
  });
501
530
  }
502
531
  return e.$$set = (o) => {
503
- "clientstyling" in o && n(1, i = o.clientstyling), "clientstylingurl" in o && n(2, r = o.clientstylingurl), "mbsource" in o && n(3, s = o.mbsource);
532
+ "clientstyling" in o && n(1, s = o.clientstyling), "clientstylingurl" in o && n(2, r = o.clientstylingurl), "mbsource" in o && n(3, i = o.mbsource);
504
533
  }, e.$$.update = () => {
505
534
  e.$$.dirty & /*clientstyling, customStylingContainer*/
506
- 3 && i && c && pt(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
535
+ 3 && s && c && yt(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
507
536
  5 && r && c && gt(c, r), e.$$.dirty & /*mbsource, customStylingContainer*/
508
- 9 && s && c && yt(c, `${s}.Style`);
537
+ 9 && i && c && bt(c, `${i}.Style`, l);
509
538
  }, [
510
539
  c,
511
- i,
512
- r,
513
540
  s,
541
+ r,
542
+ i,
514
543
  u
515
544
  ];
516
545
  }
517
- class kt extends _t {
546
+ class Ct extends pt {
518
547
  constructor(t) {
519
548
  super(), at(
520
549
  this,
521
550
  t,
522
- xt,
523
- wt,
524
- q,
551
+ kt,
552
+ Et,
553
+ W,
525
554
  {
526
555
  clientstyling: 1,
527
556
  clientstylingurl: 2,
528
557
  mbsource: 3
529
558
  },
530
- bt
559
+ St
531
560
  );
532
561
  }
533
562
  get clientstyling() {
534
563
  return this.$$.ctx[1];
535
564
  }
536
565
  set clientstyling(t) {
537
- this.$$set({ clientstyling: t }), p();
566
+ this.$$set({ clientstyling: t }), y();
538
567
  }
539
568
  get clientstylingurl() {
540
569
  return this.$$.ctx[2];
541
570
  }
542
571
  set clientstylingurl(t) {
543
- this.$$set({ clientstylingurl: t }), p();
572
+ this.$$set({ clientstylingurl: t }), y();
544
573
  }
545
574
  get mbsource() {
546
575
  return this.$$.ctx[3];
547
576
  }
548
577
  set mbsource(t) {
549
- this.$$set({ mbsource: t }), p();
578
+ this.$$set({ mbsource: t }), y();
550
579
  }
551
580
  }
552
- ht(kt, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
581
+ _t(Ct, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
553
582
  export {
554
- kt as default
583
+ Ct as default
555
584
  };