@everymatrix/general-animation-loading 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,550 @@
1
+ var D = Object.defineProperty, F = Object.defineProperties;
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) => {
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]);
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);
14
+ var P = (e, t, n) => new Promise((i, r) => {
15
+ var s = (o) => {
16
+ try {
17
+ u(n.next(o));
18
+ } catch (l) {
19
+ r(l);
20
+ }
21
+ }, c = (o) => {
22
+ try {
23
+ u(n.throw(o));
24
+ } catch (l) {
25
+ r(l);
26
+ }
27
+ }, u = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(s, c);
28
+ u((n = n.apply(e, t)).next());
29
+ });
30
+ function h() {
31
+ }
32
+ function H(e) {
33
+ return e();
34
+ }
35
+ function R() {
36
+ return /* @__PURE__ */ Object.create(null);
37
+ }
38
+ function w(e) {
39
+ e.forEach(H);
40
+ }
41
+ function U(e) {
42
+ return typeof e == "function";
43
+ }
44
+ function q(e, t) {
45
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
+ }
47
+ function K(e) {
48
+ return Object.keys(e).length === 0;
49
+ }
50
+ function Q(e, t) {
51
+ e.appendChild(t);
52
+ }
53
+ function W(e, t, n) {
54
+ const i = X(e);
55
+ if (!i.getElementById(t)) {
56
+ const r = S("style");
57
+ r.id = t, r.textContent = n, Y(i, r);
58
+ }
59
+ }
60
+ function X(e) {
61
+ if (!e) return document;
62
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
63
+ return t && /** @type {ShadowRoot} */
64
+ t.host ? (
65
+ /** @type {ShadowRoot} */
66
+ t
67
+ ) : e.ownerDocument;
68
+ }
69
+ function Y(e, t) {
70
+ return Q(
71
+ /** @type {Document} */
72
+ e.head || e,
73
+ t
74
+ ), t.sheet;
75
+ }
76
+ function I(e, t, n) {
77
+ e.insertBefore(t, n || null);
78
+ }
79
+ function C(e) {
80
+ e.parentNode && e.parentNode.removeChild(e);
81
+ }
82
+ function S(e) {
83
+ return document.createElement(e);
84
+ }
85
+ function Z(e, t, n) {
86
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
87
+ }
88
+ function tt(e) {
89
+ return Array.from(e.childNodes);
90
+ }
91
+ function et(e) {
92
+ const t = {};
93
+ return e.childNodes.forEach(
94
+ /** @param {Element} node */
95
+ (n) => {
96
+ t[n.slot || "default"] = !0;
97
+ }
98
+ ), t;
99
+ }
100
+ let g;
101
+ function m(e) {
102
+ g = e;
103
+ }
104
+ function nt() {
105
+ if (!g) throw new Error("Function called outside component initialization");
106
+ return g;
107
+ }
108
+ function it(e) {
109
+ nt().$$.on_mount.push(e);
110
+ }
111
+ const a = [], E = [];
112
+ let _ = [];
113
+ const T = [], st = /* @__PURE__ */ Promise.resolve();
114
+ let v = !1;
115
+ function rt() {
116
+ v || (v = !0, st.then(p));
117
+ }
118
+ function L(e) {
119
+ _.push(e);
120
+ }
121
+ const k = /* @__PURE__ */ new Set();
122
+ let $ = 0;
123
+ function p() {
124
+ if ($ !== 0)
125
+ return;
126
+ const e = g;
127
+ do {
128
+ try {
129
+ for (; $ < a.length; ) {
130
+ const t = a[$];
131
+ $++, m(t), ct(t.$$);
132
+ }
133
+ } catch (t) {
134
+ throw a.length = 0, $ = 0, t;
135
+ }
136
+ for (m(null), a.length = 0, $ = 0; E.length; ) E.pop()();
137
+ for (let t = 0; t < _.length; t += 1) {
138
+ const n = _[t];
139
+ k.has(n) || (k.add(n), n());
140
+ }
141
+ _.length = 0;
142
+ } while (a.length);
143
+ for (; T.length; )
144
+ T.pop()();
145
+ v = !1, k.clear(), m(e);
146
+ }
147
+ function ct(e) {
148
+ if (e.fragment !== null) {
149
+ e.update(), w(e.before_update);
150
+ const t = e.dirty;
151
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(L);
152
+ }
153
+ }
154
+ function ot(e) {
155
+ const t = [], n = [];
156
+ _.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), _ = t;
157
+ }
158
+ const lt = /* @__PURE__ */ new Set();
159
+ function ut(e, t) {
160
+ e && e.i && (lt.delete(e), e.i(t));
161
+ }
162
+ function dt(e, t, n) {
163
+ const { fragment: i, after_update: r } = e.$$;
164
+ i && i.m(t, n), L(() => {
165
+ const s = e.$$.on_mount.map(H).filter(U);
166
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : w(s), e.$$.on_mount = [];
167
+ }), r.forEach(L);
168
+ }
169
+ function ft(e, t) {
170
+ const n = e.$$;
171
+ 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 = []);
172
+ }
173
+ function $t(e, t) {
174
+ e.$$.dirty[0] === -1 && (a.push(e), rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
175
+ }
176
+ function at(e, t, n, i, r, s, c = null, u = [-1]) {
177
+ const o = g;
178
+ m(e);
179
+ const l = e.$$ = {
180
+ fragment: null,
181
+ ctx: [],
182
+ // state
183
+ props: s,
184
+ update: h,
185
+ not_equal: r,
186
+ bound: R(),
187
+ // lifecycle
188
+ on_mount: [],
189
+ on_destroy: [],
190
+ on_disconnect: [],
191
+ before_update: [],
192
+ after_update: [],
193
+ context: new Map(t.context || (o ? o.$$.context : [])),
194
+ // everything else
195
+ callbacks: R(),
196
+ dirty: u,
197
+ skip_bound: !1,
198
+ root: t.target || o.$$.root
199
+ };
200
+ c && c(l.root);
201
+ let y = !1;
202
+ if (l.ctx = n ? n(e, t.props || {}, (f, j, ...O) => {
203
+ const A = O.length ? O[0] : j;
204
+ 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)), j;
205
+ }) : [], l.update(), y = !0, w(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
206
+ if (t.hydrate) {
207
+ const f = tt(t.target);
208
+ l.fragment && l.fragment.l(f), f.forEach(C);
209
+ } else
210
+ l.fragment && l.fragment.c();
211
+ t.intro && ut(e.$$.fragment), dt(e, t.target, t.anchor), p();
212
+ }
213
+ m(o);
214
+ }
215
+ let z;
216
+ typeof HTMLElement == "function" && (z = class extends HTMLElement {
217
+ constructor(t, n, i) {
218
+ super();
219
+ /** The Svelte component constructor */
220
+ d(this, "$$ctor");
221
+ /** Slots */
222
+ d(this, "$$s");
223
+ /** The Svelte component instance */
224
+ d(this, "$$c");
225
+ /** Whether or not the custom element is connected */
226
+ d(this, "$$cn", !1);
227
+ /** Component props data */
228
+ d(this, "$$d", {});
229
+ /** `true` if currently in the process of reflecting component props back to attributes */
230
+ d(this, "$$r", !1);
231
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
232
+ d(this, "$$p_d", {});
233
+ /** @type {Record<string, Function[]>} Event listeners */
234
+ d(this, "$$l", {});
235
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
236
+ d(this, "$$l_u", /* @__PURE__ */ new Map());
237
+ this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
238
+ }
239
+ addEventListener(t, n, i) {
240
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
241
+ const r = this.$$c.$on(t, n);
242
+ this.$$l_u.set(n, r);
243
+ }
244
+ super.addEventListener(t, n, i);
245
+ }
246
+ removeEventListener(t, n, i) {
247
+ if (super.removeEventListener(t, n, i), this.$$c) {
248
+ const r = this.$$l_u.get(n);
249
+ r && (r(), this.$$l_u.delete(n));
250
+ }
251
+ }
252
+ connectedCallback() {
253
+ return P(this, null, function* () {
254
+ if (this.$$cn = !0, !this.$$c) {
255
+ let t = function(s) {
256
+ return () => {
257
+ let c;
258
+ return {
259
+ c: function() {
260
+ c = S("slot"), s !== "default" && Z(c, "name", s);
261
+ },
262
+ /**
263
+ * @param {HTMLElement} target
264
+ * @param {HTMLElement} [anchor]
265
+ */
266
+ m: function(l, y) {
267
+ I(l, c, y);
268
+ },
269
+ d: function(l) {
270
+ l && C(c);
271
+ }
272
+ };
273
+ };
274
+ };
275
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
276
+ return;
277
+ const n = {}, i = et(this);
278
+ for (const s of this.$$s)
279
+ s in i && (n[s] = [t(s)]);
280
+ for (const s of this.attributes) {
281
+ const c = this.$$g_p(s.name);
282
+ c in this.$$d || (this.$$d[c] = b(c, s.value, this.$$p_d, "toProp"));
283
+ }
284
+ for (const s in this.$$p_d)
285
+ !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
286
+ this.$$c = new this.$$ctor({
287
+ target: this.shadowRoot || this,
288
+ props: B(N({}, this.$$d), {
289
+ $$slots: n,
290
+ $$scope: {
291
+ ctx: []
292
+ }
293
+ })
294
+ });
295
+ const r = () => {
296
+ this.$$r = !0;
297
+ for (const s in this.$$p_d)
298
+ if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
299
+ const c = b(
300
+ s,
301
+ this.$$d[s],
302
+ this.$$p_d,
303
+ "toAttribute"
304
+ );
305
+ c == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, c);
306
+ }
307
+ this.$$r = !1;
308
+ };
309
+ this.$$c.$$.after_update.push(r), r();
310
+ for (const s in this.$$l)
311
+ for (const c of this.$$l[s]) {
312
+ const u = this.$$c.$on(s, c);
313
+ this.$$l_u.set(c, u);
314
+ }
315
+ this.$$l = {};
316
+ }
317
+ });
318
+ }
319
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
320
+ // and setting attributes through setAttribute etc, this is helpful
321
+ attributeChangedCallback(t, n, i) {
322
+ var r;
323
+ 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] }));
324
+ }
325
+ disconnectedCallback() {
326
+ this.$$cn = !1, Promise.resolve().then(() => {
327
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
328
+ });
329
+ }
330
+ $$g_p(t) {
331
+ return Object.keys(this.$$p_d).find(
332
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
333
+ ) || t;
334
+ }
335
+ });
336
+ function b(e, t, n, i) {
337
+ var s;
338
+ const r = (s = n[e]) == null ? void 0 : s.type;
339
+ if (t = r === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
340
+ return t;
341
+ if (i === "toAttribute")
342
+ switch (r) {
343
+ case "Object":
344
+ case "Array":
345
+ return t == null ? null : JSON.stringify(t);
346
+ case "Boolean":
347
+ return t ? "" : null;
348
+ case "Number":
349
+ return t == null ? null : t;
350
+ default:
351
+ return t;
352
+ }
353
+ else
354
+ switch (r) {
355
+ case "Object":
356
+ case "Array":
357
+ return t && JSON.parse(t);
358
+ case "Boolean":
359
+ return t;
360
+ case "Number":
361
+ return t != null ? +t : t;
362
+ default:
363
+ return t;
364
+ }
365
+ }
366
+ function ht(e, t, n, i, r, s) {
367
+ let c = class extends z {
368
+ constructor() {
369
+ super(e, n, r), this.$$p_d = t;
370
+ }
371
+ static get observedAttributes() {
372
+ return Object.keys(t).map(
373
+ (u) => (t[u].attribute || u).toLowerCase()
374
+ );
375
+ }
376
+ };
377
+ return Object.keys(t).forEach((u) => {
378
+ Object.defineProperty(c.prototype, u, {
379
+ get() {
380
+ return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
381
+ },
382
+ set(o) {
383
+ var l;
384
+ o = b(u, o, t), this.$$d[u] = o, (l = this.$$c) == null || l.$set({ [u]: o });
385
+ }
386
+ });
387
+ }), i.forEach((u) => {
388
+ Object.defineProperty(c.prototype, u, {
389
+ get() {
390
+ var o;
391
+ return (o = this.$$c) == null ? void 0 : o[u];
392
+ }
393
+ });
394
+ }), e.element = /** @type {any} */
395
+ c, c;
396
+ }
397
+ class _t {
398
+ constructor() {
399
+ /**
400
+ * ### PRIVATE API
401
+ *
402
+ * Do not use, may change at any time
403
+ *
404
+ * @type {any}
405
+ */
406
+ d(this, "$$");
407
+ /**
408
+ * ### PRIVATE API
409
+ *
410
+ * Do not use, may change at any time
411
+ *
412
+ * @type {any}
413
+ */
414
+ d(this, "$$set");
415
+ }
416
+ /** @returns {void} */
417
+ $destroy() {
418
+ ft(this, 1), this.$destroy = h;
419
+ }
420
+ /**
421
+ * @template {Extract<keyof Events, string>} K
422
+ * @param {K} type
423
+ * @param {((e: Events[K]) => void) | null | undefined} callback
424
+ * @returns {() => void}
425
+ */
426
+ $on(t, n) {
427
+ if (!U(n))
428
+ return h;
429
+ const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
430
+ return i.push(n), () => {
431
+ const r = i.indexOf(n);
432
+ r !== -1 && i.splice(r, 1);
433
+ };
434
+ }
435
+ /**
436
+ * @param {Partial<Props>} props
437
+ * @returns {void}
438
+ */
439
+ $set(t) {
440
+ this.$$set && !K(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
441
+ }
442
+ }
443
+ const mt = "4";
444
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mt);
445
+ function pt(e, t) {
446
+ if (e) {
447
+ const n = document.createElement("style");
448
+ n.innerHTML = t, e.appendChild(n);
449
+ }
450
+ }
451
+ function gt(e, t) {
452
+ const n = new URL(t);
453
+ fetch(n.href).then((i) => i.text()).then((i) => {
454
+ const r = document.createElement("style");
455
+ r.innerHTML = i, e && e.appendChild(r);
456
+ }).catch((i) => {
457
+ console.error("There was an error while trying to load client styling from URL", i);
458
+ });
459
+ }
460
+ function yt(e, t, n) {
461
+ if (window.emMessageBus) {
462
+ const i = document.createElement("style");
463
+ window.emMessageBus.subscribe(t, (r) => {
464
+ i.innerHTML = r, e && e.appendChild(i);
465
+ });
466
+ }
467
+ }
468
+ function bt(e) {
469
+ 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)}}");
470
+ }
471
+ function wt(e) {
472
+ let t;
473
+ return {
474
+ c() {
475
+ t = S("div"), t.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
476
+ },
477
+ m(n, i) {
478
+ I(n, t, i), e[4](t);
479
+ },
480
+ p: h,
481
+ i: h,
482
+ o: h,
483
+ d(n) {
484
+ n && C(t), e[4](null);
485
+ }
486
+ };
487
+ }
488
+ function xt(e, t, n) {
489
+ let { clientstyling: i = "" } = t, { clientstylingurl: r = "" } = t, { mbsource: s } = t, c;
490
+ it(() => () => {
491
+ });
492
+ function u(o) {
493
+ E[o ? "unshift" : "push"](() => {
494
+ c = o, n(0, c);
495
+ });
496
+ }
497
+ return e.$$set = (o) => {
498
+ "clientstyling" in o && n(1, i = o.clientstyling), "clientstylingurl" in o && n(2, r = o.clientstylingurl), "mbsource" in o && n(3, s = o.mbsource);
499
+ }, e.$$.update = () => {
500
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
501
+ 3 && i && c && pt(c, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
502
+ 5 && r && c && gt(c, r), e.$$.dirty & /*mbsource, customStylingContainer*/
503
+ 9 && s && c && yt(c, `${s}.Style`);
504
+ }, [
505
+ c,
506
+ i,
507
+ r,
508
+ s,
509
+ u
510
+ ];
511
+ }
512
+ class kt extends _t {
513
+ constructor(t) {
514
+ super(), at(
515
+ this,
516
+ t,
517
+ xt,
518
+ wt,
519
+ q,
520
+ {
521
+ clientstyling: 1,
522
+ clientstylingurl: 2,
523
+ mbsource: 3
524
+ },
525
+ bt
526
+ );
527
+ }
528
+ get clientstyling() {
529
+ return this.$$.ctx[1];
530
+ }
531
+ set clientstyling(t) {
532
+ this.$$set({ clientstyling: t }), p();
533
+ }
534
+ get clientstylingurl() {
535
+ return this.$$.ctx[2];
536
+ }
537
+ set clientstylingurl(t) {
538
+ this.$$set({ clientstylingurl: t }), p();
539
+ }
540
+ get mbsource() {
541
+ return this.$$.ctx[3];
542
+ }
543
+ set mbsource(t) {
544
+ this.$$set({ mbsource: t }), p();
545
+ }
546
+ }
547
+ ht(kt, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
548
+ export {
549
+ kt as default
550
+ };