// UserScript
// @name 4chan sounds player
// @version 3.5.0
// @namespace rccom
// @description A player designed for 4chan sounds threads.
// @author RCC
// @match ://boards.4chan.org/
// @match ://boards.4channel.org/
// @match ://desuarchive.org/
// @match ://arch.b4k.co/
// @match ://archived.moe/
// @match ://warosu.org/
// @match ://archive.nyafuu.org/
// @grant GM.getValue
// @grant GM.setValue
// @grant GM.xmlHttpRequest
// @grant GM_addValueChangeListener
// @connect 4chan.org
// @connect 4channel.org
// @connect a.4cdn.org
// @connect desu-usergeneratedcontent.xyz
// @connect arch-img.b4k.co
// @connect archive-media-0.nyafuu.org
// @connect 4cdn.org
// @connect a.pomf.cat
// @connect pomf.cat
// @connect files.catbox.moe
// @connect catbox.moe
// @connect share.dmca.gripe
// @connect z.zz.ht
// @connect z.zz.fo
// @connect zz.ht
// @connect too.lewd.se
// @connect lewd.se
// @connect *
// @run-at document-start
// @require https://raw.githubusercontent.com/richtr/NoSleep.js/07fcee254724ab1b79076fbc22f3dd447649a2eb/dist/NoSleep.min.js
// @require https://raw.githubusercontent.com/Stuk/jszip/7bbcb3873db23f6d27550cdbb6c4cc2bdeb32194/dist/jszip.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jsmediatags/3.9.5/jsmediatags.min.js
// @updateURL https://raw.githubusercontent.com/rcc11/4chan-sounds-player/master/dist/4chan-sounds-player.meta.js
// @downloadURL https://raw.githubusercontent.com/rcc11/4chan-sounds-player/master/dist/4chan-sounds-player.user.js
// /UserScript
(()=>{var e={9204:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"/>\n <path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/>\n</svg>'},5146:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"/>\n</svg>'},382:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-repeat" viewBox="0 0 16 16">\n <path d="M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"/>\n <path fill-rule="evenodd" d="M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"/>\n</svg>'},3442:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-up" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"/>\n</svg>'},3169:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrows-collapse" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 8zm7-8a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L7.5 4.293V.5A.5.5 0 0 1 8 0zm-.5 11.707l-1.146 1.147a.5.5 0 0 1-.708-.708l2-2a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 11.707V15.5a.5.5 0 0 1-1 0v-3.793z"/>\n</svg>'},9261:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrows-expand" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13A.5.5 0 0 1 1 8zM7.646.146a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1-.708.708L8.5 1.707V5.5a.5.5 0 0 1-1 0V1.707L6.354 2.854a.5.5 0 1 1-.708-.708l2-2zM8 10a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 0 1 .708-.708L7.5 14.293V10.5A.5.5 0 0 1 8 10z"/>\n</svg>'},2887:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bootstrap-reboot" viewBox="0 0 16 16">\n <path d="M1.161 8a6.84 6.84 0 1 0 6.842-6.84.58.58 0 0 1 0-1.16 8 8 0 1 1-6.556 3.412l-.663-.577a.58.58 0 0 1 .227-.997l2.52-.69a.58.58 0 0 1 .728.633l-.332 2.592a.58.58 0 0 1-.956.364l-.643-.56A6.812 6.812 0 0 0 1.16 8z"/>\n <path d="M6.641 11.671V8.843h1.57l1.498 2.828h1.314L9.377 8.665c.897-.3 1.427-1.106 1.427-2.1 0-1.37-.943-2.246-2.456-2.246H5.5v7.352h1.141zm0-3.75V5.277h1.57c.881 0 1.416.499 1.416 1.32 0 .84-.504 1.324-1.386 1.324h-1.6z"/>\n</svg>'},6145:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-in-left" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M10 3.5a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 1 1 0v2A1.5 1.5 0 0 1 9.5 14h-8A1.5 1.5 0 0 1 0 12.5v-9A1.5 1.5 0 0 1 1.5 2h8A1.5 1.5 0 0 1 11 3.5v2a.5.5 0 0 1-1 0v-2z"/>\n <path fill-rule="evenodd" d="M4.146 8.354a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H14.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3z"/>\n</svg>'},7662:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-right" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0v2z"/>\n <path fill-rule="evenodd" d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3z"/>\n</svg>'},5026:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-right-quote" viewBox="0 0 16 16">\n <path d="M2 1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h9.586a2 2 0 0 1 1.414.586l2 2V2a1 1 0 0 0-1-1H2zm12-1a2 2 0 0 1 2 2v12.793a.5.5 0 0 1-.854.353l-2.853-2.853a1 1 0 0 0-.707-.293H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h12z"/>\n <path d="M7.066 4.76A1.665 1.665 0 0 0 4 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112zm4 0A1.665 1.665 0 0 0 8 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112z"/>\n</svg>'},1776:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-square" viewBox="0 0 16 16">\n <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>\n <path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.235.235 0 0 1 .02-.022z"/>\n</svg>'},7508:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n</svg>'},611:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-up" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"/>\n</svg>'},4343:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-earmark-image" viewBox="0 0 16 16">\n <path d="M6.502 7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"/>\n <path d="M14 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5V14zM4 1a1 1 0 0 0-1 1v10l2.224-2.224a.5.5 0 0 1 .61-.075L8 11l2.157-3.02a.5.5 0 0 1 .76-.063L13 10V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4z"/>\n</svg>'},3461:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-earmark-music" viewBox="0 0 16 16">\n <path d="M11 6.64a1 1 0 0 0-1.243-.97l-1 .25A1 1 0 0 0 8 6.89v4.306A2.572 2.572 0 0 0 7 11c-.5 0-.974.134-1.338.377-.36.24-.662.628-.662 1.123s.301.883.662 1.123c.364.243.839.377 1.338.377.5 0 .974-.134 1.338-.377.36-.24.662-.628.662-1.123V8.89l2-.5V6.64z"/>\n <path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z"/>\n</svg>'},1690:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-filter" viewBox="0 0 16 16">\n <path d="M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>\n</svg>'},4718:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-fullscreen-exit" viewBox="0 0 16 16">\n <path d="M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5zm5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5zM0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zm10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4z"/>\n</svg>'},5204:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-fullscreen" viewBox="0 0 16 16">\n <path d="M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z"/>\n</svg>'},5594:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">\n <path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"/>\n <path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"/>\n</svg>'},6238:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">\n <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>\n</svg>'},9111:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-image" viewBox="0 0 16 16">\n <path d="M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/>\n <path d="M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z"/>\n</svg>'},9300:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>\n</svg>'},8370:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-layout-text-window" viewBox="0 0 16 16">\n <path d="M3 6.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm.5 2.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5z"/>\n <path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm12 1a1 1 0 0 1 1 1v1H1V2a1 1 0 0 1 1-1h12zm1 3v10a1 1 0 0 1-1 1h-2V4h3zm-4 0v11H2a1 1 0 0 1-1-1V4h10z"/>\n</svg>'},8309:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link-45deg" viewBox="0 0 16 16">\n <path d="M4.715 6.542L3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.001 1.001 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"/>\n <path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 0 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 0 0-4.243-4.243L6.586 4.672z"/>\n</svg>'},903:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-music-note-list" viewBox="0 0 16 16">\n <path d="M12 13c0 1.105-1.12 2-2.5 2S7 14.105 7 13s1.12-2 2.5-2 2.5.895 2.5 2z"/>\n <path fill-rule="evenodd" d="M12 3v10h-1V3h1z"/>\n <path d="M11 2.82a1 1 0 0 1 .804-.98l3-.6A1 1 0 0 1 16 2.22V4l-5 1V2.82z"/>\n <path fill-rule="evenodd" d="M0 11.5a.5.5 0 0 1 .5-.5H4a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 .5 7H8a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 .5 3H8a.5.5 0 0 1 0 1H.5a.5.5 0 0 1-.5-.5z"/>\n</svg>'},922:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"/>\n</svg>'},7642:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause" viewBox="0 0 16 16">\n <path d="M6 3.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5z"/>\n</svg>'},2179:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n <path d="M11.596 8.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"/>\n</svg>'},5888:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play" viewBox="0 0 16 16">\n <path d="M10.804 8L5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z"/>\n</svg>'},9821:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-circle" viewBox="0 0 16 16">\n <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>'},3877:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n</svg>'},7742:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-shuffle" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M0 3.5A.5.5 0 0 1 .5 3H1c2.202 0 3.827 1.24 4.874 2.418.49.552.865 1.102 1.126 1.532.26-.43.636-.98 1.126-1.532C9.173 4.24 10.798 3 13 3v1c-1.798 0-3.173 1.01-4.126 2.082A9.624 9.624 0 0 0 7.556 8a9.624 9.624 0 0 0 1.317 1.918C9.828 10.99 11.204 12 13 12v1c-2.202 0-3.827-1.24-4.874-2.418A10.595 10.595 0 0 1 7 9.05c-.26.43-.636.98-1.126 1.532C4.827 11.76 3.202 13 1 13H.5a.5.5 0 0 1 0-1H1c1.798 0 3.173-1.01 4.126-2.082A9.624 9.624 0 0 0 6.444 8a9.624 9.624 0 0 0-1.317-1.918C4.172 5.01 2.796 4 1 4H.5a.5.5 0 0 1-.5-.5z"/>\n <path d="M13 5.466V1.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384l-2.36 1.966a.25.25 0 0 1-.41-.192zm0 9v-3.932a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384l-2.36 1.966a.25.25 0 0 1-.41-.192z"/>\n</svg>'},9945:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-end-fill" viewBox="0 0 16 16">\n <path d="M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.693 3.3 4 3.678 4 4.308v7.384c0 .63.692 1.01 1.233.697L11.5 8.753V12a.5.5 0 0 0 1 0V4z"/>\n</svg>'},8900:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-end" viewBox="0 0 16 16">\n <path d="M12.5 4a.5.5 0 0 0-1 0v3.248L5.233 3.612C4.713 3.31 4 3.655 4 4.308v7.384c0 .653.713.998 1.233.696L11.5 8.752V12a.5.5 0 0 0 1 0V4zM5 4.633L10.804 8 5 11.367V4.633z"/>\n</svg>'},8457:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-start-fill" viewBox="0 0 16 16">\n <path d="M4 4a.5.5 0 0 1 1 0v3.248l6.267-3.636c.54-.313 1.232.066 1.232.696v7.384c0 .63-.692 1.01-1.232.697L5 8.753V12a.5.5 0 0 1-1 0V4z"/>\n</svg>'},2359:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-skip-start" viewBox="0 0 16 16">\n <path d="M4 4a.5.5 0 0 1 1 0v3.248l6.267-3.636c.52-.302 1.233.043 1.233.696v7.384c0 .653-.713.998-1.233.696L5 8.752V12a.5.5 0 0 1-1 0V4zm7.5.633L5.696 8l5.804 3.367V4.633z"/>\n</svg>'},1436:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-soundwave" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M8.5 2a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-1 0v-11a.5.5 0 0 1 .5-.5zm-2 2a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zm-6 1.5A.5.5 0 0 1 5 6v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm8 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm-10 1A.5.5 0 0 1 3 7v2a.5.5 0 0 1-1 0V7a.5.5 0 0 1 .5-.5zm12 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0V7a.5.5 0 0 1 .5-.5z"/>\n</svg>'},742:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-speaker" viewBox="0 0 16 16">\n <path d="M12 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h8zM4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H4z"/>\n <path d="M8 4.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM8 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm-3.5 1.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n</svg>'},3961:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-square" viewBox="0 0 16 16">\n <path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>\n</svg>'},6140:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-tools" viewBox="0 0 16 16">\n <path d="M1 0L0 1l2.2 3.081a1 1 0 0 0 .815.419h.07a1 1 0 0 1 .708.293l2.675 2.675-2.617 2.654A3.003 3.003 0 0 0 0 13a3 3 0 1 0 5.878-.851l2.654-2.617.968.968-.305.914a1 1 0 0 0 .242 1.023l3.356 3.356a1 1 0 0 0 1.414 0l1.586-1.586a1 1 0 0 0 0-1.414l-3.356-3.356a1 1 0 0 0-1.023-.242L10.5 9.5l-.96-.96 2.68-2.643A3.005 3.005 0 0 0 16 3c0-.269-.035-.53-.102-.777l-2.14 2.141L12 4l-.364-1.757L13.777.102a3 3 0 0 0-3.675 3.68L7.462 6.46 4.793 3.793a1 1 0 0 1-.293-.707v-.071a1 1 0 0 0-.419-.814L1 0zm9.646 10.646a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708zM3 11l.471.242.529.026.287.445.445.287.026.529L5 13l-.242.471-.026.529-.445.287-.287.445-.529.026L3 15l-.471-.242L2 14.732l-.287-.445L1.268 14l-.026-.529L1 13l.242-.471.026-.529.445-.287.287-.445.529-.026L3 11z"/>\n</svg>'},840:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">\n <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>\n <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>\n</svg>'},4791:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-volume-mute-fill" viewBox="0 0 16 16">\n <path d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zm7.137 2.096a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z"/>\n</svg>'},5151:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-volume-mute" viewBox="0 0 16 16">\n <path d="M6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06zM6 5.04L4.312 6.39A.5.5 0 0 1 4 6.5H2v3h2a.5.5 0 0 1 .312.11L6 10.96V5.04zm7.854.606a.5.5 0 0 1 0 .708L12.207 8l1.647 1.646a.5.5 0 0 1-.708.708L11.5 8.707l-1.646 1.647a.5.5 0 0 1-.708-.708L10.793 8 9.146 6.354a.5.5 0 1 1 .708-.708L11.5 7.293l1.646-1.647a.5.5 0 0 1 .708 0z"/>\n</svg>'},4419:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-volume-up-fill" viewBox="0 0 16 16">\n <path d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z"/>\n <path d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z"/>\n <path d="M8.707 11.182A4.486 4.486 0 0 0 10.025 8a4.486 4.486 0 0 0-1.318-3.182L8 5.525A3.489 3.489 0 0 1 9.025 8 3.49 3.49 0 0 1 8 10.475l.707.707zM6.717 3.55A.5.5 0 0 1 7 4v8a.5.5 0 0 1-.812.39L3.825 10.5H1.5A.5.5 0 0 1 1 10V6a.5.5 0 0 1 .5-.5h2.325l2.363-1.89a.5.5 0 0 1 .529-.06z"/>\n</svg>'},3454:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-volume-up" viewBox="0 0 16 16">\n <path d="M11.536 14.01A8.473 8.473 0 0 0 14.026 8a8.473 8.473 0 0 0-2.49-6.01l-.708.707A7.476 7.476 0 0 1 13.025 8c0 2.071-.84 3.946-2.197 5.303l.708.707z"/>\n <path d="M10.121 12.596A6.48 6.48 0 0 0 12.025 8a6.48 6.48 0 0 0-1.904-4.596l-.707.707A5.483 5.483 0 0 1 11.025 8a5.483 5.483 0 0 1-1.61 3.89l.706.706z"/>\n <path d="M10.025 8a4.486 4.486 0 0 1-1.318 3.182L8 10.475A3.489 3.489 0 0 0 9.025 8c0-.966-.392-1.841-1.025-2.475l.707-.707A4.486 4.486 0 0 1 10.025 8zM7 4a.5.5 0 0 0-.812-.39L3.825 5.5H1.5A.5.5 0 0 0 1 6v4a.5.5 0 0 0 .5.5h2.325l2.363 1.89A.5.5 0 0 0 7 12V4zM4.312 6.39L6 5.04v5.92L4.312 9.61A.5.5 0 0 0 4 9.5H2v-3h2a.5.5 0 0 0 .312-.11z"/>\n</svg>'},777:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});const n='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x" viewBox="0 0 16 16">\n <path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>\n</svg>'},8325:e=>{const t=e.exports;function a(e,t){const a=Math.max(0,t-e);return[a%60,Math.floor(a/60)%60,Math.floor(a/60/60)%24,Math.floor(a/60/60/24)%7,Math.floor(a/60/60/24/7)]}e.exports.set=function(e,t,a){const n=t.split("."),s=n.pop(),r=n.reduce(((e,t)=>e[t]||(e[t]={})),e);return r&&(r[s]=a),e},e.exports.get=function(e,t,a){if("string"!=typeof t)return a;if(""=t)return e;const n=t.split("."),s=n.pop(),r=n.reduce(((e,t)=>e&&e[t]),e);return r&&s in r?r[s]:a},e.exports.isEqual=function e(a,n,s=!0){if(typeof a!=typeof n)return!1;if(Array.isArray(a,n))return a=n||a.length=n.length&&a.every(((t,a)=>e(t,n[a])));if(a&&n&&"object"typeof a&&a!n){const e=Object.keys(a);return e.push(...Object.keys(n).filter((t=>!e.includes(t)))),e.every((e=>t.isEqual(a[e],n[e])))}return s?a=n:an},e.exports.toDuration=function(e){e=Math.floor(e||0);let[t,n,s]=a(0,e);return t<10&&(t="0"+t),s&&n<10&&(n="0"+n),(s?s+":":"")+n+":"+t},e.exports.timeAgo=function(e){const[t,n,s,r,l]=a(Math.floor(e),Math.floor(Date.now()/1e3));return l>1?l+" weeks ago":r>0?r+(1=r?" day":" days")+" ago":s>0?s+(1=s?" hour":" hours")+" ago":n>0?n+(1=n?" minute":" minutes")+" ago":t+(1=t?" second":" seconds")+" ago"},e.exports.element=function(e,a,n="beforeend"){let s;if(e instanceof Node)s=e;else{const t=document.createElement("div");t.innerHTML=e,s=t.children[0]}return a&&a.insertAdjacentElement(n,s),s instanceof Element&&t.elementHandler(s),s},e.exports.elementHTML=function(e,a){e.innerHTML=a,t.elementHandler(e)},e.exports.elementHandler=function(e){e.querySelectorAll(.${ns}-expander).forEach((e=>{e.classList.add("no-touch-action"),Player.events.set(e,"pointdragstart","position.initResize"),Player.events.set(e,"pointdrag.unbound","position.doResize"),Player.events.set(e,"pointdragend","position.stopResize")}));const t=Array.from(e.querySelectorAll(.${ns}-popover));e.classList.contains(${ns}-popover)&&t.push(e),t.forEach((e=>{e.addEventListener("mouseenter",Player.display._popoverMouseEnter),e.addEventListener("mouseleave",Player.display._popoverMouseLeave),"A"!e.nodeName&&e.addEventListener("click",Player.display._popoverClick)})),Player.events.apply(e)},e.exports.escAttr=function(e,t){return e.replace(";",";").replace(/'/g,"'").replace(/"/g,t?"\"":""").replace(/\n/g,"\n")}},5965:e=>{const t={};e.exports={get:async function(e){return new Promise((function(a,n){const s={};t[e]&&(s["If-Modified-Since"]=t[e].lastModified),GM.xmlHttpRequest({method:"GET",url:e,headers:s,responseType:"json",onload:n=>{n.status>=200&&n.status<300&&(t[e]={lastModified:n.responseHeaders["last-modified"],response:n.response}),a(304=n.status?t[e].response:n.response)},onerror:n})}))}}},8082:e=>{e.exports={atRoot:["togglePlay","play","pause","next","previous","stop","toggleMute","volumeUp","volumeDown"],public:["togglePlay","play","pause","next","previous","stop","toggleMute","volumeUp","volumeDown"],initialize(){Player.controls._audio=Player.audio},togglePlay(){Player.audio.paused?Player.play():Player.pause()},async play(e,{paused:t}={}){try{if("string"typeof e&&(e=Player.sounds.find((t=>t.id=e))),e||Player.playing||!Player.sounds.length||(e=Player.sounds[0]),e&&e!Player.playing){Player.playing&&(Player.playing.playing=!1),Player.video.removeEventListener("canplaythrough",Player.actions.playOnceLoaded),Player.audio.removeEventListener("canplaythrough",Player.actions.playOnceLoaded);const t=Player.controls.audioEvents;for(let a in t){(Array.isArray(t[a])?t[a]:[t[a]]).forEach((t=>{const n=Player.getHandler(t);Player.video.removeEventListener(a,n),e.standaloneVideo&&Player.video.addEventListener(a,n)}))}e.playing=!0,Player.playing=e,Player.audio.src=e.src,Player.isVideo=e.image.endsWith(".webm")||"video/webm"=e.type,Player.isStandalone=e.standaloneVideo,Player.video.loop=!Player.isStandalone,Player.audio=e.standaloneVideo?Player.video:Player.controls._audio,Player.audio._linked=Player.isVideo&&!Player.isStandalone&&Player.video,Player.video._linked=Player.isVideo&&!Player.isStandalone&&Player.audio,Player.container.classListPlayer.isVideo?"add":"remove",Player.container.classListPlayer.isVideo||e.image.endsWith("gif")?"add":"remove",await Player.trigger("playsound",e)}t||(!Player.isStandalone&&Player.isVideo&&(Player.video.readyState<3||Player.audio.readyState<3)?(Player.video.addEventListener("canplaythrough",Player.actions.playOnceLoaded),Player.audio.addEventListener("canplaythrough",Player.actions.playOnceLoaded)):Player.audio.play())}catch(e){Player.logError("There was an error playing the sound. Please check the console for details.",e)}},playOnceLoaded(e){e.currentTarget.readyState>3&&e.currentTarget._linked.readyState>3?(e.currentTarget.removeEventListener("canplaythrough",Player.actions.playOnceLoaded),e.currentTarget._linked.removeEventListener("canplaythrough",Player.actions.playOnceLoaded),e.currentTarget._inlinePlayer&&e.currentTarget._inlinePlayer.pendingControls&&e.currentTarget._inlinePlayer.pendingControls(),e.currentTarget._linked.play(),e.currentTarget.play()):(!e.currentTarget.paused&&e.currentTarget.pause(),!e.currentTarget._linked.paused&&e.currentTarget._linked.pause(),0!e.currentTarget.currentTime&&(e.currentTarget.currentTime=0),0!e.currentTarget._linked.currentTime&&(e.currentTarget._linked.currentTime=0))},pause(){Player.audio&&Player.audio.pause()},stop(){Player.audio.src=null,Player.playing=null,Player.isVideo=!1,Player.isStandalone=!1,Player.trigger("stop")},next(e){Player.actions._movePlaying(1,e)},previous(e){const t="number"typeof Player.config.restartSeconds&&Player.config.restartSeconds;t&&Player.audio.currentTime>t?Player.audio.currentTime=0:Player.actions._movePlaying(-1,e)},_movePlaying(e,{force:t,group:a,paused:n}={}){if(!Player.sounds.length)return;const s=Player.sounds.indexOf(Player.playing);if(-1=s)return Player.play(Player.sounds[0]);let r;if(t||"one"!Player.config.repeat){let t=s;do{t="all"=Player.config.repeat?(t+e+Player.sounds.length)%Player.sounds.length:t+e,r=Player.sounds[t]}while(a&&r&&t!s&&(!r.post||r.post=Player.playing.post))}else r=Player.sounds[s];r&&Player.play(r,{paused:n})},volumeUp(){Player.audio.volume=Math.min(Player.audio.volume+.05,1)},volumeDown(){Player.audio.volume=Math.max(Player.audio.volume-.05,0)},toggleMute(){Player.audio.volume=(Player._lastVolume||.5)*!Player.audio.volume}}},1348:(e,t,a)=>{var n=a(8325);e.exports={template:a(6764),audioEvents:{ended:()=>Player.config.autoplayNext&&Player.next(),pause:"controls.handleMediaEvent",play:"controls.handleMediaEvent",seeked:"controls.handleMediaEvent",waiting:"controls.handleMediaEvent",ratechange:"controls.handleMediaEvent",timeupdate:"controls.updateDuration",loadedmetadata:["controls.updateDuration","controls"],durationchange:"controls.updateDuration",volumechange:"controls.updateVolume",loadstart:"controls.pollForLoading",error:"controls.handleAudioError"},actions:{previous:"previous({ force: true })",playPause:"togglePlay",next:"next({ force: true })",seek:'controls.handleSeek($event, "main")',mute:"toggleMute",volume:'controls.handleVolume($event, "main")',fullscreen:"display.toggleFullScreen"},async initialize(){GM.getValue("volume").then((e=>e>=0&&e<=1&&(Player.audio.volume=e))),Player.on("show",(()=>Player._hiddenWhilePolling&&Player.controls.pollForLoading())),Player.on("hide",(()=>{Player._hiddenWhilePolling=!!Player._loadingPoll,Player.controls.stopPollingForLoading()})),Player.on("rendered",(()=>{Player.video=Player.$(.${ns}-video),Player.video.dataset.id="main",Player.audio.volumeBar=Player.video.volumeBar=Player.$(.${ns}-volume-bar .${ns}-current-bar),Player.audio.currentTimeBar=Player.video.currentTimeBar=Player.$(.${ns}-seek-bar .${ns}-current-bar),Player.audio.loadedBar=Player.video.loadedBar=Player.$(.${ns}-seek-bar .${ns}-loaded-bar),Player.controls.updateDuration({currentTarget:Player.audio}),Player.controls.updateVolume({currentTarget:Player.audio}),Player.controls.preventWrapping()})),Player.on("config:preventControlsWrapping",(e=>!e&&Player.controls.showAllControls())),Player.on("config:controlsHideOrder",(()=>{Player.controls.setHideOrder(),Player.controls.preventWrapping()})),document.addEventListener("visibilitychange",(()=>{"visible"=document.visibilityState&&Player.controls.sync(Player.audio)}))},handleAudioError(e){Player.playing&&(Player.logError(Failed to play ${Player.playing.title}. Please check the console for details.,e,"warning"),Player.playing.error=e,setTimeout((()=>Player.next({paused:!0})),3e3))},handleMediaEvent(e){const t=e.currentTarget._inlineAudio||e.currentTarget;Player.controls.sync(e.currentTarget),Player.controls.updateDuration(e),document.querySelectorAll(.${ns}-play-button[data-audio="${t.dataset.id}"]).forEach((e=>{e.classListt.paused?"add":"remove"}))},sync(e){const t=e._linked;e&&e.readyState>3&&t&&t.readyState>3&&(t.currentTime=e.currentTime%t.duration,te.paused?"pause":"play",t.playbackRate=e.playbackRate,t.defaultPlaybackRate=e.defaultPlaybackRate)},pollForLoading(){Player._loadingPoll=Player._loadingPoll||setInterval(Player.controls.updateLoaded,1e3)},stopPollingForLoading(){Player._loadingPoll&&clearInterval(Player._loadingPoll),Player._loadingPoll=null},updateLoaded(){const e=Player.audio.buffered.length,t=e>0?Player.audio.buffered.end(e-1)/Player.audio.duration100:0;100=t&&Player.controls.stopPollingForLoading(),Player.audio.loadedBar.style.width=t+"%"},updateDuration(e){const t=e.currentTarget,a=t._inlineAudio||t,s=t._inlinePlayer?t._inlinePlayer.controls:document,r=n.toDuration(t.currentTime),l=n.toDuration(t.duration),o=a.dataset.id;s&&s.querySelectorAll(.${ns}-current-time[data-audio="${o}"]).forEach((e=>e.childNodes[0].textContent=r)),s&&s.querySelectorAll(.${ns}-duration[data-audio="${o}"]).forEach((e=>e.childNodes[0].textContent=l)),Player.controls.updateProgressBarPosition(a.currentTimeBar,t.currentTime,t.duration)},updateVolume(e){const t=e.currentTarget._inlineAudio||e.currentTarget,a=t._inlinePlayer?t._inlinePlayer.controls:Player.container,n=t.volume;t=Player.audio&&(n>0&&(Player._lastVolume=n),GM.setValue("volume",n)),a&&a.querySelectorAll(.${ns}-volume-button[data-audio="${t.dataset.id}"]).forEach((e=>{e.classList0===n?"add":"remove",e.classListn>0?"add":"remove"})),Player.controls.updateProgressBarPosition(t.volumeBar,t.volume,1)},updateProgressBarPosition(e,t,a){if(!e)return;t||(t=0),a||(a=0);const n=a?Math.max(0,Math.min((t||0)/a,1)):0;e.style.width=calc(${100*n}% - ${.8*n-.4}rem)},handleSeek(e,t){const a="main"=t?Player.audio:Player.inline.audio[t]._inlinePlayer.master;a&&a.duration&&a.duration!1/0&&(a.currentTime=a.durationPlayer.controls._getBarXRatio(e))},handleVolume(e,t){("main"=t?Player.audio:Player.inline.audio[t]).volume=Player.controls._getBarXRatio(e)},_getBarXRatio(e){const t=.4Player.remSize,a=e.offsetX||e.targetTouches[0].pageX-e.currentTarget.getBoundingClientRect().left;return Math.max(0,Math.min(1,(a-t)/(parseInt(getComputedStyle(e.currentTarget).width,10)-2t)))},showAllControls(){Player.$all(.${ns}-controls [data-hide-id]).forEach((e=>e.style.display=null))},preventWrapping(){if(!Player.config.preventControlWrapping)return;const e=Player.$(.${ns}-controls),t=parseFloat(window.getComputedStyle(e).paddingTop),a=Player.controls.hideOrder||Player.controls.setHideOrder();let n=Array.prototype.slice.call(e.children),s=n.pop(),r=0;for(Player.controls.showAllControls();s.offsetTop>t&&r<a.length;){const e=a[r++];e.style.display="none",n=n.filter((t=>t!e)),e=s&&(s=n.pop())}},setHideOrder(){Array.isArray(Player.config.controlsHideOrder)||Player.settings.reset("controlsHideOrder");const e=Player.$(.${ns}-controls);return Player.controls.hideOrder=Player.config.controlsHideOrder.map((t=>e.querySelector([data-hide-id="${t}"]))).filter((e=>e)).sort(((e,t)=>e.dataset.hideOrder-t.dataset.hideOrder))}}},3482:(e,t,a)=>{var n=a(8325);const s=a(3462),r=a(4224),l=a(5250),o={themes:a(9463),views:a(34)},i={},d={},c="function"typeof NoSleep&&new NoSleep,p=()=>c.enable(),y=()=>c.disable();e.exports={atRoot:["show","hide"],public:["show","hide"],template:a(2045),_noSleepEnabled:!1,async initialize(){try{Player.display.dismissed=(await GM.getValue("dismissed")).split(",")}catch(e){Player.display.dismissed=[]}Player.on("playsound",(()=>{Player.display._marquees={},!Player.display._marqueeTO&&Player.display.runTitleMarquee()})),Player.remSize=parseFloat(getComputedStyle(document.documentElement).fontSize),Player.on("config:preventSleep",Player.display._initNoSleep),Player.display._initNoSleep(Player.config.preventSleep),document.body.addEventListener("click",Player.display.closeDialogs),document.body.addEventListener("keydown",(e=>"Escape"=e.key&&Player.display.closeDialogs(e))),Player.on("playsound",Player.display.updateFullScreenDetails),Player.on("tags-loaded",(e=>e=Player.playing&&Player.display.updateFullScreenDetails()))},createPlayerButton(){if("FoolFuuka"=Site){const e=document.querySelector(".navbar-inner .nav:nth-child(2)");n.element('<li><a href="javascript:;">Sounds</a></li>',e).children[0].addEventListener("click",Player.display.toggle)}else if("Fuuka"=Site){const e=document.querySelector("body > div > br");e.parentNode.insertBefore(document.createTextNode("["),e),n.element('<a href="#" @click.prevent="display.toggle">Sounds</a>',e,"beforebegin"),e.parentNode.insertBefore(document.createTextNode("]"),e)}else isChanX?n.element('<span id="shortcut-sounds" class="shortcut brackets-wrap" data-index="0">\n\t\t\t\t<a href="#" @click.prevent="display.toggle" title="Sounds" class="fa fa-play-circle">Sounds</a>\n\t\t\t</span>',document.getElementById("shortcut-settings"),"beforebegin"):document.querySelectorAll("#settingsWindowLink, #settingsWindowLinkBot").forEach((function(e){n.element('<a href="#" @click.prevent="display.toggle">Sounds</a>',e,"beforebegin"),e.parentNode.insertBefore(document.createTextNode("] ["),e)}))},async render(){try{Player.container&&(document.body.removeChild(Player.container),document.head.removeChild(Player.stylesheet)),Player.stylesheet=Player.stylesheet||n.element('<style id="sound-player-css"></style>',document.head),Player.stylesheet.innerHTML=(isChanX?"":"/ 4chanX Polyfill /\n\n"+l())+"\n\n/ Sounds Player CSS /\n\n"+s(),Player.display.updateCSSVars();const e=Thread&&!isChanX&&document.body.querySelector(".board")||document.body;Player.container=n.element(Player.display.template(),e),await Player.trigger("rendered")}catch(e){throw Player.logError("There was an error rendering the sound player.",e),e}},updateCSSVars(){Player.varsCSS=Player.varsCSS||n.element('<style id="sound-player-css-vars"></style>',document.head),Player.varsCSS.innerHTML="\n\n/ Sounds Player CSS variables /\n\n"+r()},async setViewStyle(e){const t=Player.config.viewStyle;if("fullscreen"!e&&document.fullscreenElement&&document.exitFullscreen(),Player.set("viewStyle",e),Player.container.setAttribute("data-view-style",e),"playlist"!e&&"image"!e||Player.controls.preventWrapping(),"fullscreen"!t||"fullscreen"=e){const[e,t]=(await GM.getValue("size")||"").split(":");e&&t&&Player.position.resize(parseInt(e,10),parseInt(t,10)),Player.position.setPostWidths()}Player.trigger("view",e,t)},toggle(){"none"=Player.container.style.display?Player.show():Player.hide()},hide(){Player.container.style.display="none",Player.isHidden=!0,Player.trigger("hide")},async show(){Player.container.style.display&&(Player.container.style.display=null,Player.isHidden=!1,await Player.trigger("show"))},async close(){Player.stop(),Player.hide()},async toggleFullScreen(){document.fullscreenElement?document.exitFullscreen&&(document.exitFullscreen(),document.body.removeEventListener("pointermove",Player.display._fullscreenMouseMove)):(Player.isHidden&&Player.show(),Player.$(.${ns}-player).requestFullscreen(),document.body.addEventListener("pointermove",Player.display._fullscreenMouseMove),Player.display._fullscreenMouseMove())},_fullscreenMouseMove(){Player.container.classList.remove("cursor-inactive"),Player.display.fullscreenCursorTO&&clearTimeout(Player.display.fullscreenCursorTO),Player.display.fullscreenCursorTO=setTimeout((function(){Player.container.classList.add("cursor-inactive")}),2e3)},updateFullScreenDetails(){const e=Player.playing.tags||{};document.querySelector(".fullscreen-details").innerHTML=[Player.playing.name,[e.title,e.artist].filter(Boolean).join(" - ")].filter(Boolean).join(" • ")||Player.playing.title},_handleFullScreenChange(){document.fullscreenElement?(Player.display.setViewStyle("fullscreen"),document.querySelector(.${ns}-image-link).removeAttribute("href")):(Player.playing&&(document.querySelector(.${ns}-image-link).href=Player.playing.image),Player.playlist.restore()),Player.controls.preventWrapping()},async restore(e){const t=Player.display.dismissed.indexOf(e);e&&t>-1&&(Player.display.dismissed.splice(t,1),Player.$all([\\@click^='display.restore("${e}")']).forEach((t=>{n.element(i[e],t,"beforebegin"),t.parentNode.removeChild(t)})),await GM.setValue("dismissed",Player.display.dismissed.join(",")))},async dismiss(e){e&&!Player.display.dismissed.includes(e)&&(Player.display.dismissed.push(e),Player.$all([data-dismiss-id="${e}"]).forEach((t=>{n.element(<a href="#" @click.prevent='display.restore("${e}")'>${d[e]}</a>,t,"beforebegin"),t.parentNode.removeChild(t)})),await GM.setValue("dismissed",Player.display.dismissed.join(",")))},ifNotDismissed:(e,t,a)=>(i[e]=a,d[e]=t,Player.display.dismissed.includes(e)?<a href="#" @click.prevent='display.restore("${e}")'>${t}</a>:a),showMenu(e,t,a){const s="string"typeof t?n.element(ot):t;Player.display.closeDialogs(),a||(a=Player.container),a.appendChild(s),Player.position.showRelativeTo(s,e),s.querySelectorAll(".entry").forEach((e=>{e.addEventListener("mouseenter",(t=>{Player.display._setFocusedMenuItem(t),e.dispatchEvent(new CustomEvent("entry-focus"))}))})),s._keepOpenFor=Array.from(s.querySelectorAll(".entry.has-submenu")),s._closeFor=Array.from(s.querySelectorAll(".submenu")),Player.trigger("menu-open",s)},_setFocusedMenuItem(e){const t=e.currentTarget.querySelector(".submenu");e.currentTarget.closest(".dialog").querySelectorAll(".focused").forEach((e=>{e.classList.remove("focused"),e.dispatchEvent(new CustomEvent("entry-blur"))})),e.currentTarget.classList.add("focused"),t&&t.getBoundingClientRect().right>document.documentElement.clientWidth&&(t.style.inset="0px 100% auto auto")},closeDialogs(e){document.querySelectorAll(.${ns}-dialog).forEach((t=>{const a=(t._keepOpenFor||[]).concat(t.dataset.allowClick?t:[]);(!e||!a.find((t=>t=e.target||t.contains(e.target)))||(t._closeFor||[]).find((t=>t=e.target||t.contains(e.target))))&&(t.parentNode.removeChild(t),Player.trigger("menu-close",t))}))},async runTitleMarquee(){Player.display._marqueeTO=setTimeout(Player.display.runTitleMarquee,1e3),document.querySelectorAll(.${ns}-title-marquee).forEach((e=>{const t=e.parentNode.getBoundingClientRect().width-(e.scrollWidth+1),a=e.getAttribute("data-location");if(t>=0)return e.style.marginLeft=null;const n=Player.display._marquees[a]=Player.display._marquees[a]||{direction:1,position:parseInt(e.style.marginLeft,10)||0};n.pause>0?n.pause--:(n.position-=20n.direction,(n.position>0||n.position<t)&&(n.position=Math.min(0,Math.max(n.position,t)),n.direction=-1,n.pause=1),e.style.marginLeft=n.position+"px")}))},_popoverMouseEnter:e=>{const t=e.currentTarget,a=t.classList.contains("wide");t.infoEl&&Player.container.contains(t.infoEl)||(t.infoEl=n.element(<div class="${ns}-popover-body ${a?"wide":""} ${ns}-dialog dialog">${t.dataset.content}</div>,Player.container),t.infoEl._keepOpenFor=[t],Player.position.showRelativeTo(t.infoEl,t))},_popoverMouseLeave:e=>{const t=e.currentTarget;t.infoEl&&!t.infoEl._clicked&&(t.infoEl.parentNode.removeChild(t.infoEl),delete t.infoEl)},_popoverClick:e=>{const t=e.currentTarget;t.infoEl&&Player.container.contains(t.infoEl)?(t.infoEl._clicked=!t.infoEl._clicked)||Player.display._popoverMouseLeave(e):Player.display._popoverMouseEnter(e)},_initNoSleep:e=>{const t=e?"addEventListener":"removeEventListener";c&&!!e!Player.display._noSleepEnabled&&(Player.audiot,Player.untzing){const t=Player.$(".image-color-overlay");let a=0;t.style.filter=brightness(1.5); hue-rotate(${a}deg),function e(){t.style.filter=hue-rotate(${a=360-a}deg),Player.untzColorTO=setTimeout(e,500)}(),function t(){Player.untzing&&(e.style.transform=scale(${1+.05*Math.random()}),e.style.filter=brightness(${1+.5*Math.random()}) blur(${3*Math.random()}px),Player.untzBounceTO=setTimeout(t,200))}()}else e.style.transform=null,e.style.filter=null,clearTimeout(Player.untzBounceTO),clearTimeout(Player.untzColorTO)}}},387:e=>{e.exports={atRoot:["on","off","trigger"],_events:{},initialize(){const e={Player,...Player.components},t=[];for(let a of Object.values(e))a.audioEvents&&t.push(a.audioEvents);document.body.addEventListener("pointerup",Player.events.clearMousedown),document.body.addEventListener("pointercancel",Player.events.clearMousedown),Player.on("rendered",(function(){for(let e of t)for(let t in e){(Array.isArray(e[t])?e[t]:[e[t]]).forEach((e=>Player.audio.addEventListener(t,Player.getHandler(e))))}}))},apply(e){const t=[],a=document.evaluate('.//attribute::[starts-with(name(), "@")]',e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=0;e<a.snapshotLength;e++)t.push(a.snapshotItem(e));const n=document.evaluate('.///attribute::[starts-with(name(), "@")]',e,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(let e=0;e<n.snapshotLength;e++)t.push(n.snapshotItem(e));for(let e of t)Player.events.set(e.ownerElement,e.name.slice(1),e.value)},set(e,t,a){a=a.trim();const[n,...s]=t.split("."),r=s.reduce(((e,t)=>(e[t]=!0,e)),{}),l=e._eventListeners||(e._eventListeners={});l[n]&&e.removeEventListener(n,l[n]);let o=a&&(Player.getHandler(a)||function(e){const t=document.createElement("script");t.innerText=window.${ns}Handler = function(Player, $event) { with (Player) { ${a} } };,document.head.appendChild(t),o=unsafeWindow[${ns}Handler].bind(null,Player),delete unsafeWindow[${ns}Handler],o(e)});const i=function(e){return r.prevent&&e.preventDefault(),r.stop&&e.stopPropagation(),r.disabled&&e.currentTarget.classList.contains("disabled")&&e.currentTarget.classList.contains("disabled"),o&&o.call(this,e,Player)};if("pointdrag"=n){const t=t=>{t._dragInit||(t._dragInit=!0,l.pointdragstart&&l.pointdragstart(t),t.preventDrag||(e.setPointerCapture(t.pointerId),Player._mousedown=e,Player._mousedownListener=i,Player._mousedownMoveEl=r.unbound?document.documentElement:e,Player._mousedownMoveEl.addEventListener("pointermove",i,r),e.addEventListener("pointerleave",i,r),r.boxed&&e.addEventListener("pointerleave",Player.events.clearMousedown),!r.move&&i(t)))};e.addEventListener("pointerdown",t),l.pointerdown=t}else"pointdragstart"=n||"pointdragend"=n||e.addEventListener(n,i,r),l[n]=i},on(e,t){(Array.isArray(e)?e:[e]).forEach((e=>{Player.events._events[e]||(Player.events._events[e]=[]),Player.events._events[e].push(t)}))},off(e,t){const a=Player.events._events[e]&&Player.events._events[e].indexOf(t);a>-1&&Player.events._events[e].splice(a,1)},async trigger(e,...t){const a=Player.events._events[e]||[];for(let e of a)await e(...t)},clearMousedown(e){Player._mousedown&&(Player._mousedown.releasePointerCapture(e.pointerId),Player._mousedownMoveEl.removeEventListener("pointermove",Player._mousedownListener),Player._mousedown.removeEventListener("pointerleave",Player._mousedownListener),Player._mousedown._eventListeners.pointdragend&&Player._mousedown._eventListeners.pointdragend(e),Player._mousedown=Player._mousedownListener=null)}}},7531:(e,t,a)=>{var n=a(8325);e.exports={template:()=>Player.userTemplate.build({template:Player.config.footerTemplate+<div class="${ns}-expander" data-direction="sw"></div><div class="${ns}-expander" data-direction="se"></div>,location:"footer",sound:Player.playing,defaultName:"4chan Sounds",outerClass:${ns}-col-auto}),initialize(){Player.userTemplate.maintain(Player.footer,"footerTemplate")},render(){n.elementHTML(Player.$(.${ns}-footer),Player.footer.template())}}},431:(e,t,a)=>{var n=a(8325);e.exports={template:()=>Player.userTemplate.build({template:Player.config.headerTemplate+<div class="${ns}-expander" data-direction="nw"></div><div class="${ns}-expander" data-direction="ne"></div>,location:"header",sound:Player.playing,defaultName:"4chan Sounds",outerClass:${ns}-col-auto}),initialize(){Player.userTemplate.maintain(Player.header,"headerTemplate")},render(){n.elementHTML(Player.$(.${ns}-header),Player.header.template())}}},2759:(e,t,a)=>{const n=a(6758);let s;e.exports={_keyMap:{" ":"space",arrowleft:"left",arrowright:"right",arrowup:"up",arrowdown:"down"},initialize(){if(Player.on("rendered",Player.hotkeys.apply),Player.on("config:hotkeys",Player.hotkeys.apply),s=n.reduce(((e,t)=>("hotkey_bindings"=t.property&&t.settings.forEach((t=>e[t.property.slice(16)]=t)),e)),{}),"mediaSession"in navigator&&Player.config.hardwareMediaKeys){const e=[["play",()=>Player.play()],["pause",()=>Player.pause()],["stop",()=>Player.pause()],["previoustrack",()=>Player.previous()],["nexttrack",()=>Player.next()],["seekbackward",e=>Player.audio.currentTime-=e.seekOffset||10],["seekforward",e=>Player.audio.currentTime+=e.seekOffset||10],["seekto",e=>Player.audio.currentTime+=e.seekTime]];for(let[t,a]of e)try{navigator.mediaSession.setActionHandler(t,a)}catch(e){}Player.audio.addEventListener("pause",(()=>navigator.mediaSession.playbackState="paused")),Player.audio.addEventListener("ended",(()=>navigator.mediaSession.playbackState="paused")),Player.audio.addEventListener("play",Player.hotkeys.setMediaMetadata),Player.audio.addEventListener("ratechange",Player.hotkeys.setMediaPosition),Player.audio.addEventListener("seeked",Player.hotkeys.setMediaPosition),Player.on("tags-loaded",(e=>e=Player.playing&&Player.hotkeys.setMediaMetadata()))}},async setMediaMetadata(){const e=Player.playing,t=e.tags||{};navigator.mediaSession.playbackState="playing";const a={title:t.title||e.name||e.title,artist:t.artist||/${Board}/ - ${Thread||"4chan Sounds Player"},album:t.album||document.title,artwork:[{src:Player.playing.thumb,sizes:"125x125"}]};if(!Player.isVideo)if(e._fullDimension)a.artwork.push({src:Player.playing.image,sizes:e._fullDimension});else{const t=new Image;t.onload=function(){e._fullDimension=t.width+"x"+t.height,Player.hotkeys.setMediaMetadata()},t.src=Player.playing.image}navigator.mediaSession.metadata=new MediaMetadata(a),Player.hotkeys.setMediaPosition()},setMediaPosition(){navigator.mediaSession.setPositionState({duration:Player.audio.duration||0,playbackRate:Player.audio.playbackRate,position:Player.audio.currentTime})},addHandler:()=>{Player.hotkeys.removeHandler(),document.body.addEventListener("keydown",Player.hotkeys.handle)},removeHandler:()=>{document.body.removeEventListener("keydown",Player.hotkeys.handle)},apply(){const e=Player.config.hotkeys;Player.hotkeys.removeHandler(),Player.off("show",Player.hotkeys.addHandler),Player.off("hide",Player.hotkeys.removeHandler),"always"=e?Player.hotkeys.addHandler():"open"=e&&(Player.isHidden||Player.hotkeys.addHandler(),Player.on("show",Player.hotkeys.addHandler),Player.on("hide",Player.hotkeys.removeHandler))},handle(e){if(Player.isHidden&&("always"!Player.config.hotkeys||!Player.sounds.length))return;const t=["INPUT","SELECT","TEXTAREA","INPUT"].includes(e.target.nodeName),a=e.key.toLowerCase(),n=Player.config.hotkey_bindings||{};Object.entries(n).forEach((function n([r,l]){if(Array.isArray(l))return l.find((e=>n([r,e])));const o=a=l.key&&!!l.shiftKey!!e.shiftKey&&!!l.ctrlKey!!e.ctrlKey&&!!l.metaKey!!e.metaKey&&(!l.ignoreRepeat||!e.repeat)&&s[r];!o||t&&!o.allowFocusedInput||(e.preventDefault(),e._binding=l,Player.getHandler(o.keyHandler)(e))}))},stringifyKey(e){let t=e.key.toLowerCase();return Player.hotkeys._keyMap[t]&&(t=Player.hotkeys._keyMap[t]),(e.ctrlKey?"Ctrl+":"")+(e.shiftKey?"Shift+":"")+(e.metaKey?"Meta+":"")+t},parseKey(e){const t=e.split("+");let a=t.pop();Object.keys(Player.hotkeys._keyMap).find((e=>Player.hotkeys._keyMap[e]=a&&(a=e)));const n={key:a};return t.forEach((e=>n[e.toLowerCase()+"Key"]=!0)),n}}},2200:(e,t,a)=>{var n=a(8325);const s=a(3199),r=a(6764);e.exports={idx:0,audio:{},expandedNodes:[],mediaEvents:{ended:e=>Player.inline._movePlaying(e.currentTarget.dataset.id,+("one"!Player.config.expandedRepeat)),pause:"controls.handleMediaEvent",play:"controls.handleMediaEvent",seeked:"controls.handleMediaEvent",waiting:"controls.handleMediaEvent",timeupdate:"controls.updateDuration",loadedmetadata:"controls.updateDuration",durationchange:"controls.updateDuration",volumechange:"controls.updateVolume"},initialize(){is4chan&&(Player.inline.observer=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach(Player.inline.handleAddedNode),e.removedNodes.forEach(Player.inline.handleRemovedNode)}))})),Player.on("config:playExpandedImages",Player.inline._handleConfChange),Player.on("config:playHoveredImages",Player.inline._handleConfChange),Player.inline._handleConfChange())},_handleConfChange(){Player.config.playExpandedImages||Player.config.playHoveredImages?Player.inline.start():Player.inline.stop()},handleAddedNode(e){try{if("IMG"!e.nodeName&&"VIDEO"!e.nodeName)return;const a=Player.config.playExpandedImages&&e.matches(s.expandedImage),l=Player.config.playHoveredImages&&e.matches(s.hoverImage);if(a||l){const l="VIDEO"=e.nodeName;let o;try{o=isChanX?e.dataset.fileID.split(".")[1]:(a?e:document.querySelector(a[href$="${e.src.replace(/^https?:/,"")}"])).closest(s.posts).id.slice(s.postIdPrefix.length)}catch(e){return}let i=o&&Player.sounds.filter((e=>e.post=o&&!e.standaloneVideo))||[];if(Player.config.expandedAllowFiltered&&(i=i.concat(Player.filteredSounds.filter((e=>e.post=o&&!e.disallow.host)))),!i.length)return;const d=new Audio(i[0].src),c=d.dataset.id=Player.inline.idx++,p=l&&"video"=Player.config.expandedLoopMaster?e:d;Player.inline.audio[c]=d,Player.inline.expandedNodes.push(e),e.classList.add(${ns}-has-inline-audio),e._inlineAudio=d,d._inlinePlayer=e._inlinePlayer={master:p,video:e,isVideo:l,audio:d,sounds:i,index:0},l&&(e._linked=d,d._linked=e),d.src=i[0].src,d.volume=Player.audio.volume,d.currentTime=0,Player.inline.updateSyncListeners(p,"add");const y=a&&Player.config.expandedControls;function t(){delete e._inlinePlayer.pendingControls,e.parentNode.classList.add(${ns}-has-controls);const t=d._inlinePlayer.controls=n.element(r({audio:d,multiple:i.length>1,audioId:c,inline:!0,actions:{previous:inline.previous("${c}"),playPause:inline.playPause("${c}"),next:inline.next("${c}"),seek:controls.handleSeek($event, "${c}"),mute:inline.mute("${c}"),volume:controls.handleVolume($event, "${c}")}}),e.parentNode);t.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation()})),d.volumeBar=t.querySelector(.${ns}-volume-bar .${ns}-current-bar),d.currentTimeBar=t.querySelector(.${ns}-seek-bar .${ns}-current-bar),Player.controls.updateProgressBarPosition(d.volumeBar,d.volume,1)}l&&y&&(e.controls=!1,e.controlsObserver=new MutationObserver((()=>e.controls=!1)),e.controlsObserver.observe(e,{attributes:!0}),e.addEventListener("click",(()=>Player.inline.playPause(c)))),l&&(e.readyState<3||d.readyState<3)?(d.pause(),e.pause(),e._inlinePlayer.pendingControls=y&&t,e.addEventListener("canplaythrough",Player.actions.playOnceLoaded),d.addEventListener("canplaythrough",Player.actions.playOnceLoaded)):(y&&t(),d.play())}}catch(e){Player.logError("Failed to play sound.",e)}},handleRemovedNode(e){const t=[e];e.querySelectorAll&&t.push(...e.querySelectorAll(.${ns}-has-inline-audio)),t.forEach((e=>{e._inlineAudio&&Player.inline._removeForNode(e)}))},_removeForNode(e){e.controlsObserver&&e.controlsObserver.disconnect(),Player.inline.updateSyncListeners(e._inlinePlayer.master,"remove");const t=e._inlineAudio._inlinePlayer.controls;t&&(t.parentNode.classList.remove(${ns}-has-controls),t.parentNode.removeChild(t)),e._inlineAudio.pause(),delete Player.inline.audio[e._inlineAudio.dataset.id],delete e._inlineAudio,Player.inline.expandedNodes=Player.inline.expandedNodes.filter((t=>t!e))},updateSyncListeners(e,t){if("VIDEO"=e.nodeName||"AUDIO"=e.nodeName){const a=e._inlineAudio||e;if("remove"=t){a._inlinePlayer.video.removeEventListener("canplaythrough",Player.actions.playOnceLoaded),a.removeEventListener("canplaythrough",Player.actions.playOnceLoaded)}Object.entries(Player.inline.mediaEvents).forEach((([a,n])=>{e${t}EventListener}))}},start(){Player.inline.observer.observe(document.body,{childList:!0,subtree:!0})},stop(){Player.inline.observer.disconnect(),Player.inline.expandedNodes.forEach(Player.inline._removeForNode),Player.inline.expandedNodes=[]},previous(e){const t=Player.inline.audio[e];t.currentTime>3?t.currentTime=0:Player.inline._movePlaying(e,-1)},next(e){Player.inline._movePlaying(e,1)},_movePlaying(e,t){const a=Player.inline.audio[e],n=a&&a._inlinePlayer,s=n.sounds.length,r=Player.config.expandedRepeat;if(n&&("none"!==r||n.index+t>=0&&n.index+t<s)){if(n.index=(n.index+t+s)%s,a.src=n.sounds[n.index].src,n.controls){const e=n.controls.querySelector(.${ns}-previous-button),t=n.controls.querySelector(.${ns}-next-button);e&&e.classList"all"!r&&0=n.index?"add":"remove",t&&t.classList"all"!r&&n.index=s-1?"add":"remove"}n.isVideo&&(n.video.readyState<3||a.readyState<3)?(n.master.currentTime=0,n.master.pause(),n.video.pause(),n.video.addEventListener("canplaythrough",Player.actions.playOnceLoaded),a.addEventListener("canplaythrough",Player.actions.playOnceLoaded)):(n.master.currentTime=0,n.master.play())}},playPause(e){const t=Player.inline.audio[e];t&&tt.paused?"play":"pause"},mute(e){const t=Player.inline.audio[e];t&&(t.volume=(Player._lastVolume||.5)!t.volume)}}},1866:(e,t,a)=>{var n=a(8325),s=a(7452);e.exports={_showingPIP:!1,initialize(){isChanX&&Player.userTemplate.maintain(Player.minimised,"chanXTemplate",["chanXControls"],