@everymatrix/general-animation-loading 1.88.6 → 1.88.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 +1 @@
1
- "use strict";var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))W.call(t,n)&&x(e,n,t[n]);return e},B=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=u=>{try{l(n.next(u))}catch(o){r(o)}},c=u=>{try{l(n.throw(u))}catch(o){r(o)}},l=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,c);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U)}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function q(e){return Object.keys(e).length===0}function Q(e,t){e.appendChild(t)}function X(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=O("style");r.id=t,r.textContent=n,tt(s,r)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return Q(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function v(e){e.parentNode&&e.parentNode.removeChild(e)}function O(e){return document.createElement(e)}function et(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let g;function y(e){g=e}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function rt(e){it().$$.on_mount.push(e)}const h=[],k=[];let p=[];const H=[],ct=Promise.resolve();let C=!1;function ot(){C||(C=!0,ct.then(m))}function L(e){p.push(e)}const E=new Set;let $=0;function m(){if($!==0)return;const e=g;do{try{for(;$<h.length;){const t=h[$];$++,y(t),lt(t.$$)}}catch(t){throw h.length=0,$=0,t}for(y(null),h.length=0,$=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];E.has(n)||(E.add(n),n())}p.length=0}while(h.length);for(;H.length;)H.pop()();C=!1,E.clear(),y(e)}function lt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}function ut(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t}const dt=new Set;function ft(e,t){e&&e.i&&(dt.delete(e),e.i(t))}function $t(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),L(()=>{const i=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...i):S(i),e.$$.on_mount=[]}),r.forEach(L)}function ht(e,t){const n=e.$$;n.fragment!==null&&(ut(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function at(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,s,r,i,c=null,l=[-1]){const u=g;y(e);const o=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:r,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:R(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};c&&c(o.root);let b=!1;if(o.ctx=n?n(e,t.props||{},(f,j,...A)=>{const M=A.length?A[0]:j;return o.ctx&&r(o.ctx[f],o.ctx[f]=M)&&(!o.skip_bound&&o.bound[f]&&o.bound[f](M),b&&at(e,f)),j}):[],o.update(),b=!0,S(o.before_update),o.fragment=s?s(o.ctx):!1,t.target){if(t.hydrate){const f=nt(t.target);o.fragment&&o.fragment.l(f),f.forEach(v)}else o.fragment&&o.fragment.c();t.intro&&ft(e.$$.fragment),$t(e,t.target,t.anchor),m()}y(u)}let G;typeof HTMLElement=="function"&&(G=class extends HTMLElement{constructor(t,n,s){super();d(this,"$$ctor");d(this,"$$s");d(this,"$$c");d(this,"$$cn",!1);d(this,"$$d",{});d(this,"$$r",!1);d(this,"$$p_d",{});d(this,"$$l",{});d(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let c;return{c:function(){c=O("slot"),i!=="default"&&et(c,"name",i)},m:function(o,b){I(o,c,b)},d:function(o){o&&v(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=w(c,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:B(T({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=w(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const c of this.$$l[i]){const l=this.$$c.$on(i,c);this.$$l_u.set(c,l)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;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]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function w(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,r,i){let c=class extends G{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(c.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var o;u=w(l,u,t),this.$$d[l]=u,(o=this.$$c)==null||o.$set({[l]:u})}})}),s.forEach(l=>{Object.defineProperty(c.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=c,c}class yt{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){ht(this,1),this.$destroy=_}$on(t,n){if(!D(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const mt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);const a="__WIDGET_GLOBAL_STYLE_CACHE__";function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[a]||(window[a]={}),n=xt(e,t);const i=n.unsubscribe.bind(n),c=()=>{if(window[a][t]){const l=window[a][t];l.refCount>1?l.refCount=l.refCount-1:delete window[a][t]}i()};return n.unsubscribe=c,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function xt(e,t){return window.emMessageBus.subscribe(t,n=>{var l;if(!e)return;const s=e.getRootNode(),r=window[a];let i=(l=r[t])==null?void 0:l.sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const c=s.adoptedStyleSheets||[];c.includes(i)||(s.adoptedStyleSheets=[...c,i])})}function Et(e){X(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)}}")}function kt(e){let t;return{c(){t=O("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(n,s){I(n,t,s),e[4](t)},p:_,i:_,o:_,d(n){n&&v(t),e[4](null)}}}function Ct(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i}=t,c,l;rt(()=>()=>{});function u(o){k[o?"unshift":"push"](()=>{c=o,n(0,c)})}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&c&&gt(c,s),e.$$.dirty&5&&r&&c&&bt(c,r),e.$$.dirty&9&&i&&c&&wt(c,`${i}.Style`,l)},[c,s,r,i,u]}class z extends yt{constructor(t){super(),_t(this,t,Ct,kt,Y,{clientstyling:1,clientstylingurl:2,mbsource:3},Et)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),m()}}pt(z,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=z;
1
+ "use strict";var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))W.call(t,n)&&x(e,n,t[n]);return e},B=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=u=>{try{l(n.next(u))}catch(o){r(o)}},c=u=>{try{l(n.throw(u))}catch(o){r(o)}},l=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,c);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U)}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function q(e){return Object.keys(e).length===0}function Q(e,t){e.appendChild(t)}function X(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=O("style");r.id=t,r.textContent=n,tt(s,r)}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return Q(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null)}function v(e){e.parentNode&&e.parentNode.removeChild(e)}function O(e){return document.createElement(e)}function et(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let m;function y(e){m=e}function it(){if(!m)throw new Error("Function called outside component initialization");return m}function rt(e){it().$$.on_mount.push(e)}const h=[],k=[];let p=[];const H=[],ct=Promise.resolve();let C=!1;function ot(){C||(C=!0,ct.then(g))}function L(e){p.push(e)}const E=new Set;let $=0;function g(){if($!==0)return;const e=m;do{try{for(;$<h.length;){const t=h[$];$++,y(t),lt(t.$$)}}catch(t){throw h.length=0,$=0,t}for(y(null),h.length=0,$=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];E.has(n)||(E.add(n),n())}p.length=0}while(h.length);for(;H.length;)H.pop()();C=!1,E.clear(),y(e)}function lt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}function ut(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t}const dt=new Set;function ft(e,t){e&&e.i&&(dt.delete(e),e.i(t))}function $t(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),L(()=>{const i=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...i):S(i),e.$$.on_mount=[]}),r.forEach(L)}function ht(e,t){const n=e.$$;n.fragment!==null&&(ut(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function at(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function _t(e,t,n,s,r,i,c=null,l=[-1]){const u=m;y(e);const o=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:r,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:R(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};c&&c(o.root);let b=!1;if(o.ctx=n?n(e,t.props||{},(f,j,...A)=>{const M=A.length?A[0]:j;return o.ctx&&r(o.ctx[f],o.ctx[f]=M)&&(!o.skip_bound&&o.bound[f]&&o.bound[f](M),b&&at(e,f)),j}):[],o.update(),b=!0,S(o.before_update),o.fragment=s?s(o.ctx):!1,t.target){if(t.hydrate){const f=nt(t.target);o.fragment&&o.fragment.l(f),f.forEach(v)}else o.fragment&&o.fragment.c();t.intro&&ft(e.$$.fragment),$t(e,t.target,t.anchor),g()}y(u)}let G;typeof HTMLElement=="function"&&(G=class extends HTMLElement{constructor(t,n,s){super();d(this,"$$ctor");d(this,"$$s");d(this,"$$c");d(this,"$$cn",!1);d(this,"$$d",{});d(this,"$$r",!1);d(this,"$$p_d",{});d(this,"$$l",{});d(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let c;return{c:function(){c=O("slot"),i!=="default"&&et(c,"name",i)},m:function(o,b){I(o,c,b)},d:function(o){o&&v(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=w(c,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:B(T({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=w(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const c of this.$$l[i]){const l=this.$$c.$on(i,c);this.$$l_u.set(c,l)}this.$$l={}}})}attributeChangedCallback(t,n,s){var r;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]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function w(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,r,i){let c=class extends G{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(c.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var o;u=w(l,u,t),this.$$d[l]=u,(o=this.$$c)==null||o.$set({[l]:u})}})}),s.forEach(l=>{Object.defineProperty(c.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),e.element=c,c}class yt{constructor(){d(this,"$$");d(this,"$$set")}$destroy(){ht(this,1),this.$destroy=_}$on(t,n){if(!D(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1)}}$set(t){this.$$set&&!q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const gt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);const a="__WIDGET_GLOBAL_STYLE_CACHE__";function mt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r)}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s)})}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[a]||(window[a]={}),n=xt(e,t);const i=n.unsubscribe.bind(n),c=()=>{if(window[a][t]){const l=window[a][t];l.refCount>1?l.refCount=l.refCount-1:delete window[a][t]}i()};return n.unsubscribe=c,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n))})}function xt(e,t){return window.emMessageBus.subscribe(t,n=>{if(!e)return;const s=e.getRootNode(),r=window[a];let i=r[t]&&r[t].sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const c=s.adoptedStyleSheets||[];c.includes(i)||(s.adoptedStyleSheets=[...c,i])})}function Et(e){X(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)}}")}function kt(e){let t;return{c(){t=O("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(n,s){I(n,t,s),e[4](t)},p:_,i:_,o:_,d(n){n&&v(t),e[4](null)}}}function Ct(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i}=t,c,l;rt(()=>()=>{});function u(o){k[o?"unshift":"push"](()=>{c=o,n(0,c)})}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&s&&c&&mt(c,s),e.$$.dirty&5&&r&&c&&bt(c,r),e.$$.dirty&9&&i&&c&&wt(c,`${i}.Style`,l)},[c,s,r,i,u]}class z extends yt{constructor(t){super(),_t(this,t,Ct,kt,Y,{clientstyling:1,clientstylingurl:2,mbsource:3},Et)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),g()}}pt(z,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=z;
@@ -69,14 +69,14 @@ function J(t) {
69
69
  }
70
70
  ), e;
71
71
  }
72
- let y;
72
+ let m;
73
73
  function p(t) {
74
- y = t;
74
+ m = t;
75
75
  }
76
76
  function V() {
77
- if (!y)
77
+ if (!m)
78
78
  throw new Error("Function called outside component initialization");
79
- return y;
79
+ return m;
80
80
  }
81
81
  function K(t) {
82
82
  V().$$.on_mount.push(t);
@@ -86,17 +86,17 @@ let _ = [];
86
86
  const M = [], W = /* @__PURE__ */ Promise.resolve();
87
87
  let S = !1;
88
88
  function Y() {
89
- S || (S = !0, W.then(m));
89
+ S || (S = !0, W.then(y));
90
90
  }
91
91
  function E(t) {
92
92
  _.push(t);
93
93
  }
94
94
  const w = /* @__PURE__ */ new Set();
95
95
  let f = 0;
96
- function m() {
96
+ function y() {
97
97
  if (f !== 0)
98
98
  return;
99
- const t = y;
99
+ const t = m;
100
100
  do {
101
101
  try {
102
102
  for (; f < $.length; ) {
@@ -148,7 +148,7 @@ function nt(t, e) {
148
148
  t.$$.dirty[0] === -1 && ($.push(t), Y(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
149
149
  }
150
150
  function st(t, e, n, i, s, r, o = null, l = [-1]) {
151
- const u = y;
151
+ const u = m;
152
152
  p(t);
153
153
  const c = t.$$ = {
154
154
  fragment: null,
@@ -182,7 +182,7 @@ function st(t, e, n, i, s, r, o = null, l = [-1]) {
182
182
  c.fragment && c.fragment.l(d), d.forEach(k);
183
183
  } else
184
184
  c.fragment && c.fragment.c();
185
- e.intro && Z(t.$$.fragment), tt(t, e.target, e.anchor), m();
185
+ e.intro && Z(t.$$.fragment), tt(t, e.target, e.anchor), y();
186
186
  }
187
187
  p(u);
188
188
  }
@@ -452,7 +452,7 @@ function ft(t, e) {
452
452
  if (!t)
453
453
  return;
454
454
  const i = t.getRootNode(), s = window[h];
455
- let r = s[e]?.sheet;
455
+ let r = s[e] && s[e].sheet;
456
456
  r ? s[e].refCount = s[e].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(n), s[e] = {
457
457
  sheet: r,
458
458
  refCount: 1
@@ -525,19 +525,19 @@ class _t extends rt {
525
525
  return this.$$.ctx[1];
526
526
  }
527
527
  set clientstyling(e) {
528
- this.$$set({ clientstyling: e }), m();
528
+ this.$$set({ clientstyling: e }), y();
529
529
  }
530
530
  get clientstylingurl() {
531
531
  return this.$$.ctx[2];
532
532
  }
533
533
  set clientstylingurl(e) {
534
- this.$$set({ clientstylingurl: e }), m();
534
+ this.$$set({ clientstylingurl: e }), y();
535
535
  }
536
536
  get mbsource() {
537
537
  return this.$$.ctx[3];
538
538
  }
539
539
  set mbsource(e) {
540
- this.$$set({ mbsource: e }), m();
540
+ this.$$set({ mbsource: e }), y();
541
541
  }
542
542
  }
543
543
  it(_t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
@@ -99,7 +99,7 @@ function nt(e) {
99
99
  ), t;
100
100
  }
101
101
  let g;
102
- function m(e) {
102
+ function y(e) {
103
103
  g = e;
104
104
  }
105
105
  function st() {
@@ -115,14 +115,14 @@ let p = [];
115
115
  const H = [], rt = /* @__PURE__ */ Promise.resolve();
116
116
  let C = !1;
117
117
  function ct() {
118
- C || (C = !0, rt.then(y));
118
+ C || (C = !0, rt.then(m));
119
119
  }
120
120
  function L(e) {
121
121
  p.push(e);
122
122
  }
123
123
  const E = /* @__PURE__ */ new Set();
124
124
  let $ = 0;
125
- function y() {
125
+ function m() {
126
126
  if ($ !== 0)
127
127
  return;
128
128
  const e = g;
@@ -130,12 +130,12 @@ function y() {
130
130
  try {
131
131
  for (; $ < h.length; ) {
132
132
  const t = h[$];
133
- $++, m(t), ot(t.$$);
133
+ $++, y(t), ot(t.$$);
134
134
  }
135
135
  } catch (t) {
136
136
  throw h.length = 0, $ = 0, t;
137
137
  }
138
- for (m(null), h.length = 0, $ = 0; k.length; )
138
+ for (y(null), h.length = 0, $ = 0; k.length; )
139
139
  k.pop()();
140
140
  for (let t = 0; t < p.length; t += 1) {
141
141
  const n = p[t];
@@ -145,7 +145,7 @@ function y() {
145
145
  } while (h.length);
146
146
  for (; H.length; )
147
147
  H.pop()();
148
- C = !1, E.clear(), m(e);
148
+ C = !1, E.clear(), y(e);
149
149
  }
150
150
  function ot(e) {
151
151
  if (e.fragment !== null) {
@@ -178,7 +178,7 @@ function ht(e, t) {
178
178
  }
179
179
  function at(e, t, n, s, r, i, c = null, l = [-1]) {
180
180
  const u = g;
181
- m(e);
181
+ y(e);
182
182
  const o = e.$$ = {
183
183
  fragment: null,
184
184
  ctx: [],
@@ -211,9 +211,9 @@ function at(e, t, n, s, r, i, c = null, l = [-1]) {
211
211
  o.fragment && o.fragment.l(f), f.forEach(v);
212
212
  } else
213
213
  o.fragment && o.fragment.c();
214
- t.intro && dt(e.$$.fragment), ft(e, t.target, t.anchor), y();
214
+ t.intro && dt(e.$$.fragment), ft(e, t.target, t.anchor), m();
215
215
  }
216
- m(u);
216
+ y(u);
217
217
  }
218
218
  let G;
219
219
  typeof HTMLElement == "function" && (G = class extends HTMLElement {
@@ -443,10 +443,10 @@ class pt {
443
443
  this.$$set && !Y(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
444
444
  }
445
445
  }
446
- const mt = "4";
447
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mt);
446
+ const yt = "4";
447
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yt);
448
448
  const a = "__WIDGET_GLOBAL_STYLE_CACHE__";
449
- function yt(e, t) {
449
+ function mt(e, t) {
450
450
  if (e) {
451
451
  const n = document.createElement("style");
452
452
  n.innerHTML = t, e.appendChild(n);
@@ -486,11 +486,10 @@ function wt(e, t) {
486
486
  }
487
487
  function xt(e, t) {
488
488
  return window.emMessageBus.subscribe(t, (n) => {
489
- var l;
490
489
  if (!e)
491
490
  return;
492
491
  const s = e.getRootNode(), r = window[a];
493
- let i = (l = r[t]) == null ? void 0 : l.sheet;
492
+ let i = r[t] && r[t].sheet;
494
493
  i ? r[t].refCount = r[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), r[t] = {
495
494
  sheet: i,
496
495
  refCount: 1
@@ -532,7 +531,7 @@ function kt(e, t, n) {
532
531
  "clientstyling" in o && n(1, s = o.clientstyling), "clientstylingurl" in o && n(2, r = o.clientstylingurl), "mbsource" in o && n(3, i = o.mbsource);
533
532
  }, e.$$.update = () => {
534
533
  e.$$.dirty & /*clientstyling, customStylingContainer*/
535
- 3 && s && c && yt(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
534
+ 3 && s && c && mt(c, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
536
535
  5 && r && c && gt(c, r), e.$$.dirty & /*mbsource, customStylingContainer*/
537
536
  9 && i && c && bt(c, `${i}.Style`, l);
538
537
  }, [
@@ -563,19 +562,19 @@ class Ct extends pt {
563
562
  return this.$$.ctx[1];
564
563
  }
565
564
  set clientstyling(t) {
566
- this.$$set({ clientstyling: t }), y();
565
+ this.$$set({ clientstyling: t }), m();
567
566
  }
568
567
  get clientstylingurl() {
569
568
  return this.$$.ctx[2];
570
569
  }
571
570
  set clientstylingurl(t) {
572
- this.$$set({ clientstylingurl: t }), y();
571
+ this.$$set({ clientstylingurl: t }), m();
573
572
  }
574
573
  get mbsource() {
575
574
  return this.$$.ctx[3];
576
575
  }
577
576
  set mbsource(t) {
578
- this.$$set({ mbsource: t }), y();
577
+ this.$$set({ mbsource: t }), m();
579
578
  }
580
579
  }
581
580
  _t(Ct, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralAnimationLoading-DHcNOC1G.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralAnimationLoading-BgdpZu_Z.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-BeWfBR97.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-DNnBxS9L.js").then(({ default: t }) => {
14
14
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { G as a } from "../components/GeneralAnimationLoading-5DFiRDzi.js";
1
+ import { G as a } from "../components/GeneralAnimationLoading-BsDl8TXH.js";
2
2
  function i(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-animation-loading",
3
- "version": "1.88.6",
3
+ "version": "1.88.8",
4
4
  "type": "module",
5
5
  "main": "es2015/general-animation-loading.cjs",
6
6
  "module": "esnext/general-animation-loading.js",