@everymatrix/player-account-modal 1.86.2 → 1.86.3
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.
- package/components/PlayerAccountModal-BNHjpKkD.cjs +4 -0
- package/components/{PlayerAccountModal-DT8MNsTk.js → PlayerAccountModal-DRGsKhJx.js} +101 -89
- package/components/{PlayerAccountModal-aE3-QMgL.js → PlayerAccountModal-v7sWAC7_.js} +152 -140
- package/es2015/player-account-modal.cjs +1 -1
- package/es2015/player-account-modal.js +1 -1
- package/esnext/player-account-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountModal-DeiXIrVF.cjs +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var pt=Object.defineProperty,bt=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&J(e,n,t[n]);if(tt)for(var n of tt(t))Et.call(t,n)&&J(e,n,t[n]);return e},nt=(e,t)=>bt(e,wt(t));var m=(e,t,n)=>(J(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,s)=>{var r=c=>{try{o(n.next(c))}catch(u){s(u)}},l=c=>{try{o(n.throw(c))}catch(u){s(u)}},o=c=>c.done?i(c.value):Promise.resolve(c.value).then(r,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}const ft=e=>e;function Mt(e,t){for(const n in t)e[n]=t[n];return e}function at(e){return e()}function st(){return Object.create(null)}function k(e){e.forEach(at)}function Q(e){return typeof e=="function"}function vt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function kt(e){return Object.keys(e).length===0}function Ct(e,t,n,i){if(e){const s=dt(e,t,n,i);return e[0](s)}}function dt(e,t,n,i){return e[1]&&i?Mt(n.ctx.slice(),e[1](i(t))):n.ctx}function St(e,t,n,i){if(e[2]&&i){const s=e[2](i(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const r=[],l=Math.max(t.dirty.length,s.length);for(let o=0;o<l;o+=1)r[o]=t.dirty[o]|s[o];return r}return t.dirty|s}return t.dirty}function Lt(e,t,n,i,s,r){if(s){const l=dt(t,n,i,r);e.p(l,s)}}function jt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const ht=typeof window!="undefined";let Ot=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):j;const E=new Set;function $t(e){E.forEach(t=>{t.c(e)||(E.delete(t),t.f())}),E.size!==0&&X($t)}function At(e){let t;return E.size===0&&X($t),{promise:new Promise(n=>{E.add(t={c:e,f:n})}),abort(){E.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const s=M("style");s.id=t,s.textContent=n,_t(i,s)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pt(e){const t=M("style");return t.textContent="/* empty */",_t(Y(e),t),t.sheet}function _t(e,t){return q(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function M(e){return document.createElement(e)}function Bt(e){return document.createTextNode(e)}function Rt(){return Bt("")}function B(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}function Dt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ht(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let H=0;function zt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ft(e,t){const n={stylesheet:Pt(t),rules:{}};return D.set(e,n),n}function rt(e,t,n,i,s,r,l,o=0){const c=16.666/i;let u=`{
|
|
2
|
+
`;for(let f=0;f<=1;f+=c){const b=t+(n-t)*r(f);u+=f*100+`%{${l(b,1-b)}}
|
|
3
|
+
`}const h=u+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,a=`__svelte_${zt(h)}_${o}`,$=Y(e),{stylesheet:g,rules:d}=D.get($)||Ft($,e);d[a]||(d[a]=!0,g.insertRule(`@keyframes ${a} ${h}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${a} ${i}ms linear ${s}ms 1 both`,H+=1,a}function It(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),s=n.length-i.length;s&&(e.style.animation=i.join(", "),H-=s,H||Ut())}function Ut(){X(()=>{H||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&N(t)}),D.clear())})}let O;function S(e){O=e}function Jt(){if(!O)throw new Error("Function called outside component initialization");return O}function Vt(e){Jt().$$.on_mount.push(e)}const x=[],z=[];let v=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(p))}function A(e){v.push(e)}const V=new Set;let w=0;function p(){if(w!==0)return;const e=O;do{try{for(;w<x.length;){const t=x[w];w++,S(t),Gt(t.$$)}}catch(t){throw x.length=0,w=0,t}for(S(null),x.length=0,w=0;z.length;)z.pop()();for(let t=0;t<v.length;t+=1){const n=v[t];V.has(n)||(V.add(n),n())}v.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),S(e)}function Gt(e){if(e.fragment!==null){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}function Kt(e){const t=[],n=[];v.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),v=t}let C;function Qt(){return C||(C=Promise.resolve(),C.then(()=>{C=null})),C}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const R=new Set;let y;function Xt(){y={r:0,c:[],p:y}}function Yt(){y.r||k(y.c),y=y.p}function L(e,t){e&&e.i&&(R.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(R.has(e))return;R.add(e),y.c.push(()=>{R.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function ct(e,t,n,i){let r=t(e,n,{direction:"both"}),l=i?0:1,o=null,c=null,u=null,h;function a(){u&&It(e,u)}function $(d,_){const f=d.b-l;return _*=Math.abs(f),{a:l,b:d.b,d:f,duration:_,start:d.start,end:d.start+_,group:d.group}}function g(d){const{delay:_=0,duration:f=300,easing:b=ft,tick:F=j,css:I}=r||Zt,U={start:Ot()+_,b:d};d||(U.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=U:(I&&(a(),u=rt(e,l,d,f,_,b,I)),d&&F(0,1),o=$(U,f),A(()=>W(e,d,"start")),At(P=>{if(c&&P>c.start&&(o=$(c,f),c=null,W(e,o.b,"start"),I&&(a(),u=rt(e,l,o.b,o.duration,0,b,r.css))),o){if(P>=o.end)F(l=o.b,1-l),W(e,o.b,"end"),c||(o.b?a():--o.group.r||k(o.group.c)),o=null;else if(P>=o.start){const yt=P-o.start;l=o.a+o.d*b(yt/o.duration),F(l,1-l)}}return!!(o||c)}))}return{run(d){Q(r)?Qt().then(()=>{r=r({direction:d?"in":"out"}),g(d)}):g(d)},end(){a(),o=c=null}}}function te(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),A(()=>{const r=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...r):k(r),e.$$.on_mount=[]}),s.forEach(A)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){e.$$.dirty[0]===-1&&(x.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,s,r,l=null,o=[-1]){const c=O;S(e);const u=e.$$={fragment:null,ctx:[],props:r,update:j,not_equal:s,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(a,$,...g)=>{const d=g.length?g[0]:$;return u.ctx&&s(u.ctx[a],u.ctx[a]=d)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](d),h&&ne(e,a)),$}):[],u.update(),h=!0,k(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const a=Tt(t.target);u.fragment&&u.fragment.l(a),a.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),p()}S(c)}let mt;typeof HTMLElement=="function"&&(mt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let l;return{c:function(){l=M("slot"),r!=="default"&&B(l,"name",r)},m:function(u,h){Z(u,l,h)},d:function(u){u&&N(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ht(this);for(const r of this.$$s)r in i&&(n[r]=[t(r)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=T(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const l=T(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const r in this.$$l)for(const l of this.$$l[r]){const o=this.$$c.$on(r,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=T(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$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 T(e,t,n,i){var r;const s=(r=n[e])==null?void 0:r.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function se(e,t,n,i,s,r){let l=class extends mt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var u;c=T(o,c,t),this.$$d[o]=c,(u=this.$$c)==null||u.$set({[o]:c})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=l,l}class re{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){ee(this,1),this.$destroy=j}$on(t,n){if(!Q(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oe);function lt(e,{delay:t=0,duration:n=400,easing:i=ft}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:r=>`opacity: ${r*s}`}}function ce(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,e&&e.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ue(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,e&&e.appendChild(i)})}}function fe(e){Nt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ut(e){let t,n,i,s,r;const l=e[9].default,o=Ct(l,e,e[8],null);return{c(){t=M("div"),n=M("div"),i=M("div"),o&&o.c(),B(i,"class","ModalContainer"),B(n,"class","ModalWindow"),B(n,"id","Modal")},m(c,u){Z(c,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[10](n),e[11](t),r=!0},p(c,u){e=c,o&&o.p&&(!r||u&256)&&Lt(o,l,e,e[8],r?St(l,e[8],u,null):jt(e[8]),null)},i(c){r||(L(o,c),c&&A(()=>{r&&(s||(s=ct(n,lt,{transitionDuration:e[1]},!0)),s.run(1))}),r=!0)},o(c){K(o,c),c&&(s||(s=ct(n,lt,{transitionDuration:e[1]},!1)),s.run(0)),r=!1},d(c){c&&N(t),o&&o.d(c),e[10](null),c&&s&&s.end(),e[11](null)}}}function ae(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Rt()},m(s,r){i&&i.m(s,r),Z(s,t,r),n=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&L(i,1)):(i=ut(s),i.c(),L(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(s){n||(L(i),n=!0)},o(s){K(i),n=!1},d(s){s&&N(t),i&&i.d(s)}}}function de(e,t,n){let{$$slots:i={},$$scope:s}=t,{show:r=!1}=t,{duration:l=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:u}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,a,$;const g=f=>{switch(f.data.type){case"ModalClosed":n(0,r=!1);break;case h:n(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Vt(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function d(f){z[f?"unshift":"push"](()=>{$=f,n(3,$)})}function _(f){z[f?"unshift":"push"](()=>{a=f,n(2,a)})}return e.$$set=f=>{"show"in f&&n(0,r=f.show),"duration"in f&&n(1,l=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,c=f.clientstylingurl),"mbsource"in f&&n(6,u=f.mbsource),"showmodaleventname"in f&&n(7,h=f.showmodaleventname),"$$scope"in f&&n(8,s=f.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&a&&ce(a,o),e.$$.dirty&36&&c&&a&&le(a,c),e.$$.dirty&68&&u&&a&&ue(a,`${u}.Style`)},[r,l,a,$,o,c,u,h,s,i,d,_]}class gt extends re{constructor(t){super(),ie(this,t,de,ae,vt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},fe)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),p()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),p()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),p()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=gt;
|
|
@@ -15,7 +15,7 @@ function rt(t) {
|
|
|
15
15
|
function Y() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function k(t) {
|
|
19
19
|
t.forEach(rt);
|
|
20
20
|
}
|
|
21
21
|
function G(t) {
|
|
@@ -37,12 +37,24 @@ function ot(t, e, n, i) {
|
|
|
37
37
|
return t[1] && i ? dt(n.ctx.slice(), t[1](i(e))) : n.ctx;
|
|
38
38
|
}
|
|
39
39
|
function mt(t, e, n, i) {
|
|
40
|
-
|
|
40
|
+
if (t[2] && i) {
|
|
41
|
+
const s = t[2](i(n));
|
|
42
|
+
if (e.dirty === void 0)
|
|
43
|
+
return s;
|
|
44
|
+
if (typeof s == "object") {
|
|
45
|
+
const o = [], u = Math.max(e.dirty.length, s.length);
|
|
46
|
+
for (let r = 0; r < u; r += 1)
|
|
47
|
+
o[r] = e.dirty[r] | s[r];
|
|
48
|
+
return o;
|
|
49
|
+
}
|
|
50
|
+
return e.dirty | s;
|
|
51
|
+
}
|
|
52
|
+
return e.dirty;
|
|
41
53
|
}
|
|
42
54
|
function gt(t, e, n, i, s, o) {
|
|
43
55
|
if (s) {
|
|
44
|
-
const
|
|
45
|
-
t.p(
|
|
56
|
+
const u = ot(e, n, i, o);
|
|
57
|
+
t.p(u, s);
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
function yt(t) {
|
|
@@ -116,19 +128,19 @@ function E(t) {
|
|
|
116
128
|
function Et(t) {
|
|
117
129
|
return document.createTextNode(t);
|
|
118
130
|
}
|
|
119
|
-
function
|
|
131
|
+
function Mt() {
|
|
120
132
|
return Et("");
|
|
121
133
|
}
|
|
122
134
|
function P(t, e, n) {
|
|
123
135
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
124
136
|
}
|
|
125
|
-
function
|
|
137
|
+
function kt(t) {
|
|
126
138
|
return Array.from(t.childNodes);
|
|
127
139
|
}
|
|
128
|
-
function
|
|
140
|
+
function vt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
|
|
129
141
|
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: i });
|
|
130
142
|
}
|
|
131
|
-
function
|
|
143
|
+
function Ct(t) {
|
|
132
144
|
const e = {};
|
|
133
145
|
return t.childNodes.forEach(
|
|
134
146
|
/** @param {Element} node */
|
|
@@ -149,29 +161,29 @@ function St(t, e) {
|
|
|
149
161
|
const n = { stylesheet: xt(e), rules: {} };
|
|
150
162
|
return T.set(t, n), n;
|
|
151
163
|
}
|
|
152
|
-
function Z(t, e, n, i, s, o,
|
|
164
|
+
function Z(t, e, n, i, s, o, u, r = 0) {
|
|
153
165
|
const c = 16.666 / i;
|
|
154
166
|
let l = `{
|
|
155
167
|
`;
|
|
156
|
-
for (let
|
|
157
|
-
const p = e + (n - e) * o(
|
|
158
|
-
l +=
|
|
168
|
+
for (let f = 0; f <= 1; f += c) {
|
|
169
|
+
const p = e + (n - e) * o(f);
|
|
170
|
+
l += f * 100 + `%{${u(p, 1 - p)}}
|
|
159
171
|
`;
|
|
160
172
|
}
|
|
161
|
-
const h = l + `100% {${
|
|
173
|
+
const h = l + `100% {${u(n, 1 - n)}}
|
|
162
174
|
}`, a = `__svelte_${Lt(h)}_${r}`, $ = Q(t), { stylesheet: m, rules: d } = T.get($) || St($, t);
|
|
163
175
|
d[a] || (d[a] = !0, m.insertRule(`@keyframes ${a} ${h}`, m.cssRules.length));
|
|
164
176
|
const _ = t.style.animation || "";
|
|
165
177
|
return t.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, D += 1, a;
|
|
166
178
|
}
|
|
167
|
-
function
|
|
179
|
+
function jt(t, e) {
|
|
168
180
|
const n = (t.style.animation || "").split(", "), i = n.filter(
|
|
169
181
|
e ? (o) => o.indexOf(e) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
170
182
|
// remove all Svelte animations
|
|
171
183
|
), s = n.length - i.length;
|
|
172
|
-
s && (t.style.animation = i.join(", "), D -= s, D ||
|
|
184
|
+
s && (t.style.animation = i.join(", "), D -= s, D || Ot());
|
|
173
185
|
}
|
|
174
|
-
function
|
|
186
|
+
function Ot() {
|
|
175
187
|
K(() => {
|
|
176
188
|
D || (T.forEach((t) => {
|
|
177
189
|
const { ownerNode: e } = t.stylesheet;
|
|
@@ -179,74 +191,74 @@ function jt() {
|
|
|
179
191
|
}), T.clear());
|
|
180
192
|
});
|
|
181
193
|
}
|
|
182
|
-
let
|
|
183
|
-
function
|
|
184
|
-
|
|
194
|
+
let j;
|
|
195
|
+
function C(t) {
|
|
196
|
+
j = t;
|
|
185
197
|
}
|
|
186
198
|
function At() {
|
|
187
|
-
if (!
|
|
199
|
+
if (!j)
|
|
188
200
|
throw new Error("Function called outside component initialization");
|
|
189
|
-
return
|
|
201
|
+
return j;
|
|
190
202
|
}
|
|
191
203
|
function Nt(t) {
|
|
192
204
|
At().$$.on_mount.push(t);
|
|
193
205
|
}
|
|
194
206
|
const b = [], H = [];
|
|
195
|
-
let
|
|
207
|
+
let M = [];
|
|
196
208
|
const tt = [], Pt = /* @__PURE__ */ Promise.resolve();
|
|
197
209
|
let W = !1;
|
|
198
210
|
function Bt() {
|
|
199
211
|
W || (W = !0, Pt.then(y));
|
|
200
212
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
213
|
+
function O(t) {
|
|
214
|
+
M.push(t);
|
|
203
215
|
}
|
|
204
216
|
const U = /* @__PURE__ */ new Set();
|
|
205
217
|
let w = 0;
|
|
206
218
|
function y() {
|
|
207
219
|
if (w !== 0)
|
|
208
220
|
return;
|
|
209
|
-
const t =
|
|
221
|
+
const t = j;
|
|
210
222
|
do {
|
|
211
223
|
try {
|
|
212
224
|
for (; w < b.length; ) {
|
|
213
225
|
const e = b[w];
|
|
214
|
-
w++,
|
|
226
|
+
w++, C(e), Rt(e.$$);
|
|
215
227
|
}
|
|
216
228
|
} catch (e) {
|
|
217
229
|
throw b.length = 0, w = 0, e;
|
|
218
230
|
}
|
|
219
|
-
for (
|
|
231
|
+
for (C(null), b.length = 0, w = 0; H.length; )
|
|
220
232
|
H.pop()();
|
|
221
|
-
for (let e = 0; e <
|
|
222
|
-
const n =
|
|
233
|
+
for (let e = 0; e < M.length; e += 1) {
|
|
234
|
+
const n = M[e];
|
|
223
235
|
U.has(n) || (U.add(n), n());
|
|
224
236
|
}
|
|
225
|
-
|
|
237
|
+
M.length = 0;
|
|
226
238
|
} while (b.length);
|
|
227
239
|
for (; tt.length; )
|
|
228
240
|
tt.pop()();
|
|
229
|
-
W = !1, U.clear(),
|
|
241
|
+
W = !1, U.clear(), C(t);
|
|
230
242
|
}
|
|
231
243
|
function Rt(t) {
|
|
232
244
|
if (t.fragment !== null) {
|
|
233
|
-
t.update(),
|
|
245
|
+
t.update(), k(t.before_update);
|
|
234
246
|
const e = t.dirty;
|
|
235
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
247
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(O);
|
|
236
248
|
}
|
|
237
249
|
}
|
|
238
250
|
function Tt(t) {
|
|
239
251
|
const e = [], n = [];
|
|
240
|
-
|
|
252
|
+
M.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), M = e;
|
|
241
253
|
}
|
|
242
|
-
let
|
|
254
|
+
let v;
|
|
243
255
|
function Dt() {
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
})),
|
|
256
|
+
return v || (v = Promise.resolve(), v.then(() => {
|
|
257
|
+
v = null;
|
|
258
|
+
})), v;
|
|
247
259
|
}
|
|
248
260
|
function J(t, e, n) {
|
|
249
|
-
t.dispatchEvent(
|
|
261
|
+
t.dispatchEvent(vt(`${e ? "intro" : "outro"}${n}`));
|
|
250
262
|
}
|
|
251
263
|
const B = /* @__PURE__ */ new Set();
|
|
252
264
|
let g;
|
|
@@ -259,7 +271,7 @@ function Ht() {
|
|
|
259
271
|
};
|
|
260
272
|
}
|
|
261
273
|
function zt() {
|
|
262
|
-
g.r ||
|
|
274
|
+
g.r || k(g.c), g = g.p;
|
|
263
275
|
}
|
|
264
276
|
function L(t, e) {
|
|
265
277
|
t && t.i && (B.delete(t), t.i(e));
|
|
@@ -276,19 +288,19 @@ function q(t, e, n, i) {
|
|
|
276
288
|
}
|
|
277
289
|
const Ft = { duration: 0 };
|
|
278
290
|
function et(t, e, n, i) {
|
|
279
|
-
let o = e(t, n, { direction: "both" }),
|
|
291
|
+
let o = e(t, n, { direction: "both" }), u = i ? 0 : 1, r = null, c = null, l = null, h;
|
|
280
292
|
function a() {
|
|
281
|
-
l &&
|
|
293
|
+
l && jt(t, l);
|
|
282
294
|
}
|
|
283
295
|
function $(d, _) {
|
|
284
|
-
const
|
|
296
|
+
const f = (
|
|
285
297
|
/** @type {Program['d']} */
|
|
286
|
-
d.b -
|
|
298
|
+
d.b - u
|
|
287
299
|
);
|
|
288
|
-
return _ *= Math.abs(
|
|
289
|
-
a:
|
|
300
|
+
return _ *= Math.abs(f), {
|
|
301
|
+
a: u,
|
|
290
302
|
b: d.b,
|
|
291
|
-
d:
|
|
303
|
+
d: f,
|
|
292
304
|
duration: _,
|
|
293
305
|
start: d.start,
|
|
294
306
|
end: d.start + _,
|
|
@@ -298,7 +310,7 @@ function et(t, e, n, i) {
|
|
|
298
310
|
function m(d) {
|
|
299
311
|
const {
|
|
300
312
|
delay: _ = 0,
|
|
301
|
-
duration:
|
|
313
|
+
duration: f = 300,
|
|
302
314
|
easing: p = st,
|
|
303
315
|
tick: z = S,
|
|
304
316
|
css: F
|
|
@@ -307,10 +319,10 @@ function et(t, e, n, i) {
|
|
|
307
319
|
b: d
|
|
308
320
|
};
|
|
309
321
|
d || (I.group = g, g.r += 1), "inert" in t && (d ? h !== void 0 && (t.inert = h) : (h = /** @type {HTMLElement} */
|
|
310
|
-
t.inert, t.inert = !0)), r || c ? c = I : (F && (a(), l = Z(t,
|
|
311
|
-
if (c && N > c.start && (r = $(c,
|
|
322
|
+
t.inert, t.inert = !0)), r || c ? c = I : (F && (a(), l = Z(t, u, d, f, _, p, F)), d && z(0, 1), r = $(I, f), O(() => J(t, d, "start")), wt((N) => {
|
|
323
|
+
if (c && N > c.start && (r = $(c, f), c = null, J(t, r.b, "start"), F && (a(), l = Z(
|
|
312
324
|
t,
|
|
313
|
-
|
|
325
|
+
u,
|
|
314
326
|
r.b,
|
|
315
327
|
r.duration,
|
|
316
328
|
0,
|
|
@@ -318,10 +330,10 @@ function et(t, e, n, i) {
|
|
|
318
330
|
o.css
|
|
319
331
|
))), r) {
|
|
320
332
|
if (N >= r.end)
|
|
321
|
-
z(
|
|
333
|
+
z(u = r.b, 1 - u), J(t, r.b, "end"), c || (r.b ? a() : --r.group.r || k(r.group.c)), r = null;
|
|
322
334
|
else if (N >= r.start) {
|
|
323
335
|
const at = N - r.start;
|
|
324
|
-
|
|
336
|
+
u = r.a + r.d * p(at / r.duration), z(u, 1 - u);
|
|
325
337
|
}
|
|
326
338
|
}
|
|
327
339
|
return !!(r || c);
|
|
@@ -340,21 +352,21 @@ function et(t, e, n, i) {
|
|
|
340
352
|
}
|
|
341
353
|
function It(t, e, n) {
|
|
342
354
|
const { fragment: i, after_update: s } = t.$$;
|
|
343
|
-
i && i.m(e, n),
|
|
355
|
+
i && i.m(e, n), O(() => {
|
|
344
356
|
const o = t.$$.on_mount.map(rt).filter(G);
|
|
345
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...o) :
|
|
346
|
-
}), s.forEach(
|
|
357
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : k(o), t.$$.on_mount = [];
|
|
358
|
+
}), s.forEach(O);
|
|
347
359
|
}
|
|
348
360
|
function Ut(t, e) {
|
|
349
361
|
const n = t.$$;
|
|
350
|
-
n.fragment !== null && (Tt(n.after_update),
|
|
362
|
+
n.fragment !== null && (Tt(n.after_update), k(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
351
363
|
}
|
|
352
364
|
function Jt(t, e) {
|
|
353
365
|
t.$$.dirty[0] === -1 && (b.push(t), Bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
354
366
|
}
|
|
355
|
-
function Vt(t, e, n, i, s, o,
|
|
356
|
-
const c =
|
|
357
|
-
|
|
367
|
+
function Vt(t, e, n, i, s, o, u = null, r = [-1]) {
|
|
368
|
+
const c = j;
|
|
369
|
+
C(t);
|
|
358
370
|
const l = t.$$ = {
|
|
359
371
|
fragment: null,
|
|
360
372
|
ctx: [],
|
|
@@ -376,20 +388,20 @@ function Vt(t, e, n, i, s, o, f = null, r = [-1]) {
|
|
|
376
388
|
skip_bound: !1,
|
|
377
389
|
root: e.target || c.$$.root
|
|
378
390
|
};
|
|
379
|
-
|
|
391
|
+
u && u(l.root);
|
|
380
392
|
let h = !1;
|
|
381
393
|
if (l.ctx = n ? n(t, e.props || {}, (a, $, ...m) => {
|
|
382
394
|
const d = m.length ? m[0] : $;
|
|
383
395
|
return l.ctx && s(l.ctx[a], l.ctx[a] = d) && (!l.skip_bound && l.bound[a] && l.bound[a](d), h && Jt(t, a)), $;
|
|
384
|
-
}) : [], l.update(), h = !0,
|
|
396
|
+
}) : [], l.update(), h = !0, k(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
|
|
385
397
|
if (e.hydrate) {
|
|
386
|
-
const a =
|
|
398
|
+
const a = kt(e.target);
|
|
387
399
|
l.fragment && l.fragment.l(a), a.forEach(A);
|
|
388
400
|
} else
|
|
389
401
|
l.fragment && l.fragment.c();
|
|
390
402
|
e.intro && L(t.$$.fragment), It(t, e.target, e.anchor), y();
|
|
391
403
|
}
|
|
392
|
-
|
|
404
|
+
C(c);
|
|
393
405
|
}
|
|
394
406
|
let ft;
|
|
395
407
|
typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
@@ -451,7 +463,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
451
463
|
};
|
|
452
464
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
453
465
|
return;
|
|
454
|
-
const e = {}, n =
|
|
466
|
+
const e = {}, n = Ct(this);
|
|
455
467
|
for (const s of this.$$s)
|
|
456
468
|
s in n && (e[s] = [t(s)]);
|
|
457
469
|
for (const s of this.attributes) {
|
|
@@ -487,8 +499,8 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
487
499
|
this.$$c.$$.after_update.push(i), i();
|
|
488
500
|
for (const s in this.$$l)
|
|
489
501
|
for (const o of this.$$l[s]) {
|
|
490
|
-
const
|
|
491
|
-
this.$$l_u.set(o,
|
|
502
|
+
const u = this.$$c.$on(s, o);
|
|
503
|
+
this.$$l_u.set(o, u);
|
|
492
504
|
}
|
|
493
505
|
this.$$l = {};
|
|
494
506
|
}
|
|
@@ -539,7 +551,7 @@ function R(t, e, n, i) {
|
|
|
539
551
|
}
|
|
540
552
|
}
|
|
541
553
|
function Wt(t, e, n, i, s, o) {
|
|
542
|
-
let
|
|
554
|
+
let u = class extends ft {
|
|
543
555
|
constructor() {
|
|
544
556
|
super(t, n, s), this.$$p_d = e;
|
|
545
557
|
}
|
|
@@ -550,7 +562,7 @@ function Wt(t, e, n, i, s, o) {
|
|
|
550
562
|
}
|
|
551
563
|
};
|
|
552
564
|
return Object.keys(e).forEach((r) => {
|
|
553
|
-
Object.defineProperty(
|
|
565
|
+
Object.defineProperty(u.prototype, r, {
|
|
554
566
|
get() {
|
|
555
567
|
return this.$$c && r in this.$$c ? this.$$c[r] : this.$$d[r];
|
|
556
568
|
},
|
|
@@ -559,13 +571,13 @@ function Wt(t, e, n, i, s, o) {
|
|
|
559
571
|
}
|
|
560
572
|
});
|
|
561
573
|
}), i.forEach((r) => {
|
|
562
|
-
Object.defineProperty(
|
|
574
|
+
Object.defineProperty(u.prototype, r, {
|
|
563
575
|
get() {
|
|
564
576
|
return this.$$c?.[r];
|
|
565
577
|
}
|
|
566
578
|
});
|
|
567
579
|
}), t.element = /** @type {any} */
|
|
568
|
-
|
|
580
|
+
u, u;
|
|
569
581
|
}
|
|
570
582
|
class qt {
|
|
571
583
|
/**
|
|
@@ -652,11 +664,11 @@ function Yt(t) {
|
|
|
652
664
|
}
|
|
653
665
|
function it(t) {
|
|
654
666
|
let e, n, i, s, o;
|
|
655
|
-
const
|
|
667
|
+
const u = (
|
|
656
668
|
/*#slots*/
|
|
657
669
|
t[9].default
|
|
658
670
|
), r = _t(
|
|
659
|
-
|
|
671
|
+
u,
|
|
660
672
|
t,
|
|
661
673
|
/*$$scope*/
|
|
662
674
|
t[8],
|
|
@@ -673,12 +685,12 @@ function it(t) {
|
|
|
673
685
|
t = c, r && r.p && (!o || l & /*$$scope*/
|
|
674
686
|
256) && gt(
|
|
675
687
|
r,
|
|
676
|
-
|
|
688
|
+
u,
|
|
677
689
|
t,
|
|
678
690
|
/*$$scope*/
|
|
679
691
|
t[8],
|
|
680
692
|
o ? mt(
|
|
681
|
-
|
|
693
|
+
u,
|
|
682
694
|
/*$$scope*/
|
|
683
695
|
t[8],
|
|
684
696
|
l,
|
|
@@ -691,7 +703,7 @@ function it(t) {
|
|
|
691
703
|
);
|
|
692
704
|
},
|
|
693
705
|
i(c) {
|
|
694
|
-
o || (L(r, c), c &&
|
|
706
|
+
o || (L(r, c), c && O(() => {
|
|
695
707
|
o && (s || (s = et(n, nt, { transitionDuration: (
|
|
696
708
|
/*duration*/
|
|
697
709
|
t[1]
|
|
@@ -716,7 +728,7 @@ function Zt(t) {
|
|
|
716
728
|
);
|
|
717
729
|
return {
|
|
718
730
|
c() {
|
|
719
|
-
i && i.c(), e =
|
|
731
|
+
i && i.c(), e = Mt();
|
|
720
732
|
},
|
|
721
733
|
m(s, o) {
|
|
722
734
|
i && i.m(s, o), X(s, e, o), n = !0;
|
|
@@ -740,9 +752,9 @@ function Zt(t) {
|
|
|
740
752
|
};
|
|
741
753
|
}
|
|
742
754
|
function te(t, e, n) {
|
|
743
|
-
let { $$slots: i = {}, $$scope: s } = e, { show: o = !1 } = e, { duration:
|
|
744
|
-
const m = (
|
|
745
|
-
switch (
|
|
755
|
+
let { $$slots: i = {}, $$scope: s } = e, { show: o = !1 } = e, { duration: u = 350 } = e, { clientstyling: r = "" } = e, { clientstylingurl: c = "" } = e, { mbsource: l } = e, { showmodaleventname: h = "ShowLimitsConfirmationModal" } = e, a, $;
|
|
756
|
+
const m = (f) => {
|
|
757
|
+
switch (f.data.type) {
|
|
746
758
|
case "ModalClosed":
|
|
747
759
|
n(0, o = !1);
|
|
748
760
|
break;
|
|
@@ -754,18 +766,18 @@ function te(t, e, n) {
|
|
|
754
766
|
Nt(() => (window.addEventListener("message", m, !1), () => {
|
|
755
767
|
window.removeEventListener("message", m);
|
|
756
768
|
}));
|
|
757
|
-
function d(
|
|
758
|
-
H[
|
|
759
|
-
$ =
|
|
769
|
+
function d(f) {
|
|
770
|
+
H[f ? "unshift" : "push"](() => {
|
|
771
|
+
$ = f, n(3, $);
|
|
760
772
|
});
|
|
761
773
|
}
|
|
762
|
-
function _(
|
|
763
|
-
H[
|
|
764
|
-
a =
|
|
774
|
+
function _(f) {
|
|
775
|
+
H[f ? "unshift" : "push"](() => {
|
|
776
|
+
a = f, n(2, a);
|
|
765
777
|
});
|
|
766
778
|
}
|
|
767
|
-
return t.$$set = (
|
|
768
|
-
"show" in
|
|
779
|
+
return t.$$set = (f) => {
|
|
780
|
+
"show" in f && n(0, o = f.show), "duration" in f && n(1, u = f.duration), "clientstyling" in f && n(4, r = f.clientstyling), "clientstylingurl" in f && n(5, c = f.clientstylingurl), "mbsource" in f && n(6, l = f.mbsource), "showmodaleventname" in f && n(7, h = f.showmodaleventname), "$$scope" in f && n(8, s = f.$$scope);
|
|
769
781
|
}, t.$$.update = () => {
|
|
770
782
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
771
783
|
20 && r && a && Kt(a, r), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
@@ -773,7 +785,7 @@ function te(t, e, n) {
|
|
|
773
785
|
68 && l && a && Xt(a, `${l}.Style`);
|
|
774
786
|
}, [
|
|
775
787
|
o,
|
|
776
|
-
|
|
788
|
+
u,
|
|
777
789
|
a,
|
|
778
790
|
$,
|
|
779
791
|
r,
|
|
@@ -11,23 +11,23 @@ var J = (e, t, n) => t in e ? yt(e, t, { enumerable: !0, configurable: !0, writa
|
|
|
11
11
|
return e;
|
|
12
12
|
}, nt = (e, t) => pt(e, wt(t));
|
|
13
13
|
var m = (e, t, n) => (J(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
-
var it = (e, t, n) => new Promise((i,
|
|
15
|
-
var
|
|
14
|
+
var it = (e, t, n) => new Promise((i, s) => {
|
|
15
|
+
var r = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
o(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
|
-
|
|
19
|
+
s(u);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
23
|
o(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
|
-
|
|
25
|
+
s(u);
|
|
26
26
|
}
|
|
27
|
-
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(
|
|
27
|
+
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(r, l);
|
|
28
28
|
o((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function j() {
|
|
31
31
|
}
|
|
32
32
|
const ft = (e) => e;
|
|
33
33
|
function Et(e, t) {
|
|
@@ -44,34 +44,46 @@ function at(e) {
|
|
|
44
44
|
function st() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function v(e) {
|
|
48
48
|
e.forEach(at);
|
|
49
49
|
}
|
|
50
50
|
function Q(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Mt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function kt(e) {
|
|
57
57
|
return Object.keys(e).length === 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function vt(e, t, n, i) {
|
|
60
60
|
if (e) {
|
|
61
|
-
const
|
|
62
|
-
return e[0](
|
|
61
|
+
const s = dt(e, t, n, i);
|
|
62
|
+
return e[0](s);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function dt(e, t, n, i) {
|
|
66
66
|
return e[1] && i ? Et(n.ctx.slice(), e[1](i(t))) : n.ctx;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
68
|
+
function Ct(e, t, n, i) {
|
|
69
|
+
if (e[2] && i) {
|
|
70
|
+
const s = e[2](i(n));
|
|
71
|
+
if (t.dirty === void 0)
|
|
72
|
+
return s;
|
|
73
|
+
if (typeof s == "object") {
|
|
74
|
+
const r = [], l = Math.max(t.dirty.length, s.length);
|
|
75
|
+
for (let o = 0; o < l; o += 1)
|
|
76
|
+
r[o] = t.dirty[o] | s[o];
|
|
77
|
+
return r;
|
|
78
|
+
}
|
|
79
|
+
return t.dirty | s;
|
|
80
|
+
}
|
|
81
|
+
return t.dirty;
|
|
70
82
|
}
|
|
71
|
-
function Lt(e, t, n, i,
|
|
72
|
-
if (
|
|
73
|
-
const l = dt(t, n, i,
|
|
74
|
-
e.p(l,
|
|
83
|
+
function Lt(e, t, n, i, s, r) {
|
|
84
|
+
if (s) {
|
|
85
|
+
const l = dt(t, n, i, r);
|
|
86
|
+
e.p(l, s);
|
|
75
87
|
}
|
|
76
88
|
}
|
|
77
89
|
function St(e) {
|
|
@@ -84,14 +96,14 @@ function St(e) {
|
|
|
84
96
|
return -1;
|
|
85
97
|
}
|
|
86
98
|
const ht = typeof window != "undefined";
|
|
87
|
-
let
|
|
99
|
+
let jt = ht ? () => window.performance.now() : () => Date.now(), X = ht ? (e) => requestAnimationFrame(e) : j;
|
|
88
100
|
const E = /* @__PURE__ */ new Set();
|
|
89
101
|
function $t(e) {
|
|
90
102
|
E.forEach((t) => {
|
|
91
103
|
t.c(e) || (E.delete(t), t.f());
|
|
92
104
|
}), E.size !== 0 && X($t);
|
|
93
105
|
}
|
|
94
|
-
function
|
|
106
|
+
function Ot(e) {
|
|
95
107
|
let t;
|
|
96
108
|
return E.size === 0 && X($t), {
|
|
97
109
|
promise: new Promise((n) => {
|
|
@@ -108,8 +120,8 @@ function q(e, t) {
|
|
|
108
120
|
function At(e, t, n) {
|
|
109
121
|
const i = Y(e);
|
|
110
122
|
if (!i.getElementById(t)) {
|
|
111
|
-
const
|
|
112
|
-
|
|
123
|
+
const s = M("style");
|
|
124
|
+
s.id = t, s.textContent = n, _t(i, s);
|
|
113
125
|
}
|
|
114
126
|
}
|
|
115
127
|
function Y(e) {
|
|
@@ -123,7 +135,7 @@ function Y(e) {
|
|
|
123
135
|
) : e.ownerDocument;
|
|
124
136
|
}
|
|
125
137
|
function Nt(e) {
|
|
126
|
-
const t =
|
|
138
|
+
const t = M("style");
|
|
127
139
|
return t.textContent = "/* empty */", _t(Y(e), t), t.sheet;
|
|
128
140
|
}
|
|
129
141
|
function _t(e, t) {
|
|
@@ -139,7 +151,7 @@ function Z(e, t, n) {
|
|
|
139
151
|
function N(e) {
|
|
140
152
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
153
|
}
|
|
142
|
-
function
|
|
154
|
+
function M(e) {
|
|
143
155
|
return document.createElement(e);
|
|
144
156
|
}
|
|
145
157
|
function Pt(e) {
|
|
@@ -178,12 +190,12 @@ function zt(e, t) {
|
|
|
178
190
|
const n = { stylesheet: Nt(t), rules: {} };
|
|
179
191
|
return D.set(e, n), n;
|
|
180
192
|
}
|
|
181
|
-
function rt(e, t, n, i,
|
|
193
|
+
function rt(e, t, n, i, s, r, l, o = 0) {
|
|
182
194
|
const c = 16.666 / i;
|
|
183
195
|
let u = `{
|
|
184
196
|
`;
|
|
185
197
|
for (let f = 0; f <= 1; f += c) {
|
|
186
|
-
const w = t + (n - t) *
|
|
198
|
+
const w = t + (n - t) * r(f);
|
|
187
199
|
u += f * 100 + `%{${l(w, 1 - w)}}
|
|
188
200
|
`;
|
|
189
201
|
}
|
|
@@ -191,14 +203,14 @@ function rt(e, t, n, i, r, s, l, o = 0) {
|
|
|
191
203
|
}`, a = `__svelte_${Ht(h)}_${o}`, $ = Y(e), { stylesheet: g, rules: d } = D.get($) || zt($, e);
|
|
192
204
|
d[a] || (d[a] = !0, g.insertRule(`@keyframes ${a} ${h}`, g.cssRules.length));
|
|
193
205
|
const _ = e.style.animation || "";
|
|
194
|
-
return e.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${
|
|
206
|
+
return e.style.animation = `${_ ? `${_}, ` : ""}${a} ${i}ms linear ${s}ms 1 both`, H += 1, a;
|
|
195
207
|
}
|
|
196
208
|
function Ft(e, t) {
|
|
197
209
|
const n = (e.style.animation || "").split(", "), i = n.filter(
|
|
198
|
-
t ? (
|
|
210
|
+
t ? (r) => r.indexOf(t) < 0 : (r) => r.indexOf("__svelte") === -1
|
|
199
211
|
// remove all Svelte animations
|
|
200
|
-
),
|
|
201
|
-
|
|
212
|
+
), s = n.length - i.length;
|
|
213
|
+
s && (e.style.animation = i.join(", "), H -= s, H || It());
|
|
202
214
|
}
|
|
203
215
|
function It() {
|
|
204
216
|
X(() => {
|
|
@@ -208,34 +220,34 @@ function It() {
|
|
|
208
220
|
}), D.clear());
|
|
209
221
|
});
|
|
210
222
|
}
|
|
211
|
-
let
|
|
223
|
+
let O;
|
|
212
224
|
function L(e) {
|
|
213
|
-
|
|
225
|
+
O = e;
|
|
214
226
|
}
|
|
215
227
|
function Ut() {
|
|
216
|
-
if (!
|
|
228
|
+
if (!O)
|
|
217
229
|
throw new Error("Function called outside component initialization");
|
|
218
|
-
return
|
|
230
|
+
return O;
|
|
219
231
|
}
|
|
220
232
|
function Jt(e) {
|
|
221
233
|
Ut().$$.on_mount.push(e);
|
|
222
234
|
}
|
|
223
235
|
const x = [], z = [];
|
|
224
|
-
let
|
|
236
|
+
let k = [];
|
|
225
237
|
const ot = [], Vt = /* @__PURE__ */ Promise.resolve();
|
|
226
238
|
let G = !1;
|
|
227
239
|
function Wt() {
|
|
228
240
|
G || (G = !0, Vt.then(p));
|
|
229
241
|
}
|
|
230
242
|
function A(e) {
|
|
231
|
-
|
|
243
|
+
k.push(e);
|
|
232
244
|
}
|
|
233
245
|
const V = /* @__PURE__ */ new Set();
|
|
234
246
|
let b = 0;
|
|
235
247
|
function p() {
|
|
236
248
|
if (b !== 0)
|
|
237
249
|
return;
|
|
238
|
-
const e =
|
|
250
|
+
const e = O;
|
|
239
251
|
do {
|
|
240
252
|
try {
|
|
241
253
|
for (; b < x.length; ) {
|
|
@@ -247,11 +259,11 @@ function p() {
|
|
|
247
259
|
}
|
|
248
260
|
for (L(null), x.length = 0, b = 0; z.length; )
|
|
249
261
|
z.pop()();
|
|
250
|
-
for (let t = 0; t <
|
|
251
|
-
const n =
|
|
262
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
263
|
+
const n = k[t];
|
|
252
264
|
V.has(n) || (V.add(n), n());
|
|
253
265
|
}
|
|
254
|
-
|
|
266
|
+
k.length = 0;
|
|
255
267
|
} while (x.length);
|
|
256
268
|
for (; ot.length; )
|
|
257
269
|
ot.pop()();
|
|
@@ -259,20 +271,20 @@ function p() {
|
|
|
259
271
|
}
|
|
260
272
|
function qt(e) {
|
|
261
273
|
if (e.fragment !== null) {
|
|
262
|
-
e.update(),
|
|
274
|
+
e.update(), v(e.before_update);
|
|
263
275
|
const t = e.dirty;
|
|
264
276
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(A);
|
|
265
277
|
}
|
|
266
278
|
}
|
|
267
279
|
function Gt(e) {
|
|
268
280
|
const t = [], n = [];
|
|
269
|
-
|
|
281
|
+
k.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), k = t;
|
|
270
282
|
}
|
|
271
|
-
let
|
|
283
|
+
let C;
|
|
272
284
|
function Kt() {
|
|
273
|
-
return
|
|
274
|
-
|
|
275
|
-
})),
|
|
285
|
+
return C || (C = Promise.resolve(), C.then(() => {
|
|
286
|
+
C = null;
|
|
287
|
+
})), C;
|
|
276
288
|
}
|
|
277
289
|
function W(e, t, n) {
|
|
278
290
|
e.dispatchEvent(Tt(`${t ? "intro" : "outro"}${n}`));
|
|
@@ -288,7 +300,7 @@ function Qt() {
|
|
|
288
300
|
};
|
|
289
301
|
}
|
|
290
302
|
function Xt() {
|
|
291
|
-
y.r ||
|
|
303
|
+
y.r || v(y.c), y = y.p;
|
|
292
304
|
}
|
|
293
305
|
function S(e, t) {
|
|
294
306
|
e && e.i && (R.delete(e), e.i(t));
|
|
@@ -305,7 +317,7 @@ function K(e, t, n, i) {
|
|
|
305
317
|
}
|
|
306
318
|
const Yt = { duration: 0 };
|
|
307
319
|
function ct(e, t, n, i) {
|
|
308
|
-
let
|
|
320
|
+
let r = t(e, n, { direction: "both" }), l = i ? 0 : 1, o = null, c = null, u = null, h;
|
|
309
321
|
function a() {
|
|
310
322
|
u && Ft(e, u);
|
|
311
323
|
}
|
|
@@ -329,14 +341,14 @@ function ct(e, t, n, i) {
|
|
|
329
341
|
delay: _ = 0,
|
|
330
342
|
duration: f = 300,
|
|
331
343
|
easing: w = ft,
|
|
332
|
-
tick: F =
|
|
344
|
+
tick: F = j,
|
|
333
345
|
css: I
|
|
334
|
-
} =
|
|
335
|
-
start:
|
|
346
|
+
} = r || Yt, U = {
|
|
347
|
+
start: jt() + _,
|
|
336
348
|
b: d
|
|
337
349
|
};
|
|
338
350
|
d || (U.group = y, y.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
|
|
339
|
-
e.inert, e.inert = !0)), o || c ? c = U : (I && (a(), u = rt(e, l, d, f, _, w, I)), d && F(0, 1), o = $(U, f), A(() => W(e, d, "start")),
|
|
351
|
+
e.inert, e.inert = !0)), o || c ? c = U : (I && (a(), u = rt(e, l, d, f, _, w, I)), d && F(0, 1), o = $(U, f), A(() => W(e, d, "start")), Ot((P) => {
|
|
340
352
|
if (c && P > c.start && (o = $(c, f), c = null, W(e, o.b, "start"), I && (a(), u = rt(
|
|
341
353
|
e,
|
|
342
354
|
l,
|
|
@@ -344,10 +356,10 @@ function ct(e, t, n, i) {
|
|
|
344
356
|
o.duration,
|
|
345
357
|
0,
|
|
346
358
|
w,
|
|
347
|
-
|
|
359
|
+
r.css
|
|
348
360
|
))), o) {
|
|
349
361
|
if (P >= o.end)
|
|
350
|
-
F(l = o.b, 1 - l), W(e, o.b, "end"), c || (o.b ? a() : --o.group.r ||
|
|
362
|
+
F(l = o.b, 1 - l), W(e, o.b, "end"), c || (o.b ? a() : --o.group.r || v(o.group.c)), o = null;
|
|
351
363
|
else if (P >= o.start) {
|
|
352
364
|
const gt = P - o.start;
|
|
353
365
|
l = o.a + o.d * w(gt / o.duration), F(l, 1 - l);
|
|
@@ -358,8 +370,8 @@ function ct(e, t, n, i) {
|
|
|
358
370
|
}
|
|
359
371
|
return {
|
|
360
372
|
run(d) {
|
|
361
|
-
Q(
|
|
362
|
-
|
|
373
|
+
Q(r) ? Kt().then(() => {
|
|
374
|
+
r = r({ direction: d ? "in" : "out" }), g(d);
|
|
363
375
|
}) : g(d);
|
|
364
376
|
},
|
|
365
377
|
end() {
|
|
@@ -368,29 +380,29 @@ function ct(e, t, n, i) {
|
|
|
368
380
|
};
|
|
369
381
|
}
|
|
370
382
|
function Zt(e, t, n) {
|
|
371
|
-
const { fragment: i, after_update:
|
|
383
|
+
const { fragment: i, after_update: s } = e.$$;
|
|
372
384
|
i && i.m(t, n), A(() => {
|
|
373
|
-
const
|
|
374
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
375
|
-
}),
|
|
385
|
+
const r = e.$$.on_mount.map(at).filter(Q);
|
|
386
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...r) : v(r), e.$$.on_mount = [];
|
|
387
|
+
}), s.forEach(A);
|
|
376
388
|
}
|
|
377
389
|
function te(e, t) {
|
|
378
390
|
const n = e.$$;
|
|
379
|
-
n.fragment !== null && (Gt(n.after_update),
|
|
391
|
+
n.fragment !== null && (Gt(n.after_update), v(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
380
392
|
}
|
|
381
393
|
function ee(e, t) {
|
|
382
394
|
e.$$.dirty[0] === -1 && (x.push(e), Wt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
383
395
|
}
|
|
384
|
-
function ne(e, t, n, i,
|
|
385
|
-
const c =
|
|
396
|
+
function ne(e, t, n, i, s, r, l = null, o = [-1]) {
|
|
397
|
+
const c = O;
|
|
386
398
|
L(e);
|
|
387
399
|
const u = e.$$ = {
|
|
388
400
|
fragment: null,
|
|
389
401
|
ctx: [],
|
|
390
402
|
// state
|
|
391
|
-
props:
|
|
392
|
-
update:
|
|
393
|
-
not_equal:
|
|
403
|
+
props: r,
|
|
404
|
+
update: j,
|
|
405
|
+
not_equal: s,
|
|
394
406
|
bound: st(),
|
|
395
407
|
// lifecycle
|
|
396
408
|
on_mount: [],
|
|
@@ -409,8 +421,8 @@ function ne(e, t, n, i, r, s, l = null, o = [-1]) {
|
|
|
409
421
|
let h = !1;
|
|
410
422
|
if (u.ctx = n ? n(e, t.props || {}, (a, $, ...g) => {
|
|
411
423
|
const d = g.length ? g[0] : $;
|
|
412
|
-
return u.ctx &&
|
|
413
|
-
}) : [], u.update(), h = !0,
|
|
424
|
+
return u.ctx && s(u.ctx[a], u.ctx[a] = d) && (!u.skip_bound && u.bound[a] && u.bound[a](d), h && ee(e, a)), $;
|
|
425
|
+
}) : [], u.update(), h = !0, v(u.before_update), u.fragment = i ? i(u.ctx) : !1, t.target) {
|
|
414
426
|
if (t.hydrate) {
|
|
415
427
|
const a = Rt(t.target);
|
|
416
428
|
u.fragment && u.fragment.l(a), a.forEach(N);
|
|
@@ -446,26 +458,26 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
446
458
|
}
|
|
447
459
|
addEventListener(t, n, i) {
|
|
448
460
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
449
|
-
const
|
|
450
|
-
this.$$l_u.set(n,
|
|
461
|
+
const s = this.$$c.$on(t, n);
|
|
462
|
+
this.$$l_u.set(n, s);
|
|
451
463
|
}
|
|
452
464
|
super.addEventListener(t, n, i);
|
|
453
465
|
}
|
|
454
466
|
removeEventListener(t, n, i) {
|
|
455
467
|
if (super.removeEventListener(t, n, i), this.$$c) {
|
|
456
|
-
const
|
|
457
|
-
|
|
468
|
+
const s = this.$$l_u.get(n);
|
|
469
|
+
s && (s(), this.$$l_u.delete(n));
|
|
458
470
|
}
|
|
459
471
|
}
|
|
460
472
|
connectedCallback() {
|
|
461
473
|
return it(this, null, function* () {
|
|
462
474
|
if (this.$$cn = !0, !this.$$c) {
|
|
463
|
-
let t = function(
|
|
475
|
+
let t = function(r) {
|
|
464
476
|
return () => {
|
|
465
477
|
let l;
|
|
466
478
|
return {
|
|
467
479
|
c: function() {
|
|
468
|
-
l =
|
|
480
|
+
l = M("slot"), r !== "default" && B(l, "name", r);
|
|
469
481
|
},
|
|
470
482
|
/**
|
|
471
483
|
* @param {HTMLElement} target
|
|
@@ -483,14 +495,14 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
483
495
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
484
496
|
return;
|
|
485
497
|
const n = {}, i = Dt(this);
|
|
486
|
-
for (const
|
|
487
|
-
|
|
488
|
-
for (const
|
|
489
|
-
const l = this.$$g_p(
|
|
490
|
-
l in this.$$d || (this.$$d[l] = T(l,
|
|
498
|
+
for (const r of this.$$s)
|
|
499
|
+
r in i && (n[r] = [t(r)]);
|
|
500
|
+
for (const r of this.attributes) {
|
|
501
|
+
const l = this.$$g_p(r.name);
|
|
502
|
+
l in this.$$d || (this.$$d[l] = T(l, r.value, this.$$p_d, "toProp"));
|
|
491
503
|
}
|
|
492
|
-
for (const
|
|
493
|
-
!(
|
|
504
|
+
for (const r in this.$$p_d)
|
|
505
|
+
!(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
|
|
494
506
|
this.$$c = new this.$$ctor({
|
|
495
507
|
target: this.shadowRoot || this,
|
|
496
508
|
props: nt(et({}, this.$$d), {
|
|
@@ -500,24 +512,24 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
500
512
|
}
|
|
501
513
|
})
|
|
502
514
|
});
|
|
503
|
-
const
|
|
515
|
+
const s = () => {
|
|
504
516
|
this.$$r = !0;
|
|
505
|
-
for (const
|
|
506
|
-
if (this.$$d[
|
|
517
|
+
for (const r in this.$$p_d)
|
|
518
|
+
if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
|
|
507
519
|
const l = T(
|
|
508
|
-
|
|
509
|
-
this.$$d[
|
|
520
|
+
r,
|
|
521
|
+
this.$$d[r],
|
|
510
522
|
this.$$p_d,
|
|
511
523
|
"toAttribute"
|
|
512
524
|
);
|
|
513
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
525
|
+
l == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, l);
|
|
514
526
|
}
|
|
515
527
|
this.$$r = !1;
|
|
516
528
|
};
|
|
517
|
-
this.$$c.$$.after_update.push(
|
|
518
|
-
for (const
|
|
519
|
-
for (const l of this.$$l[
|
|
520
|
-
const o = this.$$c.$on(
|
|
529
|
+
this.$$c.$$.after_update.push(s), s();
|
|
530
|
+
for (const r in this.$$l)
|
|
531
|
+
for (const l of this.$$l[r]) {
|
|
532
|
+
const o = this.$$c.$on(r, l);
|
|
521
533
|
this.$$l_u.set(l, o);
|
|
522
534
|
}
|
|
523
535
|
this.$$l = {};
|
|
@@ -527,8 +539,8 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
527
539
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
528
540
|
// and setting attributes through setAttribute etc, this is helpful
|
|
529
541
|
attributeChangedCallback(t, n, i) {
|
|
530
|
-
var
|
|
531
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = T(t, i, this.$$p_d, "toProp"), (
|
|
542
|
+
var s;
|
|
543
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = T(t, i, this.$$p_d, "toProp"), (s = this.$$c) == null || s.$set({ [t]: this.$$d[t] }));
|
|
532
544
|
}
|
|
533
545
|
disconnectedCallback() {
|
|
534
546
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -542,12 +554,12 @@ typeof HTMLElement == "function" && (mt = class extends HTMLElement {
|
|
|
542
554
|
}
|
|
543
555
|
});
|
|
544
556
|
function T(e, t, n, i) {
|
|
545
|
-
var
|
|
546
|
-
const
|
|
547
|
-
if (t =
|
|
557
|
+
var r;
|
|
558
|
+
const s = (r = n[e]) == null ? void 0 : r.type;
|
|
559
|
+
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
|
|
548
560
|
return t;
|
|
549
561
|
if (i === "toAttribute")
|
|
550
|
-
switch (
|
|
562
|
+
switch (s) {
|
|
551
563
|
case "Object":
|
|
552
564
|
case "Array":
|
|
553
565
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -559,7 +571,7 @@ function T(e, t, n, i) {
|
|
|
559
571
|
return t;
|
|
560
572
|
}
|
|
561
573
|
else
|
|
562
|
-
switch (
|
|
574
|
+
switch (s) {
|
|
563
575
|
case "Object":
|
|
564
576
|
case "Array":
|
|
565
577
|
return t && JSON.parse(t);
|
|
@@ -571,10 +583,10 @@ function T(e, t, n, i) {
|
|
|
571
583
|
return t;
|
|
572
584
|
}
|
|
573
585
|
}
|
|
574
|
-
function ie(e, t, n, i,
|
|
586
|
+
function ie(e, t, n, i, s, r) {
|
|
575
587
|
let l = class extends mt {
|
|
576
588
|
constructor() {
|
|
577
|
-
super(e, n,
|
|
589
|
+
super(e, n, s), this.$$p_d = t;
|
|
578
590
|
}
|
|
579
591
|
static get observedAttributes() {
|
|
580
592
|
return Object.keys(t).map(
|
|
@@ -623,7 +635,7 @@ class se {
|
|
|
623
635
|
}
|
|
624
636
|
/** @returns {void} */
|
|
625
637
|
$destroy() {
|
|
626
|
-
te(this, 1), this.$destroy =
|
|
638
|
+
te(this, 1), this.$destroy = j;
|
|
627
639
|
}
|
|
628
640
|
/**
|
|
629
641
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -633,11 +645,11 @@ class se {
|
|
|
633
645
|
*/
|
|
634
646
|
$on(t, n) {
|
|
635
647
|
if (!Q(n))
|
|
636
|
-
return
|
|
648
|
+
return j;
|
|
637
649
|
const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
638
650
|
return i.push(n), () => {
|
|
639
|
-
const
|
|
640
|
-
|
|
651
|
+
const s = i.indexOf(n);
|
|
652
|
+
s !== -1 && i.splice(s, 1);
|
|
641
653
|
};
|
|
642
654
|
}
|
|
643
655
|
/**
|
|
@@ -645,18 +657,18 @@ class se {
|
|
|
645
657
|
* @returns {void}
|
|
646
658
|
*/
|
|
647
659
|
$set(t) {
|
|
648
|
-
this.$$set && !
|
|
660
|
+
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
649
661
|
}
|
|
650
662
|
}
|
|
651
663
|
const re = "4";
|
|
652
664
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(re);
|
|
653
665
|
function lt(e, { delay: t = 0, duration: n = 400, easing: i = ft } = {}) {
|
|
654
|
-
const
|
|
666
|
+
const s = +getComputedStyle(e).opacity;
|
|
655
667
|
return {
|
|
656
668
|
delay: t,
|
|
657
669
|
duration: n,
|
|
658
670
|
easing: i,
|
|
659
|
-
css: (
|
|
671
|
+
css: (r) => `opacity: ${r * s}`
|
|
660
672
|
};
|
|
661
673
|
}
|
|
662
674
|
function oe(e, t) {
|
|
@@ -670,8 +682,8 @@ function ce(e, t) {
|
|
|
670
682
|
return;
|
|
671
683
|
const n = new URL(t);
|
|
672
684
|
fetch(n.href).then((i) => i.text()).then((i) => {
|
|
673
|
-
const
|
|
674
|
-
|
|
685
|
+
const s = document.createElement("style");
|
|
686
|
+
s.innerHTML = i, e && e.appendChild(s);
|
|
675
687
|
}).catch((i) => {
|
|
676
688
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
677
689
|
});
|
|
@@ -679,8 +691,8 @@ function ce(e, t) {
|
|
|
679
691
|
function le(e, t, n) {
|
|
680
692
|
if (window.emMessageBus) {
|
|
681
693
|
const i = document.createElement("style");
|
|
682
|
-
window.emMessageBus.subscribe(t, (
|
|
683
|
-
i.innerHTML =
|
|
694
|
+
window.emMessageBus.subscribe(t, (s) => {
|
|
695
|
+
i.innerHTML = s, e && e.appendChild(i);
|
|
684
696
|
});
|
|
685
697
|
}
|
|
686
698
|
}
|
|
@@ -688,11 +700,11 @@ function ue(e) {
|
|
|
688
700
|
At(e, "svelte-126fglp", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}");
|
|
689
701
|
}
|
|
690
702
|
function ut(e) {
|
|
691
|
-
let t, n, i,
|
|
703
|
+
let t, n, i, s, r;
|
|
692
704
|
const l = (
|
|
693
705
|
/*#slots*/
|
|
694
706
|
e[9].default
|
|
695
|
-
), o =
|
|
707
|
+
), o = vt(
|
|
696
708
|
l,
|
|
697
709
|
e,
|
|
698
710
|
/*$$scope*/
|
|
@@ -701,20 +713,20 @@ function ut(e) {
|
|
|
701
713
|
);
|
|
702
714
|
return {
|
|
703
715
|
c() {
|
|
704
|
-
t =
|
|
716
|
+
t = M("div"), n = M("div"), i = M("div"), o && o.c(), B(i, "class", "ModalContainer"), B(n, "class", "ModalWindow"), B(n, "id", "Modal");
|
|
705
717
|
},
|
|
706
718
|
m(c, u) {
|
|
707
|
-
Z(c, t, u), q(t, n), q(n, i), o && o.m(i, null), e[10](n), e[11](t),
|
|
719
|
+
Z(c, t, u), q(t, n), q(n, i), o && o.m(i, null), e[10](n), e[11](t), r = !0;
|
|
708
720
|
},
|
|
709
721
|
p(c, u) {
|
|
710
|
-
e = c, o && o.p && (!
|
|
722
|
+
e = c, o && o.p && (!r || u & /*$$scope*/
|
|
711
723
|
256) && Lt(
|
|
712
724
|
o,
|
|
713
725
|
l,
|
|
714
726
|
e,
|
|
715
727
|
/*$$scope*/
|
|
716
728
|
e[8],
|
|
717
|
-
|
|
729
|
+
r ? Ct(
|
|
718
730
|
l,
|
|
719
731
|
/*$$scope*/
|
|
720
732
|
e[8],
|
|
@@ -728,21 +740,21 @@ function ut(e) {
|
|
|
728
740
|
);
|
|
729
741
|
},
|
|
730
742
|
i(c) {
|
|
731
|
-
|
|
732
|
-
|
|
743
|
+
r || (S(o, c), c && A(() => {
|
|
744
|
+
r && (s || (s = ct(n, lt, { transitionDuration: (
|
|
733
745
|
/*duration*/
|
|
734
746
|
e[1]
|
|
735
|
-
) }, !0)),
|
|
736
|
-
}),
|
|
747
|
+
) }, !0)), s.run(1));
|
|
748
|
+
}), r = !0);
|
|
737
749
|
},
|
|
738
750
|
o(c) {
|
|
739
|
-
K(o, c), c && (
|
|
751
|
+
K(o, c), c && (s || (s = ct(n, lt, { transitionDuration: (
|
|
740
752
|
/*duration*/
|
|
741
753
|
e[1]
|
|
742
|
-
) }, !1)),
|
|
754
|
+
) }, !1)), s.run(0)), r = !1;
|
|
743
755
|
},
|
|
744
756
|
d(c) {
|
|
745
|
-
c && N(t), o && o.d(c), e[10](null), c &&
|
|
757
|
+
c && N(t), o && o.d(c), e[10](null), c && s && s.end(), e[11](null);
|
|
746
758
|
}
|
|
747
759
|
};
|
|
748
760
|
}
|
|
@@ -755,36 +767,36 @@ function fe(e) {
|
|
|
755
767
|
c() {
|
|
756
768
|
i && i.c(), t = Bt();
|
|
757
769
|
},
|
|
758
|
-
m(
|
|
759
|
-
i && i.m(
|
|
770
|
+
m(s, r) {
|
|
771
|
+
i && i.m(s, r), Z(s, t, r), n = !0;
|
|
760
772
|
},
|
|
761
|
-
p(
|
|
773
|
+
p(s, [r]) {
|
|
762
774
|
/*show*/
|
|
763
|
-
|
|
764
|
-
1 && S(i, 1)) : (i = ut(
|
|
775
|
+
s[0] ? i ? (i.p(s, r), r & /*show*/
|
|
776
|
+
1 && S(i, 1)) : (i = ut(s), i.c(), S(i, 1), i.m(t.parentNode, t)) : i && (Qt(), K(i, 1, 1, () => {
|
|
765
777
|
i = null;
|
|
766
778
|
}), Xt());
|
|
767
779
|
},
|
|
768
|
-
i(
|
|
780
|
+
i(s) {
|
|
769
781
|
n || (S(i), n = !0);
|
|
770
782
|
},
|
|
771
|
-
o(
|
|
783
|
+
o(s) {
|
|
772
784
|
K(i), n = !1;
|
|
773
785
|
},
|
|
774
|
-
d(
|
|
775
|
-
|
|
786
|
+
d(s) {
|
|
787
|
+
s && N(t), i && i.d(s);
|
|
776
788
|
}
|
|
777
789
|
};
|
|
778
790
|
}
|
|
779
791
|
function ae(e, t, n) {
|
|
780
|
-
let { $$slots: i = {}, $$scope:
|
|
792
|
+
let { $$slots: i = {}, $$scope: s } = t, { show: r = !1 } = t, { duration: l = 350 } = t, { clientstyling: o = "" } = t, { clientstylingurl: c = "" } = t, { mbsource: u } = t, { showmodaleventname: h = "ShowLimitsConfirmationModal" } = t, a, $;
|
|
781
793
|
const g = (f) => {
|
|
782
794
|
switch (f.data.type) {
|
|
783
795
|
case "ModalClosed":
|
|
784
|
-
n(0,
|
|
796
|
+
n(0, r = !1);
|
|
785
797
|
break;
|
|
786
798
|
case h:
|
|
787
|
-
n(0,
|
|
799
|
+
n(0, r = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
|
|
788
800
|
break;
|
|
789
801
|
}
|
|
790
802
|
};
|
|
@@ -802,14 +814,14 @@ function ae(e, t, n) {
|
|
|
802
814
|
});
|
|
803
815
|
}
|
|
804
816
|
return e.$$set = (f) => {
|
|
805
|
-
"show" in f && n(0,
|
|
817
|
+
"show" in f && n(0, r = f.show), "duration" in f && n(1, l = f.duration), "clientstyling" in f && n(4, o = f.clientstyling), "clientstylingurl" in f && n(5, c = f.clientstylingurl), "mbsource" in f && n(6, u = f.mbsource), "showmodaleventname" in f && n(7, h = f.showmodaleventname), "$$scope" in f && n(8, s = f.$$scope);
|
|
806
818
|
}, e.$$.update = () => {
|
|
807
819
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
808
820
|
20 && o && a && oe(a, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
809
821
|
36 && c && a && ce(a, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
810
822
|
68 && u && a && le(a, `${u}.Style`);
|
|
811
823
|
}, [
|
|
812
|
-
|
|
824
|
+
r,
|
|
813
825
|
l,
|
|
814
826
|
a,
|
|
815
827
|
$,
|
|
@@ -817,7 +829,7 @@ function ae(e, t, n) {
|
|
|
817
829
|
c,
|
|
818
830
|
u,
|
|
819
831
|
h,
|
|
820
|
-
|
|
832
|
+
s,
|
|
821
833
|
i,
|
|
822
834
|
d,
|
|
823
835
|
_
|
|
@@ -830,7 +842,7 @@ class de extends se {
|
|
|
830
842
|
t,
|
|
831
843
|
ae,
|
|
832
844
|
fe,
|
|
833
|
-
|
|
845
|
+
Mt,
|
|
834
846
|
{
|
|
835
847
|
show: 0,
|
|
836
848
|
duration: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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/PlayerAccountModal-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}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/PlayerAccountModal-BNHjpKkD.cjs")).then(({default:t})=>{!customElements.get("player-account-modal")&&customElements.define("player-account-modal",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountModal-v7sWAC7_.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-modal") && customElements.define("player-account-modal", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";var pt=Object.defineProperty,wt=Object.defineProperties;var bt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))xt.call(t,n)&&J(e,n,t[n]);if(tt)for(var n of tt(t))Et.call(t,n)&&J(e,n,t[n]);return e},nt=(e,t)=>wt(e,bt(t));var m=(e,t,n)=>(J(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,r)=>{var s=c=>{try{o(n.next(c))}catch(u){r(u)}},l=c=>{try{o(n.throw(c))}catch(u){r(u)}},o=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,l);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function O(){}const ft=e=>e;function vt(e,t){for(const n in t)e[n]=t[n];return e}function at(e){return e()}function st(){return Object.create(null)}function k(e){e.forEach(at)}function Q(e){return typeof e=="function"}function Mt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function kt(e){return Object.keys(e).length===0}function Ct(e,t,n,i){if(e){const r=dt(e,t,n,i);return e[0](r)}}function dt(e,t,n,i){return e[1]&&i?vt(n.ctx.slice(),e[1](i(t))):n.ctx}function St(e,t,n,i){return e[2],t.dirty}function Lt(e,t,n,i,r,s){if(r){const l=dt(t,n,i,s);e.p(l,r)}}function Ot(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let i=0;i<n;i++)t[i]=-1;return t}return-1}const ht=typeof window!="undefined";let jt=ht?()=>window.performance.now():()=>Date.now(),X=ht?e=>requestAnimationFrame(e):O;const E=new Set;function $t(e){E.forEach(t=>{t.c(e)||(E.delete(t),t.f())}),E.size!==0&&X($t)}function At(e){let t;return E.size===0&&X($t),{promise:new Promise(n=>{E.add(t={c:e,f:n})}),abort(){E.delete(t)}}}function q(e,t){e.appendChild(t)}function Nt(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=v("style");r.id=t,r.textContent=n,_t(i,r)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Pt(e){const t=v("style");return t.textContent="/* empty */",_t(Y(e),t),t.sheet}function _t(e,t){return q(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function N(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function Bt(e){return document.createTextNode(e)}function Rt(){return Bt("")}function B(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Tt(e){return Array.from(e.childNodes)}function Dt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function Ht(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const D=new Map;let H=0;function zt(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Ft(e,t){const n={stylesheet:Pt(t),rules:{}};return D.set(e,n),n}function rt(e,t,n,i,r,s,l,o=0){const c=16.666/i;let u=`{
|
|
2
|
-
`;for(let f=0;f<=1;f+=c){const w=t+(n-t)*s(f);u+=f*100+`%{${l(w,1-w)}}
|
|
3
|
-
`}const h=u+`100% {${l(n,1-n)}}
|
|
4
|
-
}`,a=`__svelte_${zt(h)}_${o}`,$=Y(e),{stylesheet:g,rules:d}=D.get($)||Ft($,e);d[a]||(d[a]=!0,g.insertRule(`@keyframes ${a} ${h}`,g.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${a} ${i}ms linear ${r}ms 1 both`,H+=1,a}function It(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),r=n.length-i.length;r&&(e.style.animation=i.join(", "),H-=r,H||Ut())}function Ut(){X(()=>{H||(D.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&N(t)}),D.clear())})}let j;function S(e){j=e}function Jt(){if(!j)throw new Error("Function called outside component initialization");return j}function Vt(e){Jt().$$.on_mount.push(e)}const x=[],z=[];let M=[];const ot=[],Wt=Promise.resolve();let G=!1;function qt(){G||(G=!0,Wt.then(p))}function A(e){M.push(e)}const V=new Set;let b=0;function p(){if(b!==0)return;const e=j;do{try{for(;b<x.length;){const t=x[b];b++,S(t),Gt(t.$$)}}catch(t){throw x.length=0,b=0,t}for(S(null),x.length=0,b=0;z.length;)z.pop()();for(let t=0;t<M.length;t+=1){const n=M[t];V.has(n)||(V.add(n),n())}M.length=0}while(x.length);for(;ot.length;)ot.pop()();G=!1,V.clear(),S(e)}function Gt(e){if(e.fragment!==null){e.update(),k(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(A)}}function Kt(e){const t=[],n=[];M.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),M=t}let C;function Qt(){return C||(C=Promise.resolve(),C.then(()=>{C=null})),C}function W(e,t,n){e.dispatchEvent(Dt(`${t?"intro":"outro"}${n}`))}const R=new Set;let y;function Xt(){y={r:0,c:[],p:y}}function Yt(){y.r||k(y.c),y=y.p}function L(e,t){e&&e.i&&(R.delete(e),e.i(t))}function K(e,t,n,i){if(e&&e.o){if(R.has(e))return;R.add(e),y.c.push(()=>{R.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const Zt={duration:0};function ct(e,t,n,i){let s=t(e,n,{direction:"both"}),l=i?0:1,o=null,c=null,u=null,h;function a(){u&&It(e,u)}function $(d,_){const f=d.b-l;return _*=Math.abs(f),{a:l,b:d.b,d:f,duration:_,start:d.start,end:d.start+_,group:d.group}}function g(d){const{delay:_=0,duration:f=300,easing:w=ft,tick:F=O,css:I}=s||Zt,U={start:jt()+_,b:d};d||(U.group=y,y.r+=1),"inert"in e&&(d?h!==void 0&&(e.inert=h):(h=e.inert,e.inert=!0)),o||c?c=U:(I&&(a(),u=rt(e,l,d,f,_,w,I)),d&&F(0,1),o=$(U,f),A(()=>W(e,d,"start")),At(P=>{if(c&&P>c.start&&(o=$(c,f),c=null,W(e,o.b,"start"),I&&(a(),u=rt(e,l,o.b,o.duration,0,w,s.css))),o){if(P>=o.end)F(l=o.b,1-l),W(e,o.b,"end"),c||(o.b?a():--o.group.r||k(o.group.c)),o=null;else if(P>=o.start){const yt=P-o.start;l=o.a+o.d*w(yt/o.duration),F(l,1-l)}}return!!(o||c)}))}return{run(d){Q(s)?Qt().then(()=>{s=s({direction:d?"in":"out"}),g(d)}):g(d)},end(){a(),o=c=null}}}function te(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),A(()=>{const s=e.$$.on_mount.map(at).filter(Q);e.$$.on_destroy?e.$$.on_destroy.push(...s):k(s),e.$$.on_mount=[]}),r.forEach(A)}function ee(e,t){const n=e.$$;n.fragment!==null&&(Kt(n.after_update),k(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ne(e,t){e.$$.dirty[0]===-1&&(x.push(e),qt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ie(e,t,n,i,r,s,l=null,o=[-1]){const c=j;S(e);const u=e.$$={fragment:null,ctx:[],props:s,update:O,not_equal:r,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:st(),dirty:o,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let h=!1;if(u.ctx=n?n(e,t.props||{},(a,$,...g)=>{const d=g.length?g[0]:$;return u.ctx&&r(u.ctx[a],u.ctx[a]=d)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](d),h&&ne(e,a)),$}):[],u.update(),h=!0,k(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const a=Tt(t.target);u.fragment&&u.fragment.l(a),a.forEach(N)}else u.fragment&&u.fragment.c();t.intro&&L(e.$$.fragment),te(e,t.target,t.anchor),p()}S(c)}let mt;typeof HTMLElement=="function"&&(mt=class extends HTMLElement{constructor(t,n,i){super();m(this,"$$ctor");m(this,"$$s");m(this,"$$c");m(this,"$$cn",!1);m(this,"$$d",{});m(this,"$$r",!1);m(this,"$$p_d",{});m(this,"$$l",{});m(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){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,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=v("slot"),s!=="default"&&B(l,"name",s)},m:function(u,h){Z(u,l,h)},d:function(u){u&&N(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Ht(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=T(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=T(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const l of this.$$l[s]){const o=this.$$c.$on(s,l);this.$$l_u.set(l,o)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=T(t,i,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 T(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="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 se(e,t,n,i,r,s){let l=class extends mt{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var u;c=T(o,c,t),this.$$d[o]=c,(u=this.$$c)==null||u.$set({[o]:c})}})}),i.forEach(o=>{Object.defineProperty(l.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=l,l}class re{constructor(){m(this,"$$");m(this,"$$set")}$destroy(){ee(this,1),this.$destroy=O}$on(t,n){if(!Q(n))return O;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!kt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const oe="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oe);function lt(e,{delay:t=0,duration:n=400,easing:i=ft}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:s=>`opacity: ${s*r}`}}function ce(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function le(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function ue(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}function fe(e){Nt(e,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function ut(e){let t,n,i,r,s;const l=e[9].default,o=Ct(l,e,e[8],null);return{c(){t=v("div"),n=v("div"),i=v("div"),o&&o.c(),B(i,"class","ModalContainer"),B(n,"class","ModalWindow"),B(n,"id","Modal")},m(c,u){Z(c,t,u),q(t,n),q(n,i),o&&o.m(i,null),e[10](n),e[11](t),s=!0},p(c,u){e=c,o&&o.p&&(!s||u&256)&&Lt(o,l,e,e[8],s?St(l,e[8],u,null):Ot(e[8]),null)},i(c){s||(L(o,c),c&&A(()=>{s&&(r||(r=ct(n,lt,{transitionDuration:e[1]},!0)),r.run(1))}),s=!0)},o(c){K(o,c),c&&(r||(r=ct(n,lt,{transitionDuration:e[1]},!1)),r.run(0)),s=!1},d(c){c&&N(t),o&&o.d(c),e[10](null),c&&r&&r.end(),e[11](null)}}}function ae(e){let t,n,i=e[0]&&ut(e);return{c(){i&&i.c(),t=Rt()},m(r,s){i&&i.m(r,s),Z(r,t,s),n=!0},p(r,[s]){r[0]?i?(i.p(r,s),s&1&&L(i,1)):(i=ut(r),i.c(),L(i,1),i.m(t.parentNode,t)):i&&(Xt(),K(i,1,1,()=>{i=null}),Yt())},i(r){n||(L(i),n=!0)},o(r){K(i),n=!1},d(r){r&&N(t),i&&i.d(r)}}}function de(e,t,n){let{$$slots:i={},$$scope:r}=t,{show:s=!1}=t,{duration:l=350}=t,{clientstyling:o=""}=t,{clientstylingurl:c=""}=t,{mbsource:u}=t,{showmodaleventname:h="ShowLimitsConfirmationModal"}=t,a,$;const g=f=>{switch(f.data.type){case"ModalClosed":n(0,s=!1);break;case h:n(0,s=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};Vt(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function d(f){z[f?"unshift":"push"](()=>{$=f,n(3,$)})}function _(f){z[f?"unshift":"push"](()=>{a=f,n(2,a)})}return e.$$set=f=>{"show"in f&&n(0,s=f.show),"duration"in f&&n(1,l=f.duration),"clientstyling"in f&&n(4,o=f.clientstyling),"clientstylingurl"in f&&n(5,c=f.clientstylingurl),"mbsource"in f&&n(6,u=f.mbsource),"showmodaleventname"in f&&n(7,h=f.showmodaleventname),"$$scope"in f&&n(8,r=f.$$scope)},e.$$.update=()=>{e.$$.dirty&20&&o&&a&&ce(a,o),e.$$.dirty&36&&c&&a&&le(a,c),e.$$.dirty&68&&u&&a&&ue(a,`${u}.Style`)},[s,l,a,$,o,c,u,h,r,i,d,_]}class gt extends re{constructor(t){super(),ie(this,t,de,ae,Mt,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},fe)}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),p()}get duration(){return this.$$.ctx[1]}set duration(t){this.$$set({duration:t}),p()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),p()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p()}get mbsource(){return this.$$.ctx[6]}set mbsource(t){this.$$set({mbsource:t}),p()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(t){this.$$set({showmodaleventname:t}),p()}}se(gt,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=gt;
|