@everymatrix/general-animation-loading 1.55.0 → 1.56.2

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