var Ss=Object.defineProperty;var ks=(N,Q,I)=>Q in N?Ss(N,Q,{enumerable:!0,configurable:!0,writable:!0,value:I}):N[Q]=I;var le=(N,Q,I)=>(ks(N,typeof Q!="symbol"?Q+"":Q,I),I),ro=(N,Q,I)=>{if(!Q.has(N))throw TypeError("Cannot "+I)};var de=(N,Q,I)=>(ro(N,Q,"read from private field"),I?I.call(N):Q.get(N)),X1=(N,Q,I)=>{if(Q.has(N))throw TypeError("Cannot add the same private member more than once");Q instanceof WeakSet?Q.add(N):Q.set(N,I)},_r=(N,Q,I,We)=>(ro(N,Q,"write to private field"),We?We.call(N,I):Q.set(N,I),I);(function(){var w1,y1,Oe,n1;"use strict";const g1=class g1{static set(o,r,i=365){o=`${g1.prefix}${o}`;const s=i?`expires = ${new Date(Date.now()+i*24*60*60*1e3).toUTCString()};`:"";return document.cookie=`${o} = ${encodeURIComponent(r)};${s}path = / `,this}static get(o){o=`${g1.prefix}${o}`;const r=document.cookie.split(";");for(const i of r){const[s,u]=i.split("=").map(l=>l.trim());if(s===o)return decodeURIComponent(u)}return null}static delete(o){return o=`${g1.prefix}${o}`,document.cookie=`${o} = ; expires = Thu, 01 Jan 1970 00:00:00 UTC; path = / ;`,this}};le(g1,"prefix","wp-dark-mode-");let N=g1;const l1=class l1{constructor(){X1(this,y1,{onChange:[]});X1(this,Oe,{target:"html",activeAttribute:"data-wp-dark-mode-active",activeClass:"wp-dark-mode-active",ignoreClass:"wp-dark-mode-ignore"})}static getInstance(){return de(l1,w1)||_r(l1,w1,new l1),de(l1,w1)}onChange(o){return de(this,y1).onChange.push(o),this}get isDeviceDark(){return window.matchMedia("(prefers-color-scheme: dark)").matches}get target(){return document.querySelector(de(this,Oe).target)}get isActive(){var o;return(o=this.target)==null?void 0:o.hasAttribute(de(this,Oe).activeAttribute)}toggle(){return this.isActive?this.deactivate():this.activate(),this}updateTarget(o){return o?this.target.setAttribute(de(this,Oe).activeAttribute,""):this.target.removeAttribute(de(this,Oe).activeAttribute),o?this.target.classList.add(de(this,Oe).activeClass):this.target.classList.remove(de(this,Oe).activeClass),this}activate(o={}){return _r(this,Oe,{...de(this,Oe),...o}),this.updateTarget(!0),de(this,y1).onChange.forEach(r=>r({isActive:this.isActive})),this}deactivate(){return this.updateTarget(!1),de(this,y1).onChange.forEach(o=>o({isActive:this.isActive})),this}remember(){return N.set("choice",this.isActive?"dark":"light"),this}forget(){return N.delete("choice").delete("device").delete("timezone"),this}};w1=new WeakMap,y1=new WeakMap,Oe=new WeakMap,X1(l1,w1,null);let Q=l1;const I=Q.getInstance();window.WPDarkMode=I;class We{constructor(){le(this,"_el",(o,r=document)=>r.querySelector(o));le(this,"_els",(o,r=document)=>r.querySelectorAll(o));X1(this,n1,{})}isTrue(o){return["1","true","yes","on",1,!0].includes(o)}get isPremium(){return this.isTrue(wp_dark_mode_json.is_ultimate||wp_dark_mode_json.is_pro)}on(o,r){de(this,n1)[o]||(de(this,n1)[o]=[]);try{de(this,n1)[o].push(r)}catch{}return this}emit(o,...r){return de(this,n1)[o]&&de(this,n1)[o].forEach(i=>{i(...r)}),this}init(){this.events(),document.addEventListener("DOMContentLoaded",()=>{this.ready()})}ready(){}events(){}get html(){return document.querySelector("html")}}n1=new WeakMap;function xr(t,o){return function(){return t.apply(o,arguments)}}const{toString:no}=Object.prototype,{getPrototypeOf:Ft}=Object,Y1=(t=>o=>{const r=no.call(o);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Be=t=>(t=t.toLowerCase(),o=>Y1(o)===t),Q1=t=>o=>typeof o===t,{isArray:m1}=Array,T1=Q1("undefined");function oo(t){return t!==null&&!T1(t)&&t.constructor!==null&&!T1(t.constructor)&&Le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lr=Be("ArrayBuffer");function io(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Lr(t.buffer),o}const ao=Q1("string"),Le=Q1("function"),Mr=Q1("number"),et=t=>t!==null&&typeof t=="object",so=t=>t===!0||t===!1,tt=t=>{if(Y1(t)!=="object")return!1;const o=Ft(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},co=Be("Date"),uo=Be("File"),lo=Be("Blob"),fo=Be("FileList"),ho=t=>et(t)&&Le(t.pipe),po=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||Le(t.append)&&((o=Y1(t))==="formdata"||o==="object"&&Le(t.toString)&&t.toString()==="[object FormData]"))},mo=Be("URLSearchParams"),Co=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function O1(t,o,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),m1(t))for(i=0,s=t.length;i0;)if(s=r[i],o===s.toLowerCase())return s;return null}const Ar=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Rr=t=>!T1(t)&&t!==Ar;function It(){const{caseless:t}=Rr(this)&&this||{},o={},r=(i,s)=>{const u=t&&Er(o,s)||s;tt(o[u])&&tt(i)?o[u]=It(o[u],i):tt(i)?o[u]=It({},i):m1(i)?o[u]=i.slice():o[u]=i};for(let i=0,s=arguments.length;i(O1(o,(s,u)=>{r&&Le(s)?t[u]=xr(s,r):t[u]=s},{allOwnKeys:i}),t),go=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),wo=(t,o,r,i)=>{t.prototype=Object.create(o.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),r&&Object.assign(t.prototype,r)},yo=(t,o,r,i)=>{let s,u,l;const g={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),u=s.length;u-- >0;)l=s[u],(!i||i(l,t,o))&&!g[l]&&(o[l]=t[l],g[l]=!0);t=r!==!1&&Ft(t)}while(t&&(!r||r(t,o))&&t!==Object.prototype);return o},bo=(t,o,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=o.length;const i=t.indexOf(o,r);return i!==-1&&i===r},So=t=>{if(!t)return null;if(m1(t))return t;let o=t.length;if(!Mr(o))return null;const r=new Array(o);for(;o-- >0;)r[o]=t[o];return r},ko=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&Ft(Uint8Array)),_o=(t,o)=>{const i=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=i.next())&&!s.done;){const u=s.value;o.call(t,u[0],u[1])}},xo=(t,o)=>{let r;const i=[];for(;(r=t.exec(o))!==null;)i.push(r);return i},Lo=Be("HTMLFormElement"),Mo=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,s){return i.toUpperCase()+s}),Tr=(({hasOwnProperty:t})=>(o,r)=>t.call(o,r))(Object.prototype),Eo=Be("RegExp"),Or=(t,o)=>{const r=Object.getOwnPropertyDescriptors(t),i={};O1(r,(s,u)=>{let l;(l=o(s,u,t))!==!1&&(i[u]=l||s)}),Object.defineProperties(t,i)},Ao=t=>{Or(t,(o,r)=>{if(Le(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=t[r];if(Le(i)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ro=(t,o)=>{const r={},i=s=>{s.forEach(u=>{r[u]=!0})};return m1(t)?i(t):i(String(t).split(o)),r},To=()=>{},Oo=(t,o)=>(t=+t,Number.isFinite(t)?t:o),Nt="abcdefghijklmnopqrstuvwxyz",Pr="0123456789",Dr={DIGIT:Pr,ALPHA:Nt,ALPHA_DIGIT:Nt+Nt.toUpperCase()+Pr},Po=(t=16,o=Dr.ALPHA_DIGIT)=>{let r="";const{length:i}=o;for(;t--;)r+=o[Math.random()*i|0];return r};function Do(t){return!!(t&&Le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Fo=t=>{const o=new Array(10),r=(i,s)=>{if(et(i)){if(o.indexOf(i)>=0)return;if(!("toJSON"in i)){o[s]=i;const u=m1(i)?[]:{};return O1(i,(l,g)=>{const A=r(l,s+1);!T1(A)&&(u[g]=A)}),o[s]=void 0,u}}return i};return r(t,0)},Io=Be("AsyncFunction"),v={isArray:m1,isArrayBuffer:Lr,isBuffer:oo,isFormData:po,isArrayBufferView:io,isString:ao,isNumber:Mr,isBoolean:so,isObject:et,isPlainObject:tt,isUndefined:T1,isDate:co,isFile:uo,isBlob:lo,isRegExp:Eo,isFunction:Le,isStream:ho,isURLSearchParams:mo,isTypedArray:ko,isFileList:fo,forEach:O1,merge:It,extend:vo,trim:Co,stripBOM:go,inherits:wo,toFlatObject:yo,kindOf:Y1,kindOfTest:Be,endsWith:bo,toArray:So,forEachEntry:_o,matchAll:xo,isHTMLForm:Lo,hasOwnProperty:Tr,hasOwnProp:Tr,reduceDescriptors:Or,freezeMethods:Ao,toObjectSet:Ro,toCamelCase:Mo,noop:To,toFiniteNumber:Oo,findKey:Er,global:Ar,isContextDefined:Rr,ALPHABET:Dr,generateString:Po,isSpecCompliantForm:Do,toJSONObject:Fo,isAsyncFn:Io,isThenable:t=>t&&(et(t)||Le(t))&&Le(t.then)&&Le(t.catch)};function Z(t,o,r,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s)}v.inherits(Z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fr=Z.prototype,Ir={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ir[t]={value:t}}),Object.defineProperties(Z,Ir),Object.defineProperty(Fr,"isAxiosError",{value:!0}),Z.from=(t,o,r,i,s,u)=>{const l=Object.create(Fr);return v.toFlatObject(t,l,function(A){return A!==Error.prototype},g=>g!=="isAxiosError"),Z.call(l,t.message,o,r,i,s),l.cause=t,l.name=t.name,u&&Object.assign(l,u),l};const No=null;function jt(t){return v.isPlainObject(t)||v.isArray(t)}function Nr(t){return v.endsWith(t,"[]")?t.slice(0,-2):t}function jr(t,o,r){return t?t.concat(o).map(function(s,u){return s=Nr(s),!r&&u?"["+s+"]":s}).join(r?".":""):o}function jo(t){return v.isArray(t)&&!t.some(jt)}const Bo=v.toFlatObject(v,{},null,function(o){return/^is[A-Z]/.test(o)});function rt(t,o,r){if(!v.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,ee){return!v.isUndefined(ee[T])});const i=r.metaTokens,s=r.visitor||M,u=r.dots,l=r.indexes,A=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(o);if(!v.isFunction(s))throw new TypeError("visitor must be a function");function k(R){if(R===null)return"";if(v.isDate(R))return R.toISOString();if(!A&&v.isBlob(R))throw new Z("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(R)||v.isTypedArray(R)?A&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function M(R,T,ee){let se=R;if(R&&!ee&&typeof R=="object"){if(v.endsWith(T,"{}"))T=i?T:T.slice(0,-2),R=JSON.stringify(R);else if(v.isArray(R)&&jo(R)||(v.isFileList(R)||v.endsWith(T,"[]"))&&(se=v.toArray(R)))return T=Nr(T),se.forEach(function(_e,b1){!(v.isUndefined(_e)||_e===null)&&o.append(l===!0?jr([T],b1,u):l===null?T:T+"[]",k(_e))}),!1}return jt(R)?!0:(o.append(jr(ee,T,u),k(R)),!1)}const b=[],G=Object.assign(Bo,{defaultVisitor:M,convertValue:k,isVisitable:jt});function te(R,T){if(!v.isUndefined(R)){if(b.indexOf(R)!==-1)throw Error("Circular reference detected in "+T.join("."));b.push(R),v.forEach(R,function(se,we){(!(v.isUndefined(se)||se===null)&&s.call(o,se,v.isString(we)?we.trim():we,T,G))===!0&&te(se,T?T.concat(we):[we])}),b.pop()}}if(!v.isObject(t))throw new TypeError("data must be an object");return te(t),o}function Br(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return o[i]})}function Bt(t,o){this._pairs=[],t&&rt(t,this,o)}const Zr=Bt.prototype;Zr.append=function(o,r){this._pairs.push([o,r])},Zr.toString=function(o){const r=o?function(i){return o.call(this,i,Br)}:Br;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function Zo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ur(t,o,r){if(!o)return t;const i=r&&r.encode||Zo,s=r&&r.serialize;let u;if(s?u=s(o,r):u=v.isURLSearchParams(o)?o.toString():new Bt(o,r).toString(i),u){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class Uo{constructor(){this.handlers=[]}use(o,r,i){return this.handlers.push({fulfilled:o,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){v.forEach(this.handlers,function(i){i!==null&&o(i)})}}const Hr=Uo,$r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ho={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Bt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},qr=typeof window<"u"&&typeof document<"u",$o=(t=>qr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),qo=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:$o,hasStandardBrowserWebWorkerEnv:qo},Symbol.toStringTag,{value:"Module"})),...Ho};function Vo(t,o){return rt(t,new Ze.classes.URLSearchParams,Object.assign({visitor:function(r,i,s,u){return Ze.isNode&&v.isBuffer(r)?(this.append(i,r.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},o))}function Wo(t){return v.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function zo(t){const o={},r=Object.keys(t);let i;const s=r.length;let u;for(i=0;i=r.length;return l=!l&&v.isArray(s)?s.length:l,A?(v.hasOwnProp(s,l)?s[l]=[s[l],i]:s[l]=i,!g):((!s[l]||!v.isObject(s[l]))&&(s[l]=[]),o(r,i,s[l],u)&&v.isArray(s[l])&&(s[l]=zo(s[l])),!g)}if(v.isFormData(t)&&v.isFunction(t.entries)){const r={};return v.forEachEntry(t,(i,s)=>{o(Wo(i),s,r,0)}),r}return null}function Go(t,o,r){if(v.isString(t))try{return(o||JSON.parse)(t),v.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(t)}const Zt={transitional:$r,adapter:["xhr","http"],transformRequest:[function(o,r){const i=r.getContentType()||"",s=i.indexOf("application/json")>-1,u=v.isObject(o);if(u&&v.isHTMLForm(o)&&(o=new FormData(o)),v.isFormData(o))return s?JSON.stringify(Vr(o)):o;if(v.isArrayBuffer(o)||v.isBuffer(o)||v.isStream(o)||v.isFile(o)||v.isBlob(o))return o;if(v.isArrayBufferView(o))return o.buffer;if(v.isURLSearchParams(o))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let g;if(u){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Vo(o,this.formSerializer).toString();if((g=v.isFileList(o))||i.indexOf("multipart/form-data")>-1){const A=this.env&&this.env.FormData;return rt(g?{"files[]":o}:o,A&&new A,this.formSerializer)}}return u||s?(r.setContentType("application/json",!1),Go(o)):o}],transformResponse:[function(o){const r=this.transitional||Zt.transitional,i=r&&r.forcedJSONParsing,s=this.responseType==="json";if(o&&v.isString(o)&&(i&&!this.responseType||s)){const l=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(o)}catch(g){if(l)throw g.name==="SyntaxError"?Z.from(g,Z.ERR_BAD_RESPONSE,this,null,this.response):g}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],t=>{Zt.headers[t]={}});const Ut=Zt,Jo=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ko=t=>{const o={};let r,i,s;return t&&t.split(` `).forEach(function(l){s=l.indexOf(":"),r=l.substring(0,s).trim().toLowerCase(),i=l.substring(s+1).trim(),!(!r||o[r]&&Jo[r])&&(r==="set-cookie"?o[r]?o[r].push(i):o[r]=[i]:o[r]=o[r]?o[r]+", "+i:i)}),o},Wr=Symbol("internals");function P1(t){return t&&String(t).trim().toLowerCase()}function nt(t){return t===!1||t==null?t:v.isArray(t)?t.map(nt):String(t)}function Xo(t){const o=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)o[i[1]]=i[2];return o}const Yo=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ht(t,o,r,i,s){if(v.isFunction(i))return i.call(this,o,r);if(s&&(o=r),!!v.isString(o)){if(v.isString(i))return o.indexOf(i)!==-1;if(v.isRegExp(i))return i.test(o)}}function Qo(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,r,i)=>r.toUpperCase()+i)}function ei(t,o){const r=v.toCamelCase(" "+o);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(s,u,l){return this[i].call(this,o,s,u,l)},configurable:!0})})}class ot{constructor(o){o&&this.set(o)}set(o,r,i){const s=this;function u(g,A,k){const M=P1(A);if(!M)throw new Error("header name must be a non-empty string");const b=v.findKey(s,M);(!b||s[b]===void 0||k===!0||k===void 0&&s[b]!==!1)&&(s[b||A]=nt(g))}const l=(g,A)=>v.forEach(g,(k,M)=>u(k,M,A));return v.isPlainObject(o)||o instanceof this.constructor?l(o,r):v.isString(o)&&(o=o.trim())&&!Yo(o)?l(Ko(o),r):o!=null&&u(r,o,i),this}get(o,r){if(o=P1(o),o){const i=v.findKey(this,o);if(i){const s=this[i];if(!r)return s;if(r===!0)return Xo(s);if(v.isFunction(r))return r.call(this,s,i);if(v.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,r){if(o=P1(o),o){const i=v.findKey(this,o);return!!(i&&this[i]!==void 0&&(!r||Ht(this,this[i],i,r)))}return!1}delete(o,r){const i=this;let s=!1;function u(l){if(l=P1(l),l){const g=v.findKey(i,l);g&&(!r||Ht(i,i[g],g,r))&&(delete i[g],s=!0)}}return v.isArray(o)?o.forEach(u):u(o),s}clear(o){const r=Object.keys(this);let i=r.length,s=!1;for(;i--;){const u=r[i];(!o||Ht(this,this[u],u,o,!0))&&(delete this[u],s=!0)}return s}normalize(o){const r=this,i={};return v.forEach(this,(s,u)=>{const l=v.findKey(i,u);if(l){r[l]=nt(s),delete r[u];return}const g=o?Qo(u):String(u).trim();g!==u&&delete r[u],r[g]=nt(s),i[g]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const r=Object.create(null);return v.forEach(this,(i,s)=>{i!=null&&i!==!1&&(r[s]=o&&v.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,r])=>o+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...r){const i=new this(o);return r.forEach(s=>i.set(s)),i}static accessor(o){const i=(this[Wr]=this[Wr]={accessors:{}}).accessors,s=this.prototype;function u(l){const g=P1(l);i[g]||(ei(s,l),i[g]=!0)}return v.isArray(o)?o.forEach(u):u(o),this}}ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),v.reduceDescriptors(ot.prototype,({value:t},o)=>{let r=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[r]=i}}}),v.freezeMethods(ot);const ze=ot;function $t(t,o){const r=this||Ut,i=o||r,s=ze.from(i.headers);let u=i.data;return v.forEach(t,function(g){u=g.call(r,u,s.normalize(),o?o.status:void 0)}),s.normalize(),u}function zr(t){return!!(t&&t.__CANCEL__)}function D1(t,o,r){Z.call(this,t??"canceled",Z.ERR_CANCELED,o,r),this.name="CanceledError"}v.inherits(D1,Z,{__CANCEL__:!0});function ti(t,o,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):o(new Z("Request failed with status code "+r.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ri=Ze.hasStandardBrowserEnv?{write(t,o,r,i,s,u){const l=[t+"="+encodeURIComponent(o)];v.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),v.isString(i)&&l.push("path="+i),v.isString(s)&&l.push("domain="+s),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ni(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function oi(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function Gr(t,o){return t&&!ni(o)?oi(t,o):o}const ii=Ze.hasStandardBrowserEnv?function(){const o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function s(u){let l=u;return o&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=s(window.location.href),function(l){const g=v.isString(l)?s(l):l;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}();function ai(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function si(t,o){t=t||10;const r=new Array(t),i=new Array(t);let s=0,u=0,l;return o=o!==void 0?o:1e3,function(A){const k=Date.now(),M=i[u];l||(l=k),r[s]=A,i[s]=k;let b=u,G=0;for(;b!==s;)G+=r[b++],b=b%t;if(s=(s+1)%t,s===u&&(u=(u+1)%t),k-l{const u=s.loaded,l=s.lengthComputable?s.total:void 0,g=u-r,A=i(g),k=u<=l;r=u;const M={loaded:u,total:l,progress:l?u/l:void 0,bytes:g,rate:A||void 0,estimated:A&&l&&k?(l-u)/A:void 0,event:s};M[o?"download":"upload"]=!0,t(M)}}const qt={http:No,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,i){let s=t.data;const u=ze.from(t.headers).normalize();let{responseType:l,withXSRFToken:g}=t,A;function k(){t.cancelToken&&t.cancelToken.unsubscribe(A),t.signal&&t.signal.removeEventListener("abort",A)}let M;if(v.isFormData(s)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((M=u.getContentType())!==!1){const[T,...ee]=M?M.split(";").map(se=>se.trim()).filter(Boolean):[];u.setContentType([T||"multipart/form-data",...ee].join("; "))}}let b=new XMLHttpRequest;if(t.auth){const T=t.auth.username||"",ee=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.set("Authorization","Basic "+btoa(T+":"+ee))}const G=Gr(t.baseURL,t.url);b.open(t.method.toUpperCase(),Ur(G,t.params,t.paramsSerializer),!0),b.timeout=t.timeout;function te(){if(!b)return;const T=ze.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),se={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:T,config:t,request:b};ti(function(_e){r(_e),k()},function(_e){i(_e),k()},se),b=null}if("onloadend"in b?b.onloadend=te:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(te)},b.onabort=function(){b&&(i(new Z("Request aborted",Z.ECONNABORTED,t,b)),b=null)},b.onerror=function(){i(new Z("Network Error",Z.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let ee=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const se=t.transitional||$r;t.timeoutErrorMessage&&(ee=t.timeoutErrorMessage),i(new Z(ee,se.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,t,b)),b=null},Ze.hasStandardBrowserEnv&&(g&&v.isFunction(g)&&(g=g(t)),g||g!==!1&&ii(G))){const T=t.xsrfHeaderName&&t.xsrfCookieName&&ri.read(t.xsrfCookieName);T&&u.set(t.xsrfHeaderName,T)}s===void 0&&u.setContentType(null),"setRequestHeader"in b&&v.forEach(u.toJSON(),function(ee,se){b.setRequestHeader(se,ee)}),v.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),l&&l!=="json"&&(b.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&b.addEventListener("progress",Jr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",Jr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(A=T=>{b&&(i(!T||T.type?new D1(null,t,b):T),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(A),t.signal&&(t.signal.aborted?A():t.signal.addEventListener("abort",A)));const R=ai(G);if(R&&Ze.protocols.indexOf(R)===-1){i(new Z("Unsupported protocol "+R+":",Z.ERR_BAD_REQUEST,t));return}b.send(s||null)})}};v.forEach(qt,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const Kr=t=>`- ${t}`,ci=t=>v.isFunction(t)||t===null||t===!1,Xr={getAdapter:t=>{t=v.isArray(t)?t:[t];const{length:o}=t;let r,i;const s={};for(let u=0;u`adapter ${g} `+(A===!1?"is not supported by the environment":"is not available in the build"));let l=o?u.length>1?`since : `+u.map(Kr).join(` `):" "+Kr(u[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:qt};function Vt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new D1(null,t)}function Yr(t){return Vt(t),t.headers=ze.from(t.headers),t.data=$t.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Xr.getAdapter(t.adapter||Ut.adapter)(t).then(function(i){return Vt(t),i.data=$t.call(t,t.transformResponse,i),i.headers=ze.from(i.headers),i},function(i){return zr(i)||(Vt(t),i&&i.response&&(i.response.data=$t.call(t,t.transformResponse,i.response),i.response.headers=ze.from(i.response.headers))),Promise.reject(i)})}const Qr=t=>t instanceof ze?t.toJSON():t;function C1(t,o){o=o||{};const r={};function i(k,M,b){return v.isPlainObject(k)&&v.isPlainObject(M)?v.merge.call({caseless:b},k,M):v.isPlainObject(M)?v.merge({},M):v.isArray(M)?M.slice():M}function s(k,M,b){if(v.isUndefined(M)){if(!v.isUndefined(k))return i(void 0,k,b)}else return i(k,M,b)}function u(k,M){if(!v.isUndefined(M))return i(void 0,M)}function l(k,M){if(v.isUndefined(M)){if(!v.isUndefined(k))return i(void 0,k)}else return i(void 0,M)}function g(k,M,b){if(b in o)return i(k,M);if(b in t)return i(void 0,k)}const A={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:g,headers:(k,M)=>s(Qr(k),Qr(M),!0)};return v.forEach(Object.keys(Object.assign({},t,o)),function(M){const b=A[M]||s,G=b(t[M],o[M],M);v.isUndefined(G)&&b!==g||(r[M]=G)}),r}const en="1.6.7",Wt={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Wt[t]=function(i){return typeof i===t||"a"+(o<1?"n ":" ")+t}});const tn={};Wt.transitional=function(o,r,i){function s(u,l){return"[Axios v"+en+"] Transitional option '"+u+"'"+l+(i?". "+i:"")}return(u,l,g)=>{if(o===!1)throw new Z(s(l," has been removed"+(r?" in "+r:"")),Z.ERR_DEPRECATED);return r&&!tn[l]&&(tn[l]=!0,console.warn(s(l," has been deprecated since v"+r+" and will be removed in the near future"))),o?o(u,l,g):!0}};function ui(t,o,r){if(typeof t!="object")throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const u=i[s],l=o[u];if(l){const g=t[u],A=g===void 0||l(g,u,t);if(A!==!0)throw new Z("option "+u+" must be "+A,Z.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Z("Unknown option "+u,Z.ERR_BAD_OPTION)}}const zt={assertOptions:ui,validators:Wt},t1=zt.validators;class it{constructor(o){this.defaults=o,this.interceptors={request:new Hr,response:new Hr}}async request(o,r){try{return await this._request(o,r)}catch(i){if(i instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const u=s.stack?s.stack.replace(/^.+\n/,""):"";i.stack?u&&!String(i.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+u):i.stack=u}throw i}}_request(o,r){typeof o=="string"?(r=r||{},r.url=o):r=o||{},r=C1(this.defaults,r);const{transitional:i,paramsSerializer:s,headers:u}=r;i!==void 0&&zt.assertOptions(i,{silentJSONParsing:t1.transitional(t1.boolean),forcedJSONParsing:t1.transitional(t1.boolean),clarifyTimeoutError:t1.transitional(t1.boolean)},!1),s!=null&&(v.isFunction(s)?r.paramsSerializer={serialize:s}:zt.assertOptions(s,{encode:t1.function,serialize:t1.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=u&&v.merge(u.common,u[r.method]);u&&v.forEach(["delete","get","head","post","put","patch","common"],R=>{delete u[R]}),r.headers=ze.concat(l,u);const g=[];let A=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(r)===!1||(A=A&&T.synchronous,g.unshift(T.fulfilled,T.rejected))});const k=[];this.interceptors.response.forEach(function(T){k.push(T.fulfilled,T.rejected)});let M,b=0,G;if(!A){const R=[Yr.bind(this),void 0];for(R.unshift.apply(R,g),R.push.apply(R,k),G=R.length,M=Promise.resolve(r);b{if(!i._listeners)return;let u=i._listeners.length;for(;u-- >0;)i._listeners[u](s);i._listeners=null}),this.promise.then=s=>{let u;const l=new Promise(g=>{i.subscribe(g),u=g}).then(s);return l.cancel=function(){i.unsubscribe(u)},l},o(function(u,l,g){i.reason||(i.reason=new D1(u,l,g),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const r=this._listeners.indexOf(o);r!==-1&&this._listeners.splice(r,1)}static source(){let o;return{token:new Gt(function(s){o=s}),cancel:o}}}const li=Gt;function di(t){return function(r){return t.apply(null,r)}}function fi(t){return v.isObject(t)&&t.isAxiosError===!0}const Jt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jt).forEach(([t,o])=>{Jt[o]=t});const hi=Jt;function rn(t){const o=new at(t),r=xr(at.prototype.request,o);return v.extend(r,at.prototype,o,{allOwnKeys:!0}),v.extend(r,o,null,{allOwnKeys:!0}),r.create=function(s){return rn(C1(t,s))},r}const ae=rn(Ut);ae.Axios=at,ae.CanceledError=D1,ae.CancelToken=li,ae.isCancel=zr,ae.VERSION=en,ae.toFormData=rt,ae.AxiosError=Z,ae.Cancel=ae.CanceledError,ae.all=function(o){return Promise.all(o)},ae.spread=di,ae.isAxiosError=fi,ae.mergeConfig=C1,ae.AxiosHeaders=ze,ae.formToJSON=t=>Vr(v.isHTMLForm(t)?new FormData(t):t),ae.getAdapter=Xr.getAdapter,ae.HttpStatusCode=hi,ae.default=ae;const pi=ae;class mi{async request(o="GET",r="",i={}){var k;const s=typeof wp_dark_mode_admin_json<"u"?wp_dark_mode_admin_json:wp_dark_mode_json;let u=((k=s==null?void 0:s.url)==null?void 0:k.ajax)+"?action="+r+"&_wpnonce="+s.nonce;const g={method:o,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},credentials:"same-origin"};return o!=="POST"&&Object.keys(i).length>0?u+="&"+this.serialize(i):g.data=i,(await pi(u,g)).data}async get(o="",r={}){return await this.request("GET",o,r)}async post(o="",r={}){return await this.request("POST",o,r)}serialize(o){var r=[];for(var i in o)o.hasOwnProperty(i)&&r.push(encodeURIComponent(i)+"="+encodeURIComponent(o[i]));return r.join("&")}}const Ci=new mi;class vi extends We{constructor(){super(...arguments);le(this,"initLargeFont",()=>{if(!wp_dark_mode_json.options.typography_enabled)return;const r=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 i=wp_dark_mode_json.options.typography_font_size;i==="custom"&&(i=wp_dark_mode_json.options.typography_font_size_custom/100),r.forEach(s=>{if(s.closest(".wp-dark-mode-ignore"))return;const u=getComputedStyle(s).fontSize;if(u){const l=this.calculateFontSize(u,i);s.style.setProperty("--wp-dark-mode-large-font-size",l)}})});le(this,"calculateFontSize",(r,i=1)=>{const s=r.replace(/[0-9]/g,""),u=parseFloat(r.replace(/[a-z]/g,""));let l=0;return l=u*i,`${l}${s}`});le(this,"checkLargeFont",()=>{N.get("large-font")==="on"&&(document.querySelector("html").classList.add("wp-dark-mode-large-font"),document.addEventListener("wp-dark-mode-switches-updated",()=>{const i=document.querySelectorAll(".wp-dark-mode-switch ._font");!i||!i.length||i.forEach(s=>{s.classList.add("active")})}))})}ready(){this.trackKeyBoardPress(),this.handleAnimation(),setTimeout(()=>{this.updateVisitor()},1e4),this.isPremium&&(this.initLargeFont(),this.checkLargeFont())}trackKeyBoardPress(){wp_dark_mode_json.options.accessibility_enabled_keyboard_shortcut&&document.addEventListener("keydown",r=>{r.ctrlKey&&r.altKey&&r.keyCode===68&&WPDarkMode.toggle().remember()})}handleAnimation(){wp_dark_mode_json.options.animation_enabled&&(WPDarkMode.isActive&&document.querySelector("html").classList.add("wp-dark-mode-animation"),WPDarkMode.onChange(()=>{WPDarkMode.isActive?document.querySelector("html").classList.add("wp-dark-mode-animation"):document.querySelector("html").classList.remove("wp-dark-mode-animation")}))}toggleFontSize(r){if(!wp_dark_mode_json.options.typography_enabled)return;const i=document.querySelector("html"),s=i.classList.contains("wp-dark-mode-large-font");i.classList[s?"remove":"add"]("wp-dark-mode-large-font");const u=r.classList.contains("active");r.classList[u?"remove":"add"]("active"),N.set("large-font",s?"off":"on");const l=document.querySelectorAll(".wp-dark-mode-switch ._font");!l||!l.length||l.forEach(g=>{g.classList[u?"remove":"add"]("active")})}async updateVisitor(){var u;if(!wp_dark_mode_json.analytics_enabled)return;localStorage.getItem("wp-dark-mode-visitor");const r=localStorage.getItem("wp-dark-mode-visitor")||null,i={visitor_id:r||!1,mode:WPDarkMode.isActive?"dark":"light",nonce:wp_dark_mode_json.nonce};if(!r){i.meta=(u=JSON.stringify({os:navigator.platform,browser:navigator.appCodeName,browser_version:navigator.appVersion,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone}))==null?void 0:u.replace(";","");try{i.ip=await fetch("https://api.ipify.org?format=json").then(l=>l.json()).then(l=>l.ip)}catch{}}const s=await Ci.post("wp_dark_mode_update_visitor",i);s&&s.success&&!r&&localStorage.setItem("wp-dark-mode-visitor",s.data.visitor_id)}}const nn=new vi;(function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.DarkModeAuto={}))})(globalThis,function(t){var o=function(){return o=Object.assign||function(n){for(var a,c=1,f=arguments.length;c0&&d[d.length-1])&&(m[0]===6||m[0]===2)){a=0;continue}if(m[0]===3&&(!d||m[1]>d[0]&&m[1]=e.length&&(e=void 0),{value:e&&e[c++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,n){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var c=a.call(e),f,d=[],h;try{for(;(n===void 0||n-- >0)&&!(f=c.next()).done;)d.push(f.value)}catch(p){h={error:p}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(h)throw h.error}}return d}function l(){for(var e=[],n=0;n"u"?"some useragent":navigator.userAgent.toLowerCase(),A=typeof navigator>"u"?"some platform":navigator.platform.toLowerCase(),k=g.includes("chrome")||g.includes("chromium"),M=g.includes("firefox");g.includes("vivaldi"),g.includes("yabrowser"),g.includes("opr")||g.includes("opera"),g.includes("edg");var b=g.includes("safari")&&!k,G=A.startsWith("win"),te=A.startsWith("mac");g.includes("mobile");var R=typeof ShadowRoot=="function";(function(){var e=g.match(/chrom[e|ium]\/([^ ]+)/);return e&&e[1]?e[1]:""})();var T=function(){try{return document.querySelector(":defined"),!0}catch{return!1}}(),ee=function(){try{return new CSSStyleSheet,!0}catch{return!1}}();function se(e,n){return r(this,void 0,void 0,function(){var a;return i(this,function(c){switch(c.label){case 0:return[4,fetch(e,{cache:"force-cache",credentials:"omit"})];case 1:if(a=c.sent(),M&&n==="text/css"&&e.startsWith("moz-extension://")&&e.endsWith(".css"))return[2,a];if(n&&!a.headers.get("Content-Type").startsWith(n))throw new Error("Mime type mismatch when loading "+e);if(!a.ok)throw new Error("Unable to load "+e+" "+a.status+" "+a.statusText);return[2,a]}})})}function we(e,n){return r(this,void 0,void 0,function(){var a;return i(this,function(c){switch(c.label){case 0:return[4,se(e,n)];case 1:return a=c.sent(),[4,_e(a)];case 2:return[2,c.sent()]}})})}function _e(e){return r(this,void 0,void 0,function(){var n,a;return i(this,function(c){switch(c.label){case 0:return[4,e.blob()];case 1:return n=c.sent(),[4,new Promise(function(f){var d=new FileReader;d.onloadend=function(){return f(d.result)},d.readAsDataURL(n)})];case 2:return a=c.sent(),[2,a]}})})}function b1(e){}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var ct=new Set;function ut(){}function N1(e){ct.add(e)}if(typeof chrome.runtime.sendMessage=="function"){var lt=chrome.runtime.sendMessage;chrome.runtime.sendMessage=function(){for(var e=[],n=0;n=c){if(P-mfn)return!0;for(var n=0,a=0;afn)return!0;return!1}function ji(e){var n=new Set,a=new Set,c=new Set;e.forEach(function(h){pe(h.addedNodes,function(p){p instanceof Element&&p.isConnected&&n.add(p)}),pe(h.removedNodes,function(p){p instanceof Element&&(p.isConnected?c.add(p):a.add(p))})}),c.forEach(function(h){return n.delete(h)});var f=[],d=[];return n.forEach(function(h){n.has(h.parentElement)&&f.push(h)}),a.forEach(function(h){a.has(h.parentElement)&&d.push(h)}),f.forEach(function(h){return n.delete(h)}),d.forEach(function(h){return a.delete(h)}),{additions:n,moves:c,deletions:a}}var mt=new Map,tr=new WeakMap;function hn(e,n){var a,c,f;if(mt.has(e))a=mt.get(e),c=tr.get(a);else{var d=!1,h=!1;a=new MutationObserver(function(p){if(Ni(p))!d||j1()?c.forEach(function(m){var w=m.onHugeMutations;return w(e)}):h||(f=function(){return c.forEach(function(m){var w=m.onHugeMutations;return w(e)})},un(f),h=!0),d=!0;else{var C=ji(p);c.forEach(function(m){var w=m.onMinorMutations;return w(C)})}}),a.observe(e,{childList:!0,subtree:!0}),mt.set(e,a),c=new Set,tr.set(a,c)}return c.add(n),{disconnect:function(){c.delete(n),f&&ln(f),c.size===0&&(a.disconnect(),tr.delete(a),mt.delete(e))}}}var x1=null;function Bi(){if(x1)return x1;if(ee)return x1=new CSSStyleSheet,x1;var e=document.createElement("style");return document.head.append(e),x1=e.sheet,document.head.removeChild(e),x1}function pn(e){var n=e.h,a=e.s,c=e.l,f=e.a,d=f===void 0?1:f;if(a===0){var h=u([c,c,c].map(function(P){return Math.round(P*255)}),3),p=h[0],C=h[1],m=h[2];return{r:p,g:m,b:C,a:d}}var w=(1-Math.abs(2*c-1))*a,y=w*(1-Math.abs(n/60%2-1)),S=c-w/2,x=u((n<60?[w,y,0]:n<120?[y,w,0]:n<180?[0,w,y]:n<240?[0,y,w]:n<300?[y,0,w]:[w,0,y]).map(function(P){return Math.round((P+S)*255)}),3),F=x[0],_=x[1],L=x[2];return{r:F,g:_,b:L,a:d}}function Ct(e){var n=e.r,a=e.g,c=e.b,f=e.a,d=f===void 0?1:f,h=n/255,p=a/255,C=c/255,m=Math.max(h,p,C),w=Math.min(h,p,C),y=m-w,S=(m+w)/2;if(y===0)return{h:0,s:0,l:S,a:d};var x=(m===h?(p-C)/y%6:m===p?(C-h)/y+2:(h-p)/y+4)*60;x<0&&(x+=360);var F=y/(1-Math.abs(2*S-1));return{h:x,s:F,l:S,a:d}}function Se(e,n){n===void 0&&(n=0);var a=e.toFixed(n);if(n===0)return a;var c=a.indexOf(".");if(c>=0){var f=a.match(/0+$/);if(f)return f.index===c+1?a.substring(0,c):a.substring(0,f.index)}return a}function Zi(e){var n=e.r,a=e.g,c=e.b,f=e.a;return f!=null&&f<1?"rgba("+Se(n)+", "+Se(a)+", "+Se(c)+", "+Se(f,2)+")":"rgb("+Se(n)+", "+Se(a)+", "+Se(c)+")"}function Ui(e){var n=e.r,a=e.g,c=e.b,f=e.a;return"#"+(f!=null&&f<1?[n,a,c,Math.round(f*255)]:[n,a,c]).map(function(d){return(d<16?"0":"")+d.toString(16)}).join("")}function B1(e){var n=e.h,a=e.s,c=e.l,f=e.a;return f!=null&&f<1?"hsla("+Se(n)+", "+Se(a*100)+"%, "+Se(c*100)+"%, "+Se(f,2)+")":"hsl("+Se(n)+", "+Se(a*100)+"%, "+Se(c*100)+"%)"}var Hi=/^rgba?\([^\(\)]+\)$/,$i=/^hsla?\([^\(\)]+\)$/,qi=/^#[0-9a-f]+$/i;function f1(e){var n=e.trim().toLowerCase();if(n.match(Hi))return Gi(n);if(n.match($i))return Yi(n);if(n.match(qi))return Qi(n);if(Cn.has(n))return ea(n);if(vn.has(n))return ta(n);if(e==="transparent")return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function mn(e,n,a,c){var f=e.split(n).filter(function(p){return p}),d=Object.entries(c),h=f.map(function(p){return p.trim()}).map(function(p,C){var m,w=d.find(function(y){var S=u(y,1),x=S[0];return p.endsWith(x)});return w?m=parseFloat(p.substring(0,p.length-w[0].length))/w[1]*a[C]:m=parseFloat(p),a[C]>1?Math.round(m):m});return h}var Vi=/rgba?|\(|\)|\/|,|\s/gi,Wi=[255,255,255,1],zi={"%":100};function Gi(e){var n=u(mn(e,Vi,Wi,zi),4),a=n[0],c=n[1],f=n[2],d=n[3],h=d===void 0?1:d;return{r:a,g:c,b:f,a:h}}var Ji=/hsla?|\(|\)|\/|,|\s/gi,Ki=[360,1,1,1],Xi={"%":100,deg:360,rad:2*Math.PI,turn:1};function Yi(e){var n=u(mn(e,Ji,Ki,Xi),4),a=n[0],c=n[1],f=n[2],d=n[3],h=d===void 0?1:d;return pn({h:a,s:c,l:f,a:h})}function Qi(e){var n=e.substring(1);switch(n.length){case 3:case 4:{var a=u([0,1,2].map(function(C){return parseInt(""+n[C]+n[C],16)}),3),c=a[0],f=a[1],d=a[2],h=n.length===3?1:parseInt(""+n[3]+n[3],16)/255;return{r:c,g:f,b:d,a:h}}case 6:case 8:{var p=u([0,2,4].map(function(S){return parseInt(n.substring(S,S+2),16)}),3),c=p[0],f=p[1],d=p[2],h=n.length===6?1:parseInt(n.substring(6,8),16)/255;return{r:c,g:f,b:d,a:h}}}throw new Error("Unable to parse "+e)}function ea(e){var n=Cn.get(e);return{r:n>>16&255,g:n>>8&255,b:n>>0&255,a:1}}function ta(e){var n=vn.get(e);return{r:n>>16&255,g:n>>8&255,b:n>>0&255,a:1}}var Cn=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),vn=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map(function(e){var n=u(e,2),a=n[0],c=n[1];return[a.toLowerCase(),c]}));function Ne(e,n,a,c,f){return(e-n)*(f-c)/(a-n)+c}function vt(e,n,a){return Math.min(a,Math.max(n,e))}function L1(e,n){for(var a=[],c=0,f=e.length;c200&&c<280;C=f<.24||d>.8&&m}var w=c,y=d;C&&(p?(w=n.h,y=n.s):(w=a.h,y=a.s));var S=Ne(d,0,1,n.l,a.l);return{h:w,s:y,l:S,a:h}}var wn=.4;function fa(e,n){var a=e.h,c=e.s,f=e.l,d=e.a,h=f<.5,p=a>200&&a<280,C=c<.12||f>.8&&p;if(h){var m=Ne(f,0,.5,0,wn);if(C){var w=n.h,y=n.s;return{h:w,s:y,l:m,a:d}}return{h:a,s:c,l:m,a:d}}var S=Ne(f,.5,1,wn,n.l);if(C){var x=n.h,y=n.s;return{h:x,s:y,l:S,a:d}}var F=a,_=a>60&&a<180;if(_){var L=a>120;L?F=Ne(a,120,180,135,180):F=Ne(a,60,120,60,105)}return{h:F,s:c,l:S,a:d}}function ke(e,n){if(n.mode===0)return ir(e,n);var a=nr(n);return Z1(e,o(o({},n),{mode:0}),fa,a)}var yt=.55;function yn(e){return Ne(e,205,245,205,220)}function ha(e,n){var a=e.h,c=e.s,f=e.l,d=e.a,h=f>.5,p=f<.2||c<.24,C=!p&&a>205&&a<245;if(h){var m=Ne(f,.5,1,yt,n.l);if(p){var w=n.h,y=n.s;return{h:w,s:y,l:m,a:d}}var S=a;return C&&(S=yn(a)),{h:S,s:c,l:m,a:d}}if(p){var x=n.h,y=n.s,F=Ne(f,0,.5,n.l,yt);return{h:x,s:y,l:F,a:d}}var _=a,L;return C?(_=yn(a),L=Ne(f,0,.5,n.l,Math.min(1,yt+.05))):L=Ne(f,0,.5,n.l,yt),{h:_,s:c,l:L,a:d}}function Ke(e,n){if(n.mode===0)return ir(e,n);var a=or(n);return Z1(e,o(o({},n),{mode:0}),ha,a)}function pa(e,n,a){var c=e.h,f=e.s,d=e.l,h=e.a,p=d<.5,C=d<.2||f<.24,m=c,w=f;C&&(p?(m=n.h,w=n.s):(m=a.h,w=a.s));var y=Ne(d,0,1,.5,.2);return{h:m,s:w,l:y,a:h}}function bt(e,n){if(n.mode===0)return ir(e,n);var a=or(n),c=nr(n);return Z1(e,o(o({},n),{mode:0}),pa,a,c)}function ma(e,n){return ke(e,n)}function Ca(e){var n=[];return n.push("*:not(pre) {"),e.useFont&&e.fontFamily&&n.push(" font-family: "+e.fontFamily+" !important;"),e.textStroke>0&&(n.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),n.push(" text-stroke: "+e.textStroke+"px !important;")),n.push("}"),n.join(` `)}var ar;(function(e){e[e.light=0]="light",e[e.dark=1]="dark"})(ar||(ar={}));function va(e){var n=[];return e.mode===ar.dark&&n.push("invert(100%) hue-rotate(180deg)"),e.brightness!==100&&n.push("brightness("+e.brightness+"%)"),e.contrast!==100&&n.push("contrast("+e.contrast+"%)"),e.grayscale!==0&&n.push("grayscale("+e.grayscale+"%)"),e.sepia!==0&&n.push("sepia("+e.sepia+"%)"),n.length===0?null:n.join(" ")}var ga=0,sr=new Map,cr=new Map;function wa(e){return r(this,void 0,void 0,function(){return i(this,function(n){return[2,new Promise(function(a,c){var f=++ga;sr.set(f,a),cr.set(f,c),chrome.runtime.sendMessage({type:"fetch",data:e,id:f})})]})})}chrome.runtime.onMessage.addListener(function(e){var n=e.type,a=e.data,c=e.error,f=e.id;if(n==="fetch-response"){var d=sr.get(f),h=cr.get(f);sr.delete(f),cr.delete(f),c?h&&h(c):d&&d(a)}});var bn=new Set;function ya(){bn.forEach(function(e){return URL.revokeObjectURL(e)}),bn.clear()}function Sn(e,n,a,c,f){var d=!!(a&&a.style&&a.style.getPropertyPriority(e)),h=n;if(e.startsWith("--"))return null;if(e.indexOf("color")>=0&&e!=="-webkit-print-color-adjust"||e==="fill"||e==="stroke"||e==="stop-color"){var p=La(e,n);if(p)return{property:e,value:p,important:d,sourceValue:h}}else if(e==="background-image"||e==="list-style-image"){var p=Aa();if(p)return{property:e,value:p,important:d,sourceValue:h}}else if(e.indexOf("shadow")>=0){var p=Ra(e,n);if(p)return{property:e,value:p,important:d,sourceValue:h}}return null}function ba(e,n,a){var c=[];return n||(c.push("html {"),c.push(" background-color: "+ke({r:255,g:255,b:255},e)+" !important;"),c.push("}")),c.push((n?"":"html, body, ")+(a?"input, textarea, select, button":"")+" {"),c.push(" background-color: "+ke({r:255,g:255,b:255},e)+";"),c.push("}"),c.push("html, body, "+(a?"input, textarea, select, button":"")+" {"),c.push(" border-color: "+bt({r:76,g:76,b:76},e)+";"),c.push(" color: "+Ke({r:0,g:0,b:0},e)+";"),c.push("}"),c.push("a {"),c.push(" color: "+Ke({r:0,g:64,b:255},e)+";"),c.push("}"),c.push("table {"),c.push(" border-color: "+bt({r:128,g:128,b:128},e)+";"),c.push("}"),c.push("::placeholder {"),c.push(" color: "+Ke({r:169,g:169,b:169},e)+";"),c.push("}"),c.push("input:-webkit-autofill,"),c.push("textarea:-webkit-autofill,"),c.push("select:-webkit-autofill {"),c.push(" background-color: "+ke({r:250,g:255,b:189},e)+" !important;"),c.push(" color: "+Ke({r:0,g:0,b:0},e)+" !important;"),c.push("}"),e.scrollbarColor&&c.push(ka(e)),e.selectionColor&&c.push(Sa(e)),c.join(` `)}function kn(e){var n,a;if(e.selectionColor==="auto")n=ke({r:0,g:96,b:212},o(o({},e),{grayscale:0})),a=Ke({r:255,g:255,b:255},o(o({},e),{grayscale:0}));else{var c=f1(e.selectionColor),f=Ct(c);n=e.selectionColor,f.l<.5?a="#FFF":a="#000"}return{backgroundColorSelection:n,foregroundColorSelection:a}}function Sa(e){var n=[],a=kn(e),c=a.backgroundColorSelection,f=a.foregroundColorSelection;return["::selection","::-moz-selection"].forEach(function(d){n.push(d+" {"),n.push(" background-color: "+c+" !important;"),n.push(" color: "+f+" !important;"),n.push("}")}),n.join(` `)}function ka(e){var n=[],a,c,f,d,h,p;if(e.scrollbarColor==="auto")a=ke({r:241,g:241,b:241},e),c=Ke({r:96,g:96,b:96},e),f=ke({r:176,g:176,b:176},e),d=ke({r:144,g:144,b:144},e),h=ke({r:96,g:96,b:96},e),p=ke({r:255,g:255,b:255},e);else{var C=f1(e.scrollbarColor),m=Ct(C),w=m.l>.5,y=function(x){return o(o({},m),{l:vt(m.l+x,0,1)})},S=function(x){return o(o({},m),{l:vt(m.l-x,0,1)})};a=B1(S(.4)),c=B1(w?S(.4):y(.4)),f=B1(m),d=B1(y(.1)),h=B1(y(.2))}return n.push("::-webkit-scrollbar {"),n.push(" background-color: "+a+";"),n.push(" color: "+c+";"),n.push("}"),n.push("::-webkit-scrollbar-thumb {"),n.push(" background-color: "+f+";"),n.push("}"),n.push("::-webkit-scrollbar-thumb:hover {"),n.push(" background-color: "+d+";"),n.push("}"),n.push("::-webkit-scrollbar-thumb:active {"),n.push(" background-color: "+h+";"),n.push("}"),n.push("::-webkit-scrollbar-corner {"),n.push(" background-color: "+p+";"),n.push("}"),n.push("* {"),n.push(" scrollbar-color: "+a+" "+f+";"),n.push("}"),n.join(` `)}function ur(e,n){var a=n.strict,c=[];return c.push("html, body, "+(a?"body :not(iframe)":"body > :not(iframe)")+" {"),c.push(" background-color: "+ke({r:255,g:255,b:255},e)+" !important;"),c.push(" border-color: "+bt({r:64,g:64,b:64},e)+" !important;"),c.push(" color: "+Ke({r:0,g:0,b:0},e)+" !important;"),c.push("}"),""}var _a=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),St=new Map;function lr(e){if(e=e.trim(),St.has(e))return St.get(e);var n=f1(e);return St.set(e,n),n}function xa(e){try{return lr(e)}catch{return null}}function La(e,n){if(_a.has(n.toLowerCase()))return n;try{var a=lr(n);return e.indexOf("background")>=0?function(c){return ke(a,c)}:e.indexOf("border")>=0||e.indexOf("outline")>=0?function(c){return bt(a,c)}:function(c){return Ke(a,c)}}catch{return null}}var Ma=new Map,Ea=new Map;function Aa(e,n,a,c){return null}function Ra(e,n){try{var a=0,c=rr(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,n,2),f=c.map(function(d,h){var p=a,C=n.indexOf(d,a),m=C+d.length;a=m;var w=xa(d);return w?function(y){return""+n.substring(p,C)+ma(w,y)+(h===c.length-1?n.substring(m):"")}:function(){return n.substring(p,m)}});return function(d){return f.map(function(h){return h(d)}).join("")}}catch{return null}}function Ta(){St.clear(),ia(),Ma.clear(),ya(),Ea.clear()}var E1={"background-color":{customProp:"--wp-dark-mode-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkmoder-inline-bgcolor"},"background-image":{customProp:"--wp-dark-mode-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkmoder-inline-bgimage"},"border-color":{customProp:"--wp-dark-mode-inline-border",cssProp:"border-color",dataAttr:"data-darkmoder-inline-border"},"border-bottom-color":{customProp:"--wp-dark-mode-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkmoder-inline-border-bottom"},"border-left-color":{customProp:"--wp-dark-mode-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkmoder-inline-border-left"},"border-right-color":{customProp:"--wp-dark-mode-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkmoder-inline-border-right"},"border-top-color":{customProp:"--wp-dark-mode-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkmoder-inline-border-top"},"box-shadow":{customProp:"--wp-dark-mode-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkmoder-inline-boxshadow"},color:{customProp:"--wp-dark-mode-inline-color",cssProp:"color",dataAttr:"data-darkmoder-inline-color"},fill:{customProp:"--wp-dark-mode-inline-fill",cssProp:"fill",dataAttr:"data-darkmoder-inline-fill"},stroke:{customProp:"--wp-dark-mode-inline-stroke",cssProp:"stroke",dataAttr:"data-darkmoder-inline-stroke"},"outline-color":{customProp:"--wp-dark-mode-inline-outline",cssProp:"outline-color",dataAttr:"data-darkmoder-inline-outline"},"stop-color":{customProp:"--wp-dark-mode-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkmoder-inline-stopcolor"}},_n=Object.values(E1),kt=["style","fill","stop-color","stroke","bgcolor","color"],U1=kt.map(function(e){return"["+e+"]"}).join(", ");function xn(){return _n.map(function(e){var n=e.dataAttr,a=e.customProp,c=e.cssProp;return["["+n+"] {"," "+c+": var("+a+") !important;","}"].join(` `)}).join(` `)}function Oa(e){var n=[];return e instanceof Element&&e.matches(U1)&&n.push(e),(e instanceof Element||R&&e instanceof ShadowRoot||e instanceof Document)&&S1(n,e.querySelectorAll(U1)),n}var H1=new Map,_t=new Map;function Pa(e,n){dr(document,e,n),Je(document.documentElement,function(a){dr(a.shadowRoot,e,n)})}function dr(e,n,a){H1.has(e)&&(H1.get(e).disconnect(),_t.get(e).disconnect());var c=new WeakSet;function f(_){Oa(_).forEach(function(L){c.has(L)||(c.add(L),n(L))}),Je(_,function(L){c.has(_)||(c.add(_),a(L.shadowRoot),dr(L.shadowRoot,n,a))})}var d=hn(e,{onMinorMutations:function(_){var L=_.additions;L.forEach(function(P){return f(P)})},onHugeMutations:function(){f(e)}});H1.set(e,d);var h=0,p=null,C=Ie({seconds:10}),m=Ie({seconds:2}),w=50,y=[],S=null,x=Ce(function(_){_.forEach(function(L){kt.includes(L.attributeName)&&n(L.target)})}),F=new MutationObserver(function(_){if(S){y.push.apply(y,l(_));return}h++;var L=Date.now();if(p==null)p=L;else if(h>=w){if(L-p0&&Ia(e,a)){d.forEach(function(x){e.removeAttribute(E1[x].dataAttr)});return}if(e.hasAttribute("bgcolor")){var p=e.getAttribute("bgcolor");(p.match(/^[0-9a-f]{3}$/i)||p.match(/^[0-9a-f]{6}$/i))&&(p="#"+p),h("background-color","background-color",p)}if(e.hasAttribute("color")){var p=e.getAttribute("color");(p.match(/^[0-9a-f]{3}$/i)||p.match(/^[0-9a-f]{6}$/i))&&(p="#"+p),h("color","color",p)}if(e instanceof SVGElement){if(e.hasAttribute("fill")){var C=32,p=e.getAttribute("fill"),m=!1;if(!(e instanceof SVGTextElement)){var w=e.getBoundingClientRect(),y=w.width,S=w.height;m=y>C||S>C}h("fill",m?"background-color":"color",p)}e.hasAttribute("stop-color")&&h("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){var p=e.getAttribute("stroke");h("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",p)}e.style&&D(e.style,function(x,F){x==="background-image"&&F.indexOf("url")>=0||E1.hasOwnProperty(x)&&h(x,x,F)}),e.style&&e instanceof SVGTextElement&&e.style.fill&&h("fill","color",e.style.getPropertyValue("fill")),pe(d,function(x){e.removeAttribute(E1[x].dataAttr)}),Ln.set(e,Mn(e,n))}var En="theme-color",An='meta[name="'+En+'"]',$1=null,Xe=null;function Rn(e,n){$1=$1||e.content;try{var a=f1($1);e.content=ke(a,n)}catch{}}function Na(e){var n=document.querySelector(An);n?Rn(n,e):(Xe&&Xe.disconnect(),Xe=new MutationObserver(function(a){e:for(var c=0;c0||$.includes("var(")){var X=be($,C);n.get($)!==X&&(n.set($,X),oe=!0,q=Bi(),q.insertRule(X),ie=q.cssRules[0])}if(oe)S=!0;else{L.push(a.get($));return}var ue=[],ve=ie||U;ve&&ve.style&&D(ve.style,function(qe,Qe){var s1=Sn(qe,Qe,U);s1&&ue.push(s1)});var ge=null;if(ue.length>0){var Te=U.parentRule;ge={selector:U.selectorText,declarations:ue,parentRule:Te},L.push(ge)}a.set($,ge),q&&q.deleteRule(0)}}),x.forEach(function(U){n.delete(U),a.delete(U)}),c=F,!m&&!S&&!_)return;e++;function P(U,$,oe){var q=oe.selector,ie=oe.declarations;if(!q)return;const X=document.querySelector(q);if(!(typeof X>"u"||!X)&&!(typeof wp_dark_mode_json<"u"&&wp_dark_mode_json.options.excludes_elements_includes!==""&&!X.classList.contains("wp-dark-mode-include"))&&!X.classList.contains("wp-dark-mode-ignore")){U.insertRule(q+" {}",$);var ue=U.cssRules[$].style;ie.forEach(function(ve){var ge=ve.property,Te=ve.value,qe=ve.important,Qe=ve.sourceValue;ge!=="background-image"&&ue.setProperty(ge,Te??Qe,qe?"important":"")})}}var W=new Map,j=0,z={rule:null,rules:[],isGroup:!0},je=new WeakMap;function xe(U){if(U==null)return z;if(je.has(U))return je.get(U);var $={rule:U,rules:[],isGroup:!0};je.set(U,$);var oe=xe(U.parentRule);return oe.rules.push($),$}L.filter(function(U){return U}).forEach(function(U){var $=U.selector,oe=U.declarations,q=U.parentRule,ie=xe(q),X={selector:$,declarations:[],isGroup:!1},ue=X.declarations;ie.rules.push(X),oe.forEach(function(ve){var ge=ve.property,Te=ve.value,qe=ve.important,Qe=ve.sourceValue;if(typeof Te=="function"){var s1=Te(p);if(s1 instanceof Promise){var Ot=j++,J1={property:ge,value:null,important:qe,asyncKey:Ot,sourceValue:Qe};ue.push(J1);var kr=s1,Pt=e;kr.then(function(Dt){!Dt||y()||Pt!==e||(J1.value=Dt,Ua.add(function(){y()||Pt!==e||G1(Ot)}))})}else ue.push({property:ge,value:s1,important:qe,sourceValue:Qe})}else ue.push({property:ge,value:Te,important:qe,sourceValue:Qe})})});var Re=w();function Sr(){function U(oe,q){var ie=oe.rule;if(ie instanceof CSSMediaRule){var X=ie.media,ue=q.cssRules.length;return q.insertRule("@media "+X.mediaText+" {}",ue),q.cssRules[ue]}return q}function $(oe,q,ie){oe.rules.forEach(function(X){if(X.isGroup){var ue=U(X,q);$(X,ue,ie)}else ie(X,q)})}$(z,Re,function(oe,q){var ie=q.cssRules.length;oe.declarations.filter(function(X){var ue=X.value;return ue==null}).forEach(function(X){var ue=X.asyncKey;return W.set(ue,{rule:oe,target:q,index:ie})}),P(q,ie,oe)})}function G1(U){var $=W.get(U);if(!(typeof $>"u")){var oe=$.rule,q=$.target,ie=$.index;q.deleteRule(ie),P(q,ie,oe),W.delete(U)}}Sr()}return{modifySheet:f}}var Ha='style, link[rel*="stylesheet" i]:not([disabled])';function On(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkmoder")&&e.media!=="print"&&!e.classList.contains("stylus")}function a1(e,n,a){return n===void 0&&(n=[]),a===void 0&&(a=!0),On(e)?n.push(e):(e instanceof Element||R&&e instanceof ShadowRoot||e===document)&&(pe(e.querySelectorAll(Ha),function(c){return a1(c,n,!1)}),a&&Je(e,function(c){return a1(c.shadowRoot,n,!1)})),n}var Pn=new WeakSet,Dn=new WeakSet,xt=!1;document.addEventListener("__darkmoder__inlineScriptsAllowed",function(){xt=!0});function $a(e,n){for(var a=n.update,c=n.loadingStart,f=n.loadingEnd,d=[],h=e;(h=h.nextElementSibling)&&h.matches(".darkmoder");)d.push(h);var p=d.find(function(B){return B.matches(".darkmoder--cors")&&!Dn.has(B)})||null,C=d.find(function(B){return B.matches(".darkmoder--sync")&&!Pn.has(B)})||null,m=null,w=null,y=!1,S=Tn(),x=new MutationObserver(function(){a()}),F={attributes:!0,childList:!0,characterData:!0};function _(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(ne)}function L(){return p?p.sheet.cssRules:_()?null:$()}function P(){p?(e.nextSibling!==p&&e.parentNode.insertBefore(p,e.nextSibling),p.nextSibling!==C&&e.parentNode.insertBefore(C,p.nextSibling)):e.nextSibling!==C&&e.parentNode.insertBefore(C,e.nextSibling)}function W(){C=e instanceof SVGStyleElement?document.createElementNS("http://www.w3.org/2000/svg","style"):document.createElement("style"),C.classList.add("darkmoder"),C.classList.add("darkmoder--sync"),C.media="screen",Pn.add(C)}var j=!1,z=!1;function je(){return r(this,void 0,void 0,function(){var B,e1,Ve,c1,R1,K1,u1;return i(this,function(he){switch(he.label){case 0:if(!(e instanceof HTMLLinkElement))return[3,7];if(Ve=u(G1(),2),c1=Ve[0],R1=Ve[1],!(!c1&&!R1&&!b||b&&!e.sheet||U(R1)))return[3,5];he.label=1;case 1:return he.trys.push([1,3,,4]),[4,qa(e)];case 2:return he.sent(),[3,4];case 3:return he.sent(),z=!0,[3,4];case 4:if(y)return[2,null];u1=u(G1(),2),c1=u1[0],R1=u1[1],he.label=5;case 5:return c1!=null?[2,c1]:[4,Fn(e.href)];case 6:return B=he.sent(),e1=me(e.href),y?[2,null]:[3,8];case 7:if(_())B=e.textContent.trim(),e1=me(location.href);else return[2,null];he.label=8;case 8:if(!B)return[3,13];he.label=9;case 9:return he.trys.push([9,11,,12]),[4,In(B,e1)];case 10:return K1=he.sent(),p=Wa(e,K1),[3,12];case 11:return he.sent(),[3,12];case 12:if(p)return m=i1(p,"prev-sibling"),[2,p.sheet.cssRules];he.label=13;case 13:return[2,null]}})})}function xe(){var B=L();if(!B)return j||z||(j=!0,c(),je().then(function(Ve){j=!1,f(),Ve&&a()}).catch(function(Ve){j=!1,f()})),null;var e1=V(B);return{variables:e1}}var Re=!1;function Sr(B,e1,Ve){var c1=L();if(!c1)return;y=!1;function R1(){C||W(),w&&w.stop(),P(),C.sheet==null&&(C.textContent="");for(var u1=C.sheet,he=u1.cssRules.length-1;he>=0;he--)u1.deleteRule(he);return w?w.run():w=i1(C,"prev-sibling",function(){Re=!0,K1()}),C.sheet}function K1(){var u1=Re;Re=!1,S.modifySheet({prepareSheet:R1,sourceCSSRules:c1,theme:B,variables:e1,ignoreImageAnalysis:Ve,force:u1,isAsyncCancelled:function(){return y}})}K1()}function G1(){try{return e.sheet==null?[null,null]:[e.sheet.cssRules,null]}catch(B){return[null,B]}}function U(B){return B&&B.message&&B.message.includes("loading")}function $(){var B=u(G1(),2),e1=B[0],Ve=B[1];return Ve?null:e1}function oe(){Qe(),xt&&e.sheet||ve()}var q=null,ie=null;function X(){var B=$();return B?B.length:null}function ue(){return X()!==q}function ve(){q=X(),ge();var B=function(){if(ue()&&(q=X(),a()),xt&&e.sheet){ge();return}ie=requestAnimationFrame(B)};B()}function ge(){cancelAnimationFrame(ie)}var Te=!1;function qe(){if(xt=!0,ge(),Te)return;function B(){Te=!1,!y&&a()}Te=!0,typeof queueMicrotask=="function"?queueMicrotask(B):requestAnimationFrame(B)}function Qe(){e.addEventListener("__darkmoder__updateSheet",qe)}function s1(){e.removeEventListener("__darkmoder__updateSheet",qe)}function Ot(){s1(),ge()}function J1(){x.disconnect(),y=!0,m&&m.stop(),w&&w.stop(),Ot()}function kr(){J1(),K(p),K(C)}function Pt(){x.observe(e,F),e instanceof HTMLStyleElement&&oe()}var Dt=10,to=0;function bs(){if(C&&(to++,!(to>Dt))){var B=C.sheet==null||C.sheet.cssRules.length>0;P(),m&&m.skip(),w&&w.skip(),B&&(Re=!0,a())}}return{details:xe,render:Sr,pause:J1,destroy:kr,watch:Pt,restore:bs}}function qa(e){return r(this,void 0,void 0,function(){return i(this,function(n){return[2,new Promise(function(a,c){var f=function(){e.removeEventListener("load",d),e.removeEventListener("error",h)},d=function(){f(),a()},h=function(){f(),c("Link loading failed "+e.href)};e.addEventListener("load",d),e.addEventListener("error",h)})]})})}function Va(e){return fe(e.substring(8).replace(/;$/,""))}function Fn(e){return r(this,void 0,void 0,function(){return i(this,function(n){switch(n.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,n.sent().text()];case 2:return[2,n.sent()];case 3:return[4,wa({url:e,responseType:"text",mimeType:"text/css"})];case 4:return[2,n.sent()]}})})}function In(e,n,a){return a===void 0&&(a=new Map),r(this,void 0,void 0,function(){var c,f,d,h,p,C,m,w,y,S;return i(this,function(x){switch(x.label){case 0:e=Ge(e),e=De(e),e=Me(e,n),c=rr(ne,e),x.label=1;case 1:x.trys.push([1,10,11,12]),f=s(c),d=f.next(),x.label=2;case 2:return d.done?[3,9]:(h=d.value,p=Va(h),C=d1(n,p),m=void 0,a.has(C)?(m=a.get(C),[3,7]):[3,3]);case 3:return x.trys.push([3,6,,7]),[4,Fn(C)];case 4:return m=x.sent(),a.set(C,m),[4,In(m,me(C),a)];case 5:return m=x.sent(),[3,7];case 6:return x.sent(),m="",[3,7];case 7:e=e.split(h).join(m),x.label=8;case 8:return d=f.next(),[3,2];case 9:return[3,12];case 10:return w=x.sent(),y={error:w},[3,12];case 11:try{d&&!d.done&&(S=f.return)&&S.call(f)}finally{if(y)throw y.error}return[7];case 12:return e=e.trim(),[2,e]}})})}function Wa(e,n){if(!n)return null;var a=document.createElement("style");return a.classList.add("darkmoder"),a.classList.add("darkmoder--cors"),a.media="screen",a.textContent=n,e.parentNode.insertBefore(a,e.nextSibling),a.sheet.disabled=!0,Dn.add(a),a}var Lt=[],hr,h1=new Map,Mt;function Et(e){T&&pe(e.querySelectorAll(":not(:defined)"),function(n){var a=n.tagName.toLowerCase();h1.has(a)||(h1.set(a,new Set),za(a).then(function(){if(Mt){var c=h1.get(a);h1.delete(a),Mt(Array.from(c))}})),h1.get(a).add(n)})}var pr=!1;document.addEventListener("__darkmoder__inlineScriptsAllowed",function(){pr=!0});var mr=new Map;function Nn(e){if(pr=!0,mr.has(e.detail.tag)){var n=mr.get(e.detail.tag);n()}}function za(e){return r(this,void 0,void 0,function(){return i(this,function(n){return[2,new Promise(function(a){if(window.customElements&&typeof customElements.whenDefined=="function")customElements.whenDefined(e).then(a);else if(pr)mr.set(e,a),document.dispatchEvent(new CustomEvent("__darkmoder__addUndefinedResolver",{detail:{tag:e}}));else{var c=function(){var f=h1.get(e);f&&f.size>0&&(f.values().next().value.matches(":defined")?a():requestAnimationFrame(c))};requestAnimationFrame(c)}})]})})}function Ga(e){Mt=e}function Ja(){Mt=null,h1.clear(),document.removeEventListener("__darkmoder__isDefined",Nn)}function Ka(e,n,a){jn();var c=new Set(e),f=new WeakMap,d=new WeakMap;function h(_){f.set(_,_.previousElementSibling),d.set(_,_.nextElementSibling)}function p(_){f.delete(_),d.delete(_)}function C(_){return _.previousElementSibling!==f.get(_)||_.nextElementSibling!==d.get(_)}e.forEach(h);function m(_){var L=_.createdStyles,P=_.removedStyles,W=_.movedStyles;L.forEach(function(j){return h(j)}),W.forEach(function(j){return h(j)}),P.forEach(function(j){return p(j)}),L.forEach(function(j){return c.add(j)}),P.forEach(function(j){return c.delete(j)}),L.size+P.size+W.size>0&&n({created:Array.from(L),removed:Array.from(P),moved:Array.from(W),updated:[]})}function w(_){var L=_.additions,P=_.moves,W=_.deletions,j=new Set,z=new Set,je=new Set;L.forEach(function(xe){return a1(xe).forEach(function(Re){return j.add(Re)})}),W.forEach(function(xe){return a1(xe).forEach(function(Re){return z.add(Re)})}),P.forEach(function(xe){return a1(xe).forEach(function(Re){return je.add(Re)})}),m({createdStyles:j,removedStyles:z,movedStyles:je}),L.forEach(function(xe){Je(xe,F),Et(xe)})}function y(_){var L=new Set(a1(_)),P=new Set,W=new Set,j=new Set;L.forEach(function(z){c.has(z)||P.add(z)}),c.forEach(function(z){L.has(z)||W.add(z)}),L.forEach(function(z){!P.has(z)&&!W.has(z)&&C(z)&&j.add(z)}),m({createdStyles:P,removedStyles:W,movedStyles:j}),Je(_,F),Et(_)}function S(_){var L=new Set,P=new Set;_.forEach(function(W){var j=W.target;j.isConnected&&(On(j)?L.add(j):j instanceof HTMLLinkElement&&j.disabled&&P.add(j))}),L.size+P.size>0&&n({updated:Array.from(L),created:[],removed:Array.from(P),moved:[]})}function x(_){var L=hn(_,{onMinorMutations:w,onHugeMutations:y}),P=new MutationObserver(S);P.observe(_,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),Lt.push(L,P),hr.add(_)}function F(_){var L=_.shadowRoot;L==null||hr.has(L)||(x(L),a(L))}x(document),Je(document.documentElement,F),Ga(function(_){var L=[];_.forEach(function(P){return S1(L,a1(P.shadowRoot))}),n({created:L,updated:[],removed:[],moved:[]}),_.forEach(function(P){var W=P.shadowRoot;W!=null&&(F(P),Je(W,F),Et(W))})}),document.addEventListener("__darkmoder__isDefined",Nn),Et(document)}function Xa(){Lt.forEach(function(e){return e.disconnect()}),Lt.splice(0,Lt.length),hr=new WeakSet}function jn(){Xa(),Ja()}function Ya(e){return(e<16?"0":"")+e.toString(16)}function Qa(){return Array.from(crypto.getRandomValues(new Uint8Array(16))).map(function(e){return Ya(e)}).join("")}var Bn=new WeakMap,At=new WeakSet;function es(e){var n=!1;function a(d,h){var p=l(e.adoptedStyleSheets),C=p.indexOf(d),m=p.indexOf(h);C!==m-1&&(m>=0&&p.splice(m,1),p.splice(C+1,0,h),e.adoptedStyleSheets=p)}function c(){n=!0;var d=l(e.adoptedStyleSheets);e.adoptedStyleSheets.forEach(function(h){if(At.has(h)){var p=d.indexOf(h);p>=0&&d.splice(p,1),Bn.delete(h),At.delete(h)}}),e.adoptedStyleSheets=d}function f(d,h,p){e.adoptedStyleSheets.forEach(function(C){if(At.has(C))return;var m=C.rules,w=new CSSStyleSheet;function y(){for(var F=w.cssRules.length-1;F>=0;F--)w.deleteRule(F);return a(C,w),Bn.set(C,w),At.add(w),w}var S=h;V(C.cssRules).forEach(function(F,_){return S.set(_,F)});var x=Tn();x.modifySheet({prepareSheet:y,sourceCSSRules:m,theme:d,variables:S,ignoreImageAnalysis:p,force:!1,isAsyncCancelled:function(){return n}})})}return{render:f,destroy:c}}function ts(){document.dispatchEvent(new CustomEvent("__darkmoder__inlineScriptsAllowed"));var e=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),a=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),c=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),f=function(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",e),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",n),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",a),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",c),document.removeEventListener("__darkmoder__cleanUp",f),document.removeEventListener("__darkmoder__addUndefinedResolver",function(y){return d(y)})},d=function(y){customElements.whenDefined(y.detail.tag).then(function(){document.dispatchEvent(new CustomEvent("__darkmoder__isDefined",{detail:{tag:y.detail.tag}}))})};document.addEventListener("__darkmoder__cleanUp",f),document.addEventListener("__darkmoder__addUndefinedResolver",function(y){return d(y)});var h=new Event("__darkmoder__updateSheet");function p(y,S,x){return e.value.call(this,y,S,x),this.ownerNode&&!this.ownerNode.classList.contains("darkmoder")&&this.ownerNode.dispatchEvent(h),-1}function C(y,S){var x=n.value.call(this,y,S);return this.ownerNode&&!this.ownerNode.classList.contains("darkmoder")&&this.ownerNode.dispatchEvent(h),x}function m(y){try{a.value.call(this,y)}catch{}this.ownerNode&&!this.ownerNode.classList.contains("darkmoder")&&this.ownerNode.dispatchEvent(h)}function w(y){c.value.call(this,y),this.ownerNode&&!this.ownerNode.classList.contains("darkmoder")&&this.ownerNode.dispatchEvent(h)}Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},e,{value:p})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},n,{value:C})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},a,{value:m})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},c,{value:w}))}var He=new Map,Zn=Qa(),Ae=new Map,Rt=[],H=null,ce=null,Un=null;function $e(e,n){n===void 0&&(n=document.head||document);var a=n.querySelector("."+e);return a||(a=document.createElement("style"),a.classList.add("darkmoder"),a.classList.add(e),a.media="screen"),a}function rs(e,n){n===void 0&&(n=document.head||document);var a=n.querySelector("."+e);return a||(a=document.createElement("script"),a.classList.add("darkmoder"),a.classList.add(e)),a}var q1=new Map;function p1(e,n){q1.has(n)&&q1.get(n).stop(),q1.set(n,i1(e,"parent"))}function ns(){pe(q1.values(),function(e){return e.stop()}),q1.clear()}function os(){var e=$e("darkmoder--fallback",document);e.textContent=ur(H,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),p1(e,"fallback");var n=$e("darkmoder--user-agent");n.textContent=ba(H,Un,H.styleSystemControls),document.head.insertBefore(n,e.nextSibling),p1(n,"user-agent");var a=$e("darkmoder--text");H.useFont||H.textStroke>0?a.textContent=Ca(H):a.textContent="",document.head.insertBefore(a,e.nextSibling),p1(a,"text");var c=$e("darkmoder--invert");ce&&Array.isArray(ce.invert)&&ce.invert.length>0?c.textContent=[ce.invert.join(", ")+" {"," filter: "+va(o(o({},H),{contrast:H.mode===0?H.contrast:vt(H.contrast-10,0,100)}))+" !important;","}"].join(` `):c.textContent="",document.head.insertBefore(c,a.nextSibling),p1(c,"invert");var f=$e("darkmoder--inline");f.textContent=xn(),document.head.insertBefore(f,c.nextSibling),p1(f,"inline");var d=$e("darkmoder--override");d.textContent=ce&&ce.css?Hn(ce.css):"",document.head.appendChild(d),p1(d,"override");var h=$e("darkmoder--variables"),p=kn(H),C=H.darkSchemeBackgroundColor,m=H.darkSchemeTextColor,w=H.lightSchemeBackgroundColor,y=H.lightSchemeTextColor,S=H.mode,x=S===0?w:C,F=S===0?y:m;x=ke(f1(x),H),F=Ke(f1(F),H),h.textContent=[":root {"," --wp-dark-mode-neutral-background: "+x+";"," --wp-dark-mode-neutral-text: "+F+";"," --wp-dark-mode-selection-background: "+p.backgroundColorSelection+";"," --wp-dark-mode-selection-text: "+p.foregroundColorSelection+";","}"].join(` `),document.head.insertBefore(h,f.nextSibling),p1(h,"variables");var _=rs("darkmoder--proxy");_.textContent="("+ts+")()",document.head.insertBefore(_,h.nextSibling)}var Cr=new Set;function vr(e){var n=$e("darkmoder--inline",e);n.textContent=xn(),e.insertBefore(n,e.firstChild);var a=$e("darkmoder--override",e);a.textContent=ce&&ce.css?Hn(ce.css):"",e.insertBefore(a,n.nextSibling),Cr.add(e)}function Hn(e){return e.replace(/\${(.+?)}/g,function(n,a){try{var c=lr(a);return la(c,H)}catch{return a}})}function Tt(){var e=document.querySelector(".darkmoder--fallback");e&&(e.textContent="")}function Ye(){return ce&&Array.isArray(ce.ignoreImageAnalysis)?ce.ignoreImageAnalysis:[]}function is(){Vn(),V1(re(document.documentElement));var e=a1(document),n=e.filter(function(f){return!Ae.has(f)}).map(function(f){return $n(f)}),a=n.map(function(f){return f.details()}).filter(function(f){return f&&f.variables.size>0}).map(function(f){var d=f.variables;return d});a.length===0?(Ae.forEach(function(f){return f.render(H,He,Ye())}),A1.size===0&&Tt()):(a.forEach(function(f){return V1(f)}),W1(function(){A1.size===0&&Tt()})),n.forEach(function(f){return f.watch()});var c=er(document.querySelectorAll(U1));Je(document.documentElement,function(f){vr(f.shadowRoot);var d=f.shadowRoot.querySelectorAll(U1);d.length>0&&S1(c,d)}),ce&&Array.isArray(ce.ignoreInlineStyle)&&ce.ignoreInlineStyle,c.forEach(function(f){return fr(f,H,Ye())}),Kn(document)}var as=0,A1=new Set;function $n(e){var n=++as;function a(){if(!j1()||!zn){A1.add(n);var h=document.querySelector(".darkmoder--fallback");h.textContent||(h.textContent=ur(H,{strict:!1}))}}function c(){A1.delete(n),A1.size===0&&j1()&&Tt()}function f(){var h=d.details();h&&(h.variables.size===0?d.render(H,He,Ye()):(V1(h.variables),W1()))}var d=$a(e,{update:f,loadingStart:a,loadingEnd:c});return Ae.set(e,d),d}function V1(e){e.size!==0&&(e.forEach(function(n,a){He.set(a,n)}),He.forEach(function(n,a){He.set(a,be(n,He))}))}function qn(e){var n=Ae.get(e);n&&(n.destroy(),Ae.delete(e))}var W1=Ce(function(e){Ae.forEach(function(n){return n.render(H,He,Ye())}),Rt.forEach(function(n){return n.render(H,He,Ye())}),e&&e()}),Vn=function(){W1.cancel()};function Wn(){A1.size===0&&Tt()}var z1=null,zn=!document.hidden;function ss(e){var n=!!z1;z1=function(){document.hidden||(Gn(),e(),zn=!0)},n||document.addEventListener("visibilitychange",z1)}function Gn(){document.removeEventListener("visibilitychange",z1),z1=null}function Jn(){os();function e(){is(),cs()}document.hidden?ss(e):e(),Na(H)}function Kn(e){if(Array.isArray(e.adoptedStyleSheets)&&e.adoptedStyleSheets.length>0){var n=es(e);Rt.push(n),n.render(H,He,Ye())}}function cs(){var e=Array.from(Ae.keys());Ka(e,function(a){var c=a.created,f=a.updated,d=a.removed,h=a.moved,p=d,C=c.concat(f).concat(h).filter(function(S){return!Ae.has(S)}),m=h.filter(function(S){return Ae.has(S)});p.forEach(function(S){return qn(S)});var w=C.map(function(S){return $n(S)}),y=w.map(function(S){return S.details()}).filter(function(S){return S&&S.variables.size>0}).map(function(S){var x=S.variables;return x});y.length===0?w.forEach(function(S){return S.render(H,He,Ye())}):(y.forEach(function(S){return V1(S)}),W1()),w.forEach(function(S){return S.watch()}),m.forEach(function(S){return Ae.get(S).restore()})},function(a){vr(a),Kn(a)});var n=ce&&Array.isArray(ce.ignoreInlineStyle)?ce.ignoreInlineStyle:[];Pa(function(a){if(fr(a,H,n,Ye()),a===document.documentElement){var c=re(document.documentElement);c.size>0&&(V1(c),W1())}},function(a){vr(a);var c=a.querySelectorAll(U1);c.length>0&&pe(c,function(f){return fr(f,H,Ye(),n)})}),un(Wn)}function us(){Ae.forEach(function(e){return e.pause()}),ns(),jn(),Da(),ln(Wn)}function ls(){var e=document.createElement("meta");e.name="darkmoder",e.content=Zn,document.head.appendChild(e)}function Xn(){var e=document.querySelector('meta[name="darkmoder"]');return e?e.content!==Zn:(ls(),!1)}function ds(e,n,a){if(H=e,ce=n,Un=a,document.head){if(Xn())return;Jn()}else{if(!M){var c=$e("darkmoder--fallback");document.documentElement.appendChild(c),c.textContent=ur(H,{strict:!0})}var f=new MutationObserver(function(){if(document.head){if(f.disconnect(),Xn()){Yn();return}Jn()}});f.observe(document,{childList:!0,subtree:!0})}}function fs(){document.dispatchEvent(new CustomEvent("__darkmoder__cleanUp")),K(document.head.querySelector(".darkmoder--proxy"))}function Yn(){hs(),K(document.querySelector(".darkmoder--fallback")),document.head&&(ja(),K(document.head.querySelector(".darkmoder--user-agent")),K(document.head.querySelector(".darkmoder--text")),K(document.head.querySelector(".darkmoder--invert")),K(document.head.querySelector(".darkmoder--inline")),K(document.head.querySelector(".darkmoder--override")),K(document.head.querySelector('meta[name="darkmoder"]')),fs()),Cr.forEach(function(e){K(e.querySelector(".darkmoder--inline")),K(e.querySelector(".darkmoder--override"))}),Cr.clear(),pe(Ae.keys(),function(e){return qn(e)}),pe(document.querySelectorAll(".darkmoder"),K),Rt.forEach(function(e){e.destroy()}),Rt.splice(0)}function hs(){Gn(),Vn(),us(),Ta()}var Qn=/url\(\"(blob\:.*?)\"\)/g;function ps(e){return r(this,void 0,void 0,function(){var n,a;return i(this,function(c){switch(c.label){case 0:return n=[],rr(Qn,e,1).forEach(function(f){var d=we(f);n.push(d)}),[4,Promise.all(n)];case 1:return a=c.sent(),[2,e.replace(Qn,function(){return'url("'+a.shift()+'")'})]}})})}var ms=`/* _______ / \\ .==. .==. (( ))==(( )) / "==" "=="\\ /____|| || ||___\\ ________ ____ ________ ___ ___ | ___ \\ / \\ | ___ \\ | | / / | | \\ \\ / /\\ \\ | | \\ \\| |_/ / | | ) / /__\\ \\ | |__/ /| ___ \\ | |__/ / ______ \\| ____ \\| | \\ \\ _______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____ | ___ \\ | ____/ / \\ | ___ \\ | ____| ___ \\ | | \\ \\| |___ / /\\ \\ | | \\ \\| |___| | \\ \\ | |__/ /| ____/ /__\\ \\ | | ) | ____| |__/ / | ____ \\| |__/ ______ \\| |__/ /| |___| ____ \\ |__| \\__\\____/__/ \\__\\_______/ |______|__| \\__\\ https://darkmoder.org */`;function Cs(){return r(this,void 0,void 0,function(){function e(h,p){var C=document.querySelector(h);C&&C.textContent&&(n.push("/* "+p+" */"),n.push(C.textContent),n.push(""))}var n,a,c,f,d;return i(this,function(h){switch(h.label){case 0:return n=[ms],e(".darkmoder--fallback","Fallback Style"),e(".darkmoder--user-agent","User-Agent Style"),e(".darkmoder--text","Text Style"),e(".darkmoder--invert","Invert Style"),e(".darkmoder--variables","Variables Style"),a=[],document.querySelectorAll(".darkmoder--sync").forEach(function(p){pe(p.sheet.cssRules,function(C){C&&C.cssText&&a.push(C.cssText)})}),a.length==0?[3,2]:(c=ra(a.join(` `)),n.push("/* Modified CSS */"),d=(f=n).push,[4,ps(c)]);case 1:d.apply(f,[h.sent()]),n.push(""),h.label=2;case 2:return e(".darkmoder--override","Override Style"),[2,n.join(` `)]}})})}var vs=function(){try{return window.self!==window.top}catch(e){return console.warn(e),!0}}();function eo(e,n){e===void 0&&(e={}),n===void 0&&(n=null);var a=o(o({},ft),e);if(a.engine!==ye.dynamicTheme)throw new Error("Theme engine is not supported.");ds(a,n,vs),t.enabled=!0}function gr(){Yn(),t.enabled=!1}var wr=matchMedia("(prefers-color-scheme: dark)"),yr={themeOptions:null,fixes:null};function br(){wr.matches?eo(yr.themeOptions,yr.fixes):gr()}function gs(e,n){e===void 0&&(e={}),n===void 0&&(n=null),e?(yr={themeOptions:e,fixes:n},br(),wr.addEventListener("change",br)):(wr.removeEventListener("change",br),gr())}function ws(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,Cs()];case 1:return[2,e.sent()]}})})}var ys=b1;t.auto=gs,t.disable=gr,t.enable=eo,t.exportGeneratedCSS=ws,t.setFetchMethod=ys,Object.defineProperty(t,"__esModule",{value:!0})});class gi extends We{constructor(){super(...arguments);le(this,"isRGB",r=>r.indexOf("rgb")!==-1);le(this,"hexToRGB",(r,i=1)=>{if(this.isRGB(r))return r;const s=document.createElement("div");s.style.color=r;const l=window.getComputedStyle(s).color.match(/(\d+), (\d+), (\d+), (\d+(\.\d+)?)\)/);if(l&&l.length===6){const g=parseInt(l[1]),A=parseInt(l[2]),k=parseInt(l[3]),M=i!==void 0?i:parseFloat(l[4]);return`rgba(${g}, ${A}, ${k}, ${M})`}else return null});le(this,"luminance",r=>{this.isRGB(r)||(r=this.hexToRgb(r)),r=r.replace(/ /g,""),r=r.split(",");const i=r[0],s=r[1],u=r[2];return .299*i+.587*s+.114*u});le(this,"isDarkColor",r=>this.luminance(r)<190);le(this,"getWhitePercentage",r=>{this.isRGB(r)||(r=this.hexToRgb(r)),r=r.replace(/ /g,""),r=r.split(",");const i=r[0],s=r[1],u=r[2];return Math.round((255-i+(255-s)+(255-u))/7.65)});le(this,"isTransparent",r=>{if(!r)return!0;let i=this.hexToRGB(r);return!i||i=="rgba(0, 0, 0, 0)"||i=="rgb(0, 0, 0)"||i=="none"||(i=i.replace(/ /g,""),i=i.split(","),parseFloat(i[3])==0)});le(this,"shouldIgnore",r=>{if(!r)return!0;const i=window.getComputedStyle(r).backgroundColor||"rgba(0, 0, 0, 0)";return r.classList.contains("wp-dark-mode-ignore")||r.classList.contains("wp-dark-mode-switch")||r.classList.contains("wp-dark-mode-background")?!0:this.isTransparent(i)?(r.classList.add("wp-dark-mode-transparent"),!0):!!(window.getComputedStyle(r).backgroundImage!=="none"||this.isDarkColor(i))})}ready(){if(this.always(),this.isAutoColor){const r=document.querySelector("html");r==null||r.setAttribute("data-wp-dark-mode-loading",!0),this.applyAutoDark(),r==null||r.removeAttribute("data-wp-dark-mode-loading")}else this.applyPreset()}always(){const r=document.querySelector("html");r==null||r.removeAttribute("data-wp-dark-mode-loading"),this.handleIncludes(),this.HandleExcludes()}async applyAutoDark(){const r={brightness:wp_dark_mode_json.options.color_filter_brightness||100,contrast:wp_dark_mode_json.options.color_filter_contrast||90,sepia:wp_dark_mode_json.options.color_filter_sepia||10,grayscale:wp_dark_mode_json.options.color_filter_grayscale||0};I.isActive&&DarkModeAuto.enable(r,{ignoreInlineStyle:".wp-dark-mode-ignore"}),I.onChange(()=>{I.isActive?DarkModeAuto.enable(r,{ignoreInlineStyle:".wp-dark-mode-ignore"}):DarkModeAuto.disable()})}get presetId(){var i;const r=typeof wp_dark_mode_admin_json<"u"?wp_dark_mode_admin_json:wp_dark_mode_json;return((i=r==null?void 0:r.options)==null?void 0:i.color_preset_id)||!1}get isAutoColor(){return Number(this.presetId)===0}initHandlers(){}applyPreset(){const r=document.querySelectorAll("body *:not(.wp-dark-mode-ignore), body *:not(.wp-dark-mode-ignore *)");!r||!r.length||r.forEach(i=>{if(i.classList.add("wp-dark-mode-transparent"),this.shouldIgnore(i)){const s=window.getComputedStyle(i).backgroundColor||"rgba(0, 0, 0, 0)";this.isTransparent(s)||i.classList.add("wp-dark-mode-ignore"),i.classList.add("wp-dark-mode-transparent")}else i.classList.remove("wp-dark-mode-transparent")})}HandleExcludes(){const r=(wp_dark_mode_json.options.excludes_elements?wp_dark_mode_json.options.excludes_elements+",.wp-dark-mode-ignore":".wp-dark-mode-ignore")+(wp_dark_mode_json.excluded_elements?", "+wp_dark_mode_json.excluded_elements:""),i=document.querySelectorAll(r);if(!(!i||!i.length))return i.forEach(s=>{const u=l=>{if(!l||!(l instanceof HTMLElement)||l.classList.contains("wp-dark-mode-include"))return;l.classList.add("wp-dark-mode-ignore");const{color:g,borderColor:A}=window.getComputedStyle(l)||{};g!=="rgba(0, 0, 0, 0)"&&(l.style.color=`${g} !important`),A!=="rgba(0, 0, 0, 0)"&&(l.style.borderColor=`${A} !important`),l.childNodes&&l.childNodes.length&&l.childNodes.forEach(k=>{u(k)})};u(s)}),this}handleIncludes(){const r=document.querySelectorAll(wp_dark_mode_json.options.excludes_elements_includes||".wp_dark_mode_include");!r||!r.length||r.forEach(i=>{const s=u=>{u&&u instanceof HTMLElement&&(u.classList.add("wp-dark-mode-include"),u.classList.remove("wp-dark-mode-ignore"),u.childNodes&&u.childNodes.length&&u.childNodes.forEach(l=>{s(l)}))};s(i)})}}const wi=new gi;class yi extends We{ready(){this.initImages()}initImages(){document.body.style.setProperty("--wp-dark-mode-img-opacity",1),this.replaceImages(),this.replaceBackgroundImages(),this.excludeFilterImages(),WPDarkMode.onChange(()=>{this.replaceImages(),this.replaceBackgroundImages(),this.excludeFilterImages()})}replaceImages(){const o=document.querySelectorAll("img");!o||!o.length||o.forEach(r=>{if(!r.src)return;let i=r.dataset.lightSrc||r.src;if(WPDarkMode.isActive){const s=this.getDarkSrc(i);s&&(r.dataset.lightSrc=i,r.dataset.darkSrc=s,r.src=s,r.srcset=s)}else{const s=r.dataset.lightSrc;s&&(r.src=s,r.srcset=s)}})}replaceBackgroundImages(){var o=document.querySelectorAll("*");o.forEach(r=>{var i=window.getComputedStyle(r).getPropertyValue("background-image");if(i!=="none")if(i=i.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(",")[0],r.classList.add("wp-dark-mode-ignore"),WPDarkMode.isActive){const s=this.getDarkSrc(i);s&&(r.style.background=`url(${s})`,r.style.backgroundImage=`url(${s})`,r.dataset.lightSrc=i,r.dataset.darkSrc=s)}else{const s=r.dataset.lightSrc;s&&(r.style.background=`url(${s})`,r.style.backgroundImage=`url(${s})`)}})}getDarkSrc(o){if(!o)return;const r=wp_dark_mode_json.options.image_replaces||!1;if(!r)return!1;const i=r.find(s=>{const u=o.split("?")[0];return s.light===u});return i?i.dark:!1}excludeFilterImages(){const o=wp_dark_mode_json.options.image_enabled_low_brightness?wp_dark_mode_json.options.image_low_brightness_excludes:!1,r=wp_dark_mode_json.options.image_enabled_low_grayscale?wp_dark_mode_json.options.image_low_grayscale_excludes:!1,i=document.querySelectorAll("img");i&&i.length&&i.forEach(s=>{const u=s.src;o&&o.includes(u)&&s.style.setProperty("--wp-dark-mode-img-brightness","100%"),r&&r.includes(u)&&s.style.setProperty("--wp-dark-mode-img-grayscale","0%")})}}const bi=new yi;class Si extends We{constructor(){super(...arguments);le(this,"getVideoHost",r=>{const i=/^(https?:\/\/)?(www\.)?(youtube\.com\/(watch\?v=|embed\/)|youtu\.be\/)[\w-]+/,s=/^(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/(video\/)?\d+/,u=/\.(mp4|avi|mov|flv|wmv|webm|m4v|mkv|mpg|mpeg|vob|asf|divx|ogv|3gp)$/i;return i.test(r)?"youtube":s.test(r)?"vimeo":u.test(r)?"file":!1});le(this,"getYouTubeVideoID",r=>{const i=/(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i,s=r.match(i);return s?s[1]:null});le(this,"getVimeoVideoID",r=>{const i=/(?:vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/[^\/]+\/videos\/|album\/\d+\/video\/|video\/|)(\d+)|vimeo\.com\/(?:\w*\/)?(\d+))/i,s=r.match(i);return s?s[1]||s[2]:null})}ready(){this.initVideos()}initVideos(){if(!wp_dark_mode_json.options.video_replaces)return!1;wp_dark_mode_json.options.video_replaces=wp_dark_mode_json.options.video_replaces.map(r=>(["light","dark"].forEach(i=>{const s=this.getVideoHost(r[i]);if(s==="youtube"){const u=this.getYouTubeVideoID(r[i]);if(!u)return;r[i]=`https://www.youtube.com/embed/${u}`}if(s==="vimeo"){const u=this.getVimeoVideoID(r[i]);if(!u)return;r[i]=`https://player.vimeo.com/video/${u}`}}),r)),document.body.style.setProperty("--wp-dark-mode-vid-opacity",1),this.replaceVideos(),this.adjustEmbeds(),this.setVideoFilters(),WPDarkMode.onChange(()=>{this.replaceVideos(),this.setVideoFilters()})}replaceVideos(){const r=document.querySelectorAll("video, iframe, video source");!r||!r.length||r.forEach(i=>{if(!i.src)return;let s=i.dataset.lightSrc||i.src;if(i.classList.add("wp-dark-mode-ignore"),WPDarkMode.isActive){const u=this.getDarkSrc(s);u&&(i.dataset.lightSrc=s,i.dataset.darkSrc=u,i.src=u,i.srcset=u)}else{const u=i.dataset.lightSrc;u&&(i.src=u,i.srcset=u)}})}getDarkSrc(r=null){if(!r)return;const i=wp_dark_mode_json.options.video_replaces||!1;if(!i)return!1;const s=i.find(u=>{const l=r.split("?")[0];return u.light===l});return s?s.dark:!1}adjustEmbeds(){const r=document.querySelectorAll("iframe");if(!r||!r.length)return;const i=Array.from(r).filter(s=>{if(!s.src)return!1;const u=this.getVideoHost(s.src);return u==="youtube"||u==="vimeo"||u==="file"});!i||!i.length||i.forEach(s=>{!s||!s.style||(s.style.filter="brightness(var(--wp-dark-mode-video-brightness, 100%)) grayscale(var(--wp-dark-mode-video-grayscale, 0%))")})}setVideoFilters(){const r=wp_dark_mode_json.options.video_enabled_low_brightness?wp_dark_mode_json.options.video_low_brightness_excludes:[],i=wp_dark_mode_json.options.video_enabled_low_grayscale?wp_dark_mode_json.options.video_low_grayscale_excludes:[],s=document.querySelectorAll("video, iframe, video source");s&&s.length&&s.forEach(u=>{const l=u.src;r&&r.includes(l)&&(u==null||u.style.setProperty("--wp-dark-mode-video-brightness","100%")),i&&i.includes(l)&&(u==null||u.style.setProperty("--wp-dark-mode-video-grayscale","0"))})}}const ki=new Si;function _i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var on={exports:{}};(function(t,o){(function(){var r=Math.PI,i=Math.sin,s=Math.cos,u=Math.tan,l=Math.asin,g=Math.atan2,A=Math.acos,k=r/180,M=1e3*60*60*24,b=2440588,G=2451545;function te(E){return E.valueOf()/M-.5+b}function R(E){return new Date((E+.5-b)*M)}function T(E){return te(E)-G}var ee=k*23.4397;function se(E,O){return g(i(E)*s(ee)-u(O)*i(ee),s(E))}function we(E,O){return l(i(O)*s(ee)+s(O)*i(ee)*i(E))}function _e(E,O,D){return g(i(E),s(E)*i(O)-u(D)*s(O))}function b1(E,O,D){return l(i(O)*i(D)+s(O)*s(D)*s(E))}function ct(E,O){return k*(280.16+360.9856235*E)-O}function ut(E){return E<0&&(E=0),2967e-7/Math.tan(E+.00312536/(E+.08901179))}function N1(E){return k*(357.5291+.98560028*E)}function lt(E){var O=k*(1.9148*i(E)+.02*i(2*E)+3e-4*i(3*E)),D=k*102.9372;return E+O+D+r}function dt(E){var O=N1(E),D=lt(O);return{dec:we(D,0),ra:se(D,0)}}var ye={};ye.getPosition=function(E,O,D){var Y=k*-D,V=k*O,re=T(E),J=dt(re),ne=ct(re,Y)-J.ra;return{azimuth:_e(ne,V,J.dec),altitude:b1(ne,V,J.dec)}};var o1=ye.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];ye.addTime=function(E,O,D){o1.push([E,O,D])};var ft=9e-4;function Qt(E,O){return Math.round(E-ft-O/(2*r))}function pe(E,O,D){return ft+(E+O)/(2*r)+D}function S1(E,O,D){return G+E+.0053*i(O)-.0069*i(2*D)}function er(E,O,D){return A((i(E)-i(O)*i(D))/(s(O)*s(D)))}function k1(E){return-2.076*Math.sqrt(E)/60}function ht(E,O,D,Y,V,re,J){var ne=er(E,D,Y),fe=pe(ne,O,V);return S1(fe,re,J)}ye.getTimes=function(E,O,D,Y){Y=Y||0;var V=k*-D,re=k*O,J=k1(Y),ne=T(E),fe=Qt(ne,V),me=pe(0,V,fe),Me=N1(me),Pe=lt(Me),Ge=we(Pe,0),Ee=S1(me,Me,Pe),De,Ue,be,Ce,Fe,Ie,K={solarNoon:R(Ee),nadir:R(Ee-.5)};for(De=0,Ue=o1.length;De=0&&(Ie=Math.sqrt(Ue)/(Math.abs(Pe)*2),Ce=Ee-Ie,Fe=Ee+Ie,Math.abs(Ce)<=1&&be++,Math.abs(Fe)<=1&&be++,Ce<-1&&(Ce=Fe)),be===1?J<0?me=K+Ce:Me=K+Ce:be===2&&(me=K+(De<0?Fe:Ce),Me=K+(De<0?Ce:Fe)),!(me&&Me));K+=2)J=fe;var i1={};return me&&(i1.rise=d1(V,me)),Me&&(i1.set=d1(V,Me)),!me&&!Me&&(i1[De>0?"alwaysUp":"alwaysDown"]=!0),i1},t.exports=ye})()})(on);var xi=on.exports;const Li=_i(xi);class Mi extends We{async events(){return this.syncStorage(),this.tryApplyingDarkMode(),this.registerEvents(),this}get hasUserChoice(){return N.get("choice")!==null}syncStorage(){if(N.set("device",I.isDeviceDark?"dark":"light"),!this.isPremium)return;let o=new Date().getTimezoneOffset()/60;o>0?o="-"+o:o="+"+Math.abs(Number(o)),N.set("timezone",o),wp_dark_mode_json.options.frontend_mode==="sunset"&&this.syncDeviceLocation()}async syncDeviceLocation(){const o=N.get("location-updated");o&&new Date-new Date().setTime(o)<24*60*60*1e3||!navigator||!navigator.geolocation||navigator.geolocation.getCurrentPosition(r=>{N.set("location",r.coords.latitude+","+r.coords.longitude),N.set("location-updated",new Date().getTime()),wp_dark_mode_json.options.frontend_mode==="sunset"&&this.isPremium&&this.applySunsetMode()})}registerEvents(){wi.init(),nn.init(),bi.init(),ki.init(),this.followDevice()}followDevice(){if(wp_dark_mode_json.options.frontend_mode!=="device"||!window||!window.matchMedia)return;const o=matchMedia("(prefers-color-scheme: dark)");if(!o)return!1;const r=()=>{o.matches?I.activate():I.deactivate()};o.addEventListener("change",function(){N.set("device",o.matches?"dark":"light"),N.get("choice")===null&&r()}),!I.isActive&&!this.hasUserChoice&&r()}async tryApplyingDarkMode(){return new Promise(async o=>{if(this.isPremium){const i=await(await fetch(wp_dark_mode_json.url.ajax+"?action=wp_dark_mode_options&nonce="+wp_dark_mode_json.nonce)).json();if(!this.isTrue(i.data.performance_exclude_cache)){o(!0);return}}if(!this.isTrue(wp_dark_mode_json.options.frontend_enabled)){o(!0);return}if(this.hasUserChoice){N.get("choice")=="dark"?I.activate():I.deactivate(),o(!0);return}switch(wp_dark_mode_json.options.frontend_mode){case"default_light":I.deactivate();break;default:case"default":I.activate();break;case"device":I.isDeviceDark?I.activate():I.deactivate();break;case"time":let s=function(M){const[b,G]=M.split(" ");let[te,R]=b.split(":").map(Number);return G==="PM"&&te!==12?te+=12:G==="AM"&&te===12&&(te=0),te*60+R};if(!this.isPremium){o(!0);return}const r=wp_dark_mode_json.options.frontend_time_starts,i=wp_dark_mode_json.options.frontend_time_ends,u=new Date,l=u.getHours()*60+u.getMinutes(),g=s(r),A=s(i);let k=!1;g=g&&l=g||li||s `,an=` `,Ai=` `,st=` `,Xt=' ',Ri=` `,Ti=` `,Yt=' ',I1=` `,r1=` `,sn=` `,cn=` `,v1=` `,Oi=` `,Pi=Object.freeze(Object.defineProperty({__proto__:null,Switch_1:(t={})=>(Log("Found Icons",t.iconLight,t.iconDark),`
${t.iconLight||F1}
${t.iconDark||F1}
`),Switch_10:(t={})=>`
${t.iconLight||I1}
${t.iconLight||I1}
${t.iconDark||an}
`,Switch_11:(t={})=>`
${t.iconLight||I1}
${t.iconDark||F1}
`,Switch_12:(t={})=>`
${t.iconLight||I1}
${t.iconDark||F1}
`,Switch_13:(t={})=>`
${t.iconLight||r1}
${t.iconDark||r1}
`,Switch_14:(t={})=>`
${t.iconLight||st}
${t.iconDark||st}
${t.fontIcon||sn}
${t.fontIconActive||sn}
`,Switch_15:(t={})=>{const o=t.fontIcon?``:"a",r=t.fontIconActive?``:"A";return`
${t.iconLight||I1}
${t.iconDark||F1}
${o}
${r}
`},Switch_16:(t={})=>`
${t.iconLight||r1}
${t.iconDark||Ai}
${t.fontIcon?``:cn}
${t.fontIconActive?``:cn}
`,Switch_17:(t={})=>`
${t.iconLight||Ri}
${t.iconDark||Ti}
${t.fontIcon||v1}
${t.fontIconActive||v1}
`,Switch_18:(t={})=>`
${t.fontIcon||v1}
${t.fontIconActive||v1}
${t.iconLight||st}
${t.iconDark||st}
`,Switch_19:(t={})=>`
${t.fontIcon||v1}
${t.fontIconActive||v1}
${t.iconLight||r1}
${t.iconDark||an}
`,Switch_2:(t={})=>`
${t.textLight||"Light"}
${t.textDark||"Dark"}
`,Switch_20:(t={})=>'
',Switch_21:(t={})=>` `,Switch_3:(t={})=>`
${t.iconLight||r1}
${t.iconDark||Kt}
`,Switch_4:(t={})=>`
${t.iconLight||r1}
${t.iconDark||Kt}
`,Switch_5:(t={})=>`
${t.iconLight||Xt}
${t.iconDark||Yt}
`,Switch_6:(t={})=>`${t.textLight||"Light"}
${t.iconLight||Xt}
${t.iconDark||Yt}
${t.textDark||"Dark"}`,Switch_7:(t={})=>`
${t.iconLight||Xt}
${t.iconDark||Yt}
`,Switch_8:(t={})=>`
${t.iconLight||r1}
${t.iconDark||Kt}
`,Switch_9:(t={})=>`
${t.iconLight||r1}
`},Symbol.toStringTag,{value:"Module"}));class Di extends We{constructor(){super(...arguments);le(this,"injectSwitches",()=>{const r=this.getSwitches(".ignore");if(!r||!r.length)return;const i=this;r.forEach(s=>{if(s.querySelector(".wp-dark-mode-switch-styled"))return;const u=["style","size","reactive","textLight","textDark","iconLight","iconDark"],l={};if(u.forEach(A=>{l[A]=s.dataset[A]||null}),!l.style)return;const g=i.buildSwitch(l);s.innerHTML=g})});le(this,"updateSwitches",()=>{const r=this.getSwitches(".dummy");!r||!r.length||r.forEach(i=>{const s=i.querySelector("._scheme");if(s)s.classList[I.isActive?"add":"remove"]("active");else if(i.querySelector(".switch"))i.querySelector(".switch").classList[I.isActive?"add":"remove"]("active");else{let u=i.querySelector("div:not(.light):not(.dark)");u||(u=i),u.classList[I.isActive?"add":"remove"]("active")}})})}getSwitches(r=""){return r!==""?document.querySelectorAll(`.wp-dark-mode-switch:not(${r})`):document.querySelectorAll(".wp-dark-mode-switch")}ready(){const r=typeof window.wp_dark_mode_admin_json<"u"?window.wp_dark_mode_admin_json:window.wp_dark_mode_json;r&&r.is_excluded||(this.injectSwitches(),this.listenSwitches(),this.reactiveSwitches(),this.throttle=!1,r.options.performance_track_dynamic_content&&this.dynamicSwitches(),window.addEventListener("elementor/frontend/init",()=>{this.dynamicSwitches()}))}dynamicSwitches(){if(this.dynamicSwitchesInitialized)return;this.dynamicSwitchesInitialized=!0,new MutationObserver(i=>{i.forEach(s=>{this.throttle||(this.throttle=!0,setTimeout(this.injectSwitches,200),setTimeout(()=>{this.throttle=!1},500))})}).observe(document.body,{childList:!0,subtree:!0,attributes:!1})}listenSwitches(){window==null||window.addEventListener("click",r=>{(r.target.closest(".wp-dark-mode-switch")||r.target.matches(".wp-dark-mode-switch"))&&(r.target.closest(".dummy")||(r.preventDefault(),r.target.closest("._font")||r.target.matches("._font")?(nn.toggleFontSize(r.target.closest(".wp-dark-mode-switch ._font")),this.emit("font-toggled",r)):I.toggle().remember()))}),window==null||window.addEventListener("keydown",r=>{r.key==="Enter"&&(r.target.closest(".wp-dark-mode-switch")||r.target.matches(".wp-dark-mode-switch"))&&(r.preventDefault(),r.target.click())})}reactiveSwitches(){this.updateSwitches(),I.onChange(this.updateSwitches)}buildSwitch(r={}){const i=I.isActive,s=r.reactive!==!1;let u=`
`;const l="Switch_"+(r.style||1);return r.iconLight=r.iconLight?``:null,r.iconDark=r.iconDark?``:null,u+=Pi[l](r),u+="
",u}}const Fi=new Di,Ii=(...t)=>{wp_dark_mode_json.debug&&console.log("%cWPDarkMode","background: #2663eb; color: #fff; padding: 2px 5px; border-radius: 3px; font-weight: 500;",...t)};window.Log=Ii,window.WPDarkModeApp=Ei.init(),Fi.init()})(); //# sourceMappingURL=app.min.js.map