1/** 2 * 3 * @author Louis-Alexander Desire <[email protected]> 4 * @version 1.0.0 5 * @license LGPL-2.1-or-later 6 */ 7!function(){"use strict";function t({storageKey:t="theme-mode"}){return localStorage.getItem(t)?localStorage.getItem(t):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function e(t,e){const a=/^\[data-([a-zA-Z0-9_-]+)(="([^"]*)")?\](?:$|\s)/;if("name"===e&&t){const e=t.match(a);if(e)return e[1]}if("value"===e&&t){const e=t.match(a);if(e)return e[3]}return a.test(t)}!function(){const a=dmSelectors.replace(/"/g,'"').replace(/\s/g,""),n=a?a.split(","):[".dark"],c=n?.map((t=>{if(t?.startsWith("."))return t})),o=n?.map((t=>{if(e(t))return t})),r="theme-mode",d={theme:t({storageKey:r})};function s(t){const e=t.target.closest("[data-action]"),a=e?.dataset?.action;"dark-mode"!==t.target.dataset.action&&"dark-mode"!==a||(d.theme="dark"===d.theme?"light":"dark",localStorage.setItem(r,d.theme),m())}function m(){const t=document.querySelectorAll('[data-action="dark-mode"]');"dark"===d.theme?(c?.length&&c.forEach((t=>{t&&document.documentElement?.classList?.add(t?.replace(".",""))})),o?.length&&o.forEach((t=>{t&&function(t,e){const a=t.match(/^\[data-([a-zA-Z0-9_-]+)(="([^"]*)")?\](?:$|\s)/);if(a){const t=a[1],n=a[3];e.setAttribute(`data-${t}`,n||"")}}(t,document.documentElement)})),t.forEach((t=>{t.setAttribute("aria-pressed","true")}))):(c?.length&&c.forEach((t=>{t&&document.documentElement?.classList?.contains(t?.replace(".",""))&&document.documentElement?.classList?.remove(t?.replace(".",""))})),o?.length&&o.forEach((t=>{const a=e(t,"name");t&&document.documentElement?.hasAttribute?.(`data-${a}`)&&document.documentElement?.removeAttribute?.(`data-${a}`)})),t.forEach((t=>{t.setAttribute("aria-pressed","false")})))}m(),window.addEventListener("DOMContentLoaded",(function(){document.addEventListener("click",s),m(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:t})=>{localStorage.getItem(r)||(d.theme=t?"dark":"light",m())}
7))}))}()}();
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.