PageSourceSearch

https://genderswap.fm/_app/immutable/chunks/BbbmDrWN.js

js genderswap.fm collected 2026-10-03 23:52:12 UTC 3,808 bytes, 1 lines download raw bytes

1import{r as e,t}from"./DwTZBSUj.js";import{i as n,o as r}from"./BW02h1Jz.js";var i=e(t(),1),a=(e,t)=>e.length===0?`${t} characters max`:e.length>t?`${e.length-t} ${e.length-t===1?`character`:`characters`} over limit`:`${t-e.length} ${t-e.length===1?`character`:`characters`} left`,o=({originalName:e,originalArtists:t,coverArtists:n})=>s(`${n[0]}'s cover of ${e} by ${t[0]}`),s=e=>e.replace(/(^|[-\u2014\s(["])'/g,`$1‘`).replace(/'/g,`’`).replace(/(^|[-\u2014/[(\u2018\s])"/g,`$1“`).replace(/"/g,`”`).replace(/--/g,`—`).replace(/\.\.\./g,`…`),c=(e,t)=>{let n=(0,i.default)(e).year()-(0,i.default)(t).year();return n===0?`earlier that year`:`${n} year${n===1?``:`s`} earlier`},l=e=>e.filter(e=>n.includes(e)).sort((e,t)=>n.indexOf(e)-n.indexOf(t)),u=(e=250)=>{let t,n=()=>clearTimeout(t);return Object.assign(r=>{n(),t=setTimeout(r,e)},{cancel:n})},d=e=>e.replace(/(^|\s)\p{Ll}/gu,e=>e.toUpperCase()),f=e=>d(r[e].label),p=e=>`/?q=${encodeURIComponent(e)}`,m=(e,t)=>`https://www.youtube.com/results?search_query=${encodeURIComponent(`${t[0]} ${e}`)}`,h=(e,t)=>{let n=new URLSearchParams(e.search);return t===1?n.delete(`page`):n.set(`page`,String(t)),n.size?`${e.pathname}?${n}`:e.pathname},g=150,_,v=e=>{clearTimeout(_);let{style:t}=document.documentElement;e?t.setProperty(`--color-page`,e):t.removeProperty(`--color-page`)},y=()=>{clearTimeout(_),_=setTimeout(()=>document.documentElement.style.removeProperty(`--color-page`),g)},b=()=>{clearTimeout(_);let e=document.documentElement;e.style.getPropertyValue(`--color-page`)&&(e.dataset.pageColorInstant=``,e.style.removeProperty(`--color-page`),getComputedStyle(e).getPropertyValue(`--color-page`),delete e.dataset.pageColorInstant)},x=e=>t=>{let n=t=>{t.pointerType!==`touch`&&v(e)},r=()=>v(e);return t.addEventListener(`pointerenter`,n),t.addEventListener(`focusin`,r),t.addEventListener(`pointerleave`,y),t.addEventListener(`focusout`,y),()=>{t.removeEventListener(`pointerenter`,n),t.removeEventListener(`focusin`,r),t.removeEventListener(`pointerleave`,y),t.removeEventListener(`focusout`,y)}},S=(e,t)=>{let n,r=1/0;for(let i of e){let e=Math.abs(t(i));e<r&&(r=e,n=i)}return n},C=e=>{let{top:t,bottom:n,height:r}=e.getBoundingClientRect();if(!r)return 0;let i=Math.min(n,window.innerHeight)-Math.max(t,0);return Math.max(0,i)/r},w=e=>{let t=matchMedia(`(hover: none)`),n=0,r,i=0,a,o=()=>{let t=[...e.querySelectorAll(`[data-focus-track]`)],n=t.map(C),a=r?t.indexOf(r):-1,o=n[a]??0,s=Math.max(...n),c=a<0||o<i&&o<s?S([...n.keys()].filter(e=>n[e]===s),e=>e-Math.max(a,0)):a;c!==void 0&&(r=t[c],i=n[c])},s=()=>
1{if(n=0,o(),!r)return;let e=r.getBoundingClientRect().left+Number.parseFloat(getComputedStyle(r).paddingInlineStart),t=S(r.querySelectorAll(`[data-focus-item]`),t=>t.getBoundingClientRect().left-e);t&&t!==a&&(a=t,v(t.dataset.pageColor))},c=()=>{n||=requestAnimationFrame(s)},l=()=>{a&&c()},u=t=>{let{target:n}=t;n instanceof HTMLElement&&n.matches(`[data-focus-track]`)&&e.contains(n)&&(r=n,i=0),c()},d=()=>{cancelAnimationFrame(n),n=0,window.removeEventListener(`scroll`,u,{capture:!0}),window.removeEventListener(`resize`,l)},f=()=>{d(),r=void 0,a=void 0,t.matches?(window.addEventListener(`scroll`,u,{capture:!0,passive:!0}),window.addEventListener(`resize`,l)):y()};return f(),t.addEventListener(`change`,f),()=>{d(),t.removeEventListener(`change`,f)}},T=e=>{let t=document.createElement(`span`);t.style.color=`var(${e})`,document.body.appendChild(t);let n=getComputedStyle(t).color;t.remove();let r=document.createElement(`canvas`).getContext(`2d`);if(!r)return`#000000`;r.fillStyle=n,r.fillRect(0,0,1,1);let[i,a,o]=r.getImageData(0,0,1,1).data;return`#${[i,a,o].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`};export{v as a,a as c,l as d,c as f,f as h,T as i,h as l,s as m,x as n,u as o,m as p,b as r,p as s,w as t,o as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.