1var p=Object.defineProperty;var u=(s,c,r)=>c in s?p(s,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[c]=r;var d=(s,c,r)=>(u(s,typeof c!="symbol"?c+"":c,r),r);(function(){"use strict";const a=class a{static set(t,e,o=365){t=`${a.prefix}${t}`;const n=o?`expires = ${new Date(Date.now()+o*24*60*60*1e3).toUTCString()};`:"";return document.cookie=`${t} = ${encodeURIComponent(e)};${n}path = / `,this}static get(t){t=`${a.prefix}${t}`;const e=document.cookie.split(";");for(const o of e){const[n,i]=o.split("=").map(l=>l.trim());if(n===t)return decodeURIComponent(i)}return null}static delete(t){return t=`${a.prefix}${t}`,document.cookie=`${t} = ; expires = Thu, 01 Jan 1970 00:00:00 UTC; path = / ;`,this}};d(a,"prefix","wp-dark-mode-");let s=a;class c{constructor(){d(this,"initLargeFont",()=>{if(!wp_dark_mode_json.options.typography_enabled)return;const t=document.querySelectorAll("*:not(.wp-dark-mode-ignore):not(.wp-dark-mode-switch):not(script):not(style):not(link):not(meta):not(title):not(base):not(head):not(.wp-dark-mode-switch)");let e=wp_dark_mode_json.options.typography_font_size;e==="custom"&&(e=wp_dark_mode_json.options.typography_font_size_custom/100),t.forEach(o=>{if(o.closest(".wp-dark-mode-ignore"))return;const n=getComputedStyle(o).fontSize;if(n){const i=this.calculateFontSize(n,e);o.style.setProperty("--wpdm-large-font-size",i)}})});d(this,"calculateFontSize",(t,e=1)=>{const o=t.replace(/[0-9]/g,""),n=parseFloat(t.replace(/[a-z]/g,""));let i=0;return i=n*e,`${i}${o}`});d(this,"checkLargeFont",()=>{s.get("large-font")==="on"&&(document.querySelector("html").classList.add("wp-dark-mode-large-font"),document.addEventListener("wp-dark-mode-switches-updated",()=>{const e=document.querySelectorAll(".wp-dark-mode-switch ._font");!e||!e.length||e.forEach(o=>{o.classList.add("active")})}))})}init(){this.initLargeFont(),this.checkLargeFont()}toggleFontSize(t){if(!wp_dark_mode_json.options.typography_enabled)return;const e=document.querySelector("html"),o=e.classList.contains("wp-dark-mode-large-font");e.classList[o?"remove":"add"]("wp-dark-mode-large-font");const n=t.classList.contains("active");t.classList[n?"remove":"add"]("active"),s.set("large-font",o?"off":"on");const i=document.querySelectorAll(".wp-dark-mode-switch ._font");!i||!i.length||i.forEach(l=>{l.classList[n?"remove":"add"]("active")})}}const r=new c;document.addEventListener("DOMContentLoaded",()=>{r.init()})})(); 2//# sourceMappingURL=wp-dark-mode-ultimate.min.js.map
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.