ambient-display 1.1.18 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.Dl9__I4E.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.BtzFOBtk.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.VTEzhx9-.css.gz +0 -0
- package/build/client/_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css.gz +0 -0
- package/build/client/_app/immutable/assets/PlayingTracker.BPTtFzSw.css.gz +0 -0
- package/build/client/_app/immutable/assets/_layout.Dl9__I4E.css.gz +0 -0
- package/build/client/_app/immutable/assets/_page.BtzFOBtk.css.gz +0 -0
- package/build/client/_app/immutable/assets/_page.VTEzhx9-.css.gz +0 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js +1 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.br +0 -0
- package/build/client/_app/immutable/chunks/LoadingIndicator.C1fneNq_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js +5 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.br +0 -0
- package/build/client/_app/immutable/chunks/PlayingTracker.yCKSqsZv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js +1 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.br +0 -0
- package/build/client/_app/immutable/chunks/disclose-version.N57b1q78.js.gz +0 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js +3 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.br +0 -0
- package/build/client/_app/immutable/chunks/entry.B2wj1Tgy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js +1 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/index-client.DV07uIiZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js +1 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.DFULH2AN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js +4 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.br +0 -0
- package/build/client/_app/immutable/chunks/index.dKTgPKtW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js +1 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/legacy.DZgMwYuQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js +1 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js.br +0 -0
- package/build/client/_app/immutable/chunks/props.DYfFZGja.js.gz +0 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js +1 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.br +0 -0
- package/build/client/_app/immutable/chunks/snippet.BVSCguOu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js +1 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.br +0 -0
- package/build/client/_app/immutable/chunks/this.EZLWgc5v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js +1 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.br +0 -0
- package/build/client/_app/immutable/chunks/utils.BXcQV2KO.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js +2 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CUN30c9h.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js +1 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js.br +2 -0
- package/build/client/_app/immutable/entry/start.C6HhKPxU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js +2 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CpFR5G02.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js +1 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B3XhlwDo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js +1 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MU8ojSgR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js +1 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C-yT6jXP.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/manifest.json.gz +0 -0
- package/build/server/chunks/{0-BvYWjFDA.js → 0-nirVogjh.js} +3 -3
- package/build/server/chunks/0-nirVogjh.js.map +1 -0
- package/build/server/chunks/1-DcCpi3nW.js +9 -0
- package/build/server/chunks/1-DcCpi3nW.js.map +1 -0
- package/build/server/chunks/2-CwMl96vS.js +9 -0
- package/build/server/chunks/2-CwMl96vS.js.map +1 -0
- package/build/server/chunks/3-DPYW2cKz.js +9 -0
- package/build/server/chunks/3-DPYW2cKz.js.map +1 -0
- package/build/server/chunks/LoadingIndicator-CDp6tTFY.js +10 -0
- package/build/server/chunks/LoadingIndicator-CDp6tTFY.js.map +1 -0
- package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js} +2 -2
- package/build/server/chunks/{LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js.map → LoadingIndicator.svelte_svelte_type_style_lang-F_3XEmUz.js.map} +1 -1
- package/build/server/chunks/{PlayingTracker-DuFebO2_.js → PlayingTracker-Dm2xxH7o.js} +3 -3
- package/build/server/chunks/{PlayingTracker-DuFebO2_.js.map → PlayingTracker-Dm2xxH7o.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-CADTy4fg.js → _layout.svelte-BkMsHLGZ.js} +4 -5
- package/build/server/chunks/_layout.svelte-BkMsHLGZ.js.map +1 -0
- package/build/server/chunks/_page.svelte-BlQ5BDxG.js +115 -0
- package/build/server/chunks/_page.svelte-BlQ5BDxG.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CYugZxLe.js → _page.svelte-CdVsmVc4.js} +16 -15
- package/build/server/chunks/_page.svelte-CdVsmVc4.js.map +1 -0
- package/build/server/chunks/error.svelte-BZE1ioPX.js +116 -0
- package/build/server/chunks/error.svelte-BZE1ioPX.js.map +1 -0
- package/build/server/chunks/{exports-D0QHgeSL.js → exports-DAjI6ZSp.js} +17 -2
- package/build/server/chunks/exports-DAjI6ZSp.js.map +1 -0
- package/build/server/chunks/{index2-DObisaVF.js → index2-BA59f76P.js} +297 -337
- package/build/server/chunks/index2-BA59f76P.js.map +1 -0
- package/build/server/index.js +156 -345
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +5 -6
- package/build/server/manifest.js.map +1 -1
- package/package.json +1 -1
- package/server/index.js +3 -9
- package/server/spotify/index.js +0 -4
- package/server/spotify_auth.json +1 -7
- package/server/utils.js +5 -0
- package/build/client/_app/immutable/chunks/BFU9wwXC.js +0 -3
- package/build/client/_app/immutable/chunks/BFU9wwXC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFU9wwXC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js +0 -5
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQ2eCqC3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7I4vMbc.js +0 -1
- package/build/client/_app/immutable/chunks/C7I4vMbc.js.br +0 -2
- package/build/client/_app/immutable/chunks/C7I4vMbc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDVeMiAl.js +0 -1
- package/build/client/_app/immutable/chunks/CDVeMiAl.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDVeMiAl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvUX3i4L.js +0 -1
- package/build/client/_app/immutable/chunks/CvUX3i4L.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvUX3i4L.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5aAvvqP.js +0 -2
- package/build/client/_app/immutable/chunks/D5aAvvqP.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5aAvvqP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DiaFwogD.js +0 -4
- package/build/client/_app/immutable/chunks/DiaFwogD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DiaFwogD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DnG2xkSB.js +0 -1
- package/build/client/_app/immutable/chunks/DnG2xkSB.js.br +0 -2
- package/build/client/_app/immutable/chunks/DnG2xkSB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EvVuwjft.js +0 -1
- package/build/client/_app/immutable/chunks/EvVuwjft.js.br +0 -0
- package/build/client/_app/immutable/chunks/EvVuwjft.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qSIFE6bv.js +0 -1
- package/build/client/_app/immutable/chunks/qSIFE6bv.js.br +0 -0
- package/build/client/_app/immutable/chunks/qSIFE6bv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ynvIH2CR.js +0 -1
- package/build/client/_app/immutable/chunks/ynvIH2CR.js.br +0 -0
- package/build/client/_app/immutable/chunks/ynvIH2CR.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DBhY8_4y.js +0 -2
- package/build/client/_app/immutable/entry/app.DBhY8_4y.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DBhY8_4y.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DwC31x2f.js +0 -1
- package/build/client/_app/immutable/entry/start.DwC31x2f.js.br +0 -2
- package/build/client/_app/immutable/entry/start.DwC31x2f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BXpO8PDa.js +0 -2
- package/build/client/_app/immutable/nodes/0.BXpO8PDa.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BXpO8PDa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ByCIm58b.js +0 -1
- package/build/client/_app/immutable/nodes/1.ByCIm58b.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.ByCIm58b.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js +0 -1
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DxFkPkVM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js +0 -1
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DHrglKgJ.js.gz +0 -0
- package/build/server/chunks/0-BvYWjFDA.js.map +0 -1
- package/build/server/chunks/1-Nhr7ZMI3.js +0 -9
- package/build/server/chunks/1-Nhr7ZMI3.js.map +0 -1
- package/build/server/chunks/2-cxDj5MEl.js +0 -9
- package/build/server/chunks/2-cxDj5MEl.js.map +0 -1
- package/build/server/chunks/3-Bd5ZeRiN.js +0 -9
- package/build/server/chunks/3-Bd5ZeRiN.js.map +0 -1
- package/build/server/chunks/LoadingIndicator-BgSuwc17.js +0 -10
- package/build/server/chunks/LoadingIndicator-BgSuwc17.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CADTy4fg.js.map +0 -1
- package/build/server/chunks/_page.svelte-B1q4zDaO.js +0 -114
- package/build/server/chunks/_page.svelte-B1q4zDaO.js.map +0 -1
- package/build/server/chunks/_page.svelte-CYugZxLe.js.map +0 -1
- package/build/server/chunks/error.svelte-DGl1DMvJ.js +0 -55
- package/build/server/chunks/error.svelte-DGl1DMvJ.js.map +0 -1
- package/build/server/chunks/exports-D0QHgeSL.js.map +0 -1
- package/build/server/chunks/index2-DObisaVF.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as A,K as x,L as z,M as w,N as Q,o as y,U as g,I as P,O as m,P as W,Q as X,R as J,T as k,d as ee,h as Y,C as re,E as ne,V as te,W as se,X as ie,Y as ae,Z as q,_ as j,f as B,H as C,i as fe,$ as ue,a0 as le,n as $,a1 as G,a2 as ce,a3 as oe,a4 as ve,a5 as de,s as H,a6 as _e,a7 as be,a8 as ge,b as Z,a9 as pe,aa as V,a as Pe,ab as ye,ac as he,ad as we,ae as N}from"./CDVeMiAl.js";function S(e,r=null,i){if(typeof e!="object"||e===null||A in e)return e;const n=J(e);if(n!==x&&n!==z)return e;var s=new Map,o=k(e),b=w(0);o&&s.set("length",w(e.length));var p;return new Proxy(e,{defineProperty(l,t,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&X();var u=s.get(t);return u===void 0?(u=w(a.value),s.set(t,u)):P(u,S(a.value,p)),!0},deleteProperty(l,t){var a=s.get(t);if(a===void 0)t in l&&s.set(t,w(g));else{if(o&&typeof t=="string"){var u=s.get("length"),f=Number(t);Number.isInteger(f)&&f<u.v&&P(u,f)}P(a,g),F(b)}return!0},get(l,t,a){var d;if(t===A)return e;var u=s.get(t),f=t in l;if(u===void 0&&(!f||(d=m(l,t))!=null&&d.writable)&&(u=w(S(f?l[t]:g,p)),s.set(t,u)),u!==void 0){var c=y(u);return c===g?void 0:c}return Reflect.get(l,t,a)},getOwnPropertyDescriptor(l,t){var a=Reflect.getOwnPropertyDescriptor(l,t);if(a&&"value"in a){var u=s.get(t);u&&(a.value=y(u))}else if(a===void 0){var f=s.get(t),c=f==null?void 0:f.v;if(f!==void 0&&c!==g)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,t){var c;if(t===A)return!0;var a=s.get(t),u=a!==void 0&&a.v!==g||Reflect.has(l,t);if(a!==void 0||W!==null&&(!u||(c=m(l,t))!=null&&c.writable)){a===void 0&&(a=w(u?S(l[t],p):g),s.set(t,a));var f=y(a);if(f===g)return!1}return u},set(l,t,a,u){var I;var f=s.get(t),c=t in l;if(o&&t==="length")for(var d=a;d<f.v;d+=1){var h=s.get(d+"");h!==void 0?P(h,g):d in l&&(h=w(g),s.set(d+"",h))}f===void 0?(!c||(I=m(l,t))!=null&&I.writable)&&(f=w(void 0),P(f,S(a,p)),s.set(t,f)):(c=f.v!==g,P(f,S(a,p)));var _=Reflect.getOwnPropertyDescriptor(l,t);if(_!=null&&_.set&&_.set.call(u,a),!c){if(o&&typeof t=="string"){var O=s.get("length"),E=Number(t);Number.isInteger(E)&&E>=O.v&&P(O,E+1)}F(b)}return!0},ownKeys(l){y(b);var t=Reflect.ownKeys(l).filter(f=>{var c=s.get(f);return c===void 0||c.v!==g});for(var[a,u]of s)u.v!==g&&!(a in l)&&t.push(a);return t},setPrototypeOf(){Q()}})}function F(e,r=1){P(e,e.v+r)}function Oe(e,r,[i,n]=[0,0]){Y&&i===0&&re();var s=e,o=null,b=null,p=g,l=i>0?ne:0,t=!1;const a=(f,c=!0)=>{t=!0,u(c,f)},u=(f,c)=>{if(p===(p=f))return;let d=!1;if(Y&&n!==-1){if(i===0){const _=s.data;_===te?n=0:_===se?n=1/0:(n=parseInt(_.substring(1)),n!==n&&(n=p?1/0:-1))}const h=n>i;!!p===h&&(s=ie(),ae(s),q(!1),d=!0,n=-1)}p?(o?j(o):c&&(o=B(()=>c(s))),b&&C(b,()=>{b=null})):(b?j(b):c&&(b=B(()=>c(s,[i+1,n]))),o&&C(o,()=>{o=null})),d&&q(!0)};ee(()=>{t=!1,r(a),t||u(null,null)},l),Y&&(s=fe)}let D=!1,K=Symbol();function Ee(e,r,i){const n=i[r]??(i[r]={store:null,source:G(void 0),unsubscribe:$});if(n.store!==e&&!(K in i))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=$;else{var s=!0;n.unsubscribe=ce(e,o=>{s?n.source.v=o:P(n.source,o)}),s=!1}return e&&K in i?oe(e):y(n.source)}function Te(){const e={};function r(){ue(()=>{for(var i in e)e[i].unsubscribe();le(e,K,{enumerable:!1,value:!0})})}return[e,r]}function Ie(e){var r=D;try{return D=!1,[e(),D]}finally{D=r}}const Re={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function Ne(e,r,i){return new Proxy({props:e,exclude:r},Re)}const Se={get(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(N(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,i){let n=e.props.length;for(;n--;){let s=e.props[n];N(s)&&(s=s());const o=m(s,r);if(o&&o.set)return o.set(i),!0}return!1},getOwnPropertyDescriptor(e,r){let i=e.props.length;for(;i--;){let n=e.props[i];if(N(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const s=m(n,r);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,r){if(r===A||r===V)return!1;for(let i of e.props)if(N(i)&&(i=i()),i!=null&&r in i)return!0;return!1},ownKeys(e){const r=[];for(let i of e.props){N(i)&&(i=i());for(const n in i)r.includes(n)||r.push(n)}return r}};function Ae(...e){return new Proxy({props:e},Se)}function De(e,r,i,n){var M;var s=(i&he)!==0,o=!Pe||(i&ye)!==0,b=(i&pe)!==0,p=(i&we)!==0,l=!1,t;b?[t,l]=Ie(()=>e[r]):t=e[r];var a=A in e||V in e,u=b&&(((M=m(e,r))==null?void 0:M.set)??(a&&r in e&&(v=>e[r]=v)))||void 0,f=n,c=!0,d=!1,h=()=>(d=!0,c&&(c=!1,p?f=Z(n):f=n),f);t===void 0&&n!==void 0&&(u&&o&&ve(),t=h(),u&&u(t));var _;if(o)_=()=>{var v=e[r];return v===void 0?h():(c=!0,d=!1,v)};else{var O=(s?H:_e)(()=>e[r]);O.f|=de,_=()=>{var v=y(O);return v!==void 0&&(f=void 0),v===void 0?f:v}}if((i&be)===0)return _;if(u){var E=e.$$legacy;return function(v,R){return arguments.length>0?((!o||!R||E||l)&&u(R?_():v),v):_()}}var I=!1,L=G(t),T=H(()=>{var v=_(),R=y(L);return I?(I=!1,R):L.v=v});return s||(T.equals=ge),function(v,R){if(arguments.length>0){const U=R?y(T):o&&b?S(v):v;return T.equals(U)||(I=!0,P(L,U),d&&f!==void 0&&(f=U),Z(()=>y(T))),v}return y(T)}}export{Ee as a,De as b,Ae as c,Oe as i,S as p,Ne as r,Te as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{q as We,Y as te,h as T,as as wt,ap as Et,C as At,d as kt,o as Ce,a6 as Tt,W as Ot,X as Ne,Z as F,i as I,ay as Rt,_ as je,f as ze,H as St,aC as Je,T as Ct,a1 as Nt,M as Be,aH as se,P as Le,aI as _e,aJ as Pe,aK as Bt,aB as Lt,aL as Pt,g as xt,aM as me,aN as qt,ar as It,aO as Xe,aP as Dt,aQ as Mt,R as Ut,aR as Vt,aS as Ft,aT as H,aU as $,x as Ht}from"./CDVeMiAl.js";import{k as $t,l as Kt,e as Yt,o as Wt,p as jt,t as zt,a as Jt}from"./qSIFE6bv.js";import{b as Xt}from"./CvUX3i4L.js";function Qt(s,e){if(e){const t=document.body;s.autofocus=!0,We(()=>{document.activeElement===t&&s.focus()})}}let re=null;function fr(s,e){return e}function Gt(s,e,t,r){for(var i=[],n=e.length,o=0;o<n;o++)Bt(e[o].e,i,!0);var a=n>0&&i.length===0&&t!==null;if(a){var c=t.parentNode;Lt(c),c.append(t),r.clear(),L(s,e[0].prev,e[n-1].next)}Pt(i,()=>{for(var f=0;f<n;f++){var l=e[f];a||(r.delete(l.k),L(s,l.prev,l.next)),xt(l.e,!a)}})}function lr(s,e,t,r,i,n=null){var o=s,a={flags:e,items:new Map,first:null},c=(e&Xe)!==0;if(c){var f=s;o=T?te(wt(f)):f.appendChild(Et())}T&&At();var l=null,_=!1,u=Tt(()=>{var v=t();return Ct(v)?v:v==null?[]:Je(v)});kt(()=>{var v=Ce(u),g=v.length;if(_&&g===0)return;_=g===0;let m=!1;if(T){var A=o.data===Ot;A!==(g===0)&&(o=Ne(),te(o),F(!1),m=!0)}if(T){for(var b=null,k,p=0;p<g;p++){if(I.nodeType===8&&I.data===Rt){o=I,m=!0,F(!1);break}var h=v[p],d=r(h,p);k=Qe(I,a,b,null,h,d,p,i,e,t),a.items.set(d,k),b=k}g>0&&te(Ne())}T||Zt(v,a,o,i,e,r,t),n!==null&&(g===0?l?je(l):l=ze(()=>n(o)):l!==null&&St(l,()=>{l=null})),m&&F(!0),Ce(u)}),T&&(o=I)}function Zt(s,e,t,r,i,n,o){var ke,Te,Oe,Re;var a=(i&Dt)!==0,c=(i&(me|_e))!==0,f=s.length,l=e.items,_=e.first,u=_,v,g=null,m,A=[],b=[],k,p,h,d;if(a)for(d=0;d<f;d+=1)k=s[d],p=n(k,d),h=l.get(p),h!==void 0&&((ke=h.a)==null||ke.measure(),(m??(m=new Set)).add(h));for(d=0;d<f;d+=1){if(k=s[d],p=n(k,d),h=l.get(p),h===void 0){var B=u?u.e.nodes_start:t;g=Qe(B,e,g,g===null?e.first:g.next,k,p,d,r,i,o),l.set(p,g),A=[],b=[],u=g.next;continue}if(c&&es(h,k,d,i),(h.e.f&se)!==0&&(je(h.e),a&&((Te=h.a)==null||Te.unfix(),(m??(m=new Set)).delete(h))),h!==u){if(v!==void 0&&v.has(h)){if(A.length<b.length){var w=b[0],S;g=w.prev;var K=A[0],Z=A[A.length-1];for(S=0;S<A.length;S+=1)xe(A[S],w,t);for(S=0;S<b.length;S+=1)v.delete(b[S]);L(e,K.prev,Z.next),L(e,g,K),L(e,Z,w),u=w,g=Z,d-=1,A=[],b=[]}else v.delete(h),xe(h,u,t),L(e,h.prev,h.next),L(e,h,g===null?e.first:g.next),L(e,g,h),g=h;continue}for(A=[],b=[];u!==null&&u.k!==p;)(u.e.f&se)===0&&(v??(v=new Set)).add(u),b.push(u),u=u.next;if(u===null)continue;h=u}A.push(h),g=h,u=h.next}if(u!==null||v!==void 0){for(var q=v===void 0?[]:Je(v);u!==null;)(u.e.f&se)===0&&q.push(u),u=u.next;var ee=q.length;if(ee>0){var bt=(i&Xe)!==0&&f===0?t:null;if(a){for(d=0;d<ee;d+=1)(Oe=q[d].a)==null||Oe.measure();for(d=0;d<ee;d+=1)(Re=q[d].a)==null||Re.fix()}Gt(e,q,bt,l)}}a&&We(()=>{var Se;if(m!==void 0)for(h of m)(Se=h.a)==null||Se.apply()}),Le.first=e.first&&e.first.e,Le.last=g&&g.e}function es(s,e,t,r){(r&me)!==0&&Pe(s.v,e),(r&_e)!==0?Pe(s.i,t):s.i=t}function Qe(s,e,t,r,i,n,o,a,c,f){var l=re,_=(c&me)!==0,u=(c&qt)===0,v=_?u?Nt(i):Be(i):i,g=(c&_e)===0?o:Be(o),m={i:g,v,k:n,a:null,e:null,prev:t,next:r};re=m;try{return m.e=ze(()=>a(s,v,g,f),T),m.e.prev=t&&t.e,m.e.next=r&&r.e,t===null?e.first=m:(t.next=m,t.e.next=m.e),r!==null&&(r.prev=m,r.e.prev=m.e),m}finally{re=l}}function xe(s,e,t){for(var r=s.next?s.next.e.nodes_start:t,i=e?e.e.nodes_start:t,n=s.e.nodes_start;n!==r;){var o=It(n);i.before(n),n=o}}function L(s,e,t){e===null?s.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ge(s){var e,t,r="";if(typeof s=="string"||typeof s=="number")r+=s;else if(typeof s=="object")if(Array.isArray(s)){var i=s.length;for(e=0;e<i;e++)s[e]&&(t=Ge(s[e]))&&(r&&(r+=" "),r+=t)}else for(t in s)s[t]&&(r&&(r+=" "),r+=t);return r}function ts(){for(var s,e,t=0,r="",i=arguments.length;t<i;t++)(s=arguments[t])&&(e=Ge(s))&&(r&&(r+=" "),r+=e);return r}function ss(s){return typeof s=="object"?ts(s):s??""}const qe=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function rs(s,e,t){var r=s==null?"":""+s;if(e&&(r=r?r+" "+e:e),t){for(var i in t)if(t[i])r=r?r+" "+i:i;else if(r.length)for(var n=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+n;(o===0||qe.includes(r[o-1]))&&(a===r.length||qe.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function Ie(s,e=!1){var t=e?" !important;":";",r="";for(var i in s){var n=s[i];n!=null&&n!==""&&(r+=" "+i+": "+n+t)}return r}function ie(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function is(s,e){if(e){var t="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,o=0,a=!1,c=[];r&&c.push(...Object.keys(r).map(ie)),i&&c.push(...Object.keys(i).map(ie));var f=0,l=-1;const m=s.length;for(var _=0;_<m;_++){var u=s[_];if(a?u==="/"&&s[_-1]==="*"&&(a=!1):n?n===u&&(n=!1):u==="/"&&s[_+1]==="*"?a=!0:u==='"'||u==="'"?n=u:u==="("?o++:u===")"&&o--,!a&&n===!1&&o===0){if(u===":"&&l===-1)l=_;else if(u===";"||_===m-1){if(l!==-1){var v=ie(s.substring(f,l).trim());if(!c.includes(v)){u!==";"&&_++;var g=s.substring(f,_).trim();t+=" "+g+";"}}f=_+1,l=-1}}}}return r&&(t+=Ie(r)),i&&(t+=Ie(i,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function Ze(s,e,t,r,i,n){var o=s.__className;if(T||o!==t){var a=rs(t,r,n);(!T||a!==s.getAttribute("class"))&&(a==null?s.removeAttribute("class"):e?s.className=a:s.setAttribute("class",a)),s.__className=t}else if(n&&i!==n)for(var c in n){var f=!!n[c];(i==null||f!==!!i[c])&&s.classList.toggle(c,f)}return n}function ne(s,e={},t,r){for(var i in t){var n=t[i];e[i]!==n&&(t[i]==null?s.style.removeProperty(i):s.style.setProperty(i,n,r))}}function ns(s,e,t,r){var i=s.__style;if(T||i!==e){var n=is(e,r);(!T||n!==s.getAttribute("style"))&&(n==null?s.removeAttribute("style"):s.style.cssText=n),s.__style=e}else r&&(Array.isArray(r)?(ne(s,t==null?void 0:t[0],r[0]),ne(s,t==null?void 0:t[1],r[1],"important")):ne(s,t,r));return r}const D=Symbol("class"),M=Symbol("style"),et=Symbol("is custom element"),tt=Symbol("is html");function os(s,e){e?s.hasAttribute("selected")||s.setAttribute("selected",""):s.removeAttribute("selected")}function De(s,e,t,r){var i=st(s);T&&(i[e]=s.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&s.nodeName==="LINK")||i[e]!==(i[e]=t)&&(e==="loading"&&(s[Ft]=t),t==null?s.removeAttribute(e):typeof t!="string"&&rt(s).includes(e)?s[e]=t:s.setAttribute(e,t))}function dr(s,e,t,r,i=!1){var n=st(s),o=n[et],a=!n[tt];let c=T&&o;c&&F(!1);var f=e||{},l=s.tagName==="OPTION";for(var _ in e)_ in t||(t[_]=null);t.class?t.class=ss(t.class):t[D]&&(t.class=null),t[M]&&(t.style??(t.style=null));var u=rt(s);for(const p in t){let h=t[p];if(l&&p==="value"&&h==null){s.value=s.__value="",f[p]=h;continue}if(p==="class"){var v=s.namespaceURI==="http://www.w3.org/1999/xhtml";Ze(s,v,h,r,e==null?void 0:e[D],t[D]),f[p]=h,f[D]=t[D];continue}if(p==="style"){ns(s,h,e==null?void 0:e[M],t[M]),f[p]=h,f[M]=t[M];continue}var g=f[p];if(h!==g){f[p]=h;var m=p[0]+p[1];if(m!=="$$")if(m==="on"){const d={},B="$$"+p;let w=p.slice(2);var A=jt(w);if($t(w)&&(w=w.slice(0,-7),d.capture=!0),!A&&g){if(h!=null)continue;s.removeEventListener(w,f[B],d),f[B]=null}if(h!=null)if(A)s[`__${w}`]=h,Yt([w]);else{let S=function(K){f[p].call(this,K)};f[B]=Kt(w,s,S,d)}else A&&(s[`__${w}`]=void 0)}else if(p==="style")De(s,p,h);else if(p==="autofocus")Qt(s,!!h);else if(!o&&(p==="__value"||p==="value"&&h!=null))s.value=s.__value=h;else if(p==="selected"&&l)os(s,h);else{var b=p;a||(b=Wt(b));var k=b==="defaultValue"||b==="defaultChecked";if(h==null&&!o&&!k)if(n[p]=null,b==="value"||b==="checked"){let d=s;const B=e===void 0;if(b==="value"){let w=d.defaultValue;d.removeAttribute(b),d.defaultValue=w,d.value=d.__value=B?w:null}else{let w=d.defaultChecked;d.removeAttribute(b),d.defaultChecked=w,d.checked=B?w:!1}}else s.removeAttribute(p);else k||u.includes(b)&&(o||typeof h!="string")?s[b]=h:typeof h!="function"&&De(s,b,h)}}}return c&&F(!0),f}function st(s){return s.__attributes??(s.__attributes={[et]:s.nodeName.includes("-"),[tt]:s.namespaceURI===Mt})}var Me=new Map;function rt(s){var e=Me.get(s.nodeName);if(e)return e;Me.set(s.nodeName,e=[]);for(var t,r=s,i=Element.prototype;i!==r;){t=Vt(r);for(var n in t)t[n].set&&e.push(n);r=Ut(r)}return e}const oe=H([]);let Ue=0;const it={...oe,addItem(s){const e=Ue+1;return oe.update(t=>[...t,{id:e,...s}]),Ue=e,()=>it.removeItem(e)},removeItem(s){oe.update(e=>{const t=e.slice();return t.splice(t.findIndex(r=>r.id===s),1),t})}},as=H(!1),pr=H(!1),cs=H(!1),nt=H({}),hs=$([nt],([s])=>[s==null?void 0:s.protocol,s==null?void 0:s.origin].join("")),us=$([nt],([s])=>s.port),Ve=s=>Object.values(s).length>0,ot=$([as,hs,us],([s,e,t])=>{const r=`${typeof window<"u"?window.location.protocol:"http:"}//${e}:${t}`;return{full:r,naked:[e,t].join(":"),get(i){return`${r}${i}`},endpoint:s||!e?"":`${e}:${t}`,server(i){return`${this.endpoint}${i}`}}}),yr=$([ot],([s])=>{const e=async(t,r={},i={})=>{try{const n=new URL([s.endpoint.startsWith("http")?"":window.location.origin,s.endpoint,"/api",t].join(""));i.method==="POST"&&Ve(r)?i.body=JSON.stringify(r):Ve(r)&&(n.search=new URLSearchParams(r).toString());const o=await fetch(n,i),a=await o.json();if(o.status!==200)throw new Error(a);return a}catch(n){throw it.addItem({message:"Api Error",type:"error"}),n}};return{health(){return e("/health")},reauthenticate(){return e("/reauthenticate")},info(){return e("/info")},search(t){return e("/search",{q:t})},artist(t){return e(`/artist/${t}`)},album(t){return e(`/album/${t}`)},addTrack(t,r){return e("/add",{uri:t,name:r})},play(){return e("/play")},pause(){return e("/pause")},skipForward(){return e("/skipForward")},skipBackward(){return e("/skipBackward")}}}),N=Object.create(null);N.open="0";N.close="1";N.ping="2";N.pong="3";N.message="4";N.upgrade="5";N.noop="6";const j=Object.create(null);Object.keys(N).forEach(s=>{j[N[s]]=s});const fe={type:"error",data:"parser error"},at=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ct=typeof ArrayBuffer=="function",ht=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,ve=({type:s,data:e},t,r)=>at&&e instanceof Blob?t?r(e):Fe(e,r):ct&&(e instanceof ArrayBuffer||ht(e))?t?r(e):Fe(new Blob([e]),r):r(N[s]+(e||"")),Fe=(s,e)=>{const t=new FileReader;return t.onload=function(){const r=t.result.split(",")[1];e("b"+(r||""))},t.readAsDataURL(s)};function He(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let ae;function fs(s,e){if(at&&s.data instanceof Blob)return s.data.arrayBuffer().then(He).then(e);if(ct&&(s.data instanceof ArrayBuffer||ht(s.data)))return e(He(s.data));ve(s,!1,t=>{ae||(ae=new TextEncoder),e(ae.encode(t))})}const $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<$e.length;s++)V[$e.charCodeAt(s)]=s;const ls=s=>{let e=s.length*.75,t=s.length,r,i=0,n,o,a,c;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const f=new ArrayBuffer(e),l=new Uint8Array(f);for(r=0;r<t;r+=4)n=V[s.charCodeAt(r)],o=V[s.charCodeAt(r+1)],a=V[s.charCodeAt(r+2)],c=V[s.charCodeAt(r+3)],l[i++]=n<<2|o>>4,l[i++]=(o&15)<<4|a>>2,l[i++]=(a&3)<<6|c&63;return f},ds=typeof ArrayBuffer=="function",be=(s,e)=>{if(typeof s!="string")return{type:"message",data:ut(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:ps(s.substring(1),e)}:j[t]?s.length>1?{type:j[t],data:s.substring(1)}:{type:j[t]}:fe},ps=(s,e)=>{if(ds){const t=ls(s);return ut(t,e)}else return{base64:!0,data:s}},ut=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},ft="",ys=(s,e)=>{const t=s.length,r=new Array(t);let i=0;s.forEach((n,o)=>{ve(n,!1,a=>{r[o]=a,++i===t&&e(r.join(ft))})})},gs=(s,e)=>{const t=s.split(ft),r=[];for(let i=0;i<t.length;i++){const n=be(t[i],e);if(r.push(n),n.type==="error")break}return r};function _s(){return new TransformStream({transform(s,e){fs(s,t=>{const r=t.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const n=new DataView(i.buffer);n.setUint8(0,126),n.setUint16(1,r)}else{i=new Uint8Array(9);const n=new DataView(i.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let ce;function Y(s){return s.reduce((e,t)=>e+t.length,0)}function W(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)t[i]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),t}function ms(s,e){ce||(ce=new TextDecoder);const t=[];let r=0,i=-1,n=!1;return new TransformStream({transform(o,a){for(t.push(o);;){if(r===0){if(Y(t)<1)break;const c=W(t,1);n=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Y(t)<2)break;const c=W(t,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Y(t)<8)break;const c=W(t,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(fe);break}i=l*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Y(t)<i)break;const c=W(t,i);a.enqueue(be(n?c:ce.decode(c),e)),r=0}if(i===0||i>s){a.enqueue(fe);break}}}})}const lt=4;function E(s){if(s)return vs(s)}function vs(s){for(var e in E.prototype)s[e]=E.prototype[e];return s}E.prototype.on=E.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};E.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};E.prototype.off=E.prototype.removeListener=E.prototype.removeAllListeners=E.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,i=0;i<t.length;i++)if(r=t[i],r===e||r.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+s],this};E.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(t){t=t.slice(0);for(var r=0,i=t.length;r<i;++r)t[r].apply(this,e)}return this};E.prototype.emitReserved=E.prototype.emit;E.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};E.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Q=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),bs="arraybuffer";function dt(s,...e){return e.reduce((t,r)=>(s.hasOwnProperty(r)&&(t[r]=s[r]),t),{})}const ws=O.setTimeout,Es=O.clearTimeout;function G(s,e){e.useNativeTimers?(s.setTimeoutFn=ws.bind(O),s.clearTimeoutFn=Es.bind(O)):(s.setTimeoutFn=O.setTimeout.bind(O),s.clearTimeoutFn=O.clearTimeout.bind(O))}const As=1.33;function ks(s){return typeof s=="string"?Ts(s):Math.ceil((s.byteLength||s.size)*As)}function Ts(s){let e=0,t=0;for(let r=0,i=s.length;r<i;r++)e=s.charCodeAt(r),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(r++,t+=4);return t}function pt(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Os(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function Rs(s){let e={},t=s.split("&");for(let r=0,i=t.length;r<i;r++){let n=t[r].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}class Ss extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class we extends E{constructor(e){super(),this.writable=!1,G(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new Ss(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=be(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Os(e);return t.length?"?"+t:""}}class Cs extends we{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};gs(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,ys(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=pt()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let yt=!1;try{yt=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ns=yt;function Bs(){}class Ls extends Cs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(i,n)=>{this.onError("xhr post error",i,n)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}}class C extends E{constructor(e,t,r){super(),this.createRequest=e,G(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;const t=dt(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=C.requestsCount++,C.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Bs,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete C.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}C.requestsCount=0;C.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ke);else if(typeof addEventListener=="function"){const s="onpagehide"in O?"pagehide":"unload";addEventListener(s,Ke,!1)}}function Ke(){for(let s in C.requests)C.requests.hasOwnProperty(s)&&C.requests[s].abort()}const Ps=function(){const s=gt({xdomain:!1});return s&&s.responseType!==null}();class xs extends Ls{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Ps&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new C(gt,this.uri(),e)}}function gt(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ns))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const _t=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qs extends we{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,r=_t?{}:dt(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;ve(r,this.supportsBinary,n=>{try{this.doWrite(r,n)}catch{}i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pt()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const he=O.WebSocket||O.MozWebSocket;class Is extends qs{createSocket(e,t,r){return _t?new he(e,t,r):t?new he(e,t):new he(e)}doWrite(e,t){this.ws.send(t)}}class Ds extends we{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ms(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=_s();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const n=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),n())}).catch(a=>{})};n();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const r=e[t],i=t===e.length-1;this._writer.write(r).then(()=>{i&&Q(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ms={websocket:Is,webtransport:Ds,polling:xs},Us=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function le(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),r=s.indexOf("]");t!=-1&&r!=-1&&(s=s.substring(0,t)+s.substring(t,r).replace(/:/g,";")+s.substring(r,s.length));let i=Us.exec(s||""),n={},o=14;for(;o--;)n[Vs[o]]=i[o]||"";return t!=-1&&r!=-1&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=Fs(n,n.path),n.queryKey=Hs(n,n.query),n}function Fs(s,e){const t=/\/{2,9}/g,r=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Hs(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,n){i&&(t[i]=n)}),t}const de=typeof addEventListener=="function"&&typeof removeEventListener=="function",z=[];de&&addEventListener("offline",()=>{z.forEach(s=>s())},!1);class P extends E{constructor(e,t){if(super(),this.binaryType=bs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const r=le(e);t.hostname=r.host,t.secure=r.protocol==="https"||r.protocol==="wss",t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=le(t.host).host);G(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rs(this.opts.query)),de&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},z.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=lt,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&P.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",P.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(t+=ks(i)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Q(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,i){if(typeof t=="function"&&(i=t,t=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(P.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),de&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=z.indexOf(this._offlineEventListener);r!==-1&&z.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}P.protocol=lt;class $s extends P{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;P.priorWebsocketSuccess=!1;const i=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",_=>{if(!r)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;P.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function n(){r||(r=!0,l(),t.close(),t=null)}const o=_=>{const u=new Error("probe error: "+_);u.transport=t.name,n(),this.emitReserved("upgradeError",u)};function a(){o("transport closed")}function c(){o("socket closed")}function f(_){t&&_.name!==t.name&&n()}const l=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};t.once("open",i),t.once("error",o),t.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}let Ks=class extends $s{constructor(e,t={}){const r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ms[i]).filter(i=>!!i)),super(e,r)}};function Ys(s,e="",t){let r=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),r=le(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const n=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+n+":"+r.port+e,r.href=r.protocol+"://"+n+(t&&t.port===r.port?"":":"+r.port),r}const Ws=typeof ArrayBuffer=="function",js=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,mt=Object.prototype.toString,zs=typeof Blob=="function"||typeof Blob<"u"&&mt.call(Blob)==="[object BlobConstructor]",Js=typeof File=="function"||typeof File<"u"&&mt.call(File)==="[object FileConstructor]";function Ee(s){return Ws&&(s instanceof ArrayBuffer||js(s))||zs&&s instanceof Blob||Js&&s instanceof File}function J(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,r=s.length;t<r;t++)if(J(s[t]))return!0;return!1}if(Ee(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return J(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&J(s[t]))return!0;return!1}function Xs(s){const e=[],t=s.data,r=s;return r.data=pe(t,e),r.attachments=e.length,{packet:r,buffers:e}}function pe(s,e){if(!s)return s;if(Ee(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let r=0;r<s.length;r++)t[r]=pe(s[r],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=pe(s[r],e));return t}return s}function Qs(s,e){return s.data=ye(s.data,e),delete s.attachments,s}function ye(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ye(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ye(s[t],e));return s}const Gs=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Zs=5;var y;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(y||(y={}));class er{constructor(e){this.replacer=e}encode(e){return(e.type===y.EVENT||e.type===y.ACK)&&J(e)?this.encodeAsBinary({type:e.type===y.EVENT?y.BINARY_EVENT:y.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===y.BINARY_EVENT||e.type===y.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Xs(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function Ye(s){return Object.prototype.toString.call(s)==="[object Object]"}class Ae extends E{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const r=t.type===y.BINARY_EVENT;r||t.type===y.BINARY_ACK?(t.type=r?y.EVENT:y.ACK,this.reconstructor=new tr(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Ee(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const r={type:Number(e.charAt(0))};if(y[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===y.BINARY_EVENT||r.type===y.BINARY_ACK){const n=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(n,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(e.charAt(t+1)==="/"){const n=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););r.nsp=e.substring(n,t)}else r.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const n=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){const n=this.tryParse(e.substr(t));if(Ae.isPayloadValid(r.type,n))r.data=n;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case y.CONNECT:return Ye(t);case y.DISCONNECT:return t===void 0;case y.CONNECT_ERROR:return typeof t=="string"||Ye(t);case y.EVENT:case y.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Gs.indexOf(t[0])===-1);case y.ACK:case y.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class tr{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Qs(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const sr=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ae,Encoder:er,get PacketType(){return y},protocol:Zs},Symbol.toStringTag,{value:"Module"}));function R(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const rr=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class vt extends E{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[R(e,"open",this.onopen.bind(this)),R(e,"packet",this.onpacket.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,i,n;if(rr.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:y.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const l=this.ids++,_=t.pop();this._registerAckCallback(l,_),o.id=l}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((n=this.io.engine)===null||n===void 0)&&n._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);t.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(n),t.apply(this,a)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{const n=(o,a)=>o?i(o):r(a);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...n)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){const r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case y.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case y.EVENT:case y.BINARY_EVENT:this.onevent(e);break;case y.ACK:case y.BINARY_ACK:this.onack(e);break;case y.DISCONNECT:this.ondisconnect();break;case y.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...i){r||(r=!0,t.packet({type:y.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const r of t)r.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class ge extends E{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,G(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||sr;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ks(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=R(t,"open",function(){r.onopen(),e&&e()}),n=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=R(t,"error",n);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),t.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(R(e,"ping",this.onping.bind(this)),R(e,"data",this.ondata.bind(this)),R(e,"error",this.onerror.bind(this)),R(e,"close",this.onclose.bind(this)),R(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Q(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new vt(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t)if(this.nsps[r].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const U={};function X(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Ys(s,e.path||"/socket.io"),r=t.source,i=t.id,n=t.path,o=U[i]&&n in U[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ge(r,e):(U[i]||(U[i]=new ge(r,e)),c=U[i]),t.query&&!e.query&&(e.query=t.queryKey),c.socket(t.path,e)}Object.assign(X,{Manager:ge,Socket:vt,io:X,connect:X});const ue={current:null},_r=$([ot,cs],([s,e])=>{if(!e)return null;const t=X(s.endpoint);return ue.current&&ue.current.disconnect(),ue.current=t,t});var mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vr(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function ir(s){if(s.__esModule)return s;var e=s.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(s).forEach(function(r){var i=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return s[r]}})}),t}const nr={},or=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),br=ir(or);var ar=zt('<div><div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div></div>');function wr(s,e){const t=Xt(e,"floating",3,!1);var r=ar();let i;Ht(n=>i=Ze(r,1,"loading svelte-1aqhn4j",null,i,n),[()=>({floating:t()})]),Jt(s,r)}export{wr as L,ot as a,re as b,nt as c,dr as d,De as e,yr as f,vr as g,lr as h,fr as i,cs as j,pr as k,as as l,_r as m,mr as n,br as r,Ze as s,it as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{e as Z,b as q,r as rt,p as nt,G as it,P as X,E as at,ah as st,ai as ot,aj as ft,ak as ut,ae as ht,q as vt,n as H,al as lt,am as z,an as Y,ao as gt,u as dt}from"./CDVeMiAl.js";import{d as ct,w as pt}from"./qSIFE6bv.js";import{b as mt,r as Et,g as wt}from"./D5aAvvqP.js";function Rt(f,o,l){Z(()=>{var h=q(()=>o(f,l==null?void 0:l())||{});if(l&&(h!=null&&h.update)){var d=!1,E={};rt(()=>{var u=l();nt(u),d&&it(E,u)&&(E=u,h.update(u))}),d=!0}if(h!=null&&h.destroy)return()=>h.destroy()})}const Tt=()=>performance.now(),k={tick:f=>requestAnimationFrame(f),now:()=>Tt(),tasks:new Set};function j(){const f=k.now();k.tasks.forEach(o=>{o.c(f)||(k.tasks.delete(o),o.f())}),k.tasks.size!==0&&k.tick(j)}function _t(f){let o;return k.tasks.size===0&&k.tick(j),{promise:new Promise(l=>{k.tasks.add(o={c:f,f:l})}),abort(){k.tasks.delete(o)}}}function G(f,o){pt(()=>{f.dispatchEvent(new CustomEvent(o))})}function Lt(f){if(f==="float")return"cssFloat";if(f==="offset")return"cssOffset";if(f.startsWith("--"))return f;const o=f.split("-");return o.length===1?o[0]:o[0]+o.slice(1).map(l=>l[0].toUpperCase()+l.slice(1)).join("")}function J(f){const o={},l=f.split(";");for(const h of l){const[d,E]=h.split(":");if(!d||E===void 0)break;const u=Lt(d.trim());o[u]=E.trim()}return o}const Dt=f=>f;function kt(f,o,l){var h=mt,d,E,u,p=null;h.a??(h.a={element:f,measure(){d=this.element.getBoundingClientRect()},apply(){if(u==null||u.abort(),E=this.element.getBoundingClientRect(),d.left!==E.left||d.right!==E.right||d.top!==E.top||d.bottom!==E.bottom){const m=o()(this.element,{from:d,to:E},l==null?void 0:l());u=U(this.element,m,void 0,1,()=>{u==null||u.abort(),u=void 0})}},fix(){if(!f.getAnimations().length){var{position:m,width:B,height:T}=getComputedStyle(f);if(m!=="absolute"&&m!=="fixed"){var D=f.style;p={position:D.position,width:D.width,height:D.height,transform:D.transform},D.position="absolute",D.width=B,D.height=T;var _=f.getBoundingClientRect();if(d.left!==_.left||d.top!==_.top){var L=`translate(${d.left-_.left}px, ${d.top-_.top}px)`;D.transform=D.transform?`${D.transform} ${L}`:L}}}},unfix(){if(p){var m=f.style;m.position=p.position,m.width=p.width,m.height=p.height,m.transform=p.transform}}}),h.a.element=f}function It(f,o,l,h){var d=(f&ut)!==0,E=(f<)!==0,u=d&&E,p=(f&ft)!==0,m=u?"both":d?"in":"out",B,T=o.inert,D=o.style.overflow,_,L;function e(){var a=gt,v=X;z(null),Y(null);try{return B??(B=l()(o,(h==null?void 0:h())??{},{direction:m}))}finally{z(a),Y(v)}}var t={is_global:p,in(){var a;if(o.inert=T,!d){L==null||L.abort(),(a=L==null?void 0:L.reset)==null||a.call(L);return}E||_==null||_.abort(),G(o,"introstart"),_=U(o,e(),L,1,()=>{G(o,"introend"),_==null||_.abort(),_=B=void 0,o.style.overflow=D})},out(a){if(!E){a==null||a(),B=void 0;return}o.inert=!0,G(o,"outrostart"),L=U(o,e(),_,0,()=>{G(o,"outroend"),a==null||a()})},stop:()=>{_==null||_.abort(),L==null||L.abort()}},i=X;if((i.transitions??(i.transitions=[])).push(t),d&&ct){var r=p;if(!r){for(var n=i.parent;n&&(n.f&at)!==0;)for(;(n=n.parent)&&(n.f&st)===0;);r=!n||(n.f&ot)!==0}r&&Z(()=>{q(()=>t.in())})}}function U(f,o,l,h,d){var E=h===1;if(ht(o)){var u,p=!1;return vt(()=>{if(!p){var i=o({direction:E?"in":"out"});u=U(f,i,l,h,d)}}),{abort:()=>{p=!0,u==null||u.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(l==null||l.deactivate(),!(o!=null&&o.duration))return d(),{abort:H,deactivate:H,reset:H,t:()=>h};const{delay:m=0,css:B,tick:T,easing:D=Dt}=o;var _=[];if(E&&l===void 0&&(T&&T(0,1),B)){var L=J(B(0,1));_.push(L,L)}var e=()=>1-h,t=f.animate(_,{duration:m});return t.onfinish=()=>{var i=(l==null?void 0:l.t())??1-h;l==null||l.abort();var r=h-i,n=o.duration*Math.abs(r),a=[];if(n>0){var v=!1;if(B)for(var s=Math.ceil(n/16.666666666666668),g=0;g<=s;g+=1){var w=i+r*D(g/s),c=J(B(w,1-w));a.push(c),v||(v=c.overflow==="hidden")}v&&(f.style.overflow="hidden"),e=()=>{var A=t.currentTime;return i+r*D(A/n)},T&&_t(()=>{if(t.playState!=="running")return!1;var A=e();return T(A,1-A),!0})}t=f.animate(a,{duration:n,fill:"forwards"}),t.onfinish=()=>{e=()=>h,T==null||T(h,1-h),d()}},{abort:()=>{t&&(t.cancel(),t.effect=null,t.onfinish=H)},deactivate:()=>{d=H},reset:()=>{h===0&&(T==null||T(1,0))},t:()=>e()}}var $={exports:{}},V;function Bt(){return V||(V=1,function(f){function o(e){this.mode=h.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,i=this.data.length;t<i;t++){var r=[],n=this.data.charCodeAt(t);n>65536?(r[0]=240|(n&1835008)>>>18,r[1]=128|(n&258048)>>>12,r[2]=128|(n&4032)>>>6,r[3]=128|n&63):n>2048?(r[0]=224|(n&61440)>>>12,r[1]=128|(n&4032)>>>6,r[2]=128|n&63):n>128?(r[0]=192|(n&1984)>>>6,r[1]=128|n&63):r[0]=n,this.parsedData.push(r)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}o.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,i=this.parsedData.length;t<i;t++)e.put(this.parsedData[t],8)}};function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}l.prototype={addData:function(e){var t=new o(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var i=-1;i<=7;i++)if(!(e+i<=-1||this.moduleCount<=e+i))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=i&&i<=6&&(r==0||r==6)||0<=r&&r<=6&&(i==0||i==6)||2<=i&&i<=4&&2<=r&&r<=4?this.modules[e+i][t+r]=!0:this.modules[e+i][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;i<8;i++){this.makeImpl(!0,i);var r=u.getLostPoint(this);(i==0||e>r)&&(e=r,t=i)}return t},createMovieClip:function(e,t,i){var r=e.createEmptyMovieClip(t,i),n=1;this.make();for(var a=0;a<this.modules.length;a++)for(var v=a*n,s=0;s<this.modules[a].length;s++){var g=s*n,w=this.modules[a][s];w&&(r.beginFill(0,100),r.moveTo(g,v),r.lineTo(g+n,v),r.lineTo(g+n,v+n),r.lineTo(g,v+n),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=u.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var r=e[t],n=e[i];if(this.modules[r][n]==null)for(var a=-2;a<=2;a++)for(var v=-2;v<=2;v++)a==-2||a==2||v==-2||v==2||a==0&&v==0?this.modules[r+a][n+v]=!0:this.modules[r+a][n+v]=!1}},setupTypeNumber:function(e){for(var t=u.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=r}for(var i=0;i<18;i++){var r=!e&&(t>>i&1)==1;this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=r}},setupTypeInfo:function(e,t){for(var i=this.errorCorrectLevel<<3|t,r=u.getBCHTypeInfo(i),n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(var n=0;n<15;n++){var a=!e&&(r>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,r=this.moduleCount-1,n=7,a=0,v=this.moduleCount-1;v>0;v-=2)for(v==6&&v--;;){for(var s=0;s<2;s++)if(this.modules[r][v-s]==null){var g=!1;a<e.length&&(g=(e[a]>>>n&1)==1);var w=u.getMask(t,r,v-s);w&&(g=!g),this.modules[r][v-s]=g,n--,n==-1&&(a++,n=7)}if(r+=i,r<0||this.moduleCount<=r){r-=i,i=-i;break}}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,i){for(var r=T.getRSBlocks(e,t),n=new D,a=0;a<i.length;a++){var v=i[a];n.put(v.mode,4),n.put(v.getLength(),u.getLengthInBits(v.mode,e)),v.write(n)}for(var s=0,a=0;a<r.length;a++)s+=r[a].dataCount;if(n.getLengthInBits()>s*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+s*8+")");for(n.getLengthInBits()+4<=s*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=s*8||(n.put(l.PAD0,8),n.getLengthInBits()>=s*8));)n.put(l.PAD1,8);return l.createBytes(n,r)},l.createBytes=function(e,t){for(var i=0,r=0,n=0,a=new Array(t.length),v=new Array(t.length),s=0;s<t.length;s++){var g=t[s].dataCount,w=t[s].totalCount-g;r=Math.max(r,g),n=Math.max(n,w),a[s]=new Array(g);for(var c=0;c<a[s].length;c++)a[s][c]=255&e.buffer[c+i];i+=g;var A=u.getErrorCorrectPolynomial(w),M=new B(a[s],A.getLength()-1),R=M.mod(A);v[s]=new Array(A.getLength()-1);for(var c=0;c<v[s].length;c++){var y=c+R.getLength()-v[s].length;v[s][c]=y>=0?R.get(y):0}}for(var C=0,c=0;c<t.length;c++)C+=t[c].totalCount;for(var I=new Array(C),N=0,c=0;c<r;c++)for(var s=0;s<t.length;s++)c<a[s].length&&(I[N++]=a[s][c]);for(var c=0;c<n;c++)for(var s=0;s<t.length;s++)c<v[s].length&&(I[N++]=v[s][c]);return I};for(var h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},E={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},u={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;u.getBCHDigit(t)-u.getBCHDigit(u.G15)>=0;)t^=u.G15<<u.getBCHDigit(t)-u.getBCHDigit(u.G15);return(e<<10|t)^u.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;u.getBCHDigit(t)-u.getBCHDigit(u.G18)>=0;)t^=u.G18<<u.getBCHDigit(t)-u.getBCHDigit(u.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return u.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case E.PATTERN000:return(t+i)%2==0;case E.PATTERN001:return t%2==0;case E.PATTERN010:return i%3==0;case E.PATTERN011:return(t+i)%3==0;case E.PATTERN100:return(Math.floor(t/2)+Math.floor(i/3))%2==0;case E.PATTERN101:return t*i%2+t*i%3==0;case E.PATTERN110:return(t*i%2+t*i%3)%2==0;case E.PATTERN111:return(t*i%3+(t+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new B([1],0),i=0;i<e;i++)t=t.multiply(new B([1,p.gexp(i)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:return 8;case h.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,r=0;r<t;r++)for(var n=0;n<t;n++){for(var a=0,v=e.isDark(r,n),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var g=-1;g<=1;g++)n+g<0||t<=n+g||s==0&&g==0||v==e.isDark(r+s,n+g)&&a++;a>5&&(i+=3+a-5)}for(var r=0;r<t-1;r++)for(var n=0;n<t-1;n++){var w=0;e.isDark(r,n)&&w++,e.isDark(r+1,n)&&w++,e.isDark(r,n+1)&&w++,e.isDark(r+1,n+1)&&w++,(w==0||w==4)&&(i+=3)}for(var r=0;r<t;r++)for(var n=0;n<t-6;n++)e.isDark(r,n)&&!e.isDark(r,n+1)&&e.isDark(r,n+2)&&e.isDark(r,n+3)&&e.isDark(r,n+4)&&!e.isDark(r,n+5)&&e.isDark(r,n+6)&&(i+=40);for(var n=0;n<t;n++)for(var r=0;r<t-6;r++)e.isDark(r,n)&&!e.isDark(r+1,n)&&e.isDark(r+2,n)&&e.isDark(r+3,n)&&e.isDark(r+4,n)&&!e.isDark(r+5,n)&&e.isDark(r+6,n)&&(i+=40);for(var c=0,n=0;n<t;n++)for(var r=0;r<t;r++)e.isDark(r,n)&&c++;var A=Math.abs(100*c/t/t-50)/5;return i+=A*10,i}},p={glog:function(e){if(e<1)throw new Error("glog("+e+")");return p.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return p.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},m=0;m<8;m++)p.EXP_TABLE[m]=1<<m;for(var m=8;m<256;m++)p.EXP_TABLE[m]=p.EXP_TABLE[m-4]^p.EXP_TABLE[m-5]^p.EXP_TABLE[m-6]^p.EXP_TABLE[m-8];for(var m=0;m<255;m++)p.LOG_TABLE[p.EXP_TABLE[m]]=m;function B(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var i=0;i<e.length&&e[i]==0;)i++;this.num=new Array(e.length-i+t);for(var r=0;r<e.length-i;r++)this.num[r]=e[r+i]}B.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var r=0;r<e.getLength();r++)t[i+r]^=p.gexp(p.glog(this.get(i))+p.glog(e.get(r)));return new B(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=p.glog(this.get(0))-p.glog(e.get(0)),i=new Array(this.getLength()),r=0;r<this.getLength();r++)i[r]=this.get(r);for(var r=0;r<e.getLength();r++)i[r]^=p.gexp(p.glog(e.get(r))+t);return new B(i,0).mod(e)}};function T(e,t){this.totalCount=e,this.dataCount=t}T.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],T.getRSBlocks=function(e,t){var i=T.getRsBlockTable(e,t);if(i==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=i.length/3,n=[],a=0;a<r;a++)for(var v=i[a*3+0],s=i[a*3+1],g=i[a*3+2],w=0;w<v;w++)n.push(new T(s,g));return n},T.getRsBlockTable=function(e,t){switch(t){case d.L:return T.RS_BLOCK_TABLE[(e-1)*4+0];case d.M:return T.RS_BLOCK_TABLE[(e-1)*4+1];case d.Q:return T.RS_BLOCK_TABLE[(e-1)*4+2];case d.H:return T.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function D(){this.buffer=[],this.length=0}D.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var i=0;i<t;i++)this.putBit((e>>>t-i-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var _=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function L(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},typeof e=="string"&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function i(g){switch(g){case"L":return d.L;case"M":return d.M;case"Q":return d.Q;case"H":return d.H;default:throw new Error("Unknwon error correction level: "+g)}}function r(g,w){for(var c=n(g),A=1,M=0,R=0,y=_.length;R<=y;R++){var C=_[R];if(!C)throw new Error("Content too long: expected "+M+" but got "+c);switch(w){case"L":M=C[0];break;case"M":M=C[1];break;case"Q":M=C[2];break;case"H":M=C[3];break;default:throw new Error("Unknwon error correction level: "+w)}if(c<=M)break;A++}if(A>_.length)throw new Error("Content too long");return A}function n(g){var w=encodeURI(g).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return w.length+(w.length!=g?3:0)}var a=this.options.content,v=r(a,this.options.ecl),s=i(this.options.ecl);this.qrcode=new l(v,s),this.qrcode.addData(a),this.qrcode.make()}L.prototype.svg=function(e){var t=this.options||{},i=this.qrcode.modules;typeof e>"u"&&(e={container:t.container||"svg"});for(var r=typeof t.pretty<"u"?!!t.pretty:!0,n=r?" ":"",a=r?`\r
|
|
2
|
-
`:"",v=t.width,s=t.height,g=i.length,w=v/(g+2*t.padding),c=s/(g+2*t.padding),A=typeof t.join<"u"?!!t.join:!1,M=typeof t.swap<"u"?!!t.swap:!1,R=typeof t.xmlDeclaration<"u"?!!t.xmlDeclaration:!0,y=typeof t.predefined<"u"?!!t.predefined:!1,C=y?n+'<defs><path id="qrmodule" d="M0 0 h'+c+" v"+w+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+a:"",I=n+'<rect x="0" y="0" width="'+v+'" height="'+s+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+a,N="",K="",S=0;S<g;S++)for(var Q=0;Q<g;Q++){var tt=i[Q][S];if(tt){var P=Q*w+t.padding*w,x=S*c+t.padding*c;if(M){var et=P;P=x,x=et}if(A){var O=w+P,F=c+x;P=Number.isInteger(P)?Number(P):P.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),O=Number.isInteger(O)?Number(O):O.toFixed(2),F=Number.isInteger(F)?Number(F):F.toFixed(2),K+="M"+P+","+x+" V"+F+" H"+O+" V"+x+" H"+P+" Z "}else y?N+=n+'<use x="'+P.toString()+'" y="'+x.toString()+'" href="#qrmodule" />'+a:N+=n+'<rect x="'+P.toString()+'" y="'+x.toString()+'" width="'+w+'" height="'+c+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+a}}A&&(N=n+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+K+'" />');var b="";switch(e.container){case"svg":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"svg-viewbox":R&&(b+='<?xml version="1.0" standalone="yes"?>'+a),b+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+v+" "+s+'">'+a,b+=C+I+N,b+="</svg>";break;case"g":b+='<g width="'+v+'" height="'+s+'">'+a,b+=C+I+N,b+="</g>";break;default:b+=(C+I+N).replace(/^\s+/,"");break}return b},L.prototype.save=function(e,t){var i=this.svg();typeof t!="function"&&(t=function(n,a){});try{var r=Et;r.writeFile(e,i,t)}catch(n){t(n)}},f.exports=L}($)),$.exports}var At=Bt();const Ct=wt(At),yt=(f,{url:o,...l})=>{dt(()=>{var h=new Ct({color:"currentColor",background:"transparent",padding:0,join:!0,container:"svg-viewbox",...l,content:o}).svg();return f.innerHTML=h,()=>{f.innerHTML=""}})},bt=f=>f;function Pt(f){const o=f-1;return o*o*o+1}function W(f){const o=typeof f=="string"&&f.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return o?[parseFloat(o[1]),o[2]||"px"]:[f,"px"]}function Ot(f,{delay:o=0,duration:l=400,easing:h=bt}={}){const d=+getComputedStyle(f).opacity;return{delay:o,duration:l,easing:h,css:E=>`opacity: ${E*d}`}}function Ft(f,{delay:o=0,duration:l=400,easing:h=Pt,x:d=0,y:E=0,opacity:u=0}={}){const p=getComputedStyle(f),m=+p.opacity,B=p.transform==="none"?"":p.transform,T=m*(1-u),[D,_]=W(d),[L,e]=W(E);return{delay:o,duration:l,easing:h,css:(t,i)=>`
|
|
3
|
-
transform: ${B} translate(${(1-t)*D}${_}, ${(1-t)*L}${e});
|
|
4
|
-
opacity: ${m-T*i}`}}export{Rt as a,Ft as b,kt as c,Ot as f,yt as q,It as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as S,r as h,b as k,q,S as T}from"./CDVeMiAl.js";function t(r,i){return r===i||(r==null?void 0:r[T])===i}function A(r={},i,a,c){return S(()=>{var f,s;return h(()=>{f=s,s=[],k(()=>{r!==a(...s)&&(i(r,...s),f&&t(a(...f),r)&&i(null,...f))})}),()=>{q(()=>{s&&t(a(...s),r)&&i(null,...s)})}}),r}export{A as b};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,E as i,f as o,n as p,g as c,h as d,i as h}from"./CDVeMiAl.js";function _(s,e,...t){var r=s,n=p,a;f(()=>{n!==(n=e())&&(a&&(c(a),a=null),a=o(()=>n(r,...t)))},i),d&&(r=h)}export{_ as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{am as L,an as S,ao as $,P as k,a0 as U,T as z,$ as G,q as Z,h as c,ap as T,d as J,aq as K,V as q,ar as D,Z as g,Y as A,i as u,as as E,at as Q,au as X,av as ee,C as B,aw as I,ax as R,ay as te,az as re,aA as ae,aB as ne,aC as oe,aD as ie,f as se,v as ue,c as le,y as de}from"./CDVeMiAl.js";function Ee(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const fe=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function be(e){return fe.includes(e)}const ce={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Te(e){return e=e.toLowerCase(),ce[e]??e}const _e=["touchstart","touchmove"];function ve(e){return _e.includes(e)}function pe(e){var t=$,r=k;L(null),S(null);try{return e()}finally{L(t),S(r)}}const F=new Set,M=new Set;function Ae(e){if(!c)return;e.onload&&e.removeAttribute("onload"),e.onerror&&e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function he(e,t,r,o={}){function n(a){if(o.capture||b.call(t,a),!a.cancelBubble)return pe(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Z(()=>{t.addEventListener(e,n,o)}):t.addEventListener(e,n,o),n}function ke(e,t,r,o,n){var a={capture:o,passive:n},i=he(e,t,r,a);(t===document.body||t===window||t===document)&&G(()=>{t.removeEventListener(e,i,a)})}function Ne(e){for(var t=0;t<e.length;t++)F.add(e[t]);for(var r of M)r(e)}function b(e){var P;var t=this,r=t.ownerDocument,o=e.type,n=((P=e.composedPath)==null?void 0:P.call(e))||[],a=n[0]||e.target,i=0,_=e.__root;if(_){var d=n.indexOf(_);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var m=n.indexOf(t);if(m===-1)return;d<=m&&(i=d)}if(a=n[i]||e.target,a!==t){U(e,"currentTarget",{configurable:!0,get(){return a||r}});var C=$,v=k;L(null),S(null);try{for(var s,l=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+o];if(y!==void 0&&(!a.disabled||e.target===a))if(z(y)){var[Y,...x]=y;Y.apply(a,[e,...x])}else y.call(a,e)}catch(N){s?l.push(N):s=N}if(e.cancelBubble||h===t||h===null)break;a=h}if(s){for(let N of l)queueMicrotask(()=>{throw N});throw s}}finally{e.__root=t,delete e.currentTarget,L(C),S(v)}}}let f;function ye(){f=void 0}function Le(e){let t=null,r=c;var o;if(c){for(t=u,f===void 0&&(f=E(document.head));f!==null&&(f.nodeType!==8||f.data!==q);)f=D(f);f===null?g(!1):f=A(D(f))}c||(o=document.head.appendChild(T()));try{J(()=>e(o),K)}finally{r&&(g(!0),f=u,A(t))}}function H(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function p(e,t){var r=k;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Se(e,t){var r=(t&X)!==0,o=(t&ee)!==0,n,a=!e.startsWith("<!>");return()=>{if(c)return p(u,null),u;n===void 0&&(n=H(a?e:"<!>"+e),r||(n=E(n)));var i=o||Q?document.importNode(n,!0):n.cloneNode(!0);if(r){var _=E(i),d=i.lastChild;p(_,d)}else p(i,i);return i}}function Ce(e,t,r="svg"){var o=!e.startsWith("<!>"),n=`<${r}>${o?e:"<!>"+e}</${r}>`,a;return()=>{if(c)return p(u,null),u;if(!a){var i=H(n),_=E(i);a=E(_)}var d=a.cloneNode(!0);return p(d,d),d}}function Re(e=""){if(!c){var t=T(e+"");return p(t,t),t}var r=u;return r.nodeType!==3&&(r.before(r=T()),A(r)),p(r,r),r}function De(){if(c)return p(u,null),u;var e=document.createDocumentFragment(),t=document.createComment(""),r=T();return e.append(t,r),p(t,r),e}function Ie(e,t){if(c){k.nodes_end=u,B();return}e!==null&&e.before(t)}let V=!0;function Me(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function me(e,t){return j(e,t)}function Oe(e,t){I(),t.intro=t.intro??!1;const r=t.target,o=c,n=u;try{for(var a=E(r);a&&(a.nodeType!==8||a.data!==q);)a=D(a);if(!a)throw R;g(!0),A(a),B();const i=j(e,{...t,anchor:a});if(u===null||u.nodeType!==8||u.data!==te)throw re(),R;return g(!1),i}catch(i){if(i===R)return t.recover===!1&&ae(),I(),ne(r),g(!1),me(e,t);throw i}finally{g(o),A(n),ye()}}const w=new Map;function j(e,{target:t,anchor:r,props:o={},events:n,context:a,intro:i=!0}){I();var _=new Set,d=v=>{for(var s=0;s<v.length;s++){var l=v[s];if(!_.has(l)){_.add(l);var h=ve(l);t.addEventListener(l,b,{passive:h});var y=w.get(l);y===void 0?(document.addEventListener(l,b,{passive:h}),w.set(l,1)):w.set(l,y+1)}}};d(oe(F)),M.add(d);var m=void 0,C=ie(()=>{var v=r??t.appendChild(T());return se(()=>{if(a){ue({});var s=le;s.c=a}n&&(o.$$events=n),c&&p(v,null),V=i,m=e(v,o)||{},V=!0,c&&(k.nodes_end=u),a&&de()}),()=>{var h;for(var s of _){t.removeEventListener(s,b);var l=w.get(s);--l===0?(document.removeEventListener(s,b),w.delete(s)):w.set(s,l)}M.delete(d),v!==r&&((h=v.parentNode)==null||h.removeChild(v))}});return O.set(m,C),m}let O=new WeakMap;function Pe(e,t){const r=O.get(e);return r?(O.delete(e),r(t)):Promise.resolve()}const we="5";var W;typeof window<"u"&&((W=window.__svelte??(window.__svelte={})).v??(W.v=new Set)).add(we);export{Ie as a,Re as b,De as c,V as d,Ne as e,ke as f,p as g,Oe as h,H as i,Le as j,Ee as k,he as l,me as m,Ce as n,Te as o,be as p,Ae as r,Me as s,Se as t,Pe as u,pe as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,u as a,c as t,a as c,b as u}from"./CDVeMiAl.js";function f(e){t===null&&o(),c&&t.l!==null?l(t).m.push(e):a(()=>{const n=u(e);if(typeof n=="function")return n})}function l(e){var n=e.l;return n.u??(n.u={a:[],b:[],m:[]})}export{f as o};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BXpO8PDa.js","../chunks/qSIFE6bv.js","../chunks/CDVeMiAl.js","../chunks/CvUX3i4L.js","../chunks/EvVuwjft.js","../chunks/D5aAvvqP.js","../assets/LoadingIndicator.D0m6rSKQ.css","../chunks/C7I4vMbc.js","../chunks/DiaFwogD.js","../assets/0.Dl9__I4E.css","../nodes/1.ByCIm58b.js","../chunks/BFU9wwXC.js","../chunks/ynvIH2CR.js","../nodes/2.DxFkPkVM.js","../chunks/DnG2xkSB.js","../chunks/BQ2eCqC3.js","../assets/PlayingTracker.BPTtFzSw.css","../assets/2.BtzFOBtk.css","../nodes/3.DHrglKgJ.js","../assets/3.VTEzhx9-.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var z=r=>{throw TypeError(r)};var G=(r,e,s)=>e.has(r)||z("Cannot "+s);var l=(r,e,s)=>(G(r,e,"read from private field"),s?s.call(r):e.get(r)),L=(r,e,s)=>e.has(r)?z("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,s),T=(r,e,s,a)=>(G(r,e,"write to private field"),a?a.call(r,s):e.set(r,s),s);import{h as H,C as Q,d as X,E as Z,f as M,H as $,i as ee,I as S,aa as te,o as v,af as re,a0 as se,a1 as ne,v as ae,j as oe,u as ie,J as j,ag as ce,w as A,B as le,y as ue,z as fe,A as de,s as I,x as me}from"../chunks/CDVeMiAl.js";import{h as he,m as _e,u as ve,t as N,a as R,c as B,b as ge,s as ye}from"../chunks/qSIFE6bv.js";import{b as D,p as be,i as V}from"../chunks/CvUX3i4L.js";import{b as p}from"../chunks/DnG2xkSB.js";import{o as Ee}from"../chunks/ynvIH2CR.js";function q(r,e,s){H&&Q();var a=r,o,c;X(()=>{o!==(o=e())&&(c&&($(c),c=null),o&&(c=M(()=>s(a,o))))},Z),H&&(a=ee)}function Pe(r){return class extends Re{constructor(e){super({component:r,...e})}}}var g,f;class Re{constructor(e){L(this,g);L(this,f);var c;var s=new Map,a=(n,t)=>{var d=ne(t);return s.set(n,d),d};const o=new Proxy({...e.props||{},$$events:{}},{get(n,t){return v(s.get(t)??a(t,Reflect.get(n,t)))},has(n,t){return t===te?!0:(v(s.get(t)??a(t,Reflect.get(n,t))),Reflect.has(n,t))},set(n,t,d){return S(s.get(t)??a(t,d),d),Reflect.set(n,t,d)}});T(this,f,(e.hydrate?he:_e)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((c=e==null?void 0:e.props)!=null&&c.$$host)||e.sync===!1)&&re(),T(this,g,o.$$events);for(const n of Object.keys(l(this,f)))n==="$set"||n==="$destroy"||n==="$on"||se(this,n,{get(){return l(this,f)[n]},set(t){l(this,f)[n]=t},enumerable:!0});l(this,f).$set=n=>{Object.assign(o,n)},l(this,f).$destroy=()=>{ve(l(this,f))}}$set(e){l(this,f).$set(e)}$on(e,s){l(this,g)[e]=l(this,g)[e]||[];const a=(...o)=>s.call(this,...o);return l(this,g)[e].push(a),()=>{l(this,g)[e]=l(this,g)[e].filter(o=>o!==a)}}$destroy(){l(this,f).$destroy()}}g=new WeakMap,f=new WeakMap;const we="modulepreload",xe=function(r,e){return new URL(r,e).href},J={},O=function(e,s,a){let o=Promise.resolve();if(s&&s.length>0){const n=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),d=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));o=Promise.allSettled(s.map(u=>{if(u=xe(u,a),u in J)return;J[u]=!0;const y=u.endsWith(".css"),C=y?'[rel="stylesheet"]':"";if(!!a)for(let b=n.length-1;b>=0;b--){const i=n[b];if(i.href===u&&(!y||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${C}`))return;const h=document.createElement("link");if(h.rel=y?"stylesheet":we,y||(h.as="script"),h.crossOrigin="",h.href=u,d&&h.setAttribute("nonce",d),document.head.appendChild(h),y)return new Promise((b,i)=>{h.addEventListener("load",b),h.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${u}`)))})}))}function c(n){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=n,window.dispatchEvent(t),!t.defaultPrevented)throw n}return o.then(n=>{for(const t of n||[])t.status==="rejected"&&c(t.reason);return e().catch(c)})},pe={};var ke=N('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Ae=N("<!> <!>",1);function Oe(r,e){ae(e,!0);let s=D(e,"components",23,()=>[]),a=D(e,"data_0",3,null),o=D(e,"data_1",3,null);oe(()=>e.stores.page.set(e.page)),ie(()=>{e.stores,e.page,e.constructors,s(),e.form,a(),o(),e.stores.page.notify()});let c=j(!1),n=j(!1),t=j(null);Ee(()=>{const i=e.stores.page.subscribe(()=>{v(c)&&(S(n,!0),ce().then(()=>{S(t,be(document.title||"untitled page"))}))});return S(c,!0),i});const d=I(()=>e.constructors[1]);var u=Ae(),y=A(u);{var C=i=>{var _=B();const w=I(()=>e.constructors[0]);var x=A(_);q(x,()=>v(w),(E,P)=>{p(P(E,{get data(){return a()},get form(){return e.form},children:(m,Le)=>{var U=B(),W=A(U);q(W,()=>v(d),(Y,K)=>{p(K(Y,{get data(){return o()},get form(){return e.form}}),k=>s()[1]=k,()=>{var k;return(k=s())==null?void 0:k[1]})}),R(m,U)},$$slots:{default:!0}}),m=>s()[0]=m,()=>{var m;return(m=s())==null?void 0:m[0]})}),R(i,_)},F=i=>{var _=B();const w=I(()=>e.constructors[0]);var x=A(_);q(x,()=>v(w),(E,P)=>{p(P(E,{get data(){return a()},get form(){return e.form}}),m=>s()[0]=m,()=>{var m;return(m=s())==null?void 0:m[0]})}),R(i,_)};V(y,i=>{e.constructors[1]?i(C):i(F,!1)})}var h=le(y,2);{var b=i=>{var _=ke(),w=fe(_);{var x=E=>{var P=ge();me(()=>ye(P,v(t))),R(E,P)};V(w,E=>{v(n)&&E(x)})}de(_),R(i,_)};V(h,i=>{v(c)&&i(b)})}R(r,u),ue()}const qe=Pe(Oe),Fe=[()=>O(()=>import("../nodes/0.BXpO8PDa.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url),()=>O(()=>import("../nodes/1.ByCIm58b.js"),__vite__mapDeps([10,1,2,7,11,12]),import.meta.url),()=>O(()=>import("../nodes/2.DxFkPkVM.js"),__vite__mapDeps([13,1,2,3,5,6,14,4,15,16,17]),import.meta.url),()=>O(()=>import("../nodes/3.DHrglKgJ.js"),__vite__mapDeps([18,1,2,3,8,5,6,15,16,19]),import.meta.url)],Ue=[0],ze={"/":[2],"/player":[3]},Se={handleError:({error:r})=>{console.error(r)},reroute:()=>{},transport:{}},Ce=Object.fromEntries(Object.entries(Se.transport).map(([r,e])=>[r,e.decode])),Ge=!1,He=(r,e)=>Ce[r](e);export{He as decode,Ce as decoders,ze as dictionary,Ge as hash,Se as hooks,pe as matchers,Fe as nodes,qe as root,Ue as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/BFU9wwXC.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g as $,i as dt,t as B,s as T,a as x,n as Z,f as ct,c as vt,j as mt}from"../chunks/qSIFE6bv.js";import{d as ft,h as tt,C as et,f as ht,i as at,ar as ut,az as gt,ax as _t,Y as yt,as as wt,g as bt,v as H,z as _,B as b,aF as E,A as u,x as k,a6 as xt,y as P,aE as U,o as D,s as K,u as Y,J as G,I as J,w as F,aG as zt}from"../chunks/CDVeMiAl.js";import{a as j,s as Q,b as q,i as I,r as X,p as rt,c as At}from"../chunks/CvUX3i4L.js";import{s as Ct}from"../chunks/EvVuwjft.js";import{e as S,a as st,d as p,h as qt,t as N,c as St,l as kt,j as It,k as V,f as Lt,m as Zt,L as Mt}from"../chunks/D5aAvvqP.js";import{i as nt}from"../chunks/C7I4vMbc.js";import{a as Tt,q as Dt,t as it,b as Ht,f as Pt,c as Rt}from"../chunks/DiaFwogD.js";function jt(d,t,r,y,g){var c=d,n="",o;ft(()=>{if(n===(n=t()??"")){tt&&et();return}o!==void 0&&(bt(o),o=void 0),n!==""&&(o=ht(()=>{if(tt){at.data;for(var s=et(),f=s;s!==null&&(s.nodeType!==8||s.data!=="");)f=s,s=ut(s);if(s===null)throw gt(),_t;$(at,f),c=yt(s);return}var l=n+"",v=dt(l);$(wt(v),v.lastChild),c.before(v)}))})}var Et=B(`<div class="content svelte-30zq06"><div class="options svelte-30zq06"><div class="options-left"><h1>This instance is not authenticated</h1> <p class="svelte-30zq06"> <a>Authenticate</a> or scan qr to authenticate via device</p></div> <div class="options-right"><span class="qr svelte-30zq06"></span></div> <div class="options-bottom svelte-30zq06"><p class="size-small-1 color-2 svelte-30zq06">Make sure that <em class="svelte-30zq06"> </em> is added as a Redirect URI in your
|
|
2
|
-
spotify app dashboard</p></div></div></div>`);function Bt(d,t){H(t,!1);const[r,y]=Q(),g=()=>j(st,"$address",r);nt();var c=Et(),n=_(c),o=_(n),s=b(_(o),2),f=_(s),l=b(f);E(),u(s),u(o);var v=b(o,2),w=_(v);Tt(w,(h,a)=>{var e;return(e=Dt)==null?void 0:e(h,a)},()=>({url:g().server("/spotify/start")})),u(v);var A=b(v,2),z=_(A),C=b(_(z)),i=_(C,!0);u(C),E(),u(z),u(A),u(n),u(c),k((h,a,e)=>{T(f,`${h??""} `),S(l,"href",a),T(i,e)},[()=>g().server("/spotify/start"),()=>g().server("/spotify/start"),()=>g().server("/spotify/token")],xt),x(d,c),P(),y()}function Ot(d){const t=d-1;return t*t*t+1}function Wt(d,{from:t,to:r},y={}){var{delay:g=0,duration:c=L=>Math.sqrt(L)*120,easing:n=Ot}=y,o=getComputedStyle(d),s=o.transform==="none"?"":o.transform,[f,l]=o.transformOrigin.split(" ").map(parseFloat);f/=d.clientWidth,l/=d.clientHeight;var v=Ft(d),w=d.clientWidth/r.width/v,A=d.clientHeight/r.height/v,z=t.left+t.width*f,C=t.top+t.height*l,i=r.left+r.width*f,h=r.top+r.height*l,a=(z-i)*w,e=(C-h)*A,m=t.width/r.width,R=t.height/r.height;return{delay:g,duration:typeof c=="function"?c(Math.sqrt(a*a+e*e)):c,easing:n,css:(L,M)=>{var O=M*a,W=M*e,ot=L+M*m,lt=L+M*R;return`transform: ${s} translate(${O}px, ${W}px) scale(${ot}, ${lt});`}}}function Ft(d){if("currentCSSZoom"in d)return d.currentCSSZoom;for(var t=d,r=1;t!==null;)r*=+getComputedStyle(t).zoom,t=t.parentElement;return r}var Vt=Z("<title> </title>"),Yt=Z("<desc> </desc>"),Gt=Z('<svg><!><!><path d="M256,176a80,80,0,1,0,80,80A80.09,80.09,0,0,0,256,176Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,256,288Z"></path><path d="M414.39,97.61A224,224,0,1,0,97.61,414.39,224,224,0,1,0,414.39,97.61ZM256,368A112,112,0,1,1,368,256,112.12,112.12,0,0,1,256,368Z"></path></svg>');function Jt(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"disc"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=Gt();let v;var w=_(l);{var A=a=>{var e=Vt(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=Yt(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(2),u(l),k(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var Nt=Z("<title> </title>"),Ut=Z("<desc> </desc>"),Kt=Z('<svg><!><!><path d="M256,56C145.72,56,56,145.72,56,256s89.72,200,200,200,200-89.72,200-200S366.28,56,256,56Zm0,82a26,26,0,1,1-26,26A26,26,0,0,1,256,138Zm48,226H216a16,16,0,0,1,0-32h28V244H228a16,16,0,0,1,0-32h32a16,16,0,0,1,16,16V332h28a16,16,0,0,1,0,32Z"></path></svg>');function Qt(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"information circle"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=Kt();let v;var w=_(l);{var A=a=>{var e=Nt(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=Ut(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(),u(l),k(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var Xt=Z("<title> </title>"),pt=Z("<desc> </desc>"),$t=Z('<svg><!><!><path d="M449.07,399.08,278.64,82.58c-12.08-22.44-44.26-22.44-56.35,0L51.87,399.08A32,32,0,0,0,80,446.25H420.89A32,32,0,0,0,449.07,399.08Zm-198.6-1.83a20,20,0,1,1,20-20A20,20,0,0,1,250.47,397.25ZM272.19,196.1l-5.74,122a16,16,0,0,1-32,0l-5.74-121.95v0a21.73,21.73,0,0,1,21.5-22.69h.21a21.74,21.74,0,0,1,21.73,22.7Z"></path></svg>');function te(d,t){var i,h;H(t,!0);const r=U("iconCtx")??{};let y=q(t,"size",19,()=>r.size||"24"),g=q(t,"role",19,()=>r.role||"img"),c=q(t,"color",19,()=>r.color||"currentColor"),n=q(t,"ariaLabel",3,"warning"),o=X(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),s=`${((i=t.title)==null?void 0:i.id)||""} ${((h=t.desc)==null?void 0:h.id)||""}`;const f=K(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var l=$t();let v;var w=_(l);{var A=a=>{var e=Xt(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.title.id),T(m,t.title.title)}),x(a,e)};I(w,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(A)})}var z=b(w);{var C=a=>{var e=pt(),m=_(e,!0);u(e),k(()=>{S(e,"id",t.desc.id),T(m,t.desc.desc)}),x(a,e)};I(z,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(C)})}E(),u(l),k(()=>v=p(l,v,{xmlns:"http://www.w3.org/2000/svg",...o,role:g(),width:y(),height:y(),fill:c(),"aria-label":n(),"aria-describedby":D(f)?s:void 0,viewBox:"0 0 512 512"})),x(d,l),P()}var ee=B('<div class="item bg-color-3 color-bg svelte-1wdzwm7"><div class="item-icon svelte-1wdzwm7"><!> <!> <!></div> <div class="item-message size-small-2 svelte-1wdzwm7"><!></div></div>');function ae(d,t){H(t,!0);const r=q(t,"type",3,"info"),y=q(t,"time",3,2500);let g=G(0);Y(()=>()=>clearTimeout(D(g)));function c(){J(g,rt(window.setTimeout(()=>{t.onEnd(t.id)},y())))}var n=ee(),o=_(n),s=_(o);{var f=i=>{Jt(i,{})};I(s,i=>{r()==="track"&&i(f)})}var l=b(s,2);{var v=i=>{Qt(i,{})};I(l,i=>{r()==="info"&&i(v)})}var w=b(l,2);{var A=i=>{te(i,{})};I(w,i=>{r()==="error"&&i(A)})}u(o);var z=b(o,2),C=_(z);jt(C,()=>t.message),u(z),u(n),ct("introend",n,c),it(1,n,()=>Ht,()=>({y:-50})),it(2,n,()=>Pt),x(d,n),P()}var ie=B("<div><!></div>"),re=B('<div class="manager svelte-1r90u8r"></div>');function se(d,t){H(t,!1);const[r,y]=Q(),g=()=>j(N,"$toastItems",r);nt();var c=re();qt(c,13,g,n=>n.id,(n,o)=>{var s=ie(),f=_(s);ae(f,At({get onEnd(){return N.removeItem}},()=>D(o))),u(s),Rt(s,()=>Wt,null),x(n,s)}),u(c),x(d,c),P(),y()}var ne=B('<meta name="description" content="A frontend for social spotify-ing"> <meta property="og:title" content="Spotify Party"> <meta property="og:description" content="A frontend for social spotify-ing"> <meta property="og:type" content="website"> <meta property="og:url"> <meta property="og:image"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Spotify Party"> <meta property="twitter:url"> <meta name="twitter:description" content="A frontend for social spotify-ing"> <meta name="twitter:image"> <meta name="theme-color" content="#0000000"> <link rel="icon" href="/favicon.ico"> <link rel="manifest" href="/manifest.json">',1),oe=B("<!> <!>",1);function ue(d,t){H(t,!0);const[r,y]=Q(),g=()=>j(Lt,"$api",r),c=()=>j(Zt,"$socket",r),n=()=>j(V,"$authenticated",r),o=()=>j(st,"$address",r);let s=G(!0),f=G(0);async function l(){clearTimeout(D(f));try{const{authenticated:i=!1}=await g().health();V.set(i)}catch{V.set(!1),J(f,rt(window.setTimeout(()=>{l()},5e3)))}}async function v(){try{await g().reauthenticate(),l()}catch{console.log("Something weird went wrong")}}Y(()=>{var i,h;(i=c())==null||i.on("message",a=>{N.addItem(a),a.message.includes("spotify/reauthenticate")&&n()&&v()}),(h=c())==null||h.on("reload",a=>{window.location.reload()})}),Y(()=>{St.set(t.data.config),kt.set(t.data.live),It.set(!0),l(),J(s,!1)});var w=vt();mt(i=>{var h=ne();zt.title="Spotify Party";var a=b(F(h),8),e=b(a,2),m=b(e,6),R=b(m,4);E(6),k((L,M,O,W)=>{S(a,"content",L),S(e,"content",M),S(m,"content",O),S(R,"content",W)},[()=>o().get("/"),()=>o().get("/social.jpg"),()=>o().get("/"),()=>o().get("/social.jpg")]),x(i,h)});var A=F(w);{var z=i=>{Mt(i,{floating:!0})},C=(i,h)=>{{var a=m=>{Bt(m,{})},e=m=>{var R=oe(),L=F(R);se(L,{});var M=b(L,2);Ct(M,()=>t.children),x(m,R)};I(i,m=>{n()?m(e,!1):m(a)},h)}};I(A,i=>{D(s)?i(z):i(C,!1)})}x(d,w),P(),y()}export{ue as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as g,a as h,s}from"../chunks/qSIFE6bv.js";import{i as v}from"../chunks/C7I4vMbc.js";import{v as l,w as d,x,y as _,z as o,A as p,B as $}from"../chunks/CDVeMiAl.js";import{s as k,p as i}from"../chunks/BFU9wwXC.js";const b={get error(){return i.error},get status(){return i.status}};k.updated.check;const m=b;var w=g("<h1> </h1> <p> </p>",1);function E(n,c){l(c,!1),v();var r=w(),t=d(r),f=o(t,!0);p(t);var e=$(t,2),u=o(e,!0);p(e),x(()=>{var a;s(f,m.status),s(u,(a=m.error)==null?void 0:a.message)}),h(n,r),_()}export{E as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as I,a as o,s as q,e as ct,t as F,c as Tt,f as Bt}from"../chunks/qSIFE6bv.js";import{v as J,aE as Y,z as c,B,aF as O,A as s,x as w,o as r,s as E,y as U,u as Mt,I as S,J as X,w as gt,n as lt}from"../chunks/CDVeMiAl.js";import{b as m,i as A,r as p,s as ft,a as st,c as ht,p as at}from"../chunks/CvUX3i4L.js";import{d as $,e as j,f as mt,s as nt,h as Zt,i as St,c as It,L as qt,t as Ft}from"../chunks/D5aAvvqP.js";import{b as Ht}from"../chunks/DnG2xkSB.js";import{s as kt}from"../chunks/EvVuwjft.js";import{I as Rt,P as jt}from"../chunks/BQ2eCqC3.js";var Et=I("<title> </title>"),Jt=I("<desc> </desc>"),Ut=I('<svg><!><!><path d="M321.94,98,158.82,237.78a24,24,0,0,0,0,36.44L321.94,414c15.57,13.34,39.62,2.28,39.62-18.22V116.18C361.56,95.68,337.51,84.62,321.94,98Z"></path></svg>');function Gt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"caret back"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Ut();let f;var h=c(i);{var Z=a=>{var e=Et(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Jt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var Kt=I("<title> </title>"),Nt=I("<desc> </desc>"),Ot=I('<svg><!><!><path d="M208,432H160a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,208,432Z"></path><path d="M352,432H304a16,16,0,0,1-16-16V96a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V416A16,16,0,0,1,352,432Z"></path></svg>');function Qt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"pause"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Ot();let f;var h=c(i);{var Z=a=>{var e=Kt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Nt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(2),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var Wt=I("<title> </title>"),Xt=I("<desc> </desc>"),Yt=I('<svg><!><!><path d="M133,440a35.37,35.37,0,0,1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37,7.46-27.53,19.46-34.33a35.13,35.13,0,0,1,35.77.45L399.12,225.48a36,36,0,0,1,0,61L151.23,434.88A35.5,35.5,0,0,1,133,440Z"></path></svg>');function pt(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=Yt();let f;var h=c(i);{var Z=a=>{var e=Wt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=Xt(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var $t=I("<title> </title>"),te=I("<desc> </desc>"),ee=I('<svg><!><!><path d="M112,64a16,16,0,0,1,16,16V216.43L360.77,77.11a35.13,35.13,0,0,1,35.77-.44c12,6.8,19.46,20,19.46,34.33V401c0,14.37-7.46,27.53-19.46,34.33a35.14,35.14,0,0,1-35.77-.45L128,295.57V432a16,16,0,0,1-32,0V80A16,16,0,0,1,112,64Z"></path></svg>');function ae(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play skip back"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=ee();let f;var h=c(i);{var Z=a=>{var e=$t(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=te(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var ie=I("<title> </title>"),le=I("<desc> </desc>"),re=I('<svg><!><!><path d="M400,64a16,16,0,0,0-16,16V216.43L151.23,77.11a35.13,35.13,0,0,0-35.77-.44C103.46,83.47,96,96.63,96,111V401c0,14.37,7.46,27.53,19.46,34.33a35.14,35.14,0,0,0,35.77-.45L384,295.57V432a16,16,0,0,0,32,0V80A16,16,0,0,0,400,64Z"></path></svg>');function se(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"play skip forward"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=re();let f;var h=c(i);{var Z=a=>{var e=ie(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=le(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}var ce=I("<title> </title>"),ne=I("<desc> </desc>"),oe=I('<svg><!><!><path d="M208,512a24.84,24.84,0,0,1-23.34-16l-39.84-103.6a16.06,16.06,0,0,0-9.19-9.19L32,343.34a25,25,0,0,1,0-46.68l103.6-39.84a16.06,16.06,0,0,0,9.19-9.19L184.66,144a25,25,0,0,1,46.68,0l39.84,103.6a16.06,16.06,0,0,0,9.19,9.19l103,39.63A25.49,25.49,0,0,1,400,320.52a24.82,24.82,0,0,1-16,22.82l-103.6,39.84a16.06,16.06,0,0,0-9.19,9.19L231.34,496A24.84,24.84,0,0,1,208,512Zm66.85-254.84h0Z"></path><path d="M88,176a14.67,14.67,0,0,1-13.69-9.4L57.45,122.76a7.28,7.28,0,0,0-4.21-4.21L9.4,101.69a14.67,14.67,0,0,1,0-27.38L53.24,57.45a7.31,7.31,0,0,0,4.21-4.21L74.16,9.79A15,15,0,0,1,86.23.11,14.67,14.67,0,0,1,101.69,9.4l16.86,43.84a7.31,7.31,0,0,0,4.21,4.21L166.6,74.31a14.67,14.67,0,0,1,0,27.38l-43.84,16.86a7.28,7.28,0,0,0-4.21,4.21L101.69,166.6A14.67,14.67,0,0,1,88,176Z"></path><path d="M400,256a16,16,0,0,1-14.93-10.26l-22.84-59.37a8,8,0,0,0-4.6-4.6l-59.37-22.84a16,16,0,0,1,0-29.86l59.37-22.84a8,8,0,0,0,4.6-4.6L384.9,42.68a16.45,16.45,0,0,1,13.17-10.57,16,16,0,0,1,16.86,10.15l22.84,59.37a8,8,0,0,0,4.6,4.6l59.37,22.84a16,16,0,0,1,0,29.86l-59.37,22.84a8,8,0,0,0-4.6,4.6l-22.84,59.37A16,16,0,0,1,400,256Z"></path></svg>');function de(y,t){var x,L;J(t,!0);const l=Y("iconCtx")??{};let n=m(t,"size",19,()=>l.size||"24"),u=m(t,"role",19,()=>l.role||"img"),C=m(t,"color",19,()=>l.color||"currentColor"),_=m(t,"ariaLabel",3,"sparkles"),d=p(t,["$$slots","$$events","$$legacy","size","role","color","title","desc","ariaLabel"]),v=`${((x=t.title)==null?void 0:x.id)||""} ${((L=t.desc)==null?void 0:L.id)||""}`;const b=E(()=>{var a,e;return!!((a=t.title)!=null&&a.id||(e=t.desc)!=null&&e.id)});var i=oe();let f;var h=c(i);{var Z=a=>{var e=ce(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.title.id),q(k,t.title.title)}),o(a,e)};A(h,a=>{var e;(e=t.title)!=null&&e.id&&t.title.title&&a(Z)})}var P=B(h);{var V=a=>{var e=ne(),k=c(e,!0);s(e),w(()=>{j(e,"id",t.desc.id),q(k,t.desc.desc)}),o(a,e)};A(P,a=>{var e;(e=t.desc)!=null&&e.id&&t.desc.desc&&a(V)})}O(3),s(i),w(()=>f=$(i,f,{xmlns:"http://www.w3.org/2000/svg",...d,role:u(),width:n(),height:n(),fill:C(),"aria-label":_(),"aria-describedby":r(b)?v:void 0,viewBox:"0 0 512 512"})),o(y,i),U()}async function ve(y,t,l){await t().skipBackward(),l()()}async function ue(y,t,l,n){S(t,!0),await l().play(),n()()}async function _e(y,t,l,n){S(t,!1),await l().pause(),n()()}async function be(y,t,l){await t().skipForward(),l()()}var ge=F('<button class="btn-reset"><!></button>'),fe=F('<button class="btn-reset"><!></button>'),he=F('<div class="controls-actions"><button class="btn-reset"><!></button> <!> <button class="btn-reset"><!></button></div>'),me=F('<div class="controls color-1 svelte-qlb6de"><div class="controls-top ellipsis svelte-qlb6de"> </div> <!></div>');function ke(y,t){J(t,!0);const[l,n]=ft(),u=()=>st(mt,"$api",l),C=m(t,"playing",3,!1),_=m(t,"onTrigger",3,()=>{}),d=m(t,"canControl",3,!0);let v=X(null),b=E(()=>r(v)??C());Mt(()=>{typeof C()=="boolean"&&S(v,null)});var i=me(),f=c(i),h=c(f,!0);s(f);var Z=B(f,2);{var P=V=>{var x=he(),L=c(x);L.__click=[ve,u,_];var a=c(L);ae(a,{}),s(L);var e=B(L,2);{var k=G=>{var K=ge();K.__click=[_e,v,u,_];var g=c(K);Qt(g,{}),s(K),o(G,K)},et=(G,K)=>{{var g=T=>{var D=fe();D.__click=[ue,v,u,_];var H=c(D);pt(H,{}),s(D),o(T,D)};A(G,T=>{r(b)===!1&&T(g)},K)}};A(e,G=>{r(b)===!0?G(k):G(et,!1)})}var tt=B(e,2);tt.__click=[be,u,_];var it=c(tt);se(it,{}),s(tt),s(x),o(V,x)};A(Z,V=>{d()&&V(P)})}s(i),w(()=>q(h,t.title)),o(y,i),U(),n()}ct(["click"]);var xe=F('<div class="item-action svelte-tze98h"><!></div>'),ye=F('<div><div class="item-image svelte-tze98h"><!></div> <div class="item-content svelte-tze98h"><span class="item-content-title ellipsis svelte-tze98h"> </span> <span class="item-content-subtitle ellipsis color-2 svelte-tze98h"> </span></div> <!></div>');function xt(y,t){J(t,!0);const l=m(t,"action",3,null);var n=ye();let u;var C=c(n),_=c(C);Rt(_,{get full(){return t.image.full.url},get low(){return t.image.low.url}}),s(C);var d=B(C,2),v=c(d),b=c(v,!0);s(v);var i=B(v,2),f=c(i,!0);s(i),s(d);var h=B(d,2);{var Z=P=>{var V=xe(),x=c(V);kt(x,l),s(V),o(P,V)};A(h,P=>{l()&&P(Z)})}s(n),w(P=>{u=nt(n,1,"item svelte-tze98h",null,u,P),j(n,"data-id",t.id),q(b,t.title),q(f,t.subtitle)},[()=>({withAction:!!l()})]),o(y,n),U()}var we=F('<div class="results-list-items svelte-n7b7z4"></div>'),Le=F('<div class="results-list svelte-n7b7z4"><button> </button> <!></div>');function rt(y,t){const l=m(t,"expanded",3,!1);var n=Le(),u=c(n);u.__click=function(...b){var i;(i=t.onActivate)==null||i.apply(this,b)};let C;var _=c(u,!0);s(u);var d=B(u,2);{var v=b=>{var i=we();Zt(i,21,()=>t.items,St,(f,h)=>{xt(f,ht(()=>r(h).normalised,{action:P=>{var V=Tt(),x=gt(V);kt(x,()=>t.action,()=>r(h).normalised),o(P,V)},$$slots:{action:!0}}))}),s(i),o(b,i)};A(d,b=>{l()&&b(v)})}s(n),w(b=>{C=nt(u,1,"btn-reset results-list-top svelte-n7b7z4",null,C,b),q(_,t.title)},[()=>({active:l()})]),o(y,n)}ct(["click"]);var ze=F('<div class="context-header svelte-40dkcl"><button class="context-header-action btn-reset svelte-40dkcl"><!></button> <div class="context-header-item svelte-40dkcl"><!></div></div>'),Ae=(y,t,l)=>t(l().uri,l().title),Ce=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">Add Track</button>'),Ve=(y,t,l)=>t(l()),De=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">View Album</button>'),Pe=(y,t,l)=>t(l()),Te=F('<button class="btn-reset select-track size-small-1 svelte-40dkcl">View Artist</button>'),Be=F('<div class="initial color-1 svelte-40dkcl">Search for a track to add</div>'),Me=F('<div class="page-content bg-color-3 svelte-40dkcl"><form class="page-content-top svelte-40dkcl"><label class="svelte-40dkcl"><input class="color-bg svelte-40dkcl" type="search" placeholder="URL, Track, Album, Artist..." name="q"></label> <button class="btn-reset svelte-40dkcl">Search</button></form> <div class="page-content-results svelte-40dkcl"><!> <!> <!> <!> <!> <!></div></div>'),Ze=F('<div class="warning svelte-40dkcl"><!> <p>Host has disabled adding for this party</p></div>'),Se=F('<!> <div><!> <!> <div class="outlink size-small-2 color-2 svelte-40dkcl"><a href="/player" class="svelte-40dkcl">View player</a></div></div>',1);function Je(y,t){J(t,!0);const[l,n]=ft(),u=()=>st(mt,"$api",l),C=()=>st(It,"$config",l);let _=X(null),d=X(!1),v=X("tracks"),b=X(null),i=X(null);async function f(g){try{S(d,!0),S(_,null);const{tracks:T,artists:D,albums:H}=await g();S(_,at({tracks:T,artists:D,albums:H}))}catch(T){console.error(T),Ft.addItem({message:"There was an error - Try refreshing",type:"error"})}finally{S(d,!1)}}let h=X(null);async function Z(g){var H;if(g.preventDefault(),!r(h))return;const D=(H=new FormData(r(h)).get("q"))==null?void 0:H.toString();D&&(S(b,null),f(()=>u().search(D)))}async function P(g,T){try{S(d,!0),await u().addTrack(g,T)}catch(D){console.error(D)}finally{S(d,!1)}}async function V(g){S(b,at(g)),f(()=>u().album(g.id)),S(v,"tracks")}async function x(g){S(b,at(g)),f(()=>u().artist(g.id)),S(v,"tracks")}var L=Se(),a=gt(L);jt(a,{get playing(){return r(i)},set playing(g){S(i,at(g))}});var e=B(a,2);let k;var et=c(e);{var tt=g=>{const T=E(()=>[r(i).track.normalised.title,r(i).track.normalised.subtitle].join(" - ")),D=E(()=>{var H;return(H=C().api)==null?void 0:H.canControl});ke(g,{get playing(){return r(i).isPlaying},get title(){return r(T)},get canControl(){return r(D)}})};A(et,g=>{r(i)&&!("noTrack"in r(i))&&g(tt)})}var it=B(et,2);{var G=g=>{var T=Me(),D=c(T),H=c(D),yt=c(H);s(H);var wt=B(H,2);s(D),Ht(D,z=>S(h,z),()=>r(h));var ot=B(D,2),dt=c(ot);{var Lt=z=>{qt(z,{floating:!0})};A(dt,z=>{r(d)&&z(Lt)})}var vt=B(dt,2);{var zt=z=>{var M=ze(),Q=c(M);Q.__click=Z;var W=c(Q);Gt(W,{size:"28"}),s(Q);var N=B(Q,2),R=c(N);xt(R,ht(()=>r(b))),s(N),s(M),o(z,M)};A(vt,z=>{r(b)&&z(zt)})}var ut=B(vt,2);{var At=z=>{const M=E(()=>r(v)==="tracks");rt(z,{title:"Tracks",onActivate:()=>S(v,"tracks"),get expanded(){return r(M)},get items(){return r(_).tracks},action:(W,N=lt)=>{var R=Ce();R.__click=[Ae,P,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(ut,z=>{var M;(M=r(_))!=null&&M.tracks&&z(At)})}var _t=B(ut,2);{var Ct=z=>{const M=E(()=>r(v)==="albums");rt(z,{title:"Albums",onActivate:()=>S(v,"albums"),get expanded(){return r(M)},get items(){return r(_).albums},action:(W,N=lt)=>{var R=De();R.__click=[Ve,V,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(_t,z=>{var M;(M=r(_))!=null&&M.albums&&z(Ct)})}var bt=B(_t,2);{var Vt=z=>{const M=E(()=>r(v)==="artists");rt(z,{title:"Artists",onActivate:()=>S(v,"artists"),get expanded(){return r(M)},get items(){return r(_).artists},action:(W,N=lt)=>{var R=Te();R.__click=[Pe,x,N],w(()=>R.disabled=r(d)),o(W,R)},$$slots:{action:!0}})};A(bt,z=>{var M;(M=r(_))!=null&&M.artists&&z(Vt)})}var Dt=B(bt,2);{var Pt=z=>{var M=Be();o(z,M)};A(Dt,z=>{r(_)||z(Pt)})}s(ot),s(T),w(()=>{yt.disabled=r(d),wt.disabled=r(d)}),Bt("submit",D,Z),o(g,T)},K=g=>{var T=Ze(),D=c(T);de(D,{}),O(2),s(T),o(g,T)};A(it,g=>{var T,D;(D=(T=C())==null?void 0:T.api)!=null&&D.canAdd?g(G):g(K,!1)})}O(2),s(e),w(g=>k=nt(e,1,"page bg-color-bg svelte-40dkcl",null,k,g),[()=>({loading:r(d)})]),o(y,L),U(),n()}ct(["click"]);export{Je as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as k,a as x,s as g}from"../chunks/qSIFE6bv.js";import{h as K,C as ue,D as fe,F as pe,G as me,d as _e,H as xe,f as ge,i as ke,U as be,v as he,u as M,w as qe,y as ye,I as P,o as e,J as O,B as i,z as t,A as r,x as ze,s as Q}from"../chunks/CDVeMiAl.js";import{i as $,s as we,p as Ie,a as R}from"../chunks/CvUX3i4L.js";import{t as Le,f as Te,a as Ae,q as Pe}from"../chunks/DiaFwogD.js";import{L as $e,s as Ee,c as Ne,a as Ce}from"../chunks/D5aAvvqP.js";import{P as De,I as Se}from"../chunks/BQ2eCqC3.js";function Ue(v,u,o){K&&ue();var f=v,b=be,p,a=fe()?pe:me;_e(()=>{a(b,b=u())&&(p&&xe(p),p=ge(()=>o(f)))}),K&&(f=ke)}const V=(v,u,o,f=!1)=>(v.addEventListener(u,o,f),()=>v.removeEventListener(u,o));var je=k('<div class="empty bg-color-3 color-1 svelte-z9xx2q">No Track playing currently</div>'),Be=k('<span class="svelte-z9xx2q"><!></span>'),Fe=k('<div class="badge bg-color-3 color-bg svelte-z9xx2q"><span class="headline-3">Add</span> <span class="badge-qr svelte-z9xx2q"></span></div>'),Ge=k('<div><div class="top svelte-z9xx2q"><div class="context color-1 svelte-z9xx2q"><span> </span> <span class="size-small-2"> </span></div></div> <div class="middle svelte-z9xx2q"><div class="middle-image svelte-z9xx2q"><!></div></div> <div class="bottom svelte-z9xx2q"><div class="left color-1 svelte-z9xx2q"><h1 class="title ellipsis svelte-z9xx2q"> </h1> <span class="headline-3"> </span></div> <div class="right svelte-z9xx2q"><!> <span class="size-small-1 color-3"> </span></div></div></div>'),He=k("<!> <!>",1);function Re(v,u){he(u,!0);const[o,f]=we(),b=()=>R(Ne,"$config",o),p=()=>R(Ce,"$address",o);let a=O(null),W=Q(()=>!e(a)||"noTrack"in e(a)?"":"normalised"in e(a).context?e(a).context.normalised.title:"album"in e(a).track?e(a).track.album:"show"in e(a).track?e(a).track.show:""),X=Q(()=>{var s,n,q,y;if(!e(a)||"noTrack"in e(a))return"";if(!e(a).isPlaying)return"Paused";switch((s=e(a).context)==null?void 0:s.type){case"album":return[e(a).track.number,e(a).context.total].join(" – ");default:return((y=(q=(n=e(a))==null?void 0:n.context)==null?void 0:q.normalised)==null?void 0:y.subtitle)??""}}),c=null;async function E(){let s=null;try{return c==null||c(),c=null,s=await navigator.wakeLock.request("screen"),console.log("Screen locked"),()=>{}}catch(n){if(n.code===0&&!c)return c=V(window,"focus",E),c;console.log(n)}}let h=O(!0);function Y(){let s=0;const n=V(document,"mousemove",()=>{clearTimeout(s),P(h,!1),s=window.setTimeout(()=>{P(h,!0)},2e3)});return()=>{n(),clearTimeout(s)}}M(()=>{document.documentElement.classList.toggle("idle",e(h))}),M(()=>{E(),Y()});var N=He(),C=qe(N);De(C,{get playing(){return e(a)},set playing(s){P(a,Ie(s))}});var ee=i(C,2);{var ae=s=>{$e(s,{floating:!0})},se=(s,n)=>{{var q=m=>{var _=je();x(m,_)},y=m=>{var _=Ge();let D;var z=t(_),S=t(z),w=t(S),te=t(w,!0);r(w);var U=i(w,2),re=t(U,!0);r(U),r(S),r(z);var I=i(z,2),j=t(I),le=t(j);Ue(le,()=>e(a).track.normalised.image.full.url,d=>{var l=Be(),A=t(l);Se(A,{get full(){return e(a).track.normalised.image.full.url},get low(){return e(a).track.normalised.image.low.url}}),r(l),Le(3,l,()=>Te),x(d,l)}),r(j),r(I);var B=i(I,2),L=t(B),T=t(L),ne=t(T,!0);r(T);var F=i(T,2),ie=t(F,!0);r(F),r(L);var G=i(L,2),H=t(G);{var oe=d=>{var l=Fe(),A=i(t(l),2);Ae(A,(de,ve)=>{var Z;return(Z=Pe)==null?void 0:Z(de,ve)},()=>({url:p().get("/")})),r(l),x(d,l)};$(H,d=>{var l;(l=b().api)!=null&&l.canAdd&&d(oe)})}var J=i(H,2),ce=t(J,!0);r(J),r(G),r(B),r(_),ze(d=>{D=Ee(_,1,"page bg-color-bg svelte-z9xx2q",null,D,d),g(te,e(W)),g(re,e(X)),g(ne,e(a).track.normalised.title),g(ie,e(a).track.normalised.subtitle),g(ce,p().naked)},[()=>({idle:e(h)})]),x(m,_)};$(s,m=>{"noTrack"in e(a)?m(q):m(y,!1)},n)}};$(ee,s=>{e(a)?s(se,!1):s(ae)})}x(v,N),ye(),f()}export{Re as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"0-BvYWjFDA.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import deepmerge from \"deepmerge\";\nimport dotenv from \"dotenv\";\nimport os from \"node:os\";\nconst DEFAULT_OPTIONS = {\n port: 3e3,\n origin: \"\",\n protocol: \"http://\",\n verbose: false,\n playerRoute: \"/player\",\n api: {\n market: \"GB\",\n searchQueryLimit: 10,\n centralisedPolling: true,\n centralisedPollingTimer: 5e3,\n canAdd: true,\n canControl: true\n },\n spotify: {\n client_id: \"\",\n client_secret: \"\",\n routePrefix: \"/spotify\",\n routeToken: \"/token\",\n authenticatedRedirect: \"/\",\n accessTokenJsonLocation: \"$HOME/.ambient/spotify_auth.json\",\n scope: []\n },\n plugins: [],\n pluginOptions: {},\n suppressErrors: []\n};\nconst getIp = () => {\n const [item] = Object.values(os.networkInterfaces()).flat().filter((item2) => item2 && item2.family === \"IPv4\" && !item2.internal);\n return item?.address;\n};\nconst expandAliases = (filePath) => {\n if (filePath.startsWith(\"~\")) {\n return os.homedir() + filePath.slice(0);\n }\n if (filePath.startsWith(\"$HOME\")) {\n return os.homedir() + filePath.slice(\"$HOME\".length);\n }\n return filePath;\n};\ndotenv.config();\nconst INJECTED_OPTIONS = {\n verbose: \"VERBOSE\" in process.env && process.env.VERBOSE?.toLowerCase() !== \"false\",\n origin: process.env.ORIGIN ?? getIp(),\n protocol: process.env.PROTOCOL ?? \"http://\",\n port: process.env.PORT ?? 3e3,\n spotify: {\n client_id: process.env.SPOTIFY_CLIENT_ID,\n client_secret: process.env.SPOTIFY_CLIENT_SECRET\n }\n};\nif (process.env.CONFIG) {\n console.log(`Loading config from ${expandAliases(process.env.CONFIG)}`);\n}\nconst USER_OPTIONS = await import(expandAliases(process.env.CONFIG ?? \"../ambient.config.js\")).then((module) => module.default).catch((e) => {\n if (process.env.CONFIG) {\n console.error(\"Config load error\");\n console.error(e);\n }\n return {};\n});\nif (INJECTED_OPTIONS.verbose ?? USER_OPTIONS.verbose) {\n console.log(`config`);\n console.log(USER_OPTIONS);\n}\nconst OPTIONS = deepmerge(DEFAULT_OPTIONS, deepmerge(INJECTED_OPTIONS, USER_OPTIONS));\nconst testServer = async (fetch) => {\n try {\n const { success } = await fetch({ path: \"/api/health\", protocol: \"http\" }).then(\n (resp) => resp.json()\n );\n return success;\n } catch {\n return false;\n }\n};\nasync function load({ fetch }) {\n const server = await testServer(fetch);\n const { plugins, ...config } = OPTIONS;\n return {\n live: !!server,\n config\n };\n}\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.js\";\nexport const imports = [\"_app/immutable/nodes/0.BXpO8PDa.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/CvUX3i4L.js\",\"_app/immutable/chunks/EvVuwjft.js\",\"_app/immutable/chunks/D5aAvvqP.js\",\"_app/immutable/chunks/C7I4vMbc.js\",\"_app/immutable/chunks/DiaFwogD.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.Dl9__I4E.css\",\"_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AAGA,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,GAAG;AACX,EAAE,MAAM,EAAE,EAAE;AACZ,EAAE,QAAQ,EAAE,SAAS;AACrB,EAAE,OAAO,EAAE,KAAK;AAChB,EAAE,WAAW,EAAE,SAAS;AACxB,EAAE,GAAG,EAAE;AACP,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,gBAAgB,EAAE,EAAE;AACxB,IAAI,kBAAkB,EAAE,IAAI;AAC5B,IAAI,uBAAuB,EAAE,GAAG;AAChC,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,UAAU,EAAE;AAChB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,SAAS,EAAE,EAAE;AACjB,IAAI,aAAa,EAAE,EAAE;AACrB,IAAI,WAAW,EAAE,UAAU;AAC3B,IAAI,UAAU,EAAE,QAAQ;AACxB,IAAI,qBAAqB,EAAE,GAAG;AAC9B,IAAI,uBAAuB,EAAE,kCAAkC;AAC/D,IAAI,KAAK,EAAE;AACX,GAAG;AACH,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,aAAa,EAAE,EAAE;AACnB,EAAE,cAAc,EAAE;AAClB,CAAC;AACD,MAAM,KAAK,GAAG,MAAM;AACpB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,iBAAiB,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK,KAAK,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpI,EAAE,OAAO,IAAI,EAAE,OAAO;AACtB,CAAC;AACD,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK;AACpC,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AAChC,IAAI,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3C;AACA,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;AACpC,IAAI,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AACxD;AACA,EAAE,OAAO,QAAQ;AACjB,CAAC;AACD,MAAM,CAAC,MAAM,EAAE;AACf,MAAM,gBAAgB,GAAG;AACzB,EAAE,OAAO,EAAE,SAAS,IAAI,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO;AACrF,EAAE,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,KAAK,EAAE;AACvC,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,SAAS;AAC7C,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG;AAC/B,EAAE,OAAO,EAAE;AACX,IAAI,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;AAC5C,IAAI,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC;AAC/B;AACA,CAAC;AACD,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;AACxB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,oBAAoB,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACzE;AACA,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,sBAAsB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;AAC7I,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;AAC1B,IAAI,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC;AACtC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AACpB;AACA,EAAE,OAAO,EAAE;AACX,CAAC,CAAC;AACF,IAAI,gBAAgB,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE;AACtD,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;AACvB,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AAC3B;AACA,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACrF,MAAM,UAAU,GAAG,OAAO,KAAK,KAAK;AACpC,EAAE,IAAI;AACN,IAAI,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI;AACnF,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;AACzB,KAAK;AACL,IAAI,OAAO,OAAO;AAClB,GAAG,CAAC,MAAM;AACV,IAAI,OAAO,KAAK;AAChB;AACA,CAAC;AACD,eAAe,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE;AAC/B,EAAE,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,KAAK,CAAC;AACxC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO;AACxC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM;AAClB,IAAI;AACJ,GAAG;AACH;;;;;;;ACpFY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,qDAAqD;AAC5G,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const index = 1;
|
|
2
|
-
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./error.svelte-DGl1DMvJ.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.ByCIm58b.js","_app/immutable/chunks/qSIFE6bv.js","_app/immutable/chunks/CDVeMiAl.js","_app/immutable/chunks/C7I4vMbc.js","_app/immutable/chunks/BFU9wwXC.js","_app/immutable/chunks/ynvIH2CR.js"];
|
|
5
|
-
const stylesheets = [];
|
|
6
|
-
const fonts = [];
|
|
7
|
-
|
|
8
|
-
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-Nhr7ZMI3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1-Nhr7ZMI3.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.ByCIm58b.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/C7I4vMbc.js\",\"_app/immutable/chunks/BFU9wwXC.js\",\"_app/immutable/chunks/ynvIH2CR.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const index = 2;
|
|
2
|
-
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-CYugZxLe.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/2.DxFkPkVM.js","_app/immutable/chunks/qSIFE6bv.js","_app/immutable/chunks/CDVeMiAl.js","_app/immutable/chunks/CvUX3i4L.js","_app/immutable/chunks/D5aAvvqP.js","_app/immutable/chunks/DnG2xkSB.js","_app/immutable/chunks/EvVuwjft.js","_app/immutable/chunks/BQ2eCqC3.js"];
|
|
5
|
-
const stylesheets = ["_app/immutable/assets/2.BtzFOBtk.css","_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css","_app/immutable/assets/PlayingTracker.BPTtFzSw.css"];
|
|
6
|
-
const fonts = [];
|
|
7
|
-
|
|
8
|
-
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=2-cxDj5MEl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2-cxDj5MEl.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.DxFkPkVM.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/CvUX3i4L.js\",\"_app/immutable/chunks/D5aAvvqP.js\",\"_app/immutable/chunks/DnG2xkSB.js\",\"_app/immutable/chunks/EvVuwjft.js\",\"_app/immutable/chunks/BQ2eCqC3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/2.BtzFOBtk.css\",\"_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css\",\"_app/immutable/assets/PlayingTracker.BPTtFzSw.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,qDAAqD,CAAC,mDAAmD;AAChK,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const index = 3;
|
|
2
|
-
let component_cache;
|
|
3
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-B1q4zDaO.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/3.DHrglKgJ.js","_app/immutable/chunks/qSIFE6bv.js","_app/immutable/chunks/CDVeMiAl.js","_app/immutable/chunks/CvUX3i4L.js","_app/immutable/chunks/DiaFwogD.js","_app/immutable/chunks/D5aAvvqP.js","_app/immutable/chunks/BQ2eCqC3.js"];
|
|
5
|
-
const stylesheets = ["_app/immutable/assets/3.VTEzhx9-.css","_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css","_app/immutable/assets/PlayingTracker.BPTtFzSw.css"];
|
|
6
|
-
const fonts = [];
|
|
7
|
-
|
|
8
|
-
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=3-Bd5ZeRiN.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"3-Bd5ZeRiN.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/player/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.DHrglKgJ.js\",\"_app/immutable/chunks/qSIFE6bv.js\",\"_app/immutable/chunks/CDVeMiAl.js\",\"_app/immutable/chunks/CvUX3i4L.js\",\"_app/immutable/chunks/DiaFwogD.js\",\"_app/immutable/chunks/D5aAvvqP.js\",\"_app/immutable/chunks/BQ2eCqC3.js\"];\nexport const stylesheets = [\"_app/immutable/assets/3.VTEzhx9-.css\",\"_app/immutable/assets/LoadingIndicator.D0m6rSKQ.css\",\"_app/immutable/assets/PlayingTracker.BPTtFzSw.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyC,CAAC,EAAE;AACvG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG,CAAC,sCAAsC,CAAC,qDAAqD,CAAC,mDAAmD;AAChK,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { a6 as attr_class } from './index2-DObisaVF.js';
|
|
2
|
-
import './LoadingIndicator.svelte_svelte_type_style_lang-DpRiqnJg.js';
|
|
3
|
-
|
|
4
|
-
function LoadingIndicator($$payload, $$props) {
|
|
5
|
-
const { floating = false } = $$props;
|
|
6
|
-
$$payload.out += `<div${attr_class("loading svelte-1aqhn4j", void 0, { "floating": floating })}><div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div> <div class="loading-icon svelte-1aqhn4j"></div></div>`;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { LoadingIndicator as L };
|
|
10
|
-
//# sourceMappingURL=LoadingIndicator-BgSuwc17.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator-BgSuwc17.js","sources":["../../../.svelte-kit/adapter-node/chunks/LoadingIndicator.js"],"sourcesContent":["import { a5 as attr_class } from \"./index.js\";\nimport \"./LoadingIndicator.svelte_svelte_type_style_lang.js\";\nfunction LoadingIndicator($$payload, $$props) {\n const { floating = false } = $$props;\n $$payload.out += `<div${attr_class(\"loading svelte-1aqhn4j\", void 0, { \"floating\": floating })}><div class=\"loading-icon svelte-1aqhn4j\"></div> <div class=\"loading-icon svelte-1aqhn4j\"></div> <div class=\"loading-icon svelte-1aqhn4j\"></div></div>`;\n}\nexport {\n LoadingIndicator as L\n};\n"],"names":[],"mappings":";;;AAEA,SAAS,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE;AAC9C,EAAE,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO;AACtC,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,wBAAwB,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,sJAAsJ,CAAC;AACxP;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_layout.svelte-CADTy4fg.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { X as head, W as pop, T as push, Y as attr, Z as store_get, _ as unsubscribe_stores } from \"../../chunks/index.js\";\nimport { a as address } from \"../../chunks/LoadingIndicator.svelte_svelte_type_style_lang.js\";\nimport \"qrcode-svg\";\nimport { L as LoadingIndicator } from \"../../chunks/LoadingIndicator.js\";\nfunction _layout($$payload, $$props) {\n push();\n var $$store_subs;\n let { data, children } = $$props;\n head($$payload, ($$payload2) => {\n $$payload2.title = `<title>Spotify Party</title>`;\n $$payload2.out += `<meta name=\"description\" content=\"A frontend for social spotify-ing\"> <meta property=\"og:title\" content=\"Spotify Party\"> <meta property=\"og:description\" content=\"A frontend for social spotify-ing\"> <meta property=\"og:type\" content=\"website\"> <meta property=\"og:url\"${attr(\"content\", store_get($$store_subs ??= {}, \"$address\", address).get(\"/\"))}> <meta property=\"og:image\"${attr(\"content\", store_get($$store_subs ??= {}, \"$address\", address).get(\"/social.jpg\"))}> <meta name=\"twitter:card\" content=\"summary_large_image\"> <meta name=\"twitter:title\" content=\"Spotify Party\"> <meta property=\"twitter:url\"${attr(\"content\", store_get($$store_subs ??= {}, \"$address\", address).get(\"/\"))}> <meta name=\"twitter:description\" content=\"A frontend for social spotify-ing\"> <meta name=\"twitter:image\"${attr(\"content\", store_get($$store_subs ??= {}, \"$address\", address).get(\"/social.jpg\"))}> <meta name=\"theme-color\" content=\"#0000000\"> <link rel=\"icon\" href=\"/favicon.ico\"> <link rel=\"manifest\" href=\"/manifest.json\">`;\n });\n {\n $$payload.out += \"<!--[-->\";\n LoadingIndicator($$payload, { floating: true });\n }\n $$payload.out += `<!--]-->`;\n if ($$store_subs) unsubscribe_stores($$store_subs);\n pop();\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;;;;AAIA,SAAS,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE;AACrC,EAAE,IAAI,EAAE;AACR,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO;AAClC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,KAAK;AAClC,IAAI,UAAU,CAAC,KAAK,GAAG,CAAC,4BAA4B,CAAC;AACrD,IAAI,UAAU,CAAC,GAAG,IAAI,CAAC,yQAAyQ,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,2BAA2B,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,2IAA2I,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,0GAA0G,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,gIAAgI,CAAC;AACrgC,GAAG,CAAC;AACJ,EAAE;AACF,IAAI,SAAS,CAAC,GAAG,IAAI,UAAU;AAC/B,IAAI,gBAAgB,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACnD;AACA,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;AAC7B,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,EAAE,GAAG,EAAE;AACP;;;;"}
|