├── README.md
├── background.js
├── images
├── spotify-mini-player-128.png
├── spotify-mini-player-16.png
├── spotify-mini-player-48.png
└── spotify-mini-player-xmas-128.png
├── manifest.json
├── popup.css
├── popup.html
└── popup.js
/README.md:
--------------------------------------------------------------------------------
1 | [](https://www.javascript.com/)
2 | [](https://GitHub.com/codermert)
3 | [](https://ask.fm/codermertx)
4 |
5 |
6 | Ücretsiz Spotify Control!
7 |
8 | Not : Chrome Store'da yayınlamadım
9 |
10 | ## Nasıl Kullanılır?
11 | Bildiğiniz gibi, henüz **Chrome Store** ' da yayınlanmadı, bu yüzden bu uzantıyı zip olarak indirmeniz ve daha sonra bir klasöre ayıklamanız gerekiyor (istediğiniz gibi adlandırabilirsiniz). Şimdi bu 3 basit adımı takip etmeniz gerekecek
12 |
13 |
14 | 
15 |
16 |
17 | - İlk önce chrome://extensions/ sayfasına girin
18 | - Ardından **Geliştirici Modu**'nu aktif edin
19 | - Aktif ettikten sonra **Paketlenmemiş öğe yükle** deyin
20 | - Ve uzantımız hazır , Şimdi uzantımızı açıp Spotify ile şarkılarınızı kontrol edin!
21 |
22 |
23 | ## 💸 Bağış Yap
24 |
25 | **[☕️ Kahve Ismarla](https://t.me/codermert)**
26 |
27 | ## 🌐 Telif Hakkı ve Lisans
28 |
29 | * *Copyright (C) 2022 by* [codermert](https://github.com/codermert) ❤️️
30 | * [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007] *Koşullarına göre lisanslanmıştır..*
31 |
32 | ## ♻️ İletişim
33 |
34 | *Benimle iletişime geçmek isterseniz, **Telegram**'dan mesaj göndermekten çekinmeyin;* [@codermert](https://t.me/codermert)
35 |
--------------------------------------------------------------------------------
/background.js:
--------------------------------------------------------------------------------
1 | (()=>{"use strict";var e;!function(e){e.PLAYBACK="playingTrack",e.TOKEN="token",e.SHOW_DONATION="show_1",e.EXPIRED_DONATION_TIME="expired",e.DEVICE="device",e.PREVIOUS_VOLUME="prevVol"}(e||(e={}));const t="spotify-extension-search-on-spotify";var n,o;!function(e){e[e.LOUD=67]="LOUD",e[e.MEDIUM=50]="MEDIUM",e[e.OFF=0]="OFF"}(n||(n={})),function(e){e.track="track",e.episode="episode"}(o||(o={}));function c(){!function(){const e=new Date,t=11===e.getMonth()&&e.getDate()>5,n=0===e.getMonth()&&e.getDate()<=6;return t||n}()?chrome.action.setIcon({path:"images/spotify-mini-player-128.png"}):chrome.action.setIcon({path:"images/spotify-mini-player-xmas-128.png"})}c(),setInterval(c,3600),chrome.runtime.onInstalled.addListener((function(){chrome.declarativeContent.onPageChanged.removeRules(void 0,(function(){chrome.declarativeContent.onPageChanged.addRules([{conditions:[new chrome.declarativeContent.PageStateMatcher({})],actions:[new chrome.declarativeContent.ShowPageAction]}])})),chrome.contextMenus.create({id:t,title:'Spotify ile ara "%s"',contexts:["selection"]})})),chrome.contextMenus.onClicked.addListener((function(e){e.menuItemId===t&&chrome.tabs.create({url:`https://open.spotify.com/search/${e.selectionText}`})}))})();
--------------------------------------------------------------------------------
/images/spotify-mini-player-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codermert/spotifyextension/7bc3129142127257b4b7d06aad36e3bf51b6d95b/images/spotify-mini-player-128.png
--------------------------------------------------------------------------------
/images/spotify-mini-player-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codermert/spotifyextension/7bc3129142127257b4b7d06aad36e3bf51b6d95b/images/spotify-mini-player-16.png
--------------------------------------------------------------------------------
/images/spotify-mini-player-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codermert/spotifyextension/7bc3129142127257b4b7d06aad36e3bf51b6d95b/images/spotify-mini-player-48.png
--------------------------------------------------------------------------------
/images/spotify-mini-player-xmas-128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codermert/spotifyextension/7bc3129142127257b4b7d06aad36e3bf51b6d95b/images/spotify-mini-player-xmas-128.png
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "update_url": "https://clients2.google.com/service/update2/crx",
3 |
4 | "name": "Spotify Player",
5 | "version": "2.4",
6 | "description": "Spotify Extension | Coder Mert",
7 | "permissions": [
8 | "contextMenus",
9 | "declarativeContent"
10 | ],
11 | "host_permissions": [
12 | "*://*.spotify.com/"
13 | ],
14 | "manifest_version": 3,
15 | "background": {
16 | "service_worker": "background.js"
17 | },
18 | "action": {
19 | "default_icon": {
20 | "16": "images/spotify-mini-player-16.png",
21 | "48": "images/spotify-mini-player-48.png",
22 | "128": "images/spotify-mini-player-128.png"
23 | },
24 | "default_title": "Spotify Extension",
25 | "default_popup": "popup.html"
26 | },
27 | "icons": {
28 | "16": "images/spotify-mini-player-16.png",
29 | "48": "images/spotify-mini-player-48.png",
30 | "128": "images/spotify-mini-player-128.png"
31 | }
32 | }
--------------------------------------------------------------------------------
/popup.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --height: 150px;
3 | --width: 440px;
4 | --left-panel-width: 222px;
5 | --right-panel-width: 218px;
6 | --font: helvetica, arial, sans-serif;
7 | --divider-height: 25px;
8 | --margin-6: 6px;
9 | --padding-3: 3px;
10 | --padding-6: 6px;
11 | --volume-animation-time: 0.2s;
12 | --volume-height: 90px;
13 |
14 | /* gives the empty space between slider and button */
15 | --volume-height-space: 5px;
16 |
17 | /* dark & light styles */
18 | --bg-light: linear-gradient(45deg, rgb(255, 227, 186) 23%, rgb(168, 214, 255) 100%);
19 | --bg-dark: linear-gradient(45deg, rgb(59, 59, 122) 0%, rgb(145, 97, 126) 100%);
20 | --text-light: rgba(0, 0, 0, 0.54);
21 | --text-dark: rgb(187, 225, 250);
22 | --text-gray: rgb(233, 233, 233);
23 | }
24 |
25 | body {
26 | font-family: var(--font);
27 | margin: 0;
28 | background-image: var(--bg-light);
29 | background-repeat: no-repeat;
30 | background-size: var(--width);
31 | width: var(--width);
32 | min-height: var(--height);
33 | }
34 |
35 | @media (prefers-color-scheme: dark) {
36 | body {
37 | background-image: var(--bg-dark);
38 | }
39 | }
40 | .container.svelte-afhvpu{display:flex;overflow:hidden;width:100%;height:var(--height);justify-content:center;color:var(--text-light);background-image:var(--bg-light);transition:box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:4px;box-shadow:0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12)}@media(prefers-color-scheme: dark){.container.svelte-afhvpu{color:var(--text-dark);background-image:var(--bg-dark)}}
41 | .link.svelte-14pww0p{font-weight:bold;color:var(--text-light)}@media(prefers-color-scheme: dark){.link.svelte-14pww0p{color:var(--text-dark)}}
42 | .dialog.svelte-c9jmh1.svelte-c9jmh1{align-items:center;justify-content:center;text-align:center;height:100%;display:flex}.dialog.svelte-c9jmh1 span.svelte-c9jmh1{padding:16px;font-size:13px;line-height:1.6}
43 | .icon-button.svelte-96wx3s{color:inherit;border:0;cursor:pointer;margin:0;display:inline-flex;outline:0;position:relative;align-items:center;user-select:none;border-radius:0;vertical-align:middle;justify-content:center;text-decoration:none;background-color:transparent;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;flex:0 0 auto;color:rgba(0, 0, 0, 0.54);padding:6px;overflow:visible;text-align:center;transition:background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;border-radius:50%;height:35px;width:35px}.icon-button.svelte-96wx3s:hover{background-color:rgba(0, 0, 0, 0.08)}
44 | .divider.svelte-18vb567{height:var(--divider-height);display:block;min-width:1px;margin-left:var(--margin-6);margin-right:var(--margin-6)}
45 | .repeat.svelte-1viucrq{position:relative}.repeat-one.svelte-1viucrq{position:absolute;top:10px;right:8px;width:9px;height:9px;border-radius:100%;font-size:6px;font-weight:bold;display:flex;line-height:1.4;justify-content:center;vertical-align:middle}.repeat-context.svelte-1viucrq{border-radius:100%;position:absolute;bottom:5px;width:4px;height:4px;left:15px;display:flex}
46 | .volume-container.svelte-dt9d0t.svelte-dt9d0t{transition:all var(--volume-animation-time) ease-in;position:absolute;top:calc(var(--volume-height) * -1 - var(--volume-height-space));left:0;right:0;opacity:0;text-align:center;transform-origin:bottom;margin-top:var(--volume-height);height:0}.volume-container.svelte-dt9d0t.svelte-dt9d0t:hover{height:var(--volume-height) !important;opacity:1;margin-top:0}.volume-wrapper.svelte-dt9d0t.svelte-dt9d0t{position:relative}.volume-input.svelte-dt9d0t.svelte-dt9d0t{-webkit-appearance:slider-vertical;width:5px;height:inherit;cursor:pointer}.volume.svelte-dt9d0t:hover~.volume-container.svelte-dt9d0t{height:var(--volume-height) !important;opacity:1;margin-top:0}
47 | .left-panel.svelte-lj5lnl{display:flex;z-index:1;padding-bottom:var(--padding-3);min-width:var(--left-panel-width)}.left-panel-main.svelte-lj5lnl{display:flex;flex-direction:column;max-width:350px}.left-panel-info.svelte-lj5lnl{flex:1 0 auto;padding:16px}.left-panel-heading.svelte-lj5lnl{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-family:'Roboto', 'Helvetica', 'Arial', sans-serif;font-weight:bold;line-height:1.334;letter-spacing:0;margin:0;text-decoration:none}.left-panel-sub-heading.svelte-lj5lnl{font-size:11px;font-family:'Roboto', 'Helvetica', 'Arial', sans-serif;font-weight:400;line-height:1.75;letter-spacing:0.00938em;margin:0;text-decoration:none;font-style:italic}.left-panel-control.svelte-lj5lnl{display:flex;align-items:center;padding-left:8px}.right-panel.svelte-lj5lnl{display:flex;min-width:var(--right-panel-width)}.image.svelte-lj5lnl{width:100%}.image-cover.svelte-lj5lnl{object-fit:cover}
48 | .donation-box.svelte-1naqg7j{background:#252626;color:var(--text-gray);padding:10px;line-height:1.4em;position:relative;border-radius:4px}.donation-link.svelte-1naqg7j{font-weight:bold;color:var(--text-gray)}.donation-close-icon.svelte-1naqg7j{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;cursor:pointer}
49 | .app.svelte-1lpwvk7{height:var(--height)}
50 |
--------------------------------------------------------------------------------
/popup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/popup.js:
--------------------------------------------------------------------------------
1 | (()=>{"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function l(t){return 0===Object.keys(t).length}function s(t,e,n,o){if(t){const r=a(t,e,n,o);return t[0](r)}}function a(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function u(t,e,n,o){if(t[2]&&o){const r=t[2](o(n));if(void 0===e.dirty)return r;if("object"==typeof r){const t=[],n=Math.max(e.dirty.length,r.length);for(let o=0;ot.removeEventListener(e,n,o)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function x(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}new Set;let C;function P(t){C=t}function _(){if(!C)throw new Error("Function called outside component initialization");return C}const O=[],T=[],N=[],S=[],E=Promise.resolve();let D=!1;function U(){D||(D=!0,E.then(L))}function M(t){N.push(t)}let A=!1;const I=new Set;function L(){if(!A){A=!0;do{for(let t=0;t{V.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const R="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let K;function W(t){t&&t.c()}function Z(t,n,i,c){const{fragment:l,on_mount:s,on_destroy:a,after_update:u}=t.$$;l&&l.m(n,i),c||M((()=>{const n=s.map(e).filter(r);a?a.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(M)}function Y(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function J(e,r,i,c,l,s,a=[-1]){const u=C;P(e);const d=e.$$={fragment:null,ctx:null,props:s,update:t,not_equal:l,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:r.context||[]),callbacks:n(),dirty:a,skip_bound:!1};let f=!1;if(d.ctx=i?i(e,r.props||{},((t,n,...o)=>{const r=o.length?o[0]:n;return d.ctx&&l(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),f&&function(t,e){-1===t.$$.dirty[0]&&(O.push(t),U(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!l(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Q{$destroy(){Y(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!l(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var X;!function(t){t.PLAYBACK="playingTrack",t.TOKEN="token",t.SHOW_DONATION="show_1",t.EXPIRED_DONATION_TIME="expired",t.DEVICE="device",t.PREVIOUS_VOLUME="prevVol"}(X||(X={}));const G="https://open.spotify.com",tt="https://api.spotify.com";var et,nt,ot;!function(t){t[t.LOUD=67]="LOUD",t[t.MEDIUM=50]="MEDIUM",t[t.OFF=0]="OFF"}(et||(et={})),function(t){t.track="track",t.episode="episode"}(nt||(nt={})),function(t){t[t.OK=200]="OK",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND"}(ot||(ot={}));var rt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,l)}s((o=o.apply(t,e||[])).next())}))};function it(t){return rt(this,void 0,void 0,(function*(){const e=`${tt}/v1/me/player?additional_types=track,episode`;try{const n=yield fetch(e,{headers:{Authorization:`Bearer ${t}`}});if(n.status!==ot.OK)throw"invalid";return yield n.json()}catch(t){return}}))}function ct(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/player/pause?device_id=${t}`,o=yield fetch(n,{method:"PUT",headers:{Authorization:`Bearer ${e}`}});if(o.status===ot.NOT_FOUND){const t=yield o.json();if(t&&t.error)throw t.error}return o}))}function lt(t,e,n){return rt(this,void 0,void 0,(function*(){const o=`${tt}/v1/me/player/play?device_id=${e}`,r={position_ms:t.progressMs},i=yield fetch(o,{method:"PUT",body:JSON.stringify(r),headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`}});if(i.status===ot.NOT_FOUND){const t=yield i.json();if(t&&t.error)throw t.error}return i}))}function st(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/player/next?device_id=${t}`,o=yield fetch(n,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(o.status===ot.NOT_FOUND){const t=yield o.json();if(t&&t.error)throw t.error}return o}))}function at(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/player/previous?device_id=${t}`,o=yield fetch(n,{method:"POST",headers:{Authorization:`Bearer ${e}`}});if(o.status===ot.NOT_FOUND){const t=yield o.json();if(t&&t.error)throw t.error}return o}))}function ut(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/tracks`,o={ids:[t.id]};return yield fetch(n,{method:"PUT",body:JSON.stringify(o),headers:{Authorization:`Bearer ${e}`}})}))}function dt(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/tracks`,o={ids:[t.id]};return yield fetch(n,{method:"DELETE",body:JSON.stringify(o),headers:{Authorization:`Bearer ${e}`}})}))}function ft(t,e,n){return rt(this,void 0,void 0,(function*(){const o=`${tt}/v1/me/player/repeat?state=${t}&device_id=${n}`,r=yield fetch(o,{method:"PUT",headers:{Authorization:`Bearer ${e}`}});if(r.status===ot.NOT_FOUND){const t=yield r.json();if(t&&t.error)throw t.error}return r}))}function ht(t,e,n){return rt(this,void 0,void 0,(function*(){const o=`${tt}/v1/me/player/volume?volume_percent=${t}&device_id=${n}`,r=yield fetch(o,{method:"PUT",headers:{Authorization:`Bearer ${e}`}});if(r.status===ot.NOT_FOUND){const t=yield r.json();if(t&&t.error)throw t.error}return r}))}function pt(t){return t&&!t.isAnonymous}class mt{static get(t){let e;try{e=JSON.parse(localStorage.getItem(t))}catch(t){e=null}return e}static set(t,e){localStorage.setItem(t,JSON.stringify(e))}static remove(t){localStorage.removeItem(t)}}function vt(t){if(t)return{[nt.track]:gt.bind(null,t),[nt.episode]:$t.bind(null,t)}[t.currently_playing_type||nt.track]}function gt(t){var e;if(!t||t&&!t.item)return;const{is_playing:n=!1,progress_ms:o,repeat_state:r,currently_playing_type:i,item:{name:c,artists:l,album:{images:s=[]},uri:a,id:u,duration_ms:d,external_urls:{spotify:f}}}=t;let h="",p="";(null==l?void 0:l.length)&&(h=l[0].name,p=l[0].external_urls.spotify);const m=(null===(e=s[1])||void 0===e?void 0:e.url)||"";let v;if(t.context){const{type:e,href:n,external_urls:o,uri:r}=t.context;v={type:e,href:n,uri:r,externalUrls:o}}return{title:c,currentlyPlayingType:i,artist:{name:h,url:p},repeatState:r,isPlaying:n,coverPhoto:m,uri:a,progressMs:o,context:v,durationMs:d,trackUrl:f,id:u}}function $t(t){var e;if(!t||t&&!t.item)return;const{is_playing:n,progress_ms:o,repeat_state:r,currently_playing_type:i,item:{name:c,show:{publisher:l,id:s},images:a,uri:u,id:d,duration_ms:f,external_urls:{spotify:h}}}=t,p=`${G}/show/${s}`,m=(null===(e=a[1])||void 0===e?void 0:e.url)||"";let v;if(t.context){const{type:e,href:n,external_urls:o,uri:r}=t.context;v={type:e,href:n,uri:r,externalUrls:o}}return{title:c,currentlyPlayingType:i,artist:{name:l,url:p},repeatState:r,isPlaying:n,coverPhoto:m,uri:u,progressMs:o,context:v,durationMs:f,trackUrl:h,id:d}}var yt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,l)}s((o=o.apply(t,e||[])).next())}))};function wt(t,e,n){return yt(this,void 0,void 0,(function*(){let o,r=e;switch(r||t||(o="nothing"),r&&!r.item&&(o="no-song-playing"),o){case"nothing":case"no-song-playing":r=yield function(t){return rt(this,void 0,void 0,(function*(){const e=`${tt}/v1/me/player/recently-played`;try{const n=yield fetch(e,{headers:{Authorization:`Bearer ${t}`}}),o=yield n.json();if(o&&o.items.length){const{track:t,context:e}=o.items[0];return{item:t,context:e}}}catch(t){return}}))}(n),r&&r.items&&r.items.length&&(r={item:r.items[0].track})}if(vt(r)&&(r=vt(r)()),r&&"episode"!==r.currentlyPlayingType){const t=yield function(t,e){return rt(this,void 0,void 0,(function*(){const n=`${tt}/v1/me/tracks/contains?ids=${e}`;try{const e=yield fetch(n,{headers:{Authorization:`Bearer ${t}`}});return(yield e.json())[0]}catch(t){return}}))}(n,r.id);r.isSave=t}return r}))}var bt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,l)}s((o=o.apply(t,e||[])).next())}))};function kt(t,e){return bt(this,void 0,void 0,(function*(){const n=mt.get(X.PLAYBACK);let o=yield wt(n,t,e);var r,i;return i=o,!(r=n)||i&&i.title!==r.title||i&&i.currentlyPlayingType!==r.currentlyPlayingType||i&&i.isPlaying!==r.isPlaying||i&&i.uri!==r.uri||i&&i.uri===r.uri&&i.progressMs!==r.progressMs||i&&i.uri===r.uri&&i.isSave!==r.isSave||i&&i.uri===r.uri&&i.repeatState!==r.repeatState?mt.set(X.PLAYBACK,o):o=o?n:Object.assign(Object.assign({},n),{isPlaying:!1}),o}))}var xt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,l)}s((o=o.apply(t,e||[])).next())}))};function Ct(){return xt(this,void 0,void 0,(function*(){let t=mt.get(X.TOKEN);return function(t){return!!t&&(new Date).getTime()<=t.accessTokenExpirationTimestampMs-6e4}(t)||(mt.remove(X.TOKEN),t=yield function(){return rt(this,void 0,void 0,(function*(){let t={clientId:null,accessToken:null,accessTokenExpirationTimestampMs:null,isAnonymous:null};try{const e=`${G}/get_access_token`,n=yield fetch(e);t=yield n.json()}catch(t){}return t}))}(),pt(t)&&mt.set(X.TOKEN,t)),t}))}function Pt(t){mt.set(X.PREVIOUS_VOLUME,t)}function _t(t){let e;return e=t>=et.LOUD?"loud":t===et.OFF?"muted":"medium",e}function Ot(t){let e,n;const o=t[1].default,r=s(o,t,t[0],null);return{c(){e=m("main"),r&&r.c(),b(e,"class","container svelte-afhvpu")},m(t,o){h(t,e,o),r&&r.m(e,null),n=!0},p(t,[e]){r&&r.p&&(!n||1&e)&&d(r,o,t,t[0],e,null,null)},i(t){n||(F(r,t),n=!0)},o(t){q(r,t),n=!1},d(t){t&&p(e),r&&r.d(t)}}}function Tt(t,e,n){let{$$slots:o={},$$scope:r}=e;return t.$$set=t=>{"$$scope"in t&&n(0,r=t.$$scope)},[r,o]}const Nt=class extends Q{constructor(t){super(),J(this,t,Tt,Ot,c,{})}};function St(t){let e,n;const o=t[3].default,r=s(o,t,t[2],null);return{c(){e=m("a"),r&&r.c(),b(e,"class","link svelte-14pww0p"),b(e,"href",t[0]),b(e,"target",t[1])},m(t,o){h(t,e,o),r&&r.m(e,null),n=!0},p(t,[i]){r&&r.p&&(!n||4&i)&&d(r,o,t,t[2],i,null,null),(!n||1&i)&&b(e,"href",t[0]),(!n||2&i)&&b(e,"target",t[1])},i(t){n||(F(r,t),n=!0)},o(t){q(r,t),n=!1},d(t){t&&p(e),r&&r.d(t)}}}function Et(t,e,n){let{$$slots:o={},$$scope:r}=e,{href:i=""}=e,{target:c=""}=e;return t.$$set=t=>{"href"in t&&n(0,i=t.href),"target"in t&&n(1,c=t.target),"$$scope"in t&&n(2,r=t.$$scope)},[i,c,r,o]}const Dt=class extends Q{constructor(t){super(),J(this,t,Et,St,c,{href:0,target:1})}};function Ut(t){let e,n;return e=new Nt({props:{$$slots:{default:[It]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Mt(t){let e;return{c(){e=g("Desktop App")},m(t,n){h(t,e,n)},d(t){t&&p(e)}}}function At(t){let e;return{c(){e=g("Web Player")},m(t,n){h(t,e,n)},d(t){t&&p(e)}}}function It(t){let e,n,o,r,i,c,l,s,a,u,d,v,y,w,k,x,C;return a=new Dt({props:{href:"spotify:",$$slots:{default:[Mt]},$$scope:{ctx:t}}}),d=new Dt({props:{target:"_blank",href:"https://open.spotify.com/",$$slots:{default:[At]},$$scope:{ctx:t}}}),{c(){e=m("div"),n=m("div"),o=m("span"),o.innerHTML="Oops!!! Your\n Spotify app\n is not running",r=$(),i=m("br"),c=$(),l=m("span"),s=g("Click to open "),W(a.$$.fragment),u=g(" or "),W(d.$$.fragment),v=g(" & Play something"),y=$(),w=m("br"),k=$(),x=m("span"),x.textContent="😎 😁 😘",b(o,"class","svelte-c9jmh1"),b(l,"class","svelte-c9jmh1"),b(x,"class","svelte-c9jmh1"),b(e,"class","dialog svelte-c9jmh1")},m(t,p){h(t,e,p),f(e,n),f(n,o),f(n,r),f(n,i),f(n,c),f(n,l),f(l,s),Z(a,l,null),f(l,u),Z(d,l,null),f(l,v),f(n,y),f(n,w),f(n,k),f(n,x),C=!0},p(t,e){const n={};2&e&&(n.$$scope={dirty:e,ctx:t}),a.$set(n);const o={};2&e&&(o.$$scope={dirty:e,ctx:t}),d.$set(o)},i(t){C||(F(a.$$.fragment,t),F(d.$$.fragment,t),C=!0)},o(t){q(a.$$.fragment,t),q(d.$$.fragment,t),C=!1},d(t){t&&p(e),Y(a),Y(d)}}}function Lt(t){let e,n;return e=new Nt({props:{$$slots:{default:[Vt]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function zt(t){let e;return{c(){e=g("Spotify")},m(t,n){h(t,e,n)},d(t){t&&p(e)}}}function Vt(t){let e,n,o,r,i,c;return i=new Dt({props:{href:"https://accounts.spotify.com/login",target:"_blank",$$slots:{default:[zt]},$$scope:{ctx:t}}}),{c(){e=m("div"),n=m("span"),o=g("Log in on\n "),r=m("b"),W(i.$$.fragment),b(n,"class","svelte-c9jmh1"),b(e,"class","dialog svelte-c9jmh1")},m(t,l){h(t,e,l),f(e,n),f(n,o),f(n,r),Z(i,r,null),c=!0},p(t,e){const n={};2&e&&(n.$$scope={dirty:e,ctx:t}),i.$set(n)},i(t){c||(F(i.$$.fragment,t),c=!0)},o(t){q(i.$$.fragment,t),c=!1},d(t){t&&p(e),Y(i)}}}function jt(t){let e,n,o,r="not-open-device"===t[0]&&Ut(t),i="login"===t[0]&&Lt(t);return{c(){r&&r.c(),e=$(),i&&i.c(),n=y()},m(t,c){r&&r.m(t,c),h(t,e,c),i&&i.m(t,c),h(t,n,c),o=!0},p(t,[o]){"not-open-device"===t[0]?r?1&o&&F(r,1):(r=Ut(t),r.c(),F(r,1),r.m(e.parentNode,e)):r&&(B(),q(r,1,1,(()=>{r=null})),H()),"login"===t[0]?i?1&o&&F(i,1):(i=Lt(t),i.c(),F(i,1),i.m(n.parentNode,n)):i&&(B(),q(i,1,1,(()=>{i=null})),H())},i(t){o||(F(r),F(i),o=!0)},o(t){q(r),q(i),o=!1},d(t){r&&r.d(t),t&&p(e),i&&i.d(t),t&&p(n)}}}function Bt(t,e,n){let{variant:o}=e;return t.$$set=t=>{"variant"in t&&n(0,o=t.variant)},[o]}const Ht=class extends Q{constructor(t){super(),J(this,t,Bt,jt,c,{variant:0})}};function Ft(e){let n,o,r;return{c(){n=v("svg"),o=v("path"),r=v("path"),b(o,"d","M6 6h2v12H6zm3.5 6l8.5 6V6z"),b(r,"d","M0 0h24v24H0z"),b(r,"fill","none"),x(n,"fill",e[2]),b(n,"viewBox","0 0 24 24"),b(n,"width",e[0]),b(n,"height",e[1])},m(t,e){h(t,n,e),f(n,o),f(n,r)},p(t,[e]){4&e&&x(n,"fill",t[2]),1&e&&b(n,"width",t[0]),2&e&&b(n,"height",t[1])},i:t,o:t,d(t){t&&p(n)}}}function qt(t,e,n){let{width:o=24}=e,{height:r=24}=e,{color:i}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height),"color"in t&&n(2,i=t.color)},[o,r,i]}const Rt=class extends Q{constructor(t){super(),J(this,t,qt,Ft,c,{width:0,height:1,color:2})}};function Kt(e){let n,o,r;return{c(){n=v("svg"),o=v("path"),r=v("path"),b(o,"d","M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"),b(r,"d","M0 0h24v24H0z"),b(r,"fill","none"),x(n,"fill",e[2]),b(n,"viewBox","0 0 24 24"),b(n,"width",e[0]),b(n,"height",e[1])},m(t,e){h(t,n,e),f(n,o),f(n,r)},p(t,[e]){4&e&&x(n,"fill",t[2]),1&e&&b(n,"width",t[0]),2&e&&b(n,"height",t[1])},i:t,o:t,d(t){t&&p(n)}}}function Wt(t,e,n){let{width:o=24}=e,{height:r=24}=e,{color:i}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height),"color"in t&&n(2,i=t.color)},[o,r,i]}const Zt=class extends Q{constructor(t){super(),J(this,t,Wt,Kt,c,{width:0,height:1,color:2})}};function Yt(e){let n,o,r;return{c(){n=v("svg"),o=v("path"),r=v("path"),b(o,"d","M8 5v14l11-7z"),b(r,"d","M0 0h24v24H0z"),b(r,"fill","none"),x(n,"fill",e[2]),b(n,"viewBox","0 0 24 24"),b(n,"width",e[0]),b(n,"height",e[1])},m(t,e){h(t,n,e),f(n,o),f(n,r)},p(t,[e]){4&e&&x(n,"fill",t[2]),1&e&&b(n,"width",t[0]),2&e&&b(n,"height",t[1])},i:t,o:t,d(t){t&&p(n)}}}function Jt(t,e,n){let{width:o=24}=e,{height:r=24}=e,{color:i}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height),"color"in t&&n(2,i=t.color)},[o,r,i]}const Qt=class extends Q{constructor(t){super(),J(this,t,Jt,Yt,c,{width:0,height:1,color:2})}};function Xt(e){let n,o,r;return{c(){n=v("svg"),o=v("path"),r=v("path"),b(o,"d","M6 19h4V5H6v14zm8-14v14h4V5h-4z"),b(r,"d","M0 0h24v24H0z"),b(r,"fill","none"),x(n,"fill",e[2]),b(n,"viewBox","0 0 24 24"),b(n,"width",e[0]),b(n,"height",e[1])},m(t,e){h(t,n,e),f(n,o),f(n,r)},p(t,[e]){4&e&&x(n,"fill",t[2]),1&e&&b(n,"width",t[0]),2&e&&b(n,"height",t[1])},i:t,o:t,d(t){t&&p(n)}}}function Gt(t,e,n){let{width:o=24}=e,{height:r=24}=e,{color:i}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height),"color"in t&&n(2,i=t.color)},[o,r,i]}const te=class extends Q{constructor(t){super(),J(this,t,Gt,Xt,c,{width:0,height:1,color:2})}};function ee(t){let e,n;return{c(){e=v("svg"),n=v("path"),b(n,"d","m256 455.515625c-7.289062 0-14.316406-2.640625-19.792969-7.4375-20.683593-18.085937-40.625-35.082031-58.21875-50.074219l-.089843-.078125c-51.582032-43.957031-96.125-81.917969-127.117188-119.3125-34.644531-41.804687-50.78125-81.441406-50.78125-124.742187 0-42.070313 14.425781-80.882813 40.617188-109.292969 26.503906-28.746094 62.871093-44.578125 102.414062-44.578125 29.554688 0 56.621094 9.34375 80.445312 27.769531 12.023438 9.300781 22.921876 20.683594 32.523438 33.960938 9.605469-13.277344 20.5-24.660157 32.527344-33.960938 23.824218-18.425781 50.890625-27.769531 80.445312-27.769531 39.539063 0 75.910156 15.832031 102.414063 44.578125 26.191406 28.410156 40.613281 67.222656 40.613281 109.292969 0 43.300781-16.132812 82.9375-50.777344 124.738281-30.992187 37.398437-75.53125 75.355469-127.105468 119.308594-17.625 15.015625-37.597657 32.039062-58.328126 50.167969-5.472656 4.789062-12.503906 7.429687-19.789062 7.429687zm-112.96875-425.523437c-31.066406 0-59.605469 12.398437-80.367188 34.914062-21.070312 22.855469-32.675781 54.449219-32.675781 88.964844 0 36.417968 13.535157 68.988281 43.882813 105.605468 29.332031 35.394532 72.960937 72.574219 123.476562 115.625l.09375.078126c17.660156 15.050781 37.679688 32.113281 58.515625 50.332031 20.960938-18.253907 41.011719-35.34375 58.707031-50.417969 50.511719-43.050781 94.136719-80.222656 123.46875-115.617188 30.34375-36.617187 43.878907-69.1875 43.878907-105.605468 0-34.515625-11.605469-66.109375-32.675781-88.964844-20.757813-22.515625-49.300782-34.914062-80.363282-34.914062-22.757812 0-43.652344 7.234374-62.101562 21.5-16.441406 12.71875-27.894532 28.796874-34.609375 40.046874-3.453125 5.785157-9.53125 9.238282-16.261719 9.238282s-12.808594-3.453125-16.261719-9.238282c-6.710937-11.25-18.164062-27.328124-34.609375-40.046874-18.449218-14.265626-39.34375-21.5-62.097656-21.5zm0 0"),x(e,"fill",t[1]),b(e,"height",t[0]),b(e,"viewBox","0 -28 512.001 512")},m(t,o){h(t,e,o),f(e,n)},p(t,n){2&n&&x(e,"fill",t[1]),1&n&&b(e,"height",t[0])},d(t){t&&p(e)}}}function ne(t){let e,n;return{c(){e=v("svg"),n=v("path"),b(n,"d","m471.382812 44.578125c-26.503906-28.746094-62.871093-44.578125-102.410156-44.578125-29.554687 0-56.621094 9.34375-80.449218 27.769531-12.023438 9.300781-22.917969 20.679688-32.523438 33.960938-9.601562-13.277344-20.5-24.660157-32.527344-33.960938-23.824218-18.425781-50.890625-27.769531-80.445312-27.769531-39.539063 0-75.910156 15.832031-102.414063 44.578125-26.1875 28.410156-40.613281 67.222656-40.613281 109.292969 0 43.300781 16.136719 82.9375 50.78125 124.742187 30.992188 37.394531 75.535156 75.355469 127.117188 119.3125 17.613281 15.011719 37.578124 32.027344 58.308593 50.152344 5.476563 4.796875 12.503907 7.4375 19.792969 7.4375 7.285156 0 14.316406-2.640625 19.785156-7.429687 20.730469-18.128907 40.707032-35.152344 58.328125-50.171876 51.574219-43.949218 96.117188-81.90625 127.109375-119.304687 34.644532-41.800781 50.777344-81.4375 50.777344-124.742187 0-42.066407-14.425781-80.878907-40.617188-109.289063zm0 0"),x(e,"fill",t[1]),b(e,"height",t[0]),b(e,"viewBox","0 -28 512.00002 512")},m(t,o){h(t,e,o),f(e,n)},p(t,n){2&n&&x(e,"fill",t[1]),1&n&&b(e,"height",t[0])},d(t){t&&p(e)}}}function oe(e){let n,o,r="outline"===e[2]&&ee(e),i="fill"===e[2]&&ne(e);return{c(){r&&r.c(),n=$(),i&&i.c(),o=y()},m(t,e){r&&r.m(t,e),h(t,n,e),i&&i.m(t,e),h(t,o,e)},p(t,[e]){"outline"===t[2]?r?r.p(t,e):(r=ee(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),"fill"===t[2]?i?i.p(t,e):(i=ne(t),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:t,o:t,d(t){r&&r.d(t),t&&p(n),i&&i.d(t),t&&p(o)}}}function re(t,e,n){let{height:o=16}=e,{color:r}=e,{variant:i="outline"}=e;return t.$$set=t=>{"height"in t&&n(0,o=t.height),"color"in t&&n(1,r=t.color),"variant"in t&&n(2,i=t.variant)},[o,r,i]}const ie=class extends Q{constructor(t){super(),J(this,t,re,oe,c,{height:0,color:1,variant:2})}};function ce(t){let e,n,o,r;return{c(){e=v("svg"),n=v("path"),o=v("path"),r=v("path"),b(n,"d","M278.944 2.57692C273.376 -0.0790772 266.816 0.624923 262.016 4.49692L106.368 129.009H32C14.368 129.009 0 143.377 0 161.009V289.009C0 306.673 14.368 321.009 32 321.009H106.368L261.984 445.521C264.896 447.825 268.448 449.009 272 449.009C274.368 449.009 276.736 448.465 278.944 447.409C284.48 444.753 288 439.153 288 433.009V17.0089C288 10.8649 284.48 5.26492 278.944 2.57692Z "),x(n,"fill",t[2]),b(o,"d","M368.992 111.857C362.688 105.649 352.576 105.745 346.368 111.985C340.16 118.289 340.224 128.401 346.496 134.641C370.688 158.513 384 190.609 384 225.009C384 259.409 370.688 291.505 346.496 315.377C340.224 321.553 340.16 331.697 346.368 338.001C349.504 341.169 353.632 342.737 357.728 342.737C361.792 342.737 365.856 341.201 368.992 338.097C399.328 308.241 416 268.049 416 225.009C416 181.969 399.328 141.777 368.992 111.857Z"),x(o,"fill",t[2]),b(r,"d","M414.144 66.7692C407.84 60.5292 397.728 60.5932 391.488 66.8652C385.28 73.1372 385.344 83.2812 391.584 89.4892C427.968 125.553 448 173.681 448 225.009C448 276.337 427.968 324.433 391.584 360.497C385.344 366.737 385.28 376.881 391.488 383.153C394.656 386.289 398.752 387.857 402.848 387.857C406.912 387.857 411.008 386.321 414.144 383.217C456.64 341.137 480 284.945 480 225.009C480 165.073 456.64 108.881 414.144 66.7692Z"),x(r,"fill",t[2]),b(e,"class","volume-icon"),b(e,"width",t[0]),b(e,"height",t[1]),b(e,"viewBox","0 0 480 450")},m(t,i){h(t,e,i),f(e,n),f(e,o),f(e,r)},p(t,i){4&i&&x(n,"fill",t[2]),4&i&&x(o,"fill",t[2]),4&i&&x(r,"fill",t[2]),1&i&&b(e,"width",t[0]),2&i&&b(e,"height",t[1])},d(t){t&&p(e)}}}function le(t){let e,n,o;return{c(){e=v("svg"),n=v("path"),o=v("path"),b(n,"d","M278.944 1.58669C273.376 -1.06931 266.816 -0.365312 262.016 3.50669L106.368 128.019H32C14.368 128.019 0 142.387 0 160.019V288.019C0 305.683 14.368 320.019 32 320.019H106.368L261.984 444.531C264.896 446.835 268.448 448.019 272 448.019C274.368 448.019 276.736 447.475 278.944 446.419C284.48 443.763 288 438.163 288 432.019V16.0187C288 9.87469 284.48 4.27469 278.944 1.58669Z"),x(n,"fill",t[2]),b(o,"d","M421.75 224.005L468.155 177.6C473.282 172.473 473.282 164.161 468.155 159.041L461.968 152.855C456.839 147.726 448.527 147.726 443.408 152.855L397.005 199.258L350.6 152.845C345.473 147.718 337.161 147.718 332.041 152.845L325.845 159.032C320.718 164.161 320.718 172.473 325.845 177.592L372.258 224.005L325.855 270.408C320.726 275.537 320.726 283.849 325.855 288.968L332.041 295.155C337.169 300.282 345.481 300.282 350.6 295.155L397.005 248.75L443.408 295.155C448.537 300.282 456.849 300.282 461.968 295.155L468.155 288.968C473.282 283.839 473.282 275.527 468.155 270.408L421.75 224.005Z"),x(o,"fill",t[2]),b(e,"class","volume-icon"),b(e,"width",t[0]),b(e,"height",t[1]),b(e,"viewBox","0 0 480 449")},m(t,r){h(t,e,r),f(e,n),f(e,o)},p(t,r){4&r&&x(n,"fill",t[2]),4&r&&x(o,"fill",t[2]),1&r&&b(e,"width",t[0]),2&r&&b(e,"height",t[1])},d(t){t&&p(e)}}}function se(t){let e,n,o;return{c(){e=v("svg"),n=v("path"),o=v("path"),b(n,"d","M278.944 1.58669C273.376 -1.06931 266.816 -0.365312 262.016 3.50669L106.368 128.019H32C14.368 128.019 0 142.387 0 160.019V288.019C0 305.683 14.368 320.019 32 320.019H106.368L261.984 444.531C264.896 446.835 268.448 448.019 272 448.019C274.368 448.019 276.736 447.475 278.944 446.419C284.48 443.763 288 438.163 288 432.019V16.0187C288 9.87469 284.48 4.27469 278.944 1.58669Z"),x(n,"fill",t[2]),b(o,"d","M368.992 109.867C362.688 103.659 352.576 103.755 346.368 109.995C340.16 116.299 340.224 126.411 346.496 132.651C370.688 156.523 384 188.619 384 223.019C384 257.419 370.688 289.515 346.496 313.387C340.224 319.563 340.16 329.707 346.368 336.011C349.504 339.179 353.632 340.747 357.728 340.747C361.792 340.747 365.856 339.211 368.992 336.107C399.328 306.251 416 266.059 416 223.019C416 179.979 399.328 139.787 368.992 109.867Z"),x(o,"fill",t[2]),b(e,"class","volume-icon"),b(e,"width",t[0]),b(e,"height",t[1]),b(e,"viewBox","0 0 480 449")},m(t,r){h(t,e,r),f(e,n),f(e,o)},p(t,r){4&r&&x(n,"fill",t[2]),4&r&&x(o,"fill",t[2]),1&r&&b(e,"width",t[0]),2&r&&b(e,"height",t[1])},d(t){t&&p(e)}}}function ae(e){let n,o,r,i="loud"===e[3]&&ce(e),c="muted"===e[3]&&le(e),l="medium"===e[3]&&se(e);return{c(){i&&i.c(),n=$(),c&&c.c(),o=$(),l&&l.c(),r=y()},m(t,e){i&&i.m(t,e),h(t,n,e),c&&c.m(t,e),h(t,o,e),l&&l.m(t,e),h(t,r,e)},p(t,[e]){"loud"===t[3]?i?i.p(t,e):(i=ce(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),"muted"===t[3]?c?c.p(t,e):(c=le(t),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null),"medium"===t[3]?l?l.p(t,e):(l=se(t),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null)},i:t,o:t,d(t){i&&i.d(t),t&&p(n),c&&c.d(t),t&&p(o),l&&l.d(t),t&&p(r)}}}function ue(t,e,n){let{width:o=14}=e,{height:r=13}=e,{color:i}=e,{variant:c="loud"}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height),"color"in t&&n(2,i=t.color),"variant"in t&&n(3,c=t.variant)},[o,r,i,c]}const de=class extends Q{constructor(t){super(),J(this,t,ue,ae,c,{width:0,height:1,color:2,variant:3})}};function fe(e){let n,o,r,i,c,l;return{c(){n=v("svg"),o=v("g"),r=v("g"),i=v("g"),c=v("path"),l=v("path"),b(c,"d","M482.197,374.266l-78.717-45.448c-15.89-9.174-35.829,2.308-35.829,20.686v27.587H151.058\n C87.461,377.09,35.721,325.351,35.721,261.753c0-9.864-7.997-17.86-17.86-17.86c-9.864,0-17.86,7.997-17.86,17.86\n c0,83.294,67.765,151.058,151.058,151.058h216.591v27.587c0,18.347,19.913,29.876,35.829,20.686l78.717-45.447\n C498.086,406.465,498.113,383.456,482.197,374.266z"),b(l,"d","M360.942,99.189H144.349V71.601c0-18.347-19.913-29.876-35.829-20.686L29.803,96.362\n c-15.889,9.173-15.917,32.182,0,41.372l78.717,45.448c15.89,9.174,35.829-2.309,35.829-20.686v-27.587h216.593\n c63.598,0,115.337,51.739,115.337,115.337c0,9.864,7.997,17.86,17.86,17.86c9.864,0,17.86-7.997,17.86-17.86\n C512,166.953,444.235,99.189,360.942,99.189z"),x(n,"fill",e[1]),b(n,"height",e[0]),b(n,"viewBox","0 0 512 512")},m(t,e){h(t,n,e),f(n,o),f(o,r),f(r,i),f(i,c),f(i,l)},p(t,[e]){2&e&&x(n,"fill",t[1]),1&e&&b(n,"height",t[0])},i:t,o:t,d(t){t&&p(n)}}}function he(t,e,n){let{height:o=16}=e,{color:r}=e;return t.$$set=t=>{"height"in t&&n(0,o=t.height),"color"in t&&n(1,r=t.color)},[o,r]}const pe=class extends Q{constructor(t){super(),J(this,t,he,fe,c,{height:0,color:1})}};function me(e){let n,o,r,i;return{c(){n=v("svg"),o=v("path"),r=v("path"),i=v("path"),b(o,"fill","#aec0d3"),b(o,"d","m256 512c-141.160156 0-256-114.839844-256-256s114.839844-256 256-256 256 114.839844 256 256-114.839844 256-256 256zm0-475.429688c-120.992188 0-219.429688 98.4375-219.429688 219.429688s98.4375 219.429688 219.429688 219.429688 219.429688-98.4375 219.429688-219.429688-98.4375-219.429688-219.429688-219.429688zm0 0"),b(r,"fill","#aec0d3"),b(r,"d","m347.429688 365.714844c-4.679688 0-9.359376-1.785156-12.929688-5.359375l-182.855469-182.855469c-7.144531-7.144531-7.144531-18.714844 0-25.855469 7.140625-7.140625 18.714844-7.144531 25.855469 0l182.855469 182.855469c7.144531 7.144531 7.144531 18.714844 0 25.855469-3.570313 3.574219-8.246094 5.359375-12.925781 5.359375zm0 0"),b(i,"fill","#aec0d3"),b(i,"d","m164.570312 365.714844c-4.679687 0-9.355468-1.785156-12.925781-5.359375-7.144531-7.140625-7.144531-18.714844 0-25.855469l182.855469-182.855469c7.144531-7.144531 18.714844-7.144531 25.855469 0 7.140625 7.140625 7.144531 18.714844 0 25.855469l-182.855469 182.855469c-3.570312 3.574219-8.25 5.359375-12.929688 5.359375zm0 0"),b(n,"width",e[0]),b(n,"height",e[1]),b(n,"viewBox","0 0 512 512")},m(t,e){h(t,n,e),f(n,o),f(n,r),f(n,i)},p(t,[e]){1&e&&b(n,"width",t[0]),2&e&&b(n,"height",t[1])},i:t,o:t,d(t){t&&p(n)}}}function ve(t,e,n){let{width:o=15}=e,{height:r=15}=e;return t.$$set=t=>{"width"in t&&n(0,o=t.width),"height"in t&&n(1,r=t.height)},[o,r]}const ge=class extends Q{constructor(t){super(),J(this,t,ve,me,c,{width:0,height:1})}};function $e(t){let e,n;return e=new Rt({props:{color:t[0]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function ye(t){let e,n;return e=new Zt({props:{color:t[0]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function we(t){let e,n;return e=new Qt({props:{color:t[0]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function be(t){let e,n;return e=new te({props:{color:t[0]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function ke(t){let e,n;return e=new ie({props:{color:t[0],variant:"outline"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function xe(t){let e,n;return e=new ie({props:{color:t[0],variant:"fill"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Ce(t){let e,n;return e=new pe({props:{color:t[0]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Pe(t){let e,n;return e=new de({props:{color:t[0],variant:"loud"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function _e(t){let e,n;return e=new de({props:{color:t[0],variant:"muted"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Oe(t){let e,n;return e=new de({props:{color:t[0],variant:"medium"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.color=t[0]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Te(t){let e,n;return e=new ge({}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function Ne(t){let e,n,o,i,c,l,s,a,u,d,v,g,y,k,x="prev"===t[2]&&$e(t),C="next"===t[2]&&ye(t),P="play"===t[2]&&we(t),_="pause"===t[2]&&be(t),O="save"===t[2]&&ke(t),T="unsave"===t[2]&&xe(t),N="repeat"===t[2]&&Ce(t),S="loud"===t[2]&&Pe(t),E="muted"===t[2]&&_e(t),D="medium"===t[2]&&Oe(t),U="close"===t[2]&&Te();return{c(){e=m("button"),x&&x.c(),n=$(),C&&C.c(),o=$(),P&&P.c(),i=$(),_&&_.c(),c=$(),O&&O.c(),l=$(),T&&T.c(),s=$(),N&&N.c(),a=$(),S&&S.c(),u=$(),E&&E.c(),d=$(),D&&D.c(),v=$(),U&&U.c(),b(e,"role","button"),b(e,"aria-label",t[1]),b(e,"class","icon-button svelte-96wx3s")},m(p,m){var $;h(p,e,m),x&&x.m(e,null),f(e,n),C&&C.m(e,null),f(e,o),P&&P.m(e,null),f(e,i),_&&_.m(e,null),f(e,c),O&&O.m(e,null),f(e,l),T&&T.m(e,null),f(e,s),N&&N.m(e,null),f(e,a),S&&S.m(e,null),f(e,u),E&&E.m(e,null),f(e,d),D&&D.m(e,null),f(e,v),U&&U.m(e,null),g=!0,y||(k=w(e,"click",function(t){return function(e){return e.stopPropagation(),t.call(this,e)}}(($=function(){r(t[3])&&t[3].apply(this,arguments)},function(t){return t.preventDefault(),$.call(this,t)}))),y=!0)},p(r,[f]){"prev"===(t=r)[2]?x?(x.p(t,f),4&f&&F(x,1)):(x=$e(t),x.c(),F(x,1),x.m(e,n)):x&&(B(),q(x,1,1,(()=>{x=null})),H()),"next"===t[2]?C?(C.p(t,f),4&f&&F(C,1)):(C=ye(t),C.c(),F(C,1),C.m(e,o)):C&&(B(),q(C,1,1,(()=>{C=null})),H()),"play"===t[2]?P?(P.p(t,f),4&f&&F(P,1)):(P=we(t),P.c(),F(P,1),P.m(e,i)):P&&(B(),q(P,1,1,(()=>{P=null})),H()),"pause"===t[2]?_?(_.p(t,f),4&f&&F(_,1)):(_=be(t),_.c(),F(_,1),_.m(e,c)):_&&(B(),q(_,1,1,(()=>{_=null})),H()),"save"===t[2]?O?(O.p(t,f),4&f&&F(O,1)):(O=ke(t),O.c(),F(O,1),O.m(e,l)):O&&(B(),q(O,1,1,(()=>{O=null})),H()),"unsave"===t[2]?T?(T.p(t,f),4&f&&F(T,1)):(T=xe(t),T.c(),F(T,1),T.m(e,s)):T&&(B(),q(T,1,1,(()=>{T=null})),H()),"repeat"===t[2]?N?(N.p(t,f),4&f&&F(N,1)):(N=Ce(t),N.c(),F(N,1),N.m(e,a)):N&&(B(),q(N,1,1,(()=>{N=null})),H()),"loud"===t[2]?S?(S.p(t,f),4&f&&F(S,1)):(S=Pe(t),S.c(),F(S,1),S.m(e,u)):S&&(B(),q(S,1,1,(()=>{S=null})),H()),"muted"===t[2]?E?(E.p(t,f),4&f&&F(E,1)):(E=_e(t),E.c(),F(E,1),E.m(e,d)):E&&(B(),q(E,1,1,(()=>{E=null})),H()),"medium"===t[2]?D?(D.p(t,f),4&f&&F(D,1)):(D=Oe(t),D.c(),F(D,1),D.m(e,v)):D&&(B(),q(D,1,1,(()=>{D=null})),H()),"close"===t[2]?U?4&f&&F(U,1):(U=Te(),U.c(),F(U,1),U.m(e,null)):U&&(B(),q(U,1,1,(()=>{U=null})),H()),(!g||2&f)&&b(e,"aria-label",t[1])},i(t){g||(F(x),F(C),F(P),F(_),F(O),F(T),F(N),F(S),F(E),F(D),F(U),g=!0)},o(t){q(x),q(C),q(P),q(_),q(O),q(T),q(N),q(S),q(E),q(D),q(U),g=!1},d(t){t&&p(e),x&&x.d(),C&&C.d(),P&&P.d(),_&&_.d(),O&&O.d(),T&&T.d(),N&&N.d(),S&&S.d(),E&&E.d(),D&&D.d(),U&&U.d(),y=!1,k()}}}function Se(t,e,n){let{color:o="black"}=e,{name:r=""}=e,{icon:i}=e,{onClick:c}=e;return t.$$set=t=>{"color"in t&&n(0,o=t.color),"name"in t&&n(1,r=t.name),"icon"in t&&n(2,i=t.icon),"onClick"in t&&n(3,c=t.onClick)},[o,r,i,c]}const Ee=class extends Q{constructor(t){super(),J(this,t,Se,Ne,c,{color:0,name:1,icon:2,onClick:3})}};function De(e){let n;return{c(){n=m("span"),x(n,"background-color",e[0]),b(n,"class","divider svelte-18vb567")},m(t,e){h(t,n,e)},p(t,[e]){1&e&&x(n,"background-color",t[0])},i:t,o:t,d(t){t&&p(n)}}}function Ue(t,e,n){let{color:o}=e;return t.$$set=t=>{"color"in t&&n(0,o=t.color)},[o]}const Me=class extends Q{constructor(t){super(),J(this,t,Ue,De,c,{color:0})}};function Ae(t){let e,n,o,r;return{c(){e=m("span"),n=g("1"),o=$(),r=m("span"),x(e,"background-color",t[0]),x(e,"color",t[1]),b(e,"class","repeat-one svelte-1viucrq"),x(r,"background-color",t[0]),b(r,"class","repeat-context svelte-1viucrq")},m(t,i){h(t,e,i),f(e,n),h(t,o,i),h(t,r,i)},p(t,n){1&n&&x(e,"background-color",t[0]),2&n&&x(e,"color",t[1]),1&n&&x(r,"background-color",t[0])},d(t){t&&p(e),t&&p(o),t&&p(r)}}}function Ie(t){let e;return{c(){e=m("span"),x(e,"background-color",t[0]),b(e,"class","repeat-context svelte-1viucrq")},m(t,n){h(t,e,n)},p(t,n){1&n&&x(e,"background-color",t[0])},d(t){t&&p(e)}}}function Le(t){let e,n,o,r,i;n=new Ee({props:{name:t[2],onClick:t[3],color:t[0],icon:"repeat"}});let c="track"===t[2]&&Ae(t),l="context"===t[2]&&Ie(t);return{c(){e=m("div"),W(n.$$.fragment),o=$(),c&&c.c(),r=$(),l&&l.c(),b(e,"class","repeat svelte-1viucrq")},m(t,s){h(t,e,s),Z(n,e,null),f(e,o),c&&c.m(e,null),f(e,r),l&&l.m(e,null),i=!0},p(t,[o]){const i={};4&o&&(i.name=t[2]),8&o&&(i.onClick=t[3]),1&o&&(i.color=t[0]),n.$set(i),"track"===t[2]?c?c.p(t,o):(c=Ae(t),c.c(),c.m(e,r)):c&&(c.d(1),c=null),"context"===t[2]?l?l.p(t,o):(l=Ie(t),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(t){i||(F(n.$$.fragment,t),i=!0)},o(t){q(n.$$.fragment,t),i=!1},d(t){t&&p(e),Y(n),c&&c.d(),l&&l.d()}}}function ze(t,e,n){let{color:o="black"}=e,{bgColor:r="black"}=e,{variant:i="off"}=e,{onClick:c}=e;return t.$$set=t=>{"color"in t&&n(0,o=t.color),"bgColor"in t&&n(1,r=t.bgColor),"variant"in t&&n(2,i=t.variant),"onClick"in t&&n(3,c=t.onClick)},[o,r,i,c]}const Ve=class extends Q{constructor(t){super(),J(this,t,ze,Le,c,{color:0,bgColor:1,variant:2,onClick:3})}};function je(t){let e,n,o,i,c,l,s,a,u;return o=new Ee({props:{name:t[1],onClick:t[3],color:t[0],icon:t[1]}}),{c(){e=m("div"),n=m("div"),W(o.$$.fragment),i=$(),c=m("span"),l=m("input"),b(n,"class","volume svelte-dt9d0t"),b(l,"id","volume-slider"),b(l,"class","volume-input svelte-dt9d0t"),l.value=t[2],b(l,"orient","vertical"),b(l,"type","range"),b(l,"min","0"),b(l,"max","100"),b(l,"step",Be),b(c,"class","volume-container svelte-dt9d0t"),b(e,"class","volume-wrapper svelte-dt9d0t")},m(d,p){h(d,e,p),f(e,n),Z(o,n,null),f(e,i),f(e,c),f(c,l),s=!0,a||(u=w(l,"input",(function(){r(t[4])&&t[4].apply(this,arguments)})),a=!0)},p(e,[n]){t=e;const r={};2&n&&(r.name=t[1]),8&n&&(r.onClick=t[3]),1&n&&(r.color=t[0]),2&n&&(r.icon=t[1]),o.$set(r),(!s||4&n)&&(l.value=t[2])},i(t){s||(F(o.$$.fragment,t),s=!0)},o(t){q(o.$$.fragment,t),s=!1},d(t){t&&p(e),Y(o),a=!1,u()}}}const Be=3;function He(t,e,n){let{color:o="black"}=e,{variant:r="muted"}=e,{volumePercent:i=0}=e,{onClick:c}=e,{onInput:l}=e;return t.$$set=t=>{"color"in t&&n(0,o=t.color),"variant"in t&&n(1,r=t.variant),"volumePercent"in t&&n(2,i=t.volumePercent),"onClick"in t&&n(3,c=t.onClick),"onInput"in t&&n(4,l=t.onInput)},[o,r,i,c,l]}const Fe=class extends Q{constructor(t){super(),J(this,t,He,je,c,{color:0,variant:1,volumePercent:2,onClick:3,onInput:4})}};if(!qe)var qe={map:function(t,e){var n={};return e?t.map((function(t,o){return n.index=o,e.call(n,t)})):t.slice()},naturalOrder:function(t,e){return te?1:0},sum:function(t,e){var n={};return t.reduce(e?function(t,o,r){return n.index=r,t+e.call(n,o)}:function(t,e){return t+e},0)},max:function(t,e){return Math.max.apply(null,e?qe.map(t,e):t)}};var Re=function(){function t(t,e,n){return(t<<10)+(e<<5)+n}function e(t){var e=[],n=!1;function o(){e.sort(t),n=!0}return{push:function(t){e.push(t),n=!1},peek:function(t){return n||o(),void 0===t&&(t=e.length-1),e[t]},pop:function(){return n||o(),e.pop()},size:function(){return e.length},map:function(t){return e.map(t)},debug:function(){return n||o(),e}}}function n(t,e,n,o,r,i,c){this.r1=t,this.r2=e,this.g1=n,this.g2=o,this.b1=r,this.b2=i,this.histo=c}function o(){this.vboxes=new e((function(t,e){return qe.naturalOrder(t.vbox.count()*t.vbox.volume(),e.vbox.count()*e.vbox.volume())}))}function r(e,n){if(n.count()){var o=n.r2-n.r1+1,r=n.g2-n.g1+1,i=qe.max([o,r,n.b2-n.b1+1]);if(1==n.count())return[n.copy()];var c,l,s,a,u=0,d=[],f=[];if(i==o)for(c=n.r1;c<=n.r2;c++){for(a=0,l=n.g1;l<=n.g2;l++)for(s=n.b1;s<=n.b2;s++)a+=e[t(c,l,s)]||0;d[c]=u+=a}else if(i==r)for(c=n.g1;c<=n.g2;c++){for(a=0,l=n.r1;l<=n.r2;l++)for(s=n.b1;s<=n.b2;s++)a+=e[t(l,c,s)]||0;d[c]=u+=a}else for(c=n.b1;c<=n.b2;c++){for(a=0,l=n.r1;l<=n.r2;l++)for(s=n.g1;s<=n.g2;s++)a+=e[t(l,s,c)]||0;d[c]=u+=a}return d.forEach((function(t,e){f[e]=u-t})),function(t){var e,o,r,i,l,s=t+"1",a=t+"2",h=0;for(c=n[s];c<=n[a];c++)if(d[c]>u/2){for(r=n.copy(),i=n.copy(),l=(e=c-n[s])<=(o=n[a]-c)?Math.min(n[a]-1,~~(c+o/2)):Math.max(n[s],~~(c-1-e/2));!d[l];)l++;for(h=f[l];!h&&d[l-1];)h=f[--l];return r[a]=l,i[s]=r[a]+1,[r,i]}}(i==o?"r":i==r?"g":"b")}}return n.prototype={volume:function(t){return this._volume&&!t||(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(e){var n=this.histo;if(!this._count_set||e){var o,r,i,c=0;for(o=this.r1;o<=this.r2;o++)for(r=this.g1;r<=this.g2;r++)for(i=this.b1;i<=this.b2;i++)c+=n[t(o,r,i)]||0;this._count=c,this._count_set=!0}return this._count},copy:function(){return new n(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(e){var n=this.histo;if(!this._avg||e){var o,r,i,c,l=0,s=0,a=0,u=0;for(r=this.r1;r<=this.r2;r++)for(i=this.g1;i<=this.g2;i++)for(c=this.b1;c<=this.b2;c++)l+=o=n[t(r,i,c)]||0,s+=o*(r+.5)*8,a+=o*(i+.5)*8,u+=o*(c+.5)*8;this._avg=l?[~~(s/l),~~(a/l),~~(u/l)]:[~~(8*(this.r1+this.r2+1)/2),~~(8*(this.g1+this.g2+1)/2),~~(8*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(t){var e=t[0]>>3;return gval=t[1]>>3,bval=t[2]>>3,e>=this.r1&&e<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},o.prototype={push:function(t){this.vboxes.push({vbox:t,color:t.avg()})},palette:function(){return this.vboxes.map((function(t){return t.color}))},size:function(){return this.vboxes.size()},map:function(t){for(var e=this.vboxes,n=0;n251&&o[1]>251&&o[2]>251&&(t[n].color=[255,255,255])}},{quantize:function(i,c){if(!i.length||c<2||c>256)return!1;var l=function(e){var n,o=new Array(32768);return e.forEach((function(e){n=t(e[0]>>3,e[1]>>3,e[2]>>3),o[n]=(o[n]||0)+1})),o}(i);l.forEach((function(){}));var s=function(t,e){var o,r,i,c=1e6,l=0,s=1e6,a=0,u=1e6,d=0;return t.forEach((function(t){(o=t[0]>>3)l&&(l=o),(r=t[1]>>3)a&&(a=r),(i=t[2]>>3)d&&(d=i)})),new n(c,l,s,a,u,d,e)}(i,l),a=new e((function(t,e){return qe.naturalOrder(t.count(),e.count())}));function u(t,e){for(var n,o=t.size(),i=0;i<1e3;){if(o>=e)return;if(i++>1e3)return;if((n=t.pop()).count()){var c=r(l,n),s=c[0],a=c[1];if(!s)return;t.push(s),a&&(t.push(a),o++)}else t.push(n),i++}}a.push(s),u(a,.75*c);for(var d=new e((function(t,e){return qe.naturalOrder(t.count()*t.volume(),e.count()*e.volume())}));a.size();)d.push(a.pop());u(d,c);for(var f=new o;d.size();)f.push(d.pop());return f}}}().quantize,Ke=function(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=t.naturalWidth,this.height=this.canvas.height=t.naturalHeight,this.context.drawImage(t,0,0,this.width,this.height)};Ke.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var We=function(){};We.prototype.getColor=function(t,e){return void 0===e&&(e=10),this.getPalette(t,5,e)[0]},We.prototype.getPalette=function(t,e,n){var o=function(t){var e=t.colorCount,n=t.quality;if(void 0!==e&&Number.isInteger(e)){if(1===e)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");e=Math.max(e,2),e=Math.min(e,20)}else e=10;return(void 0===n||!Number.isInteger(n)||n<1)&&(n=10),{colorCount:e,quality:n}}({colorCount:e,quality:n}),r=new Ke(t),i=function(t,e,n){for(var o=t,r=[],i=0,c=void 0,l=void 0,s=void 0,a=void 0,u=void 0;i=125)&&(l>250&&s>250&&a>250||r.push([l,s,a]));return r}(r.getImageData().data,r.width*r.height,o.quality),c=Re(i,o.colorCount);return c?c.palette():null},We.prototype.getColorFromUrl=function(t,e,n){var o=this,r=document.createElement("img");r.addEventListener("load",(function(){var i=o.getPalette(r,5,n);e(i[0],t)})),r.src=t},We.prototype.getImageData=function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){if(200==this.status){var t=new Uint8Array(this.response);i=t.length;for(var n=new Array(i),o=0;o128?u.push(t):a.push(t)}let d;switch(i){case"dark":d=o[u[0]]||Je;break;case"light":d=o[a[0]]||Ye}return e.background=r,e.text=d,e}function Xe(t,e,n){return(t+e+n)/3}function Ge(t){let e,n;return e=new Ee({props:{name:"play",onClick:t[11],color:t[19],icon:"play"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};2048&n&&(o.onClick=t[11]),524288&n&&(o.color=t[19]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function tn(t){let e,n;return e=new Ee({props:{name:"pause",onClick:t[12],color:t[19],icon:"pause"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};4096&n&&(o.onClick=t[12]),524288&n&&(o.color=t[19]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function en(t){let e,n,o,r;const i=[on,nn],c=[];function l(t,e){return t[6]?0:1}return e=l(t),n=c[e]=i[e](t),{c(){n.c(),o=y()},m(t,n){c[e].m(t,n),h(t,o,n),r=!0},p(t,r){let s=e;e=l(t),e===s?c[e].p(t,r):(B(),q(c[s],1,1,(()=>{c[s]=null})),H(),n=c[e],n?n.p(t,r):(n=c[e]=i[e](t),n.c()),F(n,1),n.m(o.parentNode,o))},i(t){r||(F(n),r=!0)},o(t){q(n),r=!1},d(t){c[e].d(t),t&&p(o)}}}function nn(t){let e,n;return e=new Ee({props:{name:"save",onClick:t[15],color:t[19],icon:"save"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};32768&n&&(o.onClick=t[15]),524288&n&&(o.color=t[19]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function on(t){let e,n;return e=new Ee({props:{name:"unsave",onClick:t[15],color:t[19],icon:"unsave"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};32768&n&&(o.onClick=t[15]),524288&n&&(o.color=t[19]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function rn(t){let e,n,o,r,i,c,l,s,a,u,d,v,y,C,P,_,O,T,N,S,E,D,U,M,A,I,L,z,V,j,R,K;d=new Ee({props:{name:"prev",onClick:t[14],color:t[19],icon:"prev"}});const J=[tn,Ge],Q=[];function X(t,e){return t[5]?0:1}y=X(t),C=Q[y]=J[y](t),_=new Ee({props:{name:"next",onClick:t[13],color:t[19],icon:"next"}}),T=new Me({props:{color:t[19]}});let G="episode"!==t[10]&&en(t);return E=new Ve({props:{onClick:t[16],bgColor:t[20],color:t[19],variant:t[7]}}),U=new Fe({props:{volumePercent:t[9],variant:t[8],onClick:t[18],onInput:t[17],color:t[19]}}),{c(){e=m("div"),n=m("div"),o=m("div"),r=m("a"),i=g(t[0]),c=$(),l=m("a"),s=g(t[3]),a=$(),u=m("div"),W(d.$$.fragment),v=$(),C.c(),P=$(),W(_.$$.fragment),O=$(),W(T.$$.fragment),N=$(),G&&G.c(),S=$(),W(E.$$.fragment),D=$(),W(U.$$.fragment),M=$(),A=m("div"),I=m("img"),x(r,"color",t[19]),b(r,"href",t[1]),b(r,"target","_blank"),b(r,"title",t[0]),b(r,"class","left-panel-heading svelte-lj5lnl"),x(l,"color",t[19]),b(l,"href",t[4]),b(l,"target","_blank"),b(l,"title",t[3]),b(l,"class","left-panel-sub-heading svelte-lj5lnl"),b(o,"class","left-panel-info svelte-lj5lnl"),b(u,"class","left-panel-control svelte-lj5lnl"),b(n,"class","left-panel-main svelte-lj5lnl"),b(e,"style",t[21]),b(e,"class","left-panel svelte-lj5lnl"),b(I,"class","image image-cover svelte-lj5lnl"),b(I,"title",L=`${t[0]} - ${t[3]}`),b(I,"alt",z=`${t[0]} - ${t[3]}`),I.src!==(V=t[2])&&b(I,"src",V),b(A,"class","right-panel svelte-lj5lnl")},m(p,m){h(p,e,m),f(e,n),f(n,o),f(o,r),f(r,i),f(o,c),f(o,l),f(l,s),f(n,a),f(n,u),Z(d,u,null),f(u,v),Q[y].m(u,null),f(u,P),Z(_,u,null),f(u,O),Z(T,u,null),f(u,N),G&&G.m(u,null),f(u,S),Z(E,u,null),f(u,D),Z(U,u,null),h(p,M,m),h(p,A,m),f(A,I),j=!0,R||(K=w(I,"load",t[22]),R=!0)},p(t,n){(!j||1&n)&&k(i,t[0]),(!j||524288&n)&&x(r,"color",t[19]),(!j||2&n)&&b(r,"href",t[1]),(!j||1&n)&&b(r,"title",t[0]),(!j||8&n)&&k(s,t[3]),(!j||524288&n)&&x(l,"color",t[19]),(!j||16&n)&&b(l,"href",t[4]),(!j||8&n)&&b(l,"title",t[3]);const o={};16384&n&&(o.onClick=t[14]),524288&n&&(o.color=t[19]),d.$set(o);let c=y;y=X(t),y===c?Q[y].p(t,n):(B(),q(Q[c],1,1,(()=>{Q[c]=null})),H(),C=Q[y],C?C.p(t,n):(C=Q[y]=J[y](t),C.c()),F(C,1),C.m(u,P));const a={};8192&n&&(a.onClick=t[13]),524288&n&&(a.color=t[19]),_.$set(a);const f={};524288&n&&(f.color=t[19]),T.$set(f),"episode"!==t[10]?G?(G.p(t,n),1024&n&&F(G,1)):(G=en(t),G.c(),F(G,1),G.m(u,S)):G&&(B(),q(G,1,1,(()=>{G=null})),H());const h={};65536&n&&(h.onClick=t[16]),1048576&n&&(h.bgColor=t[20]),524288&n&&(h.color=t[19]),128&n&&(h.variant=t[7]),E.$set(h);const p={};512&n&&(p.volumePercent=t[9]),256&n&&(p.variant=t[8]),262144&n&&(p.onClick=t[18]),131072&n&&(p.onInput=t[17]),524288&n&&(p.color=t[19]),U.$set(p),(!j||2097152&n)&&b(e,"style",t[21]),(!j||9&n&&L!==(L=`${t[0]} - ${t[3]}`))&&b(I,"title",L),(!j||9&n&&z!==(z=`${t[0]} - ${t[3]}`))&&b(I,"alt",z),(!j||4&n&&I.src!==(V=t[2]))&&b(I,"src",V)},i(t){j||(F(d.$$.fragment,t),F(C),F(_.$$.fragment,t),F(T.$$.fragment,t),F(G),F(E.$$.fragment,t),F(U.$$.fragment,t),j=!0)},o(t){q(d.$$.fragment,t),q(C),q(_.$$.fragment,t),q(T.$$.fragment,t),q(G),q(E.$$.fragment,t),q(U.$$.fragment,t),j=!1},d(t){t&&p(e),Y(d),Q[y].d(),Y(_),Y(T),G&&G.d(),Y(E),Y(U),t&&p(M),t&&p(A),R=!1,K()}}}function cn(t){let e,n;return e=new Nt({props:{$$slots:{default:[rn]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,[n]){const o={};12582911&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function ln(t,e,n){let o,r,i,{songTitle:c}=e,{songUrl:l}=e,{songPhoto:s}=e,{artistName:a}=e,{artistUrl:u}=e,{isPlaying:d}=e,{isSave:f}=e,{repeatState:h="off"}=e,{volumeState:p="medium"}=e,{volumePercent:m}=e,{currentlyPlayingType:v="track"}=e,{onPlay:g}=e,{onPause:$}=e,{onNext:y}=e,{onPrev:w}=e,{onSaveAndUnsave:b}=e,{onRepeat:k}=e,{onChangeVolume:x}=e,{onTurnOnOffVolume:C}=e;return t.$$set=t=>{"songTitle"in t&&n(0,c=t.songTitle),"songUrl"in t&&n(1,l=t.songUrl),"songPhoto"in t&&n(2,s=t.songPhoto),"artistName"in t&&n(3,a=t.artistName),"artistUrl"in t&&n(4,u=t.artistUrl),"isPlaying"in t&&n(5,d=t.isPlaying),"isSave"in t&&n(6,f=t.isSave),"repeatState"in t&&n(7,h=t.repeatState),"volumeState"in t&&n(8,p=t.volumeState),"volumePercent"in t&&n(9,m=t.volumePercent),"currentlyPlayingType"in t&&n(10,v=t.currentlyPlayingType),"onPlay"in t&&n(11,g=t.onPlay),"onPause"in t&&n(12,$=t.onPause),"onNext"in t&&n(13,y=t.onNext),"onPrev"in t&&n(14,w=t.onPrev),"onSaveAndUnsave"in t&&n(15,b=t.onSaveAndUnsave),"onRepeat"in t&&n(16,k=t.onRepeat),"onChangeVolume"in t&&n(17,x=t.onChangeVolume),"onTurnOnOffVolume"in t&&n(18,C=t.onTurnOnOffVolume)},[c,l,s,a,u,d,f,h,p,m,v,g,$,y,w,b,k,x,C,o,r,i,function(){const{background:t,text:e}=Qe(this);n(19,o=`rgb(${e[0]}, ${e[1]}, ${e[2]})`),n(20,r=`rgb(${t[0]}, ${t[1]}, ${t[2]})`),n(21,i=`background-color: ${r}; box-shadow: 10px 0px 20px 15px ${r}`)}]}const sn=class extends Q{constructor(t){super(),J(this,t,ln,cn,c,{songTitle:0,songUrl:1,songPhoto:2,artistName:3,artistUrl:4,isPlaying:5,isSave:6,repeatState:7,volumeState:8,volumePercent:9,currentlyPlayingType:10,onPlay:11,onPause:12,onNext:13,onPrev:14,onSaveAndUnsave:15,onRepeat:16,onChangeVolume:17,onTurnOnOffVolume:18})}};function an(e){let n,o,r,i,c,l,s,a;return s=new Ee({props:{name:"close",onClick:e[1],icon:"close"}}),{c(){n=m("div"),o=m("div"),o.textContent="Beni destekle lütfen 🥳",r=$(),i=m("div"),i.innerHTML='Projeye yıldız ver GitHuba Git',c=$(),l=m("span"),W(s.$$.fragment),b(l,"class","donation-close-icon svelte-1naqg7j"),b(n,"class","donation-box svelte-1naqg7j")},m(t,e){h(t,n,e),f(n,o),f(n,r),f(n,i),f(n,c),f(n,l),Z(s,l,null),a=!0},p:t,i(t){a||(F(s.$$.fragment,t),a=!0)},o(t){q(s.$$.fragment,t),a=!1},d(t){t&&p(n),Y(s)}}}function un(t){let e,n,o="not-yet"===t[0]&&an(t);return{c(){o&&o.c(),e=y()},m(t,r){o&&o.m(t,r),h(t,e,r),n=!0},p(t,[n]){"not-yet"===t[0]?o?(o.p(t,n),1&n&&F(o,1)):(o=an(t),o.c(),F(o,1),o.m(e.parentNode,e)):o&&(B(),q(o,1,1,(()=>{o=null})),H())},i(t){n||(F(o),n=!0)},o(t){q(o),n=!1},d(t){o&&o.d(t),t&&p(e)}}}function dn(t,e,n){let o=mt.get(X.SHOW_DONATION);return o||(o="not-yet",mt.set(X.SHOW_DONATION,"not-yet")),[o,function(){"not-yet"===mt.get(X.SHOW_DONATION)&&(n(0,o="showed"),mt.set(X.SHOW_DONATION,o))}]}const fn=class extends Q{constructor(t){super(),J(this,t,dn,un,c,{})}},{window:hn}=R;function pn(t){let e,n;return e=new Ht({props:{variant:"login"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function mn(t){let e,n;return e=new Ht({props:{variant:"not-open-device"}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function vn(t){let e,n;return e=new sn({props:{onPlay:t[6],onPause:t[7],onNext:t[8],onPrev:t[9],onSaveAndUnsave:t[10],onRepeat:t[11],onChangeVolume:t[13]("input"),onTurnOnOffVolume:t[12],songTitle:t[0].title,songUrl:t[0].trackUrl,songPhoto:t[0].coverPhoto,artistName:t[0].artist.name,artistUrl:t[0].artist.url,isPlaying:t[0].isPlaying,isSave:t[0].isSave,repeatState:t[0].repeatState,currentlyPlayingType:t[0].currentlyPlayingType,volumePercent:t[5],volumeState:t[4]}}),{c(){W(e.$$.fragment)},m(t,o){Z(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.songTitle=t[0].title),1&n&&(o.songUrl=t[0].trackUrl),1&n&&(o.songPhoto=t[0].coverPhoto),1&n&&(o.artistName=t[0].artist.name),1&n&&(o.artistUrl=t[0].artist.url),1&n&&(o.isPlaying=t[0].isPlaying),1&n&&(o.isSave=t[0].isSave),1&n&&(o.repeatState=t[0].repeatState),1&n&&(o.currentlyPlayingType=t[0].currentlyPlayingType),32&n&&(o.volumePercent=t[5]),16&n&&(o.volumeState=t[4]),e.$set(o)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){q(e.$$.fragment,t),n=!1},d(t){Y(e,t)}}}function gn(t){let e,n,r,i,c,l,s,a,u=t[1]&&pn(),d=t[2]&&mn(),v=t[3]&&vn(t);return c=new fn({}),{c(){e=m("div"),u&&u.c(),n=$(),d&&d.c(),r=$(),v&&v.c(),i=$(),W(c.$$.fragment),b(e,"class","app svelte-1lpwvk7")},m(o,p){h(o,e,p),u&&u.m(e,null),f(e,n),d&&d.m(e,null),f(e,r),v&&v.m(e,null),h(o,i,p),Z(c,o,p),l=!0,s||(a=[w(hn,"keydown",t[14]),w(hn,"wheel",t[13]("wheel"))],s=!0)},p(t,[o]){t[1]?u?2&o&&F(u,1):(u=pn(),u.c(),F(u,1),u.m(e,n)):u&&(B(),q(u,1,1,(()=>{u=null})),H()),t[2]?d?4&o&&F(d,1):(d=mn(),d.c(),F(d,1),d.m(e,r)):d&&(B(),q(d,1,1,(()=>{d=null})),H()),t[3]?v?(v.p(t,o),8&o&&F(v,1)):(v=vn(t),v.c(),F(v,1),v.m(e,null)):v&&(B(),q(v,1,1,(()=>{v=null})),H())},i(t){l||(F(u),F(d),F(v),F(c.$$.fragment,t),l=!0)},o(t){q(u),q(d),q(v),q(c.$$.fragment,t),l=!1},d(t){t&&p(e),u&&u.d(),d&&d.d(),v&&v.d(),t&&p(i),Y(c,t),s=!1,o(a)}}}function $n(t,e,n){var o=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function c(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,l)}s((o=o.apply(t,e||[])).next())}))};let r,{token:i=null}=e,{device:c=null}=e,{track:l=null}=e,{shouldDisplayLoginDialog:s=!1}=e,{shouldDisplayNoDeviceOpenDialog:a=!1}=e,{shouldDisplayPlayer:u=!1}=e,{volumeState:d="muted"}=e,{currentVolume:f=0}=e;const h=mt.get(X.DEVICE);var p;function m(){mt.remove(X.DEVICE),mt.remove(X.PLAYBACK),mt.remove(X.TOKEN),mt.remove(X.PREVIOUS_VOLUME),n(3,u=!1),n(2,a=!0)}function v(){return o(this,void 0,void 0,(function*(){r=yield it(i.accessToken),n(0,l=yield kt(r,i.accessToken))}))}function g(){return o(this,void 0,void 0,(function*(){try{yield lt(l,c.id,i.accessToken)}catch(t){let e=l.uri;switch(l.currentlyPlayingType){case"episode":l.context&&(e=l.context.uri)}window.location.href=e,t.status!==ot.NOT_FOUND&&m()}finally{n(0,l.isPlaying=!0,l)}}))}function $(){return o(this,void 0,void 0,(function*(){try{yield ct(c.id,i.accessToken),n(0,l.isPlaying=!1,l)}catch(t){m()}}))}function y(){return o(this,void 0,void 0,(function*(){try{yield st(c.id,i.accessToken);const t="episode"===l.currentlyPlayingType?1e3:300;setTimeout((()=>o(this,void 0,void 0,(function*(){return yield v()}))),t)}catch(t){m()}}))}function w(){return o(this,void 0,void 0,(function*(){try{yield at(c.id,i.accessToken);const t="episode"===l.currentlyPlayingType?1e3:300;setTimeout((()=>o(this,void 0,void 0,(function*(){return yield v()}))),t)}catch(t){m()}}))}function b(){return o(this,void 0,void 0,(function*(){try{let t=l.isSave;t?(yield dt(l,i.accessToken),t=!1):(yield ut(l,i.accessToken),t=!0),n(0,l.isSave=t,l)}catch(t){m()}}))}function k(){return o(this,void 0,void 0,(function*(){try{let t="off";switch(l.repeatState){case"off":t="context";break;case"context":t="track"}yield ft(t,i.accessToken,c.id),n(0,l.repeatState=t,l)}catch(t){m()}}))}function x(){return o(this,void 0,void 0,(function*(){try{switch(n(4,d=_t(f)),d){case"loud":case"medium":yield ht(et.OFF,i.accessToken,c.id),n(5,f=0);break;case"muted":const t=mt.get(X.PREVIOUS_VOLUME)||et.MEDIUM;yield ht(t,i.accessToken,c.id),n(5,f=t)}}catch(t){m()}}))}function C(){return o(this,void 0,void 0,(function*(){const t=document.getElementById("volume-slider"),e=parseInt(t.value);try{yield ht(e,i.accessToken,c.id)}catch(t){m()}Pt(e)}))}function P(){const t=document.getElementById("volume-slider").value;n(5,f=parseInt(t))}return h&&(f=h.volumePercent),p=()=>o(void 0,void 0,void 0,(function*(){n(15,i=yield Ct()),pt(i)?(r=yield it(i.accessToken),n(16,c=function(t){const e=function(t){if(!t||t&&!t.device)return;const{device:{id:e,is_active:n,is_restricted:o,name:r,type:i,volume_percent:c}}=t;return{id:e,isActive:n,isRestricted:o,name:r,type:i,volumePercent:c}}(t),n=mt.get(X.DEVICE);var o,r;return r=e,(!(o=n)||o&&r&&(o.id!==r.id||o.volumePercent!==r.volumePercent))&&mt.set(X.DEVICE,e),e||n}(r)),function(t){return!!t}(c)?(n(0,l=yield kt(r,i.accessToken)),n(3,u=!0),n(5,f=c.volumePercent),Pt(f),n(4,d=_t(f))):n(2,a=!0)):n(1,s=!0)})),_().$$.on_mount.push(p),function(t){_().$$.after_update.push(t)}((()=>{!function(){o(this,void 0,void 0,(function*(){if(!l)return;const t=l.durationMs,e=l.progressMs||0;setTimeout((()=>o(this,void 0,void 0,(function*(){v()}))),t-e+2e3)}))}();const t=mt.get(X.DEVICE)||{};mt.set(X.DEVICE,Object.assign(Object.assign({},t),{volumePercent:f})),n(4,d=_t(f))})),t.$$set=t=>{"token"in t&&n(15,i=t.token),"device"in t&&n(16,c=t.device),"track"in t&&n(0,l=t.track),"shouldDisplayLoginDialog"in t&&n(1,s=t.shouldDisplayLoginDialog),"shouldDisplayNoDeviceOpenDialog"in t&&n(2,a=t.shouldDisplayNoDeviceOpenDialog),"shouldDisplayPlayer"in t&&n(3,u=t.shouldDisplayPlayer),"volumeState"in t&&n(4,d=t.volumeState),"currentVolume"in t&&n(5,f=t.currentVolume)},[l,s,a,u,d,f,g,$,y,w,b,k,x,function(t){let e=null;return n=>o(this,void 0,void 0,(function*(){if(u){if("wheel"===t){const t=document.getElementById("volume-slider");n.deltaY>0?t.stepDown():t.stepUp()}e&&clearTimeout(e),e=setTimeout((()=>o(this,void 0,void 0,(function*(){yield C(),P()}))),30)}}))},function(t){return o(this,void 0,void 0,(function*(){if(!u)return;if(t.preventDefault(),t.repeat)return;const e=document.getElementById("volume-slider");switch(t.code){case"Space":l.isPlaying?yield $():yield g();break;case"ArrowRight":yield y();break;case"ArrowLeft":yield w();break;case"ArrowDown":e.stepDown(5),yield C(),P();break;case"ArrowUp":e.stepUp(5),yield C(),P();break;case"KeyS":yield b();break;case"KeyR":yield k();break;case"KeyM":x()}}))},i,c]}new class extends Q{constructor(t){super(),J(this,t,$n,gn,c,{token:15,device:16,track:0,shouldDisplayLoginDialog:1,shouldDisplayNoDeviceOpenDialog:2,shouldDisplayPlayer:3,volumeState:4,currentVolume:5})}}({target:document.body})})();
--------------------------------------------------------------------------------